nave-ui-library 1.0.0-beta.40 → 1.0.0-beta.42

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.
@@ -1,1423 +1,57 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React$1 from 'react';
3
- import { CSSProperties } from 'react';
2
+ import * as React from 'react';
3
+ import * as LabelPrimitive from '@radix-ui/react-label';
4
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
5
+ import * as SwitchPrimitive from '@radix-ui/react-switch';
4
6
  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
7
  import { VariantProps } from 'class-variance-authority';
10
8
  import { Loader2Icon } from 'lucide-react';
11
9
  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';
10
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
23
11
  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
12
 
47
13
  interface ThemeTokensBase {
48
14
  [key: string]: unknown;
49
15
  }
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
16
 
100
17
  /**
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.
18
+ * Theme bridge for Web Components.
107
19
  *
108
- * Every contract extends `ResolvedTokenMap` so the result remains compatible
109
- * with `mapTokenStyles(mergedTokens, MAP)` which expects `Record<string, unknown>`.
20
+ * Solves the fundamental issue that each `nave-*` custom element is an
21
+ * isolated React root, so React Context does NOT flow between them.
110
22
  *
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 LoaderSize = 'small' | 'medium' | 'large' | 'extraLarge';
1233
- type LoaderVariant = 'default' | 'primary';
1234
- type LoaderProps = React$1.ComponentProps<'div'> & {
1235
- size?: LoaderSize;
1236
- variant?: LoaderVariant;
1237
- tokens?: Partial<ThemeTokensBase>;
1238
- label?: string;
1239
- description?: React$1.ReactNode;
1240
- spinnerClassName?: string;
1241
- spinnerProps?: Omit<React$1.ComponentProps<typeof Loader2Icon>, 'size'>;
1242
- };
1243
- declare function Loader({ className, style, size, variant, tokens, label, description, spinnerClassName, spinnerProps, ...props }: LoaderProps): react_jsx_runtime.JSX.Element;
1244
-
1245
- type ProgressProps = React$1.ComponentProps<typeof ProgressPrimitive.Root> & {
1246
- value: number;
1247
- label?: string;
1248
- showValue?: boolean;
1249
- description?: string;
1250
- icon?: React$1.ReactNode;
1251
- variant?: string;
1252
- tokens?: Partial<ThemeTokensBase>;
1253
- };
1254
- declare function Progress({ className, style, value, label, showValue, description, icon, variant, tokens, ...props }: ProgressProps): react_jsx_runtime.JSX.Element;
1255
-
1256
- type FileUploadState = 'default' | 'drag' | 'error' | 'disabled';
1257
- type FileUploadProps = {
1258
- accept?: string[];
1259
- maxSizeMB?: number;
1260
- multiple?: boolean;
1261
- title?: string;
1262
- tokens?: Partial<ThemeTokensBase>;
1263
- description?: string;
1264
- buttonLabel?: string;
1265
- icon?: React$1.ReactNode;
1266
- state?: FileUploadState;
1267
- className?: string;
1268
- isDragging?: boolean;
1269
- onFilesChange?: (files: File[]) => void;
1270
- onError?: (errors: string[]) => void;
1271
- actions?: React$1.ReactNode;
1272
- };
1273
- declare function FileUpload({ accept, maxSizeMB, multiple, title, description, buttonLabel, icon, state, className, actions, tokens, onFilesChange, onError, }: FileUploadProps): react_jsx_runtime.JSX.Element;
1274
-
1275
- type Variant = 'primary' | 'secondary' | 'tertiary';
1276
- type Orientation = 'horizontal' | 'vertical';
1277
- type ImagePosition = 'left' | 'right' | 'top' | 'bottom';
1278
- type ContentAlign = 'left' | 'center';
1279
- type ImageDisplay = 'inline' | 'background';
1280
- type HeroContentPosition = 'top' | 'center' | 'between' | 'bottom';
1281
- declare const bannerVariants: (props?: ({
1282
- size?: "compact" | "full" | null | undefined;
1283
- orientation?: "horizontal" | "vertical" | null | undefined;
1284
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1285
- type BannerProps = React$1.ComponentProps<'div'> & VariantProps<typeof bannerVariants> & {
1286
- asChild?: boolean;
1287
- tokens?: Partial<ThemeTokensBase>;
1288
- variant?: Variant;
1289
- orientation?: Orientation;
1290
- imagePosition?: ImagePosition;
1291
- contentAlign?: ContentAlign;
1292
- imageDisplay?: ImageDisplay;
1293
- heroContentPosition?: HeroContentPosition;
1294
- heroMinHeight?: string;
1295
- heroOverlay?: string;
1296
- title: React$1.ReactNode;
1297
- description?: React$1.ReactNode;
1298
- cta?: React$1.ReactNode;
1299
- imageSrc: string;
1300
- imageAlt?: string;
1301
- icon?: React$1.ReactNode;
1302
- endSlot?: React$1.ReactNode;
1303
- };
1304
- 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;
1305
-
1306
- type CardProps = React$1.HTMLAttributes<HTMLDivElement> & {
1307
- title?: React$1.ReactNode;
1308
- action?: React$1.ReactNode;
1309
- tokens?: Partial<ThemeTokensBase>;
1310
- variant?: 'primary' | 'secondary' | 'tertiary';
1311
- width?: number | string;
1312
- };
1313
- declare function Card({ className, title, action, tokens, variant, width, children, style, ...props }: CardProps): react_jsx_runtime.JSX.Element;
1314
-
1315
- type DragSliderProps = {
1316
- children: React$1.ReactNode;
1317
- className?: string;
1318
- tokens?: Partial<ThemeTokensBase>;
1319
- };
1320
- declare function DragSlider({ children, className, tokens: customTokens, }: DragSliderProps): react_jsx_runtime.JSX.Element;
1321
-
1322
- declare const integrationCardVariants: (props?: ({
1323
- variant?: "default" | "none" | "subtle" | null | undefined;
1324
- logoSize?: "small" | "large" | null | undefined;
1325
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1326
-
1327
- type IntegrationCardProps = React$1.ComponentProps<'div'> & VariantProps<typeof integrationCardVariants> & {
1328
- asChild?: boolean;
1329
- tokens?: Partial<ThemeTokensBase>;
1330
- badgeText?: React$1.ReactNode;
1331
- logoSlot?: React$1.ReactNode;
1332
- logoSrc?: string;
1333
- logoAlt?: string;
1334
- initials?: React$1.ReactNode;
1335
- bannerClassName?: string;
1336
- title: React$1.ReactNode;
1337
- description?: React$1.ReactNode;
1338
- linkLabel?: React$1.ReactNode;
1339
- linkHref?: string;
1340
- onLinkClick?: () => void;
1341
- logoClassName?: string;
1342
- badgeClassName?: string;
1343
- contentClassName?: string;
1344
- linkClassName?: string;
1345
- };
1346
- 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;
1347
-
1348
- interface ColorExampleProps {
1349
- className?: string;
1350
- colorToken: string;
1351
- colorName: string;
1352
- }
1353
- declare function ColorExample({ className, colorToken, colorName }: ColorExampleProps): react_jsx_runtime.JSX.Element;
1354
-
1355
- declare const accordionTriggerVariants: (props?: ({
1356
- size?: "sm" | "md" | null | undefined;
1357
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1358
- declare const accordionContentVariants: (props?: ({
1359
- size?: "sm" | "md" | null | undefined;
1360
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1361
-
1362
- declare function Accordion({ size, tokens, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root> & {
1363
- size?: 'sm' | 'md';
1364
- tokens?: Partial<ThemeTokensBase>;
1365
- }): react_jsx_runtime.JSX.Element;
1366
- declare function AccordionItem({ className, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime.JSX.Element;
1367
- declare function AccordionTrigger({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Trigger> & {
1368
- size?: 'sm' | 'md';
1369
- }): react_jsx_runtime.JSX.Element;
1370
- declare function AccordionContent({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Content> & {
1371
- size?: 'sm' | 'md';
1372
- }): react_jsx_runtime.JSX.Element;
23
+ * This module:
24
+ * 1. Maintains a global theme store (module-level singleton).
25
+ * 2. Provides a `withTheme` HOC that wraps any React component with
26
+ * `ThemeContext.Provider` reading from the global store.
27
+ * 3. Exposes helpers to set the theme and notify all mounted elements.
28
+ */
1373
29
 
