Add loan-advisor-chatgpt-app (part 10)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +1 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/LICENSE +19 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/README.md +146 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Markdown/useMathPlugins.d.ts +8 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Markdown/useParseMarkdownPre.d.ts +5 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Menu/Menu.d.ts +170 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Menu/index.d.ts +1 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Popover/Popover.d.ts +78 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Popover/index.d.ts +2 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Popover/pointerIntent.d.ts +8 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Popover/usePopoverContext.d.ts +17 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Popover/usePopoverController.d.ts +8 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/RadioGroup/RadioGroup.d.ts +34 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/RadioGroup/index.d.ts +1 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/SegmentedControl/SegmentedControl.d.ts +71 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/SegmentedControl/index.d.ts +2 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Select/Select.d.ts +217 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Select/index.d.ts +1 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/SelectControl/SelectControl.d.ts +81 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/SelectControl/index.d.ts +1 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/ShimmerText/ShimmerText.d.ts +12 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/ShimmerText/index.d.ts +1 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Slider/Slider.d.ts +69 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Slider/index.d.ts +2 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Switch/Switch.d.ts +33 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Switch/index.d.ts +1 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/TagInput/TagInput.d.ts +62 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/TagInput/index.d.ts +1 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/TextLink/TextLink.d.ts +30 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/TextLink/index.d.ts +1 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Textarea/Textarea.d.ts +66 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Textarea/index.d.ts +1 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Tooltip/CopyTooltip.d.ts +32 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Tooltip/Tooltip.d.ts +111 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Tooltip/index.d.ts +2 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Transition/Animate.d.ts +23 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Transition/AnimateLayout.d.ts +33 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Transition/AnimateLayoutGroup.d.ts +33 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Transition/SlotTransitionGroup.d.ts +24 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Transition/TransitionGroup.d.ts +32 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Transition/getDisableAnimations.d.ts +2 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Transition/index.d.ts +5 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Transition/shared.d.ts +52 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Transition/transitionReducer.d.ts +21 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/global.d.ts +21 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/hooks/useAnimatedScrollTo.d.ts +1 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/hooks/useAutoGrowTextarea.d.ts +4 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/hooks/useBreakpoints.d.ts +2 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/hooks/useCharactersPerSecond.d.ts +1 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/hooks/useDocumentVisible.d.ts +1 -0
.gitattributes
CHANGED
|
@@ -203,3 +203,4 @@ Kliendibaas/TaaviPeters_Cobaltex[[:space:]]OÜ/fwdarved/20260708_204725_statemen
|
|
| 203 |
Kliendibaas/TaaviPeters_Cobaltex[[:space:]]OÜ/fwdarved/20260708_204731_statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 204 |
Kliendibaas/TaaviPeters_Cobaltex[[:space:]]OÜ/fwdarved/20260708_204738_statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 205 |
Kliendibaas/TaaviPeters_Cobaltex[[:space:]]OÜ/fwdarved/20260708_204745_statement.pdf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 203 |
Kliendibaas/TaaviPeters_Cobaltex[[:space:]]OÜ/fwdarved/20260708_204731_statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 204 |
Kliendibaas/TaaviPeters_Cobaltex[[:space:]]OÜ/fwdarved/20260708_204738_statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 205 |
Kliendibaas/TaaviPeters_Cobaltex[[:space:]]OÜ/fwdarved/20260708_204745_statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 206 |
+
loan-advisor-chatgpt-app/node_modules/@rolldown/binding-win32-x64-msvc/rolldown-binding.win32-x64-msvc.node filter=lfs diff=lfs merge=lfs -text
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright 2025 OpenAI
|
| 2 |
+
|
| 3 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
| 4 |
+
this software and associated documentation files (the “Software”), to deal in
|
| 5 |
+
the Software without restriction, including without limitation the rights to
|
| 6 |
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
| 7 |
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
| 8 |
+
subject to the following conditions:
|
| 9 |
+
|
| 10 |
+
The above copyright notice and this permission notice shall be included in all
|
| 11 |
+
copies or substantial portions of the Software.
|
| 12 |
+
|
| 13 |
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 14 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 15 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 16 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 17 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 18 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 19 |
+
SOFTWARE.
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/README.md
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Apps SDK UI
|
| 2 |
+
|
| 3 |
+
Apps SDK UI is a lightweight, accessible design system for building high-quality ChatGPT apps with the [Apps SDK](https://developers.openai.com/apps-sdk). It provides Tailwind-integrated design tokens, a curated React component library, and utilities optimized for consistent experiences inside ChatGPT.
|
| 4 |
+
|
| 5 |
+
## Features
|
| 6 |
+
|
| 7 |
+
- **Design tokens** for colors, typography, spacing, sizing, shadows, surfaces, and more.
|
| 8 |
+
- **Tailwind 4 integration** pre-configured with Apps SDK UI's design tokens.
|
| 9 |
+
- **Accessible components**, built on Radix primitives with consistent styling.
|
| 10 |
+
- **Utilities** for dark mode, responsive layouts, and ChatGPT-optimized behaviors.
|
| 11 |
+
- **Minimal boilerplate** — import styles, wrap with a provider, start building.
|
| 12 |
+
|
| 13 |
+
## Prerequisites
|
| 14 |
+
|
| 15 |
+
Apps SDK UI requires **React 18 or 19** and **Tailwind 4**.
|
| 16 |
+
|
| 17 |
+
- React: https://react.dev/learn/installation
|
| 18 |
+
- Tailwind 4: https://tailwindcss.com/docs/installation
|
| 19 |
+
|
| 20 |
+
## Installation
|
| 21 |
+
|
| 22 |
+
### 1. Install the package
|
| 23 |
+
|
| 24 |
+
```bash
|
| 25 |
+
npm install @openai/apps-sdk-ui
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
### 2. Setup styles
|
| 29 |
+
|
| 30 |
+
Add the foundation styles and Tailwind layers to the top of your global stylesheet (e.g. `main.css`):
|
| 31 |
+
|
| 32 |
+
```css
|
| 33 |
+
@import "tailwindcss";
|
| 34 |
+
@import "@openai/apps-sdk-ui/css";
|
| 35 |
+
/* Required for Tailwind to find class references in Apps SDK UI components. */
|
| 36 |
+
@source "../node_modules/@openai/apps-sdk-ui";
|
| 37 |
+
|
| 38 |
+
/* The rest of your application CSS */
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
Then import your stylesheet _before_ rendering any components:
|
| 42 |
+
|
| 43 |
+
```tsx
|
| 44 |
+
// Must be imported first to ensure Tailwind layers and style foundations are defined before any potential component styles
|
| 45 |
+
import "./main.css"
|
| 46 |
+
|
| 47 |
+
import { StrictMode } from "react"
|
| 48 |
+
import { createRoot } from "react-dom/client"
|
| 49 |
+
import { App } from "./App"
|
| 50 |
+
|
| 51 |
+
createRoot(document.getElementById("root")!).render(
|
| 52 |
+
<StrictMode>
|
| 53 |
+
<App />
|
| 54 |
+
</StrictMode>,
|
| 55 |
+
)
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
### 3. Configure router (optional)
|
| 59 |
+
|
| 60 |
+
`<AppsSDKUIProvider>` helps define your default router link component, used in components like `<TextLink>` and `<ButtonLink>`.
|
| 61 |
+
|
| 62 |
+
This provider is optional - router links can also be [passed directly to components](https://openai.github.io/apps-sdk-ui/?path=/docs/components-textlink--docs#component-level) via the `as` prop.
|
| 63 |
+
|
| 64 |
+
```tsx
|
| 65 |
+
// Must be imported first to ensure Tailwind layers and style foundations are defined before component styles
|
| 66 |
+
import "./main.css"
|
| 67 |
+
|
| 68 |
+
import { AppsSDKUIProvider } from "@openai/apps-sdk-ui/components/AppsSDKUIProvider"
|
| 69 |
+
import { StrictMode } from "react"
|
| 70 |
+
import { createRoot } from "react-dom/client"
|
| 71 |
+
import { Link } from "react-router"
|
| 72 |
+
import { App } from "./App"
|
| 73 |
+
|
| 74 |
+
declare global {
|
| 75 |
+
interface AppsSDKUIConfig {
|
| 76 |
+
LinkComponent: typeof Link
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
createRoot(document.getElementById("root")!).render(
|
| 81 |
+
<StrictMode>
|
| 82 |
+
<AppsSDKUIProvider linkComponent={Link}>
|
| 83 |
+
<App />
|
| 84 |
+
</AppsSDKUIProvider>
|
| 85 |
+
</StrictMode>,
|
| 86 |
+
)
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
### Start building
|
| 90 |
+
|
| 91 |
+
Your project is now ready to use Apps SDK UI!
|
| 92 |
+
|
| 93 |
+
Here's an example of a simple reservation card, using Tailwind classes and components.
|
| 94 |
+
|
| 95 |
+
```tsx
|
| 96 |
+
import { Badge } from "@openai/apps-sdk-ui/components/Badge"
|
| 97 |
+
import { Button } from "@openai/apps-sdk-ui/components/Button"
|
| 98 |
+
import { Calendar, Invoice, Maps, Members, Phone } from "@openai/apps-sdk-ui/components/Icon"
|
| 99 |
+
|
| 100 |
+
export function ReservationCard() {
|
| 101 |
+
return (
|
| 102 |
+
<div className="w-full max-w-sm rounded-2xl border border-default bg-surface shadow-lg p-4">
|
| 103 |
+
<div className="flex items-start justify-between gap-3">
|
| 104 |
+
<div>
|
| 105 |
+
<p className="text-secondary text-sm">Reservation</p>
|
| 106 |
+
<h2 className="mt-1 heading-lg">La Luna Bistro</h2>
|
| 107 |
+
</div>
|
| 108 |
+
<Badge color="success">Confirmed</Badge>
|
| 109 |
+
</div>
|
| 110 |
+
<div>
|
| 111 |
+
<dl className="mt-4 grid grid-cols-[auto_1fr] gap-x-3 gap-y-2 text-sm">
|
| 112 |
+
<dt className="flex items-center gap-1.5 font-medium text-secondary">
|
| 113 |
+
<Calendar className="size-4" />
|
| 114 |
+
Date
|
| 115 |
+
</dt>
|
| 116 |
+
<dd className="text-right">Apr 12 · 7:30 PM</dd>
|
| 117 |
+
<dt className="flex items-center gap-1.5 font-medium text-secondary">
|
| 118 |
+
<Members className="size-4" />
|
| 119 |
+
Guests
|
| 120 |
+
</dt>
|
| 121 |
+
<dd className="text-right">Party of 2</dd>
|
| 122 |
+
<dt className="flex items-center gap-1.5 font-medium text-secondary">
|
| 123 |
+
<Invoice className="size-4" />
|
| 124 |
+
Reference
|
| 125 |
+
</dt>
|
| 126 |
+
<dd className="text-right uppercase">4F9Q2K</dd>
|
| 127 |
+
</dl>
|
| 128 |
+
</div>
|
| 129 |
+
<div className="mt-4 grid gap-3 border-t border-subtle pt-4 sm:grid-cols-2">
|
| 130 |
+
<Button variant="soft" color="secondary" block>
|
| 131 |
+
<Phone />
|
| 132 |
+
Call
|
| 133 |
+
</Button>
|
| 134 |
+
<Button color="primary" block>
|
| 135 |
+
<Maps />
|
| 136 |
+
Directions
|
| 137 |
+
</Button>
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
)
|
| 141 |
+
}
|
| 142 |
+
```
|
| 143 |
+
|
| 144 |
+
## License
|
| 145 |
+
|
| 146 |
+
[MIT](LICENSE) © OpenAI
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Markdown/useMathPlugins.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { type ComponentProps } from "react";
|
| 2 |
+
import ReactMarkdown from "react-markdown";
|
| 3 |
+
type MathPlugins = {
|
| 4 |
+
remarkPlugins: NonNullable<ComponentProps<typeof ReactMarkdown>["remarkPlugins"]>;
|
| 5 |
+
rehypePlugins: NonNullable<ComponentProps<typeof ReactMarkdown>["rehypePlugins"]>;
|
| 6 |
+
};
|
| 7 |
+
export declare function useMathPlugins(enabled: boolean): MathPlugins;
|
| 8 |
+
export {};
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Markdown/useParseMarkdownPre.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { type ReactNode } from "react";
|
| 2 |
+
export declare function useParseMarkdownPre(children: ReactNode): {
|
| 3 |
+
code: string;
|
| 4 |
+
language: string;
|
| 5 |
+
};
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Menu/Menu.d.ts
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { DropdownMenu } from "radix-ui";
|
| 2 |
+
import React, { type ComponentProps, type ComponentType, type MouseEvent, type ReactNode } from "react";
|
| 3 |
+
export type MenuProps = {
|
| 4 |
+
children: React.ReactNode;
|
| 5 |
+
/** Force the menu to remain open or closed */
|
| 6 |
+
forceOpen?: boolean;
|
| 7 |
+
/** Callback triggered when the modal is opened */
|
| 8 |
+
onOpen?: () => void;
|
| 9 |
+
/** Callback triggered when the modal is closed */
|
| 10 |
+
onClose?: () => void;
|
| 11 |
+
/**
|
| 12 |
+
* When set to `true`, interaction with outside elements will be disabled and only menu content will be visible to screen readers.
|
| 13 |
+
* @default false
|
| 14 |
+
*/
|
| 15 |
+
modal?: boolean;
|
| 16 |
+
};
|
| 17 |
+
export declare const Menu: {
|
| 18 |
+
({ children, forceOpen, onOpen, onClose, modal }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
| 19 |
+
Content: ({ children, side, sideOffset, align, alignOffset, width, minWidth, maxHeight, }: MenuContentProps) => import("react/jsx-runtime").JSX.Element;
|
| 20 |
+
Item: ({ className, children, disabled, onSelect, onClick }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
| 21 |
+
ItemActions: ({ className, children }: {
|
| 22 |
+
className?: string;
|
| 23 |
+
children: ReactNode;
|
| 24 |
+
}) => import("react/jsx-runtime").JSX.Element;
|
| 25 |
+
ItemAction: ({ children, onClick, }: {
|
| 26 |
+
children: ReactNode;
|
| 27 |
+
onClick: (evt: MouseEvent) => void;
|
| 28 |
+
}) => import("react/jsx-runtime").JSX.Element;
|
| 29 |
+
Link: MenuLink;
|
| 30 |
+
Separator: ({ className }: {
|
| 31 |
+
className?: string;
|
| 32 |
+
}) => import("react/jsx-runtime").JSX.Element;
|
| 33 |
+
Trigger: ({ children, disabled }: DropdownMenu.DropdownMenuTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
| 34 |
+
Sub: ({ children, forceOpen, onOpen, onClose }: SubmenuProps) => import("react/jsx-runtime").JSX.Element;
|
| 35 |
+
SubTrigger: ({ className, children, disabled, }: {
|
| 36 |
+
className?: string;
|
| 37 |
+
children: ReactNode;
|
| 38 |
+
disabled?: boolean;
|
| 39 |
+
}) => import("react/jsx-runtime").JSX.Element;
|
| 40 |
+
SubContent: ({ children, sideOffset, alignOffset, width, minWidth, maxHeight, }: SubContentProps) => import("react/jsx-runtime").JSX.Element;
|
| 41 |
+
CheckboxItem: ({ className, children, indicatorPosition, indicatorVariant, ...props }: MenuCheckboxItemProps) => import("react/jsx-runtime").JSX.Element;
|
| 42 |
+
RadioGroup: <T extends string>({ children, value, onChange, indicatorPosition, ...props }: MenuRadioGroupProps<T>) => import("react/jsx-runtime").JSX.Element;
|
| 43 |
+
RadioItem: <T extends string>({ className, children, ...props }: MenuRadioItemProps<T>) => import("react/jsx-runtime").JSX.Element;
|
| 44 |
+
};
|
| 45 |
+
export type MenuItemProps = {
|
| 46 |
+
className?: string;
|
| 47 |
+
children: React.ReactNode;
|
| 48 |
+
/** Callback triggered when the item is pressed */
|
| 49 |
+
onSelect?: DropdownMenu.DropdownMenuItemProps["onSelect"];
|
| 50 |
+
/** Callback triggered when the item is clicked */
|
| 51 |
+
onClick?: DropdownMenu.DropdownMenuItemProps["onClick"];
|
| 52 |
+
/** Disables the menu item */
|
| 53 |
+
disabled?: boolean;
|
| 54 |
+
};
|
| 55 |
+
type MenuLinkProps = Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "children"> & {
|
| 56 |
+
/** Content rendered inside the Link */
|
| 57 |
+
children: React.ReactNode;
|
| 58 |
+
/** Disables the menu item */
|
| 59 |
+
disabled?: boolean;
|
| 60 |
+
};
|
| 61 |
+
type MenuLink = <T extends ComponentType<any> | "a" = AppsSDKUI.LinkComponent>(props: Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href"> & MenuLinkProps & {
|
| 62 |
+
/**
|
| 63 |
+
* Override the default component used for the link. This is useful for
|
| 64 |
+
* using a routing library, or SSR rendering.
|
| 65 |
+
* purposes.
|
| 66 |
+
*
|
| 67 |
+
* @default 'a'
|
| 68 |
+
*/
|
| 69 |
+
as?: T;
|
| 70 |
+
} & ComponentProps<T>) => ReactNode;
|
| 71 |
+
export type MenuContentProps = {
|
| 72 |
+
children: React.ReactNode;
|
| 73 |
+
/**
|
| 74 |
+
* The preferred side of the trigger to render against when open. Will be reversed when collisions occur.
|
| 75 |
+
* @default bottom
|
| 76 |
+
*/
|
| 77 |
+
side?: DropdownMenu.DropdownMenuContentProps["side"];
|
| 78 |
+
/**
|
| 79 |
+
* The distance in pixels from the trigger.
|
| 80 |
+
* @default 5
|
| 81 |
+
*/
|
| 82 |
+
sideOffset?: DropdownMenu.DropdownMenuContentProps["sideOffset"];
|
| 83 |
+
/**
|
| 84 |
+
* The preferred alignment against the trigger. May change when collisions occur.
|
| 85 |
+
* @default center
|
| 86 |
+
*/
|
| 87 |
+
align?: DropdownMenu.DropdownMenuContentProps["align"];
|
| 88 |
+
/**
|
| 89 |
+
* An offset in pixels from the "start" or "end" alignment options.
|
| 90 |
+
* @default 0
|
| 91 |
+
*/
|
| 92 |
+
alignOffset?: DropdownMenu.DropdownMenuContentProps["alignOffset"];
|
| 93 |
+
/**
|
| 94 |
+
* Defines the `width` property of the content
|
| 95 |
+
* @default auto
|
| 96 |
+
*/
|
| 97 |
+
width?: number | "auto";
|
| 98 |
+
/**
|
| 99 |
+
* Defines the `min-width` property of the content, in pixels.
|
| 100 |
+
* @default 300
|
| 101 |
+
*/
|
| 102 |
+
minWidth?: number | "auto";
|
| 103 |
+
/**
|
| 104 |
+
* Defines the `max-width` property of the content, in pixels.
|
| 105 |
+
*/
|
| 106 |
+
maxHeight?: number;
|
| 107 |
+
};
|
| 108 |
+
export type SubmenuProps = {
|
| 109 |
+
children: React.ReactNode;
|
| 110 |
+
/** Force the menu to remain open or closed */
|
| 111 |
+
forceOpen?: boolean;
|
| 112 |
+
/** Callback triggered when the modal is opened */
|
| 113 |
+
onOpen?: () => void;
|
| 114 |
+
/** Callback triggered when the modal is closed */
|
| 115 |
+
onClose?: () => void;
|
| 116 |
+
};
|
| 117 |
+
type SubContentProps = {
|
| 118 |
+
children: ReactNode;
|
| 119 |
+
sideOffset?: DropdownMenu.DropdownMenuSubContentProps["sideOffset"];
|
| 120 |
+
alignOffset?: DropdownMenu.DropdownMenuSubContentProps["alignOffset"];
|
| 121 |
+
width?: number | "auto";
|
| 122 |
+
minWidth?: number | "auto";
|
| 123 |
+
maxHeight?: number;
|
| 124 |
+
};
|
| 125 |
+
export type MenuRadioGroupProps<T extends string> = {
|
| 126 |
+
/** Controlled value */
|
| 127 |
+
value: T;
|
| 128 |
+
/** Fired when selection changes */
|
| 129 |
+
onChange: (value: T) => void;
|
| 130 |
+
children: ReactNode;
|
| 131 |
+
/**
|
| 132 |
+
* The orientation of the indicator within the radio item.
|
| 133 |
+
* @default end
|
| 134 |
+
*/
|
| 135 |
+
indicatorPosition?: "start" | "end";
|
| 136 |
+
};
|
| 137 |
+
export type MenuRadioItemProps<T extends string> = {
|
| 138 |
+
value: T;
|
| 139 |
+
/** Class applied to the radio item */
|
| 140 |
+
className?: string;
|
| 141 |
+
children: ReactNode;
|
| 142 |
+
/** Callback triggered when the radio item is pressed */
|
| 143 |
+
onSelect?: DropdownMenu.DropdownMenuItemProps["onSelect"];
|
| 144 |
+
/** Disables the radio item */
|
| 145 |
+
disabled?: boolean;
|
| 146 |
+
};
|
| 147 |
+
export type MenuCheckboxItemProps = {
|
| 148 |
+
/** Controlled checked state of the checkbox item */
|
| 149 |
+
checked?: DropdownMenu.DropdownMenuCheckboxItemProps["checked"];
|
| 150 |
+
/** Event handler called when the checked state changes */
|
| 151 |
+
onCheckedChange?: DropdownMenu.DropdownMenuCheckboxItemProps["onCheckedChange"];
|
| 152 |
+
/** Class applied to the checkbox item */
|
| 153 |
+
className?: string;
|
| 154 |
+
children: ReactNode;
|
| 155 |
+
/** Callback triggered when the checkbox item is pressed */
|
| 156 |
+
onSelect?: DropdownMenu.DropdownMenuItemProps["onSelect"];
|
| 157 |
+
/** Disables the checkbox item */
|
| 158 |
+
disabled?: boolean;
|
| 159 |
+
/**
|
| 160 |
+
* The orientation of the indicator within the checkbox item.
|
| 161 |
+
* @default end
|
| 162 |
+
*/
|
| 163 |
+
indicatorPosition?: "start" | "end";
|
| 164 |
+
/**
|
| 165 |
+
* Visual treatment for the checkbox indicator.
|
| 166 |
+
* @default solid
|
| 167 |
+
*/
|
| 168 |
+
indicatorVariant?: "solid" | "ghost";
|
| 169 |
+
};
|
| 170 |
+
export {};
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Menu/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export { Menu } from "./Menu";
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Popover/Popover.d.ts
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { Popover as RadixPopover } from "radix-ui";
|
| 2 |
+
import { type MouseEventHandler, type PointerEventHandler, type ReactNode } from "react";
|
| 3 |
+
export type PopoverProps = {
|
| 4 |
+
/** Sets controlled visibility state */
|
| 5 |
+
open?: boolean;
|
| 6 |
+
/** Callback invoked when visibility state changes */
|
| 7 |
+
onOpenChange?: (nextState: boolean) => void;
|
| 8 |
+
showOnHover?: boolean;
|
| 9 |
+
hoverOpenDelay?: number;
|
| 10 |
+
children: React.ReactNode;
|
| 11 |
+
};
|
| 12 |
+
export declare const Popover: {
|
| 13 |
+
({ open: controlledOpen, onOpenChange: controlledOnOpenChange, showOnHover, hoverOpenDelay, children, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
| 14 |
+
Trigger: ({ children, onPointerDown, onClick, }: {
|
| 15 |
+
children: React.ReactNode;
|
| 16 |
+
onPointerDown?: PointerEventHandler;
|
| 17 |
+
onClick?: MouseEventHandler;
|
| 18 |
+
}) => import("react/jsx-runtime").JSX.Element;
|
| 19 |
+
Content: (props: PopoverContentProps) => import("react/jsx-runtime").JSX.Element;
|
| 20 |
+
};
|
| 21 |
+
export type PopoverContentProps = {
|
| 22 |
+
children: ReactNode;
|
| 23 |
+
/**
|
| 24 |
+
* Whether to avoid collisions with vieport/scroll containersw.
|
| 25 |
+
* @default true
|
| 26 |
+
*/
|
| 27 |
+
avoidCollisions?: boolean;
|
| 28 |
+
/**
|
| 29 |
+
* Set the `width` of the popover, in pixels.
|
| 30 |
+
* @default auto
|
| 31 |
+
*/
|
| 32 |
+
width?: number | "auto";
|
| 33 |
+
/**
|
| 34 |
+
* Set the `min-width` of the popover, in pixels.
|
| 35 |
+
* @default 300
|
| 36 |
+
*/
|
| 37 |
+
minWidth?: number | "auto";
|
| 38 |
+
/**
|
| 39 |
+
* Set the `max-width` of the popover, in pixels.
|
| 40 |
+
*/
|
| 41 |
+
maxWidth?: number;
|
| 42 |
+
/**
|
| 43 |
+
* Background style for the popover
|
| 44 |
+
* @default default
|
| 45 |
+
*/
|
| 46 |
+
/**
|
| 47 |
+
* The preferred side of the trigger to render against when open. Will be reversed when collisions occur.
|
| 48 |
+
* @default bottom
|
| 49 |
+
*/
|
| 50 |
+
side?: RadixPopover.PopoverContentProps["side"];
|
| 51 |
+
/**
|
| 52 |
+
* The distance in pixels from the trigger.
|
| 53 |
+
* @default 8
|
| 54 |
+
*/
|
| 55 |
+
sideOffset?: RadixPopover.PopoverContentProps["sideOffset"];
|
| 56 |
+
/**
|
| 57 |
+
* The preferred alignment against the trigger. May change when collisions occur.
|
| 58 |
+
* @default center
|
| 59 |
+
*/
|
| 60 |
+
align?: RadixPopover.PopoverContentProps["align"];
|
| 61 |
+
/**
|
| 62 |
+
* An offset in pixels from the "start" or "end" alignment options.
|
| 63 |
+
* @default 0
|
| 64 |
+
*/
|
| 65 |
+
alignOffset?: RadixPopover.PopoverContentProps["alignOffset"];
|
| 66 |
+
/**
|
| 67 |
+
* Whether the popover surface should be translucent.
|
| 68 |
+
* @default false
|
| 69 |
+
*/
|
| 70 |
+
translucent?: boolean;
|
| 71 |
+
/** Additional class name to apply to the popover content, you usually don't want to set this, but ag-grid needs it to render a custom editor properly */
|
| 72 |
+
className?: string;
|
| 73 |
+
/**
|
| 74 |
+
* Auto focus the popover content when it is opened.
|
| 75 |
+
* @default true
|
| 76 |
+
*/
|
| 77 |
+
autoFocus?: boolean;
|
| 78 |
+
};
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Popover/index.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export { Popover, type PopoverContentProps, type PopoverProps } from "./Popover";
|
| 2 |
+
export { usePopoverController } from "./usePopoverController";
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Popover/pointerIntent.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export type Polygon = Point[];
|
| 2 |
+
type Point = {
|
| 3 |
+
x: number;
|
| 4 |
+
y: number;
|
| 5 |
+
};
|
| 6 |
+
export declare const createPointerIntentArea: (event: PointerEvent, hoverTarget: HTMLElement) => Point[];
|
| 7 |
+
export declare function isPointInPolygon(point: Point, polygon: Polygon): boolean;
|
| 8 |
+
export {};
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Popover/usePopoverContext.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { type RefObject } from "react";
|
| 2 |
+
export type PopoverContextValue = {
|
| 3 |
+
open: boolean;
|
| 4 |
+
setOpen: (next: boolean) => void;
|
| 5 |
+
shake: boolean;
|
| 6 |
+
setShake: (next: boolean) => void;
|
| 7 |
+
showOnHover: boolean;
|
| 8 |
+
temporarilyPreventClickToClose: boolean;
|
| 9 |
+
onTriggerEnter: () => void;
|
| 10 |
+
onTriggerLeave: () => void;
|
| 11 |
+
hoverOpenFocusedWithTab: RefObject<boolean>;
|
| 12 |
+
isPointerInTransitRef: RefObject<boolean>;
|
| 13 |
+
triggerRef: RefObject<HTMLButtonElement | null>;
|
| 14 |
+
contentRef: RefObject<HTMLDivElement | null>;
|
| 15 |
+
};
|
| 16 |
+
export declare const PopoverContext: import("react").Context<PopoverContextValue | null>;
|
| 17 |
+
export declare const usePopoverContext: () => PopoverContextValue;
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Popover/usePopoverController.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export declare const usePopoverClose: () => () => void;
|
| 2 |
+
export declare const usePopoverShake: () => () => void;
|
| 3 |
+
export declare const usePopoverController: () => {
|
| 4 |
+
/** Plays a short shake animation on the modal. */
|
| 5 |
+
shake: () => void;
|
| 6 |
+
/** Imperatively closes the modal. */
|
| 7 |
+
close: () => void;
|
| 8 |
+
};
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/RadioGroup/RadioGroup.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React from "react";
|
| 2 |
+
type Direction = "col" | "row";
|
| 3 |
+
export type RadioGroupProps<T extends string> = {
|
| 4 |
+
"defaultValue"?: T;
|
| 5 |
+
"value"?: T;
|
| 6 |
+
"name"?: string;
|
| 7 |
+
"onChange"?: (value: T) => void;
|
| 8 |
+
/** Accessible label for the radio options */
|
| 9 |
+
"aria-label": string;
|
| 10 |
+
/** Determines the layout direction of the radio items
|
| 11 |
+
* @default row
|
| 12 |
+
*/
|
| 13 |
+
"direction"?: Direction;
|
| 14 |
+
/** Controls whether the entire radio group is disabled */
|
| 15 |
+
"disabled"?: boolean;
|
| 16 |
+
/** Class applied to the radio group container */
|
| 17 |
+
"className"?: string;
|
| 18 |
+
"children": React.ReactNode;
|
| 19 |
+
"required"?: boolean;
|
| 20 |
+
};
|
| 21 |
+
export declare const RadioGroup: {
|
| 22 |
+
<T extends string>({ onChange, children, className, direction, disabled, ...restProps }: RadioGroupProps<T>): import("react/jsx-runtime").JSX.Element;
|
| 23 |
+
Item: <T extends string>({ value, disabled: itemDisabled, required, children, className, block, ...restProps }: RadioGroupItemProps<T>) => import("react/jsx-runtime").JSX.Element;
|
| 24 |
+
};
|
| 25 |
+
export type RadioGroupItemProps<T extends string> = {
|
| 26 |
+
value: T;
|
| 27 |
+
/** Determines if a given radio item is disabled */
|
| 28 |
+
disabled?: boolean;
|
| 29 |
+
required?: boolean;
|
| 30 |
+
block?: boolean;
|
| 31 |
+
className?: string;
|
| 32 |
+
children: React.ReactNode;
|
| 33 |
+
};
|
| 34 |
+
export {};
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/RadioGroup/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export { RadioGroup, type RadioGroupItemProps, type RadioGroupProps } from "./RadioGroup";
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/SegmentedControl/SegmentedControl.d.ts
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { type ControlSize, type Sizes } from "../../types";
|
| 2 |
+
export type SizeVariant = "2xs" | "xs" | "sm" | "md" | "lg" | "xl";
|
| 3 |
+
export type SegmentedControlProps<T extends string> = {
|
| 4 |
+
/**
|
| 5 |
+
* Controlled value for the group
|
| 6 |
+
*/
|
| 7 |
+
"value": T;
|
| 8 |
+
/** Callback for when a new value is selected */
|
| 9 |
+
"onChange"?: (nextValue: T) => void;
|
| 10 |
+
/** Callback any time the control is clicked (even if a new value was not selected) */
|
| 11 |
+
"onClick"?: () => void;
|
| 12 |
+
/**
|
| 13 |
+
* Text read aloud to screen readers when the control is focused
|
| 14 |
+
*/
|
| 15 |
+
"aria-label": string;
|
| 16 |
+
/**
|
| 17 |
+
* Controls the size of the segmented control
|
| 18 |
+
*
|
| 19 |
+
* | 3xs | 2xs | xs | sm | md | lg | xl | 2xl | 3xl |
|
| 20 |
+
* | ------- | ------- | ------- | ------- | ------- | ------- | ------- | ------- | ------- |
|
| 21 |
+
* | `22px` | `24px` | `26px` | `28px` | `32px` | `36px` | `40px` | `44px` | `48px` |
|
| 22 |
+
*
|
| 23 |
+
* @default md
|
| 24 |
+
*/
|
| 25 |
+
"size"?: ControlSize;
|
| 26 |
+
/**
|
| 27 |
+
* Controls gutter on the edges of the button, defaults to value from `size`.
|
| 28 |
+
*
|
| 29 |
+
* | 2xs | xs | sm | md | lg | xl |
|
| 30 |
+
* | ------ | ------ | ------ | ------ | ------ | ------ |
|
| 31 |
+
* | `6px` | `8px` | `10px` | `12px` | `14px` | `16px` |
|
| 32 |
+
*/
|
| 33 |
+
"gutterSize"?: Sizes<"2xs" | "xs" | "sm" | "md" | "lg" | "xl">;
|
| 34 |
+
/** Disable the entire group */
|
| 35 |
+
"disabled"?: boolean;
|
| 36 |
+
/**
|
| 37 |
+
* Display the control as a block element with equal width segments
|
| 38 |
+
* @default false
|
| 39 |
+
*/
|
| 40 |
+
"block"?: boolean;
|
| 41 |
+
/**
|
| 42 |
+
* Determines if the segment control, and its options, should be a fully rounded pill shape.
|
| 43 |
+
* @default false
|
| 44 |
+
*/
|
| 45 |
+
"pill"?: boolean;
|
| 46 |
+
"className"?: string;
|
| 47 |
+
"children": React.ReactNode;
|
| 48 |
+
};
|
| 49 |
+
export declare const SegmentedControl: {
|
| 50 |
+
<T extends string>({ value, onChange, children, block, pill, size, gutterSize, className, onClick, ...restProps }: SegmentedControlProps<T>): import("react/jsx-runtime").JSX.Element;
|
| 51 |
+
Option: ({ children, ...restProps }: SegmentedControlOptionProps) => import("react/jsx-runtime").JSX.Element;
|
| 52 |
+
};
|
| 53 |
+
type SegmentedControlOptionProps = {
|
| 54 |
+
/**
|
| 55 |
+
* Option value
|
| 56 |
+
*/
|
| 57 |
+
"value": string;
|
| 58 |
+
/**
|
| 59 |
+
* Text read aloud to screen readers when the option is focused
|
| 60 |
+
*/
|
| 61 |
+
"aria-label"?: string;
|
| 62 |
+
/**
|
| 63 |
+
* Content to render in the option
|
| 64 |
+
*/
|
| 65 |
+
"children": React.ReactNode;
|
| 66 |
+
/**
|
| 67 |
+
* Disable the individual option
|
| 68 |
+
*/
|
| 69 |
+
"disabled"?: boolean;
|
| 70 |
+
};
|
| 71 |
+
export {};
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/SegmentedControl/index.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export { SegmentedControl } from "./SegmentedControl";
|
| 2 |
+
export type { SegmentedControlProps, SizeVariant } from "./SegmentedControl";
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Select/Select.d.ts
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React, { type ReactNode } from "react";
|
| 2 |
+
import { type SelectControlProps } from "../SelectControl";
|
| 3 |
+
export type Option<T extends string = string> = {
|
| 4 |
+
value: T;
|
| 5 |
+
label: string;
|
| 6 |
+
/** Disable the option */
|
| 7 |
+
disabled?: boolean;
|
| 8 |
+
/** Displayed as secondary text below the option `label` */
|
| 9 |
+
description?: React.ReactNode;
|
| 10 |
+
tooltip?: {
|
| 11 |
+
content: React.ReactNode;
|
| 12 |
+
maxWidth?: number;
|
| 13 |
+
};
|
| 14 |
+
};
|
| 15 |
+
export type OptionGroup<T extends Option> = {
|
| 16 |
+
label: string;
|
| 17 |
+
options: T[];
|
| 18 |
+
optionsLimit?: {
|
| 19 |
+
label: string;
|
| 20 |
+
limit: number;
|
| 21 |
+
};
|
| 22 |
+
};
|
| 23 |
+
export type Options<T extends Option> = T[] | OptionGroup<T>[];
|
| 24 |
+
type CallbackWithOption<T extends Option> = (option: T) => void;
|
| 25 |
+
type CallbackWithOptions<T extends Option> = (options: T[]) => void;
|
| 26 |
+
type CallbackWithActionId = (actionId: string) => void;
|
| 27 |
+
type SearchPredicate<T extends Option> = (option: T, searchTerm: string) => boolean;
|
| 28 |
+
type Action = {
|
| 29 |
+
/** Unique ID to identify the action with */
|
| 30 |
+
id: string;
|
| 31 |
+
/** Label display for the action */
|
| 32 |
+
label: string;
|
| 33 |
+
/** Icon displayed to the left of the action */
|
| 34 |
+
Icon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
| 35 |
+
/** Custom class applied to the action container */
|
| 36 |
+
className?: string;
|
| 37 |
+
/** Callback invoked when the action is pressed */
|
| 38 |
+
onSelect: CallbackWithActionId;
|
| 39 |
+
};
|
| 40 |
+
type Actions = Action[];
|
| 41 |
+
export type PopoverSide = "top" | "bottom";
|
| 42 |
+
export type PopoverAlign = "start" | "center" | "end";
|
| 43 |
+
type SingleSelectProps<T extends Option> = {
|
| 44 |
+
/**
|
| 45 |
+
* Determines if the select should support multiple selection
|
| 46 |
+
* @default false
|
| 47 |
+
*/
|
| 48 |
+
multiple?: false;
|
| 49 |
+
value: string;
|
| 50 |
+
onChange: CallbackWithOption<T>;
|
| 51 |
+
/**
|
| 52 |
+
* Customize the rendered output of the trigger
|
| 53 |
+
* NOTE: Must be passed as a stable reference, not created inline.
|
| 54 |
+
*/
|
| 55 |
+
TriggerView?: React.FC<T>;
|
| 56 |
+
};
|
| 57 |
+
type MultiSelectTriggerViewProps<T extends Option> = {
|
| 58 |
+
values: T[];
|
| 59 |
+
selectedAll: boolean;
|
| 60 |
+
};
|
| 61 |
+
type MultiSelectProps<T extends Option> = {
|
| 62 |
+
/**
|
| 63 |
+
* Determines if the select should support multiple selection
|
| 64 |
+
* @default false
|
| 65 |
+
*/
|
| 66 |
+
multiple: true;
|
| 67 |
+
value: string[];
|
| 68 |
+
onChange: CallbackWithOptions<T>;
|
| 69 |
+
/**
|
| 70 |
+
* Customize the rendered output of the trigger
|
| 71 |
+
* NOTE: Must be passed as a stable reference, not created line.
|
| 72 |
+
*/
|
| 73 |
+
TriggerView?: React.FC<MultiSelectTriggerViewProps<T>>;
|
| 74 |
+
};
|
| 75 |
+
export type SelectProps<T extends Option> = (SingleSelectProps<T> | MultiSelectProps<T>) & {
|
| 76 |
+
options: Options<T>;
|
| 77 |
+
/**
|
| 78 |
+
* Disables the select visually and from interactions
|
| 79 |
+
* @default false
|
| 80 |
+
*/
|
| 81 |
+
disabled?: boolean;
|
| 82 |
+
/**
|
| 83 |
+
* Allows the select to be targeted with htmlFor
|
| 84 |
+
*/
|
| 85 |
+
id?: string;
|
| 86 |
+
/**
|
| 87 |
+
* Marks the select as a required field when using native form submission
|
| 88 |
+
*/
|
| 89 |
+
required?: boolean;
|
| 90 |
+
/**
|
| 91 |
+
* Creates the ability to query the value with `[name="${name}"]`
|
| 92 |
+
*/
|
| 93 |
+
name?: string;
|
| 94 |
+
/**
|
| 95 |
+
* Placeholder text for the select
|
| 96 |
+
* @default Select...
|
| 97 |
+
*/
|
| 98 |
+
placeholder?: string;
|
| 99 |
+
/**
|
| 100 |
+
* Placeholder text for the select while loading. Behaves exactly like `placeholder`, and `value` will be shown if provided.
|
| 101 |
+
* @default Loading...
|
| 102 |
+
*/
|
| 103 |
+
loadingPlaceholder?: string;
|
| 104 |
+
/**
|
| 105 |
+
* Displays loading indicator on top of button contents
|
| 106 |
+
* @default false
|
| 107 |
+
*/
|
| 108 |
+
loading?: boolean;
|
| 109 |
+
/**
|
| 110 |
+
* Style variant for the select trigger
|
| 111 |
+
* @default outline
|
| 112 |
+
*/
|
| 113 |
+
variant?: SelectControlProps["variant"];
|
| 114 |
+
/**
|
| 115 |
+
* Determines if the select trigger should be a fully rounded pill shape
|
| 116 |
+
* @default false
|
| 117 |
+
*/
|
| 118 |
+
pill?: boolean;
|
| 119 |
+
/**
|
| 120 |
+
* Controls size of the select trigger, and several other aspects of trigger styling.
|
| 121 |
+
*
|
| 122 |
+
* | 3xs | 2xs | xs | sm | md | lg | xl | 2xl | 3xl |
|
| 123 |
+
* | ------- | ------- | ------- | ------- | ------- | ------- | ------- | ------- | ------- |
|
| 124 |
+
* | `22px` | `24px` | `26px` | `28px` | `32px` | `36px` | `40px` | `44px` | `48px` |
|
| 125 |
+
* @default md
|
| 126 |
+
*/
|
| 127 |
+
size?: SelectControlProps["size"];
|
| 128 |
+
/**
|
| 129 |
+
* Icon displayed in the far right of the select trigger
|
| 130 |
+
* @default dropdown
|
| 131 |
+
*/
|
| 132 |
+
dropdownIconType?: SelectControlProps["dropdownIconType"];
|
| 133 |
+
/**
|
| 134 |
+
* Actions to display below the options list.
|
| 135 |
+
*/
|
| 136 |
+
actions?: Actions;
|
| 137 |
+
/** Custom class applied to option containers */
|
| 138 |
+
optionClassName?: string;
|
| 139 |
+
/**
|
| 140 |
+
* Customize the rendered output of individual options
|
| 141 |
+
* NOTE: Must be passed as a stable reference, not created line.
|
| 142 |
+
*/
|
| 143 |
+
OptionView?: React.FC<T>;
|
| 144 |
+
/** Icon displayed at the start of the select trigger */
|
| 145 |
+
TriggerStartIcon?: SelectControlProps["StartIcon"];
|
| 146 |
+
/**
|
| 147 |
+
* Custom class applied to the select trigger
|
| 148 |
+
*/
|
| 149 |
+
triggerClassName?: string;
|
| 150 |
+
/**
|
| 151 |
+
* Applies a negative margin using the current gutter to optically align the trigger
|
| 152 |
+
* with surrounding content.
|
| 153 |
+
*/
|
| 154 |
+
opticallyAlign?: "start" | "end";
|
| 155 |
+
/**
|
| 156 |
+
* Display a clear action that allows the select to be unset.
|
| 157 |
+
* @default false
|
| 158 |
+
*/
|
| 159 |
+
clearable?: boolean;
|
| 160 |
+
/**
|
| 161 |
+
* Extends select to 100% of available width.
|
| 162 |
+
* @default true
|
| 163 |
+
*/
|
| 164 |
+
block?: boolean;
|
| 165 |
+
/**
|
| 166 |
+
* The preferred side of the trigger to render against when open. Will be reversed when collisions occur.
|
| 167 |
+
* @default bottom
|
| 168 |
+
*/
|
| 169 |
+
side?: PopoverSide;
|
| 170 |
+
/**
|
| 171 |
+
* The preferred alignment against the trigger. May change when collisions occur.
|
| 172 |
+
* @default center
|
| 173 |
+
*/
|
| 174 |
+
align?: PopoverAlign;
|
| 175 |
+
/**
|
| 176 |
+
* An offset in pixels from the "start" or "end" alignment options.
|
| 177 |
+
* @default 0
|
| 178 |
+
*/
|
| 179 |
+
alignOffset?: number;
|
| 180 |
+
/**
|
| 181 |
+
* Prevents collision detection in the custom menu. Use with caution.
|
| 182 |
+
* @default true
|
| 183 |
+
*/
|
| 184 |
+
avoidCollisions?: boolean;
|
| 185 |
+
/**
|
| 186 |
+
* Set the width of the custom select menu
|
| 187 |
+
* @default auto
|
| 188 |
+
*/
|
| 189 |
+
listWidth?: number | "auto";
|
| 190 |
+
/**
|
| 191 |
+
* Defines the `min-width` property of the custom select menu, in pixels.
|
| 192 |
+
* @default auto
|
| 193 |
+
*/
|
| 194 |
+
listMinWidth?: number | "auto";
|
| 195 |
+
/**
|
| 196 |
+
* Defines the `max-width` property of the custom select menu, in pixels.
|
| 197 |
+
* @default auto
|
| 198 |
+
*/
|
| 199 |
+
listMaxWidth?: number | "auto";
|
| 200 |
+
/** Predicate used to filter searches */
|
| 201 |
+
searchPredicate?: SearchPredicate<T>;
|
| 202 |
+
/** Placeholder of the search input */
|
| 203 |
+
searchPlaceholder?: string;
|
| 204 |
+
/**
|
| 205 |
+
* Message displayed when search results are empty. Can be a simple string, or custom JSX.
|
| 206 |
+
*/
|
| 207 |
+
searchEmptyMessage?: ReactNode;
|
| 208 |
+
};
|
| 209 |
+
export declare const Select: <T extends Option>(props: SelectProps<T>) => import("react/jsx-runtime").JSX.Element;
|
| 210 |
+
type SelectTriggerProps = {
|
| 211 |
+
onOpenChange?: (maybeNextState?: boolean) => void;
|
| 212 |
+
tabIndex?: number;
|
| 213 |
+
["aria-hidden"]?: "false" | "true";
|
| 214 |
+
ref?: React.Ref<HTMLButtonElement | null>;
|
| 215 |
+
};
|
| 216 |
+
export declare const SelectTrigger: (props: SelectTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
| 217 |
+
export {};
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Select/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export { Select, type Option, type OptionGroup, type SelectProps } from "./Select";
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/SelectControl/SelectControl.d.ts
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { type ReactNode } from "react";
|
| 2 |
+
import type { ControlSize, Variants } from "../../types";
|
| 3 |
+
export type DropdownIconType = "chevronDown" | "dropdown" | "none";
|
| 4 |
+
export type SelectControlProps = Omit<React.HTMLAttributes<HTMLSpanElement>, "onClick"> & {
|
| 5 |
+
/**
|
| 6 |
+
* Style variant for the Button
|
| 7 |
+
* @default fill
|
| 8 |
+
*/
|
| 9 |
+
variant?: Variants<"soft" | "outline" | "ghost">;
|
| 10 |
+
/**
|
| 11 |
+
* Determines if the control should be a fully rounded pill shape
|
| 12 |
+
* @default false
|
| 13 |
+
*/
|
| 14 |
+
pill?: boolean;
|
| 15 |
+
/**
|
| 16 |
+
* Extends the control to 100% of available width.
|
| 17 |
+
* @default true
|
| 18 |
+
*/
|
| 19 |
+
block?: boolean;
|
| 20 |
+
/**
|
| 21 |
+
* Applies a negative margin using the current gutter to optically align the control
|
| 22 |
+
* with surrounding content.
|
| 23 |
+
*/
|
| 24 |
+
opticallyAlign?: "start" | "end";
|
| 25 |
+
/**
|
| 26 |
+
* Disables the control visually and from interactions
|
| 27 |
+
* @default false
|
| 28 |
+
*/
|
| 29 |
+
disabled?: boolean;
|
| 30 |
+
/**
|
| 31 |
+
* Visually indicates that the control is in an invalid state
|
| 32 |
+
* @default false
|
| 33 |
+
*/
|
| 34 |
+
invalid?: boolean;
|
| 35 |
+
/**
|
| 36 |
+
* Indicates that the control is selected. An unselected state will display placeholder styles.
|
| 37 |
+
* @default false
|
| 38 |
+
*/
|
| 39 |
+
selected?: boolean;
|
| 40 |
+
/**
|
| 41 |
+
* Display a clear action that allows the select to be unset.
|
| 42 |
+
* @default false
|
| 43 |
+
*/
|
| 44 |
+
onClearClick?: () => void;
|
| 45 |
+
/**
|
| 46 |
+
* Primary handler for when the control is selected with pointer or keyboard events
|
| 47 |
+
*/
|
| 48 |
+
onInteract?: () => void;
|
| 49 |
+
/**
|
| 50 |
+
* Determines size of the size and spacing of the control.
|
| 51 |
+
*
|
| 52 |
+
* | 3xs | 2xs | xs | sm | md | lg | xl | 2xl | 3xl |
|
| 53 |
+
* | ------- | ------- | ------- | ------- | ------- | ------- | ------- | ------- | ------- |
|
| 54 |
+
* | `22px` | `24px` | `26px` | `28px` | `32px` | `36px` | `40px` | `44px` | `48px` |
|
| 55 |
+
* @default md
|
| 56 |
+
*/
|
| 57 |
+
size?: ControlSize;
|
| 58 |
+
/**
|
| 59 |
+
* Displays loading indicator on top of button contents
|
| 60 |
+
* @default false
|
| 61 |
+
*/
|
| 62 |
+
loading?: boolean;
|
| 63 |
+
/**
|
| 64 |
+
* Icon displayed in the far right of the select trigger
|
| 65 |
+
* @default dropdown
|
| 66 |
+
*/
|
| 67 |
+
dropdownIconType?: DropdownIconType;
|
| 68 |
+
/** Icon displayed at the start of the control */
|
| 69 |
+
StartIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
| 70 |
+
/** Custom class applied to the control element */
|
| 71 |
+
className?: string;
|
| 72 |
+
/** Content rendered for the control */
|
| 73 |
+
children: ReactNode;
|
| 74 |
+
ref?: React.Ref<HTMLSpanElement | null>;
|
| 75 |
+
};
|
| 76 |
+
export declare const SelectControl: ({ ref, onPointerDown, onKeyDown, onPointerEnter, onInteract, invalid, disabled, children, className, variant, size, block, opticallyAlign, pill, loading, onClearClick, selected, StartIcon, dropdownIconType, ...restProps }: SelectControlProps) => import("react/jsx-runtime").JSX.Element;
|
| 77 |
+
type DropdownIconProps = {
|
| 78 |
+
iconType: Omit<DropdownIconType, "none">;
|
| 79 |
+
};
|
| 80 |
+
export declare const DropdownIcon: ({ iconType }: DropdownIconProps) => import("react/jsx-runtime").JSX.Element;
|
| 81 |
+
export {};
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/SelectControl/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export { SelectControl, type DropdownIconType, type SelectControlProps } from "./SelectControl";
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/ShimmerText/ShimmerText.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { type ReactNode } from "react";
|
| 2 |
+
export declare const ShimmerText: ({ as: Tag, children, className, }: {
|
| 3 |
+
as?: "p" | "span" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
|
| 4 |
+
children: ReactNode;
|
| 5 |
+
className?: string;
|
| 6 |
+
}) => import("react/jsx-runtime").JSX.Element;
|
| 7 |
+
export declare const ShimmerableText: ({ as: Tag, children, className, shimmer, ...restProps }: {
|
| 8 |
+
as?: "p" | "span" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
|
| 9 |
+
children: ReactNode;
|
| 10 |
+
className?: string;
|
| 11 |
+
shimmer?: boolean;
|
| 12 |
+
}) => import("react/jsx-runtime").JSX.Element;
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/ShimmerText/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export { ShimmerText, ShimmerableText } from "./ShimmerText";
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Slider/Slider.d.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { Slider as RadixSlider } from "radix-ui";
|
| 2 |
+
import { type ElementRef, type FocusEventHandler, type ReactNode } from "react";
|
| 3 |
+
export type SliderMark = {
|
| 4 |
+
value: number;
|
| 5 |
+
label: string;
|
| 6 |
+
};
|
| 7 |
+
export type SliderProps = {
|
| 8 |
+
/**
|
| 9 |
+
* The current value of the slider
|
| 10 |
+
*/
|
| 11 |
+
value: number;
|
| 12 |
+
/**
|
| 13 |
+
* The minimum value the slider can have
|
| 14 |
+
*/
|
| 15 |
+
min: number;
|
| 16 |
+
/**
|
| 17 |
+
* The maximum value the slider can have
|
| 18 |
+
*/
|
| 19 |
+
max: number;
|
| 20 |
+
/**
|
| 21 |
+
* The step increment between slider values
|
| 22 |
+
*/
|
| 23 |
+
step: number;
|
| 24 |
+
/**
|
| 25 |
+
* Value that will be offered as a "reset to default" option
|
| 26 |
+
*/
|
| 27 |
+
resetValue?: number;
|
| 28 |
+
/**
|
| 29 |
+
* String that will be displayed in the tooltip
|
| 30 |
+
* @default Reset to default
|
| 31 |
+
*/
|
| 32 |
+
resetTooltip?: string;
|
| 33 |
+
/**
|
| 34 |
+
* Unit to display next to the slider value (e.g., ms, px)
|
| 35 |
+
*/
|
| 36 |
+
unit?: string;
|
| 37 |
+
/**
|
| 38 |
+
* Unit to display to the right of the slider value (e.g., $)
|
| 39 |
+
*/
|
| 40 |
+
prefixUnit?: string;
|
| 41 |
+
/**
|
| 42 |
+
* Optional label for the slider, which can be a string or React node.
|
| 43 |
+
*/
|
| 44 |
+
label?: ReactNode;
|
| 45 |
+
/**
|
| 46 |
+
* List of marks to display below the slider track
|
| 47 |
+
*/
|
| 48 |
+
marks?: SliderMark[];
|
| 49 |
+
/**
|
| 50 |
+
* Color of the slider track
|
| 51 |
+
*/
|
| 52 |
+
trackColor?: string;
|
| 53 |
+
/**
|
| 54 |
+
* Color of the slider progress along the track
|
| 55 |
+
*/
|
| 56 |
+
rangeColor?: string;
|
| 57 |
+
className?: string;
|
| 58 |
+
disabled?: boolean;
|
| 59 |
+
/**
|
| 60 |
+
* Callback function invoked when the slider value changes.
|
| 61 |
+
*
|
| 62 |
+
* @param value - The new value of the slider.
|
| 63 |
+
*/
|
| 64 |
+
onChange: (value: number) => void;
|
| 65 |
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
| 66 |
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
| 67 |
+
ref?: React.Ref<ElementRef<typeof RadixSlider.Root> | null>;
|
| 68 |
+
};
|
| 69 |
+
export declare const Slider: import("react").MemoExoticComponent<(props: SliderProps) => import("react/jsx-runtime").JSX.Element>;
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Slider/index.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export { Slider } from "./Slider";
|
| 2 |
+
export type { SliderMark, SliderProps } from "./Slider";
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Switch/Switch.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { type FocusEventHandler, type ReactNode } from "react";
|
| 2 |
+
export type SwitchProps = {
|
| 3 |
+
/** The `id` of the switch. */
|
| 4 |
+
id?: string;
|
| 5 |
+
/** The state of the switch when it is initially rendered. Use when you do not need to control its state. */
|
| 6 |
+
defaultChecked?: boolean;
|
| 7 |
+
/** The controlled state of the switch. Must be used in conjunction with `onCheckedChange`. */
|
| 8 |
+
checked?: boolean;
|
| 9 |
+
/** Optional accessible label rendered to the right of the checkbox. */
|
| 10 |
+
label?: ReactNode;
|
| 11 |
+
/** Event handler called when the state of the switch changes. */
|
| 12 |
+
onCheckedChange?: (nextState: boolean) => void;
|
| 13 |
+
/** Event handler called when the checkbox looses focus. */
|
| 14 |
+
onBlur?: FocusEventHandler<HTMLButtonElement>;
|
| 15 |
+
/** Event handler called when the checkbox gains focus. */
|
| 16 |
+
onFocus?: FocusEventHandler<HTMLButtonElement>;
|
| 17 |
+
/** When `true`, prevents the user from interacting with the switch. */
|
| 18 |
+
disabled?: boolean;
|
| 19 |
+
/** When `true`, indicates that the user must check the switch before the owning form can be submitted. */
|
| 20 |
+
required?: boolean;
|
| 21 |
+
/** The name of the switch. Submitted with its owning form as part of a name/value pair. */
|
| 22 |
+
name?: string;
|
| 23 |
+
/** The value given as data when submitted with a `name`. */
|
| 24 |
+
value?: string;
|
| 25 |
+
/** CSS classes applied to wrapper node */
|
| 26 |
+
className?: string;
|
| 27 |
+
/**
|
| 28 |
+
* The position of the label relative to the switch.
|
| 29 |
+
* @default end
|
| 30 |
+
*/
|
| 31 |
+
labelPosition?: "start" | "end";
|
| 32 |
+
};
|
| 33 |
+
export declare const Switch: ({ className, label, id: propsId, disabled, labelPosition, ...restProps }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Switch/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export { Switch, type SwitchProps } from "./Switch";
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/TagInput/TagInput.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { Sizes } from "../../types";
|
| 2 |
+
export type Tag = {
|
| 3 |
+
value: string;
|
| 4 |
+
valid: boolean;
|
| 5 |
+
};
|
| 6 |
+
export type TagInputProps = {
|
| 7 |
+
/**
|
| 8 |
+
* The state of the tag input when it is initially rendered, used when uncontrolled
|
| 9 |
+
*/
|
| 10 |
+
defaultValue?: Tag[];
|
| 11 |
+
/**
|
| 12 |
+
* The value of the tag input, used to control the tag input
|
| 13 |
+
*/
|
| 14 |
+
value?: Tag[];
|
| 15 |
+
/**
|
| 16 |
+
* Allows the tag input to be targeted with htmlFor
|
| 17 |
+
*/
|
| 18 |
+
id?: string;
|
| 19 |
+
/**
|
| 20 |
+
* Corresponds with Input height when rows=1
|
| 21 |
+
* @default xl
|
| 22 |
+
*/
|
| 23 |
+
size?: Sizes<"md" | "lg" | "xl" | "2xl" | "3xl">;
|
| 24 |
+
/**
|
| 25 |
+
* Callback function invoked when the tag list changes
|
| 26 |
+
*/
|
| 27 |
+
onChange?: (tags: Tag[]) => void;
|
| 28 |
+
/**
|
| 29 |
+
* Placeholder text for the input
|
| 30 |
+
*/
|
| 31 |
+
placeholder?: string;
|
| 32 |
+
/**
|
| 33 |
+
* A function that returns whether a given value is a valid tag.
|
| 34 |
+
* Invalid tags are highlighted in red.
|
| 35 |
+
* Tags are evaluated for validity only on creation; changing the validator function later has no effect
|
| 36 |
+
*/
|
| 37 |
+
validator?: (value: string) => boolean;
|
| 38 |
+
/**
|
| 39 |
+
* The maximum number of tags allowed before the input is disabled; displays a counter below the input
|
| 40 |
+
*/
|
| 41 |
+
maxTags?: number;
|
| 42 |
+
/**
|
| 43 |
+
* Whether to focus this input on mount
|
| 44 |
+
* @default false
|
| 45 |
+
*/
|
| 46 |
+
autoFocus?: boolean;
|
| 47 |
+
/**
|
| 48 |
+
* The minimum number of rows for the tag input
|
| 49 |
+
* @default 1
|
| 50 |
+
*/
|
| 51 |
+
rows?: number;
|
| 52 |
+
/**
|
| 53 |
+
* Controls what characters will count towards creating a new tag
|
| 54 |
+
* @default [",", " "]
|
| 55 |
+
*/
|
| 56 |
+
delimiters?: string[];
|
| 57 |
+
/**
|
| 58 |
+
* Disables the tag input visually and from interactions
|
| 59 |
+
*/
|
| 60 |
+
disabled?: boolean;
|
| 61 |
+
};
|
| 62 |
+
export declare const TagInput: (props: TagInputProps) => import("react/jsx-runtime").JSX.Element;
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/TagInput/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export { TagInput, type Tag, type TagInputProps } from "./TagInput";
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/TextLink/TextLink.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { type ComponentProps, type ComponentType, type ReactNode } from "react";
|
| 2 |
+
export type TextLinkProps = Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "children"> & {
|
| 3 |
+
/** Content rendered inside the Link */
|
| 4 |
+
children: React.ReactNode;
|
| 5 |
+
/**
|
| 6 |
+
* Applies a primary color to the link and removes the default `underline`.
|
| 7 |
+
* @default false
|
| 8 |
+
*/
|
| 9 |
+
primary?: boolean;
|
| 10 |
+
/**
|
| 11 |
+
* Apply `text-decoration: underline` to the Link
|
| 12 |
+
* @default true
|
| 13 |
+
*/
|
| 14 |
+
underline?: boolean;
|
| 15 |
+
/** Force external link behavior, which is automatically detected based on the URL. */
|
| 16 |
+
forceExternal?: boolean;
|
| 17 |
+
};
|
| 18 |
+
type MakeOptional<P, K extends keyof P> = Omit<P, K> & Partial<Pick<P, Extract<keyof P, K>>>;
|
| 19 |
+
type TextLink = <T extends ComponentType<any> | "a" = AppsSDKUI.LinkComponent>(props: Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href"> & TextLinkProps & {
|
| 20 |
+
/**
|
| 21 |
+
* Override the default component used for the link. This is useful for
|
| 22 |
+
* using a routing library, or SSR rendering.
|
| 23 |
+
* purposes.
|
| 24 |
+
*
|
| 25 |
+
* @default 'a'
|
| 26 |
+
*/
|
| 27 |
+
as?: T;
|
| 28 |
+
} & MakeOptional<ComponentProps<T>, "href" | "to">) => ReactNode;
|
| 29 |
+
export declare const TextLink: TextLink;
|
| 30 |
+
export {};
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/TextLink/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export { TextLink } from "./TextLink";
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Textarea/Textarea.d.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { type ControlSize, type Sizes, type Variants } from "../../types";
|
| 2 |
+
export type TextareaProps = {
|
| 3 |
+
/**
|
| 4 |
+
* Visual style of the textarea
|
| 5 |
+
* @default outline
|
| 6 |
+
*/
|
| 7 |
+
variant?: Variants<"outline" | "soft">;
|
| 8 |
+
/**
|
| 9 |
+
* Controls the size of the textarea
|
| 10 |
+
*
|
| 11 |
+
* | 3xs | 2xs | xs | sm | md | lg | xl | 2xl | 3xl |
|
| 12 |
+
* | ------- | ------- | ------- | ------- | ------- | ------- | ------- | ------- | ------- |
|
| 13 |
+
* | `22px` | `24px` | `26px` | `28px` | `32px` | `36px` | `40px` | `44px` | `48px` |
|
| 14 |
+
*
|
| 15 |
+
* @default md
|
| 16 |
+
*/
|
| 17 |
+
size?: ControlSize;
|
| 18 |
+
/**
|
| 19 |
+
* Controls gutter on the edges of the textarea, defaults to value from `size`.
|
| 20 |
+
*
|
| 21 |
+
* | 2xs | xs | sm | md | lg | xl |
|
| 22 |
+
* | ------ | ------ | ------ | ------ | ------ | ------ |
|
| 23 |
+
* | `6px` | `8px` | `10px` | `12px` | `14px` | `16px` |
|
| 24 |
+
*/
|
| 25 |
+
gutterSize?: Sizes<"2xs" | "xs" | "sm" | "md" | "lg" | "xl">;
|
| 26 |
+
/**
|
| 27 |
+
* Disables the textarea visually and from interactions
|
| 28 |
+
* @default false
|
| 29 |
+
*/
|
| 30 |
+
disabled?: boolean;
|
| 31 |
+
/**
|
| 32 |
+
* Mark the textarea as invalid
|
| 33 |
+
* @default false
|
| 34 |
+
*/
|
| 35 |
+
invalid?: boolean;
|
| 36 |
+
/**
|
| 37 |
+
* Allow autofill extensions to appear in the textarea
|
| 38 |
+
* @default false
|
| 39 |
+
*/
|
| 40 |
+
allowAutofillExtensions?: boolean;
|
| 41 |
+
/**
|
| 42 |
+
* Select all contents of the textarea when mounted.
|
| 43 |
+
* @default false
|
| 44 |
+
*/
|
| 45 |
+
autoSelect?: boolean;
|
| 46 |
+
/** Callback invoked when the textarea is autofilled by the browser */
|
| 47 |
+
onAutofill?: () => void;
|
| 48 |
+
/**
|
| 49 |
+
* Default number of rows to display
|
| 50 |
+
* @default 3
|
| 51 |
+
*/
|
| 52 |
+
rows?: number;
|
| 53 |
+
/**
|
| 54 |
+
* Automatically adjust the height of the textarea based on its contents.
|
| 55 |
+
* @default false
|
| 56 |
+
*/
|
| 57 |
+
autoResize?: boolean;
|
| 58 |
+
/**
|
| 59 |
+
* Maximum number of rows that can be displayed when autoResize is enabled.
|
| 60 |
+
* @default Math.max(rows, 10)
|
| 61 |
+
*/
|
| 62 |
+
maxRows?: number;
|
| 63 |
+
/** Ref for the textarea */
|
| 64 |
+
ref?: React.Ref<HTMLTextAreaElement | null>;
|
| 65 |
+
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "disabled" | "size">;
|
| 66 |
+
export declare const Textarea: (props: TextareaProps) => import("react/jsx-runtime").JSX.Element;
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Textarea/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export { Textarea, type TextareaProps } from "./Textarea";
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Tooltip/CopyTooltip.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { Tooltip as RadixTooltip } from "radix-ui";
|
| 2 |
+
export type CopyTooltipProps = {
|
| 3 |
+
children: React.ReactNode;
|
| 4 |
+
/** Value to copy to the clipboard */
|
| 5 |
+
copyValue: string;
|
| 6 |
+
/**
|
| 7 |
+
* Delay of when the tooltip is shown from first interaction, in milliseconds.
|
| 8 |
+
* @default 150
|
| 9 |
+
*/
|
| 10 |
+
openDelay?: number;
|
| 11 |
+
/**
|
| 12 |
+
* The preferred alignment against the trigger. May change when collisions occur.
|
| 13 |
+
* @default center
|
| 14 |
+
*/
|
| 15 |
+
align?: RadixTooltip.TooltipContentProps["align"];
|
| 16 |
+
/**
|
| 17 |
+
* An offset in pixels from the "start" or "end" alignment options.
|
| 18 |
+
* @default 0
|
| 19 |
+
*/
|
| 20 |
+
alignOffset?: RadixTooltip.TooltipContentProps["alignOffset"];
|
| 21 |
+
/**
|
| 22 |
+
* The preferred side of the trigger to render against when open. Will be reversed when collisions occur.
|
| 23 |
+
* @default top
|
| 24 |
+
*/
|
| 25 |
+
side?: RadixTooltip.TooltipContentProps["side"];
|
| 26 |
+
/**
|
| 27 |
+
* The distance in pixels from the trigger.
|
| 28 |
+
* @default 5
|
| 29 |
+
*/
|
| 30 |
+
sideOffset?: RadixTooltip.TooltipContentProps["sideOffset"];
|
| 31 |
+
};
|
| 32 |
+
export declare const CopyTooltip: ({ children, copyValue, openDelay, align, alignOffset, side, sideOffset, }: CopyTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Tooltip/Tooltip.d.ts
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { Tooltip as RadixTooltip } from "radix-ui";
|
| 2 |
+
import { type MouseEventHandler, type PointerEventHandler } from "react";
|
| 3 |
+
export type TooltipProps = {
|
| 4 |
+
children: React.ReactNode;
|
| 5 |
+
/**
|
| 6 |
+
* The content of the tooltip. If `null`, the tooltip will not render.
|
| 7 |
+
*/
|
| 8 |
+
content: React.ReactNode;
|
| 9 |
+
/**
|
| 10 |
+
* Defines the `max-width` of the tooltip content. `"none"` creates a single-line, naturally sized tooltip.
|
| 11 |
+
* @default 300
|
| 12 |
+
*/
|
| 13 |
+
maxWidth?: number | "none";
|
| 14 |
+
/**
|
| 15 |
+
* Forces the tooltip to remain open or closed
|
| 16 |
+
*/
|
| 17 |
+
forceOpen?: boolean;
|
| 18 |
+
/**
|
| 19 |
+
* Delay of when the tooltip is shown from first interaction, in milliseconds.
|
| 20 |
+
* @default 150
|
| 21 |
+
*/
|
| 22 |
+
openDelay?: number;
|
| 23 |
+
/** Indicates that the tooltip has interactive content, and should remain open when hovered. */
|
| 24 |
+
interactive?: boolean;
|
| 25 |
+
/**
|
| 26 |
+
* Short, 1-3 word tooltips, stylized inversely from normal tooltips
|
| 27 |
+
*/
|
| 28 |
+
compact?: boolean;
|
| 29 |
+
/**
|
| 30 |
+
* Prevents the tooltip from closing when the trigger is clicked right after opening
|
| 31 |
+
* @default false
|
| 32 |
+
*/
|
| 33 |
+
preventUnintentionalClickToClose?: true;
|
| 34 |
+
/**
|
| 35 |
+
* The preferred alignment against the trigger. May change when collisions occur.
|
| 36 |
+
* @default center
|
| 37 |
+
*/
|
| 38 |
+
align?: RadixTooltip.TooltipContentProps["align"];
|
| 39 |
+
/**
|
| 40 |
+
* An offset in pixels from the "start" or "end" alignment options.
|
| 41 |
+
* @default 0
|
| 42 |
+
*/
|
| 43 |
+
alignOffset?: RadixTooltip.TooltipContentProps["alignOffset"];
|
| 44 |
+
/**
|
| 45 |
+
* The preferred side of the trigger to render against when open. Will be reversed when collisions occur.
|
| 46 |
+
* @default top
|
| 47 |
+
*/
|
| 48 |
+
side?: RadixTooltip.TooltipContentProps["side"];
|
| 49 |
+
/**
|
| 50 |
+
* The distance in pixels from the trigger.
|
| 51 |
+
* @default 5
|
| 52 |
+
*/
|
| 53 |
+
sideOffset?: RadixTooltip.TooltipContentProps["sideOffset"];
|
| 54 |
+
/**
|
| 55 |
+
* Gutter sizing inside the tooltip content
|
| 56 |
+
* @default md
|
| 57 |
+
*/
|
| 58 |
+
gutterSize?: "sm" | "md" | "lg";
|
| 59 |
+
/** Ref for the tooltip */
|
| 60 |
+
ref?: React.Ref<HTMLDivElement | null>;
|
| 61 |
+
onPointerDown?: PointerEventHandler;
|
| 62 |
+
onClick?: MouseEventHandler;
|
| 63 |
+
/** Optional class name to apply to the tooltip content */
|
| 64 |
+
contentClassName?: string;
|
| 65 |
+
};
|
| 66 |
+
export declare const Tooltip: {
|
| 67 |
+
(props: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
| 68 |
+
Root: ({ children, open, onOpenChange, ...restProps }: RadixTooltip.TooltipProps & {
|
| 69 |
+
open: boolean;
|
| 70 |
+
onOpenChange: (nextState: boolean) => void;
|
| 71 |
+
}) => import("react/jsx-runtime").JSX.Element;
|
| 72 |
+
Content: ({ children, maxWidth, compact, clickable, alignOffset, sideOffset, gutterSize, className, style, ...restProps }: TooltipContentProps) => import("react/jsx-runtime").JSX.Element;
|
| 73 |
+
Trigger: ({ children, asChild, ...restProps }: RadixTooltip.TooltipTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
| 74 |
+
TriggerDecorator: (props: TooltipTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
| 75 |
+
};
|
| 76 |
+
type TooltipContentProps = RadixTooltip.TooltipContentProps & {
|
| 77 |
+
children: React.ReactNode;
|
| 78 |
+
/**
|
| 79 |
+
* Defines the `max-width` of the tooltip content. `"none"` creates a single-line, naturally sized tooltip.
|
| 80 |
+
* @default 300
|
| 81 |
+
*/
|
| 82 |
+
maxWidth?: number | "none";
|
| 83 |
+
/**
|
| 84 |
+
* Short, 1-3 word tooltips, stylized inversely from normal tooltips
|
| 85 |
+
*/
|
| 86 |
+
compact?: boolean;
|
| 87 |
+
/**
|
| 88 |
+
* Gutter sizing inside the tooltip content
|
| 89 |
+
* @default md
|
| 90 |
+
*/
|
| 91 |
+
gutterSize?: "sm" | "md" | "lg";
|
| 92 |
+
/** Determines if the tooltip content should respond to click events */
|
| 93 |
+
clickable?: boolean;
|
| 94 |
+
};
|
| 95 |
+
export declare const Content: ({ children, maxWidth, compact, clickable, alignOffset, sideOffset, gutterSize, className, style, ...restProps }: TooltipContentProps) => import("react/jsx-runtime").JSX.Element;
|
| 96 |
+
type TooltipTriggerProps = RadixTooltip.TooltipTriggerProps & {
|
| 97 |
+
/**
|
| 98 |
+
* Determines if `tabindex=0` is applied to the trigger
|
| 99 |
+
* @default true
|
| 100 |
+
*/
|
| 101 |
+
focusable?: boolean;
|
| 102 |
+
/**
|
| 103 |
+
* Optional class name to apply to the trigger
|
| 104 |
+
*/
|
| 105 |
+
className?: string;
|
| 106 |
+
/** Ref for the trigger */
|
| 107 |
+
ref?: React.Ref<HTMLSpanElement | null>;
|
| 108 |
+
};
|
| 109 |
+
export declare const Trigger: ({ children, asChild, ...restProps }: RadixTooltip.TooltipTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
| 110 |
+
export declare const TriggerDecorator: (props: TooltipTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
| 111 |
+
export {};
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Tooltip/index.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export { CopyTooltip, type CopyTooltipProps } from "./CopyTooltip";
|
| 2 |
+
export { Tooltip, type TooltipProps } from "./Tooltip";
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Transition/Animate.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { type TransitionGroupProps } from "./TransitionGroup";
|
| 2 |
+
import { type InitialTransitionDefinition, type TransitionDefinition } from "./shared";
|
| 3 |
+
export type AnimateProps = Pick<TransitionGroupProps, "as" | "children" | "className" | "insertMethod" | "preventInitialTransition"> & {
|
| 4 |
+
/** Class applied to the inner TransitionGroup */
|
| 5 |
+
transitionClassName?: string;
|
| 6 |
+
/** Styles applied to the enter transition */
|
| 7 |
+
enter?: TransitionDefinition;
|
| 8 |
+
/** Styles applied to the exit transition */
|
| 9 |
+
exit?: TransitionDefinition;
|
| 10 |
+
/** Styles applied before the enter transition occurs */
|
| 11 |
+
initial?: InitialTransitionDefinition;
|
| 12 |
+
/**
|
| 13 |
+
* Determines how transition states are positioned
|
| 14 |
+
* @default absolute
|
| 15 |
+
*/
|
| 16 |
+
transitionPosition?: "absolute" | "static";
|
| 17 |
+
/**
|
| 18 |
+
* Applies `will-change` to force animating elements to composite layers. Use with caution!
|
| 19 |
+
* @default false
|
| 20 |
+
*/
|
| 21 |
+
forceCompositeLayer?: boolean;
|
| 22 |
+
};
|
| 23 |
+
export declare const Animate: (props: AnimateProps) => import("react/jsx-runtime").JSX.Element;
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Transition/AnimateLayout.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { type TransitionGroupProps } from "./TransitionGroup";
|
| 2 |
+
import { type InitialTransitionDefinition, type LayoutTransitionDefinition, type TransitionDefinition } from "./shared";
|
| 3 |
+
export type AnimateLayoutProps = Pick<TransitionGroupProps, "as" | "children" | "className" | "insertMethod" | "preventInitialTransition"> & {
|
| 4 |
+
/**
|
| 5 |
+
* Determines if `overflow: hidden` is applied to the wrapper element
|
| 6 |
+
* @default false
|
| 7 |
+
*/
|
| 8 |
+
hideOverflow?: boolean;
|
| 9 |
+
/**
|
| 10 |
+
* Determines which side of the container the items will pin to during enter/exit
|
| 11 |
+
* @default "start"
|
| 12 |
+
*/
|
| 13 |
+
itemAnchor?: "start" | "end";
|
| 14 |
+
/**
|
| 15 |
+
* Determines which property will be animated during transitions
|
| 16 |
+
* @default "height"
|
| 17 |
+
*/
|
| 18 |
+
dimension?: "width" | "height";
|
| 19 |
+
layoutEnter?: LayoutTransitionDefinition;
|
| 20 |
+
layoutExit?: LayoutTransitionDefinition;
|
| 21 |
+
layoutMove?: LayoutTransitionDefinition;
|
| 22 |
+
enter?: TransitionDefinition;
|
| 23 |
+
exit?: TransitionDefinition;
|
| 24 |
+
initial?: InitialTransitionDefinition;
|
| 25 |
+
/** Class applied to the inner TransitionGroup */
|
| 26 |
+
transitionClassName?: string;
|
| 27 |
+
/**
|
| 28 |
+
* Applies `will-change` to force animating elements to composite layers. Use with caution!
|
| 29 |
+
* @default false
|
| 30 |
+
*/
|
| 31 |
+
forceCompositeLayer?: boolean;
|
| 32 |
+
};
|
| 33 |
+
export declare const AnimateLayout: (props: AnimateLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Transition/AnimateLayoutGroup.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { type TransitionGroupProps } from "./TransitionGroup";
|
| 2 |
+
import { type InitialTransitionDefinition, type LayoutTransitionDefinition, type TransitionDefinition } from "./shared";
|
| 3 |
+
export type AnimateLayoutGroupProps = Pick<TransitionGroupProps, "as" | "children" | "className" | "insertMethod" | "preventInitialTransition"> & {
|
| 4 |
+
/**
|
| 5 |
+
* Determines if `overflow: hidden` is applied to the wrapper element
|
| 6 |
+
* @default false
|
| 7 |
+
*/
|
| 8 |
+
hideOverflow?: boolean;
|
| 9 |
+
/**
|
| 10 |
+
* Determines which side of the container the items will pin to during enter/exit
|
| 11 |
+
* @default "start"
|
| 12 |
+
*/
|
| 13 |
+
itemAnchor?: "start" | "end";
|
| 14 |
+
/**
|
| 15 |
+
* Determines which property will be animated during transitions
|
| 16 |
+
* @default "height"
|
| 17 |
+
*/
|
| 18 |
+
dimension?: "width" | "height";
|
| 19 |
+
layoutEnter?: LayoutTransitionDefinition;
|
| 20 |
+
layoutExit?: LayoutTransitionDefinition;
|
| 21 |
+
layoutMove?: LayoutTransitionDefinition;
|
| 22 |
+
enter?: TransitionDefinition;
|
| 23 |
+
exit?: TransitionDefinition;
|
| 24 |
+
initial?: InitialTransitionDefinition;
|
| 25 |
+
/** Class applied to the inner TransitionGroup */
|
| 26 |
+
transitionClassName?: string;
|
| 27 |
+
/**
|
| 28 |
+
* Applies `will-change` to force animating elements to composite layers. Use with caution!
|
| 29 |
+
* @default false
|
| 30 |
+
*/
|
| 31 |
+
forceCompositeLayer?: boolean;
|
| 32 |
+
};
|
| 33 |
+
export declare const AnimateLayoutGroup: (props: AnimateLayoutGroupProps) => import("react/jsx-runtime").JSX.Element;
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Transition/SlotTransitionGroup.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React from "react";
|
| 2 |
+
import { type TransitionGroupChildCallbacks } from "./shared";
|
| 3 |
+
export type SlotTransitionGroupProps = {
|
| 4 |
+
/** Components controlled by SlotTransitionGroup rendering */
|
| 5 |
+
children: React.ReactNode;
|
| 6 |
+
/** Determines the amount of time that the enter state is applied during mounting */
|
| 7 |
+
enterDuration?: number;
|
| 8 |
+
/** Determines the amount of time that the exit state is applied before unmounting */
|
| 9 |
+
exitDuration?: number;
|
| 10 |
+
/**
|
| 11 |
+
* Determines if children should have an enter transition applied during mounting of the group.
|
| 12 |
+
* @default true
|
| 13 |
+
*/
|
| 14 |
+
preventInitialTransition?: boolean;
|
| 15 |
+
/** Delay in MS to wait before mounting a child. `null` for no delay (default). */
|
| 16 |
+
enterMountDelay?: number;
|
| 17 |
+
/** Render children changes immediately, bypassing transition timings */
|
| 18 |
+
disableAnimations?: boolean;
|
| 19 |
+
/** Determines how new children are added to the children array */
|
| 20 |
+
insertMethod?: "append" | "prepend";
|
| 21 |
+
/** Ref for the SlotTransitionGroup (applied to the single child when possible) */
|
| 22 |
+
ref?: React.Ref<unknown>;
|
| 23 |
+
} & Partial<TransitionGroupChildCallbacks>;
|
| 24 |
+
export declare const SlotTransitionGroup: (props: SlotTransitionGroupProps) => import("react/jsx-runtime").JSX.Element;
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Transition/TransitionGroup.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React, { type CSSProperties } from "react";
|
| 2 |
+
import { type TransitionGroupChildCallbacks } from "./shared";
|
| 3 |
+
export type TransitionGroupProps = {
|
| 4 |
+
/** Components controlled by TransitionGroup rendering */
|
| 5 |
+
children: React.ReactNode;
|
| 6 |
+
/** Determines the tag used by wrapping elements */
|
| 7 |
+
as?: "div" | "span";
|
| 8 |
+
/** Class passed to wrapping elements */
|
| 9 |
+
className?: string;
|
| 10 |
+
/** Identifier passed to wrapping elements as `[data-transition-id]` */
|
| 11 |
+
transitionId?: string;
|
| 12 |
+
/** Determines the amount of time that the enter state is applied during mounting */
|
| 13 |
+
enterDuration?: number;
|
| 14 |
+
/** Determines the amount of time that the exit state is applied before unmounting */
|
| 15 |
+
exitDuration?: number;
|
| 16 |
+
/**
|
| 17 |
+
* Determines if children should have an enter transition applied during mounting of the TransitionGroup.
|
| 18 |
+
* @default true
|
| 19 |
+
*/
|
| 20 |
+
preventInitialTransition?: boolean;
|
| 21 |
+
/** Delay in MS to wait before mounting a child. `null` for no delay (default). */
|
| 22 |
+
enterMountDelay?: number;
|
| 23 |
+
/** Render children changes immediately, bypassing transition timings */
|
| 24 |
+
disableAnimations?: boolean;
|
| 25 |
+
/** Determines how new children are added to the children array */
|
| 26 |
+
insertMethod?: "append" | "prepend";
|
| 27 |
+
/** Styles applied to wrapping elements */
|
| 28 |
+
style?: CSSProperties;
|
| 29 |
+
/** Ref for the TransitionGroup */
|
| 30 |
+
ref?: React.Ref<unknown>;
|
| 31 |
+
} & Partial<TransitionGroupChildCallbacks>;
|
| 32 |
+
export declare const TransitionGroup: (props: TransitionGroupProps) => import("react/jsx-runtime").JSX.Element;
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Transition/getDisableAnimations.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
declare const _default: () => boolean;
|
| 2 |
+
export default _default;
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Transition/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export { Animate, type AnimateProps } from "./Animate";
|
| 2 |
+
export { AnimateLayout, type AnimateLayoutProps } from "./AnimateLayout";
|
| 3 |
+
export { AnimateLayoutGroup, type AnimateLayoutGroupProps } from "./AnimateLayoutGroup";
|
| 4 |
+
export { SlotTransitionGroup, type SlotTransitionGroupProps } from "./SlotTransitionGroup";
|
| 5 |
+
export { TransitionGroup, type TransitionGroupProps } from "./TransitionGroup";
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Transition/shared.d.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React from "react";
|
| 2 |
+
export type TransitionDefinition = {
|
| 3 |
+
opacity?: number;
|
| 4 |
+
/** The horizontal translation value in pixels */
|
| 5 |
+
x?: number;
|
| 6 |
+
/** The horizontal vertical value in pixels */
|
| 7 |
+
y?: number;
|
| 8 |
+
/** The opacity value ranging from 0 to 1. */
|
| 9 |
+
scale?: number;
|
| 10 |
+
rotate?: number | string;
|
| 11 |
+
skewX?: number | string;
|
| 12 |
+
skewY?: number | string;
|
| 13 |
+
blur?: number;
|
| 14 |
+
duration?: number;
|
| 15 |
+
delay?: number;
|
| 16 |
+
timingFunction?: string;
|
| 17 |
+
};
|
| 18 |
+
export type InitialTransitionDefinition = Omit<TransitionDefinition, "duration" | "delay" | "timingFunction">;
|
| 19 |
+
export type LayoutTransitionDefinition = {
|
| 20 |
+
duration?: number;
|
| 21 |
+
delay?: number;
|
| 22 |
+
timingFunction?: string;
|
| 23 |
+
};
|
| 24 |
+
export type CallbackType = "enter" | "enter-active" | "enter-complete" | "exit" | "exit-active" | "exit-complete";
|
| 25 |
+
export type TransitionGroupChildCallback = (element: HTMLDivElement) => void;
|
| 26 |
+
export type TransitionGroupChildCallbacks = {
|
| 27 |
+
/** Callback fired when an enter animation is staged (e.g., component mounted to the DOM) */
|
| 28 |
+
onEnter: TransitionGroupChildCallback;
|
| 29 |
+
/** Callback fired when an enter animation starts */
|
| 30 |
+
onEnterActive: TransitionGroupChildCallback;
|
| 31 |
+
/** Callback fired when an enter animation completes */
|
| 32 |
+
onEnterComplete: TransitionGroupChildCallback;
|
| 33 |
+
/** Callback fired when an exit animation is staged */
|
| 34 |
+
onExit: TransitionGroupChildCallback;
|
| 35 |
+
/** Callback fired when an exit animation starts */
|
| 36 |
+
onExitActive: TransitionGroupChildCallback;
|
| 37 |
+
/** Callback fired when an exit animation completes (e.g., component unmounted from the DOM) */
|
| 38 |
+
onExitComplete: TransitionGroupChildCallback;
|
| 39 |
+
};
|
| 40 |
+
export declare const NonNullChildren: (children: React.ReactNode) => (string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined>)[];
|
| 41 |
+
export interface ReactElementWithKey extends React.ReactElement {
|
| 42 |
+
key: string;
|
| 43 |
+
}
|
| 44 |
+
export declare const ChildrenWithKeys: (children: React.ReactNode, shouldThrow?: boolean, componentName?: string) => ReactElementWithKey[];
|
| 45 |
+
export declare const noop: () => void;
|
| 46 |
+
export declare const useChildCallback: (cb: (el: HTMLDivElement) => void) => (el: HTMLDivElement) => void;
|
| 47 |
+
export type InsertMethod = "append" | "prepend";
|
| 48 |
+
export declare function computeNextRenderChildren<RenderChild extends {
|
| 49 |
+
component: ReactElementWithKey;
|
| 50 |
+
shouldRender: boolean;
|
| 51 |
+
}>(propChildrenArray: ReactElementWithKey[], currentRenderChildren: RenderChild[], createDefaultRenderChildProps: (child: ReactElementWithKey) => RenderChild, insertMethod: InsertMethod): RenderChild[];
|
| 52 |
+
export declare function assertSingleChildWhenRef(componentName: string, ref: React.Ref<unknown> | undefined, childrenCount: number): void;
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/components/Transition/transitionReducer.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export type TransitionState = {
|
| 2 |
+
enter: boolean;
|
| 3 |
+
enterActive: boolean;
|
| 4 |
+
exit: boolean;
|
| 5 |
+
exitActive: boolean;
|
| 6 |
+
interrupted: boolean;
|
| 7 |
+
};
|
| 8 |
+
export type TransitionStateAction = {
|
| 9 |
+
type: "enter-before";
|
| 10 |
+
} | {
|
| 11 |
+
type: "enter-active";
|
| 12 |
+
} | {
|
| 13 |
+
type: "exit-before";
|
| 14 |
+
} | {
|
| 15 |
+
type: "exit-active";
|
| 16 |
+
} | {
|
| 17 |
+
type: "done";
|
| 18 |
+
};
|
| 19 |
+
export declare const RESTING_TRANSITION_STATE: TransitionState;
|
| 20 |
+
export declare const getInitialTransitionState: (preventMountTransition: boolean) => TransitionState;
|
| 21 |
+
export declare const transitionReducer: (state: TransitionState, action: TransitionStateAction) => TransitionState;
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/global.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
declare global {
|
| 2 |
+
interface DefaultConfig {
|
| 3 |
+
LinkComponent: "a"
|
| 4 |
+
Breakpoint: "xs" | "sm" | "md" | "lg" | "xl" | "2xl"
|
| 5 |
+
}
|
| 6 |
+
|
| 7 |
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
| 8 |
+
interface AppsSDKUIOverrides {}
|
| 9 |
+
|
| 10 |
+
// Utility type to merge defaults with overrides. The override keys take precedence.
|
| 11 |
+
type MergeOverrides<Defaults, Overrides> = Omit<Defaults, keyof Overrides> & Overrides
|
| 12 |
+
|
| 13 |
+
type Config = MergeOverrides<DefaultConfig, AppsSDKUIOverrides>
|
| 14 |
+
|
| 15 |
+
namespace AppsSDKUI {
|
| 16 |
+
export type LinkComponent = Config["LinkComponent"]
|
| 17 |
+
export type Breakpoint = Config["Breakpoint"]
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
export {}
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/hooks/useAnimatedScrollTo.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export declare const useAnimatedScrollTo: (scrollRef: React.RefObject<HTMLDivElement | null>) => (targetScrollTop: number) => void;
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/hooks/useAutoGrowTextarea.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { type RefObject } from "react";
|
| 2 |
+
export declare const useAutoGrowTextarea: (ref: RefObject<HTMLTextAreaElement | null>, value: string) => void;
|
| 3 |
+
export declare const unsafeForceCalculateAutoGrowHeight: (textarea: HTMLTextAreaElement) => void;
|
| 4 |
+
export declare const getAutoGrowTextareaHeight: (textarea: HTMLTextAreaElement) => any;
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/hooks/useBreakpoints.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export declare const cache: Map<string, number>;
|
| 2 |
+
export declare const useBreakpoint: (bp: AppsSDKUI.Breakpoint) => boolean;
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/hooks/useCharactersPerSecond.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export declare function useCharactersPerSecond(text: string, streaming: boolean): () => number;
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/types/hooks/useDocumentVisible.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export declare function useDocumentVisible(): boolean;
|