@lets-events/react 11.7.9 → 11.8.0

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 (77) hide show
  1. package/.eslintrc.json +2 -2
  2. package/.turbo/turbo-build.log +18 -20
  3. package/CHANGELOG.md +6 -0
  4. package/dist/index.css +171 -0
  5. package/dist/index.d.mts +2 -0
  6. package/dist/index.d.ts +2 -0
  7. package/dist/index.js +179 -138
  8. package/dist/index.mjs +154 -113
  9. package/package.json +1 -1
  10. package/src/components/Alert.tsx +303 -303
  11. package/src/components/Avatar.tsx +55 -55
  12. package/src/components/Badge.tsx +125 -125
  13. package/src/components/Box.tsx +3 -3
  14. package/src/components/Button/index.tsx +16 -16
  15. package/src/components/Button/styledComponents.ts +287 -287
  16. package/src/components/ButtonGroup.tsx +484 -484
  17. package/src/components/Calendar/index.tsx +136 -136
  18. package/src/components/Calendar/styledComponents.ts +209 -209
  19. package/src/components/Card.tsx +48 -48
  20. package/src/components/CheckboxGroup.tsx +176 -176
  21. package/src/components/Container.tsx +39 -39
  22. package/src/components/Drawer/index.tsx +55 -48
  23. package/src/components/Drawer/styledComponents.ts +46 -46
  24. package/src/components/Dropdown.tsx +302 -302
  25. package/src/components/Filter.tsx +164 -164
  26. package/src/components/Flex.tsx +118 -118
  27. package/src/components/FormFields/AddressFormFields/CityFormField.tsx +111 -111
  28. package/src/components/FormFields/AddressFormFields/CountryFormField.tsx +33 -33
  29. package/src/components/FormFields/AddressFormFields/PostalCodeFormField.tsx +39 -39
  30. package/src/components/FormFields/AddressFormFields/StateFormField.tsx +32 -32
  31. package/src/components/FormFields/AddressFormFields/index.tsx +141 -141
  32. package/src/components/FormFields/BirthDateFormField.tsx +84 -84
  33. package/src/components/FormFields/CNPJFormField.tsx +87 -87
  34. package/src/components/FormFields/CPFFormField.tsx +78 -78
  35. package/src/components/FormFields/CheckboxGroupFormField.tsx +91 -91
  36. package/src/components/FormFields/EmailFormField.tsx +27 -27
  37. package/src/components/FormFields/Form.tsx +39 -39
  38. package/src/components/FormFields/IdentityDocumentNumberFormField.tsx +40 -40
  39. package/src/components/FormFields/MultiSelectFormField.tsx +55 -55
  40. package/src/components/FormFields/PhoneFormField.tsx +40 -40
  41. package/src/components/FormFields/RadioGroupFormField.tsx +84 -84
  42. package/src/components/FormFields/SelectFormField.tsx +93 -93
  43. package/src/components/FormFields/TextAreaFormField.tsx +48 -48
  44. package/src/components/FormFields/TextFormField.tsx +112 -112
  45. package/src/components/FormFields/subComponents/ErrorFormMessage.tsx +36 -36
  46. package/src/components/FormFields/subComponents/FormLabel.tsx +29 -29
  47. package/src/components/FormFields/utils/validation.ts +23 -23
  48. package/src/components/Grid.tsx +137 -137
  49. package/src/components/Icon.tsx +47 -47
  50. package/src/components/MenuDropdown/index.tsx +38 -30
  51. package/src/components/MenuDropdown/styledComponents.ts +31 -31
  52. package/src/components/Modal.tsx +90 -90
  53. package/src/components/MultiSelect.tsx +252 -218
  54. package/src/components/RadioGroup.tsx +210 -210
  55. package/src/components/Section.tsx +33 -33
  56. package/src/components/Step.tsx +164 -164
  57. package/src/components/Switch.tsx +108 -108
  58. package/src/components/Text.tsx +38 -38
  59. package/src/components/TextField.tsx +365 -365
  60. package/src/components/TextareaField.tsx +128 -128
  61. package/src/components/TimePicker.tsx +298 -298
  62. package/src/components/Toast/components/ToastItem.tsx +41 -41
  63. package/src/components/Toast/components/ToastProvider.tsx +63 -63
  64. package/src/components/Toast/hooks/useToast.ts +12 -12
  65. package/src/components/Toast/index.tsx +5 -5
  66. package/src/components/Toast/styles/index.ts +135 -135
  67. package/src/components/Toast/types/index.ts +46 -46
  68. package/src/components/Tooltip/index.tsx +66 -66
  69. package/src/components/Tooltip/styles.ts +77 -77
  70. package/src/hooks/useCountries.ts +41 -41
  71. package/src/hooks/useOnClickOutside.tsx +20 -20
  72. package/src/index.tsx +54 -54
  73. package/src/styles/index.ts +38 -38
  74. package/src/types/typographyValues.ts +178 -178
  75. package/src/utils/getNestedValue.ts +3 -3
  76. package/src/utils/states.ts +29 -29
  77. package/tsconfig.json +3 -3
