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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/lib/cjs/DatePicker.js +27 -36
  3. package/lib/cjs/DatePicker.js.map +1 -1
  4. package/lib/cjs/DateRangeComparator.js +38 -43
  5. package/lib/cjs/DateRangeComparator.js.map +1 -1
  6. package/lib/cjs/DateRangePicker.js +17 -22
  7. package/lib/cjs/DateRangePicker.js.map +1 -1
  8. package/lib/cjs/MonthDateRangeComparator.js +42 -47
  9. package/lib/cjs/MonthDateRangeComparator.js.map +1 -1
  10. package/lib/cjs/MonthPicker.js +16 -21
  11. package/lib/cjs/MonthPicker.js.map +1 -1
  12. package/lib/cjs/MonthRangePicker.js +18 -23
  13. package/lib/cjs/MonthRangePicker.js.map +1 -1
  14. package/lib/cjs/components/ButtonTrigger.js +8 -10
  15. package/lib/cjs/components/ButtonTrigger.js.map +1 -1
  16. package/lib/cjs/components/Calendar.js +109 -125
  17. package/lib/cjs/components/Calendar.js.map +1 -1
  18. package/lib/cjs/components/DateRangeComparatorAbstract.js +121 -104
  19. package/lib/cjs/components/DateRangeComparatorAbstract.js.map +1 -1
  20. package/lib/cjs/components/InputTrigger.js +179 -189
  21. package/lib/cjs/components/InputTrigger.js.map +1 -1
  22. package/lib/cjs/components/PickerAbstract.js +58 -57
  23. package/lib/cjs/components/PickerAbstract.js.map +1 -1
  24. package/lib/cjs/components/RangePickerAbstract.js +97 -76
  25. package/lib/cjs/components/RangePickerAbstract.js.map +1 -1
  26. package/lib/cjs/components/index.js +41 -46
  27. package/lib/cjs/components/index.js.map +1 -1
  28. package/lib/cjs/index.d.js.map +1 -1
  29. package/lib/cjs/index.js +2 -2
  30. package/lib/cjs/index.js.map +1 -1
  31. package/lib/cjs/style/calendar.shadow.css +40 -42
  32. package/lib/cjs/style/date-picker.shadow.css +15 -16
  33. package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
  34. package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
  35. package/lib/cjs/translations/de.json +6 -2
  36. package/lib/cjs/translations/es.json +6 -2
  37. package/lib/cjs/translations/fr.json +6 -2
  38. package/lib/cjs/translations/it.json +6 -2
  39. package/lib/cjs/translations/ja.json +6 -2
  40. package/lib/cjs/translations/ko.json +6 -2
  41. package/lib/cjs/translations/nl.json +6 -2
  42. package/lib/cjs/translations/pl.json +6 -2
  43. package/lib/cjs/translations/pt.json +6 -2
  44. package/lib/cjs/translations/sv.json +6 -2
  45. package/lib/cjs/translations/tr.json +6 -2
  46. package/lib/cjs/translations/vi.json +6 -2
  47. package/lib/cjs/translations/zh.json +6 -2
  48. package/lib/cjs/utils/cronTabScheduler.js +8 -5
  49. package/lib/cjs/utils/cronTabScheduler.js.map +1 -1
  50. package/lib/cjs/utils/datesIntersects.js +3 -4
  51. package/lib/cjs/utils/datesIntersects.js.map +1 -1
  52. package/lib/cjs/utils/formatDate.js +3 -5
  53. package/lib/cjs/utils/formatDate.js.map +1 -1
  54. package/lib/cjs/utils/includesDate.js +2 -3
  55. package/lib/cjs/utils/includesDate.js.map +1 -1
  56. package/lib/cjs/utils/isBetweenPlugin.js +21 -0
  57. package/lib/cjs/utils/isBetweenPlugin.js.map +1 -0
  58. package/lib/cjs/utils/shortDateRangeFormat.js +2 -2
  59. package/lib/cjs/utils/shortDateRangeFormat.js.map +1 -1
  60. package/lib/es6/DatePicker.js +22 -28
  61. package/lib/es6/DatePicker.js.map +1 -1
  62. package/lib/es6/DateRangeComparator.js +23 -27
  63. package/lib/es6/DateRangeComparator.js.map +1 -1
  64. package/lib/es6/DateRangePicker.js +13 -17
  65. package/lib/es6/DateRangePicker.js.map +1 -1
  66. package/lib/es6/MonthDateRangeComparator.js +28 -32
  67. package/lib/es6/MonthDateRangeComparator.js.map +1 -1
  68. package/lib/es6/MonthPicker.js +13 -17
  69. package/lib/es6/MonthPicker.js.map +1 -1
  70. package/lib/es6/MonthRangePicker.js +14 -18
  71. package/lib/es6/MonthRangePicker.js.map +1 -1
  72. package/lib/es6/components/ButtonTrigger.js +5 -5
  73. package/lib/es6/components/ButtonTrigger.js.map +1 -1
  74. package/lib/es6/components/Calendar.js +100 -112
  75. package/lib/es6/components/Calendar.js.map +1 -1
  76. package/lib/es6/components/DateRangeComparatorAbstract.js +120 -101
  77. package/lib/es6/components/DateRangeComparatorAbstract.js.map +1 -1
  78. package/lib/es6/components/InputTrigger.js +173 -180
  79. package/lib/es6/components/InputTrigger.js.map +1 -1
  80. package/lib/es6/components/PickerAbstract.js +58 -55
  81. package/lib/es6/components/PickerAbstract.js.map +1 -1
  82. package/lib/es6/components/RangePickerAbstract.js +94 -71
  83. package/lib/es6/components/RangePickerAbstract.js.map +1 -1
  84. package/lib/es6/components/index.js +35 -38
  85. package/lib/es6/components/index.js.map +1 -1
  86. package/lib/es6/index.d.js.map +1 -1
  87. package/lib/es6/index.js.map +1 -1
  88. package/lib/es6/style/calendar.shadow.css +40 -42
  89. package/lib/es6/style/date-picker.shadow.css +15 -16
  90. package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
  91. package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
  92. package/lib/es6/translations/de.json +6 -2
  93. package/lib/es6/translations/es.json +6 -2
  94. package/lib/es6/translations/fr.json +6 -2
  95. package/lib/es6/translations/it.json +6 -2
  96. package/lib/es6/translations/ja.json +6 -2
  97. package/lib/es6/translations/ko.json +6 -2
  98. package/lib/es6/translations/nl.json +6 -2
  99. package/lib/es6/translations/pl.json +6 -2
  100. package/lib/es6/translations/pt.json +6 -2
  101. package/lib/es6/translations/sv.json +6 -2
  102. package/lib/es6/translations/tr.json +6 -2
  103. package/lib/es6/translations/vi.json +6 -2
  104. package/lib/es6/translations/zh.json +6 -2
  105. package/lib/es6/utils/cronTabScheduler.js +7 -4
  106. package/lib/es6/utils/cronTabScheduler.js.map +1 -1
  107. package/lib/es6/utils/datesIntersects.js +1 -1
  108. package/lib/es6/utils/datesIntersects.js.map +1 -1
  109. package/lib/es6/utils/formatDate.js.map +1 -1
  110. package/lib/es6/utils/includesDate.js.map +1 -1
  111. package/lib/es6/utils/isBetweenPlugin.js +16 -0
  112. package/lib/es6/utils/isBetweenPlugin.js.map +1 -0
  113. package/lib/es6/utils/shortDateRangeFormat.js +1 -1
  114. package/lib/es6/utils/shortDateRangeFormat.js.map +1 -1
  115. package/lib/esm/DatePicker.mjs +27 -33
  116. package/lib/esm/DateRangeComparator.mjs +26 -30
  117. package/lib/esm/DateRangePicker.mjs +17 -21
  118. package/lib/esm/MonthDateRangeComparator.mjs +31 -35
  119. package/lib/esm/MonthPicker.mjs +16 -20
  120. package/lib/esm/MonthRangePicker.mjs +18 -22
  121. package/lib/esm/components/ButtonTrigger.mjs +5 -5
  122. package/lib/esm/components/Calendar.mjs +103 -115
  123. package/lib/esm/components/DateRangeComparatorAbstract.mjs +105 -89
  124. package/lib/esm/components/InputTrigger.mjs +143 -181
  125. package/lib/esm/components/PickerAbstract.mjs +61 -62
  126. package/lib/esm/components/RangePickerAbstract.mjs +94 -73
  127. package/lib/esm/components/index.mjs +29 -33
  128. package/lib/esm/style/calendar.shadow.css +40 -42
  129. package/lib/esm/style/date-picker.shadow.css +15 -16
  130. package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
  131. package/lib/esm/translations/de.json.mjs +18 -6
  132. package/lib/esm/translations/es.json.mjs +18 -6
  133. package/lib/esm/translations/fr.json.mjs +18 -6
  134. package/lib/esm/translations/it.json.mjs +18 -6
  135. package/lib/esm/translations/ja.json.mjs +18 -6
  136. package/lib/esm/translations/ko.json.mjs +18 -6
  137. package/lib/esm/translations/nl.json.mjs +18 -6
  138. package/lib/esm/translations/pl.json.mjs +18 -6
  139. package/lib/esm/translations/pt.json.mjs +18 -6
  140. package/lib/esm/translations/sv.json.mjs +18 -6
  141. package/lib/esm/translations/tr.json.mjs +18 -6
  142. package/lib/esm/translations/vi.json.mjs +18 -6
  143. package/lib/esm/translations/zh.json.mjs +18 -6
  144. package/lib/esm/utils/cronTabScheduler.mjs +4 -4
  145. package/lib/esm/utils/datesIntersects.mjs +1 -1
  146. package/lib/esm/utils/isBetweenPlugin.mjs +13 -0
  147. package/lib/esm/utils/shortDateRangeFormat.mjs +1 -2
  148. package/lib/types/index.d.ts +140 -171
  149. package/package.json +16 -16
