@pollinations/ui 0.1.0-alpha.0 → 0.1.0-alpha.10

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