@pollinations/ui 0.1.0-alpha.4 → 0.1.0-alpha.40

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 (89) hide show
  1. package/README.md +16 -8
  2. package/dist/{Button-ByKwRtdw.d.cts → Button-Bt_eMnOx.d.ts} +4 -2
  3. package/dist/app-user-menu/sdk.d.ts +17 -5
  4. package/dist/app-user-menu/sdk.js +104 -774
  5. package/dist/app-user-menu/sdk.js.map +1 -1
  6. package/dist/app.css +21 -0
  7. package/dist/auth/index.d.ts +12 -5
  8. package/dist/auth/index.js +170 -1159
  9. package/dist/auth/index.js.map +1 -1
  10. package/dist/auth/sdk.d.ts +1 -1
  11. package/dist/auth/sdk.js +9 -205
  12. package/dist/auth/sdk.js.map +1 -1
  13. package/dist/brand/badge-made-with.svg +1 -0
  14. package/dist/brand/polli/polli-lockup-horizontal-black.png +0 -0
  15. package/dist/brand/polli/polli-lockup-horizontal-white.png +0 -0
  16. package/dist/brand/polli/polli.png +0 -0
  17. package/dist/chunk-B7T42IY2.js +255 -0
  18. package/dist/chunk-B7T42IY2.js.map +1 -0
  19. package/dist/chunk-DFYLQTCM.js +107 -0
  20. package/dist/chunk-DFYLQTCM.js.map +1 -0
  21. package/dist/chunk-EHOK3XKM.js +112 -0
  22. package/dist/chunk-EHOK3XKM.js.map +1 -0
  23. package/dist/chunk-FZXMS7HJ.js +93 -0
  24. package/dist/chunk-FZXMS7HJ.js.map +1 -0
  25. package/dist/chunk-KLAOGE6Y.js +125 -0
  26. package/dist/chunk-KLAOGE6Y.js.map +1 -0
  27. package/dist/chunk-KTGSOTNW.js +534 -0
  28. package/dist/chunk-KTGSOTNW.js.map +1 -0
  29. package/dist/chunk-LAZ5O2ZK.js +105 -0
  30. package/dist/chunk-LAZ5O2ZK.js.map +1 -0
  31. package/dist/chunk-MS2GGEMU.js +311 -0
  32. package/dist/chunk-MS2GGEMU.js.map +1 -0
  33. package/dist/chunk-MU7JQOTF.js +170 -0
  34. package/dist/chunk-MU7JQOTF.js.map +1 -0
  35. package/dist/chunk-OWQ2HDQB.js +50 -0
  36. package/dist/chunk-OWQ2HDQB.js.map +1 -0
  37. package/dist/chunk-QPNEXTZ5.js +88 -0
  38. package/dist/chunk-QPNEXTZ5.js.map +1 -0
  39. package/dist/{app-user-menu/sdk.cjs → chunk-R3RMENGN.js} +114 -773
  40. package/dist/chunk-R3RMENGN.js.map +1 -0
  41. package/dist/chunk-WV4XTYMU.js +58 -0
  42. package/dist/chunk-WV4XTYMU.js.map +1 -0
  43. package/dist/chunk-WVDV47XQ.js +651 -0
  44. package/dist/chunk-WVDV47XQ.js.map +1 -0
  45. package/dist/connect.js +100 -0
  46. package/dist/connect.js.map +1 -0
  47. package/dist/gen/index.d.ts +14 -7
  48. package/dist/gen/index.js +59 -474
  49. package/dist/gen/index.js.map +1 -1
  50. package/dist/index-BR4r9rhQ.d.ts +90 -0
  51. package/dist/index.browser.min.js +1 -1
  52. package/dist/index.browser.min.js.map +1 -1
  53. package/dist/index.d.ts +195 -103
  54. package/dist/index.js +1051 -2801
  55. package/dist/index.js.map +1 -1
  56. package/dist/licenses/Octicons-MIT.txt +21 -0
  57. package/dist/markdown.d.ts +3 -1
  58. package/dist/markdown.js +69 -598
  59. package/dist/markdown.js.map +1 -1
  60. package/dist/styles.css +1 -1
  61. package/dist/theme.css +12 -0
  62. package/dist/types-CCy9JNu9.d.ts +6 -0
  63. package/dist/wallet/index.d.ts +20 -1
  64. package/dist/wallet/index.js +19 -370
  65. package/dist/wallet/index.js.map +1 -1
  66. package/package.json +18 -22
  67. package/dist/Button-ByKwRtdw.d.ts +0 -29
  68. package/dist/Chip-v-ADv6cz.d.cts +0 -18
  69. package/dist/Dialog-D3Nqt8cE.d.cts +0 -66
  70. package/dist/app-user-menu/sdk.cjs.map +0 -1
  71. package/dist/app-user-menu/sdk.d.cts +0 -33
  72. package/dist/auth/index.cjs +0 -1512
  73. package/dist/auth/index.cjs.map +0 -1
  74. package/dist/auth/index.d.cts +0 -112
  75. package/dist/auth/sdk.cjs +0 -244
  76. package/dist/auth/sdk.cjs.map +0 -1
  77. package/dist/auth/sdk.d.cts +0 -40
  78. package/dist/gen/index.cjs +0 -687
  79. package/dist/gen/index.cjs.map +0 -1
  80. package/dist/gen/index.d.cts +0 -84
  81. package/dist/index.cjs +0 -5183
  82. package/dist/index.cjs.map +0 -1
  83. package/dist/index.d.cts +0 -933
  84. package/dist/markdown.cjs +0 -826
  85. package/dist/markdown.cjs.map +0 -1
  86. package/dist/markdown.d.cts +0 -16
  87. package/dist/wallet/index.cjs +0 -429
  88. package/dist/wallet/index.cjs.map +0 -1
  89. package/dist/wallet/index.d.cts +0 -53
