@eightshift/ui-components 5.0.3 → 5.0.4
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.
- package/dist/{Button-BpwTmkAe.js → Button-DH22t_SM.js} +75 -6
- package/dist/{Collection-n5d0zIgb.js → Collection-uTAXq9Br.js} +1 -1
- package/dist/{Color-lVhk8V_G.js → Color-CNqKeT8D.js} +1 -1
- package/dist/{ColorSwatch-DntWEAC3.js → ColorSwatch-Dt3lRApA.js} +1 -1
- package/dist/{ComboBox-BJpTEATT.js → ComboBox-D7KpCYaK.js} +9 -9
- package/dist/{Dialog-O9uw63D7.js → Dialog-CJVCRT8_.js} +5 -5
- package/dist/{ListBox-BTxlCGcc.js → ListBox-_nDFq8-H.js} +4 -4
- package/dist/{OverlayArrow-5aDgmImj.js → OverlayArrow-CjvnevpX.js} +1 -1
- package/dist/{Separator-CaTBkETC.js → Separator-BN3mjL6q.js} +1 -1
- package/dist/{Slider-C-S1oEH9.js → Slider-uOPcIpqS.js} +1 -1
- package/dist/assets/style-admin.css +791 -247
- package/dist/assets/style-editor.css +791 -247
- package/dist/assets/style.css +791 -247
- package/dist/components/button/button.js +41 -13
- package/dist/components/checkbox/checkbox.js +2 -2
- package/dist/components/color-pickers/color-swatch.js +2 -2
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +4 -4
- package/dist/components/draggable/draggable.js +9 -5
- package/dist/components/expandable/expandable.js +1 -1
- package/dist/components/layout/hstack.js +4 -2
- package/dist/components/layout/vstack.js +4 -2
- package/dist/components/link-input/link-input.js +4 -4
- package/dist/components/menu/menu.js +2 -2
- package/dist/components/modal/modal.js +101 -77
- package/dist/components/number-picker/number-picker.js +2 -2
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/select/v2/async-select.js +4 -4
- package/dist/components/select/v2/shared.js +1 -1
- package/dist/components/select/v2/single-select.js +7 -7
- package/dist/components/slider/column-config-slider.js +1 -1
- package/dist/components/slider/slider.js +1 -1
- package/dist/components/tabs/tabs.js +6 -5
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{number-GajL10e1.js → number-CHmNj-oR.js} +2 -2
- package/dist/{useButton-Bt3BffJm.js → useButton-lRcWnvOB.js} +1 -1
- package/dist/{useListState-DkyH7elT.js → useListState-9Hq_FiRF.js} +1 -1
- package/dist/{useNumberField-CU1_u8ze.js → useNumberField-D0u2bh8g.js} +2 -2
- package/dist/{usePress-BrJylgPR.js → usePress-DWBuejBp.js} +5 -3
- package/dist/{useSingleSelectListState-C4sorv2p.js → useSingleSelectListState-DqhemUIh.js} +1 -1
- package/dist/{useToggle-CDa3YAZI.js → useToggle-yGuUBU7q.js} +1 -1
- package/package.json +11 -11
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { jsxs,
|
|
2
|
-
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, b as $0393f8ab869a0f1a$export$c17561cb55d4db30 } from "../../Button-DH22t_SM.js";
|
|
3
3
|
import { k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928, l as $df56164dff5785e2$export$4338b53315abf666 } from "../../utils-CZt7LCbO.js";
|
|
4
4
|
import { $ as $9bf71ea28793e738$export$c5251b9e124bf29 } from "../../FocusScope-BEPI2m7u.js";
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
6
|
-
import React__default, { useState, useRef, forwardRef, createContext } from "react";
|
|
6
|
+
import React__default, { useState, useRef, forwardRef, createContext, cloneElement } from "react";
|
|
7
7
|
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-BbYZoHvX.js";
|
|
8
8
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
9
9
|
import { c as cva } from "../../index-BljRBEr_.js";
|
|
10
10
|
import { Tooltip } from "../tooltip/tooltip.js";
|
|
11
11
|
import { _ as __ } from "../../default-i18n-CT_oS1Fy.js";
|
|
12
|
+
import { icons } from "../../icons/icons.js";
|
|
13
|
+
import "../../react-jsx-parser.min-DZCiis5V.js";
|
|
12
14
|
function $2680b1829e803644$export$fa142eb1681c520(props, ref) {
|
|
13
15
|
const { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, orientation = "horizontal" } = props;
|
|
14
16
|
let [isInToolbar, setInToolbar] = useState(false);
|
|
@@ -101,12 +103,14 @@ const $13c3c67164f4d5be$export$4c260019440d418f = /* @__PURE__ */ forwardRef(fun
|
|
|
101
103
|
* @param {React.Ref} [props.forwardedRef] - Ref to forward to the button. Use the same as the `ref` prop.
|
|
102
104
|
* @param {string} [props.wrapperClassName] - Classes to pass to the tooltip wrapper.
|
|
103
105
|
* @param {Object} [props.tooltipProps] - Props to pass to the tooltip.
|
|
106
|
+
* @param {boolean} [props.pending] - If `true`, the button is in a pending state, which can be used to indicate that an action is being processed.
|
|
107
|
+
* @param {string} [props.pendingAriaLabel='Loading'] - ARIA label for the pending state, used for screen readers.
|
|
104
108
|
* @param {boolean} [props.hidden] - If `true`, the component is not rendered.
|
|
105
109
|
*
|
|
106
110
|
* @returns {JSX.Element} The Button component.
|
|
107
111
|
*
|
|
108
112
|
* @typedef {'small' | 'default' | 'large'} ButtonSize
|
|
109
|
-
* @typedef {'default' | 'selected' | 'ghost' | 'danger' | 'dangerGhost'} ButtonType
|
|
113
|
+
* @typedef {'default' | 'selected' | 'selectedGhost' | 'ghost' | 'danger' | 'dangerGhost'} ButtonType
|
|
110
114
|
*
|
|
111
115
|
* @example
|
|
112
116
|
* <Button onPress={() => console.log('Hi!')} icon={icons.myIcon} />
|
|
@@ -121,6 +125,8 @@ const Button = (props) => {
|
|
|
121
125
|
icon,
|
|
122
126
|
size = "default",
|
|
123
127
|
type = "default",
|
|
128
|
+
pending,
|
|
129
|
+
pendingAriaLabel = __("Loading", "eightshift-ui-components"),
|
|
124
130
|
disabled,
|
|
125
131
|
className,
|
|
126
132
|
tooltip: rawTooltip,
|
|
@@ -150,8 +156,9 @@ const Button = (props) => {
|
|
|
150
156
|
"es:btn-group-mid:rounded-none",
|
|
151
157
|
"es:btn-group-h-start:rounded-r-none es:btn-group-v-start:rounded-b-none",
|
|
152
158
|
"es:btn-group-h-end:rounded-l-none es:btn-group-v-end:rounded-t-none",
|
|
153
|
-
"es:enabled:cursor-pointer",
|
|
159
|
+
"es:enabled:not-pending:cursor-pointer",
|
|
154
160
|
"es:shrink-0",
|
|
161
|
+
"es:pending:shadow-none! es:pending:cursor-wait",
|
|
155
162
|
icon && children ? "es:justify-start" : "es:justify-center",
|
|
156
163
|
className
|
|
157
164
|
],
|
|
@@ -173,6 +180,13 @@ const Button = (props) => {
|
|
|
173
180
|
"es:focus-visible:text-red-700",
|
|
174
181
|
"es:focus-visible:ring-red-500/30 es:focus-visible:border-red-600 es:focus-visible:inset-ring-red-100",
|
|
175
182
|
"es:disabled:border-transparent!"
|
|
183
|
+
],
|
|
184
|
+
selectedGhost: [
|
|
185
|
+
"es:border-transparent es:text-accent-600",
|
|
186
|
+
"es:enabled:hover:bg-accent-500/5 es:enabled:active:bg-accent-500/10 es:enabled:pressed:bg-accent-500/10",
|
|
187
|
+
"es:focus-visible:text-accent-700",
|
|
188
|
+
"es:focus-visible:ring-accent-500/30 es:focus-visible:border-accent-500 es:focus-visible:inset-ring-accent-100",
|
|
189
|
+
"es:disabled:border-transparent!"
|
|
176
190
|
]
|
|
177
191
|
}
|
|
178
192
|
},
|
|
@@ -300,25 +314,39 @@ const Button = (props) => {
|
|
|
300
314
|
}
|
|
301
315
|
}
|
|
302
316
|
);
|
|
303
|
-
const component = /* @__PURE__ */
|
|
317
|
+
const component = /* @__PURE__ */ jsx(
|
|
304
318
|
$d2b4bc8c273e7be6$export$353f5b6fc5456de1,
|
|
305
319
|
{
|
|
306
320
|
onPress,
|
|
307
321
|
isDisabled: disabled,
|
|
322
|
+
isPending: pending,
|
|
308
323
|
className: componentClasses({
|
|
309
|
-
disabled,
|
|
310
|
-
hasIcon: Boolean(icon),
|
|
311
|
-
iconOnly: Boolean(icon && !children),
|
|
324
|
+
disabled: !pending && disabled,
|
|
325
|
+
hasIcon: pending || Boolean(icon),
|
|
326
|
+
iconOnly: pending || Boolean(icon && !children),
|
|
312
327
|
size,
|
|
313
328
|
type
|
|
314
329
|
}),
|
|
315
330
|
ref: objRef,
|
|
316
331
|
"aria-label": ariaLabel,
|
|
317
332
|
...other,
|
|
318
|
-
children: [
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
333
|
+
children: ({ isPending }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
334
|
+
!isPending && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
335
|
+
icon,
|
|
336
|
+
children
|
|
337
|
+
] }),
|
|
338
|
+
isPending && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
339
|
+
/* @__PURE__ */ jsx(
|
|
340
|
+
$0393f8ab869a0f1a$export$c17561cb55d4db30,
|
|
341
|
+
{
|
|
342
|
+
"aria-label": pendingAriaLabel,
|
|
343
|
+
className: "es:sr-only",
|
|
344
|
+
isIndeterminate: true
|
|
345
|
+
}
|
|
346
|
+
),
|
|
347
|
+
cloneElement(icons.loader, { className: "es:motion-preset-spin es:motion-duration-1750" })
|
|
348
|
+
] })
|
|
349
|
+
] })
|
|
322
350
|
}
|
|
323
351
|
);
|
|
324
352
|
if (!tooltip) {
|
|
@@ -5,8 +5,8 @@ import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu
|
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
6
6
|
import React__default, { useEffect, useRef, forwardRef, useContext, createContext, useMemo } from "react";
|
|
7
7
|
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a, b as $e5be200c675c3b3a$export$a763b9476acd3eb, c as $e5be200c675c3b3a$export$dad6ae84456c676a } from "../../useFormValidation-Dy0PXJg5.js";
|
|
8
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../../usePress-
|
|
9
|
-
import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "../../useToggle-
|
|
8
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../../usePress-DWBuejBp.js";
|
|
9
|
+
import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "../../useToggle-yGuUBU7q.js";
|
|
10
10
|
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-ibcBUHnB.js";
|
|
11
11
|
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-Bv0UJQl8.js";
|
|
12
12
|
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../useHover-C2SkI1Fn.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $251c695a52d94a8d$export$cae13e90592f246a } from "../../ColorSwatch-
|
|
2
|
+
import { $ as $251c695a52d94a8d$export$cae13e90592f246a } from "../../ColorSwatch-Dt3lRApA.js";
|
|
3
3
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
4
4
|
import { _ as __ } from "../../default-i18n-CT_oS1Fy.js";
|
|
5
|
-
import { $ as $799cddbef784668f$export$6e865ea70d7724f } from "../../Color-
|
|
5
|
+
import { $ as $799cddbef784668f$export$6e865ea70d7724f } from "../../Color-CNqKeT8D.js";
|
|
6
6
|
/**
|
|
7
7
|
* A simple color/gradient swatch.
|
|
8
8
|
*
|
|
@@ -6,7 +6,7 @@ import { icons } from "../../icons/icons.js";
|
|
|
6
6
|
import { SolidColorPicker } from "./solid-color-picker.js";
|
|
7
7
|
import { Slider } from "../slider/slider.js";
|
|
8
8
|
import { NumberPicker } from "../number-picker/number-picker.js";
|
|
9
|
-
import { $ as $251c695a52d94a8d$export$cae13e90592f246a } from "../../ColorSwatch-
|
|
9
|
+
import { $ as $251c695a52d94a8d$export$cae13e90592f246a } from "../../ColorSwatch-Dt3lRApA.js";
|
|
10
10
|
import { Menu, MenuItem } from "../menu/menu.js";
|
|
11
11
|
import { MatrixAlign } from "../matrix-align/matrix-align.js";
|
|
12
12
|
import { Spacer } from "../spacer/spacer.js";
|
|
@@ -5,11 +5,11 @@ import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$
|
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
6
6
|
import { a as $9ab94262bd0047c7$export$420e68273165f4ec, $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-Bv0UJQl8.js";
|
|
7
7
|
import { b as $458b0a5536c1a7cf$export$40bfa8c7b0832715, g as $03deb23ff14920c4$export$4eaf04e54aa8eed6, z as $7215afc6de606d6b$export$de79e2c695e052f3, A as $46d819fcbaf35654$export$8f71654801c2f7cd, p as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, c as $c87311424ea30a05$export$fedb369cb70207f1, v as $c87311424ea30a05$export$a11b0059900ceec8, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../useHover-C2SkI1Fn.js";
|
|
8
|
-
import { $ as $799cddbef784668f$export$6e865ea70d7724f, b as $799cddbef784668f$export$4cde5df63f53f473, a as $3493a52097159720$exports } from "../../Color-
|
|
9
|
-
import {
|
|
8
|
+
import { $ as $799cddbef784668f$export$6e865ea70d7724f, b as $799cddbef784668f$export$4cde5df63f53f473, a as $3493a52097159720$exports } from "../../Color-CNqKeT8D.js";
|
|
9
|
+
import { a as $9446cca9a3875146$export$cb6e0bb50bc19463, $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "../../number-CHmNj-oR.js";
|
|
10
10
|
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../../useLabels-B7-lUnAF.js";
|
|
11
11
|
import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-D2YaWRIA.js";
|
|
12
|
-
import { e as $28f99e3e86e6ec45$export$e5fda3247f5d67f9, f as $e8a7022cf87cba2a$export$36da96379f79f245, g as $bcca50147b47f54d$export$56b2c08e277f365, h as $47b897dc8cdb026b$export$8d15029008292ae, d as $6f909507e6374d18$export$1e7083018727fa60, i as $6f909507e6374d18$export$f1fce0420cc6d8ee, j as $6f909507e6374d18$export$6189c2744041d8f8, a as $6f909507e6374d18$export$105594979f116971 } from "../../Slider-
|
|
12
|
+
import { e as $28f99e3e86e6ec45$export$e5fda3247f5d67f9, f as $e8a7022cf87cba2a$export$36da96379f79f245, g as $bcca50147b47f54d$export$56b2c08e277f365, h as $47b897dc8cdb026b$export$8d15029008292ae, d as $6f909507e6374d18$export$1e7083018727fa60, i as $6f909507e6374d18$export$f1fce0420cc6d8ee, j as $6f909507e6374d18$export$6189c2744041d8f8, a as $6f909507e6374d18$export$105594979f116971 } from "../../Slider-uOPcIpqS.js";
|
|
13
13
|
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-BbYZoHvX.js";
|
|
14
14
|
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-C9GO0IDB.js";
|
|
15
15
|
import { a as $5c3e21d68f1c4674$export$a966af930f325cab } from "../../VisuallyHidden-BYi0pekx.js";
|
|
@@ -17,7 +17,7 @@ import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError
|
|
|
17
17
|
import { a as $3985021b0ad6602f$export$37fb8590cf2c088c, $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-BmDS8Juy.js";
|
|
18
18
|
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-JS_ob-kh.js";
|
|
19
19
|
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-BuJgePCv.js";
|
|
20
|
-
import { $ as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, b as $d2e8511e6f209edf$export$e908e06f4b8e3402, c as $7d0a636d7a4dcefd$export$2123ff2b87c81ca, d as $d841c8010a73d545$export$4f384c9210e583c3, a as $81397a9303501bda$export$23f548e970bdf099 } from "../../useNumberField-
|
|
20
|
+
import { $ as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, b as $d2e8511e6f209edf$export$e908e06f4b8e3402, c as $7d0a636d7a4dcefd$export$2123ff2b87c81ca, d as $d841c8010a73d545$export$4f384c9210e583c3, a as $81397a9303501bda$export$23f548e970bdf099 } from "../../useNumberField-D0u2bh8g.js";
|
|
21
21
|
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "../../useFormValidation-Dy0PXJg5.js";
|
|
22
22
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
23
23
|
import { BaseControl } from "../base-control/base-control.js";
|
|
@@ -427,9 +427,10 @@ function computed(compute, comparator) {
|
|
|
427
427
|
return w(compute);
|
|
428
428
|
}
|
|
429
429
|
function deepEqual(a2, b2) {
|
|
430
|
-
if (a2
|
|
430
|
+
if (Object.is(a2, b2)) {
|
|
431
431
|
return true;
|
|
432
432
|
}
|
|
433
|
+
if (a2 === null || b2 === null) return false;
|
|
433
434
|
if (typeof a2 === "function" && typeof b2 === "function") {
|
|
434
435
|
return a2 === b2;
|
|
435
436
|
}
|
|
@@ -453,11 +454,13 @@ function deepEqual(a2, b2) {
|
|
|
453
454
|
);
|
|
454
455
|
return !hasDifferentValues;
|
|
455
456
|
}
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
return false;
|
|
457
|
+
if (typeof a2 === "object" && typeof b2 === "object") {
|
|
458
|
+
const aKeys = Object.keys(a2);
|
|
459
|
+
const bKeys = Object.keys(b2);
|
|
460
|
+
if (aKeys.length !== bKeys.length) return false;
|
|
461
|
+
return aKeys.some((key) => deepEqual(a2[key], b2[key]));
|
|
460
462
|
}
|
|
463
|
+
return false;
|
|
461
464
|
}
|
|
462
465
|
function reactive({ get }, _2) {
|
|
463
466
|
return {
|
|
@@ -4434,6 +4437,7 @@ render_fn = function() {
|
|
|
4434
4437
|
};
|
|
4435
4438
|
dropEffectCleanup = E(() => {
|
|
4436
4439
|
if (dragOperation.status.dropped) {
|
|
4440
|
+
queueMicrotask(() => dropEffectCleanup == null ? void 0 : dropEffectCleanup());
|
|
4437
4441
|
const onComplete = cleanup;
|
|
4438
4442
|
cleanup = void 0;
|
|
4439
4443
|
source.status = "dropping";
|
|
@@ -6,7 +6,7 @@ import { Button } from "../button/button.js";
|
|
|
6
6
|
import { icons } from "../../icons/icons.js";
|
|
7
7
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
8
8
|
import { _ as __ } from "../../default-i18n-CT_oS1Fy.js";
|
|
9
|
-
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "../../Button-
|
|
9
|
+
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "../../Button-DH22t_SM.js";
|
|
10
10
|
import { e as $bdb11010cef70236$export$f680877a34711e37, n as $b5e257d569688ac6$export$535bd6ca7f90a273, k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, o as $64fa3d84918910a7$export$c62b8e45d58ddad9, d as $3ef42575df84b30b$export$9d1611c77c2fe928, m as $5dc95899b306f630$export$c9058316764c140e } from "../../utils-CZt7LCbO.js";
|
|
11
11
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
12
12
|
import { b as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../../useHover-C2SkI1Fn.js";
|
|
@@ -5,6 +5,7 @@ import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
|
5
5
|
*
|
|
6
6
|
* @component
|
|
7
7
|
* @param {Object} props - Component props.
|
|
8
|
+
* @param {JSX.Element} [props.as] - Element to render the component as. Defaults to `div`.
|
|
8
9
|
* @param {boolean} [props.noWrap] - If `true`, the children will not wrap if their size exceeds the container size.
|
|
9
10
|
* @param {string} [props.className] - Classes to pass to the component.
|
|
10
11
|
* @param {boolean} [props.hidden] - If `true`, the component is not rendered.
|
|
@@ -19,11 +20,12 @@ import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
|
19
20
|
* @preserve
|
|
20
21
|
*/
|
|
21
22
|
const HStack = (props) => {
|
|
22
|
-
const { children, noWrap, className, hidden } = props;
|
|
23
|
+
const { children, noWrap, className, hidden, as } = props;
|
|
23
24
|
if (hidden) {
|
|
24
25
|
return null;
|
|
25
26
|
}
|
|
26
|
-
|
|
27
|
+
const ComponentToRender = as ?? "div";
|
|
28
|
+
return /* @__PURE__ */ jsx(ComponentToRender, { className: clsx("es:flex es:items-center es:gap-x-1.5 es:gap-y-2", !noWrap && "es:flex-wrap", className), children });
|
|
27
29
|
};
|
|
28
30
|
export {
|
|
29
31
|
HStack
|
|
@@ -5,6 +5,7 @@ import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
|
5
5
|
*
|
|
6
6
|
* @component
|
|
7
7
|
* @param {Object} props - Component props.
|
|
8
|
+
* @param {JSX.Element} [props.as] - Element to render the component as. Defaults to `div`.
|
|
8
9
|
* @param {boolean} [props.noWrap] - If `true`, the children will not wrap if their size exceeds the container size.
|
|
9
10
|
* @param {string} [props.className] - Classes to pass to the component.
|
|
10
11
|
* @param {boolean} [props.hidden] - If `true`, the component is not rendered.
|
|
@@ -19,11 +20,12 @@ import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
|
19
20
|
* @preserve
|
|
20
21
|
*/
|
|
21
22
|
const VStack = (props) => {
|
|
22
|
-
const { children, noWrap, className, hidden } = props;
|
|
23
|
+
const { children, noWrap, className, hidden, as } = props;
|
|
23
24
|
if (hidden) {
|
|
24
25
|
return null;
|
|
25
26
|
}
|
|
26
|
-
|
|
27
|
+
const ComponentToRender = as ?? "div";
|
|
28
|
+
return /* @__PURE__ */ jsx(ComponentToRender, { className: clsx("es:flex es:flex-col es:gap-x-1.5 es:gap-y-1.5", !noWrap && "es:flex-wrap", className), children });
|
|
27
29
|
};
|
|
28
30
|
export {
|
|
29
31
|
VStack
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-
|
|
3
|
-
import { $ as $f86e6c1ec7da6ebb$export$bc3384a35de93d66, a as $d01f2c01039c0eec$export$72b9695b8216309a } from "../../ComboBox-
|
|
2
|
+
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-DH22t_SM.js";
|
|
3
|
+
import { $ as $f86e6c1ec7da6ebb$export$bc3384a35de93d66, a as $d01f2c01039c0eec$export$72b9695b8216309a } from "../../ComboBox-D7KpCYaK.js";
|
|
4
4
|
import { $ as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 } from "../../Group-DDPhPPTQ.js";
|
|
5
5
|
import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-BmDS8Juy.js";
|
|
6
6
|
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-JS_ob-kh.js";
|
|
7
|
-
import { $ as $eed445e0843c11d0$export$41f133550aa26f48, a as $eed445e0843c11d0$export$a11e76429ed99b4 } from "../../ListBox-
|
|
8
|
-
import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../Dialog-
|
|
7
|
+
import { $ as $eed445e0843c11d0$export$41f133550aa26f48, a as $eed445e0843c11d0$export$a11e76429ed99b4 } from "../../ListBox-_nDFq8-H.js";
|
|
8
|
+
import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../Dialog-CJVCRT8_.js";
|
|
9
9
|
import { _ as __ } from "../../default-i18n-CT_oS1Fy.js";
|
|
10
10
|
import { icons } from "../../icons/icons.js";
|
|
11
11
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $72a5793c14baf454$export$8b251419efc915eb, a as $431f98aba6844401$export$1ff3c3f08ae963c0 } from "../../Separator-
|
|
3
|
-
import { a as $3674c52c6b3c5bce$export$27d2ad3c5815583e, b as $3674c52c6b3c5bce$export$d9b273488cd8ce6f, c as $3674c52c6b3c5bce$export$2ce376c2cc3355c8, d as $3674c52c6b3c5bce$export$4b1545b4f2016d26, e as $3674c52c6b3c5bce$export$ecabc99eeffab7ca } from "../../Dialog-
|
|
2
|
+
import { $ as $72a5793c14baf454$export$8b251419efc915eb, a as $431f98aba6844401$export$1ff3c3f08ae963c0 } from "../../Separator-BN3mjL6q.js";
|
|
3
|
+
import { a as $3674c52c6b3c5bce$export$27d2ad3c5815583e, b as $3674c52c6b3c5bce$export$d9b273488cd8ce6f, c as $3674c52c6b3c5bce$export$2ce376c2cc3355c8, d as $3674c52c6b3c5bce$export$4b1545b4f2016d26, e as $3674c52c6b3c5bce$export$ecabc99eeffab7ca } from "../../Dialog-CJVCRT8_.js";
|
|
4
4
|
import { icons } from "../../icons/icons.js";
|
|
5
5
|
import { Button } from "../button/button.js";
|
|
6
6
|
import { Popover } from "../popover/popover.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { h as $a11501f3d1d39e6c$export$ea8f71083e90600f, i as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, j as $337b884510726a0d$export$14c98a7594375490, k as $5e3802645cc19319$export$1c3ebcada18427bf, l as $de32f1b87079253c$export$d2f961adcb0afbe, m as $86ea4cb521eb2e37$export$2317d149ed6f78c4, n as $337b884510726a0d$export$c6fdb837b070b4ff, g as $de32f1b87079253c$export$2e1e1122cf0cba88, f as $de32f1b87079253c$export$3ddf2d174ce01153 } from "../../Dialog-
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { h as $a11501f3d1d39e6c$export$ea8f71083e90600f, i as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, j as $337b884510726a0d$export$14c98a7594375490, k as $5e3802645cc19319$export$1c3ebcada18427bf, l as $de32f1b87079253c$export$d2f961adcb0afbe, m as $86ea4cb521eb2e37$export$2317d149ed6f78c4, n as $337b884510726a0d$export$c6fdb837b070b4ff, g as $de32f1b87079253c$export$2e1e1122cf0cba88, f as $de32f1b87079253c$export$3ddf2d174ce01153 } from "../../Dialog-CJVCRT8_.js";
|
|
3
3
|
import { $ as $5cb03073d3f54797$export$a8a3e93435678ff9 } from "../../Heading-ba38ScjJ.js";
|
|
4
4
|
import { n as $b5e257d569688ac6$export$535bd6ca7f90a273, d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, l as $df56164dff5785e2$export$4338b53315abf666, m as $5dc95899b306f630$export$c9058316764c140e, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-CZt7LCbO.js";
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
6
6
|
import React__default, { useState, useEffect, forwardRef, useContext, createContext, useRef, useMemo } from "react";
|
|
7
|
-
import { $ as $fc909762b330b746$export$61c6a8c84e605fb6, a as $d3f049242431219c$export$45fda7c47f93fd48, b as $d3f049242431219c$export$6d3443f2c48bfc20 } from "../../OverlayArrow-
|
|
7
|
+
import { $ as $fc909762b330b746$export$61c6a8c84e605fb6, a as $d3f049242431219c$export$45fda7c47f93fd48, b as $d3f049242431219c$export$6d3443f2c48bfc20 } from "../../OverlayArrow-CjvnevpX.js";
|
|
8
8
|
import { Button } from "../button/button.js";
|
|
9
9
|
import { _ as __ } from "../../default-i18n-CT_oS1Fy.js";
|
|
10
10
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
@@ -191,6 +191,7 @@ function $f3f84453ead64de5$var$ModalContent(props) {
|
|
|
191
191
|
* @param {Object} props - Component props.
|
|
192
192
|
* @param {boolean} [props.open] - **Controlled mode ** - whether the modal is open.
|
|
193
193
|
* @param {boolean} [props.defaultOpen] - **Uncontrolled mode ** - whether the modal is initially open.
|
|
194
|
+
* @param {JSX.Element|JSX.Element[]} [props.actions] - Actions to display in the modal footer, typically buttons.
|
|
194
195
|
* @param {string|JSX.Element} [props.triggerLabel] - Label for the trigger button.
|
|
195
196
|
* @param {JSX.Element} [props.triggerIcon] - Trigger button icon.
|
|
196
197
|
* @param {Object} [props.triggerProps] - Props to pass to the trigger button.
|
|
@@ -201,7 +202,11 @@ function $f3f84453ead64de5$var$ModalContent(props) {
|
|
|
201
202
|
* @param {boolean} [props.noKeyboardDismiss] - If `true`, the modal will not close when pressing the `Esc` key.
|
|
202
203
|
* @param {string} [props.className] - Classes to pass to the modal container.
|
|
203
204
|
* @param {string} [props.overlayClassName] - Classes to pass to the modal backdrop.
|
|
205
|
+
* @param {string} [props.actionsClassName] - Classes to pass to the modal footer (actions) container.
|
|
206
|
+
* @param {string} [props.headerClassName] - Classes to pass to the modal header container.
|
|
207
|
+
* @param {string} [props.contentContainerClassName] - Classes to pass to the modal content container.
|
|
204
208
|
* @param {Function} [props.shouldCloseOnInteractOutside=() => true] - Allows ignoring close events for certain elements. `(element: HTMLElement) => boolean`.
|
|
209
|
+
* @param {Function} [props.onOpenChange] - Function called when the modal's open state changes. `(isOpen: boolean) => void`
|
|
205
210
|
*
|
|
206
211
|
* @returns {JSX.Element} The Modal component.
|
|
207
212
|
*
|
|
@@ -213,92 +218,111 @@ function $f3f84453ead64de5$var$ModalContent(props) {
|
|
|
213
218
|
* @preserve
|
|
214
219
|
*/
|
|
215
220
|
const Modal2 = (props) => {
|
|
221
|
+
const { triggerLabel, triggerIcon, triggerProps, customTrigger, open } = props;
|
|
222
|
+
if (typeof open !== "undefined") {
|
|
223
|
+
return /* @__PURE__ */ jsx(ModalInternal, { ...props });
|
|
224
|
+
}
|
|
225
|
+
return /* @__PURE__ */ jsxs($de32f1b87079253c$export$2e1e1122cf0cba88, { children: [
|
|
226
|
+
!customTrigger && /* @__PURE__ */ jsx(
|
|
227
|
+
Button,
|
|
228
|
+
{
|
|
229
|
+
icon: triggerIcon,
|
|
230
|
+
...triggerProps,
|
|
231
|
+
children: triggerLabel ?? (!triggerIcon && __("Open", "eightshift-frontend-libs"))
|
|
232
|
+
}
|
|
233
|
+
),
|
|
234
|
+
customTrigger,
|
|
235
|
+
/* @__PURE__ */ jsx(ModalInternal, { ...props })
|
|
236
|
+
] });
|
|
237
|
+
};
|
|
238
|
+
const ModalInternal = (props) => {
|
|
216
239
|
const {
|
|
217
240
|
children,
|
|
218
241
|
shouldCloseOnInteractOutside,
|
|
219
242
|
open,
|
|
220
243
|
defaultOpen,
|
|
221
|
-
|
|
222
|
-
triggerIcon,
|
|
223
|
-
triggerProps,
|
|
224
|
-
customTrigger,
|
|
244
|
+
onOpenChange,
|
|
225
245
|
title,
|
|
246
|
+
actions,
|
|
226
247
|
noCloseButton,
|
|
227
248
|
noClickToDismiss,
|
|
228
249
|
noKeyboardDismiss,
|
|
229
250
|
"aria-label": ariaLabel,
|
|
230
251
|
className,
|
|
231
|
-
|
|
252
|
+
headerClassName,
|
|
253
|
+
actionsClassName,
|
|
254
|
+
overlayClassName,
|
|
255
|
+
contentContainerClassName,
|
|
256
|
+
...rest
|
|
232
257
|
} = props;
|
|
233
|
-
return /* @__PURE__ */
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
] });
|
|
258
|
+
return /* @__PURE__ */ jsx(
|
|
259
|
+
$f3f84453ead64de5$export$8948f78d83984c69,
|
|
260
|
+
{
|
|
261
|
+
isDismissable: !noClickToDismiss,
|
|
262
|
+
defaultOpen,
|
|
263
|
+
isOpen: open,
|
|
264
|
+
shouldCloseOnInteractOutside,
|
|
265
|
+
onOpenChange,
|
|
266
|
+
isKeyboardDismissDisabled: noKeyboardDismiss,
|
|
267
|
+
className: ({ isEntering, isExiting }) => clsx(
|
|
268
|
+
"es:fixed es:inset-0 es:z-9999 es:flex es:min-h-full es:items-center es:justify-center es:overflow-y-auto es:p-4 es:text-center es:bg-black/30 es:backdrop-blur-sm",
|
|
269
|
+
isEntering && "es:motion-opacity-in es:motion-duration-150",
|
|
270
|
+
isExiting && "es:motion-opacity-out es:motion-duration-150",
|
|
271
|
+
overlayClassName
|
|
272
|
+
),
|
|
273
|
+
...rest,
|
|
274
|
+
children: /* @__PURE__ */ jsx(
|
|
275
|
+
$f3f84453ead64de5$export$2b77a92f1a5ad772,
|
|
276
|
+
{
|
|
277
|
+
className: ({ isEntering, isExiting }) => clsx(
|
|
278
|
+
"es:w-full es:max-w-lg es:overflow-hidden es:rounded-3xl es:border es:border-secondary-100 es:bg-white es:text-left es:align-middle es:shadow-xl es:inset-ring es:inset-ring-secondary-50",
|
|
279
|
+
isEntering && "es:motion-safe:motion-scale-in-95 es:motion-fade-in es:motion-duration-300 es:motion-ease-spring-smooth/scale",
|
|
280
|
+
isExiting && "es:motion-safe:motion-scale-out-95 es:motion-fade-out es:motion-duration-250 es:motion-ease-spring-smooth/scale",
|
|
281
|
+
className
|
|
282
|
+
),
|
|
283
|
+
children: /* @__PURE__ */ jsx(
|
|
284
|
+
$de32f1b87079253c$export$3ddf2d174ce01153,
|
|
285
|
+
{
|
|
286
|
+
className: "es:relative es:text-sm es:outline-hidden",
|
|
287
|
+
"aria-label": ariaLabel,
|
|
288
|
+
children: ({ close }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
289
|
+
/* @__PURE__ */ jsxs(
|
|
290
|
+
HStack,
|
|
291
|
+
{
|
|
292
|
+
className: clsx(!title && "es:relative", title && "es:px-5 es:py-3 es:justify-between es:bg-secondary-50 es:border-b es:border-secondary-200", headerClassName),
|
|
293
|
+
children: [
|
|
294
|
+
title && /* @__PURE__ */ jsx(
|
|
295
|
+
$5cb03073d3f54797$export$a8a3e93435678ff9,
|
|
296
|
+
{
|
|
297
|
+
className: "es:text-balance es:text-base! es:my-0! es:font-medium!",
|
|
298
|
+
slot: "title",
|
|
299
|
+
children: title
|
|
300
|
+
}
|
|
301
|
+
),
|
|
302
|
+
!noCloseButton && /* @__PURE__ */ jsx(
|
|
303
|
+
Button,
|
|
304
|
+
{
|
|
305
|
+
className: !title && "es:absolute es:top-4 es:right-4 es:bg-white/60 es:backdrop-blur-lg",
|
|
306
|
+
onPress: close,
|
|
307
|
+
type: "ghost",
|
|
308
|
+
size: "small",
|
|
309
|
+
icon: icons.clear,
|
|
310
|
+
"aria-label": __("Close", "eightshift-frontend-libs"),
|
|
311
|
+
tooltip: true
|
|
312
|
+
}
|
|
313
|
+
)
|
|
314
|
+
]
|
|
315
|
+
}
|
|
316
|
+
),
|
|
317
|
+
children && /* @__PURE__ */ jsx("div", { className: clsx("es:p-5 es:space-y-2.5", contentContainerClassName), children }),
|
|
318
|
+
actions && /* @__PURE__ */ jsx(HStack, { className: clsx("es:justify-end es:px-5 es:py-3 es:border-t es:border-secondary-100", actionsClassName), children: actions })
|
|
319
|
+
] })
|
|
320
|
+
}
|
|
321
|
+
)
|
|
322
|
+
}
|
|
323
|
+
)
|
|
324
|
+
}
|
|
325
|
+
);
|
|
302
326
|
};
|
|
303
327
|
export {
|
|
304
328
|
Modal2 as Modal
|
|
@@ -4,14 +4,14 @@ import { _ as __ } from "../../default-i18n-CT_oS1Fy.js";
|
|
|
4
4
|
import { a as $a049562f99e7db0e$export$f9c6924e160136d1, $ as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 } from "../../Group-DDPhPPTQ.js";
|
|
5
5
|
import { a as $3985021b0ad6602f$export$37fb8590cf2c088c, $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-BmDS8Juy.js";
|
|
6
6
|
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-JS_ob-kh.js";
|
|
7
|
-
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "../../Button-
|
|
7
|
+
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "../../Button-DH22t_SM.js";
|
|
8
8
|
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, h as $64fa3d84918910a7$export$ef03459518577ad4, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-CZt7LCbO.js";
|
|
9
9
|
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-DHrSdE_Q.js";
|
|
10
10
|
import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu75_.js";
|
|
11
11
|
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-BuJgePCv.js";
|
|
12
12
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
13
13
|
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-BbYZoHvX.js";
|
|
14
|
-
import { $ as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, a as $81397a9303501bda$export$23f548e970bdf099 } from "../../useNumberField-
|
|
14
|
+
import { $ as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, a as $81397a9303501bda$export$23f548e970bdf099 } from "../../useNumberField-D0u2bh8g.js";
|
|
15
15
|
import { Button } from "../button/button.js";
|
|
16
16
|
import { icons } from "../../icons/icons.js";
|
|
17
17
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d, f as $de32f1b87079253c$export$3ddf2d174ce01153, g as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "../../Dialog-
|
|
2
|
+
import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d, f as $de32f1b87079253c$export$3ddf2d174ce01153, g as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "../../Dialog-CJVCRT8_.js";
|
|
3
3
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
4
4
|
import { _ as __ } from "../../default-i18n-CT_oS1Fy.js";
|
|
5
5
|
import { Button } from "../button/button.js";
|
|
@@ -7,7 +7,7 @@ import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-BuJge
|
|
|
7
7
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
8
8
|
import React__default, { useMemo, useState, forwardRef, createContext, cloneElement } from "react";
|
|
9
9
|
import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-D2YaWRIA.js";
|
|
10
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../../usePress-
|
|
10
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../../usePress-DWBuejBp.js";
|
|
11
11
|
import { a as $f645667febf57a63$export$4c014de7c8940b4c, b as $458b0a5536c1a7cf$export$40bfa8c7b0832715, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../useHover-C2SkI1Fn.js";
|
|
12
12
|
import { a as $e93e671b31057976$export$b8473d3665f3a75a, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "../../useFormValidation-Dy0PXJg5.js";
|
|
13
13
|
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "../../FocusScope-BEPI2m7u.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { _ as __ } from "../../../default-i18n-CT_oS1Fy.js";
|
|
3
|
-
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../../Button-
|
|
4
|
-
import { $ as $f86e6c1ec7da6ebb$export$bc3384a35de93d66, a as $d01f2c01039c0eec$export$72b9695b8216309a, b as $d01f2c01039c0eec$export$c02625b26074192c } from "../../../ComboBox-
|
|
3
|
+
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../../Button-DH22t_SM.js";
|
|
4
|
+
import { $ as $f86e6c1ec7da6ebb$export$bc3384a35de93d66, a as $d01f2c01039c0eec$export$72b9695b8216309a, b as $d01f2c01039c0eec$export$c02625b26074192c } from "../../../ComboBox-D7KpCYaK.js";
|
|
5
5
|
import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../../Input-BmDS8Juy.js";
|
|
6
6
|
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../../Label-JS_ob-kh.js";
|
|
7
|
-
import { $ as $eed445e0843c11d0$export$41f133550aa26f48 } from "../../../ListBox-
|
|
8
|
-
import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../../Dialog-
|
|
7
|
+
import { $ as $eed445e0843c11d0$export$41f133550aa26f48 } from "../../../ListBox-_nDFq8-H.js";
|
|
8
|
+
import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../../Dialog-CJVCRT8_.js";
|
|
9
9
|
import { $ as $514c0188e459b4c0$export$5f1af8db9871e1d6 } from "../../../Text-BuJgePCv.js";
|
|
10
10
|
import { OptionItemBase } from "./shared.js";
|
|
11
11
|
import { RichLabel } from "../../rich-label/rich-label.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { a as $eed445e0843c11d0$export$a11e76429ed99b4 } from "../../../ListBox-
|
|
2
|
+
import { a as $eed445e0843c11d0$export$a11e76429ed99b4 } from "../../../ListBox-_nDFq8-H.js";
|
|
3
3
|
import { c as clsx } from "../../../utils-CZt7LCbO.js";
|
|
4
4
|
const OptionItemBase = (props) => {
|
|
5
5
|
var _a;
|