@eightshift/ui-components 1.2.2 → 1.3.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 (80) hide show
  1. package/dist/{Button-CbFrFO04.js → Button-DTARR6Ff.js} +4 -4
  2. package/dist/{Checkbox-Cv3pZDHg.js → Checkbox-CiJIVbAP.js} +8 -8
  3. package/dist/{ColorSwatch-CNQmCQV8.js → ColorSwatch-5bZ_yIMB.js} +4 -4
  4. package/dist/{popover-CdonDPqG.js → Dialog-DJgS0mAg.js} +23 -212
  5. package/dist/{FieldError-J1-YPbi6.js → FieldError-CviphIN5.js} +2 -2
  6. package/dist/{FocusScope-Bw-IatMO.js → FocusScope-BjM5iOQC.js} +2 -2
  7. package/dist/{GridList-CEzzyr-l.js → GridList-DjRnMEae.js} +17 -17
  8. package/dist/{Group-D3Qa6PrV.js → Group-BQu67pVS.js} +3 -3
  9. package/dist/{Input-CX_rocyZ.js → Input-DWRQF0ro.js} +7 -7
  10. package/dist/{Label-Bg5O81Wb.js → Label-BXvY41yE.js} +1 -1
  11. package/dist/{ListBox-CCWXTj0t.js → ListBox-DTKMdjQC.js} +14 -14
  12. package/dist/{RSPContexts-CrNYmadY.js → RSPContexts-DQtGvvpM.js} +4 -4
  13. package/dist/{SelectionManager-XOAt-Ekx.js → SelectionManager-JxXmb3-k.js} +7 -7
  14. package/dist/{Separator-DZeg0KOr.js → Separator-CX64zwq8.js} +3 -3
  15. package/dist/{Slider-fULMI0gI.js → Slider-Clme2C36.js} +11 -11
  16. package/dist/{Text-WqetJduR.js → Text-qjognpzK.js} +1 -1
  17. package/dist/{VisuallyHidden-Di1zXprL.js → VisuallyHidden-BZPezMV5.js} +2 -2
  18. package/dist/{ariaHideOutside-Zn64-frS.js → ariaHideOutside-BZ5z6iCD.js} +2 -2
  19. package/dist/assets/style.css +1 -1
  20. package/dist/assets/wp-ui-enhancements.css +1 -1
  21. package/dist/{button-MFj-FKsM.js → button-IxfzzzbP.js} +6 -5
  22. package/dist/components/base-control/base-control.js +1 -1
  23. package/dist/components/button/button.js +4 -4
  24. package/dist/components/checkbox/checkbox.js +1 -1
  25. package/dist/components/color-pickers/color-swatch.js +2 -2
  26. package/dist/components/color-pickers/gradient-editor.js +2 -2
  27. package/dist/components/color-pickers/solid-color-picker.js +20 -20
  28. package/dist/components/component-toggle/component-toggle.js +2 -2
  29. package/dist/components/container-panel/container-panel.js +1 -1
  30. package/dist/components/draggable-list/draggable-list-item.js +2 -2
  31. package/dist/components/draggable-list/draggable-list.js +2 -2
  32. package/dist/components/expandable/expandable.js +3 -3
  33. package/dist/components/index.js +8 -6
  34. package/dist/components/input-field/input-field.js +7 -7
  35. package/dist/components/link-input/link-input.js +12 -12
  36. package/dist/components/list-box/list-box.js +1 -1
  37. package/dist/components/matrix-align/matrix-align.js +3 -3
  38. package/dist/components/menu/menu.js +15 -14
  39. package/dist/components/modal/modal.js +318 -0
  40. package/dist/components/number-picker/number-picker.js +10 -10
  41. package/dist/components/option-select/option-select.js +1 -1
  42. package/dist/components/popover/popover.js +198 -7
  43. package/dist/components/radio/radio.js +13 -13
  44. package/dist/components/repeater/repeater-item.js +3 -3
  45. package/dist/components/repeater/repeater.js +4 -4
  46. package/dist/components/responsive/responsive-legacy.js +2 -2
  47. package/dist/components/responsive/responsive.js +2 -2
  48. package/dist/components/slider/column-config-slider.js +2 -2
  49. package/dist/components/slider/slider.js +3 -3
  50. package/dist/components/tabs/tabs.js +9 -9
  51. package/dist/components/toggle/switch.js +6 -6
  52. package/dist/components/toggle/toggle.js +1 -1
  53. package/dist/components/toggle-button/toggle-button.js +6 -6
  54. package/dist/components/tooltip/tooltip.js +3 -3
  55. package/dist/{context-4oSz1ItD.js → context-BG_1RnbC.js} +1 -1
  56. package/dist/{focusSafely-BS4dllCW.js → focusSafely-DGZ4R5fj.js} +1 -1
  57. package/dist/icons/jsx-svg.js +1 -4559
  58. package/dist/index.js +8 -6
  59. package/dist/{intlStrings-Dxaeitoh.js → intlStrings-CkuKCPkT.js} +1 -1
  60. package/dist/react-jsx-parser.min-DhrYeqLL.js +4563 -0
  61. package/dist/{textSelection-exP_9srp.js → textSelection-BLyBtNe2.js} +1 -1
  62. package/dist/{tooltip-Do_imFfg.js → tooltip-DSk8I1SO.js} +9 -9
  63. package/dist/{useButton-DbjDV_33.js → useButton-EJ9c8fmq.js} +3 -3
  64. package/dist/{useEvent-zvxfEnmK.js → useEvent-Cxq_BzP_.js} +1 -1
  65. package/dist/{useFocusRing-SPRI0-SN.js → useFocusRing-Dg5Y_10S.js} +1 -1
  66. package/dist/{useFocusable-CLmhO94g.js → useFocusable-CQZyQp4q.js} +2 -2
  67. package/dist/{useFormReset-BVWgcyGO.js → useFormReset-DJMtIgSL.js} +1 -1
  68. package/dist/{useFormValidationState-CthG9Fbc.js → useFormValidationState-DDC_nImg.js} +2 -2
  69. package/dist/{useHasTabbableChild--gkWUICh.js → useHasTabbableChild-M3O3VIil.js} +2 -2
  70. package/dist/{useLabel-g836T8kL.js → useLabel-6NqYraET.js} +2 -2
  71. package/dist/{useLabels-CfOtyOe2.js → useLabels-D2RG7TdI.js} +1 -1
  72. package/dist/{useListState-DnWZa__1.js → useListState-IllYYnXV.js} +1 -1
  73. package/dist/{useLocalizedStringFormatter-BQCMno9k.js → useLocalizedStringFormatter-Cwm_siat.js} +1 -1
  74. package/dist/{useNumberFieldState-BegO5X6F.js → useNumberFieldState-CVJOJnF1.js} +9 -9
  75. package/dist/{useNumberFormatter-DhOGEsEK.js → useNumberFormatter-DVZRQXk3.js} +1 -1
  76. package/dist/{usePress-CScNeV3V.js → usePress-CiXj8dLE.js} +3 -3
  77. package/dist/{useToggle-6LnpaJ7-.js → useToggle-CV-IX6nL.js} +4 -4
  78. package/dist/{useToggleState-Cymkpac8.js → useToggleState-DHIdITtQ.js} +1 -1
  79. package/dist/{utils-Dc35LwuT.js → utils-DC-UMp1n.js} +3 -3
  80. package/package.json +1 -1
