@lets-events/react 12.9.0 → 12.9.2

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.
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- > @lets-events/react@12.9.0 build
3
+ > @lets-events/react@12.9.2 build
4
4
  > tsup src/index.tsx --format esm,cjs --dts --external react
5
5
 
6
6
  CLI Building entry: src/index.tsx
@@ -10,12 +10,12 @@
10
10
  CLI Target: es6
11
11
  ESM Build start
12
12
  CJS Build start
13
- CJS dist/index.js 414.81 KB
14
- CJS ⚡️ Build success in 532ms
15
- ESM dist/index.mjs 399.34 KB
16
- ESM ⚡️ Build success in 533ms
13
+ ESM dist/index.mjs 407.93 KB
14
+ ESM ⚡️ Build success in 476ms
15
+ CJS dist/index.js 423.42 KB
16
+ CJS ⚡️ Build success in 476ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 9136ms
18
+ DTS ⚡️ Build success in 9249ms
19
19
  DTS dist/index.d.mts 404.35 KB
20
20
  DTS dist/index.d.ts 404.35 KB
21
21
  ⠙
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @lets-events/react
2
2
 
3
+ ## 12.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Double Calendar width
8
+
9
+ ## 12.9.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Disabled click area
14
+
3
15
  ## 12.9.0
4
16
 
5
17
  ### Minor 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",
@@ -13418,6 +13599,7 @@ var DateAndTimeFormField = (_a) => {
13418
13599
  event.stopPropagation();
13419
13600
  addToast({
13420
13601
  type: "error",
13602
+ icon: "xmark-circle",
13421
13603
  message: disabledInfo
13422
13604
  });
13423
13605
  },
@@ -13431,10 +13613,6 @@ var DateAndTimeFormField = (_a) => {
13431
13613
  },
13432
13614
  [disabled]
13433
13615
  );
13434
- const disabledInteractionProps = disabled ? {
13435
- onClickCapture: handleDisabledClick,
13436
- onMouseDownCapture: handleDisabledMouseDown
13437
- } : void 0;
13438
13616
  const handleValidate = (0, import_react28.useCallback)(
13439
13617
  (value) => {
13440
13618
  var _a2;
@@ -13510,35 +13688,57 @@ var DateAndTimeFormField = (_a) => {
13510
13688
  haveError
13511
13689
  }
13512
13690
  ),
13513
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Flex, { gap: 12, align: "start", children: [
13514
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Flex, __spreadProps(__spreadValues({ direction: "column" }, disabledInteractionProps != null ? disabledInteractionProps : {}), { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
13515
- Calendar,
13516
- __spreadValues({
13517
- selected: draftDate,
13518
- setSelected: (date) => {
13519
- const d = typeof date === "function" ? date(draftDate) : date;
13520
- handleDateChange(d);
13521
- },
13522
- hasError: haveError,
13523
- allowPastDates,
13524
- maxYearsFromNow,
13525
- maxDate,
13526
- disabled
13527
- }, props)
13528
- ) })),
13529
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Flex, __spreadProps(__spreadValues({ direction: "column" }, disabledInteractionProps != null ? disabledInteractionProps : {}), { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
13530
- TimePicker,
13531
- __spreadValues({
13532
- selected: draftTime,
13533
- setSelected: (value) => {
13534
- const time = typeof value === "function" ? value(draftTime) : value;
13535
- handleTimeChange(time);
13536
- },
13537
- disabled,
13538
- hasError: haveError
13539
- }, props)
13540
- ) }))
13541
- ] }),
13691
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
13692
+ Flex,
13693
+ {
13694
+ gap: 12,
13695
+ align: "start",
13696
+ style: disabled ? { position: "relative" } : void 0,
13697
+ children: [
13698
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Flex, { direction: "column", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
13699
+ Calendar,
13700
+ __spreadValues({
13701
+ selected: draftDate,
13702
+ setSelected: (date) => {
13703
+ const d = typeof date === "function" ? date(draftDate) : date;
13704
+ handleDateChange(d);
13705
+ },
13706
+ hasError: haveError,
13707
+ allowPastDates,
13708
+ maxYearsFromNow,
13709
+ maxDate,
13710
+ disabled
13711
+ }, props)
13712
+ ) }),
13713
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Flex, { direction: "column", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
13714
+ TimePicker,
13715
+ __spreadValues({
13716
+ selected: draftTime,
13717
+ setSelected: (value) => {
13718
+ const time = typeof value === "function" ? value(draftTime) : value;
13719
+ handleTimeChange(time);
13720
+ },
13721
+ disabled,
13722
+ hasError: haveError
13723
+ }, props)
13724
+ ) }),
13725
+ disabled && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
13726
+ "div",
13727
+ {
13728
+ "aria-hidden": true,
13729
+ style: {
13730
+ position: "absolute",
13731
+ inset: 0,
13732
+ zIndex: 1,
13733
+ cursor: "not-allowed"
13734
+ },
13735
+ onClick: handleDisabledClick,
13736
+ onMouseDown: handleDisabledMouseDown
13737
+ }
13738
+ )
13739
+ ]
13740
+ }
13741
+ ),
13542
13742
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ErrorFormMessage, { message: errorMsg })
13543
13743
  ] });
