@lets-events/react 11.5.4 → 11.6.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/.eslintrc.json +2 -2
- package/.turbo/turbo-build.log +20 -18
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +103 -11
- package/dist/index.d.ts +103 -11
- package/dist/index.js +990 -133
- package/dist/index.mjs +951 -102
- package/package.json +2 -1
- package/src/components/Alert.tsx +303 -303
- package/src/components/Avatar.tsx +55 -55
- package/src/components/Badge.tsx +125 -125
- package/src/components/Box.tsx +3 -3
- package/src/components/Button/index.tsx +16 -16
- package/src/components/Button/styledComponents.ts +287 -287
- package/src/components/ButtonGroup.tsx +484 -484
- package/src/components/Calendar/index.tsx +136 -136
- package/src/components/Calendar/styledComponents.ts +209 -209
- package/src/components/Card.tsx +48 -48
- package/src/components/CheckboxGroup.tsx +176 -196
- package/src/components/Container.tsx +39 -39
- package/src/components/Drawer/index.tsx +48 -48
- package/src/components/Drawer/styledComponents.ts +46 -46
- package/src/components/Dropdown.tsx +192 -167
- package/src/components/Filter.tsx +164 -164
- package/src/components/Flex.tsx +118 -118
- package/src/components/FormFields/AddressFormFields/CityFormField.tsx +111 -0
- package/src/components/FormFields/AddressFormFields/CountryFormField.tsx +33 -0
- package/src/components/FormFields/AddressFormFields/PostalCodeFormField.tsx +45 -0
- package/src/components/FormFields/AddressFormFields/StateFormField.tsx +32 -0
- package/src/components/FormFields/AddressFormFields/index.tsx +139 -0
- package/src/components/FormFields/BirthDateFormField.tsx +87 -0
- package/src/components/FormFields/CNPJFormField.tsx +89 -0
- package/src/components/FormFields/CPFFormField.tsx +79 -0
- package/src/components/FormFields/CheckboxGroupFormField.tsx +90 -0
- package/src/components/FormFields/ErrorFormMessage.tsx +36 -36
- package/src/components/FormFields/Form.tsx +29 -25
- package/src/components/FormFields/FormLabel.tsx +29 -29
- package/src/components/FormFields/IdentityDocumentNumberFormField.tsx +42 -0
- package/src/components/FormFields/MultiSelectFormField.tsx +59 -59
- package/src/components/FormFields/PhoneFormField.tsx +130 -130
- package/src/components/FormFields/RadioGroupFormField.tsx +84 -0
- package/src/components/FormFields/SelectFormField.tsx +93 -0
- package/src/components/FormFields/TextAreaFormField.tsx +48 -48
- package/src/components/FormFields/TextFormField.tsx +76 -46
- package/src/components/Grid.tsx +137 -137
- package/src/components/Icon.tsx +47 -47
- package/src/components/MenuDropdown/index.tsx +30 -30
- package/src/components/MenuDropdown/styledComponents.ts +31 -31
- package/src/components/Modal.tsx +90 -90
- package/src/components/MultiSelect.tsx +218 -218
- package/src/components/RadioGroup.tsx +210 -210
- package/src/components/Section.tsx +33 -33
- package/src/components/Step.tsx +164 -164
- package/src/components/Switch.tsx +108 -108
- package/src/components/Text.tsx +38 -38
- package/src/components/TextField.tsx +312 -315
- package/src/components/TextareaField.tsx +128 -128
- package/src/components/TimePicker.tsx +298 -298
- package/src/components/Toast/components/ToastItem.tsx +41 -41
- package/src/components/Toast/components/ToastProvider.tsx +63 -63
- package/src/components/Toast/hooks/useToast.ts +12 -12
- package/src/components/Toast/index.tsx +5 -5
- package/src/components/Toast/styles/index.ts +135 -135
- package/src/components/Toast/types/index.ts +46 -46
- package/src/components/Tooltip/index.tsx +66 -66
- package/src/components/Tooltip/styles.ts +77 -77
- package/src/hooks/useCountries.ts +41 -0
- package/src/hooks/useOnClickOutside.tsx +20 -20
- package/src/index.tsx +52 -45
- package/src/styles/index.ts +38 -38
- package/src/types/typographyValues.ts +178 -178
- package/src/utils/getNestedValue.ts +3 -0
- package/src/utils/states.ts +29 -0
- 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
|
}
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
[34mCLI[39m
|
|
7
|
-
[34mCLI[39m
|
|
8
|
-
[34mCLI[39m
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[32mCJS[39m
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @lets-events/react@11.6.0 build
|
|
4
|
+
> tsup src/index.tsx --format esm,cjs --dts --external react
|
|
5
|
+
|
|
6
|
+
[1G[0K[34mCLI[39m Building entry: src/index.tsx
|
|
7
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
8
|
+
[34mCLI[39m tsup v8.4.0
|
|
9
|
+
[34mCLI[39m Target: es6
|
|
10
|
+
[34mESM[39m Build start
|
|
11
|
+
[34mCJS[39m Build start
|
|
12
|
+
[32mCJS[39m [1mdist/index.js [22m[32m328.68 KB[39m
|
|
13
|
+
[32mCJS[39m ⚡️ Build success in 279ms
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m316.52 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 280ms
|
|
16
|
+
DTS Build start
|
|
17
|
+
DTS ⚡️ Build success in 5023ms
|
|
18
|
+
DTS dist/index.d.mts 391.75 KB
|
|
19
|
+
DTS dist/index.d.ts 391.75 KB
|
|
20
|
+
[1G[0K⠙[1G[0K
|
package/CHANGELOG.md
CHANGED
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,
|
|
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:
|
|
4249
|
-
typography:
|
|
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[
|
|
4256
|
-
fontWeight: DropdownMenuProps[
|
|
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<
|
|
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
|
-
|
|
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,
|
|
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:
|
|
4249
|
-
typography:
|
|
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[
|
|
4256
|
-
fontWeight: DropdownMenuProps[
|
|
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<
|
|
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
|
-
|
|
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 };
|