@eightshift/ui-components 1.0.6 → 1.1.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 (121) hide show
  1. package/README.md +9 -0
  2. package/dist/{Button-eebLs4cp.js → Button-CbFrFO04.js} +5 -5
  3. package/dist/{Checkbox-BN0TEda-.js → Checkbox-Cv3pZDHg.js} +12 -16
  4. package/dist/{ColorSwatch-BrowHhTG.js → ColorSwatch-CNQmCQV8.js} +6 -7
  5. package/dist/{FieldError-ILxgMZy5.js → FieldError-J1-YPbi6.js} +2 -2
  6. package/dist/{FocusScope-B9b0VMib.js → FocusScope-Bw-IatMO.js} +79 -153
  7. package/dist/{GridList-CzpWxJsS.js → GridList-CEzzyr-l.js} +62 -90
  8. package/dist/{Group-Dkdm2-E7.js → Group-D3Qa6PrV.js} +3 -3
  9. package/dist/{Input-BJA4rmIo.js → Input-CX_rocyZ.js} +8 -8
  10. package/dist/{Label-9x5iLJ-Y.js → Label-Bg5O81Wb.js} +1 -1
  11. package/dist/{ListBox-D3Vr4vvC.js → ListBox-CCWXTj0t.js} +391 -598
  12. package/dist/{LiveAnnouncer-IsokfWQ5.js → LiveAnnouncer-D8h-3GrG.js} +12 -22
  13. package/dist/{NumberFormatter-LzoKy975.js → NumberFormatter-U_Gx0UDq.js} +26 -44
  14. package/dist/{Select-49a62830.esm-CKPmlkza.js → Select-49a62830.esm-BnlXlUnT.js} +92 -166
  15. package/dist/{SelectionManager-sedvcM-1.js → SelectionManager-XOAt-Ekx.js} +219 -401
  16. package/dist/{Separator-B6rnDabE.js → Separator-DZeg0KOr.js} +41 -72
  17. package/dist/{Slider-C5U5N7uM.js → Slider-fULMI0gI.js} +51 -82
  18. package/dist/{Text-Cyxp9ewv.js → Text-WqetJduR.js} +1 -1
  19. package/dist/{VisuallyHidden-BPJVSUyp.js → VisuallyHidden-Di1zXprL.js} +8 -11
  20. package/dist/{ariaHideOutside-ByKBPHmX.js → ariaHideOutside-Zn64-frS.js} +20 -36
  21. package/dist/assets/style.css +1 -1
  22. package/dist/assets/wp-font-enhancements.css +1 -1
  23. package/dist/assets/wp-ui-enhancements.css +1 -1
  24. package/dist/{button-idVI4jmd.js → button-CD8Q1eok.js} +17 -29
  25. package/dist/components/animated-visibility/animated-visibility.js +125 -113
  26. package/dist/components/base-control/base-control.js +3 -9
  27. package/dist/components/breakpoint-preview/breakpoint-preview.js +51 -108
  28. package/dist/components/button/button.js +6 -6
  29. package/dist/components/checkbox/checkbox.js +2 -2
  30. package/dist/components/color-pickers/color-picker.js +2 -2
  31. package/dist/components/color-pickers/color-swatch.js +5 -9
  32. package/dist/components/color-pickers/gradient-editor.js +15 -29
  33. package/dist/components/color-pickers/solid-color-picker.js +81 -128
  34. package/dist/components/component-toggle/component-toggle.js +4 -4
  35. package/dist/components/container-panel/container-panel.js +4 -11
  36. package/dist/components/draggable-list/draggable-list-item.js +4 -4
  37. package/dist/components/draggable-list/draggable-list.js +5 -5
  38. package/dist/components/expandable/expandable.js +45 -57
  39. package/dist/components/index.js +3 -3
  40. package/dist/components/input-field/input-field.js +11 -26
  41. package/dist/components/layout/hstack.js +2 -12
  42. package/dist/components/layout/vstack.js +2 -12
  43. package/dist/components/link-input/link-input.js +36 -53
  44. package/dist/components/list-box/list-box.js +4 -4
  45. package/dist/components/matrix-align/matrix-align.js +6 -10
  46. package/dist/components/menu/menu.js +101 -170
  47. package/dist/components/notice/notice.js +1 -1
  48. package/dist/components/number-picker/number-picker.js +15 -15
  49. package/dist/components/option-select/option-select.js +48 -64
  50. package/dist/components/options-panel/options-panel.js +3 -3
  51. package/dist/components/placeholders/file-placeholder.js +2 -2
  52. package/dist/components/placeholders/image-placeholder.js +1 -1
  53. package/dist/components/placeholders/media-placeholder.js +1 -1
  54. package/dist/components/popover/popover.js +4 -4
  55. package/dist/components/radio/radio.js +25 -38
  56. package/dist/components/repeater/repeater-item.js +6 -17
  57. package/dist/components/repeater/repeater.js +6 -7
  58. package/dist/components/responsive/responsive-legacy.js +6 -12
  59. package/dist/components/responsive/responsive.js +21 -48
  60. package/dist/components/responsive-preview/responsive-preview.js +1 -1
  61. package/dist/components/rich-label/rich-label.js +2 -8
  62. package/dist/components/select/async-multi-select.js +3 -3
  63. package/dist/components/select/async-single-select.js +2 -2
  64. package/dist/components/select/custom-select-default-components.js +2 -2
  65. package/dist/components/select/multi-select-components.js +2 -2
  66. package/dist/components/select/multi-select.js +3 -3
  67. package/dist/components/select/react-select-component-wrappers.js +9 -9
  68. package/dist/components/select/single-select.js +2 -2
  69. package/dist/components/select/styles.js +3 -10
  70. package/dist/components/slider/column-config-slider.js +4 -4
  71. package/dist/components/slider/slider.js +5 -8
  72. package/dist/components/slider/utils.js +2 -6
  73. package/dist/components/spacer/spacer.js +2 -7
  74. package/dist/components/tabs/tabs.js +29 -50
  75. package/dist/components/toggle/switch.js +8 -8
  76. package/dist/components/toggle/toggle.js +1 -1
  77. package/dist/components/toggle-button/toggle-button.js +8 -22
  78. package/dist/components/tooltip/tooltip.js +4 -4
  79. package/dist/{context-BAcFg5GO.js → context-4oSz1ItD.js} +10 -16
  80. package/dist/{default-i18n-Bk1GxDHz.js → default-i18n-BqwLkgZv.js} +21 -22
  81. package/dist/{filterDOMProps-DG2RfOUr.js → filterDOMProps-EDDcM64A.js} +1 -3
  82. package/dist/{focusSafely-B0hyd-S4.js → focusSafely-BS4dllCW.js} +85 -143
  83. package/dist/icons/generic-color-swatch.js +105 -13
  84. package/dist/icons/icons.js +31010 -3447
  85. package/dist/icons/jsx-svg.js +591 -953
  86. package/dist/{index-BDk0TPWz.js → index-CAPcSs9K.js} +1504 -2087
  87. package/dist/{index-a301f526.esm-BzTuHLdr.js → index-a301f526.esm-ByOfDxiG.js} +111 -183
  88. package/dist/index.js +3 -3
  89. package/dist/{intlStrings-Ctkp0HDc.js → intlStrings-Dxaeitoh.js} +35 -60
  90. package/dist/{isScrollable-PcyglExV.js → isScrollable-Dh9D9IOd.js} +1 -2
  91. package/dist/lite-DVmmD_-j.js +7 -0
  92. package/dist/{multi-select-components-nORKdJ-2.js → multi-select-components-7vKCF8dG.js} +3 -3
  93. package/dist/{number-rWqELA8W.js → number-CHmNj-oR.js} +3 -6
  94. package/dist/{popover-o2Q28Ljn.js → popover-Dk2o4S7K.js} +70 -112
  95. package/dist/{react-select-async.esm-CLj9uZTq.js → react-select-async.esm-5zW9Dv9E.js} +7 -11
  96. package/dist/{react-select.esm-3tyTZmrx.js → react-select.esm-Bi6uzjbT.js} +3 -3
  97. package/dist/{textSelection-BRZdHY-4.js → textSelection-exP_9srp.js} +5 -9
  98. package/dist/{tooltip-T6H9uF-Z.js → tooltip-BRQ4tvZL.js} +64 -111
  99. package/dist/{useButton-D-xACzEY.js → useButton-DbjDV_33.js} +19 -22
  100. package/dist/{useEvent-XlYPKgwX.js → useEvent-zvxfEnmK.js} +2 -3
  101. package/dist/{useFocusRing-CRx_hYC4.js → useFocusRing-SPRI0-SN.js} +1 -1
  102. package/dist/{useFocusable-CHfpEdlE.js → useFocusable-CLmhO94g.js} +5 -8
  103. package/dist/{useFormReset-aHn6-wRk.js → useFormReset-BVWgcyGO.js} +2 -3
  104. package/dist/{useFormValidationState-CdYmOaXI.js → useFormValidationState-CthG9Fbc.js} +20 -38
  105. package/dist/{useHasTabbableChild-domoFB7A.js → useHasTabbableChild--gkWUICh.js} +2 -2
  106. package/dist/{useLabel-DVhXVhtH.js → useLabel-g836T8kL.js} +3 -4
  107. package/dist/{useLabels-C7E5SkOi.js → useLabels-CfOtyOe2.js} +3 -5
  108. package/dist/{useListData-BelKu4kx.js → useListData-BpYQj7kK.js} +18 -32
  109. package/dist/{useListState-BRsq7O1C.js → useListState-DnWZa__1.js} +6 -12
  110. package/dist/{useLocalizedStringFormatter-WsEL47qR.js → useLocalizedStringFormatter-BQCMno9k.js} +12 -21
  111. package/dist/{useNumberFieldState-ZH2Qyyxh.js → useNumberFieldState-BegO5X6F.js} +75 -132
  112. package/dist/{useNumberFormatter-mhdYLxWQ.js → useNumberFormatter-DhOGEsEK.js} +2 -2
  113. package/dist/{usePress-B42RawCH.js → usePress-CScNeV3V.js} +92 -175
  114. package/dist/{useToggle-CExfZM8x.js → useToggle-6LnpaJ7-.js} +6 -7
  115. package/dist/{useToggleState-DghG5ImG.js → useToggleState-Cymkpac8.js} +3 -5
  116. package/dist/utilities/array-helpers.js +1 -1
  117. package/dist/utilities/index.js +1 -1
  118. package/dist/utilities/text-helpers.js +20 -20
  119. package/dist/{utils-DIBzm1e4.js → utils-Dc35LwuT.js} +49 -90
  120. package/package.json +96 -90
  121. package/dist/lite-pbIeT7tm.js +0 -8
