@lets-events/react 12.2.7 → 12.2.8
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 +21 -19
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +14 -7
- package/dist/index.mjs +14 -7
- package/package.json +2 -2
- 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 +300 -300
- package/src/components/ButtonGroup.tsx +484 -484
- package/src/components/Calendar/index.tsx +148 -146
- package/src/components/Calendar/styledComponents.ts +250 -250
- 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 +138 -138
- package/src/components/Drawer/styledComponents.ts +52 -52
- package/src/components/Dropdown.tsx +302 -302
- 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 +39 -39
- package/src/components/FormFields/AddressFormFields/StateFormField.tsx +32 -32
- package/src/components/FormFields/AddressFormFields/index.tsx +141 -141
- package/src/components/FormFields/BirthDateFormField.tsx +84 -84
- package/src/components/FormFields/CNPJFormField.tsx +87 -87
- package/src/components/FormFields/CPFFormField.tsx +78 -78
- package/src/components/FormFields/CalendarFormField.tsx +95 -92
- package/src/components/FormFields/CheckboxGroupFormField.tsx +91 -91
- package/src/components/FormFields/EmailFormField.tsx +27 -27
- package/src/components/FormFields/Form.tsx +39 -39
- package/src/components/FormFields/IdentityDocumentNumberFormField.tsx +32 -32
- package/src/components/FormFields/MultiSelectFormField.tsx +64 -64
- package/src/components/FormFields/PhoneFormField.tsx +40 -40
- package/src/components/FormFields/RadioGroupFormField.tsx +84 -84
- package/src/components/FormFields/RichEditorFormField.tsx +102 -102
- package/src/components/FormFields/SelectFormField.tsx +93 -93
- package/src/components/FormFields/SwitchFormField.tsx +46 -46
- package/src/components/FormFields/TextAreaFormField.tsx +57 -57
- package/src/components/FormFields/TextFormField.tsx +112 -112
- package/src/components/FormFields/TimePickerFormField.tsx +88 -88
- package/src/components/FormFields/subComponents/ErrorFormMessage.tsx +36 -36
- package/src/components/FormFields/subComponents/FormLabel.tsx +29 -29
- package/src/components/FormFields/utils/validation.ts +23 -23
- package/src/components/Grid.tsx +137 -137
- package/src/components/Icon.tsx +47 -47
- package/src/components/MenuDropdown/index.tsx +38 -38
- package/src/components/MenuDropdown/styledComponents.ts +31 -31
- package/src/components/Modal.tsx +90 -90
- package/src/components/MultiSelect/index.tsx +243 -243
- package/src/components/MultiSelect/styledComponents.ts +160 -160
- package/src/components/RadioGroup.tsx +210 -210
- package/src/components/RichEditor/QuillComponent.tsx +458 -458
- package/src/components/RichEditor/RichEditor.tsx +49 -49
- package/src/components/RichEditor/index.ts +2 -2
- package/src/components/RichEditor/styledComponents.ts +1151 -1151
- 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 +372 -372
- package/src/components/TextareaField.tsx +127 -127
- package/src/components/TimePicker.tsx +328 -328
- 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/useImageUpload.ts +139 -139
- package/src/hooks/useOnClickOutside.tsx +42 -42
- package/src/index.tsx +68 -68
- 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/src/utils/uploadService.ts +180 -180
- package/tsconfig.json +3 -3
- package/tsup.config.ts +38 -38
- package/dist/index.css +0 -171
|
@@ -1,161 +1,161 @@
|
|
|
1
|
-
import { DropdownMenu } from "@radix-ui/themes";
|
|
2
|
-
import { styled } from "../../styles";
|
|
3
|
-
import { CSS } from "@stitches/react";
|
|
4
|
-
import { Flex } from "../Flex";
|
|
5
|
-
import { Text } from "../Text";
|
|
6
|
-
|
|
7
|
-
export const StyledContent = styled(DropdownMenu.Content, {
|
|
8
|
-
backgroundColor: "$dark50",
|
|
9
|
-
borderRadius: "$sm",
|
|
10
|
-
padding: "$8 0",
|
|
11
|
-
boxShadow: "0px 2px 4px 0px #23354329, 0px 4px 4px 0px #23354314",
|
|
12
|
-
boxSizing: "border-box",
|
|
13
|
-
border: "1px solid $dark300",
|
|
14
|
-
zIndex: 999999,
|
|
15
|
-
minWidth: "var(--radix-dropdown-menu-trigger-width)",
|
|
16
|
-
maxWidth: "var(--radix-dropdown-menu-trigger-width)",
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
export const StyledTrigger = styled("div", {
|
|
20
|
-
minHeight: "40px",
|
|
21
|
-
borderRadius: "$sm",
|
|
22
|
-
cursor: "pointer",
|
|
23
|
-
display: "flex",
|
|
24
|
-
justifyContent: "start",
|
|
25
|
-
alignItems: "center",
|
|
26
|
-
padding: "$6 $14",
|
|
27
|
-
boxSizing: "border-box",
|
|
28
|
-
gap: "4px",
|
|
29
|
-
width: "100%",
|
|
30
|
-
|
|
31
|
-
variants: {
|
|
32
|
-
color: {
|
|
33
|
-
default: {
|
|
34
|
-
border: "1px solid $dark300",
|
|
35
|
-
},
|
|
36
|
-
error: {
|
|
37
|
-
border: "1px solid $error400",
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
disabled: {
|
|
41
|
-
true: {
|
|
42
|
-
cursor: "not-allowed",
|
|
43
|
-
border: "1px solid $dark100",
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
defaultVariants: {
|
|
49
|
-
color: "default",
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
export const itemStyle: CSS = {
|
|
54
|
-
padding: "$4 $16",
|
|
55
|
-
minHeight: "$32",
|
|
56
|
-
boxSizing: "border-box",
|
|
57
|
-
backgroundColor: "$dark50",
|
|
58
|
-
display: "block",
|
|
59
|
-
cursor: "pointer",
|
|
60
|
-
|
|
61
|
-
"&:hover": {
|
|
62
|
-
backgroundColor: "$dark100",
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export const StyledItem = styled("div", {
|
|
67
|
-
...itemStyle,
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
export const CloseBtnStyled = styled("button", {
|
|
71
|
-
cursor: "pointer",
|
|
72
|
-
background: "none",
|
|
73
|
-
border: "none",
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
export const StyledFlexWithMaxHeight = styled(Flex, {
|
|
77
|
-
variants: {
|
|
78
|
-
hasMaxHeight: {
|
|
79
|
-
true: {
|
|
80
|
-
overflowY: "auto",
|
|
81
|
-
"&::-webkit-scrollbar": {
|
|
82
|
-
width: "4px",
|
|
83
|
-
},
|
|
84
|
-
"&::-webkit-scrollbar-track": {
|
|
85
|
-
backgroundColor: "$dark100",
|
|
86
|
-
borderRadius: "2px",
|
|
87
|
-
},
|
|
88
|
-
"&::-webkit-scrollbar-thumb": {
|
|
89
|
-
backgroundColor: "$dark300",
|
|
90
|
-
borderRadius: "2px",
|
|
91
|
-
"&:hover": {
|
|
92
|
-
backgroundColor: "$dark400",
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
defaultVariants: {
|
|
100
|
-
hasMaxHeight: false,
|
|
101
|
-
},
|
|
102
|
-
});
|
|
103
|
-
export const StyledFlexSelectedItems = styled(Flex, {
|
|
104
|
-
overflowY: "auto",
|
|
105
|
-
margin: "8px 0",
|
|
106
|
-
"&::-webkit-scrollbar": {
|
|
107
|
-
width: "4px",
|
|
108
|
-
},
|
|
109
|
-
"&::-webkit-scrollbar-track": {
|
|
110
|
-
backgroundColor: "$dark100",
|
|
111
|
-
borderRadius: "2px",
|
|
112
|
-
},
|
|
113
|
-
"&::-webkit-scrollbar-thumb": {
|
|
114
|
-
backgroundColor: "$dark300",
|
|
115
|
-
borderRadius: "2px",
|
|
116
|
-
"&:hover": {
|
|
117
|
-
backgroundColor: "$dark400",
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
|
-
});
|
|
121
|
-
export const StyledText = styled(Text, {
|
|
122
|
-
flex: 1,
|
|
123
|
-
overflow: "hidden",
|
|
124
|
-
whiteSpace: "nowrap",
|
|
125
|
-
textOverflow: "ellipsis",
|
|
126
|
-
});
|
|
127
|
-
export const ButtonSelectAllStyled = styled("button", {
|
|
128
|
-
display: "flex !important",
|
|
129
|
-
alignItems: "center",
|
|
130
|
-
justifyContent: "flex-start",
|
|
131
|
-
gap: "$8",
|
|
132
|
-
border: "none",
|
|
133
|
-
"div": {
|
|
134
|
-
backgroundCcolor: "#fff",
|
|
135
|
-
borderRadius: "2px",
|
|
136
|
-
height: "$16",
|
|
137
|
-
width: "$16",
|
|
138
|
-
position: "relative",
|
|
139
|
-
border: "2px solid $dark300",
|
|
140
|
-
cursor: "pointer",
|
|
141
|
-
boxSizing: "border-box",
|
|
142
|
-
"&.checked::before": {
|
|
143
|
-
backgroundImage:
|
|
144
|
-
"url(\"data:image/svg+xml,%3Csvg%20width='16'%20height='16'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cpath%20d='M2%200C0.896875%200%200%200.896875%200%202V12C0%2013.1031%200.896875%2014%202%2014H12C13.1031%2014%2014%2013.1031%2014%2012V2C14%200.896875%2013.1031%200%2012%200H2ZM10.5312%205.53125L6.53125%209.53125C6.2375%209.825%205.7625%209.825%205.47188%209.53125L3.47187%207.53125C3.17812%207.2375%203.17812%206.7625%203.47187%206.47188C3.76562%206.18125%204.24062%206.17813%204.53125%206.47188L6%207.94063L9.46875%204.46875C9.7625%204.175%2010.2375%204.175%2010.5281%204.46875C10.8187%204.7625%2010.8219%205.2375%2010.5281%205.52812L10.5312%205.53125Z'%20fill='%23004ED2'/%3E%3C/svg%3E\")",
|
|
145
|
-
content: "",
|
|
146
|
-
width: "1rem",
|
|
147
|
-
height: "1rem",
|
|
148
|
-
position: "absolute",
|
|
149
|
-
top: "-1px",
|
|
150
|
-
right: "-2px",
|
|
151
|
-
zIndex: "2",
|
|
152
|
-
backgroundRepeat: "no-repeat",
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
"&:hover": {
|
|
156
|
-
"div": {
|
|
157
|
-
transition: "all 300ms ease-out",
|
|
158
|
-
boxShadow: "rgba(56, 129, 255, 0.5) 0px 0px 0px 4px",
|
|
159
|
-
}
|
|
160
|
-
},
|
|
1
|
+
import { DropdownMenu } from "@radix-ui/themes";
|
|
2
|
+
import { styled } from "../../styles";
|
|
3
|
+
import { CSS } from "@stitches/react";
|
|
4
|
+
import { Flex } from "../Flex";
|
|
5
|
+
import { Text } from "../Text";
|
|
6
|
+
|
|
7
|
+
export const StyledContent = styled(DropdownMenu.Content, {
|
|
8
|
+
backgroundColor: "$dark50",
|
|
9
|
+
borderRadius: "$sm",
|
|
10
|
+
padding: "$8 0",
|
|
11
|
+
boxShadow: "0px 2px 4px 0px #23354329, 0px 4px 4px 0px #23354314",
|
|
12
|
+
boxSizing: "border-box",
|
|
13
|
+
border: "1px solid $dark300",
|
|
14
|
+
zIndex: 999999,
|
|
15
|
+
minWidth: "var(--radix-dropdown-menu-trigger-width)",
|
|
16
|
+
maxWidth: "var(--radix-dropdown-menu-trigger-width)",
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export const StyledTrigger = styled("div", {
|
|
20
|
+
minHeight: "40px",
|
|
21
|
+
borderRadius: "$sm",
|
|
22
|
+
cursor: "pointer",
|
|
23
|
+
display: "flex",
|
|
24
|
+
justifyContent: "start",
|
|
25
|
+
alignItems: "center",
|
|
26
|
+
padding: "$6 $14",
|
|
27
|
+
boxSizing: "border-box",
|
|
28
|
+
gap: "4px",
|
|
29
|
+
width: "100%",
|
|
30
|
+
|
|
31
|
+
variants: {
|
|
32
|
+
color: {
|
|
33
|
+
default: {
|
|
34
|
+
border: "1px solid $dark300",
|
|
35
|
+
},
|
|
36
|
+
error: {
|
|
37
|
+
border: "1px solid $error400",
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
disabled: {
|
|
41
|
+
true: {
|
|
42
|
+
cursor: "not-allowed",
|
|
43
|
+
border: "1px solid $dark100",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
defaultVariants: {
|
|
49
|
+
color: "default",
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export const itemStyle: CSS = {
|
|
54
|
+
padding: "$4 $16",
|
|
55
|
+
minHeight: "$32",
|
|
56
|
+
boxSizing: "border-box",
|
|
57
|
+
backgroundColor: "$dark50",
|
|
58
|
+
display: "block",
|
|
59
|
+
cursor: "pointer",
|
|
60
|
+
|
|
61
|
+
"&:hover": {
|
|
62
|
+
backgroundColor: "$dark100",
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export const StyledItem = styled("div", {
|
|
67
|
+
...itemStyle,
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
export const CloseBtnStyled = styled("button", {
|
|
71
|
+
cursor: "pointer",
|
|
72
|
+
background: "none",
|
|
73
|
+
border: "none",
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
export const StyledFlexWithMaxHeight = styled(Flex, {
|
|
77
|
+
variants: {
|
|
78
|
+
hasMaxHeight: {
|
|
79
|
+
true: {
|
|
80
|
+
overflowY: "auto",
|
|
81
|
+
"&::-webkit-scrollbar": {
|
|
82
|
+
width: "4px",
|
|
83
|
+
},
|
|
84
|
+
"&::-webkit-scrollbar-track": {
|
|
85
|
+
backgroundColor: "$dark100",
|
|
86
|
+
borderRadius: "2px",
|
|
87
|
+
},
|
|
88
|
+
"&::-webkit-scrollbar-thumb": {
|
|
89
|
+
backgroundColor: "$dark300",
|
|
90
|
+
borderRadius: "2px",
|
|
91
|
+
"&:hover": {
|
|
92
|
+
backgroundColor: "$dark400",
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
defaultVariants: {
|
|
100
|
+
hasMaxHeight: false,
|
|
101
|
+
},
|
|
102
|
+
});
|
|
103
|
+
export const StyledFlexSelectedItems = styled(Flex, {
|
|
104
|
+
overflowY: "auto",
|
|
105
|
+
margin: "8px 0",
|
|
106
|
+
"&::-webkit-scrollbar": {
|
|
107
|
+
width: "4px",
|
|
108
|
+
},
|
|
109
|
+
"&::-webkit-scrollbar-track": {
|
|
110
|
+
backgroundColor: "$dark100",
|
|
111
|
+
borderRadius: "2px",
|
|
112
|
+
},
|
|
113
|
+
"&::-webkit-scrollbar-thumb": {
|
|
114
|
+
backgroundColor: "$dark300",
|
|
115
|
+
borderRadius: "2px",
|
|
116
|
+
"&:hover": {
|
|
117
|
+
backgroundColor: "$dark400",
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
});
|
|
121
|
+
export const StyledText = styled(Text, {
|
|
122
|
+
flex: 1,
|
|
123
|
+
overflow: "hidden",
|
|
124
|
+
whiteSpace: "nowrap",
|
|
125
|
+
textOverflow: "ellipsis",
|
|
126
|
+
});
|
|
127
|
+
export const ButtonSelectAllStyled = styled("button", {
|
|
128
|
+
display: "flex !important",
|
|
129
|
+
alignItems: "center",
|
|
130
|
+
justifyContent: "flex-start",
|
|
131
|
+
gap: "$8",
|
|
132
|
+
border: "none",
|
|
133
|
+
"div": {
|
|
134
|
+
backgroundCcolor: "#fff",
|
|
135
|
+
borderRadius: "2px",
|
|
136
|
+
height: "$16",
|
|
137
|
+
width: "$16",
|
|
138
|
+
position: "relative",
|
|
139
|
+
border: "2px solid $dark300",
|
|
140
|
+
cursor: "pointer",
|
|
141
|
+
boxSizing: "border-box",
|
|
142
|
+
"&.checked::before": {
|
|
143
|
+
backgroundImage:
|
|
144
|
+
"url(\"data:image/svg+xml,%3Csvg%20width='16'%20height='16'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cpath%20d='M2%200C0.896875%200%200%200.896875%200%202V12C0%2013.1031%200.896875%2014%202%2014H12C13.1031%2014%2014%2013.1031%2014%2012V2C14%200.896875%2013.1031%200%2012%200H2ZM10.5312%205.53125L6.53125%209.53125C6.2375%209.825%205.7625%209.825%205.47188%209.53125L3.47187%207.53125C3.17812%207.2375%203.17812%206.7625%203.47187%206.47188C3.76562%206.18125%204.24062%206.17813%204.53125%206.47188L6%207.94063L9.46875%204.46875C9.7625%204.175%2010.2375%204.175%2010.5281%204.46875C10.8187%204.7625%2010.8219%205.2375%2010.5281%205.52812L10.5312%205.53125Z'%20fill='%23004ED2'/%3E%3C/svg%3E\")",
|
|
145
|
+
content: "",
|
|
146
|
+
width: "1rem",
|
|
147
|
+
height: "1rem",
|
|
148
|
+
position: "absolute",
|
|
149
|
+
top: "-1px",
|
|
150
|
+
right: "-2px",
|
|
151
|
+
zIndex: "2",
|
|
152
|
+
backgroundRepeat: "no-repeat",
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"&:hover": {
|
|
156
|
+
"div": {
|
|
157
|
+
transition: "all 300ms ease-out",
|
|
158
|
+
boxShadow: "rgba(56, 129, 255, 0.5) 0px 0px 0px 4px",
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
161
|
});
|