13544
13744
  };
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",
@@ -13311,6 +13492,7 @@ var DateAndTimeFormField = (_a) => {
13311
13492
  event.stopPropagation();
13312
13493
  addToast({
13313
13494
  type: "error",
13495
+ icon: "xmark-circle",
13314
13496
  message: disabledInfo
13315
13497
  });
13316
13498
  },
@@ -13324,10 +13506,6 @@ var DateAndTimeFormField = (_a) => {
13324
13506
  },
13325
13507
  [disabled]
13326
13508
  );
13327
- const disabledInteractionProps = disabled ? {
13328
- onClickCapture: handleDisabledClick,
13329
- onMouseDownCapture: handleDisabledMouseDown
13330
- } : void 0;
13331
13509
  const handleValidate = useCallback8(
13332
13510
  (value) => {
13333
13511
  var _a2;
@@ -13403,35 +13581,57 @@ var DateAndTimeFormField = (_a) => {
13403
13581
  haveError
13404
13582
  }
13405
13583
  ),
13406
- /* @__PURE__ */ jsxs33(Flex, { gap: 12, align: "start", children: [
13407
- /* @__PURE__ */ jsx59(Flex, __spreadProps(__spreadValues({ direction: "column" }, disabledInteractionProps != null ? disabledInteractionProps : {}), { children: /* @__PURE__ */ jsx59(
13408
- Calendar,
13409
- __spreadValues({
13410
- selected: draftDate,
13411
- setSelected: (date) => {
13412
- const d = typeof date === "function" ? date(draftDate) : date;
13413
- handleDateChange(d);
13414
- },
13415
- hasError: haveError,
13416
- allowPastDates,
13417
- maxYearsFromNow,
13418
- maxDate,
13419
- disabled
13420
- }, props)
13421
- ) })),
13422
- /* @__PURE__ */ jsx59(Flex, __spreadProps(__spreadValues({ direction: "column" }, disabledInteractionProps != null ? disabledInteractionProps : {}), { children: /* @__PURE__ */ jsx59(
13423
- TimePicker,
13424
- __spreadValues({
13425
- selected: draftTime,
13426
- setSelected: (value) => {
13427
- const time = typeof value === "function" ? value(draftTime) : value;
13428
- handleTimeChange(time);
13429
- },
13430
- disabled,
13431
- hasError: haveError
13432
- }, props)
13433
- ) }))
13434
- ] }),
13584
+ /* @__PURE__ */ jsxs33(
13585
+ Flex,
13586
+ {
13587
+ gap: 12,
13588
+ align: "start",
13589
+ style: disabled ? { position: "relative" } : void 0,
13590
+ children: [
13591
+ /* @__PURE__ */ jsx59(Flex, { direction: "column", children: /* @__PURE__ */ jsx59(
13592
+ Calendar,
13593
+ __spreadValues({
13594
+ selected: draftDate,
13595
+ setSelected: (date) => {
13596
+ const d = typeof date === "function" ? date(draftDate) : date;
13597
+ handleDateChange(d);
13598
+ },
13599
+ hasError: haveError,
13600
+ allowPastDates,
13601
+ maxYearsFromNow,
13602
+ maxDate,
13603
+ disabled
13604
+ }, props)
13605
+ ) }),
13606
+ /* @__PURE__ */ jsx59(Flex, { direction: "column", children: /* @__PURE__ */ jsx59(
13607
+ TimePicker,
13608
+ __spreadValues({
13609
+ selected: draftTime,
13610
+ setSelected: (value) => {
13611
+ const time = typeof value === "function" ? value(draftTime) : value;
13612
+ handleTimeChange(time);
13613
+ },
13614
+ disabled,
13615
+ hasError: haveError
13616
+ }, props)
13617
+ ) }),
13618
+ disabled && /* @__PURE__ */ jsx59(
13619
+ "div",
13620
+ {
13621
+ "aria-hidden": true,
13622
+ style: {
13623
+ position: "absolute",
13624
+ inset: 0,
13625
+ zIndex: 1,
13626
+ cursor: "not-allowed"
13627
+ },
13628
+ onClick: handleDisabledClick,
13629
+ onMouseDown: handleDisabledMouseDown
13630
+ }
13631
+ )
13632
+ ]
13633
+ }
13634
+ ),
13435
13635
  /* @__PURE__ */ jsx59(ErrorFormMessage, { message: errorMsg })
13436
13636
  ] });
