@semcore/date-picker 4.58.0-prerelease.0 → 4.58.0-prerelease.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/lib/cjs/DatePicker.js +36 -27
  2. package/lib/cjs/DatePicker.js.map +1 -1
  3. package/lib/cjs/DateRangeComparator.js +43 -38
  4. package/lib/cjs/DateRangeComparator.js.map +1 -1
  5. package/lib/cjs/DateRangePicker.js +22 -17
  6. package/lib/cjs/DateRangePicker.js.map +1 -1
  7. package/lib/cjs/MonthDateRangeComparator.js +47 -42
  8. package/lib/cjs/MonthDateRangeComparator.js.map +1 -1
  9. package/lib/cjs/MonthPicker.js +21 -16
  10. package/lib/cjs/MonthPicker.js.map +1 -1
  11. package/lib/cjs/MonthRangePicker.js +23 -18
  12. package/lib/cjs/MonthRangePicker.js.map +1 -1
  13. package/lib/cjs/components/ButtonTrigger.js +10 -8
  14. package/lib/cjs/components/ButtonTrigger.js.map +1 -1
  15. package/lib/cjs/components/Calendar.js +125 -109
  16. package/lib/cjs/components/Calendar.js.map +1 -1
  17. package/lib/cjs/components/DateRangeComparatorAbstract.js +104 -121
  18. package/lib/cjs/components/DateRangeComparatorAbstract.js.map +1 -1
  19. package/lib/cjs/components/InputTrigger.js +189 -179
  20. package/lib/cjs/components/InputTrigger.js.map +1 -1
  21. package/lib/cjs/components/PickerAbstract.js +57 -58
  22. package/lib/cjs/components/PickerAbstract.js.map +1 -1
  23. package/lib/cjs/components/RangePickerAbstract.js +76 -97
  24. package/lib/cjs/components/RangePickerAbstract.js.map +1 -1
  25. package/lib/cjs/components/index.js +46 -41
  26. package/lib/cjs/components/index.js.map +1 -1
  27. package/lib/cjs/index.d.js.map +1 -1
  28. package/lib/cjs/index.js +2 -2
  29. package/lib/cjs/index.js.map +1 -1
  30. package/lib/cjs/style/calendar.shadow.css +21 -19
  31. package/lib/cjs/style/date-picker.shadow.css +8 -7
  32. package/lib/cjs/translations/__intergalactic-dynamic-locales.js +5 -4
  33. package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
  34. package/lib/cjs/translations/de.json +2 -6
  35. package/lib/cjs/translations/es.json +2 -6
  36. package/lib/cjs/translations/fr.json +2 -6
  37. package/lib/cjs/translations/it.json +2 -6
  38. package/lib/cjs/translations/ja.json +2 -6
  39. package/lib/cjs/translations/ko.json +2 -6
  40. package/lib/cjs/translations/nl.json +2 -6
  41. package/lib/cjs/translations/pl.json +2 -6
  42. package/lib/cjs/translations/pt.json +2 -6
  43. package/lib/cjs/translations/sv.json +2 -6
  44. package/lib/cjs/translations/tr.json +2 -6
  45. package/lib/cjs/translations/vi.json +2 -6
  46. package/lib/cjs/translations/zh.json +2 -6
  47. package/lib/cjs/utils/cronTabScheduler.js +5 -8
  48. package/lib/cjs/utils/cronTabScheduler.js.map +1 -1
  49. package/lib/cjs/utils/datesIntersects.js +4 -3
  50. package/lib/cjs/utils/datesIntersects.js.map +1 -1
  51. package/lib/cjs/utils/formatDate.js +5 -3
  52. package/lib/cjs/utils/formatDate.js.map +1 -1
  53. package/lib/cjs/utils/includesDate.js +3 -2
  54. package/lib/cjs/utils/includesDate.js.map +1 -1
  55. package/lib/cjs/utils/shortDateRangeFormat.js +2 -2
  56. package/lib/cjs/utils/shortDateRangeFormat.js.map +1 -1
  57. package/lib/es6/DatePicker.js +28 -22
  58. package/lib/es6/DatePicker.js.map +1 -1
  59. package/lib/es6/DateRangeComparator.js +27 -23
  60. package/lib/es6/DateRangeComparator.js.map +1 -1
  61. package/lib/es6/DateRangePicker.js +17 -13
  62. package/lib/es6/DateRangePicker.js.map +1 -1
  63. package/lib/es6/MonthDateRangeComparator.js +32 -28
  64. package/lib/es6/MonthDateRangeComparator.js.map +1 -1
  65. package/lib/es6/MonthPicker.js +17 -13
  66. package/lib/es6/MonthPicker.js.map +1 -1
  67. package/lib/es6/MonthRangePicker.js +18 -14
  68. package/lib/es6/MonthRangePicker.js.map +1 -1
  69. package/lib/es6/components/ButtonTrigger.js +5 -5
  70. package/lib/es6/components/ButtonTrigger.js.map +1 -1
  71. package/lib/es6/components/Calendar.js +112 -100
  72. package/lib/es6/components/Calendar.js.map +1 -1
  73. package/lib/es6/components/DateRangeComparatorAbstract.js +101 -120
  74. package/lib/es6/components/DateRangeComparatorAbstract.js.map +1 -1
  75. package/lib/es6/components/InputTrigger.js +180 -173
  76. package/lib/es6/components/InputTrigger.js.map +1 -1
  77. package/lib/es6/components/PickerAbstract.js +55 -58
  78. package/lib/es6/components/PickerAbstract.js.map +1 -1
  79. package/lib/es6/components/RangePickerAbstract.js +71 -94
  80. package/lib/es6/components/RangePickerAbstract.js.map +1 -1
  81. package/lib/es6/components/index.js +38 -35
  82. package/lib/es6/components/index.js.map +1 -1
  83. package/lib/es6/index.d.js.map +1 -1
  84. package/lib/es6/index.js.map +1 -1
  85. package/lib/es6/style/calendar.shadow.css +21 -19
  86. package/lib/es6/style/date-picker.shadow.css +8 -7
  87. package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
  88. package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
  89. package/lib/es6/translations/de.json +2 -6
  90. package/lib/es6/translations/es.json +2 -6
  91. package/lib/es6/translations/fr.json +2 -6
  92. package/lib/es6/translations/it.json +2 -6
  93. package/lib/es6/translations/ja.json +2 -6
  94. package/lib/es6/translations/ko.json +2 -6
  95. package/lib/es6/translations/nl.json +2 -6
  96. package/lib/es6/translations/pl.json +2 -6
  97. package/lib/es6/translations/pt.json +2 -6
  98. package/lib/es6/translations/sv.json +2 -6
  99. package/lib/es6/translations/tr.json +2 -6
  100. package/lib/es6/translations/vi.json +2 -6
  101. package/lib/es6/translations/zh.json +2 -6
  102. package/lib/es6/utils/cronTabScheduler.js +4 -7
  103. package/lib/es6/utils/cronTabScheduler.js.map +1 -1
  104. package/lib/es6/utils/datesIntersects.js +1 -1
  105. package/lib/es6/utils/datesIntersects.js.map +1 -1
  106. package/lib/es6/utils/formatDate.js.map +1 -1
  107. package/lib/es6/utils/includesDate.js.map +1 -1
  108. package/lib/es6/utils/shortDateRangeFormat.js +1 -1
  109. package/lib/es6/utils/shortDateRangeFormat.js.map +1 -1
  110. package/lib/esm/DatePicker.mjs +33 -27
  111. package/lib/esm/DateRangeComparator.mjs +30 -26
  112. package/lib/esm/DateRangePicker.mjs +21 -17
  113. package/lib/esm/MonthDateRangeComparator.mjs +35 -31
  114. package/lib/esm/MonthPicker.mjs +20 -16
  115. package/lib/esm/MonthRangePicker.mjs +22 -18
  116. package/lib/esm/components/ButtonTrigger.mjs +5 -5
  117. package/lib/esm/components/Calendar.mjs +115 -103
  118. package/lib/esm/components/DateRangeComparatorAbstract.mjs +89 -105
  119. package/lib/esm/components/InputTrigger.mjs +181 -143
  120. package/lib/esm/components/PickerAbstract.mjs +62 -61
  121. package/lib/esm/components/RangePickerAbstract.mjs +73 -94
  122. package/lib/esm/components/index.mjs +33 -29
  123. package/lib/esm/style/calendar.shadow.css +21 -19
  124. package/lib/esm/style/date-picker.shadow.css +8 -7
  125. package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
  126. package/lib/esm/translations/de.json.mjs +6 -18
  127. package/lib/esm/translations/es.json.mjs +6 -18
  128. package/lib/esm/translations/fr.json.mjs +6 -18
  129. package/lib/esm/translations/it.json.mjs +6 -18
  130. package/lib/esm/translations/ja.json.mjs +6 -18
  131. package/lib/esm/translations/ko.json.mjs +6 -18
  132. package/lib/esm/translations/nl.json.mjs +6 -18
  133. package/lib/esm/translations/pl.json.mjs +6 -18
  134. package/lib/esm/translations/pt.json.mjs +6 -18
  135. package/lib/esm/translations/sv.json.mjs +6 -18
  136. package/lib/esm/translations/tr.json.mjs +6 -18
  137. package/lib/esm/translations/vi.json.mjs +6 -18
  138. package/lib/esm/translations/zh.json.mjs +6 -18
  139. package/lib/esm/utils/cronTabScheduler.mjs +4 -4
  140. package/lib/esm/utils/datesIntersects.mjs +1 -1
  141. package/lib/esm/utils/shortDateRangeFormat.mjs +2 -1
  142. package/lib/types/index.d.ts +171 -140
  143. package/package.json +16 -16
  144. package/lib/cjs/utils/isBetweenPlugin.js +0 -21
  145. package/lib/cjs/utils/isBetweenPlugin.js.map +0 -1
  146. package/lib/es6/utils/isBetweenPlugin.js +0 -16
  147. package/lib/es6/utils/isBetweenPlugin.js.map +0 -1
  148. package/lib/esm/utils/isBetweenPlugin.mjs +0 -13