@@ -1,8 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import React__default from "react";
3
3
  import { icons } from "../../icons/icons.js";
4
- import { c as clsx } from "../../lite-pbIeT7tm.js";
5
- import { c as components } from "../../index-a301f526.esm-BzTuHLdr.js";
4
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
5
+ import { c as components } from "../../index-a301f526.esm-ByOfDxiG.js";
6
6
  /**
7
7
  * Default dropdown indicator for CustomSelect.
8
8
  *
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
- import { g, a, b } from "../../multi-select-components-nORKdJ-2.js";
3
- import "../../lite-pbIeT7tm.js";
2
+ import { g, a, b } from "../../multi-select-components-7vKCF8dG.js";
3
+ import "../../lite-DVmmD_-j.js";
4
4
  export {
5
5
  g as getDragEndHandler,
6
6
  a as getMultiValue,
@@ -1,12 +1,12 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { S as StateManagedSelect$1 } from "../../react-select.esm-3tyTZmrx.js";
3
- import { D as DndContext, g as getDragEndHandler, S as SortableContext, a as getMultiValue, b as getMultiValueRemove } from "../../multi-select-components-nORKdJ-2.js";
2
+ import { S as StateManagedSelect$1 } from "../../react-select.esm-Bi6uzjbT.js";
3
+ import { D as DndContext, g as getDragEndHandler, S as SortableContext, a as getMultiValue, b as getMultiValueRemove } from "../../multi-select-components-7vKCF8dG.js";
4
4
  import { r as restrictToParentElement } from "../../modifiers.esm-BuJQPI1X.js";
5
5
  import { CustomSelectDefaultMultiValueRemove, CustomSelectDefaultDropdownIndicator, CustomSelectDefaultClearIndicator } from "./custom-select-default-components.js";
6
6
  import { fixIds, getValue, customOnChange } from "./shared.js";
7
7
  import { BaseControl } from "../base-control/base-control.js";
8
8
  import { eightshiftSelectClasses } from "./styles.js";
9
- import { c as components } from "../../index-a301f526.esm-BzTuHLdr.js";
9
+ import { c as components } from "../../index-a301f526.esm-ByOfDxiG.js";
10
10
  /**
11
11
  * Multi-select menu with re-orderable items.
12
12
  *
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { c as components } from "../../index-a301f526.esm-BzTuHLdr.js";
2
+ import { c as components } from "../../index-a301f526.esm-ByOfDxiG.js";
3
3
  /**
4
4
  * Custom dropdown indicator for CustomSelect.
5
5
  *
@@ -8,7 +8,7 @@ import { c as components } from "../../index-a301f526.esm-BzTuHLdr.js";
8
8
  * @param {import('react-select').DropdownIndicatorProps} props - components.DropdownIndicator props.
9
9
  *
10
10
  * @preserve
11
- */
11
+ */
12
12
  const RSDropdownIndicator = (props) => /* @__PURE__ */ jsx(components.DropdownIndicator, { ...props });