package/dist/index.d.ts CHANGED
@@ -3,8 +3,11 @@ import * as react from 'react';
3
3
  import { ReactNode, CSSProperties, FC, ComponentPropsWithoutRef, RefObject, ButtonHTMLAttributes, PropsWithChildren, ComponentType, ElementType } from 'react';
4
4
  import { S as ScrollAreaProps, D as DialogProps } from './Dialog-D3Nqt8cE.js';
5
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-ByKwRtdw.js';
7
- export { b as Button } from './Button-ByKwRtdw.js';
6
+ import { B as ButtonProps, a as ButtonAppearance } from './Button-Bt_eMnOx.js';
7
+ export { b as Button } from './Button-Bt_eMnOx.js';
8
+ import { I as IconProps } from './types-CCy9JNu9.js';
9
+ import { D as DiscordIcon, G as GitHubIcon } from './index-BR4r9rhQ.js';
10
+ export { A as AccountIcon, a as AppIcon, b as ArrowLeftIcon, c as ArrowRightIcon, d as AudioIcon, B as BeakerIcon, e as BookIcon, f as BotIcon, g as BugIcon, C as CardIcon, h as ChatIcon, i as CheckIcon, j as ClipboardIcon, k as ClockIcon, l as CloudUploadIcon, m as CodeIcon, n as CubeIcon, o as DatabaseIcon, p as DownloadIcon, E as EarningsIcon, q as ExpandIcon, r as ExternalLinkIcon, s as EyeIcon, t as EyeOffIcon, u as GenApiIcon, v as GitBranchIcon, w as GitMergeIcon, x as GitPullRequestIcon, y as GlobeIcon, z as GoogleIcon, F as GraduationCapIcon, I as ImageIcon, H as InstagramIcon, J as IssueClosedIcon, K as KeyIcon, L as LayersIcon, M as LinkedInIcon, N as LockIcon, O as LogInIcon, P as LogOutIcon, Q as MailIcon, R as McpIcon, S as MegaphoneIcon, T as MenuIcon, U as MicIcon, V as MoonIcon, W as NewspaperIcon, X as PauseIcon, Y as PencilIcon, Z as PlayIcon, _ as PlusIcon, $ as PowerIcon, a0 as PulseIcon, a1 as ReasoningIcon, a2 as ReceiptIcon, a3 as RefreshIcon, a4 as RobotIcon, a5 as RocketIcon, a6 as SearchIcon, a7 as ShieldCheckIcon, a8 as SignOutIcon, a9 as SparkleIcon, aa as SparklesIcon, ab as SpeakerIcon, ac as SproutIcon, ad as StarIcon, ae as SunIcon, af as TargetIcon, ag as TerminalIcon, ah as TokensIcon, ai as ToolIcon, aj as TrashIcon, ak as TrendUpIcon, al as UsageIcon, am as VideoIcon, an as WalletIcon, ao as WarningIcon, ap as XIcon, aq as XSocialIcon } from './index-BR4r9rhQ.js';
8
11
  export { C as Chip } from './Chip-v-ADv6cz.js';