@@ -1,64 +1,67 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
3
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
+ import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
4
5
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
5
6
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
6
7
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
7
8
  import _createClass from "@babel/runtime/helpers/esm/createClass";
8
- import _callSuper from "@babel/runtime/helpers/esm/callSuper";
9
9
  import _inherits from "@babel/runtime/helpers/esm/inherits";
10
+ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
10
11
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
11
- import { sstyled, assignProps, Component, createComponent } from "@semcore/core";
12
- import { Box, NeighborLocation, Flex } from "@semcore/base-components";
12
+ import { sstyled } from "@semcore/utils/lib/core/index";
13
+ import createComponent, { sstyled as sstyled$1, assignProps, Component } from "@semcore/core";
14
+ import React from "react";
13
15
  import BaseTrigger from "@semcore/base-trigger";
14
- import assignProps$1 from "@semcore/core/lib/utils/assignProps";
15
- import useEnhancedEffect from "@semcore/core/lib/utils/use/useEnhancedEffect";
16
- import Calendar from "@semcore/icon/Calendar/m";
17
16
  import InputMask from "@semcore/input-mask";
18
17
  import Tooltip from "@semcore/tooltip";
19
- import dayjs from "dayjs";
20
- import React from "react";
18
+ import { Flex, Box } from "@semcore/flex-box";
19
+ import Calendar from "@semcore/icon/Calendar/m";
20
+ import NeighborLocation from "@semcore/neighbor-location";
21
21
  import { datesIntersects } from "../utils/datesIntersects.mjs";
22
22
  import { includesDate } from "../utils/includesDate.mjs";
23
- var _excluded = ["children", "id", "role", "aria-haspopup", "aria-label", "style"], _excluded2 = ["children", "id", "role", "aria-haspopup", "aria-label", "style"], _excluded3 = ["value", "onChange", "onDisplayedPeriodChange", "locale", "w", "ariaHasPopup", "showError", "neighborLocation"], _excluded4 = ["value", "locale", "onDisplayedPeriodChange", "ariaHasPopup", "showError", "neighborLocation"], _excluded5 = ["value", "locale", "onDisplayedPeriodChange", "ariaHasPopup", "inputId", "showError", "neighborLocation"], _excluded6 = ["date", "onDateChange", "onDisplayedPeriodChange", "locale", "styles", "parts", "disabledDates", "forwardRef", "placeholders", "labelPrefix", "onMaskPipeBlock", "containerFocused", "animationsDisabled", "getI18nText", "inputId", "inputRole", "__excludeProps", "Root"];
23
+ import dayjs from "dayjs";
24
+ import useEnhancedEffect from "@semcore/utils/lib/use/useEnhancedEffect";
25
+ import assignProps$1 from "@semcore/utils/lib/assignProps";
26
+ var _excluded = ["children", "id", "role", "aria-haspopup", "aria-label", "style"], _excluded2 = ["children", "id", "role", "aria-haspopup", "aria-label", "style"], _excluded3 = ["value", "onChange", "onDisplayedPeriodChange", "locale", "w", "ariaHasPopup", "showError"], _excluded4 = ["value", "locale", "onDisplayedPeriodChange", "ariaHasPopup", "showError"], _excluded5 = ["value", "locale", "onDisplayedPeriodChange", "ariaHasPopup", "inputId", "showError"], _excluded6 = ["date", "onDateChange", "onDisplayedPeriodChange", "locale", "styles", "parts", "disabledDates", "forwardRef", "placeholders", "labelPrefix", "onMaskPipeBlock", "containerFocused", "animationsDisabled", "getI18nText", "inputId", "inputRole", "__excludeProps", "Root"];
24
27
  /*!__reshadow-styles__:"../style/date-picker.shadow.css"*/