@@ -2,62 +2,60 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
3
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
4
4
  import _createClass from "@babel/runtime/helpers/esm/createClass";
5
- import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
5
+ import _callSuper from "@babel/runtime/helpers/esm/callSuper";
6
6
  import _inherits from "@babel/runtime/helpers/esm/inherits";
7
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
8
7
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
- import { sstyled } from "@semcore/utils/lib/core/index";
10
- import { sstyled as sstyled$1, assignProps, Component } from "@semcore/core";
11
- import React from "react";
12
- import dayjs from "dayjs";
8
+ import { sstyled, assignProps, Component } from "@semcore/core";
9
+ import { Flex } from "@semcore/base-components";
10
+ import { LinkTrigger } from "@semcore/base-trigger";
13
11
  import Button from "@semcore/button";
14
- import { Flex } from "@semcore/flex-box";
12
+ import Checkbox from "@semcore/checkbox";
13
+ import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
15
14
  import Dropdown from "@semcore/dropdown";
16
- import i18nEnhance from "@semcore/utils/lib/enhances/i18nEnhance";
15
+ import dayjs from "dayjs";
16
+ import React from "react";
17
17
  import { localizedMessages } from "../translations/__intergalactic-dynamic-locales.mjs";
18
- import shortDateRangeFormat from "../utils/shortDateRangeFormat.mjs";
19
- import Checkbox from "@semcore/checkbox";
20
- import { LinkTrigger } from "@semcore/base-trigger";
21
- import { includesDate } from "../utils/includesDate.mjs";
22
18
  import { formatMMYY, formatDDMMYY } from "../utils/formatDate.mjs";
