@lets-events/react 12.11.2 → 12.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/.eslintrc.json +2 -2
  2. package/.turbo/turbo-build.log +24 -21
  3. package/CHANGELOG.md +6 -0
  4. package/dist/index.js +171 -139
  5. package/dist/index.mjs +171 -139
  6. package/package.json +1 -1
  7. package/src/components/Alert.tsx +303 -303
  8. package/src/components/Avatar.tsx +55 -55
  9. package/src/components/Badge.tsx +132 -132
  10. package/src/components/Box.tsx +3 -3
  11. package/src/components/Button/index.tsx +85 -85
  12. package/src/components/Button/styledComponents.ts +361 -361
  13. package/src/components/ButtonGroup.tsx +484 -484
  14. package/src/components/Calendar/index.tsx +172 -168
  15. package/src/components/Calendar/styledComponents.ts +508 -480
  16. package/src/components/Card.tsx +74 -74
  17. package/src/components/CheckboxGroup.tsx +176 -176
  18. package/src/components/Container.tsx +39 -39
  19. package/src/components/Divider.tsx +7 -7
  20. package/src/components/DoubleCalendar/index.tsx +208 -204
  21. package/src/components/Drawer/index.tsx +113 -113
  22. package/src/components/Drawer/styledComponents.ts +97 -97
  23. package/src/components/Dropdown.tsx +302 -302
  24. package/src/components/Filter.tsx +164 -164
  25. package/src/components/Flex.tsx +130 -130
  26. package/src/components/FormFields/AddressFormFields/CityFormField.tsx +111 -111
  27. package/src/components/FormFields/AddressFormFields/CountryFormField.tsx +33 -33
  28. package/src/components/FormFields/AddressFormFields/PostalCodeFormField.tsx +39 -39
  29. package/src/components/FormFields/AddressFormFields/StateFormField.tsx +32 -32
  30. package/src/components/FormFields/AddressFormFields/index.tsx +141 -141
  31. package/src/components/FormFields/BirthDateFormField.tsx +84 -84
  32. package/src/components/FormFields/CNPJFormField.tsx +87 -87
  33. package/src/components/FormFields/CPFFormField.tsx +78 -78
  34. package/src/components/FormFields/CalendarFormField.tsx +98 -98
  35. package/src/components/FormFields/CheckboxGroupFormField.tsx +91 -91
  36. package/src/components/FormFields/DateAndTimeFormField.tsx +217 -217
  37. package/src/components/FormFields/DoubleCalendarFormField.tsx +96 -96
  38. package/src/components/FormFields/EmailFormField.tsx +27 -27
  39. package/src/components/FormFields/Form.tsx +39 -39
  40. package/src/components/FormFields/IdentityDocumentNumberFormField.tsx +32 -32
  41. package/src/components/FormFields/MultiSelectFormField.tsx +64 -64
  42. package/src/components/FormFields/PhoneFormField.tsx +40 -40
  43. package/src/components/FormFields/RadioGroupFormField.tsx +88 -88
  44. package/src/components/FormFields/RichEditorFormField.tsx +128 -128
  45. package/src/components/FormFields/SelectFormField.tsx +113 -113
  46. package/src/components/FormFields/SwitchFormField.tsx +46 -46
  47. package/src/components/FormFields/TextAreaFormField.tsx +61 -61
  48. package/src/components/FormFields/TextFormField.tsx +112 -112
  49. package/src/components/FormFields/TimePickerFormField.tsx +88 -88
  50. package/src/components/FormFields/subComponents/ErrorFormMessage.tsx +36 -36
  51. package/src/components/FormFields/subComponents/FormLabel.tsx +36 -36
  52. package/src/components/FormFields/utils/validation.ts +23 -23
  53. package/src/components/Grid.tsx +137 -137
  54. package/src/components/Icon.tsx +47 -47
  55. package/src/components/MenuDropdown/index.tsx +38 -38
  56. package/src/components/MenuDropdown/styledComponents.ts +31 -31
  57. package/src/components/Modal.tsx +135 -135
  58. package/src/components/MultiSelect/index.tsx +418 -418
  59. package/src/components/MultiSelect/styledComponents.ts +176 -176
  60. package/src/components/RadioGroup.tsx +210 -210
  61. package/src/components/RichEditor/QuillComponent.tsx +419 -419
  62. package/src/components/RichEditor/RichEditor.tsx +53 -53
  63. package/src/components/RichEditor/RichTextPresenter.tsx +18 -18
  64. package/src/components/RichEditor/editorConfig.ts +149 -149
  65. package/src/components/RichEditor/index.ts +3 -3
  66. package/src/components/RichEditor/styledComponents.ts +1175 -1175
  67. package/src/components/RichEditor/types.ts +12 -12
  68. package/src/components/Section.tsx +33 -33
  69. package/src/components/Step.tsx +164 -164
  70. package/src/components/Switch.tsx +108 -108
  71. package/src/components/Text.tsx +54 -54
  72. package/src/components/TextField.tsx +423 -423
  73. package/src/components/TextareaField.tsx +116 -116
  74. package/src/components/TimePicker.tsx +357 -357
  75. package/src/components/Toast/components/ToastItem.tsx +41 -41
  76. package/src/components/Toast/components/ToastProvider.tsx +63 -63
  77. package/src/components/Toast/hooks/useToast.ts +12 -12
  78. package/src/components/Toast/index.tsx +5 -5
  79. package/src/components/Toast/styles/index.ts +135 -135
  80. package/src/components/Toast/types/index.ts +46 -46
  81. package/src/components/ToggleElement/index.tsx +58 -58
  82. package/src/components/Tooltip/index.tsx +126 -126
  83. package/src/components/Tooltip/styles.ts +77 -77
  84. package/src/hooks/useCountries.ts +41 -41
  85. package/src/hooks/useHasHover.ts +21 -21
  86. package/src/hooks/useImageUpload.ts +139 -139
  87. package/src/hooks/useMediaQuery.ts +19 -19
  88. package/src/hooks/useOnClickOutside.tsx +42 -42
  89. package/src/index.tsx +72 -72
  90. package/src/styles/index.ts +41 -41
  91. package/src/types/typographyValues.ts +178 -178
  92. package/src/utils/getNestedValue.ts +3 -3
  93. package/src/utils/states.ts +29 -29
  94. package/src/utils/uploadService.ts +180 -180
  95. package/tsconfig.json +3 -3
  96. package/tsup.config.ts +38 -38