25
28
  var style = (
26
29
  /*__reshadow_css_start__*/
27
30
  (sstyled.insert(
28
31
  /*__inner_css_start__*/
29
- ".___SPopper_9s22y_gg_{padding:var(--intergalactic-spacing-4x, 16px);outline:0}.___SPopper_9s22y_gg_::-moz-focus-inner{border:0;padding:0}.___SPopper_9s22y_gg_:active,.___SPopper_9s22y_gg_:focus{-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SPopper_9s22y_gg_:hover{-webkit-text-decoration:none;text-decoration:none}}.___SHeader_9s22y_gg_,.___STitle_9s22y_gg_{display:flex;align-items:center}.___STitle_9s22y_gg_{font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));height:32px;width:100%;justify-content:center}.___SToday_9s22y_gg_{display:flex;margin-top:var(--intergalactic-spacing-3x, 12px);justify-content:center}.___SPeriod_9s22y_gg_{display:flex;flex-direction:column;margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SButton_9s22y_gg_ .___SInner_9s22y_gg_{justify-content:flex-start}.___SInputMask_9s22y_gg_{color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));line-height:normal;padding-right:var(--intergalactic-spacing-2x, 8px);transition:width calc(var(--intergalactic-duration-medium, 300)*1ms) ease,min-width calc(var(--intergalactic-duration-medium, 300)*1ms) ease}.___SInputMask_9s22y_gg_.__animationsDisabled_9s22y_gg_{transition:none}.___SInputMask_9s22y_gg_ .___SValue_9s22y_gg_{letter-spacing:0}.___SInputMask_9s22y_gg_ .___SValue_9s22y_gg_:focus{outline:0}.___SIndicator_9s22y_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@supports (color:color(display-p3 0 0 0%)){.___SIndicator_9s22y_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SIndicator_9s22y_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SRangeIndicator_9s22y_gg_{border-radius:50%;flex-shrink:0}.___SRangeIndicator_9s22y_gg_._range_value_9s22y_gg_{background-color:var(--intergalactic-date-picker-cell-active, rgb(123, 130, 220))}.___SRangeIndicator_9s22y_gg_._range_compare_9s22y_gg_{background-color:var(--intergalactic-date-picker-cell-comparison-active, rgb(162, 97, 253))}.___SRangeIndicator_9s22y_gg_.__disabled_9s22y_gg_{opacity:var(--intergalactic-disabled-opacity, 0.4)}.___SHumanizedDate_9s22y_gg_{position:absolute;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.___SMask_9s22y_gg_{letter-spacing:0;white-space:nowrap;overflow:hidden}.___SDateRange_9s22y_gg_ .___SMask_9s22y_gg_,.___SDateRange_9s22y_gg_ .___SValue_9s22y_gg_,.___SSingleDateInput_9s22y_gg_ .___SMask_9s22y_gg_,.___SSingleDateInput_9s22y_gg_ .___SValue_9s22y_gg_{opacity:0}.___SSingleDateInput_9s22y_gg_:focus-within .___SHumanizedDate_9s22y_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_9s22y_gg_:focus-within .___SMask_9s22y_gg_,.___SSingleDateInput_9s22y_gg_:focus-within .___SValue_9s22y_gg_{opacity:1}.___SDateRange_9s22y_gg_:focus-within .___SHumanizedDate_9s22y_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_9s22y_gg_:focus-within .___SMask_9s22y_gg_,.___SDateRange_9s22y_gg_:focus-within .___SValue_9s22y_gg_{opacity:1}.___SInputMask_9s22y_gg_.__noHumanizedDate_9s22y_gg_ .___SMask_9s22y_gg_,.___SInputMask_9s22y_gg_.__noHumanizedDate_9s22y_gg_ .___SValue_9s22y_gg_{opacity:1}.___SDateRange_9s22y_gg_ .___SInputMask_9s22y_gg_:focus-within .___SMask_9s22y_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgb(231, 234, 251))}.___SDateRange_9s22y_gg_:focus-within .___SRangeSep_9s22y_gg_,.___SRangeSep_9s22y_gg_.__fulfilled_9s22y_gg_{color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}.___SRangeComparatorHeader_9s22y_gg_{border-bottom:1px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161));padding:var(--intergalactic-spacing-4x, 16px)}@supports (color:color(display-p3 0 0 0%)){.___SRangeComparatorHeader_9s22y_gg_{border-bottom:1px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SRangeComparatorHeader_9s22y_gg_{border-bottom:1px solid var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}.___SFooter_9s22y_gg_,.___SRangeCalendar_9s22y_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___SFooter_9s22y_gg_{border-top:1px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@supports (color:color(display-p3 0 0 0%)){.___SFooter_9s22y_gg_{border-top:1px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SFooter_9s22y_gg_{border-top:1px solid var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}.___SPeriodsList_9s22y_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___STooltip_9s22y_gg_{padding:var(--intergalactic-spacing-3x, 12px)}.___SCompareToggle_9s22y_gg_{white-space:nowrap}@media (prefers-reduced-motion){.___SInputMask_9s22y_gg_{transition:none}}",
32
+ ".___SPopper_ylan0_gg_{padding:var(--intergalactic-spacing-4x, 16px);outline:0}.___SPopper_ylan0_gg_::-moz-focus-inner{border:0;padding:0}.___SPopper_ylan0_gg_:active,.___SPopper_ylan0_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SPopper_ylan0_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SPopper_ylan0_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 33, 220, 0.469))}@supports (color:color(display-p3 0 0 0)){.___SPopper_ylan0_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 33, 220, 0.469))}@media (color-gamut:p3){.___SPopper_ylan0_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px color(display-p3 0.03256 0.12227 0.83249 / 0.469))}}}.___SHeader_ylan0_gg_,.___STitle_ylan0_gg_{display:flex;align-items:center}.___STitle_ylan0_gg_{font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));height:32px;width:100%;justify-content:center}.___SToday_ylan0_gg_{display:flex;margin-top:var(--intergalactic-spacing-3x, 12px);justify-content:center}.___SPeriod_ylan0_gg_{display:flex;flex-direction:column;margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SButton_ylan0_gg_ .___SInner_ylan0_gg_{justify-content:flex-start}.___SInputMask_ylan0_gg_{color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));line-height:normal;padding-right:var(--intergalactic-spacing-2x, 8px);transition:width calc(var(--intergalactic-duration-medium, 300)*1ms) ease,min-width calc(var(--intergalactic-duration-medium, 300)*1ms) ease}.___SInputMask_ylan0_gg_.__animationsDisabled_ylan0_gg_{transition:none}.___SInputMask_ylan0_gg_ .___SValue_ylan0_gg_{letter-spacing:0}.___SIndicator_ylan0_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@supports (color:color(display-p3 0 0 0)){.___SIndicator_ylan0_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SIndicator_ylan0_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SRangeIndicator_ylan0_gg_{border-radius:50%;flex-shrink:0}.___SRangeIndicator_ylan0_gg_._range_value_ylan0_gg_{background-color:var(--intergalactic-date-picker-cell-active, rgb(118, 128, 231))}.___SRangeIndicator_ylan0_gg_._range_compare_ylan0_gg_{background-color:var(--intergalactic-date-picker-cell-comparison-active, rgb(162, 97, 253))}.___SRangeIndicator_ylan0_gg_.__disabled_ylan0_gg_{opacity:var(--intergalactic-disabled-opacity, 0.4)}.___SHumanizedDate_ylan0_gg_{position:absolute;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.___SMask_ylan0_gg_{letter-spacing:0;white-space:nowrap;overflow:hidden}.___SDateRange_ylan0_gg_ .___SMask_ylan0_gg_,.___SDateRange_ylan0_gg_ .___SValue_ylan0_gg_,.___SSingleDateInput_ylan0_gg_ .___SMask_ylan0_gg_,.___SSingleDateInput_ylan0_gg_ .___SValue_ylan0_gg_{opacity:0}.___SSingleDateInput_ylan0_gg_:focus-within .___SHumanizedDate_ylan0_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_ylan0_gg_:focus-within .___SMask_ylan0_gg_,.___SSingleDateInput_ylan0_gg_:focus-within .___SValue_ylan0_gg_{opacity:1}.___SDateRange_ylan0_gg_:focus-within .___SHumanizedDate_ylan0_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_ylan0_gg_:focus-within .___SMask_ylan0_gg_,.___SDateRange_ylan0_gg_:focus-within .___SValue_ylan0_gg_{opacity:1}.___SInputMask_ylan0_gg_.__noHumanizedDate_ylan0_gg_ .___SMask_ylan0_gg_,.___SInputMask_ylan0_gg_.__noHumanizedDate_ylan0_gg_ .___SValue_ylan0_gg_{opacity:1}.___SDateRange_ylan0_gg_ .___SInputMask_ylan0_gg_:focus-within .___SMask_ylan0_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgb(226, 235, 255))}@supports (color:color(display-p3 0 0 0)){.___SDateRange_ylan0_gg_ .___SInputMask_ylan0_gg_:focus-within .___SMask_ylan0_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgb(226, 235, 255))}@media (color-gamut:p3){.___SDateRange_ylan0_gg_ .___SInputMask_ylan0_gg_:focus-within .___SMask_ylan0_gg_{background-color:var(--intergalactic-bg-highlight-focus, color(display-p3 0.89101 0.91919 1))}}}.___SDateRange_ylan0_gg_:focus-within .___SRangeSep_ylan0_gg_,.___SRangeSep_ylan0_gg_.__fulfilled_ylan0_gg_{color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}.___SRangeComparatorHeader_ylan0_gg_{border-bottom:1px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161));padding:var(--intergalactic-spacing-4x, 16px)}@supports (color:color(display-p3 0 0 0)){.___SRangeComparatorHeader_ylan0_gg_{border-bottom:1px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SRangeComparatorHeader_ylan0_gg_{border-bottom:1px solid var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}.___SFooter_ylan0_gg_,.___SRangeCalendar_ylan0_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___SFooter_ylan0_gg_{border-top:1px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@supports (color:color(display-p3 0 0 0)){.___SFooter_ylan0_gg_{border-top:1px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SFooter_ylan0_gg_{border-top:1px solid var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}.___SPeriodsList_ylan0_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___STooltip_ylan0_gg_{padding:var(--intergalactic-spacing-3x, 12px)}.___SCompareToggle_ylan0_gg_{white-space:nowrap}@media (prefers-reduced-motion){.___SInputMask_ylan0_gg_{transition:none}}",
30
33
  /*__inner_css_end__*/
31
- "9s22y_gg_"
34
+ "ylan0_gg_"
32
35
  ), /*__reshadow_css_end__*/
33
36
  {
34
- "__SHeader": "___SHeader_9s22y_gg_",
35
- "__STitle": "___STitle_9s22y_gg_",
36
- "__SToday": "___SToday_9s22y_gg_",
37
- "__SPeriod": "___SPeriod_9s22y_gg_",
38
- "__SButton": "___SButton_9s22y_gg_",
39
- "__SInner": "___SInner_9s22y_gg_",
40
- "__SInputMask": "___SInputMask_9s22y_gg_",
41
- "_animationsDisabled": "__animationsDisabled_9s22y_gg_",
42
- "__SIndicator": "___SIndicator_9s22y_gg_",
43
- "__SRangeIndicator": "___SRangeIndicator_9s22y_gg_",
44
- "_range_value": "_range_value_9s22y_gg_",
45
- "_range_compare": "_range_compare_9s22y_gg_",
46
- "_disabled": "__disabled_9s22y_gg_",
47
- "__SHumanizedDate": "___SHumanizedDate_9s22y_gg_",
48
- "__SMask": "___SMask_9s22y_gg_",
49
- "__SSingleDateInput": "___SSingleDateInput_9s22y_gg_",
50
- "__SValue": "___SValue_9s22y_gg_",
51
- "__SDateRange": "___SDateRange_9s22y_gg_",
52
- "_noHumanizedDate": "__noHumanizedDate_9s22y_gg_",
53
- "__SRangeSep": "___SRangeSep_9s22y_gg_",
54
- "_fulfilled": "__fulfilled_9s22y_gg_",
55
- "__SRangeComparatorHeader": "___SRangeComparatorHeader_9s22y_gg_",
56
- "__SRangeCalendar": "___SRangeCalendar_9s22y_gg_",
57
- "__SFooter": "___SFooter_9s22y_gg_",
58
- "__SPeriodsList": "___SPeriodsList_9s22y_gg_",
59
- "__STooltip": "___STooltip_9s22y_gg_",
60
- "__SCompareToggle": "___SCompareToggle_9s22y_gg_",
61
- "__SPopper": "___SPopper_9s22y_gg_"
37
+ "__SHeader": "___SHeader_ylan0_gg_",
38
+ "__STitle": "___STitle_ylan0_gg_",
39
+ "__SToday": "___SToday_ylan0_gg_",
40
+ "__SPeriod": "___SPeriod_ylan0_gg_",
41
+ "__SButton": "___SButton_ylan0_gg_",
42
+ "__SInner": "___SInner_ylan0_gg_",
43
+ "__SInputMask": "___SInputMask_ylan0_gg_",
44
+ "_animationsDisabled": "__animationsDisabled_ylan0_gg_",
45
+ "__SValue": "___SValue_ylan0_gg_",
46
+ "__SIndicator": "___SIndicator_ylan0_gg_",
47
+ "__SRangeIndicator": "___SRangeIndicator_ylan0_gg_",
48
+ "_range_value": "_range_value_ylan0_gg_",
49
+ "_range_compare": "_range_compare_ylan0_gg_",
50
+ "_disabled": "__disabled_ylan0_gg_",
51
+ "__SHumanizedDate": "___SHumanizedDate_ylan0_gg_",
52
+ "__SMask": "___SMask_ylan0_gg_",
53
+ "__SSingleDateInput": "___SSingleDateInput_ylan0_gg_",
54
+ "__SDateRange": "___SDateRange_ylan0_gg_",
55
+ "_noHumanizedDate": "__noHumanizedDate_ylan0_gg_",
56
+ "__SRangeSep": "___SRangeSep_ylan0_gg_",
57
+ "_fulfilled": "__fulfilled_ylan0_gg_",
58
+ "__SRangeComparatorHeader": "___SRangeComparatorHeader_ylan0_gg_",
59
+ "__SRangeCalendar": "___SRangeCalendar_ylan0_gg_",
60
+ "__SFooter": "___SFooter_ylan0_gg_",
61
+ "__SPeriodsList": "___SPeriodsList_ylan0_gg_",
62
+ "__STooltip": "___STooltip_ylan0_gg_",
63
+ "__SCompareToggle": "___SCompareToggle_ylan0_gg_",
64
+ "__SPopper": "___SPopper_ylan0_gg_"
62
65
  })
63
66
  );
