@pollinations/ui 0.0.2 → 0.1.0-alpha.1
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 +38 -71
- package/dist/{Chip-SM52sUbZ.d.cts → Chip-CQCq34kS.d.cts} +1 -1
- package/dist/{Chip-C5impfYd.d.ts → Chip-Cj4xG7Te.d.ts} +1 -1
- package/dist/app-user-menu/sdk.cjs +497 -0
- package/dist/app-user-menu/sdk.cjs.map +1 -0
- package/dist/app-user-menu/sdk.d.cts +18 -0
- package/dist/app-user-menu/sdk.d.ts +18 -0
- package/dist/app-user-menu/sdk.js +469 -0
- package/dist/app-user-menu/sdk.js.map +1 -0
- package/dist/app.css +94 -3
- package/dist/auth/index.cjs +77 -62
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.js +77 -62
- package/dist/auth/index.js.map +1 -1
- package/dist/gen/index.cjs +477 -0
- package/dist/gen/index.cjs.map +1 -0
- package/dist/gen/index.d.cts +35 -0
- package/dist/gen/index.d.ts +35 -0
- package/dist/gen/index.js +451 -0
- package/dist/gen/index.js.map +1 -0
- package/dist/index.cjs +1875 -761
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +294 -109
- package/dist/index.d.ts +294 -109
- package/dist/index.js +1889 -798
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme-jRPPBmld.d.cts +20 -0
- package/dist/theme-jRPPBmld.d.ts +20 -0
- package/dist/wallet/index.cjs +17 -8
- package/dist/wallet/index.cjs.map +1 -1
- package/dist/wallet/index.d.cts +2 -2
- package/dist/wallet/index.d.ts +2 -2
- package/dist/wallet/index.js +17 -8
- package/dist/wallet/index.js.map +1 -1
- package/package.json +15 -18
- package/dist/Button-Bn8pGg6N.d.ts +0 -26
- package/dist/Button-CWUBCiIc.d.cts +0 -26
- package/dist/auth/sdk.cjs +0 -220
- package/dist/auth/sdk.cjs.map +0 -1
- package/dist/auth/sdk.d.cts +0 -53
- package/dist/auth/sdk.d.ts +0 -53
- package/dist/auth/sdk.js +0 -187
- package/dist/auth/sdk.js.map +0 -1
- package/dist/modality/index.cjs +0 -83
- package/dist/modality/index.cjs.map +0 -1
- package/dist/modality/index.d.cts +0 -25
- package/dist/modality/index.d.ts +0 -25
- package/dist/modality/index.js +0 -56
- package/dist/modality/index.js.map +0 -1
- package/dist/theme-VMRlhqST.d.cts +0 -9
- package/dist/theme-VMRlhqST.d.ts +0 -9
- package/dist/wallet/sdk.cjs +0 -206
- package/dist/wallet/sdk.cjs.map +0 -1
- package/dist/wallet/sdk.d.cts +0 -33
- package/dist/wallet/sdk.d.ts +0 -33
- package/dist/wallet/sdk.js +0 -175
- package/dist/wallet/sdk.js.map +0 -1
- package/dist/wallet.css +0 -73
package/dist/index.d.ts
CHANGED
|
@@ -1,31 +1,12 @@
|
|
|
1
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-Bn8pGg6N.js';
|
|
4
|
-
export { C as Chip } from './Chip-C5impfYd.js';
|
|
2
|
+
import { FC, ComponentPropsWithoutRef, ReactNode, RefObject, ButtonHTMLAttributes, PropsWithChildren, CSSProperties, ElementType } from 'react';
|
|
5
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
import { T as ThemeName } from './theme-jRPPBmld.js';
|
|
5
|
+
export { t as themePalette, a as themes } from './theme-jRPPBmld.js';
|
|
6
|
+
export { C as Chip } from './Chip-Cj4xG7Te.js';
|
|
6
7
|
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';
|
|
9
8
|
export { Field } from '@ark-ui/react/field';
|
|
10
9
|
|
|
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 PeriodGranularity = "day" | "week" | "month";
|
|
15
|
-
type PeriodSelection = {
|
|
16
|
-
granularity: PeriodGranularity;
|
|
17
|
-
period: string;
|
|
18
|
-
};
|
|
19
|
-
declare function currentPeriod(): PeriodSelection;
|
|
20
|
-
declare function getPeriodBucketKeys(selection: PeriodSelection): string[];
|
|
21
|
-
declare function periodBucketKeyToDate(bucketKey: string, granularity: PeriodGranularity): Date;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Locks page scroll while enabled and restores the original overflow values on
|
|
25
|
-
* cleanup.
|
|
26
|
-
*/
|
|
27
|
-
declare function useScrollLock(enabled?: boolean): void;
|
|
28
|
-
|
|
29
10
|
type AlertIntent = "info" | "success" | "warning" | "danger";
|
|
30
11
|
type AlertProps = ComponentPropsWithoutRef<"div"> & {
|
|
31
12
|
intent?: AlertIntent;
|
|
@@ -33,21 +14,27 @@ type AlertProps = ComponentPropsWithoutRef<"div"> & {
|
|
|
33
14
|
};
|
|
34
15
|
declare const Alert: FC<AlertProps>;
|
|
35
16
|
|
|
36
|
-
type
|
|
37
|
-
|
|
17
|
+
type ScrollTargetRef = RefObject<HTMLElement | null>;
|
|
18
|
+
type AppHeaderProps = {
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
navLabel: string;
|
|
21
|
+
autoHide?: boolean;
|
|
22
|
+
scrollTargetRef?: ScrollTargetRef;
|
|
23
|
+
brandHref?: string;
|
|
24
|
+
brandLabel?: string;
|
|
25
|
+
className?: string;
|
|
26
|
+
innerClassName?: string;
|
|
27
|
+
navClassName?: string;
|
|
38
28
|
};
|
|
39
|
-
declare
|
|
29
|
+
declare function AppHeader({ children, navLabel, autoHide, scrollTargetRef, brandHref, brandLabel, className, innerClassName, navClassName, }: AppHeaderProps): react_jsx_runtime.JSX.Element;
|
|
40
30
|
|
|
41
|
-
type
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
31
|
+
type CodeBlockOwnProps = {
|
|
32
|
+
code: string;
|
|
33
|
+
theme?: ThemeName;
|
|
34
|
+
codeClassName?: string;
|
|
45
35
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
* across the app. One icon everywhere.
|
|
49
|
-
*/
|
|
50
|
-
declare const ChevronIcon: FC<ChevronIconProps>;
|
|
36
|
+
type CodeBlockProps = CodeBlockOwnProps & Omit<ComponentPropsWithoutRef<"div">, keyof CodeBlockOwnProps | "children">;
|
|
37
|
+
declare const CodeBlock: FC<CodeBlockProps>;
|
|
51
38
|
|
|
52
39
|
type CollapsibleProps = {
|
|
53
40
|
/** Header content (label, hint, etc). */
|
|
@@ -68,7 +55,7 @@ type CollapsibleProps = {
|
|
|
68
55
|
ariaLabel?: string;
|
|
69
56
|
};
|
|
70
57
|
/**
|
|
71
|
-
* Collapsible row
|
|
58
|
+
* Collapsible row composition. One chevron, one hover/rounded behaviour for
|
|
72
59
|
* every collapsible in the UI. Use this for any "click to reveal nested
|
|
73
60
|
* content" UI — nested settings, grouped controls, optional details.
|
|
74
61
|
*
|
|
@@ -91,6 +78,221 @@ type CopyButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"
|
|
|
91
78
|
};
|
|
92
79
|
declare function CopyButton({ value, children, copiedTimeoutMs, tooltip, copiedTooltip, tooltipClassName, className, onCopied, onCopyError, ...buttonProps }: CopyButtonProps): react_jsx_runtime.JSX.Element;
|
|
93
80
|
|
|
81
|
+
type ExternalLinkButtonProps = {
|
|
82
|
+
theme: ThemeName;
|
|
83
|
+
href: string;
|
|
84
|
+
size?: "sm" | "md" | "lg";
|
|
85
|
+
className?: string;
|
|
86
|
+
children: ReactNode;
|
|
87
|
+
};
|
|
88
|
+
declare const ExternalLinkButton: FC<ExternalLinkButtonProps>;
|
|
89
|
+
|
|
90
|
+
type RejectReason = "type" | "size" | "count";
|
|
91
|
+
type RejectedFile = {
|
|
92
|
+
file: File;
|
|
93
|
+
reason: RejectReason;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
type FileUploadProps = {
|
|
97
|
+
value: File[];
|
|
98
|
+
onChange: (files: File[]) => void;
|
|
99
|
+
onReject?: (rejected: RejectedFile[]) => void;
|
|
100
|
+
maxFiles?: number;
|
|
101
|
+
maxSizeBytes?: number;
|
|
102
|
+
accept?: string;
|
|
103
|
+
icon?: ReactNode;
|
|
104
|
+
label?: ReactNode;
|
|
105
|
+
previewIcon?: ReactNode;
|
|
106
|
+
/** Fully locks the field: no add, no remove, drops ignored. */
|
|
107
|
+
disabled?: boolean;
|
|
108
|
+
/** Optional cascade override; defaults to the inherited `[data-theme]`. */
|
|
109
|
+
theme?: ThemeName;
|
|
110
|
+
className?: string;
|
|
111
|
+
};
|
|
112
|
+
declare function FileUpload({ value, onChange, onReject, maxFiles, maxSizeBytes, accept, icon, label, previewIcon, disabled, theme, className, }: FileUploadProps): react_jsx_runtime.JSX.Element;
|
|
113
|
+
|
|
114
|
+
type InfoTipProps = {
|
|
115
|
+
text?: ReactNode;
|
|
116
|
+
content?: ReactNode;
|
|
117
|
+
label?: string;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Small "i" badge that opens a tooltip on hover, click, or focus.
|
|
121
|
+
*
|
|
122
|
+
* Both the badge and the popup follow the page theme: badge reads
|
|
123
|
+
* `bg-theme-bg-active`; popup uses the universal recipe via `<Tooltip>`
|
|
124
|
+
* (`bg-theme-bg-pale` + `border-theme-border` + `text-theme-text-strong`,
|
|
125
|
+
* viewport-clamped). Cursor on the badge is `cursor-help`.
|
|
126
|
+
*/
|
|
127
|
+
declare const InfoTip: FC<InfoTipProps>;
|
|
128
|
+
|
|
129
|
+
type BaseLinkCardProps = {
|
|
130
|
+
/** Override the cascade theme for this card's subtree. */
|
|
131
|
+
theme?: ThemeName;
|
|
132
|
+
external?: boolean;
|
|
133
|
+
showIcon?: boolean;
|
|
134
|
+
className?: string;
|
|
135
|
+
surfaceClassName?: string;
|
|
136
|
+
};
|
|
137
|
+
type LinkCardProps<T extends React.ElementType = "a"> = PropsWithChildren<BaseLinkCardProps> & {
|
|
138
|
+
as?: T;
|
|
139
|
+
} & Omit<React.ComponentPropsWithoutRef<T>, keyof BaseLinkCardProps | "as">;
|
|
140
|
+
declare function LinkCard<T extends React.ElementType = "a">({ as, theme, external, showIcon, className, surfaceClassName, children, ...linkProps }: LinkCardProps<T>): react_jsx_runtime.JSX.Element;
|
|
141
|
+
|
|
142
|
+
type MarkdownProps = {
|
|
143
|
+
children: string;
|
|
144
|
+
className?: string;
|
|
145
|
+
};
|
|
146
|
+
/** Compact markdown for cards and snippets. Use Prose for document-style content. */
|
|
147
|
+
declare function Markdown({ children, className }: MarkdownProps): react_jsx_runtime.JSX.Element;
|
|
148
|
+
|
|
149
|
+
type MediaPlaceholderProps = ComponentPropsWithoutRef<"div"> & {
|
|
150
|
+
theme?: ThemeName;
|
|
151
|
+
icon?: ReactNode;
|
|
152
|
+
label?: ReactNode;
|
|
153
|
+
detail?: ReactNode;
|
|
154
|
+
action?: ReactNode;
|
|
155
|
+
};
|
|
156
|
+
declare const MediaPlaceholder: FC<MediaPlaceholderProps>;
|
|
157
|
+
|
|
158
|
+
type MultiSelectOption = {
|
|
159
|
+
value: string;
|
|
160
|
+
label: string;
|
|
161
|
+
};
|
|
162
|
+
type MultiSelectProps = {
|
|
163
|
+
options: MultiSelectOption[];
|
|
164
|
+
selected: string[];
|
|
165
|
+
onChange: (selected: string[]) => void;
|
|
166
|
+
placeholder: string;
|
|
167
|
+
disabled?: boolean;
|
|
168
|
+
disabledText?: string;
|
|
169
|
+
align?: "start" | "end";
|
|
170
|
+
label?: string;
|
|
171
|
+
theme: ThemeName;
|
|
172
|
+
};
|
|
173
|
+
declare const MultiSelect: FC<MultiSelectProps>;
|
|
174
|
+
|
|
175
|
+
type BaseNavItemProps = {
|
|
176
|
+
/** Section color via the `[data-theme]` cascade — tints the dot + active fill. */
|
|
177
|
+
theme?: ThemeName;
|
|
178
|
+
/** Current/selected item — fills with the section color + sets `aria-current`. */
|
|
179
|
+
active?: boolean;
|
|
180
|
+
className?: string;
|
|
181
|
+
};
|
|
182
|
+
type NavItemProps<T extends React.ElementType = "button"> = PropsWithChildren<BaseNavItemProps> & {
|
|
183
|
+
as?: T;
|
|
184
|
+
} & Omit<React.ComponentPropsWithoutRef<T>, keyof BaseNavItemProps | "as">;
|
|
185
|
+
/**
|
|
186
|
+
* Minimal nav item — a themed pill with a persistent section-color dot, neutral
|
|
187
|
+
* when inactive and filled with the section color when active. Polymorphic:
|
|
188
|
+
* `<NavItem>` (button) for in-page nav, `<NavItem as={Link} active={…}>` for
|
|
189
|
+
* routed nav. Mirrors enter's sidebar item so both apps share one design.
|
|
190
|
+
*/
|
|
191
|
+
declare function NavItem<T extends React.ElementType = "button">({ as, theme, active, className, children, ...rest }: NavItemProps<T>): react_jsx_runtime.JSX.Element;
|
|
192
|
+
|
|
193
|
+
type PeriodGranularity = "day" | "week" | "month";
|
|
194
|
+
type PeriodSelection = {
|
|
195
|
+
granularity: PeriodGranularity;
|
|
196
|
+
period: string;
|
|
197
|
+
};
|
|
198
|
+
declare function currentPeriod(): PeriodSelection;
|
|
199
|
+
declare function getPeriodBucketKeys(selection: PeriodSelection): string[];
|
|
200
|
+
declare function periodBucketKeyToDate(bucketKey: string, granularity: PeriodGranularity): Date;
|
|
201
|
+
|
|
202
|
+
type PeriodPickerProps = {
|
|
203
|
+
value: PeriodSelection;
|
|
204
|
+
onChange: (value: PeriodSelection) => void;
|
|
205
|
+
theme: ThemeName;
|
|
206
|
+
minDate?: Date;
|
|
207
|
+
maxDate?: Date;
|
|
208
|
+
};
|
|
209
|
+
declare const PeriodPicker: FC<PeriodPickerProps>;
|
|
210
|
+
|
|
211
|
+
type ProseProps = {
|
|
212
|
+
children: string;
|
|
213
|
+
className?: string;
|
|
214
|
+
};
|
|
215
|
+
declare function Prose({ children, className }: ProseProps): react_jsx_runtime.JSX.Element;
|
|
216
|
+
|
|
217
|
+
type SectionProps = {
|
|
218
|
+
title: string;
|
|
219
|
+
theme: ThemeName;
|
|
220
|
+
id?: string;
|
|
221
|
+
framed?: boolean;
|
|
222
|
+
intro?: ReactNode;
|
|
223
|
+
action?: ReactNode;
|
|
224
|
+
actionClassName?: string;
|
|
225
|
+
panelClassName?: string;
|
|
226
|
+
titleClassName?: string;
|
|
227
|
+
children: ReactNode;
|
|
228
|
+
className?: string;
|
|
229
|
+
};
|
|
230
|
+
declare const Section: FC<SectionProps>;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* - `stat` — large numeric value (default)
|
|
234
|
+
* - `fact` — small wrapping prose value (labeled fact tile)
|
|
235
|
+
*/
|
|
236
|
+
type StatCardVariant = "stat" | "fact";
|
|
237
|
+
type StatCardProps = {
|
|
238
|
+
label: ReactNode;
|
|
239
|
+
value: ReactNode;
|
|
240
|
+
detail?: ReactNode;
|
|
241
|
+
variant?: StatCardVariant;
|
|
242
|
+
theme?: ThemeName;
|
|
243
|
+
className?: string;
|
|
244
|
+
labelClassName?: string;
|
|
245
|
+
valueClassName?: string;
|
|
246
|
+
detailClassName?: string;
|
|
247
|
+
};
|
|
248
|
+
declare const StatCard: FC<StatCardProps>;
|
|
249
|
+
|
|
250
|
+
/** Class merge for apps consuming the unprefixed Tailwind bridge in app.css. */
|
|
251
|
+
declare function cn(...inputs: (string | undefined | null | false)[]): string;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Locks page scroll while enabled and restores the original overflow values on
|
|
255
|
+
* cleanup.
|
|
256
|
+
*/
|
|
257
|
+
declare function useScrollLock(enabled?: boolean): void;
|
|
258
|
+
|
|
259
|
+
/** Button only supports `danger`. Label/status color recipes live on Chip. */
|
|
260
|
+
type ButtonIntent = "danger";
|
|
261
|
+
declare const sizes: {
|
|
262
|
+
readonly sm: "polli:px-2 polli:pt-0.5 polli:pb-1";
|
|
263
|
+
readonly md: "polli:px-4 polli:pt-1.5 polli:pb-2";
|
|
264
|
+
readonly lg: "polli:px-6 polli:py-3";
|
|
265
|
+
};
|
|
266
|
+
type BaseButtonProps = {
|
|
267
|
+
/** Override the cascade theme for this button's subtree. Ignored when `intent` is set. */
|
|
268
|
+
theme?: ThemeName;
|
|
269
|
+
/** Only `"danger"` for now. */
|
|
270
|
+
intent?: ButtonIntent;
|
|
271
|
+
size?: keyof typeof sizes;
|
|
272
|
+
className?: string;
|
|
273
|
+
disabled?: boolean;
|
|
274
|
+
};
|
|
275
|
+
type ButtonProps<T extends React.ElementType = "button"> = PropsWithChildren<BaseButtonProps> & {
|
|
276
|
+
as?: T;
|
|
277
|
+
} & Omit<React.ComponentPropsWithoutRef<T>, keyof BaseButtonProps | "as">;
|
|
278
|
+
declare function Button<T extends React.ElementType = "button">({ as, children, theme, intent, size, className, disabled, ...buttonProps }: ButtonProps<T>): react_jsx_runtime.JSX.Element;
|
|
279
|
+
|
|
280
|
+
type ButtonGroupProps = ComponentPropsWithoutRef<"div"> & {
|
|
281
|
+
wrap?: boolean;
|
|
282
|
+
};
|
|
283
|
+
declare const ButtonGroup: FC<ButtonGroupProps>;
|
|
284
|
+
|
|
285
|
+
type ChevronIconProps = {
|
|
286
|
+
/** Rotate 180° when expanded/open. */
|
|
287
|
+
expanded?: boolean;
|
|
288
|
+
className?: string;
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* Canonical chevron used for collapsibles, dropdown triggers, and select pills
|
|
292
|
+
* across the app. One icon everywhere.
|
|
293
|
+
*/
|
|
294
|
+
declare const ChevronIcon: FC<ChevronIconProps>;
|
|
295
|
+
|
|
94
296
|
declare const sizeClasses: {
|
|
95
297
|
readonly sm: "polli:max-w-md";
|
|
96
298
|
readonly md: "polli:max-w-xl";
|
|
@@ -128,21 +330,18 @@ type DropdownProps = {
|
|
|
128
330
|
/** Controlled open state. Omit to let the Dropdown manage its own. */
|
|
129
331
|
open?: boolean;
|
|
130
332
|
onOpenChange?: (open: boolean) => void;
|
|
131
|
-
/** Replaces the default themed surface (e.g. a differently-coloured menu). */
|
|
132
|
-
panelClassName?: string;
|
|
133
333
|
/** Appended after the surface (widths, padding, max-height…). */
|
|
134
334
|
className?: string;
|
|
135
335
|
};
|
|
136
336
|
declare const Dropdown: FC<DropdownProps>;
|
|
137
337
|
|
|
138
|
-
type
|
|
139
|
-
theme: ThemeName;
|
|
140
|
-
href: string;
|
|
141
|
-
size?: "small" | "medium" | "large";
|
|
338
|
+
type BaseDropdownItemProps = {
|
|
142
339
|
className?: string;
|
|
143
|
-
children: ReactNode;
|
|
144
340
|
};
|
|
145
|
-
|
|
341
|
+
type DropdownItemProps<T extends React.ElementType = "button"> = PropsWithChildren<BaseDropdownItemProps> & {
|
|
342
|
+
as?: T;
|
|
343
|
+
} & Omit<React.ComponentPropsWithoutRef<T>, keyof BaseDropdownItemProps | "as">;
|
|
344
|
+
declare function DropdownItem<T extends React.ElementType = "button">({ as, className, children, ...rest }: DropdownItemProps<T>): react_jsx_runtime.JSX.Element;
|
|
146
345
|
|
|
147
346
|
/** IconButton only supports `danger` (delete icons). */
|
|
148
347
|
type IconButtonIntent = "danger";
|
|
@@ -155,20 +354,18 @@ type IconButtonProps = {
|
|
|
155
354
|
};
|
|
156
355
|
declare const IconButton: FC<IconButtonProps>;
|
|
157
356
|
|
|
158
|
-
type
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
357
|
+
type BaseInlineLinkProps = {
|
|
358
|
+
/** Override the cascade theme for this link's subtree. */
|
|
359
|
+
theme?: ThemeName;
|
|
360
|
+
/** Set explicitly for non-http external links, or false for custom routing components. */
|
|
361
|
+
external?: boolean;
|
|
362
|
+
showIcon?: boolean;
|
|
363
|
+
className?: string;
|
|
162
364
|
};
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
* `bg-theme-bg-active`; popup uses the universal recipe via `<Tooltip>`
|
|
168
|
-
* (`bg-theme-bg-pale` + `border-theme-border` + `text-theme-text-strong`,
|
|
169
|
-
* viewport-clamped). Cursor on the badge is `cursor-help`.
|
|
170
|
-
*/
|
|
171
|
-
declare const InfoTip: FC<InfoTipProps>;
|
|
365
|
+
type InlineLinkProps<T extends React.ElementType = "a"> = PropsWithChildren<BaseInlineLinkProps> & {
|
|
366
|
+
as?: T;
|
|
367
|
+
} & Omit<React.ComponentPropsWithoutRef<T>, keyof BaseInlineLinkProps | "as">;
|
|
368
|
+
declare function InlineLink<T extends React.ElementType = "a">({ as, theme, external, showIcon, className, children, ...linkProps }: InlineLinkProps<T>): react_jsx_runtime.JSX.Element;
|
|
172
369
|
|
|
173
370
|
type InputProps = React.ComponentPropsWithoutRef<"input"> & {
|
|
174
371
|
error?: boolean;
|
|
@@ -194,42 +391,18 @@ declare function ExternalLinkIcon(props: IconProps): react_jsx_runtime.JSX.Eleme
|
|
|
194
391
|
declare function GenApiIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
195
392
|
declare function GitHubIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
196
393
|
declare function ImageIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
394
|
+
declare function AudioIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
197
395
|
declare function LockIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
198
396
|
declare function MailIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
199
397
|
declare function McpIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
200
398
|
declare function MenuIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
399
|
+
declare function PlusIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
201
400
|
declare function TerminalIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
202
401
|
declare function TokensIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
203
402
|
declare function TrendUpIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
204
403
|
declare function WalletIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
205
404
|
declare function XIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
206
405
|
|
|
207
|
-
type MultiSelectOption = {
|
|
208
|
-
value: string;
|
|
209
|
-
label: string;
|
|
210
|
-
};
|
|
211
|
-
type MultiSelectProps = {
|
|
212
|
-
options: MultiSelectOption[];
|
|
213
|
-
selected: string[];
|
|
214
|
-
onChange: (selected: string[]) => void;
|
|
215
|
-
placeholder: string;
|
|
216
|
-
disabled?: boolean;
|
|
217
|
-
disabledText?: string;
|
|
218
|
-
align?: "start" | "end";
|
|
219
|
-
label?: string;
|
|
220
|
-
theme: ThemeName;
|
|
221
|
-
};
|
|
222
|
-
declare const MultiSelect: FC<MultiSelectProps>;
|
|
223
|
-
|
|
224
|
-
type PeriodPickerProps = {
|
|
225
|
-
value: PeriodSelection;
|
|
226
|
-
onChange: (value: PeriodSelection) => void;
|
|
227
|
-
theme: ThemeName;
|
|
228
|
-
minDate?: Date;
|
|
229
|
-
maxDate?: Date;
|
|
230
|
-
};
|
|
231
|
-
declare const PeriodPicker: FC<PeriodPickerProps>;
|
|
232
|
-
|
|
233
406
|
type ScrollAxis = "y" | "x";
|
|
234
407
|
type ScrollAreaOwnProps = {
|
|
235
408
|
/** Override the ambient cascade theme for this scroller's thumb. */
|
|
@@ -247,18 +420,6 @@ declare const ScrollArea: react.ForwardRefExoticComponent<ScrollAreaOwnProps & O
|
|
|
247
420
|
children?: react.ReactNode | undefined;
|
|
248
421
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
249
422
|
|
|
250
|
-
type SectionProps = {
|
|
251
|
-
title: string;
|
|
252
|
-
theme: ThemeName;
|
|
253
|
-
id?: string;
|
|
254
|
-
framed?: boolean;
|
|
255
|
-
action?: ReactNode;
|
|
256
|
-
actionClassName?: string;
|
|
257
|
-
children: ReactNode;
|
|
258
|
-
className?: string;
|
|
259
|
-
};
|
|
260
|
-
declare const Section: FC<SectionProps>;
|
|
261
|
-
|
|
262
423
|
type SliderProps = Omit<React.ComponentPropsWithoutRef<"input">, "type"> & {
|
|
263
424
|
/** Fill percentage from 0-100. Falls back to value/min/max when omitted. */
|
|
264
425
|
progress?: number;
|
|
@@ -268,18 +429,6 @@ declare const Slider: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHT
|
|
|
268
429
|
progress?: number;
|
|
269
430
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
270
431
|
|
|
271
|
-
type StatCardProps = {
|
|
272
|
-
label: ReactNode;
|
|
273
|
-
value: ReactNode;
|
|
274
|
-
detail?: ReactNode;
|
|
275
|
-
theme?: ThemeName;
|
|
276
|
-
className?: string;
|
|
277
|
-
labelClassName?: string;
|
|
278
|
-
valueClassName?: string;
|
|
279
|
-
detailClassName?: string;
|
|
280
|
-
};
|
|
281
|
-
declare const StatCard: FC<StatCardProps>;
|
|
282
|
-
|
|
283
432
|
type SurfaceVariant = "panel" | "card" | "card-themed";
|
|
284
433
|
type SurfaceOwnProps = {
|
|
285
434
|
/** Override the cascade theme for this surface's subtree. */
|
|
@@ -323,7 +472,8 @@ type TabButtonProps = {
|
|
|
323
472
|
children: ReactNode;
|
|
324
473
|
/** Optional cascade override; defaults to inherited [data-theme]. */
|
|
325
474
|
theme?: ThemeName;
|
|
326
|
-
size?: "
|
|
475
|
+
size?: "md" | "sm";
|
|
476
|
+
variant?: "default" | "ghost";
|
|
327
477
|
ariaLabel?: string;
|
|
328
478
|
disabled?: boolean;
|
|
329
479
|
className?: string;
|
|
@@ -358,6 +508,13 @@ type TableCellProps = ComponentPropsWithoutRef<"td"> & {
|
|
|
358
508
|
};
|
|
359
509
|
declare const TableCell: FC<TableCellProps>;
|
|
360
510
|
|
|
511
|
+
type TextareaProps = React.ComponentPropsWithoutRef<"textarea"> & {
|
|
512
|
+
error?: boolean;
|
|
513
|
+
};
|
|
514
|
+
declare const Textarea: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & {
|
|
515
|
+
error?: boolean;
|
|
516
|
+
} & react.RefAttributes<HTMLTextAreaElement>>;
|
|
517
|
+
|
|
361
518
|
type TooltipProps = {
|
|
362
519
|
children: ReactNode;
|
|
363
520
|
content: ReactNode;
|
|
@@ -375,4 +532,32 @@ type TooltipProps = {
|
|
|
375
532
|
};
|
|
376
533
|
declare const Tooltip: FC<TooltipProps>;
|
|
377
534
|
|
|
378
|
-
|
|
535
|
+
type HeadingSize = "display" | "title" | "section" | "subsection" | "card";
|
|
536
|
+
type TextSize = "body" | "sm" | "xs" | "micro";
|
|
537
|
+
type TextTone = "base" | "strong" | "soft" | "muted";
|
|
538
|
+
type TextWeight = "normal" | "medium" | "semibold" | "bold";
|
|
539
|
+
declare function headingClassName(size: HeadingSize, className?: string): string;
|
|
540
|
+
declare function textClassName({ size, tone, weight, className, }: {
|
|
541
|
+
size: TextSize;
|
|
542
|
+
tone: TextTone;
|
|
543
|
+
weight: TextWeight;
|
|
544
|
+
className?: string;
|
|
545
|
+
}): string;
|
|
546
|
+
type HeadingOwnProps<T extends ElementType> = PropsWithChildren<{
|
|
547
|
+
as?: T;
|
|
548
|
+
size?: HeadingSize;
|
|
549
|
+
className?: string;
|
|
550
|
+
}>;
|
|
551
|
+
type HeadingProps<T extends ElementType = "h2"> = HeadingOwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof HeadingOwnProps<T>>;
|
|
552
|
+
declare function Heading<T extends ElementType = "h2">({ as, size, className, children, ...rest }: HeadingProps<T>): react_jsx_runtime.JSX.Element;
|
|
553
|
+
type TextOwnProps<T extends ElementType> = PropsWithChildren<{
|
|
554
|
+
as?: T;
|
|
555
|
+
size?: TextSize;
|
|
556
|
+
tone?: TextTone;
|
|
557
|
+
weight?: TextWeight;
|
|
558
|
+
className?: string;
|
|
559
|
+
}>;
|
|
560
|
+
type TextProps<T extends ElementType = "p"> = TextOwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof TextOwnProps<T>>;
|
|
561
|
+
declare function Text<T extends ElementType = "p">({ as, size, tone, weight, className, children, ...rest }: TextProps<T>): react_jsx_runtime.JSX.Element;
|
|
562
|
+
|
|
563
|
+
export { Alert, type AlertProps, AppHeader, type AppHeaderProps, AppIcon, AudioIcon, BeakerIcon, BookIcon, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, CheckIcon, ChevronIcon, ClipboardIcon, ClockIcon, CodeBlock, type CodeBlockProps, 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, Heading, type HeadingProps, type HeadingSize, IconButton, type IconProps, ImageIcon, InfoTip, InlineLink, type InlineLinkProps, Input, type InputProps, LinkCard, type LinkCardProps, LockIcon, MailIcon, Markdown, type MarkdownProps, McpIcon, MediaPlaceholder, type MediaPlaceholderProps, MenuIcon, MultiSelect, type MultiSelectProps, NavItem, type NavItemProps, type PeriodGranularity, PeriodPicker, type PeriodPickerProps, type PeriodSelection, PlusIcon, 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, Text, type TextProps, type TextSize, type TextTone, type TextWeight, Textarea, type TextareaProps, ThemeName, TokensIcon, Tooltip, TrendUpIcon, WalletIcon, XIcon, cn, currentPeriod, getPeriodBucketKeys, headingClassName, periodBucketKeyToDate, textClassName, useScrollLock };
|