@lets-events/react 11.5.4 → 11.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/.eslintrc.json +2 -2
  2. package/.turbo/turbo-build.log +20 -18
  3. package/CHANGELOG.md +12 -0
  4. package/dist/index.d.mts +103 -11
  5. package/dist/index.d.ts +103 -11
  6. package/dist/index.js +990 -133
  7. package/dist/index.mjs +951 -102
  8. package/package.json +2 -1
  9. package/src/components/Alert.tsx +303 -303
  10. package/src/components/Avatar.tsx +55 -55
  11. package/src/components/Badge.tsx +125 -125
  12. package/src/components/Box.tsx +3 -3
  13. package/src/components/Button/index.tsx +16 -16
  14. package/src/components/Button/styledComponents.ts +287 -287
  15. package/src/components/ButtonGroup.tsx +484 -484
  16. package/src/components/Calendar/index.tsx +136 -136
  17. package/src/components/Calendar/styledComponents.ts +209 -209
  18. package/src/components/Card.tsx +48 -48
  19. package/src/components/CheckboxGroup.tsx +176 -196
  20. package/src/components/Container.tsx +39 -39
  21. package/src/components/Drawer/index.tsx +48 -48
  22. package/src/components/Drawer/styledComponents.ts +46 -46
  23. package/src/components/Dropdown.tsx +192 -167
  24. package/src/components/Filter.tsx +164 -164
  25. package/src/components/Flex.tsx +118 -118
  26. package/src/components/FormFields/AddressFormFields/CityFormField.tsx +111 -0
  27. package/src/components/FormFields/AddressFormFields/CountryFormField.tsx +33 -0
  28. package/src/components/FormFields/AddressFormFields/PostalCodeFormField.tsx +45 -0
  29. package/src/components/FormFields/AddressFormFields/StateFormField.tsx +32 -0
  30. package/src/components/FormFields/AddressFormFields/index.tsx +139 -0
  31. package/src/components/FormFields/BirthDateFormField.tsx +87 -0
  32. package/src/components/FormFields/CNPJFormField.tsx +89 -0
  33. package/src/components/FormFields/CPFFormField.tsx +79 -0
  34. package/src/components/FormFields/CheckboxGroupFormField.tsx +90 -0
  35. package/src/components/FormFields/ErrorFormMessage.tsx +36 -36
  36. package/src/components/FormFields/Form.tsx +29 -25
  37. package/src/components/FormFields/FormLabel.tsx +29 -29
  38. package/src/components/FormFields/IdentityDocumentNumberFormField.tsx +42 -0
  39. package/src/components/FormFields/MultiSelectFormField.tsx +59 -59
  40. package/src/components/FormFields/PhoneFormField.tsx +130 -130
  41. package/src/components/FormFields/RadioGroupFormField.tsx +84 -0
  42. package/src/components/FormFields/SelectFormField.tsx +93 -0
  43. package/src/components/FormFields/TextAreaFormField.tsx +48 -48
  44. package/src/components/FormFields/TextFormField.tsx +76 -46
  45. package/src/components/Grid.tsx +137 -137
  46. package/src/components/Icon.tsx +47 -47
  47. package/src/components/MenuDropdown/index.tsx +30 -30
  48. package/src/components/MenuDropdown/styledComponents.ts +31 -31
  49. package/src/components/Modal.tsx +90 -90
  50. package/src/components/MultiSelect.tsx +218 -218
  51. package/src/components/RadioGroup.tsx +210 -210
  52. package/src/components/Section.tsx +33 -33
  53. package/src/components/Step.tsx +164 -164
  54. package/src/components/Switch.tsx +108 -108
  55. package/src/components/Text.tsx +38 -38
  56. package/src/components/TextField.tsx +312 -315
  57. package/src/components/TextareaField.tsx +128 -128
  58. package/src/components/TimePicker.tsx +298 -298
  59. package/src/components/Toast/components/ToastItem.tsx +41 -41
  60. package/src/components/Toast/components/ToastProvider.tsx +63 -63
  61. package/src/components/Toast/hooks/useToast.ts +12 -12
  62. package/src/components/Toast/index.tsx +5 -5
  63. package/src/components/Toast/styles/index.ts +135 -135
  64. package/src/components/Toast/types/index.ts +46 -46
  65. package/src/components/Tooltip/index.tsx +66 -66
  66. package/src/components/Tooltip/styles.ts +77 -77
  67. package/src/hooks/useCountries.ts +41 -0
  68. package/src/hooks/useOnClickOutside.tsx +20 -20
  69. package/src/index.tsx +52 -45
  70. package/src/styles/index.ts +38 -38
  71. package/src/types/typographyValues.ts +178 -178
  72. package/src/utils/getNestedValue.ts +3 -0
  73. package/src/utils/states.ts +29 -0
  74. package/tsconfig.json +3 -3