19
+ import { includesDate } from "../utils/includesDate.mjs";
20
+ import shortDateRangeFormat from "../utils/shortDateRangeFormat.mjs";
23
21
  /*!__reshadow-styles__:"../style/date-picker.shadow.css"*/
24
22
  var style = (
25
23
  /*__reshadow_css_start__*/
26
24
  (sstyled.insert(
27
25
  /*__inner_css_start__*/
28
- ".___SPopper_1f8n3_gg_{padding:var(--intergalactic-spacing-4x, 16px);outline:0}.___SPopper_1f8n3_gg_::-moz-focus-inner{border:0;padding:0}.___SPopper_1f8n3_gg_:active,.___SPopper_1f8n3_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SPopper_1f8n3_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SPopper_1f8n3_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHeader_1f8n3_gg_,.___STitle_1f8n3_gg_{display:flex;align-items:center}.___STitle_1f8n3_gg_{font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-primary, #191b23);height:32px;width:100%;justify-content:center}.___SToday_1f8n3_gg_{display:flex;margin-top:var(--intergalactic-spacing-3x, 12px);justify-content:center}.___SPeriod_1f8n3_gg_{display:flex;flex-direction:column;margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SButton_1f8n3_gg_ .___SInner_1f8n3_gg_{justify-content:flex-start}.___SInputMask_1f8n3_gg_{color:var(--intergalactic-text-primary, #191b23);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_1f8n3_gg_.__animationsDisabled_1f8n3_gg_{transition:none}.___SInputMask_1f8n3_gg_ .___SValue_1f8n3_gg_{letter-spacing:0}.___SIndicator_1f8n3_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SRangeIndicator_1f8n3_gg_{border-radius:50%;flex-shrink:0}.___SRangeIndicator_1f8n3_gg_._range_value_1f8n3_gg_{background-color:var(--intergalactic-date-picker-cell-active, #2bb3ff)}.___SRangeIndicator_1f8n3_gg_._range_compare_1f8n3_gg_{background-color:var(--intergalactic-date-picker-cell-comparison-active, #8649e1)}.___SRangeIndicator_1f8n3_gg_.__disabled_1f8n3_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SHumanizedDate_1f8n3_gg_{position:absolute;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.___SMask_1f8n3_gg_{letter-spacing:0;white-space:nowrap;overflow:hidden}.___SDateRange_1f8n3_gg_ .___SMask_1f8n3_gg_,.___SDateRange_1f8n3_gg_ .___SValue_1f8n3_gg_,.___SSingleDateInput_1f8n3_gg_ .___SMask_1f8n3_gg_,.___SSingleDateInput_1f8n3_gg_ .___SValue_1f8n3_gg_{opacity:0}.___SSingleDateInput_1f8n3_gg_:focus-within .___SHumanizedDate_1f8n3_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_1f8n3_gg_:focus-within .___SMask_1f8n3_gg_,.___SSingleDateInput_1f8n3_gg_:focus-within .___SValue_1f8n3_gg_{opacity:1}.___SDateRange_1f8n3_gg_:focus-within .___SHumanizedDate_1f8n3_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_1f8n3_gg_:focus-within .___SMask_1f8n3_gg_,.___SDateRange_1f8n3_gg_:focus-within .___SValue_1f8n3_gg_{opacity:1}.___SInputMask_1f8n3_gg_.__noHumanizedDate_1f8n3_gg_ .___SMask_1f8n3_gg_,.___SInputMask_1f8n3_gg_.__noHumanizedDate_1f8n3_gg_ .___SValue_1f8n3_gg_{opacity:1}.___SDateRange_1f8n3_gg_ .___SInputMask_1f8n3_gg_:focus-within .___SMask_1f8n3_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_1f8n3_gg_:focus-within .___SRangeSep_1f8n3_gg_,.___SRangeSep_1f8n3_gg_.__fulfilled_1f8n3_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SRangeComparatorHeader_1f8n3_gg_{border-bottom:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SRangeCalendar_1f8n3_gg_,.___SRangeComparatorHeader_1f8n3_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___SFooter_1f8n3_gg_{border-top:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SFooter_1f8n3_gg_,.___SPeriodsList_1f8n3_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___STooltip_1f8n3_gg_{padding:var(--intergalactic-spacing-3x, 12px)}.___SCompareToggle_1f8n3_gg_{white-space:nowrap}@media (prefers-reduced-motion){.___SInputMask_1f8n3_gg_{transition:none}}",
26
+ ".___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}}",
29
27
  /*__inner_css_end__*/
30
- "1f8n3_gg_"
28
+ "9s22y_gg_"
31
29
  ), /*__reshadow_css_end__*/
32
30
  {
33
- "__SHeader": "___SHeader_1f8n3_gg_",
34
- "__STitle": "___STitle_1f8n3_gg_",
35
- "__SToday": "___SToday_1f8n3_gg_",
36
- "__SPeriod": "___SPeriod_1f8n3_gg_",
37
- "__SButton": "___SButton_1f8n3_gg_",
38
- "__SInner": "___SInner_1f8n3_gg_",
39
- "__SInputMask": "___SInputMask_1f8n3_gg_",
40
- "_animationsDisabled": "__animationsDisabled_1f8n3_gg_",
41
- "__SValue": "___SValue_1f8n3_gg_",
42
- "__SIndicator": "___SIndicator_1f8n3_gg_",
43
- "__SRangeIndicator": "___SRangeIndicator_1f8n3_gg_",
44
- "_range_value": "_range_value_1f8n3_gg_",
45
- "_range_compare": "_range_compare_1f8n3_gg_",
46
- "_disabled": "__disabled_1f8n3_gg_",
47
- "__SHumanizedDate": "___SHumanizedDate_1f8n3_gg_",
48
- "__SMask": "___SMask_1f8n3_gg_",
49
- "__SSingleDateInput": "___SSingleDateInput_1f8n3_gg_",
50
- "__SDateRange": "___SDateRange_1f8n3_gg_",
51
- "_noHumanizedDate": "__noHumanizedDate_1f8n3_gg_",
52
- "__SRangeSep": "___SRangeSep_1f8n3_gg_",
53
- "_fulfilled": "__fulfilled_1f8n3_gg_",
54
- "__SRangeComparatorHeader": "___SRangeComparatorHeader_1f8n3_gg_",
55
- "__SRangeCalendar": "___SRangeCalendar_1f8n3_gg_",
56
- "__SFooter": "___SFooter_1f8n3_gg_",
57
- "__SPeriodsList": "___SPeriodsList_1f8n3_gg_",
58
- "__STooltip": "___STooltip_1f8n3_gg_",
59
- "__SCompareToggle": "___SCompareToggle_1f8n3_gg_",
60
- "__SPopper": "___SPopper_1f8n3_gg_"
31
+ "__SHeader": "___SHeader_9s22y_gg_",
32
+ "__STitle": "___STitle_9s22y_gg_",
33
+ "__SToday": "___SToday_9s22y_gg_",
34
+ "__SPeriod": "___SPeriod_9s22y_gg_",
35
+ "__SButton": "___SButton_9s22y_gg_",
36
+ "__SInner": "___SInner_9s22y_gg_",
37
+ "__SInputMask": "___SInputMask_9s22y_gg_",
38
+ "_animationsDisabled": "__animationsDisabled_9s22y_gg_",
39
+ "__SIndicator": "___SIndicator_9s22y_gg_",
40
+ "__SRangeIndicator": "___SRangeIndicator_9s22y_gg_",
41
+ "_range_value": "_range_value_9s22y_gg_",
42
+ "_range_compare": "_range_compare_9s22y_gg_",
43
+ "_disabled": "__disabled_9s22y_gg_",
44
+ "__SHumanizedDate": "___SHumanizedDate_9s22y_gg_",
45
+ "__SMask": "___SMask_9s22y_gg_",
46
+ "__SSingleDateInput": "___SSingleDateInput_9s22y_gg_",
47
+ "__SValue": "___SValue_9s22y_gg_",
48
+ "__SDateRange": "___SDateRange_9s22y_gg_",
49
+ "_noHumanizedDate": "__noHumanizedDate_9s22y_gg_",
50
+ "__SRangeSep": "___SRangeSep_9s22y_gg_",
51
+ "_fulfilled": "__fulfilled_9s22y_gg_",
52
+ "__SRangeComparatorHeader": "___SRangeComparatorHeader_9s22y_gg_",
53
+ "__SRangeCalendar": "___SRangeCalendar_9s22y_gg_",
54
+ "__SFooter": "___SFooter_9s22y_gg_",
55
+ "__SPeriodsList": "___SPeriodsList_9s22y_gg_",
56
+ "__STooltip": "___STooltip_9s22y_gg_",
57
+ "__SCompareToggle": "___SCompareToggle_9s22y_gg_",
58
+ "__SPopper": "___SPopper_9s22y_gg_"
61
59
  })
62
60
  );
