@1doc/1ds-vue 2.8.0 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/CHANGELOG.md +1115 -0
  2. package/dist/index.css +1 -1
  3. package/dist/index.d.ts +1016 -28
  4. package/dist/index.mjs +10524 -7523
  5. package/dist/index.umd.js +4 -4
  6. package/package.json +5 -4
  7. package/src/index.ts +26 -0
  8. package/src/teste/accordion-conteudo-livre.test.mjs +44 -0
  9. package/src/teste/atributos.test.mjs +91 -0
  10. package/src/teste/attachmentcard-ia.test.mjs +48 -0
  11. package/src/teste/avatargroup-overlap.test.mjs +45 -0
  12. package/src/teste/badge-tag.test.mjs +45 -0
  13. package/src/teste/box-item-flex.test.mjs +84 -0
  14. package/src/teste/box-layout.test.mjs +57 -0
  15. package/src/teste/button.test.mjs +34 -0
  16. package/src/teste/calendar.test.mjs +179 -0
  17. package/src/teste/chips-xs.test.mjs +33 -0
  18. package/src/teste/coachmark.test.mjs +119 -0
  19. package/src/teste/color-picker.test.mjs +79 -0
  20. package/src/teste/datatable-documento.test.mjs +106 -0
  21. package/src/teste/datatable-slots.test.mjs +105 -0
  22. package/src/teste/dom.mjs +168 -0
  23. package/src/teste/fileinput-trigger.test.mjs +36 -0
  24. package/src/teste/icon-picker.test.mjs +98 -0
  25. package/src/teste/input-mascara-afins.test.mjs +64 -0
  26. package/src/teste/kbd-code-block.test.mjs +76 -0
  27. package/src/teste/list.test.mjs +162 -0
  28. package/src/teste/modal-variantes.test.mjs +79 -0
  29. package/src/teste/org-chart.test.mjs +131 -0
  30. package/src/teste/otp-input.test.mjs +130 -0
  31. package/src/teste/popover-maxheight.test.mjs +26 -0
  32. package/src/teste/renderizar.mjs +64 -0
  33. package/src/teste/rich-text-editor.test.mjs +210 -0
  34. package/src/teste/select-placement-filtro.test.mjs +49 -0
  35. package/src/teste/stack-box-raiz-unica.test.mjs +134 -0
  36. package/src/teste/stack.test.mjs +80 -0
  37. package/src/teste/statcard-rotulo-topo.test.mjs +34 -0
  38. package/src/teste/tabs-contador-fechavel.test.mjs +60 -0
  39. package/src/teste/tooltip-dark.test.mjs +28 -0
  40. package/src/utils/calendario.ts +78 -0
  41. package/src/utils/html-seguro.ts +94 -0
  42. package/src/utils/paleta-de-cores.ts +34 -0
  43. package/src/utils/texto.ts +5 -0
package/dist/index.d.ts CHANGED
@@ -3,15 +3,39 @@
3
3
 
4
4
  import type { IconLookup as FaIconLookup, Transform, FaSymbol } from "@fortawesome/fontawesome-svg-core";
5
5
 
6
- // Theme types
7
- export type Theme = 'light' | 'dark' | 'system';
6
+ // Theme types (copiados de packages/core/src/utils/theme.ts)
7
+ /**
8
+ * Tipos de temas oficiais do Design System
9
+ */
10
+ export type Theme =
11
+ | "1doc"
12
+ | "1ds-red"
13
+ | "1ds-green"
14
+ | "1ds-orange"
15
+ | "1ds-yellow"
16
+ | "1ds-purple"
17
+ | "1doc-dark"
18
+ | "1ds-red-dark"
19
+ | "1ds-green-dark"
20
+ | "1ds-orange-dark"
21
+ | "1ds-yellow-dark"
22
+ | "1ds-purple-dark"
23
+ | "1doc-high-contrast";
24
+
25
+ /**
26
+ * Nome de tema aceito pelas APIs: um tema oficial OU um tema custom de
27
+ * marca própria registrado via registerTheme() (white-label).
28
+ * O truque `(string & {})` preserva o autocomplete dos oficiais.
29
+ */
30
+ export type ThemeName = Theme | (string & {});
8
31
 
9
32
  // Theme utilities
10
- export declare function setTheme(theme: Theme): void;
11
- export declare function getTheme(): Theme;
12
- export declare function initTheme(): Theme;
13
- export declare function getAvailableThemes(): Theme[];
14
- export declare function onThemeChange(callback: (theme: Theme) => void): () => void;
33
+ export declare function registerTheme(theme: string): void;
34
+ export declare function setTheme(theme: ThemeName): void;
35
+ export declare function getTheme(): ThemeName;
36
+ export declare function initTheme(): void;
37
+ export declare function getAvailableThemes(): ThemeName[];
38
+ export declare function onThemeChange(callback: (theme: ThemeName) => void): () => void;
15
39
 
16
40
  // FontAwesome
17
41
  export { library } from "@fortawesome/fontawesome-svg-core";
@@ -71,6 +95,19 @@ export interface AILabelProps {
71
95
  children?: any;
72
96
  }
73
97
 
