@lets-events/react 12.9.1 → 12.9.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.
- package/.eslintrc.json +2 -2
- package/.turbo/turbo-build.log +19 -21
- package/CHANGELOG.md +12 -0
- package/dist/index.js +185 -4
- package/dist/index.mjs +185 -4
- package/package.json +1 -1
- package/src/components/Alert.tsx +303 -303
- package/src/components/Avatar.tsx +55 -55
- package/src/components/Badge.tsx +123 -123
- package/src/components/Box.tsx +3 -3
- package/src/components/Button/index.tsx +62 -62
- package/src/components/Button/styledComponents.ts +320 -320
- package/src/components/ButtonGroup.tsx +484 -484
- package/src/components/Calendar/index.tsx +168 -168
- package/src/components/Calendar/styledComponents.ts +480 -293
- package/src/components/Card.tsx +67 -67
- package/src/components/CheckboxGroup.tsx +176 -176
- package/src/components/Container.tsx +39 -39
- package/src/components/Divider.tsx +7 -7
- package/src/components/DoubleCalendar/index.tsx +182 -182
- package/src/components/Drawer/index.tsx +100 -100
- package/src/components/Drawer/styledComponents.ts +103 -103
- package/src/components/Dropdown.tsx +302 -302
- package/src/components/Filter.tsx +164 -164
- package/src/components/Flex.tsx +118 -118
- package/src/components/FormFields/AddressFormFields/CityFormField.tsx +111 -111
- package/src/components/FormFields/AddressFormFields/CountryFormField.tsx +33 -33
- package/src/components/FormFields/AddressFormFields/PostalCodeFormField.tsx +39 -39
- package/src/components/FormFields/AddressFormFields/StateFormField.tsx +32 -32
- package/src/components/FormFields/AddressFormFields/index.tsx +141 -141
- package/src/components/FormFields/BirthDateFormField.tsx +84 -84
- package/src/components/FormFields/CNPJFormField.tsx +87 -87
- package/src/components/FormFields/CPFFormField.tsx +78 -78
- package/src/components/FormFields/CalendarFormField.tsx +98 -98
- package/src/components/FormFields/CheckboxGroupFormField.tsx +91 -91
- package/src/components/FormFields/DateAndTimeFormField.tsx +217 -217
- package/src/components/FormFields/DoubleCalendarFormField.tsx +96 -96
- package/src/components/FormFields/EmailFormField.tsx +27 -27
- package/src/components/FormFields/Form.tsx +39 -39
- package/src/components/FormFields/IdentityDocumentNumberFormField.tsx +32 -32
- package/src/components/FormFields/MultiSelectFormField.tsx +64 -64
- package/src/components/FormFields/PhoneFormField.tsx +40 -40
- package/src/components/FormFields/RadioGroupFormField.tsx +86 -86
- package/src/components/FormFields/RichEditorFormField.tsx +103 -103
- package/src/components/FormFields/SelectFormField.tsx +113 -113
- package/src/components/FormFields/SwitchFormField.tsx +46 -46
- package/src/components/FormFields/TextAreaFormField.tsx +61 -61
- package/src/components/FormFields/TextFormField.tsx +112 -112
- package/src/components/FormFields/TimePickerFormField.tsx +88 -88
- package/src/components/FormFields/subComponents/ErrorFormMessage.tsx +36 -36
- package/src/components/FormFields/subComponents/FormLabel.tsx +36 -36
- package/src/components/FormFields/utils/validation.ts +23 -23
- package/src/components/Grid.tsx +137 -137
- package/src/components/Icon.tsx +47 -47
- package/src/components/MenuDropdown/index.tsx +38 -38
- package/src/components/MenuDropdown/styledComponents.ts +31 -31
- package/src/components/Modal.tsx +110 -110
- package/src/components/MultiSelect/index.tsx +305 -305
- package/src/components/MultiSelect/styledComponents.ts +160 -160
- package/src/components/RadioGroup.tsx +210 -210
- package/src/components/RichEditor/QuillComponent.tsx +468 -468
- package/src/components/RichEditor/RichEditor.tsx +49 -49
- package/src/components/RichEditor/RichTextPresenter.tsx +18 -18
- package/src/components/RichEditor/index.ts +3 -3
- package/src/components/RichEditor/styledComponents.ts +1170 -1170
- package/src/components/Section.tsx +33 -33
- package/src/components/Step.tsx +164 -164
- package/src/components/Switch.tsx +108 -108
- package/src/components/Text.tsx +38 -38
- package/src/components/TextField.tsx +372 -372
- package/src/components/TextareaField.tsx +116 -116
- package/src/components/TimePicker.tsx +357 -357
- package/src/components/Toast/components/ToastItem.tsx +41 -41
- package/src/components/Toast/components/ToastProvider.tsx +63 -63
- package/src/components/Toast/hooks/useToast.ts +12 -12
- package/src/components/Toast/index.tsx +5 -5
- package/src/components/Toast/styles/index.ts +135 -135
- package/src/components/Toast/types/index.ts +46 -46
- package/src/components/Tooltip/index.tsx +73 -73
- package/src/components/Tooltip/styles.ts +77 -77
- package/src/hooks/useCountries.ts +41 -41
- package/src/hooks/useImageUpload.ts +139 -139
- package/src/hooks/useOnClickOutside.tsx +42 -42
- package/src/index.tsx +72 -72
- package/src/styles/index.ts +41 -41
- package/src/types/typographyValues.ts +178 -178
- package/src/utils/getNestedValue.ts +3 -3
- package/src/utils/states.ts +29 -29
- package/src/utils/uploadService.ts +180 -180
- package/tsconfig.json +3 -3
- package/tsup.config.ts +38 -38
package/.eslintrc.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@lets-events/eslint-config"
|
|
1
|
+
{
|
|
2
|
+
"extends": "@lets-events/eslint-config"
|
|
3
3
|
}
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
[
|
|
7
|
-
[34mCLI[39m
|
|
8
|
-
[34mCLI[39m tsup
|
|
9
|
-
[34mCLI[39m
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
DTS dist/index.d.ts 404.35 KB
|
|
21
|
-
[1G[0K⠙[1G[0K
|
|
1
|
+
|
|
2
|
+
> @lets-events/react@12.9.3 build
|
|
3
|
+
> tsup src/index.tsx --format esm,cjs --dts --external react
|
|
4
|
+
|
|
5
|
+
[34mCLI[39m Building entry: src/index.tsx
|
|
6
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
+
[34mCLI[39m tsup v8.5.0
|
|
8
|
+
[34mCLI[39m Using tsup config: C:\Users\Cazuza\Desktop\Web\design-system\packages\react\tsup.config.ts
|
|
9
|
+
[34mCLI[39m Target: es6
|
|
10
|
+
[34mESM[39m Build start
|
|
11
|
+
[34mCJS[39m Build start
|
|
12
|
+
[34mDTS[39m Build start
|
|
13
|
+
[32mCJS[39m [1mdist\index.js [22m[32m423.43 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 914ms
|
|
15
|
+
[32mESM[39m [1mdist\index.mjs [22m[32m407.95 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 916ms
|
|
17
|
+
[32mDTS[39m ⚡️ Build success in 5416ms
|
|
18
|
+
[32mDTS[39m [1mdist\index.d.mts [22m[32m404.35 KB[39m
|
|
19
|
+
[32mDTS[39m [1mdist\index.d.ts [22m[32m404.35 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -8099,6 +8099,187 @@ var DayPickerWrapperStyled = styled("div", {
|
|
|
8099
8099
|
}
|
|
8100
8100
|
}
|
|
8101
8101
|
});
|
|
8102
|
+
var DayPickerWrapperStyledToDoubleCalendar = styled("div", {
|
|
8103
|
+
".rt-TextFieldInput": {
|
|
8104
|
+
fontFamily: "$default",
|
|
8105
|
+
fontSize: "$14",
|
|
8106
|
+
color: "$dark500"
|
|
8107
|
+
},
|
|
8108
|
+
".rdp-root": {
|
|
8109
|
+
padding: "0 $8"
|
|
8110
|
+
},
|
|
8111
|
+
".rdp-today .rdp-day_button": {
|
|
8112
|
+
color: "$brand500",
|
|
8113
|
+
textDecoration: "underline"
|
|
8114
|
+
},
|
|
8115
|
+
".rdp-day.rdp-disabled .rdp-day_button": {
|
|
8116
|
+
color: "$dark400"
|
|
8117
|
+
},
|
|
8118
|
+
".rdp-day_button": {
|
|
8119
|
+
height: "26px",
|
|
8120
|
+
width: "26px",
|
|
8121
|
+
borderRadius: "$sm",
|
|
8122
|
+
fontSize: "$14",
|
|
8123
|
+
color: "$text",
|
|
8124
|
+
backgroundColor: "transparent",
|
|
8125
|
+
border: "1px solid transparent",
|
|
8126
|
+
transition: "all 0.2s ease-in-out",
|
|
8127
|
+
cursor: "pointer",
|
|
8128
|
+
display: "flex",
|
|
8129
|
+
alignItems: "center",
|
|
8130
|
+
justifyContent: "center"
|
|
8131
|
+
},
|
|
8132
|
+
".rdp-day_button:hover": {
|
|
8133
|
+
backgroundColor: "$dark100",
|
|
8134
|
+
borderColor: "$brand600"
|
|
8135
|
+
},
|
|
8136
|
+
".rdp-day.rdp-disabled .rdp-day_button:hover": {
|
|
8137
|
+
backgroundColor: "transparent",
|
|
8138
|
+
borderColor: "transparent"
|
|
8139
|
+
},
|
|
8140
|
+
".rdp-nav": {
|
|
8141
|
+
position: "absolute",
|
|
8142
|
+
width: "100%",
|
|
8143
|
+
left: "0",
|
|
8144
|
+
display: "flex",
|
|
8145
|
+
justifyContent: "space-between"
|
|
8146
|
+
},
|
|
8147
|
+
".rdp-nav .rdp-chevron": {
|
|
8148
|
+
display: "none"
|
|
8149
|
+
},
|
|
8150
|
+
".rdp-nav .rdp-button_previous": {
|
|
8151
|
+
display: "block",
|
|
8152
|
+
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")`,
|
|
8153
|
+
backgroundRepeat: "no-repeat",
|
|
8154
|
+
backgroundPosition: "center",
|
|
8155
|
+
backgroundSize: "cover",
|
|
8156
|
+
width: "32px",
|
|
8157
|
+
height: "32px"
|
|
8158
|
+
},
|
|
8159
|
+
".rdp-nav .rdp-button_next": {
|
|
8160
|
+
display: "block",
|
|
8161
|
+
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")`,
|
|
8162
|
+
backgroundRepeat: "no-repeat",
|
|
8163
|
+
backgroundPosition: "center",
|
|
8164
|
+
backgroundSize: "cover",
|
|
8165
|
+
width: "32px",
|
|
8166
|
+
height: "32px"
|
|
8167
|
+
},
|
|
8168
|
+
".rdp-nav .rdp-button_previous:hover": {
|
|
8169
|
+
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")`,
|
|
8170
|
+
transition: "all 0.2s ease-in-out"
|
|
8171
|
+
},
|
|
8172
|
+
".rdp-nav .rdp-button_next:hover": {
|
|
8173
|
+
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")`,
|
|
8174
|
+
transition: "all 0.2s ease-in-out"
|
|
8175
|
+
},
|
|
8176
|
+
".rdp-nav button": {
|
|
8177
|
+
border: "none",
|
|
8178
|
+
backgroundColor: "transparent",
|
|
8179
|
+
cursor: "pointer"
|
|
8180
|
+
},
|
|
8181
|
+
".rdp-months": {
|
|
8182
|
+
display: "flex",
|
|
8183
|
+
columnGap: "$8",
|
|
8184
|
+
alignItems: "flex-start",
|
|
8185
|
+
paddingTop: "$12"
|
|
8186
|
+
},
|
|
8187
|
+
".rdp-month": {
|
|
8188
|
+
marginTop: "0",
|
|
8189
|
+
paddingTop: "$6"
|
|
8190
|
+
},
|
|
8191
|
+
".rdp-month_caption": {
|
|
8192
|
+
display: "flex",
|
|
8193
|
+
alignItems: "center",
|
|
8194
|
+
justifyContent: "center",
|
|
8195
|
+
width: "calc(100% - 64px)",
|
|
8196
|
+
margin: "0 auto",
|
|
8197
|
+
columnGap: "12px"
|
|
8198
|
+
},
|
|
8199
|
+
".rdp-dropdowns span, .rdp-caption_label": {
|
|
8200
|
+
fontSize: "$16",
|
|
8201
|
+
fontWeight: "$regular",
|
|
8202
|
+
lineHeight: "$20",
|
|
8203
|
+
textTransform: "capitalize"
|
|
8204
|
+
},
|
|
8205
|
+
".rdp-day.rdp-selected .rdp-day_button": {
|
|
8206
|
+
backgroundColor: "$brand500",
|
|
8207
|
+
color: "$neutral50",
|
|
8208
|
+
borderColor: "$brand600",
|
|
8209
|
+
borderRadius: "0.5rem"
|
|
8210
|
+
},
|
|
8211
|
+
".rdp-dropdowns": {
|
|
8212
|
+
display: "flex",
|
|
8213
|
+
alignItems: "center",
|
|
8214
|
+
justifyContent: "center",
|
|
8215
|
+
width: "calc(100% - 64px)",
|
|
8216
|
+
columnGap: "12px"
|
|
8217
|
+
},
|
|
8218
|
+
".rdp-dropdowns .rdp-caption_label": {
|
|
8219
|
+
display: "none"
|
|
8220
|
+
},
|
|
8221
|
+
".rdp-dropdown.rdp-months_dropdown, .rdp-dropdown.rdp-years_dropdown": {
|
|
8222
|
+
border: "none",
|
|
8223
|
+
backgroundColor: "transparent",
|
|
8224
|
+
textTransform: "capitalize",
|
|
8225
|
+
height: "1.25rem",
|
|
8226
|
+
position: "relative",
|
|
8227
|
+
fontFamily: "$default",
|
|
8228
|
+
fontSize: "$16",
|
|
8229
|
+
lineHeight: "1.25rem",
|
|
8230
|
+
appearance: "none",
|
|
8231
|
+
WebkitAppearance: "none",
|
|
8232
|
+
MozAppearance: "none",
|
|
8233
|
+
paddingRight: "1.25rem",
|
|
8234
|
+
zIndex: "3"
|
|
8235
|
+
},
|
|
8236
|
+
".rdp-dropdown:focus, .rdp-dropdown:focus-visible, .rdp-dropdown:active": {
|
|
8237
|
+
border: "none",
|
|
8238
|
+
outline: "none",
|
|
8239
|
+
boxShadow: "none"
|
|
8240
|
+
},
|
|
8241
|
+
".rdp-dropdown.rdp-months_dropdown:focus, .rdp-dropdown.rdp-years_dropdown:focus": {
|
|
8242
|
+
border: "none"
|
|
8243
|
+
},
|
|
8244
|
+
".rdp-dropdown_root": {
|
|
8245
|
+
position: "relative"
|
|
8246
|
+
},
|
|
8247
|
+
".rdp-dropdown_root::after": {
|
|
8248
|
+
content: "",
|
|
8249
|
+
height: "1.25rem",
|
|
8250
|
+
width: "1.25rem",
|
|
8251
|
+
position: "absolute",
|
|
8252
|
+
top: "0",
|
|
8253
|
+
right: "0",
|
|
8254
|
+
display: "block",
|
|
8255
|
+
backgroundColor: "$neutral50",
|
|
8256
|
+
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")`,
|
|
8257
|
+
backgroundRepeat: "no-repeat",
|
|
8258
|
+
backgroundPosition: "center",
|
|
8259
|
+
borderRadius: "0.5rem",
|
|
8260
|
+
zIndex: "2"
|
|
8261
|
+
},
|
|
8262
|
+
".rdp-weekday": {
|
|
8263
|
+
textTransform: "uppercase",
|
|
8264
|
+
fontWeight: "$regular",
|
|
8265
|
+
fontSize: "0px"
|
|
8266
|
+
},
|
|
8267
|
+
".rdp-weekday::first-letter": {
|
|
8268
|
+
fontSize: "$14"
|
|
8269
|
+
},
|
|
8270
|
+
".rdp-month_grid": {
|
|
8271
|
+
marginTop: "$16",
|
|
8272
|
+
paddingTop: "$16",
|
|
8273
|
+
borderTop: "2px solid $neutral100"
|
|
8274
|
+
},
|
|
8275
|
+
"@media (max-width: 748px)": {
|
|
8276
|
+
".rdp-months": {
|
|
8277
|
+
flexDirection: "column",
|
|
8278
|
+
alignItems: "center",
|
|
8279
|
+
padding: "16px"
|
|
8280
|
+
}
|
|
8281
|
+
}
|
|
8282
|
+
});
|
|
8102
8283
|
|
|
8103
8284
|
// src/components/Calendar/index.tsx
|
|
8104
8285
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
@@ -8319,13 +8500,13 @@ function DoubleCalendar(_a) {
|
|
|
8319
8500
|
textAlign: "right",
|
|
8320
8501
|
color: hasError ? "error" : "default",
|
|
8321
8502
|
disabled,
|
|
8322
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(TextFieldSlot, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon_default, { name: "calendar", size: "xl" }) })
|
|
8503
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(TextFieldSlot, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon_default, { name: "calendar", size: "xl", color: "#4C4F54" }) })
|
|
8323
8504
|
}
|
|
8324
8505
|
) })
|
|
8325
8506
|
}
|
|
8326
8507
|
),
|
|
8327
8508
|
showContainer && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(CalendarContentStyled, { position, children: [
|
|
8328
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
8509
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DayPickerWrapperStyledToDoubleCalendar, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
8329
8510
|
import_react_day_picker2.DayPicker,
|
|
8330
8511
|
{
|
|
8331
8512
|
mode: "range",
|
|
@@ -13478,11 +13659,11 @@ var DateAndTimeFormField = (_a) => {
|
|
|
13478
13659
|
}, [selectedDateFromIso, selectedTimeFromIso]);
|
|
13479
13660
|
const combineDateTime = (0, import_react28.useCallback)(
|
|
13480
13661
|
(date, time) => {
|
|
13481
|
-
if (!date
|
|
13662
|
+
if (!date) {
|
|
13482
13663
|
setIsoValue("");
|
|
13483
13664
|
return;
|
|
13484
13665
|
}
|
|
13485
|
-
const [hours, minutes] = time.split(":").map(Number);
|
|
13666
|
+
const [hours, minutes] = (time != null ? time : "00:00").split(":").map(Number);
|
|
13486
13667
|
const combined = new Date(date);
|
|
13487
13668
|
combined.setHours(hours || 0, minutes || 0, 0, 0);
|
|
13488
13669
|
setIsoValue(combined.toISOString());
|
package/dist/index.mjs
CHANGED
|
@@ -7983,6 +7983,187 @@ var DayPickerWrapperStyled = styled("div", {
|
|
|
7983
7983
|
}
|
|
7984
7984
|
}
|
|
7985
7985
|
});
|
|
7986
|
+
var DayPickerWrapperStyledToDoubleCalendar = styled("div", {
|
|
7987
|
+
".rt-TextFieldInput": {
|
|
7988
|
+
fontFamily: "$default",
|
|
7989
|
+
fontSize: "$14",
|
|
7990
|
+
color: "$dark500"
|
|
7991
|
+
},
|
|
7992
|
+
".rdp-root": {
|
|
7993
|
+
padding: "0 $8"
|
|
7994
|
+
},
|
|
7995
|
+
".rdp-today .rdp-day_button": {
|
|
7996
|
+
color: "$brand500",
|
|
7997
|
+
textDecoration: "underline"
|
|
7998
|
+
},
|
|
7999
|
+
".rdp-day.rdp-disabled .rdp-day_button": {
|
|
8000
|
+
color: "$dark400"
|
|
8001
|
+
},
|
|
8002
|
+
".rdp-day_button": {
|
|
8003
|
+
height: "26px",
|
|
8004
|
+
width: "26px",
|
|
8005
|
+
borderRadius: "$sm",
|
|
8006
|
+
fontSize: "$14",
|
|
8007
|
+
color: "$text",
|
|
8008
|
+
backgroundColor: "transparent",
|
|
8009
|
+
border: "1px solid transparent",
|
|
8010
|
+
transition: "all 0.2s ease-in-out",
|
|
8011
|
+
cursor: "pointer",
|
|
8012
|
+
display: "flex",
|
|
8013
|
+
alignItems: "center",
|
|
8014
|
+
justifyContent: "center"
|
|
8015
|
+
},
|
|
8016
|
+
".rdp-day_button:hover": {
|
|
8017
|
+
backgroundColor: "$dark100",
|
|
8018
|
+
borderColor: "$brand600"
|
|
8019
|
+
},
|
|
8020
|
+
".rdp-day.rdp-disabled .rdp-day_button:hover": {
|
|
8021
|
+
backgroundColor: "transparent",
|
|
8022
|
+
borderColor: "transparent"
|
|
8023
|
+
},
|
|
8024
|
+
".rdp-nav": {
|
|
8025
|
+
position: "absolute",
|
|
8026
|
+
width: "100%",
|
|
8027
|
+
left: "0",
|
|
8028
|
+
display: "flex",
|
|
8029
|
+
justifyContent: "space-between"
|
|
8030
|
+
},
|
|
8031
|
+
".rdp-nav .rdp-chevron": {
|
|
8032
|
+
display: "none"
|
|
8033
|
+
},
|
|
8034
|
+
".rdp-nav .rdp-button_previous": {
|
|
8035
|
+
display: "block",
|
|
8036
|
+
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")`,
|
|
8037
|
+
backgroundRepeat: "no-repeat",
|
|
8038
|
+
backgroundPosition: "center",
|
|
8039
|
+
backgroundSize: "cover",
|
|
8040
|
+
width: "32px",
|
|
8041
|
+
height: "32px"
|
|
8042
|
+
},
|
|
8043
|
+
".rdp-nav .rdp-button_next": {
|
|
8044
|
+
display: "block",
|
|
8045
|
+
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")`,
|
|
8046
|
+
backgroundRepeat: "no-repeat",
|
|
8047
|
+
backgroundPosition: "center",
|
|
8048
|
+
backgroundSize: "cover",
|
|
8049
|
+
width: "32px",
|
|
8050
|
+
height: "32px"
|
|
8051
|
+
},
|
|
8052
|
+
".rdp-nav .rdp-button_previous:hover": {
|
|
8053
|
+
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")`,
|
|
8054
|
+
transition: "all 0.2s ease-in-out"
|
|
8055
|
+
},
|
|
8056
|
+
".rdp-nav .rdp-button_next:hover": {
|
|
8057
|
+
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")`,
|
|
8058
|
+
transition: "all 0.2s ease-in-out"
|
|
8059
|
+
},
|
|
8060
|
+
".rdp-nav button": {
|
|
8061
|
+
border: "none",
|
|
8062
|
+
backgroundColor: "transparent",
|
|
8063
|
+
cursor: "pointer"
|
|
8064
|
+
},
|
|
8065
|
+
".rdp-months": {
|
|
8066
|
+
display: "flex",
|
|
8067
|
+
columnGap: "$8",
|
|
8068
|
+
alignItems: "flex-start",
|
|
8069
|
+
paddingTop: "$12"
|
|
8070
|
+
},
|
|
8071
|
+
".rdp-month": {
|
|
8072
|
+
marginTop: "0",
|
|
8073
|
+
paddingTop: "$6"
|
|
8074
|
+
},
|
|
8075
|
+
".rdp-month_caption": {
|
|
8076
|
+
display: "flex",
|
|
8077
|
+
alignItems: "center",
|
|
8078
|
+
justifyContent: "center",
|
|
8079
|
+
width: "calc(100% - 64px)",
|
|
8080
|
+
margin: "0 auto",
|
|
8081
|
+
columnGap: "12px"
|
|
8082
|
+
},
|
|
8083
|
+
".rdp-dropdowns span, .rdp-caption_label": {
|
|
8084
|
+
fontSize: "$16",
|
|
8085
|
+
fontWeight: "$regular",
|
|
8086
|
+
lineHeight: "$20",
|
|
8087
|
+
textTransform: "capitalize"
|
|
8088
|
+
},
|
|
8089
|
+
".rdp-day.rdp-selected .rdp-day_button": {
|
|
8090
|
+
backgroundColor: "$brand500",
|
|
8091
|
+
color: "$neutral50",
|
|
8092
|
+
borderColor: "$brand600",
|
|
8093
|
+
borderRadius: "0.5rem"
|
|
8094
|
+
},
|
|
8095
|
+
".rdp-dropdowns": {
|
|
8096
|
+
display: "flex",
|
|
8097
|
+
alignItems: "center",
|
|
8098
|
+
justifyContent: "center",
|
|
8099
|
+
width: "calc(100% - 64px)",
|
|
8100
|
+
columnGap: "12px"
|
|
8101
|
+
},
|
|
8102
|
+
".rdp-dropdowns .rdp-caption_label": {
|
|
8103
|
+
display: "none"
|
|
8104
|
+
},
|
|
8105
|
+
".rdp-dropdown.rdp-months_dropdown, .rdp-dropdown.rdp-years_dropdown": {
|
|
8106
|
+
border: "none",
|
|
8107
|
+
backgroundColor: "transparent",
|
|
8108
|
+
textTransform: "capitalize",
|
|
8109
|
+
height: "1.25rem",
|
|
8110
|
+
position: "relative",
|
|
8111
|
+
fontFamily: "$default",
|
|
8112
|
+
fontSize: "$16",
|
|
8113
|
+
lineHeight: "1.25rem",
|
|
8114
|
+
appearance: "none",
|
|
8115
|
+
WebkitAppearance: "none",
|
|
8116
|
+
MozAppearance: "none",
|
|
8117
|
+
paddingRight: "1.25rem",
|
|
8118
|
+
zIndex: "3"
|
|
8119
|
+
},
|
|
8120
|
+
".rdp-dropdown:focus, .rdp-dropdown:focus-visible, .rdp-dropdown:active": {
|
|
8121
|
+
border: "none",
|
|
8122
|
+
outline: "none",
|
|
8123
|
+
boxShadow: "none"
|
|
8124
|
+
},
|
|
8125
|
+
".rdp-dropdown.rdp-months_dropdown:focus, .rdp-dropdown.rdp-years_dropdown:focus": {
|
|
8126
|
+
border: "none"
|
|
8127
|
+
},
|
|
8128
|
+
".rdp-dropdown_root": {
|
|
8129
|
+
position: "relative"
|
|
8130
|
+
},
|
|
8131
|
+
".rdp-dropdown_root::after": {
|
|
8132
|
+
content: "",
|
|
8133
|
+
height: "1.25rem",
|
|
8134
|
+
width: "1.25rem",
|
|
8135
|
+
position: "absolute",
|
|
8136
|
+
top: "0",
|
|
8137
|
+
right: "0",
|
|
8138
|
+
display: "block",
|
|
8139
|
+
backgroundColor: "$neutral50",
|
|
8140
|
+
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")`,
|
|
8141
|
+
backgroundRepeat: "no-repeat",
|
|
8142
|
+
backgroundPosition: "center",
|
|
8143
|
+
borderRadius: "0.5rem",
|
|
8144
|
+
zIndex: "2"
|
|
8145
|
+
},
|
|
8146
|
+
".rdp-weekday": {
|
|
8147
|
+
textTransform: "uppercase",
|
|
8148
|
+
fontWeight: "$regular",
|
|
8149
|
+
fontSize: "0px"
|
|
8150
|
+
},
|
|
8151
|
+
".rdp-weekday::first-letter": {
|
|
8152
|
+
fontSize: "$14"
|
|
8153
|
+
},
|
|
8154
|
+
".rdp-month_grid": {
|
|
8155
|
+
marginTop: "$16",
|
|
8156
|
+
paddingTop: "$16",
|
|
8157
|
+
borderTop: "2px solid $neutral100"
|
|
8158
|
+
},
|
|
8159
|
+
"@media (max-width: 748px)": {
|
|
8160
|
+
".rdp-months": {
|
|
8161
|
+
flexDirection: "column",
|
|
8162
|
+
alignItems: "center",
|
|
8163
|
+
padding: "16px"
|
|
8164
|
+
}
|
|
8165
|
+
}
|
|
8166
|
+
});
|
|
7986
8167
|
|
|
7987
8168
|
// src/components/Calendar/index.tsx
|
|
7988
8169
|
import { jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
@@ -8203,13 +8384,13 @@ function DoubleCalendar(_a) {
|
|
|
8203
8384
|
textAlign: "right",
|
|
8204
8385
|
color: hasError ? "error" : "default",
|
|
8205
8386
|
disabled,
|
|
8206
|
-
children: /* @__PURE__ */ jsx16(TextFieldSlot, { children: /* @__PURE__ */ jsx16(Icon_default, { name: "calendar", size: "xl" }) })
|
|
8387
|
+
children: /* @__PURE__ */ jsx16(TextFieldSlot, { children: /* @__PURE__ */ jsx16(Icon_default, { name: "calendar", size: "xl", color: "#4C4F54" }) })
|
|
8207
8388
|
}
|
|
8208
8389
|
) })
|
|
8209
8390
|
}
|
|
8210
8391
|
),
|
|
8211
8392
|
showContainer && /* @__PURE__ */ jsxs8(CalendarContentStyled, { position, children: [
|
|
8212
|
-
/* @__PURE__ */ jsx16(Box, { children: /* @__PURE__ */ jsx16(
|
|
8393
|
+
/* @__PURE__ */ jsx16(Box, { children: /* @__PURE__ */ jsx16(DayPickerWrapperStyledToDoubleCalendar, { children: /* @__PURE__ */ jsx16(
|
|
8213
8394
|
DayPicker2,
|
|
8214
8395
|
{
|
|
8215
8396
|
mode: "range",
|
|
@@ -13371,11 +13552,11 @@ var DateAndTimeFormField = (_a) => {
|
|
|
13371
13552
|
}, [selectedDateFromIso, selectedTimeFromIso]);
|
|
13372
13553
|
const combineDateTime = useCallback8(
|
|
13373
13554
|
(date, time) => {
|
|
13374
|
-
if (!date
|
|
13555
|
+
if (!date) {
|
|
13375
13556
|
setIsoValue("");
|
|
13376
13557
|
return;
|
|
13377
13558
|
}
|
|
13378
|
-
const [hours, minutes] = time.split(":").map(Number);
|
|
13559
|
+
const [hours, minutes] = (time != null ? time : "00:00").split(":").map(Number);
|
|
13379
13560
|
const combined = new Date(date);
|
|
13380
13561
|
combined.setHours(hours || 0, minutes || 0, 0, 0);
|
|
13381
13562
|
setIsoValue(combined.toISOString());
|