63
61
  var INTERACTION_TAGS = ["INPUT"];
@@ -77,45 +75,49 @@ var getLatestDate = function getLatestDate2() {
77
75
  var latestDate = allDates[0];
78
76
  return latestDate;
79
77
  };
80
- var DateRangeComparatorAbstract = /* @__PURE__ */ function(_Component) {
81
- _inherits(DateRangeComparatorAbstract2, _Component);
82
- var _super = _createSuper(DateRangeComparatorAbstract2);
78
+ var DateRangeComparatorAbstract = /* @__PURE__ */ (function(_Component) {
83
79
  function DateRangeComparatorAbstract2() {
84
80
  var _this;
85
81
  _classCallCheck(this, DateRangeComparatorAbstract2);
86
82
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
87
83
  args[_key2] = arguments[_key2];
88
84
  }
89
- _this = _super.call.apply(_super, [this].concat(args));
90
- _defineProperty(_assertThisInitialized(_this), "popperRef", /* @__PURE__ */ React.createRef());
91
- _defineProperty(_assertThisInitialized(_this), "unitRefs", {});
92
- _defineProperty(_assertThisInitialized(_this), "navigateView", function(direction) {
85
+ _this = _callSuper(this, DateRangeComparatorAbstract2, [].concat(args));
86
+ _defineProperty(_this, "prevButtonRef", /* @__PURE__ */ React.createRef());
87
+ _defineProperty(_this, "nextButtonRef", /* @__PURE__ */ React.createRef());
88
+ _defineProperty(_this, "popperRef", /* @__PURE__ */ React.createRef());
89
+ _defineProperty(_this, "resetButtonRef", /* @__PURE__ */ React.createRef());
90
+ _defineProperty(_this, "applyButtonRef", /* @__PURE__ */ React.createRef());
91
+ _defineProperty(_this, "periodRefs", []);
92
+ _defineProperty(_this, "unitRefs", {});
93
+ _defineProperty(_this, "navigateView", function(direction) {
93
94
  var displayedPeriod = _this.asProps.displayedPeriod;
94
95
  var action = direction >= 1 ? "add" : "subtract";
95
96
  var date = dayjs(displayedPeriod)[action](1, _this.navigateStep).toDate();
96
97
  _this.handlers.displayedPeriod(date);
97
98
  });
98
- _defineProperty(_assertThisInitialized(_this), "bindHandlerNavigateClick", function(direction) {
99
+ _defineProperty(_this, "bindHandlerNavigateClick", function(direction) {
99
100
  return function() {
100
101
  return _this.navigateView(direction);
101
102
  };
102
103
  });
103
- _defineProperty(_assertThisInitialized(_this), "handleApplyClick", function() {
104
+ _defineProperty(_this, "handleApplyClick", function() {
104
105
  var _this$asProps = _this.asProps, value = _this$asProps.value, preselectedValue = _this$asProps.preselectedValue, preselectedCompare = _this$asProps.preselectedCompare;
105
106
  return _this.handleApply(preselectedValue !== null && preselectedValue !== void 0 ? preselectedValue : value === null || value === void 0 ? void 0 : value.value, preselectedCompare !== null && preselectedCompare !== void 0 ? preselectedCompare : value === null || value === void 0 ? void 0 : value.compare);
106
107
  });
107
- _defineProperty(_assertThisInitialized(_this), "handleApply", function(value, compare) {
108
+ _defineProperty(_this, "handleApply", function(value, compare) {
108
109
  _this.handlers.value({
109
110
  value,
110
111
  compare
111
112
  });
112
113
  _this.handlers.visible(false);
113
114
  });
114
- _defineProperty(_assertThisInitialized(_this), "handleKeydownDown", function(place) {
115
+ _defineProperty(_this, "handleKeydownDown", function(place) {
115
116
  return function(e) {
116
117
  var _this$asProps2 = _this.asProps, displayedPeriod = _this$asProps2.displayedPeriod, preselectedValue = _this$asProps2.preselectedValue, visible = _this$asProps2.visible, focusedRange = _this$asProps2.focusedRange;
117
- var key = e.key;
118
+ var key = e.key, target = e.target;
118
119
  var highlighted = focusedRange === "compare" ? _this.asProps.compareHighlighted : _this.asProps.highlighted;
120
+ if ([" ", "Enter"].includes(key) && [_this.prevButtonRef.current, _this.nextButtonRef.current].includes(target)) return;
119
121
  if (place === "trigger" && INTERACTION_KEYS.includes(key)) {
120
122
  e.preventDefault();
121
123
  e.stopPropagation();
@@ -147,7 +149,13 @@ var DateRangeComparatorAbstract = /* @__PURE__ */ function(_Component) {
147
149
  }
148
150
  return displayedPeriod;
149
151
  };
150
- if (place === "popper" && e.key === " " && highlighted.length) {
152
+ var isPeriodTarget = _this.periodRefs.find(function(el) {
153
+ return el === target;
154
+ });
155
+ var isResetButtonTarget = target === _this.resetButtonRef.current;
156
+ var isApplyButtonTarget = target === _this.applyButtonRef.current;
157
+ var areTargetedControls = isPeriodTarget || isResetButtonTarget || isApplyButtonTarget;
158
+ if (place === "popper" && e.key === " " && highlighted.length && !areTargetedControls) {
151
159
  var highlightedDate = highlighted[1] || highlighted[0];
152
160
  if (!_this.isDisabled(highlightedDate)) {
153
161
  _this.handleChange(highlightedDate);
@@ -189,17 +197,17 @@ var DateRangeComparatorAbstract = /* @__PURE__ */ function(_Component) {
189
197
  var _this$unitRefs$format;
190
198
  var formatter = _this.keyStep === "month" ? formatMMYY : formatDDMMYY;
191
199
  var formattedDate = formatter(changedDate, _this.asProps.locale);
192
- (_this$unitRefs$format = _this.unitRefs[formattedDate]) === null || _this$unitRefs$format === void 0 ? void 0 : _this$unitRefs$format.focus();
200
+ (_this$unitRefs$format = _this.unitRefs[formattedDate]) === null || _this$unitRefs$format === void 0 || _this$unitRefs$format.focus();
193
201
  }
194
202
  }
195
203
  };
196
204
  });
197
- _defineProperty(_assertThisInitialized(_this), "triggerFormattingProps", {
205
+ _defineProperty(_this, "triggerFormattingProps", {
198
206
  day: "numeric",
199
207
  month: "short",
200
208
  year: "numeric"
201
209
  });
202
- _defineProperty(_assertThisInitialized(_this), "handleChange", function(date) {
210
+ _defineProperty(_this, "handleChange", function(date) {
203
211
  var _value, _value2, _value3;
204
212
  var _this$asProps3 = _this.asProps, focusedRange = _this$asProps3.focusedRange, preselectedCompare = _this$asProps3.preselectedCompare, preselectedValue = _this$asProps3.preselectedValue;
205
213
  var highlighted = [];
@@ -229,7 +237,8 @@ var DateRangeComparatorAbstract = /* @__PURE__ */ function(_Component) {
229
237
  });
230
238
  return _this;
231
239
  }
232
- _createClass(DateRangeComparatorAbstract2, [{
240
+ _inherits(DateRangeComparatorAbstract2, _Component);
241
+ return _createClass(DateRangeComparatorAbstract2, [{
233
242
  key: "getPeriodProps",
234
243
  value: function getPeriodProps() {
235
244
  var _this$asProps$value, _this2 = this;
@@ -242,17 +251,23 @@ var DateRangeComparatorAbstract = /* @__PURE__ */ function(_Component) {
242
251
  return {
243
252
  periods,
244
253
  value,
245
- onChange: function onChange(value2) {
254
+ "onChange": function onChange(value2) {
246
255
  if (focusedRange === "compare") {
247
256
  _this2.handlers.preselectedCompare(value2);
248
257
  } else {
249
258
  _this2.handlers.preselectedValue(value2);
250
259
  }
251
260
  },
252
- onHighlightedChange: focusedRange === "compare" ? onCompareHighlightedChange : onHighlightedChange,
261
+ "onHighlightedChange": focusedRange === "compare" ? onCompareHighlightedChange : onHighlightedChange,
253
262
  onDisplayedPeriodChange,
254
- role: "listbox",
255
- "aria-label": getI18nText("periods")
263
+ "role": "listbox",
264
+ "aria-label": getI18nText("periods"),
265
+ "periodRef": function periodRef(index) {
266
+ return function(element) {
267
+ if (!element) return;
268
+ _this2.periodRefs[index] = element;
269
+ };
270
+ }
256
271
  };
257
272
  }
258
273
  }, {
@@ -262,7 +277,8 @@ var DateRangeComparatorAbstract = /* @__PURE__ */ function(_Component) {
262
277
  var navigateStep = this.navigateStep;
263
278
  return {
264
279
  getI18nText,
265
- onClick: this.bindHandlerNavigateClick(-1),
280
+ "ref": this.prevButtonRef,
281
+ "onClick": this.bindHandlerNavigateClick(-1),
266
282
  "aria-label": navigateStep === "month" ? getI18nText("prevMonth") : getI18nText("prevYear")
267
283
  };
268
284
  }
@@ -273,7 +289,8 @@ var DateRangeComparatorAbstract = /* @__PURE__ */ function(_Component) {
273
289
  var navigateStep = this.navigateStep;
274
290
  return {
275
291
  getI18nText,
276
- onClick: this.bindHandlerNavigateClick(1),
292
+ "ref": this.nextButtonRef,
293
+ "onClick": this.bindHandlerNavigateClick(1),
277
294
  "aria-label": navigateStep === "month" ? getI18nText("nextMonth") : getI18nText("nextYear")
278
295
  };
279
296
  }
@@ -292,8 +309,8 @@ var DateRangeComparatorAbstract = /* @__PURE__ */ function(_Component) {
292
309
  _this3.handlers.compareToggle(void 0);
293
310
  _this3.handlers.focusedRange("value");
294
311
  } else {
295
- var _this3$asProps$value, _this3$asProps$value$;
296
- _this3.handlers.compareToggle(!!((_this3$asProps$value = _this3.asProps.value) !== null && _this3$asProps$value !== void 0 && (_this3$asProps$value$ = _this3$asProps$value.compare) !== null && _this3$asProps$value$ !== void 0 && _this3$asProps$value$.length));
312
+ var _this3$asProps$value;
313
+ _this3.handlers.compareToggle(!!((_this3$asProps$value = _this3.asProps.value) !== null && _this3$asProps$value !== void 0 && (_this3$asProps$value = _this3$asProps$value.compare) !== null && _this3$asProps$value !== void 0 && _this3$asProps$value.length));
297
314
  }
298
315
  var _this3$asProps = _this3.asProps, value = _this3$asProps.value, displayedPeriod = _this3$asProps.displayedPeriod;
299
316
  var newDisplayedPeriod = value ? getLatestDate(value.value, value.compare) : void 0;
@@ -315,7 +332,7 @@ var DateRangeComparatorAbstract = /* @__PURE__ */ function(_Component) {
315
332
  value: [null, function(value) {
316
333
  var dates = [value === null || value === void 0 ? void 0 : value.value, value === null || value === void 0 ? void 0 : value.compare].flat(2).filter(function(date) {
317
334
  var _date$isValid;
318
- return date === null || date === void 0 ? void 0 : (_date$isValid = date.isValid) === null || _date$isValid === void 0 ? void 0 : _date$isValid.call(date);
335
+ return date === null || date === void 0 || (_date$isValid = date.isValid) === null || _date$isValid === void 0 ? void 0 : _date$isValid.call(date);
319
336
  });
320
337
  if (dates.length > 0) _this3.handlers.displayedPeriod(getLatestDate(value));
321
338
  }]
@@ -327,7 +344,8 @@ var DateRangeComparatorAbstract = /* @__PURE__ */ function(_Component) {
327
344
  var getI18nText = this.asProps.getI18nText;
328
345
  return {
329
346
  getI18nText,
330
- onClick: this.handleApplyClick
347
+ onClick: this.handleApplyClick,
348
+ ref: this.applyButtonRef
331
349
  };
332
350
  }
333
351
  }, {
@@ -339,7 +357,8 @@ var DateRangeComparatorAbstract = /* @__PURE__ */ function(_Component) {
339
357
  getI18nText,
340
358
  onClick: function onClick() {
341
359
  return _this4.handleApply(null, null);
342
- }
360
+ },
361
+ ref: this.resetButtonRef
343
362
  };
344
363
  }
345
364
  }, {
@@ -369,7 +388,7 @@ var DateRangeComparatorAbstract = /* @__PURE__ */ function(_Component) {
369
388
  }
370
389
  }, {
371
390
  key: "getTitleProps",
372
- value: function getTitleProps(props, index) {
391
+ value: function getTitleProps(_props, index) {
373
392
  var _this$asProps5 = this.asProps, locale = _this$asProps5.locale, displayedPeriod = _this$asProps5.displayedPeriod;
374
393
  return {
375
394
  children: new Intl.DateTimeFormat(locale, {
@@ -380,9 +399,9 @@ var DateRangeComparatorAbstract = /* @__PURE__ */ function(_Component) {
380
399
  }
381
400
  }, {
382
401
  key: "getTriggerProps",
383
- value: function getTriggerProps(_ref10) {
402
+ value: function getTriggerProps(_ref0) {
384
403
  var _this$asProps$value3, _this$asProps$value4, _this5 = this;
385
- var _ref10$placeholder = _ref10.placeholder, placeholder = _ref10$placeholder === void 0 ? "Select date ranges" : _ref10$placeholder, _ref10$separator = _ref10.separator, separator = _ref10$separator === void 0 ? "vs." : _ref10$separator;
404
+ var _ref0$placeholder = _ref0.placeholder, placeholder = _ref0$placeholder === void 0 ? "Select date ranges" : _ref0$placeholder, _ref0$separator = _ref0.separator, separator = _ref0$separator === void 0 ? "vs." : _ref0$separator;
386
405
  var _this$asProps6 = this.asProps, locale = _this$asProps6.locale, visible = _this$asProps6.visible;
387
406
  var value = (_this$asProps$value3 = this.asProps.value) === null || _this$asProps$value3 === void 0 ? void 0 : _this$asProps$value3.value;
388
407
  var compare = (_this$asProps$value4 = this.asProps.value) === null || _this$asProps$value4 === void 0 ? void 0 : _this$asProps$value4.compare;
@@ -449,7 +468,7 @@ var DateRangeComparatorAbstract = /* @__PURE__ */ function(_Component) {
449
468
  return {
450
469
  popoverVisible: visible,
451
470
  focused: focusedRange === "compare" ? true : void 0,
452
- disabled: !(compareToggle !== null && compareToggle !== void 0 ? compareToggle : value === null || value === void 0 ? void 0 : (_value$compare = value.compare) === null || _value$compare === void 0 ? void 0 : _value$compare.length),
471
+ disabled: !(compareToggle !== null && compareToggle !== void 0 ? compareToggle : value === null || value === void 0 || (_value$compare = value.compare) === null || _value$compare === void 0 ? void 0 : _value$compare.length),
453
472
  value: preselectedCompare !== null && preselectedCompare !== void 0 ? preselectedCompare : value === null || value === void 0 ? void 0 : value.compare,
454
473
  onChange: function onChange(value2) {
455
474
  return _this7.handlers.preselectedCompare(value2);
@@ -470,9 +489,7 @@ var DateRangeComparatorAbstract = /* @__PURE__ */ function(_Component) {
470
489
  key: "getCompareToggleProps",
471
490
  value: function getCompareToggleProps() {
472
491
  var _this8 = this;
473
- var _this$asProps9 = this.asProps, getI18nText = _this$asProps9.getI18nText;
474
- _this$asProps9.value;
475
- var compareToggle = _this$asProps9.compareToggle;
492
+ var _this$asProps9 = this.asProps, getI18nText = _this$asProps9.getI18nText, compareToggle = _this$asProps9.compareToggle;
476
493
  return {
477
494
  getI18nText,
478
495
  checked: compareToggle,
@@ -491,7 +508,7 @@ var DateRangeComparatorAbstract = /* @__PURE__ */ function(_Component) {
491
508
  }, {
492
509
  key: "getCalendarProps",
493
510
  value: function getCalendarProps(_props, index) {
494
- var _this$asProps10 = this.asProps, locale = _this$asProps10.locale, displayedPeriod = _this$asProps10.displayedPeriod, disabled = _this$asProps10.disabled, value = _this$asProps10.value, onCompareHighlightedChange = _this$asProps10.onCompareHighlightedChange, highlighted = _this$asProps10.highlighted, compareHighlighted = _this$asProps10.compareHighlighted, onHighlightedChange = _this$asProps10.onHighlightedChange, preselectedCompare = _this$asProps10.preselectedCompare, preselectedValue = _this$asProps10.preselectedValue, focusedRange = _this$asProps10.focusedRange, getI18nText = _this$asProps10.getI18nText;
511
+ var _this$asProps0 = this.asProps, locale = _this$asProps0.locale, displayedPeriod = _this$asProps0.displayedPeriod, disabled = _this$asProps0.disabled, value = _this$asProps0.value, onCompareHighlightedChange = _this$asProps0.onCompareHighlightedChange, highlighted = _this$asProps0.highlighted, compareHighlighted = _this$asProps0.compareHighlighted, onHighlightedChange = _this$asProps0.onHighlightedChange, preselectedCompare = _this$asProps0.preselectedCompare, preselectedValue = _this$asProps0.preselectedValue, focusedRange = _this$asProps0.focusedRange, getI18nText = _this$asProps0.getI18nText;
495
512
  return {
496
513
  locale,
497
514
  displayedPeriod: dayjs(displayedPeriod).add(index, this.navigateStep).startOf(this.navigateStep).toDate(),
@@ -523,16 +540,16 @@ var DateRangeComparatorAbstract = /* @__PURE__ */ function(_Component) {
523
540
  key: "render",
524
541
  value: function render() {
525
542
  var _ref = this.asProps, _ref4;
526
- var _this$asProps11 = this.asProps, Children = _this$asProps11.Children, styles = _this$asProps11.styles, providedAriaLabel = _this$asProps11["aria-label"];
527
- return /* @__PURE__ */ React.createElement(React.Fragment, null, (_ref4 = sstyled$1(styles), /* @__PURE__ */ React.createElement(Dropdown, assignProps({
543
+ var _this$asProps1 = this.asProps, Children = _this$asProps1.Children, styles = _this$asProps1.styles, providedAriaLabel = _this$asProps1["aria-label"];
544
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, (_ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(Dropdown, assignProps({
528
545
  "use:aria-label": providedAriaLabel,
529
546
  "__excludeProps": ["onChange", "value"]
530
547
  }, _ref), /* @__PURE__ */ React.createElement(Children, _ref4.cn("Children", {})))));
531
548
  }
532
549
  }], [{
533
550
  key: "defaultProps",
534
- value: function defaultProps(_ref11) {
535
- var primaryRange = _ref11.primaryRange, defaultPrimaryRange = _ref11.defaultPrimaryRange, secondaryRange = _ref11.secondaryRange, defaultSecondaryRange = _ref11.defaultSecondaryRange;
551
+ value: function defaultProps(_ref1) {
552
+ var primaryRange = _ref1.primaryRange, defaultPrimaryRange = _ref1.defaultPrimaryRange, secondaryRange = _ref1.secondaryRange, defaultSecondaryRange = _ref1.defaultSecondaryRange;
536
553
  return {
537
554
  i18n: localizedMessages,
538
555
  locale: "en",
@@ -550,8 +567,7 @@ var DateRangeComparatorAbstract = /* @__PURE__ */ function(_Component) {
550
567
  };
551
568
  }
552
569
  }]);
553
- return DateRangeComparatorAbstract2;
554
- }(Component);
570
+ })(Component);
555
571
  _defineProperty(DateRangeComparatorAbstract, "displayName", "DateRangeComparator");
556
572
  _defineProperty(DateRangeComparatorAbstract, "style", style);
557
573
  _defineProperty(DateRangeComparatorAbstract, "enhance", [i18nEnhance(localizedMessages)]);
@@ -578,7 +594,7 @@ function Reset(props) {
578
594
  function Trigger(props) {
579
595
  var _ref5;
580
596
  var STrigger = props.Root, styles = props.styles;
581
- return _ref5 = sstyled$1(styles), /* @__PURE__ */ React.createElement(STrigger, _ref5.cn("STrigger", {
597
+ return _ref5 = sstyled(styles), /* @__PURE__ */ React.createElement(STrigger, _ref5.cn("STrigger", {
582
598
  "render": Dropdown.Trigger,
583
599
  "tag": LinkTrigger
584
600
  }));
@@ -586,7 +602,7 @@ function Trigger(props) {
586
602
  function CompareToggle(props) {
587
603
  var _ref6;
588
604
  var SCompareToggle = props.Root, styles = props.styles, getI18nText = props.getI18nText;
589
- return _ref6 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SCompareToggle, _ref6.cn("SCompareToggle", {
605
+ return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement(SCompareToggle, _ref6.cn("SCompareToggle", {
590
606
  "render": Checkbox,
591
607
  "label": getI18nText("compare")
592
608
  }));
@@ -594,7 +610,7 @@ function CompareToggle(props) {
594
610
  function Header(props) {
595
611
  var _ref7;
596
612
  var SRangeComparatorHeader = props.Root, Children = props.Children, styles = props.styles;
597
- return _ref7 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SRangeComparatorHeader, _ref7.cn("SRangeComparatorHeader", {
613
+ return _ref7 = sstyled(styles), /* @__PURE__ */ React.createElement(SRangeComparatorHeader, _ref7.cn("SRangeComparatorHeader", {
598
614
  "render": Flex,
599
615
  "gap": 4,
600
616
  "alignItems": "center"
@@ -603,7 +619,7 @@ function Header(props) {
603
619
  function Body(props) {
604
620
  var _ref8;
605
621
  var SBody = props.Root, Children = props.Children, styles = props.styles;
606
- return _ref8 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SBody, _ref8.cn("SBody", {
622
+ return _ref8 = sstyled(styles), /* @__PURE__ */ React.createElement(SBody, _ref8.cn("SBody", {
607
623
  "render": Flex,
608
624
  "gap": 4
609
625
  }), /* @__PURE__ */ React.createElement(Children, _ref8.cn("Children", {})));
@@ -611,7 +627,7 @@ function Body(props) {
611
627
  function Footer(props) {
612
628
  var _ref9;
613
629
  var SFooter = props.Root, styles = props.styles, Children = props.Children;
614
- return _ref9 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SFooter, _ref9.cn("SFooter", {
630
+ return _ref9 = sstyled(styles), /* @__PURE__ */ React.createElement(SFooter, _ref9.cn("SFooter", {
615
631
  "render": Flex,
616
632
  "gap": 2
617
633
  }), /* @__PURE__ */ React.createElement(Children, _ref9.cn("Children", {})));