@pollinations/ui 0.1.0-alpha.4 → 0.1.0-alpha.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -8
- package/dist/{Button-ByKwRtdw.d.cts → Button-Bt_eMnOx.d.ts} +4 -2
- package/dist/app-user-menu/sdk.d.ts +17 -5
- package/dist/app-user-menu/sdk.js +105 -775
- package/dist/app-user-menu/sdk.js.map +1 -1
- package/dist/app.css +21 -0
- package/dist/auth/index.d.ts +12 -5
- package/dist/auth/index.js +170 -1159
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/sdk.d.ts +1 -1
- package/dist/auth/sdk.js +9 -205
- package/dist/auth/sdk.js.map +1 -1
- package/dist/brand/badge-made-with.svg +1 -0
- package/dist/brand/polli/polli-lockup-horizontal-black.png +0 -0
- package/dist/brand/polli/polli-lockup-horizontal-white.png +0 -0
- package/dist/brand/polli/polli.png +0 -0
- package/dist/chunk-B7T42IY2.js +255 -0
- package/dist/chunk-B7T42IY2.js.map +1 -0
- package/dist/chunk-DFYLQTCM.js +107 -0
- package/dist/chunk-DFYLQTCM.js.map +1 -0
- package/dist/chunk-EHOK3XKM.js +112 -0
- package/dist/chunk-EHOK3XKM.js.map +1 -0
- package/dist/chunk-FZXMS7HJ.js +93 -0
- package/dist/chunk-FZXMS7HJ.js.map +1 -0
- package/dist/chunk-KLAOGE6Y.js +125 -0
- package/dist/chunk-KLAOGE6Y.js.map +1 -0
- package/dist/chunk-KTGSOTNW.js +534 -0
- package/dist/chunk-KTGSOTNW.js.map +1 -0
- package/dist/chunk-LAZ5O2ZK.js +105 -0
- package/dist/chunk-LAZ5O2ZK.js.map +1 -0
- package/dist/chunk-MS2GGEMU.js +311 -0
- package/dist/chunk-MS2GGEMU.js.map +1 -0
- package/dist/chunk-MU7JQOTF.js +170 -0
- package/dist/chunk-MU7JQOTF.js.map +1 -0
- package/dist/chunk-OWQ2HDQB.js +50 -0
- package/dist/chunk-OWQ2HDQB.js.map +1 -0
- package/dist/chunk-QPNEXTZ5.js +88 -0
- package/dist/chunk-QPNEXTZ5.js.map +1 -0
- package/dist/{app-user-menu/sdk.cjs → chunk-R3RMENGN.js} +114 -773
- package/dist/chunk-R3RMENGN.js.map +1 -0
- package/dist/chunk-WV4XTYMU.js +58 -0
- package/dist/chunk-WV4XTYMU.js.map +1 -0
- package/dist/chunk-WVDV47XQ.js +651 -0
- package/dist/chunk-WVDV47XQ.js.map +1 -0
- package/dist/connect.js +100 -0
- package/dist/connect.js.map +1 -0
- package/dist/gen/index.d.ts +14 -7
- package/dist/gen/index.js +59 -474
- package/dist/gen/index.js.map +1 -1
- package/dist/index-BR4r9rhQ.d.ts +90 -0
- package/dist/index.browser.min.js +1 -1
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.d.ts +195 -103
- package/dist/index.js +1051 -2801
- package/dist/index.js.map +1 -1
- package/dist/licenses/Octicons-MIT.txt +21 -0
- package/dist/markdown.d.ts +3 -1
- package/dist/markdown.js +69 -598
- package/dist/markdown.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme.css +12 -0
- package/dist/types-CCy9JNu9.d.ts +6 -0
- package/dist/wallet/index.d.ts +20 -1
- package/dist/wallet/index.js +19 -370
- package/dist/wallet/index.js.map +1 -1
- package/package.json +18 -22
- package/dist/Button-ByKwRtdw.d.ts +0 -29
- package/dist/Chip-v-ADv6cz.d.cts +0 -18
- package/dist/Dialog-D3Nqt8cE.d.cts +0 -66
- package/dist/app-user-menu/sdk.cjs.map +0 -1
- package/dist/app-user-menu/sdk.d.cts +0 -33
- package/dist/auth/index.cjs +0 -1512
- package/dist/auth/index.cjs.map +0 -1
- package/dist/auth/index.d.cts +0 -112
- package/dist/auth/sdk.cjs +0 -244
- package/dist/auth/sdk.cjs.map +0 -1
- package/dist/auth/sdk.d.cts +0 -40
- package/dist/gen/index.cjs +0 -687
- package/dist/gen/index.cjs.map +0 -1
- package/dist/gen/index.d.cts +0 -84
- package/dist/index.cjs +0 -5183
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -933
- package/dist/markdown.cjs +0 -826
- package/dist/markdown.cjs.map +0 -1
- package/dist/markdown.d.cts +0 -16
- package/dist/wallet/index.cjs +0 -429
- package/dist/wallet/index.cjs.map +0 -1
- package/dist/wallet/index.d.cts +0 -53
package/dist/index.d.cts
DELETED
|
@@ -1,933 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { ReactNode, CSSProperties, FC, ComponentPropsWithoutRef, RefObject, ButtonHTMLAttributes, PropsWithChildren, ComponentType, ElementType } from 'react';
|
|
4
|
-
import { S as ScrollAreaProps, D as DialogProps } from './Dialog-D3Nqt8cE.cjs';
|
|
5
|
-
export { a as Dialog, b as DialogBody, c as DialogBodyProps, d as DialogDescription, e as DialogFooter, f as DialogFooterProps, g as DialogHeader, h as DialogHeaderProps, i as DialogTitle, j as ScrollArea } from './Dialog-D3Nqt8cE.cjs';
|
|
6
|
-
import { B as ButtonProps, a as ButtonAppearance } from './Button-ByKwRtdw.cjs';
|
|
7
|
-
export { b as Button } from './Button-ByKwRtdw.cjs';
|
|
8
|
-
export { C as Chip } from './Chip-v-ADv6cz.cjs';
|
|
9
|
-
export { Field } from '@ark-ui/react/field';
|
|
10
|
-
import '@ark-ui/react/dialog';
|
|
11
|
-
|
|
12
|
-
type DropdownProps = {
|
|
13
|
-
/** Trigger element; receives the current open state (e.g. to rotate a chevron). */
|
|
14
|
-
trigger: (open: boolean) => ReactNode;
|
|
15
|
-
/** Panel content. As a function, receives `close` to dismiss after a selection. */
|
|
16
|
-
children: ReactNode | ((close: () => void) => ReactNode);
|
|
17
|
-
/** Panel placement relative to the trigger. */
|
|
18
|
-
align?: "start" | "end";
|
|
19
|
-
side?: "top" | "bottom";
|
|
20
|
-
/** Controlled open state. Omit to let the Dropdown manage its own. */
|
|
21
|
-
open?: boolean;
|
|
22
|
-
/** Render inside the parent dialog so its focus and accessibility scope includes the menu. */
|
|
23
|
-
portalled?: boolean;
|
|
24
|
-
onOpenChange?: (open: boolean) => void;
|
|
25
|
-
/** Appended after the surface (widths, padding, max-height…). */
|
|
26
|
-
className?: string;
|
|
27
|
-
/** Theme variables for portaled content that cannot inherit from its trigger. */
|
|
28
|
-
panelStyle?: CSSProperties;
|
|
29
|
-
};
|
|
30
|
-
declare const Dropdown: FC<DropdownProps>;
|
|
31
|
-
|
|
32
|
-
type AccountIdentityProps = {
|
|
33
|
-
name: string;
|
|
34
|
-
avatarUrl?: string | null;
|
|
35
|
-
secondaryContent?: ReactNode;
|
|
36
|
-
/** Optional dashboard destination, owned by the caller. Opens in a new tab. */
|
|
37
|
-
dashboardHref?: string;
|
|
38
|
-
className?: string;
|
|
39
|
-
};
|
|
40
|
-
type AccountIdentityLinkProps = Pick<AccountIdentityProps, "name" | "avatarUrl" | "className"> & {
|
|
41
|
-
/** External profile the whole pill opens in a new tab. */
|
|
42
|
-
href: string;
|
|
43
|
-
};
|
|
44
|
-
declare function AccountIdentity({ name, avatarUrl, secondaryContent, dashboardHref, className, }: AccountIdentityProps): react_jsx_runtime.JSX.Element;
|
|
45
|
-
/** Someone else's identity as a one-line pill link, e.g. an app's developer. */
|
|
46
|
-
declare function AccountIdentityLink({ name, avatarUrl, href, className, }: AccountIdentityLinkProps): react_jsx_runtime.JSX.Element;
|
|
47
|
-
type AccountMenuProps = AccountIdentityProps & {
|
|
48
|
-
/** The caller owns navigation, permissions and sign-out behavior. */
|
|
49
|
-
children: DropdownProps["children"];
|
|
50
|
-
menuClassName?: string;
|
|
51
|
-
side?: "top" | "bottom";
|
|
52
|
-
menuLabel?: string;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* With `dashboardHref` the avatar is a link and the name/chevron open the
|
|
56
|
-
* menu; without one the whole pill is the trigger.
|
|
57
|
-
*/
|
|
58
|
-
declare function AccountMenu({ name, avatarUrl, dashboardHref, secondaryContent, children, className, menuClassName, side, menuLabel, }: AccountMenuProps): react_jsx_runtime.JSX.Element;
|
|
59
|
-
|
|
60
|
-
type AlertIntent = "info" | "advisory" | "warning" | "danger";
|
|
61
|
-
type AlertProps = Omit<ComponentPropsWithoutRef<"div">, "title"> & {
|
|
62
|
-
intent?: AlertIntent;
|
|
63
|
-
title?: ReactNode;
|
|
64
|
-
};
|
|
65
|
-
declare const Alert: FC<AlertProps>;
|
|
66
|
-
|
|
67
|
-
type AppBrandProps = {
|
|
68
|
-
appName: string;
|
|
69
|
-
href?: string;
|
|
70
|
-
size?: "md" | "sm";
|
|
71
|
-
className?: string;
|
|
72
|
-
};
|
|
73
|
-
/** Lotus mark + app name: the one brand every internal app shows. */
|
|
74
|
-
declare function AppBrand({ appName, href, size, className, }: AppBrandProps): react_jsx_runtime.JSX.Element;
|
|
75
|
-
|
|
76
|
-
type ScrollTargetRef = RefObject<HTMLElement | null>;
|
|
77
|
-
type AppHeaderProps = {
|
|
78
|
-
children?: ReactNode;
|
|
79
|
-
navLabel: string;
|
|
80
|
-
/** Shows the lotus + this name instead of the pollinations.ai wordmark. */
|
|
81
|
-
appName?: string;
|
|
82
|
-
autoHide?: boolean;
|
|
83
|
-
scrollTargetRef?: ScrollTargetRef;
|
|
84
|
-
brandHref?: string;
|
|
85
|
-
brandLabel?: string;
|
|
86
|
-
className?: string;
|
|
87
|
-
innerClassName?: string;
|
|
88
|
-
navClassName?: string;
|
|
89
|
-
};
|
|
90
|
-
declare function AppHeader({ children, navLabel, appName, autoHide, scrollTargetRef, brandHref, brandLabel, className, innerClassName, navClassName, }: AppHeaderProps): react_jsx_runtime.JSX.Element;
|
|
91
|
-
|
|
92
|
-
type CalloutProps = {
|
|
93
|
-
title: ReactNode;
|
|
94
|
-
body: ReactNode;
|
|
95
|
-
children: ReactNode;
|
|
96
|
-
tone?: "theme" | "dark";
|
|
97
|
-
className?: string;
|
|
98
|
-
};
|
|
99
|
-
/** Prominent closing panel with a title, supporting copy, and actions. */
|
|
100
|
-
declare function Callout({ title, body, children, tone, className, }: CalloutProps): react_jsx_runtime.JSX.Element;
|
|
101
|
-
|
|
102
|
-
type ChatConversationProps = Omit<ScrollAreaProps, "children" | "className"> & {
|
|
103
|
-
children: ReactNode;
|
|
104
|
-
className?: string;
|
|
105
|
-
viewportClassName?: string;
|
|
106
|
-
showScrollButton?: boolean;
|
|
107
|
-
onScrollToBottom?: () => void;
|
|
108
|
-
scrollButtonLabel?: string;
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* Scrollable chat transcript with an optional jump-to-latest control.
|
|
112
|
-
* Message data and streaming remain the consumer's responsibility.
|
|
113
|
-
*/
|
|
114
|
-
declare const ChatConversation: react.ForwardRefExoticComponent<Omit<ScrollAreaProps, "className" | "children"> & {
|
|
115
|
-
children: ReactNode;
|
|
116
|
-
className?: string;
|
|
117
|
-
viewportClassName?: string;
|
|
118
|
-
showScrollButton?: boolean;
|
|
119
|
-
onScrollToBottom?: () => void;
|
|
120
|
-
scrollButtonLabel?: string;
|
|
121
|
-
} & react.RefAttributes<HTMLDivElement>>;
|
|
122
|
-
type ChatConversationContentProps = ComponentPropsWithoutRef<"div">;
|
|
123
|
-
declare function ChatConversationContent({ className, ...props }: ChatConversationContentProps): react_jsx_runtime.JSX.Element;
|
|
124
|
-
|
|
125
|
-
type ChatMessageRole = "user" | "assistant" | "system";
|
|
126
|
-
type ChatMessageProps = ComponentPropsWithoutRef<"article"> & {
|
|
127
|
-
from: ChatMessageRole;
|
|
128
|
-
};
|
|
129
|
-
/** Protocol-neutral message surface inspired by AI Elements' Message suite. */
|
|
130
|
-
declare function ChatMessage({ from, className, children, ...props }: ChatMessageProps): react_jsx_runtime.JSX.Element;
|
|
131
|
-
type ChatMessageHeaderProps = ComponentPropsWithoutRef<"header"> & {
|
|
132
|
-
from: ChatMessageRole;
|
|
133
|
-
label?: ReactNode;
|
|
134
|
-
icon?: ReactNode;
|
|
135
|
-
};
|
|
136
|
-
declare function ChatMessageHeader({ from, label, icon, className, ...props }: ChatMessageHeaderProps): react_jsx_runtime.JSX.Element;
|
|
137
|
-
type ChatMessageContentProps = ComponentPropsWithoutRef<"div">;
|
|
138
|
-
declare function ChatMessageContent({ className, ...props }: ChatMessageContentProps): react_jsx_runtime.JSX.Element;
|
|
139
|
-
type ChatMessageActionsProps = ComponentPropsWithoutRef<"footer">;
|
|
140
|
-
declare function ChatMessageActions({ className, ...props }: ChatMessageActionsProps): react_jsx_runtime.JSX.Element;
|
|
141
|
-
|
|
142
|
-
type ChatPromptInputProps = ComponentPropsWithoutRef<"fieldset">;
|
|
143
|
-
/**
|
|
144
|
-
* Composable prompt shell. Put attachments or controls before the textarea and
|
|
145
|
-
* actions in ChatPromptInputFooter; submission stays owned by the parent form.
|
|
146
|
-
*/
|
|
147
|
-
declare function ChatPromptInput({ className, ...props }: ChatPromptInputProps): react_jsx_runtime.JSX.Element;
|
|
148
|
-
declare const ChatPromptTextarea: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & {
|
|
149
|
-
error?: boolean;
|
|
150
|
-
} & react.RefAttributes<HTMLTextAreaElement>>;
|
|
151
|
-
type ChatPromptInputFooterProps = ComponentPropsWithoutRef<"div"> & {
|
|
152
|
-
start?: ReactNode;
|
|
153
|
-
end?: ReactNode;
|
|
154
|
-
};
|
|
155
|
-
declare function ChatPromptInputFooter({ start, end, children, className, ...props }: ChatPromptInputFooterProps): react_jsx_runtime.JSX.Element;
|
|
156
|
-
|
|
157
|
-
type CodeBlockOwnProps = {
|
|
158
|
-
code: string;
|
|
159
|
-
codeClassName?: string;
|
|
160
|
-
language?: string;
|
|
161
|
-
};
|
|
162
|
-
type CodeBlockProps = CodeBlockOwnProps & Omit<ComponentPropsWithoutRef<"div">, keyof CodeBlockOwnProps | "children">;
|
|
163
|
-
declare const CodeBlock: FC<CodeBlockProps>;
|
|
164
|
-
|
|
165
|
-
type CollapsibleProps = {
|
|
166
|
-
/** Header content (label, hint, etc). */
|
|
167
|
-
label: ReactNode;
|
|
168
|
-
expanded: boolean;
|
|
169
|
-
onToggle: () => void;
|
|
170
|
-
children: ReactNode;
|
|
171
|
-
disabled?: boolean;
|
|
172
|
-
/** Outer wrapper classes — border, rounding, etc. Keep it bg-free if the
|
|
173
|
-
* expanded panel should stay transparent; put any fill on the trigger. */
|
|
174
|
-
wrapperClassName?: string;
|
|
175
|
-
/** Trigger/header base classes (e.g. a selected background). */
|
|
176
|
-
triggerClassName?: string;
|
|
177
|
-
/** Trigger hover classes. Defaults to `polli:hover:bg-theme-bg-active`. */
|
|
178
|
-
hoverClassName?: string;
|
|
179
|
-
/** Trigger focus classes. */
|
|
180
|
-
focusClassName?: string;
|
|
181
|
-
/** Expanded panel classes. Defaults to a top border separator. */
|
|
182
|
-
panelClassName?: string;
|
|
183
|
-
/** Accessible label for the toggle button when label is non-text. */
|
|
184
|
-
ariaLabel?: string;
|
|
185
|
-
};
|
|
186
|
-
/**
|
|
187
|
-
* Collapsible row composition. One chevron, one hover/rounded behaviour for
|
|
188
|
-
* every collapsible in the UI. Use this for any "click to reveal nested
|
|
189
|
-
* content" UI — nested settings, grouped controls, optional details.
|
|
190
|
-
*
|
|
191
|
-
* For dropdown/popover triggers (date pickers, menus) use a button with
|
|
192
|
-
* <ChevronIcon /> directly — that's a different interaction.
|
|
193
|
-
*/
|
|
194
|
-
declare const Collapsible: FC<CollapsibleProps>;
|
|
195
|
-
|
|
196
|
-
type ConfirmIntent = "danger" | "info" | "neutral" | "commit";
|
|
197
|
-
type ConfirmationDialogProps = {
|
|
198
|
-
open: boolean;
|
|
199
|
-
title: ReactNode;
|
|
200
|
-
/** Short explanation rendered as body text. */
|
|
201
|
-
description?: ReactNode;
|
|
202
|
-
/** Extra body content below the description (alerts, inputs). */
|
|
203
|
-
children?: ReactNode;
|
|
204
|
-
confirmLabel: ReactNode;
|
|
205
|
-
/** Confirm button recipe; also picks the default confirm icon. */
|
|
206
|
-
intent?: ConfirmIntent;
|
|
207
|
-
/** Override the confirm icon when the action is not a plain delete/confirm. */
|
|
208
|
-
confirmIcon?: ReactNode;
|
|
209
|
-
confirmDisabled?: boolean;
|
|
210
|
-
cancelDisabled?: boolean;
|
|
211
|
-
onConfirm: () => void;
|
|
212
|
-
onCancel: () => void;
|
|
213
|
-
size?: DialogProps["size"];
|
|
214
|
-
};
|
|
215
|
-
/** One floating Cancel + confirm action for every yes/no dialog. */
|
|
216
|
-
declare function ConfirmationDialog({ open, title, description, children, confirmLabel, intent, confirmIcon, confirmDisabled, cancelDisabled, onConfirm, onCancel, size, }: ConfirmationDialogProps): react_jsx_runtime.JSX.Element;
|
|
217
|
-
|
|
218
|
-
type ContentHeaderProps = {
|
|
219
|
-
eyebrow: ReactNode;
|
|
220
|
-
title: ReactNode;
|
|
221
|
-
subtitle?: ReactNode;
|
|
222
|
-
action?: ReactNode;
|
|
223
|
-
variant?: "page" | "section";
|
|
224
|
-
className?: string;
|
|
225
|
-
};
|
|
226
|
-
/** Shared page/section heading rhythm with an optional trailing action. */
|
|
227
|
-
declare function ContentHeader({ eyebrow, title, subtitle, action, variant, className, }: ContentHeaderProps): react_jsx_runtime.JSX.Element;
|
|
228
|
-
|
|
229
|
-
type CopyValue = string | (() => string | Promise<string>);
|
|
230
|
-
type CopyButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className" | "onClick" | "type" | "value"> & {
|
|
231
|
-
value: CopyValue;
|
|
232
|
-
children: ReactNode | ((copied: boolean) => ReactNode);
|
|
233
|
-
copiedTimeoutMs?: number;
|
|
234
|
-
tooltip?: ReactNode;
|
|
235
|
-
tooltipAlign?: "start" | "center";
|
|
236
|
-
tooltipClampToViewport?: boolean;
|
|
237
|
-
tooltipMaxWidth?: number;
|
|
238
|
-
copiedTooltip?: ReactNode;
|
|
239
|
-
tooltipClassName?: string;
|
|
240
|
-
className?: string | ((copied: boolean) => string);
|
|
241
|
-
variant?: "plain" | "button";
|
|
242
|
-
/** Button intent, used with `variant="button"`. */
|
|
243
|
-
intent?: ButtonProps<"button">["intent"];
|
|
244
|
-
onCopied?: () => void;
|
|
245
|
-
onCopyError?: (error: unknown) => void;
|
|
246
|
-
};
|
|
247
|
-
declare function CopyButton({ value, children, copiedTimeoutMs, tooltip, tooltipAlign, tooltipClampToViewport, tooltipMaxWidth, copiedTooltip, tooltipClassName, className, variant, intent, onCopied, onCopyError, ...buttonProps }: CopyButtonProps): react_jsx_runtime.JSX.Element;
|
|
248
|
-
|
|
249
|
-
type CopyFieldProps = Pick<CopyButtonProps, "value" | "onCopied" | "onCopyError" | "copiedTimeoutMs"> & {
|
|
250
|
-
/** Accessible name, e.g. "Copy secret key". */
|
|
251
|
-
label: string;
|
|
252
|
-
/** What to show; defaults to the value itself (lists pass a truncated form). */
|
|
253
|
-
display?: ReactNode;
|
|
254
|
-
className?: string;
|
|
255
|
-
};
|
|
256
|
-
/**
|
|
257
|
-
* A value the user copies but never edits: looks like a field, behaves like a
|
|
258
|
-
* button. The whole surface copies on click; the end icon confirms.
|
|
259
|
-
*/
|
|
260
|
-
declare function CopyField({ value, label, display, className, ...copy }: CopyFieldProps): react_jsx_runtime.JSX.Element;
|
|
261
|
-
|
|
262
|
-
type InputProps = React.ComponentPropsWithoutRef<"input"> & {
|
|
263
|
-
error?: boolean;
|
|
264
|
-
hideNumberSteppers?: boolean;
|
|
265
|
-
};
|
|
266
|
-
declare const Input: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
267
|
-
error?: boolean;
|
|
268
|
-
hideNumberSteppers?: boolean;
|
|
269
|
-
} & react.RefAttributes<HTMLInputElement>>;
|
|
270
|
-
|
|
271
|
-
type EditableComboboxProps = Omit<InputProps, "onChange" | "value"> & {
|
|
272
|
-
value: string;
|
|
273
|
-
options: string[];
|
|
274
|
-
onChange: (value: string) => void;
|
|
275
|
-
emptyMessage?: string;
|
|
276
|
-
align?: "start" | "end";
|
|
277
|
-
open?: boolean;
|
|
278
|
-
onOpenChange?: (open: boolean) => void;
|
|
279
|
-
/** Controlled filter inputs can keep incomplete selections open. */
|
|
280
|
-
closeOnSelect?: boolean;
|
|
281
|
-
/**
|
|
282
|
-
* Content rendered inside the input shell before the text field. Enables
|
|
283
|
-
* the wrapped shell layout and replaces the standalone chevron trigger.
|
|
284
|
-
*/
|
|
285
|
-
startContent?: ReactNode;
|
|
286
|
-
/** Optional class for the suggestions panel. */
|
|
287
|
-
contentClassName?: string;
|
|
288
|
-
};
|
|
289
|
-
type EditableComboboxTokenProps = Omit<ComponentPropsWithoutRef<"button">, "children" | "type"> & {
|
|
290
|
-
label: string;
|
|
291
|
-
value: string;
|
|
292
|
-
highlighted?: boolean;
|
|
293
|
-
};
|
|
294
|
-
/** Interactive filter token intended for an EditableCombobox startContent slot. */
|
|
295
|
-
declare function EditableComboboxToken({ label, value, highlighted, className, ...buttonProps }: EditableComboboxTokenProps): react_jsx_runtime.JSX.Element;
|
|
296
|
-
declare function EditableCombobox({ value, options, onChange, emptyMessage, align, open, onOpenChange, closeOnSelect, startContent, contentClassName, className, disabled, name, placeholder, required, ...inputProps }: EditableComboboxProps): react_jsx_runtime.JSX.Element;
|
|
297
|
-
|
|
298
|
-
type ExternalLinkButtonBaseProps = {
|
|
299
|
-
size?: "sm" | "md" | "lg";
|
|
300
|
-
appearance?: ButtonAppearance;
|
|
301
|
-
intent?: ButtonProps["intent"];
|
|
302
|
-
/** Set false for another Pollinations property that should behave as product navigation. */
|
|
303
|
-
external?: boolean;
|
|
304
|
-
showIcon?: boolean;
|
|
305
|
-
/** Leading icon, rendered before the label. */
|
|
306
|
-
icon?: ReactNode;
|
|
307
|
-
className?: string;
|
|
308
|
-
children: ReactNode;
|
|
309
|
-
};
|
|
310
|
-
type ExternalLinkButtonAnchorProps = ExternalLinkButtonBaseProps & {
|
|
311
|
-
href: string;
|
|
312
|
-
} & Omit<ComponentPropsWithoutRef<"a">, "children" | "className" | "href">;
|
|
313
|
-
type ExternalLinkButtonNativeButtonProps = ExternalLinkButtonBaseProps & Omit<ComponentPropsWithoutRef<"button">, "children" | "className">;
|
|
314
|
-
type ExternalLinkButtonProps = ExternalLinkButtonAnchorProps | ExternalLinkButtonNativeButtonProps;
|
|
315
|
-
/** Primary flow actions such as checkout or authorization. Use InlineLink for navigation. */
|
|
316
|
-
declare function ExternalLinkButton(props: ExternalLinkButtonProps): react_jsx_runtime.JSX.Element;
|
|
317
|
-
|
|
318
|
-
type FieldStackProps = {
|
|
319
|
-
/** Omit for a self-describing control; label the input itself. */
|
|
320
|
-
label?: ReactNode;
|
|
321
|
-
children: ReactNode;
|
|
322
|
-
helper?: ReactNode;
|
|
323
|
-
action?: ReactNode;
|
|
324
|
-
error?: ReactNode;
|
|
325
|
-
alignLabelRow?: boolean;
|
|
326
|
-
className?: string;
|
|
327
|
-
labelClassName?: string;
|
|
328
|
-
helperClassName?: string;
|
|
329
|
-
errorClassName?: string;
|
|
330
|
-
};
|
|
331
|
-
declare function FieldStack({ label, children, helper, action, error, alignLabelRow, className, labelClassName, helperClassName, errorClassName, }: FieldStackProps): react_jsx_runtime.JSX.Element;
|
|
332
|
-
|
|
333
|
-
type RejectReason = "type" | "size" | "count";
|
|
334
|
-
type RejectedFile = {
|
|
335
|
-
file: File;
|
|
336
|
-
reason: RejectReason;
|
|
337
|
-
};
|
|
338
|
-
|
|
339
|
-
type FileUploadProps = {
|
|
340
|
-
value: File[];
|
|
341
|
-
onChange: (files: File[]) => void;
|
|
342
|
-
onReject?: (rejected: RejectedFile[]) => void;
|
|
343
|
-
maxFiles?: number;
|
|
344
|
-
maxSizeBytes?: number;
|
|
345
|
-
accept?: string;
|
|
346
|
-
icon?: ReactNode;
|
|
347
|
-
label?: ReactNode;
|
|
348
|
-
previewIcon?: ReactNode;
|
|
349
|
-
/** Compact drop zone, or preview-only strip for a parent drop target. */
|
|
350
|
-
variant?: "default" | "compact" | "inline";
|
|
351
|
-
/** Fully locks the field: no add, no remove, drops ignored. */
|
|
352
|
-
disabled?: boolean;
|
|
353
|
-
className?: string;
|
|
354
|
-
};
|
|
355
|
-
declare function FileUpload({ value, onChange, onReject, maxFiles, maxSizeBytes, accept, icon, label, previewIcon, variant, disabled, className, }: FileUploadProps): react_jsx_runtime.JSX.Element | null;
|
|
356
|
-
|
|
357
|
-
type InfoTipProps = {
|
|
358
|
-
text?: ReactNode;
|
|
359
|
-
content?: ReactNode;
|
|
360
|
-
label?: string;
|
|
361
|
-
};
|
|
362
|
-
/**
|
|
363
|
-
* Small "i" badge that opens a tooltip on hover, click, or focus.
|
|
364
|
-
*
|
|
365
|
-
* Quiet neutral badge and shared, viewport-clamped tooltip popup.
|
|
366
|
-
* The help cursor indicates that more information is available.
|
|
367
|
-
*/
|
|
368
|
-
declare const InfoTip: FC<InfoTipProps>;
|
|
369
|
-
|
|
370
|
-
type KeyChipProps = {
|
|
371
|
-
/** The visible start of the key, e.g. "sk_0ysBCkH". */
|
|
372
|
-
prefix: string;
|
|
373
|
-
/** The full key, when known: the chip then copies it on click. */
|
|
374
|
-
value?: string | null;
|
|
375
|
-
/** Accessible name for the copy action. */
|
|
376
|
-
label?: string;
|
|
377
|
-
className?: string;
|
|
378
|
-
};
|
|
379
|
-
/**
|
|
380
|
-
* One badge for every key: prefix and ellipsis, nothing else. A secret key
|
|
381
|
-
* only ever shows its prefix; a key whose value is known copies on click and
|
|
382
|
-
* carries the clipboard icon.
|
|
383
|
-
*/
|
|
384
|
-
declare function KeyChip({ prefix, value, label, className, }: KeyChipProps): react_jsx_runtime.JSX.Element;
|
|
385
|
-
|
|
386
|
-
type BaseLinkCardProps = {
|
|
387
|
-
external?: boolean;
|
|
388
|
-
showIcon?: boolean;
|
|
389
|
-
className?: string;
|
|
390
|
-
surfaceClassName?: string;
|
|
391
|
-
};
|
|
392
|
-
type LinkCardProps<T extends React.ElementType = "a"> = PropsWithChildren<BaseLinkCardProps> & {
|
|
393
|
-
as?: T;
|
|
394
|
-
} & Omit<React.ComponentPropsWithoutRef<T>, keyof BaseLinkCardProps | "as">;
|
|
395
|
-
declare function LinkCard<T extends React.ElementType = "a">({ as, external, showIcon, className, surfaceClassName, children, ...linkProps }: LinkCardProps<T>): react_jsx_runtime.JSX.Element;
|
|
396
|
-
|
|
397
|
-
type MediaPlaceholderProps = ComponentPropsWithoutRef<"div"> & {
|
|
398
|
-
icon?: ReactNode;
|
|
399
|
-
label?: ReactNode;
|
|
400
|
-
detail?: ReactNode;
|
|
401
|
-
};
|
|
402
|
-
declare const MediaPlaceholder: FC<MediaPlaceholderProps>;
|
|
403
|
-
|
|
404
|
-
type MultiSelectOption = {
|
|
405
|
-
value: string;
|
|
406
|
-
label: string;
|
|
407
|
-
};
|
|
408
|
-
type MultiSelectProps = {
|
|
409
|
-
options: MultiSelectOption[];
|
|
410
|
-
selected: string[];
|
|
411
|
-
onChange: (selected: string[]) => void;
|
|
412
|
-
placeholder: string;
|
|
413
|
-
disabled?: boolean;
|
|
414
|
-
disabledText?: string;
|
|
415
|
-
disabledTooltip?: string;
|
|
416
|
-
align?: "start" | "end";
|
|
417
|
-
label?: string;
|
|
418
|
-
/** Accessible name when the visible label is supplied by the caller. */
|
|
419
|
-
ariaLabel?: string;
|
|
420
|
-
/** Fill the available width, allowing the trigger label to truncate. */
|
|
421
|
-
fullWidth?: boolean;
|
|
422
|
-
};
|
|
423
|
-
declare const MultiSelect: FC<MultiSelectProps>;
|
|
424
|
-
|
|
425
|
-
type BaseNavItemProps = {
|
|
426
|
-
/** Current/selected item — fills with the accent + sets `aria-current`. */
|
|
427
|
-
active?: boolean;
|
|
428
|
-
/** Optional leading icon. */
|
|
429
|
-
icon?: ComponentType<{
|
|
430
|
-
className?: string;
|
|
431
|
-
}>;
|
|
432
|
-
className?: string;
|
|
433
|
-
};
|
|
434
|
-
type NavItemProps<T extends React.ElementType = "button"> = PropsWithChildren<BaseNavItemProps> & {
|
|
435
|
-
as?: T;
|
|
436
|
-
} & Omit<React.ComponentPropsWithoutRef<T>, keyof BaseNavItemProps | "as">;
|
|
437
|
-
/**
|
|
438
|
-
* Minimal nav item — a pill that's neutral when inactive and filled with the
|
|
439
|
-
* accent when active, with an optional leading icon. Polymorphic: `<NavItem>`
|
|
440
|
-
* (button) for in-page nav, `<NavItem as={Link} active={…}>` for routed nav.
|
|
441
|
-
* Shared by the enter dashboard rail and apps so both use one design.
|
|
442
|
-
*/
|
|
443
|
-
declare function NavItem<T extends React.ElementType = "button">({ as, active, icon: Icon, className, children, ...rest }: NavItemProps<T>): react_jsx_runtime.JSX.Element;
|
|
444
|
-
|
|
445
|
-
type PeriodGranularity = "day" | "week" | "month";
|
|
446
|
-
type PeriodSelection = {
|
|
447
|
-
granularity: PeriodGranularity;
|
|
448
|
-
period: string;
|
|
449
|
-
};
|
|
450
|
-
type PeriodWindow = {
|
|
451
|
-
start: Date;
|
|
452
|
-
end: Date;
|
|
453
|
-
};
|
|
454
|
-
declare function periodFromDate(granularity: PeriodGranularity, date?: Date): PeriodSelection;
|
|
455
|
-
declare function currentPeriod(): PeriodSelection;
|
|
456
|
-
declare function periodToWindow(selection: PeriodSelection): PeriodWindow;
|
|
457
|
-
declare function getPeriodBucketKeys(selection: PeriodSelection): string[];
|
|
458
|
-
declare function periodBucketKeyToDate(bucketKey: string, granularity: PeriodGranularity): Date;
|
|
459
|
-
declare function isPeriodSelectable(selection: PeriodSelection, minDate?: Date, maxDate?: Date): boolean;
|
|
460
|
-
|
|
461
|
-
type PeriodPickerProps = {
|
|
462
|
-
value: PeriodSelection;
|
|
463
|
-
onChange: (value: PeriodSelection) => void;
|
|
464
|
-
minDate?: Date;
|
|
465
|
-
maxDate?: Date;
|
|
466
|
-
/** Custom trigger for a calendar with a fixed granularity. */
|
|
467
|
-
trigger?: (open: boolean) => ReactNode;
|
|
468
|
-
/** Optional controls above the calendar grid. */
|
|
469
|
-
header?: ReactNode;
|
|
470
|
-
};
|
|
471
|
-
declare const PeriodPicker: FC<PeriodPickerProps>;
|
|
472
|
-
|
|
473
|
-
type SectionProps = {
|
|
474
|
-
title: string;
|
|
475
|
-
id?: string;
|
|
476
|
-
framed?: boolean;
|
|
477
|
-
intro?: ReactNode;
|
|
478
|
-
action?: ReactNode;
|
|
479
|
-
actionClassName?: string;
|
|
480
|
-
panelClassName?: string;
|
|
481
|
-
titleClassName?: string;
|
|
482
|
-
children: ReactNode;
|
|
483
|
-
className?: string;
|
|
484
|
-
};
|
|
485
|
-
declare const Section: FC<SectionProps>;
|
|
486
|
-
|
|
487
|
-
/**
|
|
488
|
-
* - `stat` — large numeric value (default)
|
|
489
|
-
* - `fact` — small wrapping prose value (labeled fact tile)
|
|
490
|
-
*/
|
|
491
|
-
type StatCardVariant = "stat" | "fact";
|
|
492
|
-
type StatCardProps = {
|
|
493
|
-
label: ReactNode;
|
|
494
|
-
value: ReactNode;
|
|
495
|
-
detail?: ReactNode;
|
|
496
|
-
variant?: StatCardVariant;
|
|
497
|
-
className?: string;
|
|
498
|
-
labelClassName?: string;
|
|
499
|
-
valueClassName?: string;
|
|
500
|
-
detailClassName?: string;
|
|
501
|
-
};
|
|
502
|
-
declare const StatCard: FC<StatCardProps>;
|
|
503
|
-
|
|
504
|
-
type ToolCallStatus = "pending" | "running" | "approval-requested" | "approval-responded" | "complete" | "error" | "denied";
|
|
505
|
-
interface ToolCallDetailsProps {
|
|
506
|
-
name: string;
|
|
507
|
-
input?: unknown;
|
|
508
|
-
output?: unknown;
|
|
509
|
-
error?: unknown;
|
|
510
|
-
status?: ToolCallStatus;
|
|
511
|
-
defaultOpen?: boolean;
|
|
512
|
-
className?: string;
|
|
513
|
-
}
|
|
514
|
-
/** Framework-neutral disclosure for server- or client-executed tool calls. */
|
|
515
|
-
declare function ToolCallDetails({ name, input, output, error, status, defaultOpen, className, }: ToolCallDetailsProps): react_jsx_runtime.JSX.Element;
|
|
516
|
-
|
|
517
|
-
/** Class merge for apps consuming the unprefixed Tailwind bridge in app.css. */
|
|
518
|
-
declare function cn(...inputs: (string | undefined | null | false)[]): string;
|
|
519
|
-
|
|
520
|
-
/**
|
|
521
|
-
* Locks page scroll while enabled and restores the original overflow values on
|
|
522
|
-
* cleanup.
|
|
523
|
-
*/
|
|
524
|
-
declare function useScrollLock(enabled?: boolean): void;
|
|
525
|
-
|
|
526
|
-
type BrandMarkProps = {
|
|
527
|
-
variant?: "mark" | "lockup";
|
|
528
|
-
className?: string;
|
|
529
|
-
};
|
|
530
|
-
/** The lotus (or lotus + wordmark) painted in currentColor; size it with className. */
|
|
531
|
-
declare function BrandMark({ variant, className }: BrandMarkProps): react_jsx_runtime.JSX.Element;
|
|
532
|
-
|
|
533
|
-
type ButtonGroupProps = ComponentPropsWithoutRef<"div">;
|
|
534
|
-
declare const ButtonGroup: FC<ButtonGroupProps>;
|
|
535
|
-
|
|
536
|
-
type ChevronIconProps = {
|
|
537
|
-
/** Rotate 180° when expanded/open. */
|
|
538
|
-
expanded?: boolean;
|
|
539
|
-
className?: string;
|
|
540
|
-
};
|
|
541
|
-
/**
|
|
542
|
-
* Canonical chevron used for collapsibles, dropdown triggers, and select pills
|
|
543
|
-
* across the app. One icon everywhere.
|
|
544
|
-
*/
|
|
545
|
-
declare const ChevronIcon: FC<ChevronIconProps>;
|
|
546
|
-
|
|
547
|
-
/**
|
|
548
|
-
* Light/dark colour mode. The chosen mode is reflected as `class="dark"` on
|
|
549
|
-
* <html>, which flips the design-system tokens (see styles/tokens.css: `.dark`
|
|
550
|
-
* + `.dark [data-theme]`). One shared module-level store backs every
|
|
551
|
-
* `useColorMode()` consumer, so duplicate toggles never desync and changes
|
|
552
|
-
* propagate across tabs.
|
|
553
|
-
*
|
|
554
|
-
* The chosen mode is persisted to localStorage (per-origin), which also powers
|
|
555
|
-
* the cross-tab `storage` sync below. Read priority: localStorage → system
|
|
556
|
-
* preference. Choosing the mode the system already uses clears the stored
|
|
557
|
-
* choice, so later visits follow the system again.
|
|
558
|
-
*
|
|
559
|
-
* Host apps should set the initial class pre-paint (a tiny inline script in the
|
|
560
|
-
* document head, reading the same key) to avoid a flash of light before React
|
|
561
|
-
* mounts; this store is the source of truth after hydration.
|
|
562
|
-
*
|
|
563
|
-
* Side-effect-free on import: the <html> sync and the cross-tab listener are
|
|
564
|
-
* attached lazily on first subscribe, so importing this module (e.g. via the
|
|
565
|
-
* package barrel) never mutates the DOM on its own.
|
|
566
|
-
*/
|
|
567
|
-
type ColorMode = "light" | "dark";
|
|
568
|
-
/**
|
|
569
|
-
* Set the color mode programmatically. Updates the shared store (so every
|
|
570
|
-
* `useColorMode()` consumer re-renders), flips the `.dark` class, and persists
|
|
571
|
-
* to localStorage, or clears it when the mode matches the system.
|
|
572
|
-
*/
|
|
573
|
-
declare function setColorMode(mode: ColorMode): void;
|
|
574
|
-
declare function useColorMode(): {
|
|
575
|
-
mode: ColorMode;
|
|
576
|
-
isDark: boolean;
|
|
577
|
-
toggle: () => void;
|
|
578
|
-
};
|
|
579
|
-
/**
|
|
580
|
-
* Sliding sun/moon switch: `Switch` as a two-way choice, so the track stays
|
|
581
|
-
* neutral and the thumb carries the active mode's icon. Self-contained —
|
|
582
|
-
* wires itself to `useColorMode`.
|
|
583
|
-
*/
|
|
584
|
-
declare const ColorModeToggle: FC;
|
|
585
|
-
|
|
586
|
-
type DrawerProps = {
|
|
587
|
-
open: boolean;
|
|
588
|
-
onOpenChange: (open: boolean) => void;
|
|
589
|
-
ariaLabel: string;
|
|
590
|
-
children: ReactNode;
|
|
591
|
-
side?: "left" | "right";
|
|
592
|
-
contentClassName?: string;
|
|
593
|
-
};
|
|
594
|
-
/** Accessible side drawer for mobile navigation and compact tools. */
|
|
595
|
-
declare const Drawer: FC<DrawerProps>;
|
|
596
|
-
|
|
597
|
-
type BaseDropdownItemProps = {
|
|
598
|
-
className?: string;
|
|
599
|
-
};
|
|
600
|
-
type DropdownItemProps<T extends React.ElementType = "button"> = PropsWithChildren<BaseDropdownItemProps> & {
|
|
601
|
-
as?: T;
|
|
602
|
-
} & Omit<React.ComponentPropsWithoutRef<T>, keyof BaseDropdownItemProps | "as">;
|
|
603
|
-
declare function DropdownItem<T extends React.ElementType = "button">({ as, className, children, ...rest }: DropdownItemProps<T>): react_jsx_runtime.JSX.Element;
|
|
604
|
-
|
|
605
|
-
declare const sizeClasses: {
|
|
606
|
-
readonly page: "polli:text-sm polli:tracking-widest polli:text-theme-text-soft";
|
|
607
|
-
readonly card: "polli:text-xs polli:tracking-wider polli:text-theme-text-soft";
|
|
608
|
-
readonly chrome: "polli:text-micro polli:tracking-widest polli:text-theme-text-muted";
|
|
609
|
-
};
|
|
610
|
-
type EyebrowOwnProps<T extends ElementType> = {
|
|
611
|
-
as?: T;
|
|
612
|
-
size?: keyof typeof sizeClasses;
|
|
613
|
-
className?: string;
|
|
614
|
-
children: ReactNode;
|
|
615
|
-
};
|
|
616
|
-
type EyebrowProps<T extends ElementType = "span"> = EyebrowOwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof EyebrowOwnProps<T>>;
|
|
617
|
-
/** Uppercase pixel label for page, card, and chrome metadata. */
|
|
618
|
-
declare function Eyebrow<T extends ElementType = "span">({ as, size, className, children, ...rest }: EyebrowProps<T>): react_jsx_runtime.JSX.Element;
|
|
619
|
-
|
|
620
|
-
/** `danger` (delete, red) and `info` (edit/links, blue). */
|
|
621
|
-
type IconButtonIntent = "danger" | "info";
|
|
622
|
-
type IconButtonVariant = "tile" | "ghost";
|
|
623
|
-
type IconButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className" | "title"> & {
|
|
624
|
-
intent?: IconButtonIntent;
|
|
625
|
-
variant?: IconButtonVariant;
|
|
626
|
-
pressed?: boolean;
|
|
627
|
-
title?: string;
|
|
628
|
-
tooltip?: ReactNode;
|
|
629
|
-
tooltipAlign?: "start" | "center";
|
|
630
|
-
tooltipClampToViewport?: boolean;
|
|
631
|
-
children: ReactNode;
|
|
632
|
-
className?: string;
|
|
633
|
-
size?: "sm" | "md";
|
|
634
|
-
};
|
|
635
|
-
declare const IconButton: react.ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "className" | "children" | "title"> & {
|
|
636
|
-
intent?: IconButtonIntent;
|
|
637
|
-
variant?: IconButtonVariant;
|
|
638
|
-
pressed?: boolean;
|
|
639
|
-
title?: string;
|
|
640
|
-
tooltip?: ReactNode;
|
|
641
|
-
tooltipAlign?: "start" | "center";
|
|
642
|
-
tooltipClampToViewport?: boolean;
|
|
643
|
-
children: ReactNode;
|
|
644
|
-
className?: string;
|
|
645
|
-
size?: "sm" | "md";
|
|
646
|
-
} & react.RefAttributes<HTMLButtonElement>>;
|
|
647
|
-
|
|
648
|
-
type BaseInlineLinkProps = {
|
|
649
|
-
/** Set explicitly for non-http external links, or false for custom routing components. */
|
|
650
|
-
external?: boolean;
|
|
651
|
-
showIcon?: boolean;
|
|
652
|
-
/** Inline text inherits its size; footers use 13px and standalone links 14px. */
|
|
653
|
-
size?: "inherit" | "footer" | "sm";
|
|
654
|
-
/** Accent for prominent links; quiet for secondary navigation. */
|
|
655
|
-
tone?: "accent" | "quiet";
|
|
656
|
-
className?: string;
|
|
657
|
-
};
|
|
658
|
-
type InlineLinkProps<T extends React.ElementType = "a"> = PropsWithChildren<BaseInlineLinkProps> & {
|
|
659
|
-
as?: T;
|
|
660
|
-
} & Omit<React.ComponentPropsWithoutRef<T>, keyof BaseInlineLinkProps | "as">;
|
|
661
|
-
/** Shared text-link rule: surrounding font, selectable ink, persistent underline,
|
|
662
|
-
* visible keyboard focus, and an external arrow only when leaving the app.
|
|
663
|
-
* Navigation and button-shaped actions use their own primitives.
|
|
664
|
-
*/
|
|
665
|
-
declare function InlineLink<T extends React.ElementType = "a">({ as, external, showIcon, size, tone, className, children, ...linkProps }: InlineLinkProps<T>): react_jsx_runtime.JSX.Element;
|
|
666
|
-
|
|
667
|
-
/** Icons inherit color via currentColor and size via className or SVG props. */
|
|
668
|
-
type IconProps = ComponentPropsWithoutRef<"svg">;
|
|
669
|
-
|
|
670
|
-
declare function AppIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
671
|
-
declare function AccountIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
672
|
-
declare function ArrowRightIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
673
|
-
declare function BeakerIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
674
|
-
declare function BotIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
675
|
-
declare function BookIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
676
|
-
declare function BugIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
677
|
-
declare function CheckIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
678
|
-
declare function ClipboardIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
679
|
-
declare function ClockIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
680
|
-
declare function DiscordIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
681
|
-
declare function InstagramIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
682
|
-
declare function XSocialIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
683
|
-
declare function LinkedInIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
684
|
-
declare function DownloadIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
685
|
-
declare function ExpandIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
686
|
-
declare function PlayIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
687
|
-
declare function PauseIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
688
|
-
declare function CloudUploadIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
689
|
-
declare function ExternalLinkIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
690
|
-
declare function GenApiIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
691
|
-
declare function GitBranchIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
692
|
-
declare function GitPullRequestIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
693
|
-
declare function GraduationCapIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
694
|
-
declare function SparklesIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
695
|
-
declare function GitHubIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
696
|
-
declare function ImageIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
697
|
-
declare function CubeIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
698
|
-
declare function AudioIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
699
|
-
declare function LockIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
700
|
-
declare function LogInIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
701
|
-
declare function LogOutIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
702
|
-
declare function MailIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
703
|
-
declare function McpIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
704
|
-
declare function MenuIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
705
|
-
declare function NewspaperIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
706
|
-
declare function PlusIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
707
|
-
declare function TerminalIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
708
|
-
declare function ToolIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
709
|
-
declare function TargetIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
710
|
-
declare function TokensIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
711
|
-
declare function UsageIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
712
|
-
declare function WarningIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
713
|
-
declare function TrendUpIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
714
|
-
declare function EarningsIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
715
|
-
declare function WalletIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
716
|
-
/** A paper receipt: what a price includes. */
|
|
717
|
-
declare function ReceiptIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
718
|
-
declare function MoonIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
719
|
-
declare function SunIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
720
|
-
declare function XIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
721
|
-
declare function TrashIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
722
|
-
declare function ChatIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
723
|
-
declare function RobotIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
724
|
-
declare function EyeIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
725
|
-
declare function EyeOffIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
726
|
-
declare function VideoIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
727
|
-
declare function MicIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
728
|
-
declare function SpeakerIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
729
|
-
declare function MegaphoneIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
730
|
-
declare function ReasoningIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
731
|
-
declare function RocketIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
732
|
-
declare function SearchIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
733
|
-
declare function SignOutIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
734
|
-
declare function PowerIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
735
|
-
declare function SparkleIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
736
|
-
declare function StarIcon({ filled, ...props }: IconProps & {
|
|
737
|
-
filled?: boolean;
|
|
738
|
-
}): react_jsx_runtime.JSX.Element;
|
|
739
|
-
declare function CodeIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
740
|
-
declare function DatabaseIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
741
|
-
declare function CardIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
742
|
-
declare function SproutIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
743
|
-
declare function PencilIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
744
|
-
declare function KeyIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
745
|
-
declare function GlobeIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
746
|
-
declare function ArrowLeftIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
747
|
-
declare function RefreshIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
748
|
-
|
|
749
|
-
/** Compact status for both initial loading and background updates. */
|
|
750
|
-
declare function LoadingStatus({ children }: {
|
|
751
|
-
children: ReactNode;
|
|
752
|
-
}): react_jsx_runtime.JSX.Element;
|
|
753
|
-
|
|
754
|
-
type SliderProps = Omit<React.ComponentPropsWithoutRef<"input">, "type"> & {
|
|
755
|
-
/** Fill percentage from 0-100. Falls back to value/min/max when omitted. */
|
|
756
|
-
progress?: number;
|
|
757
|
-
};
|
|
758
|
-
declare const Slider: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type"> & {
|
|
759
|
-
/** Fill percentage from 0-100. Falls back to value/min/max when omitted. */
|
|
760
|
-
progress?: number;
|
|
761
|
-
} & react.RefAttributes<HTMLInputElement>>;
|
|
762
|
-
|
|
763
|
-
type SurfaceVariant = "panel" | "card" | "card-themed";
|
|
764
|
-
type SurfaceOwnProps = {
|
|
765
|
-
/**
|
|
766
|
-
* Depth role — flat: each level is one tint step, never a shadow or border.
|
|
767
|
-
* - `panel` — Level 1 block: sections and page groups
|
|
768
|
-
* - `card` — Level 2 card inside a block (default)
|
|
769
|
-
* - `card-themed` — Level 2 card carrying the accent tint
|
|
770
|
-
*/
|
|
771
|
-
variant?: SurfaceVariant;
|
|
772
|
-
className?: string;
|
|
773
|
-
};
|
|
774
|
-
/**
|
|
775
|
-
* Polymorphic like Button, TabButton and LinkCard, so a card that is itself a
|
|
776
|
-
* link renders one element instead of an anchor wrapping a div. Defaults to
|
|
777
|
-
* <div>, so existing call sites are unchanged.
|
|
778
|
-
*/
|
|
779
|
-
type SurfaceProps<T extends ElementType = "div"> = SurfaceOwnProps & {
|
|
780
|
-
as?: T;
|
|
781
|
-
} & Omit<ComponentPropsWithoutRef<T>, keyof SurfaceOwnProps | "as" | "color">;
|
|
782
|
-
declare function Surface<T extends ElementType = "div">({ as, variant, className, children, ...rest }: SurfaceProps<T>): react_jsx_runtime.JSX.Element;
|
|
783
|
-
|
|
784
|
-
type SwitchStatus = "off" | "on" | "invalid";
|
|
785
|
-
type SwitchSize = "sm" | "md" | "lg";
|
|
786
|
-
type SwitchProps = {
|
|
787
|
-
checked: boolean;
|
|
788
|
-
onChange: (next: boolean) => void;
|
|
789
|
-
/** Track colour. Defaults to `checked ? "on" : "off"`. */
|
|
790
|
-
status?: SwitchStatus;
|
|
791
|
-
/** Accessible label (aria-label). Not rendered visibly. */
|
|
792
|
-
ariaLabel?: string;
|
|
793
|
-
disabled?: boolean;
|
|
794
|
-
/** Same heights as `Button` sm / md / lg, so a switch lines up with one. */
|
|
795
|
-
size?: SwitchSize;
|
|
796
|
-
/**
|
|
797
|
-
* A two-way choice (light/dark) rather than on/off: the thumb carries the
|
|
798
|
-
* current side's icon, the other sits faint on the empty side, and the
|
|
799
|
-
* track looks the same in both positions.
|
|
800
|
-
*/
|
|
801
|
-
icons?: {
|
|
802
|
-
off: ReactNode;
|
|
803
|
-
on: ReactNode;
|
|
804
|
-
};
|
|
805
|
-
className?: string;
|
|
806
|
-
};
|
|
807
|
-
/**
|
|
808
|
-
* Binary toggle, in `Button`'s sizes: grey off, green on. `checked` moves the thumb;
|
|
809
|
-
* `status` colours it, so `checked status="invalid"` is thumb-right in red.
|
|
810
|
-
* With `icons` it is a two-way choice with a solid thumb on both sides.
|
|
811
|
-
*/
|
|
812
|
-
declare const Switch: FC<SwitchProps>;
|
|
813
|
-
|
|
814
|
-
type TabButtonOwnProps = {
|
|
815
|
-
/** `mixed`: a group toggle where only some of its items are selected. */
|
|
816
|
-
active: boolean | "mixed";
|
|
817
|
-
/** Omit when rendering as a link (`as`) and navigation carries the change. */
|
|
818
|
-
onClick?: () => void;
|
|
819
|
-
children: ReactNode;
|
|
820
|
-
size?: "lg" | "md" | "sm" | "xs";
|
|
821
|
-
variant?: "soft" | "ghost";
|
|
822
|
-
/**
|
|
823
|
-
* `amber` and `green` fill the selected pill with the wallet's pale paid
|
|
824
|
-
* and Quest Pollen chip colours, which read at the same strength together.
|
|
825
|
-
*/
|
|
826
|
-
intent?: "neutral" | "amber" | "green";
|
|
827
|
-
/** Muted secondary text after the label, e.g. a model's creator. */
|
|
828
|
-
detail?: ReactNode;
|
|
829
|
-
ariaLabel?: string;
|
|
830
|
-
disabled?: boolean;
|
|
831
|
-
className?: string;
|
|
832
|
-
};
|
|
833
|
-
/**
|
|
834
|
-
* Polymorphic like Button, so a tab that navigates can render a real anchor
|
|
835
|
-
* instead of a click handler — middle-click, right-click and crawlers all
|
|
836
|
-
* depend on that. Defaults to <button>, so existing call sites are unchanged.
|
|
837
|
-
*/
|
|
838
|
-
type TabButtonProps<T extends ElementType = "button"> = TabButtonOwnProps & {
|
|
839
|
-
as?: T;
|
|
840
|
-
} & Omit<ComponentPropsWithoutRef<T>, keyof TabButtonOwnProps | "as">;
|
|
841
|
-
declare function TabButton<T extends ElementType = "button">({ as, active, onClick, children, size, variant, intent, detail, ariaLabel, disabled, className, ...rest }: TabButtonProps<T>): react_jsx_runtime.JSX.Element;
|
|
842
|
-
|
|
843
|
-
type Align = "left" | "center" | "right";
|
|
844
|
-
type RowIntent = "default" | "warning" | "danger";
|
|
845
|
-
type SortDirection = "asc" | "desc";
|
|
846
|
-
type TableProps = ComponentPropsWithoutRef<"table">;
|
|
847
|
-
declare const Table: FC<TableProps>;
|
|
848
|
-
type TableHeadProps = ComponentPropsWithoutRef<"thead">;
|
|
849
|
-
declare const TableHead: FC<TableHeadProps>;
|
|
850
|
-
type TableBodyProps = ComponentPropsWithoutRef<"tbody"> & {
|
|
851
|
-
divider?: "themed" | "neutral";
|
|
852
|
-
};
|
|
853
|
-
declare const TableBody: FC<TableBodyProps>;
|
|
854
|
-
type TableRowProps = ComponentPropsWithoutRef<"tr"> & {
|
|
855
|
-
intent?: RowIntent;
|
|
856
|
-
};
|
|
857
|
-
declare const TableRow: FC<TableRowProps>;
|
|
858
|
-
type TableHeaderCellProps = Omit<ComponentPropsWithoutRef<"th">, "children"> & {
|
|
859
|
-
align?: Align;
|
|
860
|
-
active?: boolean;
|
|
861
|
-
sortDirection?: SortDirection;
|
|
862
|
-
onSort?: () => void;
|
|
863
|
-
children: ReactNode;
|
|
864
|
-
};
|
|
865
|
-
declare const TableHeaderCell: FC<TableHeaderCellProps>;
|
|
866
|
-
type TableCellProps = ComponentPropsWithoutRef<"td"> & {
|
|
867
|
-
align?: Align;
|
|
868
|
-
numeric?: boolean;
|
|
869
|
-
muted?: boolean;
|
|
870
|
-
};
|
|
871
|
-
declare const TableCell: FC<TableCellProps>;
|
|
872
|
-
|
|
873
|
-
type TableDisclosureButtonProps = {
|
|
874
|
-
children: ReactNode;
|
|
875
|
-
disabled?: boolean;
|
|
876
|
-
expanded: boolean;
|
|
877
|
-
onClick: () => void;
|
|
878
|
-
className?: string;
|
|
879
|
-
};
|
|
880
|
-
/** Compact disclosure trigger for expandable table rows. */
|
|
881
|
-
declare const TableDisclosureButton: FC<TableDisclosureButtonProps>;
|
|
882
|
-
|
|
883
|
-
type TextareaProps = React.ComponentPropsWithoutRef<"textarea"> & {
|
|
884
|
-
error?: boolean;
|
|
885
|
-
};
|
|
886
|
-
declare const Textarea: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & {
|
|
887
|
-
error?: boolean;
|
|
888
|
-
} & react.RefAttributes<HTMLTextAreaElement>>;
|
|
889
|
-
|
|
890
|
-
type TooltipProps = {
|
|
891
|
-
children: ReactNode;
|
|
892
|
-
content: ReactNode;
|
|
893
|
-
align?: "start" | "center";
|
|
894
|
-
ariaLabel?: string;
|
|
895
|
-
clampToViewport?: boolean;
|
|
896
|
-
className?: string;
|
|
897
|
-
maxWidth?: number;
|
|
898
|
-
onClick?: () => void;
|
|
899
|
-
stopClickPropagation?: boolean;
|
|
900
|
-
style?: CSSProperties;
|
|
901
|
-
tapEnabled?: boolean;
|
|
902
|
-
triggerAs?: "button" | "span";
|
|
903
|
-
/**
|
|
904
|
-
* When true, the inner cursor wrapper uses display:contents so the
|
|
905
|
-
* trigger's flex/grid layout applies directly to the caller's children
|
|
906
|
-
* without an inline wrapper in the way.
|
|
907
|
-
*/
|
|
908
|
-
displayContents?: boolean;
|
|
909
|
-
};
|
|
910
|
-
declare const Tooltip: FC<TooltipProps>;
|
|
911
|
-
|
|
912
|
-
type HeadingSize = "display" | "title" | "section" | "subsection" | "card";
|
|
913
|
-
type TextSize = "body" | "sm" | "xs" | "micro";
|
|
914
|
-
type TextTone = "base" | "strong" | "soft" | "muted";
|
|
915
|
-
type TextWeight = "normal" | "medium" | "semibold" | "bold";
|
|
916
|
-
type HeadingOwnProps<T extends ElementType> = PropsWithChildren<{
|
|
917
|
-
as?: T;
|
|
918
|
-
size?: HeadingSize;
|
|
919
|
-
className?: string;
|
|
920
|
-
}>;
|
|
921
|
-
type HeadingProps<T extends ElementType = "h2"> = HeadingOwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof HeadingOwnProps<T>>;
|
|
922
|
-
declare function Heading<T extends ElementType = "h2">({ as, size, className, children, ...rest }: HeadingProps<T>): react_jsx_runtime.JSX.Element;
|
|
923
|
-
type TextOwnProps<T extends ElementType> = PropsWithChildren<{
|
|
924
|
-
as?: T;
|
|
925
|
-
size?: TextSize;
|
|
926
|
-
tone?: TextTone;
|
|
927
|
-
weight?: TextWeight;
|
|
928
|
-
className?: string;
|
|
929
|
-
}>;
|
|
930
|
-
type TextProps<T extends ElementType = "p"> = TextOwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof TextOwnProps<T>>;
|
|
931
|
-
declare function Text<T extends ElementType = "p">({ as, size, tone, weight, className, children, ...rest }: TextProps<T>): react_jsx_runtime.JSX.Element;
|
|
932
|
-
|
|
933
|
-
export { AccountIcon, AccountIdentity, AccountIdentityLink, type AccountIdentityLinkProps, type AccountIdentityProps, AccountMenu, type AccountMenuProps, Alert, type AlertProps, AppBrand, type AppBrandProps, AppHeader, type AppHeaderProps, AppIcon, ArrowLeftIcon, ArrowRightIcon, AudioIcon, BeakerIcon, BookIcon, BotIcon, BrandMark, type BrandMarkProps, BugIcon, ButtonAppearance, ButtonGroup, type ButtonGroupProps, ButtonProps, Callout, type CalloutProps, CardIcon, ChatConversation, ChatConversationContent, type ChatConversationContentProps, type ChatConversationProps, ChatIcon, ChatMessage, ChatMessageActions, type ChatMessageActionsProps, ChatMessageContent, type ChatMessageContentProps, ChatMessageHeader, type ChatMessageHeaderProps, type ChatMessageProps, type ChatMessageRole, ChatPromptInput, ChatPromptInputFooter, type ChatPromptInputFooterProps, type ChatPromptInputProps, ChatPromptTextarea, CheckIcon, ChevronIcon, ClipboardIcon, ClockIcon, CloudUploadIcon, CodeBlock, type CodeBlockProps, CodeIcon, Collapsible, type CollapsibleProps, ColorModeToggle, ConfirmationDialog, type ConfirmationDialogProps, ContentHeader, type ContentHeaderProps, CopyButton, type CopyButtonProps, CopyField, type CopyFieldProps, CubeIcon, DatabaseIcon, DialogProps, DiscordIcon, DownloadIcon, Drawer, type DrawerProps, Dropdown, DropdownItem, type DropdownItemProps, type DropdownProps, EarningsIcon, EditableCombobox, type EditableComboboxProps, EditableComboboxToken, type EditableComboboxTokenProps, ExpandIcon, ExternalLinkButton, type ExternalLinkButtonProps, ExternalLinkIcon, EyeIcon, EyeOffIcon, Eyebrow, type EyebrowProps, FieldStack, type FieldStackProps, FileUpload, type FileUploadProps, GenApiIcon, GitBranchIcon, GitHubIcon, GitPullRequestIcon, GlobeIcon, GraduationCapIcon, Heading, type HeadingProps, IconButton, type IconButtonIntent, type IconButtonProps, type IconButtonVariant, type IconProps, ImageIcon, InfoTip, InlineLink, type InlineLinkProps, Input, type InputProps, InstagramIcon, KeyChip, type KeyChipProps, KeyIcon, LinkCard, type LinkCardProps, LinkedInIcon, LoadingStatus, LockIcon, LogInIcon, LogOutIcon, MailIcon, McpIcon, MediaPlaceholder, type MediaPlaceholderProps, MegaphoneIcon, MenuIcon, MicIcon, MoonIcon, MultiSelect, type MultiSelectProps, NavItem, type NavItemProps, NewspaperIcon, PauseIcon, PencilIcon, type PeriodGranularity, PeriodPicker, type PeriodPickerProps, type PeriodSelection, PlayIcon, PlusIcon, PowerIcon, ReasoningIcon, ReceiptIcon, RefreshIcon, RobotIcon, RocketIcon, ScrollAreaProps, SearchIcon, Section, type SectionProps, SignOutIcon, Slider, type SliderProps, SparkleIcon, SparklesIcon, SpeakerIcon, SproutIcon, StarIcon, StatCard, type StatCardProps, SunIcon, Surface, type SurfaceProps, Switch, type SwitchProps, type SwitchSize, type SwitchStatus, TabButton, type TabButtonProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableDisclosureButton, type TableDisclosureButtonProps, TableHead, type TableHeadProps, TableHeaderCell, type TableHeaderCellProps, type TableProps, TableRow, type TableRowProps, TargetIcon, TerminalIcon, Text, type TextProps, Textarea, type TextareaProps, TokensIcon, ToolCallDetails, type ToolCallDetailsProps, type ToolCallStatus, ToolIcon, Tooltip, TrashIcon, TrendUpIcon, UsageIcon, VideoIcon, WalletIcon, WarningIcon, XIcon, XSocialIcon, cn, currentPeriod, getPeriodBucketKeys, isPeriodSelectable, periodBucketKeyToDate, periodFromDate, periodToWindow, setColorMode, useColorMode, useScrollLock };
|