@giro-ds/react 9.1.0 → 10.0.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 +185 -89
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +35 -28
- package/dist/index.esm.js +185 -90
- package/dist/index.esm.js.map +1 -1
- package/dist/styles.css +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -294,6 +294,27 @@ interface CalloutProps extends Omit<BaseProps, 'disabled'>, Omit<React$1.HTMLAtt
|
|
|
294
294
|
|
|
295
295
|
declare const Callout: React__default.FC<CalloutProps>;
|
|
296
296
|
|
|
297
|
+
/**
|
|
298
|
+
* Props do componente Card
|
|
299
|
+
* @example
|
|
300
|
+
* ```tsx
|
|
301
|
+
* <Card>
|
|
302
|
+
* <h1>Conteúdo da página</h1>
|
|
303
|
+
* <p>Texto dentro do card</p>
|
|
304
|
+
* </Card>
|
|
305
|
+
* ```
|
|
306
|
+
*/
|
|
307
|
+
interface CardProps {
|
|
308
|
+
/** Conteúdo a ser renderizado dentro do card */
|
|
309
|
+
children: React__default.ReactNode;
|
|
310
|
+
/** Classe CSS customizada aplicada ao elemento raiz do card */
|
|
311
|
+
className?: string;
|
|
312
|
+
/** Define se o card é interativo, aplicando estilos de hover e cursor pointer */
|
|
313
|
+
hoverable?: boolean;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
declare function Card({ children, className, hoverable }: CardProps): react_jsx_runtime.JSX.Element;
|
|
317
|
+
|
|
297
318
|
/**
|
|
298
319
|
* Props do componente Checkbox
|
|
299
320
|
* @example
|
|
@@ -1113,12 +1134,8 @@ interface SearchProps extends BaseProps, NativeInputProps {
|
|
|
1113
1134
|
'data-testid'?: string;
|
|
1114
1135
|
/** Classe CSS opcional */
|
|
1115
1136
|
className?: string;
|
|
1116
|
-
/**
|
|
1117
|
-
virtualKeyboard?:
|
|
1118
|
-
/** Variante do teclado virtual (padrão: 'default') */
|
|
1119
|
-
virtualKeyboardType?: VirtualKeyboardType;
|
|
1120
|
-
/** Comprimento máximo permitido pelo teclado virtual */
|
|
1121
|
-
virtualKeyboardMaxLength?: number;
|
|
1137
|
+
/** Tipo do teclado virtual (padrão: undefined = desabilitado) */
|
|
1138
|
+
virtualKeyboard?: VirtualKeyboardType;
|
|
1122
1139
|
/** Escala visual aplicada ao componente */
|
|
1123
1140
|
scale?: Scale;
|
|
1124
1141
|
}
|
|
@@ -1461,11 +1478,7 @@ interface TableV2HeaderProps {
|
|
|
1461
1478
|
/** Items de filtro (Status, Data de início, etc.) */
|
|
1462
1479
|
filterItems?: FilterItem[];
|
|
1463
1480
|
/** Habilita o teclado virtual */
|
|
1464
|
-
virtualKeyboard?:
|
|
1465
|
-
/** Tipo do teclado virtual (padrão: 'default') */
|
|
1466
|
-
virtualKeyboardType?: VirtualKeyboardType;
|
|
1467
|
-
/** Comprimento máximo permitido pelo teclado virtual */
|
|
1468
|
-
virtualKeyboardMaxLength?: number;
|
|
1481
|
+
virtualKeyboard?: VirtualKeyboardType;
|
|
1469
1482
|
/** Modo de busca: 'instant' chama onSearchChange a cada tecla; 'on-enter' chama apenas ao pressionar Enter (padrão) */
|
|
1470
1483
|
searchMode?: 'instant' | 'on-enter';
|
|
1471
1484
|
/**
|
|
@@ -1672,12 +1685,8 @@ interface TextAreaProps extends Omit<React__default.TextareaHTMLAttributes<HTMLT
|
|
|
1672
1685
|
height?: number;
|
|
1673
1686
|
/** Classe CSS opcional */
|
|
1674
1687
|
className?: string;
|
|
1675
|
-
/**
|
|
1676
|
-
virtualKeyboard?:
|
|
1677
|
-
/** Tipo do teclado virtual (padrão: 'default') */
|
|
1678
|
-
virtualKeyboardType?: VirtualKeyboardType;
|
|
1679
|
-
/** Comprimento máximo permitido pelo teclado virtual */
|
|
1680
|
-
virtualKeyboardMaxLength?: number;
|
|
1688
|
+
/** Tipo do teclado virtual (padrão: undefined = desabilitado) */
|
|
1689
|
+
virtualKeyboard?: VirtualKeyboardType;
|
|
1681
1690
|
}
|
|
1682
1691
|
|
|
1683
1692
|
declare const _default$1: React__default.NamedExoticComponent<TextAreaProps & React__default.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1726,9 +1735,9 @@ interface TextFieldProps extends Omit<React__default.InputHTMLAttributes<HTMLInp
|
|
|
1726
1735
|
/** Texto do tooltip */
|
|
1727
1736
|
tooltipText?: string;
|
|
1728
1737
|
/** Lado onde o tooltip aparece */
|
|
1729
|
-
|
|
1738
|
+
tooltipSide?: Side;
|
|
1730
1739
|
/** Alinhamento do tooltip */
|
|
1731
|
-
|
|
1740
|
+
tooltipAlign?: Align;
|
|
1732
1741
|
/**
|
|
1733
1742
|
* Mensagem de erro exibida no campo.
|
|
1734
1743
|
* Usada tanto pela validação interna (required, formato, etc.)
|
|
@@ -1743,16 +1752,14 @@ interface TextFieldProps extends Omit<React__default.InputHTMLAttributes<HTMLInp
|
|
|
1743
1752
|
persistIcon?: boolean;
|
|
1744
1753
|
/** Classe CSS opcional */
|
|
1745
1754
|
className?: string;
|
|
1746
|
-
/**
|
|
1747
|
-
virtualKeyboard?:
|
|
1748
|
-
/**
|
|
1749
|
-
virtualKeyboardType?: VirtualKeyboardType;
|
|
1750
|
-
/** Comprimento máximo permitido pelo teclado virtual */
|
|
1751
|
-
virtualKeyboardMaxLength?: number;
|
|
1752
|
-
/** Aplica variação visual para uso acoplado ao VirtualKeyboard no modo fixed */
|
|
1755
|
+
/** Tipo do teclado virtual (padrão: undefined = desabilitado) */
|
|
1756
|
+
virtualKeyboard?: VirtualKeyboardType;
|
|
1757
|
+
/** Aplica variação visual para uso acoplado ao VirtualKeyboard no modo fixed, essa prop é de uso exclusivo do VirtualKeyboard no modo fixed */
|
|
1753
1758
|
attachedToVirtualKeyboard?: boolean;
|
|
1754
1759
|
/** Escala visual aplicada ao componente */
|
|
1755
1760
|
scale?: Scale;
|
|
1761
|
+
/** Desabilita o autocomplete nativo do browser (padrão: false) */
|
|
1762
|
+
disableAutoComplete?: boolean;
|
|
1756
1763
|
}
|
|
1757
1764
|
|
|
1758
1765
|
declare const _default: React__default.NamedExoticComponent<TextFieldProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
@@ -2177,5 +2184,5 @@ declare function useInfiniteScroll({ status, page, lastPage, onLoadMore, thresho
|
|
|
2177
2184
|
|
|
2178
2185
|
declare const normalizeText: (text: React.ReactNode) => string;
|
|
2179
2186
|
|
|
2180
|
-
export { Avatar, Badge, Button, Calendar, Callout, Checkbox, MemoizedChips as Chips, Container, _default$2 as DatePicker, Dialog, Drawer, Filter, ListItem, Menu, Modal, Popover, memorizedQuantity as Quantity, Radio, Search, Select, Switch, Table, TableHeader, TablePagination, TableV2, _default$1 as TextArea, _default as TextField, Toast, ToastContainer, ToastProvider, Tooltip, VerificationCode, VirtualKeyboard, normalizeText, useApiSimulation, useInfiniteScroll, useToast };
|
|
2181
|
-
export type { AvatarProps, BadgeProps, ButtonProps, CalendarProps, CalloutProps, CheckboxProps, ChipsProps, ContainerProps, DatePickerProps, DialogProps, DrawerProps, FilterItem$1 as FilterItem, FilterProps, ListItemProps, MenuProps, ModalProps, PopoverProps, QuantityProps, RadioGroupProps, RadioProps, SearchProps, SelectProps, SwitchProps, TableHeaderProps, TablePaginationProps, TableProps, TableV2FooterProps, TableV2HeaderProps, TableV2Props, TextAreaProps, TextFieldProps, ToastProps, TooltipProps, VerificationCodeProps, VirtualKeyboardProps, VirtualKeyboardVariant };
|
|
2187
|
+
export { Avatar, Badge, Button, Calendar, Callout, Card, Checkbox, MemoizedChips as Chips, Container, _default$2 as DatePicker, Dialog, Drawer, Filter, ListItem, Menu, Modal, Popover, memorizedQuantity as Quantity, Radio, Search, Select, Switch, Table, TableHeader, TablePagination, TableV2, _default$1 as TextArea, _default as TextField, Toast, ToastContainer, ToastProvider, Tooltip, VerificationCode, VirtualKeyboard, normalizeText, useApiSimulation, useInfiniteScroll, useToast };
|
|
2188
|
+
export type { AvatarProps, BadgeProps, ButtonProps, CalendarProps, CalloutProps, CardProps, CheckboxProps, ChipsProps, ContainerProps, DatePickerProps, DialogProps, DrawerProps, FilterItem$1 as FilterItem, FilterProps, ListItemProps, MenuProps, ModalProps, PopoverProps, QuantityProps, RadioGroupProps, RadioProps, SearchProps, SelectProps, SwitchProps, TableHeaderProps, TablePaginationProps, TableProps, TableV2FooterProps, TableV2HeaderProps, TableV2Props, TextAreaProps, TextFieldProps, ToastProps, TooltipProps, VerificationCodeProps, VirtualKeyboardProps, VirtualKeyboardVariant };
|