@pollinations/ui 0.1.0-alpha.3 → 0.1.0-alpha.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -13
- package/dist/{Button-CO3Dpbkj.d.cts → Button-BGqClaBr.d.ts} +2 -2
- package/dist/{Dialog-yXzIFrDg.d.ts → Dialog-D3Nqt8cE.d.ts} +4 -1
- package/dist/app-user-menu/sdk.d.ts +29 -1
- package/dist/app-user-menu/sdk.js +120 -729
- package/dist/app-user-menu/sdk.js.map +1 -1
- package/dist/app.css +13 -0
- package/dist/auth/index.d.ts +17 -7
- package/dist/auth/index.js +209 -1187
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/sdk.d.ts +1 -1
- package/dist/auth/sdk.js +9 -200
- package/dist/auth/sdk.js.map +1 -1
- package/dist/brand/badge-made-with.svg +1 -0
- package/dist/brand/lockup-horizontal-black.png +0 -0
- package/dist/brand/lockup-horizontal-black.svg +3 -3
- package/dist/brand/lockup-horizontal-white.png +0 -0
- package/dist/brand/lockup-horizontal-white.svg +3 -3
- package/dist/brand/lockup-horizontal.svg +4 -1
- package/dist/brand/lockup-stacked-black.png +0 -0
- package/dist/brand/lockup-stacked-black.svg +1 -1
- package/dist/brand/lockup-stacked-white.png +0 -0
- package/dist/brand/lockup-stacked-white.svg +1 -1
- package/dist/brand/lockup-stacked.svg +1 -1
- package/dist/brand/mark-black.png +0 -0
- package/dist/brand/mark-black.svg +1 -3
- package/dist/brand/mark-white.png +0 -0
- package/dist/brand/mark-white.svg +1 -3
- package/dist/brand/mark.svg +1 -1
- package/dist/brand/polli/polli-lockup-horizontal-black.png +0 -0
- package/dist/brand/polli/polli-lockup-horizontal-white.png +0 -0
- package/dist/brand/polli/polli.png +0 -0
- package/dist/chunk-2BI7XJMG.js +418 -0
- package/dist/chunk-2BI7XJMG.js.map +1 -0
- package/dist/chunk-3VM5R3OI.js +50 -0
- package/dist/chunk-3VM5R3OI.js.map +1 -0
- package/dist/chunk-7GDUPN6U.js +115 -0
- package/dist/chunk-7GDUPN6U.js.map +1 -0
- package/dist/chunk-7NTX3FPZ.js +602 -0
- package/dist/chunk-7NTX3FPZ.js.map +1 -0
- package/dist/chunk-7XDOOFTL.js +105 -0
- package/dist/chunk-7XDOOFTL.js.map +1 -0
- package/dist/chunk-DD7MHUFD.js +93 -0
- package/dist/chunk-DD7MHUFD.js.map +1 -0
- package/dist/chunk-FLQFOTMR.js +107 -0
- package/dist/chunk-FLQFOTMR.js.map +1 -0
- package/dist/chunk-FRHLA7LM.js +533 -0
- package/dist/chunk-FRHLA7LM.js.map +1 -0
- package/dist/chunk-LKOYOXBG.js +284 -0
- package/dist/chunk-LKOYOXBG.js.map +1 -0
- package/dist/chunk-LKUZU37X.js +15 -0
- package/dist/chunk-LKUZU37X.js.map +1 -0
- package/dist/chunk-LRXUPEQM.js +58 -0
- package/dist/chunk-LRXUPEQM.js.map +1 -0
- package/dist/chunk-PBNBZKEZ.js +260 -0
- package/dist/chunk-PBNBZKEZ.js.map +1 -0
- package/dist/chunk-TVPFAM3B.js +88 -0
- package/dist/chunk-TVPFAM3B.js.map +1 -0
- package/dist/chunk-ZLD4VLUG.js +112 -0
- package/dist/chunk-ZLD4VLUG.js.map +1 -0
- package/dist/connect.js +100 -0
- package/dist/connect.js.map +1 -0
- package/dist/gen/index.d.ts +19 -8
- package/dist/gen/index.js +64 -450
- package/dist/gen/index.js.map +1 -1
- package/dist/index-efnABLqH.d.ts +87 -0
- package/dist/index.browser.min.js +1 -1
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.d.ts +245 -116
- package/dist/index.js +1216 -2748
- package/dist/index.js.map +1 -1
- package/dist/markdown.js +51 -588
- package/dist/markdown.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme.css +10 -8
- package/dist/types-CCy9JNu9.d.ts +6 -0
- package/dist/wallet/index.d.ts +5 -0
- package/dist/wallet/index.js +17 -356
- package/dist/wallet/index.js.map +1 -1
- package/package.json +18 -22
- package/dist/Button-CO3Dpbkj.d.ts +0 -29
- package/dist/Chip-v-ADv6cz.d.cts +0 -18
- package/dist/Dialog-yXzIFrDg.d.cts +0 -63
- package/dist/app-user-menu/sdk.cjs +0 -893
- package/dist/app-user-menu/sdk.cjs.map +0 -1
- package/dist/app-user-menu/sdk.d.cts +0 -17
- package/dist/auth/index.cjs +0 -1502
- package/dist/auth/index.cjs.map +0 -1
- package/dist/auth/index.d.cts +0 -109
- package/dist/auth/sdk.cjs +0 -239
- package/dist/auth/sdk.cjs.map +0 -1
- package/dist/auth/sdk.d.cts +0 -40
- package/dist/gen/index.cjs +0 -658
- package/dist/gen/index.cjs.map +0 -1
- package/dist/gen/index.d.cts +0 -80
- package/dist/index.cjs +0 -4967
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -887
- package/dist/markdown.cjs +0 -821
- package/dist/markdown.cjs.map +0 -1
- package/dist/markdown.d.cts +0 -16
- package/dist/wallet/index.cjs +0 -415
- package/dist/wallet/index.cjs.map +0 -1
- package/dist/wallet/index.d.cts +0 -52
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { ReactNode, CSSProperties, FC, ComponentPropsWithoutRef, RefObject, ButtonHTMLAttributes, PropsWithChildren, ComponentType, ElementType } from 'react';
|
|
4
|
-
import { S as ScrollAreaProps, D as DialogProps } from './Dialog-
|
|
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-
|
|
6
|
-
import { B as ButtonProps, a as ButtonAppearance } from './Button-
|
|
7
|
-
export { b as Button } from './Button-
|
|
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
|
+
import { D as DiscordIcon, G as GitHubIcon } from './index-efnABLqH.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 GitPullRequestIcon, x as GlobeIcon, y as GoogleIcon, z as GraduationCapIcon, I as ImageIcon, F as InstagramIcon, K as KeyIcon, L as LinkedInIcon, H as LockIcon, J as LogInIcon, M as LogOutIcon, N as MailIcon, O as McpIcon, P as MegaphoneIcon, Q as MenuIcon, R as MicIcon, S as MoonIcon, T as NewspaperIcon, U as PauseIcon, V as PencilIcon, W as PlayIcon, X as PlusIcon, Y as PowerIcon, Z as PulseIcon, _ as ReasoningIcon, $ as ReceiptIcon, a0 as RefreshIcon, a1 as RobotIcon, a2 as RocketIcon, a3 as SearchIcon, a4 as ShieldCheckIcon, a5 as SignOutIcon, a6 as SparkleIcon, a7 as SparklesIcon, a8 as SpeakerIcon, a9 as SproutIcon, aa as StarIcon, ab as SunIcon, ac as TargetIcon, ad as TerminalIcon, ae as TokensIcon, af as ToolIcon, ag as TrashIcon, ah as TrendUpIcon, ai as UsageIcon, aj as VideoIcon, ak as WalletIcon, al as WarningIcon, am as XIcon, an as XSocialIcon } from './index-efnABLqH.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';
|
|
@@ -37,7 +40,13 @@ type AccountIdentityProps = {
|
|
|
37
40
|
dashboardHref?: string;
|
|
38
41
|
className?: string;
|
|
39
42
|
};
|
|
43
|
+
type AccountIdentityLinkProps = Pick<AccountIdentityProps, "name" | "avatarUrl" | "className"> & {
|
|
44
|
+
/** External profile the whole pill opens in a new tab. */
|
|
45
|
+
href: string;
|
|
46
|
+
};
|
|
40
47
|
declare function AccountIdentity({ name, avatarUrl, secondaryContent, dashboardHref, className, }: AccountIdentityProps): react_jsx_runtime.JSX.Element;
|
|
48
|
+
/** Someone else's identity as a one-line pill link, e.g. an app's developer. */
|
|
49
|
+
declare function AccountIdentityLink({ name, avatarUrl, href, className, }: AccountIdentityLinkProps): react_jsx_runtime.JSX.Element;
|
|
41
50
|
type AccountMenuProps = AccountIdentityProps & {
|
|
42
51
|
/** The caller owns navigation, permissions and sign-out behavior. */
|
|
43
52
|
children: DropdownProps["children"];
|
|
@@ -58,10 +67,21 @@ type AlertProps = Omit<ComponentPropsWithoutRef<"div">, "title"> & {
|
|
|
58
67
|
};
|
|
59
68
|
declare const Alert: FC<AlertProps>;
|
|
60
69
|
|
|
70
|
+
type AppBrandProps = {
|
|
71
|
+
appName: string;
|
|
72
|
+
href?: string;
|
|
73
|
+
size?: "md" | "sm";
|
|
74
|
+
className?: string;
|
|
75
|
+
};
|
|
76
|
+
/** Lotus mark + app name: the one brand every internal app shows. */
|
|
77
|
+
declare function AppBrand({ appName, href, size, className, }: AppBrandProps): react_jsx_runtime.JSX.Element;
|
|
78
|
+
|
|
61
79
|
type ScrollTargetRef = RefObject<HTMLElement | null>;
|
|
62
80
|
type AppHeaderProps = {
|
|
63
81
|
children?: ReactNode;
|
|
64
82
|
navLabel: string;
|
|
83
|
+
/** Shows the lotus + this name instead of the pollinations.ai wordmark. */
|
|
84
|
+
appName?: string;
|
|
65
85
|
autoHide?: boolean;
|
|
66
86
|
scrollTargetRef?: ScrollTargetRef;
|
|
67
87
|
brandHref?: string;
|
|
@@ -70,7 +90,7 @@ type AppHeaderProps = {
|
|
|
70
90
|
innerClassName?: string;
|
|
71
91
|
navClassName?: string;
|
|
72
92
|
};
|
|
73
|
-
declare function AppHeader({ children, navLabel, autoHide, scrollTargetRef, brandHref, brandLabel, className, innerClassName, navClassName, }: AppHeaderProps): react_jsx_runtime.JSX.Element;
|
|
93
|
+
declare function AppHeader({ children, navLabel, appName, autoHide, scrollTargetRef, brandHref, brandLabel, className, innerClassName, navClassName, }: AppHeaderProps): react_jsx_runtime.JSX.Element;
|
|
74
94
|
|
|
75
95
|
type CalloutProps = {
|
|
76
96
|
title: ReactNode;
|
|
@@ -209,6 +229,10 @@ type ContentHeaderProps = {
|
|
|
209
229
|
/** Shared page/section heading rhythm with an optional trailing action. */
|
|
210
230
|
declare function ContentHeader({ eyebrow, title, subtitle, action, variant, className, }: ContentHeaderProps): react_jsx_runtime.JSX.Element;
|
|
211
231
|
|
|
232
|
+
/** The copy state as an icon: a clipboard, then a check once copied. */
|
|
233
|
+
declare function CopyStateIcon({ copied, ...props }: IconProps & {
|
|
234
|
+
copied: boolean;
|
|
235
|
+
}): react_jsx_runtime.JSX.Element;
|
|
212
236
|
type CopyValue = string | (() => string | Promise<string>);
|
|
213
237
|
type CopyButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className" | "onClick" | "type" | "value"> & {
|
|
214
238
|
value: CopyValue;
|
|
@@ -232,7 +256,7 @@ declare function CopyButton({ value, children, copiedTimeoutMs, tooltip, tooltip
|
|
|
232
256
|
type CopyFieldProps = Pick<CopyButtonProps, "value" | "onCopied" | "onCopyError" | "copiedTimeoutMs"> & {
|
|
233
257
|
/** Accessible name, e.g. "Copy secret key". */
|
|
234
258
|
label: string;
|
|
235
|
-
/** What to show; defaults to
|
|
259
|
+
/** What to show; defaults to a string value or the label for lazy values. */
|
|
236
260
|
display?: ReactNode;
|
|
237
261
|
className?: string;
|
|
238
262
|
};
|
|
@@ -278,6 +302,16 @@ type EditableComboboxTokenProps = Omit<ComponentPropsWithoutRef<"button">, "chil
|
|
|
278
302
|
declare function EditableComboboxToken({ label, value, highlighted, className, ...buttonProps }: EditableComboboxTokenProps): react_jsx_runtime.JSX.Element;
|
|
279
303
|
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;
|
|
280
304
|
|
|
305
|
+
type EmptyStateProps = {
|
|
306
|
+
children: ReactNode;
|
|
307
|
+
};
|
|
308
|
+
/**
|
|
309
|
+
* Where content would be but isn't: nothing yet, nothing matching, or a feed
|
|
310
|
+
* that couldn't load. A dashed outline marks the empty slot; the note says
|
|
311
|
+
* why.
|
|
312
|
+
*/
|
|
313
|
+
declare function EmptyState({ children }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
314
|
+
|
|
281
315
|
type ExternalLinkButtonBaseProps = {
|
|
282
316
|
size?: "sm" | "md" | "lg";
|
|
283
317
|
appearance?: ButtonAppearance;
|
|
@@ -306,12 +340,19 @@ type FieldStackProps = {
|
|
|
306
340
|
action?: ReactNode;
|
|
307
341
|
error?: ReactNode;
|
|
308
342
|
alignLabelRow?: boolean;
|
|
343
|
+
/**
|
|
344
|
+
* `inline` puts the label in a fixed column to the left of the control
|
|
345
|
+
* (6.5rem, 5.5rem on phones), for dense settings panels whose rows
|
|
346
|
+
* should line up.
|
|
347
|
+
*/
|
|
348
|
+
orientation?: "stacked" | "inline";
|
|
309
349
|
className?: string;
|
|
310
350
|
labelClassName?: string;
|
|
311
351
|
helperClassName?: string;
|
|
312
352
|
errorClassName?: string;
|
|
313
353
|
};
|
|
314
|
-
|
|
354
|
+
/** Use one text control per field; group multiple controls separately. */
|
|
355
|
+
declare function FieldStack({ label, children, helper, action, error, alignLabelRow, orientation, className, labelClassName, helperClassName, errorClassName, }: FieldStackProps): react_jsx_runtime.JSX.Element;
|
|
315
356
|
|
|
316
357
|
type RejectReason = "type" | "size" | "count";
|
|
317
358
|
type RejectedFile = {
|
|
@@ -329,18 +370,18 @@ type FileUploadProps = {
|
|
|
329
370
|
icon?: ReactNode;
|
|
330
371
|
label?: ReactNode;
|
|
331
372
|
previewIcon?: ReactNode;
|
|
332
|
-
/** Compact drop zone, or preview-only strip for a parent drop target. */
|
|
333
|
-
variant?: "default" | "compact" | "inline";
|
|
334
373
|
/** Fully locks the field: no add, no remove, drops ignored. */
|
|
335
374
|
disabled?: boolean;
|
|
336
375
|
className?: string;
|
|
337
376
|
};
|
|
338
|
-
declare function FileUpload({ value, onChange, onReject, maxFiles, maxSizeBytes, accept, icon, label, previewIcon,
|
|
377
|
+
declare function FileUpload({ value, onChange, onReject, maxFiles, maxSizeBytes, accept, icon, label, previewIcon, disabled, className, }: FileUploadProps): react_jsx_runtime.JSX.Element;
|
|
339
378
|
|
|
340
379
|
type InfoTipProps = {
|
|
341
380
|
text?: ReactNode;
|
|
342
381
|
content?: ReactNode;
|
|
343
382
|
label?: string;
|
|
383
|
+
/** Also opens on tap, for help that matters on phones. */
|
|
384
|
+
tapEnabled?: boolean;
|
|
344
385
|
};
|
|
345
386
|
/**
|
|
346
387
|
* Small "i" badge that opens a tooltip on hover, click, or focus.
|
|
@@ -369,18 +410,24 @@ declare function KeyChip({ prefix, value, label, className, }: KeyChipProps): re
|
|
|
369
410
|
type BaseLinkCardProps = {
|
|
370
411
|
external?: boolean;
|
|
371
412
|
showIcon?: boolean;
|
|
413
|
+
/** Card fill (a colour or token var); hover lifts it halfway to white. */
|
|
414
|
+
tint?: string;
|
|
372
415
|
className?: string;
|
|
373
416
|
surfaceClassName?: string;
|
|
374
417
|
};
|
|
375
418
|
type LinkCardProps<T extends React.ElementType = "a"> = PropsWithChildren<BaseLinkCardProps> & {
|
|
376
419
|
as?: T;
|
|
377
420
|
} & Omit<React.ComponentPropsWithoutRef<T>, keyof BaseLinkCardProps | "as">;
|
|
378
|
-
declare function LinkCard<T extends React.ElementType = "a">({ as, external, showIcon, className, surfaceClassName, children, ...linkProps }: LinkCardProps<T>): react_jsx_runtime.JSX.Element;
|
|
421
|
+
declare function LinkCard<T extends React.ElementType = "a">({ as, external, showIcon, tint, className, surfaceClassName, children, ...linkProps }: LinkCardProps<T>): react_jsx_runtime.JSX.Element;
|
|
379
422
|
|
|
380
423
|
type MediaPlaceholderProps = ComponentPropsWithoutRef<"div"> & {
|
|
381
424
|
icon?: ReactNode;
|
|
382
425
|
label?: ReactNode;
|
|
383
426
|
detail?: ReactNode;
|
|
427
|
+
/** Work is running: the icon disc breathes (still under reduced motion). */
|
|
428
|
+
busy?: boolean;
|
|
429
|
+
/** Fill colour (a token var), e.g. a modality tint; replaces the dashed outline. */
|
|
430
|
+
tint?: string;
|
|
384
431
|
};
|
|
385
432
|
declare const MediaPlaceholder: FC<MediaPlaceholderProps>;
|
|
386
433
|
|
|
@@ -425,6 +472,23 @@ type NavItemProps<T extends React.ElementType = "button"> = PropsWithChildren<Ba
|
|
|
425
472
|
*/
|
|
426
473
|
declare function NavItem<T extends React.ElementType = "button">({ as, active, icon: Icon, className, children, ...rest }: NavItemProps<T>): react_jsx_runtime.JSX.Element;
|
|
427
474
|
|
|
475
|
+
/** The one outage message, wherever account data can't load. */
|
|
476
|
+
declare const OUTAGE_MESSAGE = "Pollinations is having a temporary outage. Some services are down for now. Your account, keys and pollen are safe, and nothing is lost.";
|
|
477
|
+
/** False while the browser reports no connection: then the failure is not ours. */
|
|
478
|
+
declare function useOnline(): boolean;
|
|
479
|
+
type OutageNoticeProps = {
|
|
480
|
+
/** The caller retries on its own, so the notice says so. */
|
|
481
|
+
retrying?: boolean;
|
|
482
|
+
/** Status page link; hidden without one. */
|
|
483
|
+
statusUrl?: string;
|
|
484
|
+
className?: string;
|
|
485
|
+
};
|
|
486
|
+
/**
|
|
487
|
+
* Stands in for account data while Pollinations is down, or the visitor is
|
|
488
|
+
* offline. With several on a page, only the topmost gives the full message.
|
|
489
|
+
*/
|
|
490
|
+
declare const OutageNotice: FC<OutageNoticeProps>;
|
|
491
|
+
|
|
428
492
|
type PeriodGranularity = "day" | "week" | "month";
|
|
429
493
|
type PeriodSelection = {
|
|
430
494
|
granularity: PeriodGranularity;
|
|
@@ -467,11 +531,39 @@ type SectionProps = {
|
|
|
467
531
|
};
|
|
468
532
|
declare const Section: FC<SectionProps>;
|
|
469
533
|
|
|
534
|
+
declare const networks: {
|
|
535
|
+
readonly discord: {
|
|
536
|
+
readonly Icon: typeof DiscordIcon;
|
|
537
|
+
readonly className: "polli:bg-social-discord polli:text-social-discord-text polli:hover:brightness-110";
|
|
538
|
+
};
|
|
539
|
+
readonly github: {
|
|
540
|
+
readonly Icon: typeof GitHubIcon;
|
|
541
|
+
readonly className: "polli:border polli:border-social-github-border polli:bg-social-github polli:text-social-github-text polli:hover:bg-social-github-hover";
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
type BaseSocialCountProps = {
|
|
545
|
+
network: keyof typeof networks;
|
|
546
|
+
/** Off when the network icon already sits next to the pill. */
|
|
547
|
+
showIcon?: boolean;
|
|
548
|
+
className?: string;
|
|
549
|
+
};
|
|
550
|
+
type SocialCountProps<T extends ElementType = "a"> = PropsWithChildren<BaseSocialCountProps> & {
|
|
551
|
+
as?: T;
|
|
552
|
+
} & Omit<React.ComponentPropsWithoutRef<T>, keyof BaseSocialCountProps | "as">;
|
|
553
|
+
/**
|
|
554
|
+
* A live community count (Discord online, GitHub stars) in the network's own
|
|
555
|
+
* colours, at the colour-mode toggle's 28px height so the header has one
|
|
556
|
+
* small-pill size. A link by default; `as="span"` inside another link.
|
|
557
|
+
*/
|
|
558
|
+
declare function SocialCount<T extends ElementType = "a">({ as, network, showIcon, className, children, ...rest }: SocialCountProps<T>): react_jsx_runtime.JSX.Element;
|
|
559
|
+
|
|
470
560
|
/**
|
|
471
561
|
* - `stat` — large numeric value (default)
|
|
472
562
|
* - `fact` — small wrapping prose value (labeled fact tile)
|
|
563
|
+
* - `display` — a headline number in the heading face, value first with a
|
|
564
|
+
* quiet label under it (website stats such as live request counts)
|
|
473
565
|
*/
|
|
474
|
-
type StatCardVariant = "stat" | "fact";
|
|
566
|
+
type StatCardVariant = "stat" | "fact" | "display";
|
|
475
567
|
type StatCardProps = {
|
|
476
568
|
label: ReactNode;
|
|
477
569
|
value: ReactNode;
|
|
@@ -500,12 +592,22 @@ declare function ToolCallDetails({ name, input, output, error, status, defaultOp
|
|
|
500
592
|
/** Class merge for apps consuming the unprefixed Tailwind bridge in app.css. */
|
|
501
593
|
declare function cn(...inputs: (string | undefined | null | false)[]): string;
|
|
502
594
|
|
|
595
|
+
/** A count short enough for a label: 999, 1.2K, 12K, 123K, 1.5M. */
|
|
596
|
+
declare function formatCount(value: number): string;
|
|
597
|
+
|
|
503
598
|
/**
|
|
504
599
|
* Locks page scroll while enabled and restores the original overflow values on
|
|
505
600
|
* cleanup.
|
|
506
601
|
*/
|
|
507
602
|
declare function useScrollLock(enabled?: boolean): void;
|
|
508
603
|
|
|
604
|
+
type BrandMarkProps = {
|
|
605
|
+
variant?: "mark" | "lockup";
|
|
606
|
+
className?: string;
|
|
607
|
+
};
|
|
608
|
+
/** The lotus (or lotus + wordmark) painted in currentColor; size it with className. */
|
|
609
|
+
declare function BrandMark({ variant, className }: BrandMarkProps): react_jsx_runtime.JSX.Element;
|
|
610
|
+
|
|
509
611
|
type ButtonGroupProps = ComponentPropsWithoutRef<"div">;
|
|
510
612
|
declare const ButtonGroup: FC<ButtonGroupProps>;
|
|
511
613
|
|
|
@@ -529,13 +631,14 @@ declare const ChevronIcon: FC<ChevronIconProps>;
|
|
|
529
631
|
*
|
|
530
632
|
* The chosen mode is persisted to localStorage (per-origin), which also powers
|
|
531
633
|
* the cross-tab `storage` sync below. Read priority: localStorage → system
|
|
532
|
-
* preference.
|
|
634
|
+
* preference. Choosing the mode the system already uses clears the stored
|
|
635
|
+
* choice, so later visits follow the system again.
|
|
533
636
|
*
|
|
534
637
|
* Host apps should set the initial class pre-paint (a tiny inline script in the
|
|
535
638
|
* document head, reading the same key) to avoid a flash of light before React
|
|
536
639
|
* mounts; this store is the source of truth after hydration.
|
|
537
640
|
*
|
|
538
|
-
* Side-effect-free on import: the <html> sync and
|
|
641
|
+
* Side-effect-free on import: the <html> sync and browser listeners are
|
|
539
642
|
* attached lazily on first subscribe, so importing this module (e.g. via the
|
|
540
643
|
* package barrel) never mutates the DOM on its own.
|
|
541
644
|
*/
|
|
@@ -543,7 +646,7 @@ type ColorMode = "light" | "dark";
|
|
|
543
646
|
/**
|
|
544
647
|
* Set the color mode programmatically. Updates the shared store (so every
|
|
545
648
|
* `useColorMode()` consumer re-renders), flips the `.dark` class, and persists
|
|
546
|
-
* to localStorage.
|
|
649
|
+
* to localStorage, or clears it when the mode matches the system.
|
|
547
650
|
*/
|
|
548
651
|
declare function setColorMode(mode: ColorMode): void;
|
|
549
652
|
declare function useColorMode(): {
|
|
@@ -552,11 +655,9 @@ declare function useColorMode(): {
|
|
|
552
655
|
toggle: () => void;
|
|
553
656
|
};
|
|
554
657
|
/**
|
|
555
|
-
* Sliding sun/moon switch
|
|
556
|
-
*
|
|
557
|
-
*
|
|
558
|
-
* mode you'd switch to sits ghosted (faint neutral) on the
|
|
559
|
-
* empty side. Self-contained — wires itself to `useColorMode`.
|
|
658
|
+
* Sliding sun/moon switch: `Switch` as a two-way choice, so the track stays
|
|
659
|
+
* neutral and the thumb carries the active mode's icon. Self-contained —
|
|
660
|
+
* wires itself to `useColorMode`.
|
|
560
661
|
*/
|
|
561
662
|
declare const ColorModeToggle: FC;
|
|
562
663
|
|
|
@@ -608,6 +709,10 @@ type IconButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"
|
|
|
608
709
|
children: ReactNode;
|
|
609
710
|
className?: string;
|
|
610
711
|
size?: "sm" | "md";
|
|
712
|
+
/** Renders a link with the same look, e.g. a social icon. */
|
|
713
|
+
href?: string;
|
|
714
|
+
target?: string;
|
|
715
|
+
rel?: string;
|
|
611
716
|
};
|
|
612
717
|
declare const IconButton: react.ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "className" | "children" | "title"> & {
|
|
613
718
|
intent?: IconButtonIntent;
|
|
@@ -620,8 +725,28 @@ declare const IconButton: react.ForwardRefExoticComponent<Omit<ButtonHTMLAttribu
|
|
|
620
725
|
children: ReactNode;
|
|
621
726
|
className?: string;
|
|
622
727
|
size?: "sm" | "md";
|
|
728
|
+
/** Renders a link with the same look, e.g. a social icon. */
|
|
729
|
+
href?: string;
|
|
730
|
+
target?: string;
|
|
731
|
+
rel?: string;
|
|
623
732
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
624
733
|
|
|
734
|
+
declare const toneClasses: {
|
|
735
|
+
readonly neutral: "polli:bg-theme-bg-subtle polli:text-theme-text-strong";
|
|
736
|
+
readonly paid: "polli-wallet-chip-paid";
|
|
737
|
+
readonly tier: "polli-wallet-chip-tier";
|
|
738
|
+
readonly info: "polli:bg-intent-info-bg-light polli:text-intent-info-text";
|
|
739
|
+
};
|
|
740
|
+
type IconTileProps = {
|
|
741
|
+
icon: ComponentType<IconProps>;
|
|
742
|
+
tone?: keyof typeof toneClasses;
|
|
743
|
+
/** Any colour (e.g. a modality colour): the icon takes it and the tile a
|
|
744
|
+
* pale wash of it. Overrides `tone`. */
|
|
745
|
+
color?: string;
|
|
746
|
+
};
|
|
747
|
+
/** A 44px rounded square holding one icon, leading a feature or info row. */
|
|
748
|
+
declare function IconTile({ icon: Icon, tone, color, }: IconTileProps): react_jsx_runtime.JSX.Element;
|
|
749
|
+
|
|
625
750
|
type BaseInlineLinkProps = {
|
|
626
751
|
/** Set explicitly for non-http external links, or false for custom routing components. */
|
|
627
752
|
external?: boolean;
|
|
@@ -641,85 +766,56 @@ type InlineLinkProps<T extends React.ElementType = "a"> = PropsWithChildren<Base
|
|
|
641
766
|
*/
|
|
642
767
|
declare function InlineLink<T extends React.ElementType = "a">({ as, external, showIcon, size, tone, className, children, ...linkProps }: InlineLinkProps<T>): react_jsx_runtime.JSX.Element;
|
|
643
768
|
|
|
644
|
-
/**
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
declare function
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
declare function
|
|
655
|
-
|
|
656
|
-
declare function ClockIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
657
|
-
declare function DiscordIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
658
|
-
declare function InstagramIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
659
|
-
declare function XSocialIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
660
|
-
declare function LinkedInIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
661
|
-
declare function DownloadIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
662
|
-
declare function ExpandIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
663
|
-
declare function PlayIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
664
|
-
declare function PauseIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
665
|
-
declare function CloudUploadIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
666
|
-
declare function ExternalLinkIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
667
|
-
declare function GenApiIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
668
|
-
declare function GitBranchIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
669
|
-
declare function GitPullRequestIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
670
|
-
declare function GraduationCapIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
671
|
-
declare function SparklesIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
672
|
-
declare function GitHubIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
673
|
-
declare function ImageIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
674
|
-
declare function CubeIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
675
|
-
declare function AudioIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
676
|
-
declare function LockIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
677
|
-
declare function LogInIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
678
|
-
declare function LogOutIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
679
|
-
declare function MailIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
680
|
-
declare function McpIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
681
|
-
declare function MenuIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
682
|
-
declare function NewspaperIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
683
|
-
declare function PlusIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
684
|
-
declare function TerminalIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
685
|
-
declare function ToolIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
686
|
-
declare function TargetIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
687
|
-
declare function TokensIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
688
|
-
declare function UsageIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
689
|
-
declare function WarningIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
690
|
-
declare function TrendUpIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
691
|
-
declare function EarningsIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
692
|
-
declare function WalletIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
693
|
-
declare function MoonIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
694
|
-
declare function SunIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
695
|
-
declare function XIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
696
|
-
declare function TrashIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
697
|
-
declare function ChatIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
698
|
-
declare function RobotIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
699
|
-
declare function EyeIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
700
|
-
declare function EyeOffIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
701
|
-
declare function VideoIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
702
|
-
declare function MicIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
703
|
-
declare function SpeakerIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
704
|
-
declare function MegaphoneIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
705
|
-
declare function ReasoningIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
706
|
-
declare function RocketIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
707
|
-
declare function SearchIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
708
|
-
declare function SignOutIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
709
|
-
declare function PowerIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
710
|
-
declare function SparkleIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
711
|
-
declare function StarIcon({ filled, ...props }: IconProps & {
|
|
712
|
-
filled?: boolean;
|
|
769
|
+
/**
|
|
770
|
+
* A small green "live" marker for numbers that update in real time. A slow
|
|
771
|
+
* 2.4s ping says "now" without pulling the eye; under reduced motion only
|
|
772
|
+
* the still dot remains. Decorative: the number's own text carries meaning.
|
|
773
|
+
*/
|
|
774
|
+
declare function LiveDot({ className }: {
|
|
775
|
+
className?: string;
|
|
776
|
+
}): react_jsx_runtime.JSX.Element;
|
|
777
|
+
|
|
778
|
+
/** Compact status for both initial loading and background updates. */
|
|
779
|
+
declare function LoadingStatus({ children }: {
|
|
780
|
+
children: ReactNode;
|
|
713
781
|
}): react_jsx_runtime.JSX.Element;
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
782
|
+
|
|
783
|
+
type SegmentedControlOption<T extends string> = {
|
|
784
|
+
value: T;
|
|
785
|
+
label: ReactNode;
|
|
786
|
+
};
|
|
787
|
+
type SegmentedControlProps<T extends string> = {
|
|
788
|
+
options: readonly SegmentedControlOption<T>[];
|
|
789
|
+
value: T;
|
|
790
|
+
onChange: (value: T) => void;
|
|
791
|
+
/** Names the group for assistive tech; nothing is rendered visibly. */
|
|
792
|
+
ariaLabel: string;
|
|
793
|
+
className?: string;
|
|
794
|
+
};
|
|
795
|
+
/**
|
|
796
|
+
* One pill track holding mutually exclusive values, like the light/dark
|
|
797
|
+
* toggle: the chosen segment is filled, the others sit on the track. A value
|
|
798
|
+
* selector, so the choice shows by fill only — no border or ring, apart from
|
|
799
|
+
* the keyboard focus ring. Same height as a small TabButton.
|
|
800
|
+
*/
|
|
801
|
+
declare function SegmentedControl<T extends string>({ options, value, onChange, ariaLabel, className, }: SegmentedControlProps<T>): react_jsx_runtime.JSX.Element;
|
|
802
|
+
|
|
803
|
+
declare const shapeClasses: {
|
|
804
|
+
readonly card: "polli:rounded-card";
|
|
805
|
+
readonly text: "polli:rounded-md";
|
|
806
|
+
readonly media: "";
|
|
807
|
+
};
|
|
808
|
+
type SkeletonProps = {
|
|
809
|
+
shape?: keyof typeof shapeClasses;
|
|
810
|
+
/** Size only (height, width, aspect ratio); the shape sets the corners. */
|
|
811
|
+
className?: string;
|
|
812
|
+
};
|
|
813
|
+
/**
|
|
814
|
+
* A quiet pulsing block that holds the place of content still loading, at
|
|
815
|
+
* the size of what replaces it. Decorative: mark the loading region with
|
|
816
|
+
* aria-busy. Still under reduced motion.
|
|
817
|
+
*/
|
|
818
|
+
declare function Skeleton({ shape, className }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
723
819
|
|
|
724
820
|
type SliderProps = Omit<React.ComponentPropsWithoutRef<"input">, "type"> & {
|
|
725
821
|
/** Fill percentage from 0-100. Falls back to value/min/max when omitted. */
|
|
@@ -730,13 +826,28 @@ declare const Slider: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHT
|
|
|
730
826
|
progress?: number;
|
|
731
827
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
732
828
|
|
|
829
|
+
type StableLabelProps = {
|
|
830
|
+
text: string;
|
|
831
|
+
/** Every text this label can show; the widest sets its size. */
|
|
832
|
+
options: readonly string[];
|
|
833
|
+
/** `end` aligns to the end from sm up and to the start on phones. */
|
|
834
|
+
align?: "center" | "end";
|
|
835
|
+
/** Drawn before the text in every option, so it stays beside it. */
|
|
836
|
+
prefix?: ReactNode;
|
|
837
|
+
};
|
|
838
|
+
/**
|
|
839
|
+
* Text that changes without moving anything: every option is stacked in one
|
|
840
|
+
* grid cell, the unused ones invisible, so the widest sets the size.
|
|
841
|
+
*/
|
|
842
|
+
declare function StableLabel({ text, options, align, prefix, }: StableLabelProps): react_jsx_runtime.JSX.Element;
|
|
843
|
+
|
|
733
844
|
type SurfaceVariant = "panel" | "card" | "card-themed";
|
|
734
845
|
type SurfaceOwnProps = {
|
|
735
846
|
/**
|
|
736
|
-
* Depth role
|
|
737
|
-
* - `panel` — Level 1
|
|
738
|
-
* - `card` — Level 2
|
|
739
|
-
* - `card-themed` —
|
|
847
|
+
* Depth role — flat: each level is one tint step, never a shadow or border.
|
|
848
|
+
* - `panel` — Level 1 block: sections and page groups
|
|
849
|
+
* - `card` — Level 2 card inside a block (default)
|
|
850
|
+
* - `card-themed` — Level 2 card carrying the accent tint
|
|
740
851
|
*/
|
|
741
852
|
variant?: SurfaceVariant;
|
|
742
853
|
className?: string;
|
|
@@ -752,34 +863,54 @@ type SurfaceProps<T extends ElementType = "div"> = SurfaceOwnProps & {
|
|
|
752
863
|
declare function Surface<T extends ElementType = "div">({ as, variant, className, children, ...rest }: SurfaceProps<T>): react_jsx_runtime.JSX.Element;
|
|
753
864
|
|
|
754
865
|
type SwitchStatus = "off" | "on" | "invalid";
|
|
866
|
+
type SwitchSize = "sm" | "md" | "lg";
|
|
755
867
|
type SwitchProps = {
|
|
756
868
|
checked: boolean;
|
|
757
869
|
onChange: (next: boolean) => void;
|
|
758
|
-
/**
|
|
870
|
+
/** Track colour. Defaults to `checked ? "on" : "off"`. */
|
|
759
871
|
status?: SwitchStatus;
|
|
760
872
|
/** Accessible label (aria-label). Not rendered visibly. */
|
|
761
873
|
ariaLabel?: string;
|
|
762
874
|
disabled?: boolean;
|
|
875
|
+
/** Same heights as `Button` sm / md / lg, so a switch lines up with one. */
|
|
876
|
+
size?: SwitchSize;
|
|
877
|
+
/**
|
|
878
|
+
* A two-way choice (light/dark) rather than on/off: the thumb carries the
|
|
879
|
+
* current side's icon, the other sits faint on the empty side, and the
|
|
880
|
+
* track looks the same in both positions.
|
|
881
|
+
*/
|
|
882
|
+
icons?: {
|
|
883
|
+
off: ReactNode;
|
|
884
|
+
on: ReactNode;
|
|
885
|
+
};
|
|
763
886
|
className?: string;
|
|
764
887
|
};
|
|
765
888
|
/**
|
|
766
|
-
* Binary toggle
|
|
767
|
-
*
|
|
768
|
-
*
|
|
769
|
-
*
|
|
770
|
-
* `checked` drives thumb position; `status` drives track colour. So
|
|
771
|
-
* `checked={true} status="invalid"` renders thumb-right with a red track.
|
|
889
|
+
* Binary toggle, in `Button`'s sizes: grey off, green on. `checked` moves the thumb;
|
|
890
|
+
* `status` colours it, so `checked status="invalid"` is thumb-right in red.
|
|
891
|
+
* With `icons` it is a two-way choice with a solid thumb on both sides.
|
|
772
892
|
*/
|
|
773
893
|
declare const Switch: FC<SwitchProps>;
|
|
774
894
|
|
|
775
895
|
type TabButtonOwnProps = {
|
|
776
|
-
|
|
896
|
+
/** `mixed`: a group toggle where only some of its items are selected. */
|
|
897
|
+
active: boolean | "mixed";
|
|
777
898
|
/** Omit when rendering as a link (`as`) and navigation carries the change. */
|
|
778
899
|
onClick?: () => void;
|
|
779
900
|
children: ReactNode;
|
|
901
|
+
/** Leading icon, sized to the label like Button's. */
|
|
902
|
+
icon?: ReactNode;
|
|
780
903
|
size?: "lg" | "md" | "sm" | "xs";
|
|
781
904
|
variant?: "soft" | "ghost";
|
|
782
|
-
|
|
905
|
+
/**
|
|
906
|
+
* `amber` and `green` fill the selected pill with the wallet's pale paid
|
|
907
|
+
* and Quest Pollen chip colours, which read at the same strength together.
|
|
908
|
+
* `brand` is site navigation: bold labels, the brand accent for the
|
|
909
|
+
* current page and a lighter preview of it on hover.
|
|
910
|
+
*/
|
|
911
|
+
intent?: "neutral" | "amber" | "green" | "brand";
|
|
912
|
+
/** Muted secondary text after the label, e.g. a model's creator. */
|
|
913
|
+
detail?: ReactNode;
|
|
783
914
|
ariaLabel?: string;
|
|
784
915
|
disabled?: boolean;
|
|
785
916
|
className?: string;
|
|
@@ -792,7 +923,7 @@ type TabButtonOwnProps = {
|
|
|
792
923
|
type TabButtonProps<T extends ElementType = "button"> = TabButtonOwnProps & {
|
|
793
924
|
as?: T;
|
|
794
925
|
} & Omit<ComponentPropsWithoutRef<T>, keyof TabButtonOwnProps | "as">;
|
|
795
|
-
declare function TabButton<T extends ElementType = "button">({ as, active, onClick, children, size, variant, intent, ariaLabel, disabled, className, ...rest }: TabButtonProps<T>): react_jsx_runtime.JSX.Element;
|
|
926
|
+
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;
|
|
796
927
|
|
|
797
928
|
type Align = "left" | "center" | "right";
|
|
798
929
|
type RowIntent = "default" | "warning" | "danger";
|
|
@@ -801,9 +932,7 @@ type TableProps = ComponentPropsWithoutRef<"table">;
|
|
|
801
932
|
declare const Table: FC<TableProps>;
|
|
802
933
|
type TableHeadProps = ComponentPropsWithoutRef<"thead">;
|
|
803
934
|
declare const TableHead: FC<TableHeadProps>;
|
|
804
|
-
type TableBodyProps = ComponentPropsWithoutRef<"tbody"
|
|
805
|
-
divider?: "themed" | "neutral";
|
|
806
|
-
};
|
|
935
|
+
type TableBodyProps = ComponentPropsWithoutRef<"tbody">;
|
|
807
936
|
declare const TableBody: FC<TableBodyProps>;
|
|
808
937
|
type TableRowProps = ComponentPropsWithoutRef<"tr"> & {
|
|
809
938
|
intent?: RowIntent;
|
|
@@ -884,4 +1013,4 @@ type TextOwnProps<T extends ElementType> = PropsWithChildren<{
|
|
|
884
1013
|
type TextProps<T extends ElementType = "p"> = TextOwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof TextOwnProps<T>>;
|
|
885
1014
|
declare function Text<T extends ElementType = "p">({ as, size, tone, weight, className, children, ...rest }: TextProps<T>): react_jsx_runtime.JSX.Element;
|
|
886
1015
|
|
|
887
|
-
export {
|
|
1016
|
+
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 };
|