@@ -1,480 +1,508 @@
1
- import { styled } from "../../styles";
2
-
3
- export const CalendarStyled = styled("div", {
4
- fontFamily: "$default",
5
- lineHeight: "$base",
6
- fontSize: "$14",
7
- borderRadius: "$sm",
8
- position: "relative",
9
- width: "fit-content",
10
- variants: {
11
- expand: {
12
- true: {
13
- width: "100%",
14
- flex: "1",
15
- display: "flex",
16
- },
17
- },
18
- },
19
- });
20
- export const CalendarButtonStyled = styled("button", {
21
- backgroundColor: "transparent",
22
- border: "none",
23
- maxWidth: "200px",
24
- padding: "0",
25
- cursor: "pointer",
26
- "> div > div": {
27
- paddingLeft: "0",
28
- input: {
29
- textAlign: "right",
30
- },
31
- },
32
- variants: {
33
- expand: {
34
- true: {
35
- flex: "1",
36
- display: "flex",
37
- maxWidth: "100%",
38
- },
39
- },
40
- },
41
- });
42
- export const CalendarContentStyled = styled("div", {
43
- fontFamily: "$default",
44
- lineHeight: "$base",
45
- fontSize: "$14",
46
- maxWidth: "fit-content",
47
- border: "1px solid $neutral300",
48
- borderRadius: "$sm",
49
- boxShadow: "0px 2px 8px 0px $shadow50",
50
- position: "absolute",
51
- backgroundColor: "$neutral50",
52
- zIndex: "999999",
53
- variants: {
54
- position: {
55
- top: {
56
- bottom: "110%",
57
- left: "0",
58
- },
59
- bottom: {
60
- top: "110%",
61
- left: "0",
62
- },
63
- "top-right": {
64
- bottom: "110%",
65
- right: "0",
66
- },
67
- "bottom-right": {
68
- top: "110%",
69
- right: "0",
70
- },
71
- },
72
- },
73
- });
74
-
75
- export const CalendarFooterStyled = styled("div", {
76
- borderTop: "2px solid $neutral100",
77
- padding: "$4 $16",
78
- display: "flex",
79
- gap: "1rem",
80
- alignItems: "center",
81
- height: "3rem",
82
- variants: {
83
- actionAlign: {
84
- left: {
85
- justifyContent: "flex-start",
86
- },
87
- center: {
88
- justifyContent: "center",
89
- },
90
- right: {
91
- justifyContent: "flex-end",
92
- },
93
- },
94
- },
95
- defaultVariants: {
96
- actionAlign: "right",
97
- },
98
- "@media (max-width: 748px)": {
99
- gap: "0",
100
- padding: "$4 $12",
101
- "> div": {
102
- padding: "0!important",
103
- },
104
- },
105
- });
106
-
107
- export const DayPickerWrapperStyled = styled("div", {
108
- ".rt-TextFieldInput": {
109
- fontFamily: "$default",
110
- fontSize: "$14",
111
- color: "$dark500",
112
- },
113
- ".rdp-root": {
114
- padding: "0 $8",
115
- },
116
- ".rdp-today .rdp-day_button": {
117
- color: "$brand500",
118
- textDecoration: "underline",
119
- },
120
- ".rdp-day.rdp-disabled .rdp-day_button": {
121
- color: "$dark400",
122
- },
123
- ".rdp-day_button": {
124
- height: "32px",
125
- width: "32px",
126
- borderRadius: "$sm",
127
- fontSize: "$14",
128
- color: "$text",
129
- backgroundColor: "transparent",
130
- border: "1px solid transparent",
131
- transition: "all 0.2s ease-in-out",
132
- cursor: "pointer",
133
- display: "flex",
134
- alignItems: "center",
135
- justifyContent: "center",
136
- },
137
- ".rdp-day_button:hover": {
138
- backgroundColor: "$dark100",
139
- borderColor: "$brand600",
140
- },
141
- ".rdp-day.rdp-disabled .rdp-day_button:hover": {
142
- backgroundColor: "transparent",
143
- borderColor: "transparent",
144
- },
145
- ".rdp-nav": {
146
- position: "absolute",
147
- width: "100%",
148
- left: "0",
149
- display: "flex",
150
- justifyContent: "space-between",
151
- },
152
- ".rdp-nav .rdp-chevron": {
153
- display: "none",
154
- },
155
- ".rdp-nav .rdp-button_previous": {
156
- display: "block",
157
- backgroundImage:
158
- "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%3E%3Cg%20transform='scale(-1,1)%20translate(-32,0)'%3E%3Cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H24C28.4183%200%2032%203.58172%2032%208V24C32%2028.4183%2028.4183%2032%2024%2032H8C3.58172%2032%200%2028.4183%200%2024V8Z'%20fill='white'/%3E%3Cpath%20d='M19.7062%2015.2938C20.0969%2015.6844%2020.0969%2016.3188%2019.7062%2016.7094L14.7062%2021.7094C14.3156%2022.1%2013.6812%2022.1%2013.2906%2021.7094C12.9%2021.3188%2012.9%2020.6844%2013.2906%2020.2938L17.5844%2016L13.2937%2011.7063C12.9031%2011.3156%2012.9031%2010.6813%2013.2937%2010.2906C13.6844%209.90002%2014.3187%209.90002%2014.7094%2010.2906L19.7094%2015.2906L19.7062%2015.2938Z'%20fill='%23808289'/%3E%3C/g%3E%3C/svg%3E\")",
159
- backgroundRepeat: "no-repeat",
160
- backgroundPosition: "center",
161
- backgroundSize: "cover",
162
- width: "32px",
163
- height: "32px",
164
- },
165
- ".rdp-nav .rdp-button_next": {
166
- display: "block",
167
- backgroundImage:
168
- "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%3E%3Cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H24C28.4183%200%2032%203.58172%2032%208V24C32%2028.4183%2028.4183%2032%2024%2032H8C3.58172%2032%200%2028.4183%200%2024V8Z'%20fill='white'/%3E%3Cpath%20d='M19.7062%2015.2938C20.0969%2015.6844%2020.0969%2016.3188%2019.7062%2016.7094L14.7062%2021.7094C14.3156%2022.1%2013.6812%2022.1%2013.2906%2021.7094C12.9%2021.3188%2012.9%2020.6844%2013.2906%2020.2938L17.5844%2016L13.2937%2011.7063C12.9031%2011.3156%2012.9031%2010.6813%2013.2937%2010.2906C13.6844%209.90002%2014.3187%209.90002%2014.7094%2010.2906L19.7094%2015.2906L19.7062%2015.2938Z'%20fill='%23808289'/%3E%3C/svg%3E\")",
169
- backgroundRepeat: "no-repeat",
170
- backgroundPosition: "center",
171
- backgroundSize: "cover",
172
- width: "32px",
173
- height: "32px",
174
- },
175
- ".rdp-nav .rdp-button_previous:hover": {
176
- backgroundImage:
177
- "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%3E%3Cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H24C28.4183%200%2032%203.58172%2032%208V24C32%2028.4183%2028.4183%2032%2024%2032H8C3.58172%2032%200%2028.4183%200%2024V8Z'%20fill='%23F4F4F4'/%3E%3Cpath%20d='M12.2937%2015.2938C11.9031%2015.6844%2011.9031%2016.3188%2012.2937%2016.7094L17.2937%2021.7094C17.6844%2022.1%2018.3187%2022.1%2018.7094%2021.7094C19.1%2021.3188%2019.1%2020.6844%2018.7094%2020.2938L14.4156%2016L18.7062%2011.7063C19.0969%2011.3156%2019.0969%2010.6813%2018.7062%2010.2906C18.3156%209.90002%2017.6812%209.90002%2017.2906%2010.2906L12.2906%2015.2906L12.2937%2015.2938Z'%20fill='%23808289'/%3E%3C/svg%3E\")",
178
- transition: "all 0.2s ease-in-out",
179
- },
180
- ".rdp-nav .rdp-button_next:hover": {
181
- backgroundImage:
182
- "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%3E%3Cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H24C28.4183%200%2032%203.58172%2032%208V24C32%2028.4183%2028.4183%2032%2024%2032H8C3.58172%2032%200%2028.4183%200%2024V8Z'%20fill='%23F4F4F4'/%3E%3Cpath%20d='M19.7062%2015.2938C20.0969%2015.6844%2020.0969%2016.3188%2019.7062%2016.7094L14.7062%2021.7094C14.3156%2022.1%2013.6812%2022.1%2013.2906%2021.7094C12.9%2021.3188%2012.9%2020.6844%2013.2906%2020.2938L17.5844%2016L13.2937%2011.7063C12.9031%2011.3156%2012.9031%2010.6813%2013.2937%2010.2906C13.6844%209.90002%2014.3187%209.90002%2014.7094%2010.2906L19.7094%2015.2906L19.7062%2015.2938Z'%20fill='%23808289'/%3E%3C/svg%3E\")",
183
- transition: "all 0.2s ease-in-out",
184
- },
185
- ".rdp-nav button": {
186
- border: "none",
187
- backgroundColor: "transparent",
188
- cursor: "pointer",
189
- },
190
- ".rdp-months": {
191
- display: "flex",
192
- columnGap: "$16",
193
- alignItems: "flex-start",
194
- paddingTop: "$12",
195
- },
196
- ".rdp-month": {
197
- marginTop: "0",
198
- paddingTop: "$6",
199
- },
200
- ".rdp-month_caption": {
201
- display: "flex",
202
- alignItems: "center",
203
- justifyContent: "center",
204
- width: "calc(100% - 64px)",
205
- margin: "0 auto",
206
- columnGap: "12px",
207
- },
208
- ".rdp-dropdowns span, .rdp-caption_label": {
209
- fontSize: "$16",
210
- fontWeight: "$regular",
211
- lineHeight: "$20",
212
- textTransform: "capitalize",
213
- },
214
- ".rdp-day.rdp-selected .rdp-day_button": {
215
- backgroundColor: "$brand500",
216
- color: "$neutral50",
217
- borderColor: "$brand600",
218
- borderRadius: "0.5rem",
219
- },
220
- ".rdp-dropdowns": {
221
- display: "flex",
222
- alignItems: "center",
223
- justifyContent: "center",
224
- width: "calc(100% - 64px)",
225
- columnGap: "12px",
226
- },
227
- ".rdp-dropdowns .rdp-caption_label": {
228
- display: "none",
229
- },
230
- ".rdp-dropdown.rdp-months_dropdown, .rdp-dropdown.rdp-years_dropdown": {
231
- border: "none",
232
- backgroundColor: "transparent",
233
- textTransform: "capitalize",
234
- height: "1.25rem",
235
- position: "relative",
236
- fontFamily: "$default",
237
- fontSize: "$16",
238
- lineHeight: "1.25rem",
239
- appearance: "none",
240
- WebkitAppearance: "none",
241
- MozAppearance: "none",
242
- paddingRight: "1.25rem",
243
- zIndex: "3",
244
- },
245
- ".rdp-dropdown:focus, .rdp-dropdown:focus-visible, .rdp-dropdown:active": {
246
- border: "none",
247
- outline: "none",
248
- boxShadow: "none",
249
- },
250
- ".rdp-dropdown.rdp-months_dropdown:focus, .rdp-dropdown.rdp-years_dropdown:focus":
251
- {
252
- border: "none",
253
- },
254
- ".rdp-dropdown_root": {
255
- position: "relative",
256
- },
257
- ".rdp-dropdown_root::after": {
258
- content: "",
259
- height: "1.25rem",
260
- width: "1.25rem",
261
- position: "absolute",
262
- top: "0",
263
- right: "0",
264
- display: "block",
265
- backgroundColor: "$neutral50",
266
- backgroundImage:
267
- "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='11'%20height='20'%20viewBox='0%200%2011%2020'%20fill='none'%3E%3Crect%20width='11'%20height='20'%20fill='white'/%3E%3Cpath%20d='M5.9414%202.68359C5.69726%202.43945%205.30077%202.43945%205.05663%202.68359L2.55663%205.18359C2.37695%205.36328%202.32421%205.63086%202.42187%205.86523C2.51952%206.09961%202.74609%206.25195%202.99999%206.25195H7.99999C8.25195%206.25195%208.48046%206.09961%208.57812%205.86523C8.67578%205.63086%208.62109%205.36328%208.44335%205.18359L5.94335%202.68359H5.9414Z'%20fill='%23808289'/%3E%3Cpath%20d='M5.05858%2017.3164C5.30272%2017.5605%205.69921%2017.5605%205.94335%2017.3164L8.44335%2014.8164C8.62304%2014.6367%208.67577%2014.3691%208.57811%2014.1348C8.48046%2013.9004%208.25389%2013.748%207.99999%2013.748L2.99999%2013.75C2.74804%2013.75%202.51952%2013.9023%202.42186%2014.1367C2.32421%2014.3711%202.37889%2014.6387%202.55663%2014.8184L5.05663%2017.3184L5.05858%2017.3164Z'%20fill='%23808289'/%3E%3C/svg%3E\")",
268
- backgroundRepeat: "no-repeat",
269
- backgroundPosition: "center",
270
- borderRadius: "0.5rem",
271
- zIndex: "2",
272
- },
273
- ".rdp-weekday": {
274
- textTransform: "uppercase",
275
- fontWeight: "$regular",
276
- fontSize: "0px",
277
- },
278
- ".rdp-weekday::first-letter": {
279
- fontSize: "$14",
280
- },
281
- ".rdp-month_grid": {
282
- marginTop: "$16",
283
- paddingTop: "$16",
284
- borderTop: "2px solid $neutral100",
285
- },
286
- "@media (max-width: 748px)": {
287
- ".rdp-months": {
288
- flexDirection: "column",
289
- alignItems: "center",
290
- padding: "16px"
291
- },
292
- }
293
- });
294
- export const DayPickerWrapperStyledToDoubleCalendar = styled("div", {
295
- ".rt-TextFieldInput": {
296
- fontFamily: "$default",
297
- fontSize: "$14",
298
- color: "$dark500",
299
- },
300
- ".rdp-root": {
301
- padding: "0 $8",
302
- },
303
- ".rdp-today .rdp-day_button": {
304
- color: "$brand500",
305
- textDecoration: "underline",
306
- },
307
- ".rdp-day.rdp-disabled .rdp-day_button": {
308
- color: "$dark400",
309
- },
310
- ".rdp-day_button": {
311
- height: "26px",
312
- width: "26px",
313
- borderRadius: "$sm",
314
- fontSize: "$14",
315
- color: "$text",
316
- backgroundColor: "transparent",
317
- border: "1px solid transparent",
318
- transition: "all 0.2s ease-in-out",
319
- cursor: "pointer",
320
- display: "flex",
321
- alignItems: "center",
322
- justifyContent: "center",
323
- },
324
- ".rdp-day_button:hover": {
325
- backgroundColor: "$dark100",
326
- borderColor: "$brand600",
327
- },
328
- ".rdp-day.rdp-disabled .rdp-day_button:hover": {
329
- backgroundColor: "transparent",
330
- borderColor: "transparent",
331
- },
332
- ".rdp-nav": {
333
- position: "absolute",
334
- width: "100%",
335
- left: "0",
336
- display: "flex",
337
- justifyContent: "space-between",
338
- },
339
- ".rdp-nav .rdp-chevron": {
340
- display: "none",
341
- },
342
- ".rdp-nav .rdp-button_previous": {
343
- display: "block",
344
- backgroundImage:
345
- "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%3E%3Cg%20transform='scale(-1,1)%20translate(-32,0)'%3E%3Cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H24C28.4183%200%2032%203.58172%2032%208V24C32%2028.4183%2028.4183%2032%2024%2032H8C3.58172%2032%200%2028.4183%200%2024V8Z'%20fill='white'/%3E%3Cpath%20d='M19.7062%2015.2938C20.0969%2015.6844%2020.0969%2016.3188%2019.7062%2016.7094L14.7062%2021.7094C14.3156%2022.1%2013.6812%2022.1%2013.2906%2021.7094C12.9%2021.3188%2012.9%2020.6844%2013.2906%2020.2938L17.5844%2016L13.2937%2011.7063C12.9031%2011.3156%2012.9031%2010.6813%2013.2937%2010.2906C13.6844%209.90002%2014.3187%209.90002%2014.7094%2010.2906L19.7094%2015.2906L19.7062%2015.2938Z'%20fill='%23808289'/%3E%3C/g%3E%3C/svg%3E\")",
346
- backgroundRepeat: "no-repeat",
347
- backgroundPosition: "center",
348
- backgroundSize: "cover",
349
- width: "32px",
350
- height: "32px",
351
- },
352
- ".rdp-nav .rdp-button_next": {
353
- display: "block",
354
- backgroundImage:
355
- "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%3E%3Cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H24C28.4183%200%2032%203.58172%2032%208V24C32%2028.4183%2028.4183%2032%2024%2032H8C3.58172%2032%200%2028.4183%200%2024V8Z'%20fill='white'/%3E%3Cpath%20d='M19.7062%2015.2938C20.0969%2015.6844%2020.0969%2016.3188%2019.7062%2016.7094L14.7062%2021.7094C14.3156%2022.1%2013.6812%2022.1%2013.2906%2021.7094C12.9%2021.3188%2012.9%2020.6844%2013.2906%2020.2938L17.5844%2016L13.2937%2011.7063C12.9031%2011.3156%2012.9031%2010.6813%2013.2937%2010.2906C13.6844%209.90002%2014.3187%209.90002%2014.7094%2010.2906L19.7094%2015.2906L19.7062%2015.2938Z'%20fill='%23808289'/%3E%3C/svg%3E\")",
356
- backgroundRepeat: "no-repeat",
357
- backgroundPosition: "center",
358
- backgroundSize: "cover",
359
- width: "32px",
360
- height: "32px",
361
- },
362
- ".rdp-nav .rdp-button_previous:hover": {
363
- backgroundImage:
364
- "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%3E%3Cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H24C28.4183%200%2032%203.58172%2032%208V24C32%2028.4183%2028.4183%2032%2024%2032H8C3.58172%2032%200%2028.4183%200%2024V8Z'%20fill='%23F4F4F4'/%3E%3Cpath%20d='M12.2937%2015.2938C11.9031%2015.6844%2011.9031%2016.3188%2012.2937%2016.7094L17.2937%2021.7094C17.6844%2022.1%2018.3187%2022.1%2018.7094%2021.7094C19.1%2021.3188%2019.1%2020.6844%2018.7094%2020.2938L14.4156%2016L18.7062%2011.7063C19.0969%2011.3156%2019.0969%2010.6813%2018.7062%2010.2906C18.3156%209.90002%2017.6812%209.90002%2017.2906%2010.2906L12.2906%2015.2906L12.2937%2015.2938Z'%20fill='%23808289'/%3E%3C/svg%3E\")",
365
- transition: "all 0.2s ease-in-out",
366
- },
367
- ".rdp-nav .rdp-button_next:hover": {
368
- backgroundImage:
369
- "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%3E%3Cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H24C28.4183%200%2032%203.58172%2032%208V24C32%2028.4183%2028.4183%2032%2024%2032H8C3.58172%2032%200%2028.4183%200%2024V8Z'%20fill='%23F4F4F4'/%3E%3Cpath%20d='M19.7062%2015.2938C20.0969%2015.6844%2020.0969%2016.3188%2019.7062%2016.7094L14.7062%2021.7094C14.3156%2022.1%2013.6812%2022.1%2013.2906%2021.7094C12.9%2021.3188%2012.9%2020.6844%2013.2906%2020.2938L17.5844%2016L13.2937%2011.7063C12.9031%2011.3156%2012.9031%2010.6813%2013.2937%2010.2906C13.6844%209.90002%2014.3187%209.90002%2014.7094%2010.2906L19.7094%2015.2906L19.7062%2015.2938Z'%20fill='%23808289'/%3E%3C/svg%3E\")",
370
- transition: "all 0.2s ease-in-out",
371
- },
372
- ".rdp-nav button": {
373
- border: "none",
374
- backgroundColor: "transparent",
375
- cursor: "pointer",
376
- },
377
- ".rdp-months": {
378
- display: "flex",
379
- columnGap: "$8",
380
- alignItems: "flex-start",
381
- paddingTop: "$12",
382
- },
383
- ".rdp-month": {
384
- marginTop: "0",
385
- paddingTop: "$6",
386
- },
387
- ".rdp-month_caption": {
388
- display: "flex",
389
- alignItems: "center",
390
- justifyContent: "center",
391
- width: "calc(100% - 64px)",
392
- margin: "0 auto",
393
- columnGap: "12px",
394
- },
395
- ".rdp-dropdowns span, .rdp-caption_label": {
396
- fontSize: "$16",
397
- fontWeight: "$regular",
398
- lineHeight: "$20",
399
- textTransform: "capitalize",
400
- },
401
- ".rdp-day.rdp-selected .rdp-day_button": {
402
- backgroundColor: "$brand500",
403
- color: "$neutral50",
404
- borderColor: "$brand600",
405
- borderRadius: "0.5rem",
406
- },
407
- ".rdp-dropdowns": {
408
- display: "flex",
409
- alignItems: "center",
410
- justifyContent: "center",
411
- width: "calc(100% - 64px)",
412
- columnGap: "12px",
413
- },
414
- ".rdp-dropdowns .rdp-caption_label": {
415
- display: "none",
416
- },
417
- ".rdp-dropdown.rdp-months_dropdown, .rdp-dropdown.rdp-years_dropdown": {
418
- border: "none",
419
- backgroundColor: "transparent",
420
- textTransform: "capitalize",
421
- height: "1.25rem",
422
- position: "relative",
423
- fontFamily: "$default",
424
- fontSize: "$16",
425
- lineHeight: "1.25rem",
426
- appearance: "none",
427
- WebkitAppearance: "none",
428
- MozAppearance: "none",
429
- paddingRight: "1.25rem",
430
- zIndex: "3",
431
- },
432
- ".rdp-dropdown:focus, .rdp-dropdown:focus-visible, .rdp-dropdown:active": {
433
- border: "none",
434
- outline: "none",
435
- boxShadow: "none",
436
- },
437
- ".rdp-dropdown.rdp-months_dropdown:focus, .rdp-dropdown.rdp-years_dropdown:focus":
438
- {
439
- border: "none",
440
- },
441
- ".rdp-dropdown_root": {
442
- position: "relative",
443
- },
444
- ".rdp-dropdown_root::after": {
445
- content: "",
446
- height: "1.25rem",
447
- width: "1.25rem",
448
- position: "absolute",
449
- top: "0",
450
- right: "0",
451
- display: "block",
452
- backgroundColor: "$neutral50",
453
- backgroundImage:
454
- "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='11'%20height='20'%20viewBox='0%200%2011%2020'%20fill='none'%3E%3Crect%20width='11'%20height='20'%20fill='white'/%3E%3Cpath%20d='M5.9414%202.68359C5.69726%202.43945%205.30077%202.43945%205.05663%202.68359L2.55663%205.18359C2.37695%205.36328%202.32421%205.63086%202.42187%205.86523C2.51952%206.09961%202.74609%206.25195%202.99999%206.25195H7.99999C8.25195%206.25195%208.48046%206.09961%208.57812%205.86523C8.67578%205.63086%208.62109%205.36328%208.44335%205.18359L5.94335%202.68359H5.9414Z'%20fill='%23808289'/%3E%3Cpath%20d='M5.05858%2017.3164C5.30272%2017.5605%205.69921%2017.5605%205.94335%2017.3164L8.44335%2014.8164C8.62304%2014.6367%208.67577%2014.3691%208.57811%2014.1348C8.48046%2013.9004%208.25389%2013.748%207.99999%2013.748L2.99999%2013.75C2.74804%2013.75%202.51952%2013.9023%202.42186%2014.1367C2.32421%2014.3711%202.37889%2014.6387%202.55663%2014.8184L5.05663%2017.3184L5.05858%2017.3164Z'%20fill='%23808289'/%3E%3C/svg%3E\")",
455
- backgroundRepeat: "no-repeat",
456
- backgroundPosition: "center",
457
- borderRadius: "0.5rem",
458
- zIndex: "2",
459
- },
460
- ".rdp-weekday": {
461
- textTransform: "uppercase",
462
- fontWeight: "$regular",
463
- fontSize: "0px",
464
- },
465
- ".rdp-weekday::first-letter": {
466
- fontSize: "$14",
467
- },
468
- ".rdp-month_grid": {
469
- marginTop: "$16",
470
- paddingTop: "$16",
471
- borderTop: "2px solid $neutral100",
472
- },
473
- "@media (max-width: 748px)": {
474
- ".rdp-months": {
475
- flexDirection: "column",
476
- alignItems: "center",
477
- padding: "16px"
478
- },
479
- }
480
- });
1
+ import { styled } from "../../styles";
2
+
3
+ export const CalendarStyled = styled("div", {
4
+ fontFamily: "$default",
5
+ lineHeight: "$base",
6
+ fontSize: "$14",
7
+ borderRadius: "$sm",
8
+ position: "relative",
9
+ width: "fit-content",
10
+ variants: {
11
+ expand: {
12
+ true: {
13
+ width: "100%",
14
+ flex: "1",
15
+ display: "flex",
16
+ },
17
+ },
18
+ },
19
+ });
20
+ const calendarMobileCentered = {
21
+ position: "fixed",
22
+ top: "50%",
23
+ left: "50%",
24
+ right: "auto",
25
+ bottom: "auto",
26
+ transform: "translate(-50%, -50%)",
27
+ maxWidth: "calc(100vw - 32px)",
28
+ maxHeight: "90vh",
29
+ overflowY: "auto",
30
+ };
31
+
32
+ export const CalendarOverlayStyled = styled("div", {
33
+ display: "none",
34
+ "@media (max-width: 748px)": {
35
+ display: "block",
36
+ position: "fixed",
37
+ inset: 0,
38
+ backgroundColor: "rgba(0, 0, 0, 0.5)",
39
+ zIndex: 999998,
40
+ },
41
+ });
42
+
43
+ export const CalendarButtonStyled = styled("button", {
44
+ backgroundColor: "transparent",
45
+ border: "none",
46
+ maxWidth: "200px",
47
+ padding: "0",
48
+ cursor: "pointer",
49
+ "> div > div": {
50
+ paddingLeft: "0",
51
+ input: {
52
+ textAlign: "right",
53
+ },
54
+ },
55
+ variants: {
56
+ expand: {
57
+ true: {
58
+ flex: "1",
59
+ display: "flex",
60
+ maxWidth: "100%",
61
+ },
62
+ },
63
+ },
64
+ });
65
+ export const CalendarContentStyled = styled("div", {
66
+ fontFamily: "$default",
67
+ lineHeight: "$base",
68
+ fontSize: "$14",
69
+ maxWidth: "fit-content",
70
+ border: "1px solid $neutral300",
71
+ borderRadius: "$sm",
72
+ boxShadow: "0px 2px 8px 0px $shadow50",
73
+ position: "absolute",
74
+ backgroundColor: "$neutral50",
75
+ zIndex: "999999",
76
+ "@media (max-width: 748px)": calendarMobileCentered,
77
+ variants: {
78
+ position: {
79
+ top: {
80
+ bottom: "110%",
81
+ left: "0",
82
+ "@media (max-width: 748px)": calendarMobileCentered,
83
+ },
84
+ bottom: {
85
+ top: "110%",
86
+ left: "0",
87
+ "@media (max-width: 748px)": calendarMobileCentered,
88
+ },
89
+ "top-right": {
90
+ bottom: "110%",
91
+ right: "0",
92
+ "@media (max-width: 748px)": calendarMobileCentered,
93
+ },
94
+ "bottom-right": {
95
+ top: "110%",
96
+ right: "0",
97
+ "@media (max-width: 748px)": calendarMobileCentered,
98
+ },
99
+ },
100
+ },
101
+ });
102
+
103
+ export const CalendarFooterStyled = styled("div", {
104
+ borderTop: "2px solid $neutral100",
105
+ padding: "$4 $16",
106
+ display: "flex",
107
+ gap: "1rem",
108
+ alignItems: "center",
109
+ height: "3rem",
110
+ variants: {
111
+ actionAlign: {
112
+ left: {
113
+ justifyContent: "flex-start",
114
+ },
115
+ center: {
116
+ justifyContent: "center",
117
+ },
118
+ right: {
119
+ justifyContent: "flex-end",
120
+ },
121
+ },
122
+ },
123
+ defaultVariants: {
124
+ actionAlign: "right",
125
+ },
126
+ "@media (max-width: 748px)": {
127
+ gap: "0",
128
+ padding: "$4 $12",
129
+ "> div": {
130
+ padding: "0!important",
131
+ },
132
+ },
133
+ });
134
+
135
+ export const DayPickerWrapperStyled = styled("div", {
136
+ ".rt-TextFieldInput": {
137
+ fontFamily: "$default",
138
+ fontSize: "$14",
139
+ color: "$dark500",
140
+ },
141
+ ".rdp-root": {
142
+ padding: "0 $8",
143
+ },
144
+ ".rdp-today .rdp-day_button": {
145
+ color: "$brand500",
146
+ textDecoration: "underline",
147
+ },
148
+ ".rdp-day.rdp-disabled .rdp-day_button": {
149
+ color: "$dark400",
150
+ },
151
+ ".rdp-day_button": {
152
+ height: "32px",
153
+ width: "32px",
154
+ borderRadius: "$sm",
155
+ fontSize: "$14",
156
+ color: "$text",
157
+ backgroundColor: "transparent",
158
+ border: "1px solid transparent",
159
+ transition: "all 0.2s ease-in-out",
160
+ cursor: "pointer",
161
+ display: "flex",
162
+ alignItems: "center",
163
+ justifyContent: "center",
164
+ },
165
+ ".rdp-day_button:hover": {
166
+ backgroundColor: "$dark100",
167
+ borderColor: "$brand600",
168
+ },
169
+ ".rdp-day.rdp-disabled .rdp-day_button:hover": {
170
+ backgroundColor: "transparent",
171
+ borderColor: "transparent",
172
+ },
173
+ ".rdp-nav": {
174
+ position: "absolute",
175
+ width: "100%",
176
+ left: "0",
177
+ display: "flex",
178
+ justifyContent: "space-between",
179
+ },
180
+ ".rdp-nav .rdp-chevron": {
181
+ display: "none",
182
+ },
183
+ ".rdp-nav .rdp-button_previous": {
184
+ display: "block",
185
+ backgroundImage:
186
+ "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%3E%3Cg%20transform='scale(-1,1)%20translate(-32,0)'%3E%3Cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H24C28.4183%200%2032%203.58172%2032%208V24C32%2028.4183%2028.4183%2032%2024%2032H8C3.58172%2032%200%2028.4183%200%2024V8Z'%20fill='white'/%3E%3Cpath%20d='M19.7062%2015.2938C20.0969%2015.6844%2020.0969%2016.3188%2019.7062%2016.7094L14.7062%2021.7094C14.3156%2022.1%2013.6812%2022.1%2013.2906%2021.7094C12.9%2021.3188%2012.9%2020.6844%2013.2906%2020.2938L17.5844%2016L13.2937%2011.7063C12.9031%2011.3156%2012.9031%2010.6813%2013.2937%2010.2906C13.6844%209.90002%2014.3187%209.90002%2014.7094%2010.2906L19.7094%2015.2906L19.7062%2015.2938Z'%20fill='%23808289'/%3E%3C/g%3E%3C/svg%3E\")",
187
+ backgroundRepeat: "no-repeat",
188
+ backgroundPosition: "center",
189
+ backgroundSize: "cover",
190
+ width: "32px",
191
+ height: "32px",
192
+ },
193
+ ".rdp-nav .rdp-button_next": {
194
+ display: "block",
195
+ backgroundImage:
196
+ "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%3E%3Cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H24C28.4183%200%2032%203.58172%2032%208V24C32%2028.4183%2028.4183%2032%2024%2032H8C3.58172%2032%200%2028.4183%200%2024V8Z'%20fill='white'/%3E%3Cpath%20d='M19.7062%2015.2938C20.0969%2015.6844%2020.0969%2016.3188%2019.7062%2016.7094L14.7062%2021.7094C14.3156%2022.1%2013.6812%2022.1%2013.2906%2021.7094C12.9%2021.3188%2012.9%2020.6844%2013.2906%2020.2938L17.5844%2016L13.2937%2011.7063C12.9031%2011.3156%2012.9031%2010.6813%2013.2937%2010.2906C13.6844%209.90002%2014.3187%209.90002%2014.7094%2010.2906L19.7094%2015.2906L19.7062%2015.2938Z'%20fill='%23808289'/%3E%3C/svg%3E\")",
197
+ backgroundRepeat: "no-repeat",
198
+ backgroundPosition: "center",
199
+ backgroundSize: "cover",
200
+ width: "32px",
201
+ height: "32px",
202
+ },
203
+ ".rdp-nav .rdp-button_previous:hover": {
204
+ backgroundImage:
205
+ "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%3E%3Cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H24C28.4183%200%2032%203.58172%2032%208V24C32%2028.4183%2028.4183%2032%2024%2032H8C3.58172%2032%200%2028.4183%200%2024V8Z'%20fill='%23F4F4F4'/%3E%3Cpath%20d='M12.2937%2015.2938C11.9031%2015.6844%2011.9031%2016.3188%2012.2937%2016.7094L17.2937%2021.7094C17.6844%2022.1%2018.3187%2022.1%2018.7094%2021.7094C19.1%2021.3188%2019.1%2020.6844%2018.7094%2020.2938L14.4156%2016L18.7062%2011.7063C19.0969%2011.3156%2019.0969%2010.6813%2018.7062%2010.2906C18.3156%209.90002%2017.6812%209.90002%2017.2906%2010.2906L12.2906%2015.2906L12.2937%2015.2938Z'%20fill='%23808289'/%3E%3C/svg%3E\")",
206
+ transition: "all 0.2s ease-in-out",
207
+ },
208
+ ".rdp-nav .rdp-button_next:hover": {
209
+ backgroundImage:
210
+ "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%3E%3Cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H24C28.4183%200%2032%203.58172%2032%208V24C32%2028.4183%2028.4183%2032%2024%2032H8C3.58172%2032%200%2028.4183%200%2024V8Z'%20fill='%23F4F4F4'/%3E%3Cpath%20d='M19.7062%2015.2938C20.0969%2015.6844%2020.0969%2016.3188%2019.7062%2016.7094L14.7062%2021.7094C14.3156%2022.1%2013.6812%2022.1%2013.2906%2021.7094C12.9%2021.3188%2012.9%2020.6844%2013.2906%2020.2938L17.5844%2016L13.2937%2011.7063C12.9031%2011.3156%2012.9031%2010.6813%2013.2937%2010.2906C13.6844%209.90002%2014.3187%209.90002%2014.7094%2010.2906L19.7094%2015.2906L19.7062%2015.2938Z'%20fill='%23808289'/%3E%3C/svg%3E\")",
211
+ transition: "all 0.2s ease-in-out",
212
+ },
213
+ ".rdp-nav button": {
214
+ border: "none",
215
+ backgroundColor: "transparent",
216
+ cursor: "pointer",
217
+ },
218
+ ".rdp-months": {
219
+ display: "flex",
220
+ columnGap: "$16",
221
+ alignItems: "flex-start",
222
+ paddingTop: "$12",
223
+ },
224
+ ".rdp-month": {
225
+ marginTop: "0",
226
+ paddingTop: "$6",
227
+ },
228
+ ".rdp-month_caption": {
229
+ display: "flex",
230
+ alignItems: "center",
231
+ justifyContent: "center",
232
+ width: "calc(100% - 64px)",
233
+ margin: "0 auto",
234
+ columnGap: "12px",
235
+ },
236
+ ".rdp-dropdowns span, .rdp-caption_label": {
237
+ fontSize: "$16",
238
+ fontWeight: "$regular",
239
+ lineHeight: "$20",
240
+ textTransform: "capitalize",
241
+ },
242
+ ".rdp-day.rdp-selected .rdp-day_button": {
243
+ backgroundColor: "$brand500",
244
+ color: "$neutral50",
245
+ borderColor: "$brand600",
246
+ borderRadius: "0.5rem",
247
+ },
248
+ ".rdp-dropdowns": {
249
+ display: "flex",
250
+ alignItems: "center",
251
+ justifyContent: "center",
252
+ width: "calc(100% - 64px)",
253
+ columnGap: "12px",
254
+ },
255
+ ".rdp-dropdowns .rdp-caption_label": {
256
+ display: "none",
257
+ },
258
+ ".rdp-dropdown.rdp-months_dropdown, .rdp-dropdown.rdp-years_dropdown": {
259
+ border: "none",
260
+ backgroundColor: "transparent",
261
+ textTransform: "capitalize",
262
+ height: "1.25rem",
263
+ position: "relative",
264
+ fontFamily: "$default",
265
+ fontSize: "$16",
266
+ lineHeight: "1.25rem",
267
+ appearance: "none",
268
+ WebkitAppearance: "none",
269
+ MozAppearance: "none",
270
+ paddingRight: "1.25rem",
271
+ zIndex: "3",
272
+ },
273
+ ".rdp-dropdown:focus, .rdp-dropdown:focus-visible, .rdp-dropdown:active": {
274
+ border: "none",
275
+ outline: "none",
276
+ boxShadow: "none",
277
+ },
278
+ ".rdp-dropdown.rdp-months_dropdown:focus, .rdp-dropdown.rdp-years_dropdown:focus":
279
+ {
280
+ border: "none",
281
+ },
282
+ ".rdp-dropdown_root": {
283
+ position: "relative",
284
+ },
285
+ ".rdp-dropdown_root::after": {
286
+ content: "",
287
+ height: "1.25rem",
288
+ width: "1.25rem",
289
+ position: "absolute",
290
+ top: "0",
291
+ right: "0",
292
+ display: "block",
293
+ backgroundColor: "$neutral50",
294
+ backgroundImage:
295
+ "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='11'%20height='20'%20viewBox='0%200%2011%2020'%20fill='none'%3E%3Crect%20width='11'%20height='20'%20fill='white'/%3E%3Cpath%20d='M5.9414%202.68359C5.69726%202.43945%205.30077%202.43945%205.05663%202.68359L2.55663%205.18359C2.37695%205.36328%202.32421%205.63086%202.42187%205.86523C2.51952%206.09961%202.74609%206.25195%202.99999%206.25195H7.99999C8.25195%206.25195%208.48046%206.09961%208.57812%205.86523C8.67578%205.63086%208.62109%205.36328%208.44335%205.18359L5.94335%202.68359H5.9414Z'%20fill='%23808289'/%3E%3Cpath%20d='M5.05858%2017.3164C5.30272%2017.5605%205.69921%2017.5605%205.94335%2017.3164L8.44335%2014.8164C8.62304%2014.6367%208.67577%2014.3691%208.57811%2014.1348C8.48046%2013.9004%208.25389%2013.748%207.99999%2013.748L2.99999%2013.75C2.74804%2013.75%202.51952%2013.9023%202.42186%2014.1367C2.32421%2014.3711%202.37889%2014.6387%202.55663%2014.8184L5.05663%2017.3184L5.05858%2017.3164Z'%20fill='%23808289'/%3E%3C/svg%3E\")",
296
+ backgroundRepeat: "no-repeat",
297
+ backgroundPosition: "center",
298
+ borderRadius: "0.5rem",
299
+ zIndex: "2",
300
+ },
301
+ ".rdp-weekday": {
302
+ textTransform: "uppercase",
303
+ fontWeight: "$regular",
304
+ fontSize: "0px",
305
+ },
306
+ ".rdp-weekday::first-letter": {
307
+ fontSize: "$14",
308
+ },
309
+ ".rdp-month_grid": {
310
+ marginTop: "$16",
311
+ paddingTop: "$16",
312
+ borderTop: "2px solid $neutral100",
313
+ },
314
+ "@media (max-width: 748px)": {
315
+ ".rdp-months": {
316
+ flexDirection: "column",
317
+ alignItems: "center",
318
+ padding: "16px"
319
+ },
320
+ }
321
+ });
322
+ export const DayPickerWrapperStyledToDoubleCalendar = styled("div", {
323
+ ".rt-TextFieldInput": {
324
+ fontFamily: "$default",
325
+ fontSize: "$14",
326
+ color: "$dark500",
327
+ },
328
+ ".rdp-root": {
329
+ padding: "0 $8",
330
+ },
331
+ ".rdp-today .rdp-day_button": {
332
+ color: "$brand500",
333
+ textDecoration: "underline",
334
+ },
335
+ ".rdp-day.rdp-disabled .rdp-day_button": {
336
+ color: "$dark400",
337
+ },
338
+ ".rdp-day_button": {
339
+ height: "26px",
340
+ width: "26px",
341
+ borderRadius: "$sm",
342
+ fontSize: "$14",
343
+ color: "$text",
344
+ backgroundColor: "transparent",
345
+ border: "1px solid transparent",
346
+ transition: "all 0.2s ease-in-out",
347
+ cursor: "pointer",
348
+ display: "flex",
349
+ alignItems: "center",
350
+ justifyContent: "center",
351
+ },
352
+ ".rdp-day_button:hover": {
353
+ backgroundColor: "$dark100",
354
+ borderColor: "$brand600",
355
+ },
356
+ ".rdp-day.rdp-disabled .rdp-day_button:hover": {
357
+ backgroundColor: "transparent",
358
+ borderColor: "transparent",
359
+ },
360
+ ".rdp-nav": {
361
+ position: "absolute",
362
+ width: "100%",
363
+ left: "0",
364
+ display: "flex",
365
+ justifyContent: "space-between",
366
+ },
367
+ ".rdp-nav .rdp-chevron": {
368
+ display: "none",
369
+ },
370
+ ".rdp-nav .rdp-button_previous": {
371
+ display: "block",
372
+ backgroundImage:
373
+ "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%3E%3Cg%20transform='scale(-1,1)%20translate(-32,0)'%3E%3Cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H24C28.4183%200%2032%203.58172%2032%208V24C32%2028.4183%2028.4183%2032%2024%2032H8C3.58172%2032%200%2028.4183%200%2024V8Z'%20fill='white'/%3E%3Cpath%20d='M19.7062%2015.2938C20.0969%2015.6844%2020.0969%2016.3188%2019.7062%2016.7094L14.7062%2021.7094C14.3156%2022.1%2013.6812%2022.1%2013.2906%2021.7094C12.9%2021.3188%2012.9%2020.6844%2013.2906%2020.2938L17.5844%2016L13.2937%2011.7063C12.9031%2011.3156%2012.9031%2010.6813%2013.2937%2010.2906C13.6844%209.90002%2014.3187%209.90002%2014.7094%2010.2906L19.7094%2015.2906L19.7062%2015.2938Z'%20fill='%23808289'/%3E%3C/g%3E%3C/svg%3E\")",
374
+ backgroundRepeat: "no-repeat",
375
+ backgroundPosition: "center",
376
+ backgroundSize: "cover",
377
+ width: "32px",
378
+ height: "32px",
379
+ },
380
+ ".rdp-nav .rdp-button_next": {
381
+ display: "block",
382
+ backgroundImage:
383
+ "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%3E%3Cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H24C28.4183%200%2032%203.58172%2032%208V24C32%2028.4183%2028.4183%2032%2024%2032H8C3.58172%2032%200%2028.4183%200%2024V8Z'%20fill='white'/%3E%3Cpath%20d='M19.7062%2015.2938C20.0969%2015.6844%2020.0969%2016.3188%2019.7062%2016.7094L14.7062%2021.7094C14.3156%2022.1%2013.6812%2022.1%2013.2906%2021.7094C12.9%2021.3188%2012.9%2020.6844%2013.2906%2020.2938L17.5844%2016L13.2937%2011.7063C12.9031%2011.3156%2012.9031%2010.6813%2013.2937%2010.2906C13.6844%209.90002%2014.3187%209.90002%2014.7094%2010.2906L19.7094%2015.2906L19.7062%2015.2938Z'%20fill='%23808289'/%3E%3C/svg%3E\")",
384
+ backgroundRepeat: "no-repeat",
385
+ backgroundPosition: "center",
386
+ backgroundSize: "cover",
387
+ width: "32px",
388
+ height: "32px",
389
+ },
390
+ ".rdp-nav .rdp-button_previous:hover": {
391
+ backgroundImage:
392
+ "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%3E%3Cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H24C28.4183%200%2032%203.58172%2032%208V24C32%2028.4183%2028.4183%2032%2024%2032H8C3.58172%2032%200%2028.4183%200%2024V8Z'%20fill='%23F4F4F4'/%3E%3Cpath%20d='M12.2937%2015.2938C11.9031%2015.6844%2011.9031%2016.3188%2012.2937%2016.7094L17.2937%2021.7094C17.6844%2022.1%2018.3187%2022.1%2018.7094%2021.7094C19.1%2021.3188%2019.1%2020.6844%2018.7094%2020.2938L14.4156%2016L18.7062%2011.7063C19.0969%2011.3156%2019.0969%2010.6813%2018.7062%2010.2906C18.3156%209.90002%2017.6812%209.90002%2017.2906%2010.2906L12.2906%2015.2906L12.2937%2015.2938Z'%20fill='%23808289'/%3E%3C/svg%3E\")",
393
+ transition: "all 0.2s ease-in-out",
394
+ },
395
+ ".rdp-nav .rdp-button_next:hover": {
396
+ backgroundImage:
397
+ "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%3E%3Cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H24C28.4183%200%2032%203.58172%2032%208V24C32%2028.4183%2028.4183%2032%2024%2032H8C3.58172%2032%200%2028.4183%200%2024V8Z'%20fill='%23F4F4F4'/%3E%3Cpath%20d='M19.7062%2015.2938C20.0969%2015.6844%2020.0969%2016.3188%2019.7062%2016.7094L14.7062%2021.7094C14.3156%2022.1%2013.6812%2022.1%2013.2906%2021.7094C12.9%2021.3188%2012.9%2020.6844%2013.2906%2020.2938L17.5844%2016L13.2937%2011.7063C12.9031%2011.3156%2012.9031%2010.6813%2013.2937%2010.2906C13.6844%209.90002%2014.3187%209.90002%2014.7094%2010.2906L19.7094%2015.2906L19.7062%2015.2938Z'%20fill='%23808289'/%3E%3C/svg%3E\")",
398
+ transition: "all 0.2s ease-in-out",
399
+ },
400
+ ".rdp-nav button": {
401
+ border: "none",
402
+ backgroundColor: "transparent",
403
+ cursor: "pointer",
404
+ },
405
+ ".rdp-months": {
406
+ display: "flex",
407
+ columnGap: "$8",
408
+ alignItems: "flex-start",
409
+ paddingTop: "$12",
410
+ },
411
+ ".rdp-month": {
412
+ marginTop: "0",
413
+ paddingTop: "$6",
414
+ },
415
+ ".rdp-month_caption": {
416
+ display: "flex",
417
+ alignItems: "center",
418
+ justifyContent: "center",
419
+ width: "calc(100% - 64px)",
420
+ margin: "0 auto",
421
+ columnGap: "12px",
422
+ },
423
+ ".rdp-dropdowns span, .rdp-caption_label": {
424
+ fontSize: "$16",
425
+ fontWeight: "$regular",
426
+ lineHeight: "$20",
427
+ textTransform: "capitalize",
428
+ },
429
+ ".rdp-day.rdp-selected .rdp-day_button": {
430
+ backgroundColor: "$brand500",
431
+ color: "$neutral50",
432
+ borderColor: "$brand600",
433
+ borderRadius: "0.5rem",
434
+ },
435
+ ".rdp-dropdowns": {
436
+ display: "flex",
437
+ alignItems: "center",
438
+ justifyContent: "center",
439
+ width: "calc(100% - 64px)",
440
+ columnGap: "12px",
441
+ },
442
+ ".rdp-dropdowns .rdp-caption_label": {
443
+ display: "none",
444
+ },
445
+ ".rdp-dropdown.rdp-months_dropdown, .rdp-dropdown.rdp-years_dropdown": {
446
+ border: "none",
447
+ backgroundColor: "transparent",
448
+ textTransform: "capitalize",
449
+ height: "1.25rem",
450
+ position: "relative",
451
+ fontFamily: "$default",
452
+ fontSize: "$16",
453
+ lineHeight: "1.25rem",
454
+ appearance: "none",
455
+ WebkitAppearance: "none",
456
+ MozAppearance: "none",
457
+ paddingRight: "1.25rem",
458
+ zIndex: "3",
459
+ },
460
+ ".rdp-dropdown:focus, .rdp-dropdown:focus-visible, .rdp-dropdown:active": {
461
+ border: "none",
462
+ outline: "none",
463
+ boxShadow: "none",
464
+ },
465
+ ".rdp-dropdown.rdp-months_dropdown:focus, .rdp-dropdown.rdp-years_dropdown:focus":
466
+ {
467
+ border: "none",
468
+ },
469
+ ".rdp-dropdown_root": {
470
+ position: "relative",
471
+ },
472
+ ".rdp-dropdown_root::after": {
473
+ content: "",
474
+ height: "1.25rem",
475
+ width: "1.25rem",
476
+ position: "absolute",
477
+ top: "0",
478
+ right: "0",
479
+ display: "block",
480
+ backgroundColor: "$neutral50",
481
+ backgroundImage:
482
+ "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='11'%20height='20'%20viewBox='0%200%2011%2020'%20fill='none'%3E%3Crect%20width='11'%20height='20'%20fill='white'/%3E%3Cpath%20d='M5.9414%202.68359C5.69726%202.43945%205.30077%202.43945%205.05663%202.68359L2.55663%205.18359C2.37695%205.36328%202.32421%205.63086%202.42187%205.86523C2.51952%206.09961%202.74609%206.25195%202.99999%206.25195H7.99999C8.25195%206.25195%208.48046%206.09961%208.57812%205.86523C8.67578%205.63086%208.62109%205.36328%208.44335%205.18359L5.94335%202.68359H5.9414Z'%20fill='%23808289'/%3E%3Cpath%20d='M5.05858%2017.3164C5.30272%2017.5605%205.69921%2017.5605%205.94335%2017.3164L8.44335%2014.8164C8.62304%2014.6367%208.67577%2014.3691%208.57811%2014.1348C8.48046%2013.9004%208.25389%2013.748%207.99999%2013.748L2.99999%2013.75C2.74804%2013.75%202.51952%2013.9023%202.42186%2014.1367C2.32421%2014.3711%202.37889%2014.6387%202.55663%2014.8184L5.05663%2017.3184L5.05858%2017.3164Z'%20fill='%23808289'/%3E%3C/svg%3E\")",
483
+ backgroundRepeat: "no-repeat",
484
+ backgroundPosition: "center",
485
+ borderRadius: "0.5rem",
486
+ zIndex: "2",
487
+ },
488
+ ".rdp-weekday": {
489
+ textTransform: "uppercase",
490
+ fontWeight: "$regular",
491
+ fontSize: "0px",
492
+ },
493
+ ".rdp-weekday::first-letter": {
494
+ fontSize: "$14",
495
+ },
496
+ ".rdp-month_grid": {
497
+ marginTop: "$16",
498
+ paddingTop: "$16",
499
+ borderTop: "2px solid $neutral100",
500
+ },
501
+ "@media (max-width: 748px)": {
502
+ ".rdp-months": {
503
+ flexDirection: "column",
504
+ alignItems: "center",
505
+ padding: "16px"
506
+ },
507
+ }
508
+ });