@lets-events/react 12.2.6 → 12.2.7
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 +19 -21
- package/CHANGELOG.md +6 -0
- package/dist/index.css +171 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -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 +300 -300
- package/src/components/ButtonGroup.tsx +484 -484
- package/src/components/Calendar/index.tsx +146 -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 +92 -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
|
@@ -1,300 +1,300 @@
|
|
|
1
|
-
import { Button as ButtonRadix } from "@radix-ui/themes";
|
|
2
|
-
|
|
3
|
-
import { styled } from "../../styles";
|
|
4
|
-
|
|
5
|
-
export const ButtonStyled = styled(ButtonRadix, {
|
|
6
|
-
$$buttonColor: "inherit",
|
|
7
|
-
$$buttonBgColor: "$colors$grey50",
|
|
8
|
-
$$buttonBorderColor: "inherit",
|
|
9
|
-
$$buttonOutlinedColor: "inherit",
|
|
10
|
-
fontFamily: "$default",
|
|
11
|
-
letterSpacing: 0,
|
|
12
|
-
border: 0,
|
|
13
|
-
transition: "all 300ms ease-out",
|
|
14
|
-
cursor: "pointer",
|
|
15
|
-
borderRadius: "$xs",
|
|
16
|
-
boxShadow:
|
|
17
|
-
"0px 4px 4px 0px rgba(35, 53, 67, 0.08), 0px 2px 4px 0px rgba(35, 53, 67, 0.16)",
|
|
18
|
-
display: "flex",
|
|
19
|
-
alignItems: "center",
|
|
20
|
-
justifyContent: "center",
|
|
21
|
-
gap: "$10",
|
|
22
|
-
padding: "$6 $12",
|
|
23
|
-
"&:disabled": {
|
|
24
|
-
cursor: "not-allowed",
|
|
25
|
-
transition: "none",
|
|
26
|
-
},
|
|
27
|
-
variants: {
|
|
28
|
-
color: {
|
|
29
|
-
brand: {
|
|
30
|
-
$$buttonColor: "$colors$brand500",
|
|
31
|
-
$$buttonBorderColor: "$colors$brand600",
|
|
32
|
-
$$buttonOutlinedColor: "$$buttonColor",
|
|
33
|
-
"&:hover": {
|
|
34
|
-
$$buttonColor: "$colors$brand600",
|
|
35
|
-
$$buttonBorderColor: "$colors$brand700",
|
|
36
|
-
},
|
|
37
|
-
"&:focus": {
|
|
38
|
-
$$buttonColor: "$colors$brand400",
|
|
39
|
-
$$buttonBorderColor: "$colors$brand300",
|
|
40
|
-
$$buttonBgColor: "$colors$grey200",
|
|
41
|
-
},
|
|
42
|
-
"&:active": {
|
|
43
|
-
$$buttonColor: "$colors$brand500",
|
|
44
|
-
$$buttonBorderColor: "$colors$brand700",
|
|
45
|
-
$$buttonBgColor: "$colors$grey200",
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
purple: {
|
|
49
|
-
$$buttonColor: "$colors$purple500",
|
|
50
|
-
$$buttonBorderColor: "$colors$purple300",
|
|
51
|
-
$$buttonOutlinedColor: "$$buttonColor",
|
|
52
|
-
"&:hover": {
|
|
53
|
-
$$buttonColor: "$colors$purple600",
|
|
54
|
-
$$buttonBorderColor: "$colors$purple700",
|
|
55
|
-
$$buttonOutlinedColor: "$colors$purple500",
|
|
56
|
-
$$buttonBgColor: "$colors$purple50",
|
|
57
|
-
},
|
|
58
|
-
"&:focus": {
|
|
59
|
-
$$buttonColor: "$colors$purple700",
|
|
60
|
-
$$buttonOutlinedColor: "$colors$purple500",
|
|
61
|
-
$$buttonBgColor: "$colors$purple200",
|
|
62
|
-
$$buttonBorderColor: "$colors$purple400",
|
|
63
|
-
},
|
|
64
|
-
"&:active": {
|
|
65
|
-
$$buttonColor: "$colors$purple500",
|
|
66
|
-
$$buttonOutlinedColor: "$colors$purple500",
|
|
67
|
-
$$buttonBgColor: "$colors$purple100",
|
|
68
|
-
$$buttonBorderColor: "$colors$purple300",
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
error: {
|
|
72
|
-
$$buttonColor: "$colors$error600",
|
|
73
|
-
$$buttonBorderColor: "$colors$error500",
|
|
74
|
-
$$buttonOutlinedColor: " $colors$error500",
|
|
75
|
-
"&:hover": {
|
|
76
|
-
$$buttonColor: "$colors$error600",
|
|
77
|
-
$$buttonBorderColor: "$colors$error700",
|
|
78
|
-
$$buttonBgColor: "$colors$error50",
|
|
79
|
-
},
|
|
80
|
-
"&:focus": {
|
|
81
|
-
$$buttonColor: "$colors$error400",
|
|
82
|
-
$$buttonBorderColor: "$colors$error300",
|
|
83
|
-
$$buttonBgColor: "$colors$error200",
|
|
84
|
-
},
|
|
85
|
-
"&:active": {
|
|
86
|
-
$$buttonColor: "$colors$error700",
|
|
87
|
-
$$buttonBorderColor: "$colors$error700",
|
|
88
|
-
$$buttonBgColor: "$colors$re1050",
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
info: {
|
|
92
|
-
$$buttonColor: "$colors$info500",
|
|
93
|
-
$$buttonBorderColor: "$colors$info600",
|
|
94
|
-
$$buttonOutlinedColor: "$$buttonColor",
|
|
95
|
-
"&:hover": {
|
|
96
|
-
$$buttonColor: "$colors$info600",
|
|
97
|
-
$$buttonBorderColor: "$colors$info700",
|
|
98
|
-
$$buttonBgColor: "$colors$info50",
|
|
99
|
-
},
|
|
100
|
-
"&:focus": {
|
|
101
|
-
$$buttonColor: "$colors$info400",
|
|
102
|
-
$$buttonBorderColor: "$colors$info600",
|
|
103
|
-
$$buttonBgColor: "$colors$info200",
|
|
104
|
-
},
|
|
105
|
-
"&:active": {
|
|
106
|
-
$$buttonColor: "$colors$info700",
|
|
107
|
-
$$buttonBorderColor: "$colors$info700",
|
|
108
|
-
$$buttonBgColor: "$colors$info100",
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
success: {
|
|
112
|
-
$$buttonColor: "$colors$success500",
|
|
113
|
-
$$buttonBorderColor: "$colors$success600",
|
|
114
|
-
$$buttonOutlinedColor: "$$buttonColor",
|
|
115
|
-
"&:hover": {
|
|
116
|
-
$$buttonColor: "$colors$success600",
|
|
117
|
-
$$buttonBorderColor: "$colors$success700",
|
|
118
|
-
$$buttonBgColor: "$colors$success50",
|
|
119
|
-
},
|
|
120
|
-
"&:focus": {
|
|
121
|
-
$$buttonColor: "$colors$success400",
|
|
122
|
-
$$buttonBorderColor: "$colors$success600",
|
|
123
|
-
$$buttonBgColor: "$colors$success200",
|
|
124
|
-
},
|
|
125
|
-
"&:active": {
|
|
126
|
-
$$buttonColor: "$colors$success700",
|
|
127
|
-
$$buttonBorderColor: "$colors$success700",
|
|
128
|
-
$$buttonBgColor: "$colors$success100",
|
|
129
|
-
},
|
|
130
|
-
},
|
|
131
|
-
warning: {
|
|
132
|
-
$$buttonColor: "$colors$warning500",
|
|
133
|
-
$$buttonBorderColor: "$colors$warning600",
|
|
134
|
-
$$buttonOutlinedColor: "$$buttonColor",
|
|
135
|
-
"&:hover": {
|
|
136
|
-
$$buttonColor: "$colors$warning600",
|
|
137
|
-
$$buttonBorderColor: "$colors$warning700",
|
|
138
|
-
$$buttonBgColor: "$colors$warning50",
|
|
139
|
-
},
|
|
140
|
-
"&:focus": {
|
|
141
|
-
$$buttonColor: "$colors$warning400",
|
|
142
|
-
$$buttonBorderColor: "$colors$warning600",
|
|
143
|
-
$$buttonBgColor: "$colors$warning200",
|
|
144
|
-
},
|
|
145
|
-
"&:active": {
|
|
146
|
-
$$buttonColor: "$colors$warning700",
|
|
147
|
-
$$buttonBorderColor: "$colors$warning700",
|
|
148
|
-
$$buttonBgColor: "$colors$warning100",
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
|
-
neutral: {
|
|
152
|
-
$$buttonColor: "$colors$neutral600",
|
|
153
|
-
$$buttonBorderColor: "$colors$neutral300",
|
|
154
|
-
$$buttonOutlinedColor: "$$buttonColor",
|
|
155
|
-
"&:hover": {
|
|
156
|
-
$$buttonColor: "$colors$neutral700",
|
|
157
|
-
$$buttonBgColor: "$colors$neutral100",
|
|
158
|
-
$$buttonBorderColor: "$colors$neutral300",
|
|
159
|
-
},
|
|
160
|
-
"&:focus": {
|
|
161
|
-
$$buttonColor: "$colors$neutral800",
|
|
162
|
-
$$buttonBgColor: "$colors$neutral300",
|
|
163
|
-
$$buttonBorderColor: "$colors$neutral400",
|
|
164
|
-
},
|
|
165
|
-
"&:active": {
|
|
166
|
-
$$buttonColor: "$colors$neutral500",
|
|
167
|
-
$$buttonBgColor: "$colors$neutral300",
|
|
168
|
-
$$buttonBorderColor: "$colors$neutral400",
|
|
169
|
-
},
|
|
170
|
-
},
|
|
171
|
-
white: {
|
|
172
|
-
$$buttonColor: "$colors$neutral50",
|
|
173
|
-
$$buttonBorderColor: "$colors$neutral300",
|
|
174
|
-
$$buttonOutlinedColor: "$colors$neutral50",
|
|
175
|
-
"&:hover": {
|
|
176
|
-
$$buttonColor: "$colors$neutral100",
|
|
177
|
-
$$buttonBorderColor: "$colors$neutral300",
|
|
178
|
-
$$buttonBgColor: "$colors$neutral100",
|
|
179
|
-
},
|
|
180
|
-
"&:focus": {
|
|
181
|
-
$$buttonBorderColor: "$colors$neutral400",
|
|
182
|
-
$$buttonColor: "$colors$neutral300",
|
|
183
|
-
$$buttonBgColor: "$colors$neutral200",
|
|
184
|
-
},
|
|
185
|
-
"&:active": {
|
|
186
|
-
$$buttonColor: "$colors$neutral400",
|
|
187
|
-
$$buttonBorderColor: "$colors$neutral500",
|
|
188
|
-
$$buttonBgColor: "$colors$neutral300",
|
|
189
|
-
},
|
|
190
|
-
},
|
|
191
|
-
},
|
|
192
|
-
size: {
|
|
193
|
-
extraSmall: {
|
|
194
|
-
height: "$24",
|
|
195
|
-
fontSize: "$buttonExtraSmall",
|
|
196
|
-
lineHeight: "$buttonExtraSmall",
|
|
197
|
-
padding: "0 $12",
|
|
198
|
-
},
|
|
199
|
-
small: {
|
|
200
|
-
height: "30px",
|
|
201
|
-
fontSize: "$buttonSmall",
|
|
202
|
-
lineHeight: "$buttonSmall",
|
|
203
|
-
padding: "0 $14",
|
|
204
|
-
},
|
|
205
|
-
medium: {
|
|
206
|
-
height: "40px",
|
|
207
|
-
fontSize: "$buttonMedium",
|
|
208
|
-
lineHeight: "$buttonMedium",
|
|
209
|
-
padding: "0 $16",
|
|
210
|
-
},
|
|
211
|
-
large: {
|
|
212
|
-
height: "48px",
|
|
213
|
-
fontSize: "$buttonLarge",
|
|
214
|
-
lineHeight: "$buttonLarge",
|
|
215
|
-
padding: "0 $20",
|
|
216
|
-
},
|
|
217
|
-
},
|
|
218
|
-
variant: {
|
|
219
|
-
text: {
|
|
220
|
-
backgroundColor: "transparent",
|
|
221
|
-
boxShadow: "none",
|
|
222
|
-
padding: 0,
|
|
223
|
-
border: 0,
|
|
224
|
-
height: "unset",
|
|
225
|
-
color: "$$buttonColor",
|
|
226
|
-
},
|
|
227
|
-
contained: {
|
|
228
|
-
color: "$grey50",
|
|
229
|
-
backgroundColor: "$$buttonColor",
|
|
230
|
-
border: "1px solid $$buttonBorderColor",
|
|
231
|
-
"&:disabled": {
|
|
232
|
-
boxShadow: "none",
|
|
233
|
-
color: "$neutral400",
|
|
234
|
-
backgroundColor: "$neutral200",
|
|
235
|
-
$$buttonBorderColor: "$colors$neutral100",
|
|
236
|
-
},
|
|
237
|
-
},
|
|
238
|
-
outlined: {
|
|
239
|
-
color: "$$buttonOutlinedColor",
|
|
240
|
-
border: "1px solid $$buttonOutlinedColor",
|
|
241
|
-
backgroundColor: "$$buttonBgColor",
|
|
242
|
-
boxShadow: "none",
|
|
243
|
-
"&:disabled": {
|
|
244
|
-
boxShadow: "none",
|
|
245
|
-
borderColor: "$colors$neutral100",
|
|
246
|
-
$$buttonColor: "$colors$neutral300",
|
|
247
|
-
},
|
|
248
|
-
},
|
|
249
|
-
menuDropdownItem: {
|
|
250
|
-
backgroundColor: "transparent",
|
|
251
|
-
boxShadow: "none",
|
|
252
|
-
padding: "0.25rem 0.5rem",
|
|
253
|
-
border: 0,
|
|
254
|
-
height: "unset",
|
|
255
|
-
color: "$$buttonColor",
|
|
256
|
-
width: "100%",
|
|
257
|
-
borderRadius: 0,
|
|
258
|
-
whiteSpace: "nowrap",
|
|
259
|
-
"&:hover": {
|
|
260
|
-
backgroundColor: "$dark100",
|
|
261
|
-
},
|
|
262
|
-
},
|
|
263
|
-
},
|
|
264
|
-
fontWeight: {
|
|
265
|
-
regular: { fontWeight: "$regular" },
|
|
266
|
-
medium: { fontWeight: "$medium" },
|
|
267
|
-
semibold: { fontWeight: "$semibold" },
|
|
268
|
-
bold: { fontWeight: "$bold" },
|
|
269
|
-
},
|
|
270
|
-
outlinedBgColor: {
|
|
271
|
-
neutral: {},
|
|
272
|
-
transparent: {
|
|
273
|
-
|
|
274
|
-
},
|
|
275
|
-
},
|
|
276
|
-
radii: {
|
|
277
|
-
full: {
|
|
278
|
-
borderRadius: "$full",
|
|
279
|
-
},
|
|
280
|
-
},
|
|
281
|
-
},
|
|
282
|
-
|
|
283
|
-
compoundVariants: [
|
|
284
|
-
{
|
|
285
|
-
color: "neutral",
|
|
286
|
-
variant: "outlined",
|
|
287
|
-
css: {
|
|
288
|
-
border: "1px solid $$buttonBorderColor",
|
|
289
|
-
},
|
|
290
|
-
},
|
|
291
|
-
],
|
|
292
|
-
|
|
293
|
-
defaultVariants: {
|
|
294
|
-
variant: "contained",
|
|
295
|
-
color: "brand",
|
|
296
|
-
size: "medium",
|
|
297
|
-
fontWeight: "medium",
|
|
298
|
-
outlinedBgColor: "transparent",
|
|
299
|
-
},
|
|
300
|
-
});
|
|
1
|
+
import { Button as ButtonRadix } from "@radix-ui/themes";
|
|
2
|
+
|
|
3
|
+
import { styled } from "../../styles";
|
|
4
|
+
|
|
5
|
+
export const ButtonStyled = styled(ButtonRadix, {
|
|
6
|
+
$$buttonColor: "inherit",
|
|
7
|
+
$$buttonBgColor: "$colors$grey50",
|
|
8
|
+
$$buttonBorderColor: "inherit",
|
|
9
|
+
$$buttonOutlinedColor: "inherit",
|
|
10
|
+
fontFamily: "$default",
|
|
11
|
+
letterSpacing: 0,
|
|
12
|
+
border: 0,
|
|
13
|
+
transition: "all 300ms ease-out",
|
|
14
|
+
cursor: "pointer",
|
|
15
|
+
borderRadius: "$xs",
|
|
16
|
+
boxShadow:
|
|
17
|
+
"0px 4px 4px 0px rgba(35, 53, 67, 0.08), 0px 2px 4px 0px rgba(35, 53, 67, 0.16)",
|
|
18
|
+
display: "flex",
|
|
19
|
+
alignItems: "center",
|
|
20
|
+
justifyContent: "center",
|
|
21
|
+
gap: "$10",
|
|
22
|
+
padding: "$6 $12",
|
|
23
|
+
"&:disabled": {
|
|
24
|
+
cursor: "not-allowed",
|
|
25
|
+
transition: "none",
|
|
26
|
+
},
|
|
27
|
+
variants: {
|
|
28
|
+
color: {
|
|
29
|
+
brand: {
|
|
30
|
+
$$buttonColor: "$colors$brand500",
|
|
31
|
+
$$buttonBorderColor: "$colors$brand600",
|
|
32
|
+
$$buttonOutlinedColor: "$$buttonColor",
|
|
33
|
+
"&:hover": {
|
|
34
|
+
$$buttonColor: "$colors$brand600",
|
|
35
|
+
$$buttonBorderColor: "$colors$brand700",
|
|
36
|
+
},
|
|
37
|
+
"&:focus": {
|
|
38
|
+
$$buttonColor: "$colors$brand400",
|
|
39
|
+
$$buttonBorderColor: "$colors$brand300",
|
|
40
|
+
$$buttonBgColor: "$colors$grey200",
|
|
41
|
+
},
|
|
42
|
+
"&:active": {
|
|
43
|
+
$$buttonColor: "$colors$brand500",
|
|
44
|
+
$$buttonBorderColor: "$colors$brand700",
|
|
45
|
+
$$buttonBgColor: "$colors$grey200",
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
purple: {
|
|
49
|
+
$$buttonColor: "$colors$purple500",
|
|
50
|
+
$$buttonBorderColor: "$colors$purple300",
|
|
51
|
+
$$buttonOutlinedColor: "$$buttonColor",
|
|
52
|
+
"&:hover": {
|
|
53
|
+
$$buttonColor: "$colors$purple600",
|
|
54
|
+
$$buttonBorderColor: "$colors$purple700",
|
|
55
|
+
$$buttonOutlinedColor: "$colors$purple500",
|
|
56
|
+
$$buttonBgColor: "$colors$purple50",
|
|
57
|
+
},
|
|
58
|
+
"&:focus": {
|
|
59
|
+
$$buttonColor: "$colors$purple700",
|
|
60
|
+
$$buttonOutlinedColor: "$colors$purple500",
|
|
61
|
+
$$buttonBgColor: "$colors$purple200",
|
|
62
|
+
$$buttonBorderColor: "$colors$purple400",
|
|
63
|
+
},
|
|
64
|
+
"&:active": {
|
|
65
|
+
$$buttonColor: "$colors$purple500",
|
|
66
|
+
$$buttonOutlinedColor: "$colors$purple500",
|
|
67
|
+
$$buttonBgColor: "$colors$purple100",
|
|
68
|
+
$$buttonBorderColor: "$colors$purple300",
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
error: {
|
|
72
|
+
$$buttonColor: "$colors$error600",
|
|
73
|
+
$$buttonBorderColor: "$colors$error500",
|
|
74
|
+
$$buttonOutlinedColor: " $colors$error500",
|
|
75
|
+
"&:hover": {
|
|
76
|
+
$$buttonColor: "$colors$error600",
|
|
77
|
+
$$buttonBorderColor: "$colors$error700",
|
|
78
|
+
$$buttonBgColor: "$colors$error50",
|
|
79
|
+
},
|
|
80
|
+
"&:focus": {
|
|
81
|
+
$$buttonColor: "$colors$error400",
|
|
82
|
+
$$buttonBorderColor: "$colors$error300",
|
|
83
|
+
$$buttonBgColor: "$colors$error200",
|
|
84
|
+
},
|
|
85
|
+
"&:active": {
|
|
86
|
+
$$buttonColor: "$colors$error700",
|
|
87
|
+
$$buttonBorderColor: "$colors$error700",
|
|
88
|
+
$$buttonBgColor: "$colors$re1050",
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
info: {
|
|
92
|
+
$$buttonColor: "$colors$info500",
|
|
93
|
+
$$buttonBorderColor: "$colors$info600",
|
|
94
|
+
$$buttonOutlinedColor: "$$buttonColor",
|
|
95
|
+
"&:hover": {
|
|
96
|
+
$$buttonColor: "$colors$info600",
|
|
97
|
+
$$buttonBorderColor: "$colors$info700",
|
|
98
|
+
$$buttonBgColor: "$colors$info50",
|
|
99
|
+
},
|
|
100
|
+
"&:focus": {
|
|
101
|
+
$$buttonColor: "$colors$info400",
|
|
102
|
+
$$buttonBorderColor: "$colors$info600",
|
|
103
|
+
$$buttonBgColor: "$colors$info200",
|
|
104
|
+
},
|
|
105
|
+
"&:active": {
|
|
106
|
+
$$buttonColor: "$colors$info700",
|
|
107
|
+
$$buttonBorderColor: "$colors$info700",
|
|
108
|
+
$$buttonBgColor: "$colors$info100",
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
success: {
|
|
112
|
+
$$buttonColor: "$colors$success500",
|
|
113
|
+
$$buttonBorderColor: "$colors$success600",
|
|
114
|
+
$$buttonOutlinedColor: "$$buttonColor",
|
|
115
|
+
"&:hover": {
|
|
116
|
+
$$buttonColor: "$colors$success600",
|
|
117
|
+
$$buttonBorderColor: "$colors$success700",
|
|
118
|
+
$$buttonBgColor: "$colors$success50",
|
|
119
|
+
},
|
|
120
|
+
"&:focus": {
|
|
121
|
+
$$buttonColor: "$colors$success400",
|
|
122
|
+
$$buttonBorderColor: "$colors$success600",
|
|
123
|
+
$$buttonBgColor: "$colors$success200",
|
|
124
|
+
},
|
|
125
|
+
"&:active": {
|
|
126
|
+
$$buttonColor: "$colors$success700",
|
|
127
|
+
$$buttonBorderColor: "$colors$success700",
|
|
128
|
+
$$buttonBgColor: "$colors$success100",
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
warning: {
|
|
132
|
+
$$buttonColor: "$colors$warning500",
|
|
133
|
+
$$buttonBorderColor: "$colors$warning600",
|
|
134
|
+
$$buttonOutlinedColor: "$$buttonColor",
|
|
135
|
+
"&:hover": {
|
|
136
|
+
$$buttonColor: "$colors$warning600",
|
|
137
|
+
$$buttonBorderColor: "$colors$warning700",
|
|
138
|
+
$$buttonBgColor: "$colors$warning50",
|
|
139
|
+
},
|
|
140
|
+
"&:focus": {
|
|
141
|
+
$$buttonColor: "$colors$warning400",
|
|
142
|
+
$$buttonBorderColor: "$colors$warning600",
|
|
143
|
+
$$buttonBgColor: "$colors$warning200",
|
|
144
|
+
},
|
|
145
|
+
"&:active": {
|
|
146
|
+
$$buttonColor: "$colors$warning700",
|
|
147
|
+
$$buttonBorderColor: "$colors$warning700",
|
|
148
|
+
$$buttonBgColor: "$colors$warning100",
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
neutral: {
|
|
152
|
+
$$buttonColor: "$colors$neutral600",
|
|
153
|
+
$$buttonBorderColor: "$colors$neutral300",
|
|
154
|
+
$$buttonOutlinedColor: "$$buttonColor",
|
|
155
|
+
"&:hover": {
|
|
156
|
+
$$buttonColor: "$colors$neutral700",
|
|
157
|
+
$$buttonBgColor: "$colors$neutral100",
|
|
158
|
+
$$buttonBorderColor: "$colors$neutral300",
|
|
159
|
+
},
|
|
160
|
+
"&:focus": {
|
|
161
|
+
$$buttonColor: "$colors$neutral800",
|
|
162
|
+
$$buttonBgColor: "$colors$neutral300",
|
|
163
|
+
$$buttonBorderColor: "$colors$neutral400",
|
|
164
|
+
},
|
|
165
|
+
"&:active": {
|
|
166
|
+
$$buttonColor: "$colors$neutral500",
|
|
167
|
+
$$buttonBgColor: "$colors$neutral300",
|
|
168
|
+
$$buttonBorderColor: "$colors$neutral400",
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
white: {
|
|
172
|
+
$$buttonColor: "$colors$neutral50",
|
|
173
|
+
$$buttonBorderColor: "$colors$neutral300",
|
|
174
|
+
$$buttonOutlinedColor: "$colors$neutral50",
|
|
175
|
+
"&:hover": {
|
|
176
|
+
$$buttonColor: "$colors$neutral100",
|
|
177
|
+
$$buttonBorderColor: "$colors$neutral300",
|
|
178
|
+
$$buttonBgColor: "$colors$neutral100",
|
|
179
|
+
},
|
|
180
|
+
"&:focus": {
|
|
181
|
+
$$buttonBorderColor: "$colors$neutral400",
|
|
182
|
+
$$buttonColor: "$colors$neutral300",
|
|
183
|
+
$$buttonBgColor: "$colors$neutral200",
|
|
184
|
+
},
|
|
185
|
+
"&:active": {
|
|
186
|
+
$$buttonColor: "$colors$neutral400",
|
|
187
|
+
$$buttonBorderColor: "$colors$neutral500",
|
|
188
|
+
$$buttonBgColor: "$colors$neutral300",
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
size: {
|
|
193
|
+
extraSmall: {
|
|
194
|
+
height: "$24",
|
|
195
|
+
fontSize: "$buttonExtraSmall",
|
|
196
|
+
lineHeight: "$buttonExtraSmall",
|
|
197
|
+
padding: "0 $12",
|
|
198
|
+
},
|
|
199
|
+
small: {
|
|
200
|
+
height: "30px",
|
|
201
|
+
fontSize: "$buttonSmall",
|
|
202
|
+
lineHeight: "$buttonSmall",
|
|
203
|
+
padding: "0 $14",
|
|
204
|
+
},
|
|
205
|
+
medium: {
|
|
206
|
+
height: "40px",
|
|
207
|
+
fontSize: "$buttonMedium",
|
|
208
|
+
lineHeight: "$buttonMedium",
|
|
209
|
+
padding: "0 $16",
|
|
210
|
+
},
|
|
211
|
+
large: {
|
|
212
|
+
height: "48px",
|
|
213
|
+
fontSize: "$buttonLarge",
|
|
214
|
+
lineHeight: "$buttonLarge",
|
|
215
|
+
padding: "0 $20",
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
variant: {
|
|
219
|
+
text: {
|
|
220
|
+
backgroundColor: "transparent",
|
|
221
|
+
boxShadow: "none",
|
|
222
|
+
padding: 0,
|
|
223
|
+
border: 0,
|
|
224
|
+
height: "unset",
|
|
225
|
+
color: "$$buttonColor",
|
|
226
|
+
},
|
|
227
|
+
contained: {
|
|
228
|
+
color: "$grey50",
|
|
229
|
+
backgroundColor: "$$buttonColor",
|
|
230
|
+
border: "1px solid $$buttonBorderColor",
|
|
231
|
+
"&:disabled": {
|
|
232
|
+
boxShadow: "none",
|
|
233
|
+
color: "$neutral400",
|
|
234
|
+
backgroundColor: "$neutral200",
|
|
235
|
+
$$buttonBorderColor: "$colors$neutral100",
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
outlined: {
|
|
239
|
+
color: "$$buttonOutlinedColor",
|
|
240
|
+
border: "1px solid $$buttonOutlinedColor",
|
|
241
|
+
backgroundColor: "$$buttonBgColor",
|
|
242
|
+
boxShadow: "none",
|
|
243
|
+
"&:disabled": {
|
|
244
|
+
boxShadow: "none",
|
|
245
|
+
borderColor: "$colors$neutral100",
|
|
246
|
+
$$buttonColor: "$colors$neutral300",
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
menuDropdownItem: {
|
|
250
|
+
backgroundColor: "transparent",
|
|
251
|
+
boxShadow: "none",
|
|
252
|
+
padding: "0.25rem 0.5rem",
|
|
253
|
+
border: 0,
|
|
254
|
+
height: "unset",
|
|
255
|
+
color: "$$buttonColor",
|
|
256
|
+
width: "100%",
|
|
257
|
+
borderRadius: 0,
|
|
258
|
+
whiteSpace: "nowrap",
|
|
259
|
+
"&:hover": {
|
|
260
|
+
backgroundColor: "$dark100",
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
fontWeight: {
|
|
265
|
+
regular: { fontWeight: "$regular" },
|
|
266
|
+
medium: { fontWeight: "$medium" },
|
|
267
|
+
semibold: { fontWeight: "$semibold" },
|
|
268
|
+
bold: { fontWeight: "$bold" },
|
|
269
|
+
},
|
|
270
|
+
outlinedBgColor: {
|
|
271
|
+
neutral: {},
|
|
272
|
+
transparent: {
|
|
273
|
+
$$buttonBgColor: "transparent",
|
|
274
|
+
},
|
|
275
|
+
},
|
|
276
|
+
radii: {
|
|
277
|
+
full: {
|
|
278
|
+
borderRadius: "$full",
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
},
|
|
282
|
+
|
|
283
|
+
compoundVariants: [
|
|
284
|
+
{
|
|
285
|
+
color: "neutral",
|
|
286
|
+
variant: "outlined",
|
|
287
|
+
css: {
|
|
288
|
+
border: "1px solid $$buttonBorderColor",
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
],
|
|
292
|
+
|
|
293
|
+
defaultVariants: {
|
|
294
|
+
variant: "contained",
|
|
295
|
+
color: "brand",
|
|
296
|
+
size: "medium",
|
|
297
|
+
fontWeight: "medium",
|
|
298
|
+
outlinedBgColor: "transparent",
|
|
299
|
+
},
|
|
300
|
+
});
|