@giro-ds/react 12.1.1 → 12.3.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 +195 -68
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +17 -10
- package/dist/index.esm.js +163 -69
- package/dist/index.esm.js.map +1 -1
- package/dist/styles.css +2 -2
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -900,6 +900,8 @@ interface ModalProps extends BaseProps {
|
|
|
900
900
|
children?: ReactNode;
|
|
901
901
|
/** Conteúdo customizado no cabeçalho, exibido ao lado do título */
|
|
902
902
|
headerContent?: ReactNode;
|
|
903
|
+
/** Define se o botão de fechar é exibido (padrão: true) */
|
|
904
|
+
closingButton?: boolean;
|
|
903
905
|
/** Define se o modal fecha ao clicar no overlay (padrão: true) */
|
|
904
906
|
closeOnOverlayClick?: boolean;
|
|
905
907
|
/** Conteúdo do rodapé do modal */
|
|
@@ -1109,6 +1111,8 @@ interface VirtualKeyboardProps extends Omit<BaseProps, 'disabled'> {
|
|
|
1109
1111
|
onChange?: (value: string) => void;
|
|
1110
1112
|
/** Callback executado quando uma tecla é pressionada: (key) => void */
|
|
1111
1113
|
onKeyPress?: (key: string) => void;
|
|
1114
|
+
/** Callback executado quando a tecla Enter é pressionada */
|
|
1115
|
+
onEnterPress?: () => void;
|
|
1112
1116
|
/**
|
|
1113
1117
|
* Callback executado sempre que o `type` do teclado muda.
|
|
1114
1118
|
* Útil para que o consumidor saiba o tipo atual e possa reagir à mudança
|
|
@@ -1137,6 +1141,13 @@ interface VirtualKeyboardProps extends Omit<BaseProps, 'disabled'> {
|
|
|
1137
1141
|
* @default true
|
|
1138
1142
|
*/
|
|
1139
1143
|
showTypeSwitchKey?: boolean;
|
|
1144
|
+
/**
|
|
1145
|
+
* Quando `true`, exibe o numpad numérico no formato de 4 colunas (estilo iOS nativo),
|
|
1146
|
+
* com as teclas `-`, `↵` `_`, `⌫` e `→|` (enter/submit).
|
|
1147
|
+
* Só tem efeito quando `type="numeric"` e `variant="native"`.
|
|
1148
|
+
* @default false
|
|
1149
|
+
*/
|
|
1150
|
+
numpadWithEnter?: boolean;
|
|
1140
1151
|
/** Texto de ajuda do TextField exibido no modo `fixed` */
|
|
1141
1152
|
helperText?: string;
|
|
1142
1153
|
/** Sinaliza erro no TextField exibido no modo `fixed` */
|
|
@@ -1325,6 +1336,8 @@ interface SelectPropsBase extends ScalableProps {
|
|
|
1325
1336
|
enableInfiniteScroll?: boolean;
|
|
1326
1337
|
/** Callback executado ao chegar ao final do scroll: () => void */
|
|
1327
1338
|
onScrollEnd?: () => void;
|
|
1339
|
+
/** Indica se há mais itens disponíveis para carregamento */
|
|
1340
|
+
hasMore?: boolean;
|
|
1328
1341
|
/** Estado de carregamento de mais itens */
|
|
1329
1342
|
isLoadingMore?: boolean;
|
|
1330
1343
|
/** Habilita busca via API */
|
|
@@ -1787,8 +1800,6 @@ interface TextFieldPropsBase extends ScalableProps, Omit<React__default.InputHTM
|
|
|
1787
1800
|
error?: boolean;
|
|
1788
1801
|
/** Ícone a ser exibido no campo */
|
|
1789
1802
|
icon?: React__default.ReactNode;
|
|
1790
|
-
/** Mantém o ícone visível mesmo quando o campo tem valor */
|
|
1791
|
-
persistIcon?: boolean;
|
|
1792
1803
|
/** Tipo do teclado virtual (padrão: undefined = desabilitado) */
|
|
1793
1804
|
virtualKeyboard?: VirtualKeyboardType;
|
|
1794
1805
|
/** Aplica variação visual para uso acoplado ao VirtualKeyboard no modo fixed, essa prop é de uso exclusivo do VirtualKeyboard no modo fixed */
|
|
@@ -2046,8 +2057,6 @@ declare const Switch: React$1.FC<SwitchProps>;
|
|
|
2046
2057
|
type ToggleButtonMode = 'simple' | 'combined';
|
|
2047
2058
|
/** Tipo de seleção do grupo: 'single' (um item) ou 'multiple' (múltiplos itens) */
|
|
2048
2059
|
type ToggleGroupType = 'single' | 'multiple';
|
|
2049
|
-
/** Orientação do grupo de toggles */
|
|
2050
|
-
type ToggleButtonOrientation = 'horizontal' | 'vertical';
|
|
2051
2060
|
interface BaseTooltipConfig {
|
|
2052
2061
|
tooltipSide?: 'top' | 'bottom' | 'left' | 'right';
|
|
2053
2062
|
tooltipAlign?: 'start' | 'center' | 'end';
|
|
@@ -2111,8 +2120,6 @@ type ToggleGroupMultipleSelectionProps = {
|
|
|
2111
2120
|
* - `selectionType="multiple"` → `onValueChange: (value: string[]) => void`
|
|
2112
2121
|
*/
|
|
2113
2122
|
type ToggleGroupProps = {
|
|
2114
|
-
/** Orientação do grupo: `'horizontal'` (padrão) ou `'vertical'` */
|
|
2115
|
-
orientation?: ToggleButtonOrientation;
|
|
2116
2123
|
/** Items do grupo de toggles */
|
|
2117
2124
|
items?: ToggleGroupItem[];
|
|
2118
2125
|
} & (ToggleGroupSingleSelectionProps | ToggleGroupMultipleSelectionProps);
|
|
@@ -2149,8 +2156,8 @@ type ToggleButtonProps = ScalableProps & {
|
|
|
2149
2156
|
icon?: ReactNode;
|
|
2150
2157
|
/** Exibe somente o ícone, sem texto (modo simple) */
|
|
2151
2158
|
iconOnly?: boolean;
|
|
2152
|
-
/**
|
|
2153
|
-
|
|
2159
|
+
/** Texto exibido no botão (modo simple) */
|
|
2160
|
+
label?: string;
|
|
2154
2161
|
/** Estado pressionado controlado (modo simple) */
|
|
2155
2162
|
pressed?: boolean;
|
|
2156
2163
|
/** Estado pressionado padrão não controlado (modo simple) */
|
|
@@ -2337,5 +2344,5 @@ declare function useInfiniteScroll({ status, page, lastPage, onLoadMore, thresho
|
|
|
2337
2344
|
|
|
2338
2345
|
declare const normalizeText: (text: React.ReactNode) => string;
|
|
2339
2346
|
|
|
2340
|
-
export { Avatar, Badge, Button, Calendar, Callout, Card, Checkbox, MemoizedChips as Chips, Container, _default$2 as DatePicker, Dialog, Drawer, FileUpload, Filter, ListItem, Menu, Modal, Popover, memorizedQuantity as Quantity, Radio, Search, Select, Switch, TableV2, _default$1 as TextArea, _default as TextField, Toast, ToastContainer, ToastProvider, ToggleButton, Tooltip, VerificationCode, VirtualKeyboard, normalizeText, useApiSimulation, useInfiniteScroll, useToast };
|
|
2341
|
-
export type { AvatarProps, BadgeProps, ButtonProps, CalendarProps, CalloutProps, CardProps, CheckboxProps, ChipsProps, ContainerProps, DatePickerProps, DialogProps, DrawerProps, FileUploadProps, FilterProps, ListItemProps, MenuProps, ModalProps, PopoverProps, QuantityProps, RadioGroupProps, RadioProps, SearchProps, SelectProps, SwitchProps, TableV2FooterProps, TableV2HeaderProps, TableV2Props, TextAreaProps, TextFieldProps, ToastProps, ToggleButtonMode,
|
|
2347
|
+
export { Avatar, Badge, Button, Calendar, Callout, Card, Checkbox, MemoizedChips as Chips, Container, _default$2 as DatePicker, Dialog, Drawer, FileUpload, Filter, Avatar as G_Avatar, Badge as G_Badge, Button as G_Button, Calendar as G_Calendar, Callout as G_Callout, Card as G_Card, Checkbox as G_Checkbox, MemoizedChips as G_Chips, Container as G_Container, _default$2 as G_DatePicker, Dialog as G_Dialog, Drawer as G_Drawer, FileUpload as G_FileUpload, Filter as G_Filter, ListItem as G_ListItem, Menu as G_Menu, Modal as G_Modal, Popover as G_Popover, memorizedQuantity as G_Quantity, Radio as G_Radio, Search as G_Search, Select as G_Select, Switch as G_Switch, TableV2 as G_TableV2, _default$1 as G_TextArea, _default as G_TextField, Toast as G_Toast, ToastContainer as G_ToastContainer, ToastProvider as G_ToastProvider, ToggleButton as G_ToggleButton, Tooltip as G_Tooltip, VerificationCode as G_VerificationCode, VirtualKeyboard as G_VirtualKeyboard, ListItem, Menu, Modal, Popover, memorizedQuantity as Quantity, Radio, Search, Select, Switch, TableV2, _default$1 as TextArea, _default as TextField, Toast, ToastContainer, ToastProvider, ToggleButton, Tooltip, VerificationCode, VirtualKeyboard, normalizeText, useApiSimulation, useInfiniteScroll, useToast };
|
|
2348
|
+
export type { AvatarProps, BadgeProps, ButtonProps, CalendarProps, CalloutProps, CardProps, CheckboxProps, ChipsProps, ContainerProps, DatePickerProps, DialogProps, DrawerProps, FileUploadProps, FilterProps, ListItemProps, MenuProps, ModalProps, PopoverProps, QuantityProps, RadioGroupProps, RadioProps, SearchProps, SelectProps, SwitchProps, TableV2FooterProps, TableV2HeaderProps, TableV2Props, TextAreaProps, TextFieldProps, ToastProps, ToggleButtonMode, ToggleButtonProps, ToggleGroupItem, ToggleGroupType, TooltipProps, VerificationCodeProps, VirtualKeyboardProps, VirtualKeyboardVariant };
|