@1doc/1ds-vue 2.7.2 → 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.
- package/CHANGELOG.md +1289 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1218 -32
- package/dist/index.mjs +11156 -7808
- package/dist/index.umd.js +4 -4
- package/package.json +5 -4
- package/src/index.ts +26 -0
- package/src/teste/accordion-conteudo-livre.test.mjs +44 -0
- package/src/teste/atributos.test.mjs +91 -0
- package/src/teste/attachmentcard-ia.test.mjs +48 -0
- package/src/teste/avatargroup-overlap.test.mjs +45 -0
- package/src/teste/badge-tag.test.mjs +45 -0
- package/src/teste/box-item-flex.test.mjs +84 -0
- package/src/teste/box-layout.test.mjs +57 -0
- package/src/teste/button.test.mjs +34 -0
- package/src/teste/calendar.test.mjs +179 -0
- package/src/teste/chips-xs.test.mjs +33 -0
- package/src/teste/coachmark.test.mjs +119 -0
- package/src/teste/color-picker.test.mjs +79 -0
- package/src/teste/datatable-documento.test.mjs +106 -0
- package/src/teste/datatable-slots.test.mjs +105 -0
- package/src/teste/dom.mjs +168 -0
- package/src/teste/fileinput-trigger.test.mjs +36 -0
- package/src/teste/icon-picker.test.mjs +98 -0
- package/src/teste/input-mascara-afins.test.mjs +64 -0
- package/src/teste/kbd-code-block.test.mjs +76 -0
- package/src/teste/list.test.mjs +162 -0
- package/src/teste/modal-variantes.test.mjs +79 -0
- package/src/teste/org-chart.test.mjs +131 -0
- package/src/teste/otp-input.test.mjs +130 -0
- package/src/teste/popover-maxheight.test.mjs +26 -0
- package/src/teste/renderizar.mjs +64 -0
- package/src/teste/rich-text-editor.test.mjs +210 -0
- package/src/teste/select-placement-filtro.test.mjs +49 -0
- package/src/teste/stack-box-raiz-unica.test.mjs +134 -0
- package/src/teste/stack.test.mjs +80 -0
- package/src/teste/statcard-rotulo-topo.test.mjs +34 -0
- package/src/teste/tabs-contador-fechavel.test.mjs +60 -0
- package/src/teste/tooltip-dark.test.mjs +28 -0
- package/src/utils/calendario.ts +78 -0
- package/src/utils/chart.ts +7 -2
- package/src/utils/html-seguro.ts +94 -0
- package/src/utils/id.ts +24 -0
- package/src/utils/paleta-de-cores.ts +34 -0
- 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
|
-
|
|
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
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function
|
|
13
|
-
export declare function
|
|
14
|
-
export declare function
|
|
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";
|
|
@@ -34,6 +58,16 @@ export interface AIContentProps {
|
|
|
34
58
|
sources?: string[];
|
|
35
59
|
notIncluded?: string;
|
|
36
60
|
hideLabel?: any;
|
|
61
|
+
/** Texto do selo interno, repassado ao AILabel. Troque para traduzir. @default 'IA' */
|
|
62
|
+
label?: string;
|
|
63
|
+
/** Descrição acessível do selo interno, repassada ao AILabel. Troque para traduzir. @default 'Conteúdo gerado por IA' */
|
|
64
|
+
ariaLabel?: string;
|
|
65
|
+
/** Título do painel de explicação, repassado ao AILabel. Troque para traduzir. @default 'Como isto foi gerado' */
|
|
66
|
+
explanationTitle?: string;
|
|
67
|
+
/** Título da lista de fontes no painel, repassado ao AILabel. Troque para traduzir. @default 'Baseado em' */
|
|
68
|
+
sourcesLabel?: string;
|
|
69
|
+
/** Título do bloco do que ficou de fora, repassado ao AILabel. Troque para traduzir. @default 'Não considerado' */
|
|
70
|
+
notIncludedLabel?: string;
|
|
37
71
|
className?: string;
|
|
38
72
|
id?: string;
|
|
39
73
|
children?: any;
|
|
@@ -54,9 +88,26 @@ export interface AILabelProps {
|
|
|
54
88
|
className?: string;
|
|
55
89
|
id?: string;
|
|
56
90
|
ariaLabel?: string;
|
|
91
|
+
/** Título da lista de fontes no painel. Troque para traduzir. @default 'Baseado em' */
|
|
92
|
+
sourcesLabel?: string;
|
|
93
|
+
/** Título do bloco do que ficou de fora, no painel. Troque para traduzir. @default 'Não considerado' */
|
|
94
|
+
notIncludedLabel?: string;
|
|
57
95
|
children?: any;
|
|
58
96
|
}
|
|
59
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
|
+
|
|
60
111
|
export interface AccordionProps {
|
|
61
112
|
items: AccordionItemData[];
|
|
62
113
|
multiple?: boolean;
|
|
@@ -78,7 +129,9 @@ export interface AlertProps {
|
|
|
78
129
|
description?: string;
|
|
79
130
|
|
|
80
131
|
/**
|
|
81
|
-
* Variante semântica (cor/finalidade) do alerta.
|
|
132
|
+
* Variante semântica (cor/finalidade) do alerta. Também define como o
|
|
133
|
+
* leitor de tela anuncia: `negative` usa `role="alert"` (assertivo,
|
|
134
|
+
* interrompe a leitura); as demais usam `role="status"` (educado).
|
|
82
135
|
* @default 'neutral'
|
|
83
136
|
*/
|
|
84
137
|
variant?: "neutral" | "positive" | "info" | "negative";
|
|
@@ -193,8 +246,19 @@ export interface AppHeaderProps {
|
|
|
193
246
|
className?: string;
|
|
194
247
|
/** Marca. O padrão é o `Logo` da 1Doc; passe outro conteúdo para substituir. */
|
|
195
248
|
brand?: any;
|
|
196
|
-
/**
|
|
249
|
+
/**
|
|
250
|
+
* Navegação principal — normalmente uma lista de `AppNavItem`.
|
|
251
|
+
*
|
|
252
|
+
* Quando os itens não cabem na barra, os do fim saem dela e vão para o
|
|
253
|
+
* menu "Mais" (o item ativo, `aria-current="page"`, fica na barra sempre
|
|
254
|
+
* que couber sozinho). Escolher um item do menu aciona o próprio item
|
|
255
|
+
* (o `onClick` dele). Item que abre submenu próprio (`hasMenu`) deve vir
|
|
256
|
+
* no começo da lista: o submenu é ancorado no item, e dentro do "Mais"
|
|
257
|
+
* não haveria onde ancorá-lo.
|
|
258
|
+
*/
|
|
197
259
|
children?: any;
|
|
260
|
+
/** Rótulo do botão que reúne os itens de navegação que não cabem. @default "Mais" */
|
|
261
|
+
moreLabel?: string;
|
|
198
262
|
/** Campo de busca próprio, no lugar do padrão. */
|
|
199
263
|
search?: any;
|
|
200
264
|
/** Ícones de ação: tema, idioma, notificações. Recebem espaçamento e cor da barra. */
|
|
@@ -262,6 +326,26 @@ export interface AppShellProps {
|
|
|
262
326
|
sidebar?: any;
|
|
263
327
|
/** Conteúdo da tela — é a única parte que rola. */
|
|
264
328
|
children?: any;
|
|
329
|
+
/**
|
|
330
|
+
* Nome acessível da região de conteúdo (o `<main>`).
|
|
331
|
+
* Padrão: "Conteúdo principal".
|
|
332
|
+
* A região recebe foco por teclado para poder ser rolada pelas setas, e
|
|
333
|
+
* todo elemento focável precisa de nome.
|
|
334
|
+
*/
|
|
335
|
+
contentLabel?: string;
|
|
336
|
+
}
|
|
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;
|
|
265
349
|
}
|
|
266
350
|
|
|
267
351
|
export interface AppSidebarProps {
|
|
@@ -282,6 +366,10 @@ export interface AppSidebarProps {
|
|
|
282
366
|
toggleable?: any;
|
|
283
367
|
/** Nome acessível da navegação. @default 'Navegação principal' */
|
|
284
368
|
ariaLabel?: string;
|
|
369
|
+
/** Nome acessível do botão de abrir com a barra fechada. Troque para traduzir. @default 'Abrir a navegação' */
|
|
370
|
+
expandLabel?: string;
|
|
371
|
+
/** Nome acessível do botão de fechar com a barra aberta. Troque para traduzir. @default 'Fechar a navegação' */
|
|
372
|
+
collapseLabel?: string;
|
|
285
373
|
/** Classes CSS adicionais. */
|
|
286
374
|
className?: string;
|
|
287
375
|
/** Acionado ao clicar num item (recebe o id). */
|
|
@@ -301,18 +389,58 @@ export interface AppSubheaderProps {
|
|
|
301
389
|
children?: any;
|
|
302
390
|
}
|
|
303
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
|
+
|
|
304
408
|
export interface AttachmentCardProps {
|
|
305
409
|
fileName: string;
|
|
306
410
|
documentType?: string;
|
|
307
411
|
required?: boolean;
|
|
308
|
-
status?: "positive" | "negative";
|
|
412
|
+
status?: "positive" | "negative" | "ai";
|
|
309
413
|
statusLabel?: string;
|
|
310
414
|
statusIcon?: IconProp;
|
|
311
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;
|
|
312
430
|
onCopyField?: (field: AttachmentCardField) => void;
|
|
313
431
|
icon?: IconProp;
|
|
314
432
|
onOpen?: (event?: any) => void;
|
|
315
433
|
openAriaLabel?: string;
|
|
434
|
+
/** Complemento lido depois do selo, para dizer de qual documento ele é. Recebe o tipo de documento (ou o nome do arquivo). Troque para traduzir. @default (subject) => 'conferência de ' + subject */
|
|
435
|
+
statusContextLabel?: (subject: string) => string;
|
|
436
|
+
/** Texto lido depois do asterisco de obrigatório. Troque para traduzir. @default '(obrigatório)' */
|
|
437
|
+
requiredLabel?: string;
|
|
438
|
+
/** Nome acessível do botão de copiar um campo do painel. Recebe o rótulo do campo. Troque para traduzir. @default (field) => 'Copiar ' + field */
|
|
439
|
+
copyLabel?: (field: string) => string;
|
|
440
|
+
/** Nome acessível do botão e anúncio depois da cópia. Recebe o rótulo do campo. Troque para traduzir. @default (field) => field + ' copiado' */
|
|
441
|
+
copiedLabel?: (field: string) => string;
|
|
442
|
+
/** Anúncio quando a cópia falha. Recebe o rótulo do campo. Troque para traduzir. @default (field) => 'Não foi possível copiar ' + field */
|
|
443
|
+
copyErrorLabel?: (field: string) => string;
|
|
316
444
|
className?: string;
|
|
317
445
|
id?: string;
|
|
318
446
|
}
|
|
@@ -368,6 +496,23 @@ export interface AvatarProps {
|
|
|
368
496
|
onError?: (event?: any) => void;
|
|
369
497
|
}
|
|
370
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
|
+
|
|
371
516
|
export interface AvatarGroupProps {
|
|
372
517
|
/** Rótulo acessível do grupo. @default 'Grupo de avatares' */
|
|
373
518
|
ariaLabel?: string;
|
|
@@ -386,6 +531,23 @@ export interface AvatarGroupProps {
|
|
|
386
531
|
* @default 'md'
|
|
387
532
|
*/
|
|
388
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;
|
|
389
551
|
/**
|
|
390
552
|
* Classes adicionais.
|
|
391
553
|
*/
|
|
@@ -395,20 +557,41 @@ export interface AvatarGroupProps {
|
|
|
395
557
|
* Recebe o item correspondente.
|
|
396
558
|
*/
|
|
397
559
|
onError?: (item: AvatarGroupItem) => void;
|
|
560
|
+
/**
|
|
561
|
+
* Nome acessível do avatar de excedente. Recebe a quantidade escondida.
|
|
562
|
+
* Troque para traduzir. @default (count) => 'Mais ' + count + ' avatares'
|
|
563
|
+
*/
|
|
564
|
+
overflowAriaLabel?: (count: number) => string;
|
|
565
|
+
/**
|
|
566
|
+
* Dica (title) do avatar de excedente. Recebe a quantidade escondida.
|
|
567
|
+
* Troque para traduzir. @default (count) => count + ' outros'
|
|
568
|
+
*/
|
|
569
|
+
overflowTitle?: (count: number) => string;
|
|
398
570
|
}
|
|
399
571
|
|
|
400
572
|
export interface BadgeProps {
|
|
401
573
|
/**
|
|
402
|
-
* 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.
|
|
403
576
|
* @default 'neutral'
|
|
404
577
|
*/
|
|
405
|
-
variant?: "neutral" | "positive" | "negative" | "info" | "primary";
|
|
578
|
+
variant?: "neutral" | "positive" | "negative" | "info" | "primary" | "new";
|
|
406
579
|
|
|
407
580
|
/**
|
|
408
|
-
* 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.
|
|
409
583
|
* @default 'md'
|
|
410
584
|
*/
|
|
411
|
-
size?: "
|
|
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;
|
|
412
595
|
|
|
413
596
|
/**
|
|
414
597
|
* Estilo visual do badge.
|
|
@@ -452,6 +635,13 @@ export interface BadgeProps {
|
|
|
452
635
|
|
|
453
636
|
}
|
|
454
637
|
|
|
638
|
+
export interface BottomNavigationItem {
|
|
639
|
+
key: string;
|
|
640
|
+
label: string;
|
|
641
|
+
icon?: IconProp;
|
|
642
|
+
disabled?: boolean;
|
|
643
|
+
}
|
|
644
|
+
|
|
455
645
|
export interface BottomNavigationProps {
|
|
456
646
|
items: BottomNavigationItem[];
|
|
457
647
|
value?: string;
|
|
@@ -513,8 +703,16 @@ export interface BottomSheetProps {
|
|
|
513
703
|
closeOnEsc?: any;
|
|
514
704
|
closeOnBackdrop?: any;
|
|
515
705
|
|
|
706
|
+
/**
|
|
707
|
+
* Nome acessível do painel quando não há `title` (vira `aria-label`). Sem
|
|
708
|
+
* título, sem esta prop e sem `ariaLabelledby`, o componente usa "Painel"
|
|
709
|
+
* como último recurso, para o `role="dialog"` nunca sair anônimo.
|
|
710
|
+
*/
|
|
516
711
|
ariaLabel?: string;
|
|
712
|
+
/** Id de um elemento externo que nomeia o painel. Vence o `title`. */
|
|
517
713
|
ariaLabelledby?: string;
|
|
714
|
+
/** Nome acessível da alça de arrastar (slider), que só existe com mais de um encaixe. Troque para traduzir. @default 'Altura do painel' */
|
|
715
|
+
grabberLabel?: string;
|
|
518
716
|
className?: string;
|
|
519
717
|
id?: string;
|
|
520
718
|
children?: any;
|
|
@@ -523,6 +721,18 @@ export interface BottomSheetProps {
|
|
|
523
721
|
}
|
|
524
722
|
|
|
525
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;
|
|
526
736
|
/** Padding em todos os lados. @default 'none' */
|
|
527
737
|
padding?: BoxSpacing;
|
|
528
738
|
/** Padding horizontal. Sobrescreve `padding` no eixo X. */
|
|
@@ -539,12 +749,73 @@ export interface BoxProps {
|
|
|
539
749
|
shadow?: "none" | "level1" | "level2" | "level3";
|
|
540
750
|
/** Ocupa 100% da largura disponível. */
|
|
541
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;
|
|
542
770
|
/** Classes CSS adicionais. */
|
|
543
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;
|
|
544
779
|
/** Conteúdo da caixa. */
|
|
545
780
|
children?: any;
|
|
546
781
|
}
|
|
547
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
|
+
|
|
548
819
|
export interface BreadcrumbProps {
|
|
549
820
|
/** Rótulo acessível do trilha. @default 'Navegação estrutural' */
|
|
550
821
|
ariaLabel?: string;
|
|
@@ -558,11 +829,12 @@ export interface ButtonProps {
|
|
|
558
829
|
| "primary"
|
|
559
830
|
| "secondary"
|
|
560
831
|
| "neutral"
|
|
832
|
+
| "neutral-text"
|
|
561
833
|
| "text"
|
|
562
834
|
| "negative"
|
|
563
835
|
| "negative-outlined"
|
|
564
836
|
| "icon";
|
|
565
|
-
size?: "sm" | "md" | "lg";
|
|
837
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
566
838
|
disabled?: boolean;
|
|
567
839
|
type?: "button" | "submit" | "reset";
|
|
568
840
|
children?: any;
|
|
@@ -583,6 +855,65 @@ export interface ButtonProps {
|
|
|
583
855
|
tabIndex?: number;
|
|
584
856
|
}
|
|
585
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
|
+
|
|
586
917
|
export interface CardProps {
|
|
587
918
|
/**
|
|
588
919
|
* Ativa o estilo de hover (elevação de sombra e realce da borda).
|
|
@@ -624,6 +955,16 @@ export interface CardProps {
|
|
|
624
955
|
|
|
625
956
|
}
|
|
626
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
|
+
|
|
627
968
|
export interface BarChartProps {
|
|
628
969
|
data?: ChartDatum[];
|
|
629
970
|
series?: ChartSeries[];
|
|
@@ -637,6 +978,12 @@ export interface BarChartProps {
|
|
|
637
978
|
showLegend?: any;
|
|
638
979
|
showGrid?: any;
|
|
639
980
|
emptyText?: string;
|
|
981
|
+
/** Cabeçalho da coluna de categorias na tabela oculta lida pelo leitor de tela. Troque para traduzir. @default 'Categoria' */
|
|
982
|
+
categoryLabel?: string;
|
|
983
|
+
/** Nome acessível da lista de categorias focáveis; o `title`, se houver, vem depois de " — ". Troque para traduzir. @default 'Valores por categoria' */
|
|
984
|
+
valuesListLabel?: string;
|
|
985
|
+
/** Nome do tipo de gráfico: legenda da tabela oculta quando não há `title` e começo do resumo automático. O resumo automático é em português; em outro idioma, passe também `ariaLabel`. @default 'Gráfico de barras' */
|
|
986
|
+
typeLabel?: string;
|
|
640
987
|
className?: string;
|
|
641
988
|
}
|
|
642
989
|
|
|
@@ -669,6 +1016,12 @@ export interface LineChartProps {
|
|
|
669
1016
|
showGrid?: any;
|
|
670
1017
|
showPoints?: any;
|
|
671
1018
|
emptyText?: string;
|
|
1019
|
+
/** Cabeçalho da coluna de categorias na tabela oculta lida pelo leitor de tela. Troque para traduzir. @default 'Categoria' */
|
|
1020
|
+
categoryLabel?: string;
|
|
1021
|
+
/** Nome acessível da lista de categorias focáveis; o `title`, se houver, vem depois de " — ". Troque para traduzir. @default 'Valores por categoria' */
|
|
1022
|
+
valuesListLabel?: string;
|
|
1023
|
+
/** Nome do tipo de gráfico: legenda da tabela oculta quando não há `title` e começo do resumo automático. O resumo automático é em português; em outro idioma, passe também `ariaLabel`. @default 'Gráfico de linhas' */
|
|
1024
|
+
typeLabel?: string;
|
|
672
1025
|
className?: string;
|
|
673
1026
|
}
|
|
674
1027
|
|
|
@@ -719,7 +1072,9 @@ export interface ChipsProps {
|
|
|
719
1072
|
label: string;
|
|
720
1073
|
removable?: boolean;
|
|
721
1074
|
disabled?: boolean;
|
|
722
|
-
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;
|
|
723
1078
|
variant?: "default" | "primary" | "positive" | "negative" | "info";
|
|
724
1079
|
/** Estado selecionado do filter chip (comunicado via aria-pressed) */
|
|
725
1080
|
selected?: boolean;
|
|
@@ -727,6 +1082,76 @@ export interface ChipsProps {
|
|
|
727
1082
|
/** Presente = chip acionável (filter chip): label vira botão real, com Enter/Espaço nativos */
|
|
728
1083
|
onClick?: (event: any) => void;
|
|
729
1084
|
onRemove?: (event: any) => void;
|
|
1085
|
+
/** Prefixo do nome acessível do botão de remover (recebe o label do chip depois de um espaço), como no MultiSelect. Troque para traduzir. @default 'Remover' */
|
|
1086
|
+
removeAriaLabel?: string;
|
|
1087
|
+
}
|
|
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;
|
|
730
1155
|
}
|
|
731
1156
|
|
|
732
1157
|
export interface ComboboxOption {
|
|
@@ -791,6 +1216,16 @@ export interface ComboboxProps {
|
|
|
791
1216
|
export interface ConfirmAIActionProps {
|
|
792
1217
|
/** Rótulo acessível do bloco de impacto. @default 'O que será afetado' */
|
|
793
1218
|
impactLabel?: string;
|
|
1219
|
+
/** Aviso de irreversibilidade em risco alto. Troque para traduzir. @default 'Esta ação não pode ser desfeita.' */
|
|
1220
|
+
irreversibleLabel?: string;
|
|
1221
|
+
/** Texto antes da frase a digitar em risco alto (a frase vem depois, em negrito). Troque para traduzir. @default 'Para confirmar, digite' */
|
|
1222
|
+
typePhraseLabel?: string;
|
|
1223
|
+
/** Anúncio (aria-live) quando a frase digitada confere. Troque para traduzir. @default 'Texto confere. O botão de confirmar foi liberado.' */
|
|
1224
|
+
phraseMatchedLabel?: string;
|
|
1225
|
+
/** Anúncio (aria-live) enquanto a frase digitada não confere. Troque para traduzir. @default 'O botão de confirmar fica desabilitado até o texto conferir.' */
|
|
1226
|
+
phrasePendingLabel?: string;
|
|
1227
|
+
/** Texto do botão de confirmar durante `confirmLoading`, repassado ao ConfirmDialog. Troque para traduzir. @default 'Aguarde...' */
|
|
1228
|
+
loadingLabel?: string;
|
|
794
1229
|
open?: any;
|
|
795
1230
|
risk?: "baixo" | "medio" | "alto";
|
|
796
1231
|
title: string;
|
|
@@ -847,12 +1282,28 @@ export interface ConfirmDialogProps {
|
|
|
847
1282
|
*/
|
|
848
1283
|
cancelLabel?: string;
|
|
849
1284
|
|
|
1285
|
+
/**
|
|
1286
|
+
* Texto do botão de confirmação enquanto `confirmLoading` está ligado.
|
|
1287
|
+
* Troque para traduzir.
|
|
1288
|
+
* @default 'Aguarde...'
|
|
1289
|
+
*/
|
|
1290
|
+
loadingLabel?: string;
|
|
1291
|
+
|
|
850
1292
|
/**
|
|
851
1293
|
* Desabilita o botão de confirmação e exibe estado de carregamento.
|
|
852
1294
|
* @default false
|
|
853
1295
|
*/
|
|
854
1296
|
confirmLoading?: boolean;
|
|
855
1297
|
|
|
1298
|
+
/**
|
|
1299
|
+
* Desabilita o botão de confirmação sem estado de carregamento — para quando
|
|
1300
|
+
* a confirmação depende de uma condição ainda não cumprida (ex.: digitar a
|
|
1301
|
+
* frase de segurança). O botão sai com `disabled` nativo: não recebe foco
|
|
1302
|
+
* nem clique, e o leitor de tela o anuncia como indisponível.
|
|
1303
|
+
* @default false
|
|
1304
|
+
*/
|
|
1305
|
+
confirmDisabled?: boolean;
|
|
1306
|
+
|
|
856
1307
|
/**
|
|
857
1308
|
* Renderiza o diálogo inline (overlay relativo, sem fixed) — útil para
|
|
858
1309
|
* documentação/Storybook, onde o overlay fixed ficaria preso em containers
|
|
@@ -908,6 +1359,15 @@ export interface ContainerProps {
|
|
|
908
1359
|
children?: any;
|
|
909
1360
|
}
|
|
910
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
|
+
|
|
911
1371
|
export interface DataTableProps {
|
|
912
1372
|
columns: DataTableColumn[];
|
|
913
1373
|
data: Record<string, any>[];
|
|
@@ -916,7 +1376,11 @@ export interface DataTableProps {
|
|
|
916
1376
|
selectable?: boolean;
|
|
917
1377
|
selectedRows?: number[];
|
|
918
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;
|
|
919
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";
|
|
920
1384
|
density?: "default" | "compact";
|
|
921
1385
|
sortKey?: string;
|
|
922
1386
|
sortDirection?: "asc" | "desc";
|
|
@@ -926,6 +1390,33 @@ export interface DataTableProps {
|
|
|
926
1390
|
onSelect?: (selectedIndexes: number[]) => void;
|
|
927
1391
|
onSelectKeys?: (selectedKeys: Array<string | number>) => void;
|
|
928
1392
|
onRowClick?: (rowIndex: number, row: Record<string, any>) => void;
|
|
1393
|
+
/** Nome acessível do checkbox de selecionar todas as linhas. Troque para traduzir. @default 'Selecionar todas as linhas' */
|
|
1394
|
+
selectAllLabel?: string;
|
|
1395
|
+
/** Nome acessível do checkbox de cada linha. Recebe o número da linha (a partir de 1). Troque para traduzir. @default (rowNumber) => 'Selecionar linha ' + rowNumber */
|
|
1396
|
+
selectRowLabel?: (rowNumber: number) => string;
|
|
1397
|
+
}
|
|
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[];
|
|
929
1420
|
}
|
|
930
1421
|
|
|
931
1422
|
export interface DatePickerProps {
|
|
@@ -935,6 +1426,10 @@ export interface DatePickerProps {
|
|
|
935
1426
|
previousMonthLabel?: string;
|
|
936
1427
|
/** Rótulo acessível do botão de próximo mês. @default 'Próximo mês' */
|
|
937
1428
|
nextMonthLabel?: string;
|
|
1429
|
+
/** Nome acessível do painel do calendário (e do campo, quando não há `label` nem `ariaLabel`). Troque para traduzir. @default 'Selecionar data' ou, com mode="range", 'Selecionar período' */
|
|
1430
|
+
dialogLabel?: string;
|
|
1431
|
+
/** Nome acessível de cada dia da grade. Recebe a data em ISO (YYYY-MM-DD). Troque para traduzir. @default (isoDate) => '20 de julho de 2026' (mês por `locale.months`, em minúsculas) */
|
|
1432
|
+
dayLabel?: (isoDate: string) => string;
|
|
938
1433
|
/** Período selecionado (modo controlado). */
|
|
939
1434
|
/** Modo de seleção. "single" = uma data; "range" = período de duas datas. */
|
|
940
1435
|
mode?: "single" | "range";
|
|
@@ -995,6 +1490,34 @@ export interface DatePickerProps {
|
|
|
995
1490
|
onRangeChange?: (range: DateRange) => void;
|
|
996
1491
|
}
|
|
997
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
|
+
|
|
998
1521
|
export interface DividerProps {
|
|
999
1522
|
orientation?: "horizontal" | "vertical";
|
|
1000
1523
|
variant?: "solid" | "dashed" | "dotted";
|
|
@@ -1038,6 +1561,15 @@ export interface DrawerProps {
|
|
|
1038
1561
|
children?: any;
|
|
1039
1562
|
}
|
|
1040
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
|
+
|
|
1041
1573
|
export interface DropdownProps {
|
|
1042
1574
|
items: DropdownItem[];
|
|
1043
1575
|
placement?: "bottom-start" | "bottom-end" | "top-start" | "top-end";
|
|
@@ -1068,12 +1600,20 @@ export interface EmptyStateProps {
|
|
|
1068
1600
|
className?: string;
|
|
1069
1601
|
}
|
|
1070
1602
|
|
|
1603
|
+
export interface FileInputFile {
|
|
1604
|
+
name: string;
|
|
1605
|
+
size: number;
|
|
1606
|
+
progress?: number;
|
|
1607
|
+
status?: "uploading" | "completed" | "error";
|
|
1608
|
+
error?: string;
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1071
1611
|
export interface FileInputProps {
|
|
1072
1612
|
accept?: string;
|
|
1073
1613
|
multiple?: boolean;
|
|
1074
1614
|
maxSize?: number;
|
|
1075
1615
|
disabled?: boolean;
|
|
1076
|
-
variant?: "base" | "card";
|
|
1616
|
+
variant?: "base" | "card" | "trigger";
|
|
1077
1617
|
label?: string;
|
|
1078
1618
|
files?: FileInputFile[];
|
|
1079
1619
|
name?: string;
|
|
@@ -1084,6 +1624,26 @@ export interface FileInputProps {
|
|
|
1084
1624
|
/** Texto de ajuda exibido abaixo do campo. */
|
|
1085
1625
|
helperText?: string;
|
|
1086
1626
|
className?: string;
|
|
1627
|
+
/** Nome acessível do input de arquivo quando não há `label`. Troque para traduzir. @default 'Selecionar arquivo' */
|
|
1628
|
+
selectFileLabel?: string;
|
|
1629
|
+
/** Chamada em negrito da variante `base`. Troque para traduzir. @default 'Clique para selecionar' */
|
|
1630
|
+
triggerLabel?: string;
|
|
1631
|
+
/** Complemento da chamada na variante `base`, depois do negrito. Troque para traduzir. @default 'ou arraste aqui' */
|
|
1632
|
+
triggerHint?: string;
|
|
1633
|
+
/** Prefixo da dica de tamanho máximo (recebe o tamanho formatado depois de um espaço). Troque para traduzir. @default 'Máximo' */
|
|
1634
|
+
maxSizeLabel?: string;
|
|
1635
|
+
/** Chamada em negrito da variante `card`. Troque para traduzir. @default 'Arraste e solte' */
|
|
1636
|
+
dropLabel?: string;
|
|
1637
|
+
/** Conector entre as duas chamadas da variante `card`. Troque para traduzir. @default 'ou' */
|
|
1638
|
+
orLabel?: string;
|
|
1639
|
+
/** Link de escolher arquivo na variante `card`. Troque para traduzir. @default 'clique para escolher' */
|
|
1640
|
+
browseLabel?: string;
|
|
1641
|
+
/** Prefixo do nome acessível do botão de remover um arquivo (recebe o nome do arquivo depois de um espaço), como no MultiSelect. Troque para traduzir. @default 'Remover' */
|
|
1642
|
+
removeAriaLabel?: string;
|
|
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' */
|
|
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;
|
|
1087
1647
|
onChange?: (files?: File[]) => void;
|
|
1088
1648
|
onRemove?: (index?: number) => void;
|
|
1089
1649
|
}
|
|
@@ -1147,6 +1707,34 @@ export interface IconProps {
|
|
|
1147
1707
|
children?: any;
|
|
1148
1708
|
}
|
|
1149
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
|
+
|
|
1150
1738
|
export interface InputAction {
|
|
1151
1739
|
icon: IconProp;
|
|
1152
1740
|
onClick?: (event?: any) => void;
|
|
@@ -1196,9 +1784,19 @@ export interface InputProps {
|
|
|
1196
1784
|
fullWidth?: boolean;
|
|
1197
1785
|
className?: string;
|
|
1198
1786
|
ariaLabel?: string;
|
|
1787
|
+
/** Nome acessível do botão de mostrar a senha (`type="password"`). Troque para traduzir. @default 'Mostrar senha' */
|
|
1788
|
+
showPasswordLabel?: string;
|
|
1789
|
+
/** Nome acessível do botão de ocultar a senha (`type="password"`). Troque para traduzir. @default 'Ocultar senha' */
|
|
1790
|
+
hidePasswordLabel?: string;
|
|
1199
1791
|
|
|
1200
1792
|
iconLeft?: IconProp;
|
|
1201
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";
|
|
1202
1800
|
|
|
1203
1801
|
onChange?: (value: string) => void;
|
|
1204
1802
|
onFocus?: (event?: any) => void;
|
|
@@ -1207,6 +1805,61 @@ export interface InputProps {
|
|
|
1207
1805
|
|
|
1208
1806
|
}
|
|
1209
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
|
+
|
|
1210
1863
|
export interface KanbanProps {
|
|
1211
1864
|
columns?: KanbanColumnData[];
|
|
1212
1865
|
onCardMove?: (move: KanbanCardMove) => void;
|
|
@@ -1220,6 +1873,21 @@ export interface KanbanProps {
|
|
|
1220
1873
|
columnHeadingLevel?: number;
|
|
1221
1874
|
className?: string;
|
|
1222
1875
|
id?: string;
|
|
1876
|
+
/** Frases anunciadas ao leitor de tela durante o movimento (ver `KanbanAnnouncements`). Cada uma que faltar fica no padrão em português. Troque para traduzir. @default frases em português */
|
|
1877
|
+
announcements?: KanbanAnnouncements;
|
|
1878
|
+
/** Prefixo do responsável na descrição lida de cada cartão e no avatar (o nome vem depois de ": "). Troque para traduzir. @default 'Responsável' */
|
|
1879
|
+
assigneeLabel?: string;
|
|
1880
|
+
/** Prefixo das etiquetas na descrição lida de cada cartão (a lista vem depois de ": "). Troque para traduzir. @default 'Etiquetas' */
|
|
1881
|
+
tagsLabel?: string;
|
|
1882
|
+
/** Descrição do papel do cartão (aria-roledescription). Troque para traduzir. @default 'cartão arrastável' */
|
|
1883
|
+
cardRoleDescription?: string;
|
|
1884
|
+
/** Contagem por extenso de cada coluna, repassada ao `countLabel` do KanbanColumn. Recebe a quantidade e o limite de WIP (quando há). Troque para traduzir. @default (count, limit) => '4 de 3 cartões, limite excedido' | '1 cartão' | 'N cartões' */
|
|
1885
|
+
columnCountLabel?: (count: number, limit?: number) => string;
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
export interface KanbanCardTag {
|
|
1889
|
+
label: string;
|
|
1890
|
+
variant?: "neutral" | "primary" | "positive" | "negative" | "info";
|
|
1223
1891
|
}
|
|
1224
1892
|
|
|
1225
1893
|
export interface KanbanCardProps {
|
|
@@ -1233,6 +1901,8 @@ export interface KanbanCardProps {
|
|
|
1233
1901
|
onClick?: (event?: any) => void;
|
|
1234
1902
|
className?: string;
|
|
1235
1903
|
id?: string;
|
|
1904
|
+
/** Prefixo do nome acessível do avatar do responsável (o nome vem depois de ": "). Troque para traduzir. @default 'Responsável' */
|
|
1905
|
+
assigneeLabel?: string;
|
|
1236
1906
|
}
|
|
1237
1907
|
|
|
1238
1908
|
export interface KanbanColumnProps {
|
|
@@ -1248,6 +1918,20 @@ export interface KanbanColumnProps {
|
|
|
1248
1918
|
className?: string;
|
|
1249
1919
|
id?: string;
|
|
1250
1920
|
children?: any;
|
|
1921
|
+
/** Contagem por extenso lida pelo leitor de tela no lugar do selo. Recebe a quantidade e o limite de WIP (quando há). Troque para traduzir. @default (count, limit) => '4 de 3 cartões, limite excedido' | '3 de 3 cartões, limite atingido' | '1 cartão' | 'N cartões' */
|
|
1922
|
+
countLabel?: (count: number, limit?: number) => string;
|
|
1923
|
+
}
|
|
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;
|
|
1251
1935
|
}
|
|
1252
1936
|
|
|
1253
1937
|
export interface LinkProps {
|
|
@@ -1265,6 +1949,88 @@ export interface LinkProps {
|
|
|
1265
1949
|
iconRight?: any;
|
|
1266
1950
|
}
|
|
1267
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
|
+
|
|
1268
2034
|
export interface LogoProps {
|
|
1269
2035
|
size?: "regular" | "small";
|
|
1270
2036
|
variant?: "default" | "dark" | "light";
|
|
@@ -1295,11 +2061,43 @@ export interface ModalProps {
|
|
|
1295
2061
|
* - "positive": sucesso (verde, ícone circle-check).
|
|
1296
2062
|
* - "negative": erro/falha (vermelho, ícone circle-exclamation).
|
|
1297
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.
|
|
1298
2066
|
* @default 'default'
|
|
1299
2067
|
*/
|
|
1300
|
-
variant?: "default" | "positive" | "negative" | "info";
|
|
1301
|
-
/**
|
|
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;
|
|
2088
|
+
/**
|
|
2089
|
+
* Título em destaque. Com título, o diálogo é nomeado por ele
|
|
2090
|
+
* (`aria-labelledby`) e `ariaLabel` é ignorado.
|
|
2091
|
+
*/
|
|
1302
2092
|
title?: string;
|
|
2093
|
+
/**
|
|
2094
|
+
* Nome acessível do diálogo quando não há `title` (vira `aria-label`).
|
|
2095
|
+
* Sem título e sem esta prop, o leitor de tela anuncia só "diálogo", sem
|
|
2096
|
+
* dizer do quê — informe sempre que o modal não tiver título visível. Como
|
|
2097
|
+
* último recurso o componente usa "Diálogo", para o `role="dialog"` nunca
|
|
2098
|
+
* sair anônimo.
|
|
2099
|
+
*/
|
|
2100
|
+
ariaLabel?: string;
|
|
1303
2101
|
/** Texto de descrição/apoio */
|
|
1304
2102
|
description?: string;
|
|
1305
2103
|
/** Texto do botão de confirmação/ação primária */
|
|
@@ -1342,12 +2140,18 @@ export interface ModalProps {
|
|
|
1342
2140
|
/** Se verdadeiro, renderiza o modal inline (sem fixed/overlay), útil para documentação */
|
|
1343
2141
|
inline?: boolean;
|
|
1344
2142
|
/**
|
|
1345
|
-
* Controles de janela no cabeçalho
|
|
1346
|
-
*
|
|
1347
|
-
*
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
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. */
|
|
1351
2155
|
onMinimize?: (event?: any) => void;
|
|
1352
2156
|
/**
|
|
1353
2157
|
* Região esquerda do rodapé — conteúdo de apoio que não é botão: a caixa
|
|
@@ -1429,6 +2233,56 @@ export interface MultiSelectProps {
|
|
|
1429
2233
|
onChange?: (value: Array<string | number>) => void;
|
|
1430
2234
|
}
|
|
1431
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
|
+
|
|
1432
2286
|
export interface PageHeaderProps {
|
|
1433
2287
|
/** Rótulo acessível do trilha. @default 'Trilha de navegação' */
|
|
1434
2288
|
breadcrumbLabel?: string;
|
|
@@ -1452,6 +2306,12 @@ export interface PaginationProps {
|
|
|
1452
2306
|
previousPageLabel?: string;
|
|
1453
2307
|
/** Rótulo acessível do botão de próxima página. @default 'Próxima página' */
|
|
1454
2308
|
nextPageLabel?: string;
|
|
2309
|
+
/** Palavra entre o campo de página e o total (`default` e `alternative`). Troque para traduzir. @default 'de' */
|
|
2310
|
+
ofLabel?: string;
|
|
2311
|
+
/** Texto do intervalo na variante `resumed`. Recebe início, fim e total de itens. Troque para traduzir. @default (start, end, total) => start + '-' + end + ' de ' + total */
|
|
2312
|
+
itemRangeLabel?: (start: number, end: number, total: number) => string;
|
|
2313
|
+
/** Nome acessível de cada botão numerado (`full-width` e `bordered`). Recebe o número da página. Troque para traduzir. @default (page) => 'Página ' + page */
|
|
2314
|
+
pageLabel?: (page: number) => string;
|
|
1455
2315
|
page?: number;
|
|
1456
2316
|
totalPages?: number;
|
|
1457
2317
|
variant?: "default" | "alternative" | "resumed" | "full-width" | "bordered";
|
|
@@ -1478,9 +2338,25 @@ export interface PaginationProps {
|
|
|
1478
2338
|
onPageChange?: (page: number) => void;
|
|
1479
2339
|
}
|
|
1480
2340
|
|
|
2341
|
+
export interface PhoneInputCountry {
|
|
2342
|
+
code: string;
|
|
2343
|
+
flag: string;
|
|
2344
|
+
flagUrl: string;
|
|
2345
|
+
ddi: string;
|
|
2346
|
+
name: string;
|
|
2347
|
+
}
|
|
2348
|
+
|
|
1481
2349
|
export interface PhoneInputProps {
|
|
1482
2350
|
/** Rótulo acessível do seletor de país. @default 'Selecionar país' */
|
|
1483
2351
|
countryLabel?: string;
|
|
2352
|
+
/** Nomes dos países na lista e no alt da bandeira, por código ISO (ex.: `{ BR: "Brazil", ES: "Spain" }`). Código ausente mantém o nome padrão. Troque para traduzir. @default nomes em português */
|
|
2353
|
+
countryNames?: { [code: string]: string };
|
|
2354
|
+
/** Nome acessível do botão de copiar o número. Troque para traduzir. @default 'Copiar número' */
|
|
2355
|
+
copyLabel?: string;
|
|
2356
|
+
/** Dica (title) do botão de copiar. Troque para traduzir. @default 'Copiar' */
|
|
2357
|
+
copyTitle?: string;
|
|
2358
|
+
/** Nome acessível e dica do botão de copiar logo depois da cópia. Troque para traduzir. @default 'Copiado!' */
|
|
2359
|
+
copiedLabel?: string;
|
|
1484
2360
|
value?: string;
|
|
1485
2361
|
defaultValue?: string;
|
|
1486
2362
|
placeholder?: string;
|
|
@@ -1502,6 +2378,16 @@ export interface PhoneInputProps {
|
|
|
1502
2378
|
onCopy?: (value: string) => void;
|
|
1503
2379
|
}
|
|
1504
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
|
+
|
|
1505
2391
|
export interface PodiumProps {
|
|
1506
2392
|
items: PodiumItem[];
|
|
1507
2393
|
showRest?: boolean;
|
|
@@ -1539,6 +2425,12 @@ export interface PopoverProps {
|
|
|
1539
2425
|
closable?: boolean;
|
|
1540
2426
|
closeLabel?: string;
|
|
1541
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;
|
|
1542
2434
|
ariaLabel?: string;
|
|
1543
2435
|
className?: string;
|
|
1544
2436
|
children?: any;
|
|
@@ -1646,6 +2538,43 @@ export interface RadioGroupProps {
|
|
|
1646
2538
|
onChange?: (value: string) => void;
|
|
1647
2539
|
}
|
|
1648
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
|
+
|
|
1649
2578
|
export interface SegmentedControlOption {
|
|
1650
2579
|
label?: string;
|
|
1651
2580
|
value: string;
|
|
@@ -1661,6 +2590,7 @@ export interface SegmentedControlProps {
|
|
|
1661
2590
|
value?: string;
|
|
1662
2591
|
defaultValue?: string;
|
|
1663
2592
|
name?: string;
|
|
2593
|
+
id?: string;
|
|
1664
2594
|
disabled?: boolean;
|
|
1665
2595
|
required?: boolean;
|
|
1666
2596
|
invalid?: boolean;
|
|
@@ -1712,6 +2642,14 @@ export interface SelectProps {
|
|
|
1712
2642
|
errorMessage?: string;
|
|
1713
2643
|
fullWidth?: boolean;
|
|
1714
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;
|
|
1715
2653
|
|
|
1716
2654
|
pagination?: boolean;
|
|
1717
2655
|
hasMore?: boolean;
|
|
@@ -1733,6 +2671,15 @@ export interface SelectProps {
|
|
|
1733
2671
|
className?: string;
|
|
1734
2672
|
}
|
|
1735
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
|
+
|
|
1736
2683
|
export interface SidePanelProps {
|
|
1737
2684
|
/** Título no topo do painel. */
|
|
1738
2685
|
title?: string;
|
|
@@ -1835,9 +2782,11 @@ export interface SpinnerProps {
|
|
|
1835
2782
|
}
|
|
1836
2783
|
|
|
1837
2784
|
export interface StackProps {
|
|
2785
|
+
/** Elemento HTML renderizado. @default 'div' */
|
|
2786
|
+
as?: StackTag;
|
|
1838
2787
|
/** Eixo do empilhamento. @default 'vertical' */
|
|
1839
2788
|
direction?: "vertical" | "horizontal";
|
|
1840
|
-
/** 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' */
|
|
1841
2790
|
gap?: StackSpacing;
|
|
1842
2791
|
/** Alinhamento no eixo transversal. */
|
|
1843
2792
|
align?: "start" | "center" | "end" | "stretch" | "baseline";
|
|
@@ -1847,12 +2796,69 @@ export interface StackProps {
|
|
|
1847
2796
|
wrap?: boolean;
|
|
1848
2797
|
/** Usa `inline-flex` em vez de `flex`. */
|
|
1849
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;
|
|
1850
2817
|
/** Classes CSS adicionais. */
|
|
1851
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;
|
|
1852
2828
|
/** Conteúdo empilhado. */
|
|
1853
2829
|
children?: any;
|
|
1854
2830
|
}
|
|
1855
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
|
+
|
|
1856
2862
|
export interface StatCardProps {
|
|
1857
2863
|
/** O número ou medida em destaque. */
|
|
1858
2864
|
value?: string | number;
|
|
@@ -1881,17 +2887,46 @@ export interface StatCardProps {
|
|
|
1881
2887
|
description?: string;
|
|
1882
2888
|
/** Alinhamento do conteúdo. @default 'start' */
|
|
1883
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;
|
|
1884
2904
|
/** Classes CSS adicionais. */
|
|
1885
2905
|
className?: string;
|
|
1886
2906
|
/** Torna o cartão acionável. */
|
|
1887
2907
|
onClick?: () => void;
|
|
1888
2908
|
}
|
|
1889
2909
|
|
|
2910
|
+
export interface StepperStep {
|
|
2911
|
+
title: string;
|
|
2912
|
+
description?: string;
|
|
2913
|
+
status?: "pending" | "active" | "completed" | "error";
|
|
2914
|
+
[key: string]: any;
|
|
2915
|
+
}
|
|
2916
|
+
|
|
1890
2917
|
export interface StepperProps {
|
|
1891
2918
|
steps: StepperStep[];
|
|
1892
2919
|
currentStep?: number;
|
|
1893
2920
|
orientation?: "horizontal" | "vertical";
|
|
1894
2921
|
className?: string;
|
|
2922
|
+
/** Estado lido pelo leitor de tela num passo concluído. Troque para traduzir. @default 'concluído' */
|
|
2923
|
+
completedLabel?: string;
|
|
2924
|
+
/** Estado lido pelo leitor de tela num passo com erro. Troque para traduzir. @default 'erro' */
|
|
2925
|
+
errorLabel?: string;
|
|
2926
|
+
/** Estado lido pelo leitor de tela no passo atual. Troque para traduzir. @default 'atual' */
|
|
2927
|
+
activeLabel?: string;
|
|
2928
|
+
/** Estado lido pelo leitor de tela num passo pendente. Troque para traduzir. @default 'pendente' */
|
|
2929
|
+
pendingLabel?: string;
|
|
1895
2930
|
}
|
|
1896
2931
|
|
|
1897
2932
|
export interface SwitchProps {
|
|
@@ -1959,6 +2994,13 @@ export interface TabsProps {
|
|
|
1959
2994
|
* como gerar um id compartilhado automaticamente).
|
|
1960
2995
|
*/
|
|
1961
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;
|
|
1962
3004
|
/** Classes CSS adicionais */
|
|
1963
3005
|
className?: string;
|
|
1964
3006
|
/** Subcomponentes Tab */
|
|
@@ -1974,6 +3016,21 @@ export interface TabProps {
|
|
|
1974
3016
|
icon?: IconProp;
|
|
1975
3017
|
/** Se a tab está desabilitada */
|
|
1976
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;
|
|
1977
3034
|
/** Classes CSS adicionais */
|
|
1978
3035
|
className?: string;
|
|
1979
3036
|
}
|
|
@@ -2014,10 +3071,17 @@ export interface TagProps {
|
|
|
2014
3071
|
label?: string;
|
|
2015
3072
|
|
|
2016
3073
|
/**
|
|
2017
|
-
* 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").
|
|
2018
3076
|
* @default 'outlined'
|
|
2019
3077
|
*/
|
|
2020
|
-
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;
|
|
2021
3085
|
|
|
2022
3086
|
/**
|
|
2023
3087
|
* Variante semântica de cor (paridade com o Badge) — para tag de STATUS
|
|
@@ -2025,13 +3089,14 @@ export interface TagProps {
|
|
|
2025
3089
|
* 'neutral' mantém o visual atual.
|
|
2026
3090
|
* @default 'neutral'
|
|
2027
3091
|
*/
|
|
2028
|
-
variant?: "neutral" | "primary" | "positive" | "negative" | "info";
|
|
3092
|
+
variant?: "neutral" | "primary" | "positive" | "negative" | "info" | "new";
|
|
2029
3093
|
|
|
2030
3094
|
/**
|
|
2031
|
-
* 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.
|
|
2032
3097
|
* @default 'md'
|
|
2033
3098
|
*/
|
|
2034
|
-
size?: "sm" | "md" | "lg";
|
|
3099
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
2035
3100
|
|
|
2036
3101
|
/**
|
|
2037
3102
|
* Ícone Font Awesome exibido à esquerda do label.
|
|
@@ -2101,6 +3166,15 @@ export interface TagProps {
|
|
|
2101
3166
|
|
|
2102
3167
|
}
|
|
2103
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
|
+
|
|
2104
3178
|
export interface TextProps {
|
|
2105
3179
|
/** ID HTML do elemento raiz */
|
|
2106
3180
|
id?: string;
|
|
@@ -2130,7 +3204,15 @@ export interface TextProps {
|
|
|
2130
3204
|
/** Alinhamento do texto */
|
|
2131
3205
|
align?: "left" | "center" | "right" | "justify";
|
|
2132
3206
|
|
|
2133
|
-
/**
|
|
3207
|
+
/**
|
|
3208
|
+
* Cor do texto usando tokens semânticos.
|
|
3209
|
+
*
|
|
3210
|
+
* `disabled` (`neutral-dark-up`, #A3A3A3, 2,5:1 sobre branco) é SÓ para
|
|
3211
|
+
* texto de controle desabilitado (rótulo, valor ou ajuda de um campo ou
|
|
3212
|
+
* botão inativo), que o WCAG 1.4.3 isenta de contraste. Em qualquer outro
|
|
3213
|
+
* texto (apoio, legenda, etapa pendente, placeholder) ela reprova o
|
|
3214
|
+
* mínimo de 4,5:1: use `secondary` (`neutral-dark-down`, #565656, 7,34:1).
|
|
3215
|
+
*/
|
|
2134
3216
|
color?: "primary" | "secondary" | "disabled" | "negative" | "inherit"
|
|
2135
3217
|
/** @deprecated use "negative" — mantido para não quebrar Input, Select e Textarea */
|
|
2136
3218
|
| "error";
|
|
@@ -2179,6 +3261,22 @@ export interface TextProps {
|
|
|
2179
3261
|
*/
|
|
2180
3262
|
}
|
|
2181
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
|
+
|
|
2182
3280
|
export interface TextareaProps {
|
|
2183
3281
|
id?: string;
|
|
2184
3282
|
label?: any;
|
|
@@ -2232,6 +3330,12 @@ export interface TimePickerProps {
|
|
|
2232
3330
|
minuteLabel?: string;
|
|
2233
3331
|
/** Rótulo acessível do campo de segundo. @default 'Segundo' */
|
|
2234
3332
|
secondLabel?: string;
|
|
3333
|
+
/** Unidade visível ao lado da coluna de hora. Troque para traduzir. @default 'h' */
|
|
3334
|
+
hourUnitLabel?: string;
|
|
3335
|
+
/** Unidade visível ao lado da coluna de minuto. Troque para traduzir. @default 'min' */
|
|
3336
|
+
minuteUnitLabel?: string;
|
|
3337
|
+
/** Unidade visível ao lado da coluna de segundo. Troque para traduzir. @default 'seg' */
|
|
3338
|
+
secondUnitLabel?: string;
|
|
2235
3339
|
value?: string;
|
|
2236
3340
|
defaultValue?: string;
|
|
2237
3341
|
/** Nome do campo no submit do form — emite um input hidden com o valor atual. */
|
|
@@ -2261,6 +3365,17 @@ export interface TimePickerProps {
|
|
|
2261
3365
|
onChange?: (value: string) => void;
|
|
2262
3366
|
}
|
|
2263
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
|
+
|
|
2264
3379
|
export interface TimelineProps {
|
|
2265
3380
|
items: TimelineItem[];
|
|
2266
3381
|
card?: boolean;
|
|
@@ -2355,6 +3470,17 @@ export interface TooltipProps {
|
|
|
2355
3470
|
side?: "top" | "bottom" | "left" | "right";
|
|
2356
3471
|
/** Alinhamento no eixo cruzado: "center" usa só o `side`; "start"/"end" viram placements compostos (`top-start`, `right-end`…). */
|
|
2357
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;
|
|
2358
3484
|
sideOffset?: number;
|
|
2359
3485
|
delayDuration?: number;
|
|
2360
3486
|
disabled?: boolean;
|
|
@@ -2362,6 +3488,42 @@ export interface TooltipProps {
|
|
|
2362
3488
|
children?: any;
|
|
2363
3489
|
}
|
|
2364
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
|
+
|
|
2365
3527
|
export interface TreeProps {
|
|
2366
3528
|
items: TreeNode[];
|
|
2367
3529
|
|
|
@@ -2436,18 +3598,23 @@ export declare const BottomSheet: ComponentWithProps<BottomSheetProps>;
|
|
|
2436
3598
|
export declare const Box: ComponentWithProps<BoxProps>;
|
|
2437
3599
|
export declare const Breadcrumb: ComponentWithProps<BreadcrumbProps>;
|
|
2438
3600
|
export declare const Button: ComponentWithProps<ButtonProps>;
|
|
3601
|
+
export declare const Calendar: ComponentWithProps<CalendarProps>;
|
|
2439
3602
|
export declare const Card: ComponentWithProps<CardProps>;
|
|
2440
3603
|
export declare const BarChart: ComponentWithProps<BarChartProps>;
|
|
2441
3604
|
export declare const DonutChart: ComponentWithProps<DonutChartProps>;
|
|
2442
3605
|
export declare const LineChart: ComponentWithProps<LineChartProps>;
|
|
2443
3606
|
export declare const Checkbox: ComponentWithProps<CheckboxProps>;
|
|
2444
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>;
|
|
2445
3611
|
export declare const Combobox: ComponentWithProps<ComboboxProps>;
|
|
2446
3612
|
export declare const ConfirmAIAction: ComponentWithProps<ConfirmAIActionProps>;
|
|
2447
3613
|
export declare const ConfirmDialog: ComponentWithProps<ConfirmDialogProps>;
|
|
2448
3614
|
export declare const Container: ComponentWithProps<ContainerProps>;
|
|
2449
3615
|
export declare const DataTable: ComponentWithProps<DataTableProps>;
|
|
2450
3616
|
export declare const DatePicker: ComponentWithProps<DatePickerProps>;
|
|
3617
|
+
export declare const DescriptionList: ComponentWithProps<DescriptionListProps>;
|
|
2451
3618
|
export declare const Divider: ComponentWithProps<DividerProps>;
|
|
2452
3619
|
export declare const Drawer: ComponentWithProps<DrawerProps>;
|
|
2453
3620
|
export declare const Dropdown: ComponentWithProps<DropdownProps>;
|
|
@@ -2455,14 +3622,20 @@ export declare const EmptyState: ComponentWithProps<EmptyStateProps>;
|
|
|
2455
3622
|
export declare const FileInput: ComponentWithProps<FileInputProps>;
|
|
2456
3623
|
export declare const Grid: ComponentWithProps<GridProps>;
|
|
2457
3624
|
export declare const Icon: ComponentWithProps<IconProps>;
|
|
3625
|
+
export declare const IconPicker: ComponentWithProps<IconPickerProps>;
|
|
2458
3626
|
export declare const Input: ComponentWithProps<InputProps>;
|
|
2459
3627
|
export declare const Kanban: ComponentWithProps<KanbanProps>;
|
|
2460
3628
|
export declare const KanbanCard: ComponentWithProps<KanbanCardProps>;
|
|
2461
3629
|
export declare const KanbanColumn: ComponentWithProps<KanbanColumnProps>;
|
|
3630
|
+
export declare const Kbd: ComponentWithProps<KbdProps>;
|
|
2462
3631
|
export declare const Link: ComponentWithProps<LinkProps>;
|
|
3632
|
+
export declare const List: ComponentWithProps<ListProps>;
|
|
3633
|
+
export declare const ListItem: ComponentWithProps<ListItemProps>;
|
|
2463
3634
|
export declare const Logo: ComponentWithProps<LogoProps>;
|
|
2464
3635
|
export declare const Modal: ComponentWithProps<ModalProps>;
|
|
2465
3636
|
export declare const MultiSelect: ComponentWithProps<MultiSelectProps>;
|
|
3637
|
+
export declare const OrgChart: ComponentWithProps<OrgChartProps>;
|
|
3638
|
+
export declare const OtpInput: ComponentWithProps<OtpInputProps>;
|
|
2466
3639
|
export declare const PageHeader: ComponentWithProps<PageHeaderProps>;
|
|
2467
3640
|
export declare const Pagination: ComponentWithProps<PaginationProps>;
|
|
2468
3641
|
export declare const PhoneInput: ComponentWithProps<PhoneInputProps>;
|
|
@@ -2472,6 +3645,7 @@ export declare const Portal: ComponentWithProps<PortalProps>;
|
|
|
2472
3645
|
export declare const ProgressBar: ComponentWithProps<ProgressBarProps>;
|
|
2473
3646
|
export declare const Radio: ComponentWithProps<RadioProps>;
|
|
2474
3647
|
export declare const RadioGroup: ComponentWithProps<RadioGroupProps>;
|
|
3648
|
+
export declare const RichTextEditor: ComponentWithProps<RichTextEditorProps>;
|
|
2475
3649
|
export declare const SegmentedControl: ComponentWithProps<SegmentedControlProps>;
|
|
2476
3650
|
export declare const Select: ComponentWithProps<SelectProps>;
|
|
2477
3651
|
export declare const SidePanel: ComponentWithProps<SidePanelProps>;
|
|
@@ -2520,18 +3694,23 @@ declare module '@vue/runtime-core' {
|
|
|
2520
3694
|
Box: ComponentWithProps<BoxProps>;
|
|
2521
3695
|
Breadcrumb: ComponentWithProps<BreadcrumbProps>;
|
|
2522
3696
|
Button: ComponentWithProps<ButtonProps>;
|
|
3697
|
+
Calendar: ComponentWithProps<CalendarProps>;
|
|
2523
3698
|
Card: ComponentWithProps<CardProps>;
|
|
2524
3699
|
BarChart: ComponentWithProps<BarChartProps>;
|
|
2525
3700
|
DonutChart: ComponentWithProps<DonutChartProps>;
|
|
2526
3701
|
LineChart: ComponentWithProps<LineChartProps>;
|
|
2527
3702
|
Checkbox: ComponentWithProps<CheckboxProps>;
|
|
2528
3703
|
Chips: ComponentWithProps<ChipsProps>;
|
|
3704
|
+
Coachmark: ComponentWithProps<CoachmarkProps>;
|
|
3705
|
+
CodeBlock: ComponentWithProps<CodeBlockProps>;
|
|
3706
|
+
ColorPicker: ComponentWithProps<ColorPickerProps>;
|
|
2529
3707
|
Combobox: ComponentWithProps<ComboboxProps>;
|
|
2530
3708
|
ConfirmAIAction: ComponentWithProps<ConfirmAIActionProps>;
|
|
2531
3709
|
ConfirmDialog: ComponentWithProps<ConfirmDialogProps>;
|
|
2532
3710
|
Container: ComponentWithProps<ContainerProps>;
|
|
2533
3711
|
DataTable: ComponentWithProps<DataTableProps>;
|
|
2534
3712
|
DatePicker: ComponentWithProps<DatePickerProps>;
|
|
3713
|
+
DescriptionList: ComponentWithProps<DescriptionListProps>;
|
|
2535
3714
|
Divider: ComponentWithProps<DividerProps>;
|
|
2536
3715
|
Drawer: ComponentWithProps<DrawerProps>;
|
|
2537
3716
|
Dropdown: ComponentWithProps<DropdownProps>;
|
|
@@ -2539,14 +3718,20 @@ declare module '@vue/runtime-core' {
|
|
|
2539
3718
|
FileInput: ComponentWithProps<FileInputProps>;
|
|
2540
3719
|
Grid: ComponentWithProps<GridProps>;
|
|
2541
3720
|
Icon: ComponentWithProps<IconProps>;
|
|
3721
|
+
IconPicker: ComponentWithProps<IconPickerProps>;
|
|
2542
3722
|
Input: ComponentWithProps<InputProps>;
|
|
2543
3723
|
Kanban: ComponentWithProps<KanbanProps>;
|
|
2544
3724
|
KanbanCard: ComponentWithProps<KanbanCardProps>;
|
|
2545
3725
|
KanbanColumn: ComponentWithProps<KanbanColumnProps>;
|
|
3726
|
+
Kbd: ComponentWithProps<KbdProps>;
|
|
2546
3727
|
Link: ComponentWithProps<LinkProps>;
|
|
3728
|
+
List: ComponentWithProps<ListProps>;
|
|
3729
|
+
ListItem: ComponentWithProps<ListItemProps>;
|
|
2547
3730
|
Logo: ComponentWithProps<LogoProps>;
|
|
2548
3731
|
Modal: ComponentWithProps<ModalProps>;
|
|
2549
3732
|
MultiSelect: ComponentWithProps<MultiSelectProps>;
|
|
3733
|
+
OrgChart: ComponentWithProps<OrgChartProps>;
|
|
3734
|
+
OtpInput: ComponentWithProps<OtpInputProps>;
|
|
2550
3735
|
PageHeader: ComponentWithProps<PageHeaderProps>;
|
|
2551
3736
|
Pagination: ComponentWithProps<PaginationProps>;
|
|
2552
3737
|
PhoneInput: ComponentWithProps<PhoneInputProps>;
|
|
@@ -2556,6 +3741,7 @@ declare module '@vue/runtime-core' {
|
|
|
2556
3741
|
ProgressBar: ComponentWithProps<ProgressBarProps>;
|
|
2557
3742
|
Radio: ComponentWithProps<RadioProps>;
|
|
2558
3743
|
RadioGroup: ComponentWithProps<RadioGroupProps>;
|
|
3744
|
+
RichTextEditor: ComponentWithProps<RichTextEditorProps>;
|
|
2559
3745
|
SegmentedControl: ComponentWithProps<SegmentedControlProps>;
|
|
2560
3746
|
Select: ComponentWithProps<SelectProps>;
|
|
2561
3747
|
SidePanel: ComponentWithProps<SidePanelProps>;
|