64
67
  var defaultAllowedParts = {
@@ -67,16 +70,24 @@ var defaultAllowedParts = {
67
70
  day: true
68
71
  };
69
72
  var exampleDate = new Date(2e3, 4, 29);
70
- var InputTriggerRoot = /* @__PURE__ */ (function(_Component) {
73
+ var InputTriggerRoot = /* @__PURE__ */ function(_Component) {
74
+ _inherits(InputTriggerRoot2, _Component);
75
+ var _super = _createSuper(InputTriggerRoot2);
71
76
  function InputTriggerRoot2() {
72
77
  _classCallCheck(this, InputTriggerRoot2);
73
- return _callSuper(this, InputTriggerRoot2, arguments);
78
+ return _super.apply(this, arguments);
74
79
  }
75
- _inherits(InputTriggerRoot2, _Component);
76
- return _createClass(InputTriggerRoot2, [{
80
+ _createClass(InputTriggerRoot2, [{
77
81
  key: "getSingleDateInputProps",
78
82
  value: function getSingleDateInputProps() {
79
- var _this$asProps = this.asProps, _children = _this$asProps.children, id = _this$asProps.id, _role = _this$asProps.role, ariaHasPopup = _this$asProps["aria-haspopup"], _ariaLabel = _this$asProps["aria-label"], _style = _this$asProps.style, otherProps = _objectWithoutProperties(_this$asProps, _excluded);
83
+ var _this$asProps = this.asProps;
84
+ _this$asProps.children;
85
+ var id = _this$asProps.id;
86
+ _this$asProps.role;
87
+ var ariaHasPopup = _this$asProps["aria-haspopup"];
88
+ _this$asProps["aria-label"];
89
+ _this$asProps.style;
90
+ var otherProps = _objectWithoutProperties(_this$asProps, _excluded);
80
91
  return _objectSpread(_objectSpread({}, otherProps), {}, {
81
92
  ariaHasPopup,
82
93
  inputId: id
@@ -85,7 +96,14 @@ var InputTriggerRoot = /* @__PURE__ */ (function(_Component) {
85
96
  }, {
86
97
  key: "getDateRangeProps",
87
98
  value: function getDateRangeProps() {
88
- var _this$asProps2 = this.asProps, _children = _this$asProps2.children, id = _this$asProps2.id, _rolw = _this$asProps2.role, ariaHasPopup = _this$asProps2["aria-haspopup"], _ariaLabel = _this$asProps2["aria-label"], _style = _this$asProps2.style, otherProps = _objectWithoutProperties(_this$asProps2, _excluded2);
99
+ var _this$asProps2 = this.asProps;
100
+ _this$asProps2.children;
101
+ var id = _this$asProps2.id;
102
+ _this$asProps2.role;
103
+ var ariaHasPopup = _this$asProps2["aria-haspopup"];
104
+ _this$asProps2["aria-label"];
105
+ _this$asProps2.style;
106
+ var otherProps = _objectWithoutProperties(_this$asProps2, _excluded2);
89
107
  return _objectSpread(_objectSpread({}, otherProps), {}, {
90
108
  ariaHasPopup,
91
109
  inputId: id
@@ -97,50 +115,52 @@ var InputTriggerRoot = /* @__PURE__ */ (function(_Component) {
97
115
  var _ref = this.asProps, _ref8;
98
116
  var SInputTrigger = Box;
99
117
  var _this$asProps3 = this.asProps, Children = _this$asProps3.Children, style2 = _this$asProps3.style, getI18nText = _this$asProps3.getI18nText;
100
- return _ref8 = sstyled(style2), /* @__PURE__ */ React.createElement(SInputTrigger, _ref8.cn("SInputTrigger", _objectSpread({}, assignProps({
118
+ return _ref8 = sstyled$1(style2), /* @__PURE__ */ React.createElement(SInputTrigger, _ref8.cn("SInputTrigger", _objectSpread({}, assignProps({
101
119
  "aria-label": getI18nText("input"),
102
120
  "__excludeProps": ["onChange", "value", "role", "id"]
103
121
  }, _ref))), /* @__PURE__ */ React.createElement(Children, _ref8.cn("Children", {})));
104
122
  }
105
123
  }]);
106
- })(Component);
124
+ return InputTriggerRoot2;
125
+ }(Component);
107
126
  _defineProperty(InputTriggerRoot, "displayName", "InputTrigger");
108
127
  _defineProperty(InputTriggerRoot, "style", style);
109
128
  _defineProperty(InputTriggerRoot, "defaultProps", {
110
129
  duration: 300,
111
130
  popoverVisible: true
112
131
  });
113
- var SingleDateInputRoot = /* @__PURE__ */ (function(_Component2) {
132
+ var SingleDateInputRoot = /* @__PURE__ */ function(_Component2) {
133
+ _inherits(SingleDateInputRoot2, _Component2);
134
+ var _super2 = _createSuper(SingleDateInputRoot2);
114
135
  function SingleDateInputRoot2() {
115
136
  var _this;
116
137
  _classCallCheck(this, SingleDateInputRoot2);
117
138
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
118
139
  args[_key] = arguments[_key];
119
140
  }
120
- _this = _callSuper(this, SingleDateInputRoot2, [].concat(args));
121
- _defineProperty(_this, "state", {
141
+ _this = _super2.call.apply(_super2, [this].concat(args));
142
+ _defineProperty(_assertThisInitialized(_this), "state", {
122
143
  errorText: null,
123
144
  showError: false,
124
145
  focused: false
125
146
  });
126
- _defineProperty(_this, "handleFocus", function() {
147
+ _defineProperty(_assertThisInitialized(_this), "handleFocus", function() {
127
148
  _this.setState({
128
149
  focused: true
129
150
  });
130
151
  });
131
- _defineProperty(_this, "handleBlur", function() {
152
+ _defineProperty(_assertThisInitialized(_this), "handleBlur", function() {
132
153
  _this.setState({
133
154
  focused: false
134
155
  });
135
156
  });
136
- _defineProperty(_this, "handleInputMaskPipeBlock", function(value) {
157
+ _defineProperty(_assertThisInitialized(_this), "handleInputMaskPipeBlock", function(value) {
137
158
  if (value === _this.asProps.disabledDateInputAttempt) return;
138
159
  _this.handlers.disabledDateInputAttempt(value);
139
160
  });
140
161
  return _this;
141
162
  }
142
- _inherits(SingleDateInputRoot2, _Component2);
143
- return _createClass(SingleDateInputRoot2, [{
163
+ _createClass(SingleDateInputRoot2, [{
144
164
  key: "uncontrolledProps",
145
165
  value: function uncontrolledProps() {
146
166
  var _this2 = this;
@@ -172,14 +192,18 @@ var SingleDateInputRoot = /* @__PURE__ */ (function(_Component2) {
172
192
  }, {
173
193
  key: "getMaskedInputProps",
174
194
  value: function getMaskedInputProps() {
175
- var _this$asProps4 = this.asProps, value = _this$asProps4.value, onChange = _this$asProps4.onChange, onDisplayedPeriodChange = _this$asProps4.onDisplayedPeriodChange, locale = _this$asProps4.locale, _w = _this$asProps4.w, _ariaHasPopup = _this$asProps4.ariaHasPopup, _showError = _this$asProps4.showError, neighborLocation = _this$asProps4.neighborLocation, otherProps = _objectWithoutProperties(_this$asProps4, _excluded3);
195
+ var _this$asProps4 = this.asProps, value = _this$asProps4.value, onChange = _this$asProps4.onChange, onDisplayedPeriodChange = _this$asProps4.onDisplayedPeriodChange, locale = _this$asProps4.locale;
196
+ _this$asProps4.w;
197
+ _this$asProps4.ariaHasPopup;
198
+ _this$asProps4.showError;
199
+ var otherProps = _objectWithoutProperties(_this$asProps4, _excluded3);
176
200
  return _objectSpread({
177
- "date": value,
178
- "onDateChange": onChange,
201
+ date: value,
202
+ onDateChange: onChange,
179
203
  onDisplayedPeriodChange,
180
204
  locale,
181
205
  "aria-haspopup": "true",
182
- "onMaskPipeBlock": this.handleInputMaskPipeBlock
206
+ onMaskPipeBlock: this.handleInputMaskPipeBlock
183
207
  }, otherProps);
184
208
  }
185
209
  }, {
@@ -190,7 +214,7 @@ var SingleDateInputRoot = /* @__PURE__ */ (function(_Component2) {
190
214
  var _this$state = this.state, errorText = _this$state.errorText, showErrorState = _this$state.showError, focused = _this$state.focused;
191
215
  var showError = showErrorState && showErrorProps;
192
216
  var SSingleDateInput = InputMask;
193
- return _ref9 = sstyled(styles), /* @__PURE__ */ React.createElement(SSingleDateInput, _ref9.cn("SSingleDateInput", _objectSpread({}, assignProps({
217
+ return _ref9 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SSingleDateInput, _ref9.cn("SSingleDateInput", _objectSpread({}, assignProps({
194
218
  "tag": Tooltip,
195
219
  "placement": "top-start",
196
220
  "title": errorText,
@@ -204,7 +228,8 @@ var SingleDateInputRoot = /* @__PURE__ */ (function(_Component2) {
204
228
  }, _ref2))), /* @__PURE__ */ React.createElement(NeighborLocation, _ref9.cn("NeighborLocation", {}), /* @__PURE__ */ React.createElement(Children, _ref9.cn("Children", {}))));
205
229
  }
206
230
  }]);
207
- })(Component);
231
+ return SingleDateInputRoot2;
232
+ }(Component);
208
233
  _defineProperty(SingleDateInputRoot, "displayName", "SingleDateInput");
209
234
  _defineProperty(SingleDateInputRoot, "style", style);
210
235
  _defineProperty(SingleDateInputRoot, "defaultProps", {
@@ -214,23 +239,25 @@ _defineProperty(SingleDateInputRoot, "defaultProps", {
214
239
  defaultDisabledDateInputAttempt: false,
215
240
  showError: true
216
241
  });
217
- var DateRangeRoot = /* @__PURE__ */ (function(_Component3) {
242
+ var DateRangeRoot = /* @__PURE__ */ function(_Component3) {
243
+ _inherits(DateRangeRoot2, _Component3);
244
+ var _super3 = _createSuper(DateRangeRoot2);
218
245
  function DateRangeRoot2() {
219
246
  var _this3;
220
247
  _classCallCheck(this, DateRangeRoot2);
221
248
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
222
249
  args[_key2] = arguments[_key2];
223
250
  }
224
- _this3 = _callSuper(this, DateRangeRoot2, [].concat(args));
225
- _defineProperty(_this3, "state", {
251
+ _this3 = _super3.call.apply(_super3, [this].concat(args));
252
+ _defineProperty(_assertThisInitialized(_this3), "state", {
226
253
  containerFocused: false,
227
254
  errorText: null,
228
255
  showError: false,
229
256
  lastChangedInput: "from"
230
257
  });
231
- _defineProperty(_this3, "fromRef", /* @__PURE__ */ React.createRef());
232
- _defineProperty(_this3, "toRef", /* @__PURE__ */ React.createRef());
233
- _defineProperty(_this3, "handleFromChange", function(value, event) {
258
+ _defineProperty(_assertThisInitialized(_this3), "fromRef", /* @__PURE__ */ React.createRef());
259
+ _defineProperty(_assertThisInitialized(_this3), "toRef", /* @__PURE__ */ React.createRef());
260
+ _defineProperty(_assertThisInitialized(_this3), "handleFromChange", function(value, event) {
234
261
  var _this3$asProps$value$, _this3$asProps$value, _this3$asProps$value$2, _this3$asProps$value2;
235
262
  var onChange = _this3.asProps.onChange;
236
263
  var prevValue = [(_this3$asProps$value$ = (_this3$asProps$value = _this3.asProps.value) === null || _this3$asProps$value === void 0 ? void 0 : _this3$asProps$value[0]) !== null && _this3$asProps$value$ !== void 0 ? _this3$asProps$value$ : null, (_this3$asProps$value$2 = (_this3$asProps$value2 = _this3.asProps.value) === null || _this3$asProps$value2 === void 0 ? void 0 : _this3$asProps$value2[1]) !== null && _this3$asProps$value$2 !== void 0 ? _this3$asProps$value$2 : null];
@@ -244,13 +271,13 @@ var DateRangeRoot = /* @__PURE__ */ (function(_Component3) {
244
271
  }, 0);
245
272
  }
246
273
  });
247
- _defineProperty(_this3, "handleToChange", function(value, event) {
274
+ _defineProperty(_assertThisInitialized(_this3), "handleToChange", function(value, event) {
248
275
  var _this3$asProps$value$3, _this3$asProps$value3, _this3$asProps$value$4, _this3$asProps$value4;
249
276
  var onChange = _this3.asProps.onChange;
250
277
  var prevValue = [(_this3$asProps$value$3 = (_this3$asProps$value3 = _this3.asProps.value) === null || _this3$asProps$value3 === void 0 ? void 0 : _this3$asProps$value3[0]) !== null && _this3$asProps$value$3 !== void 0 ? _this3$asProps$value$3 : null, (_this3$asProps$value$4 = (_this3$asProps$value4 = _this3.asProps.value) === null || _this3$asProps$value4 === void 0 ? void 0 : _this3$asProps$value4[1]) !== null && _this3$asProps$value$4 !== void 0 ? _this3$asProps$value$4 : null];
251
278
  onChange([prevValue[0], value], event);
252
279
  });
253
- _defineProperty(_this3, "handleFromKeydown", function(event) {
280
+ _defineProperty(_assertThisInitialized(_this3), "handleFromKeydown", function(event) {
254
281
  if (!_this3.toRef.current) return;
255
282
  if (!_this3.fromRef.current) return;
256
283
  _this3.setState({
@@ -263,7 +290,7 @@ var DateRangeRoot = /* @__PURE__ */ (function(_Component3) {
263
290
  }, 0);
264
291
  }
265
292
  });
266
- _defineProperty(_this3, "handleToKeydown", function(event) {
293
+ _defineProperty(_assertThisInitialized(_this3), "handleToKeydown", function(event) {
267
294
  if (!_this3.toRef.current) return;
268
295
  if (!_this3.fromRef.current) return;
269
296
  _this3.setState({
@@ -284,21 +311,21 @@ var DateRangeRoot = /* @__PURE__ */ (function(_Component3) {
284
311
  }, 0);
285
312
  }
286
313
  });
287
- _defineProperty(_this3, "handleInputMaskPipeBlock", function(value) {
314
+ _defineProperty(_assertThisInitialized(_this3), "handleInputMaskPipeBlock", function(value) {
288
315
  if (value === _this3.asProps.disabledDateInputAttempt) return;
289
316
  _this3.handlers.disabledDateInputAttempt(value);
290
317
  });
291
- _defineProperty(_this3, "handleFocus", function() {
318
+ _defineProperty(_assertThisInitialized(_this3), "handleFocus", function() {
292
319
  _this3.setState({
293
320
  containerFocused: true
294
321
  });
295
322
  });
296
- _defineProperty(_this3, "handleBlur", function() {
323
+ _defineProperty(_assertThisInitialized(_this3), "handleBlur", function() {
297
324
  _this3.setState({
298
325
  containerFocused: false
299
326
  });
300
327
  });
301
- _defineProperty(_this3, "updateDisabledDateInputAttempt", function(value) {
328
+ _defineProperty(_assertThisInitialized(_this3), "updateDisabledDateInputAttempt", function(value) {
302
329
  var disabledDates = _this3.asProps.disabledDates;
303
330
  var invalid = false;
304
331
  if (value) {
@@ -316,8 +343,7 @@ var DateRangeRoot = /* @__PURE__ */ (function(_Component3) {
316
343
  });
317
344
  return _this3;
318
345
  }
319
- _inherits(DateRangeRoot2, _Component3);
320
- return _createClass(DateRangeRoot2, [{
346
+ _createClass(DateRangeRoot2, [{
321
347
  key: "uncontrolledProps",
322
348
  value: function uncontrolledProps() {
323
349
  var _this4 = this;
@@ -355,39 +381,44 @@ var DateRangeRoot = /* @__PURE__ */ (function(_Component3) {
355
381
  }, {
356
382
  key: "getFromMaskedInputProps",
357
383
  value: function getFromMaskedInputProps() {
358
- var _this$asProps6 = this.asProps, value = _this$asProps6.value, locale = _this$asProps6.locale, onDisplayedPeriodChange = _this$asProps6.onDisplayedPeriodChange, ariaHasPopup = _this$asProps6.ariaHasPopup, _showError = _this$asProps6.showError, neighborLocation = _this$asProps6.neighborLocation, otherProps = _objectWithoutProperties(_this$asProps6, _excluded4);
384
+ var _this$asProps6 = this.asProps, value = _this$asProps6.value, locale = _this$asProps6.locale, onDisplayedPeriodChange = _this$asProps6.onDisplayedPeriodChange, ariaHasPopup = _this$asProps6.ariaHasPopup;
385
+ _this$asProps6.showError;
386
+ var otherProps = _objectWithoutProperties(_this$asProps6, _excluded4);
359
387
  return assignProps$1({
360
- "ref": this.fromRef,
361
- "date": value === null || value === void 0 ? void 0 : value[0],
362
- "onDateChange": this.handleFromChange,
363
- "onKeyDown": this.handleFromKeydown,
388
+ ref: this.fromRef,
389
+ date: value === null || value === void 0 ? void 0 : value[0],
390
+ onDateChange: this.handleFromChange,
391
+ onKeyDown: this.handleFromKeydown,
364
392
  locale,
365
- "flex": 1,
393
+ flex: 1,
366
394
  onDisplayedPeriodChange,
367
395
  "aria-haspopup": ariaHasPopup,
368
- "onMaskPipeBlock": this.handleInputMaskPipeBlock,
369
- "containerFocused": this.state.containerFocused
396
+ onMaskPipeBlock: this.handleInputMaskPipeBlock,
397
+ containerFocused: this.state.containerFocused
370
398
  }, otherProps);
371
399
  }
372
400
  }, {
373
401
  key: "getToMaskedInputProps",
374
402
  value: function getToMaskedInputProps() {
375
- var _this$asProps7 = this.asProps, value = _this$asProps7.value, locale = _this$asProps7.locale, onDisplayedPeriodChange = _this$asProps7.onDisplayedPeriodChange, ariaHasPopup = _this$asProps7.ariaHasPopup, _inputId = _this$asProps7.inputId, _showError = _this$asProps7.showError, neighborLocation = _this$asProps7.neighborLocation, otherProps = _objectWithoutProperties(_this$asProps7, _excluded5);
403
+ var _this$asProps7 = this.asProps, value = _this$asProps7.value, locale = _this$asProps7.locale, onDisplayedPeriodChange = _this$asProps7.onDisplayedPeriodChange, ariaHasPopup = _this$asProps7.ariaHasPopup;
404
+ _this$asProps7.inputId;
405
+ _this$asProps7.showError;
406
+ var otherProps = _objectWithoutProperties(_this$asProps7, _excluded5);
376
407
  var ariaLabel = this.asProps.getI18nText("toDate", {
377
408
  date: this.asProps.getI18nText("input")
378
409
  });
379
410
  return assignProps$1({
380
- "ref": this.toRef,
381
- "date": value === null || value === void 0 ? void 0 : value[1],
382
- "onDateChange": this.handleToChange,
383
- "onKeyDown": this.handleToKeydown,
411
+ ref: this.toRef,
412
+ date: value === null || value === void 0 ? void 0 : value[1],
413
+ onDateChange: this.handleToChange,
414
+ onKeyDown: this.handleToKeydown,
384
415
  locale,
385
- "flex": 1,
416
+ flex: 1,
386
417
  onDisplayedPeriodChange,
387
418
  "aria-label": ariaLabel,
388
419
  "aria-haspopup": ariaHasPopup,
389
- "onMaskPipeBlock": this.handleInputMaskPipeBlock,
390
- "containerFocused": this.state.containerFocused
420
+ onMaskPipeBlock: this.handleInputMaskPipeBlock,
421
+ containerFocused: this.state.containerFocused
391
422
  }, otherProps);
392
423
  }
393
424
  }, {
@@ -413,12 +444,12 @@ var DateRangeRoot = /* @__PURE__ */ (function(_Component3) {
413
444
  }, {
414
445
  key: "render",
415
446
  value: function render() {
416
- var _ref3 = this.asProps, _ref0;
447
+ var _ref3 = this.asProps, _ref10;
417
448
  var SDateRange = InputMask;
418
449
  var _this$asProps8 = this.asProps, Children = _this$asProps8.Children, styles = _this$asProps8.styles, w = _this$asProps8.w, state = _this$asProps8.state, showErrorProps = _this$asProps8.showError, popoverVisible = _this$asProps8.popoverVisible;
419
450
  var _this$state2 = this.state, errorText = _this$state2.errorText, lastChangedInput = _this$state2.lastChangedInput, showErrorState = _this$state2.showError, containerFocused = _this$state2.containerFocused;
420
451
  var showError = showErrorState && showErrorProps;
421
- return _ref0 = sstyled(styles), /* @__PURE__ */ React.createElement(SDateRange, _ref0.cn("SDateRange", _objectSpread({}, assignProps({
452
+ return _ref10 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SDateRange, _ref10.cn("SDateRange", _objectSpread({}, assignProps({
422
453
  "tag": Tooltip,
423
454
  "ignorePortalsStacking": true,
424
455
  "placement": lastChangedInput === "to" ? "top-end" : "top-start",
@@ -430,10 +461,11 @@ var DateRangeRoot = /* @__PURE__ */ (function(_Component3) {
430
461
  "w": w,
431
462
  "onFocus": this.handleFocus,
432
463
  "onBlur": this.handleBlur
433
- }, _ref3))), /* @__PURE__ */ React.createElement(Children, _ref0.cn("Children", {})));
464
+ }, _ref3))), /* @__PURE__ */ React.createElement(Children, _ref10.cn("Children", {})));
434
465
  }
435
466
  }]);
436
- })(Component);
467
+ return DateRangeRoot2;
468
+ }(Component);
437
469
  _defineProperty(DateRangeRoot, "displayName", "DateRange");
438
470
  _defineProperty(DateRangeRoot, "style", style);
439
471
  _defineProperty(DateRangeRoot, "defaultProps", {
@@ -443,45 +475,48 @@ _defineProperty(DateRangeRoot, "defaultProps", {
443
475
  defaultDisabledDateInputAttempt: false,
444
476
  showError: true
445
477
  });
446
- function FromMaskedInput(props) {
447
- var _ref4 = arguments[0], _ref1;
478
+ var FromMaskedInput = function FromMaskedInput2(props) {
479
+ var _ref4 = arguments[0], _ref11;
448
480
  var SFromMaskedInput = MaskedInput;
449
481
  var getI18nText = props.getI18nText;
450
- return _ref1 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SFromMaskedInput, _ref1.cn("SFromMaskedInput", _objectSpread({}, assignProps({
482
+ return _ref11 = sstyled$1(props.styles), /* @__PURE__ */ React.createElement(SFromMaskedInput, _ref11.cn("SFromMaskedInput", _objectSpread({}, assignProps({
451
483
  "labelPrefix": getI18nText("fromDatePlaceholder")
452
484
  }, _ref4))));
453
- }
454
- function ToMaskedInput(props) {
455
- var _ref5 = arguments[0], _ref10;
485
+ };
486
+ var ToMaskedInput = function ToMaskedInput2(props) {
487
+ var _ref5 = arguments[0], _ref12;
456
488
  var SToMaskedInput = MaskedInput;
457
489
  var getI18nText = props.getI18nText;
458
- return _ref10 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SToMaskedInput, _ref10.cn("SToMaskedInput", _objectSpread({}, assignProps({
490
+ return _ref12 = sstyled$1(props.styles), /* @__PURE__ */ React.createElement(SToMaskedInput, _ref12.cn("SToMaskedInput", _objectSpread({}, assignProps({
459
491
  "labelPrefix": getI18nText("toDatePlaceholder")
460
492
  }, _ref5))));
461
- }
462
- function Indicator(props) {
463
- var _ref6 = arguments[0], _ref11;
493
+ };
494
+ var Indicator = function Indicator2(props) {
495
+ var _ref6 = arguments[0], _ref13;
464
496
  var SIndicator = InputMask.Addon;
465
- return _ref11 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SIndicator, _ref11.cn("SIndicator", _objectSpread({}, assignProps({
497
+ return _ref13 = sstyled$1(props.styles), /* @__PURE__ */ React.createElement(SIndicator, _ref13.cn("SIndicator", _objectSpread({}, assignProps({
466
498
  "tag": Calendar,
467
499
  "aria-hidden": "true",
468
500
  "tabIndex": -1
469
501
  }, _ref6))));
470
- }
471
- function RangeSep(props) {
472
- var _ref7 = arguments[0], _ref12;
502
+ };
503
+ var RangeSep = function RangeSep2(props) {
504
+ var _ref7 = arguments[0], _ref14;
473
505
  var SRangeSep = InputMask.Addon;
474
- return _ref12 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SRangeSep, _ref12.cn("SRangeSep", _objectSpread({}, assignProps({
506
+ return _ref14 = sstyled$1(props.styles), /* @__PURE__ */ React.createElement(SRangeSep, _ref14.cn("SRangeSep", _objectSpread({}, assignProps({
475
507
  "tag": Flex,
476
508
  "alignItems": "center",
477
509
  "justifyContent": "center",
478
510
  "pl": 0,
479
511
  "flex": "0"
480
512
  }, _ref7))), "–");
481
- }
482
- function MaskedInput(_ref14) {
483
- var _ref13;
484
- var outerValue = _ref14.date, onDateChange = _ref14.onDateChange, onDisplayedPeriodChange = _ref14.onDisplayedPeriodChange, locale = _ref14.locale, styles = _ref14.styles, _ref14$parts = _ref14.parts, allowedParts = _ref14$parts === void 0 ? defaultAllowedParts : _ref14$parts, disabledDates = _ref14.disabledDates, forwardRef = _ref14.forwardRef, providedPlaceholders = _ref14.placeholders, _ref14$labelPrefix = _ref14.labelPrefix, labelPrefix = _ref14$labelPrefix === void 0 ? "Date" : _ref14$labelPrefix, onMaskPipeBlock = _ref14.onMaskPipeBlock, containerFocused = _ref14.containerFocused, animationsDisabled = _ref14.animationsDisabled, getI18nText = _ref14.getI18nText, inputId = _ref14.inputId, _ref14$inputRole = _ref14.inputRole, inputRole = _ref14$inputRole === void 0 ? "combobox" : _ref14$inputRole, __excludeProps = _ref14.__excludeProps, _root = _ref14.Root, otherProps = _objectWithoutProperties(_ref14, _excluded6);
513
+ };
514
+ var MaskedInput = function MaskedInput2(_ref16) {
515
+ var _ref15;
516
+ var outerValue = _ref16.date, onDateChange = _ref16.onDateChange, onDisplayedPeriodChange = _ref16.onDisplayedPeriodChange, locale = _ref16.locale, styles = _ref16.styles, _ref16$parts = _ref16.parts, allowedParts = _ref16$parts === void 0 ? defaultAllowedParts : _ref16$parts, disabledDates = _ref16.disabledDates, forwardRef = _ref16.forwardRef, providedPlaceholders = _ref16.placeholders, _ref16$labelPrefix = _ref16.labelPrefix, labelPrefix = _ref16$labelPrefix === void 0 ? "Date" : _ref16$labelPrefix, onMaskPipeBlock = _ref16.onMaskPipeBlock, containerFocused = _ref16.containerFocused, animationsDisabled = _ref16.animationsDisabled, getI18nText = _ref16.getI18nText, inputId = _ref16.inputId, _ref16$inputRole = _ref16.inputRole, inputRole = _ref16$inputRole === void 0 ? "combobox" : _ref16$inputRole;
517
+ _ref16.__excludeProps;
518
+ _ref16.Root;
519
+ var otherProps = _objectWithoutProperties(_ref16, _excluded6);
485
520
  var ref = React.useRef();
486
521
  var _React$useState = React.useState(void 0), _React$useState2 = _slicedToArray(_React$useState, 2), width = _React$useState2[0], setWidth = _React$useState2[1];
487
522
  var placeholders = React.useMemo(function() {
@@ -499,6 +534,7 @@ function MaskedInput(_ref14) {
499
534
  throw new Error("InputTrigger placeholder prop should contain fields year, month and day each one with string value of single character length. [see above what was received] (".concat(placeholders, ")"), placeholders);
500
535
  }
501
536
  var _React$useMemo = React.useMemo(function() {
537
+ var _sep;
502
538
  var options = {
503
539
  year: "numeric",
504
540
  month: "numeric",
@@ -524,7 +560,7 @@ function MaskedInput(_ref14) {
524
560
  } finally {
525
561
  _iterator.f();
526
562
  }
527
- sep2 = sep2 !== null && sep2 !== void 0 ? sep2 : " ";
563
+ sep2 = (_sep = sep2) !== null && _sep !== void 0 ? _sep : " ";
528
564
  return {
529
565
  sep: sep2,
530
566
  order: order2
@@ -584,7 +620,7 @@ function MaskedInput(_ref14) {
584
620
  }
585
621
  }
586
622
  if (placeholdersOnly) {
587
- onMaskPipeBlock === null || onMaskPipeBlock === void 0 || onMaskPipeBlock(null);
623
+ onMaskPipeBlock === null || onMaskPipeBlock === void 0 ? void 0 : onMaskPipeBlock(null);
588
624
  return "";
589
625
  }
590
626
  var getOffsetTo = function getOffsetTo2(partName2) {
@@ -617,20 +653,20 @@ function MaskedInput(_ref14) {
617
653
  }
618
654
  var year = parsed.year, month = parsed.month, day = parsed.day;
619
655
  if (allowedParts.month) {
620
- if (month[0] !== "_" && Number.parseInt(month[0], 10) > 1) {
656
+ if (month[0] !== "_" && parseInt(month[0], 10) > 1) {
621
657
  month = "0".concat(month[0]);
622
658
  indexesOfPipedChars.push(getOffsetTo("month"));
623
659
  }
624
660
  if (month === "00") month = "01";
625
- if (month[0] !== "_" && month[1] !== "_" && Number.parseInt(month, 10) > 12) return false;
661
+ if (month[0] !== "_" && month[1] !== "_" && parseInt(month, 10) > 12) return false;
626
662
  }
627
663
  if (allowedParts.day) {
628
- if (day[0] !== "_" && Number.parseInt(day[0], 10) > 3) {
664
+ if (day[0] !== "_" && parseInt(day[0], 10) > 3) {
629
665
  day = "0".concat(day[0]);
630
666
  indexesOfPipedChars.push(getOffsetTo("day"));
631
667
  }
632
668
  if (day === "00") day = "01";
633
- if (day[0] !== "_" && day[1] !== "_" && Number.parseInt(day, 10) > 31) return false;
669
+ if (day[0] !== "_" && day[1] !== "_" && parseInt(day, 10) > 31) return false;
634
670
  }
635
671
  year = year.split("").map(function(_char) {
636
672
  return _char === "_" ? placeholders.year : _char;
@@ -647,17 +683,17 @@ function MaskedInput(_ref14) {
647
683
  var fulfilled = yearFulfilled && monthFulfilled && dayFulfilled;
648
684
  if (fulfilled) {
649
685
  var date = new Date(0, 0, 0, 0, 0, 0, 0);
650
- var yearParsed = allowedParts.year ? Number.parseInt(year, 10) : 0;
651
- var monthParsed = allowedParts.month ? Number.parseInt(month, 10) - 1 : 0;
652
- var dayParsed = allowedParts.day ? Number.parseInt(day, 10) : 1;
686
+ var yearParsed = allowedParts.year ? parseInt(year, 10) : 0;
687
+ var monthParsed = allowedParts.month ? parseInt(month, 10) - 1 : 0;
688
+ var dayParsed = allowedParts.day ? parseInt(day, 10) : 1;
653
689
  date.setFullYear(yearParsed, monthParsed, dayParsed);
654
690
  if (disabledDates !== null && disabledDates !== void 0 && disabledDates.some(includesDate(dayjs(date), "date"))) {
655
- onMaskPipeBlock === null || onMaskPipeBlock === void 0 || onMaskPipeBlock(date);
691
+ onMaskPipeBlock === null || onMaskPipeBlock === void 0 ? void 0 : onMaskPipeBlock(date);
656
692
  return false;
657
693
  }
658
694
  if (allowedParts.day) {
659
- if (date.getDate() !== Number.parseInt(day, 10)) {
660
- onMaskPipeBlock === null || onMaskPipeBlock === void 0 || onMaskPipeBlock(date);
695
+ if (date.getDate() !== parseInt(day, 10)) {
696
+ onMaskPipeBlock === null || onMaskPipeBlock === void 0 ? void 0 : onMaskPipeBlock(date);
661
697
  return false;
662
698
  }
663
699
  }
@@ -676,7 +712,7 @@ function MaskedInput(_ref14) {
676
712
  } finally {
677
713
  _iterator4.f();
678
714
  }
679
- onMaskPipeBlock === null || onMaskPipeBlock === void 0 || onMaskPipeBlock(null);
715
+ onMaskPipeBlock === null || onMaskPipeBlock === void 0 ? void 0 : onMaskPipeBlock(null);
680
716
  return {
681
717
  value: result.join(sep),
682
718
  indexesOfPipedChars
@@ -703,9 +739,9 @@ function MaskedInput(_ref14) {
703
739
  var fulfilled = yearFulfilled && monthFulfilled && dayFulfilled;
704
740
  if (fulfilled) {
705
741
  var date = new Date(0, 0, 0, 0, 0, 0, 0);
706
- var yearParsed = allowedParts.year ? Number.parseInt(year, 10) : 0;
707
- var monthParsed = allowedParts.month ? Number.parseInt(month, 10) - 1 : 0;
708
- var dayParsed = allowedParts.day ? Number.parseInt(day, 10) : 1;
742
+ var yearParsed = allowedParts.year ? parseInt(year, 10) : 0;
743
+ var monthParsed = allowedParts.month ? parseInt(month, 10) - 1 : 0;
744
+ var dayParsed = allowedParts.day ? parseInt(day, 10) : 1;
709
745
  date.setFullYear(yearParsed, monthParsed, dayParsed);
710
746
  onDateChange(date);
711
747
  lastKnownOuterValue.current = {
@@ -721,9 +757,9 @@ function MaskedInput(_ref14) {
721
757
  }
722
758
  if (yearFulfilled && allowedParts.year) {
723
759
  var _date = new Date(0, 0, 0, 0, 0, 0, 0);
724
- _date.setFullYear(Number.parseInt(year, 10));
760
+ _date.setFullYear(parseInt(year, 10));
725
761
  if (monthFulfilled && allowedParts.month) {
726
- _date.setMonth(Number.parseInt(month, 10) - 1);
762
+ _date.setMonth(parseInt(month, 10) - 1);
727
763
  }
728
764
  onDisplayedPeriodChange(_date);
729
765
  }
@@ -746,10 +782,12 @@ function MaskedInput(_ref14) {
746
782
  return result.join(sep);
747
783
  }, [sep, order, placeholders]);
748
784
  var aliases = React.useMemo(function() {
749
- return _defineProperty(_defineProperty(_defineProperty({}, placeholders.year, /\d/), placeholders.month, /\d/), placeholders.day, /\d/);
785
+ var _ref17;
786
+ return _ref17 = {}, _defineProperty(_ref17, placeholders.year, /\d/), _defineProperty(_ref17, placeholders.month, /\d/), _defineProperty(_ref17, placeholders.day, /\d/), _ref17;
750
787
  }, [placeholders]);
751
788
  var maskOnlySymbols = React.useMemo(function() {
752
- return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, placeholders.year, true), placeholders.month, true), placeholders.day, true), sep, true);
789
+ var _ref18;
790
+ return _ref18 = {}, _defineProperty(_ref18, placeholders.year, true), _defineProperty(_ref18, placeholders.month, true), _defineProperty(_ref18, placeholders.day, true), _defineProperty(_ref18, sep, true), _ref18;
753
791
  }, [sep, placeholders]);
754
792
  var humanizedDate = React.useMemo(function() {
755
793
  var outerDate = outerValue;
@@ -772,8 +810,8 @@ function MaskedInput(_ref14) {
772
810
  var computedStyle = window.getComputedStyle(ref.current);
773
811
  var typographyRelatedStyles = ["height", "font-size", "font-family", "font-weight", "font-style", "line-height", "letter-spacing", "text-transform", "word-spacing"];
774
812
  for (var _i2 = 0, _typographyRelatedSty = typographyRelatedStyles; _i2 < _typographyRelatedSty.length; _i2++) {
775
- var _style2 = _typographyRelatedSty[_i2];
776
- measureSpan.style[_style2] = computedStyle[_style2];
813
+ var _style = _typographyRelatedSty[_i2];
814
+ measureSpan.style[_style] = computedStyle[_style];
777
815
  }
778
816
  measureSpan.style.position = "absolute";
779
817
  measureSpan.style.visibility = "hidden";
@@ -781,7 +819,7 @@ function MaskedInput(_ref14) {
781
819
  for (var _i3 = 0, _stringsToMeasure = stringsToMeasure; _i3 < _stringsToMeasure.length; _i3++) {
782
820
  var string = _stringsToMeasure[_i3];
783
821
  measureSpan.innerHTML = string;
784
- widths.push(Math.ceil(measureSpan.getBoundingClientRect().width));
822
+ widths.push(measureSpan.offsetWidth);
785
823
  }
786
824
  measureSpan.remove();
787
825
  var maxWidth = Math.max.apply(Math, widths);
@@ -799,19 +837,19 @@ function MaskedInput(_ref14) {
799
837
  var focused = containerFocused !== null && containerFocused !== void 0 ? containerFocused : innerFocused;
800
838
  var handleFocus = React.useCallback(function(event) {
801
839
  var _otherProps$onFocus;
802
- (_otherProps$onFocus = otherProps.onFocus) === null || _otherProps$onFocus === void 0 || _otherProps$onFocus.call(otherProps, event);
840
+ (_otherProps$onFocus = otherProps.onFocus) === null || _otherProps$onFocus === void 0 ? void 0 : _otherProps$onFocus.call(otherProps, event);
803
841
  setInnerFocused(true);
804
842
  }, []);
805
843
  var handleBlur = React.useCallback(function(event) {
806
844
  var _otherProps$onBlur;
807
- (_otherProps$onBlur = otherProps.onBlur) === null || _otherProps$onBlur === void 0 || _otherProps$onBlur.call(otherProps, event);
845
+ (_otherProps$onBlur = otherProps.onBlur) === null || _otherProps$onBlur === void 0 ? void 0 : _otherProps$onBlur.call(otherProps, event);
808
846
  setInnerFocused(false);
809
847
  }, []);
810
848
  useEnhancedEffect(function() {
811
849
  if (focused) return;
812
850
  setAppliedWidth(width);
813
851
  }, [width, focused]);
814
- return _ref13 = sstyled(styles), /* @__PURE__ */ React.createElement(InputMask.Value, _extends({
852
+ return _ref15 = sstyled$1(styles), /* @__PURE__ */ React.createElement(InputMask.Value, _extends({
815
853
  "aria-label": labelPrefix,
816
854
  title: mask,
817
855
  mask,
@@ -833,8 +871,8 @@ function MaskedInput(_ref14) {
833
871
  animationsDisabled,
834
872
  inputRole,
835
873
  inputMode: "numeric"
836
- }), humanizedDate && /* @__PURE__ */ React.createElement(SHumanizedDate, _ref13.cn("SHumanizedDate", {}), humanizedDate));
837
- }
874
+ }), humanizedDate && /* @__PURE__ */ React.createElement(SHumanizedDate, _ref15.cn("SHumanizedDate", {}), humanizedDate));
875
+ };
838
876
  var SingleDateInput = createComponent(SingleDateInputRoot, {
839
877
  Indicator,
840
878
  MaskedInput