package/.eslintrc.json CHANGED
@@ -1,3 +1,3 @@
1
- {
2
- "extends": "@lets-events/eslint-config"
1
+ {
2
+ "extends": "@lets-events/eslint-config"
3
3
  }
@@ -1,18 +1,20 @@
1
-
2
- > @lets-events/react@11.5.4 build
3
- > tsup src/index.tsx --format esm,cjs --dts --external react
4
-
5
- CLI Building entry: src/index.tsx
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.4.0
8
- CLI Target: es6
9
- ESM Build start
10
- CJS Build start
11
- ESM dist\index.mjs 290.94 KB
12
- ESM ⚡️ Build success in 223ms
13
- CJS dist\index.js 301.13 KB
14
- CJS ⚡️ Build success in 223ms
15
- DTS Build start
16
- DTS ⚡️ Build success in 3952ms
17
- DTS dist\index.d.mts 388.25 KB
18
- DTS dist\index.d.ts 388.25 KB
1
+
2
+
3
+ > @lets-events/react@11.6.1 build
4
+ > tsup src/index.tsx --format esm,cjs --dts --external react
5
+
6
+ CLI Building entry: src/index.tsx
7
+ CLI Using tsconfig: tsconfig.json
8
+ CLI tsup v8.4.0
9
+ CLI Target: es6
10
+ ESM Build start
11
+ CJS Build start
12
+ ESM dist/index.mjs 316.52 KB
13
+ ESM ⚡️ Build success in 262ms
14
+ CJS dist/index.js 328.68 KB
15
+ CJS ⚡️ Build success in 262ms
16
+ DTS Build start
17
+ DTS ⚡️ Build success in 4645ms
18
+ DTS dist/index.d.mts 391.75 KB
19
+ DTS dist/index.d.ts 391.75 KB
20
+ ⠙
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @lets-events/react
2
2
 
3
+ ## 11.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Re-deploy
8
+
9
+ ## 11.6.0
10
+
11
+ ### Minor Changes
12
+
13
+ - added form fields
14
+
3
15
  ## 11.5.4
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -13,7 +13,7 @@ import { VariantProps } from '@stitches/react';
13
13
  import { MaskOptions, format, unformat } from '@react-input/mask';
14
14
  import { Dialog } from 'radix-ui';
15
15
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
16
- import { FieldError, Merge, FieldErrorsImpl, UseFormProps, SubmitHandler, FieldValues } from 'react-hook-form';
16
+ import { FieldError, Merge, FieldErrorsImpl, FieldValues, UseFormProps, SubmitHandler, useForm } from 'react-hook-form';
17
17
 
18
18
  interface IconProps extends Omit<FontAwesomeIconProps, "icon" | "size"> {
19
19
  name: IconName;
@@ -4245,17 +4245,18 @@ declare const DropdownMenuItemStyled: _stitches_react_types_styled_component.Sty
4245
4245
  type DropdownMenuProps = ComponentProps<typeof DropdownMenu$1.Root> & {
4246
4246
  as?: ElementType;
4247
4247
  placeholder?: string;
4248
- fontWeight: 'regular' | 'medium' | 'semibold' | 'bold';
4249
- typography: 'labelExtraSmall' | 'labelSmall' | 'labelMedium' | 'labelLarge';
4248
+ fontWeight: "regular" | "medium" | "semibold" | "bold";
4249
+ typography: "labelExtraSmall" | "labelSmall" | "labelMedium" | "labelLarge";
4250
4250
  children: React.ReactNode;
4251
+ color?: "default" | "error";
4251
4252
  };
4252
4253
  type DropdownMenuItemProps = ComponentProps<typeof DropdownMenuItemStyled> & {
4253
4254
  as?: ElementType;
4254
4255
  value: string;
4255
- typography: DropdownMenuProps['typography'];
4256
- fontWeight: DropdownMenuProps['fontWeight'];
4256
+ typography: DropdownMenuProps["typography"];
4257
+ fontWeight: DropdownMenuProps["fontWeight"];
4257
4258
  };
4258
- declare function DropdownMenu({ children, placeholder, typography, fontWeight, ...props }: DropdownMenuProps): react_jsx_runtime.JSX.Element;
4259
+ declare function DropdownMenu({ children, placeholder, typography, color, fontWeight, ...props }: DropdownMenuProps): react_jsx_runtime.JSX.Element;
4259
4260
  declare function DropdownMenuItem({ children, typography, fontWeight, ...props }: DropdownMenuItemProps): react_jsx_runtime.JSX.Element;
4260
4261
 
4261
4262
  declare const BadgeStyled: _stitches_react_types_styled_component.StyledComponent<react__default.ForwardRefExoticComponent<_radix_ui_themes.BadgeProps & react__default.RefAttributes<HTMLSpanElement>>, {
@@ -14890,14 +14891,23 @@ type TextFormFieldProps = {
14890
14891
  label?: string;
14891
14892
  required?: boolean;
14892
14893
  placeholder?: string;
14894
+ mask?: MaskOptions;
14895
+ validation?: {
14896
+ validate?: (value: string) => boolean | string;
14897
+ };
14898
+ validationErrorMessage?: string;
14899
+ disabled?: boolean;
14900
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
14901
+ value?: string;
14893
14902
  };
14894
- declare const TextFormField: ({ name, label, required, placeholder, }: TextFormFieldProps) => react_jsx_runtime.JSX.Element;
14903
+ declare const TextFormField: ({ name, label, required, placeholder, mask, validation, validationErrorMessage, disabled, value, onChange, }: TextFormFieldProps) => react_jsx_runtime.JSX.Element;
14895
14904
 
14896
- type FormProps = UseFormProps & {
14897
- onSubmit: SubmitHandler<FieldValues>;
14905
+ type FormProps<T extends FieldValues = FieldValues> = UseFormProps<T> & {
14906
+ onSubmit: SubmitHandler<T>;
14898
14907
  children: JSX.Element;
14908
+ methods?: ReturnType<typeof useForm<T>>;
14899
14909
  };
14900
- declare const Form: ({ onSubmit, children, ...props }: FormProps) => react_jsx_runtime.JSX.Element;
14910
+ declare const Form: <T extends FieldValues = FieldValues>({ onSubmit, children, methods, ...props }: FormProps<T>) => react_jsx_runtime.JSX.Element;
14901
14911
 
14902
14912
  type MultiSelectFormFieldProps = MultiSelectProps & {
14903
14913
  name: string;
@@ -14914,4 +14924,86 @@ type PhoneFormFieldProps = {
14914
14924
  };
14915
14925
  declare const PhoneFormField: ({ name, label, required, defaultCountry, ...props }: PhoneFormFieldProps) => react_jsx_runtime.JSX.Element;
14916
14926
 
14917
- export { Alert, AlertDialogCompleteStyled, AlertDialogDescriptionStyled, AlertDialogRowStyled, AlertDialogSimpleStyled, AlertDialogSubtitleStyled, AlertDialogTitleStyled, AlertDialoghrStyled, type AlertProps, Avatar, type AvatarProps, AvatarStyled, Badge, type BadgeProps, BadgeStyled, Box, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupStyled, ButtonItem, type ButtonItemProps, ButtonItemStyled, type ButtonProps, Calendar, type CalendarProps, Card, type CardProps, CardStyled, CheckboxGroup, type CheckboxGroupProps, CheckboxGroupStyled, CheckboxItem, type CheckboxItemProps, Container, type ContainerProps, ContainerStyled, Drawer, type DrawerProps, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, ErrorFormMessage, type ErrorFormMessageProps, Filter, FilterItem, type FilterItemProps, type FilterProps, Flex, type FlexProps, FlexStyled, Form, FormLabel, type FormLabelProps, type FormProps, Grid, type GridProps, GridStyled, Icon, InputStyled, MenuDropdown, type MenuDropdownProps, Modal, type ModalProps, MultiSelect, MultiSelectFormField, type MultiSelectFormFieldProps, type MultiSelectProps, PhoneFormField, type PhoneFormFieldProps, RadioGroup, type RadioGroupProps, RadioGroupStyled, RadioItem, type RadioItemProps, Section, type SectionProps, SectionStyled, Step, StepContent, StepList, type StepProps, StepStyled, StepTrigger, StepWrapper, Switch, type SwitchProps, SwitchStyled, Text, TextAreaFormField, type TextAreaFormFieldProps, TextField, type TextFieldProps, TextFieldSlot, type TextFieldSlotProps, TextFieldSlotStyled, TextFieldStyled, TextFormField, type TextFormFieldProps, type TextProps, TextStyle, TextareaField, type TextareaFieldProps, TextareaFieldStyle, TimePicker, TimePickerButtonStyled, TimePickerDropdownStyled, TimePickerFooterStyled, type TimePickerProps, TimePickerStyled, TimerPickerContentStyled, type Toast, type ToastComponentProps, type ToastConfig, type ToastContextType, ToastItem, type ToastOptions, ToastProvider, type ToastProviderProps, type ToastType, type ToasterShowOptions, Tooltip, TooltipContent, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, maskFormat, maskUnformat, useToast };
14927
+ type CPFFormFieldProps = {
14928
+ name: string;
14929
+ label: string;
14930
+ required?: boolean;
14931
+ placeholder?: string;
14932
+ validationErrorMessage: string;
14933
+ foreignerLabel: string;
14934
+ };
14935
+ declare const CPFFormField: ({ name, label, required, placeholder, validationErrorMessage, foreignerLabel, }: CPFFormFieldProps) => react_jsx_runtime.JSX.Element;
14936
+
14937
+ type CNPJFormFieldProps = {
14938
+ name: string;
14939
+ label: string;
14940
+ required?: boolean;
14941
+ placeholder?: string;
14942
+ validationErrorMessage: string;
14943
+ };
14944
+ declare const isValidCNPJ: (cnpj: string) => boolean;
14945
+ declare const CNPJFormField: ({ name, label, required, placeholder, validationErrorMessage, }: CNPJFormFieldProps) => react_jsx_runtime.JSX.Element;
14946
+
14947
+ type Language = "pt-BR" | "en" | "es";
14948
+ type BirthDateFormFieldProps = {
14949
+ name: string;
14950
+ label: string;
14951
+ required?: boolean;
14952
+ placeholder?: string;
14953
+ validationErrorMessage: string;
14954
+ language: Language;
14955
+ };
14956
+ declare const BirthDateFormField: ({ name, label, required, placeholder, validationErrorMessage, language, }: BirthDateFormFieldProps) => react_jsx_runtime.JSX.Element;
14957
+
14958
+ type IdentityDocumentNumberFormFieldProps = {
14959
+ name: string;
14960
+ label: string;
14961
+ required?: boolean;
14962
+ placeholder?: string;
14963
+ validationErrorMessage: string;
14964
+ };
14965
+ declare const IdentityDocumentNumberFormField: ({ name, label, required, placeholder, validationErrorMessage, }: IdentityDocumentNumberFormFieldProps) => react_jsx_runtime.JSX.Element;
14966
+
14967
+ type AddressFormFieldsProps = {
14968
+ name: string;
14969
+ label: string;
14970
+ required?: boolean;
14971
+ layout?: "column" | "grid";
14972
+ };
14973
+ declare function AddressFormFields({ name, label, required, layout, }: AddressFormFieldsProps): react_jsx_runtime.JSX.Element;
14974
+
14975
+ type Option$1 = {
14976
+ label: string;
14977
+ value: string;
14978
+ };
14979
+ type RadioGroupFormFieldProps = {
14980
+ name: string;
14981
+ label: string;
14982
+ options: Option$1[];
14983
+ required?: boolean;
14984
+ defaultValue?: string;
14985
+ validationErrorMessage?: string;
14986
+ color?: "blue" | "success" | "error";
14987
+ fontWeight?: "regular" | "medium" | "semibold" | "bold";
14988
+ disabled?: boolean;
14989
+ };
14990
+ declare const RadioGroupFormField: ({ name, label, options, required, defaultValue, validationErrorMessage, color, fontWeight, disabled, }: RadioGroupFormFieldProps) => react_jsx_runtime.JSX.Element;
14991
+
14992
+ type Option = {
14993
+ label: string;
14994
+ value: string;
14995
+ };
14996
+ type CheckboxGroupFormFieldProps = {
14997
+ name: string;
14998
+ label: string;
14999
+ options: Option[];
15000
+ required?: boolean;
15001
+ validationErrorMessage?: string;
15002
+ defaultValue?: string[];
15003
+ color?: "blue" | "success" | "error";
15004
+ fontWeight?: "regular" | "medium" | "semibold" | "bold";
15005
+ disabled?: boolean;
15006
+ };
15007
+ declare const CheckboxGroupFormField: ({ name, label, options, required, validationErrorMessage, defaultValue, color, fontWeight, disabled, }: CheckboxGroupFormFieldProps) => react_jsx_runtime.JSX.Element;
15008
+
15009
+ export { AddressFormFields, Alert, AlertDialogCompleteStyled, AlertDialogDescriptionStyled, AlertDialogRowStyled, AlertDialogSimpleStyled, AlertDialogSubtitleStyled, AlertDialogTitleStyled, AlertDialoghrStyled, type AlertProps, Avatar, type AvatarProps, AvatarStyled, Badge, type BadgeProps, BadgeStyled, BirthDateFormField, Box, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupStyled, ButtonItem, type ButtonItemProps, ButtonItemStyled, type ButtonProps, CNPJFormField, CPFFormField, Calendar, type CalendarProps, Card, type CardProps, CardStyled, CheckboxGroup, CheckboxGroupFormField, type CheckboxGroupFormFieldProps, type CheckboxGroupProps, CheckboxGroupStyled, CheckboxItem, type CheckboxItemProps, Container, type ContainerProps, ContainerStyled, Drawer, type DrawerProps, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, ErrorFormMessage, type ErrorFormMessageProps, Filter, FilterItem, type FilterItemProps, type FilterProps, Flex, type FlexProps, FlexStyled, Form, FormLabel, type FormLabelProps, type FormProps, Grid, type GridProps, GridStyled, Icon, IdentityDocumentNumberFormField, InputStyled, MenuDropdown, type MenuDropdownProps, Modal, type ModalProps, MultiSelect, MultiSelectFormField, type MultiSelectFormFieldProps, type MultiSelectProps, PhoneFormField, type PhoneFormFieldProps, RadioGroup, RadioGroupFormField, type RadioGroupFormFieldProps, type RadioGroupProps, RadioGroupStyled, RadioItem, type RadioItemProps, Section, type SectionProps, SectionStyled, Step, StepContent, StepList, type StepProps, StepStyled, StepTrigger, StepWrapper, Switch, type SwitchProps, SwitchStyled, Text, TextAreaFormField, type TextAreaFormFieldProps, TextField, type TextFieldProps, TextFieldSlot, type TextFieldSlotProps, TextFieldSlotStyled, TextFieldStyled, TextFormField, type TextFormFieldProps, type TextProps, TextStyle, TextareaField, type TextareaFieldProps, TextareaFieldStyle, TimePicker, TimePickerButtonStyled, TimePickerDropdownStyled, TimePickerFooterStyled, type TimePickerProps, TimePickerStyled, TimerPickerContentStyled, type Toast, type ToastComponentProps, type ToastConfig, type ToastContextType, ToastItem, type ToastOptions, ToastProvider, type ToastProviderProps, type ToastType, type ToasterShowOptions, Tooltip, TooltipContent, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, isValidCNPJ, maskFormat, maskUnformat, useToast };
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ import { VariantProps } from '@stitches/react';
13
13
  import { MaskOptions, format, unformat } from '@react-input/mask';
14
14
  import { Dialog } from 'radix-ui';
15
15
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
16
- import { FieldError, Merge, FieldErrorsImpl, UseFormProps, SubmitHandler, FieldValues } from 'react-hook-form';
16
+ import { FieldError, Merge, FieldErrorsImpl, FieldValues, UseFormProps, SubmitHandler, useForm } from 'react-hook-form';
17
17
 
18
18
  interface IconProps extends Omit<FontAwesomeIconProps, "icon" | "size"> {
19
19
  name: IconName;
@@ -4245,17 +4245,18 @@ declare const DropdownMenuItemStyled: _stitches_react_types_styled_component.Sty
4245
4245
  type DropdownMenuProps = ComponentProps<typeof DropdownMenu$1.Root> & {
4246
4246
  as?: ElementType;
4247
4247
  placeholder?: string;
4248
- fontWeight: 'regular' | 'medium' | 'semibold' | 'bold';
4249
- typography: 'labelExtraSmall' | 'labelSmall' | 'labelMedium' | 'labelLarge';
4248
+ fontWeight: "regular" | "medium" | "semibold" | "bold";
4249
+ typography: "labelExtraSmall" | "labelSmall" | "labelMedium" | "labelLarge";
4250
4250
  children: React.ReactNode;
4251
+ color?: "default" | "error";
4251
4252
  };
4252
4253
  type DropdownMenuItemProps = ComponentProps<typeof DropdownMenuItemStyled> & {
4253
4254
  as?: ElementType;
4254
4255
  value: string;
4255
- typography: DropdownMenuProps['typography'];
4256
- fontWeight: DropdownMenuProps['fontWeight'];
4256
+ typography: DropdownMenuProps["typography"];
4257
+ fontWeight: DropdownMenuProps["fontWeight"];
4257
4258
  };
4258
- declare function DropdownMenu({ children, placeholder, typography, fontWeight, ...props }: DropdownMenuProps): react_jsx_runtime.JSX.Element;
4259
+ declare function DropdownMenu({ children, placeholder, typography, color, fontWeight, ...props }: DropdownMenuProps): react_jsx_runtime.JSX.Element;
4259
4260
  declare function DropdownMenuItem({ children, typography, fontWeight, ...props }: DropdownMenuItemProps): react_jsx_runtime.JSX.Element;
4260
4261
 
4261
4262
  declare const BadgeStyled: _stitches_react_types_styled_component.StyledComponent<react__default.ForwardRefExoticComponent<_radix_ui_themes.BadgeProps & react__default.RefAttributes<HTMLSpanElement>>, {
@@ -14890,14 +14891,23 @@ type TextFormFieldProps = {
14890
14891
  label?: string;
14891
14892
  required?: boolean;
14892
14893
  placeholder?: string;
14894
+ mask?: MaskOptions;
14895
+ validation?: {
14896
+ validate?: (value: string) => boolean | string;
14897
+ };
14898
+ validationErrorMessage?: string;
14899
+ disabled?: boolean;
14900
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
14901
+ value?: string;
14893
14902
  };
14894
- declare const TextFormField: ({ name, label, required, placeholder, }: TextFormFieldProps) => react_jsx_runtime.JSX.Element;
14903
+ declare const TextFormField: ({ name, label, required, placeholder, mask, validation, validationErrorMessage, disabled, value, onChange, }: TextFormFieldProps) => react_jsx_runtime.JSX.Element;
14895
14904
 
14896
- type FormProps = UseFormProps & {
14897
- onSubmit: SubmitHandler<FieldValues>;
14905
+ type FormProps<T extends FieldValues = FieldValues> = UseFormProps<T> & {
14906
+ onSubmit: SubmitHandler<T>;
14898
14907
  children: JSX.Element;
14908
+ methods?: ReturnType<typeof useForm<T>>;
14899
14909
  };
14900
- declare const Form: ({ onSubmit, children, ...props }: FormProps) => react_jsx_runtime.JSX.Element;
14910
+ declare const Form: <T extends FieldValues = FieldValues>({ onSubmit, children, methods, ...props }: FormProps<T>) => react_jsx_runtime.JSX.Element;
14901
14911
 
14902
14912
  type MultiSelectFormFieldProps = MultiSelectProps & {
14903
14913
  name: string;
@@ -14914,4 +14924,86 @@ type PhoneFormFieldProps = {
14914
14924
  };
14915
14925
  declare const PhoneFormField: ({ name, label, required, defaultCountry, ...props }: PhoneFormFieldProps) => react_jsx_runtime.JSX.Element;
14916
14926
 
14917
- export { Alert, AlertDialogCompleteStyled, AlertDialogDescriptionStyled, AlertDialogRowStyled, AlertDialogSimpleStyled, AlertDialogSubtitleStyled, AlertDialogTitleStyled, AlertDialoghrStyled, type AlertProps, Avatar, type AvatarProps, AvatarStyled, Badge, type BadgeProps, BadgeStyled, Box, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupStyled, ButtonItem, type ButtonItemProps, ButtonItemStyled, type ButtonProps, Calendar, type CalendarProps, Card, type CardProps, CardStyled, CheckboxGroup, type CheckboxGroupProps, CheckboxGroupStyled, CheckboxItem, type CheckboxItemProps, Container, type ContainerProps, ContainerStyled, Drawer, type DrawerProps, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, ErrorFormMessage, type ErrorFormMessageProps, Filter, FilterItem, type FilterItemProps, type FilterProps, Flex, type FlexProps, FlexStyled, Form, FormLabel, type FormLabelProps, type FormProps, Grid, type GridProps, GridStyled, Icon, InputStyled, MenuDropdown, type MenuDropdownProps, Modal, type ModalProps, MultiSelect, MultiSelectFormField, type MultiSelectFormFieldProps, type MultiSelectProps, PhoneFormField, type PhoneFormFieldProps, RadioGroup, type RadioGroupProps, RadioGroupStyled, RadioItem, type RadioItemProps, Section, type SectionProps, SectionStyled, Step, StepContent, StepList, type StepProps, StepStyled, StepTrigger, StepWrapper, Switch, type SwitchProps, SwitchStyled, Text, TextAreaFormField, type TextAreaFormFieldProps, TextField, type TextFieldProps, TextFieldSlot, type TextFieldSlotProps, TextFieldSlotStyled, TextFieldStyled, TextFormField, type TextFormFieldProps, type TextProps, TextStyle, TextareaField, type TextareaFieldProps, TextareaFieldStyle, TimePicker, TimePickerButtonStyled, TimePickerDropdownStyled, TimePickerFooterStyled, type TimePickerProps, TimePickerStyled, TimerPickerContentStyled, type Toast, type ToastComponentProps, type ToastConfig, type ToastContextType, ToastItem, type ToastOptions, ToastProvider, type ToastProviderProps, type ToastType, type ToasterShowOptions, Tooltip, TooltipContent, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, maskFormat, maskUnformat, useToast };
14927
+ type CPFFormFieldProps = {
14928
+ name: string;
14929
+ label: string;
14930
+ required?: boolean;
14931
+ placeholder?: string;
14932
+ validationErrorMessage: string;
14933
+ foreignerLabel: string;
14934
+ };
14935
+ declare const CPFFormField: ({ name, label, required, placeholder, validationErrorMessage, foreignerLabel, }: CPFFormFieldProps) => react_jsx_runtime.JSX.Element;
14936
+
14937
+ type CNPJFormFieldProps = {
14938
+ name: string;
14939
+ label: string;
14940
+ required?: boolean;
14941
+ placeholder?: string;
14942
+ validationErrorMessage: string;
14943
+ };
14944
+ declare const isValidCNPJ: (cnpj: string) => boolean;
14945
+ declare const CNPJFormField: ({ name, label, required, placeholder, validationErrorMessage, }: CNPJFormFieldProps) => react_jsx_runtime.JSX.Element;
14946
+
14947
+ type Language = "pt-BR" | "en" | "es";
14948
+ type BirthDateFormFieldProps = {
14949
+ name: string;
14950
+ label: string;
14951
+ required?: boolean;
14952
+ placeholder?: string;
14953
+ validationErrorMessage: string;
14954
+ language: Language;
14955
+ };
14956
+ declare const BirthDateFormField: ({ name, label, required, placeholder, validationErrorMessage, language, }: BirthDateFormFieldProps) => react_jsx_runtime.JSX.Element;
14957
+
14958
+ type IdentityDocumentNumberFormFieldProps = {
14959
+ name: string;
14960
+ label: string;
14961
+ required?: boolean;
14962
+ placeholder?: string;
14963
+ validationErrorMessage: string;
14964
+ };
14965
+ declare const IdentityDocumentNumberFormField: ({ name, label, required, placeholder, validationErrorMessage, }: IdentityDocumentNumberFormFieldProps) => react_jsx_runtime.JSX.Element;
14966
+
14967
+ type AddressFormFieldsProps = {
14968
+ name: string;
14969
+ label: string;
14970
+ required?: boolean;
14971
+ layout?: "column" | "grid";
14972
+ };
14973
+ declare function AddressFormFields({ name, label, required, layout, }: AddressFormFieldsProps): react_jsx_runtime.JSX.Element;
14974
+
14975
+ type Option$1 = {
14976
+ label: string;
14977
+ value: string;
14978
+ };
14979
+ type RadioGroupFormFieldProps = {
14980
+ name: string;
14981
+ label: string;
14982
+ options: Option$1[];
14983
+ required?: boolean;
14984
+ defaultValue?: string;
14985
+ validationErrorMessage?: string;
14986
+ color?: "blue" | "success" | "error";
14987
+ fontWeight?: "regular" | "medium" | "semibold" | "bold";
14988
+ disabled?: boolean;
14989
+ };
14990
+ declare const RadioGroupFormField: ({ name, label, options, required, defaultValue, validationErrorMessage, color, fontWeight, disabled, }: RadioGroupFormFieldProps) => react_jsx_runtime.JSX.Element;
14991
+
14992
+ type Option = {
14993
+ label: string;
14994
+ value: string;
14995
+ };
14996
+ type CheckboxGroupFormFieldProps = {
14997
+ name: string;
14998
+ label: string;
14999
+ options: Option[];
15000
+ required?: boolean;
15001
+ validationErrorMessage?: string;
15002
+ defaultValue?: string[];
15003
+ color?: "blue" | "success" | "error";
15004
+ fontWeight?: "regular" | "medium" | "semibold" | "bold";
15005
+ disabled?: boolean;
15006
+ };
15007
+ declare const CheckboxGroupFormField: ({ name, label, options, required, validationErrorMessage, defaultValue, color, fontWeight, disabled, }: CheckboxGroupFormFieldProps) => react_jsx_runtime.JSX.Element;
15008
+
15009
+ export { AddressFormFields, Alert, AlertDialogCompleteStyled, AlertDialogDescriptionStyled, AlertDialogRowStyled, AlertDialogSimpleStyled, AlertDialogSubtitleStyled, AlertDialogTitleStyled, AlertDialoghrStyled, type AlertProps, Avatar, type AvatarProps, AvatarStyled, Badge, type BadgeProps, BadgeStyled, BirthDateFormField, Box, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupStyled, ButtonItem, type ButtonItemProps, ButtonItemStyled, type ButtonProps, CNPJFormField, CPFFormField, Calendar, type CalendarProps, Card, type CardProps, CardStyled, CheckboxGroup, CheckboxGroupFormField, type CheckboxGroupFormFieldProps, type CheckboxGroupProps, CheckboxGroupStyled, CheckboxItem, type CheckboxItemProps, Container, type ContainerProps, ContainerStyled, Drawer, type DrawerProps, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, ErrorFormMessage, type ErrorFormMessageProps, Filter, FilterItem, type FilterItemProps, type FilterProps, Flex, type FlexProps, FlexStyled, Form, FormLabel, type FormLabelProps, type FormProps, Grid, type GridProps, GridStyled, Icon, IdentityDocumentNumberFormField, InputStyled, MenuDropdown, type MenuDropdownProps, Modal, type ModalProps, MultiSelect, MultiSelectFormField, type MultiSelectFormFieldProps, type MultiSelectProps, PhoneFormField, type PhoneFormFieldProps, RadioGroup, RadioGroupFormField, type RadioGroupFormFieldProps, type RadioGroupProps, RadioGroupStyled, RadioItem, type RadioItemProps, Section, type SectionProps, SectionStyled, Step, StepContent, StepList, type StepProps, StepStyled, StepTrigger, StepWrapper, Switch, type SwitchProps, SwitchStyled, Text, TextAreaFormField, type TextAreaFormFieldProps, TextField, type TextFieldProps, TextFieldSlot, type TextFieldSlotProps, TextFieldSlotStyled, TextFieldStyled, TextFormField, type TextFormFieldProps, type TextProps, TextStyle, TextareaField, type TextareaFieldProps, TextareaFieldStyle, TimePicker, TimePickerButtonStyled, TimePickerDropdownStyled, TimePickerFooterStyled, type TimePickerProps, TimePickerStyled, TimerPickerContentStyled, type Toast, type ToastComponentProps, type ToastConfig, type ToastContextType, ToastItem, type ToastOptions, ToastProvider, type ToastProviderProps, type ToastType, type ToasterShowOptions, Tooltip, TooltipContent, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, isValidCNPJ, maskFormat, maskUnformat, useToast };