13437
13637
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lets-events/react",
3
- "version": "12.9.0",
3
+ "version": "12.9.2",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -291,3 +291,190 @@ export const DayPickerWrapperStyled = styled("div", {
291
291
  },
292
292
  }
293
293
  });
294
+ export const DayPickerWrapperStyledToDoubleCalendar = styled("div", {
295
+ ".rt-TextFieldInput": {
296
+ fontFamily: "$default",
297
+ fontSize: "$14",
298
+ color: "$dark500",
299
+ },
300
+ ".rdp-root": {
301
+ padding: "0 $8",
302
+ },
303
+ ".rdp-today .rdp-day_button": {
304
+ color: "$brand500",
305
+ textDecoration: "underline",
306
+ },
307
+ ".rdp-day.rdp-disabled .rdp-day_button": {
308
+ color: "$dark400",
309
+ },
310
+ ".rdp-day_button": {
311
+ height: "26px",
312
+ width: "26px",
313
+ borderRadius: "$sm",
314
+ fontSize: "$14",
315
+ color: "$text",
316
+ backgroundColor: "transparent",
317
+ border: "1px solid transparent",
318
+ transition: "all 0.2s ease-in-out",
319
+ cursor: "pointer",
320
+ display: "flex",
321
+ alignItems: "center",
322
+ justifyContent: "center",
323
+ },
324
+ ".rdp-day_button:hover": {
325
+ backgroundColor: "$dark100",
326
+ borderColor: "$brand600",
327
+ },
328
+ ".rdp-day.rdp-disabled .rdp-day_button:hover": {
329
+ backgroundColor: "transparent",
330
+ borderColor: "transparent",
331
+ },
332
+ ".rdp-nav": {
333
+ position: "absolute",
334
+ width: "100%",
335
+ left: "0",
336
+ display: "flex",
337
+ justifyContent: "space-between",
338
+ },
339
+ ".rdp-nav .rdp-chevron": {
340
+ display: "none",
341
+ },
342
+ ".rdp-nav .rdp-button_previous": {
343
+ display: "block",
344
+ backgroundImage:
345
+ "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%3E%3Cg%20transform='scale(-1,1)%20translate(-32,0)'%3E%3Cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H24C28.4183%200%2032%203.58172%2032%208V24C32%2028.4183%2028.4183%2032%2024%2032H8C3.58172%2032%200%2028.4183%200%2024V8Z'%20fill='white'/%3E%3Cpath%20d='M19.7062%2015.2938C20.0969%2015.6844%2020.0969%2016.3188%2019.7062%2016.7094L14.7062%2021.7094C14.3156%2022.1%2013.6812%2022.1%2013.2906%2021.7094C12.9%2021.3188%2012.9%2020.6844%2013.2906%2020.2938L17.5844%2016L13.2937%2011.7063C12.9031%2011.3156%2012.9031%2010.6813%2013.2937%2010.2906C13.6844%209.90002%2014.3187%209.90002%2014.7094%2010.2906L19.7094%2015.2906L19.7062%2015.2938Z'%20fill='%23808289'/%3E%3C/g%3E%3C/svg%3E\")",
346
+ backgroundRepeat: "no-repeat",
347
+ backgroundPosition: "center",
348
+ backgroundSize: "cover",
349
+ width: "32px",
350
+ height: "32px",
351
+ },
352
+ ".rdp-nav .rdp-button_next": {
353
+ display: "block",
354
+ backgroundImage:
355
+ "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%3E%3Cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H24C28.4183%200%2032%203.58172%2032%208V24C32%2028.4183%2028.4183%2032%2024%2032H8C3.58172%2032%200%2028.4183%200%2024V8Z'%20fill='white'/%3E%3Cpath%20d='M19.7062%2015.2938C20.0969%2015.6844%2020.0969%2016.3188%2019.7062%2016.7094L14.7062%2021.7094C14.3156%2022.1%2013.6812%2022.1%2013.2906%2021.7094C12.9%2021.3188%2012.9%2020.6844%2013.2906%2020.2938L17.5844%2016L13.2937%2011.7063C12.9031%2011.3156%2012.9031%2010.6813%2013.2937%2010.2906C13.6844%209.90002%2014.3187%209.90002%2014.7094%2010.2906L19.7094%2015.2906L19.7062%2015.2938Z'%20fill='%23808289'/%3E%3C/svg%3E\")",
356
+ backgroundRepeat: "no-repeat",
357
+ backgroundPosition: "center",
358
+ backgroundSize: "cover",
359
+ width: "32px",
360
+ height: "32px",
361
+ },
362
+ ".rdp-nav .rdp-button_previous:hover": {
363
+ backgroundImage:
364
+ "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%3E%3Cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H24C28.4183%200%2032%203.58172%2032%208V24C32%2028.4183%2028.4183%2032%2024%2032H8C3.58172%2032%200%2028.4183%200%2024V8Z'%20fill='%23F4F4F4'/%3E%3Cpath%20d='M12.2937%2015.2938C11.9031%2015.6844%2011.9031%2016.3188%2012.2937%2016.7094L17.2937%2021.7094C17.6844%2022.1%2018.3187%2022.1%2018.7094%2021.7094C19.1%2021.3188%2019.1%2020.6844%2018.7094%2020.2938L14.4156%2016L18.7062%2011.7063C19.0969%2011.3156%2019.0969%2010.6813%2018.7062%2010.2906C18.3156%209.90002%2017.6812%209.90002%2017.2906%2010.2906L12.2906%2015.2906L12.2937%2015.2938Z'%20fill='%23808289'/%3E%3C/svg%3E\")",
365
+ transition: "all 0.2s ease-in-out",
366
+ },
367
+ ".rdp-nav .rdp-button_next:hover": {
368
+ backgroundImage:
369
+ "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%3E%3Cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H24C28.4183%200%2032%203.58172%2032%208V24C32%2028.4183%2028.4183%2032%2024%2032H8C3.58172%2032%200%2028.4183%200%2024V8Z'%20fill='%23F4F4F4'/%3E%3Cpath%20d='M19.7062%2015.2938C20.0969%2015.6844%2020.0969%2016.3188%2019.7062%2016.7094L14.7062%2021.7094C14.3156%2022.1%2013.6812%2022.1%2013.2906%2021.7094C12.9%2021.3188%2012.9%2020.6844%2013.2906%2020.2938L17.5844%2016L13.2937%2011.7063C12.9031%2011.3156%2012.9031%2010.6813%2013.2937%2010.2906C13.6844%209.90002%2014.3187%209.90002%2014.7094%2010.2906L19.7094%2015.2906L19.7062%2015.2938Z'%20fill='%23808289'/%3E%3C/svg%3E\")",
370
+ transition: "all 0.2s ease-in-out",
371
+ },
372
+ ".rdp-nav button": {
373
+ border: "none",
374
+ backgroundColor: "transparent",
375
+ cursor: "pointer",
376
+ },
377
+ ".rdp-months": {
378
+ display: "flex",
379
+ columnGap: "$8",
380
+ alignItems: "flex-start",
381
+ paddingTop: "$12",
382
+ },
383
+ ".rdp-month": {
384
+ marginTop: "0",
385
+ paddingTop: "$6",
386
+ },
387
+ ".rdp-month_caption": {
388
+ display: "flex",
389
+ alignItems: "center",
390
+ justifyContent: "center",
391
+ width: "calc(100% - 64px)",
392
+ margin: "0 auto",
393
+ columnGap: "12px",
394
+ },
395
+ ".rdp-dropdowns span, .rdp-caption_label": {
396
+ fontSize: "$16",
397
+ fontWeight: "$regular",
398
+ lineHeight: "$20",
399
+ textTransform: "capitalize",
400
+ },
401
+ ".rdp-day.rdp-selected .rdp-day_button": {
402
+ backgroundColor: "$brand500",
403
+ color: "$neutral50",
404
+ borderColor: "$brand600",
405
+ borderRadius: "0.5rem",
406
+ },
407
+ ".rdp-dropdowns": {
408
+ display: "flex",
409
+ alignItems: "center",
410
+ justifyContent: "center",
411
+ width: "calc(100% - 64px)",
412
+ columnGap: "12px",
413
+ },
414
+ ".rdp-dropdowns .rdp-caption_label": {
415
+ display: "none",
416
+ },
417
+ ".rdp-dropdown.rdp-months_dropdown, .rdp-dropdown.rdp-years_dropdown": {
418
+ border: "none",
419
+ backgroundColor: "transparent",
420
+ textTransform: "capitalize",
421
+ height: "1.25rem",
422
+ position: "relative",
423
+ fontFamily: "$default",
424
+ fontSize: "$16",
425
+ lineHeight: "1.25rem",
426
+ appearance: "none",
427
+ WebkitAppearance: "none",
428
+ MozAppearance: "none",
429
+ paddingRight: "1.25rem",
430
+ zIndex: "3",
431
+ },
432
+ ".rdp-dropdown:focus, .rdp-dropdown:focus-visible, .rdp-dropdown:active": {
433
+ border: "none",
434
+ outline: "none",
435
+ boxShadow: "none",
436
+ },
437
+ ".rdp-dropdown.rdp-months_dropdown:focus, .rdp-dropdown.rdp-years_dropdown:focus":
438
+ {
439
+ border: "none",
440
+ },
441
+ ".rdp-dropdown_root": {
442
+ position: "relative",
443
+ },
444
+ ".rdp-dropdown_root::after": {
445
+ content: "",
446
+ height: "1.25rem",
447
+ width: "1.25rem",
448
+ position: "absolute",
449
+ top: "0",
450
+ right: "0",
451
+ display: "block",
452
+ backgroundColor: "$neutral50",
453
+ backgroundImage:
454
+ "url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='11'%20height='20'%20viewBox='0%200%2011%2020'%20fill='none'%3E%3Crect%20width='11'%20height='20'%20fill='white'/%3E%3Cpath%20d='M5.9414%202.68359C5.69726%202.43945%205.30077%202.43945%205.05663%202.68359L2.55663%205.18359C2.37695%205.36328%202.32421%205.63086%202.42187%205.86523C2.51952%206.09961%202.74609%206.25195%202.99999%206.25195H7.99999C8.25195%206.25195%208.48046%206.09961%208.57812%205.86523C8.67578%205.63086%208.62109%205.36328%208.44335%205.18359L5.94335%202.68359H5.9414Z'%20fill='%23808289'/%3E%3Cpath%20d='M5.05858%2017.3164C5.30272%2017.5605%205.69921%2017.5605%205.94335%2017.3164L8.44335%2014.8164C8.62304%2014.6367%208.67577%2014.3691%208.57811%2014.1348C8.48046%2013.9004%208.25389%2013.748%207.99999%2013.748L2.99999%2013.75C2.74804%2013.75%202.51952%2013.9023%202.42186%2014.1367C2.32421%2014.3711%202.37889%2014.6387%202.55663%2014.8184L5.05663%2017.3184L5.05858%2017.3164Z'%20fill='%23808289'/%3E%3C/svg%3E\")",
455
+ backgroundRepeat: "no-repeat",
456
+ backgroundPosition: "center",
457
+ borderRadius: "0.5rem",
458
+ zIndex: "2",
459
+ },
460
+ ".rdp-weekday": {
461
+ textTransform: "uppercase",
462
+ fontWeight: "$regular",
463
+ fontSize: "0px",
464
+ },
465
+ ".rdp-weekday::first-letter": {
466
+ fontSize: "$14",
467
+ },
468
+ ".rdp-month_grid": {
469
+ marginTop: "$16",
470
+ paddingTop: "$16",
471
+ borderTop: "2px solid $neutral100",
472
+ },
473
+ "@media (max-width: 748px)": {
474
+ ".rdp-months": {
475
+ flexDirection: "column",
476
+ alignItems: "center",
477
+ padding: "16px"
478
+ },
479
+ }
480
+ });
@@ -11,7 +11,7 @@ import {
11
11
  CalendarContentStyled,
12
12
  CalendarFooterStyled,
13
13
  CalendarStyled,
14
- DayPickerWrapperStyled,
14
+ DayPickerWrapperStyledToDoubleCalendar,
15
15
  CalendarButtonStyled,
16
16
  } from "../Calendar/styledComponents";