1374
- type ModuleBoxProps = React$1.HTMLAttributes<HTMLDivElement> & {
1375
- title?: React$1.ReactNode;
1376
- headerActions?: React$1.ReactNode;
1377
- footerActions?: React$1.ReactNode;
1378
- slotPlaceholder?: React$1.ReactNode;
1379
- tokens?: Partial<ThemeTokensBase>;
1380
- headerClassName?: string;
1381
- slotClassName?: string;
1382
- footerClassName?: string;
1383
- };
1384
- declare function ModuleBox({ className, title, headerActions, footerActions, slotPlaceholder, tokens, headerClassName, slotClassName, footerClassName, children, style, ...props }: ModuleBoxProps): react_jsx_runtime.JSX.Element;
30
+ declare function getGlobalTheme(): ThemeTokensBase;
31
+ declare function setGlobalTheme(theme: ThemeTokensBase): void;
32
+ declare class NaveThemeProviderElement extends HTMLElement {
33
+ private _channelId;
34
+ private _theme;
35
+ static get observedAttributes(): string[];
36
+ set theme(value: ThemeTokensBase);
37
+ get theme(): ThemeTokensBase | null;
38
+ attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
39
+ connectedCallback(): void;
40
+ private _loadTheme;
41
+ }
1385
42
 