@@ -0,0 +1,318 @@
1
+ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
+ import { c as $a11501f3d1d39e6c$export$ea8f71083e90600f, d as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, e as $337b884510726a0d$export$14c98a7594375490, f as $de32f1b87079253c$export$d2f961adcb0afbe, g as $337b884510726a0d$export$c6fdb837b070b4ff, h as $86ea4cb521eb2e37$export$2317d149ed6f78c4, b as $de32f1b87079253c$export$2e1e1122cf0cba88, a as $de32f1b87079253c$export$3ddf2d174ce01153 } from "../../Dialog-DJgS0mAg.js";
3
+ import { a as $4e85f108e88277b8$export$d688439359537581 } from "../../RSPContexts-DQtGvvpM.js";
4
+ import { o as $b5e257d569688ac6$export$535bd6ca7f90a273, d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, l as $df56164dff5785e2$export$4338b53315abf666, p as $64fa3d84918910a7$export$45fda7c47f93fd48, q as $64fa3d84918910a7$export$6d3443f2c48bfc20, c as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, m as $5dc95899b306f630$export$c9058316764c140e } from "../../utils-DC-UMp1n.js";
5
+ import React__default, { useState, useEffect, forwardRef, useContext, useRef, useMemo, createContext } from "react";
6
+ import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
7
+ import { $ as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../../tooltip-DSk8I1SO.js";
8
+ import { $ as $5e3802645cc19319$export$1c3ebcada18427bf } from "../../ariaHideOutside-BZ5z6iCD.js";
9
+ import { B as Button } from "../../button-IxfzzzbP.js";
10
+ import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
11
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
12
+ import { icons } from "../../icons/icons.js";
13
+ import "../../react-jsx-parser.min-DhrYeqLL.js";
14
+ import { HStack } from "../layout/hstack.js";
15
+ let $5df64b3807dc15ee$var$visualViewport = typeof document !== "undefined" && window.visualViewport;
16
+ function $5df64b3807dc15ee$export$d699905dd57c73ca() {
17
+ let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273();
18
+ let [size, setSize] = useState(() => isSSR ? {
19
+ width: 0,
20
+ height: 0
21
+ } : $5df64b3807dc15ee$var$getViewportSize());
22
+ useEffect(() => {
23
+ let onResize = () => {
24
+ setSize((size2) => {
25
+ let newSize = $5df64b3807dc15ee$var$getViewportSize();
26
+ if (newSize.width === size2.width && newSize.height === size2.height) return size2;
27
+ return newSize;
28
+ });
29
+ };
30
+ if (!$5df64b3807dc15ee$var$visualViewport) window.addEventListener("resize", onResize);
31
+ else $5df64b3807dc15ee$var$visualViewport.addEventListener("resize", onResize);
32
+ return () => {
33
+ if (!$5df64b3807dc15ee$var$visualViewport) window.removeEventListener("resize", onResize);
34
+ else $5df64b3807dc15ee$var$visualViewport.removeEventListener("resize", onResize);
35
+ };
36
+ }, []);
37
+ return size;
38
+ }
39
+ function $5df64b3807dc15ee$var$getViewportSize() {
40
+ return {
41
+ width: $5df64b3807dc15ee$var$visualViewport && ($5df64b3807dc15ee$var$visualViewport === null || $5df64b3807dc15ee$var$visualViewport === void 0 ? void 0 : $5df64b3807dc15ee$var$visualViewport.width) || window.innerWidth,
42
+ height: $5df64b3807dc15ee$var$visualViewport && ($5df64b3807dc15ee$var$visualViewport === null || $5df64b3807dc15ee$var$visualViewport === void 0 ? void 0 : $5df64b3807dc15ee$var$visualViewport.height) || window.innerHeight
43
+ };
44
+ }
45
+ function $8ac8429251c45e4b$export$dbc0f175b25fb0fb(props, state, ref) {
46
+ let { overlayProps, underlayProps } = $a11501f3d1d39e6c$export$ea8f71083e90600f({
47
+ ...props,
48
+ isOpen: state.isOpen,
49
+ onClose: state.close
50
+ }, ref);
51
+ $49c51c25361d4cd2$export$ee0f7cc6afcd1c18({
52
+ isDisabled: !state.isOpen
53
+ });
54
+ $337b884510726a0d$export$14c98a7594375490();
55
+ useEffect(() => {
56
+ if (state.isOpen) return $5e3802645cc19319$export$1c3ebcada18427bf([
57
+ ref.current
58
+ ]);
59
+ }, [
60
+ state.isOpen,
61
+ ref
62
+ ]);
63
+ return {
64
+ modalProps: $3ef42575df84b30b$export$9d1611c77c2fe928(overlayProps),
65
+ underlayProps
66
+ };
67
+ }
68
+ function $5cb03073d3f54797$var$Heading(props, ref) {
69
+ [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e85f108e88277b8$export$d688439359537581);
70
+ let { children, level = 3, className, ...domProps } = props;
71
+ let Element = `h${level}`;
72
+ return /* @__PURE__ */ React__default.createElement(Element, {
73
+ ...domProps,
74
+ ref,
75
+ className: className !== null && className !== void 0 ? className : "react-aria-Heading"
76
+ }, children);
77
+ }
78
+ const $5cb03073d3f54797$export$a8a3e93435678ff9 = /* @__PURE__ */ forwardRef($5cb03073d3f54797$var$Heading);
79
+ const $f3f84453ead64de5$export$ab57792b9b6974a6 = /* @__PURE__ */ createContext(null);
80
+ const $f3f84453ead64de5$var$InternalModalContext = /* @__PURE__ */ createContext(null);
81
+ function $f3f84453ead64de5$var$Modal(props, ref) {
82
+ let ctx = useContext($f3f84453ead64de5$var$InternalModalContext);
83
+ if (ctx) return /* @__PURE__ */ React__default.createElement($f3f84453ead64de5$var$ModalContent, {
84
+ ...props,
85
+ modalRef: ref
86
+ }, props.children);
87
+ let { isDismissable, isKeyboardDismissDisabled, isOpen, defaultOpen, onOpenChange, children, isEntering, isExiting, UNSTABLE_portalContainer, shouldCloseOnInteractOutside, ...otherProps } = props;
88
+ return /* @__PURE__ */ React__default.createElement($f3f84453ead64de5$export$8948f78d83984c69, {
89
+ isDismissable,
90
+ isKeyboardDismissDisabled,
91
+ isOpen,
92
+ defaultOpen,
93
+ onOpenChange,
94
+ isEntering,
95
+ isExiting,
96
+ UNSTABLE_portalContainer,
97
+ shouldCloseOnInteractOutside
98
+ }, /* @__PURE__ */ React__default.createElement($f3f84453ead64de5$var$ModalContent, {
99
+ ...otherProps,
100
+ modalRef: ref
101
+ }, children));
102
+ }
103
+ const $f3f84453ead64de5$export$2b77a92f1a5ad772 = /* @__PURE__ */ forwardRef($f3f84453ead64de5$var$Modal);
104
+ function $f3f84453ead64de5$var$ModalOverlayWithForwardRef(props, ref) {
105
+ [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $f3f84453ead64de5$export$ab57792b9b6974a6);
106
+ let contextState = useContext($de32f1b87079253c$export$d2f961adcb0afbe);
107
+ let localState = $fc909762b330b746$export$61c6a8c84e605fb6(props);
108
+ let state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
109
+ let objectRef = $df56164dff5785e2$export$4338b53315abf666(ref);
110
+ let modalRef = useRef(null);
111
+ let isOverlayExiting = $64fa3d84918910a7$export$45fda7c47f93fd48(objectRef, state.isOpen);
112
+ let isModalExiting = $64fa3d84918910a7$export$45fda7c47f93fd48(modalRef, state.isOpen);
113
+ let isExiting = isOverlayExiting || isModalExiting || props.isExiting || false;
114
+ let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273();
115
+ if (!state.isOpen && !isExiting || isSSR) return null;
116
+ return /* @__PURE__ */ React__default.createElement($f3f84453ead64de5$var$ModalOverlayInner, {
117
+ ...props,
118
+ state,
119
+ isExiting,
120
+ overlayRef: objectRef,
121
+ modalRef
122
+ });
123
+ }
124
+ const $f3f84453ead64de5$export$8948f78d83984c69 = /* @__PURE__ */ forwardRef($f3f84453ead64de5$var$ModalOverlayWithForwardRef);
125
+ function $f3f84453ead64de5$var$ModalOverlayInner({ UNSTABLE_portalContainer, ...props }) {
126
+ let modalRef = props.modalRef;
127
+ let { state } = props;
128
+ let { modalProps, underlayProps } = $8ac8429251c45e4b$export$dbc0f175b25fb0fb(props, state, modalRef);
129
+ let entering = $64fa3d84918910a7$export$6d3443f2c48bfc20(props.overlayRef) || props.isEntering || false;
130
+ let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
131
+ ...props,
132
+ defaultClassName: "react-aria-ModalOverlay",
133
+ values: {
134
+ isEntering: entering,
135
+ isExiting: props.isExiting,
136
+ state
137
+ }
138
+ });
139
+ let viewport = $5df64b3807dc15ee$export$d699905dd57c73ca();
140
+ let style = {
141
+ ...renderProps.style,
142
+ "--visual-viewport-height": viewport.height + "px"
143
+ };
144
+ return /* @__PURE__ */ React__default.createElement($337b884510726a0d$export$c6fdb837b070b4ff, {
145
+ isExiting: props.isExiting,
146
+ portalContainer: UNSTABLE_portalContainer
147
+ }, /* @__PURE__ */ React__default.createElement("div", {
148
+ ...$3ef42575df84b30b$export$9d1611c77c2fe928($65484d02dcb7eb3e$export$457c3d6518dd4c6f(props), underlayProps),
149
+ ...renderProps,
150
+ style,
151
+ ref: props.overlayRef,
152
+ "data-entering": entering || void 0,
153
+ "data-exiting": props.isExiting || void 0
154
+ }, /* @__PURE__ */ React__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
155
+ values: [
156
+ [
157
+ $f3f84453ead64de5$var$InternalModalContext,
158
+ {
159
+ modalProps,
160
+ modalRef,
161
+ isExiting: props.isExiting,
162
+ isDismissable: props.isDismissable
163
+ }
164
+ ],
165
+ [
166
+ $de32f1b87079253c$export$d2f961adcb0afbe,
167
+ state
168
+ ]
169
+ ]
170
+ }, renderProps.children)));
171
+ }
172
+ function $f3f84453ead64de5$var$ModalContent(props) {
173
+ let { modalProps, modalRef, isExiting, isDismissable } = useContext($f3f84453ead64de5$var$InternalModalContext);
174
+ let state = useContext($de32f1b87079253c$export$d2f961adcb0afbe);
175
+ let mergedRefs = useMemo(() => $5dc95899b306f630$export$c9058316764c140e(props.modalRef, modalRef), [
176
+ props.modalRef,
177
+ modalRef
178
+ ]);
179
+ let ref = $df56164dff5785e2$export$4338b53315abf666(mergedRefs);
180
+ let entering = $64fa3d84918910a7$export$6d3443f2c48bfc20(ref);
181
+ let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
182
+ ...props,
183
+ defaultClassName: "react-aria-Modal",
184
+ values: {
185
+ isEntering: entering,
186
+ isExiting,
187
+ state
188
+ }
189
+ });
190
+ return /* @__PURE__ */ React__default.createElement("div", {
191
+ ...$3ef42575df84b30b$export$9d1611c77c2fe928($65484d02dcb7eb3e$export$457c3d6518dd4c6f(props), modalProps),
192
+ ...renderProps,
193
+ ref,
194
+ "data-entering": entering || void 0,
195
+ "data-exiting": isExiting || void 0
196
+ }, isDismissable && /* @__PURE__ */ React__default.createElement($86ea4cb521eb2e37$export$2317d149ed6f78c4, {
197
+ onDismiss: state.close
198
+ }), renderProps.children);
199
+ }
200
+ /**
201
+ * Modal dialog.
202
+ *
203
+ * @component
204
+ * @param {Object} props - Component props.
205
+ * @param {boolean} [props.open] - **Controlled mode ** - whether the modal is open.
206
+ * @param {boolean} [props.defaultOpen] - **Uncontrolled mode ** - whether the modal is initially open.
207
+ * @param {string|JSX.Element} [props.triggerLabel] - Label for the trigger button.
208
+ * @param {JSX.Element} [props.triggerIcon] - Trigger button icon.
209
+ * @param {Object} [props.triggerProps] - Props to pass to the trigger button.
210
+ * @param {ReactNode} [props.customTrigger] - If provided, replaces the default trigger button. The passed component should be something button-related that can open the modal.
211
+ * @param {string|JSX.Element} [props.title] - Title of the modal.
212
+ * @param {boolean} [props.noCloseButton] - If `true`, the close button will not be displayed.
213
+ * @param {boolean} [props.noClickToDismiss] - If `true`, the modal will not close when clicking outside of it.
214
+ * @param {boolean} [props.noKeyboardDismiss] - If `true`, the modal will not close when pressing the `Esc` key.
215
+ * @param {string} [props.className] - Classes to pass to the modal container.
216
+ * @param {string} [props.overlayClassName] - Classes to pass to the modal backdrop.
217
+ * @param {Function} [props.shouldCloseOnInteractOutside=() => true] - Allows ignoring close events for certain elements. `(element: HTMLElement) => boolean`.
218
+ *
219
+ * @returns {JSX.Element} The Modal component.
220
+ *
221
+ * @example
222
+ * <Modal>
223
+ * <p>Modal content</p>
224
+ * </Modal>
225
+ *
226
+ * @preserve
227
+ */
228
+ const Modal = (props) => {
229
+ const {
230
+ children,
231
+ shouldCloseOnInteractOutside,
232
+ open,
233
+ defaultOpen,
234
+ triggerLabel,
235
+ triggerIcon,
236
+ triggerProps,
237
+ customTrigger,
238
+ title,
239
+ noCloseButton,
240
+ noClickToDismiss,
241
+ noKeyboardDismiss,
242
+ "aria-label": ariaLabel,
243
+ className,
244
+ overlayClassName
245
+ } = props;
246
+ return /* @__PURE__ */ jsxs($de32f1b87079253c$export$2e1e1122cf0cba88, { children: [
247
+ !customTrigger && /* @__PURE__ */ jsx(
248
+ Button,
249
+ {
250
+ icon: triggerIcon,
251
+ ...triggerProps,
252
+ children: triggerLabel ?? (!triggerIcon && __("Open", "eightshift-frontend-libs"))
253
+ }
254
+ ),
255
+ customTrigger,
256
+ /* @__PURE__ */ jsx(
257
+ $f3f84453ead64de5$export$8948f78d83984c69,
258
+ {
259
+ isDismissable: !noClickToDismiss,
260
+ defaultOpen,
261
+ isOpen: open,
262
+ shouldCloseOnInteractOutside,
263
+ isKeyboardDismissDisabled: noKeyboardDismiss,
264
+ className: clsx(
265
+ "es-uic-fixed es-uic-inset-0 es-uic-z-10 es-uic-flex es-uic-min-h-full es-uic-items-center es-uic-justify-center es-uic-overflow-y-auto es-uic-bg-black/25 es-uic-p-4 es-uic-text-center es-uic-backdrop-blur",
266
+ "entering:es-uic-duration-300 entering:es-uic-ease-out entering:es-uic-animate-in entering:es-uic-fade-in",
267
+ "exiting:es-uic-duration-200 exiting:es-uic-ease-in exiting:es-uic-animate-out exiting:es-uic-fade-out",
268
+ overlayClassName
269
+ ),
270
+ children: /* @__PURE__ */ jsx(
271
+ $f3f84453ead64de5$export$2b77a92f1a5ad772,
272
+ {
273
+ className: clsx(
274
+ "es-uic-w-full es-uic-max-w-lg es-uic-overflow-hidden es-uic-rounded-xl es-uic-border es-uic-border-gray-100 es-uic-bg-white es-uic-p-5 es-uic-text-left es-uic-align-middle es-uic-shadow-xl",
275
+ "entering:es-uic-duration-300 entering:es-uic-ease-out entering:es-uic-animate-in entering:es-uic-zoom-in-95",
276
+ "exiting:es-uic-duration-200 exiting:es-uic-ease-in exiting:es-uic-animate-out exiting:es-uic-zoom-out-95",
277
+ className
278
+ ),
279
+ children: /* @__PURE__ */ jsx(
280
+ $de32f1b87079253c$export$3ddf2d174ce01153,
281
+ {
282
+ className: "es-uic-relative es-uic-text-sm es-uic-outline-none",
283
+ "aria-label": ariaLabel,
284
+ children: ({ close }) => /* @__PURE__ */ jsxs(Fragment, { children: [
285
+ /* @__PURE__ */ jsxs(HStack, { children: [
286
+ title && /* @__PURE__ */ jsx(
287
+ $5cb03073d3f54797$export$a8a3e93435678ff9,
288
+ {
289
+ className: "es-uic-text-balance es-uic-text-base",
290
+ slot: "title",
291
+ children: title
292
+ }
293
+ ),
294
+ !noCloseButton && /* @__PURE__ */ jsx(
295
+ Button,
296
+ {
297
+ className: "es-uic-ml-auto",
298
+ onPress: close,
299
+ type: "ghost",
300
+ size: "small",
301
+ icon: icons.clear,
302
+ "aria-label": __("Close modal", "eightshift-frontend-libs")
303
+ }
304
+ )
305
+ ] }),
306
+ children
307
+ ] })
308
+ }
309
+ )
310
+ }
311
+ )
312
+ }
313
+ )
314
+ ] });
315
+ };
316
+ export {
317
+ Modal
318
+ };
@@ -1,17 +1,17 @@
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-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";
3
+ import { $ as $a049562f99e7db0e$export$f9c6924e160136d1, a as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 } from "../../Group-BQu67pVS.js";
4
+ import { $ as $3985021b0ad6602f$export$37fb8590cf2c088c, a as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-DWRQF0ro.js";
5
+ import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-BXvY41yE.js";
6
+ import { $ as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "../../Button-DTARR6Ff.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-DC-UMp1n.js";
8
+ import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-CviphIN5.js";
9
9
  import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu75_.js";
10
- import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-WqetJduR.js";
10
+ import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-qjognpzK.js";
11
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-MFj-FKsM.js";
12
+ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-BG_1RnbC.js";
13
+ import { $ as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, a as $81397a9303501bda$export$23f548e970bdf099 } from "../../useNumberFieldState-CVJOJnF1.js";
14
+ import { B as Button } from "../../button-IxfzzzbP.js";
15
15
  import { icons } from "../../icons/icons.js";
16
16
  import { c as clsx } from "../../lite-DVmmD_-j.js";
17
17
  import { BaseControl } from "../base-control/base-control.js";
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Fragment } from "react";
3
3
  import { icons } from "../../icons/icons.js";
4
4
  import { BaseControl } from "../base-control/base-control.js";
5
- import { a as ButtonGroup } from "../../button-MFj-FKsM.js";
5
+ import { a as ButtonGroup } from "../../button-IxfzzzbP.js";
6
6
  import { Menu, MenuSeparator, MenuItem } from "../menu/menu.js";
7
7
  import { RadioButtonGroup, RadioButton } from "../radio/radio.js";
8
8
  import { RichLabel } from "../rich-label/rich-label.js";
@@ -1,9 +1,200 @@
1
- import "react/jsx-runtime";
2
- import { P, T } from "../../popover-CdonDPqG.js";
3
- import "../../lite-DVmmD_-j.js";
4
- import "../../default-i18n-BqwLkgZv.js";
5
- import "../../button-MFj-FKsM.js";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d, a as $de32f1b87079253c$export$3ddf2d174ce01153, b as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "../../Dialog-DJgS0mAg.js";
3
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
4
+ import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
5
+ import { B as Button } from "../../button-IxfzzzbP.js";
6
+ /**
7
+ * A popover component.
8
+ *
9
+ * Two modes of operation are supported:
10
+ * - **controlled mode**: pass `isOpen` and `onOpenChange` to control when the popover is open.
11
+ * - **uncontrolled mode**: pass `openByDefault` to set the initial popover state. The show/hide state will be managed internally, based on the interaction with the trigger button.
12
+ *
13
+ * @component
14
+ * @param {Object} props - Component props.
15
+ * @param {React.Ref} props.triggerRef - Ref of the trigger button. In uncontrolled mode, this element will be used to open the popover. In controlled mode, the popover will be anchored to this element.
16
+ * @param {boolean} [props.openByDefault=false] - (**Controlled mode**) If `true`, the popover is open by default.
17
+ * @param {boolean} props.isOpen - (**Uncontrolled mode**) If `true`, the popover is open.
18
+ * @param {Function} props.onOpenChange - (**Uncontrolled mode**) Function to run when the popover is opened or closed. `(isOpen: boolean) => void`.
19
+ * @param {PopoverPlacement} props.placement - The placement of the popover.
20
+ * @param {string} [props.className] - Classes to pass to the popover contents.
21
+ * @param {string} [props.wrapperClassName] - Classes to pass to the popover wrapper.
22
+ * @param {Object} props.style - Styles to pass to the popover.
23
+ * @param {number} props.offset - Offset from the trigger element, on the same axis as the placement of the popover (e.g. if `placement` is `left`, this controls the horizontal spacing from the element).
24
+ * @param {number} props.crossOffset - Offset from the trigger element, on the opposite axis as the placement of the popover (e.g. if `placement` is `left`, this controls the vertical spacing from the element).
25
+ * @param {number} props.containerPadding - Space that should be left between the popover and the edge of the container (the default container is browser window).
26
+ * @param {boolean} props.shouldFlip - If `true`, the popover should flip when there is not enough space.
27
+ * @param {Function} [props.shouldCloseOnInteractOutside=() => true] - Allows ignoring close events for certain elements. `(element: HTMLElement) => boolean`.
28
+ * @param {boolean} [props.hidden] - If `true`, the component is not rendered.
29
+ *
30
+ * @returns {JSX.Element} The Popover component.
31
+ *
32
+ * @typedef {'bottom' | 'bottom left' | 'bottom right' | 'bottom start' | 'bottom end' | 'top' | 'top left' | 'top right' | 'top start' | 'top end' | 'left' | 'left top' | 'left bottom' | 'start' | 'start top' | 'start bottom' | 'right' | 'right top' | 'right bottom' | 'end' | 'end top' | 'end bottom'} PopoverPlacement
33
+ *
34
+ * @example
35
+ * // Uncontrolled mode.
36
+ * const ref = useRef(null);
37
+ *
38
+ * <Button forwardedRef={ref}>Open popover</Button>
39
+ *
40
+ * <Popover
41
+ * triggerRef={triggerRef}
42
+ * openByDefault={true}
43
+ * >
44
+ * ...
45
+ * </Popover>
46
+ *
47
+ * @example
48
+ * // Controlled mode.
49
+ * const [open, setOpen] = useState(false);
50
+ *
51
+ * <Button onPress={() => setOpen(true)}>Open popover</Button>
52
+ *
53
+ * <Popover
54
+ * onOpenChange={setOpen}
55
+ * isOpen={open}
56
+ * triggerRef={triggerRef}
57
+ * >
58
+ * ...
59
+ * <Button onPress={() => setOpen(false)}>Close popover</Button>
60
+ * </Popover>
61
+ *
62
+ * @preserve
63
+ */
64
+ const Popover = (props) => {
65
+ const {
66
+ children,
67
+ triggerRef,
68
+ openByDefault,
69
+ isOpen,
70
+ onOpenChange,
71
+ placement,
72
+ className,
73
+ wrapperClassName,
74
+ style,
75
+ offset,
76
+ crossOffset,
77
+ containerPadding,
78
+ shouldFlip,
79
+ shouldCloseOnInteractOutside = () => true,
80
+ hidden,
81
+ ...other
82
+ } = props;
83
+ if (hidden) {
84
+ return null;
85
+ }
86
+ return /* @__PURE__ */ jsx(
87
+ $07b14b47974efb58$export$5b6b19405a83ff9d,
88
+ {
89
+ shouldFlip,
90
+ shouldCloseOnInteractOutside,
91
+ triggerRef,
92
+ isOpen,
93
+ onOpenChange,
94
+ defaultOpen: openByDefault,
95
+ placement,
96
+ offset,
97
+ crossOffset,
98
+ containerPadding,
99
+ className: ({ isEntering, isExiting }) => clsx(
100
+ "es-uic-rounded-md es-uic-border es-uic-border-gray-200 es-uic-bg-white es-uic-shadow-lg es-uic-outline-none",
101
+ isEntering && "es-uic-outline es-uic-animate-in es-uic-fade-in-0 es-uic-slide-in-from-top-2 es-uic-fill-mode-forwards",
102
+ isExiting && "es-uic-outline es-uic-animate-out es-uic-fade-out-0 es-uic-slide-out-to-top-2 es-uic-fill-mode-forwards",
103
+ wrapperClassName
104
+ ),
105
+ style,
106
+ children: /* @__PURE__ */ jsx(
107
+ $de32f1b87079253c$export$3ddf2d174ce01153,
108
+ {
109
+ className: clsx("es-uic-p-1 es-uic-text-sm es-uic-outline-none", className),
110
+ ...other,
111
+ children
112
+ }
113
+ )
114
+ }
115
+ );
116
+ };
117
+ /**
118
+ * A simple version of the Popover component that includes a trigger button.
119
+ * The control of the popover is handled internally. A custom trigger can be provided.
120
+ *
121
+ * If you need more control over the trigger, use the Popover component directly.
122
+ *
123
+ * @component
124
+ * @param {Object} props - Component props.
125
+ * @param {JSX.Element} props.trigger - Allows using a custom trigger element.
126
+ * @param {JSX.Element} [props.triggerButtonIcon] - The icon for the built-in trigger button.
127
+ * @param {string} props.triggerButtonLabel - The label for the built-in trigger button.
128
+ * @param {Object} props.triggerButtonProps - Props to pass to the built-in trigger button.
129
+ * @param {Function} props.onOpenChange - Function to run when the popover is opened or closed. `(isOpen: boolean) => void`.
130
+ * @param {boolean} props.openByDefault - If `true`, the popover is open by default.
131
+ * @param {PopoverPlacement} props.placement - The placement of the popover.
132
+ * @param {string} props.className - Classes to pass to the popover.
133
+ * @param {Object} props.style - Styles to pass to the popover.
134
+ * @param {number} props.offset - Offset from the trigger element, on the same axis as the placement of the popover (e.g. if `placement` is `left`, this controls the horizontal spacing from the element).
135
+ * @param {number} props.crossOffset - Offset from the trigger element, on the opposite axis as the placement of the popover (e.g. if `placement` is `left`, this controls the vertical spacing from the element).
136
+ * @param {number} props.containerPadding - Space that should be left between the popover and the edge of the container (the default container is browser window).
137
+ * @param {boolean} [props.hidden] - If `true`, the component is not rendered.
138
+ *
139
+ * @returns {JSX.Element} The TriggeredPopover component.
140
+ *
141
+ * @typedef {'bottom' | 'bottom left' | 'bottom right' | 'bottom start' | 'bottom end' | 'top' | 'top left' | 'top right' | 'top start' | 'top end' | 'left' | 'left top' | 'left bottom' | 'start' | 'start top' | 'start bottom' | 'right' | 'right top' | 'right bottom' | 'end' | 'end top' | 'end bottom'} PopoverPlacement
142
+ *
143
+ * @example
144
+ * <TriggeredPopover>
145
+ * ...
146
+ * </TriggeredPopover>
147
+ *
148
+ * @preserve
149
+ */
150
+ const TriggeredPopover = (props) => {
151
+ const {
152
+ trigger,
153
+ triggerButtonIcon,
154
+ triggerButtonLabel = !triggerButtonIcon && __("Open", "eightshift-ui-components"),
155
+ triggerButtonProps,
156
+ children,
157
+ onOpenChange,
158
+ openByDefault,
159
+ placement,
160
+ style,
161
+ className,
162
+ offset,
163
+ crossOffset,
164
+ containerPadding,
165
+ hidden,
166
+ ...rest
167
+ } = props;
168
+ if (hidden) {
169
+ return null;
170
+ }
171
+ return /* @__PURE__ */ jsxs($de32f1b87079253c$export$2e1e1122cf0cba88, { onOpenChange, children: [
172
+ trigger,
173
+ !trigger && /* @__PURE__ */ jsx(
174
+ Button,
175
+ {
176
+ icon: triggerButtonIcon,
177
+ ...triggerButtonProps,
178
+ children: triggerButtonLabel
179
+ }
180
+ ),
181
+ /* @__PURE__ */ jsx(
182
+ Popover,
183
+ {
184
+ placement,
185
+ openByDefault,
186
+ offset,
187
+ crossOffset,
188
+ containerPadding,
189
+ className,
190
+ style,
191
+ ...rest,
192
+ children
193
+ }
194
+ )
195
+ ] });
196
+ };
6
197
  export {
7
- P as Popover,
8
- T as TriggeredPopover
198
+ Popover,
199
+ TriggeredPopover
9
200
  };
@@ -1,20 +1,20 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-Bg5O81Wb.js";
3
- import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, c as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, l as $df56164dff5785e2$export$4338b53315abf666, m as $5dc95899b306f630$export$c9058316764c140e, i as $64fa3d84918910a7$export$ef03459518577ad4 } from "../../utils-Dc35LwuT.js";
4
- import { a as $2baaea4c71418dea$export$294aa081a6c6f55d, $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-J1-YPbi6.js";
2
+ import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-BXvY41yE.js";
3
+ import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, c as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, l as $df56164dff5785e2$export$4338b53315abf666, m as $5dc95899b306f630$export$c9058316764c140e, i as $64fa3d84918910a7$export$ef03459518577ad4 } from "../../utils-DC-UMp1n.js";
4
+ import { a as $2baaea4c71418dea$export$294aa081a6c6f55d, $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-CviphIN5.js";
5
5
  import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu75_.js";
6
- import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-WqetJduR.js";
6
+ import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-qjognpzK.js";
7
7
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
8
8
  import React__default, { useMemo, useState, forwardRef, createContext, cloneElement } from "react";
9
- import { a as $e93e671b31057976$export$b8473d3665f3a75a, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "../../useFormValidationState-CthG9Fbc.js";
10
- import { d as $9ab94262bd0047c7$export$420e68273165f4ec, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-BS4dllCW.js";
11
- import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "../../FocusScope-Bw-IatMO.js";
12
- import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-4oSz1ItD.js";
13
- import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-BVWgcyGO.js";
14
- import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "../../useFocusable-CLmhO94g.js";
15
- import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../../usePress-CScNeV3V.js";
16
- import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-SPRI0-SN.js";
17
- import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-Di1zXprL.js";
9
+ import { a as $e93e671b31057976$export$b8473d3665f3a75a, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "../../useFormValidationState-DDC_nImg.js";
10
+ import { d as $9ab94262bd0047c7$export$420e68273165f4ec, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-DGZ4R5fj.js";
11
+ import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "../../FocusScope-BjM5iOQC.js";
12
+ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-BG_1RnbC.js";
13
+ import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-DJMtIgSL.js";
14
+ import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "../../useFocusable-CQZyQp4q.js";
15
+ import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../../usePress-CiXj8dLE.js";
16
+ import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-Dg5Y_10S.js";
17
+ import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-BZPezMV5.js";
18
18
  import { c as clsx } from "../../lite-DVmmD_-j.js";
19
19
  import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
20
20
  import { RichLabel } from "../rich-label/rich-label.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { $ as $bc237834342dbd75$export$48513f6b9f8ce62d } from "../../Checkbox-Cv3pZDHg.js";
3
- import { b as $72e60046c03fbe42$export$54fe942636b6416d, a as $72e60046c03fbe42$export$e96fc9a8407faa6b } from "../../GridList-CEzzyr-l.js";
4
- import { B as Button } from "../../button-MFj-FKsM.js";
2
+ import { $ as $bc237834342dbd75$export$48513f6b9f8ce62d } from "../../Checkbox-CiJIVbAP.js";
3
+ import { b as $72e60046c03fbe42$export$54fe942636b6416d, a as $72e60046c03fbe42$export$e96fc9a8407faa6b } from "../../GridList-DjRnMEae.js";
4
+ import { B as Button } from "../../button-IxfzzzbP.js";
5
5
  import { icons } from "../../icons/icons.js";
6
6
  import { c as clsx } from "../../lite-DVmmD_-j.js";
7
7
  import { Expandable } from "../expandable/expandable.js";
@@ -1,8 +1,8 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { b as $72e60046c03fbe42$export$54fe942636b6416d, $ as $72e60046c03fbe42$export$a7bfbda1311ca015 } from "../../GridList-CEzzyr-l.js";
3
- import { $ as $d8f176866e6dc039$export$2cfc5be7a55829f6, a as $d8f176866e6dc039$export$62ed72bc21f6b8a6 } from "../../ListBox-CCWXTj0t.js";
2
+ import { b as $72e60046c03fbe42$export$54fe942636b6416d, $ as $72e60046c03fbe42$export$a7bfbda1311ca015 } from "../../GridList-DjRnMEae.js";
3
+ import { $ as $d8f176866e6dc039$export$2cfc5be7a55829f6, a as $d8f176866e6dc039$export$62ed72bc21f6b8a6 } from "../../ListBox-DTKMdjQC.js";
4
4
  import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
5
- import { B as Button, a as ButtonGroup } from "../../button-MFj-FKsM.js";
5
+ import { B as Button, a as ButtonGroup } from "../../button-IxfzzzbP.js";
6
6
  import { icons } from "../../icons/icons.js";
7
7
  import { useId, useState } from "react";
8
8
  import { BaseControl } from "../base-control/base-control.js";
@@ -10,7 +10,7 @@ import { AnimatedVisibility } from "../animated-visibility/animated-visibility.j
10
10
  import { ToggleButton } from "../toggle-button/toggle-button.js";
11
11
  import { arrayMoveMultiple } from "../../utilities/array-helpers.js";
12
12
  import { c as clsx } from "../../lite-DVmmD_-j.js";
13
- import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "../../useListState-DnWZa__1.js";
13
+ import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "../../useListState-IllYYnXV.js";
14
14
  /**
15
15
  * A component that allows re-ordering a list of items with additional sub-options.
16
16
  *
@@ -1,12 +1,12 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
- import { D as DecorativeTooltip } from "../../tooltip-Do_imFfg.js";
3
+ import { D as DecorativeTooltip } from "../../tooltip-DSk8I1SO.js";
4
4
  import { c as clsx } from "../../lite-DVmmD_-j.js";
5
5
  import { _ as __, s as sprintf } from "../../default-i18n-BqwLkgZv.js";
6
6
  import { BreakpointPreview } from "../breakpoint-preview/breakpoint-preview.js";
7
7
  import { upperFirst } from "../../utilities/es-dash.js";
8
8
  import { icons } from "../../icons/icons.js";
9
- import { B as Button } from "../../button-MFj-FKsM.js";
9
+ import { B as Button } from "../../button-IxfzzzbP.js";
10
10
  import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
11
11
  import { ToggleButton } from "../toggle-button/toggle-button.js";
12
12
  import { BaseControl } from "../base-control/base-control.js";