nave-ui-library 1.0.0-beta.57 → 1.0.0-beta.58
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/dist/react/index.d.ts +1947 -1947
- package/dist/react/index.js +13465 -13465
- package/dist/styles.css +1 -1
- package/dist/wc/index.d.ts +546 -546
- package/dist/wc/index.js +74 -59
- package/package.json +2 -2
package/dist/react/index.d.ts
CHANGED
|
@@ -1,1947 +1,1947 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React$1 from 'react';
|
|
3
|
-
import { HTMLAttributes, CSSProperties } from 'react';
|
|
4
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
-
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
6
|
-
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
7
|
-
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
8
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
9
|
-
import { VariantProps } from 'class-variance-authority';
|
|
10
|
-
import { Loader2Icon } from 'lucide-react';
|
|
11
|
-
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
12
|
-
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
13
|
-
import { DayPicker } from 'react-day-picker';
|
|
14
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
15
|
-
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
16
|
-
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
17
|
-
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
18
|
-
import * as vaul from 'vaul';
|
|
19
|
-
import { Drawer as Drawer$1 } from 'vaul';
|
|
20
|
-
import * as _radix_ui_react_dialog from '@radix-ui/react-dialog';
|
|
21
|
-
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
22
|
-
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
23
|
-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
24
|
-
import { ClassValue } from 'clsx';
|
|
25
|
-
|
|
26
|
-
type AITask = 'smartSearch' | 'textAssist' | 'formHelper' | 'tagSuggest' | 'emptyState' | 'dataInsights' | 'translate' | 'explainCode';
|
|
27
|
-
type AIRequest<TContext = unknown> = {
|
|
28
|
-
task: AITask;
|
|
29
|
-
input?: string;
|
|
30
|
-
context?: TContext;
|
|
31
|
-
data?: unknown;
|
|
32
|
-
options?: Record<string, unknown>;
|
|
33
|
-
};
|
|
34
|
-
type AIResponse<T = unknown> = {
|
|
35
|
-
output: T;
|
|
36
|
-
raw?: unknown;
|
|
37
|
-
};
|
|
38
|
-
type AIRequestFn = <T = unknown>(payload: AIRequest) => Promise<AIResponse<T>>;
|
|
39
|
-
|
|
40
|
-
type AIProviderProps = {
|
|
41
|
-
request: AIRequestFn;
|
|
42
|
-
children: React$1.ReactNode;
|
|
43
|
-
};
|
|
44
|
-
declare function AIProvider({ request, children }: AIProviderProps): react_jsx_runtime.JSX.Element;
|
|
45
|
-
declare function useAI(): AIRequestFn | null;
|
|
46
|
-
|
|
47
|
-
interface ThemeTokensBase {
|
|
48
|
-
[key: string]: unknown;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Recursive token map returned by `resolveTokens`.
|
|
52
|
-
*
|
|
53
|
-
* Values are typed as `any` because token structures come from runtime JSON
|
|
54
|
-
* configuration and their shapes vary per component. This enables ergonomic
|
|
55
|
-
* deep chaining without casts:
|
|
56
|
-
*
|
|
57
|
-
* ```ts
|
|
58
|
-
* const tokens = resolveTokens({ componentName: 'button', variant }, theme);
|
|
59
|
-
* tokens?.hover?.background // any
|
|
60
|
-
* tokens?.sizes?.medium // any
|
|
61
|
-
* ```
|
|
62
|
-
*
|
|
63
|
-
* For component-specific token shapes with full autocomplete, define a typed
|
|
64
|
-
* interface and pass it as a generic:
|
|
65
|
-
*
|
|
66
|
-
* ```ts
|
|
67
|
-
* const tokens = resolveTokens<ButtonTokens>({ componentName: 'button', variant }, theme);
|
|
68
|
-
* tokens?.hover?.background // string | undefined (narrowed by ButtonTokens)
|
|
69
|
-
* ```
|
|
70
|
-
*/
|
|
71
|
-
interface ResolvedTokenMap {
|
|
72
|
-
[key: string]: any;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Type-safe descent into a token branch (e.g. `sizes`, `variants`, `tones`).
|
|
76
|
-
*
|
|
77
|
-
* Navigates through nested keys and returns a `ResolvedTokenMap` at the target.
|
|
78
|
-
* Returns `{}` when any segment along the path is missing or not an object.
|
|
79
|
-
*
|
|
80
|
-
* ```ts
|
|
81
|
-
* const sizeTokens = tokenAt(mergedTokens, 'sizes', 'medium');
|
|
82
|
-
* sizeTokens?.fontSize // string | number | ...
|
|
83
|
-
* sizeTokens?.height // string | number | ...
|
|
84
|
-
* ```
|
|
85
|
-
*/
|
|
86
|
-
declare function tokenAt(tokens: ResolvedTokenMap, ...keys: string[]): ResolvedTokenMap;
|
|
87
|
-
|
|
88
|
-
declare function useTheme<T extends ThemeTokensBase = ThemeTokensBase>(): T;
|
|
89
|
-
|
|
90
|
-
type ResolveTokensParams = {
|
|
91
|
-
componentName: string;
|
|
92
|
-
variant?: string;
|
|
93
|
-
size?: string;
|
|
94
|
-
tone?: string;
|
|
95
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
declare function resolveTokens<T extends ResolvedTokenMap = ResolvedTokenMap>({ componentName, variant, size, tone, tokens }: ResolveTokensParams, theme: ThemeTokensBase): T;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Typed token contracts for every component.
|
|
102
|
-
*
|
|
103
|
-
* Each interface describes the **resolved** shape returned by `resolveTokens`
|
|
104
|
-
* after base / variant / size / tone merging. Passing the generic to
|
|
105
|
-
* `resolveTokens<ButtonTokens>(…)` gives full autocomplete and catches typos
|
|
106
|
-
* at compile time.
|
|
107
|
-
*
|
|
108
|
-
* Every contract extends `ResolvedTokenMap` so the result remains compatible
|
|
109
|
-
* with `mapTokenStyles(mergedTokens, MAP)` which expects `Record<string, unknown>`.
|
|
110
|
-
*
|
|
111
|
-
* @module token-types
|
|
112
|
-
*/
|
|
113
|
-
|
|
114
|
-
/** Common typography tokens shared by most components. */
|
|
115
|
-
interface TypographyTokens {
|
|
116
|
-
fontFamily?: string;
|
|
117
|
-
lineHeight?: string;
|
|
118
|
-
letterSpacing?: string;
|
|
119
|
-
}
|
|
120
|
-
/** Foreground + background + border bundle (buttons, inputs, alerts, …). */
|
|
121
|
-
interface ColorBundle {
|
|
122
|
-
background?: string;
|
|
123
|
-
color?: string;
|
|
124
|
-
border?: string;
|
|
125
|
-
}
|
|
126
|
-
/** Extended color bundle with box-shadow (inputs, badges, …). */
|
|
127
|
-
interface ColorBundleWithShadow extends ColorBundle {
|
|
128
|
-
boxShadow?: string;
|
|
129
|
-
}
|
|
130
|
-
/** Font sizing subset used by multiple size-aware components. */
|
|
131
|
-
interface FontSizeTokens {
|
|
132
|
-
fontSize?: string;
|
|
133
|
-
fontWeight?: string | number;
|
|
134
|
-
}
|
|
135
|
-
/** Font sizing + color subset used by labels / helpers inside inputs. */
|
|
136
|
-
interface LabeledFontTokens extends FontSizeTokens {
|
|
137
|
-
labelFontSize?: string;
|
|
138
|
-
inputFontSize?: string;
|
|
139
|
-
helperFontSize?: string;
|
|
140
|
-
labelFontWeight?: string | number;
|
|
141
|
-
inputFontWeight?: string | number;
|
|
142
|
-
helperFontWeight?: string | number;
|
|
143
|
-
labelColor?: string;
|
|
144
|
-
helperColor?: string;
|
|
145
|
-
descriptionColor?: string;
|
|
146
|
-
}
|
|
147
|
-
/** Padding / height subset shared by input-family sizes. */
|
|
148
|
-
interface InputSizeDimensions extends LabeledFontTokens {
|
|
149
|
-
height?: string;
|
|
150
|
-
padding?: string;
|
|
151
|
-
iconSize?: string | number;
|
|
152
|
-
}
|
|
153
|
-
interface ButtonTokens extends TypographyTokens, ResolvedTokenMap {
|
|
154
|
-
radius?: string;
|
|
155
|
-
transition?: string;
|
|
156
|
-
gap?: string;
|
|
157
|
-
sizes?: Record<string, {
|
|
158
|
-
height?: string;
|
|
159
|
-
paddingX?: string;
|
|
160
|
-
fontSize?: string;
|
|
161
|
-
fontWeight?: string | number;
|
|
162
|
-
iconSize?: string | number;
|
|
163
|
-
}>;
|
|
164
|
-
variants?: Record<string, ColorBundle & {
|
|
165
|
-
hover?: ColorBundle;
|
|
166
|
-
disabled?: ColorBundle;
|
|
167
|
-
loading?: ColorBundle;
|
|
168
|
-
focus?: {
|
|
169
|
-
boxShadow?: string;
|
|
170
|
-
};
|
|
171
|
-
}>;
|
|
172
|
-
}
|
|
173
|
-
interface InputTokens extends TypographyTokens, ResolvedTokenMap {
|
|
174
|
-
background?: string;
|
|
175
|
-
color?: string;
|
|
176
|
-
radius?: string;
|
|
177
|
-
border?: string;
|
|
178
|
-
boxShadow?: string;
|
|
179
|
-
hover?: ColorBundleWithShadow;
|
|
180
|
-
focus?: ColorBundleWithShadow;
|
|
181
|
-
filled?: ColorBundleWithShadow;
|
|
182
|
-
disabled?: ColorBundleWithShadow;
|
|
183
|
-
error?: ColorBundleWithShadow & {
|
|
184
|
-
filled?: ColorBundleWithShadow;
|
|
185
|
-
focus?: ColorBundleWithShadow;
|
|
186
|
-
hover?: ColorBundleWithShadow;
|
|
187
|
-
};
|
|
188
|
-
sizes?: Record<string, InputSizeDimensions>;
|
|
189
|
-
}
|
|
190
|
-
interface SelectTokens extends InputTokens, ResolvedTokenMap {
|
|
191
|
-
}
|
|
192
|
-
interface LabelTokens extends ResolvedTokenMap {
|
|
193
|
-
fontSize?: string;
|
|
194
|
-
color?: string;
|
|
195
|
-
fontWeight?: string | number;
|
|
196
|
-
padding?: string;
|
|
197
|
-
}
|
|
198
|
-
interface CalendarTokens extends TypographyTokens, ResolvedTokenMap {
|
|
199
|
-
background?: string;
|
|
200
|
-
text?: string;
|
|
201
|
-
muted?: string;
|
|
202
|
-
radius?: string;
|
|
203
|
-
border?: string;
|
|
204
|
-
item?: {
|
|
205
|
-
size?: string;
|
|
206
|
-
radius?: string;
|
|
207
|
-
hover?: {
|
|
208
|
-
background?: string;
|
|
209
|
-
};
|
|
210
|
-
current?: {
|
|
211
|
-
background?: string;
|
|
212
|
-
};
|
|
213
|
-
active?: {
|
|
214
|
-
background?: string;
|
|
215
|
-
color?: string;
|
|
216
|
-
};
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
interface SwitchTokens extends TypographyTokens, ResolvedTokenMap {
|
|
220
|
-
gap?: string;
|
|
221
|
-
textGap?: string;
|
|
222
|
-
background?: string;
|
|
223
|
-
track?: {
|
|
224
|
-
offBackgroundHover?: string;
|
|
225
|
-
onBackground?: string;
|
|
226
|
-
onBackgroundHover?: string;
|
|
227
|
-
};
|
|
228
|
-
handle?: {
|
|
229
|
-
color?: string;
|
|
230
|
-
};
|
|
231
|
-
disabled?: {
|
|
232
|
-
background?: string;
|
|
233
|
-
text?: string;
|
|
234
|
-
track?: string;
|
|
235
|
-
};
|
|
236
|
-
motion?: {
|
|
237
|
-
duration?: string;
|
|
238
|
-
};
|
|
239
|
-
sizes?: Record<string, {
|
|
240
|
-
labelFontWeight?: string | number;
|
|
241
|
-
descriptionFontWeight?: string | number;
|
|
242
|
-
labelFontSize?: string;
|
|
243
|
-
descriptionFontSize?: string;
|
|
244
|
-
labelColor?: string;
|
|
245
|
-
descriptionColor?: string;
|
|
246
|
-
track?: {
|
|
247
|
-
width?: string;
|
|
248
|
-
height?: string;
|
|
249
|
-
};
|
|
250
|
-
handle?: {
|
|
251
|
-
size?: string;
|
|
252
|
-
translate?: string;
|
|
253
|
-
};
|
|
254
|
-
}>;
|
|
255
|
-
}
|
|
256
|
-
interface RadioTokens extends TypographyTokens, ResolvedTokenMap {
|
|
257
|
-
outer?: {
|
|
258
|
-
background?: string;
|
|
259
|
-
border?: string;
|
|
260
|
-
focusBorder?: string;
|
|
261
|
-
hoverBorder?: string;
|
|
262
|
-
};
|
|
263
|
-
checked?: {
|
|
264
|
-
background?: string;
|
|
265
|
-
backgroundHover?: string;
|
|
266
|
-
};
|
|
267
|
-
disabled?: {
|
|
268
|
-
background?: string;
|
|
269
|
-
border?: string;
|
|
270
|
-
dot?: string;
|
|
271
|
-
text?: string;
|
|
272
|
-
};
|
|
273
|
-
gap?: string;
|
|
274
|
-
textGap?: string;
|
|
275
|
-
motion?: {
|
|
276
|
-
duration?: string;
|
|
277
|
-
};
|
|
278
|
-
sizes?: Record<string, {
|
|
279
|
-
outer?: {
|
|
280
|
-
size?: string;
|
|
281
|
-
};
|
|
282
|
-
dot?: {
|
|
283
|
-
size?: string;
|
|
284
|
-
};
|
|
285
|
-
labelFontSize?: string;
|
|
286
|
-
descriptionFontSize?: string;
|
|
287
|
-
labelFontWeight?: string | number;
|
|
288
|
-
descriptionFontWeight?: string | number;
|
|
289
|
-
labelColor?: string;
|
|
290
|
-
descriptionColor?: string;
|
|
291
|
-
}>;
|
|
292
|
-
}
|
|
293
|
-
interface CheckboxTokens extends TypographyTokens, ResolvedTokenMap {
|
|
294
|
-
fontWeight?: string | number;
|
|
295
|
-
gap?: string;
|
|
296
|
-
textGap?: string;
|
|
297
|
-
disabled?: {
|
|
298
|
-
text?: string;
|
|
299
|
-
};
|
|
300
|
-
track?: {
|
|
301
|
-
background?: string;
|
|
302
|
-
border?: string;
|
|
303
|
-
focusBorder?: string;
|
|
304
|
-
};
|
|
305
|
-
checked?: {
|
|
306
|
-
background?: string;
|
|
307
|
-
backgroundHover?: string;
|
|
308
|
-
};
|
|
309
|
-
thumb?: {
|
|
310
|
-
color?: string;
|
|
311
|
-
};
|
|
312
|
-
sizes?: Record<string, {
|
|
313
|
-
control?: string;
|
|
314
|
-
icon?: string;
|
|
315
|
-
labelFontSize?: string;
|
|
316
|
-
descriptionFontSize?: string;
|
|
317
|
-
labelFontWeight?: string | number;
|
|
318
|
-
descriptionFontWeight?: string | number;
|
|
319
|
-
labelColor?: string;
|
|
320
|
-
descriptionColor?: string;
|
|
321
|
-
}>;
|
|
322
|
-
}
|
|
323
|
-
interface SeparatorTokens extends ResolvedTokenMap {
|
|
324
|
-
color?: string;
|
|
325
|
-
opacity?: string | number;
|
|
326
|
-
orientation?: {
|
|
327
|
-
horizontal?: {
|
|
328
|
-
width?: string;
|
|
329
|
-
height?: string;
|
|
330
|
-
};
|
|
331
|
-
vertical?: {
|
|
332
|
-
width?: string;
|
|
333
|
-
height?: string;
|
|
334
|
-
};
|
|
335
|
-
};
|
|
336
|
-
}
|
|
337
|
-
interface PaginationTokens extends TypographyTokens, ResolvedTokenMap {
|
|
338
|
-
gap?: string;
|
|
339
|
-
radius?: string;
|
|
340
|
-
pageNumber?: FontSizeTokens;
|
|
341
|
-
icon?: {
|
|
342
|
-
size?: string;
|
|
343
|
-
color?: string;
|
|
344
|
-
};
|
|
345
|
-
item?: {
|
|
346
|
-
default?: ColorBundle;
|
|
347
|
-
hover?: {
|
|
348
|
-
background?: string;
|
|
349
|
-
border?: string;
|
|
350
|
-
};
|
|
351
|
-
active?: {
|
|
352
|
-
background?: string;
|
|
353
|
-
text?: string;
|
|
354
|
-
border?: string;
|
|
355
|
-
};
|
|
356
|
-
focus?: {
|
|
357
|
-
border?: string;
|
|
358
|
-
};
|
|
359
|
-
disabled?: {
|
|
360
|
-
background?: string;
|
|
361
|
-
text?: string;
|
|
362
|
-
opacity?: string | number;
|
|
363
|
-
};
|
|
364
|
-
};
|
|
365
|
-
}
|
|
366
|
-
interface TabsTokens extends TypographyTokens, ResolvedTokenMap {
|
|
367
|
-
tabsList?: {
|
|
368
|
-
background?: string;
|
|
369
|
-
color?: string;
|
|
370
|
-
radius?: string;
|
|
371
|
-
};
|
|
372
|
-
tabsTrigger?: {
|
|
373
|
-
color?: string;
|
|
374
|
-
active?: {
|
|
375
|
-
background?: string;
|
|
376
|
-
color?: string;
|
|
377
|
-
boxShadow?: string;
|
|
378
|
-
};
|
|
379
|
-
hover?: {
|
|
380
|
-
background?: string;
|
|
381
|
-
};
|
|
382
|
-
disabled?: {
|
|
383
|
-
opacity?: string | number;
|
|
384
|
-
background?: string;
|
|
385
|
-
color?: string;
|
|
386
|
-
};
|
|
387
|
-
};
|
|
388
|
-
tabsFocusRing?: {
|
|
389
|
-
innerColor?: string;
|
|
390
|
-
outerColor?: string;
|
|
391
|
-
innerSize?: string;
|
|
392
|
-
outerSize?: string;
|
|
393
|
-
};
|
|
394
|
-
sizes?: Record<string, FontSizeTokens>;
|
|
395
|
-
}
|
|
396
|
-
interface SidebarTokens extends ResolvedTokenMap {
|
|
397
|
-
container?: {
|
|
398
|
-
background?: string;
|
|
399
|
-
border?: string;
|
|
400
|
-
width?: string;
|
|
401
|
-
collapsedWidth?: string;
|
|
402
|
-
padding?: string;
|
|
403
|
-
};
|
|
404
|
-
header?: {
|
|
405
|
-
minHeight?: string;
|
|
406
|
-
titleColor?: string;
|
|
407
|
-
titleFontSize?: string;
|
|
408
|
-
titleFontWeight?: string | number;
|
|
409
|
-
titleFontFamily?: string;
|
|
410
|
-
titleLineHeight?: string;
|
|
411
|
-
titleLetterSpacing?: string;
|
|
412
|
-
};
|
|
413
|
-
item?: {
|
|
414
|
-
radius?: string;
|
|
415
|
-
height?: string;
|
|
416
|
-
paddingX?: string;
|
|
417
|
-
gap?: string;
|
|
418
|
-
fontSize?: string;
|
|
419
|
-
fontWeight?: string | number;
|
|
420
|
-
color?: string;
|
|
421
|
-
fontFamily?: string;
|
|
422
|
-
lineHeight?: string;
|
|
423
|
-
letterSpacing?: string;
|
|
424
|
-
hover?: {
|
|
425
|
-
background?: string;
|
|
426
|
-
color?: string;
|
|
427
|
-
};
|
|
428
|
-
active?: {
|
|
429
|
-
background?: string;
|
|
430
|
-
color?: string;
|
|
431
|
-
};
|
|
432
|
-
};
|
|
433
|
-
section?: {
|
|
434
|
-
titleColor?: string;
|
|
435
|
-
titleFontSize?: string;
|
|
436
|
-
titleFontFamily?: string;
|
|
437
|
-
titleLineHeight?: string;
|
|
438
|
-
titleLetterSpacing?: string;
|
|
439
|
-
gap?: string;
|
|
440
|
-
};
|
|
441
|
-
toggle?: {
|
|
442
|
-
color?: string;
|
|
443
|
-
hoverColor?: string;
|
|
444
|
-
};
|
|
445
|
-
motion?: {
|
|
446
|
-
duration?: string;
|
|
447
|
-
};
|
|
448
|
-
}
|
|
449
|
-
interface TourTokens extends TypographyTokens, ResolvedTokenMap {
|
|
450
|
-
backgroundColor?: string;
|
|
451
|
-
borderColor?: string;
|
|
452
|
-
borderRadius?: string;
|
|
453
|
-
padding?: string;
|
|
454
|
-
shadow?: string;
|
|
455
|
-
gap?: string;
|
|
456
|
-
step?: TypographyTokens & FontSizeTokens & {
|
|
457
|
-
color?: string;
|
|
458
|
-
};
|
|
459
|
-
title?: TypographyTokens & FontSizeTokens & {
|
|
460
|
-
color?: string;
|
|
461
|
-
};
|
|
462
|
-
description?: TypographyTokens & FontSizeTokens & {
|
|
463
|
-
color?: string;
|
|
464
|
-
};
|
|
465
|
-
actions?: {
|
|
466
|
-
gap?: string;
|
|
467
|
-
};
|
|
468
|
-
arrow?: {
|
|
469
|
-
size?: string;
|
|
470
|
-
background?: string;
|
|
471
|
-
borderColor?: string;
|
|
472
|
-
};
|
|
473
|
-
}
|
|
474
|
-
interface NavbarTokens extends TypographyTokens, ResolvedTokenMap {
|
|
475
|
-
container?: {
|
|
476
|
-
height?: string;
|
|
477
|
-
background?: string;
|
|
478
|
-
border?: string;
|
|
479
|
-
radius?: string;
|
|
480
|
-
iconColor?: string;
|
|
481
|
-
};
|
|
482
|
-
expanded?: {
|
|
483
|
-
background?: string;
|
|
484
|
-
};
|
|
485
|
-
content?: {
|
|
486
|
-
maxWidth?: string;
|
|
487
|
-
paddingX?: string;
|
|
488
|
-
gap?: string;
|
|
489
|
-
};
|
|
490
|
-
start?: {
|
|
491
|
-
gap?: string;
|
|
492
|
-
};
|
|
493
|
-
end?: {
|
|
494
|
-
gap?: string;
|
|
495
|
-
};
|
|
496
|
-
logo?: {
|
|
497
|
-
gap?: string;
|
|
498
|
-
};
|
|
499
|
-
motion?: {
|
|
500
|
-
duration?: string;
|
|
501
|
-
};
|
|
502
|
-
merchant?: TypographyTokens & {
|
|
503
|
-
color?: string;
|
|
504
|
-
fontSize?: string;
|
|
505
|
-
fontWeight?: string | number;
|
|
506
|
-
gap?: string;
|
|
507
|
-
triggerGap?: string;
|
|
508
|
-
paddingX?: string;
|
|
509
|
-
paddingY?: string;
|
|
510
|
-
};
|
|
511
|
-
user?: {
|
|
512
|
-
nameColor?: string;
|
|
513
|
-
roleColor?: string;
|
|
514
|
-
nameFontFamily?: string;
|
|
515
|
-
roleFontFamily?: string;
|
|
516
|
-
nameFontSize?: string;
|
|
517
|
-
roleFontSize?: string;
|
|
518
|
-
nameFontWeight?: string | number;
|
|
519
|
-
roleFontWeight?: string | number;
|
|
520
|
-
nameLineHeight?: string;
|
|
521
|
-
roleLineHeight?: string;
|
|
522
|
-
nameLetterSpacing?: string;
|
|
523
|
-
roleLetterSpacing?: string;
|
|
524
|
-
gap?: string;
|
|
525
|
-
paddingX?: string;
|
|
526
|
-
paddingY?: string;
|
|
527
|
-
triggerHover?: string;
|
|
528
|
-
focusColor?: string;
|
|
529
|
-
};
|
|
530
|
-
}
|
|
531
|
-
interface ModalDialogTokens extends TypographyTokens, ResolvedTokenMap {
|
|
532
|
-
overlay?: {
|
|
533
|
-
background?: string;
|
|
534
|
-
};
|
|
535
|
-
content?: {
|
|
536
|
-
background?: string;
|
|
537
|
-
radius?: string;
|
|
538
|
-
borderColor?: string;
|
|
539
|
-
width?: string;
|
|
540
|
-
maxWidth?: string;
|
|
541
|
-
maxHeight?: string;
|
|
542
|
-
padding?: string;
|
|
543
|
-
gap?: string;
|
|
544
|
-
};
|
|
545
|
-
header?: {
|
|
546
|
-
gap?: string;
|
|
547
|
-
};
|
|
548
|
-
footer?: {
|
|
549
|
-
gap?: string;
|
|
550
|
-
};
|
|
551
|
-
title?: TypographyTokens & FontSizeTokens & {
|
|
552
|
-
color?: string;
|
|
553
|
-
};
|
|
554
|
-
description?: TypographyTokens & FontSizeTokens & {
|
|
555
|
-
color?: string;
|
|
556
|
-
};
|
|
557
|
-
sizes?: Record<string, {
|
|
558
|
-
padding?: string;
|
|
559
|
-
gap?: string;
|
|
560
|
-
headerGap?: string;
|
|
561
|
-
footerGap?: string;
|
|
562
|
-
}>;
|
|
563
|
-
}
|
|
564
|
-
interface HeaderTokens extends ResolvedTokenMap {
|
|
565
|
-
container?: {
|
|
566
|
-
gapMobile?: string;
|
|
567
|
-
gapDesktop?: string;
|
|
568
|
-
minHeightMobile?: string;
|
|
569
|
-
minHeightDesktop?: string;
|
|
570
|
-
};
|
|
571
|
-
title?: TypographyTokens & FontSizeTokens & {
|
|
572
|
-
color?: string;
|
|
573
|
-
fontSizeMobile?: string;
|
|
574
|
-
fontSizeDesktop?: string;
|
|
575
|
-
};
|
|
576
|
-
description?: TypographyTokens & FontSizeTokens & {
|
|
577
|
-
color?: string;
|
|
578
|
-
fontSizeMobile?: string;
|
|
579
|
-
fontSizeDesktop?: string;
|
|
580
|
-
};
|
|
581
|
-
}
|
|
582
|
-
interface BreadcrumbTokens extends TypographyTokens, ResolvedTokenMap {
|
|
583
|
-
fontSize?: string;
|
|
584
|
-
gap?: string;
|
|
585
|
-
itemMinHeight?: string;
|
|
586
|
-
maxLabelLength?: string | number;
|
|
587
|
-
link?: {
|
|
588
|
-
default?: {
|
|
589
|
-
color?: string;
|
|
590
|
-
fontWeight?: string | number;
|
|
591
|
-
};
|
|
592
|
-
hover?: {
|
|
593
|
-
color?: string;
|
|
594
|
-
textDecoration?: string;
|
|
595
|
-
};
|
|
596
|
-
};
|
|
597
|
-
page?: {
|
|
598
|
-
color?: string;
|
|
599
|
-
fontWeight?: string | number;
|
|
600
|
-
};
|
|
601
|
-
separator?: {
|
|
602
|
-
color?: string;
|
|
603
|
-
size?: string;
|
|
604
|
-
};
|
|
605
|
-
}
|
|
606
|
-
interface DrawerTokens extends ResolvedTokenMap {
|
|
607
|
-
overlay?: {
|
|
608
|
-
background?: string;
|
|
609
|
-
opacity?: string | number;
|
|
610
|
-
backdropBlur?: string;
|
|
611
|
-
};
|
|
612
|
-
content?: ColorBundle & {
|
|
613
|
-
radius?: string;
|
|
614
|
-
shadow?: string;
|
|
615
|
-
maxHeight?: string;
|
|
616
|
-
};
|
|
617
|
-
title?: TypographyTokens & FontSizeTokens & {
|
|
618
|
-
color?: string;
|
|
619
|
-
};
|
|
620
|
-
description?: TypographyTokens & FontSizeTokens & {
|
|
621
|
-
color?: string;
|
|
622
|
-
};
|
|
623
|
-
}
|
|
624
|
-
interface IconTokens extends ResolvedTokenMap {
|
|
625
|
-
color?: string;
|
|
626
|
-
sizes?: Record<string, number | string>;
|
|
627
|
-
}
|
|
628
|
-
interface ModuleBoxTokens extends TypographyTokens, ResolvedTokenMap {
|
|
629
|
-
backgroundColor?: string;
|
|
630
|
-
borderColor?: string;
|
|
631
|
-
borderRadius?: string;
|
|
632
|
-
padding?: string;
|
|
633
|
-
gap?: string;
|
|
634
|
-
header?: {
|
|
635
|
-
gap?: string;
|
|
636
|
-
};
|
|
637
|
-
footer?: {
|
|
638
|
-
gap?: string;
|
|
639
|
-
};
|
|
640
|
-
slot?: {
|
|
641
|
-
background?: string;
|
|
642
|
-
border?: string;
|
|
643
|
-
borderRadius?: string;
|
|
644
|
-
padding?: string;
|
|
645
|
-
minHeight?: string;
|
|
646
|
-
color?: string;
|
|
647
|
-
};
|
|
648
|
-
title?: {
|
|
649
|
-
color?: string;
|
|
650
|
-
fontSize?: string;
|
|
651
|
-
fontWeight?: string | number;
|
|
652
|
-
fontStyle?: string;
|
|
653
|
-
fontFamily?: string;
|
|
654
|
-
};
|
|
655
|
-
}
|
|
656
|
-
interface PopoverTokens extends TypographyTokens, ResolvedTokenMap {
|
|
657
|
-
color?: string;
|
|
658
|
-
background?: string;
|
|
659
|
-
radius?: string;
|
|
660
|
-
border?: string;
|
|
661
|
-
shadow?: string;
|
|
662
|
-
padding?: string;
|
|
663
|
-
fontSize?: string;
|
|
664
|
-
fontWeight?: string | number;
|
|
665
|
-
zIndex?: string | number;
|
|
666
|
-
}
|
|
667
|
-
interface TooltipTokens extends TypographyTokens, ResolvedTokenMap {
|
|
668
|
-
color?: string;
|
|
669
|
-
background?: string;
|
|
670
|
-
radius?: string;
|
|
671
|
-
maxWidth?: string;
|
|
672
|
-
minHeight?: string;
|
|
673
|
-
gap?: string;
|
|
674
|
-
zIndex?: string | number;
|
|
675
|
-
paddingX?: string;
|
|
676
|
-
paddingY?: string;
|
|
677
|
-
fontSize?: string;
|
|
678
|
-
fontWeight?: string | number;
|
|
679
|
-
textAlign?: string;
|
|
680
|
-
caretColor?: string;
|
|
681
|
-
caretSize?: string | number;
|
|
682
|
-
}
|
|
683
|
-
interface FileUploadTokens extends TypographyTokens, ResolvedTokenMap {
|
|
684
|
-
container?: {
|
|
685
|
-
background?: string;
|
|
686
|
-
padding?: string;
|
|
687
|
-
radius?: string;
|
|
688
|
-
};
|
|
689
|
-
dropzone?: {
|
|
690
|
-
borderWidth?: string;
|
|
691
|
-
borderStyle?: string;
|
|
692
|
-
borderColor?: Record<string, string>;
|
|
693
|
-
gap?: string;
|
|
694
|
-
};
|
|
695
|
-
icon?: {
|
|
696
|
-
size?: string;
|
|
697
|
-
wrapperSize?: string;
|
|
698
|
-
color?: string;
|
|
699
|
-
wrapperBg?: string;
|
|
700
|
-
wrapperRadius?: string;
|
|
701
|
-
};
|
|
702
|
-
title?: FontSizeTokens & {
|
|
703
|
-
color?: string;
|
|
704
|
-
};
|
|
705
|
-
description?: FontSizeTokens & {
|
|
706
|
-
color?: string;
|
|
707
|
-
};
|
|
708
|
-
}
|
|
709
|
-
interface LoaderTokens extends TypographyTokens, ResolvedTokenMap {
|
|
710
|
-
color?: string;
|
|
711
|
-
sizes?: Record<string, {
|
|
712
|
-
spinnerSize?: string | number;
|
|
713
|
-
size?: string | number;
|
|
714
|
-
minWidth?: string;
|
|
715
|
-
maxWidth?: string;
|
|
716
|
-
minHeight?: string;
|
|
717
|
-
paddingX?: string;
|
|
718
|
-
paddingY?: string;
|
|
719
|
-
contentGap?: string;
|
|
720
|
-
textGap?: string;
|
|
721
|
-
labelFontSize?: string;
|
|
722
|
-
descriptionFontSize?: string;
|
|
723
|
-
labelFontWeight?: string | number;
|
|
724
|
-
descriptionFontWeight?: string | number;
|
|
725
|
-
labelColor?: string;
|
|
726
|
-
descriptionColor?: string;
|
|
727
|
-
}>;
|
|
728
|
-
variants?: Record<string, {
|
|
729
|
-
color?: string;
|
|
730
|
-
}>;
|
|
731
|
-
}
|
|
732
|
-
interface EmptyStateTokens extends TypographyTokens, ResolvedTokenMap {
|
|
733
|
-
container?: {
|
|
734
|
-
background?: string;
|
|
735
|
-
paddingY?: string;
|
|
736
|
-
paddingX?: string;
|
|
737
|
-
gap?: string;
|
|
738
|
-
};
|
|
739
|
-
content?: {
|
|
740
|
-
gap?: string;
|
|
741
|
-
};
|
|
742
|
-
text?: {
|
|
743
|
-
gap?: string;
|
|
744
|
-
};
|
|
745
|
-
actions?: {
|
|
746
|
-
gap?: string;
|
|
747
|
-
};
|
|
748
|
-
icon?: {
|
|
749
|
-
containerPadding?: string;
|
|
750
|
-
color?: string;
|
|
751
|
-
};
|
|
752
|
-
minWidth?: string;
|
|
753
|
-
maxWidth?: string;
|
|
754
|
-
iconSize?: string;
|
|
755
|
-
titleSize?: string;
|
|
756
|
-
descriptionSize?: string;
|
|
757
|
-
title?: {
|
|
758
|
-
color?: string;
|
|
759
|
-
fontWeight?: string | number;
|
|
760
|
-
};
|
|
761
|
-
description?: {
|
|
762
|
-
color?: string;
|
|
763
|
-
fontWeight?: string | number;
|
|
764
|
-
};
|
|
765
|
-
}
|
|
766
|
-
interface ProgressTokens extends TypographyTokens, ResolvedTokenMap {
|
|
767
|
-
track?: {
|
|
768
|
-
height?: string;
|
|
769
|
-
radius?: string;
|
|
770
|
-
background?: string;
|
|
771
|
-
};
|
|
772
|
-
indicator?: {
|
|
773
|
-
background?: string;
|
|
774
|
-
};
|
|
775
|
-
motion?: {
|
|
776
|
-
duration?: string;
|
|
777
|
-
easing?: string;
|
|
778
|
-
};
|
|
779
|
-
labelColor?: string;
|
|
780
|
-
labelFontSize?: string;
|
|
781
|
-
labelFontWeight?: string | number;
|
|
782
|
-
descriptionColor?: string;
|
|
783
|
-
descriptionFontSize?: string;
|
|
784
|
-
gap?: string;
|
|
785
|
-
}
|
|
786
|
-
interface BadgeTokens extends TypographyTokens, ResolvedTokenMap {
|
|
787
|
-
fontWeight?: string | number;
|
|
788
|
-
sizes?: Record<string, {
|
|
789
|
-
fontSize?: string;
|
|
790
|
-
height?: string;
|
|
791
|
-
padding?: string;
|
|
792
|
-
}>;
|
|
793
|
-
tones?: Record<string, ColorBundle>;
|
|
794
|
-
shapes?: Record<string, {
|
|
795
|
-
radius?: string;
|
|
796
|
-
}>;
|
|
797
|
-
}
|
|
798
|
-
interface AlertTokens extends TypographyTokens, ResolvedTokenMap {
|
|
799
|
-
base?: {
|
|
800
|
-
radius?: string;
|
|
801
|
-
lineHeight?: string;
|
|
802
|
-
letterSpacing?: string;
|
|
803
|
-
};
|
|
804
|
-
title?: TypographyTokens & FontSizeTokens & {
|
|
805
|
-
color?: string;
|
|
806
|
-
};
|
|
807
|
-
description?: TypographyTokens & FontSizeTokens & {
|
|
808
|
-
color?: string;
|
|
809
|
-
};
|
|
810
|
-
cta?: TypographyTokens & FontSizeTokens;
|
|
811
|
-
icon?: {
|
|
812
|
-
containerSize?: string;
|
|
813
|
-
containerRadius?: string;
|
|
814
|
-
};
|
|
815
|
-
close?: {
|
|
816
|
-
iconSize?: string;
|
|
817
|
-
};
|
|
818
|
-
sizes?: Record<string, {
|
|
819
|
-
paddingY?: string;
|
|
820
|
-
paddingX?: string;
|
|
821
|
-
gap?: string;
|
|
822
|
-
minHeight?: string;
|
|
823
|
-
titleMaxLines?: number;
|
|
824
|
-
descriptionMaxLines?: number;
|
|
825
|
-
}>;
|
|
826
|
-
tones?: Record<string, {
|
|
827
|
-
background?: string;
|
|
828
|
-
border?: string;
|
|
829
|
-
action?: string;
|
|
830
|
-
iconColor?: string;
|
|
831
|
-
iconBg?: string;
|
|
832
|
-
}>;
|
|
833
|
-
}
|
|
834
|
-
interface DropdownTokens extends TypographyTokens, ResolvedTokenMap {
|
|
835
|
-
background?: string;
|
|
836
|
-
color?: string;
|
|
837
|
-
fontSize?: string;
|
|
838
|
-
fontWeight?: string | number;
|
|
839
|
-
border?: string;
|
|
840
|
-
radius?: string;
|
|
841
|
-
shadow?: string;
|
|
842
|
-
item?: {
|
|
843
|
-
color?: string;
|
|
844
|
-
fontSize?: string;
|
|
845
|
-
fontWeight?: string | number;
|
|
846
|
-
background?: string;
|
|
847
|
-
hoverBackground?: string;
|
|
848
|
-
borderRadius?: string;
|
|
849
|
-
activeBackground?: string;
|
|
850
|
-
disabledOpacity?: string | number;
|
|
851
|
-
iconSize?: string;
|
|
852
|
-
iconColor?: string;
|
|
853
|
-
};
|
|
854
|
-
section?: {
|
|
855
|
-
separatorColor?: string;
|
|
856
|
-
};
|
|
857
|
-
}
|
|
858
|
-
interface TableTokens extends TypographyTokens, ResolvedTokenMap {
|
|
859
|
-
background?: string;
|
|
860
|
-
border?: string;
|
|
861
|
-
radius?: string;
|
|
862
|
-
shadow?: string;
|
|
863
|
-
headerBackground?: string;
|
|
864
|
-
headerTextColor?: string;
|
|
865
|
-
headerFontSize?: string;
|
|
866
|
-
headerFontWeight?: string | number;
|
|
867
|
-
rowHoverBackground?: string;
|
|
868
|
-
rowSelectedBackground?: string;
|
|
869
|
-
cellTextColor?: string;
|
|
870
|
-
cellFontSize?: string;
|
|
871
|
-
descriptionColor?: string;
|
|
872
|
-
descriptionFontSize?: string;
|
|
873
|
-
descriptionFontWeight?: string | number;
|
|
874
|
-
}
|
|
875
|
-
interface ChartsTokens extends TypographyTokens, ResolvedTokenMap {
|
|
876
|
-
height?: string | number;
|
|
877
|
-
backgroundColor?: string;
|
|
878
|
-
borderColor?: string;
|
|
879
|
-
borderRadius?: string;
|
|
880
|
-
padding?: string;
|
|
881
|
-
title?: FontSizeTokens & {
|
|
882
|
-
color?: string;
|
|
883
|
-
};
|
|
884
|
-
subtitle?: FontSizeTokens & {
|
|
885
|
-
color?: string;
|
|
886
|
-
};
|
|
887
|
-
grid?: {
|
|
888
|
-
color?: string;
|
|
889
|
-
dasharray?: string;
|
|
890
|
-
};
|
|
891
|
-
axis?: {
|
|
892
|
-
lineColor?: string;
|
|
893
|
-
labelColor?: string;
|
|
894
|
-
fontSize?: string;
|
|
895
|
-
};
|
|
896
|
-
baseline?: {
|
|
897
|
-
color?: string;
|
|
898
|
-
strokeWidth?: string | number;
|
|
899
|
-
dasharray?: string;
|
|
900
|
-
};
|
|
901
|
-
legend?: {
|
|
902
|
-
color?: string;
|
|
903
|
-
fontSize?: string;
|
|
904
|
-
fontWeight?: string | number;
|
|
905
|
-
dotSize?: string | number;
|
|
906
|
-
gap?: string;
|
|
907
|
-
};
|
|
908
|
-
tooltip?: {
|
|
909
|
-
background?: string;
|
|
910
|
-
borderColor?: string;
|
|
911
|
-
radius?: string;
|
|
912
|
-
titleColor?: string;
|
|
913
|
-
valueColor?: string;
|
|
914
|
-
titleFontSize?: string;
|
|
915
|
-
titleFontWeight?: string | number;
|
|
916
|
-
valueFontSize?: string;
|
|
917
|
-
valueFontWeight?: string | number;
|
|
918
|
-
};
|
|
919
|
-
palette?: string[];
|
|
920
|
-
line?: {
|
|
921
|
-
stroke?: string;
|
|
922
|
-
strokeWidth?: string | number;
|
|
923
|
-
areaFrom?: string;
|
|
924
|
-
areaTo?: string;
|
|
925
|
-
curveType?: string;
|
|
926
|
-
activeDotRadius?: number;
|
|
927
|
-
palette?: string[];
|
|
928
|
-
};
|
|
929
|
-
bar?: {
|
|
930
|
-
radius?: string | number;
|
|
931
|
-
gap?: string | number;
|
|
932
|
-
categoryGap?: string | number;
|
|
933
|
-
maxBarSize?: number;
|
|
934
|
-
palette?: string[];
|
|
935
|
-
};
|
|
936
|
-
pie?: {
|
|
937
|
-
innerRadius?: string | number;
|
|
938
|
-
outerRadius?: string | number;
|
|
939
|
-
paddingAngle?: number;
|
|
940
|
-
strokeColor?: string;
|
|
941
|
-
strokeWidth?: string | number;
|
|
942
|
-
palette?: string[];
|
|
943
|
-
};
|
|
944
|
-
donut?: {
|
|
945
|
-
innerRadius?: string | number;
|
|
946
|
-
outerRadius?: string | number;
|
|
947
|
-
centerValueColor?: string;
|
|
948
|
-
centerValueSize?: string;
|
|
949
|
-
centerValueWeight?: string | number;
|
|
950
|
-
centerLabelColor?: string;
|
|
951
|
-
centerLabelSize?: string;
|
|
952
|
-
centerLabelWeight?: string | number;
|
|
953
|
-
};
|
|
954
|
-
emptyState?: TypographyTokens & FontSizeTokens & {
|
|
955
|
-
color?: string;
|
|
956
|
-
};
|
|
957
|
-
}
|
|
958
|
-
interface AccordionTokens extends TypographyTokens, ResolvedTokenMap {
|
|
959
|
-
background?: string;
|
|
960
|
-
borderColor?: string;
|
|
961
|
-
radius?: string;
|
|
962
|
-
borderWidth?: string;
|
|
963
|
-
fontWeight?: string | number;
|
|
964
|
-
text?: {
|
|
965
|
-
title?: string;
|
|
966
|
-
content?: string;
|
|
967
|
-
icon?: string;
|
|
968
|
-
};
|
|
969
|
-
states?: {
|
|
970
|
-
hover?: {
|
|
971
|
-
text?: string;
|
|
972
|
-
};
|
|
973
|
-
focus?: {
|
|
974
|
-
borderColor?: string;
|
|
975
|
-
};
|
|
976
|
-
};
|
|
977
|
-
sizes?: Record<string, {
|
|
978
|
-
trigger?: FontSizeTokens;
|
|
979
|
-
}>;
|
|
980
|
-
}
|
|
981
|
-
interface AvatarTokens extends TypographyTokens, ResolvedTokenMap {
|
|
982
|
-
fontFamily?: string;
|
|
983
|
-
fallback?: {
|
|
984
|
-
background?: string;
|
|
985
|
-
color?: string;
|
|
986
|
-
fontWeight?: string | number;
|
|
987
|
-
};
|
|
988
|
-
shapes?: {
|
|
989
|
-
radius?: string;
|
|
990
|
-
};
|
|
991
|
-
sizes?: Record<string, {
|
|
992
|
-
size?: string;
|
|
993
|
-
border?: string;
|
|
994
|
-
fontSize?: string;
|
|
995
|
-
}>;
|
|
996
|
-
}
|
|
997
|
-
interface IntegrationCardTokens extends ResolvedTokenMap {
|
|
998
|
-
backgroundColor?: string;
|
|
999
|
-
borderColor?: string;
|
|
1000
|
-
borderRadius?: string;
|
|
1001
|
-
title?: {
|
|
1002
|
-
color?: string;
|
|
1003
|
-
};
|
|
1004
|
-
description?: {
|
|
1005
|
-
color?: string;
|
|
1006
|
-
};
|
|
1007
|
-
link?: {
|
|
1008
|
-
color?: string;
|
|
1009
|
-
};
|
|
1010
|
-
}
|
|
1011
|
-
interface PromoBannerTokens extends TypographyTokens, ResolvedTokenMap {
|
|
1012
|
-
background?: string;
|
|
1013
|
-
border?: string;
|
|
1014
|
-
iconBg?: string;
|
|
1015
|
-
iconColor?: string;
|
|
1016
|
-
action?: string;
|
|
1017
|
-
borderRadius?: string;
|
|
1018
|
-
padding?: string;
|
|
1019
|
-
imageBg?: string;
|
|
1020
|
-
imageRadius?: string;
|
|
1021
|
-
title?: TypographyTokens & FontSizeTokens & {
|
|
1022
|
-
color?: string;
|
|
1023
|
-
};
|
|
1024
|
-
description?: TypographyTokens & FontSizeTokens & {
|
|
1025
|
-
color?: string;
|
|
1026
|
-
};
|
|
1027
|
-
variants?: Record<string, {
|
|
1028
|
-
background?: string;
|
|
1029
|
-
border?: string;
|
|
1030
|
-
iconBg?: string;
|
|
1031
|
-
iconColor?: string;
|
|
1032
|
-
action?: string;
|
|
1033
|
-
borderRadius?: string;
|
|
1034
|
-
padding?: string;
|
|
1035
|
-
imageBg?: string;
|
|
1036
|
-
imageRadius?: string;
|
|
1037
|
-
}>;
|
|
1038
|
-
}
|
|
1039
|
-
interface DragSliderTokens extends ResolvedTokenMap {
|
|
1040
|
-
gap?: string;
|
|
1041
|
-
cursorGrab?: string;
|
|
1042
|
-
cursorGrabbing?: string;
|
|
1043
|
-
}
|
|
1044
|
-
interface CardTokens extends ResolvedTokenMap {
|
|
1045
|
-
backgroundColor?: string;
|
|
1046
|
-
borderColor?: string;
|
|
1047
|
-
color?: string;
|
|
1048
|
-
borderRadius?: string;
|
|
1049
|
-
padding?: string;
|
|
1050
|
-
title?: {
|
|
1051
|
-
fontSize?: string;
|
|
1052
|
-
fontWeight?: string | number;
|
|
1053
|
-
letterSpacing?: string;
|
|
1054
|
-
lineHeight?: string;
|
|
1055
|
-
};
|
|
1056
|
-
}
|
|
1057
|
-
interface BannerTokens extends ResolvedTokenMap {
|
|
1058
|
-
tones?: Record<string, {
|
|
1059
|
-
background?: string;
|
|
1060
|
-
border?: string;
|
|
1061
|
-
text?: string;
|
|
1062
|
-
iconBg?: string;
|
|
1063
|
-
iconColor?: string;
|
|
1064
|
-
action?: string;
|
|
1065
|
-
}>;
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
type ButtonProps = React$1.ComponentProps<'button'> & {
|
|
1069
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1070
|
-
variant?: 'primary' | 'secondary' | 'tertiary' | 'neutral';
|
|
1071
|
-
size?: 'small' | 'medium' | 'large' | 'icon' | 'icon-small' | 'icon-large';
|
|
1072
|
-
asChild?: boolean;
|
|
1073
|
-
textPaddingX?: string | number;
|
|
1074
|
-
startIcon?: React$1.ReactNode;
|
|
1075
|
-
endIcon?: React$1.ReactNode;
|
|
1076
|
-
loading?: boolean;
|
|
1077
|
-
loadingLabel?: React$1.ReactNode;
|
|
1078
|
-
};
|
|
1079
|
-
declare const buttonBaseClasses: (props?: ({
|
|
1080
|
-
variant?: "primary" | "secondary" | "tertiary" | "neutral" | null | undefined;
|
|
1081
|
-
size?: "icon" | "sm" | "md" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
1082
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1083
|
-
declare function Button({ className, variant, size, asChild, tokens, textPaddingX, startIcon, endIcon, loading, loadingLabel, style, children, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
1084
|
-
|
|
1085
|
-
type AvatarSize = 'sm' | 'md' | 'lg';
|
|
1086
|
-
type AvatarProps = React$1.ComponentProps<typeof AvatarPrimitive.Root> & {
|
|
1087
|
-
size?: AvatarSize;
|
|
1088
|
-
src?: string;
|
|
1089
|
-
alt?: string;
|
|
1090
|
-
fallback?: React$1.ReactNode;
|
|
1091
|
-
name?: string;
|
|
1092
|
-
imageClassName?: string;
|
|
1093
|
-
fallbackClassName?: string;
|
|
1094
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1095
|
-
asChild?: boolean;
|
|
1096
|
-
};
|
|
1097
|
-
declare function Avatar({ className, size, src, alt, fallback, name, imageClassName, fallbackClassName, tokens, asChild, style, children, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
|
|
1098
|
-
declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime.JSX.Element;
|
|
1099
|
-
declare function AvatarFallback({ className, ...props }: React$1.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime.JSX.Element;
|
|
1100
|
-
|
|
1101
|
-
type ListItemStatus = {
|
|
1102
|
-
label: string;
|
|
1103
|
-
variant?: 'default' | 'secondary' | 'destructive' | 'outline';
|
|
1104
|
-
};
|
|
1105
|
-
type ListItemProps = {
|
|
1106
|
-
id: string;
|
|
1107
|
-
/** Texto superior (ej: fecha) */
|
|
1108
|
-
overline?: string;
|
|
1109
|
-
/** Título principal */
|
|
1110
|
-
title: string;
|
|
1111
|
-
/** Subtítulo opcional */
|
|
1112
|
-
subtitle?: string;
|
|
1113
|
-
/** Valor alineado a la derecha */
|
|
1114
|
-
amount?: string;
|
|
1115
|
-
/** Estado opcional (badge) */
|
|
1116
|
-
status?: ListItemStatus;
|
|
1117
|
-
/** Click del item completo */
|
|
1118
|
-
onItemClick?: (id: string) => void;
|
|
1119
|
-
/** Clases extra */
|
|
1120
|
-
className?: string;
|
|
1121
|
-
};
|
|
1122
|
-
declare function ListItem({ id, overline, title, subtitle, amount, status, onItemClick, className, }: ListItemProps): react_jsx_runtime.JSX.Element;
|
|
1123
|
-
|
|
1124
|
-
declare function Table({ className, tokens, ...props }: React$1.ComponentProps<'table'> & {
|
|
1125
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1126
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1127
|
-
declare function TableHeader(props: React$1.ComponentProps<'thead'>): react_jsx_runtime.JSX.Element;
|
|
1128
|
-
declare function TableBody(props: React$1.ComponentProps<'tbody'>): react_jsx_runtime.JSX.Element;
|
|
1129
|
-
declare function TableRow(props: React$1.ComponentProps<'tr'>): react_jsx_runtime.JSX.Element;
|
|
1130
|
-
declare function TableHead(props: React$1.ComponentProps<'th'>): react_jsx_runtime.JSX.Element;
|
|
1131
|
-
declare function TableCell(props: React$1.ComponentProps<'td'>): react_jsx_runtime.JSX.Element;
|
|
1132
|
-
declare function TableCellDescription({ className, ...props }: React$1.ComponentProps<'p'>): react_jsx_runtime.JSX.Element;
|
|
1133
|
-
declare function TableFooter({ children, className, ...props }: React$1.ComponentProps<'tfoot'>): react_jsx_runtime.JSX.Element;
|
|
1134
|
-
declare function TableCaption(props: React$1.ComponentProps<'caption'>): react_jsx_runtime.JSX.Element;
|
|
1135
|
-
|
|
1136
|
-
interface DropdownItemProps {
|
|
1137
|
-
iconLeft?: React$1.ReactNode;
|
|
1138
|
-
iconRight?: React$1.ReactNode;
|
|
1139
|
-
selected?: boolean;
|
|
1140
|
-
disabled?: boolean;
|
|
1141
|
-
destructive?: boolean;
|
|
1142
|
-
}
|
|
1143
|
-
type ThemedProps = {
|
|
1144
|
-
variant?: string;
|
|
1145
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1146
|
-
};
|
|
1147
|
-
declare function DropdownMenu(props: React$1.ComponentProps<typeof DropdownMenuPrimitive.Root> & {
|
|
1148
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1149
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1150
|
-
declare function DropdownMenuPortal(props: React$1.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
1151
|
-
declare function DropdownMenuTrigger(props: React$1.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
1152
|
-
declare function DropdownMenuContent({ className, sideOffset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Content> & ThemedProps): react_jsx_runtime.JSX.Element | null;
|
|
1153
|
-
declare function DropdownMenuGroup(props: React$1.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
1154
|
-
declare function DropdownMenuItem({ className, iconLeft, iconRight, selected, destructive, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Item> & DropdownItemProps): react_jsx_runtime.JSX.Element;
|
|
1155
|
-
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
1156
|
-
declare function DropdownMenuRadioGroup(props: React$1.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
1157
|
-
declare function DropdownMenuRadioItem({ className, children, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
1158
|
-
declare function DropdownMenuLabel({ className, inset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
1159
|
-
inset?: boolean;
|
|
1160
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1161
|
-
declare function DropdownMenuSeparator(props: React$1.ComponentProps<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
1162
|
-
declare function DropdownMenuShortcut(props: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
1163
|
-
declare function DropdownMenuSub(props: React$1.ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
1164
|
-
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
1165
|
-
inset?: boolean;
|
|
1166
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1167
|
-
declare function DropdownMenuSubContent({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
1168
|
-
|
|
1169
|
-
declare function Popover({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
1170
|
-
declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
1171
|
-
declare function PopoverContent({ className, align, sideOffset, tokens, style, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content> & {
|
|
1172
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1173
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1174
|
-
declare function PopoverAnchor({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime.JSX.Element;
|
|
1175
|
-
|
|
1176
|
-
declare function TooltipProvider({ delayDuration, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
|
|
1177
|
-
declare function Tooltip({ tokens, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root> & {
|
|
1178
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1179
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1180
|
-
declare function TooltipTrigger({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
1181
|
-
declare function TooltipContent({ className, sideOffset, tokens, children, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Content> & {
|
|
1182
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1183
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1184
|
-
|
|
1185
|
-
declare const alertVariants: (props?: ({
|
|
1186
|
-
size?: "inline" | "full-width" | "stacked" | null | undefined;
|
|
1187
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1188
|
-
type AlertTone = 'success' | 'warning' | 'error' | 'info';
|
|
1189
|
-
interface AlertProps extends Omit<React$1.ComponentProps<'div'>, 'title'>, VariantProps<typeof alertVariants> {
|
|
1190
|
-
tone?: AlertTone;
|
|
1191
|
-
icon: React$1.ReactNode;
|
|
1192
|
-
title: React$1.ReactNode;
|
|
1193
|
-
description: React$1.ReactNode;
|
|
1194
|
-
subtitle?: React$1.ReactNode;
|
|
1195
|
-
ctaLabel?: React$1.ReactNode;
|
|
1196
|
-
ctaHref?: string;
|
|
1197
|
-
ctaTarget?: React$1.HTMLAttributeAnchorTarget;
|
|
1198
|
-
onCtaClick?: () => void;
|
|
1199
|
-
closeLabel?: string;
|
|
1200
|
-
label?: React$1.ReactNode;
|
|
1201
|
-
onClose?: () => void;
|
|
1202
|
-
titleMaxLines?: number;
|
|
1203
|
-
descriptionMaxLines?: number;
|
|
1204
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1205
|
-
}
|
|
1206
|
-
declare function Alert({ className, style, size, tone, icon, title, description, subtitle, ctaLabel, ctaHref, ctaTarget, onCtaClick, closeLabel, label, onClose, titleMaxLines, descriptionMaxLines, tokens, ...props }: AlertProps): react_jsx_runtime.JSX.Element;
|
|
1207
|
-
|
|
1208
|
-
type BadgeTone = 'neutral' | 'brand' | 'success' | 'info' | 'warning' | 'error';
|
|
1209
|
-
type BadgeSize = 'small' | 'medium' | 'large';
|
|
1210
|
-
type BadgeShape = 'rounded' | 'square';
|
|
1211
|
-
declare function Badge({ className, tone, size, shape, asChild, tokens, style, ...props }: React$1.ComponentProps<'span'> & {
|
|
1212
|
-
children: React$1.ReactNode;
|
|
1213
|
-
tone?: BadgeTone;
|
|
1214
|
-
size?: BadgeSize;
|
|
1215
|
-
shape?: BadgeShape;
|
|
1216
|
-
asChild?: boolean;
|
|
1217
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1218
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1219
|
-
|
|
1220
|
-
type EmptyStateProps = {
|
|
1221
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1222
|
-
icon?: React$1.ReactNode;
|
|
1223
|
-
title: React$1.ReactNode;
|
|
1224
|
-
description?: React$1.ReactNode;
|
|
1225
|
-
actions?: React$1.ReactNode;
|
|
1226
|
-
align?: 'center' | 'left';
|
|
1227
|
-
size?: 'small' | 'medium';
|
|
1228
|
-
className?: string;
|
|
1229
|
-
};
|
|
1230
|
-
declare function EmptyState({ icon, title, description, actions, align, className, size, tokens, }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
1231
|
-
|
|
1232
|
-
type FeedbackSize = 'small' | 'medium';
|
|
1233
|
-
type FeedbackProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
1234
|
-
title?: string;
|
|
1235
|
-
description?: string;
|
|
1236
|
-
img?: string;
|
|
1237
|
-
imgAlt?: string;
|
|
1238
|
-
btnPrimary?: string;
|
|
1239
|
-
btnSecondary?: string;
|
|
1240
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1241
|
-
size: FeedbackSize;
|
|
1242
|
-
onClickPrimary: () => void;
|
|
1243
|
-
onClickSecondary: () => void;
|
|
1244
|
-
};
|
|
1245
|
-
declare const Feedback: ({ size, tokens, title, imgAlt, description, img, btnPrimary, btnSecondary, onClickPrimary, onClickSecondary, ...props }: FeedbackProps) => react_jsx_runtime.JSX.Element;
|
|
1246
|
-
|
|
1247
|
-
type FileUploadState = 'default' | 'drag' | 'error' | 'disabled';
|
|
1248
|
-
type FileUploadProps = {
|
|
1249
|
-
accept?: string[];
|
|
1250
|
-
maxSizeMB?: number;
|
|
1251
|
-
multiple?: boolean;
|
|
1252
|
-
title?: string;
|
|
1253
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1254
|
-
description?: string;
|
|
1255
|
-
buttonLabel?: string;
|
|
1256
|
-
icon?: React$1.ReactNode;
|
|
1257
|
-
state?: FileUploadState;
|
|
1258
|
-
className?: string;
|
|
1259
|
-
isDragging?: boolean;
|
|
1260
|
-
onFilesChange?: (files: File[]) => void;
|
|
1261
|
-
onError?: (errors: string[]) => void;
|
|
1262
|
-
actions?: React$1.ReactNode;
|
|
1263
|
-
};
|
|
1264
|
-
declare function FileUpload({ accept, maxSizeMB, multiple, title, description, buttonLabel, icon, state, className, actions, tokens, onFilesChange, onError, }: FileUploadProps): react_jsx_runtime.JSX.Element;
|
|
1265
|
-
|
|
1266
|
-
type LoaderSize = 'small' | 'medium' | 'large' | 'extraLarge';
|
|
1267
|
-
type LoaderVariant = 'default' | 'primary';
|
|
1268
|
-
type LoaderProps = React$1.ComponentProps<'div'> & {
|
|
1269
|
-
size?: LoaderSize;
|
|
1270
|
-
variant?: LoaderVariant;
|
|
1271
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1272
|
-
label?: string;
|
|
1273
|
-
description?: React$1.ReactNode;
|
|
1274
|
-
spinnerClassName?: string;
|
|
1275
|
-
spinnerProps?: Omit<React$1.ComponentProps<typeof Loader2Icon>, 'size'>;
|
|
1276
|
-
};
|
|
1277
|
-
declare function Loader({ className, style, size, variant, tokens, label, description, spinnerClassName, spinnerProps, ...props }: LoaderProps): react_jsx_runtime.JSX.Element;
|
|
1278
|
-
|
|
1279
|
-
type ProgressProps = React$1.ComponentProps<typeof ProgressPrimitive.Root> & {
|
|
1280
|
-
value: number;
|
|
1281
|
-
label?: string;
|
|
1282
|
-
showValue?: boolean;
|
|
1283
|
-
description?: string;
|
|
1284
|
-
icon?: React$1.ReactNode;
|
|
1285
|
-
variant?: string;
|
|
1286
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1287
|
-
};
|
|
1288
|
-
declare function Progress({ className, style, value, label, showValue, description, icon, variant, tokens, ...props }: ProgressProps): react_jsx_runtime.JSX.Element;
|
|
1289
|
-
|
|
1290
|
-
type Variant = 'primary' | 'secondary' | 'tertiary';
|
|
1291
|
-
type Orientation = 'horizontal' | 'vertical';
|
|
1292
|
-
type ImagePosition = 'left' | 'right' | 'top' | 'bottom';
|
|
1293
|
-
type ContentAlign = 'left' | 'center';
|
|
1294
|
-
type ImageDisplay = 'inline' | 'background';
|
|
1295
|
-
type HeroContentPosition = 'top' | 'center' | 'between' | 'bottom';
|
|
1296
|
-
declare const bannerVariants: (props?: ({
|
|
1297
|
-
size?: "compact" | "full" | null | undefined;
|
|
1298
|
-
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
1299
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1300
|
-
type BannerProps = React$1.ComponentProps<'div'> & VariantProps<typeof bannerVariants> & {
|
|
1301
|
-
asChild?: boolean;
|
|
1302
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1303
|
-
variant?: Variant;
|
|
1304
|
-
orientation?: Orientation;
|
|
1305
|
-
imagePosition?: ImagePosition;
|
|
1306
|
-
contentAlign?: ContentAlign;
|
|
1307
|
-
imageDisplay?: ImageDisplay;
|
|
1308
|
-
heroContentPosition?: HeroContentPosition;
|
|
1309
|
-
heroMinHeight?: string;
|
|
1310
|
-
heroOverlay?: string;
|
|
1311
|
-
title: React$1.ReactNode;
|
|
1312
|
-
description?: React$1.ReactNode;
|
|
1313
|
-
cta?: React$1.ReactNode;
|
|
1314
|
-
imageSrc: string;
|
|
1315
|
-
imageAlt?: string;
|
|
1316
|
-
icon?: React$1.ReactNode;
|
|
1317
|
-
endSlot?: React$1.ReactNode;
|
|
1318
|
-
};
|
|
1319
|
-
declare function Banner({ className, asChild, tokens, variant, size, orientation, imagePosition, contentAlign, imageDisplay, heroContentPosition, heroMinHeight, heroOverlay, title, description, cta, imageSrc, imageAlt, icon, endSlot, ...props }: BannerProps): react_jsx_runtime.JSX.Element;
|
|
1320
|
-
|
|
1321
|
-
type CardProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1322
|
-
title?: React$1.ReactNode;
|
|
1323
|
-
action?: React$1.ReactNode;
|
|
1324
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1325
|
-
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
1326
|
-
width?: number | string;
|
|
1327
|
-
};
|
|
1328
|
-
declare function Card({ className, title, action, tokens, variant, width, children, style, ...props }: CardProps): react_jsx_runtime.JSX.Element;
|
|
1329
|
-
|
|
1330
|
-
type DragSliderProps = {
|
|
1331
|
-
children: React$1.ReactNode;
|
|
1332
|
-
className?: string;
|
|
1333
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1334
|
-
};
|
|
1335
|
-
declare function DragSlider({ children, className, tokens: customTokens, }: DragSliderProps): react_jsx_runtime.JSX.Element;
|
|
1336
|
-
|
|
1337
|
-
declare const integrationCardVariants: (props?: ({
|
|
1338
|
-
variant?: "default" | "none" | "subtle" | null | undefined;
|
|
1339
|
-
logoSize?: "small" | "large" | null | undefined;
|
|
1340
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1341
|
-
|
|
1342
|
-
type IntegrationCardProps = React$1.ComponentProps<'div'> & VariantProps<typeof integrationCardVariants> & {
|
|
1343
|
-
asChild?: boolean;
|
|
1344
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1345
|
-
badgeText?: React$1.ReactNode;
|
|
1346
|
-
logoSlot?: React$1.ReactNode;
|
|
1347
|
-
logoSrc?: string;
|
|
1348
|
-
logoAlt?: string;
|
|
1349
|
-
initials?: React$1.ReactNode;
|
|
1350
|
-
bannerClassName?: string;
|
|
1351
|
-
title: React$1.ReactNode;
|
|
1352
|
-
description?: React$1.ReactNode;
|
|
1353
|
-
linkLabel?: React$1.ReactNode;
|
|
1354
|
-
linkHref?: string;
|
|
1355
|
-
onLinkClick?: () => void;
|
|
1356
|
-
logoClassName?: string;
|
|
1357
|
-
badgeClassName?: string;
|
|
1358
|
-
contentClassName?: string;
|
|
1359
|
-
linkClassName?: string;
|
|
1360
|
-
};
|
|
1361
|
-
declare function IntegrationCard({ className, variant, logoSize, asChild, tokens, badgeText, logoSlot, logoSrc, logoAlt, initials, bannerClassName, title, description, linkLabel, linkHref, onLinkClick, logoClassName, badgeClassName, contentClassName, linkClassName, style, ...props }: IntegrationCardProps): react_jsx_runtime.JSX.Element;
|
|
1362
|
-
|
|
1363
|
-
interface ColorExampleProps {
|
|
1364
|
-
className?: string;
|
|
1365
|
-
colorToken: string;
|
|
1366
|
-
colorName: string;
|
|
1367
|
-
}
|
|
1368
|
-
declare function ColorExample({ className, colorToken, colorName }: ColorExampleProps): react_jsx_runtime.JSX.Element;
|
|
1369
|
-
|
|
1370
|
-
declare const accordionTriggerVariants: (props?: ({
|
|
1371
|
-
size?: "sm" | "md" | null | undefined;
|
|
1372
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1373
|
-
declare const accordionContentVariants: (props?: ({
|
|
1374
|
-
size?: "sm" | "md" | null | undefined;
|
|
1375
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1376
|
-
|
|
1377
|
-
declare function Accordion({ size, tokens, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root> & {
|
|
1378
|
-
size?: 'sm' | 'md';
|
|
1379
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1380
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1381
|
-
declare function AccordionItem({ className, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
1382
|
-
declare function AccordionTrigger({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Trigger> & {
|
|
1383
|
-
size?: 'sm' | 'md';
|
|
1384
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1385
|
-
declare function AccordionContent({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Content> & {
|
|
1386
|
-
size?: 'sm' | 'md';
|
|
1387
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1388
|
-
|
|
1389
|
-
type ExpansionPanelStatus = 'incomplete' | 'complete' | 'blocked';
|
|
1390
|
-
type ExpansionPanelSize = 'small' | 'medium';
|
|
1391
|
-
type ExpansionPanelProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
1392
|
-
title?: string;
|
|
1393
|
-
description?: string;
|
|
1394
|
-
btnLabel?: string;
|
|
1395
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1396
|
-
size: ExpansionPanelSize;
|
|
1397
|
-
status: ExpansionPanelStatus;
|
|
1398
|
-
children?: React.ReactNode;
|
|
1399
|
-
isDisabled?: boolean;
|
|
1400
|
-
onSubmit: () => void;
|
|
1401
|
-
};
|
|
1402
|
-
declare const ExpansionPanel: ({ size, title, description, btnLabel, tokens, status, children, isDisabled, onSubmit, ...props }: ExpansionPanelProps) => react_jsx_runtime.JSX.Element;
|
|
1403
|
-
|
|
1404
|
-
type ModuleBoxProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1405
|
-
title?: React$1.ReactNode;
|
|
1406
|
-
headerActions?: React$1.ReactNode;
|
|
1407
|
-
footerActions?: React$1.ReactNode;
|
|
1408
|
-
slotPlaceholder?: React$1.ReactNode;
|
|
1409
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1410
|
-
headerClassName?: string;
|
|
1411
|
-
slotClassName?: string;
|
|
1412
|
-
footerClassName?: string;
|
|
1413
|
-
};
|
|
1414
|
-
declare function ModuleBox({ className, title, headerActions, footerActions, slotPlaceholder, tokens, headerClassName, slotClassName, footerClassName, children, style, ...props }: ModuleBoxProps): react_jsx_runtime.JSX.Element;
|
|
1415
|
-
|
|
1416
|
-
type ChartType = 'bar' | 'line' | 'donut' | 'pie';
|
|
1417
|
-
type ChartDatum = {
|
|
1418
|
-
label: string;
|
|
1419
|
-
value: number;
|
|
1420
|
-
color?: string;
|
|
1421
|
-
[key: string]: string | number | undefined;
|
|
1422
|
-
};
|
|
1423
|
-
type ChartsProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1424
|
-
type?: ChartType;
|
|
1425
|
-
data: ChartDatum[];
|
|
1426
|
-
title?: React$1.ReactNode;
|
|
1427
|
-
subtitle?: React$1.ReactNode;
|
|
1428
|
-
showLegend?: boolean;
|
|
1429
|
-
showGrid?: boolean;
|
|
1430
|
-
showBaseline?: boolean;
|
|
1431
|
-
showXAxis?: boolean;
|
|
1432
|
-
showYAxis?: boolean;
|
|
1433
|
-
showTooltip?: boolean;
|
|
1434
|
-
height?: number;
|
|
1435
|
-
donutCenterValue?: React$1.ReactNode;
|
|
1436
|
-
donutCenterLabel?: React$1.ReactNode;
|
|
1437
|
-
legendTitle?: React$1.ReactNode;
|
|
1438
|
-
valueFormatter?: (value: number) => string;
|
|
1439
|
-
xDataKey?: string;
|
|
1440
|
-
yDataKey?: string;
|
|
1441
|
-
nameKey?: string;
|
|
1442
|
-
showLineArea?: boolean;
|
|
1443
|
-
emptyStateLabel?: React$1.ReactNode;
|
|
1444
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1445
|
-
};
|
|
1446
|
-
declare function Charts({ className, type, data, title, subtitle, showLegend, showGrid, showBaseline, showXAxis, showYAxis, showTooltip, height, donutCenterValue, donutCenterLabel, legendTitle, valueFormatter, xDataKey, yDataKey, nameKey, showLineArea, emptyStateLabel, tokens, style, ...props }: ChartsProps): react_jsx_runtime.JSX.Element;
|
|
1447
|
-
|
|
1448
|
-
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, tokens, formatters, components, ...props }: React$1.ComponentProps<typeof DayPicker> & {
|
|
1449
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1450
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1451
|
-
|
|
1452
|
-
interface ComboboxItem {
|
|
1453
|
-
label: string;
|
|
1454
|
-
value: string;
|
|
1455
|
-
}
|
|
1456
|
-
interface ComboboxProps {
|
|
1457
|
-
value?: string;
|
|
1458
|
-
onValueChange?: (value: string) => void;
|
|
1459
|
-
placeholder?: string;
|
|
1460
|
-
items: ComboboxItem[];
|
|
1461
|
-
label?: string;
|
|
1462
|
-
size?: 'small' | 'medium';
|
|
1463
|
-
disabled?: boolean;
|
|
1464
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1465
|
-
className?: string;
|
|
1466
|
-
error?: boolean;
|
|
1467
|
-
/** Controlled open state. When omitted the component manages its own state. */
|
|
1468
|
-
open?: boolean;
|
|
1469
|
-
/** Called when the popover open state changes (controlled or uncontrolled). */
|
|
1470
|
-
onOpenChange?: (open: boolean) => void;
|
|
1471
|
-
/** Whether to close the popover after selecting an item. @default true */
|
|
1472
|
-
closeOnSelect?: boolean;
|
|
1473
|
-
/** Placeholder for the search input inside the dropdown. @default "Buscar..." */
|
|
1474
|
-
searchPlaceholder?: string;
|
|
1475
|
-
/** Ref forwarded to the inner search `<input>`. Consumers can use it to manage focus. */
|
|
1476
|
-
searchRef?: React$1.Ref<HTMLInputElement>;
|
|
1477
|
-
}
|
|
1478
|
-
declare function Combobox({ value, onValueChange, placeholder, items, label, size, error, disabled, tokens, className, open: openProp, onOpenChange, closeOnSelect, searchPlaceholder, searchRef, }: ComboboxProps): react_jsx_runtime.JSX.Element;
|
|
1479
|
-
|
|
1480
|
-
interface DatePickerInputProps extends Omit<React$1.ComponentProps<'input'>, 'size' | 'type'> {
|
|
1481
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1482
|
-
size?: 'small' | 'medium';
|
|
1483
|
-
label?: string;
|
|
1484
|
-
helperText?: string;
|
|
1485
|
-
error?: boolean;
|
|
1486
|
-
}
|
|
1487
|
-
declare function DatePickerInput({ className, size, label, helperText, error, disabled, tokens, style, ...props }: DatePickerInputProps): react_jsx_runtime.JSX.Element;
|
|
1488
|
-
|
|
1489
|
-
interface InputProps extends Omit<React$1.ComponentProps<'input'>, 'size'> {
|
|
1490
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1491
|
-
size?: 'small' | 'medium';
|
|
1492
|
-
label?: string;
|
|
1493
|
-
helperText?: string;
|
|
1494
|
-
error?: boolean;
|
|
1495
|
-
}
|
|
1496
|
-
declare function Input({ className, type, size, label, helperText, error, disabled, tokens, style, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
|
1497
|
-
|
|
1498
|
-
interface LabelProps extends React$1.ComponentProps<typeof LabelPrimitive.Root> {
|
|
1499
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1500
|
-
}
|
|
1501
|
-
declare function Label({ className, tokens, style, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
|
|
1502
|
-
|
|
1503
|
-
interface PasswordInputProps extends Omit<React$1.ComponentProps<'input'>, 'size' | 'type'> {
|
|
1504
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1505
|
-
size?: 'small' | 'medium';
|
|
1506
|
-
label?: string;
|
|
1507
|
-
helperText?: string;
|
|
1508
|
-
error?: boolean;
|
|
1509
|
-
}
|
|
1510
|
-
declare function PasswordInput({ className, size, label, helperText, error, disabled, tokens, style, ...props }: PasswordInputProps): react_jsx_runtime.JSX.Element;
|
|
1511
|
-
|
|
1512
|
-
interface SearchBarProps extends Omit<React$1.ComponentProps<'input'>, 'size' | 'type'> {
|
|
1513
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1514
|
-
size?: 'small' | 'medium';
|
|
1515
|
-
label?: string;
|
|
1516
|
-
helperText?: string;
|
|
1517
|
-
error?: boolean;
|
|
1518
|
-
}
|
|
1519
|
-
declare function SearchBar({ className, size, disabled, tokens, error, style, ...props }: SearchBarProps): react_jsx_runtime.JSX.Element;
|
|
1520
|
-
|
|
1521
|
-
interface SelectItem {
|
|
1522
|
-
label: string;
|
|
1523
|
-
value: string;
|
|
1524
|
-
}
|
|
1525
|
-
interface SelectProps {
|
|
1526
|
-
value?: string;
|
|
1527
|
-
onValueChange?: (value: string) => void;
|
|
1528
|
-
placeholder?: string;
|
|
1529
|
-
items: SelectItem[];
|
|
1530
|
-
label?: string;
|
|
1531
|
-
size?: 'small' | 'medium';
|
|
1532
|
-
disabled?: boolean;
|
|
1533
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1534
|
-
className?: string;
|
|
1535
|
-
error?: boolean;
|
|
1536
|
-
/** Controlled open state. When omitted the component manages its own state. */
|
|
1537
|
-
open?: boolean;
|
|
1538
|
-
/** Called when the popover open state changes (controlled or uncontrolled). */
|
|
1539
|
-
onOpenChange?: (open: boolean) => void;
|
|
1540
|
-
/** Whether to close the popover after selecting an item. @default true */
|
|
1541
|
-
closeOnSelect?: boolean;
|
|
1542
|
-
/** Enables a search input inside the dropdown to filter items. @default false */
|
|
1543
|
-
searchable?: boolean;
|
|
1544
|
-
/** Placeholder for the search input (only when searchable is true). @default "Buscar..." */
|
|
1545
|
-
searchPlaceholder?: string;
|
|
1546
|
-
/** Ref forwarded to the search input. Consumers can use it to manage focus. */
|
|
1547
|
-
searchRef?: React$1.Ref<HTMLInputElement>;
|
|
1548
|
-
}
|
|
1549
|
-
declare function Select({ value, onValueChange, placeholder, items, label, size, error, disabled, tokens, className, open: openProp, onOpenChange, closeOnSelect, searchable, searchPlaceholder, searchRef, }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
1550
|
-
|
|
1551
|
-
interface TextareaProps extends Omit<React$1.ComponentProps<'textarea'>, 'size'> {
|
|
1552
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1553
|
-
size?: 'small' | 'medium';
|
|
1554
|
-
label?: string;
|
|
1555
|
-
helperText?: string;
|
|
1556
|
-
error?: boolean;
|
|
1557
|
-
}
|
|
1558
|
-
declare function Textarea({ className, style, tokens, size, label, helperText, error, disabled, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
|
|
1559
|
-
|
|
1560
|
-
interface CheckboxProps extends React$1.ComponentProps<typeof CheckboxPrimitive.Root> {
|
|
1561
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1562
|
-
size?: 'regular' | 'small' | 'extraSmall';
|
|
1563
|
-
tone?: 'brand' | 'neutral' | 'destructive';
|
|
1564
|
-
label?: string;
|
|
1565
|
-
description?: string;
|
|
1566
|
-
disabled?: boolean;
|
|
1567
|
-
}
|
|
1568
|
-
declare function Checkbox({ className, tokens, size, tone, label, description, disabled, style, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
1569
|
-
|
|
1570
|
-
interface RadioGroupProps extends React$1.ComponentProps<typeof RadioGroupPrimitive.Root> {
|
|
1571
|
-
}
|
|
1572
|
-
interface RadioItemProps extends React$1.ComponentProps<typeof RadioGroupPrimitive.Item> {
|
|
1573
|
-
size?: 'regular' | 'small' | 'extraSmall';
|
|
1574
|
-
label?: string;
|
|
1575
|
-
description?: string;
|
|
1576
|
-
disabled?: boolean;
|
|
1577
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1578
|
-
}
|
|
1579
|
-
declare function RadioGroup({ className, ...props }: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
1580
|
-
declare function RadioItem({ className, size, label, description, disabled, tokens, value, ...props }: RadioItemProps): react_jsx_runtime.JSX.Element;
|
|
1581
|
-
|
|
1582
|
-
interface SwitchProps extends React$1.ComponentProps<typeof SwitchPrimitive.Root> {
|
|
1583
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1584
|
-
size?: 'regular' | 'small' | 'extraSmall';
|
|
1585
|
-
label?: string;
|
|
1586
|
-
description?: string;
|
|
1587
|
-
disabled?: boolean;
|
|
1588
|
-
}
|
|
1589
|
-
declare const Switch: ({ className, tokens, size, label, description, disabled, style, ...props }: SwitchProps) => react_jsx_runtime.JSX.Element;
|
|
1590
|
-
|
|
1591
|
-
type TileSize = 'small' | 'medium';
|
|
1592
|
-
type TileProps = HTMLAttributes<HTMLDivElement> & {
|
|
1593
|
-
title: string;
|
|
1594
|
-
size: TileSize;
|
|
1595
|
-
description?: string;
|
|
1596
|
-
isSelect?: boolean;
|
|
1597
|
-
error?: boolean;
|
|
1598
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1599
|
-
className?: string;
|
|
1600
|
-
onChange: () => void;
|
|
1601
|
-
};
|
|
1602
|
-
declare const Tile: ({ title, description, tokens, className, isSelect, error, size, onChange, }: TileProps) => react_jsx_runtime.JSX.Element;
|
|
1603
|
-
|
|
1604
|
-
type BreadcrumbSize = 'small' | 'medium';
|
|
1605
|
-
interface BreadcrumbProps extends React$1.ComponentProps<'nav'> {
|
|
1606
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1607
|
-
size?: BreadcrumbSize;
|
|
1608
|
-
}
|
|
1609
|
-
declare function Breadcrumb({ className, tokens, style, size, children, ...props }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
|
|
1610
|
-
declare function BreadcrumbList({ className, ...props }: React$1.ComponentProps<'ol'>): react_jsx_runtime.JSX.Element;
|
|
1611
|
-
declare function BreadcrumbItem({ className, ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
1612
|
-
declare function BreadcrumbLink({ asChild, className, ...props }: React$1.ComponentProps<'a'> & {
|
|
1613
|
-
asChild?: boolean;
|
|
1614
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1615
|
-
declare function BreadcrumbPage({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
1616
|
-
declare function BreadcrumbSeparator({ children, className, ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
1617
|
-
declare function BreadcrumbEllipsis({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
1618
|
-
|
|
1619
|
-
type DrawerSlotTokens = {
|
|
1620
|
-
overlay?: Partial<ThemeTokensBase>;
|
|
1621
|
-
container?: Partial<ThemeTokensBase>;
|
|
1622
|
-
close?: Partial<ThemeTokensBase>;
|
|
1623
|
-
title?: Partial<ThemeTokensBase>;
|
|
1624
|
-
description?: Partial<ThemeTokensBase>;
|
|
1625
|
-
};
|
|
1626
|
-
type DrawerProps = React$1.ComponentProps<typeof Drawer$1.Root> & {
|
|
1627
|
-
tokens?: Partial<DrawerSlotTokens>;
|
|
1628
|
-
};
|
|
1629
|
-
declare function Drawer({ tokens, ...props }: DrawerProps): react_jsx_runtime.JSX.Element;
|
|
1630
|
-
declare const DrawerTrigger: React$1.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1631
|
-
declare const DrawerPortal: typeof vaul.Portal;
|
|
1632
|
-
declare const DrawerClose: React$1.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1633
|
-
declare function DrawerOverlay({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime.JSX.Element | null;
|
|
1634
|
-
declare function DrawerContent({ className, children, ...props }: React$1.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime.JSX.Element | null;
|
|
1635
|
-
declare const DrawerHeader: ({ className, ...props }: React$1.ComponentProps<"div">) => react_jsx_runtime.JSX.Element;
|
|
1636
|
-
declare const DrawerBody: ({ className, ...props }: React$1.ComponentProps<"div">) => react_jsx_runtime.JSX.Element;
|
|
1637
|
-
declare const DrawerFooter: ({ className, ...props }: React$1.ComponentProps<"div">) => react_jsx_runtime.JSX.Element;
|
|
1638
|
-
declare function DrawerCloseButton({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime.JSX.Element;
|
|
1639
|
-
declare function DrawerTitle({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime.JSX.Element | null;
|
|
1640
|
-
declare function DrawerDescription({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime.JSX.Element | null;
|
|
1641
|
-
|
|
1642
|
-
type HeaderSize = 'desktop' | 'mobile';
|
|
1643
|
-
type HeaderProps = {
|
|
1644
|
-
title: React$1.ReactNode;
|
|
1645
|
-
description?: React$1.ReactNode;
|
|
1646
|
-
action?: React$1.ReactNode;
|
|
1647
|
-
size?: HeaderSize;
|
|
1648
|
-
className?: string;
|
|
1649
|
-
titleClassName?: string;
|
|
1650
|
-
descriptionClassName?: string;
|
|
1651
|
-
descriptionMaxLines?: number;
|
|
1652
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1653
|
-
};
|
|
1654
|
-
declare function Header({ title, description, action, size, className, titleClassName, descriptionClassName, descriptionMaxLines, tokens, }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
1655
|
-
|
|
1656
|
-
type AlertDialogAlignment = 'left' | 'center';
|
|
1657
|
-
interface AlertDialogProps extends React$1.ComponentProps<typeof AlertDialogPrimitive.Root> {
|
|
1658
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1659
|
-
alignment?: AlertDialogAlignment;
|
|
1660
|
-
size?: 'regular';
|
|
1661
|
-
}
|
|
1662
|
-
declare function AlertDialog({ tokens, alignment, size, ...props }: AlertDialogProps): react_jsx_runtime.JSX.Element;
|
|
1663
|
-
declare const AlertDialogTrigger: React$1.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1664
|
-
declare const AlertDialogPortal: React$1.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
1665
|
-
declare function AlertDialogOverlay(props: React$1.ComponentProps<typeof AlertDialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
|
|
1666
|
-
declare function AlertDialogContent({ className, alignment, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Content> & {
|
|
1667
|
-
alignment?: AlertDialogAlignment;
|
|
1668
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1669
|
-
declare function AlertDialogHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1670
|
-
declare function AlertDialogFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1671
|
-
declare function AlertDialogTitle(props: React$1.ComponentProps<typeof AlertDialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
1672
|
-
declare function AlertDialogDescription(props: React$1.ComponentProps<typeof AlertDialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
1673
|
-
declare function AlertDialogAction({ className, children, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Action>): react_jsx_runtime.JSX.Element;
|
|
1674
|
-
declare function AlertDialogCancel({ className, children, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Cancel>): react_jsx_runtime.JSX.Element;
|
|
1675
|
-
|
|
1676
|
-
type Merchant = {
|
|
1677
|
-
id: string;
|
|
1678
|
-
name: string;
|
|
1679
|
-
};
|
|
1680
|
-
type NavbarUser = {
|
|
1681
|
-
name: string;
|
|
1682
|
-
role?: string;
|
|
1683
|
-
avatarUrl?: string;
|
|
1684
|
-
menu: {
|
|
1685
|
-
id: string;
|
|
1686
|
-
label: string;
|
|
1687
|
-
onClick: () => void;
|
|
1688
|
-
}[];
|
|
1689
|
-
};
|
|
1690
|
-
type NavbarProps = {
|
|
1691
|
-
children: React$1.ReactNode;
|
|
1692
|
-
open?: boolean;
|
|
1693
|
-
expandedContent?: React$1.ReactNode;
|
|
1694
|
-
className?: string;
|
|
1695
|
-
};
|
|
1696
|
-
type NavbarComponent = React$1.FC<NavbarProps> & {
|
|
1697
|
-
Start: React$1.FC<{
|
|
1698
|
-
children: React$1.ReactNode;
|
|
1699
|
-
}>;
|
|
1700
|
-
End: React$1.FC<{
|
|
1701
|
-
children: React$1.ReactNode;
|
|
1702
|
-
}>;
|
|
1703
|
-
Slot: React$1.FC<{
|
|
1704
|
-
children: React$1.ReactNode;
|
|
1705
|
-
}>;
|
|
1706
|
-
Logo: typeof NavbarLogo;
|
|
1707
|
-
Merchant: typeof NavbarMerchant;
|
|
1708
|
-
User: typeof NavbarUserMenu;
|
|
1709
|
-
};
|
|
1710
|
-
declare const Navbar: NavbarComponent;
|
|
1711
|
-
declare function NavbarLogo({ children }: {
|
|
1712
|
-
children?: React$1.ReactNode;
|
|
1713
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1714
|
-
declare function NavbarMerchant({ merchants, currentId, onChange, }: {
|
|
1715
|
-
merchants?: Merchant[];
|
|
1716
|
-
currentId?: string;
|
|
1717
|
-
onChange?: (id: string) => void;
|
|
1718
|
-
}): react_jsx_runtime.JSX.Element | null;
|
|
1719
|
-
declare function NavbarUserMenu({ user }: {
|
|
1720
|
-
user: NavbarUser;
|
|
1721
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1722
|
-
|
|
1723
|
-
declare function Pagination({ className, tokens: customTokens, style, ...props }: React$1.ComponentProps<'nav'> & {
|
|
1724
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1725
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1726
|
-
type PaginationLinkProps = {
|
|
1727
|
-
isActive?: boolean;
|
|
1728
|
-
disabled?: boolean;
|
|
1729
|
-
} & React$1.ComponentProps<'a'>;
|
|
1730
|
-
declare function PaginationLink({ className, isActive, disabled, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
|
|
1731
|
-
declare function PaginationContent({ className, ...props }: React$1.ComponentProps<'ul'>): react_jsx_runtime.JSX.Element;
|
|
1732
|
-
declare function PaginationItem(props: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
1733
|
-
declare function PaginationPrevious({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
1734
|
-
declare function PaginationNext({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
1735
|
-
declare function PaginationEllipsis({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
1736
|
-
|
|
1737
|
-
type SidebarItem = {
|
|
1738
|
-
id: string;
|
|
1739
|
-
label: string;
|
|
1740
|
-
icon: React$1.ReactNode;
|
|
1741
|
-
active?: boolean;
|
|
1742
|
-
href?: string;
|
|
1743
|
-
};
|
|
1744
|
-
type SidebarSection = {
|
|
1745
|
-
id: string;
|
|
1746
|
-
title?: string;
|
|
1747
|
-
items: SidebarItem[];
|
|
1748
|
-
};
|
|
1749
|
-
type SidebarProps = {
|
|
1750
|
-
title?: string;
|
|
1751
|
-
sections?: SidebarSection[];
|
|
1752
|
-
items?: SidebarItem[];
|
|
1753
|
-
collapsed?: boolean;
|
|
1754
|
-
onToggleCollapse?: () => void;
|
|
1755
|
-
onItemClick?: (href: string) => void;
|
|
1756
|
-
className?: string;
|
|
1757
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1758
|
-
};
|
|
1759
|
-
declare function Sidebar({ title, sections, items, collapsed, onToggleCollapse, onItemClick, className, tokens, }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
1760
|
-
|
|
1761
|
-
declare function Tabs({ className, size, tokens, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Root> & {
|
|
1762
|
-
size: TabsSize;
|
|
1763
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1764
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1765
|
-
type TabsSize = 'medium' | 'small';
|
|
1766
|
-
declare function TabsList({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.List> & {
|
|
1767
|
-
size?: TabsSize;
|
|
1768
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1769
|
-
declare function TabsTrigger({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
1770
|
-
declare function TabsContent({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
1771
|
-
|
|
1772
|
-
type TourProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1773
|
-
currentStep: number;
|
|
1774
|
-
totalSteps: number;
|
|
1775
|
-
title: React$1.ReactNode;
|
|
1776
|
-
description: React$1.ReactNode;
|
|
1777
|
-
onBack: () => void;
|
|
1778
|
-
onNext: () => void;
|
|
1779
|
-
backLabel?: React$1.ReactNode;
|
|
1780
|
-
nextLabel?: React$1.ReactNode;
|
|
1781
|
-
disableBack?: boolean;
|
|
1782
|
-
disableNext?: boolean;
|
|
1783
|
-
showPointer?: boolean;
|
|
1784
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1785
|
-
};
|
|
1786
|
-
declare function Tour({ className, currentStep, totalSteps, title, description, onBack, onNext, backLabel, nextLabel, disableBack, disableNext, showPointer, tokens, style, ...props }: TourProps): react_jsx_runtime.JSX.Element;
|
|
1787
|
-
|
|
1788
|
-
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1789
|
-
type IconVariant = 'default' | 'primary' | 'muted' | 'danger' | 'success';
|
|
1790
|
-
type IconProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
1791
|
-
children?: React$1.ReactNode;
|
|
1792
|
-
size?: IconSize;
|
|
1793
|
-
color?: IconVariant;
|
|
1794
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1795
|
-
asChild?: boolean;
|
|
1796
|
-
};
|
|
1797
|
-
declare function Icon({ className, size, color, tokens: customTokens, asChild, style, children, ...props }: IconProps): react_jsx_runtime.JSX.Element;
|
|
1798
|
-
|
|
1799
|
-
type IconLabelProps = {
|
|
1800
|
-
icon: React$1.ReactNode;
|
|
1801
|
-
label: React$1.ReactNode;
|
|
1802
|
-
iconPosition?: 'left' | 'right';
|
|
1803
|
-
className?: string;
|
|
1804
|
-
};
|
|
1805
|
-
declare function IconLabel({ icon, label, iconPosition, className, }: IconLabelProps): react_jsx_runtime.JSX.Element;
|
|
1806
|
-
|
|
1807
|
-
declare function LoaderInit({ size, className, }: {
|
|
1808
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1809
|
-
color?: string;
|
|
1810
|
-
className?: string;
|
|
1811
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1812
|
-
|
|
1813
|
-
type SeparatorProps = React$1.ComponentProps<typeof SeparatorPrimitive.Root> & {
|
|
1814
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1815
|
-
};
|
|
1816
|
-
declare function Separator({ className, orientation, decorative, tokens, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
|
|
1817
|
-
|
|
1818
|
-
declare function ThemeProvider({ channelId, theme, children, }: {
|
|
1819
|
-
channelId?: string;
|
|
1820
|
-
theme?: any;
|
|
1821
|
-
children: React.ReactNode;
|
|
1822
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1823
|
-
|
|
1824
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
1825
|
-
|
|
1826
|
-
declare enum COMPONENT_NAMES {
|
|
1827
|
-
ACCORDION = "accordion",
|
|
1828
|
-
BADGE = "badge",
|
|
1829
|
-
FEEDBACK = "feedback",
|
|
1830
|
-
EXPANSION_PANEL = "expansionPanel",
|
|
1831
|
-
TILE = "tile",
|
|
1832
|
-
BUTTON = "button",
|
|
1833
|
-
CHECKBOX = "checkbox",
|
|
1834
|
-
DRAWER = "drawer",
|
|
1835
|
-
EMPTY_STATE = "emptyState",
|
|
1836
|
-
INPUT = "input",
|
|
1837
|
-
LABEL = "label",
|
|
1838
|
-
MODAL_DIALOG = "alertDialog",
|
|
1839
|
-
NAVBAR = "navbar",
|
|
1840
|
-
POPOVER = "popover",
|
|
1841
|
-
RADIO = "radio",
|
|
1842
|
-
SEPARATOR = "separator",
|
|
1843
|
-
SIDEBAR = "sidebar",
|
|
1844
|
-
SWITCH = "switch",
|
|
1845
|
-
TABS = "tabs",
|
|
1846
|
-
TOUR = "tour",
|
|
1847
|
-
TABLE = "table",
|
|
1848
|
-
AVATAR = "avatar",
|
|
1849
|
-
CARD = "card",
|
|
1850
|
-
BANNER = "banner",
|
|
1851
|
-
PROMO_BANNER = "promoBanner",
|
|
1852
|
-
PROGRESS = "progress",
|
|
1853
|
-
LOADER = "loader",
|
|
1854
|
-
FILE_UPLOAD = "fileUpload",
|
|
1855
|
-
DROPDOWN = "dropdown",
|
|
1856
|
-
TOOLTIP = "tooltip",
|
|
1857
|
-
DRAG_SLIDER = "dragSlider",
|
|
1858
|
-
MODULE_BOX = "moduleBox",
|
|
1859
|
-
CHARTS = "charts",
|
|
1860
|
-
PAGINATION = "pagination",
|
|
1861
|
-
HEADER = "header",
|
|
1862
|
-
BREADCRUMB = "breadcrumb",
|
|
1863
|
-
ICON = "icon",
|
|
1864
|
-
SELECT = "select",
|
|
1865
|
-
ALERT = "alert",
|
|
1866
|
-
CALENDAR = "calendar"
|
|
1867
|
-
}
|
|
1868
|
-
|
|
1869
|
-
/**
|
|
1870
|
-
* `CSSProperties` extended with arbitrary CSS custom properties (`--*`).
|
|
1871
|
-
* Use this instead of `as React.CSSProperties` when passing objects that
|
|
1872
|
-
* include `--my-var` keys.
|
|
1873
|
-
*/
|
|
1874
|
-
type CSSPropertiesWithVars = CSSProperties & Record<`--${string}`, string | number>;
|
|
1875
|
-
/**
|
|
1876
|
-
* A single CSS variable mapping entry.
|
|
1877
|
-
*
|
|
1878
|
-
* - `tokenPath` — dot-separated path into the resolved tokens object
|
|
1879
|
-
* (e.g. `'hover.background'`, `'title.fontSize'`)
|
|
1880
|
-
* - `fallback` — hardcoded default used when the token is not found
|
|
1881
|
-
*/
|
|
1882
|
-
type TokenVarEntry = {
|
|
1883
|
-
tokenPath: string;
|
|
1884
|
-
fallback?: string | number;
|
|
1885
|
-
};
|
|
1886
|
-
/**
|
|
1887
|
-
* Declarative mapping from CSS custom-property names to token paths.
|
|
1888
|
-
*
|
|
1889
|
-
* Example:
|
|
1890
|
-
* ```ts
|
|
1891
|
-
* const map = {
|
|
1892
|
-
* '--card-bg': { tokenPath: 'backgroundColor', fallback: '#ffffff' },
|
|
1893
|
-
* '--card-radius': { tokenPath: 'borderRadius', fallback: '16px' },
|
|
1894
|
-
* };
|
|
1895
|
-
* ```
|
|
1896
|
-
*/
|
|
1897
|
-
type TokenStyleMap = Record<string, TokenVarEntry>;
|
|
1898
|
-
/**
|
|
1899
|
-
* Map an **already-resolved** token object to CSS custom properties.
|
|
1900
|
-
*
|
|
1901
|
-
* ### Usage
|
|
1902
|
-
* ```tsx
|
|
1903
|
-
* const theme = useTheme();
|
|
1904
|
-
* const mergedTokens = resolveTokens<CardTokens>({ componentName: 'card', variant, tokens }, theme);
|
|
1905
|
-
* const styles = mapTokenStyles(mergedTokens, CARD_TOKEN_MAP);
|
|
1906
|
-
* ```
|
|
1907
|
-
*
|
|
1908
|
-
* @param resolvedTokens — the raw result of `resolveTokens(…)`
|
|
1909
|
-
* @param map — declarative CSS-var → token-path mapping
|
|
1910
|
-
* @param extra — optional extra styles (supports CSS custom properties)
|
|
1911
|
-
*/
|
|
1912
|
-
declare function mapTokenStyles(resolvedTokens: Record<string, unknown>, map: TokenStyleMap, extra?: CSSPropertiesWithVars | CSSProperties): CSSPropertiesWithVars;
|
|
1913
|
-
|
|
1914
|
-
/**
|
|
1915
|
-
* Shared token map for all input-family components
|
|
1916
|
-
* (Input, SearchBar, Select, Textarea, PasswordInput, DatePicker, Combobox).
|
|
1917
|
-
*
|
|
1918
|
-
* Eliminates ~40 lines of boilerplate per component.
|
|
1919
|
-
*/
|
|
1920
|
-
declare const INPUT_TOKEN_MAP: TokenStyleMap;
|
|
1921
|
-
/**
|
|
1922
|
-
* Build extra size-specific styles from the resolved size tokens.
|
|
1923
|
-
* Used with `mapTokenStyles(..., extra)`.
|
|
1924
|
-
*/
|
|
1925
|
-
declare function inputSizeExtras(sizeTokens: Record<string, any>): Record<string, unknown>;
|
|
1926
|
-
|
|
1927
|
-
/**
|
|
1928
|
-
* Hook para resolver tokens y mapear estilos en un solo paso.
|
|
1929
|
-
* Elimina el boilerplate repetido de useTheme + resolveTokens + mapTokenStyles.
|
|
1930
|
-
*
|
|
1931
|
-
* @param componentName Nombre del componente (ej: 'button')
|
|
1932
|
-
* @param tokenMap Mapeo declarativo de CSS vars
|
|
1933
|
-
* @param options Opciones: variant, size, tone, tokens, extra
|
|
1934
|
-
*/
|
|
1935
|
-
declare function useTokenStyles<T extends ResolvedTokenMap = ResolvedTokenMap>(componentName: string, tokenMap: TokenStyleMap, options?: {
|
|
1936
|
-
variant?: string;
|
|
1937
|
-
size?: string;
|
|
1938
|
-
tone?: string;
|
|
1939
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1940
|
-
shape?: string;
|
|
1941
|
-
extra?: CSSPropertiesWithVars | React.CSSProperties;
|
|
1942
|
-
}): {
|
|
1943
|
-
styles: CSSPropertiesWithVars;
|
|
1944
|
-
tokens: T;
|
|
1945
|
-
};
|
|
1946
|
-
|
|
1947
|
-
export { AIProvider, type AIProviderProps, type AIRequest, type AIRequestFn, type AIResponse, type AITask, Accordion, AccordionContent, AccordionItem, type AccordionTokens, AccordionTrigger, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, type AlertTokens, Avatar, AvatarFallback, AvatarImage, type AvatarSize, type AvatarTokens, Badge, type BadgeShape, type BadgeSize, type BadgeTokens, type BadgeTone, Banner, type BannerProps, type BannerTokens, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, type BreadcrumbSize, type BreadcrumbTokens, Button, type ButtonProps, type ButtonTokens, COMPONENT_NAMES, type CSSPropertiesWithVars, Calendar, type CalendarTokens, Card, type CardProps, type CardTokens, type ChartDatum, type ChartType, Charts, type ChartsProps, type ChartsTokens, Checkbox, type CheckboxTokens, type ColorBundle, type ColorBundleWithShadow, ColorExample, Combobox, DatePickerInput, DragSlider, type DragSliderProps, type DragSliderTokens, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, type DrawerSlotTokens, DrawerTitle, type DrawerTokens, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type DropdownTokens, EmptyState, type EmptyStateProps, type EmptyStateTokens, ExpansionPanel, type ExpansionPanelProps, type ExpansionPanelSize, type ExpansionPanelStatus, Feedback, type FeedbackProps, type FeedbackSize, FileUpload, type FileUploadProps, type FileUploadState, type FileUploadTokens, type FontSizeTokens, Header, type HeaderProps, type HeaderSize, type HeaderTokens, INPUT_TOKEN_MAP, Icon, IconLabel, type IconLabelProps, type IconProps, type IconSize, type IconTokens, type IconVariant, Input, type InputSizeDimensions, type InputTokens, IntegrationCard, type IntegrationCardProps, type IntegrationCardTokens, Label, type LabelTokens, type LabeledFontTokens, ListItem, type ListItemProps, type ListItemStatus, Loader, LoaderInit, type LoaderProps, type LoaderSize, type LoaderTokens, type LoaderVariant, type Merchant, type ModalDialogTokens, ModuleBox, type ModuleBoxProps, type ModuleBoxTokens, Navbar, NavbarLogo, NavbarMerchant, type NavbarTokens, type NavbarUser, NavbarUserMenu, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PaginationTokens, PasswordInput, Popover, PopoverAnchor, PopoverContent, type PopoverTokens, PopoverTrigger, Progress, type ProgressTokens, type PromoBannerTokens, RadioGroup, RadioItem, type RadioTokens, type ResolvedTokenMap, SearchBar, Select, type SelectTokens, Separator, type SeparatorTokens, Sidebar, type SidebarItem, type SidebarProps, type SidebarSection, type SidebarTokens, Switch, type SwitchTokens, Table, TableBody, TableCaption, TableCell, TableCellDescription, TableFooter, TableHead, TableHeader, TableRow, type TableTokens, Tabs, TabsContent, TabsList, type TabsSize, type TabsTokens, TabsTrigger, Textarea, ThemeProvider, type ThemeTokensBase, Tile, type TileProps, type TileSize, type TokenStyleMap, Tooltip, TooltipContent, TooltipProvider, type TooltipTokens, TooltipTrigger, Tour, type TourProps, type TourTokens, type TypographyTokens, accordionContentVariants, accordionTriggerVariants, bannerVariants, buttonBaseClasses, cn, inputSizeExtras, mapTokenStyles, resolveTokens, tokenAt, useAI, useTheme, useTokenStyles };
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import { HTMLAttributes, CSSProperties } from 'react';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
6
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
7
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
8
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
9
|
+
import { VariantProps } from 'class-variance-authority';
|
|
10
|
+
import { Loader2Icon } from 'lucide-react';
|
|
11
|
+
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
12
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
13
|
+
import { DayPicker } from 'react-day-picker';
|
|
14
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
15
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
16
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
17
|
+
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
18
|
+
import * as vaul from 'vaul';
|
|
19
|
+
import { Drawer as Drawer$1 } from 'vaul';
|
|
20
|
+
import * as _radix_ui_react_dialog from '@radix-ui/react-dialog';
|
|
21
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
22
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
23
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
24
|
+
import { ClassValue } from 'clsx';
|
|
25
|
+
|
|
26
|
+
type AITask = 'smartSearch' | 'textAssist' | 'formHelper' | 'tagSuggest' | 'emptyState' | 'dataInsights' | 'translate' | 'explainCode';
|
|
27
|
+
type AIRequest<TContext = unknown> = {
|
|
28
|
+
task: AITask;
|
|
29
|
+
input?: string;
|
|
30
|
+
context?: TContext;
|
|
31
|
+
data?: unknown;
|
|
32
|
+
options?: Record<string, unknown>;
|
|
33
|
+
};
|
|
34
|
+
type AIResponse<T = unknown> = {
|
|
35
|
+
output: T;
|
|
36
|
+
raw?: unknown;
|
|
37
|
+
};
|
|
38
|
+
type AIRequestFn = <T = unknown>(payload: AIRequest) => Promise<AIResponse<T>>;
|
|
39
|
+
|
|
40
|
+
type AIProviderProps = {
|
|
41
|
+
request: AIRequestFn;
|
|
42
|
+
children: React$1.ReactNode;
|
|
43
|
+
};
|
|
44
|
+
declare function AIProvider({ request, children }: AIProviderProps): react_jsx_runtime.JSX.Element;
|
|
45
|
+
declare function useAI(): AIRequestFn | null;
|
|
46
|
+
|
|
47
|
+
interface ThemeTokensBase {
|
|
48
|
+
[key: string]: unknown;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Recursive token map returned by `resolveTokens`.
|
|
52
|
+
*
|
|
53
|
+
* Values are typed as `any` because token structures come from runtime JSON
|
|
54
|
+
* configuration and their shapes vary per component. This enables ergonomic
|
|
55
|
+
* deep chaining without casts:
|
|
56
|
+
*
|
|
57
|
+
* ```ts
|
|
58
|
+
* const tokens = resolveTokens({ componentName: 'button', variant }, theme);
|
|
59
|
+
* tokens?.hover?.background // any
|
|
60
|
+
* tokens?.sizes?.medium // any
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* For component-specific token shapes with full autocomplete, define a typed
|
|
64
|
+
* interface and pass it as a generic:
|
|
65
|
+
*
|
|
66
|
+
* ```ts
|
|
67
|
+
* const tokens = resolveTokens<ButtonTokens>({ componentName: 'button', variant }, theme);
|
|
68
|
+
* tokens?.hover?.background // string | undefined (narrowed by ButtonTokens)
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
interface ResolvedTokenMap {
|
|
72
|
+
[key: string]: any;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Type-safe descent into a token branch (e.g. `sizes`, `variants`, `tones`).
|
|
76
|
+
*
|
|
77
|
+
* Navigates through nested keys and returns a `ResolvedTokenMap` at the target.
|
|
78
|
+
* Returns `{}` when any segment along the path is missing or not an object.
|
|
79
|
+
*
|
|
80
|
+
* ```ts
|
|
81
|
+
* const sizeTokens = tokenAt(mergedTokens, 'sizes', 'medium');
|
|
82
|
+
* sizeTokens?.fontSize // string | number | ...
|
|
83
|
+
* sizeTokens?.height // string | number | ...
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
declare function tokenAt(tokens: ResolvedTokenMap, ...keys: string[]): ResolvedTokenMap;
|
|
87
|
+
|
|
88
|
+
declare function useTheme<T extends ThemeTokensBase = ThemeTokensBase>(): T;
|
|
89
|
+
|
|
90
|
+
type ResolveTokensParams = {
|
|
91
|
+
componentName: string;
|
|
92
|
+
variant?: string;
|
|
93
|
+
size?: string;
|
|
94
|
+
tone?: string;
|
|
95
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
declare function resolveTokens<T extends ResolvedTokenMap = ResolvedTokenMap>({ componentName, variant, size, tone, tokens }: ResolveTokensParams, theme: ThemeTokensBase): T;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Typed token contracts for every component.
|
|
102
|
+
*
|
|
103
|
+
* Each interface describes the **resolved** shape returned by `resolveTokens`
|
|
104
|
+
* after base / variant / size / tone merging. Passing the generic to
|
|
105
|
+
* `resolveTokens<ButtonTokens>(…)` gives full autocomplete and catches typos
|
|
106
|
+
* at compile time.
|
|
107
|
+
*
|
|
108
|
+
* Every contract extends `ResolvedTokenMap` so the result remains compatible
|
|
109
|
+
* with `mapTokenStyles(mergedTokens, MAP)` which expects `Record<string, unknown>`.
|
|
110
|
+
*
|
|
111
|
+
* @module token-types
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
/** Common typography tokens shared by most components. */
|
|
115
|
+
interface TypographyTokens {
|
|
116
|
+
fontFamily?: string;
|
|
117
|
+
lineHeight?: string;
|
|
118
|
+
letterSpacing?: string;
|
|
119
|
+
}
|
|
120
|
+
/** Foreground + background + border bundle (buttons, inputs, alerts, …). */
|
|
121
|
+
interface ColorBundle {
|
|
122
|
+
background?: string;
|
|
123
|
+
color?: string;
|
|
124
|
+
border?: string;
|
|
125
|
+
}
|
|
126
|
+
/** Extended color bundle with box-shadow (inputs, badges, …). */
|
|
127
|
+
interface ColorBundleWithShadow extends ColorBundle {
|
|
128
|
+
boxShadow?: string;
|
|
129
|
+
}
|
|
130
|
+
/** Font sizing subset used by multiple size-aware components. */
|
|
131
|
+
interface FontSizeTokens {
|
|
132
|
+
fontSize?: string;
|
|
133
|
+
fontWeight?: string | number;
|
|
134
|
+
}
|
|
135
|
+
/** Font sizing + color subset used by labels / helpers inside inputs. */
|
|
136
|
+
interface LabeledFontTokens extends FontSizeTokens {
|
|
137
|
+
labelFontSize?: string;
|
|
138
|
+
inputFontSize?: string;
|
|
139
|
+
helperFontSize?: string;
|
|
140
|
+
labelFontWeight?: string | number;
|
|
141
|
+
inputFontWeight?: string | number;
|
|
142
|
+
helperFontWeight?: string | number;
|
|
143
|
+
labelColor?: string;
|
|
144
|
+
helperColor?: string;
|
|
145
|
+
descriptionColor?: string;
|
|
146
|
+
}
|
|
147
|
+
/** Padding / height subset shared by input-family sizes. */
|
|
148
|
+
interface InputSizeDimensions extends LabeledFontTokens {
|
|
149
|
+
height?: string;
|
|
150
|
+
padding?: string;
|
|
151
|
+
iconSize?: string | number;
|
|
152
|
+
}
|
|
153
|
+
interface ButtonTokens extends TypographyTokens, ResolvedTokenMap {
|
|
154
|
+
radius?: string;
|
|
155
|
+
transition?: string;
|
|
156
|
+
gap?: string;
|
|
157
|
+
sizes?: Record<string, {
|
|
158
|
+
height?: string;
|
|
159
|
+
paddingX?: string;
|
|
160
|
+
fontSize?: string;
|
|
161
|
+
fontWeight?: string | number;
|
|
162
|
+
iconSize?: string | number;
|
|
163
|
+
}>;
|
|
164
|
+
variants?: Record<string, ColorBundle & {
|
|
165
|
+
hover?: ColorBundle;
|
|
166
|
+
disabled?: ColorBundle;
|
|
167
|
+
loading?: ColorBundle;
|
|
168
|
+
focus?: {
|
|
169
|
+
boxShadow?: string;
|
|
170
|
+
};
|
|
171
|
+
}>;
|
|
172
|
+
}
|
|
173
|
+
interface InputTokens extends TypographyTokens, ResolvedTokenMap {
|
|
174
|
+
background?: string;
|
|
175
|
+
color?: string;
|
|
176
|
+
radius?: string;
|
|
177
|
+
border?: string;
|
|
178
|
+
boxShadow?: string;
|
|
179
|
+
hover?: ColorBundleWithShadow;
|
|
180
|
+
focus?: ColorBundleWithShadow;
|
|
181
|
+
filled?: ColorBundleWithShadow;
|
|
182
|
+
disabled?: ColorBundleWithShadow;
|
|
183
|
+
error?: ColorBundleWithShadow & {
|
|
184
|
+
filled?: ColorBundleWithShadow;
|
|
185
|
+
focus?: ColorBundleWithShadow;
|
|
186
|
+
hover?: ColorBundleWithShadow;
|
|
187
|
+
};
|
|
188
|
+
sizes?: Record<string, InputSizeDimensions>;
|
|
189
|
+
}
|
|
190
|
+
interface SelectTokens extends InputTokens, ResolvedTokenMap {
|
|
191
|
+
}
|
|
192
|
+
interface LabelTokens extends ResolvedTokenMap {
|
|
193
|
+
fontSize?: string;
|
|
194
|
+
color?: string;
|
|
195
|
+
fontWeight?: string | number;
|
|
196
|
+
padding?: string;
|
|
197
|
+
}
|
|
198
|
+
interface CalendarTokens extends TypographyTokens, ResolvedTokenMap {
|
|
199
|
+
background?: string;
|
|
200
|
+
text?: string;
|
|
201
|
+
muted?: string;
|
|
202
|
+
radius?: string;
|
|
203
|
+
border?: string;
|
|
204
|
+
item?: {
|
|
205
|
+
size?: string;
|
|
206
|
+
radius?: string;
|
|
207
|
+
hover?: {
|
|
208
|
+
background?: string;
|
|
209
|
+
};
|
|
210
|
+
current?: {
|
|
211
|
+
background?: string;
|
|
212
|
+
};
|
|
213
|
+
active?: {
|
|
214
|
+
background?: string;
|
|
215
|
+
color?: string;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
interface SwitchTokens extends TypographyTokens, ResolvedTokenMap {
|
|
220
|
+
gap?: string;
|
|
221
|
+
textGap?: string;
|
|
222
|
+
background?: string;
|
|
223
|
+
track?: {
|
|
224
|
+
offBackgroundHover?: string;
|
|
225
|
+
onBackground?: string;
|
|
226
|
+
onBackgroundHover?: string;
|
|
227
|
+
};
|
|
228
|
+
handle?: {
|
|
229
|
+
color?: string;
|
|
230
|
+
};
|
|
231
|
+
disabled?: {
|
|
232
|
+
background?: string;
|
|
233
|
+
text?: string;
|
|
234
|
+
track?: string;
|
|
235
|
+
};
|
|
236
|
+
motion?: {
|
|
237
|
+
duration?: string;
|
|
238
|
+
};
|
|
239
|
+
sizes?: Record<string, {
|
|
240
|
+
labelFontWeight?: string | number;
|
|
241
|
+
descriptionFontWeight?: string | number;
|
|
242
|
+
labelFontSize?: string;
|
|
243
|
+
descriptionFontSize?: string;
|
|
244
|
+
labelColor?: string;
|
|
245
|
+
descriptionColor?: string;
|
|
246
|
+
track?: {
|
|
247
|
+
width?: string;
|
|
248
|
+
height?: string;
|
|
249
|
+
};
|
|
250
|
+
handle?: {
|
|
251
|
+
size?: string;
|
|
252
|
+
translate?: string;
|
|
253
|
+
};
|
|
254
|
+
}>;
|
|
255
|
+
}
|
|
256
|
+
interface RadioTokens extends TypographyTokens, ResolvedTokenMap {
|
|
257
|
+
outer?: {
|
|
258
|
+
background?: string;
|
|
259
|
+
border?: string;
|
|
260
|
+
focusBorder?: string;
|
|
261
|
+
hoverBorder?: string;
|
|
262
|
+
};
|
|
263
|
+
checked?: {
|
|
264
|
+
background?: string;
|
|
265
|
+
backgroundHover?: string;
|
|
266
|
+
};
|
|
267
|
+
disabled?: {
|
|
268
|
+
background?: string;
|
|
269
|
+
border?: string;
|
|
270
|
+
dot?: string;
|
|
271
|
+
text?: string;
|
|
272
|
+
};
|
|
273
|
+
gap?: string;
|
|
274
|
+
textGap?: string;
|
|
275
|
+
motion?: {
|
|
276
|
+
duration?: string;
|
|
277
|
+
};
|
|
278
|
+
sizes?: Record<string, {
|
|
279
|
+
outer?: {
|
|
280
|
+
size?: string;
|
|
281
|
+
};
|
|
282
|
+
dot?: {
|
|
283
|
+
size?: string;
|
|
284
|
+
};
|
|
285
|
+
labelFontSize?: string;
|
|
286
|
+
descriptionFontSize?: string;
|
|
287
|
+
labelFontWeight?: string | number;
|
|
288
|
+
descriptionFontWeight?: string | number;
|
|
289
|
+
labelColor?: string;
|
|
290
|
+
descriptionColor?: string;
|
|
291
|
+
}>;
|
|
292
|
+
}
|
|
293
|
+
interface CheckboxTokens extends TypographyTokens, ResolvedTokenMap {
|
|
294
|
+
fontWeight?: string | number;
|
|
295
|
+
gap?: string;
|
|
296
|
+
textGap?: string;
|
|
297
|
+
disabled?: {
|
|
298
|
+
text?: string;
|
|
299
|
+
};
|
|
300
|
+
track?: {
|
|
301
|
+
background?: string;
|
|
302
|
+
border?: string;
|
|
303
|
+
focusBorder?: string;
|
|
304
|
+
};
|
|
305
|
+
checked?: {
|
|
306
|
+
background?: string;
|
|
307
|
+
backgroundHover?: string;
|
|
308
|
+
};
|
|
309
|
+
thumb?: {
|
|
310
|
+
color?: string;
|
|
311
|
+
};
|
|
312
|
+
sizes?: Record<string, {
|
|
313
|
+
control?: string;
|
|
314
|
+
icon?: string;
|
|
315
|
+
labelFontSize?: string;
|
|
316
|
+
descriptionFontSize?: string;
|
|
317
|
+
labelFontWeight?: string | number;
|
|
318
|
+
descriptionFontWeight?: string | number;
|
|
319
|
+
labelColor?: string;
|
|
320
|
+
descriptionColor?: string;
|
|
321
|
+
}>;
|
|
322
|
+
}
|
|
323
|
+
interface SeparatorTokens extends ResolvedTokenMap {
|
|
324
|
+
color?: string;
|
|
325
|
+
opacity?: string | number;
|
|
326
|
+
orientation?: {
|
|
327
|
+
horizontal?: {
|
|
328
|
+
width?: string;
|
|
329
|
+
height?: string;
|
|
330
|
+
};
|
|
331
|
+
vertical?: {
|
|
332
|
+
width?: string;
|
|
333
|
+
height?: string;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
interface PaginationTokens extends TypographyTokens, ResolvedTokenMap {
|
|
338
|
+
gap?: string;
|
|
339
|
+
radius?: string;
|
|
340
|
+
pageNumber?: FontSizeTokens;
|
|
341
|
+
icon?: {
|
|
342
|
+
size?: string;
|
|
343
|
+
color?: string;
|
|
344
|
+
};
|
|
345
|
+
item?: {
|
|
346
|
+
default?: ColorBundle;
|
|
347
|
+
hover?: {
|
|
348
|
+
background?: string;
|
|
349
|
+
border?: string;
|
|
350
|
+
};
|
|
351
|
+
active?: {
|
|
352
|
+
background?: string;
|
|
353
|
+
text?: string;
|
|
354
|
+
border?: string;
|
|
355
|
+
};
|
|
356
|
+
focus?: {
|
|
357
|
+
border?: string;
|
|
358
|
+
};
|
|
359
|
+
disabled?: {
|
|
360
|
+
background?: string;
|
|
361
|
+
text?: string;
|
|
362
|
+
opacity?: string | number;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
interface TabsTokens extends TypographyTokens, ResolvedTokenMap {
|
|
367
|
+
tabsList?: {
|
|
368
|
+
background?: string;
|
|
369
|
+
color?: string;
|
|
370
|
+
radius?: string;
|
|
371
|
+
};
|
|
372
|
+
tabsTrigger?: {
|
|
373
|
+
color?: string;
|
|
374
|
+
active?: {
|
|
375
|
+
background?: string;
|
|
376
|
+
color?: string;
|
|
377
|
+
boxShadow?: string;
|
|
378
|
+
};
|
|
379
|
+
hover?: {
|
|
380
|
+
background?: string;
|
|
381
|
+
};
|
|
382
|
+
disabled?: {
|
|
383
|
+
opacity?: string | number;
|
|
384
|
+
background?: string;
|
|
385
|
+
color?: string;
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
tabsFocusRing?: {
|
|
389
|
+
innerColor?: string;
|
|
390
|
+
outerColor?: string;
|
|
391
|
+
innerSize?: string;
|
|
392
|
+
outerSize?: string;
|
|
393
|
+
};
|
|
394
|
+
sizes?: Record<string, FontSizeTokens>;
|
|
395
|
+
}
|
|
396
|
+
interface SidebarTokens extends ResolvedTokenMap {
|
|
397
|
+
container?: {
|
|
398
|
+
background?: string;
|
|
399
|
+
border?: string;
|
|
400
|
+
width?: string;
|
|
401
|
+
collapsedWidth?: string;
|
|
402
|
+
padding?: string;
|
|
403
|
+
};
|
|
404
|
+
header?: {
|
|
405
|
+
minHeight?: string;
|
|
406
|
+
titleColor?: string;
|
|
407
|
+
titleFontSize?: string;
|
|
408
|
+
titleFontWeight?: string | number;
|
|
409
|
+
titleFontFamily?: string;
|
|
410
|
+
titleLineHeight?: string;
|
|
411
|
+
titleLetterSpacing?: string;
|
|
412
|
+
};
|
|
413
|
+
item?: {
|
|
414
|
+
radius?: string;
|
|
415
|
+
height?: string;
|
|
416
|
+
paddingX?: string;
|
|
417
|
+
gap?: string;
|
|
418
|
+
fontSize?: string;
|
|
419
|
+
fontWeight?: string | number;
|
|
420
|
+
color?: string;
|
|
421
|
+
fontFamily?: string;
|
|
422
|
+
lineHeight?: string;
|
|
423
|
+
letterSpacing?: string;
|
|
424
|
+
hover?: {
|
|
425
|
+
background?: string;
|
|
426
|
+
color?: string;
|
|
427
|
+
};
|
|
428
|
+
active?: {
|
|
429
|
+
background?: string;
|
|
430
|
+
color?: string;
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
section?: {
|
|
434
|
+
titleColor?: string;
|
|
435
|
+
titleFontSize?: string;
|
|
436
|
+
titleFontFamily?: string;
|
|
437
|
+
titleLineHeight?: string;
|
|
438
|
+
titleLetterSpacing?: string;
|
|
439
|
+
gap?: string;
|
|
440
|
+
};
|
|
441
|
+
toggle?: {
|
|
442
|
+
color?: string;
|
|
443
|
+
hoverColor?: string;
|
|
444
|
+
};
|
|
445
|
+
motion?: {
|
|
446
|
+
duration?: string;
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
interface TourTokens extends TypographyTokens, ResolvedTokenMap {
|
|
450
|
+
backgroundColor?: string;
|
|
451
|
+
borderColor?: string;
|
|
452
|
+
borderRadius?: string;
|
|
453
|
+
padding?: string;
|
|
454
|
+
shadow?: string;
|
|
455
|
+
gap?: string;
|
|
456
|
+
step?: TypographyTokens & FontSizeTokens & {
|
|
457
|
+
color?: string;
|
|
458
|
+
};
|
|
459
|
+
title?: TypographyTokens & FontSizeTokens & {
|
|
460
|
+
color?: string;
|
|
461
|
+
};
|
|
462
|
+
description?: TypographyTokens & FontSizeTokens & {
|
|
463
|
+
color?: string;
|
|
464
|
+
};
|
|
465
|
+
actions?: {
|
|
466
|
+
gap?: string;
|
|
467
|
+
};
|
|
468
|
+
arrow?: {
|
|
469
|
+
size?: string;
|
|
470
|
+
background?: string;
|
|
471
|
+
borderColor?: string;
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
interface NavbarTokens extends TypographyTokens, ResolvedTokenMap {
|
|
475
|
+
container?: {
|
|
476
|
+
height?: string;
|
|
477
|
+
background?: string;
|
|
478
|
+
border?: string;
|
|
479
|
+
radius?: string;
|
|
480
|
+
iconColor?: string;
|
|
481
|
+
};
|
|
482
|
+
expanded?: {
|
|
483
|
+
background?: string;
|
|
484
|
+
};
|
|
485
|
+
content?: {
|
|
486
|
+
maxWidth?: string;
|
|
487
|
+
paddingX?: string;
|
|
488
|
+
gap?: string;
|
|
489
|
+
};
|
|
490
|
+
start?: {
|
|
491
|
+
gap?: string;
|
|
492
|
+
};
|
|
493
|
+
end?: {
|
|
494
|
+
gap?: string;
|
|
495
|
+
};
|
|
496
|
+
logo?: {
|
|
497
|
+
gap?: string;
|
|
498
|
+
};
|
|
499
|
+
motion?: {
|
|
500
|
+
duration?: string;
|
|
501
|
+
};
|
|
502
|
+
merchant?: TypographyTokens & {
|
|
503
|
+
color?: string;
|
|
504
|
+
fontSize?: string;
|
|
505
|
+
fontWeight?: string | number;
|
|
506
|
+
gap?: string;
|
|
507
|
+
triggerGap?: string;
|
|
508
|
+
paddingX?: string;
|
|
509
|
+
paddingY?: string;
|
|
510
|
+
};
|
|
511
|
+
user?: {
|
|
512
|
+
nameColor?: string;
|
|
513
|
+
roleColor?: string;
|
|
514
|
+
nameFontFamily?: string;
|
|
515
|
+
roleFontFamily?: string;
|
|
516
|
+
nameFontSize?: string;
|
|
517
|
+
roleFontSize?: string;
|
|
518
|
+
nameFontWeight?: string | number;
|
|
519
|
+
roleFontWeight?: string | number;
|
|
520
|
+
nameLineHeight?: string;
|
|
521
|
+
roleLineHeight?: string;
|
|
522
|
+
nameLetterSpacing?: string;
|
|
523
|
+
roleLetterSpacing?: string;
|
|
524
|
+
gap?: string;
|
|
525
|
+
paddingX?: string;
|
|
526
|
+
paddingY?: string;
|
|
527
|
+
triggerHover?: string;
|
|
528
|
+
focusColor?: string;
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
interface ModalDialogTokens extends TypographyTokens, ResolvedTokenMap {
|
|
532
|
+
overlay?: {
|
|
533
|
+
background?: string;
|
|
534
|
+
};
|
|
535
|
+
content?: {
|
|
536
|
+
background?: string;
|
|
537
|
+
radius?: string;
|
|
538
|
+
borderColor?: string;
|
|
539
|
+
width?: string;
|
|
540
|
+
maxWidth?: string;
|
|
541
|
+
maxHeight?: string;
|
|
542
|
+
padding?: string;
|
|
543
|
+
gap?: string;
|
|
544
|
+
};
|
|
545
|
+
header?: {
|
|
546
|
+
gap?: string;
|
|
547
|
+
};
|
|
548
|
+
footer?: {
|
|
549
|
+
gap?: string;
|
|
550
|
+
};
|
|
551
|
+
title?: TypographyTokens & FontSizeTokens & {
|
|
552
|
+
color?: string;
|
|
553
|
+
};
|
|
554
|
+
description?: TypographyTokens & FontSizeTokens & {
|
|
555
|
+
color?: string;
|
|
556
|
+
};
|
|
557
|
+
sizes?: Record<string, {
|
|
558
|
+
padding?: string;
|
|
559
|
+
gap?: string;
|
|
560
|
+
headerGap?: string;
|
|
561
|
+
footerGap?: string;
|
|
562
|
+
}>;
|
|
563
|
+
}
|
|
564
|
+
interface HeaderTokens extends ResolvedTokenMap {
|
|
565
|
+
container?: {
|
|
566
|
+
gapMobile?: string;
|
|
567
|
+
gapDesktop?: string;
|
|
568
|
+
minHeightMobile?: string;
|
|
569
|
+
minHeightDesktop?: string;
|
|
570
|
+
};
|
|
571
|
+
title?: TypographyTokens & FontSizeTokens & {
|
|
572
|
+
color?: string;
|
|
573
|
+
fontSizeMobile?: string;
|
|
574
|
+
fontSizeDesktop?: string;
|
|
575
|
+
};
|
|
576
|
+
description?: TypographyTokens & FontSizeTokens & {
|
|
577
|
+
color?: string;
|
|
578
|
+
fontSizeMobile?: string;
|
|
579
|
+
fontSizeDesktop?: string;
|
|
580
|
+
};
|
|
581
|
+
}
|
|
582
|
+
interface BreadcrumbTokens extends TypographyTokens, ResolvedTokenMap {
|
|
583
|
+
fontSize?: string;
|
|
584
|
+
gap?: string;
|
|
585
|
+
itemMinHeight?: string;
|
|
586
|
+
maxLabelLength?: string | number;
|
|
587
|
+
link?: {
|
|
588
|
+
default?: {
|
|
589
|
+
color?: string;
|
|
590
|
+
fontWeight?: string | number;
|
|
591
|
+
};
|
|
592
|
+
hover?: {
|
|
593
|
+
color?: string;
|
|
594
|
+
textDecoration?: string;
|
|
595
|
+
};
|
|
596
|
+
};
|
|
597
|
+
page?: {
|
|
598
|
+
color?: string;
|
|
599
|
+
fontWeight?: string | number;
|
|
600
|
+
};
|
|
601
|
+
separator?: {
|
|
602
|
+
color?: string;
|
|
603
|
+
size?: string;
|
|
604
|
+
};
|
|
605
|
+
}
|
|
606
|
+
interface DrawerTokens extends ResolvedTokenMap {
|
|
607
|
+
overlay?: {
|
|
608
|
+
background?: string;
|
|
609
|
+
opacity?: string | number;
|
|
610
|
+
backdropBlur?: string;
|
|
611
|
+
};
|
|
612
|
+
content?: ColorBundle & {
|
|
613
|
+
radius?: string;
|
|
614
|
+
shadow?: string;
|
|
615
|
+
maxHeight?: string;
|
|
616
|
+
};
|
|
617
|
+
title?: TypographyTokens & FontSizeTokens & {
|
|
618
|
+
color?: string;
|
|
619
|
+
};
|
|
620
|
+
description?: TypographyTokens & FontSizeTokens & {
|
|
621
|
+
color?: string;
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
interface IconTokens extends ResolvedTokenMap {
|
|
625
|
+
color?: string;
|
|
626
|
+
sizes?: Record<string, number | string>;
|
|
627
|
+
}
|
|
628
|
+
interface ModuleBoxTokens extends TypographyTokens, ResolvedTokenMap {
|
|
629
|
+
backgroundColor?: string;
|
|
630
|
+
borderColor?: string;
|
|
631
|
+
borderRadius?: string;
|
|
632
|
+
padding?: string;
|
|
633
|
+
gap?: string;
|
|
634
|
+
header?: {
|
|
635
|
+
gap?: string;
|
|
636
|
+
};
|
|
637
|
+
footer?: {
|
|
638
|
+
gap?: string;
|
|
639
|
+
};
|
|
640
|
+
slot?: {
|
|
641
|
+
background?: string;
|
|
642
|
+
border?: string;
|
|
643
|
+
borderRadius?: string;
|
|
644
|
+
padding?: string;
|
|
645
|
+
minHeight?: string;
|
|
646
|
+
color?: string;
|
|
647
|
+
};
|
|
648
|
+
title?: {
|
|
649
|
+
color?: string;
|
|
650
|
+
fontSize?: string;
|
|
651
|
+
fontWeight?: string | number;
|
|
652
|
+
fontStyle?: string;
|
|
653
|
+
fontFamily?: string;
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
interface PopoverTokens extends TypographyTokens, ResolvedTokenMap {
|
|
657
|
+
color?: string;
|
|
658
|
+
background?: string;
|
|
659
|
+
radius?: string;
|
|
660
|
+
border?: string;
|
|
661
|
+
shadow?: string;
|
|
662
|
+
padding?: string;
|
|
663
|
+
fontSize?: string;
|
|
664
|
+
fontWeight?: string | number;
|
|
665
|
+
zIndex?: string | number;
|
|
666
|
+
}
|
|
667
|
+
interface TooltipTokens extends TypographyTokens, ResolvedTokenMap {
|
|
668
|
+
color?: string;
|
|
669
|
+
background?: string;
|
|
670
|
+
radius?: string;
|
|
671
|
+
maxWidth?: string;
|
|
672
|
+
minHeight?: string;
|
|
673
|
+
gap?: string;
|
|
674
|
+
zIndex?: string | number;
|
|
675
|
+
paddingX?: string;
|
|
676
|
+
paddingY?: string;
|
|
677
|
+
fontSize?: string;
|
|
678
|
+
fontWeight?: string | number;
|
|
679
|
+
textAlign?: string;
|
|
680
|
+
caretColor?: string;
|
|
681
|
+
caretSize?: string | number;
|
|
682
|
+
}
|
|
683
|
+
interface FileUploadTokens extends TypographyTokens, ResolvedTokenMap {
|
|
684
|
+
container?: {
|
|
685
|
+
background?: string;
|
|
686
|
+
padding?: string;
|
|
687
|
+
radius?: string;
|
|
688
|
+
};
|
|
689
|
+
dropzone?: {
|
|
690
|
+
borderWidth?: string;
|
|
691
|
+
borderStyle?: string;
|
|
692
|
+
borderColor?: Record<string, string>;
|
|
693
|
+
gap?: string;
|
|
694
|
+
};
|
|
695
|
+
icon?: {
|
|
696
|
+
size?: string;
|
|
697
|
+
wrapperSize?: string;
|
|
698
|
+
color?: string;
|
|
699
|
+
wrapperBg?: string;
|
|
700
|
+
wrapperRadius?: string;
|
|
701
|
+
};
|
|
702
|
+
title?: FontSizeTokens & {
|
|
703
|
+
color?: string;
|
|
704
|
+
};
|
|
705
|
+
description?: FontSizeTokens & {
|
|
706
|
+
color?: string;
|
|
707
|
+
};
|
|
708
|
+
}
|
|
709
|
+
interface LoaderTokens extends TypographyTokens, ResolvedTokenMap {
|
|
710
|
+
color?: string;
|
|
711
|
+
sizes?: Record<string, {
|
|
712
|
+
spinnerSize?: string | number;
|
|
713
|
+
size?: string | number;
|
|
714
|
+
minWidth?: string;
|
|
715
|
+
maxWidth?: string;
|
|
716
|
+
minHeight?: string;
|
|
717
|
+
paddingX?: string;
|
|
718
|
+
paddingY?: string;
|
|
719
|
+
contentGap?: string;
|
|
720
|
+
textGap?: string;
|
|
721
|
+
labelFontSize?: string;
|
|
722
|
+
descriptionFontSize?: string;
|
|
723
|
+
labelFontWeight?: string | number;
|
|
724
|
+
descriptionFontWeight?: string | number;
|
|
725
|
+
labelColor?: string;
|
|
726
|
+
descriptionColor?: string;
|
|
727
|
+
}>;
|
|
728
|
+
variants?: Record<string, {
|
|
729
|
+
color?: string;
|
|
730
|
+
}>;
|
|
731
|
+
}
|
|
732
|
+
interface EmptyStateTokens extends TypographyTokens, ResolvedTokenMap {
|
|
733
|
+
container?: {
|
|
734
|
+
background?: string;
|
|
735
|
+
paddingY?: string;
|
|
736
|
+
paddingX?: string;
|
|
737
|
+
gap?: string;
|
|
738
|
+
};
|
|
739
|
+
content?: {
|
|
740
|
+
gap?: string;
|
|
741
|
+
};
|
|
742
|
+
text?: {
|
|
743
|
+
gap?: string;
|
|
744
|
+
};
|
|
745
|
+
actions?: {
|
|
746
|
+
gap?: string;
|
|
747
|
+
};
|
|
748
|
+
icon?: {
|
|
749
|
+
containerPadding?: string;
|
|
750
|
+
color?: string;
|
|
751
|
+
};
|
|
752
|
+
minWidth?: string;
|
|
753
|
+
maxWidth?: string;
|
|
754
|
+
iconSize?: string;
|
|
755
|
+
titleSize?: string;
|
|
756
|
+
descriptionSize?: string;
|
|
757
|
+
title?: {
|
|
758
|
+
color?: string;
|
|
759
|
+
fontWeight?: string | number;
|
|
760
|
+
};
|
|
761
|
+
description?: {
|
|
762
|
+
color?: string;
|
|
763
|
+
fontWeight?: string | number;
|
|
764
|
+
};
|
|
765
|
+
}
|
|
766
|
+
interface ProgressTokens extends TypographyTokens, ResolvedTokenMap {
|
|
767
|
+
track?: {
|
|
768
|
+
height?: string;
|
|
769
|
+
radius?: string;
|
|
770
|
+
background?: string;
|
|
771
|
+
};
|
|
772
|
+
indicator?: {
|
|
773
|
+
background?: string;
|
|
774
|
+
};
|
|
775
|
+
motion?: {
|
|
776
|
+
duration?: string;
|
|
777
|
+
easing?: string;
|
|
778
|
+
};
|
|
779
|
+
labelColor?: string;
|
|
780
|
+
labelFontSize?: string;
|
|
781
|
+
labelFontWeight?: string | number;
|
|
782
|
+
descriptionColor?: string;
|
|
783
|
+
descriptionFontSize?: string;
|
|
784
|
+
gap?: string;
|
|
785
|
+
}
|
|
786
|
+
interface BadgeTokens extends TypographyTokens, ResolvedTokenMap {
|
|
787
|
+
fontWeight?: string | number;
|
|
788
|
+
sizes?: Record<string, {
|
|
789
|
+
fontSize?: string;
|
|
790
|
+
height?: string;
|
|
791
|
+
padding?: string;
|
|
792
|
+
}>;
|
|
793
|
+
tones?: Record<string, ColorBundle>;
|
|
794
|
+
shapes?: Record<string, {
|
|
795
|
+
radius?: string;
|
|
796
|
+
}>;
|
|
797
|
+
}
|
|
798
|
+
interface AlertTokens extends TypographyTokens, ResolvedTokenMap {
|
|
799
|
+
base?: {
|
|
800
|
+
radius?: string;
|
|
801
|
+
lineHeight?: string;
|
|
802
|
+
letterSpacing?: string;
|
|
803
|
+
};
|
|
804
|
+
title?: TypographyTokens & FontSizeTokens & {
|
|
805
|
+
color?: string;
|
|
806
|
+
};
|
|
807
|
+
description?: TypographyTokens & FontSizeTokens & {
|
|
808
|
+
color?: string;
|
|
809
|
+
};
|
|
810
|
+
cta?: TypographyTokens & FontSizeTokens;
|
|
811
|
+
icon?: {
|
|
812
|
+
containerSize?: string;
|
|
813
|
+
containerRadius?: string;
|
|
814
|
+
};
|
|
815
|
+
close?: {
|
|
816
|
+
iconSize?: string;
|
|
817
|
+
};
|
|
818
|
+
sizes?: Record<string, {
|
|
819
|
+
paddingY?: string;
|
|
820
|
+
paddingX?: string;
|
|
821
|
+
gap?: string;
|
|
822
|
+
minHeight?: string;
|
|
823
|
+
titleMaxLines?: number;
|
|
824
|
+
descriptionMaxLines?: number;
|
|
825
|
+
}>;
|
|
826
|
+
tones?: Record<string, {
|
|
827
|
+
background?: string;
|
|
828
|
+
border?: string;
|
|
829
|
+
action?: string;
|
|
830
|
+
iconColor?: string;
|
|
831
|
+
iconBg?: string;
|
|
832
|
+
}>;
|
|
833
|
+
}
|
|
834
|
+
interface DropdownTokens extends TypographyTokens, ResolvedTokenMap {
|
|
835
|
+
background?: string;
|
|
836
|
+
color?: string;
|
|
837
|
+
fontSize?: string;
|
|
838
|
+
fontWeight?: string | number;
|
|
839
|
+
border?: string;
|
|
840
|
+
radius?: string;
|
|
841
|
+
shadow?: string;
|
|
842
|
+
item?: {
|
|
843
|
+
color?: string;
|
|
844
|
+
fontSize?: string;
|
|
845
|
+
fontWeight?: string | number;
|
|
846
|
+
background?: string;
|
|
847
|
+
hoverBackground?: string;
|
|
848
|
+
borderRadius?: string;
|
|
849
|
+
activeBackground?: string;
|
|
850
|
+
disabledOpacity?: string | number;
|
|
851
|
+
iconSize?: string;
|
|
852
|
+
iconColor?: string;
|
|
853
|
+
};
|
|
854
|
+
section?: {
|
|
855
|
+
separatorColor?: string;
|
|
856
|
+
};
|
|
857
|
+
}
|
|
858
|
+
interface TableTokens extends TypographyTokens, ResolvedTokenMap {
|
|
859
|
+
background?: string;
|
|
860
|
+
border?: string;
|
|
861
|
+
radius?: string;
|
|
862
|
+
shadow?: string;
|
|
863
|
+
headerBackground?: string;
|
|
864
|
+
headerTextColor?: string;
|
|
865
|
+
headerFontSize?: string;
|
|
866
|
+
headerFontWeight?: string | number;
|
|
867
|
+
rowHoverBackground?: string;
|
|
868
|
+
rowSelectedBackground?: string;
|
|
869
|
+
cellTextColor?: string;
|
|
870
|
+
cellFontSize?: string;
|
|
871
|
+
descriptionColor?: string;
|
|
872
|
+
descriptionFontSize?: string;
|
|
873
|
+
descriptionFontWeight?: string | number;
|
|
874
|
+
}
|
|
875
|
+
interface ChartsTokens extends TypographyTokens, ResolvedTokenMap {
|
|
876
|
+
height?: string | number;
|
|
877
|
+
backgroundColor?: string;
|
|
878
|
+
borderColor?: string;
|
|
879
|
+
borderRadius?: string;
|
|
880
|
+
padding?: string;
|
|
881
|
+
title?: FontSizeTokens & {
|
|
882
|
+
color?: string;
|
|
883
|
+
};
|
|
884
|
+
subtitle?: FontSizeTokens & {
|
|
885
|
+
color?: string;
|
|
886
|
+
};
|
|
887
|
+
grid?: {
|
|
888
|
+
color?: string;
|
|
889
|
+
dasharray?: string;
|
|
890
|
+
};
|
|
891
|
+
axis?: {
|
|
892
|
+
lineColor?: string;
|
|
893
|
+
labelColor?: string;
|
|
894
|
+
fontSize?: string;
|
|
895
|
+
};
|
|
896
|
+
baseline?: {
|
|
897
|
+
color?: string;
|
|
898
|
+
strokeWidth?: string | number;
|
|
899
|
+
dasharray?: string;
|
|
900
|
+
};
|
|
901
|
+
legend?: {
|
|
902
|
+
color?: string;
|
|
903
|
+
fontSize?: string;
|
|
904
|
+
fontWeight?: string | number;
|
|
905
|
+
dotSize?: string | number;
|
|
906
|
+
gap?: string;
|
|
907
|
+
};
|
|
908
|
+
tooltip?: {
|
|
909
|
+
background?: string;
|
|
910
|
+
borderColor?: string;
|
|
911
|
+
radius?: string;
|
|
912
|
+
titleColor?: string;
|
|
913
|
+
valueColor?: string;
|
|
914
|
+
titleFontSize?: string;
|
|
915
|
+
titleFontWeight?: string | number;
|
|
916
|
+
valueFontSize?: string;
|
|
917
|
+
valueFontWeight?: string | number;
|
|
918
|
+
};
|
|
919
|
+
palette?: string[];
|
|
920
|
+
line?: {
|
|
921
|
+
stroke?: string;
|
|
922
|
+
strokeWidth?: string | number;
|
|
923
|
+
areaFrom?: string;
|
|
924
|
+
areaTo?: string;
|
|
925
|
+
curveType?: string;
|
|
926
|
+
activeDotRadius?: number;
|
|
927
|
+
palette?: string[];
|
|
928
|
+
};
|
|
929
|
+
bar?: {
|
|
930
|
+
radius?: string | number;
|
|
931
|
+
gap?: string | number;
|
|
932
|
+
categoryGap?: string | number;
|
|
933
|
+
maxBarSize?: number;
|
|
934
|
+
palette?: string[];
|
|
935
|
+
};
|
|
936
|
+
pie?: {
|
|
937
|
+
innerRadius?: string | number;
|
|
938
|
+
outerRadius?: string | number;
|
|
939
|
+
paddingAngle?: number;
|
|
940
|
+
strokeColor?: string;
|
|
941
|
+
strokeWidth?: string | number;
|
|
942
|
+
palette?: string[];
|
|
943
|
+
};
|
|
944
|
+
donut?: {
|
|
945
|
+
innerRadius?: string | number;
|
|
946
|
+
outerRadius?: string | number;
|
|
947
|
+
centerValueColor?: string;
|
|
948
|
+
centerValueSize?: string;
|
|
949
|
+
centerValueWeight?: string | number;
|
|
950
|
+
centerLabelColor?: string;
|
|
951
|
+
centerLabelSize?: string;
|
|
952
|
+
centerLabelWeight?: string | number;
|
|
953
|
+
};
|
|
954
|
+
emptyState?: TypographyTokens & FontSizeTokens & {
|
|
955
|
+
color?: string;
|
|
956
|
+
};
|
|
957
|
+
}
|
|
958
|
+
interface AccordionTokens extends TypographyTokens, ResolvedTokenMap {
|
|
959
|
+
background?: string;
|
|
960
|
+
borderColor?: string;
|
|
961
|
+
radius?: string;
|
|
962
|
+
borderWidth?: string;
|
|
963
|
+
fontWeight?: string | number;
|
|
964
|
+
text?: {
|
|
965
|
+
title?: string;
|
|
966
|
+
content?: string;
|
|
967
|
+
icon?: string;
|
|
968
|
+
};
|
|
969
|
+
states?: {
|
|
970
|
+
hover?: {
|
|
971
|
+
text?: string;
|
|
972
|
+
};
|
|
973
|
+
focus?: {
|
|
974
|
+
borderColor?: string;
|
|
975
|
+
};
|
|
976
|
+
};
|
|
977
|
+
sizes?: Record<string, {
|
|
978
|
+
trigger?: FontSizeTokens;
|
|
979
|
+
}>;
|
|
980
|
+
}
|
|
981
|
+
interface AvatarTokens extends TypographyTokens, ResolvedTokenMap {
|
|
982
|
+
fontFamily?: string;
|
|
983
|
+
fallback?: {
|
|
984
|
+
background?: string;
|
|
985
|
+
color?: string;
|
|
986
|
+
fontWeight?: string | number;
|
|
987
|
+
};
|
|
988
|
+
shapes?: {
|
|
989
|
+
radius?: string;
|
|
990
|
+
};
|
|
991
|
+
sizes?: Record<string, {
|
|
992
|
+
size?: string;
|
|
993
|
+
border?: string;
|
|
994
|
+
fontSize?: string;
|
|
995
|
+
}>;
|
|
996
|
+
}
|
|
997
|
+
interface IntegrationCardTokens extends ResolvedTokenMap {
|
|
998
|
+
backgroundColor?: string;
|
|
999
|
+
borderColor?: string;
|
|
1000
|
+
borderRadius?: string;
|
|
1001
|
+
title?: {
|
|
1002
|
+
color?: string;
|
|
1003
|
+
};
|
|
1004
|
+
description?: {
|
|
1005
|
+
color?: string;
|
|
1006
|
+
};
|
|
1007
|
+
link?: {
|
|
1008
|
+
color?: string;
|
|
1009
|
+
};
|
|
1010
|
+
}
|
|
1011
|
+
interface PromoBannerTokens extends TypographyTokens, ResolvedTokenMap {
|
|
1012
|
+
background?: string;
|
|
1013
|
+
border?: string;
|
|
1014
|
+
iconBg?: string;
|
|
1015
|
+
iconColor?: string;
|
|
1016
|
+
action?: string;
|
|
1017
|
+
borderRadius?: string;
|
|
1018
|
+
padding?: string;
|
|
1019
|
+
imageBg?: string;
|
|
1020
|
+
imageRadius?: string;
|
|
1021
|
+
title?: TypographyTokens & FontSizeTokens & {
|
|
1022
|
+
color?: string;
|
|
1023
|
+
};
|
|
1024
|
+
description?: TypographyTokens & FontSizeTokens & {
|
|
1025
|
+
color?: string;
|
|
1026
|
+
};
|
|
1027
|
+
variants?: Record<string, {
|
|
1028
|
+
background?: string;
|
|
1029
|
+
border?: string;
|
|
1030
|
+
iconBg?: string;
|
|
1031
|
+
iconColor?: string;
|
|
1032
|
+
action?: string;
|
|
1033
|
+
borderRadius?: string;
|
|
1034
|
+
padding?: string;
|
|
1035
|
+
imageBg?: string;
|
|
1036
|
+
imageRadius?: string;
|
|
1037
|
+
}>;
|
|
1038
|
+
}
|
|
1039
|
+
interface DragSliderTokens extends ResolvedTokenMap {
|
|
1040
|
+
gap?: string;
|
|
1041
|
+
cursorGrab?: string;
|
|
1042
|
+
cursorGrabbing?: string;
|
|
1043
|
+
}
|
|
1044
|
+
interface CardTokens extends ResolvedTokenMap {
|
|
1045
|
+
backgroundColor?: string;
|
|
1046
|
+
borderColor?: string;
|
|
1047
|
+
color?: string;
|
|
1048
|
+
borderRadius?: string;
|
|
1049
|
+
padding?: string;
|
|
1050
|
+
title?: {
|
|
1051
|
+
fontSize?: string;
|
|
1052
|
+
fontWeight?: string | number;
|
|
1053
|
+
letterSpacing?: string;
|
|
1054
|
+
lineHeight?: string;
|
|
1055
|
+
};
|
|
1056
|
+
}
|
|
1057
|
+
interface BannerTokens extends ResolvedTokenMap {
|
|
1058
|
+
tones?: Record<string, {
|
|
1059
|
+
background?: string;
|
|
1060
|
+
border?: string;
|
|
1061
|
+
text?: string;
|
|
1062
|
+
iconBg?: string;
|
|
1063
|
+
iconColor?: string;
|
|
1064
|
+
action?: string;
|
|
1065
|
+
}>;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
type ButtonProps = React$1.ComponentProps<'button'> & {
|
|
1069
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1070
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'neutral';
|
|
1071
|
+
size?: 'small' | 'medium' | 'large' | 'icon' | 'icon-small' | 'icon-large';
|
|
1072
|
+
asChild?: boolean;
|
|
1073
|
+
textPaddingX?: string | number;
|
|
1074
|
+
startIcon?: React$1.ReactNode;
|
|
1075
|
+
endIcon?: React$1.ReactNode;
|
|
1076
|
+
loading?: boolean;
|
|
1077
|
+
loadingLabel?: React$1.ReactNode;
|
|
1078
|
+
};
|
|
1079
|
+
declare const buttonBaseClasses: (props?: ({
|
|
1080
|
+
variant?: "primary" | "secondary" | "tertiary" | "neutral" | null | undefined;
|
|
1081
|
+
size?: "icon" | "sm" | "md" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
1082
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1083
|
+
declare function Button({ className, variant, size, asChild, tokens, textPaddingX, startIcon, endIcon, loading, loadingLabel, style, children, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
1084
|
+
|
|
1085
|
+
type AvatarSize = 'sm' | 'md' | 'lg';
|
|
1086
|
+
type AvatarProps = React$1.ComponentProps<typeof AvatarPrimitive.Root> & {
|
|
1087
|
+
size?: AvatarSize;
|
|
1088
|
+
src?: string;
|
|
1089
|
+
alt?: string;
|
|
1090
|
+
fallback?: React$1.ReactNode;
|
|
1091
|
+
name?: string;
|
|
1092
|
+
imageClassName?: string;
|
|
1093
|
+
fallbackClassName?: string;
|
|
1094
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1095
|
+
asChild?: boolean;
|
|
1096
|
+
};
|
|
1097
|
+
declare function Avatar({ className, size, src, alt, fallback, name, imageClassName, fallbackClassName, tokens, asChild, style, children, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
|
|
1098
|
+
declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime.JSX.Element;
|
|
1099
|
+
declare function AvatarFallback({ className, ...props }: React$1.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime.JSX.Element;
|
|
1100
|
+
|
|
1101
|
+
type ListItemStatus = {
|
|
1102
|
+
label: string;
|
|
1103
|
+
variant?: 'default' | 'secondary' | 'destructive' | 'outline';
|
|
1104
|
+
};
|
|
1105
|
+
type ListItemProps = {
|
|
1106
|
+
id: string;
|
|
1107
|
+
/** Texto superior (ej: fecha) */
|
|
1108
|
+
overline?: string;
|
|
1109
|
+
/** Título principal */
|
|
1110
|
+
title: string;
|
|
1111
|
+
/** Subtítulo opcional */
|
|
1112
|
+
subtitle?: string;
|
|
1113
|
+
/** Valor alineado a la derecha */
|
|
1114
|
+
amount?: string;
|
|
1115
|
+
/** Estado opcional (badge) */
|
|
1116
|
+
status?: ListItemStatus;
|
|
1117
|
+
/** Click del item completo */
|
|
1118
|
+
onItemClick?: (id: string) => void;
|
|
1119
|
+
/** Clases extra */
|
|
1120
|
+
className?: string;
|
|
1121
|
+
};
|
|
1122
|
+
declare function ListItem({ id, overline, title, subtitle, amount, status, onItemClick, className, }: ListItemProps): react_jsx_runtime.JSX.Element;
|
|
1123
|
+
|
|
1124
|
+
declare function Table({ className, tokens, ...props }: React$1.ComponentProps<'table'> & {
|
|
1125
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1126
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1127
|
+
declare function TableHeader(props: React$1.ComponentProps<'thead'>): react_jsx_runtime.JSX.Element;
|
|
1128
|
+
declare function TableBody(props: React$1.ComponentProps<'tbody'>): react_jsx_runtime.JSX.Element;
|
|
1129
|
+
declare function TableRow(props: React$1.ComponentProps<'tr'>): react_jsx_runtime.JSX.Element;
|
|
1130
|
+
declare function TableHead(props: React$1.ComponentProps<'th'>): react_jsx_runtime.JSX.Element;
|
|
1131
|
+
declare function TableCell(props: React$1.ComponentProps<'td'>): react_jsx_runtime.JSX.Element;
|
|
1132
|
+
declare function TableCellDescription({ className, ...props }: React$1.ComponentProps<'p'>): react_jsx_runtime.JSX.Element;
|
|
1133
|
+
declare function TableFooter({ children, className, ...props }: React$1.ComponentProps<'tfoot'>): react_jsx_runtime.JSX.Element;
|
|
1134
|
+
declare function TableCaption(props: React$1.ComponentProps<'caption'>): react_jsx_runtime.JSX.Element;
|
|
1135
|
+
|
|
1136
|
+
interface DropdownItemProps {
|
|
1137
|
+
iconLeft?: React$1.ReactNode;
|
|
1138
|
+
iconRight?: React$1.ReactNode;
|
|
1139
|
+
selected?: boolean;
|
|
1140
|
+
disabled?: boolean;
|
|
1141
|
+
destructive?: boolean;
|
|
1142
|
+
}
|
|
1143
|
+
type ThemedProps = {
|
|
1144
|
+
variant?: string;
|
|
1145
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1146
|
+
};
|
|
1147
|
+
declare function DropdownMenu(props: React$1.ComponentProps<typeof DropdownMenuPrimitive.Root> & {
|
|
1148
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1149
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1150
|
+
declare function DropdownMenuPortal(props: React$1.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
1151
|
+
declare function DropdownMenuTrigger(props: React$1.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
1152
|
+
declare function DropdownMenuContent({ className, sideOffset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Content> & ThemedProps): react_jsx_runtime.JSX.Element | null;
|
|
1153
|
+
declare function DropdownMenuGroup(props: React$1.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
1154
|
+
declare function DropdownMenuItem({ className, iconLeft, iconRight, selected, destructive, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Item> & DropdownItemProps): react_jsx_runtime.JSX.Element;
|
|
1155
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
1156
|
+
declare function DropdownMenuRadioGroup(props: React$1.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
1157
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
1158
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
1159
|
+
inset?: boolean;
|
|
1160
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1161
|
+
declare function DropdownMenuSeparator(props: React$1.ComponentProps<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
1162
|
+
declare function DropdownMenuShortcut(props: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
1163
|
+
declare function DropdownMenuSub(props: React$1.ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
1164
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
1165
|
+
inset?: boolean;
|
|
1166
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1167
|
+
declare function DropdownMenuSubContent({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
1168
|
+
|
|
1169
|
+
declare function Popover({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
1170
|
+
declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
1171
|
+
declare function PopoverContent({ className, align, sideOffset, tokens, style, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content> & {
|
|
1172
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1173
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1174
|
+
declare function PopoverAnchor({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime.JSX.Element;
|
|
1175
|
+
|
|
1176
|
+
declare function TooltipProvider({ delayDuration, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
|
|
1177
|
+
declare function Tooltip({ tokens, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root> & {
|
|
1178
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1179
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1180
|
+
declare function TooltipTrigger({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
1181
|
+
declare function TooltipContent({ className, sideOffset, tokens, children, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Content> & {
|
|
1182
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1183
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1184
|
+
|
|
1185
|
+
declare const alertVariants: (props?: ({
|
|
1186
|
+
size?: "inline" | "full-width" | "stacked" | null | undefined;
|
|
1187
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1188
|
+
type AlertTone = 'success' | 'warning' | 'error' | 'info';
|
|
1189
|
+
interface AlertProps extends Omit<React$1.ComponentProps<'div'>, 'title'>, VariantProps<typeof alertVariants> {
|
|
1190
|
+
tone?: AlertTone;
|
|
1191
|
+
icon: React$1.ReactNode;
|
|
1192
|
+
title: React$1.ReactNode;
|
|
1193
|
+
description: React$1.ReactNode;
|
|
1194
|
+
subtitle?: React$1.ReactNode;
|
|
1195
|
+
ctaLabel?: React$1.ReactNode;
|
|
1196
|
+
ctaHref?: string;
|
|
1197
|
+
ctaTarget?: React$1.HTMLAttributeAnchorTarget;
|
|
1198
|
+
onCtaClick?: () => void;
|
|
1199
|
+
closeLabel?: string;
|
|
1200
|
+
label?: React$1.ReactNode;
|
|
1201
|
+
onClose?: () => void;
|
|
1202
|
+
titleMaxLines?: number;
|
|
1203
|
+
descriptionMaxLines?: number;
|
|
1204
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1205
|
+
}
|
|
1206
|
+
declare function Alert({ className, style, size, tone, icon, title, description, subtitle, ctaLabel, ctaHref, ctaTarget, onCtaClick, closeLabel, label, onClose, titleMaxLines, descriptionMaxLines, tokens, ...props }: AlertProps): react_jsx_runtime.JSX.Element;
|
|
1207
|
+
|
|
1208
|
+
type BadgeTone = 'neutral' | 'brand' | 'success' | 'info' | 'warning' | 'error';
|
|
1209
|
+
type BadgeSize = 'small' | 'medium' | 'large';
|
|
1210
|
+
type BadgeShape = 'rounded' | 'square';
|
|
1211
|
+
declare function Badge({ className, tone, size, shape, asChild, tokens, style, ...props }: React$1.ComponentProps<'span'> & {
|
|
1212
|
+
children: React$1.ReactNode;
|
|
1213
|
+
tone?: BadgeTone;
|
|
1214
|
+
size?: BadgeSize;
|
|
1215
|
+
shape?: BadgeShape;
|
|
1216
|
+
asChild?: boolean;
|
|
1217
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1218
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1219
|
+
|
|
1220
|
+
type EmptyStateProps = {
|
|
1221
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1222
|
+
icon?: React$1.ReactNode;
|
|
1223
|
+
title: React$1.ReactNode;
|
|
1224
|
+
description?: React$1.ReactNode;
|
|
1225
|
+
actions?: React$1.ReactNode;
|
|
1226
|
+
align?: 'center' | 'left';
|
|
1227
|
+
size?: 'small' | 'medium';
|
|
1228
|
+
className?: string;
|
|
1229
|
+
};
|
|
1230
|
+
declare function EmptyState({ icon, title, description, actions, align, className, size, tokens, }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
1231
|
+
|
|
1232
|
+
type FeedbackSize = 'small' | 'medium';
|
|
1233
|
+
type FeedbackProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
1234
|
+
title?: string;
|
|
1235
|
+
description?: string;
|
|
1236
|
+
img?: string;
|
|
1237
|
+
imgAlt?: string;
|
|
1238
|
+
btnPrimary?: string;
|
|
1239
|
+
btnSecondary?: string;
|
|
1240
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1241
|
+
size: FeedbackSize;
|
|
1242
|
+
onClickPrimary: () => void;
|
|
1243
|
+
onClickSecondary: () => void;
|
|
1244
|
+
};
|
|
1245
|
+
declare const Feedback: ({ size, tokens, title, imgAlt, description, img, btnPrimary, btnSecondary, onClickPrimary, onClickSecondary, ...props }: FeedbackProps) => react_jsx_runtime.JSX.Element;
|
|
1246
|
+
|
|
1247
|
+
type FileUploadState = 'default' | 'drag' | 'error' | 'disabled';
|
|
1248
|
+
type FileUploadProps = {
|
|
1249
|
+
accept?: string[];
|
|
1250
|
+
maxSizeMB?: number;
|
|
1251
|
+
multiple?: boolean;
|
|
1252
|
+
title?: string;
|
|
1253
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1254
|
+
description?: string;
|
|
1255
|
+
buttonLabel?: string;
|
|
1256
|
+
icon?: React$1.ReactNode;
|
|
1257
|
+
state?: FileUploadState;
|
|
1258
|
+
className?: string;
|
|
1259
|
+
isDragging?: boolean;
|
|
1260
|
+
onFilesChange?: (files: File[]) => void;
|
|
1261
|
+
onError?: (errors: string[]) => void;
|
|
1262
|
+
actions?: React$1.ReactNode;
|
|
1263
|
+
};
|
|
1264
|
+
declare function FileUpload({ accept, maxSizeMB, multiple, title, description, buttonLabel, icon, state, className, actions, tokens, onFilesChange, onError, }: FileUploadProps): react_jsx_runtime.JSX.Element;
|
|
1265
|
+
|
|
1266
|
+
type LoaderSize = 'small' | 'medium' | 'large' | 'extraLarge';
|
|
1267
|
+
type LoaderVariant = 'default' | 'primary';
|
|
1268
|
+
type LoaderProps = React$1.ComponentProps<'div'> & {
|
|
1269
|
+
size?: LoaderSize;
|
|
1270
|
+
variant?: LoaderVariant;
|
|
1271
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1272
|
+
label?: string;
|
|
1273
|
+
description?: React$1.ReactNode;
|
|
1274
|
+
spinnerClassName?: string;
|
|
1275
|
+
spinnerProps?: Omit<React$1.ComponentProps<typeof Loader2Icon>, 'size'>;
|
|
1276
|
+
};
|
|
1277
|
+
declare function Loader({ className, style, size, variant, tokens, label, description, spinnerClassName, spinnerProps, ...props }: LoaderProps): react_jsx_runtime.JSX.Element;
|
|
1278
|
+
|
|
1279
|
+
type ProgressProps = React$1.ComponentProps<typeof ProgressPrimitive.Root> & {
|
|
1280
|
+
value: number;
|
|
1281
|
+
label?: string;
|
|
1282
|
+
showValue?: boolean;
|
|
1283
|
+
description?: string;
|
|
1284
|
+
icon?: React$1.ReactNode;
|
|
1285
|
+
variant?: string;
|
|
1286
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1287
|
+
};
|
|
1288
|
+
declare function Progress({ className, style, value, label, showValue, description, icon, variant, tokens, ...props }: ProgressProps): react_jsx_runtime.JSX.Element;
|
|
1289
|
+
|
|
1290
|
+
type Variant = 'primary' | 'secondary' | 'tertiary';
|
|
1291
|
+
type Orientation = 'horizontal' | 'vertical';
|
|
1292
|
+
type ImagePosition = 'left' | 'right' | 'top' | 'bottom';
|
|
1293
|
+
type ContentAlign = 'left' | 'center';
|
|
1294
|
+
type ImageDisplay = 'inline' | 'background';
|
|
1295
|
+
type HeroContentPosition = 'top' | 'center' | 'between' | 'bottom';
|
|
1296
|
+
declare const bannerVariants: (props?: ({
|
|
1297
|
+
size?: "compact" | "full" | null | undefined;
|
|
1298
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
1299
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1300
|
+
type BannerProps = React$1.ComponentProps<'div'> & VariantProps<typeof bannerVariants> & {
|
|
1301
|
+
asChild?: boolean;
|
|
1302
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1303
|
+
variant?: Variant;
|
|
1304
|
+
orientation?: Orientation;
|
|
1305
|
+
imagePosition?: ImagePosition;
|
|
1306
|
+
contentAlign?: ContentAlign;
|
|
1307
|
+
imageDisplay?: ImageDisplay;
|
|
1308
|
+
heroContentPosition?: HeroContentPosition;
|
|
1309
|
+
heroMinHeight?: string;
|
|
1310
|
+
heroOverlay?: string;
|
|
1311
|
+
title: React$1.ReactNode;
|
|
1312
|
+
description?: React$1.ReactNode;
|
|
1313
|
+
cta?: React$1.ReactNode;
|
|
1314
|
+
imageSrc: string;
|
|
1315
|
+
imageAlt?: string;
|
|
1316
|
+
icon?: React$1.ReactNode;
|
|
1317
|
+
endSlot?: React$1.ReactNode;
|
|
1318
|
+
};
|
|
1319
|
+
declare function Banner({ className, asChild, tokens, variant, size, orientation, imagePosition, contentAlign, imageDisplay, heroContentPosition, heroMinHeight, heroOverlay, title, description, cta, imageSrc, imageAlt, icon, endSlot, ...props }: BannerProps): react_jsx_runtime.JSX.Element;
|
|
1320
|
+
|
|
1321
|
+
type CardProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1322
|
+
title?: React$1.ReactNode;
|
|
1323
|
+
action?: React$1.ReactNode;
|
|
1324
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1325
|
+
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
1326
|
+
width?: number | string;
|
|
1327
|
+
};
|
|
1328
|
+
declare function Card({ className, title, action, tokens, variant, width, children, style, ...props }: CardProps): react_jsx_runtime.JSX.Element;
|
|
1329
|
+
|
|
1330
|
+
type DragSliderProps = {
|
|
1331
|
+
children: React$1.ReactNode;
|
|
1332
|
+
className?: string;
|
|
1333
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1334
|
+
};
|
|
1335
|
+
declare function DragSlider({ children, className, tokens: customTokens, }: DragSliderProps): react_jsx_runtime.JSX.Element;
|
|
1336
|
+
|
|
1337
|
+
declare const integrationCardVariants: (props?: ({
|
|
1338
|
+
variant?: "default" | "none" | "subtle" | null | undefined;
|
|
1339
|
+
logoSize?: "small" | "large" | null | undefined;
|
|
1340
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1341
|
+
|
|
1342
|
+
type IntegrationCardProps = React$1.ComponentProps<'div'> & VariantProps<typeof integrationCardVariants> & {
|
|
1343
|
+
asChild?: boolean;
|
|
1344
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1345
|
+
badgeText?: React$1.ReactNode;
|
|
1346
|
+
logoSlot?: React$1.ReactNode;
|
|
1347
|
+
logoSrc?: string;
|
|
1348
|
+
logoAlt?: string;
|
|
1349
|
+
initials?: React$1.ReactNode;
|
|
1350
|
+
bannerClassName?: string;
|
|
1351
|
+
title: React$1.ReactNode;
|
|
1352
|
+
description?: React$1.ReactNode;
|
|
1353
|
+
linkLabel?: React$1.ReactNode;
|
|
1354
|
+
linkHref?: string;
|
|
1355
|
+
onLinkClick?: () => void;
|
|
1356
|
+
logoClassName?: string;
|
|
1357
|
+
badgeClassName?: string;
|
|
1358
|
+
contentClassName?: string;
|
|
1359
|
+
linkClassName?: string;
|
|
1360
|
+
};
|
|
1361
|
+
declare function IntegrationCard({ className, variant, logoSize, asChild, tokens, badgeText, logoSlot, logoSrc, logoAlt, initials, bannerClassName, title, description, linkLabel, linkHref, onLinkClick, logoClassName, badgeClassName, contentClassName, linkClassName, style, ...props }: IntegrationCardProps): react_jsx_runtime.JSX.Element;
|
|
1362
|
+
|
|
1363
|
+
interface ColorExampleProps {
|
|
1364
|
+
className?: string;
|
|
1365
|
+
colorToken: string;
|
|
1366
|
+
colorName: string;
|
|
1367
|
+
}
|
|
1368
|
+
declare function ColorExample({ className, colorToken, colorName }: ColorExampleProps): react_jsx_runtime.JSX.Element;
|
|
1369
|
+
|
|
1370
|
+
declare const accordionTriggerVariants: (props?: ({
|
|
1371
|
+
size?: "sm" | "md" | null | undefined;
|
|
1372
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1373
|
+
declare const accordionContentVariants: (props?: ({
|
|
1374
|
+
size?: "sm" | "md" | null | undefined;
|
|
1375
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1376
|
+
|
|
1377
|
+
declare function Accordion({ size, tokens, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root> & {
|
|
1378
|
+
size?: 'sm' | 'md';
|
|
1379
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1380
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1381
|
+
declare function AccordionItem({ className, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
1382
|
+
declare function AccordionTrigger({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Trigger> & {
|
|
1383
|
+
size?: 'sm' | 'md';
|
|
1384
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1385
|
+
declare function AccordionContent({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Content> & {
|
|
1386
|
+
size?: 'sm' | 'md';
|
|
1387
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1388
|
+
|
|
1389
|
+
type ExpansionPanelStatus = 'incomplete' | 'complete' | 'blocked';
|
|
1390
|
+
type ExpansionPanelSize = 'small' | 'medium';
|
|
1391
|
+
type ExpansionPanelProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
1392
|
+
title?: string;
|
|
1393
|
+
description?: string;
|
|
1394
|
+
btnLabel?: string;
|
|
1395
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1396
|
+
size: ExpansionPanelSize;
|
|
1397
|
+
status: ExpansionPanelStatus;
|
|
1398
|
+
children?: React.ReactNode;
|
|
1399
|
+
isDisabled?: boolean;
|
|
1400
|
+
onSubmit: () => void;
|
|
1401
|
+
};
|
|
1402
|
+
declare const ExpansionPanel: ({ size, title, description, btnLabel, tokens, status, children, isDisabled, onSubmit, ...props }: ExpansionPanelProps) => react_jsx_runtime.JSX.Element;
|
|
1403
|
+
|
|
1404
|
+
type ModuleBoxProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1405
|
+
title?: React$1.ReactNode;
|
|
1406
|
+
headerActions?: React$1.ReactNode;
|
|
1407
|
+
footerActions?: React$1.ReactNode;
|
|
1408
|
+
slotPlaceholder?: React$1.ReactNode;
|
|
1409
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1410
|
+
headerClassName?: string;
|
|
1411
|
+
slotClassName?: string;
|
|
1412
|
+
footerClassName?: string;
|
|
1413
|
+
};
|
|
1414
|
+
declare function ModuleBox({ className, title, headerActions, footerActions, slotPlaceholder, tokens, headerClassName, slotClassName, footerClassName, children, style, ...props }: ModuleBoxProps): react_jsx_runtime.JSX.Element;
|
|
1415
|
+
|
|
1416
|
+
type ChartType = 'bar' | 'line' | 'donut' | 'pie';
|
|
1417
|
+
type ChartDatum = {
|
|
1418
|
+
label: string;
|
|
1419
|
+
value: number;
|
|
1420
|
+
color?: string;
|
|
1421
|
+
[key: string]: string | number | undefined;
|
|
1422
|
+
};
|
|
1423
|
+
type ChartsProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1424
|
+
type?: ChartType;
|
|
1425
|
+
data: ChartDatum[];
|
|
1426
|
+
title?: React$1.ReactNode;
|
|
1427
|
+
subtitle?: React$1.ReactNode;
|
|
1428
|
+
showLegend?: boolean;
|
|
1429
|
+
showGrid?: boolean;
|
|
1430
|
+
showBaseline?: boolean;
|
|
1431
|
+
showXAxis?: boolean;
|
|
1432
|
+
showYAxis?: boolean;
|
|
1433
|
+
showTooltip?: boolean;
|
|
1434
|
+
height?: number;
|
|
1435
|
+
donutCenterValue?: React$1.ReactNode;
|
|
1436
|
+
donutCenterLabel?: React$1.ReactNode;
|
|
1437
|
+
legendTitle?: React$1.ReactNode;
|
|
1438
|
+
valueFormatter?: (value: number) => string;
|
|
1439
|
+
xDataKey?: string;
|
|
1440
|
+
yDataKey?: string;
|
|
1441
|
+
nameKey?: string;
|
|
1442
|
+
showLineArea?: boolean;
|
|
1443
|
+
emptyStateLabel?: React$1.ReactNode;
|
|
1444
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1445
|
+
};
|
|
1446
|
+
declare function Charts({ className, type, data, title, subtitle, showLegend, showGrid, showBaseline, showXAxis, showYAxis, showTooltip, height, donutCenterValue, donutCenterLabel, legendTitle, valueFormatter, xDataKey, yDataKey, nameKey, showLineArea, emptyStateLabel, tokens, style, ...props }: ChartsProps): react_jsx_runtime.JSX.Element;
|
|
1447
|
+
|
|
1448
|
+
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, tokens, formatters, components, ...props }: React$1.ComponentProps<typeof DayPicker> & {
|
|
1449
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1450
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1451
|
+
|
|
1452
|
+
interface ComboboxItem {
|
|
1453
|
+
label: string;
|
|
1454
|
+
value: string;
|
|
1455
|
+
}
|
|
1456
|
+
interface ComboboxProps {
|
|
1457
|
+
value?: string;
|
|
1458
|
+
onValueChange?: (value: string) => void;
|
|
1459
|
+
placeholder?: string;
|
|
1460
|
+
items: ComboboxItem[];
|
|
1461
|
+
label?: string;
|
|
1462
|
+
size?: 'small' | 'medium';
|
|
1463
|
+
disabled?: boolean;
|
|
1464
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1465
|
+
className?: string;
|
|
1466
|
+
error?: boolean;
|
|
1467
|
+
/** Controlled open state. When omitted the component manages its own state. */
|
|
1468
|
+
open?: boolean;
|
|
1469
|
+
/** Called when the popover open state changes (controlled or uncontrolled). */
|
|
1470
|
+
onOpenChange?: (open: boolean) => void;
|
|
1471
|
+
/** Whether to close the popover after selecting an item. @default true */
|
|
1472
|
+
closeOnSelect?: boolean;
|
|
1473
|
+
/** Placeholder for the search input inside the dropdown. @default "Buscar..." */
|
|
1474
|
+
searchPlaceholder?: string;
|
|
1475
|
+
/** Ref forwarded to the inner search `<input>`. Consumers can use it to manage focus. */
|
|
1476
|
+
searchRef?: React$1.Ref<HTMLInputElement>;
|
|
1477
|
+
}
|
|
1478
|
+
declare function Combobox({ value, onValueChange, placeholder, items, label, size, error, disabled, tokens, className, open: openProp, onOpenChange, closeOnSelect, searchPlaceholder, searchRef, }: ComboboxProps): react_jsx_runtime.JSX.Element;
|
|
1479
|
+
|
|
1480
|
+
interface DatePickerInputProps extends Omit<React$1.ComponentProps<'input'>, 'size' | 'type'> {
|
|
1481
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1482
|
+
size?: 'small' | 'medium';
|
|
1483
|
+
label?: string;
|
|
1484
|
+
helperText?: string;
|
|
1485
|
+
error?: boolean;
|
|
1486
|
+
}
|
|
1487
|
+
declare function DatePickerInput({ className, size, label, helperText, error, disabled, tokens, style, ...props }: DatePickerInputProps): react_jsx_runtime.JSX.Element;
|
|
1488
|
+
|
|
1489
|
+
interface InputProps extends Omit<React$1.ComponentProps<'input'>, 'size'> {
|
|
1490
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1491
|
+
size?: 'small' | 'medium';
|
|
1492
|
+
label?: string;
|
|
1493
|
+
helperText?: string;
|
|
1494
|
+
error?: boolean;
|
|
1495
|
+
}
|
|
1496
|
+
declare function Input({ className, type, size, label, helperText, error, disabled, tokens, style, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
|
1497
|
+
|
|
1498
|
+
interface LabelProps extends React$1.ComponentProps<typeof LabelPrimitive.Root> {
|
|
1499
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1500
|
+
}
|
|
1501
|
+
declare function Label({ className, tokens, style, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
|
|
1502
|
+
|
|
1503
|
+
interface PasswordInputProps extends Omit<React$1.ComponentProps<'input'>, 'size' | 'type'> {
|
|
1504
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1505
|
+
size?: 'small' | 'medium';
|
|
1506
|
+
label?: string;
|
|
1507
|
+
helperText?: string;
|
|
1508
|
+
error?: boolean;
|
|
1509
|
+
}
|
|
1510
|
+
declare function PasswordInput({ className, size, label, helperText, error, disabled, tokens, style, ...props }: PasswordInputProps): react_jsx_runtime.JSX.Element;
|
|
1511
|
+
|
|
1512
|
+
interface SearchBarProps extends Omit<React$1.ComponentProps<'input'>, 'size' | 'type'> {
|
|
1513
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1514
|
+
size?: 'small' | 'medium';
|
|
1515
|
+
label?: string;
|
|
1516
|
+
helperText?: string;
|
|
1517
|
+
error?: boolean;
|
|
1518
|
+
}
|
|
1519
|
+
declare function SearchBar({ className, size, disabled, tokens, error, style, ...props }: SearchBarProps): react_jsx_runtime.JSX.Element;
|
|
1520
|
+
|
|
1521
|
+
interface SelectItem {
|
|
1522
|
+
label: string;
|
|
1523
|
+
value: string;
|
|
1524
|
+
}
|
|
1525
|
+
interface SelectProps {
|
|
1526
|
+
value?: string;
|
|
1527
|
+
onValueChange?: (value: string) => void;
|
|
1528
|
+
placeholder?: string;
|
|
1529
|
+
items: SelectItem[];
|
|
1530
|
+
label?: string;
|
|
1531
|
+
size?: 'small' | 'medium';
|
|
1532
|
+
disabled?: boolean;
|
|
1533
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1534
|
+
className?: string;
|
|
1535
|
+
error?: boolean;
|
|
1536
|
+
/** Controlled open state. When omitted the component manages its own state. */
|
|
1537
|
+
open?: boolean;
|
|
1538
|
+
/** Called when the popover open state changes (controlled or uncontrolled). */
|
|
1539
|
+
onOpenChange?: (open: boolean) => void;
|
|
1540
|
+
/** Whether to close the popover after selecting an item. @default true */
|
|
1541
|
+
closeOnSelect?: boolean;
|
|
1542
|
+
/** Enables a search input inside the dropdown to filter items. @default false */
|
|
1543
|
+
searchable?: boolean;
|
|
1544
|
+
/** Placeholder for the search input (only when searchable is true). @default "Buscar..." */
|
|
1545
|
+
searchPlaceholder?: string;
|
|
1546
|
+
/** Ref forwarded to the search input. Consumers can use it to manage focus. */
|
|
1547
|
+
searchRef?: React$1.Ref<HTMLInputElement>;
|
|
1548
|
+
}
|
|
1549
|
+
declare function Select({ value, onValueChange, placeholder, items, label, size, error, disabled, tokens, className, open: openProp, onOpenChange, closeOnSelect, searchable, searchPlaceholder, searchRef, }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
1550
|
+
|
|
1551
|
+
interface TextareaProps extends Omit<React$1.ComponentProps<'textarea'>, 'size'> {
|
|
1552
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1553
|
+
size?: 'small' | 'medium';
|
|
1554
|
+
label?: string;
|
|
1555
|
+
helperText?: string;
|
|
1556
|
+
error?: boolean;
|
|
1557
|
+
}
|
|
1558
|
+
declare function Textarea({ className, style, tokens, size, label, helperText, error, disabled, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
|
|
1559
|
+
|
|
1560
|
+
interface CheckboxProps extends React$1.ComponentProps<typeof CheckboxPrimitive.Root> {
|
|
1561
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1562
|
+
size?: 'regular' | 'small' | 'extraSmall';
|
|
1563
|
+
tone?: 'brand' | 'neutral' | 'destructive';
|
|
1564
|
+
label?: string;
|
|
1565
|
+
description?: string;
|
|
1566
|
+
disabled?: boolean;
|
|
1567
|
+
}
|
|
1568
|
+
declare function Checkbox({ className, tokens, size, tone, label, description, disabled, style, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
1569
|
+
|
|
1570
|
+
interface RadioGroupProps extends React$1.ComponentProps<typeof RadioGroupPrimitive.Root> {
|
|
1571
|
+
}
|
|
1572
|
+
interface RadioItemProps extends React$1.ComponentProps<typeof RadioGroupPrimitive.Item> {
|
|
1573
|
+
size?: 'regular' | 'small' | 'extraSmall';
|
|
1574
|
+
label?: string;
|
|
1575
|
+
description?: string;
|
|
1576
|
+
disabled?: boolean;
|
|
1577
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1578
|
+
}
|
|
1579
|
+
declare function RadioGroup({ className, ...props }: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
1580
|
+
declare function RadioItem({ className, size, label, description, disabled, tokens, value, ...props }: RadioItemProps): react_jsx_runtime.JSX.Element;
|
|
1581
|
+
|
|
1582
|
+
interface SwitchProps extends React$1.ComponentProps<typeof SwitchPrimitive.Root> {
|
|
1583
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1584
|
+
size?: 'regular' | 'small' | 'extraSmall';
|
|
1585
|
+
label?: string;
|
|
1586
|
+
description?: string;
|
|
1587
|
+
disabled?: boolean;
|
|
1588
|
+
}
|
|
1589
|
+
declare const Switch: ({ className, tokens, size, label, description, disabled, style, ...props }: SwitchProps) => react_jsx_runtime.JSX.Element;
|
|
1590
|
+
|
|
1591
|
+
type TileSize = 'small' | 'medium';
|
|
1592
|
+
type TileProps = HTMLAttributes<HTMLDivElement> & {
|
|
1593
|
+
title: string;
|
|
1594
|
+
size: TileSize;
|
|
1595
|
+
description?: string;
|
|
1596
|
+
isSelect?: boolean;
|
|
1597
|
+
error?: boolean;
|
|
1598
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1599
|
+
className?: string;
|
|
1600
|
+
onChange: () => void;
|
|
1601
|
+
};
|
|
1602
|
+
declare const Tile: ({ title, description, tokens, className, isSelect, error, size, onChange, }: TileProps) => react_jsx_runtime.JSX.Element;
|
|
1603
|
+
|
|
1604
|
+
type BreadcrumbSize = 'small' | 'medium';
|
|
1605
|
+
interface BreadcrumbProps extends React$1.ComponentProps<'nav'> {
|
|
1606
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1607
|
+
size?: BreadcrumbSize;
|
|
1608
|
+
}
|
|
1609
|
+
declare function Breadcrumb({ className, tokens, style, size, children, ...props }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
|
|
1610
|
+
declare function BreadcrumbList({ className, ...props }: React$1.ComponentProps<'ol'>): react_jsx_runtime.JSX.Element;
|
|
1611
|
+
declare function BreadcrumbItem({ className, ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
1612
|
+
declare function BreadcrumbLink({ asChild, className, ...props }: React$1.ComponentProps<'a'> & {
|
|
1613
|
+
asChild?: boolean;
|
|
1614
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1615
|
+
declare function BreadcrumbPage({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
1616
|
+
declare function BreadcrumbSeparator({ children, className, ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
1617
|
+
declare function BreadcrumbEllipsis({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
1618
|
+
|
|
1619
|
+
type DrawerSlotTokens = {
|
|
1620
|
+
overlay?: Partial<ThemeTokensBase>;
|
|
1621
|
+
container?: Partial<ThemeTokensBase>;
|
|
1622
|
+
close?: Partial<ThemeTokensBase>;
|
|
1623
|
+
title?: Partial<ThemeTokensBase>;
|
|
1624
|
+
description?: Partial<ThemeTokensBase>;
|
|
1625
|
+
};
|
|
1626
|
+
type DrawerProps = React$1.ComponentProps<typeof Drawer$1.Root> & {
|
|
1627
|
+
tokens?: Partial<DrawerSlotTokens>;
|
|
1628
|
+
};
|
|
1629
|
+
declare function Drawer({ tokens, ...props }: DrawerProps): react_jsx_runtime.JSX.Element;
|
|
1630
|
+
declare const DrawerTrigger: React$1.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1631
|
+
declare const DrawerPortal: typeof vaul.Portal;
|
|
1632
|
+
declare const DrawerClose: React$1.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1633
|
+
declare function DrawerOverlay({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime.JSX.Element | null;
|
|
1634
|
+
declare function DrawerContent({ className, children, ...props }: React$1.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime.JSX.Element | null;
|
|
1635
|
+
declare const DrawerHeader: ({ className, ...props }: React$1.ComponentProps<"div">) => react_jsx_runtime.JSX.Element;
|
|
1636
|
+
declare const DrawerBody: ({ className, ...props }: React$1.ComponentProps<"div">) => react_jsx_runtime.JSX.Element;
|
|
1637
|
+
declare const DrawerFooter: ({ className, ...props }: React$1.ComponentProps<"div">) => react_jsx_runtime.JSX.Element;
|
|
1638
|
+
declare function DrawerCloseButton({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime.JSX.Element;
|
|
1639
|
+
declare function DrawerTitle({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime.JSX.Element | null;
|
|
1640
|
+
declare function DrawerDescription({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime.JSX.Element | null;
|
|
1641
|
+
|
|
1642
|
+
type HeaderSize = 'desktop' | 'mobile';
|
|
1643
|
+
type HeaderProps = {
|
|
1644
|
+
title: React$1.ReactNode;
|
|
1645
|
+
description?: React$1.ReactNode;
|
|
1646
|
+
action?: React$1.ReactNode;
|
|
1647
|
+
size?: HeaderSize;
|
|
1648
|
+
className?: string;
|
|
1649
|
+
titleClassName?: string;
|
|
1650
|
+
descriptionClassName?: string;
|
|
1651
|
+
descriptionMaxLines?: number;
|
|
1652
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1653
|
+
};
|
|
1654
|
+
declare function Header({ title, description, action, size, className, titleClassName, descriptionClassName, descriptionMaxLines, tokens, }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
1655
|
+
|
|
1656
|
+
type AlertDialogAlignment = 'left' | 'center';
|
|
1657
|
+
interface AlertDialogProps extends React$1.ComponentProps<typeof AlertDialogPrimitive.Root> {
|
|
1658
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1659
|
+
alignment?: AlertDialogAlignment;
|
|
1660
|
+
size?: 'regular';
|
|
1661
|
+
}
|
|
1662
|
+
declare function AlertDialog({ tokens, alignment, size, ...props }: AlertDialogProps): react_jsx_runtime.JSX.Element;
|
|
1663
|
+
declare const AlertDialogTrigger: React$1.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1664
|
+
declare const AlertDialogPortal: React$1.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
1665
|
+
declare function AlertDialogOverlay(props: React$1.ComponentProps<typeof AlertDialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
|
|
1666
|
+
declare function AlertDialogContent({ className, alignment, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Content> & {
|
|
1667
|
+
alignment?: AlertDialogAlignment;
|
|
1668
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1669
|
+
declare function AlertDialogHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1670
|
+
declare function AlertDialogFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1671
|
+
declare function AlertDialogTitle(props: React$1.ComponentProps<typeof AlertDialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
1672
|
+
declare function AlertDialogDescription(props: React$1.ComponentProps<typeof AlertDialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
1673
|
+
declare function AlertDialogAction({ className, children, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Action>): react_jsx_runtime.JSX.Element;
|
|
1674
|
+
declare function AlertDialogCancel({ className, children, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Cancel>): react_jsx_runtime.JSX.Element;
|
|
1675
|
+
|
|
1676
|
+
type Merchant = {
|
|
1677
|
+
id: string;
|
|
1678
|
+
name: string;
|
|
1679
|
+
};
|
|
1680
|
+
type NavbarUser = {
|
|
1681
|
+
name: string;
|
|
1682
|
+
role?: string;
|
|
1683
|
+
avatarUrl?: string;
|
|
1684
|
+
menu: {
|
|
1685
|
+
id: string;
|
|
1686
|
+
label: string;
|
|
1687
|
+
onClick: () => void;
|
|
1688
|
+
}[];
|
|
1689
|
+
};
|
|
1690
|
+
type NavbarProps = {
|
|
1691
|
+
children: React$1.ReactNode;
|
|
1692
|
+
open?: boolean;
|
|
1693
|
+
expandedContent?: React$1.ReactNode;
|
|
1694
|
+
className?: string;
|
|
1695
|
+
};
|
|
1696
|
+
type NavbarComponent = React$1.FC<NavbarProps> & {
|
|
1697
|
+
Start: React$1.FC<{
|
|
1698
|
+
children: React$1.ReactNode;
|
|
1699
|
+
}>;
|
|
1700
|
+
End: React$1.FC<{
|
|
1701
|
+
children: React$1.ReactNode;
|
|
1702
|
+
}>;
|
|
1703
|
+
Slot: React$1.FC<{
|
|
1704
|
+
children: React$1.ReactNode;
|
|
1705
|
+
}>;
|
|
1706
|
+
Logo: typeof NavbarLogo;
|
|
1707
|
+
Merchant: typeof NavbarMerchant;
|
|
1708
|
+
User: typeof NavbarUserMenu;
|
|
1709
|
+
};
|
|
1710
|
+
declare const Navbar: NavbarComponent;
|
|
1711
|
+
declare function NavbarLogo({ children }: {
|
|
1712
|
+
children?: React$1.ReactNode;
|
|
1713
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1714
|
+
declare function NavbarMerchant({ merchants, currentId, onChange, }: {
|
|
1715
|
+
merchants?: Merchant[];
|
|
1716
|
+
currentId?: string;
|
|
1717
|
+
onChange?: (id: string) => void;
|
|
1718
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
1719
|
+
declare function NavbarUserMenu({ user }: {
|
|
1720
|
+
user: NavbarUser;
|
|
1721
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1722
|
+
|
|
1723
|
+
declare function Pagination({ className, tokens: customTokens, style, ...props }: React$1.ComponentProps<'nav'> & {
|
|
1724
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1725
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1726
|
+
type PaginationLinkProps = {
|
|
1727
|
+
isActive?: boolean;
|
|
1728
|
+
disabled?: boolean;
|
|
1729
|
+
} & React$1.ComponentProps<'a'>;
|
|
1730
|
+
declare function PaginationLink({ className, isActive, disabled, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
|
|
1731
|
+
declare function PaginationContent({ className, ...props }: React$1.ComponentProps<'ul'>): react_jsx_runtime.JSX.Element;
|
|
1732
|
+
declare function PaginationItem(props: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
1733
|
+
declare function PaginationPrevious({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
1734
|
+
declare function PaginationNext({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
1735
|
+
declare function PaginationEllipsis({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
1736
|
+
|
|
1737
|
+
type SidebarItem = {
|
|
1738
|
+
id: string;
|
|
1739
|
+
label: string;
|
|
1740
|
+
icon: React$1.ReactNode;
|
|
1741
|
+
active?: boolean;
|
|
1742
|
+
href?: string;
|
|
1743
|
+
};
|
|
1744
|
+
type SidebarSection = {
|
|
1745
|
+
id: string;
|
|
1746
|
+
title?: string;
|
|
1747
|
+
items: SidebarItem[];
|
|
1748
|
+
};
|
|
1749
|
+
type SidebarProps = {
|
|
1750
|
+
title?: string;
|
|
1751
|
+
sections?: SidebarSection[];
|
|
1752
|
+
items?: SidebarItem[];
|
|
1753
|
+
collapsed?: boolean;
|
|
1754
|
+
onToggleCollapse?: () => void;
|
|
1755
|
+
onItemClick?: (href: string) => void;
|
|
1756
|
+
className?: string;
|
|
1757
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1758
|
+
};
|
|
1759
|
+
declare function Sidebar({ title, sections, items, collapsed, onToggleCollapse, onItemClick, className, tokens, }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
1760
|
+
|
|
1761
|
+
declare function Tabs({ className, size, tokens, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Root> & {
|
|
1762
|
+
size: TabsSize;
|
|
1763
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1764
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1765
|
+
type TabsSize = 'medium' | 'small';
|
|
1766
|
+
declare function TabsList({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.List> & {
|
|
1767
|
+
size?: TabsSize;
|
|
1768
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1769
|
+
declare function TabsTrigger({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
1770
|
+
declare function TabsContent({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
1771
|
+
|
|
1772
|
+
type TourProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1773
|
+
currentStep: number;
|
|
1774
|
+
totalSteps: number;
|
|
1775
|
+
title: React$1.ReactNode;
|
|
1776
|
+
description: React$1.ReactNode;
|
|
1777
|
+
onBack: () => void;
|
|
1778
|
+
onNext: () => void;
|
|
1779
|
+
backLabel?: React$1.ReactNode;
|
|
1780
|
+
nextLabel?: React$1.ReactNode;
|
|
1781
|
+
disableBack?: boolean;
|
|
1782
|
+
disableNext?: boolean;
|
|
1783
|
+
showPointer?: boolean;
|
|
1784
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1785
|
+
};
|
|
1786
|
+
declare function Tour({ className, currentStep, totalSteps, title, description, onBack, onNext, backLabel, nextLabel, disableBack, disableNext, showPointer, tokens, style, ...props }: TourProps): react_jsx_runtime.JSX.Element;
|
|
1787
|
+
|
|
1788
|
+
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1789
|
+
type IconVariant = 'default' | 'primary' | 'muted' | 'danger' | 'success';
|
|
1790
|
+
type IconProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
1791
|
+
children?: React$1.ReactNode;
|
|
1792
|
+
size?: IconSize;
|
|
1793
|
+
color?: IconVariant;
|
|
1794
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1795
|
+
asChild?: boolean;
|
|
1796
|
+
};
|
|
1797
|
+
declare function Icon({ className, size, color, tokens: customTokens, asChild, style, children, ...props }: IconProps): react_jsx_runtime.JSX.Element;
|
|
1798
|
+
|
|
1799
|
+
type IconLabelProps = {
|
|
1800
|
+
icon: React$1.ReactNode;
|
|
1801
|
+
label: React$1.ReactNode;
|
|
1802
|
+
iconPosition?: 'left' | 'right';
|
|
1803
|
+
className?: string;
|
|
1804
|
+
};
|
|
1805
|
+
declare function IconLabel({ icon, label, iconPosition, className, }: IconLabelProps): react_jsx_runtime.JSX.Element;
|
|
1806
|
+
|
|
1807
|
+
declare function LoaderInit({ size, className, }: {
|
|
1808
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1809
|
+
color?: string;
|
|
1810
|
+
className?: string;
|
|
1811
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1812
|
+
|
|
1813
|
+
type SeparatorProps = React$1.ComponentProps<typeof SeparatorPrimitive.Root> & {
|
|
1814
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1815
|
+
};
|
|
1816
|
+
declare function Separator({ className, orientation, decorative, tokens, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
|
|
1817
|
+
|
|
1818
|
+
declare function ThemeProvider({ channelId, theme, children, }: {
|
|
1819
|
+
channelId?: string;
|
|
1820
|
+
theme?: any;
|
|
1821
|
+
children: React.ReactNode;
|
|
1822
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1823
|
+
|
|
1824
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
1825
|
+
|
|
1826
|
+
declare enum COMPONENT_NAMES {
|
|
1827
|
+
ACCORDION = "accordion",
|
|
1828
|
+
BADGE = "badge",
|
|
1829
|
+
FEEDBACK = "feedback",
|
|
1830
|
+
EXPANSION_PANEL = "expansionPanel",
|
|
1831
|
+
TILE = "tile",
|
|
1832
|
+
BUTTON = "button",
|
|
1833
|
+
CHECKBOX = "checkbox",
|
|
1834
|
+
DRAWER = "drawer",
|
|
1835
|
+
EMPTY_STATE = "emptyState",
|
|
1836
|
+
INPUT = "input",
|
|
1837
|
+
LABEL = "label",
|
|
1838
|
+
MODAL_DIALOG = "alertDialog",
|
|
1839
|
+
NAVBAR = "navbar",
|
|
1840
|
+
POPOVER = "popover",
|
|
1841
|
+
RADIO = "radio",
|
|
1842
|
+
SEPARATOR = "separator",
|
|
1843
|
+
SIDEBAR = "sidebar",
|
|
1844
|
+
SWITCH = "switch",
|
|
1845
|
+
TABS = "tabs",
|
|
1846
|
+
TOUR = "tour",
|
|
1847
|
+
TABLE = "table",
|
|
1848
|
+
AVATAR = "avatar",
|
|
1849
|
+
CARD = "card",
|
|
1850
|
+
BANNER = "banner",
|
|
1851
|
+
PROMO_BANNER = "promoBanner",
|
|
1852
|
+
PROGRESS = "progress",
|
|
1853
|
+
LOADER = "loader",
|
|
1854
|
+
FILE_UPLOAD = "fileUpload",
|
|
1855
|
+
DROPDOWN = "dropdown",
|
|
1856
|
+
TOOLTIP = "tooltip",
|
|
1857
|
+
DRAG_SLIDER = "dragSlider",
|
|
1858
|
+
MODULE_BOX = "moduleBox",
|
|
1859
|
+
CHARTS = "charts",
|
|
1860
|
+
PAGINATION = "pagination",
|
|
1861
|
+
HEADER = "header",
|
|
1862
|
+
BREADCRUMB = "breadcrumb",
|
|
1863
|
+
ICON = "icon",
|
|
1864
|
+
SELECT = "select",
|
|
1865
|
+
ALERT = "alert",
|
|
1866
|
+
CALENDAR = "calendar"
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
/**
|
|
1870
|
+
* `CSSProperties` extended with arbitrary CSS custom properties (`--*`).
|
|
1871
|
+
* Use this instead of `as React.CSSProperties` when passing objects that
|
|
1872
|
+
* include `--my-var` keys.
|
|
1873
|
+
*/
|
|
1874
|
+
type CSSPropertiesWithVars = CSSProperties & Record<`--${string}`, string | number>;
|
|
1875
|
+
/**
|
|
1876
|
+
* A single CSS variable mapping entry.
|
|
1877
|
+
*
|
|
1878
|
+
* - `tokenPath` — dot-separated path into the resolved tokens object
|
|
1879
|
+
* (e.g. `'hover.background'`, `'title.fontSize'`)
|
|
1880
|
+
* - `fallback` — hardcoded default used when the token is not found
|
|
1881
|
+
*/
|
|
1882
|
+
type TokenVarEntry = {
|
|
1883
|
+
tokenPath: string;
|
|
1884
|
+
fallback?: string | number;
|
|
1885
|
+
};
|
|
1886
|
+
/**
|
|
1887
|
+
* Declarative mapping from CSS custom-property names to token paths.
|
|
1888
|
+
*
|
|
1889
|
+
* Example:
|
|
1890
|
+
* ```ts
|
|
1891
|
+
* const map = {
|
|
1892
|
+
* '--card-bg': { tokenPath: 'backgroundColor', fallback: '#ffffff' },
|
|
1893
|
+
* '--card-radius': { tokenPath: 'borderRadius', fallback: '16px' },
|
|
1894
|
+
* };
|
|
1895
|
+
* ```
|
|
1896
|
+
*/
|
|
1897
|
+
type TokenStyleMap = Record<string, TokenVarEntry>;
|
|
1898
|
+
/**
|
|
1899
|
+
* Map an **already-resolved** token object to CSS custom properties.
|
|
1900
|
+
*
|
|
1901
|
+
* ### Usage
|
|
1902
|
+
* ```tsx
|
|
1903
|
+
* const theme = useTheme();
|
|
1904
|
+
* const mergedTokens = resolveTokens<CardTokens>({ componentName: 'card', variant, tokens }, theme);
|
|
1905
|
+
* const styles = mapTokenStyles(mergedTokens, CARD_TOKEN_MAP);
|
|
1906
|
+
* ```
|
|
1907
|
+
*
|
|
1908
|
+
* @param resolvedTokens — the raw result of `resolveTokens(…)`
|
|
1909
|
+
* @param map — declarative CSS-var → token-path mapping
|
|
1910
|
+
* @param extra — optional extra styles (supports CSS custom properties)
|
|
1911
|
+
*/
|
|
1912
|
+
declare function mapTokenStyles(resolvedTokens: Record<string, unknown>, map: TokenStyleMap, extra?: CSSPropertiesWithVars | CSSProperties): CSSPropertiesWithVars;
|
|
1913
|
+
|
|
1914
|
+
/**
|
|
1915
|
+
* Shared token map for all input-family components
|
|
1916
|
+
* (Input, SearchBar, Select, Textarea, PasswordInput, DatePicker, Combobox).
|
|
1917
|
+
*
|
|
1918
|
+
* Eliminates ~40 lines of boilerplate per component.
|
|
1919
|
+
*/
|
|
1920
|
+
declare const INPUT_TOKEN_MAP: TokenStyleMap;
|
|
1921
|
+
/**
|
|
1922
|
+
* Build extra size-specific styles from the resolved size tokens.
|
|
1923
|
+
* Used with `mapTokenStyles(..., extra)`.
|
|
1924
|
+
*/
|
|
1925
|
+
declare function inputSizeExtras(sizeTokens: Record<string, any>): Record<string, unknown>;
|
|
1926
|
+
|
|
1927
|
+
/**
|
|
1928
|
+
* Hook para resolver tokens y mapear estilos en un solo paso.
|
|
1929
|
+
* Elimina el boilerplate repetido de useTheme + resolveTokens + mapTokenStyles.
|
|
1930
|
+
*
|
|
1931
|
+
* @param componentName Nombre del componente (ej: 'button')
|
|
1932
|
+
* @param tokenMap Mapeo declarativo de CSS vars
|
|
1933
|
+
* @param options Opciones: variant, size, tone, tokens, extra
|
|
1934
|
+
*/
|
|
1935
|
+
declare function useTokenStyles<T extends ResolvedTokenMap = ResolvedTokenMap>(componentName: string, tokenMap: TokenStyleMap, options?: {
|
|
1936
|
+
variant?: string;
|
|
1937
|
+
size?: string;
|
|
1938
|
+
tone?: string;
|
|
1939
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1940
|
+
shape?: string;
|
|
1941
|
+
extra?: CSSPropertiesWithVars | React.CSSProperties;
|
|
1942
|
+
}): {
|
|
1943
|
+
styles: CSSPropertiesWithVars;
|
|
1944
|
+
tokens: T;
|
|
1945
|
+
};
|
|
1946
|
+
|
|
1947
|
+
export { AIProvider, type AIProviderProps, type AIRequest, type AIRequestFn, type AIResponse, type AITask, Accordion, AccordionContent, AccordionItem, type AccordionTokens, AccordionTrigger, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, type AlertTokens, Avatar, AvatarFallback, AvatarImage, type AvatarSize, type AvatarTokens, Badge, type BadgeShape, type BadgeSize, type BadgeTokens, type BadgeTone, Banner, type BannerProps, type BannerTokens, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, type BreadcrumbSize, type BreadcrumbTokens, Button, type ButtonProps, type ButtonTokens, COMPONENT_NAMES, type CSSPropertiesWithVars, Calendar, type CalendarTokens, Card, type CardProps, type CardTokens, type ChartDatum, type ChartType, Charts, type ChartsProps, type ChartsTokens, Checkbox, type CheckboxTokens, type ColorBundle, type ColorBundleWithShadow, ColorExample, Combobox, DatePickerInput, DragSlider, type DragSliderProps, type DragSliderTokens, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, type DrawerSlotTokens, DrawerTitle, type DrawerTokens, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type DropdownTokens, EmptyState, type EmptyStateProps, type EmptyStateTokens, ExpansionPanel, type ExpansionPanelProps, type ExpansionPanelSize, type ExpansionPanelStatus, Feedback, type FeedbackProps, type FeedbackSize, FileUpload, type FileUploadProps, type FileUploadState, type FileUploadTokens, type FontSizeTokens, Header, type HeaderProps, type HeaderSize, type HeaderTokens, INPUT_TOKEN_MAP, Icon, IconLabel, type IconLabelProps, type IconProps, type IconSize, type IconTokens, type IconVariant, Input, type InputSizeDimensions, type InputTokens, IntegrationCard, type IntegrationCardProps, type IntegrationCardTokens, Label, type LabelTokens, type LabeledFontTokens, ListItem, type ListItemProps, type ListItemStatus, Loader, LoaderInit, type LoaderProps, type LoaderSize, type LoaderTokens, type LoaderVariant, type Merchant, type ModalDialogTokens, ModuleBox, type ModuleBoxProps, type ModuleBoxTokens, Navbar, NavbarLogo, NavbarMerchant, type NavbarTokens, type NavbarUser, NavbarUserMenu, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PaginationTokens, PasswordInput, Popover, PopoverAnchor, PopoverContent, type PopoverTokens, PopoverTrigger, Progress, type ProgressTokens, type PromoBannerTokens, RadioGroup, RadioItem, type RadioTokens, type ResolvedTokenMap, SearchBar, Select, type SelectTokens, Separator, type SeparatorTokens, Sidebar, type SidebarItem, type SidebarProps, type SidebarSection, type SidebarTokens, Switch, type SwitchTokens, Table, TableBody, TableCaption, TableCell, TableCellDescription, TableFooter, TableHead, TableHeader, TableRow, type TableTokens, Tabs, TabsContent, TabsList, type TabsSize, type TabsTokens, TabsTrigger, Textarea, ThemeProvider, type ThemeTokensBase, Tile, type TileProps, type TileSize, type TokenStyleMap, Tooltip, TooltipContent, TooltipProvider, type TooltipTokens, TooltipTrigger, Tour, type TourProps, type TourTokens, type TypographyTokens, accordionContentVariants, accordionTriggerVariants, bannerVariants, buttonBaseClasses, cn, inputSizeExtras, mapTokenStyles, resolveTokens, tokenAt, useAI, useTheme, useTokenStyles };
|