@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.
Files changed (91) hide show
  1. package/.eslintrc.json +2 -2
  2. package/.turbo/turbo-build.log +19 -21
  3. package/CHANGELOG.md +12 -0
  4. package/dist/index.js +185 -4
  5. package/dist/index.mjs +185 -4
  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 +123 -123
  10. package/src/components/Box.tsx +3 -3
  11. package/src/components/Button/index.tsx +62 -62
  12. package/src/components/Button/styledComponents.ts +320 -320
  13. package/src/components/ButtonGroup.tsx +484 -484
  14. package/src/components/Calendar/index.tsx +168 -168
  15. package/src/components/Calendar/styledComponents.ts +480 -293
  16. package/src/components/Card.tsx +67 -67
  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 +182 -182
  21. package/src/components/Drawer/index.tsx +100 -100
  22. package/src/components/Drawer/styledComponents.ts +103 -103
  23. package/src/components/Dropdown.tsx +302 -302
  24. package/src/components/Filter.tsx +164 -164
  25. package/src/components/Flex.tsx +118 -118
  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 +86 -86
  44. package/src/components/FormFields/RichEditorFormField.tsx +103 -103
  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 +110 -110
  58. package/src/components/MultiSelect/index.tsx +305 -305
  59. package/src/components/MultiSelect/styledComponents.ts +160 -160
  60. package/src/components/RadioGroup.tsx +210 -210
  61. package/src/components/RichEditor/QuillComponent.tsx +468 -468
  62. package/src/components/RichEditor/RichEditor.tsx +49 -49
  63. package/src/components/RichEditor/RichTextPresenter.tsx +18 -18
  64. package/src/components/RichEditor/index.ts +3 -3
  65. package/src/components/RichEditor/styledComponents.ts +1170 -1170
  66. package/src/components/Section.tsx +33 -33
  67. package/src/components/Step.tsx +164 -164
  68. package/src/components/Switch.tsx +108 -108
  69. package/src/components/Text.tsx +38 -38
  70. package/src/components/TextField.tsx +372 -372
  71. package/src/components/TextareaField.tsx +116 -116
  72. package/src/components/TimePicker.tsx +357 -357
  73. package/src/components/Toast/components/ToastItem.tsx +41 -41
  74. package/src/components/Toast/components/ToastProvider.tsx +63 -63
  75. package/src/components/Toast/hooks/useToast.ts +12 -12
  76. package/src/components/Toast/index.tsx +5 -5
  77. package/src/components/Toast/styles/index.ts +135 -135
  78. package/src/components/Toast/types/index.ts +46 -46
  79. package/src/components/Tooltip/index.tsx +73 -73
  80. package/src/components/Tooltip/styles.ts +77 -77
  81. package/src/hooks/useCountries.ts +41 -41
  82. package/src/hooks/useImageUpload.ts +139 -139
  83. package/src/hooks/useOnClickOutside.tsx +42 -42
  84. package/src/index.tsx +72 -72
  85. package/src/styles/index.ts +41 -41
  86. package/src/types/typographyValues.ts +178 -178
  87. package/src/utils/getNestedValue.ts +3 -3
  88. package/src/utils/states.ts +29 -29
  89. package/src/utils/uploadService.ts +180 -180
  90. package/tsconfig.json +3 -3
  91. 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
  }
@@ -1,21 +1,19 @@
1
-
2
-
3
- > @lets-events/react@12.9.1 build
4
- > tsup src/index.tsx --format esm,cjs --dts --external react
5
-
6
- CLI Building entry: src/index.tsx
7
- CLI Using tsconfig: tsconfig.json
8
- CLI tsup v8.5.0
9
- CLI Using tsup config: /home/bia3003/Lets/design-system/packages/react/tsup.config.ts
10
- CLI Target: es6
11
- ESM Build start
12
- CJS Build start
13
- ESM dist/index.mjs 399.64 KB
14
- ESM ⚡️ Build success in 505ms
15
- CJS dist/index.js 415.12 KB
16
- CJS ⚡️ Build success in 506ms
17
- DTS Build start
18
- DTS ⚡️ Build success in 9204ms
19
- DTS dist/index.d.mts 404.35 KB
20
- DTS dist/index.d.ts 404.35 KB
21
- ⠙
1
+
2
+ > @lets-events/react@12.9.3 build
3
+ > tsup src/index.tsx --format esm,cjs --dts --external react
4
+
5
+ CLI Building entry: src/index.tsx
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.5.0
8
+ CLI Using tsup config: C:\Users\Cazuza\Desktop\Web\design-system\packages\react\tsup.config.ts
9
+ CLI Target: es6
10
+ ESM Build start
11
+ CJS Build start
12
+ DTS Build start
13
+ CJS dist\index.js 423.43 KB
14
+ CJS ⚡️ Build success in 914ms
15
+ ESM dist\index.mjs 407.95 KB
16
+ ESM ⚡️ Build success in 916ms
17
+ DTS ⚡️ Build success in 5416ms
18
+ DTS dist\index.d.mts 404.35 KB
19
+ DTS dist\index.d.ts 404.35 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @lets-events/react
2
2
 
3
+ ## 12.9.3
4
+
5
+ ### Patch Changes
6
+
7
+ - DateAndTimeFormField require only date
8
+
9
+ ## 12.9.2
10
+
11
+ ### Patch Changes
12
+
13
+ - Double Calendar width
14
+
3
15
  ## 12.9.1
4
16
 
5
17
  ### Patch Changes
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)(DayPickerWrapperStyled, { 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 || !time) {
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(DayPickerWrapperStyled, { 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 || !time) {
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());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lets-events/react",
3
- "version": "12.9.1",
3
+ "version": "12.9.3",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",