@lets-events/react 11.6.2 → 11.6.4
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 +12 -0
- package/dist/index.d.mts +34 -7
- package/dist/index.d.ts +34 -7
- package/dist/index.js +9 -86
- package/dist/index.mjs +7 -86
- package/package.json +2 -3
- 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 -176
- 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 +194 -192
- package/src/components/Filter.tsx +164 -164
- package/src/components/Flex.tsx +118 -118
- package/src/components/FormFields/AddressFormFields/CityFormField.tsx +111 -111
- package/src/components/FormFields/AddressFormFields/CountryFormField.tsx +33 -33
- package/src/components/FormFields/AddressFormFields/PostalCodeFormField.tsx +45 -45
- package/src/components/FormFields/AddressFormFields/StateFormField.tsx +32 -32
- package/src/components/FormFields/AddressFormFields/index.tsx +139 -139
- package/src/components/FormFields/BirthDateFormField.tsx +87 -87
- package/src/components/FormFields/CNPJFormField.tsx +89 -89
- package/src/components/FormFields/CPFFormField.tsx +79 -79
- package/src/components/FormFields/CheckboxGroupFormField.tsx +90 -90
- package/src/components/FormFields/ErrorFormMessage.tsx +36 -36
- package/src/components/FormFields/Form.tsx +29 -29
- package/src/components/FormFields/FormLabel.tsx +29 -29
- package/src/components/FormFields/IdentityDocumentNumberFormField.tsx +42 -42
- package/src/components/FormFields/MultiSelectFormField.tsx +59 -59
- package/src/components/FormFields/PhoneFormField.tsx +130 -130
- package/src/components/FormFields/RadioGroupFormField.tsx +84 -84
- package/src/components/FormFields/SelectFormField.tsx +93 -93
- package/src/components/FormFields/TextAreaFormField.tsx +48 -48
- package/src/components/FormFields/TextFormField.tsx +76 -76
- 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 -312
- 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 -41
- package/src/hooks/useOnClickOutside.tsx +20 -20
- package/src/index.tsx +54 -52
- package/src/styles/index.ts +38 -38
- package/src/types/typographyValues.ts +178 -178
- package/src/utils/getNestedValue.ts +3 -3
- package/src/utils/states.ts +29 -29
- package/tsconfig.json +3 -3
- package/dist/index.css +0 -171
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
|
-
[32mCJS[39m
|
|
13
|
-
[
|
|
14
|
-
[32mESM[39m
|
|
15
|
-
[
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @lets-events/react@11.6.4 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.80 KB[39m
|
|
13
|
+
[32mCJS[39m ⚡️ Build success in 293ms
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m316.57 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 294ms
|
|
16
|
+
DTS Build start
|
|
17
|
+
DTS ⚡️ Build success in 5873ms
|
|
18
|
+
DTS dist/index.d.mts 392.64 KB
|
|
19
|
+
DTS dist/index.d.ts 392.64 KB
|
|
20
|
+
[1G[0K⠙[1G[0K
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -14,7 +14,6 @@ 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
16
|
import { FieldError, Merge, FieldErrorsImpl, FieldValues, UseFormProps, SubmitHandler, useForm } from 'react-hook-form';
|
|
17
|
-
import { PhoneInputProps } from 'react-international-phone';
|
|
18
17
|
|
|
19
18
|
interface IconProps extends Omit<FontAwesomeIconProps, "icon" | "size"> {
|
|
20
19
|
name: IconName;
|
|
@@ -14917,7 +14916,7 @@ type MultiSelectFormFieldProps = MultiSelectProps & {
|
|
|
14917
14916
|
};
|
|
14918
14917
|
declare const MultiSelectFormField: ({ name, label, required, ...rest }: MultiSelectFormFieldProps) => react_jsx_runtime.JSX.Element;
|
|
14919
14918
|
|
|
14920
|
-
type PhoneFormFieldProps =
|
|
14919
|
+
type PhoneFormFieldProps = {
|
|
14921
14920
|
name: string;
|
|
14922
14921
|
label?: string;
|
|
14923
14922
|
required?: boolean;
|
|
@@ -14973,14 +14972,14 @@ type AddressFormFieldsProps = {
|
|
|
14973
14972
|
};
|
|
14974
14973
|
declare function AddressFormFields({ name, label, required, layout, }: AddressFormFieldsProps): react_jsx_runtime.JSX.Element;
|
|
14975
14974
|
|
|
14976
|
-
type Option$
|
|
14975
|
+
type Option$2 = {
|
|
14977
14976
|
label: string;
|
|
14978
14977
|
value: string;
|
|
14979
14978
|
};
|
|
14980
14979
|
type RadioGroupFormFieldProps = {
|
|
14981
14980
|
name: string;
|
|
14982
14981
|
label: string;
|
|
14983
|
-
options: Option$
|
|
14982
|
+
options: Option$2[];
|
|
14984
14983
|
required?: boolean;
|
|
14985
14984
|
defaultValue?: string;
|
|
14986
14985
|
validationErrorMessage?: string;
|
|
@@ -14990,14 +14989,14 @@ type RadioGroupFormFieldProps = {
|
|
|
14990
14989
|
};
|
|
14991
14990
|
declare const RadioGroupFormField: ({ name, label, options, required, defaultValue, validationErrorMessage, color, fontWeight, disabled, }: RadioGroupFormFieldProps) => react_jsx_runtime.JSX.Element;
|
|
14992
14991
|
|
|
14993
|
-
type Option = {
|
|
14992
|
+
type Option$1 = {
|
|
14994
14993
|
label: string;
|
|
14995
14994
|
value: string;
|
|
14996
14995
|
};
|
|
14997
14996
|
type CheckboxGroupFormFieldProps = {
|
|
14998
14997
|
name: string;
|
|
14999
14998
|
label: string;
|
|
15000
|
-
options: Option[];
|
|
14999
|
+
options: Option$1[];
|
|
15001
15000
|
required?: boolean;
|
|
15002
15001
|
validationErrorMessage?: string;
|
|
15003
15002
|
defaultValue?: string[];
|
|
@@ -15007,4 +15006,32 @@ type CheckboxGroupFormFieldProps = {
|
|
|
15007
15006
|
};
|
|
15008
15007
|
declare const CheckboxGroupFormField: ({ name, label, options, required, validationErrorMessage, defaultValue, color, fontWeight, disabled, }: CheckboxGroupFormFieldProps) => react_jsx_runtime.JSX.Element;
|
|
15009
15008
|
|
|
15010
|
-
|
|
15009
|
+
type CountryFormFieldProps = {
|
|
15010
|
+
name: string;
|
|
15011
|
+
label: string;
|
|
15012
|
+
required?: boolean;
|
|
15013
|
+
placeholder?: string;
|
|
15014
|
+
language?: "es" | "pt-BR" | "en";
|
|
15015
|
+
haveError?: boolean;
|
|
15016
|
+
};
|
|
15017
|
+
declare function CountryFormField({ name, label, required, language, }: CountryFormFieldProps): react_jsx_runtime.JSX.Element;
|
|
15018
|
+
|
|
15019
|
+
type Option = {
|
|
15020
|
+
label: string;
|
|
15021
|
+
value: string;
|
|
15022
|
+
};
|
|
15023
|
+
type SelectFormFieldProps = {
|
|
15024
|
+
name: string;
|
|
15025
|
+
label: string;
|
|
15026
|
+
required?: boolean;
|
|
15027
|
+
placeholder?: string;
|
|
15028
|
+
options: Option[];
|
|
15029
|
+
validation?: {
|
|
15030
|
+
validate?: (value: string) => boolean | string;
|
|
15031
|
+
};
|
|
15032
|
+
validationErrorMessage?: string;
|
|
15033
|
+
defaultValue?: string;
|
|
15034
|
+
};
|
|
15035
|
+
declare const SelectFormField: ({ name, label, required, placeholder, options, validation, validationErrorMessage, defaultValue, }: SelectFormFieldProps) => react_jsx_runtime.JSX.Element;
|
|
15036
|
+
|
|
15037
|
+
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, CountryFormField, 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, SelectFormField, type SelectFormFieldProps, 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
|
@@ -14,7 +14,6 @@ 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
16
|
import { FieldError, Merge, FieldErrorsImpl, FieldValues, UseFormProps, SubmitHandler, useForm } from 'react-hook-form';
|
|
17
|
-
import { PhoneInputProps } from 'react-international-phone';
|
|
18
17
|
|
|
19
18
|
interface IconProps extends Omit<FontAwesomeIconProps, "icon" | "size"> {
|
|
20
19
|
name: IconName;
|
|
@@ -14917,7 +14916,7 @@ type MultiSelectFormFieldProps = MultiSelectProps & {
|
|
|
14917
14916
|
};
|
|
14918
14917
|
declare const MultiSelectFormField: ({ name, label, required, ...rest }: MultiSelectFormFieldProps) => react_jsx_runtime.JSX.Element;
|
|
14919
14918
|
|
|
14920
|
-
type PhoneFormFieldProps =
|
|
14919
|
+
type PhoneFormFieldProps = {
|
|
14921
14920
|
name: string;
|
|
14922
14921
|
label?: string;
|
|
14923
14922
|
required?: boolean;
|
|
@@ -14973,14 +14972,14 @@ type AddressFormFieldsProps = {
|
|
|
14973
14972
|
};
|
|
14974
14973
|
declare function AddressFormFields({ name, label, required, layout, }: AddressFormFieldsProps): react_jsx_runtime.JSX.Element;
|
|
14975
14974
|
|
|
14976
|
-
type Option$
|
|
14975
|
+
type Option$2 = {
|
|
14977
14976
|
label: string;
|
|
14978
14977
|
value: string;
|
|
14979
14978
|
};
|
|
14980
14979
|
type RadioGroupFormFieldProps = {
|
|
14981
14980
|
name: string;
|
|
14982
14981
|
label: string;
|
|
14983
|
-
options: Option$
|
|
14982
|
+
options: Option$2[];
|
|
14984
14983
|
required?: boolean;
|
|
14985
14984
|
defaultValue?: string;
|
|
14986
14985
|
validationErrorMessage?: string;
|
|
@@ -14990,14 +14989,14 @@ type RadioGroupFormFieldProps = {
|
|
|
14990
14989
|
};
|
|
14991
14990
|
declare const RadioGroupFormField: ({ name, label, options, required, defaultValue, validationErrorMessage, color, fontWeight, disabled, }: RadioGroupFormFieldProps) => react_jsx_runtime.JSX.Element;
|
|
14992
14991
|
|
|
14993
|
-
type Option = {
|
|
14992
|
+
type Option$1 = {
|
|
14994
14993
|
label: string;
|
|
14995
14994
|
value: string;
|
|
14996
14995
|
};
|
|
14997
14996
|
type CheckboxGroupFormFieldProps = {
|
|
14998
14997
|
name: string;
|
|
14999
14998
|
label: string;
|
|
15000
|
-
options: Option[];
|
|
14999
|
+
options: Option$1[];
|
|
15001
15000
|
required?: boolean;
|
|
15002
15001
|
validationErrorMessage?: string;
|
|
15003
15002
|
defaultValue?: string[];
|
|
@@ -15007,4 +15006,32 @@ type CheckboxGroupFormFieldProps = {
|
|
|
15007
15006
|
};
|
|
15008
15007
|
declare const CheckboxGroupFormField: ({ name, label, options, required, validationErrorMessage, defaultValue, color, fontWeight, disabled, }: CheckboxGroupFormFieldProps) => react_jsx_runtime.JSX.Element;
|
|
15009
15008
|
|
|
15010
|
-
|
|
15009
|
+
type CountryFormFieldProps = {
|
|
15010
|
+
name: string;
|
|
15011
|
+
label: string;
|
|
15012
|
+
required?: boolean;
|
|
15013
|
+
placeholder?: string;
|
|
15014
|
+
language?: "es" | "pt-BR" | "en";
|
|
15015
|
+
haveError?: boolean;
|
|
15016
|
+
};
|
|
15017
|
+
declare function CountryFormField({ name, label, required, language, }: CountryFormFieldProps): react_jsx_runtime.JSX.Element;
|
|
15018
|
+
|
|
15019
|
+
type Option = {
|
|
15020
|
+
label: string;
|
|
15021
|
+
value: string;
|
|
15022
|
+
};
|
|
15023
|
+
type SelectFormFieldProps = {
|
|
15024
|
+
name: string;
|
|
15025
|
+
label: string;
|
|
15026
|
+
required?: boolean;
|
|
15027
|
+
placeholder?: string;
|
|
15028
|
+
options: Option[];
|
|
15029
|
+
validation?: {
|
|
15030
|
+
validate?: (value: string) => boolean | string;
|
|
15031
|
+
};
|
|
15032
|
+
validationErrorMessage?: string;
|
|
15033
|
+
defaultValue?: string;
|
|
15034
|
+
};
|
|
15035
|
+
declare const SelectFormField: ({ name, label, required, placeholder, options, validation, validationErrorMessage, defaultValue, }: SelectFormFieldProps) => react_jsx_runtime.JSX.Element;
|
|
15036
|
+
|
|
15037
|
+
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, CountryFormField, 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, SelectFormField, type SelectFormFieldProps, 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.js
CHANGED
|
@@ -1062,6 +1062,7 @@ __export(index_exports, {
|
|
|
1062
1062
|
CheckboxItem: () => CheckboxItem,
|
|
1063
1063
|
Container: () => Container,
|
|
1064
1064
|
ContainerStyled: () => ContainerStyled,
|
|
1065
|
+
CountryFormField: () => CountryFormField,
|
|
1065
1066
|
Drawer: () => Drawer,
|
|
1066
1067
|
DropdownMenu: () => DropdownMenu2,
|
|
1067
1068
|
DropdownMenuItem: () => DropdownMenuItem,
|
|
@@ -1088,6 +1089,7 @@ __export(index_exports, {
|
|
|
1088
1089
|
RadioItem: () => RadioItem,
|
|
1089
1090
|
Section: () => Section,
|
|
1090
1091
|
SectionStyled: () => SectionStyled,
|
|
1092
|
+
SelectFormField: () => SelectFormField,
|
|
1091
1093
|
Step: () => Step,
|
|
1092
1094
|
StepContent: () => StepContent,
|
|
1093
1095
|
StepList: () => StepList,
|
|
@@ -3431,7 +3433,7 @@ var DropdownMenuStyled = styled("div", {
|
|
|
3431
3433
|
border: "1px solid $dark300",
|
|
3432
3434
|
borderRadius: "$xs",
|
|
3433
3435
|
padding: "$8 $12",
|
|
3434
|
-
width: "
|
|
3436
|
+
width: "100%",
|
|
3435
3437
|
display: "flex",
|
|
3436
3438
|
button: {
|
|
3437
3439
|
fontFamily: "$default",
|
|
@@ -3497,13 +3499,14 @@ var DropdownMenuContentStyled = styled(import_themes11.DropdownMenu.Content, {
|
|
|
3497
3499
|
border: "1px solid $dark300",
|
|
3498
3500
|
borderRadius: "$xs",
|
|
3499
3501
|
boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08)",
|
|
3500
|
-
width: "
|
|
3502
|
+
width: "100%",
|
|
3501
3503
|
minWidth: "100%",
|
|
3502
3504
|
marginTop: "3px",
|
|
3503
3505
|
maxHeight: "400px",
|
|
3504
3506
|
height: "100%",
|
|
3505
3507
|
position: "relative",
|
|
3506
|
-
overflow: "auto"
|
|
3508
|
+
overflow: "auto",
|
|
3509
|
+
zIndex: 9999999999
|
|
3507
3510
|
});
|
|
3508
3511
|
function DropdownMenu2(_a) {
|
|
3509
3512
|
var _b = _a, {
|
|
@@ -3541,6 +3544,7 @@ function DropdownMenu2(_a) {
|
|
|
3541
3544
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3542
3545
|
DropdownMenuContentStyled,
|
|
3543
3546
|
{
|
|
3547
|
+
container: document.body,
|
|
3544
3548
|
avoidCollisions: false,
|
|
3545
3549
|
align: "start",
|
|
3546
3550
|
alignOffset: -14,
|
|
@@ -9860,79 +9864,7 @@ var MultiSelectFormField = (_a) => {
|
|
|
9860
9864
|
|
|
9861
9865
|
// src/components/FormFields/PhoneFormField.tsx
|
|
9862
9866
|
var import_react_hook_form5 = require("react-hook-form");
|
|
9863
|
-
var import_react_international_phone = require("react-international-phone");
|
|
9864
|
-
var import_style = require("react-international-phone/style.css");
|
|
9865
9867
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
9866
|
-
var PhoneFormInput = styled(import_react_international_phone.PhoneInput, {
|
|
9867
|
-
$$borderColor: "$colors$neutral300",
|
|
9868
|
-
boxSizing: "border-box",
|
|
9869
|
-
borderRadius: "$sm",
|
|
9870
|
-
display: "flex",
|
|
9871
|
-
flex: 1,
|
|
9872
|
-
fontFamily: "$default",
|
|
9873
|
-
color: "$dark500",
|
|
9874
|
-
img: {
|
|
9875
|
-
width: "$18",
|
|
9876
|
-
height: "$18",
|
|
9877
|
-
marginLeft: "$8"
|
|
9878
|
-
},
|
|
9879
|
-
ul: {
|
|
9880
|
-
border: "none"
|
|
9881
|
-
},
|
|
9882
|
-
input: {
|
|
9883
|
-
height: "$40 !important",
|
|
9884
|
-
flex: 1,
|
|
9885
|
-
borderColor: "$$borderColor !important",
|
|
9886
|
-
borderTopRightRadius: "$sm !important",
|
|
9887
|
-
borderBottomRightRadius: "$sm !important",
|
|
9888
|
-
fontSize: "inherit !important",
|
|
9889
|
-
"&:focus": {
|
|
9890
|
-
$$borderColor: "$colors$brand300"
|
|
9891
|
-
}
|
|
9892
|
-
},
|
|
9893
|
-
button: {
|
|
9894
|
-
height: "$40 !important",
|
|
9895
|
-
borderRight: "none",
|
|
9896
|
-
borderTopLeftRadius: "$sm !important",
|
|
9897
|
-
borderBottomLeftRadius: "$sm !important",
|
|
9898
|
-
borderColor: "$$borderColor !important",
|
|
9899
|
-
marginRight: "0 !important",
|
|
9900
|
-
"&:active": {
|
|
9901
|
-
$$borderColor: "$colors$brand300"
|
|
9902
|
-
},
|
|
9903
|
-
div: {
|
|
9904
|
-
padding: "auto $12",
|
|
9905
|
-
gap: " $8px"
|
|
9906
|
-
}
|
|
9907
|
-
},
|
|
9908
|
-
"&:has(input:disabled)": {
|
|
9909
|
-
backgroundColor: "$dark100",
|
|
9910
|
-
color: "$dark400",
|
|
9911
|
-
$$borderColor: "$colors$dark200",
|
|
9912
|
-
cursor: "not-allowed",
|
|
9913
|
-
img: {
|
|
9914
|
-
opacity: 0.6
|
|
9915
|
-
},
|
|
9916
|
-
button: {
|
|
9917
|
-
$$borderColor: "$colors$dark200"
|
|
9918
|
-
}
|
|
9919
|
-
},
|
|
9920
|
-
variants: {
|
|
9921
|
-
typography: typographyValues,
|
|
9922
|
-
color: {
|
|
9923
|
-
default: {
|
|
9924
|
-
$$borderColor: "$colors$neutral300"
|
|
9925
|
-
},
|
|
9926
|
-
error: {
|
|
9927
|
-
$$borderColor: "$colors$error600"
|
|
9928
|
-
}
|
|
9929
|
-
}
|
|
9930
|
-
},
|
|
9931
|
-
defaultVariants: {
|
|
9932
|
-
typography: "labelSmall",
|
|
9933
|
-
color: "default"
|
|
9934
|
-
}
|
|
9935
|
-
});
|
|
9936
9868
|
var PhoneFormField = (_a) => {
|
|
9937
9869
|
var _b = _a, {
|
|
9938
9870
|
name,
|
|
@@ -9967,17 +9899,6 @@ var PhoneFormField = (_a) => {
|
|
|
9967
9899
|
haveError
|
|
9968
9900
|
}
|
|
9969
9901
|
),
|
|
9970
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
9971
|
-
PhoneFormInput,
|
|
9972
|
-
__spreadProps(__spreadValues(__spreadProps(__spreadValues({}, register(name, { required })), {
|
|
9973
|
-
defaultCountry,
|
|
9974
|
-
value: watch(name),
|
|
9975
|
-
color: haveError ? "error" : "default",
|
|
9976
|
-
onChange: handlePhoneChange
|
|
9977
|
-
}), props), {
|
|
9978
|
-
"aria-labelledby": `${name}-label`
|
|
9979
|
-
})
|
|
9980
|
-
),
|
|
9981
9902
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ErrorFormMessage, { message: errorMsg })
|
|
9982
9903
|
] });
|
|
9983
9904
|
};
|
|
@@ -10797,6 +10718,7 @@ var CheckboxGroupFormField = ({
|
|
|
10797
10718
|
CheckboxItem,
|
|
10798
10719
|
Container,
|
|
10799
10720
|
ContainerStyled,
|
|
10721
|
+
CountryFormField,
|
|
10800
10722
|
Drawer,
|
|
10801
10723
|
DropdownMenu,
|
|
10802
10724
|
DropdownMenuItem,
|
|
@@ -10823,6 +10745,7 @@ var CheckboxGroupFormField = ({
|
|
|
10823
10745
|
RadioItem,
|
|
10824
10746
|
Section,
|
|
10825
10747
|
SectionStyled,
|
|
10748
|
+
SelectFormField,
|
|
10826
10749
|
Step,
|
|
10827
10750
|
StepContent,
|
|
10828
10751
|
StepList,
|
package/dist/index.mjs
CHANGED
|
@@ -3327,7 +3327,7 @@ var DropdownMenuStyled = styled("div", {
|
|
|
3327
3327
|
border: "1px solid $dark300",
|
|
3328
3328
|
borderRadius: "$xs",
|
|
3329
3329
|
padding: "$8 $12",
|
|
3330
|
-
width: "
|
|
3330
|
+
width: "100%",
|
|
3331
3331
|
display: "flex",
|
|
3332
3332
|
button: {
|
|
3333
3333
|
fontFamily: "$default",
|
|
@@ -3393,13 +3393,14 @@ var DropdownMenuContentStyled = styled(DropdownMenuRadix.Content, {
|
|
|
3393
3393
|
border: "1px solid $dark300",
|
|
3394
3394
|
borderRadius: "$xs",
|
|
3395
3395
|
boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08)",
|
|
3396
|
-
width: "
|
|
3396
|
+
width: "100%",
|
|
3397
3397
|
minWidth: "100%",
|
|
3398
3398
|
marginTop: "3px",
|
|
3399
3399
|
maxHeight: "400px",
|
|
3400
3400
|
height: "100%",
|
|
3401
3401
|
position: "relative",
|
|
3402
|
-
overflow: "auto"
|
|
3402
|
+
overflow: "auto",
|
|
3403
|
+
zIndex: 9999999999
|
|
3403
3404
|
});
|
|
3404
3405
|
function DropdownMenu2(_a) {
|
|
3405
3406
|
var _b = _a, {
|
|
@@ -3437,6 +3438,7 @@ function DropdownMenu2(_a) {
|
|
|
3437
3438
|
/* @__PURE__ */ jsx11(
|
|
3438
3439
|
DropdownMenuContentStyled,
|
|
3439
3440
|
{
|
|
3441
|
+
container: document.body,
|
|
3440
3442
|
avoidCollisions: false,
|
|
3441
3443
|
align: "start",
|
|
3442
3444
|
alignOffset: -14,
|
|
@@ -9763,79 +9765,7 @@ var MultiSelectFormField = (_a) => {
|
|
|
9763
9765
|
|
|
9764
9766
|
// src/components/FormFields/PhoneFormField.tsx
|
|
9765
9767
|
import { useFormContext as useFormContext4 } from "react-hook-form";
|
|
9766
|
-
import { PhoneInput } from "react-international-phone";
|
|
9767
|
-
import "react-international-phone/style.css";
|
|
9768
9768
|
import { jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
9769
|
-
var PhoneFormInput = styled(PhoneInput, {
|
|
9770
|
-
$$borderColor: "$colors$neutral300",
|
|
9771
|
-
boxSizing: "border-box",
|
|
9772
|
-
borderRadius: "$sm",
|
|
9773
|
-
display: "flex",
|
|
9774
|
-
flex: 1,
|
|
9775
|
-
fontFamily: "$default",
|
|
9776
|
-
color: "$dark500",
|
|
9777
|
-
img: {
|
|
9778
|
-
width: "$18",
|
|
9779
|
-
height: "$18",
|
|
9780
|
-
marginLeft: "$8"
|
|
9781
|
-
},
|
|
9782
|
-
ul: {
|
|
9783
|
-
border: "none"
|
|
9784
|
-
},
|
|
9785
|
-
input: {
|
|
9786
|
-
height: "$40 !important",
|
|
9787
|
-
flex: 1,
|
|
9788
|
-
borderColor: "$$borderColor !important",
|
|
9789
|
-
borderTopRightRadius: "$sm !important",
|
|
9790
|
-
borderBottomRightRadius: "$sm !important",
|
|
9791
|
-
fontSize: "inherit !important",
|
|
9792
|
-
"&:focus": {
|
|
9793
|
-
$$borderColor: "$colors$brand300"
|
|
9794
|
-
}
|
|
9795
|
-
},
|
|
9796
|
-
button: {
|
|
9797
|
-
height: "$40 !important",
|
|
9798
|
-
borderRight: "none",
|
|
9799
|
-
borderTopLeftRadius: "$sm !important",
|
|
9800
|
-
borderBottomLeftRadius: "$sm !important",
|
|
9801
|
-
borderColor: "$$borderColor !important",
|
|
9802
|
-
marginRight: "0 !important",
|
|
9803
|
-
"&:active": {
|
|
9804
|
-
$$borderColor: "$colors$brand300"
|
|
9805
|
-
},
|
|
9806
|
-
div: {
|
|
9807
|
-
padding: "auto $12",
|
|
9808
|
-
gap: " $8px"
|
|
9809
|
-
}
|
|
9810
|
-
},
|
|
9811
|
-
"&:has(input:disabled)": {
|
|
9812
|
-
backgroundColor: "$dark100",
|
|
9813
|
-
color: "$dark400",
|
|
9814
|
-
$$borderColor: "$colors$dark200",
|
|
9815
|
-
cursor: "not-allowed",
|
|
9816
|
-
img: {
|
|
9817
|
-
opacity: 0.6
|
|
9818
|
-
},
|
|
9819
|
-
button: {
|
|
9820
|
-
$$borderColor: "$colors$dark200"
|
|
9821
|
-
}
|
|
9822
|
-
},
|
|
9823
|
-
variants: {
|
|
9824
|
-
typography: typographyValues,
|
|
9825
|
-
color: {
|
|
9826
|
-
default: {
|
|
9827
|
-
$$borderColor: "$colors$neutral300"
|
|
9828
|
-
},
|
|
9829
|
-
error: {
|
|
9830
|
-
$$borderColor: "$colors$error600"
|
|
9831
|
-
}
|
|
9832
|
-
}
|
|
9833
|
-
},
|
|
9834
|
-
defaultVariants: {
|
|
9835
|
-
typography: "labelSmall",
|
|
9836
|
-
color: "default"
|
|
9837
|
-
}
|
|
9838
|
-
});
|
|
9839
9769
|
var PhoneFormField = (_a) => {
|
|
9840
9770
|
var _b = _a, {
|
|
9841
9771
|
name,
|
|
@@ -9870,17 +9800,6 @@ var PhoneFormField = (_a) => {
|
|
|
9870
9800
|
haveError
|
|
9871
9801
|
}
|
|
9872
9802
|
),
|
|
9873
|
-
/* @__PURE__ */ jsx36(
|
|
9874
|
-
PhoneFormInput,
|
|
9875
|
-
__spreadProps(__spreadValues(__spreadProps(__spreadValues({}, register(name, { required })), {
|
|
9876
|
-
defaultCountry,
|
|
9877
|
-
value: watch(name),
|
|
9878
|
-
color: haveError ? "error" : "default",
|
|
9879
|
-
onChange: handlePhoneChange
|
|
9880
|
-
}), props), {
|
|
9881
|
-
"aria-labelledby": `${name}-label`
|
|
9882
|
-
})
|
|
9883
|
-
),
|
|
9884
9803
|
/* @__PURE__ */ jsx36(ErrorFormMessage, { message: errorMsg })
|
|
9885
9804
|
] });
|
|
9886
9805
|
};
|
|
@@ -10699,6 +10618,7 @@ export {
|
|
|
10699
10618
|
CheckboxItem,
|
|
10700
10619
|
Container,
|
|
10701
10620
|
ContainerStyled,
|
|
10621
|
+
CountryFormField,
|
|
10702
10622
|
Drawer,
|
|
10703
10623
|
DropdownMenu2 as DropdownMenu,
|
|
10704
10624
|
DropdownMenuItem,
|
|
@@ -10725,6 +10645,7 @@ export {
|
|
|
10725
10645
|
RadioItem,
|
|
10726
10646
|
Section,
|
|
10727
10647
|
SectionStyled,
|
|
10648
|
+
SelectFormField,
|
|
10728
10649
|
Step,
|
|
10729
10650
|
StepContent,
|
|
10730
10651
|
StepList,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lets-events/react",
|
|
3
|
-
"version": "11.6.
|
|
3
|
+
"version": "11.6.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
"npm": "^11.4.2",
|
|
42
42
|
"radix-ui": "^1.4.2",
|
|
43
43
|
"react-day-picker": "^9.6.7",
|
|
44
|
-
"react-hook-form": "^7.57.0"
|
|
45
|
-
"react-international-phone": "^4.5.0"
|
|
44
|
+
"react-hook-form": "^7.57.0"
|
|
46
45
|
}
|
|
47
46
|
}
|