@@ -1,209 +1,209 @@
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
- })
10
- export const CalendarButtonStyled = styled('button', {
11
- backgroundColor: 'transparent',
12
- border: 'none',
13
- maxWidth: '200px',
14
- padding: '0',
15
- cursor: 'pointer',
16
- '> div > div': {
17
- paddingLeft: '1rem',
18
- 'input': {
19
- textAlign: 'right',
20
- }
21
- },
22
- })
23
- export const CalendarContentStyled = styled('div', {
24
- fontFamily: '$default',
25
- lineHeight: '$base',
26
- fontSize: '$14',
27
- width: '100%',
28
- maxWidth: 'fit-content',
29
- border: '1px solid $neutral300',
30
- borderRadius: '$sm',
31
- boxShadow: '0px 2px 8px 0px $shadow50',
32
- position: 'absolute',
33
- left: '0',
34
- backgroundColor: '$neutral50',
35
- zIndex: '999999',
36
- })
37
-
38
- export const CalendarFooterStyled = styled('div', {
39
- borderTop: '2px solid $neutral100',
40
- padding: '$4 $16',
41
- display: 'flex',
42
- justifyContent: 'center',
43
- alignItems: 'center',
44
- height: '3rem',
45
- })
46
-
47
- export const DayPickerWrapperStyled = styled('div', {
48
- '.rt-TextFieldInput': {
49
- fontFamily: '$default',
50
- fontSize: '$14',
51
- color: '$dark500',
52
- },
53
- '.rdp-root': {
54
- padding: '$16',
55
- },
56
- '.rdp-today .rdp-day_button': {
57
- color: '$brand500',
58
- textDecoration: 'underline',
59
- },
60
- '.rdp-day.rdp-disabled .rdp-day_button': {
61
- color: '$dark400'
62
- },
63
- '.rdp-day_button': {
64
- height: '32px',
65
- width: '32px',
66
- borderRadius: '$sm',
67
- fontSize: '$14',
68
- color: '$text',
69
- backgroundColor: 'transparent',
70
- border: '1px solid transparent',
71
- transition: 'all 0.2s ease-in-out',
72
- cursor: 'pointer',
73
- },
74
- '.rdp-day_button:hover': {
75
- backgroundColor: '$dark100',
76
- borderColor: '$brand500',
77
- },
78
- '.rdp-day.rdp-disabled .rdp-day_button:hover': {
79
- backgroundColor: 'transparent',
80
- borderColor: 'transparent',
81
- },
82
- '.rdp-nav': {
83
- display: 'flex',
84
- justifyContent: 'space-between',
85
- width: '100%',
86
- },
87
- '.rdp-nav .rdp-chevron': {
88
- display: 'none',
89
- },
90
- '.rdp-nav .rdp-button_previous': {
91
- display: 'block',
92
- backgroundImage: '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")',
93
- backgroundRepeat: 'no-repeat',
94
- backgroundPosition: 'center',
95
- backgroundSize: 'cover',
96
- width: '32px',
97
- height: '32px',
98
-
99
- },
100
- '.rdp-nav .rdp-button_next': {
101
- display: 'block',
102
- backgroundImage: '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")',
103
- backgroundRepeat: 'no-repeat',
104
- backgroundPosition: 'center',
105
- backgroundSize: 'cover',
106
- width: '32px',
107
- height: '32px',
108
- },
109
- '.rdp-nav .rdp-button_previous:hover': {
110
- backgroundImage: '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")',
111
- transition: 'all 0.2s ease-in-out',
112
- },
113
- '.rdp-nav .rdp-button_next:hover': {
114
- backgroundImage: '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")',
115
- transition: 'all 0.2s ease-in-out',
116
- },
117
- '.rdp-nav button': {
118
- border: 'none',
119
- backgroundColor: 'transparent',
120
- cursor: 'pointer',
121
- },
122
- '.rdp-month': {
123
- marginTop: '-24px',
124
- },
125
- '.rdp-month_caption': {
126
- display: 'flex',
127
- alignItems: 'center',
128
- justifyContent: 'center',
129
- width: 'calc(100% - 64px)',
130
- margin: '0 auto',
131
- columnGap: '12px',
132
- },
133
- '.rdp-dropdowns span, .rdp-caption_label': {
134
- fontSize: '$16',
135
- fontWeight: '$regular',
136
- lineHeight: '$20',
137
- textTransform: 'capitalize',
138
- },
139
- '.rdp-day.rdp-selected .rdp-day_button': {
140
- backgroundColor: '$brand500',
141
- color: '$neutral50',
142
- borderColor: '$brand500',
143
- },
144
- '.rdp-dropdowns': {
145
- display: 'flex',
146
- alignItems: 'center',
147
- justifyContent: 'center',
148
- width: 'calc(100% - 64px)',
149
- columnGap: '12px',
150
- },
151
- '.rdp-dropdowns .rdp-caption_label': {
152
- display: 'none',
153
- },
154
- '.rdp-dropdown.rdp-months_dropdown, .rdp-dropdown.rdp-years_dropdown': {
155
- border: 'none',
156
- backgroundColor: 'transparent',
157
- textTransform: 'capitalize',
158
- height: '1.25rem',
159
- position: 'relative',
160
- fontFamily: '$default',
161
- fontSize: '$16',
162
- lineHeight: '1.25rem',
163
- appearance: 'none',
164
- WebkitAppearance: 'none',
165
- MozAppearance: 'none',
166
- paddingRight: '1.25rem',
167
- zIndex: '3',
168
- },
169
- '.rdp-dropdown:focus, .rdp-dropdown:focus-visible, .rdp-dropdown:active': {
170
- border: 'none',
171
- outline: 'none',
172
- boxShadow: 'none',
173
- },
174
- '.rdp-dropdown.rdp-months_dropdown:focus, .rdp-dropdown.rdp-years_dropdown:focus': {
175
- border: 'none',
176
- },
177
- '.rdp-dropdown_root': {
178
- position: 'relative'
179
- },
180
- '.rdp-dropdown_root::after': {
181
- content: '',
182
- height: '1.25rem',
183
- width: '1.25rem',
184
- position: 'absolute',
185
- top: '0',
186
- right: '0',
187
- display: 'block',
188
- backgroundColor: '$neutral50',
189
- backgroundImage: '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")',
190
- backgroundRepeat: 'no-repeat',
191
- backgroundPosition: 'center',
192
- borderRadius: '0.5rem',
193
- zIndex: '2',
194
- },
195
- '.rdp-weekday': {
196
- textTransform: 'uppercase',
197
- fontWeight: '$regular',
198
- fontSize: '0px',
199
-
200
- },
201
- '.rdp-weekday::first-letter': {
202
- fontSize: '$14',
203
- },
204
- '.rdp-month_grid': {
205
- marginTop: '$16',
206
- paddingTop: '$16',
207
- borderTop: '2px solid $neutral100',
208
- },
209
- })
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
+ })
10
+ export const CalendarButtonStyled = styled('button', {
11
+ backgroundColor: 'transparent',
12
+ border: 'none',
13
+ maxWidth: '200px',
14
+ padding: '0',
15
+ cursor: 'pointer',
16
+ '> div > div': {
17
+ paddingLeft: '1rem',
18
+ 'input': {
19
+ textAlign: 'right',
20
+ }
21
+ },
22
+ })
23
+ export const CalendarContentStyled = styled('div', {
24
+ fontFamily: '$default',
25
+ lineHeight: '$base',
26
+ fontSize: '$14',
27
+ width: '100%',
28
+ maxWidth: 'fit-content',
29
+ border: '1px solid $neutral300',
30
+ borderRadius: '$sm',
31
+ boxShadow: '0px 2px 8px 0px $shadow50',
32
+ position: 'absolute',
33
+ left: '0',
34
+ backgroundColor: '$neutral50',
35
+ zIndex: '999999',
36
+ })
37
+
38
+ export const CalendarFooterStyled = styled('div', {
39
+ borderTop: '2px solid $neutral100',
40
+ padding: '$4 $16',
41
+ display: 'flex',
42
+ justifyContent: 'center',
43
+ alignItems: 'center',
44
+ height: '3rem',
45
+ })
46
+
47
+ export const DayPickerWrapperStyled = styled('div', {
48
+ '.rt-TextFieldInput': {
49
+ fontFamily: '$default',
50
+ fontSize: '$14',
51
+ color: '$dark500',
52
+ },
53
+ '.rdp-root': {
54
+ padding: '$16',
55
+ },
56
+ '.rdp-today .rdp-day_button': {
57
+ color: '$brand500',
58
+ textDecoration: 'underline',
59
+ },
60
+ '.rdp-day.rdp-disabled .rdp-day_button': {
61
+ color: '$dark400'
62
+ },
63
+ '.rdp-day_button': {
64
+ height: '32px',
65
+ width: '32px',
66
+ borderRadius: '$sm',
67
+ fontSize: '$14',
68
+ color: '$text',
69
+ backgroundColor: 'transparent',
70
+ border: '1px solid transparent',
71
+ transition: 'all 0.2s ease-in-out',
72
+ cursor: 'pointer',
73
+ },
74
+ '.rdp-day_button:hover': {
75
+ backgroundColor: '$dark100',
76
+ borderColor: '$brand500',
77
+ },
78
+ '.rdp-day.rdp-disabled .rdp-day_button:hover': {
79
+ backgroundColor: 'transparent',
80
+ borderColor: 'transparent',
81
+ },
82
+ '.rdp-nav': {
83
+ display: 'flex',
84
+ justifyContent: 'space-between',
85
+ width: '100%',
86
+ },
87
+ '.rdp-nav .rdp-chevron': {
88
+ display: 'none',
89
+ },
90
+ '.rdp-nav .rdp-button_previous': {
91
+ display: 'block',
92
+ backgroundImage: '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")',
93
+ backgroundRepeat: 'no-repeat',
94
+ backgroundPosition: 'center',
95
+ backgroundSize: 'cover',
96
+ width: '32px',
97
+ height: '32px',
98
+
99
+ },
100
+ '.rdp-nav .rdp-button_next': {
101
+ display: 'block',
102
+ backgroundImage: '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")',
103
+ backgroundRepeat: 'no-repeat',
104
+ backgroundPosition: 'center',
105
+ backgroundSize: 'cover',
106
+ width: '32px',
107
+ height: '32px',
108
+ },
109
+ '.rdp-nav .rdp-button_previous:hover': {
110
+ backgroundImage: '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")',
111
+ transition: 'all 0.2s ease-in-out',
112
+ },
113
+ '.rdp-nav .rdp-button_next:hover': {
114
+ backgroundImage: '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")',
115
+ transition: 'all 0.2s ease-in-out',
116
+ },
117
+ '.rdp-nav button': {
118
+ border: 'none',
119
+ backgroundColor: 'transparent',
120
+ cursor: 'pointer',
121
+ },
122
+ '.rdp-month': {
123
+ marginTop: '-24px',
124
+ },
125
+ '.rdp-month_caption': {
126
+ display: 'flex',
127
+ alignItems: 'center',
128
+ justifyContent: 'center',
129
+ width: 'calc(100% - 64px)',
130
+ margin: '0 auto',
131
+ columnGap: '12px',
132
+ },
133
+ '.rdp-dropdowns span, .rdp-caption_label': {
134
+ fontSize: '$16',
135
+ fontWeight: '$regular',
136
+ lineHeight: '$20',
137
+ textTransform: 'capitalize',
138
+ },
139
+ '.rdp-day.rdp-selected .rdp-day_button': {
140
+ backgroundColor: '$brand500',
141
+ color: '$neutral50',
142
+ borderColor: '$brand500',
143
+ },
144
+ '.rdp-dropdowns': {
145
+ display: 'flex',
146
+ alignItems: 'center',
147
+ justifyContent: 'center',
148
+ width: 'calc(100% - 64px)',
149
+ columnGap: '12px',
150
+ },
151
+ '.rdp-dropdowns .rdp-caption_label': {
152
+ display: 'none',
153
+ },
154
+ '.rdp-dropdown.rdp-months_dropdown, .rdp-dropdown.rdp-years_dropdown': {
155
+ border: 'none',
156
+ backgroundColor: 'transparent',
157
+ textTransform: 'capitalize',
158
+ height: '1.25rem',
159
+ position: 'relative',
160
+ fontFamily: '$default',
161
+ fontSize: '$16',
162
+ lineHeight: '1.25rem',
163
+ appearance: 'none',
164
+ WebkitAppearance: 'none',
165
+ MozAppearance: 'none',
166
+ paddingRight: '1.25rem',
167
+ zIndex: '3',
168
+ },
169
+ '.rdp-dropdown:focus, .rdp-dropdown:focus-visible, .rdp-dropdown:active': {
170
+ border: 'none',
171
+ outline: 'none',
172
+ boxShadow: 'none',
173
+ },
174
+ '.rdp-dropdown.rdp-months_dropdown:focus, .rdp-dropdown.rdp-years_dropdown:focus': {
175
+ border: 'none',
176
+ },
177
+ '.rdp-dropdown_root': {
178
+ position: 'relative'
179
+ },
180
+ '.rdp-dropdown_root::after': {
181
+ content: '',
182
+ height: '1.25rem',
183
+ width: '1.25rem',
184
+ position: 'absolute',
185
+ top: '0',
186
+ right: '0',
187
+ display: 'block',
188
+ backgroundColor: '$neutral50',
189
+ backgroundImage: '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")',
190
+ backgroundRepeat: 'no-repeat',
191
+ backgroundPosition: 'center',
192
+ borderRadius: '0.5rem',
193
+ zIndex: '2',
194
+ },
195
+ '.rdp-weekday': {
196
+ textTransform: 'uppercase',
197
+ fontWeight: '$regular',
198
+ fontSize: '0px',
199
+
200
+ },
201
+ '.rdp-weekday::first-letter': {
202
+ fontSize: '$14',
203
+ },
204
+ '.rdp-month_grid': {
205
+ marginTop: '$16',
206
+ paddingTop: '$16',
207
+ borderTop: '2px solid $neutral100',
208
+ },
209
+ })
@@ -1,48 +1,48 @@
1
- import React from "react";
2
- import { ComponentProps, ElementType } from "react";
3
- import { styled } from "../styles";
4
- import { Box, Card as CardRadix } from "@radix-ui/themes";
5
-
6
- export const CardStyled = styled(CardRadix, {
7
- borderRadius: "$2xl",
8
- border: "1px solid $dark100",
9
- padding: "16px",
10
- defaultVariants: {
11
- color: "primary",
12
- boxShadow: false,
13
- },
14
- variants: {
15
- color: {
16
- primary: {
17
- backgroundColor: "$dark50",
18
- border: "1px solid $dark200",
19
- },
20
- disable: {
21
- backgroundColor: "$grey50",
22
- border: "1px solid $dark200",
23
- },
24
- error: {
25
- backgroundColor: "$error50",
26
- border: "1px solid $error600",
27
- },
28
- },
29
- boxShadow: {
30
- true: {
31
- boxShadow:
32
- "0 2px 4px rgba(35, 53, 67, 0.16), 0 4px 4px rgba(35, 53, 67, 0.08)",
33
- },
34
- false: {
35
- boxShadow: "none",
36
- },
37
- },
38
- },
39
- });
40
-
41
- export type CardProps = ComponentProps<typeof CardStyled> & {
42
- children: React.ReactNode;
43
- as?: ElementType;
44
- };
45
-
46
- export function Card({ asChild, children, ...props }: CardProps) {
47
- return <CardStyled {...props}>{children}</CardStyled>;
48
- }
1
+ import React from "react";
2
+ import { ComponentProps, ElementType } from "react";
3
+ import { styled } from "../styles";
4
+ import { Box, Card as CardRadix } from "@radix-ui/themes";
5
+
6
+ export const CardStyled = styled(CardRadix, {
7
+ borderRadius: "$2xl",
8
+ border: "1px solid $dark100",
9
+ padding: "16px",
10
+ defaultVariants: {
11
+ color: "primary",
12
+ boxShadow: false,
13
+ },
14
+ variants: {
15
+ color: {
16
+ primary: {
17
+ backgroundColor: "$dark50",
18
+ border: "1px solid $dark200",
19
+ },
20
+ disable: {
21
+ backgroundColor: "$grey50",
22
+ border: "1px solid $dark200",
23
+ },
24
+ error: {
25
+ backgroundColor: "$error50",
26
+ border: "1px solid $error600",
27
+ },
28
+ },
29
+ boxShadow: {
30
+ true: {
31
+ boxShadow:
32
+ "0 2px 4px rgba(35, 53, 67, 0.16), 0 4px 4px rgba(35, 53, 67, 0.08)",
33
+ },
34
+ false: {
35
+ boxShadow: "none",
36
+ },
37
+ },
38
+ },
39
+ });
40
+
41
+ export type CardProps = ComponentProps<typeof CardStyled> & {
42
+ children: React.ReactNode;
43
+ as?: ElementType;
44
+ };
45
+
46
+ export function Card({ asChild, children, ...props }: CardProps) {
47
+ return <CardStyled {...props}>{children}</CardStyled>;
48
+ }