98
+ export interface AccordionItemData {
99
+ id: string;
100
+ title: string;
101
+ /**
102
+ * Conteúdo do painel. React: aceita qualquer nó. Vue: aqui vai só texto; para
103
+ * conteúdo livre (campos, botões) use o slot `#content-<id>` do item, que
104
+ * recebe `{ item }` e vale sobre este texto.
105
+ */
106
+ content: any;
107
+ disabled?: boolean;
108
+ defaultOpen?: boolean;
109
+ }
110
+
74
111
  export interface AccordionProps {
75
112
  items: AccordionItemData[];
76
113
  multiple?: boolean;
@@ -298,6 +335,19 @@ export interface AppShellProps {
298
335
  contentLabel?: string;
299
336
  }
300
337
 
338
+ export interface AppSidebarItem {
339
+ /** Identificador do item — é o que volta em `onSelect`. */
340
+ id: string;
341
+ /** Rótulo. Continua existindo para leitor de tela com a barra fechada. */
342
+ label: string;
343
+ /** Ícone Font Awesome como objeto importado. */
344
+ icon?: IconProp;
345
+ /** Contador ao lado do rótulo (ex.: não lidos). */
346
+ badge?: string | number;
347
+ /** Desabilita o item. */
348
+ disabled?: boolean;
349
+ }
350
+
301
351
  export interface AppSidebarProps {
302
352
  /** Itens de navegação. */
303
353
  items?: AppSidebarItem[];
@@ -339,14 +389,44 @@ export interface AppSubheaderProps {
339
389
  children?: any;
340
390
  }
341
391
 
392
+ export interface AttachmentCardField {
393
+ label: string;
394
+ value: string;
395
+ /** Mostra o botão de copiar ao lado do valor. */
396
+ copyable?: boolean;
397
+ }
398
+
399
+ export interface AttachmentCardStatusDetails {
400
+ /** Título do painel. Padrão: o nome do arquivo. */
401
+ title?: string;
402
+ /** O que a conferência concluiu, em uma ou duas frases. */
403
+ description?: string;
404
+ /** Dados extraídos do documento. */
405
+ fields?: AttachmentCardField[];
406
+ }
407
+
342
408
  export interface AttachmentCardProps {
343
409
  fileName: string;
344
410
  documentType?: string;
345
411
  required?: boolean;
346
- status?: "positive" | "negative";
412
+ status?: "positive" | "negative" | "ai";
347
413
  statusLabel?: string;
348
414
  statusIcon?: IconProp;
349
415
  statusDetails?: AttachmentCardStatusDetails;
416
+ /**
417
+ * Conteúdo livre do painel do selo, no lugar do resultado da conferência
418
+ * (`statusDetails`): ações, campos, texto. React: o elemento; Vue: o slot
419
+ * `panel`. Com ele o selo vira botão mesmo sem `statusDetails`.
420
+ */
421
+ panel?: any;
422
+ /** Largura do painel, em px. @default 300 */
423
+ panelWidth?: number;
424
+ /**
425
+ * Fecha o painel e devolve o foco ao selo quando alguém aciona um botão ou
426
+ * link de dentro dele. O botão de copiar um campo não conta. Sem a prop, o
427
+ * painel fica aberto até Esc, clique fora ou o foco sair.
428
+ */
429
+ closePanelOnAction?: boolean;
350
430
  onCopyField?: (field: AttachmentCardField) => void;
351
431
  icon?: IconProp;
352
432
  onOpen?: (event?: any) => void;
@@ -416,6 +496,23 @@ export interface AvatarProps {
416
496
  onError?: (event?: any) => void;
417
497
  }
418
498
 
499
+ export interface AvatarGroupItem {
500
+ /**
501
+ * URL da imagem. Quando ausente, exibe as iniciais derivadas de `name`.
502
+ */
503
+ src?: string;
504
+ /**
505
+ * Nome da pessoa. Usado para acessibilidade (title/aria-label) e para
506
+ * derivar as iniciais quando não há imagem.
507
+ */
508
+ name: string;
509
+ /**
510
+ * Iniciais explícitas. Se omitido, são calculadas automaticamente a partir
511
+ * de `name` (primeira letra do primeiro e do segundo nome).
512
+ */
513
+ initials?: string;
514
+ }
515
+
419
516
  export interface AvatarGroupProps {
420
517
  /** Rótulo acessível do grupo. @default 'Grupo de avatares' */
421
518
  ariaLabel?: string;
@@ -434,6 +531,23 @@ export interface AvatarGroupProps {
434
531
  * @default 'md'
435
532
  */
436
533
  size?: "sm" | "md" | "lg";
534
+ /**
535
+ * Quantas pessoas a mais existem além das que estão em `avatars`: entra na
536
+ * conta do "+N" sem precisar de itens-fantasma. Com 16 responsáveis, passe
537
+ * os 4 primeiros em `avatars` e `overflowCount={12}` para ver "+12". Soma com
538
+ * o que passar de `max` dentro de `avatars`.
539
+ * @default 0
540
+ */
541
+ overflowCount?: number;
542
+ /**
543
+ * Quanto cada avatar avança sobre o anterior, em px. O padrão é 8
544
+ * (`spacing-nano`); 6 deixa as iniciais menos cortadas.
545
+ */
546
+ overlap?: number;
547
+ /**
548
+ * Largura do anel (a borda da cor do fundo) de cada avatar, em px. O padrão é 1,5.
549
+ */
550
+ ring?: number;
437
551
  /**
438
552
  * Classes adicionais.
439
553
  */
@@ -457,16 +571,27 @@ export interface AvatarGroupProps {
457
571
 
458
572
  export interface BadgeProps {
459
573
  /**
460
- * Variação de cor semântica.
574
+ * Variação de cor semântica. `new` é o selo de novidade: amarelo, em caixa
575
+ * alta e pílula, para destacar uma funcionalidade recém-chegada.
461
576
  * @default 'neutral'
462
577
  */
463
- variant?: "neutral" | "positive" | "negative" | "info" | "primary";
578
+ variant?: "neutral" | "positive" | "negative" | "info" | "primary" | "new";
464
579
 
465
580
  /**
466
- * Tamanho do badge.
581
+ * Tamanho do badge. `2xs` é o compacto (16px, fonte de 10px) para selo de
582
+ * setor e de contagem dentro de linha de lista e card.
467
583
  * @default 'md'
468
584
  */
469
- size?: "sm" | "md" | "lg" | "xs" | "pill";
585
+ size?: "2xs" | "xs" | "sm" | "md" | "lg" | "pill";
586
+
587
+ /**
588
+ * Cola o badge no canto superior esquerdo do card (rótulo de card, como
589
+ * "Tarefa pendente"): cantos de baixo arredondados, os de cima retos.
590
+ * Posiciona em `absolute`, então o pai precisa de `position: relative`
591
+ * (o `Card` e o `Box` com `position` já servem).
592
+ * @default false
593
+ */
594
+ attached?: boolean;
470
595
 
471
596
  /**
472
597
  * Estilo visual do badge.
@@ -510,6 +635,13 @@ export interface BadgeProps {
510
635
 
511
636
  }
512
637
 
638
+ export interface BottomNavigationItem {
639
+ key: string;
640
+ label: string;
641
+ icon?: IconProp;
642
+ disabled?: boolean;
643
+ }
644
+
513
645
  export interface BottomNavigationProps {
514
646
  items: BottomNavigationItem[];
515
647
  value?: string;
@@ -589,6 +721,18 @@ export interface BottomSheetProps {
589
721
  }
590
722
 
591
723
  export interface BoxProps {
724
+ /** Elemento HTML renderizado. @default 'div' */
725
+ as?: BoxTag;
726
+ /** Liga o layout flex. Eixo do empilhamento. @default 'vertical' (quando o flex está ligado) */
727
+ direction?: "vertical" | "horizontal";
728
+ /** Liga o layout flex. Espaço entre os filhos, na escala oficial (`none` = 0). Sem valor, não há espaço. */
729
+ gap?: BoxSpacing;
730
+ /** Liga o layout flex. Alinhamento no eixo transversal. */
731
+ align?: "start" | "center" | "end" | "stretch" | "baseline";
732
+ /** Liga o layout flex. Distribuição no eixo principal. */
733
+ justify?: "start" | "center" | "end" | "between" | "around" | "evenly";
734
+ /** Liga o layout flex. Permite quebrar em várias linhas. */
735
+ wrap?: boolean;
592
736
  /** Padding em todos os lados. @default 'none' */
593
737
  padding?: BoxSpacing;
594
738
  /** Padding horizontal. Sobrescreve `padding` no eixo X. */
@@ -605,12 +749,73 @@ export interface BoxProps {
605
749
  shadow?: "none" | "level1" | "level2" | "level3";
606
750
  /** Ocupa 100% da largura disponível. */
607
751
  fullWidth?: boolean;
752
+ /** Ocupa 100% da altura do pai. */
753
+ fullHeight?: boolean;
754
+ /** Como item de Stack/Box flex: cresce para ocupar o espaço livre. */
755
+ grow?: boolean;
756
+ /** Como item flex: `"0"` não encolhe; `"1"` encolhe. */
757
+ shrink?: "0" | "1";
758
+ /** Como item flex: tamanho base. Os números são porcentagem do pai. */
759
+ basis?: "auto" | "0" | "25" | "33" | "50" | "66" | "75" | "100";
760
+ /** `"0"` (já é o padrão do Box) deixa o conteúdo encolher; `"auto"` volta ao mínimo do conteúdo. */
761
+ minWidth?: "0" | "auto";
762
+ /** Overflow nos dois eixos. */
763
+ overflow?: BoxOverflow;
764
+ /** Overflow horizontal (vence `overflow` no eixo X). */
765
+ overflowX?: BoxOverflow;
766
+ /** Overflow vertical (vence `overflow` no eixo Y). */
767
+ overflowY?: BoxOverflow;
768
+ /** Só com `as="form"`: chamado no envio do formulário. */
769
+ onSubmit?: (event: any) => void;
608
770
  /** Classes CSS adicionais. */
609
771
  className?: string;
772
+ /** ID HTML do elemento raiz. */
773
+ id?: string;
774
+ /** Atributos HTML repassados ao elemento raiz (style, data-*, aria-*…). */
775
+
776
+ style?: any;
777
+
778
+ [key: string]: any;
610
779
  /** Conteúdo da caixa. */
611
780
  children?: any;
612
781
  }
613
782
 
783
+ export type BoxSpacing =
784
+ | "none"
785
+ | "quarck"
786
+ | "nano"
787
+ | "micro"
788
+ | "mini"
789
+ | "xxxs"
790
+ | "xxs"
791
+ | "xs"
792
+ | "sm"
793
+ | "md"
794
+ | "lg"
795
+ | "xl"
796
+ | "xxl"
797
+ | "xxxl";
798
+
799
+ export type BoxTag =
800
+ | "div"
801
+ | "span"
802
+ | "ul"
803
+ | "ol"
804
+ | "li"
805
+ | "section"
806
+ | "nav"
807
+ | "header"
808
+ | "footer"
809
+ | "form";
810
+
811
+ export type BoxOverflow = "visible" | "hidden" | "auto" | "scroll";
812
+
813
+ export interface BreadcrumbItem {
814
+ label: string;
815
+ href?: string;
816
+ onClick?: () => void;
817
+ }
818
+
614
819
  export interface BreadcrumbProps {
615
820
  /** Rótulo acessível do trilha. @default 'Navegação estrutural' */
616
821
  ariaLabel?: string;
@@ -624,11 +829,12 @@ export interface ButtonProps {
624
829
  | "primary"
625
830
  | "secondary"
626
831
  | "neutral"
832
+ | "neutral-text"
627
833
  | "text"
628
834
  | "negative"
629
835
  | "negative-outlined"
630
836
  | "icon";
631
- size?: "sm" | "md" | "lg";
837
+ size?: "xs" | "sm" | "md" | "lg";
632
838
  disabled?: boolean;
633
839
  type?: "button" | "submit" | "reset";
634
840
  children?: any;
@@ -649,6 +855,65 @@ export interface ButtonProps {
649
855
  tabIndex?: number;
650
856
  }
651
857
 
858
+ export interface CalendarEvent {
859
+ id?: string;
860
+ date: any;
861
+ title: string;
862
+ color?: string;
863
+ time?: string;
864
+ [key: string]: any;
865
+ }
866
+
867
+ export interface CalendarDayCell {
868
+ iso: string;
869
+ day: number;
870
+ outside: boolean;
871
+ today: boolean;
872
+ selected: boolean;
873
+ tabIndex: number;
874
+ label: string;
875
+ classes: string;
876
+ visible: CalendarEvent[];
877
+ hidden: number;
878
+ moreText: string;
879
+ moreAria: string;
880
+ [key: string]: any;
881
+ }
882
+
883
+ export interface CalendarProps {
884
+ events?: CalendarEvent[];
885
+ view?: "month" | "week";
886
+ defaultView?: "month" | "week";
887
+ date?: string;
888
+ defaultDate?: string;
889
+ selectedDate?: string;
890
+ today?: string;
891
+ weekStartsOn?: 0 | 1;
892
+ maxVisible?: number;
893
+ locale?: string;
894
+ ariaLabel?: string;
895
+ previousLabel?: string;
896
+ nextLabel?: string;
897
+ todayLabel?: string;
898
+ monthLabel?: string;
899
+ weekLabel?: string;
900
+ viewLabel?: string;
901
+ hideViewSwitcher?: boolean;
902
+ moreLabel?: string;
903
+ moreAriaLabel?: string;
904
+ dayLabel?: (iso: string, count: number) => string;
905
+ className?: string;
906
+ /** Slot `headerStart`: à esquerda do cabeçalho. */
907
+ headerStart?: any;
908
+ /** Slot `headerEnd`: à direita, antes do seletor de visão. */
909
+ headerEnd?: any;
910
+ onDayClick?: (iso: string) => void;
911
+ onEventClick?: (event: CalendarEvent) => void;
912
+ onMoreClick?: (iso: string, hidden: CalendarEvent[]) => void;
913
+ onDateChange?: (iso: string) => void;
914
+ onViewChange?: (view: "month" | "week") => void;
915
+ }
916
+
652
917
  export interface CardProps {
653
918
  /**
654
919
  * Ativa o estilo de hover (elevação de sombra e realce da borda).
@@ -690,6 +955,16 @@ export interface CardProps {
690
955
 
691
956
  }
692
957
 
958
+ export interface ChartDatum {
959
+ label: string;
960
+ value: number | null;
961
+ }
962
+
963
+ export interface ChartSeries {
964
+ name: string;
965
+ values: Array<number | null>;
966
+ }
967
+
693
968
  export interface BarChartProps {
694
969
  data?: ChartDatum[];
695
970
  series?: ChartSeries[];
@@ -797,7 +1072,9 @@ export interface ChipsProps {
797
1072
  label: string;
798
1073
  removable?: boolean;
799
1074
  disabled?: boolean;
800
- size?: "sm" | "md";
1075
+ size?: "xs" | "sm" | "md";
1076
+ /** × dentro de um círculo tingido da cor do chip. Só vale com `removable`. @default false */
1077
+ circularRemove?: boolean;
801
1078
  variant?: "default" | "primary" | "positive" | "negative" | "info";
802
1079
  /** Estado selecionado do filter chip (comunicado via aria-pressed) */
803
1080
  selected?: boolean;
@@ -809,6 +1086,74 @@ export interface ChipsProps {
809
1086
  removeAriaLabel?: string;
810
1087
  }
811
1088
 
1089
+ export interface CoachmarkStep {
1090
+ id?: string;
1091
+ target?: any;
1092
+ title: string;
1093
+ content?: string;
1094
+ placement?: "top" | "bottom" | "left" | "right";
1095
+ [key: string]: any;
1096
+ }
1097
+
1098
+ export interface CoachmarkProps {
1099
+ open?: boolean;
1100
+ steps?: CoachmarkStep[];
1101
+ step?: number;
1102
+ defaultStep?: number;
1103
+ padding?: number;
1104
+ nextLabel?: string;
1105
+ previousLabel?: string;
1106
+ finishLabel?: string;
1107
+ skipLabel?: string;
1108
+ counterLabel?: string;
1109
+ hideSkip?: boolean;
1110
+ className?: string;
1111
+ onClose?: (reason: "finish" | "skip" | "escape") => void;
1112
+ onStepChange?: (step: number) => void;
1113
+ }
1114
+
1115
+ export interface CodeBlockProps {
1116
+ code?: string;
1117
+ language?: string;
1118
+ wrap?: boolean;
1119
+ maxHeight?: number;
1120
+ copyable?: boolean;
1121
+ copyLabel?: string;
1122
+ copiedLabel?: string;
1123
+ ariaLabel?: string;
1124
+ className?: string;
1125
+ id?: string;
1126
+ onCopy?: (code: string) => void;
1127
+ /** O texto, quando não vem por `code`. */
1128
+ children?: any;
1129
+ }
1130
+
1131
+ export interface ColorPickerSwatch {
1132
+ value: string;
1133
+ label: string;
1134
+ onLight?: boolean;
1135
+ disabled?: boolean;
1136
+ [key: string]: any;
1137
+ }
1138
+
1139
+ export interface ColorPickerProps {
1140
+ value?: string;
1141
+ defaultValue?: string;
1142
+ label?: string;
1143
+ ariaLabel?: string;
1144
+ ariaLabelledby?: string;
1145
+ swatches?: ColorPickerSwatch[];
1146
+ families?: string[];
1147
+ allowCustom?: boolean;
1148
+ customLabel?: string;
1149
+ customErrorMessage?: string;
1150
+ size?: "sm" | "md";
1151
+ disabled?: boolean;
1152
+ id?: string;
1153
+ className?: string;
1154
+ onChange?: (value: string) => void;
1155
+ }
1156
+
812
1157
  export interface ComboboxOption {
813
1158
  label: string;
814
1159
  value: string | number;
@@ -1014,6 +1359,15 @@ export interface ContainerProps {
1014
1359
  children?: any;
1015
1360
  }
1016
1361
 
1362
+ export interface DataTableColumn {
1363
+ key: string;
1364
+ label: string;
1365
+ sortable?: boolean;
1366
+ width?: string;
1367
+ align?: "left" | "center" | "right";
1368
+ render?: (row: Record<string, any>, rowIndex: number) => any;
1369
+ }
1370
+
1017
1371
  export interface DataTableProps {
1018
1372
  columns: DataTableColumn[];
1019
1373
  data: Record<string, any>[];
@@ -1022,7 +1376,11 @@ export interface DataTableProps {
1022
1376
  selectable?: boolean;
1023
1377
  selectedRows?: number[];
1024
1378
  rowKey?: string | ((row: Record<string, any>) => string | number);
1379
+ rowGroup?: string | ((row: Record<string, any>, rowIndex: number) => string | undefined);
1380
+ renderRowGroup?: (label: string, row: Record<string, any>, rowIndex: number) => any;
1025
1381
  selectedKeys?: Array<string | number>;
1382
+ /** `document`: tabela de conteúdo de documento, imprimível e sem interação. @default 'default' */
1383
+ variant?: "default" | "document";
1026
1384
  density?: "default" | "compact";
1027
1385
  sortKey?: string;
1028
1386
  sortDirection?: "asc" | "desc";
@@ -1038,6 +1396,29 @@ export interface DataTableProps {
1038
1396
  selectRowLabel?: (rowNumber: number) => string;
1039
1397
  }
1040
1398
 
1399
+ export interface DateRange {
1400
+ /** Data inicial do período (YYYY-MM-DD). */
1401
+ from?: string;
1402
+ /** Data final do período (YYYY-MM-DD). */
1403
+ to?: string;
1404
+ }
1405
+
1406
+ export interface DatePickerPreset {
1407
+ /** Texto do atalho (ex.: "Últimos 30 dias"). */
1408
+ label: string;
1409
+ /** Data inicial aplicada pelo atalho (YYYY-MM-DD). */
1410
+ from: string;
1411
+ /** Data final aplicada pelo atalho (YYYY-MM-DD). */
1412
+ to: string;
1413
+ }
1414
+
1415
+ export interface DateRangeLocale {
1416
+ /** Nomes dos 12 meses (substitui o default em português). */
1417
+ months?: string[];
1418
+ /** Nomes curtos dos 7 dias da semana, começando no domingo. */
1419
+ weekdays?: string[];
1420
+ }
1421
+
1041
1422
  export interface DatePickerProps {
1042
1423
  /** Rótulo acessível do botão de limpar. @default 'Limpar período' */
1043
1424
  clearLabel?: string;
@@ -1109,6 +1490,34 @@ export interface DatePickerProps {
1109
1490
  onRangeChange?: (range: DateRange) => void;
1110
1491
  }
1111
1492
 
1493
+ export interface DatePickerCell {
1494
+ day: number;
1495
+ month: "prev" | "cur" | "next";
1496
+ iso: string;
1497
+ }
1498
+
1499
+ export interface DescriptionListItem {
1500
+ label: string;
1501
+ value?: any;
1502
+ id?: string;
1503
+ [key: string]: any;
1504
+ }
1505
+
1506
+ export interface DescriptionListProps {
1507
+ items?: DescriptionListItem[];
1508
+ layout?: "inline" | "stacked";
1509
+ columns?: 1 | 2 | 3 | 4;
1510
+ bordered?: boolean;
1511
+ fit?: boolean;
1512
+ emptyValue?: string;
1513
+ ariaLabel?: string;
1514
+ ariaLabelledby?: string;
1515
+ className?: string;
1516
+ id?: string;
1517
+ style?: any;
1518
+ [key: string]: any;
1519
+ }
1520
+
1112
1521
  export interface DividerProps {
1113
1522
  orientation?: "horizontal" | "vertical";
1114
1523
  variant?: "solid" | "dashed" | "dotted";
@@ -1152,6 +1561,15 @@ export interface DrawerProps {
1152
1561
  children?: any;
1153
1562
  }
1154
1563
 
1564
+ export interface DropdownItem {
1565
+ key: string;
1566
+ label: string;
1567
+ icon?: IconProp;
1568
+ disabled?: boolean;
1569
+ danger?: boolean;
1570
+ dividerAfter?: boolean;
1571
+ }
1572
+
1155
1573
  export interface DropdownProps {
1156
1574
  items: DropdownItem[];
1157
1575
  placement?: "bottom-start" | "bottom-end" | "top-start" | "top-end";
@@ -1182,12 +1600,20 @@ export interface EmptyStateProps {
1182
1600
  className?: string;
1183
1601
  }
1184
1602
 
1603
+ export interface FileInputFile {
1604
+ name: string;
1605
+ size: number;
1606
+ progress?: number;
1607
+ status?: "uploading" | "completed" | "error";
1608
+ error?: string;
1609
+ }
1610
+
1185
1611
  export interface FileInputProps {
1186
1612
  accept?: string;
1187
1613
  multiple?: boolean;
1188
1614
  maxSize?: number;
1189
1615
  disabled?: boolean;
1190
- variant?: "base" | "card";
1616
+ variant?: "base" | "card" | "trigger";
1191
1617
  label?: string;
1192
1618
  files?: FileInputFile[];
1193
1619
  name?: string;
@@ -1216,6 +1642,8 @@ export interface FileInputProps {
1216
1642
  removeAriaLabel?: string;
1217
1643
  /** Prefixo do nome acessível da barra de progresso de um arquivo (recebe o nome do arquivo depois de um espaço). Troque para traduzir. @default 'Enviando' */
1218
1644
  uploadingAriaLabel?: string;
1645
+ /** Gatilho da variante `trigger` (o `Button` ou link que abre o seletor). React: filhos; Vue: slot padrão. */
1646
+ children?: any;
1219
1647
  onChange?: (files?: File[]) => void;
1220
1648
  onRemove?: (index?: number) => void;
1221
1649
  }
@@ -1279,6 +1707,34 @@ export interface IconProps {
1279
1707
  children?: any;
1280
1708
  }
1281
1709
 
1710
+ export interface IconPickerItem {
1711
+ icon: any;
1712
+ label?: string;
1713
+ keywords?: string[];
1714
+ [key: string]: any;
1715
+ }
1716
+
1717
+ export interface IconPickerProps {
1718
+ icons?: any[];
1719
+ value?: string;
1720
+ defaultValue?: string;
1721
+ label?: string;
1722
+ ariaLabel?: string;
1723
+ columns?: number;
1724
+ size?: "sm" | "md";
1725
+ maxHeight?: number;
1726
+ hideSearch?: boolean;
1727
+ searchLabel?: string;
1728
+ searchPlaceholder?: string;
1729
+ emptyText?: string;
1730
+ resultsLabel?: string;
1731
+ iconLabel?: (name: string) => string;
1732
+ disabled?: boolean;
1733
+ id?: string;
1734
+ className?: string;
1735
+ onChange?: (name: string, item: any) => void;
1736
+ }
1737
+
1282
1738
  export interface InputAction {
1283
1739
  icon: IconProp;
1284
1740
  onClick?: (event?: any) => void;
@@ -1335,6 +1791,12 @@ export interface InputProps {
1335
1791
 
1336
1792
  iconLeft?: IconProp;
1337
1793
  iconsRight?: InputAction[];
1794
+ /** Ícone decorativo à direita (não clicável, `aria-hidden`). Para ação, use `iconsRight`. */
1795
+ iconRight?: IconProp;
1796
+ /** Sem borda, fundo e raio, para o campo dentro de um grupo que já tem a moldura. O foco e o erro continuam visíveis. @default false */
1797
+ borderless?: boolean;
1798
+ /** Máscara simples. O valor exibido e o de `onChange` já saem formatados. */
1799
+ mask?: "cpf" | "cnpj" | "cep" | "phone";
1338
1800
 
1339
1801
  onChange?: (value: string) => void;
1340
1802
  onFocus?: (event?: any) => void;
@@ -1343,6 +1805,61 @@ export interface InputProps {
1343
1805
 
1344
1806
  }
1345
1807
 
1808
+ export interface KanbanCardData {
1809
+ id: string;
1810
+ title: string;
1811
+ description?: string;
1812
+ tags?: KanbanCardTag[];
1813
+ meta?: string;
1814
+ assignee?: string;
1815
+ assigneeSrc?: string;
1816
+ [key: string]: any;
1817
+ }
1818
+
1819
+ export interface KanbanColumnData {
1820
+ id: string;
1821
+ title: string;
1822
+ cards: KanbanCardData[];
1823
+ wipLimit?: number;
1824
+ emptyText?: string;
1825
+ [key: string]: any;
1826
+ }
1827
+
1828
+ export interface KanbanCardMove {
1829
+ cardId: string;
1830
+ fromColumnId: string;
1831
+ fromIndex: number;
1832
+ toColumnId: string;
1833
+ toIndex: number;
1834
+ }
1835
+
1836
+ export interface KanbanAnnouncements {
1837
+ /** Posição do cartão. Padrão: "Coluna {coluna}, posição {n} de {total}." */
1838
+ position?: (column: string, position: number, total: number) => string;
1839
+ /** Cartão pego pelo teclado. Padrão: "Cartão {cartão} pego. {posição} Use as setas para mover, Espaço ou Enter para soltar, Esc para cancelar." */
1840
+ grabbed?: (card: string, position: string) => string;
1841
+ /** Cartão solto num lugar novo pelo teclado. Padrão: "Cartão {cartão} solto. {posição}" */
1842
+ dropped?: (card: string, position: string) => string;
1843
+ /** Cartão solto onde estava. Padrão: "Cartão {cartão} solto na posição original." */
1844
+ droppedInPlace?: (card: string) => string;
1845
+ /** Cartão arrastado com o ponteiro e solto. Padrão: "Cartão {cartão} movido. {posição}" */
1846
+ moved?: (card: string, position: string) => string;
1847
+ /** Movimento cancelado com Esc. Padrão: "Movimento cancelado. Cartão {cartão} voltou. {posição}" */
1848
+ cancelled?: (card: string, position: string) => string;
1849
+ /** Seta para cima no topo da coluna. Padrão: "Início da coluna." */
1850
+ columnStart?: string;
1851
+ /** Seta para baixo no fim da coluna. Padrão: "Fim da coluna." */
1852
+ columnEnd?: string;
1853
+ /** Seta para a esquerda na primeira coluna. Padrão: "Não há coluna à esquerda." */
1854
+ noColumnLeft?: string;
1855
+ /** Seta para a direita na última coluna. Padrão: "Não há coluna à direita." */
1856
+ noColumnRight?: string;
1857
+ /** Coluna de destino chegou ao limite de WIP. Padrão: "Limite de {n} cartões atingido." */
1858
+ limitReached?: (limit: number) => string;
1859
+ /** Coluna de destino passou do limite de WIP. Padrão: "Limite de {n} cartões excedido." */
1860
+ limitExceeded?: (limit: number) => string;
1861
+ }
1862
+
1346
1863
  export interface KanbanProps {
1347
1864
  columns?: KanbanColumnData[];
1348
1865
  onCardMove?: (move: KanbanCardMove) => void;
@@ -1368,6 +1885,11 @@ export interface KanbanProps {
1368
1885
  columnCountLabel?: (count: number, limit?: number) => string;
1369
1886
  }
1370
1887
 
1888
+ export interface KanbanCardTag {
1889
+ label: string;
1890
+ variant?: "neutral" | "primary" | "positive" | "negative" | "info";
1891
+ }
1892
+
1371
1893
  export interface KanbanCardProps {
1372
1894
  title: string;
1373
1895
  description?: string;
@@ -1400,6 +1922,18 @@ export interface KanbanColumnProps {
1400
1922
  countLabel?: (count: number, limit?: number) => string;
1401
1923
  }
1402
1924
 
1925
+ export interface KbdProps {
1926
+ keys?: string[];
1927
+ separator?: string;
1928
+ size?: "sm" | "md";
1929
+ className?: string;
1930
+ id?: string;
1931
+ style?: any;
1932
+ [key: string]: any;
1933
+ /** Uma tecla (quando não há `keys`). */
1934
+ children?: any;
1935
+ }
1936
+
1403
1937
  export interface LinkProps {
1404
1938
  href?: string;
1405
1939
  target?: string;
@@ -1415,6 +1949,88 @@ export interface LinkProps {
1415
1949
  iconRight?: any;
1416
1950
  }
1417
1951
 
1952
+ export interface ListProps {
1953
+ /** Elemento da lista. @default 'ul' */
1954
+ as?: ListTag;
1955
+ /** Espaço entre as linhas, na escala oficial (`none` cola). @default 'quarck' */
1956
+ gap?: ListGap;
1957
+ /** Nome acessível da lista. */
1958
+ ariaLabel?: string;
1959
+ /** Id do título visível que nomeia a lista. */
1960
+ ariaLabelledby?: string;
1961
+ /** Sem itens: mostra o estado vazio no lugar das linhas. @default false */
1962
+ isEmpty?: boolean;
1963
+ /** Título do estado vazio. @default 'Nenhum item encontrado' */
1964
+ emptyTitle?: string;
1965
+ /** Texto de apoio do estado vazio. */
1966
+ emptyDescription?: string;
1967
+ /** Ícone do estado vazio: o objeto importado do Font Awesome. */
1968
+ emptyIcon?: IconProp;
1969
+ /** Tamanho do estado vazio. @default 'sm' */
1970
+ emptySize?: "sm" | "md" | "lg";
1971
+ /** Rótulo do botão do estado vazio (exibido junto de `onEmptyAction`). */
1972
+ emptyActionLabel?: string;
1973
+ /** Chamado no botão do estado vazio. */
1974
+ onEmptyAction?: () => void;
1975
+ /** Conteúdo próprio do estado vazio. No Vue, slot `empty`. */
1976
+ empty?: any;
1977
+ /** Classes CSS adicionais. */
1978
+ className?: string;
1979
+ /** ID HTML do elemento raiz. */
1980
+ id?: string;
1981
+ /** Atributos HTML repassados ao elemento raiz (style, data-*…). */
1982
+
1983
+ style?: any;
1984
+
1985
+ [key: string]: any;
1986
+ /** As linhas: `ListItem` (ou `li`). */
1987
+ children?: any;
1988
+ }
1989
+
1990
+ export type ListGap = "none" | "micro" | "quarck" | "nano" | "mini" | "xxxs";
1991
+
1992
+ export type ListTag = "ul" | "ol";
1993
+
1994
+ export interface ListItemProps {
1995
+ /** Elemento da linha. Sem `as`: `a` quando há `href`, senão `button`. */
1996
+ as?: ListItemTag;
1997
+ /** Destino do link (liga `as="a"`). */
1998
+ href?: string;
1999
+ /** Destino do link. `_blank` ganha `rel="noopener noreferrer"`. */
2000
+ target?: string;
2001
+ /** Relação do link. Sobrescreve o padrão do `target`. */
2002
+ rel?: string;
2003
+ /** Item atual: fundo de seleção e `aria-current`. @default false */
2004
+ selected?: boolean;
2005
+ /** Bloqueia clique e foco. @default false */
2006
+ disabled?: boolean;
2007
+ /** Título da linha. Texto, ou slot `title` para um nó. */
2008
+ title?: any;
2009
+ /** Segunda linha. Texto, ou slot `subtitle` para um nó. */
2010
+ subtitle?: any;
2011
+ /** Terceira linha, menor (data, contexto). Texto, ou slot `meta` para um nó. */
2012
+ meta?: any;
2013
+ /** Conteúdo antes do texto (avatar, ícone). No Vue, slot `start`. */
2014
+ start?: any;
2015
+ /** Conteúdo no fim da linha (badge, seta, valor). No Vue, slot `end`. */
2016
+ end?: any;
2017
+ /** Chamado no clique da linha (ou em Enter/Espaço no `as="div"`). */
2018
+ onClick?: (event: any) => void;
2019
+ /** Classes CSS adicionais, no elemento interativo. */
2020
+ className?: string;
2021
+ /** ID HTML do elemento interativo. */
2022
+ id?: string;
2023
+ /** Atributos HTML repassados ao elemento interativo (style, data-*, aria-*…). */
2024
+
2025
+ style?: any;
2026
+
2027
+ [key: string]: any;
2028
+ /** Conteúdo livre, abaixo de `meta`. */
2029
+ children?: any;
2030
+ }
2031
+
2032
+ export type ListItemTag = "button" | "a" | "div";
2033
+
1418
2034
  export interface LogoProps {
1419
2035
  size?: "regular" | "small";
1420
2036
  variant?: "default" | "dark" | "light";
@@ -1445,9 +2061,30 @@ export interface ModalProps {
1445
2061
  * - "positive": sucesso (verde, ícone circle-check).
1446
2062
  * - "negative": erro/falha (vermelho, ícone circle-exclamation).
1447
2063
  * - "info": atenção (laranja, ícone triangle-exclamation).
2064
+ * - "primary": modal base com o cabeçalho cheio na cor primária (título e
2065
+ * controles em branco). Não é diálogo de feedback: mantém as três faixas.
1448
2066
  * @default 'default'
1449
2067
  */
1450
- variant?: "default" | "positive" | "negative" | "info";
2068
+ variant?: "default" | "positive" | "negative" | "info" | "primary";
2069
+ /**
2070
+ * Largura do modal, qualquer valor CSS (`"600px"`, `"60vw"`). Sem
2071
+ * `maxWidth`, o teto passa a ser a própria tela (o 498px do `md` não
2072
+ * segura mais). Vence o `size`. Com `windowControls`, vale só no modo
2073
+ * normal: expandido e tela cheia mandam no tamanho.
2074
+ */
2075
+ width?: string;
2076
+ /** Largura máxima, qualquer valor CSS. Vence o teto do `size`. */
2077
+ maxWidth?: string;
2078
+ /**
2079
+ * Abaixo do breakpoint (`responsiveBreakpoint`), o modal vira um painel que
2080
+ * sobe pela borda de baixo, como o `BottomSheet`: largura total, cantos de
2081
+ * cima arredondados, alça no topo. Acima dele, continua centralizado. É
2082
+ * o mesmo componente reorganizado, então título, corpo e rodapé não mudam.
2083
+ * @default false
2084
+ */
2085
+ responsive?: boolean;
2086
+ /** Largura da tela, em px, abaixo da qual o `responsive` vira painel. Lida na montagem. @default 640 */
2087
+ responsiveBreakpoint?: number;
1451
2088
  /**
1452
2089
  * Título em destaque. Com título, o diálogo é nomeado por ele
1453
2090
  * (`aria-labelledby`) e `ariaLabel` é ignorado.
@@ -1503,12 +2140,18 @@ export interface ModalProps {
1503
2140
  /** Se verdadeiro, renderiza o modal inline (sem fixed/overlay), útil para documentação */
1504
2141
  inline?: boolean;
1505
2142
  /**
1506
- * Controles de janela no cabeçalho: restaurar, expandir, tela cheia e
1507
- * minimizar, antes do ×. É tudo ou nada — ou o modal tem só o ×, ou tem o
1508
- * conjunto inteiro. Ligado, o modal passa a mudar de tamanho sozinho.
1509
- */
1510
- windowControls?: boolean;
1511
- /** Acionado no botão minimizar. Só existe com `windowControls`. */
2143
+ * Controles de janela no cabeçalho, antes do ×. Duas formas:
2144
+ * - `true`: o conjunto inteiro (restaurar, expandir, tela cheia e minimizar).
2145
+ * O modal passa a mudar de tamanho sozinho (normal 780px, expandido, tela
2146
+ * cheia).
2147
+ * - uma lista com os que quiser, na ordem fixa do cabeçalho:
2148
+ * `["expand", "fullscreen"]`, `["fullscreen"]`... Os nomes são `normal`,
2149
+ * `expand`, `fullscreen` e `minimize`. Sem `normal` na lista, clicar de
2150
+ * novo no modo ativo volta ao normal, e o modo normal usa o tamanho do
2151
+ * próprio modal (`size`, `width`), não os 780px do conjunto inteiro.
2152
+ */
2153
+ windowControls?: boolean | Array<"normal" | "expand" | "fullscreen" | "minimize">;
2154
+ /** Acionado no botão minimizar. Só existe quando `minimize` está entre os controles. */
1512
2155
  onMinimize?: (event?: any) => void;
1513
2156
  /**
1514
2157
  * Região esquerda do rodapé — conteúdo de apoio que não é botão: a caixa
@@ -1590,6 +2233,56 @@ export interface MultiSelectProps {
1590
2233
  onChange?: (value: Array<string | number>) => void;
1591
2234
  }
1592
2235
 
2236
+ export interface OrgChartNode {
2237
+ id: string;
2238
+ title: string;
2239
+ subtitle?: string;
2240
+ children?: OrgChartNode[];
2241
+ [key: string]: any;
2242
+ }
2243
+
2244
+ export interface OrgChartProps {
2245
+ nodes?: OrgChartNode[];
2246
+ collapsedIds?: string[];
2247
+ defaultCollapsedIds?: string[];
2248
+ selectedId?: string;
2249
+ nodeWidth?: number;
2250
+ nodeHeight?: number;
2251
+ gapX?: number;
2252
+ gapY?: number;
2253
+ ariaLabel?: string;
2254
+ expandLabel?: string;
2255
+ collapseLabel?: string;
2256
+ className?: string;
2257
+ renderNode?: (node: OrgChartNode, meta: { level: number; expanded: boolean }) => any;
2258
+ onNodeClick?: (node: OrgChartNode) => void;
2259
+ onCollapsedChange?: (ids: string[]) => void;
2260
+ }
2261
+
2262
+ export interface OtpInputProps {
2263
+ length?: number;
2264
+ value?: string;
2265
+ defaultValue?: string;
2266
+ type?: "numeric" | "alphanumeric";
2267
+ label?: string;
2268
+ ariaLabel?: string;
2269
+ digitLabel?: string;
2270
+ invalid?: boolean;
2271
+ errorMessage?: string;
2272
+ disabled?: boolean;
2273
+ autoFocus?: boolean;
2274
+ size?: "sm" | "md";
2275
+ id?: string;
2276
+ className?: string;
2277
+ onChange?: (value: string) => void;
2278
+ onComplete?: (value: string) => void;
2279
+ }
2280
+
2281
+ export interface PageHeaderBreadcrumbItem {
2282
+ label: string;
2283
+ href?: string;
2284
+ }
2285
+
1593
2286
  export interface PageHeaderProps {
1594
2287
  /** Rótulo acessível do trilha. @default 'Trilha de navegação' */
1595
2288
  breadcrumbLabel?: string;
@@ -1645,6 +2338,14 @@ export interface PaginationProps {
1645
2338
  onPageChange?: (page: number) => void;
1646
2339
  }
1647
2340
 
2341
+ export interface PhoneInputCountry {
2342
+ code: string;
2343
+ flag: string;
2344
+ flagUrl: string;
2345
+ ddi: string;
2346
+ name: string;
2347
+ }
2348
+
1648
2349
  export interface PhoneInputProps {
1649
2350
  /** Rótulo acessível do seletor de país. @default 'Selecionar país' */
1650
2351
  countryLabel?: string;
@@ -1677,6 +2378,16 @@ export interface PhoneInputProps {
1677
2378
  onCopy?: (value: string) => void;
1678
2379
  }
1679
2380
 
2381
+ export interface PodiumItem {
2382
+ id: string | number;
2383
+ name: string;
2384
+ value: number | string;
2385
+ valueLabel?: string;
2386
+ avatarSrc?: string;
2387
+ initials?: string;
2388
+ description?: string;
2389
+ }
2390
+
1680
2391
  export interface PodiumProps {
1681
2392
  items: PodiumItem[];
1682
2393
  showRest?: boolean;
@@ -1714,6 +2425,12 @@ export interface PopoverProps {
1714
2425
  closable?: boolean;
1715
2426
  closeLabel?: string;
1716
2427
  width?: number;
2428
+ /**
2429
+ * Altura máxima do corpo. Número vira px; texto vai como CSS (`"60vh"`).
2430
+ * `"none"` deixa o corpo crescer com o conteúdo. Sem a prop, vale o teto de
2431
+ * 300px de sempre (o cabeçalho e o × não rolam junto).
2432
+ */
2433
+ maxHeight?: number | string;
1717
2434
  ariaLabel?: string;
1718
2435
  className?: string;
1719
2436
  children?: any;
@@ -1821,6 +2538,43 @@ export interface RadioGroupProps {
1821
2538
  onChange?: (value: string) => void;
1822
2539
  }
1823
2540
 
2541
+ export interface RichTextEditorProps {
2542
+ value?: string;
2543
+ defaultValue?: string;
2544
+ label?: string;
2545
+ ariaLabel?: string;
2546
+ placeholder?: string;
2547
+ toolbar?: RichTextTool[];
2548
+ toolbarLabel?: string;
2549
+ labels?: Record<string, string>;
2550
+ minHeight?: number;
2551
+ resizable?: boolean;
2552
+ disabled?: boolean;
2553
+ readOnly?: boolean;
2554
+ invalid?: boolean;
2555
+ errorMessage?: string;
2556
+ helperText?: string;
2557
+ id?: string;
2558
+ className?: string;
2559
+ /** Slot `footer`: abaixo da área de escrita. */
2560
+ footer?: any;
2561
+ onChange?: (html: string) => void;
2562
+ onBlur?: (event?: any) => void;
2563
+ }
2564
+
2565
+ export type RichTextTool =
2566
+ | "bold"
2567
+ | "italic"
2568
+ | "underline"
2569
+ | "strike"
2570
+ | "ul"
2571
+ | "ol"
2572
+ | "link"
2573
+ | "undo"
2574
+ | "redo"
2575
+ | "clear"
2576
+ | "|";
2577
+
1824
2578
  export interface SegmentedControlOption {
1825
2579
  label?: string;
1826
2580
  value: string;
@@ -1888,6 +2642,14 @@ export interface SelectProps {
1888
2642
  errorMessage?: string;
1889
2643
  fullWidth?: boolean;
1890
2644
  size?: "sm" | "md" | "lg";
2645
+ /** Onde a lista abre. @default 'bottom' */
2646
+ placement?: "bottom" | "top" | "auto";
2647
+ /** Variante visual. @default 'default' */
2648
+ variant?: "default" | "filter";
2649
+ /** Opção "sem filtro" no topo da lista (seleção única). Escolhê-la chama `onChange("")`. */
2650
+ emptyOptionLabel?: string;
2651
+ /** Rodapé fixo da lista (ações). React node ou slot `footer` no Vue. */
2652
+ footer?: any;
1891
2653
 
1892
2654
  pagination?: boolean;
1893
2655
  hasMore?: boolean;
@@ -1909,6 +2671,15 @@ export interface SelectProps {
1909
2671
  className?: string;
1910
2672
  }
1911
2673
 
2674
+ export interface SidePanelTab {
2675
+ /** Identificador da aba — é o que volta em `onTabChange`. */
2676
+ id: string;
2677
+ /** Ícone no trilho. */
2678
+ icon?: IconProp;
2679
+ /** Nome acessível da aba. O trilho é só ícone, então isto não é opcional na prática. */
2680
+ label: string;
2681
+ }
2682
+
1912
2683
  export interface SidePanelProps {
1913
2684
  /** Título no topo do painel. */
1914
2685
  title?: string;
@@ -2011,9 +2782,11 @@ export interface SpinnerProps {
2011
2782
  }
2012
2783
 
2013
2784
  export interface StackProps {
2785
+ /** Elemento HTML renderizado. @default 'div' */
2786
+ as?: StackTag;
2014
2787
  /** Eixo do empilhamento. @default 'vertical' */
2015
2788
  direction?: "vertical" | "horizontal";
2016
- /** Espaço entre os filhos, na escala oficial (xxxs = 16px). @default 'xxxs' */
2789
+ /** Espaço entre os filhos, na escala oficial (xxxs = 16px; `none` = 0). @default 'xxxs' */
2017
2790
  gap?: StackSpacing;
2018
2791
  /** Alinhamento no eixo transversal. */
2019
2792
  align?: "start" | "center" | "end" | "stretch" | "baseline";
@@ -2023,12 +2796,69 @@ export interface StackProps {
2023
2796
  wrap?: boolean;
2024
2797
  /** Usa `inline-flex` em vez de `flex`. */
2025
2798
  inline?: boolean;
2799
+ /** Como item de outro Stack/flex: cresce para ocupar o espaço livre. */
2800
+ grow?: boolean;
2801
+ /** Como item flex: `"0"` não encolhe; `"1"` encolhe. */
2802
+ shrink?: "0" | "1";
2803
+ /** Como item flex: tamanho base. Os números são porcentagem do pai. */
2804
+ basis?: "auto" | "0" | "25" | "33" | "50" | "66" | "75" | "100";
2805
+ /** `"0"` (já é o padrão do Stack) deixa o conteúdo encolher; `"auto"` volta ao mínimo do conteúdo. */
2806
+ minWidth?: "0" | "auto";
2807
+ /** Overflow nos dois eixos. */
2808
+ overflow?: StackOverflow;
2809
+ /** Overflow horizontal (vence `overflow` no eixo X). */
2810
+ overflowX?: StackOverflow;
2811
+ /** Overflow vertical (vence `overflow` no eixo Y). */
2812
+ overflowY?: StackOverflow;
2813
+ /** Ocupa 100% da altura do pai. */
2814
+ fullHeight?: boolean;
2815
+ /** Ocupa 100% da largura do pai. */
2816
+ fullWidth?: boolean;
2026
2817
  /** Classes CSS adicionais. */
2027
2818
  className?: string;
2819
+ /** Só com `as="form"`: chamado no envio do formulário. */
2820
+ onSubmit?: (event: any) => void;
2821
+ /** ID HTML do elemento raiz. */
2822
+ id?: string;
2823
+ /** Atributos HTML repassados ao elemento raiz (style, data-*, aria-*…). */
2824
+
2825
+ style?: any;
2826
+
2827
+ [key: string]: any;
2028
2828
  /** Conteúdo empilhado. */
2029
2829
  children?: any;
2030
2830
  }
2031
2831
 
2832
+ export type StackSpacing =
2833
+ | "none"
2834
+ | "quarck"
2835
+ | "nano"
2836
+ | "micro"
2837
+ | "mini"
2838
+ | "xxxs"
2839
+ | "xxs"
2840
+ | "xs"
2841
+ | "sm"
2842
+ | "md"
2843
+ | "lg"
2844
+ | "xl"
2845
+ | "xxl"
2846
+ | "xxxl";
2847
+
2848
+ export type StackTag =
2849
+ | "div"
2850
+ | "span"
2851
+ | "ul"
2852
+ | "ol"
2853
+ | "li"
2854
+ | "section"
2855
+ | "nav"
2856
+ | "header"
2857
+ | "footer"
2858
+ | "form";
2859
+
2860
+ export type StackOverflow = "visible" | "hidden" | "auto" | "scroll";
2861
+
2032
2862
  export interface StatCardProps {
2033
2863
  /** O número ou medida em destaque. */
2034
2864
  value?: string | number;
@@ -2057,12 +2887,33 @@ export interface StatCardProps {
2057
2887
  description?: string;
2058
2888
  /** Alinhamento do conteúdo. @default 'start' */
2059
2889
  align?: "start" | "center";
2890
+ /**
2891
+ * Onde o rótulo aparece. `top` põe o rótulo no topo do cartão, acima do
2892
+ * ícone e do número (que passa a 32/800), como no painel da 1Doc. No HTML o
2893
+ * número segue antes do rótulo: só a posição visual muda.
2894
+ * @default 'bottom'
2895
+ */
2896
+ labelPosition?: "bottom" | "top";
2897
+ /**
2898
+ * Texto de ajuda: mostra o ⓘ ao lado do rótulo, com um Tooltip escuro. É um
2899
+ * botão focável dentro do cartão; com `onClick` no cartão, evite.
2900
+ */
2901
+ infoTooltip?: string;
2902
+ /** Nome acessível do ⓘ. @default 'Mais informações' */
2903
+ infoLabel?: string;
2060
2904
  /** Classes CSS adicionais. */
2061
2905
  className?: string;
2062
2906
  /** Torna o cartão acionável. */
2063
2907
  onClick?: () => void;
2064
2908
  }
2065
2909
 
2910
+ export interface StepperStep {
2911
+ title: string;
2912
+ description?: string;
2913
+ status?: "pending" | "active" | "completed" | "error";
2914
+ [key: string]: any;
2915
+ }
2916
+
2066
2917
  export interface StepperProps {
2067
2918
  steps: StepperStep[];
2068
2919
  currentStep?: number;
@@ -2143,6 +2994,13 @@ export interface TabsProps {
2143
2994
  * como gerar um id compartilhado automaticamente).
2144
2995
  */
2145
2996
  id?: string;
2997
+ /**
2998
+ * Mostra o botão "+" depois da última aba (abrir nova aba, como no navegador)
2999
+ * e o chama com `onAdd`. O botão fica fora do `tablist`.
3000
+ */
3001
+ onAdd?: (event?: any) => void;
3002
+ /** Nome acessível do botão "+". Troque para traduzir. @default 'Adicionar aba' */
3003
+ addLabel?: string;
2146
3004
  /** Classes CSS adicionais */
2147
3005
  className?: string;
2148
3006
  /** Subcomponentes Tab */
@@ -2158,6 +3016,21 @@ export interface TabProps {
2158
3016
  icon?: IconProp;
2159
3017
  /** Se a tab está desabilitada */
2160
3018
  disabled?: boolean;
3019
+ /**
3020
+ * Contador em pílula ao lado do texto: azul na aba ativa, cinza nas outras.
3021
+ * Aceita número ou texto; o `0` aparece. Sem a prop, não há pílula.
3022
+ */
3023
+ count?: number | string;
3024
+ /**
3025
+ * Mostra o × para fechar a aba (abas de navegador, documentos abertos). O
3026
+ * × é um botão próprio, irmão da aba (não dentro dela), e a tecla Delete
3027
+ * na aba focada faz o mesmo. Quem remove a aba é o app, em `onClose`.
3028
+ */
3029
+ closable?: boolean;
3030
+ /** Chamado ao fechar a aba, com o `index` dela e o evento. */
3031
+ onClose?: (index: string, event?: any) => void;
3032
+ /** Prefixo do nome acessível do ×; o texto da aba vem depois ("Fechar Documento 1"). Troque para traduzir. @default 'Fechar' */
3033
+ closeLabel?: string;
2161
3034
  /** Classes CSS adicionais */
2162
3035
  className?: string;
2163
3036
  }
@@ -2198,10 +3071,17 @@ export interface TagProps {
2198
3071
  label?: string;
2199
3072
 
2200
3073
  /**
2201
- * Estilo visual da tag.
3074
+ * Estilo visual da tag. `soft` é o fundo claro da cor da variante, sem
3075
+ * contorno (setores, perfil, "Publicado", "Dado simulado").
2202
3076
  * @default 'outlined'
2203
3077
  */
2204
- appearance?: "outlined" | "solid";
3078
+ appearance?: "outlined" | "solid" | "soft";
3079
+
3080
+ /**
3081
+ * Formato de pílula (cantos totalmente arredondados).
3082
+ * @default false
3083
+ */
3084
+ pill?: boolean;
2205
3085
 
2206
3086
  /**
2207
3087
  * Variante semântica de cor (paridade com o Badge) — para tag de STATUS
@@ -2209,13 +3089,14 @@ export interface TagProps {
2209
3089
  * 'neutral' mantém o visual atual.
2210
3090
  * @default 'neutral'
2211
3091
  */
2212
- variant?: "neutral" | "primary" | "positive" | "negative" | "info";
3092
+ variant?: "neutral" | "primary" | "positive" | "negative" | "info" | "new";
2213
3093
 
2214
3094
  /**
2215
- * Tamanho da tag.
3095
+ * Tamanho da tag. `xs` é a compacta de 18px (`line-height: 1`), para linha
3096
+ * de lista e card; `sm` continua com 27px.
2216
3097
  * @default 'md'
2217
3098
  */
2218
- size?: "sm" | "md" | "lg";
3099
+ size?: "xs" | "sm" | "md" | "lg";
2219
3100
 
2220
3101
  /**
2221
3102
  * Ícone Font Awesome exibido à esquerda do label.
@@ -2285,6 +3166,15 @@ export interface TagProps {
2285
3166
 
2286
3167
  }
2287
3168
 
3169
+ export interface ResponsiveVariant {
3170
+ xs?: TextVariant;
3171
+ sm?: TextVariant;
3172
+ md?: TextVariant;
3173
+ lg?: TextVariant;
3174
+ xl?: TextVariant;
3175
+ xxl?: TextVariant;
3176
+ }
3177
+
2288
3178
  export interface TextProps {
2289
3179
  /** ID HTML do elemento raiz */
2290
3180
  id?: string;
@@ -2371,6 +3261,22 @@ export interface TextProps {
2371
3261
  */
2372
3262
  }
2373
3263
 
3264
+ export type TextVariant =
3265
+ | "display"
3266
+ | "h1"
3267
+ | "h2"
3268
+ | "h3"
3269
+ | "h4"
3270
+ | "h5"
3271
+ | "h6"
3272
+ | "subtitle1"
3273
+ | "subtitle2"
3274
+ | "body1"
3275
+ | "body2"
3276
+ | "caption"
3277
+ | "overline"
3278
+ | "label";
3279
+
2374
3280
  export interface TextareaProps {
2375
3281
  id?: string;
2376
3282
  label?: any;
@@ -2459,6 +3365,17 @@ export interface TimePickerProps {
2459
3365
  onChange?: (value: string) => void;
2460
3366
  }
2461
3367
 
3368
+ export interface TimelineItem {
3369
+ title: string;
3370
+ description?: string;
3371
+ timestamp?: string;
3372
+ actor?: string;
3373
+ icon?: any;
3374
+ variant?: "default" | "primary" | "positive" | "negative" | "info";
3375
+ current?: boolean;
3376
+ [key: string]: any;
3377
+ }
3378
+
2462
3379
  export interface TimelineProps {
2463
3380
  items: TimelineItem[];
2464
3381
  card?: boolean;
@@ -2553,6 +3470,17 @@ export interface TooltipProps {
2553
3470
  side?: "top" | "bottom" | "left" | "right";
2554
3471
  /** Alinhamento no eixo cruzado: "center" usa só o `side`; "start"/"end" viram placements compostos (`top-start`, `right-end`…). */
2555
3472
  align?: "start" | "center" | "end";
3473
+ /**
3474
+ * Aparência do balão. `dark` é o compacto escuro (fundo `background-dark`,
3475
+ * texto `neutral-light-pure`, padding 4/8, raio 4, no máximo 220px de
3476
+ * largura): o balão de ícone, sigla e botão de barra de ferramentas. Os dois
3477
+ * tokens são o par invertido do tema, então o contraste vale nos claros,
3478
+ * escuro e alto contraste.
3479
+ * @default 'default'
3480
+ */
3481
+ variant?: "default" | "dark";
3482
+ /** Largura máxima do balão, qualquer valor CSS (`"220px"`, `"20rem"`). Vence o teto de cada variante (280px no padrão, 220px no dark). */
3483
+ maxWidth?: string;
2556
3484
  sideOffset?: number;
2557
3485
  delayDuration?: number;
2558
3486
  disabled?: boolean;
@@ -2560,6 +3488,42 @@ export interface TooltipProps {
2560
3488
  children?: any;
2561
3489
  }
2562
3490
 
3491
+ export interface TreeNode {
3492
+ id: string;
3493
+ /** Rótulo padrão. Ignorado quando o consumidor usa o slot de linha. */
3494
+ label?: string;
3495
+ children?: TreeNode[];
3496
+ /**
3497
+ * Marca que o nó TEM filhos ainda não carregados. Serve para o caret
3498
+ * aparecer antes de `children` existir (carregamento sob demanda).
3499
+ */
3500
+ hasChildren?: boolean;
3501
+ /** Nó em carregamento: o caret vira indicador de espera. */
3502
+ loading?: boolean;
3503
+ disabled?: boolean;
3504
+ icon?: any;
3505
+ /**
3506
+ * Cor do ícone da linha. Sem isto todo ícone sai no cinza do rótulo, e uma
3507
+ * árvore de pastas fica sem hierarquia visual. Os valores são os do `Icon` —
3508
+ * não aceita cor livre, para não abrir porta a hex fora do token.
3509
+ */
3510
+ iconVariant?: "primary" | "secondary" | "neutral" | "inherit";
3511
+ }
3512
+
3513
+ export interface TreeVisibleRow {
3514
+ node: TreeNode;
3515
+ level: number;
3516
+ expanded: boolean;
3517
+ hasToggle: boolean;
3518
+ parentId: string | null;
3519
+ /** Última entre os irmãos: define cotovelo em "L" em vez de "T". */
3520
+ isLast: boolean;
3521
+ /** Posição entre os irmãos (1-based) — vira aria-posinset. */
3522
+ posInSet: number;
3523
+ /** Total de irmãos no mesmo nível — vira aria-setsize. */
3524
+ setSize: number;
3525
+ }
3526
+
2563
3527
  export interface TreeProps {
2564
3528
  items: TreeNode[];
2565
3529
 
@@ -2634,18 +3598,23 @@ export declare const BottomSheet: ComponentWithProps<BottomSheetProps>;
2634
3598
  export declare const Box: ComponentWithProps<BoxProps>;
2635
3599
  export declare const Breadcrumb: ComponentWithProps<BreadcrumbProps>;
2636
3600
  export declare const Button: ComponentWithProps<ButtonProps>;
3601
+ export declare const Calendar: ComponentWithProps<CalendarProps>;
2637
3602
  export declare const Card: ComponentWithProps<CardProps>;
2638
3603
  export declare const BarChart: ComponentWithProps<BarChartProps>;
2639
3604
  export declare const DonutChart: ComponentWithProps<DonutChartProps>;
2640
3605
  export declare const LineChart: ComponentWithProps<LineChartProps>;
2641
3606
  export declare const Checkbox: ComponentWithProps<CheckboxProps>;
2642
3607
  export declare const Chips: ComponentWithProps<ChipsProps>;
3608
+ export declare const Coachmark: ComponentWithProps<CoachmarkProps>;
3609
+ export declare const CodeBlock: ComponentWithProps<CodeBlockProps>;
3610
+ export declare const ColorPicker: ComponentWithProps<ColorPickerProps>;
2643
3611
  export declare const Combobox: ComponentWithProps<ComboboxProps>;
2644
3612
  export declare const ConfirmAIAction: ComponentWithProps<ConfirmAIActionProps>;
2645
3613
  export declare const ConfirmDialog: ComponentWithProps<ConfirmDialogProps>;
2646
3614
  export declare const Container: ComponentWithProps<ContainerProps>;
2647
3615
  export declare const DataTable: ComponentWithProps<DataTableProps>;
2648
3616
  export declare const DatePicker: ComponentWithProps<DatePickerProps>;
3617
+ export declare const DescriptionList: ComponentWithProps<DescriptionListProps>;
2649
3618
  export declare const Divider: ComponentWithProps<DividerProps>;
2650
3619
  export declare const Drawer: ComponentWithProps<DrawerProps>;
2651
3620
  export declare const Dropdown: ComponentWithProps<DropdownProps>;
@@ -2653,14 +3622,20 @@ export declare const EmptyState: ComponentWithProps<EmptyStateProps>;
2653
3622
  export declare const FileInput: ComponentWithProps<FileInputProps>;
2654
3623
  export declare const Grid: ComponentWithProps<GridProps>;
2655
3624
  export declare const Icon: ComponentWithProps<IconProps>;
3625
+ export declare const IconPicker: ComponentWithProps<IconPickerProps>;
2656
3626
  export declare const Input: ComponentWithProps<InputProps>;
2657
3627
  export declare const Kanban: ComponentWithProps<KanbanProps>;
2658
3628
  export declare const KanbanCard: ComponentWithProps<KanbanCardProps>;
2659
3629
  export declare const KanbanColumn: ComponentWithProps<KanbanColumnProps>;
3630
+ export declare const Kbd: ComponentWithProps<KbdProps>;
2660
3631
  export declare const Link: ComponentWithProps<LinkProps>;
3632
+ export declare const List: ComponentWithProps<ListProps>;
3633
+ export declare const ListItem: ComponentWithProps<ListItemProps>;
2661
3634
  export declare const Logo: ComponentWithProps<LogoProps>;
2662
3635
  export declare const Modal: ComponentWithProps<ModalProps>;
2663
3636
  export declare const MultiSelect: ComponentWithProps<MultiSelectProps>;
3637
+ export declare const OrgChart: ComponentWithProps<OrgChartProps>;
3638
+ export declare const OtpInput: ComponentWithProps<OtpInputProps>;
2664
3639
  export declare const PageHeader: ComponentWithProps<PageHeaderProps>;
2665
3640
  export declare const Pagination: ComponentWithProps<PaginationProps>;
2666
3641
  export declare const PhoneInput: ComponentWithProps<PhoneInputProps>;
@@ -2670,6 +3645,7 @@ export declare const Portal: ComponentWithProps<PortalProps>;
2670
3645
  export declare const ProgressBar: ComponentWithProps<ProgressBarProps>;
2671
3646
  export declare const Radio: ComponentWithProps<RadioProps>;
2672
3647
  export declare const RadioGroup: ComponentWithProps<RadioGroupProps>;
3648
+ export declare const RichTextEditor: ComponentWithProps<RichTextEditorProps>;
2673
3649
  export declare const SegmentedControl: ComponentWithProps<SegmentedControlProps>;
2674
3650
  export declare const Select: ComponentWithProps<SelectProps>;
2675
3651
  export declare const SidePanel: ComponentWithProps<SidePanelProps>;
@@ -2718,18 +3694,23 @@ declare module '@vue/runtime-core' {
2718
3694
  Box: ComponentWithProps<BoxProps>;
2719
3695
  Breadcrumb: ComponentWithProps<BreadcrumbProps>;
2720
3696
  Button: ComponentWithProps<ButtonProps>;
3697
+ Calendar: ComponentWithProps<CalendarProps>;
2721
3698
  Card: ComponentWithProps<CardProps>;
2722
3699
  BarChart: ComponentWithProps<BarChartProps>;
2723
3700
  DonutChart: ComponentWithProps<DonutChartProps>;
2724
3701
  LineChart: ComponentWithProps<LineChartProps>;
2725
3702
  Checkbox: ComponentWithProps<CheckboxProps>;
2726
3703
  Chips: ComponentWithProps<ChipsProps>;
3704
+ Coachmark: ComponentWithProps<CoachmarkProps>;
3705
+ CodeBlock: ComponentWithProps<CodeBlockProps>;
3706
+ ColorPicker: ComponentWithProps<ColorPickerProps>;
2727
3707
  Combobox: ComponentWithProps<ComboboxProps>;
2728
3708
  ConfirmAIAction: ComponentWithProps<ConfirmAIActionProps>;
2729
3709
  ConfirmDialog: ComponentWithProps<ConfirmDialogProps>;
2730
3710
  Container: ComponentWithProps<ContainerProps>;
2731
3711
  DataTable: ComponentWithProps<DataTableProps>;
2732
3712
  DatePicker: ComponentWithProps<DatePickerProps>;
3713
+ DescriptionList: ComponentWithProps<DescriptionListProps>;
2733
3714
  Divider: ComponentWithProps<DividerProps>;
2734
3715
  Drawer: ComponentWithProps<DrawerProps>;
2735
3716
  Dropdown: ComponentWithProps<DropdownProps>;
@@ -2737,14 +3718,20 @@ declare module '@vue/runtime-core' {
2737
3718
  FileInput: ComponentWithProps<FileInputProps>;
2738
3719
  Grid: ComponentWithProps<GridProps>;
2739
3720
  Icon: ComponentWithProps<IconProps>;
3721
+ IconPicker: ComponentWithProps<IconPickerProps>;
2740
3722
  Input: ComponentWithProps<InputProps>;
2741
3723
  Kanban: ComponentWithProps<KanbanProps>;
2742
3724
  KanbanCard: ComponentWithProps<KanbanCardProps>;
2743
3725
  KanbanColumn: ComponentWithProps<KanbanColumnProps>;
3726
+ Kbd: ComponentWithProps<KbdProps>;
2744
3727
  Link: ComponentWithProps<LinkProps>;
3728
+ List: ComponentWithProps<ListProps>;
3729
+ ListItem: ComponentWithProps<ListItemProps>;
2745
3730
  Logo: ComponentWithProps<LogoProps>;
2746
3731
  Modal: ComponentWithProps<ModalProps>;
2747
3732
  MultiSelect: ComponentWithProps<MultiSelectProps>;
3733
+ OrgChart: ComponentWithProps<OrgChartProps>;
3734
+ OtpInput: ComponentWithProps<OtpInputProps>;
2748
3735
  PageHeader: ComponentWithProps<PageHeaderProps>;
2749
3736
  Pagination: ComponentWithProps<PaginationProps>;
2750
3737
  PhoneInput: ComponentWithProps<PhoneInputProps>;
@@ -2754,6 +3741,7 @@ declare module '@vue/runtime-core' {
2754
3741
  ProgressBar: ComponentWithProps<ProgressBarProps>;
2755
3742
  Radio: ComponentWithProps<RadioProps>;
2756
3743
  RadioGroup: ComponentWithProps<RadioGroupProps>;
3744
+ RichTextEditor: ComponentWithProps<RichTextEditorProps>;
2757
3745
  SegmentedControl: ComponentWithProps<SegmentedControlProps>;
2758
3746
  Select: ComponentWithProps<SelectProps>;
2759
3747
  SidePanel: ComponentWithProps<SidePanelProps>;