9
12
  export { Field } from '@ark-ui/react/field';
10
13
  import '@ark-ui/react/dialog';
@@ -174,7 +177,7 @@ type CollapsibleProps = {
174
177
  wrapperClassName?: string;
175
178
  /** Trigger/header base classes (e.g. a selected background). */
176
179
  triggerClassName?: string;
177
- /** Trigger hover classes. Defaults to `polli:hover:bg-theme-bg-active`. */
180
+ /** Trigger hover classes. Defaults to the pale wash of the fill. */
178
181
  hoverClassName?: string;
179
182
  /** Trigger focus classes. */
180
183
  focusClassName?: string;
@@ -226,16 +229,21 @@ type ContentHeaderProps = {
226
229
  /** Shared page/section heading rhythm with an optional trailing action. */
227
230
  declare function ContentHeader({ eyebrow, title, subtitle, action, variant, className, }: ContentHeaderProps): react_jsx_runtime.JSX.Element;
228
231
 
232
+ /** The copy state as an icon: a clipboard, then an amber check once copied.
233
+ * The icon is the only thing a copy changes: labels and colours stay put. */
234
+ declare function CopyStateIcon({ copied, className, ...props }: IconProps & {
235
+ copied: boolean;
236
+ }): react_jsx_runtime.JSX.Element;
229
237
  type CopyValue = string | (() => string | Promise<string>);
230
238
  type CopyButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className" | "onClick" | "type" | "value"> & {
231
239
  value: CopyValue;
232
240
  children: ReactNode | ((copied: boolean) => ReactNode);
233
- copiedTimeoutMs?: number;
241
+ /** Extra hover content, e.g. the full value behind a short label. Copy
242
+ * buttons don't need one to say "copy": the icon does. */
234
243
  tooltip?: ReactNode;
235
244
  tooltipAlign?: "start" | "center";
236
245
  tooltipClampToViewport?: boolean;
237
246
  tooltipMaxWidth?: number;
238
- copiedTooltip?: ReactNode;
239
247
  tooltipClassName?: string;
240
248
  className?: string | ((copied: boolean) => string);
241
249
  variant?: "plain" | "button";
@@ -244,20 +252,28 @@ type CopyButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"
244
252
  onCopied?: () => void;
245
253
  onCopyError?: (error: unknown) => void;
246
254
  };
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;
255
+ declare function CopyButton({ value, children, tooltip, tooltipAlign, tooltipClampToViewport, tooltipMaxWidth, tooltipClassName, className, variant, intent, onCopied, onCopyError, ...buttonProps }: CopyButtonProps): react_jsx_runtime.JSX.Element;
248
256
 
249
- type CopyFieldProps = Pick<CopyButtonProps, "value" | "onCopied" | "onCopyError" | "copiedTimeoutMs"> & {
257
+ declare const sizeClasses$1: {
258
+ readonly md: "polli:min-h-10 polli:gap-3 polli:rounded-lg polli:border polli:border-divider polli:bg-theme-bg-pale polli:px-3 polli:py-2 polli:text-theme-text-base polli:hover:text-theme-text-strong";
259
+ readonly sm: "polli:min-h-7 polli:gap-2 polli:rounded-[0.875rem] polli:bg-theme-bg-subtle polli:px-3 polli:py-1 polli:text-theme-text-base polli:hover:bg-theme-text-muted/25 polli:hover:text-theme-text-strong";
260
+ };
261
+ type CopyFieldProps = Pick<CopyButtonProps, "value" | "onCopied" | "onCopyError"> & {
250
262
  /** Accessible name, e.g. "Copy secret key". */
251
263
  label: string;
252
- /** What to show; defaults to the value itself (lists pass a truncated form). */
264
+ /** What to show; defaults to a string value or the label for lazy values. */
253
265
  display?: ReactNode;
266
+ /** `md` (default) looks like a field; `sm` like a small button. */
267
+ size?: keyof typeof sizeClasses$1;
254
268
  className?: string;
255
269
  };
256
270
  /**
257
271
  * 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.
272
+ * button. The whole surface copies on click; only the end icon confirms, so
273
+ * the value stays put. The focus ring is for keyboard focus only, not the
274
+ * click that copied.
259
275
  */
260
- declare function CopyField({ value, label, display, className, ...copy }: CopyFieldProps): react_jsx_runtime.JSX.Element;
276
+ declare function CopyField({ value, label, display, size, className, ...copy }: CopyFieldProps): react_jsx_runtime.JSX.Element;
261
277
 
262
278
  type InputProps = React.ComponentPropsWithoutRef<"input"> & {
263
279
  error?: boolean;
@@ -295,6 +311,16 @@ type EditableComboboxTokenProps = Omit<ComponentPropsWithoutRef<"button">, "chil
295
311
  declare function EditableComboboxToken({ label, value, highlighted, className, ...buttonProps }: EditableComboboxTokenProps): react_jsx_runtime.JSX.Element;
296
312
  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
313
 
314
+ type EmptyStateProps = {
315
+ children: ReactNode;
316
+ };
317
+ /**
318
+ * Where content would be but isn't: nothing yet, nothing matching, or a feed
319
+ * that couldn't load. A dashed outline marks the empty slot; the note says
320
+ * why.
321
+ */
322
+ declare function EmptyState({ children }: EmptyStateProps): react_jsx_runtime.JSX.Element;
323
+
298
324
  type ExternalLinkButtonBaseProps = {
299
325
  size?: "sm" | "md" | "lg";
300
326
  appearance?: ButtonAppearance;
@@ -323,12 +349,19 @@ type FieldStackProps = {
323
349
  action?: ReactNode;
324
350
  error?: ReactNode;
325
351
  alignLabelRow?: boolean;
352
+ /**
353
+ * `inline` puts the label in a fixed column to the left of the control
354
+ * (6.5rem, 5.5rem on phones), for dense settings panels whose rows
355
+ * should line up.
356
+ */
357
+ orientation?: "stacked" | "inline";
326
358
  className?: string;
327
359
  labelClassName?: string;
328
360
  helperClassName?: string;
329
361
  errorClassName?: string;
330
362
  };
331
- declare function FieldStack({ label, children, helper, action, error, alignLabelRow, className, labelClassName, helperClassName, errorClassName, }: FieldStackProps): react_jsx_runtime.JSX.Element;
363
+ /** Use one text control per field; group multiple controls separately. */
364
+ declare function FieldStack({ label, children, helper, action, error, alignLabelRow, orientation, className, labelClassName, helperClassName, errorClassName, }: FieldStackProps): react_jsx_runtime.JSX.Element;
332
365
 
333
366
  type RejectReason = "type" | "size" | "count";
334
367
  type RejectedFile = {
@@ -346,18 +379,18 @@ type FileUploadProps = {
346
379
  icon?: ReactNode;
347
380
  label?: ReactNode;
348
381
  previewIcon?: ReactNode;
349
- /** Compact drop zone, or preview-only strip for a parent drop target. */
350
- variant?: "default" | "compact" | "inline";
351
382
  /** Fully locks the field: no add, no remove, drops ignored. */
352
383
  disabled?: boolean;
353
384
  className?: string;
354
385
  };
355
- declare function FileUpload({ value, onChange, onReject, maxFiles, maxSizeBytes, accept, icon, label, previewIcon, variant, disabled, className, }: FileUploadProps): react_jsx_runtime.JSX.Element | null;
386
+ declare function FileUpload({ value, onChange, onReject, maxFiles, maxSizeBytes, accept, icon, label, previewIcon, disabled, className, }: FileUploadProps): react_jsx_runtime.JSX.Element;
356
387
 
357
388
  type InfoTipProps = {
358
389
  text?: ReactNode;
359
390
  content?: ReactNode;
360
391
  label?: string;
392
+ /** Also opens on tap, for help that matters on phones. */
393
+ tapEnabled?: boolean;
361
394
  };
362
395
  /**
363
396
  * Small "i" badge that opens a tooltip on hover, click, or focus.
@@ -386,18 +419,24 @@ declare function KeyChip({ prefix, value, label, className, }: KeyChipProps): re
386
419
  type BaseLinkCardProps = {
387
420
  external?: boolean;
388
421
  showIcon?: boolean;
422
+ /** Card fill (a colour or token var); hover lifts it halfway to white. */
423
+ tint?: string;
389
424
  className?: string;
390
425
  surfaceClassName?: string;
391
426
  };
392
427
  type LinkCardProps<T extends React.ElementType = "a"> = PropsWithChildren<BaseLinkCardProps> & {
393
428
  as?: T;
394
429
  } & 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;
430
+ declare function LinkCard<T extends React.ElementType = "a">({ as, external, showIcon, tint, className, surfaceClassName, children, ...linkProps }: LinkCardProps<T>): react_jsx_runtime.JSX.Element;
396
431
 
397
432
  type MediaPlaceholderProps = ComponentPropsWithoutRef<"div"> & {
398
433
  icon?: ReactNode;
399
434
  label?: ReactNode;
400
435
  detail?: ReactNode;
436
+ /** Work is running: the icon disc breathes (still under reduced motion). */
437
+ busy?: boolean;
438
+ /** Fill colour (a token var), e.g. a modality tint; replaces the dashed outline. */
439
+ tint?: string;
401
440
  };
402
441
  declare const MediaPlaceholder: FC<MediaPlaceholderProps>;
403
442
 
@@ -442,6 +481,23 @@ type NavItemProps<T extends React.ElementType = "button"> = PropsWithChildren<Ba
442
481
  */
443
482
  declare function NavItem<T extends React.ElementType = "button">({ as, active, icon: Icon, className, children, ...rest }: NavItemProps<T>): react_jsx_runtime.JSX.Element;
444
483
 
484
+ /** The one outage message, wherever account data can't load. */
485
+ declare const OUTAGE_MESSAGE = "Pollinations is having a temporary outage. Some services are down for now. Your account, keys and balance are safe, and nothing is lost.";
486
+ /** False while the browser reports no connection: then the failure is not ours. */
487
+ declare function useOnline(): boolean;
488
+ type OutageNoticeProps = {
489
+ /** The caller retries on its own, so the notice says so. */
490
+ retrying?: boolean;
491
+ /** Status page link; hidden without one. */
492
+ statusUrl?: string;
493
+ className?: string;
494
+ };
495
+ /**
496
+ * Stands in for account data while Pollinations is down, or the visitor is
497
+ * offline. With several on a page, only the topmost gives the full message.
498
+ */
499
+ declare const OutageNotice: FC<OutageNoticeProps>;
500
+
445
501
  type PeriodGranularity = "day" | "week" | "month";
446
502
  type PeriodSelection = {
447
503
  granularity: PeriodGranularity;
@@ -484,11 +540,39 @@ type SectionProps = {
484
540
  };
485
541
  declare const Section: FC<SectionProps>;
486
542
 
543
+ declare const networks: {
544
+ readonly discord: {
545
+ readonly Icon: typeof DiscordIcon;
546
+ readonly className: "polli:bg-social-discord polli:text-social-discord-text polli:hover:brightness-110";
547
+ };
548
+ readonly github: {
549
+ readonly Icon: typeof GitHubIcon;
550
+ readonly className: "polli:border polli:border-social-github-border polli:bg-social-github polli:text-social-github-text polli:hover:bg-social-github-hover";
551
+ };
552
+ };
553
+ type BaseSocialCountProps = {
554
+ network: keyof typeof networks;
555
+ /** Off when the network icon already sits next to the pill. */
556
+ showIcon?: boolean;
557
+ className?: string;
558
+ };
559
+ type SocialCountProps<T extends ElementType = "a"> = PropsWithChildren<BaseSocialCountProps> & {
560
+ as?: T;
561
+ } & Omit<React.ComponentPropsWithoutRef<T>, keyof BaseSocialCountProps | "as">;
562
+ /**
563
+ * A live community count (Discord online, GitHub stars) in the network's own
564
+ * colours, at the colour-mode toggle's 28px height so the header has one
565
+ * small-pill size. A link by default; `as="span"` inside another link.
566
+ */
567
+ declare function SocialCount<T extends ElementType = "a">({ as, network, showIcon, className, children, ...rest }: SocialCountProps<T>): react_jsx_runtime.JSX.Element;
568
+
487
569
  /**
488
570
  * - `stat` — large numeric value (default)
489
571
  * - `fact` — small wrapping prose value (labeled fact tile)
572
+ * - `display` — a headline number in the heading face, value first with a
573
+ * quiet label under it (website stats such as live request counts)
490
574
  */
491
- type StatCardVariant = "stat" | "fact";
575
+ type StatCardVariant = "stat" | "fact" | "display";
492
576
  type StatCardProps = {
493
577
  label: ReactNode;
494
578
  value: ReactNode;
@@ -517,6 +601,9 @@ declare function ToolCallDetails({ name, input, output, error, status, defaultOp
517
601
  /** Class merge for apps consuming the unprefixed Tailwind bridge in app.css. */
518
602
  declare function cn(...inputs: (string | undefined | null | false)[]): string;
519
603
 
604
+ /** A count short enough for a label: 999, 1.2K, 12K, 123K, 1.5M. */
605
+ declare function formatCount(value: number): string;
606
+
520
607
  /**
521
608
  * Locks page scroll while enabled and restores the original overflow values on
522
609
  * cleanup.
@@ -560,7 +647,7 @@ declare const ChevronIcon: FC<ChevronIconProps>;
560
647
  * document head, reading the same key) to avoid a flash of light before React
561
648
  * mounts; this store is the source of truth after hydration.
562
649
  *
563
- * Side-effect-free on import: the <html> sync and the cross-tab listener are
650
+ * Side-effect-free on import: the <html> sync and browser listeners are
564
651
  * attached lazily on first subscribe, so importing this module (e.g. via the
565
652
  * package barrel) never mutates the DOM on its own.
566
653
  */
@@ -631,6 +718,10 @@ type IconButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"
631
718
  children: ReactNode;
632
719
  className?: string;
633
720
  size?: "sm" | "md";
721
+ /** Renders a link with the same look, e.g. a social icon. */
722
+ href?: string;
723
+ target?: string;
724
+ rel?: string;
634
725
  };
635
726
  declare const IconButton: react.ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "className" | "children" | "title"> & {
636
727
  intent?: IconButtonIntent;
@@ -643,8 +734,28 @@ declare const IconButton: react.ForwardRefExoticComponent<Omit<ButtonHTMLAttribu
643
734
  children: ReactNode;
644
735
  className?: string;
645
736
  size?: "sm" | "md";
737
+ /** Renders a link with the same look, e.g. a social icon. */
738
+ href?: string;
739
+ target?: string;
740
+ rel?: string;
646
741
  } & react.RefAttributes<HTMLButtonElement>>;
647
742
 
743
+ declare const toneClasses: {
744
+ readonly neutral: "polli:bg-theme-bg-subtle polli:text-theme-text-strong";
745
+ readonly paid: "polli-wallet-chip-paid";
746
+ readonly tier: "polli-wallet-chip-tier";
747
+ readonly info: "polli:bg-intent-info-bg-light polli:text-intent-info-text";
748
+ };
749
+ type IconTileProps = {
750
+ icon: ComponentType<IconProps>;
751
+ tone?: keyof typeof toneClasses;
752
+ /** Any colour (e.g. a modality colour): the icon takes it and the tile a
753
+ * pale wash of it. Overrides `tone`. */
754
+ color?: string;
755
+ };
756
+ /** A 44px rounded square holding one icon, leading a feature or info row. */
757
+ declare function IconTile({ icon: Icon, tone, color, }: IconTileProps): react_jsx_runtime.JSX.Element;
758
+
648
759
  type BaseInlineLinkProps = {
649
760
  /** Set explicitly for non-http external links, or false for custom routing components. */
650
761
  external?: boolean;
@@ -664,93 +775,57 @@ type InlineLinkProps<T extends React.ElementType = "a"> = PropsWithChildren<Base
664
775
  */
665
776
  declare function InlineLink<T extends React.ElementType = "a">({ as, external, showIcon, size, tone, className, children, ...linkProps }: InlineLinkProps<T>): react_jsx_runtime.JSX.Element;
666
777
 
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;
778
+ /**
779
+ * A small green "live" marker for numbers that update in real time. A slow
780
+ * 2.4s ping says "now" without pulling the eye; under reduced motion only
781
+ * the still dot remains. Decorative: the number's own text carries meaning.
782
+ */
783
+ declare function LiveDot({ className }: {
784
+ className?: string;
738
785
  }): 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
786
 
749
787
  /** Compact status for both initial loading and background updates. */
750
788
  declare function LoadingStatus({ children }: {
751
789
  children: ReactNode;
752
790
  }): react_jsx_runtime.JSX.Element;
753
791
 
792
+ type SegmentedControlOption<T extends string> = {
793
+ value: T;
794
+ label: ReactNode;
795
+ };
796
+ type SegmentedControlProps<T extends string> = {
797
+ options: readonly SegmentedControlOption<T>[];
798
+ value: T;
799
+ onChange: (value: T) => void;
800
+ /** Names the group for assistive tech; nothing is rendered visibly. */
801
+ ariaLabel: string;
802
+ className?: string;
803
+ };
804
+ /**
805
+ * One pill track holding mutually exclusive values, like the light/dark
806
+ * toggle: the chosen segment is filled, the others sit on the track. A value
807
+ * selector, so the choice shows by fill only — no border or ring, apart from
808
+ * the keyboard focus ring. Same height as a small TabButton.
809
+ */
810
+ declare function SegmentedControl<T extends string>({ options, value, onChange, ariaLabel, className, }: SegmentedControlProps<T>): react_jsx_runtime.JSX.Element;
811
+
812
+ declare const shapeClasses: {
813
+ readonly card: "polli:rounded-card";
814
+ readonly text: "polli:rounded-md";
815
+ readonly media: "";
816
+ };
817
+ type SkeletonProps = {
818
+ shape?: keyof typeof shapeClasses;
819
+ /** Size only (height, width, aspect ratio); the shape sets the corners. */
820
+ className?: string;
821
+ };
822
+ /**
823
+ * A quiet pulsing block that holds the place of content still loading, at
824
+ * the size of what replaces it. Decorative: mark the loading region with
825
+ * aria-busy. Still under reduced motion.
826
+ */
827
+ declare function Skeleton({ shape, className }: SkeletonProps): react_jsx_runtime.JSX.Element;
828
+
754
829
  type SliderProps = Omit<React.ComponentPropsWithoutRef<"input">, "type"> & {
755
830
  /** Fill percentage from 0-100. Falls back to value/min/max when omitted. */
756
831
  progress?: number;
@@ -760,6 +835,21 @@ declare const Slider: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHT
760
835
  progress?: number;
761
836
  } & react.RefAttributes<HTMLInputElement>>;
762
837
 
838
+ type StableLabelProps = {
839
+ text: string;
840
+ /** Every text this label can show; the widest sets its size. */
841
+ options: readonly string[];
842
+ /** `end` aligns to the end from sm up and to the start on phones. */
843
+ align?: "center" | "end";
844
+ /** Drawn before the text in every option, so it stays beside it. */
845
+ prefix?: ReactNode;
846
+ };
847
+ /**
848
+ * Text that changes without moving anything: every option is stacked in one
849
+ * grid cell, the unused ones invisible, so the widest sets the size.
850
+ */
851
+ declare function StableLabel({ text, options, align, prefix, }: StableLabelProps): react_jsx_runtime.JSX.Element;
852
+
763
853
  type SurfaceVariant = "panel" | "card" | "card-themed";
764
854
  type SurfaceOwnProps = {
765
855
  /**
@@ -817,13 +907,17 @@ type TabButtonOwnProps = {
817
907
  /** Omit when rendering as a link (`as`) and navigation carries the change. */
818
908
  onClick?: () => void;
819
909
  children: ReactNode;
910
+ /** Leading icon, sized to the label like Button's. */
911
+ icon?: ReactNode;
820
912
  size?: "lg" | "md" | "sm" | "xs";
821
913
  variant?: "soft" | "ghost";
822
914
  /**
823
915
  * `amber` and `green` fill the selected pill with the wallet's pale paid
824
916
  * and Quest Pollen chip colours, which read at the same strength together.
917
+ * `brand` is site navigation: bold labels, the brand accent for the
918
+ * current page and a lighter preview of it on hover.
825
919
  */
826
- intent?: "neutral" | "amber" | "green";
920
+ intent?: "neutral" | "amber" | "green" | "brand";
827
921
  /** Muted secondary text after the label, e.g. a model's creator. */
828
922
  detail?: ReactNode;
829
923
  ariaLabel?: string;
@@ -838,7 +932,7 @@ type TabButtonOwnProps = {
838
932
  type TabButtonProps<T extends ElementType = "button"> = TabButtonOwnProps & {
839
933
  as?: T;
840
934
  } & 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;
935
+ 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;
842
936
 
843
937
  type Align = "left" | "center" | "right";
844
938
  type RowIntent = "default" | "warning" | "danger";
@@ -847,9 +941,7 @@ type TableProps = ComponentPropsWithoutRef<"table">;
847
941
  declare const Table: FC<TableProps>;
848
942
  type TableHeadProps = ComponentPropsWithoutRef<"thead">;
849
943
  declare const TableHead: FC<TableHeadProps>;
850
- type TableBodyProps = ComponentPropsWithoutRef<"tbody"> & {
851
- divider?: "themed" | "neutral";
852
- };
944
+ type TableBodyProps = ComponentPropsWithoutRef<"tbody">;
853
945
  declare const TableBody: FC<TableBodyProps>;
854
946
  type TableRowProps = ComponentPropsWithoutRef<"tr"> & {
855
947
  intent?: RowIntent;
@@ -930,4 +1022,4 @@ type TextOwnProps<T extends ElementType> = PropsWithChildren<{
930
1022
  type TextProps<T extends ElementType = "p"> = TextOwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof TextOwnProps<T>>;
931
1023
  declare function Text<T extends ElementType = "p">({ as, size, tone, weight, className, children, ...rest }: TextProps<T>): react_jsx_runtime.JSX.Element;
932
1024
 
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 };
1025
+ export { AccountIdentity, AccountIdentityLink, type AccountIdentityLinkProps, type AccountIdentityProps, AccountMenu, type AccountMenuProps, Alert, type AlertProps, AppBrand, type AppBrandProps, AppHeader, type AppHeaderProps, BrandMark, type BrandMarkProps, ButtonAppearance, ButtonGroup, type ButtonGroupProps, ButtonProps, Callout, type CalloutProps, ChatConversation, ChatConversationContent, type ChatConversationContentProps, type ChatConversationProps, ChatMessage, ChatMessageActions, type ChatMessageActionsProps, ChatMessageContent, type ChatMessageContentProps, ChatMessageHeader, type ChatMessageHeaderProps, type ChatMessageProps, type ChatMessageRole, ChatPromptInput, ChatPromptInputFooter, type ChatPromptInputFooterProps, type ChatPromptInputProps, ChatPromptTextarea, ChevronIcon, CodeBlock, type CodeBlockProps, Collapsible, type CollapsibleProps, ColorModeToggle, ConfirmationDialog, type ConfirmationDialogProps, ContentHeader, type ContentHeaderProps, CopyButton, type CopyButtonProps, CopyField, type CopyFieldProps, CopyStateIcon, DialogProps, DiscordIcon, Drawer, type DrawerProps, Dropdown, DropdownItem, type DropdownItemProps, type DropdownProps, EditableCombobox, type EditableComboboxProps, EditableComboboxToken, type EditableComboboxTokenProps, EmptyState, type EmptyStateProps, ExternalLinkButton, type ExternalLinkButtonProps, Eyebrow, type EyebrowProps, FieldStack, type FieldStackProps, FileUpload, type FileUploadProps, GitHubIcon, Heading, type HeadingProps, IconButton, type IconButtonIntent, type IconButtonProps, type IconButtonVariant, IconProps, IconTile, type IconTileProps, InfoTip, InlineLink, type InlineLinkProps, Input, type InputProps, KeyChip, type KeyChipProps, LinkCard, type LinkCardProps, LiveDot, LoadingStatus, MediaPlaceholder, type MediaPlaceholderProps, MultiSelect, type MultiSelectProps, NavItem, type NavItemProps, OUTAGE_MESSAGE, OutageNotice, type OutageNoticeProps, type PeriodGranularity, PeriodPicker, type PeriodPickerProps, type PeriodSelection, ScrollAreaProps, Section, type SectionProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Skeleton, type SkeletonProps, Slider, type SliderProps, SocialCount, type SocialCountProps, StableLabel, type StableLabelProps, StatCard, type StatCardProps, 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, Text, type TextProps, Textarea, type TextareaProps, ToolCallDetails, type ToolCallDetailsProps, type ToolCallStatus, Tooltip, cn, currentPeriod, formatCount, getPeriodBucketKeys, isPeriodSelectable, periodBucketKeyToDate, periodFromDate, periodToWindow, setColorMode, useColorMode, useOnline, useScrollLock };