17
17
 
@@ -111,7 +111,7 @@ export function DoubleCalendar({
111
111
  disabled={disabled}
112
112
  >
113
113
  <TextFieldSlot>
114
- <Icon name="calendar" size={"xl"} />
114
+ <Icon name="calendar" size={"xl"} color="#4C4F54"/>
115
115
  </TextFieldSlot>
116
116
  </TextField>
117
117
  </div>
@@ -120,7 +120,7 @@ export function DoubleCalendar({
120
120
  {showContainer && (
121
121
  <CalendarContentStyled position={position}>
122
122
  <Box>
123
- <DayPickerWrapperStyled>
123
+ <DayPickerWrapperStyledToDoubleCalendar>
124
124
  <DayPicker
125
125
  mode="range"
126
126
  numberOfMonths={2}
@@ -133,7 +133,7 @@ export function DoubleCalendar({
133
133
  fromMonth={allowPastDates ? undefined : today}
134
134
  toMonth={resolvedMaxDate}
135
135
  />
136
- </DayPickerWrapperStyled>
136
+ </DayPickerWrapperStyledToDoubleCalendar>
137
137
  </Box>
138
138
 
139
139
  {action && (
@@ -53,6 +53,7 @@ export const DateAndTimeFormField = ({
53
53
  event.stopPropagation();
54
54
  addToast({
55
55
  type: "error",
56
+ icon: "xmark-circle",
56
57
  message: disabledInfo,
57
58
  });
58
59
  },
@@ -68,12 +69,6 @@ export const DateAndTimeFormField = ({
68
69
  [disabled]
69
70
  );
70
71
 
71
- const disabledInteractionProps = disabled
72
- ? {
73
- onClickCapture: handleDisabledClick,
74
- onMouseDownCapture: handleDisabledMouseDown,
75
- }
76
- : undefined;
77
72
  const handleValidate = useCallback(
78
73
  (value?: string) => {
79
74
  if (value === undefined || value === null || value === "") {
@@ -165,8 +160,12 @@ export const DateAndTimeFormField = ({
165
160
  />
166
161
  )}
167
162
 
168
- <Flex gap={12} align="start">
169
- <Flex direction="column" {...(disabledInteractionProps ?? {})}>
163
+ <Flex
164
+ gap={12}
165
+ align="start"
166
+ style={disabled ? { position: "relative" } : undefined}
167
+ >
168
+ <Flex direction="column">
170
169
  <Calendar
171
170
  selected={draftDate}
172
171
  setSelected={(date) => {
@@ -182,7 +181,7 @@ export const DateAndTimeFormField = ({
182
181
  />
183
182
  </Flex>
184
183
 
185
- <Flex direction="column" {...(disabledInteractionProps ?? {})}>
184
+ <Flex direction="column">
186
185
  <TimePicker
187
186
  selected={draftTime}
188
187
  setSelected={(value) => {
@@ -194,6 +193,20 @@ export const DateAndTimeFormField = ({
194
193
  {...(props as Omit<TimePickerProps, "selected" | "setSelected">)}
195
194
  />
196
195
  </Flex>
196
+
197
+ {disabled && (
198
+ <div
199
+ aria-hidden
200
+ style={{
201
+ position: "absolute",
202
+ inset: 0,
203
+ zIndex: 1,
204
+ cursor: "not-allowed",
205
+ }}
206
+ onClick={handleDisabledClick}
207
+ onMouseDown={handleDisabledMouseDown}
208
+ />
209
+ )}
197
210
  </Flex>
198
211
 
199
212
  <ErrorFormMessage message={errorMsg} />
@@ -304,9 +304,9 @@ export const TextField = React.forwardRef<HTMLInputElement, TextFieldProps>(
304
304
  style={
305
305
  addon
306
306
  ? {
307
- borderTopLeftRadius: "0px",
308
- borderBottomLeftRadius: "0px",
309
- }
307
+ borderTopLeftRadius: "0px",
308
+ borderBottomLeftRadius: "0px",
309
+ }
310
310
  : undefined
311
311
  }
312
312
  >