@lets-events/react 12.11.3 → 12.11.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.
Files changed (96) hide show
  1. package/.eslintrc.json +2 -2
  2. package/.turbo/turbo-build.log +21 -24
  3. package/CHANGELOG.md +6 -0
  4. package/dist/index.js +2 -0
  5. package/dist/index.mjs +2 -0
  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 -172
  15. package/src/components/Calendar/styledComponents.ts +508 -508
  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 -208
  21. package/src/components/Drawer/index.tsx +113 -113
  22. package/src/components/Drawer/styledComponents.ts +99 -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,508 +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
- 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
- });
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
+ });