13
13
  /**
14
14
  * Custom value display for CustomSelect.
@@ -18,7 +18,7 @@ const RSDropdownIndicator = (props) => /* @__PURE__ */ jsx(components.DropdownIn
18
18
  * @param {import('react-select').SingleValueProps} props - components.SingleValue props.
19
19
  *
20
20
  * @preserve
21
- */
21
+ */
22
22
  const RSSingleValue = (props) => /* @__PURE__ */ jsx(components.SingleValue, { ...props });
23
23
  /**
24
24
  * Custom value display for multi item select.
@@ -28,7 +28,7 @@ const RSSingleValue = (props) => /* @__PURE__ */ jsx(components.SingleValue, { .
28
28
  * @param {import('react-select').MultiValueProps} props - components.SingleValue props.
29
29
  *
30
30
  * @preserve
31
- */
31
+ */
32
32
  const RSMultiValue = (props) => /* @__PURE__ */ jsx(components.MultiValue, { ...props });
33
33
  /**
34
34
  * Custom option for CustomSelect.
@@ -38,7 +38,7 @@ const RSMultiValue = (props) => /* @__PURE__ */ jsx(components.MultiValue, { ...
38
38
  * @param {import('react-select').OptionProps} props - components.Option props.
39
39
  *
40
40
  * @preserve
41
- */
41
+ */
42
42
  const RSOption = (props) => /* @__PURE__ */ jsx(components.Option, { ...props });
43
43
  /**
44
44
  * Custom multiple value remove button for CustomSelect.
@@ -48,7 +48,7 @@ const RSOption = (props) => /* @__PURE__ */ jsx(components.Option, { ...props })
48
48
  * @param {import('react-select').MultiValueRemoveProps} props - components.MultiValueRemove props.
49
49
  *
50
50
  * @preserve
51
- */
51
+ */
52
52
  const RSMultiValueRemove = (props) => /* @__PURE__ */ jsx(components.MultiValueRemove, { ...props });
53
53
  /**
54
54
  * Custom multiple value display container for CustomSelect.
@@ -58,7 +58,7 @@ const RSMultiValueRemove = (props) => /* @__PURE__ */ jsx(components.MultiValueR
58
58
  * @param {import('react-select').MultiValueGenericProps} props - components.MultiValueContainer props.
59
59
  *
60
60
  * @preserve
61
- */
61
+ */
62
62
  const RSMultiValueContainer = (props) => /* @__PURE__ */ jsx(components.MultiValueContainer, { ...props });
63
63
  /**
64
64
  * Custom multiple value display for CustomSelect.
@@ -68,7 +68,7 @@ const RSMultiValueContainer = (props) => /* @__PURE__ */ jsx(components.MultiVal
68
68
  * @param {import('react-select').MultiValueGenericProps} props - components.MultiValueLabel props.
69
69
  *
70
70
  * @preserve
71
- */
71
+ */
72
72
  const RSMultiValueLabel = (props) => /* @__PURE__ */ jsx(components.MultiValueLabel, { ...props });
73
73
  /**
74
74
  * Default clear indicator for CustomSelect.
@@ -76,7 +76,7 @@ const RSMultiValueLabel = (props) => /* @__PURE__ */ jsx(components.MultiValueLa
76
76
  * @param {import('react-select').ClearIndicatorProps} props - components.ClearIndicator props.
77
77
  *
78
78
  * @preserve
79
- */
79
+ */
80
80
  const RSClearIndicator = (props) => /* @__PURE__ */ jsx(components.ClearIndicator, { ...props });
81
81
  export {
82
82
  RSClearIndicator,
@@ -1,10 +1,10 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { S as StateManagedSelect$1 } from "../../react-select.esm-3tyTZmrx.js";
2
+ import { S as StateManagedSelect$1 } from "../../react-select.esm-Bi6uzjbT.js";
3
3
  import { CustomSelectDefaultDropdownIndicator, CustomSelectDefaultClearIndicator } from "./custom-select-default-components.js";
4
4
  import { getValue, customOnChange } from "./shared.js";
5
5
  import { BaseControl } from "../base-control/base-control.js";
6
6
  import { eightshiftSelectClasses } from "./styles.js";
7
- import { c as components } from "../../index-a301f526.esm-BzTuHLdr.js";
7
+ import { c as components } from "../../index-a301f526.esm-ByOfDxiG.js";
8
8
  /**
9
9
  * Select menu.
10
10
  *
@@ -1,4 +1,4 @@
1
- import { c as clsx } from "../../lite-pbIeT7tm.js";
1
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
2
2
  const controlStyles = {
3
3
  base: "es-uic-border es-uic-rounded-md es-uic-bg-white es-uic-text-sm es-uic-transition es-uic-group es-uic-shadow-sm !es-uic-min-h-10",
4
4
  focus: "es-uic-ring es-uic-ring-teal-500 es-uic-ring-opacity-50",
@@ -28,10 +28,7 @@ const groupHeadingStyles = "es-uic-ml-3 es-uic-mt-2 es-uic-text-gray-500 es-uic-
28
28
  const groupStyles = "es-uic-border-b last:es-uic-border-b-0";
29
29
  const eightshiftSelectClasses = {
30
30
  clearIndicator: () => clearIndicatorStyles,
31
- control: ({ isFocused }) => clsx(
32
- isFocused ? controlStyles.focus : controlStyles.nonFocus,
33
- controlStyles.base
34
- ),
31
+ control: ({ isFocused }) => clsx(isFocused ? controlStyles.focus : controlStyles.nonFocus, controlStyles.base),
35
32
  dropdownIndicator: () => dropdownIndicatorStyles,
36
33
  group: () => groupStyles,
37
34
  groupHeading: () => groupHeadingStyles,
@@ -41,11 +38,7 @@ const eightshiftSelectClasses = {
41
38
  multiValueLabel: () => multiValueLabelStyles,
42
39
  multiValueRemove: () => multiValueRemoveStyles,
43
40
  noOptionsMessage: () => noOptionsMessageStyles,
44
- option: ({ isFocused, isSelected }) => clsx(
45
- isFocused && optionStyles.focus,
46
- isSelected && optionStyles.selected,
47
- optionStyles.base
48
- ),
41
+ option: ({ isFocused, isSelected }) => clsx(isFocused && optionStyles.focus, isSelected && optionStyles.selected, optionStyles.base),
49
42
  placeholder: () => placeholderStyles,
50
43
  singleValue: () => singleValueStyles,
51
44
  valueContainer: () => valueContainerStyles
@@ -1,11 +1,11 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { _ as __ } from "../../default-i18n-Bk1GxDHz.js";
3
- import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-9x5iLJ-Y.js";
4
- import { $ as $6f909507e6374d18$export$472062a354075cee, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, c as $6f909507e6374d18$export$a590f758a961cb5b } from "../../Slider-C5U5N7uM.js";
2
+ import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
3
+ import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-Bg5O81Wb.js";
4
+ import { $ as $6f909507e6374d18$export$472062a354075cee, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, c as $6f909507e6374d18$export$a590f758a961cb5b } from "../../Slider-fULMI0gI.js";
5
5
  import { BaseControl } from "../base-control/base-control.js";
6
6
  import { icons } from "../../icons/icons.js";
7
7
  import { getColumnConfigOutputText } from "./utils.js";
8
- import { c as clsx } from "../../lite-pbIeT7tm.js";
8
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
9
9
  /**
10
10
  * A two-thumb slider for selecting a range of columns.
11
11
  *
@@ -1,9 +1,9 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "../../utils-DIBzm1e4.js";
3
- import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5, a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "../../Label-9x5iLJ-Y.js";
4
- import { $ as $6f909507e6374d18$export$472062a354075cee, c as $6f909507e6374d18$export$a590f758a961cb5b, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, d as $6f909507e6374d18$export$1e7083018727fa60 } from "../../Slider-C5U5N7uM.js";
2
+ import { $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "../../utils-Dc35LwuT.js";
3
+ import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5, a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "../../Label-Bg5O81Wb.js";
4
+ import { $ as $6f909507e6374d18$export$472062a354075cee, c as $6f909507e6374d18$export$a590f758a961cb5b, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, d as $6f909507e6374d18$export$1e7083018727fa60 } from "../../Slider-fULMI0gI.js";
5
5
  import { BaseControl } from "../base-control/base-control.js";
6
- import { c as clsx } from "../../lite-pbIeT7tm.js";
6
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
7
7
  import { NumberPicker } from "../number-picker/number-picker.js";
8
8
  import { useState, useContext } from "react";
9
9
  import { generateMarkers } from "./utils.js";
@@ -128,10 +128,7 @@ const Slider = (props) => {
128
128
  ] }),
129
129
  labelAs: $01b77f81d0f07f68$export$b04be29aa201d4f5,
130
130
  className: labelClassName,
131
- controlContainerClassName: clsx(
132
- "es-uic-flex es-uic-items-center es-uic-gap-2.5 !es-uic-space-y-0",
133
- vertical && "es-uic-flex-col"
134
- ),
131
+ controlContainerClassName: clsx("es-uic-flex es-uic-items-center es-uic-gap-2.5 !es-uic-space-y-0", vertical && "es-uic-flex-col"),
135
132
  children: [
136
133
  before && /* @__PURE__ */ jsx("div", { className: "es-uic-flex es-uic-shrink-0 es-uic-items-center es-uic-gap-1", children: before }),
137
134
  /* @__PURE__ */ jsx(
@@ -1,4 +1,4 @@
1
- import { _ as __, s as sprintf, a as _n } from "../../default-i18n-Bk1GxDHz.js";
1
+ import { _ as __, s as sprintf, a as _n } from "../../default-i18n-BqwLkgZv.js";
2
2
  /**
3
3
  * Generates an array of markers based on the provided minimum and maximum values and step.
4
4
  * If the step is less than 10, only markers divisible by 5 and 10 are included.
@@ -76,11 +76,7 @@ const getColumnConfigOutputText = (columns, offset, width, showOuterAsGutter = f
76
76
  if (width === 1) {
77
77
  return sprintf(__("Col %d", "eightshift-ui-components"), offset);
78
78
  }
79
- return sprintf(
80
- _n("%s col from %s", "%s cols from %s", width, "eightshift-ui-components"),
81
- width,
82
- showOuterAsGutter ? offset - 1 : offset
83
- );
79
+ return sprintf(_n("%s col from %s", "%s cols from %s", width, "eightshift-ui-components"), width, showOuterAsGutter ? offset - 1 : offset);
84
80
  };
85
81
  export {
86
82
  generateMarkers,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { c as clsx } from "../../lite-pbIeT7tm.js";
2
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
3
3
  import { RichLabel } from "../rich-label/rich-label.js";
4
4
  /**
5
5
  * A simple spacer/divider component, with optional text or icon.
@@ -87,12 +87,7 @@ const Spacer = (props) => {
87
87
  if (border) {
88
88
  return /* @__PURE__ */ jsxs("div", { children: [
89
89
  size !== "px" && /* @__PURE__ */ jsx("div", { className: spaceClass }),
90
- /* @__PURE__ */ jsx(
91
- "div",
92
- {
93
- className: clsx("es-uic-bg-gray-300", vertical ? "es-uic-h-full es-uic-w-px" : "es-uic-h-px es-uic-w-full")
94
- }
95
- ),
90
+ /* @__PURE__ */ jsx("div", { className: clsx("es-uic-bg-gray-300", vertical ? "es-uic-h-full es-uic-w-px" : "es-uic-h-px es-uic-w-full") }),
96
91
  size !== "px" && /* @__PURE__ */ jsx("div", { className: spaceClass })
97
92
  ] });
98
93
  }
@@ -1,23 +1,22 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { f as $880e95eb8b93ba9a$export$ecf600387e221c37, c as $ae20dd8cbca75726$export$d6daf82dcd84e87c, g as $7135fc7d473fd974$export$7cd71aa5ddd6dc4e, h as $7135fc7d473fd974$export$8c25dea96356a8b6, i as $7135fc7d473fd974$export$813b5978dd974d8, j as $7135fc7d473fd974$export$e7c29ae2353b16ea } from "../../SelectionManager-sedvcM-1.js";
3
- import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, b as $64fa3d84918910a7$export$86427a43e3e48ebb, a as $64fa3d84918910a7$export$29f1550f4b0d4415, p as $64fa3d84918910a7$export$8dc98ba7eadeaa56, c as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, l as $df56164dff5785e2$export$4338b53315abf666 } from "../../utils-DIBzm1e4.js";
4
- import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-DG2RfOUr.js";
2
+ import { f as $880e95eb8b93ba9a$export$ecf600387e221c37, c as $ae20dd8cbca75726$export$d6daf82dcd84e87c, g as $7135fc7d473fd974$export$7cd71aa5ddd6dc4e, h as $7135fc7d473fd974$export$8c25dea96356a8b6, i as $7135fc7d473fd974$export$813b5978dd974d8, j as $7135fc7d473fd974$export$e7c29ae2353b16ea } from "../../SelectionManager-XOAt-Ekx.js";
3
+ import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, b as $64fa3d84918910a7$export$86427a43e3e48ebb, a as $64fa3d84918910a7$export$29f1550f4b0d4415, p as $64fa3d84918910a7$export$8dc98ba7eadeaa56, c as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, l as $df56164dff5785e2$export$4338b53315abf666 } from "../../utils-Dc35LwuT.js";
4
+ import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
5
5
  import React__default, { useMemo, useRef, useEffect, forwardRef, useContext, createContext, useId, cloneElement } from "react";
6
- import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "../../useListState-BRsq7O1C.js";
7
- import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-B0hyd-S4.js";
8
- import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-CRx_hYC4.js";
9
- import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../../useLabels-C7E5SkOi.js";
10
- import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-BAcFg5GO.js";
11
- import { a as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "../../usePress-B42RawCH.js";
12
- import { $ as $83013635b024ae3d$export$eac1895992b9f3d6 } from "../../useHasTabbableChild-domoFB7A.js";
13
- import { _ as __, s as sprintf } from "../../default-i18n-Bk1GxDHz.js";
14
- import { c as clsx } from "../../lite-pbIeT7tm.js";
6
+ import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "../../useListState-DnWZa__1.js";
7
+ import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-BS4dllCW.js";
8
+ import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-SPRI0-SN.js";
9
+ import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../../useLabels-CfOtyOe2.js";
10
+ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-4oSz1ItD.js";
11
+ import { a as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "../../usePress-CScNeV3V.js";
12
+ import { $ as $83013635b024ae3d$export$eac1895992b9f3d6 } from "../../useHasTabbableChild--gkWUICh.js";
13
+ import { _ as __, s as sprintf } from "../../default-i18n-BqwLkgZv.js";
14
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
15
15
  import { Notice } from "../notice/notice.js";
16
16
  import { RichLabel } from "../rich-label/rich-label.js";
17
17
  const $99b62ae3ff97ec45$export$c5f62239608282b6 = /* @__PURE__ */ new WeakMap();
18
18
  function $99b62ae3ff97ec45$export$567fc7097e064344(state, key, role) {
19
- if (typeof key === "string")
20
- key = key.replace(/\s+/g, "");
19
+ if (typeof key === "string") key = key.replace(/\s+/g, "");
21
20
  let baseId = $99b62ae3ff97ec45$export$c5f62239608282b6.get(state);
22
21
  return `${baseId}-${role}-${key}`;
23
22
  }
@@ -77,13 +76,11 @@ function $34bce698202e07cb$export$fae0121b5afe572d(props, state, ref) {
77
76
  }
78
77
  class $bfc6f2d60b8a4c40$export$15010ca3c1abe90b {
79
78
  getKeyLeftOf(key) {
80
- if (this.flipDirection)
81
- return this.getNextKey(key);
79
+ if (this.flipDirection) return this.getNextKey(key);
82
80
  return this.getPreviousKey(key);
83
81
  }
84
82
  getKeyRightOf(key) {
85
- if (this.flipDirection)
86
- return this.getPreviousKey(key);
83
+ if (this.flipDirection) return this.getPreviousKey(key);
87
84
  return this.getNextKey(key);
88
85
  }
89
86
  getKeyAbove(key) {
@@ -98,29 +95,25 @@ class $bfc6f2d60b8a4c40$export$15010ca3c1abe90b {
98
95
  }
99
96
  getFirstKey() {
100
97
  let key = this.collection.getFirstKey();
101
- if (key != null && this.isDisabled(key))
102
- key = this.getNextKey(key);
98
+ if (key != null && this.isDisabled(key)) key = this.getNextKey(key);
103
99
  return key;
104
100
  }
105
101
  getLastKey() {
106
102
  let key = this.collection.getLastKey();
107
- if (key != null && this.isDisabled(key))
108
- key = this.getPreviousKey(key);
103
+ if (key != null && this.isDisabled(key)) key = this.getPreviousKey(key);
109
104
  return key;
110
105
  }
111
106
  getNextKey(key) {
112
107
  do {
113
108
  key = this.collection.getKeyAfter(key);
114
- if (key == null)
115
- key = this.collection.getFirstKey();
109
+ if (key == null) key = this.collection.getFirstKey();
116
110
  } while (this.isDisabled(key));
117
111
  return key;
118
112
  }
119
113
  getPreviousKey(key) {
120
114
  do {
121
115
  key = this.collection.getKeyBefore(key);
122
- if (key == null)
123
- key = this.collection.getLastKey();
116
+ if (key == null) key = this.collection.getLastKey();
124
117
  } while (this.isDisabled(key));
125
118
  return key;
126
119
  }
@@ -181,8 +174,7 @@ function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
181
174
  onSelectionChange: (keys) => {
182
175
  var _keys_values_next_value;
183
176
  let key = (_keys_values_next_value = keys.values().next().value) !== null && _keys_values_next_value !== void 0 ? _keys_values_next_value : null;
184
- if (key === selectedKey && props.onSelectionChange)
185
- props.onSelectionChange(key);
177
+ if (key === selectedKey && props.onSelectionChange) props.onSelectionChange(key);
186
178
  setSelectedKey(key);
187
179
  }
188
180
  });
@@ -214,8 +206,7 @@ function $76f919a04c5a7d14$export$4ba071daf4e486(props) {
214
206
  selectedKey
215
207
  ]);
216
208
  }
217
- if (selectedKey != null && selectionManager.focusedKey == null || !selectionManager.isFocused && selectedKey !== lastSelectedKey.current)
218
- selectionManager.setFocusedKey(selectedKey);
209
+ if (selectedKey != null && selectionManager.focusedKey == null || !selectionManager.isFocused && selectedKey !== lastSelectedKey.current) selectionManager.setFocusedKey(selectedKey);
219
210
  lastSelectedKey.current = selectedKey;
220
211
  });
221
212
  return {
@@ -227,10 +218,8 @@ function $76f919a04c5a7d14$var$findDefaultSelectedKey(collection, disabledKeys)
227
218
  let selectedKey = null;
228
219
  if (collection) {
229
220
  selectedKey = collection.getFirstKey();
230
- while (disabledKeys.has(selectedKey) && selectedKey !== collection.getLastKey())
231
- selectedKey = collection.getKeyAfter(selectedKey);
232
- if (disabledKeys.has(selectedKey) && selectedKey === collection.getLastKey())
233
- selectedKey = collection.getFirstKey();
221
+ while (disabledKeys.has(selectedKey) && selectedKey !== collection.getLastKey()) selectedKey = collection.getKeyAfter(selectedKey);
222
+ if (disabledKeys.has(selectedKey) && selectedKey === collection.getLastKey()) selectedKey = collection.getFirstKey();
234
223
  }
235
224
  return selectedKey;
236
225
  }
@@ -401,8 +390,7 @@ function $5e8ad37a45e1c704$var$TabPanel(props, forwardedRef) {
401
390
  state
402
391
  }
403
392
  });
404
- if (!isSelected && !props.shouldForceMount)
405
- return null;
393
+ if (!isSelected && !props.shouldForceMount) return null;
406
394
  let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props);
407
395
  delete DOMProps.id;
408
396
  let domProps = isSelected ? $3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, tabPanelProps, focusProps, renderProps) : renderProps;
@@ -491,15 +479,9 @@ const Tabs = (props) => {
491
479
  Notice,
492
480
  {
493
481
  type: "error",
494
- label: __(
495
- "Component is not configured correctly. Skipping render to prevent errors.",
496
- "eightshift-ui-components"
497
- ),
482
+ label: __("Component is not configured correctly. Skipping render to prevent errors.", "eightshift-ui-components"),
498
483
  subtitle: sprintf(
499
- __(
500
- "Number of <Tab>s (%s) and <TabPanel>s (%s) should be the same. <Tab>s should be within a <TabList>.",
501
- "eightshift-ui-components"
502
- ),
484
+ __("Number of <Tab>s (%s) and <TabPanel>s (%s) should be the same. <Tab>s should be within a <TabList>.", "eightshift-ui-components"),
503
485
  tabCounter - 1,
504
486
  tabPanelCounter - 1
505
487
  ),
@@ -512,10 +494,7 @@ const Tabs = (props) => {
512
494
  {
513
495
  ...rest,
514
496
  orientation: vertical ? "vertical" : "horizontal",
515
- className: clsx(
516
- vertical ? "es-uic-grid es-uic-size-full es-uic-min-h-40 es-uic-grid-cols-[minmax(0,_15rem),_2fr] es-uic-gap-4" : "es-uic-flex-col",
517
- className
518
- ),
497
+ className: clsx(vertical ? "es-uic-grid es-uic-size-full es-uic-min-h-40 es-uic-grid-cols-[minmax(0,_15rem),_2fr] es-uic-gap-4" : "es-uic-flex-col", className),
519
498
  children: childrenWithIds
520
499
  }
521
500
  );
@@ -542,8 +521,8 @@ const TabList = (props) => {
542
521
  "aria-label": ariaLabel ?? __("tabs", "eightshift-ui-components"),
543
522
  className: ({ orientation }) => clsx(
544
523
  "es-uic-flex",
545
- orientation === "vertical" && "es-uic-gap-px es-uic-h-full es-uic-flex-col es-uic-pr-1.5",
546
- orientation === "horizontal" && "es-uic-gap-1 es-uic-w-full es-uic-items-end es-uic-border-b es-uic-border-b-gray-300",
524
+ orientation === "vertical" && "es-uic-h-full es-uic-flex-col es-uic-gap-px es-uic-pr-1.5",
525
+ orientation === "horizontal" && "es-uic-w-full es-uic-items-end es-uic-gap-1 es-uic-border-b es-uic-border-b-gray-300",
547
526
  className
548
527
  ),
549
528
  ...other,
@@ -1,13 +1,13 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, l as $df56164dff5785e2$export$4338b53315abf666, m as $5dc95899b306f630$export$c9058316764c140e, i as $64fa3d84918910a7$export$ef03459518577ad4, c as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../../utils-DIBzm1e4.js";
3
- import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-DG2RfOUr.js";
2
+ import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, l as $df56164dff5785e2$export$4338b53315abf666, m as $5dc95899b306f630$export$c9058316764c140e, i as $64fa3d84918910a7$export$ef03459518577ad4, c as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../../utils-Dc35LwuT.js";
3
+ import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
4
4
  import React__default, { forwardRef, createContext } from "react";
5
- import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-DghG5ImG.js";
6
- import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "../../useToggle-CExfZM8x.js";
7
- import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-CRx_hYC4.js";
8
- import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-B0hyd-S4.js";
9
- import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-BPJVSUyp.js";
10
- import { c as clsx } from "../../lite-pbIeT7tm.js";
5
+ import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-Cymkpac8.js";
6
+ import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "../../useToggle-6LnpaJ7-.js";
7
+ import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-SPRI0-SN.js";
8
+ import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-BS4dllCW.js";
9
+ import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-Di1zXprL.js";
10
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
11
11
  function $b418ec0c85c52f27$export$d853f7095ae95f88(props, state, ref) {
12
12
  let { labelProps, inputProps, isSelected, isPressed, isDisabled, isReadOnly } = $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref);
13
13
  return {
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-9x5iLJ-Y.js";
2
+ import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-Bg5O81Wb.js";
3
3
  import { Switch } from "./switch.js";
4
4
  import { RichLabel } from "../rich-label/rich-label.js";
5
5
  /**
@@ -1,12 +1,12 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { n as $ff5963eb1fccf552$export$e08e3b67e392101e, d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, c as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "../../utils-DIBzm1e4.js";
2
+ import { n as $ff5963eb1fccf552$export$e08e3b67e392101e, d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, c as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "../../utils-Dc35LwuT.js";
3
3
  import React__default, { forwardRef, createContext } from "react";
4
- import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-DghG5ImG.js";
5
- import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "../../useButton-D-xACzEY.js";
6
- import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-CRx_hYC4.js";
7
- import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-B0hyd-S4.js";
8
- import { c as clsx } from "../../lite-pbIeT7tm.js";
9
- import { T as Tooltip } from "../../tooltip-T6H9uF-Z.js";
4
+ import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-Cymkpac8.js";
5
+ import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "../../useButton-DbjDV_33.js";
6
+ import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-SPRI0-SN.js";
7
+ import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-BS4dllCW.js";
8
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
9
+ import { T as Tooltip } from "../../tooltip-BRQ4tvZL.js";
10
10
  function $55f54f7887471b58$export$51e84d46ca0bc451(props, state, ref) {
11
11
  const { isSelected } = state;
12
12
  const { isPressed, buttonProps } = $701a24aa0da5b062$export$ea18c227d4417cc3({
@@ -96,21 +96,7 @@ const $efde0372d7a700fe$export$d2b052e7b4be1756 = /* @__PURE__ */ forwardRef($ef
96
96
  * @preserve
97
97
  */
98
98
  const ToggleButton = (props) => {
99
- const {
100
- children,
101
- icon,
102
- size = "default",
103
- type = "default",
104
- disabled,
105
- className,
106
- tooltip,
107
- selected,
108
- onChange,
109
- wrapperClassName,
110
- tooltipProps,
111
- hidden,
112
- ...other
113
- } = props;
99
+ const { children, icon, size = "default", type = "default", disabled, className, tooltip, selected, onChange, wrapperClassName, tooltipProps, hidden, ...other } = props;
114
100
  if (hidden) {
115
101
  return null;
116
102
  }
@@ -1,9 +1,9 @@
1
1
  import "react/jsx-runtime";
2
- import { D, T } from "../../tooltip-T6H9uF-Z.js";
3
- import "../../lite-pbIeT7tm.js";
2
+ import { D, T } from "../../tooltip-BRQ4tvZL.js";
3
+ import "../../lite-DVmmD_-j.js";
4
4
  import "react";
5
- import "../../focusSafely-B0hyd-S4.js";
6
- import "../../utils-DIBzm1e4.js";
5
+ import "../../focusSafely-BS4dllCW.js";
6
+ import "../../utils-Dc35LwuT.js";
7
7
  export {
8
8
  D as DecorativeTooltip,
9
9
  T as Tooltip
@@ -1,5 +1,5 @@
1
1
  import React__default, { useState, useEffect, useContext } from "react";
2
- import { o as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./utils-DIBzm1e4.js";
2
+ import { o as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./utils-Dc35LwuT.js";
3
3
  const $148a7a147e38ea7f$var$RTL_SCRIPTS = /* @__PURE__ */ new Set([
4
4
  "Arab",
5
5
  "Syrc",
@@ -37,10 +37,8 @@ function $148a7a147e38ea7f$export$702d680b21cbd764(localeString) {
37
37
  if (Intl.Locale) {
38
38
  let locale = new Intl.Locale(localeString).maximize();
39
39
  let textInfo = typeof locale.getTextInfo === "function" ? locale.getTextInfo() : locale.textInfo;
40
- if (textInfo)
41
- return textInfo.direction === "rtl";
42
- if (locale.script)
43
- return $148a7a147e38ea7f$var$RTL_SCRIPTS.has(locale.script);
40
+ if (textInfo) return textInfo.direction === "rtl";
41
+ if (locale.script) return $148a7a147e38ea7f$var$RTL_SCRIPTS.has(locale.script);
44
42
  }
45
43
  let lang = localeString.split("-")[0];
46
44
  return $148a7a147e38ea7f$var$RTL_LANGS.has(lang);
@@ -64,27 +62,23 @@ let $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677
64
62
  let $1e5a04cdaf7d1af8$var$listeners = /* @__PURE__ */ new Set();
65
63
  function $1e5a04cdaf7d1af8$var$updateLocale() {
66
64
  $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();
67
- for (let listener of $1e5a04cdaf7d1af8$var$listeners)
68
- listener($1e5a04cdaf7d1af8$var$currentLocale);
65
+ for (let listener of $1e5a04cdaf7d1af8$var$listeners) listener($1e5a04cdaf7d1af8$var$currentLocale);
69
66
  }
70
67
  function $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a() {
71
68
  let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273();
72
69
  let [defaultLocale, setDefaultLocale] = useState($1e5a04cdaf7d1af8$var$currentLocale);
73
70
  useEffect(() => {
74
- if ($1e5a04cdaf7d1af8$var$listeners.size === 0)
75
- window.addEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale);
71
+ if ($1e5a04cdaf7d1af8$var$listeners.size === 0) window.addEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale);
76
72
  $1e5a04cdaf7d1af8$var$listeners.add(setDefaultLocale);
77
73
  return () => {
78
74
  $1e5a04cdaf7d1af8$var$listeners.delete(setDefaultLocale);
79
- if ($1e5a04cdaf7d1af8$var$listeners.size === 0)
80
- window.removeEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale);
75
+ if ($1e5a04cdaf7d1af8$var$listeners.size === 0) window.removeEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale);
81
76
  };
82
77
  }, []);
83
- if (isSSR)
84
- return {
85
- locale: "en-US",
86
- direction: "ltr"
87
- };
78
+ if (isSSR) return {
79
+ locale: "en-US",
80
+ direction: "ltr"
81
+ };
88
82
  return defaultLocale;
89
83
  }
90
84
  const $18f2051aff69b9bf$var$I18nContext = /* @__PURE__ */ React__default.createContext(null);
@@ -6,33 +6,32 @@ function memize(fn, options) {
6
6
  options = options || {};
7
7
  function memoized() {
8
8
  var node = head, len = arguments.length, args, i;
9
- searchCache:
10
- while (node) {
11
- if (node.args.length !== arguments.length) {
9
+ searchCache: while (node) {
10
+ if (node.args.length !== arguments.length) {
11
+ node = node.next;
12
+ continue;
13
+ }
14
+ for (i = 0; i < len; i++) {
15
+ if (node.args[i] !== arguments[i]) {
12
16
  node = node.next;
13
- continue;
17
+ continue searchCache;
14
18
  }
15
- for (i = 0; i < len; i++) {
16
- if (node.args[i] !== arguments[i]) {
17
- node = node.next;
18
- continue searchCache;
19
- }
19
+ }
20
+ if (node !== head) {
21
+ if (node === tail) {
22
+ tail = node.prev;
20
23
  }
21
- if (node !== head) {
22
- if (node === tail) {
23
- tail = node.prev;
24
- }
25
- node.prev.next = node.next;
26
- if (node.next) {
27
- node.next.prev = node.prev;
28
- }
29
- node.next = head;
30
- node.prev = null;
31
- head.prev = node;
32
- head = node;
24
+ node.prev.next = node.next;
25
+ if (node.next) {
26
+ node.next.prev = node.prev;
33
27
  }
34
- return node.val;
28
+ node.next = head;
29
+ node.prev = null;
30
+ head.prev = node;
31
+ head = node;
35
32
  }
33
+ return node.val;
34
+ }
36
35
  args = new Array(len);
37
36
  for (i = 0; i < len; i++) {
38
37
  args[i] = arguments[i];
@@ -20,9 +20,7 @@ const $65484d02dcb7eb3e$var$propRe = /^(data-.*)$/;
20
20
  function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, opts = {}) {
21
21
  let { labelable, isLink, propNames } = opts;
22
22
  let filteredProps = {};
23
- for (const prop in props)
24
- if (Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || (propNames === null || propNames === void 0 ? void 0 : propNames.has(prop)) || $65484d02dcb7eb3e$var$propRe.test(prop)))
25
- filteredProps[prop] = props[prop];
23
+ for (const prop in props) if (Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || (propNames === null || propNames === void 0 ? void 0 : propNames.has(prop)) || $65484d02dcb7eb3e$var$propRe.test(prop))) filteredProps[prop] = props[prop];
26
24
  return filteredProps;
27
25
  }
28
26
  export {