@vector-business-services/cristal-ds-web 0.16.0 → 0.18.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/dist/index.cjs +768 -128
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +514 -117
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +219 -52
- package/dist/index.d.ts +219 -52
- package/dist/index.js +764 -130
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { HTMLAttributes, ReactNode, InputHTMLAttributes, ButtonHTMLAttributes, CSSProperties,
|
|
2
|
+
import { HTMLAttributes, ReactNode, InputHTMLAttributes, ButtonHTMLAttributes, CSSProperties, SyntheticEvent, RefObject, MouseEvent, Ref, ReactElement } from 'react';
|
|
3
3
|
import { AutoCompleteProps as AutoCompleteProps$1 } from 'primereact/autocomplete';
|
|
4
4
|
import { CheckboxChangeEvent } from 'primereact/checkbox';
|
|
5
5
|
import { ChipRemoveEvent } from 'primereact/chip';
|
|
6
6
|
import { MenuItemCommandEvent } from 'primereact/menuitem';
|
|
7
7
|
import { RadioButtonChangeEvent } from 'primereact/radiobutton';
|
|
8
8
|
import { InputSwitchChangeEvent } from 'primereact/inputswitch';
|
|
9
|
+
import { DataTableValue, DataTableProps, DataTableSelectionSingleChangeEvent, DataTableSelectionMultipleChangeEvent, DataTable } from 'primereact/datatable';
|
|
10
|
+
import { ColumnProps as ColumnProps$1 } from 'primereact/column';
|
|
9
11
|
import { ToastProps as ToastProps$1 } from 'primereact/toast';
|
|
10
12
|
|
|
11
13
|
/** Um item (.Accordion Item no Figma) e o conteúdo dele. */
|
|
@@ -62,7 +64,7 @@ declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttri
|
|
|
62
64
|
|
|
63
65
|
type AutoCompleteVariant = InputVariant;
|
|
64
66
|
type AutoCompleteSize = InputSize;
|
|
65
|
-
interface AutoCompleteProps extends Omit<AutoCompleteProps$1, 'size' | 'variant' | 'invalid' | 'multiple' | 'selectionLimit' | 'selectedItemTemplate' | 'removeTokenIcon' | '
|
|
67
|
+
interface AutoCompleteProps extends Omit<AutoCompleteProps$1, 'size' | 'variant' | 'invalid' | 'multiple' | 'selectionLimit' | 'selectedItemTemplate' | 'removeTokenIcon' | 'dropdownIcon' | 'showEmptyMessage' | 'emptyMessage' | 'loadingIcon' | 'inputClassName' | 'panelClassName' | 'scrollHeight' | 'inputRef' | 'pt' | 'ptOptions' | 'unstyled' | 'children'> {
|
|
66
68
|
/** Type no Figma: Outline (com borda) e Filled (com fundo). */
|
|
67
69
|
variant?: AutoCompleteVariant;
|
|
68
70
|
/** Size no Figma: 32, 36, 42 e 48px de altura do campo. */
|
|
@@ -73,6 +75,14 @@ interface AutoCompleteProps extends Omit<AutoCompleteProps$1, 'size' | 'variant'
|
|
|
73
75
|
hint?: string;
|
|
74
76
|
/** Mensagem de erro: deixa o campo no estado Error e mostra a dica de erro no lugar da dica. */
|
|
75
77
|
error?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Seta à direita do campo (o botão de dropdown do Prime): abre a lista sem digitar, com todas as
|
|
80
|
+
* sugestões (`dropdownMode="blank"`, o padrão) ou filtrando pelo texto (`"current"`).
|
|
81
|
+
* Padrão: false, como no Figma.
|
|
82
|
+
*/
|
|
83
|
+
dropdown?: boolean;
|
|
84
|
+
/** Nome da seta para o leitor de tela. Padrão: "Mostrar opções". */
|
|
85
|
+
dropdownAriaLabel?: string;
|
|
76
86
|
}
|
|
77
87
|
declare const AutoComplete: react.ForwardRefExoticComponent<AutoCompleteProps & react.RefAttributes<HTMLInputElement>>;
|
|
78
88
|
|
|
@@ -200,8 +210,8 @@ type ChipVariant = 'default' | 'success' | 'danger' | 'warning' | 'info' | 'high
|
|
|
200
210
|
/** Size no Figma: small = 24px, medium = 28px, large = 32px, x-large = 36px de altura. */
|
|
201
211
|
type ChipSize = 'small' | 'medium' | 'large' | 'x-large';
|
|
202
212
|
interface ChipProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
203
|
-
/** Texto do chip (Label no Figma). */
|
|
204
|
-
label:
|
|
213
|
+
/** Texto do chip (Label no Figma). Aceita marcação, como o rótulo e o valor do filtro da Table. */
|
|
214
|
+
label: ReactNode;
|
|
205
215
|
variant?: ChipVariant;
|
|
206
216
|
size?: ChipSize;
|
|
207
217
|
/** Ícone antes do texto (Leading Icon no Figma). Use um ícone de `@vector-business-services/cristal-ds-web/icons`. */
|
|
@@ -219,6 +229,80 @@ interface ChipProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
|
219
229
|
}
|
|
220
230
|
declare const Chip: react.ForwardRefExoticComponent<ChipProps & react.RefAttributes<HTMLDivElement>>;
|
|
221
231
|
|
|
232
|
+
/** Density no Figma: Normal (itens de 37px) e Compacted (29px). */
|
|
233
|
+
type MenuDensity = 'normal' | 'compact';
|
|
234
|
+
/** Um item da lista (.Dropdown Item no Figma). */
|
|
235
|
+
interface MenuItem {
|
|
236
|
+
label: string;
|
|
237
|
+
/** Ícone à esquerda (Leading Icon no Figma). Use um ícone de `@vector-business-services/cristal-ds-web/icons`. */
|
|
238
|
+
icon?: ReactNode;
|
|
239
|
+
/** Estado Selected do Figma: texto e ícone em brand, fundo selected/subtlest. */
|
|
240
|
+
selected?: boolean;
|
|
241
|
+
disabled?: boolean;
|
|
242
|
+
/** Ação do item; o menu popup fecha depois dela. */
|
|
243
|
+
command?: (event: MenuItemCommandEvent) => void;
|
|
244
|
+
/** Link do item; sem ele o clique não navega. */
|
|
245
|
+
url?: string;
|
|
246
|
+
target?: string;
|
|
247
|
+
id?: string;
|
|
248
|
+
className?: string;
|
|
249
|
+
}
|
|
250
|
+
interface MenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
251
|
+
model: MenuItem[];
|
|
252
|
+
density?: MenuDensity;
|
|
253
|
+
/** Abre sobre a tela, posicionado no elemento que chamou `toggle`/`show` pela ref. */
|
|
254
|
+
popup?: boolean;
|
|
255
|
+
/** Alinhamento do popup com o elemento que o abriu. */
|
|
256
|
+
popupAlignment?: 'left' | 'right';
|
|
257
|
+
/** Estado Loading do Figma: troca os itens pelo indicador de carregamento. */
|
|
258
|
+
loading?: boolean;
|
|
259
|
+
/** O que o leitor de tela anuncia no carregamento. */
|
|
260
|
+
loadingLabel?: string;
|
|
261
|
+
'aria-label'?: string;
|
|
262
|
+
'aria-labelledby'?: string;
|
|
263
|
+
onShow?: (event: SyntheticEvent) => void;
|
|
264
|
+
onHide?: (event: SyntheticEvent) => void;
|
|
265
|
+
id?: string;
|
|
266
|
+
className?: string;
|
|
267
|
+
}
|
|
268
|
+
/** Controle do menu popup, pela ref. */
|
|
269
|
+
interface MenuHandle {
|
|
270
|
+
toggle: (event: SyntheticEvent) => void;
|
|
271
|
+
show: (event: SyntheticEvent) => void;
|
|
272
|
+
hide: (event: SyntheticEvent) => void;
|
|
273
|
+
/** O <div> raiz do menu (só existe com o popup aberto). */
|
|
274
|
+
getElement: () => HTMLDivElement | null;
|
|
275
|
+
}
|
|
276
|
+
declare const Menu: react.ForwardRefExoticComponent<MenuProps & react.RefAttributes<MenuHandle>>;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Um item do menu de contexto: o mesmo do Menu, sem o Selected (o Context Menu do Prime não diz
|
|
280
|
+
* ao item qual está selecionado, então o estado não seria anunciado).
|
|
281
|
+
*/
|
|
282
|
+
type ContextMenuItem = Omit<MenuItem, 'selected'>;
|
|
283
|
+
interface ContextMenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
284
|
+
model: ContextMenuItem[];
|
|
285
|
+
/** Density no Figma: Normal (itens de 37px) e Compacted (29px). Padrão: normal. */
|
|
286
|
+
density?: MenuDensity;
|
|
287
|
+
/** Abre com o botão direito em qualquer lugar da página, sem precisar chamar `show`. */
|
|
288
|
+
global?: boolean;
|
|
289
|
+
'aria-label'?: string;
|
|
290
|
+
'aria-labelledby'?: string;
|
|
291
|
+
onShow?: (event: SyntheticEvent) => void;
|
|
292
|
+
onHide?: (event: SyntheticEvent) => void;
|
|
293
|
+
id?: string;
|
|
294
|
+
className?: string;
|
|
295
|
+
}
|
|
296
|
+
/** Controle do menu de contexto, pela ref. */
|
|
297
|
+
interface ContextMenuHandle {
|
|
298
|
+
/** Abre no ponto do evento (o do botão direito, normalmente o onContextMenu). */
|
|
299
|
+
show: (event: SyntheticEvent) => void;
|
|
300
|
+
hide: (event: SyntheticEvent) => void;
|
|
301
|
+
/** O <div> raiz do menu (só existe com ele aberto). */
|
|
302
|
+
getElement: () => HTMLDivElement | null;
|
|
303
|
+
}
|
|
304
|
+
declare const ContextMenu: react.ForwardRefExoticComponent<ContextMenuProps & react.RefAttributes<ContextMenuHandle>>;
|
|
305
|
+
|
|
222
306
|
/** Horizontal Divider e Vertical Divider no Figma. */
|
|
223
307
|
type DividerOrientation = 'horizontal' | 'vertical';
|
|
224
308
|
/** Style no Figma: Solid (Default no vertical) e Dashed. */
|
|
@@ -327,52 +411,6 @@ interface IconButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>,
|
|
|
327
411
|
}
|
|
328
412
|
declare const IconButton: react.ForwardRefExoticComponent<IconButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
329
413
|
|
|
330
|
-
/** Density no Figma: Normal (itens de 37px) e Compacted (29px). */
|
|
331
|
-
type MenuDensity = 'normal' | 'compact';
|
|
332
|
-
/** Um item da lista (.Dropdown Item no Figma). */
|
|
333
|
-
interface MenuItem {
|
|
334
|
-
label: string;
|
|
335
|
-
/** Ícone à esquerda (Leading Icon no Figma). Use um ícone de `@vector-business-services/cristal-ds-web/icons`. */
|
|
336
|
-
icon?: ReactNode;
|
|
337
|
-
/** Estado Selected do Figma: texto e ícone em brand, fundo selected/subtlest. */
|
|
338
|
-
selected?: boolean;
|
|
339
|
-
disabled?: boolean;
|
|
340
|
-
/** Ação do item; o menu popup fecha depois dela. */
|
|
341
|
-
command?: (event: MenuItemCommandEvent) => void;
|
|
342
|
-
/** Link do item; sem ele o clique não navega. */
|
|
343
|
-
url?: string;
|
|
344
|
-
target?: string;
|
|
345
|
-
id?: string;
|
|
346
|
-
className?: string;
|
|
347
|
-
}
|
|
348
|
-
interface MenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
349
|
-
model: MenuItem[];
|
|
350
|
-
density?: MenuDensity;
|
|
351
|
-
/** Abre sobre a tela, posicionado no elemento que chamou `toggle`/`show` pela ref. */
|
|
352
|
-
popup?: boolean;
|
|
353
|
-
/** Alinhamento do popup com o elemento que o abriu. */
|
|
354
|
-
popupAlignment?: 'left' | 'right';
|
|
355
|
-
/** Estado Loading do Figma: troca os itens pelo indicador de carregamento. */
|
|
356
|
-
loading?: boolean;
|
|
357
|
-
/** O que o leitor de tela anuncia no carregamento. */
|
|
358
|
-
loadingLabel?: string;
|
|
359
|
-
'aria-label'?: string;
|
|
360
|
-
'aria-labelledby'?: string;
|
|
361
|
-
onShow?: (event: SyntheticEvent) => void;
|
|
362
|
-
onHide?: (event: SyntheticEvent) => void;
|
|
363
|
-
id?: string;
|
|
364
|
-
className?: string;
|
|
365
|
-
}
|
|
366
|
-
/** Controle do menu popup, pela ref. */
|
|
367
|
-
interface MenuHandle {
|
|
368
|
-
toggle: (event: SyntheticEvent) => void;
|
|
369
|
-
show: (event: SyntheticEvent) => void;
|
|
370
|
-
hide: (event: SyntheticEvent) => void;
|
|
371
|
-
/** O <div> raiz do menu (só existe com o popup aberto). */
|
|
372
|
-
getElement: () => HTMLDivElement | null;
|
|
373
|
-
}
|
|
374
|
-
declare const Menu: react.ForwardRefExoticComponent<MenuProps & react.RefAttributes<MenuHandle>>;
|
|
375
|
-
|
|
376
414
|
/** Um botão de ferramenta (.Menubar Tools Button no Figma). */
|
|
377
415
|
interface MenubarTool {
|
|
378
416
|
/** Nome do botão: vira o aria-label e o texto do tooltip. */
|
|
@@ -763,6 +801,22 @@ interface SelectProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' |
|
|
|
763
801
|
}
|
|
764
802
|
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLInputElement>>;
|
|
765
803
|
|
|
804
|
+
/** Formato do bloco. */
|
|
805
|
+
type SkeletonShape = 'rectangle' | 'circle';
|
|
806
|
+
interface SkeletonProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
807
|
+
/** Padrão: rectangle. */
|
|
808
|
+
shape?: SkeletonShape;
|
|
809
|
+
/** Largura (CSS). Padrão: 100%. */
|
|
810
|
+
width?: string;
|
|
811
|
+
/** Altura (CSS). Padrão: 16px. */
|
|
812
|
+
height?: string;
|
|
813
|
+
/** Largura e altura iguais (para o círculo ou um quadrado). */
|
|
814
|
+
size?: string;
|
|
815
|
+
/** Brilho que passa pelo bloco. Padrão: true (parado com prefers-reduced-motion). */
|
|
816
|
+
animated?: boolean;
|
|
817
|
+
}
|
|
818
|
+
declare const Skeleton: react.ForwardRefExoticComponent<SkeletonProps & react.RefAttributes<HTMLDivElement>>;
|
|
819
|
+
|
|
766
820
|
/** Size no Figma: Medium (48x28) e Small (32x20). */
|
|
767
821
|
type SwitchSize = 'medium' | 'small';
|
|
768
822
|
/** Label Position no Figma: lado do rótulo em relação ao switch. */
|
|
@@ -814,6 +868,119 @@ interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
|
814
868
|
}
|
|
815
869
|
declare const Tabs: react.ForwardRefExoticComponent<TabsProps & react.RefAttributes<HTMLDivElement>>;
|
|
816
870
|
|
|
871
|
+
/**
|
|
872
|
+
* Props da Column do PrimeReact (filtros, edição, `body`, `sortable`, `frozen`, `align`, `style`...),
|
|
873
|
+
* mais a ajuda do Figma. O visual (pt e unstyled) é do Cristal.
|
|
874
|
+
*/
|
|
875
|
+
interface ColumnProps extends Omit<ColumnProps$1, 'pt' | 'ptOptions' | 'unstyled'> {
|
|
876
|
+
/** Texto do tooltip no ícone de ajuda antes do título (Show Help no Figma). */
|
|
877
|
+
help?: ReactNode;
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* Uma coluna da Table. Não desenha nada sozinha: a Table lê as props de cada `<Column>` e monta a
|
|
881
|
+
* Column do Prime com o visual do Cristal.
|
|
882
|
+
*/
|
|
883
|
+
declare function Column(_props: ColumnProps): null;
|
|
884
|
+
type PrimeTableProps<T extends DataTableValue> = Omit<DataTableProps<T[]>, 'pt' | 'ptOptions' | 'unstyled' | 'value' | 'children' | 'selection' | 'selectionMode' | 'onSelectionChange' | 'cellSelection' | 'onContextMenuSelectionChange'>;
|
|
885
|
+
/** Props do DataTable do PrimeReact, mais o que o Cristal acrescenta. */
|
|
886
|
+
interface TableProps<T extends DataTableValue> extends PrimeTableProps<T> {
|
|
887
|
+
/** Linhas da tabela. */
|
|
888
|
+
value: T[];
|
|
889
|
+
/** As colunas (`<Column>`). */
|
|
890
|
+
children: ReactNode;
|
|
891
|
+
/**
|
|
892
|
+
* Como no Prime. Com uma `<Column selectionMode="multiple" />` e sem este, o Cristal usa
|
|
893
|
+
* `checkbox`: só a caixa seleciona (o clique na linha, não).
|
|
894
|
+
*/
|
|
895
|
+
selectionMode?: 'single' | 'radiobutton' | 'multiple' | 'checkbox' | null;
|
|
896
|
+
selection?: T | T[] | null;
|
|
897
|
+
onSelectionChange?: (event: DataTableSelectionSingleChangeEvent<T[]> | DataTableSelectionMultipleChangeEvent<T[]>) => void;
|
|
898
|
+
/** Texto do rodapé. Padrão: "Mostrando 10 de 123 registros". */
|
|
899
|
+
report?: (info: {
|
|
900
|
+
shown: number;
|
|
901
|
+
totalRecords: number;
|
|
902
|
+
}) => ReactNode;
|
|
903
|
+
/** Nome do Select de itens por página para o leitor de tela. Padrão: "Itens por página". */
|
|
904
|
+
rowsPerPageLabel?: string;
|
|
905
|
+
/**
|
|
906
|
+
* Menu de contexto do cabeçalho (a Dropdown List do Figma): o botão direito numa coluna abre
|
|
907
|
+
* Fixar coluna, Ajustar ao conteúdo e, nas ordenáveis, Ordenar ascendente e descendente.
|
|
908
|
+
* Padrão: true.
|
|
909
|
+
*/
|
|
910
|
+
columnMenu?: boolean;
|
|
911
|
+
}
|
|
912
|
+
/** A ref da Table é a do DataTable do Prime: `getElement()`, `exportCSV()`, `reset()`... */
|
|
913
|
+
type TableHandle<T extends DataTableValue = DataTableValue> = DataTable<T[]>;
|
|
914
|
+
/** Table do Figma "Cristal - Core Components | Web", sobre o DataTable do PrimeReact. */
|
|
915
|
+
declare const Table: <T extends DataTableValue>(props: TableProps<T> & {
|
|
916
|
+
ref?: Ref<TableHandle<T>>;
|
|
917
|
+
}) => ReactElement;
|
|
918
|
+
|
|
919
|
+
/** Um botão da Topbar (os Buttons à direita no Figma). */
|
|
920
|
+
interface TableToolbarAction {
|
|
921
|
+
label: string;
|
|
922
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
923
|
+
/** primary: o botão principal (fica visível até 768px); tertiary: os demais. Padrão: tertiary. */
|
|
924
|
+
variant?: 'primary' | 'tertiary';
|
|
925
|
+
icon?: ReactNode;
|
|
926
|
+
disabled?: boolean;
|
|
927
|
+
}
|
|
928
|
+
/** Um filtro aplicado (Chip da .Filter bar no Figma). */
|
|
929
|
+
interface TableFilter {
|
|
930
|
+
/** Nome do filtro, como "Status do lote". */
|
|
931
|
+
label: string;
|
|
932
|
+
/** Valor escolhido, como "Divulgação". */
|
|
933
|
+
value: string;
|
|
934
|
+
onRemove?: () => void;
|
|
935
|
+
}
|
|
936
|
+
interface TableToolbarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
937
|
+
/** Texto da busca (controlado). Com ele ou com onSearchChange, a busca aparece. */
|
|
938
|
+
searchValue?: string;
|
|
939
|
+
onSearchChange?: (value: string) => void;
|
|
940
|
+
/** Padrão: "Procurar por". */
|
|
941
|
+
searchPlaceholder?: string;
|
|
942
|
+
/** Nome do campo de busca para o leitor de tela. Padrão: "Procurar". */
|
|
943
|
+
searchLabel?: string;
|
|
944
|
+
/** Clique no Filtrar. Sem ele, o botão não aparece. */
|
|
945
|
+
onFilter?: (event: MouseEvent<HTMLElement>) => void;
|
|
946
|
+
/** Padrão: "Filtrar". */
|
|
947
|
+
filterLabel?: string;
|
|
948
|
+
/** Filtros aplicados: viram os chips da .Filter bar e o Badge do Filtrar. */
|
|
949
|
+
filters?: TableFilter[];
|
|
950
|
+
/** Limpar todos os filtros (a lixeira da .Filter bar). */
|
|
951
|
+
onClearFilters?: () => void;
|
|
952
|
+
/** Padrão: "Limpar filtros". */
|
|
953
|
+
clearFiltersLabel?: string;
|
|
954
|
+
/** Botões à direita. */
|
|
955
|
+
actions?: TableToolbarAction[];
|
|
956
|
+
/** Nome do botão que abre o menu com os botões que não cabem. Padrão: "Mais ações". */
|
|
957
|
+
moreActionsLabel?: string;
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* Topbar da Table (.Table Topbar no Figma): busca, Filtrar, botões e, com filtros aplicados, a
|
|
961
|
+
* .Filter bar. Vai no `toolbar` da Table.
|
|
962
|
+
*/
|
|
963
|
+
declare const TableToolbar: react.ForwardRefExoticComponent<TableToolbarProps & react.RefAttributes<HTMLDivElement>>;
|
|
964
|
+
|
|
965
|
+
interface TableRowActionsProps {
|
|
966
|
+
/** Itens do menu (os do Menu do Cristal). Cada `command` já sabe de que linha é. */
|
|
967
|
+
model: MenuItem[];
|
|
968
|
+
/** Nome do botão, com a linha: por exemplo "Ações do lote M000000374". */
|
|
969
|
+
'aria-label': string;
|
|
970
|
+
/** Padrão: a engrenagem (GearSix) do Type=Actions no Figma. */
|
|
971
|
+
icon?: ReactNode;
|
|
972
|
+
/** Tooltip do botão. Padrão: "Ações". */
|
|
973
|
+
tooltip?: ReactNode;
|
|
974
|
+
/** Lado do menu em relação ao botão. Padrão: left. */
|
|
975
|
+
popupAlignment?: 'left' | 'right';
|
|
976
|
+
disabled?: boolean;
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* Ações da linha (Type=Actions do .Table Main Cell no Figma): a engrenagem abre o Menu do Cristal
|
|
980
|
+
* com as ações daquela linha. Vai no `body` de uma `<Column align="center">`.
|
|
981
|
+
*/
|
|
982
|
+
declare function TableRowActions({ model, 'aria-label': label, icon, tooltip, popupAlignment, disabled, }: TableRowActionsProps): react.JSX.Element;
|
|
983
|
+
|
|
817
984
|
/** Type no Figma. */
|
|
818
985
|
type TagVariant = 'default' | 'success' | 'warning' | 'danger' | 'info' | 'purple' | 'gray' | 'inverse' | 'outline';
|
|
819
986
|
/** Size no Figma: small = 24px, medium = 28px, large = 32px, x-large = 36px de altura. */
|
|
@@ -860,5 +1027,5 @@ interface ToastProps {
|
|
|
860
1027
|
}
|
|
861
1028
|
declare const Toast: react.ForwardRefExoticComponent<ToastProps & react.RefAttributes<ToastHandle>>;
|
|
862
1029
|
|
|
863
|
-
export { Accordion, AccordionTab, AutoComplete, Badge, Button, Card, Chart, Checkbox, Chip, Divider, Drawer, IconButton, Input, Menu, MenuPrincipal, Menubar, Message, Modal, MultiSelect, PageHeader, Paginator, Panel, Radio, ScrollPanel, SegmentControl, Select, Switch, TabPanel, Tabs, Tag, Toast, Tooltip };
|
|
864
|
-
export type { AccordionProps, AccordionTabProps, AutoCompleteProps, AutoCompleteSize, AutoCompleteVariant, BadgeProps, BadgeSize, BadgeVariant, ButtonProps, ButtonSize, ButtonVariant, CardPadding, CardProps, ChartAxis, ChartColor, ChartProps, ChartSeries, CheckboxLabelSize, CheckboxPosition, CheckboxProps, ChipProps, ChipSize, ChipVariant, DividerOrientation, DividerProps, DividerVariant, DrawerBehavior, DrawerHandle, DrawerProps, DrawerSide, DrawerSize, IconButtonProps, IconButtonSize, IconButtonVariant, InputProps, InputSize, InputVariant, MenuDensity, MenuHandle, MenuItem, MenuPrincipalEntry, MenuPrincipalGroup, MenuPrincipalHandle, MenuPrincipalItem, MenuPrincipalProps, MenuProps, MenubarProps, MenubarTool, MenubarUser, MessageProps, MessageType, ModalHandle, ModalProps, ModalSize, MultiSelectDensity, MultiSelectProps, MultiSelectSize, MultiSelectVariant, PageHeaderProps, PageHeaderTab, PageHeaderVariant, PaginatorPageChangeEvent, PaginatorProps, PanelProps, RadioLabelSize, RadioProps, ScrollPanelProps, SegmentControlOption, SegmentControlProps, SegmentControlVariant, SelectProps, SelectSize, SelectVariant, SwitchLabelPosition, SwitchProps, SwitchSize, TabPanelProps, TabsProps, TagProps, TagSize, TagVariant, ToastHandle, ToastMessage, ToastPosition, ToastProps, ToastType, TooltipPosition, TooltipProps, TooltipType };
|
|
1030
|
+
export { Accordion, AccordionTab, AutoComplete, Badge, Button, Card, Chart, Checkbox, Chip, Column, ContextMenu, Divider, Drawer, IconButton, Input, Menu, MenuPrincipal, Menubar, Message, Modal, MultiSelect, PageHeader, Paginator, Panel, Radio, ScrollPanel, SegmentControl, Select, Skeleton, Switch, TabPanel, Table, TableRowActions, TableToolbar, Tabs, Tag, Toast, Tooltip };
|
|
1031
|
+
export type { AccordionProps, AccordionTabProps, AutoCompleteProps, AutoCompleteSize, AutoCompleteVariant, BadgeProps, BadgeSize, BadgeVariant, ButtonProps, ButtonSize, ButtonVariant, CardPadding, CardProps, ChartAxis, ChartColor, ChartProps, ChartSeries, CheckboxLabelSize, CheckboxPosition, CheckboxProps, ChipProps, ChipSize, ChipVariant, ColumnProps, ContextMenuHandle, ContextMenuItem, ContextMenuProps, DividerOrientation, DividerProps, DividerVariant, DrawerBehavior, DrawerHandle, DrawerProps, DrawerSide, DrawerSize, IconButtonProps, IconButtonSize, IconButtonVariant, InputProps, InputSize, InputVariant, MenuDensity, MenuHandle, MenuItem, MenuPrincipalEntry, MenuPrincipalGroup, MenuPrincipalHandle, MenuPrincipalItem, MenuPrincipalProps, MenuProps, MenubarProps, MenubarTool, MenubarUser, MessageProps, MessageType, ModalHandle, ModalProps, ModalSize, MultiSelectDensity, MultiSelectProps, MultiSelectSize, MultiSelectVariant, PageHeaderProps, PageHeaderTab, PageHeaderVariant, PaginatorPageChangeEvent, PaginatorProps, PanelProps, RadioLabelSize, RadioProps, ScrollPanelProps, SegmentControlOption, SegmentControlProps, SegmentControlVariant, SelectProps, SelectSize, SelectVariant, SkeletonProps, SkeletonShape, SwitchLabelPosition, SwitchProps, SwitchSize, TabPanelProps, TableFilter, TableHandle, TableProps, TableRowActionsProps, TableToolbarAction, TableToolbarProps, TabsProps, TagProps, TagSize, TagVariant, ToastHandle, ToastMessage, ToastPosition, ToastProps, ToastType, TooltipPosition, TooltipProps, TooltipType };
|