1386
- type ChartType = 'bar' | 'line' | 'donut' | 'pie';
1387
- type ChartDatum = {
1388
- label: string;
1389
- value: number;
1390
- color?: string;
1391
- [key: string]: string | number | undefined;
1392
- };
1393
- type ChartsProps = React$1.HTMLAttributes<HTMLDivElement> & {
1394
- type?: ChartType;
1395
- data: ChartDatum[];
1396
- title?: React$1.ReactNode;
1397
- subtitle?: React$1.ReactNode;
1398
- showLegend?: boolean;
1399
- showGrid?: boolean;
1400
- showBaseline?: boolean;
1401
- showXAxis?: boolean;
1402
- showYAxis?: boolean;
1403
- showTooltip?: boolean;
1404
- height?: number;
1405
- donutCenterValue?: React$1.ReactNode;
1406
- donutCenterLabel?: React$1.ReactNode;
1407
- legendTitle?: React$1.ReactNode;
1408
- valueFormatter?: (value: number) => string;
1409
- xDataKey?: string;
1410
- yDataKey?: string;
1411
- nameKey?: string;
1412
- showLineArea?: boolean;
1413
- emptyStateLabel?: React$1.ReactNode;
43
+ type ButtonProps = React.ComponentProps<'button'> & {
1414
44
  tokens?: Partial<ThemeTokensBase>;
45
+ variant?: 'primary' | 'secondary' | 'tertiary' | 'neutral';
46
+ size?: 'small' | 'medium' | 'large' | 'icon' | 'icon-small' | 'icon-large';
47
+ asChild?: boolean;
48
+ textPaddingX?: string | number;
49
+ startIcon?: React.ReactNode;
50
+ endIcon?: React.ReactNode;
51
+ loading?: boolean;
52
+ loadingLabel?: React.ReactNode;
1415
53
  };
1416
- 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;
1417
-
1418
- declare function Calendar({ className, classNames, showOutsideDays, captionLayout, tokens, formatters, components, ...props }: React$1.ComponentProps<typeof DayPicker> & {
1419
- tokens?: Partial<ThemeTokensBase>;
1420
- }): react_jsx_runtime.JSX.Element;
54
+ declare function Button({ className, variant, size, asChild, tokens, textPaddingX, startIcon, endIcon, loading, loadingLabel, style, children, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
1421
55
 
1422
56
  interface ComboboxItem {
1423
57
  label: string;
@@ -1443,11 +77,11 @@ interface ComboboxProps {
1443
77
  /** Placeholder for the search input inside the dropdown. @default "Buscar..." */
1444
78
  searchPlaceholder?: string;
1445
79
  /** Ref forwarded to the inner search `<input>`. Consumers can use it to manage focus. */
1446
- searchRef?: React$1.Ref<HTMLInputElement>;
80
+ searchRef?: React.Ref<HTMLInputElement>;
1447
81
  }
1448
82
  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;
1449
83
 
1450
- interface DatePickerInputProps extends Omit<React$1.ComponentProps<'input'>, 'size' | 'type'> {
84
+ interface DatePickerInputProps extends Omit<React.ComponentProps<'input'>, 'size' | 'type'> {
1451
85
  tokens?: Partial<ThemeTokensBase>;
1452
86
  size?: 'small' | 'medium';
1453
87
  label?: string;
@@ -1456,7 +90,7 @@ interface DatePickerInputProps extends Omit<React$1.ComponentProps<'input'>, 'si
1456
90
  }
1457
91
  declare function DatePickerInput({ className, size, label, helperText, error, disabled, tokens, style, ...props }: DatePickerInputProps): react_jsx_runtime.JSX.Element;
1458
92
 
1459
- interface InputProps extends Omit<React$1.ComponentProps<'input'>, 'size'> {
93
+ interface InputProps extends Omit<React.ComponentProps<'input'>, 'size'> {
1460
94
  tokens?: Partial<ThemeTokensBase>;
1461
95
  size?: 'small' | 'medium';
1462
96
  label?: string;
@@ -1465,12 +99,12 @@ interface InputProps extends Omit<React$1.ComponentProps<'input'>, 'size'> {
1465
99
  }
1466
100
  declare function Input({ className, type, size, label, helperText, error, disabled, tokens, style, ...props }: InputProps): react_jsx_runtime.JSX.Element;
1467
101
 
1468
- interface LabelProps extends React$1.ComponentProps<typeof LabelPrimitive.Root> {
102
+ interface LabelProps extends React.ComponentProps<typeof LabelPrimitive.Root> {
1469
103
  tokens?: Partial<ThemeTokensBase>;
1470
104
  }
1471
105
  declare function Label({ className, tokens, style, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
1472
106
 
1473
- interface PasswordInputProps extends Omit<React$1.ComponentProps<'input'>, 'size' | 'type'> {
107
+ interface PasswordInputProps extends Omit<React.ComponentProps<'input'>, 'size' | 'type'> {
1474
108
  tokens?: Partial<ThemeTokensBase>;
1475
109
  size?: 'small' | 'medium';
1476
110
  label?: string;
@@ -1479,7 +113,7 @@ interface PasswordInputProps extends Omit<React$1.ComponentProps<'input'>, 'size
1479
113
  }
1480
114
  declare function PasswordInput({ className, size, label, helperText, error, disabled, tokens, style, ...props }: PasswordInputProps): react_jsx_runtime.JSX.Element;
1481
115
 
1482
- interface SearchBarProps extends Omit<React$1.ComponentProps<'input'>, 'size' | 'type'> {
116
+ interface SearchBarProps extends Omit<React.ComponentProps<'input'>, 'size' | 'type'> {
1483
117
  tokens?: Partial<ThemeTokensBase>;
1484
118
  size?: 'small' | 'medium';
1485
119
  label?: string;
@@ -1514,11 +148,11 @@ interface SelectProps {
1514
148
  /** Placeholder for the search input (only when searchable is true). @default "Buscar..." */
1515
149
  searchPlaceholder?: string;
1516
150
  /** Ref forwarded to the search input. Consumers can use it to manage focus. */
1517
- searchRef?: React$1.Ref<HTMLInputElement>;
151
+ searchRef?: React.Ref<HTMLInputElement>;
1518
152
  }
1519
153
  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;
1520
154
 
1521
- interface TextareaProps extends Omit<React$1.ComponentProps<'textarea'>, 'size'> {
155
+ interface TextareaProps extends Omit<React.ComponentProps<'textarea'>, 'size'> {
1522
156
  tokens?: Partial<ThemeTokensBase>;
1523
157
  size?: 'small' | 'medium';
1524
158
  label?: string;
@@ -1527,7 +161,7 @@ interface TextareaProps extends Omit<React$1.ComponentProps<'textarea'>, 'size'>
1527
161
  }
1528
162
  declare function Textarea({ className, style, tokens, size, label, helperText, error, disabled, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
1529
163
 
1530
- interface CheckboxProps extends React$1.ComponentProps<typeof CheckboxPrimitive.Root> {
164
+ interface CheckboxProps extends React.ComponentProps<typeof CheckboxPrimitive.Root> {
1531
165
  tokens?: Partial<ThemeTokensBase>;
1532
166
  size?: 'regular' | 'small' | 'extraSmall';
1533
167
  tone?: 'brand' | 'neutral' | 'destructive';
@@ -1537,19 +171,7 @@ interface CheckboxProps extends React$1.ComponentProps<typeof CheckboxPrimitive.
1537
171
  }
1538
172
  declare function Checkbox({ className, tokens, size, tone, label, description, disabled, style, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
1539
173
 
1540
- interface RadioGroupProps extends React$1.ComponentProps<typeof RadioGroupPrimitive.Root> {
1541
- }
1542
- interface RadioItemProps extends React$1.ComponentProps<typeof RadioGroupPrimitive.Item> {
1543
- size?: 'regular' | 'small' | 'extraSmall';
1544
- label?: string;
1545
- description?: string;
1546
- disabled?: boolean;
1547
- tokens?: Partial<ThemeTokensBase>;
1548
- }
1549
- declare function RadioGroup({ className, ...props }: RadioGroupProps): react_jsx_runtime.JSX.Element;
1550
- declare function RadioItem({ className, size, label, description, disabled, tokens, value, ...props }: RadioItemProps): react_jsx_runtime.JSX.Element;
1551
-
1552
- interface SwitchProps extends React$1.ComponentProps<typeof SwitchPrimitive.Root> {
174
+ interface SwitchProps extends React.ComponentProps<typeof SwitchPrimitive.Root> {
1553
175
  tokens?: Partial<ThemeTokensBase>;
1554
176
  size?: 'regular' | 'small' | 'extraSmall';
1555
177
  label?: string;
@@ -1558,143 +180,232 @@ interface SwitchProps extends React$1.ComponentProps<typeof SwitchPrimitive.Root
1558
180
  }
1559
181
  declare const Switch: ({ className, tokens, size, label, description, disabled, style, ...props }: SwitchProps) => react_jsx_runtime.JSX.Element;
1560
182
 
1561
- type BreadcrumbSize = 'small' | 'medium';
1562
- interface BreadcrumbProps extends React$1.ComponentProps<'nav'> {
183
+ declare const alertVariants: (props?: ({
184
+ size?: "inline" | "full-width" | "stacked" | null | undefined;
185
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
186
+ type AlertTone = 'success' | 'warning' | 'error' | 'info';
187
+ interface AlertProps extends Omit<React.ComponentProps<'div'>, 'title'>, VariantProps<typeof alertVariants> {
188
+ tone?: AlertTone;
189
+ icon: React.ReactNode;
190
+ title: React.ReactNode;
191
+ description: React.ReactNode;
192
+ subtitle?: React.ReactNode;
193
+ ctaLabel?: React.ReactNode;
194
+ ctaHref?: string;
195
+ ctaTarget?: React.HTMLAttributeAnchorTarget;
196
+ onCtaClick?: () => void;
197
+ closeLabel?: string;
198
+ label?: React.ReactNode;
199
+ onClose?: () => void;
200
+ titleMaxLines?: number;
201
+ descriptionMaxLines?: number;
1563
202
  tokens?: Partial<ThemeTokensBase>;
1564
- size?: BreadcrumbSize;
1565
203
  }
1566
- declare function Breadcrumb({ className, tokens, style, size, children, ...props }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
1567
- declare function BreadcrumbList({ className, ...props }: React$1.ComponentProps<'ol'>): react_jsx_runtime.JSX.Element;
1568
- declare function BreadcrumbItem({ className, ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
1569
- declare function BreadcrumbLink({ asChild, className, ...props }: React$1.ComponentProps<'a'> & {
204
+ 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;
205
+
206
+ type BadgeTone = 'neutral' | 'brand' | 'success' | 'info' | 'warning' | 'error';
207
+ type BadgeSize = 'small' | 'medium' | 'large';
208
+ type BadgeShape = 'rounded' | 'square';
209
+ declare function Badge({ className, tone, size, shape, asChild, tokens, style, ...props }: React.ComponentProps<'span'> & {
210
+ children: React.ReactNode;
211
+ tone?: BadgeTone;
212
+ size?: BadgeSize;
213
+ shape?: BadgeShape;
1570
214
  asChild?: boolean;
215
+ tokens?: Partial<ThemeTokensBase>;
1571
216
  }): react_jsx_runtime.JSX.Element;
1572
- declare function BreadcrumbPage({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
1573
- declare function BreadcrumbSeparator({ children, className, ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
1574
- declare function BreadcrumbEllipsis({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
1575
217
 
1576
- type DrawerSlotTokens = {
1577
- overlay?: Partial<ThemeTokensBase>;
1578
- container?: Partial<ThemeTokensBase>;
1579
- close?: Partial<ThemeTokensBase>;
1580
- title?: Partial<ThemeTokensBase>;
1581
- description?: Partial<ThemeTokensBase>;
1582
- };
1583
- type DrawerProps = React$1.ComponentProps<typeof Drawer$1.Root> & {
1584
- tokens?: Partial<DrawerSlotTokens>;
218
+ type EmptyStateProps = {
219
+ tokens?: Partial<ThemeTokensBase>;
220
+ icon?: React.ReactNode;
221
+ title: React.ReactNode;
222
+ description?: React.ReactNode;
223
+ actions?: React.ReactNode;
224
+ align?: 'center' | 'left';
225
+ size?: 'small' | 'medium';
226
+ className?: string;
1585
227
  };
1586
- declare function Drawer({ tokens, ...props }: DrawerProps): react_jsx_runtime.JSX.Element;
1587
- declare const DrawerTrigger: React$1.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
1588
- declare const DrawerPortal: typeof vaul.Portal;
1589
- declare const DrawerClose: React$1.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
1590
- declare function DrawerOverlay({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime.JSX.Element | null;
1591
- declare function DrawerContent({ className, children, ...props }: React$1.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime.JSX.Element | null;
1592
- declare const DrawerHeader: ({ className, ...props }: React$1.ComponentProps<"div">) => react_jsx_runtime.JSX.Element;
1593
- declare const DrawerBody: ({ className, ...props }: React$1.ComponentProps<"div">) => react_jsx_runtime.JSX.Element;
1594
- declare const DrawerFooter: ({ className, ...props }: React$1.ComponentProps<"div">) => react_jsx_runtime.JSX.Element;
1595
- declare function DrawerCloseButton({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime.JSX.Element;
1596
- declare function DrawerTitle({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime.JSX.Element | null;
1597
- declare function DrawerDescription({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime.JSX.Element | null;
228
+ declare function EmptyState({ icon, title, description, actions, align, className, size, tokens, }: EmptyStateProps): react_jsx_runtime.JSX.Element;
1598
229
 
1599
- type HeaderSize = 'desktop' | 'mobile';
1600
- type HeaderProps = {
1601
- title: React$1.ReactNode;
1602
- description?: React$1.ReactNode;
1603
- action?: React$1.ReactNode;
1604
- size?: HeaderSize;
230
+ type FileUploadState = 'default' | 'drag' | 'error' | 'disabled';
231
+ type FileUploadProps = {
232
+ accept?: string[];
233
+ maxSizeMB?: number;
234
+ multiple?: boolean;
235
+ title?: string;
236
+ tokens?: Partial<ThemeTokensBase>;
237
+ description?: string;
238
+ buttonLabel?: string;
239
+ icon?: React.ReactNode;
240
+ state?: FileUploadState;
1605
241
  className?: string;
1606
- titleClassName?: string;
1607
- descriptionClassName?: string;
1608
- descriptionMaxLines?: number;
242
+ isDragging?: boolean;
243
+ onFilesChange?: (files: File[]) => void;
244
+ onError?: (errors: string[]) => void;
245
+ actions?: React.ReactNode;
246
+ };
247
+ declare function FileUpload({ accept, maxSizeMB, multiple, title, description, buttonLabel, icon, state, className, actions, tokens, onFilesChange, onError, }: FileUploadProps): react_jsx_runtime.JSX.Element;
248
+
249
+ type LoaderSize = 'small' | 'medium' | 'large' | 'extraLarge';
250
+ type LoaderVariant = 'default' | 'primary';
251
+ type LoaderProps = React.ComponentProps<'div'> & {
252
+ size?: LoaderSize;
253
+ variant?: LoaderVariant;
1609
254
  tokens?: Partial<ThemeTokensBase>;
255
+ label?: string;
256
+ description?: React.ReactNode;
257
+ spinnerClassName?: string;
258
+ spinnerProps?: Omit<React.ComponentProps<typeof Loader2Icon>, 'size'>;
1610
259
  };
1611
- declare function Header({ title, description, action, size, className, titleClassName, descriptionClassName, descriptionMaxLines, tokens, }: HeaderProps): react_jsx_runtime.JSX.Element;
260
+ declare function Loader({ className, style, size, variant, tokens, label, description, spinnerClassName, spinnerProps, ...props }: LoaderProps): react_jsx_runtime.JSX.Element;
1612
261
 
1613
- type AlertDialogAlignment = 'left' | 'center';
1614
- interface AlertDialogProps extends React$1.ComponentProps<typeof AlertDialogPrimitive.Root> {
262
+ type ProgressProps = React.ComponentProps<typeof ProgressPrimitive.Root> & {
263
+ value: number;
264
+ label?: string;
265
+ showValue?: boolean;
266
+ description?: string;
267
+ icon?: React.ReactNode;
268
+ variant?: string;
1615
269
  tokens?: Partial<ThemeTokensBase>;
1616
- alignment?: AlertDialogAlignment;
1617
- size?: 'regular';
1618
- }
1619
- declare function AlertDialog({ tokens, alignment, size, ...props }: AlertDialogProps): react_jsx_runtime.JSX.Element;
1620
- declare const AlertDialogTrigger: React$1.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
1621
- declare const AlertDialogPortal: React$1.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
1622
- declare function AlertDialogOverlay(props: React$1.ComponentProps<typeof AlertDialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
1623
- declare function AlertDialogContent({ className, alignment, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Content> & {
1624
- alignment?: AlertDialogAlignment;
1625
- }): react_jsx_runtime.JSX.Element;
1626
- declare function AlertDialogHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
1627
- declare function AlertDialogFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
1628
- declare function AlertDialogTitle(props: React$1.ComponentProps<typeof AlertDialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
1629
- declare function AlertDialogDescription(props: React$1.ComponentProps<typeof AlertDialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
1630
- declare function AlertDialogAction({ className, children, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Action>): react_jsx_runtime.JSX.Element;
1631
- declare function AlertDialogCancel({ className, children, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Cancel>): react_jsx_runtime.JSX.Element;
270
+ };
271
+ declare function Progress({ className, style, value, label, showValue, description, icon, variant, tokens, ...props }: ProgressProps): react_jsx_runtime.JSX.Element;
1632
272
 
1633
- type Merchant = {
1634
- id: string;
1635
- name: string;
273
+ type Variant = 'primary' | 'secondary' | 'tertiary';
274
+ type Orientation = 'horizontal' | 'vertical';
275
+ type ImagePosition = 'left' | 'right' | 'top' | 'bottom';
276
+ type ContentAlign = 'left' | 'center';
277
+ type ImageDisplay = 'inline' | 'background';
278
+ type HeroContentPosition = 'top' | 'center' | 'between' | 'bottom';
279
+ declare const bannerVariants: (props?: ({
280
+ size?: "compact" | "full" | null | undefined;
281
+ orientation?: "horizontal" | "vertical" | null | undefined;
282
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
283
+ type BannerProps = React.ComponentProps<'div'> & VariantProps<typeof bannerVariants> & {
284
+ asChild?: boolean;
285
+ tokens?: Partial<ThemeTokensBase>;
286
+ variant?: Variant;
287
+ orientation?: Orientation;
288
+ imagePosition?: ImagePosition;
289
+ contentAlign?: ContentAlign;
290
+ imageDisplay?: ImageDisplay;
291
+ heroContentPosition?: HeroContentPosition;
292
+ heroMinHeight?: string;
293
+ heroOverlay?: string;
294
+ title: React.ReactNode;
295
+ description?: React.ReactNode;
296
+ cta?: React.ReactNode;
297
+ imageSrc: string;
298
+ imageAlt?: string;
299
+ icon?: React.ReactNode;
300
+ endSlot?: React.ReactNode;
1636
301
  };
1637
- type NavbarUser = {
1638
- name: string;
1639
- role?: string;
1640
- avatarUrl?: string;
1641
- menu: {
1642
- id: string;
1643
- label: string;
1644
- onClick: () => void;
1645
- }[];
302
+ 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;
303
+
304
+ type CardProps = React.HTMLAttributes<HTMLDivElement> & {
305
+ title?: React.ReactNode;
306
+ action?: React.ReactNode;
307
+ tokens?: Partial<ThemeTokensBase>;
308
+ variant?: 'primary' | 'secondary' | 'tertiary';
309
+ width?: number | string;
1646
310
  };
1647
- type NavbarProps = {
1648
- children: React$1.ReactNode;
1649
- open?: boolean;
1650
- expandedContent?: React$1.ReactNode;
311
+ declare function Card({ className, title, action, tokens, variant, width, children, style, ...props }: CardProps): react_jsx_runtime.JSX.Element;
312
+
313
+ interface ColorExampleProps {
1651
314
  className?: string;
315
+ colorToken: string;
316
+ colorName: string;
317
+ }
318
+ declare function ColorExample({ className, colorToken, colorName }: ColorExampleProps): react_jsx_runtime.JSX.Element;
319
+
320
+ declare const integrationCardVariants: (props?: ({
321
+ variant?: "default" | "none" | "subtle" | null | undefined;
322
+ logoSize?: "small" | "large" | null | undefined;
323
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
324
+
325
+ type IntegrationCardProps = React.ComponentProps<'div'> & VariantProps<typeof integrationCardVariants> & {
326
+ asChild?: boolean;
327
+ tokens?: Partial<ThemeTokensBase>;
328
+ badgeText?: React.ReactNode;
329
+ logoSlot?: React.ReactNode;
330
+ logoSrc?: string;
331
+ logoAlt?: string;
332
+ initials?: React.ReactNode;
333
+ bannerClassName?: string;
334
+ title: React.ReactNode;
335
+ description?: React.ReactNode;
336
+ linkLabel?: React.ReactNode;
337
+ linkHref?: string;
338
+ onLinkClick?: () => void;
339
+ logoClassName?: string;
340
+ badgeClassName?: string;
341
+ contentClassName?: string;
342
+ linkClassName?: string;
1652
343
  };
1653
- type NavbarComponent = React$1.FC<NavbarProps> & {
1654
- Start: React$1.FC<{
1655
- children: React$1.ReactNode;
1656
- }>;
1657
- End: React$1.FC<{
1658
- children: React$1.ReactNode;
1659
- }>;
1660
- Slot: React$1.FC<{
1661
- children: React$1.ReactNode;
1662
- }>;
1663
- Logo: typeof NavbarLogo;
1664
- Merchant: typeof NavbarMerchant;
1665
- User: typeof NavbarUserMenu;
344
+ 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;
345
+
346
+ type AvatarSize = 'sm' | 'md' | 'lg';
347
+ type AvatarProps = React.ComponentProps<typeof AvatarPrimitive.Root> & {
348
+ size?: AvatarSize;
349
+ src?: string;
350
+ alt?: string;
351
+ fallback?: React.ReactNode;
352
+ name?: string;
353
+ imageClassName?: string;
354
+ fallbackClassName?: string;
355
+ tokens?: Partial<ThemeTokensBase>;
356
+ asChild?: boolean;
1666
357
  };
1667
- declare const Navbar: NavbarComponent;
1668
- declare function NavbarLogo({ children }: {
1669
- children?: React$1.ReactNode;
1670
- }): react_jsx_runtime.JSX.Element;
1671
- declare function NavbarMerchant({ merchants, currentId, onChange, }: {
1672
- merchants?: Merchant[];
1673
- currentId?: string;
1674
- onChange?: (id: string) => void;
1675
- }): react_jsx_runtime.JSX.Element | null;
1676
- declare function NavbarUserMenu({ user }: {
1677
- user: NavbarUser;
358
+ declare function Avatar({ className, size, src, alt, fallback, name, imageClassName, fallbackClassName, tokens, asChild, style, children, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
359
+ declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime.JSX.Element;
360
+ declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime.JSX.Element;
361
+
362
+ type ListItemStatus = {
363
+ label: string;
364
+ variant?: 'default' | 'secondary' | 'destructive' | 'outline';
365
+ };
366
+ type ListItemProps = {
367
+ id: string;
368
+ /** Texto superior (ej: fecha) */
369
+ overline?: string;
370
+ /** Título principal */
371
+ title: string;
372
+ /** Subtítulo opcional */
373
+ subtitle?: string;
374
+ /** Valor alineado a la derecha */
375
+ amount?: string;
376
+ /** Estado opcional (badge) */
377
+ status?: ListItemStatus;
378
+ /** Click del item completo */
379
+ onItemClick?: (id: string) => void;
380
+ /** Clases extra */
381
+ className?: string;
382
+ };
383
+ declare function ListItem({ id, overline, title, subtitle, amount, status, onItemClick, className, }: ListItemProps): react_jsx_runtime.JSX.Element;
384
+
385
+ declare function LoaderInit({ size, className, }: {
386
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
387
+ color?: string;
388
+ className?: string;
1678
389
  }): react_jsx_runtime.JSX.Element;
1679
390
 
1680
- declare function Pagination({ className, tokens: customTokens, style, ...props }: React$1.ComponentProps<'nav'> & {
391
+ type HeaderSize = 'desktop' | 'mobile';
392
+ type HeaderProps = {
393
+ title: React.ReactNode;
394
+ description?: React.ReactNode;
395
+ action?: React.ReactNode;
396
+ size?: HeaderSize;
397
+ className?: string;
398
+ titleClassName?: string;
399
+ descriptionClassName?: string;
400
+ descriptionMaxLines?: number;
1681
401
  tokens?: Partial<ThemeTokensBase>;
1682
- }): react_jsx_runtime.JSX.Element;
1683
- type PaginationLinkProps = {
1684
- isActive?: boolean;
1685
- disabled?: boolean;
1686
- } & React$1.ComponentProps<'a'>;
1687
- declare function PaginationLink({ className, isActive, disabled, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
1688
- declare function PaginationContent({ className, ...props }: React$1.ComponentProps<'ul'>): react_jsx_runtime.JSX.Element;
1689
- declare function PaginationItem(props: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
1690
- declare function PaginationPrevious({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
1691
- declare function PaginationNext({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
1692
- declare function PaginationEllipsis({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
402
+ };
403
+ declare function Header({ title, description, action, size, className, titleClassName, descriptionClassName, descriptionMaxLines, tokens, }: HeaderProps): react_jsx_runtime.JSX.Element;
1693
404
 
1694
405
  type SidebarItem = {
1695
406
  id: string;
1696
407
  label: string;
1697
- icon: React$1.ReactNode;
408
+ icon: React.ReactNode;
1698
409
  active?: boolean;
1699
410
  href?: string;
1700
411
  };
@@ -1715,26 +426,15 @@ type SidebarProps = {
1715
426
  };
1716
427
  declare function Sidebar({ title, sections, items, collapsed, onToggleCollapse, onItemClick, className, tokens, }: SidebarProps): react_jsx_runtime.JSX.Element;
1717
428
 
1718
- declare function Tabs({ className, size, tokens, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Root> & {
1719
- size: TabsSize;
1720
- tokens?: Partial<ThemeTokensBase>;
1721
- }): react_jsx_runtime.JSX.Element;
1722
- type TabsSize = 'medium' | 'small';
1723
- declare function TabsList({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.List> & {
1724
- size?: TabsSize;
1725
- }): react_jsx_runtime.JSX.Element;
1726
- declare function TabsTrigger({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
1727
- declare function TabsContent({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element;
1728
-
1729
- type TourProps = React$1.HTMLAttributes<HTMLDivElement> & {
429
+ type TourProps = React.HTMLAttributes<HTMLDivElement> & {
1730
430
  currentStep: number;
1731
431
  totalSteps: number;
1732
- title: React$1.ReactNode;
1733
- description: React$1.ReactNode;
432
+ title: React.ReactNode;
433
+ description: React.ReactNode;
1734
434
  onBack: () => void;
1735
435
  onNext: () => void;
1736
- backLabel?: React$1.ReactNode;
1737
- nextLabel?: React$1.ReactNode;
436
+ backLabel?: React.ReactNode;
437
+ nextLabel?: React.ReactNode;
1738
438
  disableBack?: boolean;
1739
439
  disableNext?: boolean;
1740
440
  showPointer?: boolean;
@@ -1742,160 +442,210 @@ type TourProps = React$1.HTMLAttributes<HTMLDivElement> & {
1742
442
  };
1743
443
  declare function Tour({ className, currentStep, totalSteps, title, description, onBack, onNext, backLabel, nextLabel, disableBack, disableNext, showPointer, tokens, style, ...props }: TourProps): react_jsx_runtime.JSX.Element;
1744
444
 
1745
- type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
1746
- type IconVariant = 'default' | 'primary' | 'muted' | 'danger' | 'success';
1747
- type IconProps = React$1.HTMLAttributes<HTMLSpanElement> & {
1748
- children?: React$1.ReactNode;
1749
- size?: IconSize;
1750
- color?: IconVariant;
1751
- tokens?: Partial<ThemeTokensBase>;
1752
- asChild?: boolean;
1753
- };
1754
- declare function Icon({ className, size, color, tokens: customTokens, asChild, style, children, ...props }: IconProps): react_jsx_runtime.JSX.Element;
1755
-
1756
- type IconLabelProps = {
1757
- icon: React$1.ReactNode;
1758
- label: React$1.ReactNode;
1759
- iconPosition?: 'left' | 'right';
1760
- className?: string;
1761
- };
1762
- declare function IconLabel({ icon, label, iconPosition, className, }: IconLabelProps): react_jsx_runtime.JSX.Element;
1763
-
1764
- declare function LoaderInit({ size, className, }: {
1765
- size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
1766
- color?: string;
1767
- className?: string;
1768
- }): react_jsx_runtime.JSX.Element;
1769
-
1770
- type SeparatorProps = React$1.ComponentProps<typeof SeparatorPrimitive.Root> & {
445
+ type SeparatorProps = React.ComponentProps<typeof SeparatorPrimitive.Root> & {
1771
446
  tokens?: Partial<ThemeTokensBase>;
1772
447
  };
1773
448
  declare function Separator({ className, orientation, decorative, tokens, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
1774
449
 
1775
- declare function ThemeProvider({ channelId, theme, children, }: {
1776
- channelId?: string;
1777
- theme?: any;
1778
- children: React.ReactNode;
1779
- }): react_jsx_runtime.JSX.Element;
1780
-
1781
- declare function cn(...inputs: ClassValue[]): string;
1782
-
1783
- declare enum COMPONENT_NAMES {
1784
- ACCORDION = "accordion",
1785
- BADGE = "badge",
1786
- BUTTON = "button",
1787
- CHECKBOX = "checkbox",
1788
- DRAWER = "drawer",
1789
- EMPTY_STATE = "emptyState",
1790
- INPUT = "input",
1791
- LABEL = "label",
1792
- MODAL_DIALOG = "alertDialog",
1793
- NAVBAR = "navbar",
1794
- POPOVER = "popover",
1795
- RADIO = "radio",
1796
- SEPARATOR = "separator",
1797
- SIDEBAR = "sidebar",
1798
- SWITCH = "switch",
1799
- TABS = "tabs",
1800
- TOUR = "tour",
1801
- TABLE = "table",
1802
- AVATAR = "avatar",
1803
- CARD = "card",
1804
- BANNER = "banner",
1805
- PROMO_BANNER = "promoBanner",
1806
- PROGRESS = "progress",
1807
- LOADER = "loader",
1808
- FILE_UPLOAD = "fileUpload",
1809
- DROPDOWN = "dropdown",
1810
- TOOLTIP = "tooltip",
1811
- DRAG_SLIDER = "dragSlider",
1812
- MODULE_BOX = "moduleBox",
1813
- CHARTS = "charts",
1814
- PAGINATION = "pagination",
1815
- HEADER = "header",
1816
- BREADCRUMB = "breadcrumb",
1817
- ICON = "icon",
1818
- SELECT = "select",
1819
- ALERT = "alert",
1820
- CALENDAR = "calendar"
1821
- }
1822
-
1823
- /**
1824
- * `CSSProperties` extended with arbitrary CSS custom properties (`--*`).
1825
- * Use this instead of `as React.CSSProperties` when passing objects that
1826
- * include `--my-var` keys.
1827
- */
1828
- type CSSPropertiesWithVars = CSSProperties & Record<`--${string}`, string | number>;
1829
- /**
1830
- * A single CSS variable mapping entry.
1831
- *
1832
- * - `tokenPath` — dot-separated path into the resolved tokens object
1833
- * (e.g. `'hover.background'`, `'title.fontSize'`)
1834
- * - `fallback` — hardcoded default used when the token is not found
1835
- */
1836
- type TokenVarEntry = {
1837
- tokenPath: string;
1838
- fallback?: string | number;
1839
- };
1840
- /**
1841
- * Declarative mapping from CSS custom-property names to token paths.
1842
- *
1843
- * Example:
1844
- * ```ts
1845
- * const map = {
1846
- * '--card-bg': { tokenPath: 'backgroundColor', fallback: '#ffffff' },
1847
- * '--card-radius': { tokenPath: 'borderRadius', fallback: '16px' },
1848
- * };
1849
- * ```
1850
- */
1851
- type TokenStyleMap = Record<string, TokenVarEntry>;
1852
- /**
1853
- * Map an **already-resolved** token object to CSS custom properties.
1854
- *
1855
- * ### Usage
1856
- * ```tsx
1857
- * const theme = useTheme();
1858
- * const mergedTokens = resolveTokens<CardTokens>({ componentName: 'card', variant, tokens }, theme);
1859
- * const styles = mapTokenStyles(mergedTokens, CARD_TOKEN_MAP);
1860
- * ```
1861
- *
1862
- * @param resolvedTokens — the raw result of `resolveTokens(…)`
1863
- * @param map — declarative CSS-var → token-path mapping
1864
- * @param extra — optional extra styles (supports CSS custom properties)
1865
- */
1866
- declare function mapTokenStyles(resolvedTokens: Record<string, unknown>, map: TokenStyleMap, extra?: CSSPropertiesWithVars | CSSProperties): CSSPropertiesWithVars;
1867
-
1868
- /**
1869
- * Shared token map for all input-family components
1870
- * (Input, SearchBar, Select, Textarea, PasswordInput, DatePicker, Combobox).
1871
- *
1872
- * Eliminates ~40 lines of boilerplate per component.
1873
- */
1874
- declare const INPUT_TOKEN_MAP: TokenStyleMap;
1875
- /**
1876
- * Build extra size-specific styles from the resolved size tokens.
1877
- * Used with `mapTokenStyles(..., extra)`.
1878
- */
1879
- declare function inputSizeExtras(sizeTokens: Record<string, any>): Record<string, unknown>;
1880
-
1881
- /**
1882
- * Hook para resolver tokens y mapear estilos en un solo paso.
1883
- * Elimina el boilerplate repetido de useTheme + resolveTokens + mapTokenStyles.
1884
- *
1885
- * @param componentName Nombre del componente (ej: 'button')
1886
- * @param tokenMap Mapeo declarativo de CSS vars
1887
- * @param options Opciones: variant, size, tone, tokens, extra
1888
- */
1889
- declare function useTokenStyles<T extends ResolvedTokenMap = ResolvedTokenMap>(componentName: string, tokenMap: TokenStyleMap, options?: {
1890
- variant?: string;
1891
- size?: string;
1892
- tone?: string;
1893
- tokens?: Partial<ThemeTokensBase>;
1894
- shape?: string;
1895
- extra?: CSSPropertiesWithVars | React.CSSProperties;
1896
- }): {
1897
- styles: CSSPropertiesWithVars;
1898
- tokens: T;
1899
- };
1900
-
1901
- 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, 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, 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 };
450
+ declare global {
451
+ interface NaveButtonAttributes {
452
+ variant?: 'primary' | 'secondary' | 'tertiary' | 'neutral';
453
+ size?: 'small' | 'medium' | 'large' | 'icon' | 'icon-small' | 'icon-large';
454
+ disabled?: boolean;
455
+ loading?: boolean;
456
+ 'loading-label'?: string;
457
+ }
458
+ interface NaveInputAttributes {
459
+ type?: string;
460
+ placeholder?: string;
461
+ value?: string;
462
+ disabled?: boolean;
463
+ label?: string;
464
+ error?: string;
465
+ hint?: string;
466
+ size?: 'small' | 'medium' | 'large';
467
+ }
468
+ interface NaveTextareaAttributes {
469
+ placeholder?: string;
470
+ value?: string;
471
+ disabled?: boolean;
472
+ label?: string;
473
+ error?: string;
474
+ hint?: string;
475
+ rows?: number;
476
+ }
477
+ interface NaveLabelAttributes {
478
+ htmlFor?: string;
479
+ }
480
+ interface NaveSearchBarAttributes {
481
+ placeholder?: string;
482
+ value?: string;
483
+ disabled?: boolean;
484
+ }
485
+ interface NavePasswordInputAttributes {
486
+ placeholder?: string;
487
+ value?: string;
488
+ disabled?: boolean;
489
+ label?: string;
490
+ error?: string;
491
+ hint?: string;
492
+ }
493
+ interface NaveSelectAttributes {
494
+ placeholder?: string;
495
+ value?: string;
496
+ disabled?: boolean;
497
+ label?: string;
498
+ error?: string;
499
+ }
500
+ interface NaveComboboxAttributes {
501
+ placeholder?: string;
502
+ value?: string;
503
+ disabled?: boolean;
504
+ label?: string;
505
+ }
506
+ interface NaveDatePickerAttributes {
507
+ placeholder?: string;
508
+ value?: string;
509
+ disabled?: boolean;
510
+ label?: string;
511
+ }
512
+ interface NaveCheckboxAttributes {
513
+ checked?: boolean;
514
+ disabled?: boolean;
515
+ label?: string;
516
+ value?: string;
517
+ indeterminate?: boolean;
518
+ }
519
+ interface NaveSwitchAttributes {
520
+ checked?: boolean;
521
+ disabled?: boolean;
522
+ label?: string;
523
+ }
524
+ interface NaveAlertAttributes {
525
+ variant?: 'info' | 'success' | 'warning' | 'error';
526
+ title?: string;
527
+ description?: string;
528
+ dismissible?: boolean;
529
+ }
530
+ interface NaveBadgeAttributes {
531
+ variant?: 'default' | 'secondary' | 'outline' | 'destructive';
532
+ size?: 'small' | 'medium' | 'large';
533
+ }
534
+ interface NaveLoaderAttributes {
535
+ size?: 'small' | 'medium' | 'large';
536
+ description?: string;
537
+ }
538
+ interface NaveProgressAttributes {
539
+ value?: number;
540
+ max?: number;
541
+ }
542
+ interface NaveEmptyStateAttributes {
543
+ title?: string;
544
+ description?: string;
545
+ }
546
+ interface NaveFileUploadAttributes {
547
+ name?: string;
548
+ size?: string;
549
+ status?: string;
550
+ }
551
+ interface NaveBannerAttributes {
552
+ variant?: 'info' | 'success' | 'warning' | 'error';
553
+ title?: string;
554
+ description?: string;
555
+ dismissible?: boolean;
556
+ }
557
+ interface NaveCardAttributes {
558
+ title?: string;
559
+ variant?: string;
560
+ }
561
+ interface NaveIntegrationCardAttributes {
562
+ title?: string;
563
+ description?: string;
564
+ 'badge-text'?: string;
565
+ 'link-label'?: string;
566
+ href?: string;
567
+ }
568
+ interface NaveColorExampleAttributes {
569
+ color?: string;
570
+ name?: string;
571
+ value?: string;
572
+ }
573
+ interface NaveListItemAttributes {
574
+ title?: string;
575
+ description?: string;
576
+ href?: string;
577
+ }
578
+ interface NaveAvatarAttributes {
579
+ size?: 'small' | 'medium' | 'large';
580
+ }
581
+ interface NaveHeaderAttributes {
582
+ title?: string;
583
+ description?: string;
584
+ }
585
+ interface NaveTourAttributes {
586
+ title?: string;
587
+ description?: string;
588
+ step?: number;
589
+ 'total-steps'?: number;
590
+ 'back-label'?: string;
591
+ 'next-label'?: string;
592
+ open?: boolean;
593
+ }
594
+ interface NaveSidebarAttributes {
595
+ collapsed?: boolean;
596
+ }
597
+ interface NaveSeparatorAttributes {
598
+ orientation?: 'horizontal' | 'vertical';
599
+ decorative?: boolean;
600
+ }
601
+ interface NaveLoaderInitAttributes {
602
+ size?: 'small' | 'medium' | 'large';
603
+ }
604
+ interface NaveAvatarFallbackAttributes {
605
+ }
606
+ interface NaveAvatarImageAttributes {
607
+ src?: string;
608
+ alt?: string;
609
+ }
610
+ interface HTMLElementTagNameMap {
611
+ 'nave-button': HTMLElement & NaveButtonAttributes;
612
+ 'nave-input': HTMLElement & NaveInputAttributes;
613
+ 'nave-textarea': HTMLElement & NaveTextareaAttributes;
614
+ 'nave-label': HTMLElement & NaveLabelAttributes;
615
+ 'nave-search-bar': HTMLElement & NaveSearchBarAttributes;
616
+ 'nave-password-input': HTMLElement & NavePasswordInputAttributes;
617
+ 'nave-select': HTMLElement & NaveSelectAttributes;
618
+ 'nave-combobox': HTMLElement & NaveComboboxAttributes;
619
+ 'nave-date-picker': HTMLElement & NaveDatePickerAttributes;
620
+ 'nave-checkbox': HTMLElement & NaveCheckboxAttributes;
621
+ 'nave-switch': HTMLElement & NaveSwitchAttributes;
622
+ 'nave-alert': HTMLElement & NaveAlertAttributes;
623
+ 'nave-badge': HTMLElement & NaveBadgeAttributes;
624
+ 'nave-loader': HTMLElement & NaveLoaderAttributes;
625
+ 'nave-progress': HTMLElement & NaveProgressAttributes;
626
+ 'nave-empty-state': HTMLElement & NaveEmptyStateAttributes;
627
+ 'nave-file-upload': HTMLElement & NaveFileUploadAttributes;
628
+ 'nave-banner': HTMLElement & NaveBannerAttributes;
629
+ 'nave-card': HTMLElement & NaveCardAttributes;
630
+ 'nave-integration-card': HTMLElement & NaveIntegrationCardAttributes;
631
+ 'nave-color-example': HTMLElement & NaveColorExampleAttributes;
632
+ 'nave-list-item': HTMLElement & NaveListItemAttributes;
633
+ 'nave-avatar': HTMLElement & NaveAvatarAttributes;
634
+ 'nave-avatar-fallback': HTMLElement & NaveAvatarFallbackAttributes;
635
+ 'nave-avatar-image': HTMLElement & NaveAvatarImageAttributes;
636
+ 'nave-loader-init': HTMLElement & NaveLoaderInitAttributes;
637
+ 'nave-header': HTMLElement & NaveHeaderAttributes;
638
+ 'nave-tour': HTMLElement & NaveTourAttributes;
639
+ 'nave-sidebar': HTMLElement & NaveSidebarAttributes;
640
+ 'nave-separator': HTMLElement & NaveSeparatorAttributes;
641
+ 'nave-theme-provider': NaveThemeProviderElement;
642
+ }
643
+ interface NaveThemeProviderElement extends HTMLElement {
644
+ /** Set the channel ID to auto-fetch the theme from CDN */
645
+ 'channel-id'?: string;
646
+ /** Set a theme object directly via JS property */
647
+ theme: ThemeTokensBase | null;
648
+ }
649
+ }
650
+
651
+ export { Alert, Avatar, AvatarFallback, AvatarImage, Badge, Banner, Button, Card, Checkbox, ColorExample, Combobox, DatePickerInput, EmptyState, FileUpload, Header, Input, IntegrationCard, Label, ListItem, Loader, LoaderInit, NaveThemeProviderElement, PasswordInput, Progress, SearchBar, Select, Separator, Sidebar, Switch, Textarea, Tour, getGlobalTheme, setGlobalTheme };