@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
@@ -2,12 +2,12 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import React__default from "react";
3
3
  import { RichLabel } from "../rich-label/rich-label.js";
4
4
  import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
5
- import { B as Button } from "../../button-idVI4jmd.js";
5
+ import { B as Button } from "../../button-CD8Q1eok.js";
6
6
  import { icons } from "../../icons/icons.js";
7
- import { c as clsx } from "../../lite-pbIeT7tm.js";
8
- import { _ as __ } from "../../default-i18n-Bk1GxDHz.js";
9
- import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-9x5iLJ-Y.js";
10
- import { $ as $9bf71ea28793e738$export$20e40289641fbbb6 } from "../../FocusScope-B9b0VMib.js";
7
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
8
+ import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
9
+ import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-Bg5O81Wb.js";
10
+ import { $ as $9bf71ea28793e738$export$20e40289641fbbb6 } from "../../FocusScope-Bw-IatMO.js";
11
11
  /**
12
12
  * A component that allows hiding content in an expandable panel, to declutter the UI.
13
13
  *
@@ -68,59 +68,47 @@ const Expandable = (props) => {
68
68
  ),
69
69
  ...other,
70
70
  children: [
71
- /* @__PURE__ */ jsxs(
72
- "div",
73
- {
74
- className: clsx(
75
- "es-uic-flex es-uic-h-9 es-uic-items-center es-uic-gap-1 es-uic-transition-[padding]",
76
- isOpen && "es-uic-py-1 es-uic-pl-2 es-uic-pr-1"
77
- ),
78
- children: [
79
- /* @__PURE__ */ jsx(
80
- RichLabel,
81
- {
82
- icon,
83
- label,
84
- subtitle,
85
- className: labelClassName,
86
- as: $01b77f81d0f07f68$export$b04be29aa201d4f5,
87
- fullWidth: true
88
- }
89
- ),
90
- actions && !keepActionsOnExpand && /* @__PURE__ */ jsx(
91
- AnimatedVisibility,
92
- {
93
- visible: !isOpen,
94
- className: "es-uic-ml-auto es-uic-flex es-uic-gap-2",
95
- transition: "scaleFade",
96
- noInitial: true,
97
- children: actions
71
+ /* @__PURE__ */ jsxs("div", { className: clsx("es-uic-flex es-uic-h-10 es-uic-items-center es-uic-gap-1 es-uic-transition-[padding]", isOpen && "es-uic-py-1 es-uic-pl-2 es-uic-pr-1"), children: [
72
+ /* @__PURE__ */ jsx(
73
+ RichLabel,
74
+ {
75
+ icon,
76
+ label,
77
+ subtitle,
78
+ className: labelClassName,
79
+ as: $01b77f81d0f07f68$export$b04be29aa201d4f5,
80
+ fullWidth: true
81
+ }
82
+ ),
83
+ actions && !keepActionsOnExpand && /* @__PURE__ */ jsx(
84
+ AnimatedVisibility,
85
+ {
86
+ visible: !isOpen,
87
+ className: "es-uic-ml-auto es-uic-flex es-uic-gap-2",
88
+ transition: "scaleFade",
89
+ noInitial: true,
90
+ children: actions
91
+ }
92
+ ),
93
+ actions && keepActionsOnExpand && /* @__PURE__ */ jsx("div", { className: "es-uic-ml-auto es-uic-flex es-uic-gap-2", children: actions }),
94
+ /* @__PURE__ */ jsx(
95
+ Button,
96
+ {
97
+ type: "ghost",
98
+ icon: isOpen ? icons.caretDownFill : icons.caretDown,
99
+ onPress: () => {
100
+ setIsOpen(!isOpen);
101
+ if (onOpenChange) {
102
+ onOpenChange(!isOpen);
98
103
  }
99
- ),
100
- actions && keepActionsOnExpand && /* @__PURE__ */ jsx("div", { className: "es-uic-ml-auto es-uic-flex es-uic-gap-2", children: actions }),
101
- /* @__PURE__ */ jsx(
102
- Button,
103
- {
104
- type: "ghost",
105
- icon: isOpen ? icons.caretDownFill : icons.caretDown,
106
- onPress: () => {
107
- setIsOpen(!isOpen);
108
- if (onOpenChange) {
109
- onOpenChange(!isOpen);
110
- }
111
- },
112
- tooltip: isOpen ? __("Close", "eightshift-ui-components") : __("Open", "eightshift-ui-components"),
113
- disabled,
114
- className: clsx(
115
- "[&>svg]:es-uic-size-5 [&>svg]:es-uic-transition-transform",
116
- isOpen && "[&>svg]:-es-uic-scale-y-100"
117
- ),
118
- size: "small"
119
- }
120
- )
121
- ]
122
- }
123
- ),
104
+ },
105
+ tooltip: isOpen ? __("Close", "eightshift-ui-components") : __("Open", "eightshift-ui-components"),
106
+ disabled,
107
+ className: clsx("[&>svg]:es-uic-size-5 [&>svg]:es-uic-transition-transform", isOpen && "[&>svg]:-es-uic-scale-y-100"),
108
+ size: "small"
109
+ }
110
+ )
111
+ ] }),
124
112
  /* @__PURE__ */ jsx(
125
113
  AnimatedVisibility,
126
114
  {
@@ -1,7 +1,7 @@
1
1
  import { AnimatedVisibility } from "./animated-visibility/animated-visibility.js";
2
2
  import { BaseControl } from "./base-control/base-control.js";
3
3
  import { BreakpointPreview } from "./breakpoint-preview/breakpoint-preview.js";
4
- import { B, a } from "../button-idVI4jmd.js";
4
+ import { B, a } from "../button-CD8Q1eok.js";
5
5
  import { Checkbox } from "./checkbox/checkbox.js";
6
6
  import { ComponentToggle } from "./component-toggle/component-toggle.js";
7
7
  import { ContainerPanel } from "./container-panel/container-panel.js";
@@ -24,7 +24,7 @@ import { MediaPlaceholder } from "./placeholders/media-placeholder.js";
24
24
  import { Menu, MenuItem, MenuSection, MenuSeparator, SubMenuItem } from "./menu/menu.js";
25
25
  import { Notice } from "./notice/notice.js";
26
26
  import { NumberPicker } from "./number-picker/number-picker.js";
27
- import { P, T } from "../popover-o2Q28Ljn.js";
27
+ import { P, T } from "../popover-Dk2o4S7K.js";
28
28
  import { RadioButton, RadioButtonGroup } from "./radio/radio.js";
29
29
  import { Repeater } from "./repeater/repeater.js";
30
30
  import { RepeaterItem } from "./repeater/repeater-item.js";
@@ -45,7 +45,7 @@ import { Tab, TabList, TabPanel, Tabs } from "./tabs/tabs.js";
45
45
  import { Toggle } from "./toggle/toggle.js";
46
46
  import { Switch } from "./toggle/switch.js";
47
47
  import { ToggleButton } from "./toggle-button/toggle-button.js";
48
- import { D, T as T2 } from "../tooltip-T6H9uF-Z.js";
48
+ import { D, T as T2 } from "../tooltip-BRQ4tvZL.js";
49
49
  import { VStack } from "./layout/vstack.js";
50
50
  export {
51
51
  AnimatedVisibility,
@@ -1,16 +1,16 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { b as $2d73ec29415bd339$export$712718f7aec83d5, $ as $3985021b0ad6602f$export$37fb8590cf2c088c, a as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-BJA4rmIo.js";
3
- import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-9x5iLJ-Y.js";
4
- import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, c as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, i as $64fa3d84918910a7$export$ef03459518577ad4, j as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-DIBzm1e4.js";
2
+ import { b as $2d73ec29415bd339$export$712718f7aec83d5, $ as $3985021b0ad6602f$export$37fb8590cf2c088c, a as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-CX_rocyZ.js";
3
+ import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-Bg5O81Wb.js";
4
+ import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, c as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, i as $64fa3d84918910a7$export$ef03459518577ad4, j as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-Dc35LwuT.js";
5
5
  import React__default, { forwardRef, createContext, useRef, useState, useCallback } from "react";
6
- import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-B0hyd-S4.js";
7
- import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-CRx_hYC4.js";
8
- import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-ILxgMZy5.js";
6
+ import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-BS4dllCW.js";
7
+ import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-SPRI0-SN.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";
10
+ import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-WqetJduR.js";
11
+ import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
12
12
  import { BaseControl } from "../base-control/base-control.js";
13
- import { c as clsx } from "../../lite-pbIeT7tm.js";
13
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
14
14
  const $216918bed6669f72$export$2dc6166a7e65358c = /* @__PURE__ */ createContext({});
15
15
  let $216918bed6669f72$var$filterHoverProps = (props) => {
16
16
  let { onHoverStart, onHoverChange, onHoverEnd, ...otherProps } = props;
@@ -64,8 +64,7 @@ function $bcdf0525bf22703d$var$TextField(props, ref) {
64
64
  }, inputRef);
65
65
  let inputOrTextAreaRef = useCallback((el) => {
66
66
  inputRef.current = el;
67
- if (el)
68
- setInputElementType(el instanceof HTMLTextAreaElement ? "textarea" : "input");
67
+ if (el) setInputElementType(el instanceof HTMLTextAreaElement ? "textarea" : "input");
69
68
  }, []);
70
69
  let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
71
70
  ...props,
@@ -160,21 +159,7 @@ const $bcdf0525bf22703d$export$2c73285ae9390cec = /* @__PURE__ */ forwardRef($bc
160
159
  * @preserve
161
160
  */
162
161
  const InputField = (props) => {
163
- const {
164
- icon,
165
- label,
166
- subtitle,
167
- help,
168
- actions,
169
- value,
170
- onChange,
171
- type = "text",
172
- disabled,
173
- readOnly,
174
- className,
175
- hidden,
176
- ...other
177
- } = props;
162
+ const { icon, label, subtitle, help, actions, value, onChange, type = "text", disabled, readOnly, className, hidden, ...other } = props;
178
163
  if (hidden) {
179
164
  return null;
180
165
  }
@@ -1,5 +1,5 @@
1
1
  import { 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
  /**
4
4
  * Allows for stacking elements horizontally, with a gap between them.
5
5
  *
@@ -23,17 +23,7 @@ const HStack = (props) => {
23
23
  if (hidden) {
24
24
  return null;
25
25
  }
26
- return /* @__PURE__ */ jsx(
27
- "div",
28
- {
29
- className: clsx(
30
- "es-uic-flex es-uic-items-center es-uic-gap-x-1.5 es-uic-gap-y-2",
31
- !noWrap && "es-uic-flex-wrap",
32
- className
33
- ),
34
- children
35
- }
36
- );
26
+ return /* @__PURE__ */ jsx("div", { className: clsx("es-uic-flex es-uic-items-center es-uic-gap-x-1.5 es-uic-gap-y-2", !noWrap && "es-uic-flex-wrap", className), children });
37
27
  };
38
28
  export {
39
29
  HStack
@@ -1,5 +1,5 @@
1
1
  import { 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
  /**
4
4
  * Allows for stacking elements vertically, with a gap between them.
5
5
  *
@@ -23,17 +23,7 @@ const VStack = (props) => {
23
23
  if (hidden) {
24
24
  return null;
25
25
  }
26
- return /* @__PURE__ */ jsx(
27
- "div",
28
- {
29
- className: clsx(
30
- "es-uic-flex es-uic-flex-col es-uic-gap-x-1.5 es-uic-gap-y-1.5",
31
- !noWrap && "es-uic-flex-wrap",
32
- className
33
- ),
34
- children
35
- }
36
- );
26
+ return /* @__PURE__ */ jsx("div", { className: clsx("es-uic-flex es-uic-flex-col es-uic-gap-x-1.5 es-uic-gap-y-1.5", !noWrap && "es-uic-flex-wrap", className), children });
37
27
  };
38
28
  export {
39
29
  VStack
@@ -1,27 +1,27 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { $ as $d2b4bc8c273e7be6$export$24d547caef80ccd1, a as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-eebLs4cp.js";
3
- import { $ as $a049562f99e7db0e$export$f9c6924e160136d1, a as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 } from "../../Group-Dkdm2-E7.js";
4
- import { b as $2d73ec29415bd339$export$712718f7aec83d5, $ 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 { n as $ff5963eb1fccf552$export$e08e3b67e392101e, 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";
7
- import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-ILxgMZy5.js";
2
+ import { $ as $d2b4bc8c273e7be6$export$24d547caef80ccd1, a as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-CbFrFO04.js";
3
+ import { $ as $a049562f99e7db0e$export$f9c6924e160136d1, a as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 } from "../../Group-D3Qa6PrV.js";
4
+ import { b as $2d73ec29415bd339$export$712718f7aec83d5, $ 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 { n as $ff5963eb1fccf552$export$e08e3b67e392101e, 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";
7
+ import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-J1-YPbi6.js";
8
8
  import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu75_.js";
9
- import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-Cyxp9ewv.js";
10
- import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-DG2RfOUr.js";
9
+ import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-WqetJduR.js";
10
+ import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
11
11
  import React__default, { useReducer, useRef, useEffect, forwardRef, createContext, useMemo, useState } from "react";
12
- import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../../focusSafely-B0hyd-S4.js";
13
- import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-WsEL47qR.js";
14
- import { $ as $13c3c67164f4d5be$export$4c260019440d418f, B as Button } from "../../button-idVI4jmd.js";
15
- import { _ as __ } from "../../default-i18n-Bk1GxDHz.js";
12
+ import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../../focusSafely-BS4dllCW.js";
13
+ import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-BQCMno9k.js";
14
+ import { $ as $13c3c67164f4d5be$export$4c260019440d418f, B as Button } from "../../button-CD8Q1eok.js";
15
+ import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
16
16
  import { icons } from "../../icons/icons.js";
17
- import { c as clsx } from "../../lite-pbIeT7tm.js";
17
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
18
18
  import { Spacer } from "../spacer/spacer.js";
19
- import { T as Tooltip } from "../../tooltip-T6H9uF-Z.js";
19
+ import { T as Tooltip } from "../../tooltip-BRQ4tvZL.js";
20
20
  import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
21
21
  import { BaseControl } from "../base-control/base-control.js";
22
22
  import { RichLabel } from "../rich-label/rich-label.js";
23
- import { P as Popover } from "../../popover-o2Q28Ljn.js";
24
- import { a as $0d86e9c8f07f9a7b$export$79c0c687a5963b0a } from "../../useListData-BelKu4kx.js";
23
+ import { P as Popover } from "../../popover-Dk2o4S7K.js";
24
+ import { a as $0d86e9c8f07f9a7b$export$79c0c687a5963b0a } from "../../useListData-BpYQj7kK.js";
25
25
  var $03c9a1a10de12f06$exports = {};
26
26
  $03c9a1a10de12f06$exports = {
27
27
  "Clear search": `مسح البحث`
@@ -204,26 +204,20 @@ function $4d52238874b24f86$export$9bb30bbe003b82e0(props, state, inputRef) {
204
204
  }, onClear, type = "search" } = props;
205
205
  let onKeyDown = (e) => {
206
206
  const key = e.key;
207
- if (key === "Enter")
208
- e.preventDefault();
209
- if (isDisabled || isReadOnly)
210
- return;
211
- if (key === "Enter")
212
- onSubmit(state.value);
207
+ if (key === "Enter") e.preventDefault();
208
+ if (isDisabled || isReadOnly) return;
209
+ if (key === "Enter") onSubmit(state.value);
213
210
  if (key === "Escape") {
214
- if (state.value === "")
215
- e.continuePropagation();
211
+ if (state.value === "") e.continuePropagation();
216
212
  else {
217
213
  state.setValue("");
218
- if (onClear)
219
- onClear();
214
+ if (onClear) onClear();
220
215
  }
221
216
  }
222
217
  };
223
218
  let onClearButtonClick = () => {
224
219
  state.setValue("");
225
- if (onClear)
226
- onClear();
220
+ if (onClear) onClear();
227
221
  };
228
222
  let onPressStart = () => {
229
223
  var _inputRef_current;
@@ -293,8 +287,7 @@ function $f86e6c1ec7da6ebb$var$reducer(data, action) {
293
287
  case "filtering":
294
288
  switch (action.type) {
295
289
  case "success":
296
- if (action.abortController !== data.abortController)
297
- return data;
290
+ if (action.abortController !== data.abortController) return data;
298
291
  var _action_selectedKeys;
299
292
  selectedKeys = (_action_selectedKeys = action.selectedKeys) !== null && _action_selectedKeys !== void 0 ? _action_selectedKeys : data.selectedKeys;
300
293
  var _action_filterText1, _action_sortDescriptor1;
@@ -311,8 +304,7 @@ function $f86e6c1ec7da6ebb$var$reducer(data, action) {
311
304
  cursor: action.cursor
312
305
  };
313
306
  case "error":
314
- if (action.abortController !== data.abortController)
315
- return data;
307
+ if (action.abortController !== data.abortController) return data;
316
308
  return {
317
309
  ...data,
318
310
  state: "error",
@@ -363,8 +355,7 @@ function $f86e6c1ec7da6ebb$var$reducer(data, action) {
363
355
  cursor: action.cursor
364
356
  };
365
357
  case "error":
366
- if (action.abortController !== data.abortController)
367
- return data;
358
+ if (action.abortController !== data.abortController) return data;
368
359
  return {
369
360
  ...data,
370
361
  state: "error",
@@ -433,11 +424,10 @@ function $f86e6c1ec7da6ebb$export$bc3384a35de93d66(options) {
433
424
  ...response,
434
425
  abortController
435
426
  });
436
- if (filterText && filterText !== previousFilterText && !abortController.signal.aborted)
437
- dispatchFetch({
438
- type: "filtering",
439
- filterText
440
- }, load);
427
+ if (filterText && filterText !== previousFilterText && !abortController.signal.aborted) dispatchFetch({
428
+ type: "filtering",
429
+ filterText
430
+ }, load);
441
431
  } catch (e) {
442
432
  dispatch({
443
433
  type: "error",
@@ -472,8 +462,7 @@ function $f86e6c1ec7da6ebb$export$bc3384a35de93d66(options) {
472
462
  }, load);
473
463
  },
474
464
  loadMore() {
475
- if (data.state === "loadingMore" || data.state === "filtering" || data.cursor == null)
476
- return;
465
+ if (data.state === "loadingMore" || data.state === "filtering" || data.cursor == null) return;
477
466
  dispatchFetch({
478
467
  type: "loadingMore"
479
468
  }, load);
@@ -510,8 +499,7 @@ function $0b2218c4e3fe7d7e$export$3f8be18b0f41eaf2(props) {
510
499
  };
511
500
  }
512
501
  function $0b2218c4e3fe7d7e$var$toString(val) {
513
- if (val == null)
514
- return;
502
+ if (val == null) return;
515
503
  return val.toString();
516
504
  }
517
505
  const $440f4836bcb56932$export$d1c4e4c63cb03a11 = /* @__PURE__ */ createContext(null);
@@ -599,8 +587,7 @@ function c(e, u, c2) {
599
587
  var i = this, a = useRef(null), o = useRef(0), f = useRef(null), l = useRef([]), v = useRef(), m = useRef(), d = useRef(e), g = useRef(true);
600
588
  d.current = e;
601
589
  var p = "undefined" != typeof window, w = !u && 0 !== u && p;
602
- if ("function" != typeof e)
603
- throw new TypeError("Expected a function");
590
+ if ("function" != typeof e) throw new TypeError("Expected a function");
604
591
  u = +u || 0;
605
592
  var s = !!(c2 = c2 || {}).leading, x = !("trailing" in c2) || !!c2.trailing, h = "maxWait" in c2, y = "debounceOnServer" in c2 && !!c2.debounceOnServer, F = h ? Math.max(+c2.maxWait || 0, u) : null;
606
593
  useEffect(function() {
@@ -615,16 +602,14 @@ function c(e, u, c2) {
615
602
  }, n = function(r2, n2) {
616
603
  w && cancelAnimationFrame(f.current), f.current = w ? requestAnimationFrame(r2) : setTimeout(r2, n2);
617
604
  }, t = function(r2) {
618
- if (!g.current)
619
- return false;
605
+ if (!g.current) return false;
620
606
  var n2 = r2 - a.current;
621
607
  return !a.current || n2 >= u || n2 < 0 || h && r2 - o.current >= F;
622
608
  }, e2 = function(n2) {
623
609
  return f.current = null, x && l.current ? r(n2) : (l.current = v.current = null, m.current);
624
610
  }, c3 = function r2() {
625
611
  var c4 = Date.now();
626
- if (t(c4))
627
- return e2(c4);
612
+ if (t(c4)) return e2(c4);
628
613
  if (g.current) {
629
614
  var i2 = u - (c4 - a.current), f2 = h ? Math.min(i2, F - (c4 - o.current)) : i2;
630
615
  n(r2, f2);
@@ -633,10 +618,8 @@ function c(e, u, c2) {
633
618
  if (p || y) {
634
619
  var e3 = Date.now(), d2 = t(e3);
635
620
  if (l.current = [].slice.call(arguments), v.current = i, a.current = e3, d2) {
636
- if (!f.current && g.current)
637
- return o.current = a.current, n(c3, u), s ? r(a.current) : m.current;
638
- if (h)
639
- return n(c3, u), r(a.current);
621
+ if (!f.current && g.current) return o.current = a.current, n(c3, u), s ? r(a.current) : m.current;
622
+ if (h) return n(c3, u), r(a.current);
640
623
  }
641
624
  return f.current || n(c3, u), m.current;
642
625
  }
@@ -1,8 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { b as $eed445e0843c11d0$export$41f133550aa26f48, c as $eed445e0843c11d0$export$a11e76429ed99b4 } from "../../ListBox-D3Vr4vvC.js";
3
- import { c as clsx } from "../../lite-pbIeT7tm.js";
2
+ import { b as $eed445e0843c11d0$export$41f133550aa26f48, c as $eed445e0843c11d0$export$a11e76429ed99b4 } from "../../ListBox-CCWXTj0t.js";
3
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
4
4
  import { BaseControl } from "../base-control/base-control.js";
5
- import { _ as __ } from "../../default-i18n-Bk1GxDHz.js";
5
+ import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
6
6
  import { RichLabel } from "../rich-label/rich-label.js";
7
7
  /**
8
8
  * A component that allows selecting a single or multiple options from a list.
@@ -123,7 +123,7 @@ const ListBox = (props) => {
123
123
  return clsx(
124
124
  "es-uic-flex es-uic-min-h-9 es-uic-select-none es-uic-rounded-md es-uic-border es-uic-transition",
125
125
  "focus:es-uic-outline-none focus-visible:es-uic-outline-none focus-visible:es-uic-ring focus-visible:es-uic-ring-teal-500 focus-visible:es-uic-ring-opacity-50",
126
- isSelected && !disabled && "es-uic-bg-teal-600 es-uic-text-white es-uic-border-teal-600 after:es-uic-opacity-45 es-uic-border es-uic-shadow-md es-uic-shadow-teal-500/25",
126
+ isSelected && !disabled && "es-uic-border es-uic-border-teal-600 es-uic-bg-teal-600 es-uic-text-white es-uic-shadow-md es-uic-shadow-teal-500/25 after:es-uic-opacity-45",
127
127
  isSelected && !disabled && 'es-uic-relative es-uic-isolate after:es-uic-absolute after:es-uic-inset-0 after:-es-uic-z-10 after:es-uic-rounded-[0.3125rem] after:es-uic-bg-gradient-to-br after:es-uic-from-teal-100/40 after:es-uic-via-transparent after:es-uic-to-teal-200/50 after:es-uic-opacity-0 after:es-uic-transition-opacity after:es-uic-content-[""]',
128
128
  !isSelected && !disabled && "es-uic-border-transparent hover:es-uic-bg-gray-100",
129
129
  isDisabled && "es-uic-border-transparent es-uic-opacity-30 es-uic-grayscale",
@@ -1,12 +1,12 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useState, useRef } from "react";
3
- import { _ as __ } from "../../default-i18n-Bk1GxDHz.js";
4
- import { P as Popover } from "../../popover-o2Q28Ljn.js";
5
- import { B as Button } from "../../button-idVI4jmd.js";
3
+ import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
4
+ import { P as Popover } from "../../popover-Dk2o4S7K.js";
5
+ import { B as Button } from "../../button-CD8Q1eok.js";
6
6
  import { icons } from "../../icons/icons.js";
7
7
  import { upperFirst, camelCase } from "../../utilities/es-dash.js";
8
- import { c as clsx } from "../../lite-pbIeT7tm.js";
9
- import { T as Tooltip } from "../../tooltip-T6H9uF-Z.js";
8
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
9
+ import { T as Tooltip } from "../../tooltip-BRQ4tvZL.js";
10
10
  import { BaseControl } from "../base-control/base-control.js";
11
11
  /**
12
12
  * A component that can provide a 3x3 or a 2x2 grid of positions to pick from.
@@ -155,11 +155,7 @@ const MatrixAlign = (props) => {
155
155
  "div",
156
156
  {
157
157
  ref: innerRef,
158
- className: clsx(
159
- "es-uic-grid",
160
- size === "3x3" && "es-uic-grid-cols-3 es-uic-grid-rows-3",
161
- size === "2x2" && "es-uic-grid-cols-2 es-uic-grid-rows-2"
162
- ),
158
+ className: clsx("es-uic-grid", size === "3x3" && "es-uic-grid-cols-3 es-uic-grid-rows-3", size === "2x2" && "es-uic-grid-cols-2 es-uic-grid-rows-2"),
163
159
  children: sizeOptions.map(({ value: value2, label: label2, icon: icon2 }) => /* @__PURE__ */ jsx(
164
160
  Button,
165
161
  {