@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,23 +1,23 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { $ as $982254629710d113$export$b95089534ab7c1fd, b as $453cc9f0df89c0a5$export$77d5aafae4e095b2, c as $431f98aba6844401$export$1ff3c3f08ae963c0, d as $431f98aba6844401$export$6615d83f6de245ce, e as $72a5793c14baf454$export$8b251419efc915eb } from "../../Separator-B6rnDabE.js";
3
- import { p as $8a26561d2877236e$export$c24ed0104d07eab9, f as $880e95eb8b93ba9a$export$ecf600387e221c37, $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852, j as $7135fc7d473fd974$export$e7c29ae2353b16ea, n as $7135fc7d473fd974$export$6cd28814d92fa9c9, o as $7135fc7d473fd974$export$727c8fc270210f13, q as $7135fc7d473fd974$export$6e2c8f0811a474ce } from "../../SelectionManager-sedvcM-1.js";
4
- import { e as $bdb11010cef70236$export$f680877a34711e37, d as $3ef42575df84b30b$export$9d1611c77c2fe928, k as $bdb11010cef70236$export$b4cc09c592e8fdb8, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, j as $64fa3d84918910a7$export$2881499e37b75b9a, a as $64fa3d84918910a7$export$29f1550f4b0d4415, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, m as $5dc95899b306f630$export$c9058316764c140e, l as $df56164dff5785e2$export$4338b53315abf666, c as $64fa3d84918910a7$export$4d86445c2cf5e3, $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "../../utils-DIBzm1e4.js";
2
+ import { $ as $982254629710d113$export$b95089534ab7c1fd, b as $453cc9f0df89c0a5$export$77d5aafae4e095b2, c as $431f98aba6844401$export$1ff3c3f08ae963c0, d as $431f98aba6844401$export$6615d83f6de245ce, e as $72a5793c14baf454$export$8b251419efc915eb } from "../../Separator-DZeg0KOr.js";
3
+ import { p as $8a26561d2877236e$export$c24ed0104d07eab9, f as $880e95eb8b93ba9a$export$ecf600387e221c37, $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852, j as $7135fc7d473fd974$export$e7c29ae2353b16ea, n as $7135fc7d473fd974$export$6cd28814d92fa9c9, o as $7135fc7d473fd974$export$727c8fc270210f13, q as $7135fc7d473fd974$export$6e2c8f0811a474ce } from "../../SelectionManager-XOAt-Ekx.js";
4
+ import { e as $bdb11010cef70236$export$f680877a34711e37, d as $3ef42575df84b30b$export$9d1611c77c2fe928, k as $bdb11010cef70236$export$b4cc09c592e8fdb8, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, j as $64fa3d84918910a7$export$2881499e37b75b9a, a as $64fa3d84918910a7$export$29f1550f4b0d4415, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, m as $5dc95899b306f630$export$c9058316764c140e, l as $df56164dff5785e2$export$4338b53315abf666, c as $64fa3d84918910a7$export$4d86445c2cf5e3, $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "../../utils-Dc35LwuT.js";
5
5
  import React__default, { useRef, useState, useEffect, useCallback, useMemo, createContext, forwardRef, useContext, cloneElement } from "react";
6
- import { $ as $628037886ba31236$export$f9d5c8beee7d008d, a as $de32f1b87079253c$export$d2f961adcb0afbe, b as $07b14b47974efb58$export$9b9a0cd73afb7ca4, c as $f1ab8c75478c6f73$export$3351871ee4b288b8, d as $e0b6e0b68ec7f50f$export$872b660ac5a1ff98, P as Popover } from "../../popover-o2Q28Ljn.js";
7
- import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-Cyxp9ewv.js";
8
- import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-DG2RfOUr.js";
9
- import { $ as $9daab02d461809db$export$683480f191c0e3ea, a as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../../tooltip-T6H9uF-Z.js";
10
- import { $ as $6179b936705e76d3$export$ae780daf29e6d456, a as $507fabe10e71c6fb$export$b9b3dfddab17db27, c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, w as $507fabe10e71c6fb$export$98e20ec92f614cfe, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../../focusSafely-B0hyd-S4.js";
11
- import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-WsEL47qR.js";
12
- import { b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "../../usePress-B42RawCH.js";
13
- import { a as $46d819fcbaf35654$export$8f71654801c2f7cd } from "../../useFocusable-CHfpEdlE.js";
14
- import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-BAcFg5GO.js";
15
- import { $ as $9bf71ea28793e738$export$20e40289641fbbb6 } from "../../FocusScope-B9b0VMib.js";
16
- import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-CRx_hYC4.js";
6
+ import { $ as $628037886ba31236$export$f9d5c8beee7d008d, a as $de32f1b87079253c$export$d2f961adcb0afbe, b as $07b14b47974efb58$export$9b9a0cd73afb7ca4, c as $f1ab8c75478c6f73$export$3351871ee4b288b8, d as $e0b6e0b68ec7f50f$export$872b660ac5a1ff98, P as Popover } from "../../popover-Dk2o4S7K.js";
7
+ import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-WqetJduR.js";
8
+ import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
9
+ import { $ as $9daab02d461809db$export$683480f191c0e3ea, a as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../../tooltip-BRQ4tvZL.js";
10
+ import { $ as $6179b936705e76d3$export$ae780daf29e6d456, a as $507fabe10e71c6fb$export$b9b3dfddab17db27, c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, w as $507fabe10e71c6fb$export$98e20ec92f614cfe, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../../focusSafely-BS4dllCW.js";
11
+ import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-BQCMno9k.js";
12
+ import { b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "../../usePress-CScNeV3V.js";
13
+ import { a as $46d819fcbaf35654$export$8f71654801c2f7cd } from "../../useFocusable-CLmhO94g.js";
14
+ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-4oSz1ItD.js";
15
+ import { $ as $9bf71ea28793e738$export$20e40289641fbbb6 } from "../../FocusScope-Bw-IatMO.js";
16
+ import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-SPRI0-SN.js";
17
17
  import { icons } from "../../icons/icons.js";
18
- import { B as Button } from "../../button-idVI4jmd.js";
19
- import { c as clsx } from "../../lite-pbIeT7tm.js";
20
- import { _ as __ } from "../../default-i18n-Bk1GxDHz.js";
18
+ import { B as Button } from "../../button-CD8Q1eok.js";
19
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
20
+ import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
21
21
  var $c0398ad35c3639b7$exports = {};
22
22
  $c0398ad35c3639b7$exports = {
23
23
  "longPressMessage": `اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة`
@@ -201,32 +201,25 @@ function $168583247155ddda$export$dc9c12ed27dd1b49(props, state, ref) {
201
201
  type
202
202
  }, state, ref);
203
203
  let onKeyDown = (e) => {
204
- if (isDisabled)
205
- return;
206
- if (trigger === "longPress" && !e.altKey)
207
- return;
208
- if (ref && ref.current)
209
- switch (e.key) {
210
- case "Enter":
211
- case " ":
212
- if (trigger === "longPress")
213
- return;
214
- case "ArrowDown":
215
- if (!("continuePropagation" in e))
216
- e.stopPropagation();
217
- e.preventDefault();
218
- state.toggle("first");
219
- break;
220
- case "ArrowUp":
221
- if (!("continuePropagation" in e))
222
- e.stopPropagation();
223
- e.preventDefault();
224
- state.toggle("last");
225
- break;
226
- default:
227
- if ("continuePropagation" in e)
228
- e.continuePropagation();
229
- }
204
+ if (isDisabled) return;
205
+ if (trigger === "longPress" && !e.altKey) return;
206
+ if (ref && ref.current) switch (e.key) {
207
+ case "Enter":
208
+ case " ":
209
+ if (trigger === "longPress") return;
210
+ case "ArrowDown":
211
+ if (!("continuePropagation" in e)) e.stopPropagation();
212
+ e.preventDefault();
213
+ state.toggle("first");
214
+ break;
215
+ case "ArrowUp":
216
+ if (!("continuePropagation" in e)) e.stopPropagation();
217
+ e.preventDefault();
218
+ state.toggle("last");
219
+ break;
220
+ default:
221
+ if ("continuePropagation" in e) e.continuePropagation();
222
+ }
230
223
  };
231
224
  let stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($2cbb7ca666678a14$exports), "@react-aria/menu");
232
225
  let { longPressProps } = $8a26561d2877236e$export$c24ed0104d07eab9({
@@ -245,8 +238,7 @@ function $168583247155ddda$export$dc9c12ed27dd1b49(props, state, ref) {
245
238
  state.open(e.pointerType === "virtual" ? "first" : null);
246
239
  },
247
240
  onPress(e) {
248
- if (e.pointerType === "touch" && !isDisabled)
249
- state.toggle();
241
+ if (e.pointerType === "touch" && !isDisabled) state.toggle();
250
242
  }
251
243
  };
252
244
  delete triggerProps.onPress;
@@ -268,8 +260,7 @@ function $168583247155ddda$export$dc9c12ed27dd1b49(props, state, ref) {
268
260
  const $d5336fe17ce95402$export$6f49b4016bfc8d56 = /* @__PURE__ */ new WeakMap();
269
261
  function $d5336fe17ce95402$export$38eaa17faae8f579(props, state, ref) {
270
262
  let { shouldFocusWrap = true, onKeyDown, onKeyUp, ...otherProps } = props;
271
- if (!props["aria-label"] && !props["aria-labelledby"])
272
- console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
263
+ if (!props["aria-label"] && !props["aria-labelledby"]) console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
273
264
  let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
274
265
  labelable: true
275
266
  });
@@ -294,8 +285,7 @@ function $d5336fe17ce95402$export$38eaa17faae8f579(props, state, ref) {
294
285
  role: "menu",
295
286
  ...listProps,
296
287
  onKeyDown: (e) => {
297
- if (e.key !== "Escape")
298
- listProps.onKeyDown(e);
288
+ if (e.key !== "Escape") listProps.onKeyDown(e);
299
289
  }
300
290
  })
301
291
  };
@@ -313,23 +303,16 @@ function $a2e5df62f93c7633$export$9d32628fc2aea7da(props, state, ref) {
313
303
  let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
314
304
  let performAction = (e) => {
315
305
  var _item_props;
316
- if (isTrigger)
317
- return;
318
- if (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.onAction)
319
- item.props.onAction();
320
- if (props.onAction)
321
- props.onAction(key);
322
- else if (data.onAction)
323
- data.onAction(key);
324
- if (e.target instanceof HTMLAnchorElement)
325
- router.open(e.target, e, item.props.href, item.props.routerOptions);
306
+ if (isTrigger) return;
307
+ if (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.onAction) item.props.onAction();
308
+ if (props.onAction) props.onAction(key);
309
+ else if (data.onAction) data.onAction(key);
310
+ if (e.target instanceof HTMLAnchorElement) router.open(e.target, e, item.props.href, item.props.routerOptions);
326
311
  };
327
312
  let role = "menuitem";
328
313
  if (!isTrigger) {
329
- if (state.selectionManager.selectionMode === "single")
330
- role = "menuitemradio";
331
- else if (state.selectionManager.selectionMode === "multiple")
332
- role = "menuitemcheckbox";
314
+ if (state.selectionManager.selectionMode === "single") role = "menuitemradio";
315
+ else if (state.selectionManager.selectionMode === "multiple") role = "menuitemcheckbox";
333
316
  }
334
317
  let labelId = $bdb11010cef70236$export$b4cc09c592e8fdb8();
335
318
  let descriptionId = $bdb11010cef70236$export$b4cc09c592e8fdb8();
@@ -347,22 +330,19 @@ function $a2e5df62f93c7633$export$9d32628fc2aea7da(props, state, ref) {
347
330
  "aria-haspopup": hasPopup,
348
331
  "aria-expanded": props["aria-expanded"]
349
332
  };
350
- if (state.selectionManager.selectionMode !== "none" && !isTrigger)
351
- ariaProps["aria-checked"] = isSelected;
333
+ if (state.selectionManager.selectionMode !== "none" && !isTrigger) ariaProps["aria-checked"] = isSelected;
352
334
  if (isVirtualized) {
353
335
  ariaProps["aria-posinset"] = item === null || item === void 0 ? void 0 : item.index;
354
336
  ariaProps["aria-setsize"] = $453cc9f0df89c0a5$export$77d5aafae4e095b2(state.collection);
355
337
  }
356
338
  let onPressStart = (e) => {
357
- if (e.pointerType === "keyboard")
358
- performAction(e);
339
+ if (e.pointerType === "keyboard") performAction(e);
359
340
  pressStartProp === null || pressStartProp === void 0 ? void 0 : pressStartProp(e);
360
341
  };
361
342
  let onPressUp = (e) => {
362
343
  if (e.pointerType !== "keyboard") {
363
344
  performAction(e);
364
- if (!isTrigger && onClose && (closeOnSelect !== null && closeOnSelect !== void 0 ? closeOnSelect : state.selectionManager.selectionMode !== "multiple" || state.selectionManager.isLink(key)))
365
- onClose();
345
+ if (!isTrigger && onClose && (closeOnSelect !== null && closeOnSelect !== void 0 ? closeOnSelect : state.selectionManager.selectionMode !== "multiple" || state.selectionManager.isLink(key))) onClose();
366
346
  }
367
347
  pressUpProp === null || pressUpProp === void 0 ? void 0 : pressUpProp(e);
368
348
  };
@@ -406,16 +386,13 @@ function $a2e5df62f93c7633$export$9d32628fc2aea7da(props, state, ref) {
406
386
  }
407
387
  switch (e.key) {
408
388
  case " ":
409
- if (!isDisabled && state.selectionManager.selectionMode === "none" && !isTrigger && closeOnSelect !== false && onClose)
410
- onClose();
389
+ if (!isDisabled && state.selectionManager.selectionMode === "none" && !isTrigger && closeOnSelect !== false && onClose) onClose();
411
390
  break;
412
391
  case "Enter":
413
- if (!isDisabled && closeOnSelect !== false && !isTrigger && onClose)
414
- onClose();
392
+ if (!isDisabled && closeOnSelect !== false && !isTrigger && onClose) onClose();
415
393
  break;
416
394
  default:
417
- if (!isTrigger)
418
- e.continuePropagation();
395
+ if (!isTrigger) e.continuePropagation();
419
396
  onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
420
397
  break;
421
398
  }
@@ -506,10 +483,8 @@ function $d275435c250248f8$export$85ec83e04c95f50a(options) {
506
483
  };
507
484
  let modality = $507fabe10e71c6fb$export$98e20ec92f614cfe();
508
485
  useEffect(() => {
509
- if (preventPointerEvents && menuRef.current)
510
- menuRef.current.style.pointerEvents = "none";
511
- else
512
- menuRef.current.style.pointerEvents = "";
486
+ if (preventPointerEvents && menuRef.current) menuRef.current.style.pointerEvents = "none";
487
+ else menuRef.current.style.pointerEvents = "";
513
488
  }, [
514
489
  menuRef,
515
490
  preventPointerEvents
@@ -523,11 +498,9 @@ function $d275435c250248f8$export$85ec83e04c95f50a(options) {
523
498
  }
524
499
  submenuRect.current = submenu.getBoundingClientRect();
525
500
  let onPointerMove = (e) => {
526
- if (e.pointerType === "touch" || e.pointerType === "pen")
527
- return;
501
+ if (e.pointerType === "touch" || e.pointerType === "pen") return;
528
502
  let currentTime = Date.now();
529
- if (currentTime - lastProcessedTime.current < $d275435c250248f8$var$THROTTLE_TIME)
530
- return;
503
+ if (currentTime - lastProcessedTime.current < $d275435c250248f8$var$THROTTLE_TIME) return;
531
504
  clearTimeout(timeout.current);
532
505
  clearTimeout(autoCloseTimeout.current);
533
506
  let { clientX: mouseX, clientY: mouseY } = e;
@@ -538,10 +511,8 @@ function $d275435c250248f8$export$85ec83e04c95f50a(options) {
538
511
  };
539
512
  return;
540
513
  }
541
- if (!submenuRect.current)
542
- return;
543
- if (!submenuSide.current)
544
- submenuSide.current = mouseX > submenuRect.current.right ? "left" : "right";
514
+ if (!submenuRect.current) return;
515
+ if (!submenuSide.current) submenuSide.current = mouseX > submenuRect.current.right ? "left" : "right";
545
516
  if (mouseX < menu.getBoundingClientRect().left || mouseX > menu.getBoundingClientRect().right || mouseY < menu.getBoundingClientRect().top || mouseY > menu.getBoundingClientRect().bottom) {
546
517
  reset();
547
518
  return;
@@ -554,27 +525,23 @@ function $d275435c250248f8$export$85ec83e04c95f50a(options) {
554
525
  let anglePointer = Math.atan2(prevMouseY - mouseY, submenuSide.current === "left" ? -(mouseX - prevMouseX) : mouseX - prevMouseX);
555
526
  let isMovingTowardsSubmenu = anglePointer < angleTop && anglePointer > angleBottom;
556
527
  movementsTowardsSubmenuCount.current = isMovingTowardsSubmenu ? Math.min(movementsTowardsSubmenuCount.current + 1, $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS) : Math.max(movementsTowardsSubmenuCount.current - 1, 0);
557
- if (movementsTowardsSubmenuCount.current >= $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS)
558
- setPreventPointerEvents(true);
559
- else
560
- setPreventPointerEvents(false);
528
+ if (movementsTowardsSubmenuCount.current >= $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS) setPreventPointerEvents(true);
529
+ else setPreventPointerEvents(false);
561
530
  lastProcessedTime.current = currentTime;
562
531
  prevPointerPos.current = {
563
532
  x: mouseX,
564
533
  y: mouseY
565
534
  };
566
- if (isMovingTowardsSubmenu)
567
- timeout.current = setTimeout(() => {
568
- reset();
569
- autoCloseTimeout.current = setTimeout(() => {
570
- let target = document.elementFromPoint(mouseX, mouseY);
571
- if (target && menu.contains(target))
572
- target.dispatchEvent(new PointerEvent("pointerover", {
573
- bubbles: true,
574
- cancelable: true
575
- }));
576
- }, 100);
577
- }, $d275435c250248f8$var$TIMEOUT_TIME);
535
+ if (isMovingTowardsSubmenu) timeout.current = setTimeout(() => {
536
+ reset();
537
+ autoCloseTimeout.current = setTimeout(() => {
538
+ let target = document.elementFromPoint(mouseX, mouseY);
539
+ if (target && menu.contains(target)) target.dispatchEvent(new PointerEvent("pointerover", {
540
+ bubbles: true,
541
+ cancelable: true
542
+ }));
543
+ }, 100);
544
+ }, $d275435c250248f8$var$TIMEOUT_TIME);
578
545
  };
579
546
  window.addEventListener("pointermove", onPointerMove);
580
547
  return () => {
@@ -658,27 +625,19 @@ function $0065b146e7192841$export$7138b0d059a6e743(props, state, ref) {
658
625
  case "ArrowRight":
659
626
  if (!isDisabled) {
660
627
  if (direction === "ltr") {
661
- if (!state.isOpen)
662
- onSubmenuOpen("first");
663
- if (type === "menu" && !!(submenuRef === null || submenuRef === void 0 ? void 0 : submenuRef.current) && document.activeElement === (ref === null || ref === void 0 ? void 0 : ref.current))
664
- submenuRef.current.focus();
665
- } else if (state.isOpen)
666
- onSubmenuClose();
667
- else
668
- e.continuePropagation();
628
+ if (!state.isOpen) onSubmenuOpen("first");
629
+ if (type === "menu" && !!(submenuRef === null || submenuRef === void 0 ? void 0 : submenuRef.current) && document.activeElement === (ref === null || ref === void 0 ? void 0 : ref.current)) submenuRef.current.focus();
630
+ } else if (state.isOpen) onSubmenuClose();
631
+ else e.continuePropagation();
669
632
  }
670
633
  break;
671
634
  case "ArrowLeft":
672
635
  if (!isDisabled) {
673
636
  if (direction === "rtl") {
674
- if (!state.isOpen)
675
- onSubmenuOpen("first");
676
- if (type === "menu" && !!(submenuRef === null || submenuRef === void 0 ? void 0 : submenuRef.current) && document.activeElement === (ref === null || ref === void 0 ? void 0 : ref.current))
677
- submenuRef.current.focus();
678
- } else if (state.isOpen)
679
- onSubmenuClose();
680
- else
681
- e.continuePropagation();
637
+ if (!state.isOpen) onSubmenuOpen("first");
638
+ if (type === "menu" && !!(submenuRef === null || submenuRef === void 0 ? void 0 : submenuRef.current) && document.activeElement === (ref === null || ref === void 0 ? void 0 : ref.current)) submenuRef.current.focus();
639
+ } else if (state.isOpen) onSubmenuClose();
640
+ else e.continuePropagation();
682
641
  }
683
642
  break;
684
643
  case "Escape":
@@ -700,21 +659,17 @@ function $0065b146e7192841$export$7138b0d059a6e743(props, state, ref) {
700
659
  let onHoverChange = (isHovered) => {
701
660
  if (!isDisabled) {
702
661
  if (isHovered && !state.isOpen) {
703
- if (!openTimeout.current)
704
- openTimeout.current = setTimeout(() => {
705
- onSubmenuOpen();
706
- }, delay);
707
- } else if (!isHovered)
708
- cancelOpenTimeout();
662
+ if (!openTimeout.current) openTimeout.current = setTimeout(() => {
663
+ onSubmenuOpen();
664
+ }, delay);
665
+ } else if (!isHovered) cancelOpenTimeout();
709
666
  }
710
667
  };
711
668
  let onBlur = (e) => {
712
- if (state.isOpen && parentMenuRef.current.contains(e.relatedTarget))
713
- onSubmenuClose();
669
+ if (state.isOpen && parentMenuRef.current.contains(e.relatedTarget)) onSubmenuClose();
714
670
  };
715
671
  let shouldCloseOnInteractOutside = (target) => {
716
- if (target !== ref.current)
717
- return true;
672
+ if (target !== ref.current) return true;
718
673
  return false;
719
674
  };
720
675
  $d275435c250248f8$export$85ec83e04c95f50a({
@@ -754,8 +709,7 @@ function $a28c903ee9ad8dc5$export$79fefeb1c2091ac3(props) {
754
709
  };
755
710
  let openSubmenu = (triggerKey, level) => {
756
711
  setExpandedKeysStack((oldStack) => {
757
- if (level > oldStack.length)
758
- return oldStack;
712
+ if (level > oldStack.length) return oldStack;
759
713
  return [
760
714
  ...oldStack.slice(0, level),
761
715
  triggerKey
@@ -765,10 +719,8 @@ function $a28c903ee9ad8dc5$export$79fefeb1c2091ac3(props) {
765
719
  let closeSubmenu = (triggerKey, level) => {
766
720
  setExpandedKeysStack((oldStack) => {
767
721
  let key = oldStack[level];
768
- if (key === triggerKey)
769
- return oldStack.slice(0, level);
770
- else
771
- return oldStack;
722
+ if (key === triggerKey) return oldStack.slice(0, level);
723
+ else return oldStack;
772
724
  });
773
725
  };
774
726
  return {
@@ -818,10 +770,8 @@ function $e5614764aa47eb35$export$cfc51cf86138bf98(props, state) {
818
770
  ]);
819
771
  let toggle = useCallback((focusStrategy2 = null) => {
820
772
  setFocusStrategy(focusStrategy2);
821
- if (isOpen)
822
- close();
823
- else
824
- open(focusStrategy2);
773
+ if (isOpen) close();
774
+ else open(focusStrategy2);
825
775
  }, [
826
776
  close,
827
777
  open,
@@ -888,12 +838,9 @@ class $05ca4cd7c4a5a999$export$863faf230ee2118a {
888
838
  expandedKeys = expandedKeys || /* @__PURE__ */ new Set();
889
839
  let visit = (node) => {
890
840
  this.keyMap.set(node.key, node);
891
- if (node.childNodes && (node.type === "section" || expandedKeys.has(node.key)))
892
- for (let child of node.childNodes)
893
- visit(child);
841
+ if (node.childNodes && (node.type === "section" || expandedKeys.has(node.key))) for (let child of node.childNodes) visit(child);
894
842
  };
895
- for (let node of nodes)
896
- visit(node);
843
+ for (let node of nodes) visit(node);
897
844
  let last;
898
845
  let index = 0;
899
846
  for (let [key, node] of this.keyMap) {
@@ -904,8 +851,7 @@ class $05ca4cd7c4a5a999$export$863faf230ee2118a {
904
851
  this.firstKey = key;
905
852
  node.prevKey = void 0;
906
853
  }
907
- if (node.type === "item")
908
- node.index = index++;
854
+ if (node.type === "item") node.index = index++;
909
855
  last = node;
910
856
  last.nextKey = void 0;
911
857
  }
@@ -925,8 +871,7 @@ function $875d6693e12af071$export$728d6ba534403756(props) {
925
871
  expandedKeys
926
872
  ]), null);
927
873
  useEffect(() => {
928
- if (selectionState.focusedKey != null && !tree.getItem(selectionState.focusedKey))
929
- selectionState.setFocusedKey(null);
874
+ if (selectionState.focusedKey != null && !tree.getItem(selectionState.focusedKey)) selectionState.setFocusedKey(null);
930
875
  }, [
931
876
  tree,
932
877
  selectionState.focusedKey
@@ -945,10 +890,8 @@ function $875d6693e12af071$export$728d6ba534403756(props) {
945
890
  }
946
891
  function $875d6693e12af071$var$toggleKey(set, key) {
947
892
  let res = new Set(set);
948
- if (res.has(key))
949
- res.delete(key);
950
- else
951
- res.add(key);
893
+ if (res.has(key)) res.delete(key);
894
+ else res.add(key);
952
895
  return res;
953
896
  }
954
897
  const $63df2425e2108aa8$export$744d98a3b8a94e1c = /* @__PURE__ */ createContext({});
@@ -964,8 +907,7 @@ function $3674c52c6b3c5bce$export$27d2ad3c5815583e(props) {
964
907
  }, state, ref);
965
908
  let [buttonWidth, setButtonWidth] = useState(null);
966
909
  let onResize = useCallback(() => {
967
- if (ref.current)
968
- setButtonWidth(ref.current.offsetWidth + "px");
910
+ if (ref.current) setButtonWidth(ref.current.offsetWidth + "px");
969
911
  }, [
970
912
  ref
971
913
  ]);
@@ -1077,8 +1019,7 @@ function $3674c52c6b3c5bce$var$MenuInner({ props, collection, menuRef: ref }) {
1077
1019
  $e0b6e0b68ec7f50f$export$872b660ac5a1ff98({
1078
1020
  ref,
1079
1021
  onInteractOutside: (e) => {
1080
- if (rootMenuTriggerState && !(popoverContainer === null || popoverContainer === void 0 ? void 0 : popoverContainer.contains(e.target)))
1081
- rootMenuTriggerState.close();
1022
+ if (rootMenuTriggerState && !(popoverContainer === null || popoverContainer === void 0 ? void 0 : popoverContainer.contains(e.target))) rootMenuTriggerState.close();
1082
1023
  },
1083
1024
  isDisabled: isSubmenu || (rootMenuTriggerState === null || rootMenuTriggerState === void 0 ? void 0 : rootMenuTriggerState.expandedKeysStack.length) === 0
1084
1025
  });
@@ -1476,20 +1417,10 @@ const Menu = (props) => {
1476
1417
  */
1477
1418
  const MenuSection = (props) => {
1478
1419
  const { children, label } = props;
1479
- return /* @__PURE__ */ jsxs(
1480
- $7135fc7d473fd974$export$6e2c8f0811a474ce,
1481
- {
1482
- className: clsx(
1483
- "es-uic-space-y-1 es-uic-border-b es-uic-pb-1 last:es-uic-border-b-0",
1484
- label && "es-uic-pt-2 first:es-uic-pt-1.5",
1485
- !label && "last:es-uic-pb-1"
1486
- ),
1487
- children: [
1488
- label && /* @__PURE__ */ jsx($72a5793c14baf454$export$8b251419efc915eb, { className: "es-uic-ml-1.5 es-uic-text-xs es-uic-font-medium es-uic-text-gray-400", children: label }),
1489
- children
1490
- ]
1491
- }
1492
- );
1420
+ return /* @__PURE__ */ jsxs($7135fc7d473fd974$export$6e2c8f0811a474ce, { className: clsx("es-uic-space-y-1 es-uic-border-b es-uic-pb-1 last:es-uic-border-b-0", label && "es-uic-pt-2 first:es-uic-pt-1.5", !label && "last:es-uic-pb-1"), children: [
1421
+ label && /* @__PURE__ */ jsx($72a5793c14baf454$export$8b251419efc915eb, { className: "es-uic-ml-1.5 es-uic-text-xs es-uic-font-medium es-uic-text-gray-400", children: label }),
1422
+ children
1423
+ ] });
1493
1424
  };
1494
1425
  /**
1495
1426
  * A menu separator.
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } 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 { icons } from "../../icons/icons.js";
4
4
  /**
5
5
  * A simple notice component.
@@ -1,19 +1,19 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import React__default, { forwardRef, useRef, createContext, useState, cloneElement } from "react";
3
- import { $ as $a049562f99e7db0e$export$f9c6924e160136d1, a as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 } from "../../Group-Dkdm2-E7.js";
4
- import { $ as $3985021b0ad6602f$export$37fb8590cf2c088c, a as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-BJA4rmIo.js";
5
- import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-9x5iLJ-Y.js";
6
- import { $ as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "../../Button-eebLs4cp.js";
7
- import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, i as $64fa3d84918910a7$export$ef03459518577ad4, c as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-DIBzm1e4.js";
8
- import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-ILxgMZy5.js";
3
+ import { $ as $a049562f99e7db0e$export$f9c6924e160136d1, a as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 } from "../../Group-D3Qa6PrV.js";
4
+ import { $ as $3985021b0ad6602f$export$37fb8590cf2c088c, a as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-CX_rocyZ.js";
5
+ import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-Bg5O81Wb.js";
6
+ import { $ as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "../../Button-CbFrFO04.js";
7
+ import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, i as $64fa3d84918910a7$export$ef03459518577ad4, c as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-Dc35LwuT.js";
8
+ import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-J1-YPbi6.js";
9
9
  import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu75_.js";
10
- import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-Cyxp9ewv.js";
11
- import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-DG2RfOUr.js";
12
- import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-BAcFg5GO.js";
13
- import { $ as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, a as $81397a9303501bda$export$23f548e970bdf099 } from "../../useNumberFieldState-ZH2Qyyxh.js";
14
- import { B as Button } from "../../button-idVI4jmd.js";
10
+ import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-WqetJduR.js";
11
+ import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
12
+ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-4oSz1ItD.js";
13
+ import { $ as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, a as $81397a9303501bda$export$23f548e970bdf099 } from "../../useNumberFieldState-BegO5X6F.js";
14
+ import { B as Button } from "../../button-CD8Q1eok.js";
15
15
  import { icons } from "../../icons/icons.js";
16
- import { c as clsx } from "../../lite-pbIeT7tm.js";
16
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
17
17
  import { BaseControl } from "../base-control/base-control.js";
18
18
  const $b91743d66a0ed188$export$b414a48cf5dcbc11 = /* @__PURE__ */ createContext(null);
19
19
  const $b91743d66a0ed188$export$6cc906c6cff9bec5 = /* @__PURE__ */ createContext(null);
@@ -222,7 +222,7 @@ const NumberPicker = ({
222
222
  "span",
223
223
  {
224
224
  slot: "prefix",
225
- className: "es-uic-col-start-1 es-uic-row-span-2 es-uic-mr-0.5 es-uic-select-none es-uic-self-center es-uic-text-gray-500 es-uic-text-xs",
225
+ className: "es-uic-col-start-1 es-uic-row-span-2 es-uic-mr-0.5 es-uic-select-none es-uic-self-center es-uic-text-xs es-uic-text-gray-500",
226
226
  children: prefix
227
227
  }
228
228
  ),
@@ -231,7 +231,7 @@ const NumberPicker = ({
231
231
  {
232
232
  onFocus: () => setIsInputFocused(true),
233
233
  onBlur: () => setIsInputFocused(false),
234
- className: "es-uic-col-start-2 es-uic-row-span-2 es-uic-bg-transparent es-uic-py-1 es-uic-tabular-nums focus:es-uic-outline-none es-uic-text-sm selection:es-uic-bg-teal-500/20 selection:es-uic-text-teal-950",
234
+ className: "es-uic-col-start-2 es-uic-row-span-2 es-uic-bg-transparent es-uic-py-1 es-uic-text-sm es-uic-tabular-nums selection:es-uic-bg-teal-500/20 selection:es-uic-text-teal-950 focus:es-uic-outline-none",
235
235
  placeholder,
236
236
  style: {
237
237
  width: fixedWidth ? `${fixedWidth}ch` : `calc(${min < 0 ? "0.75ch + " : ""}${(_d = (_c = max ?? 1e3) == null ? void 0 : _c.toString()) == null ? void 0 : _d.length} * 1ch)`
@@ -242,7 +242,7 @@ const NumberPicker = ({
242
242
  "span",
243
243
  {
244
244
  slot: "suffix",
245
- className: "es-uic-col-start-3 es-uic-row-span-2 es-uic-select-none es-uic-self-center es-uic-text-gray-500 es-uic-text-xs",
245
+ className: "es-uic-col-start-3 es-uic-row-span-2 es-uic-select-none es-uic-self-center es-uic-text-xs es-uic-text-gray-500",
246
246
  children: suffix
247
247
  }
248
248
  ),