@eightshift/ui-components 5.0.1 → 5.0.3
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-wERNNG0T.js → Button-BpwTmkAe.js} +4 -4
- package/dist/{Collection-CKsHTyhc.js → Collection-n5d0zIgb.js} +66 -31
- package/dist/{Color-BhgbJF5x.js → Color-lVhk8V_G.js} +1 -1
- package/dist/{ColorSwatch-Bcn6oRSg.js → ColorSwatch-DntWEAC3.js} +4 -4
- package/dist/{ComboBox-D1LPUwWP.js → ComboBox-BJpTEATT.js} +31 -22
- package/dist/{Dialog-D190gMbE.js → Dialog-O9uw63D7.js} +46 -27
- package/dist/{FieldError-DeUh5Wkw.js → FieldError-DHrSdE_Q.js} +2 -2
- package/dist/{FocusScope-C-plSxbS.js → FocusScope-BEPI2m7u.js} +2 -2
- package/dist/{Group-C5iZpSAM.js → Group-DDPhPPTQ.js} +3 -3
- package/dist/{Heading-D-Pboe4p.js → Heading-ba38ScjJ.js} +1 -1
- package/dist/{Input--mF4XVE1.js → Input-BmDS8Juy.js} +6 -6
- package/dist/{Label-Fp6AwSRn.js → Label-JS_ob-kh.js} +1 -1
- package/dist/{ListBox-4oW9kh3R.js → ListBox-BTxlCGcc.js} +97 -15
- package/dist/{OverlayArrow-BpB9uB_I.js → OverlayArrow-5aDgmImj.js} +3 -3
- package/dist/{Separator-B88tj5YD.js → Separator-CaTBkETC.js} +21 -12
- package/dist/{Slider-CyJzC1bp.js → Slider-C-S1oEH9.js} +10 -10
- package/dist/{Text-DRpwWot2.js → Text-BuJgePCv.js} +1 -1
- package/dist/{VisuallyHidden-DsKYcRQ_.js → VisuallyHidden-BYi0pekx.js} +2 -2
- package/dist/assets/style-admin.css +398 -142
- package/dist/assets/style-editor.css +398 -142
- package/dist/assets/style.css +398 -142
- package/dist/assets/wp-font-enhancements.css +1 -1
- package/dist/assets/wp-ui-enhancements.css +29 -10
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +18 -18
- package/dist/components/checkbox/checkbox.js +17 -14
- package/dist/components/color-pickers/color-swatch.js +4 -4
- package/dist/components/color-pickers/gradient-editor.js +3 -3
- package/dist/components/color-pickers/solid-color-picker.js +21 -21
- package/dist/components/component-toggle/component-toggle.js +0 -1
- package/dist/components/draggable/draggable.js +694 -353
- package/dist/components/expandable/expandable.js +65 -58
- package/dist/components/input-field/input-field.js +10 -10
- package/dist/components/link-input/link-input.js +22 -27
- package/dist/components/menu/menu.js +5 -5
- package/dist/components/modal/modal.js +5 -5
- package/dist/components/notice/notice.js +16 -16
- package/dist/components/number-picker/number-picker.js +10 -10
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/placeholders/file-placeholder.js +13 -6
- package/dist/components/placeholders/image-placeholder.js +2 -2
- package/dist/components/placeholders/media-placeholder.js +2 -2
- package/dist/components/popover/popover.js +2 -2
- package/dist/components/radio/radio.js +19 -16
- package/dist/components/repeater/repeater-item.js +6 -5
- package/dist/components/repeater/repeater.js +8 -3
- package/dist/components/responsive/mini-responsive.js +1 -1
- package/dist/components/select/async-multi-select.js +1 -0
- package/dist/components/select/async-single-select.js +1 -0
- package/dist/components/select/multi-select.js +1 -0
- package/dist/components/select/single-select.js +1 -0
- package/dist/components/select/styles.js +1 -1
- package/dist/components/select/v2/async-select.js +9 -9
- package/dist/components/select/v2/shared.js +2 -2
- package/dist/components/select/v2/single-select.js +35 -22
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +4 -4
- package/dist/components/tabs/tabs.js +22 -23
- package/dist/components/toggle/switch.js +8 -8
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +18 -17
- package/dist/components/tooltip/tooltip.js +3 -3
- package/dist/{context-BYWrbm1z.js → context-BbYZoHvX.js} +1 -1
- package/dist/icons/icons.js +124 -0
- package/dist/{index-wl5606BX.js → index-BljRBEr_.js} +1 -1
- package/dist/{textSelection-CCcyjiRP.js → textSelection-8DpK8fJl.js} +1 -1
- package/dist/{useButton-BOHxkGQF.js → useButton-Bt3BffJm.js} +3 -3
- package/dist/{useEvent-D5o_CqDH.js → useEvent-ICdlokG-.js} +1 -1
- package/dist/{useFocusRing-nMG2uzxS.js → useFocusRing-Bv0UJQl8.js} +1 -1
- package/dist/{useFormReset-DlmRL87g.js → useFormReset-D2YaWRIA.js} +1 -1
- package/dist/{useFormValidation-D0_aaK-e.js → useFormValidation-Dy0PXJg5.js} +2 -2
- package/dist/{useHover-VO5tcIli.js → useHover-C2SkI1Fn.js} +7 -2
- package/dist/{useLabel-BKH4fVA4.js → useLabel-BPCd5c7-.js} +2 -2
- package/dist/{useLabels-ntF3rFY0.js → useLabels-B7-lUnAF.js} +1 -1
- package/dist/{useListState-Cq2Nvr-v.js → useListState-DkyH7elT.js} +10 -3
- package/dist/{useLocalizedStringFormatter-CGzwx1a0.js → useLocalizedStringFormatter-C9GO0IDB.js} +1 -1
- package/dist/{useNumberField-C9dmERhP.js → useNumberField-CU1_u8ze.js} +18 -10
- package/dist/{useNumberFormatter-MrRLgvhj.js → useNumberFormatter-CZ9QUnRt.js} +1 -1
- package/dist/{usePress-DjNo5790.js → usePress-BrJylgPR.js} +21 -10
- package/dist/{useSingleSelectListState--r3AAhRj.js → useSingleSelectListState-C4sorv2p.js} +2 -2
- package/dist/{useToggle-CQaXLe-O.js → useToggle-CDa3YAZI.js} +4 -4
- package/dist/{useToggleState-C3DLdez5.js → useToggleState-ibcBUHnB.js} +1 -1
- package/dist/{utils-B94NDG0v.js → utils-CZt7LCbO.js} +41 -8
- package/package.json +24 -24
|
@@ -1,16 +1,41 @@
|
|
|
1
|
-
import { c as $880e95eb8b93ba9a$export$ecf600387e221c37, d as $e1995378a142960e$export$18af5c7a9e9b3664, e as $e1995378a142960e$export$bf788dd355e3a401, f as $e1995378a142960e$export$fb8073518f34e6ec, g as $7135fc7d473fd974$export$4feb769f8ddf26c5, h as $7135fc7d473fd974$export$d40e14dec8b060a8 } from "./Collection-
|
|
2
|
-
import { e as $bdb11010cef70236$export$f680877a34711e37, d as $3ef42575df84b30b$export$9d1611c77c2fe928, j as $bdb11010cef70236$export$b4cc09c592e8fdb8, p as $ff5963eb1fccf552$export$e08e3b67e392101e, a as $64fa3d84918910a7$export$29f1550f4b0d4415, l as $df56164dff5785e2$export$4338b53315abf666, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, o as $64fa3d84918910a7$export$c62b8e45d58ddad9, m as $5dc95899b306f630$export$c9058316764c140e, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8 } from "./utils-
|
|
3
|
-
import React__default, { createContext, useCallback, forwardRef, useMemo, useContext, useEffect
|
|
4
|
-
import { b as $982254629710d113$export$b95089534ab7c1fd,
|
|
5
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-
|
|
1
|
+
import { c as $880e95eb8b93ba9a$export$ecf600387e221c37, d as $e1995378a142960e$export$18af5c7a9e9b3664, e as $e1995378a142960e$export$bf788dd355e3a401, f as $e1995378a142960e$export$fb8073518f34e6ec, g as $7135fc7d473fd974$export$4feb769f8ddf26c5, h as $7135fc7d473fd974$export$d40e14dec8b060a8 } from "./Collection-n5d0zIgb.js";
|
|
2
|
+
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, e as $bdb11010cef70236$export$f680877a34711e37, d as $3ef42575df84b30b$export$9d1611c77c2fe928, j as $bdb11010cef70236$export$b4cc09c592e8fdb8, p as $ff5963eb1fccf552$export$e08e3b67e392101e, a as $64fa3d84918910a7$export$29f1550f4b0d4415, l as $df56164dff5785e2$export$4338b53315abf666, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, o as $64fa3d84918910a7$export$c62b8e45d58ddad9, m as $5dc95899b306f630$export$c9058316764c140e, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8 } from "./utils-CZt7LCbO.js";
|
|
3
|
+
import React__default, { useRef, createContext, useCallback, forwardRef, useMemo, useContext, useEffect } from "react";
|
|
4
|
+
import { b as $62d8ded9296f3872$export$cfa2225e87938781, c as $982254629710d113$export$b95089534ab7c1fd, d as $453cc9f0df89c0a5$export$77d5aafae4e095b2, e as $d2f53cda644affe3$export$65d2a03b8800d6e3, f as $325a3faab7a68acd$export$a16aca283550c30d, g as $2a25aae57d74318e$export$a05409b8bb224a5a, h as $431f98aba6844401$export$6615d83f6de245ce, i as $72a5793c14baf454$export$e0e4026c12a8bdbb } from "./Separator-CaTBkETC.js";
|
|
5
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-BuJgePCv.js";
|
|
6
6
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
7
|
-
import { a as $
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { $ as $
|
|
11
|
-
import {
|
|
12
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
13
|
-
import { b as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-
|
|
7
|
+
import { a as $e72dd72e1c76a225$export$ba9d38c0f1bf2b36, $ as $e72dd72e1c76a225$export$2f645645f7bca764, b as $cdc5a6778b766db2$export$a9d04c5684123369 } from "./useListState-DkyH7elT.js";
|
|
8
|
+
import { a as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "./usePress-BrJylgPR.js";
|
|
9
|
+
import { B as $c87311424ea30a05$export$9ac100e40613ea10, C as $c87311424ea30a05$export$78551043582a6a98, $ as $6179b936705e76d3$export$ae780daf29e6d456, n as $507fabe10e71c6fb$export$b9b3dfddab17db27 } from "./useHover-C2SkI1Fn.js";
|
|
10
|
+
import { a as $9ab94262bd0047c7$export$420e68273165f4ec, $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-Bv0UJQl8.js";
|
|
11
|
+
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-BPCd5c7-.js";
|
|
12
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BbYZoHvX.js";
|
|
13
|
+
import { b as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-BEPI2m7u.js";
|
|
14
|
+
function $a5fa973c1850dd36$export$90a12e6abf95cbe0(props, ref) {
|
|
15
|
+
let { collection, onLoadMore, scrollOffset = 1 } = props;
|
|
16
|
+
let sentinelObserver = useRef(null);
|
|
17
|
+
let triggerLoadMore = $8ae05eaa5c114e9c$export$7f54fc3180508a52((entries) => {
|
|
18
|
+
for (let entry of entries)
|
|
19
|
+
if (entry.isIntersecting && onLoadMore) onLoadMore();
|
|
20
|
+
});
|
|
21
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
22
|
+
if (ref.current) {
|
|
23
|
+
sentinelObserver.current = new IntersectionObserver(triggerLoadMore, {
|
|
24
|
+
root: $62d8ded9296f3872$export$cfa2225e87938781(ref === null || ref === void 0 ? void 0 : ref.current),
|
|
25
|
+
rootMargin: `0px ${100 * scrollOffset}% ${100 * scrollOffset}% ${100 * scrollOffset}%`
|
|
26
|
+
});
|
|
27
|
+
sentinelObserver.current.observe(ref.current);
|
|
28
|
+
}
|
|
29
|
+
return () => {
|
|
30
|
+
if (sentinelObserver.current) sentinelObserver.current.disconnect();
|
|
31
|
+
};
|
|
32
|
+
}, [
|
|
33
|
+
collection,
|
|
34
|
+
triggerLoadMore,
|
|
35
|
+
ref,
|
|
36
|
+
scrollOffset
|
|
37
|
+
]);
|
|
38
|
+
}
|
|
14
39
|
const $b1f0cad8af73213b$export$3585ede4d035bf14 = /* @__PURE__ */ new WeakMap();
|
|
15
40
|
function $b1f0cad8af73213b$var$normalizeKey(key) {
|
|
16
41
|
if (typeof key === "string") return key.replace(/\s*/g, "");
|
|
@@ -253,6 +278,7 @@ function $eed445e0843c11d0$var$StandaloneListBox({ props, listBoxRef, collection
|
|
|
253
278
|
});
|
|
254
279
|
}
|
|
255
280
|
function $eed445e0843c11d0$var$ListBoxInner({ state: inputState, props, listBoxRef }) {
|
|
281
|
+
var _state_collection_getItem;
|
|
256
282
|
let { filter, collectionProps, collectionRef } = useContext($d2f53cda644affe3$export$65d2a03b8800d6e3) || {};
|
|
257
283
|
props = useMemo(() => collectionProps ? {
|
|
258
284
|
...props,
|
|
@@ -352,9 +378,10 @@ function $eed445e0843c11d0$var$ListBoxInner({ state: inputState, props, listBoxR
|
|
|
352
378
|
});
|
|
353
379
|
}
|
|
354
380
|
let { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f();
|
|
381
|
+
let isEmpty = state.collection.size === 0 || state.collection.size === 1 && ((_state_collection_getItem = state.collection.getItem(state.collection.getFirstKey())) === null || _state_collection_getItem === void 0 ? void 0 : _state_collection_getItem.type) === "loader";
|
|
355
382
|
let renderValues = {
|
|
356
383
|
isDropTarget: isRootDropTarget,
|
|
357
|
-
isEmpty
|
|
384
|
+
isEmpty,
|
|
358
385
|
isFocused,
|
|
359
386
|
isFocusVisible,
|
|
360
387
|
layout: props.layout || "stack",
|
|
@@ -367,7 +394,7 @@ function $eed445e0843c11d0$var$ListBoxInner({ state: inputState, props, listBoxR
|
|
|
367
394
|
values: renderValues
|
|
368
395
|
});
|
|
369
396
|
let emptyState = null;
|
|
370
|
-
if (
|
|
397
|
+
if (isEmpty && props.renderEmptyState) emptyState = /* @__PURE__ */ React__default.createElement("div", {
|
|
371
398
|
// eslint-disable-next-line
|
|
372
399
|
role: "option",
|
|
373
400
|
style: {
|
|
@@ -382,7 +409,7 @@ function $eed445e0843c11d0$var$ListBoxInner({ state: inputState, props, listBoxR
|
|
|
382
409
|
slot: props.slot || void 0,
|
|
383
410
|
onScroll: props.onScroll,
|
|
384
411
|
"data-drop-target": isRootDropTarget || void 0,
|
|
385
|
-
"data-empty":
|
|
412
|
+
"data-empty": isEmpty || void 0,
|
|
386
413
|
"data-focused": isFocused || void 0,
|
|
387
414
|
"data-focus-visible": isFocusVisible || void 0,
|
|
388
415
|
"data-layout": props.layout || "stack",
|
|
@@ -572,6 +599,61 @@ function $eed445e0843c11d0$var$ListBoxDropIndicator(props, ref) {
|
|
|
572
599
|
});
|
|
573
600
|
}
|
|
574
601
|
const $eed445e0843c11d0$var$ListBoxDropIndicatorForwardRef = /* @__PURE__ */ forwardRef($eed445e0843c11d0$var$ListBoxDropIndicator);
|
|
602
|
+
$e1995378a142960e$export$18af5c7a9e9b3664("loader", function ListBoxLoadingIndicator(props, ref, item) {
|
|
603
|
+
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
604
|
+
let { isVirtualized } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
605
|
+
let { isLoading, onLoadMore, scrollOffset, ...otherProps } = props;
|
|
606
|
+
let sentinelRef = useRef(null);
|
|
607
|
+
let memoedLoadMoreProps = useMemo(() => ({
|
|
608
|
+
onLoadMore,
|
|
609
|
+
collection: state === null || state === void 0 ? void 0 : state.collection,
|
|
610
|
+
sentinelRef,
|
|
611
|
+
scrollOffset
|
|
612
|
+
}), [
|
|
613
|
+
onLoadMore,
|
|
614
|
+
scrollOffset,
|
|
615
|
+
state === null || state === void 0 ? void 0 : state.collection
|
|
616
|
+
]);
|
|
617
|
+
$a5fa973c1850dd36$export$90a12e6abf95cbe0(memoedLoadMoreProps, sentinelRef);
|
|
618
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
619
|
+
...otherProps,
|
|
620
|
+
id: void 0,
|
|
621
|
+
children: item.rendered,
|
|
622
|
+
defaultClassName: "react-aria-ListBoxLoadingIndicator",
|
|
623
|
+
values: null
|
|
624
|
+
});
|
|
625
|
+
let optionProps = {
|
|
626
|
+
// For Android talkback
|
|
627
|
+
tabIndex: -1
|
|
628
|
+
};
|
|
629
|
+
if (isVirtualized) {
|
|
630
|
+
optionProps["aria-posinset"] = item.index + 1;
|
|
631
|
+
optionProps["aria-setsize"] = state.collection.size;
|
|
632
|
+
}
|
|
633
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
634
|
+
style: {
|
|
635
|
+
position: "relative",
|
|
636
|
+
width: 0,
|
|
637
|
+
height: 0
|
|
638
|
+
},
|
|
639
|
+
inert: $cdc5a6778b766db2$export$a9d04c5684123369(true)
|
|
640
|
+
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
641
|
+
"data-testid": "loadMoreSentinel",
|
|
642
|
+
ref: sentinelRef,
|
|
643
|
+
style: {
|
|
644
|
+
position: "absolute",
|
|
645
|
+
height: 1,
|
|
646
|
+
width: 1
|
|
647
|
+
}
|
|
648
|
+
})), isLoading && renderProps.children && /* @__PURE__ */ React__default.createElement("div", {
|
|
649
|
+
...$3ef42575df84b30b$export$9d1611c77c2fe928($65484d02dcb7eb3e$export$457c3d6518dd4c6f(props), optionProps),
|
|
650
|
+
...renderProps,
|
|
651
|
+
// aria-selected isn't needed here since this option is not selectable.
|
|
652
|
+
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
653
|
+
role: "option",
|
|
654
|
+
ref
|
|
655
|
+
}, renderProps.children));
|
|
656
|
+
});
|
|
575
657
|
export {
|
|
576
658
|
$eed445e0843c11d0$export$41f133550aa26f48 as $,
|
|
577
659
|
$eed445e0843c11d0$export$a11e76429ed99b4 as a,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./utils-
|
|
1
|
+
import { k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./utils-CZt7LCbO.js";
|
|
2
2
|
import { r as reactDomExports } from "./index-CFozsmNS.js";
|
|
3
3
|
import React__default, { useEffect, useState, useCallback, useRef, useContext, createContext, forwardRef } from "react";
|
|
4
|
-
import { C as $c87311424ea30a05$export$78551043582a6a98, b as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-
|
|
4
|
+
import { C as $c87311424ea30a05$export$78551043582a6a98, b as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-C2SkI1Fn.js";
|
|
5
5
|
import { a as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-GajL10e1.js";
|
|
6
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
6
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BbYZoHvX.js";
|
|
7
7
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
8
8
|
function $9daab02d461809db$var$hasResizeObserver() {
|
|
9
9
|
return typeof window.ResizeObserver !== "undefined";
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
1
|
+
import { l as $cc38e7bd3fc7b213$export$2bb74740c4e19def, m as $feb5ffebff200149$export$c3d8340acf92597f, i as $ae20dd8cbca75726$export$d6daf82dcd84e87c, n as $c5a24bc478652b5f$export$1005530eda016c13, d as $e1995378a142960e$export$18af5c7a9e9b3664 } from "./Collection-n5d0zIgb.js";
|
|
2
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BbYZoHvX.js";
|
|
3
3
|
import React__default, { useMemo, createContext } from "react";
|
|
4
|
-
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-
|
|
4
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-CZt7LCbO.js";
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
6
|
+
function $62d8ded9296f3872$export$cfa2225e87938781(node, checkForOverflow) {
|
|
7
|
+
let scrollableNode = node;
|
|
8
|
+
if ($cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;
|
|
9
|
+
while (scrollableNode && !$cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;
|
|
10
|
+
return scrollableNode || document.scrollingElement || document.documentElement;
|
|
11
|
+
}
|
|
6
12
|
let $325a3faab7a68acd$var$cache = /* @__PURE__ */ new Map();
|
|
7
13
|
function $325a3faab7a68acd$export$a16aca283550c30d(options) {
|
|
8
14
|
let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
@@ -256,8 +262,10 @@ function $453cc9f0df89c0a5$export$77d5aafae4e095b2(collection) {
|
|
|
256
262
|
if (count != null) return count;
|
|
257
263
|
let counter = 0;
|
|
258
264
|
let countItems = (items) => {
|
|
259
|
-
for (let item of items)
|
|
260
|
-
|
|
265
|
+
for (let item of items) {
|
|
266
|
+
if (item.type === "section") countItems($c5a24bc478652b5f$export$1005530eda016c13(item, collection));
|
|
267
|
+
else if (item.type === "item") counter++;
|
|
268
|
+
}
|
|
261
269
|
};
|
|
262
270
|
countItems(collection);
|
|
263
271
|
$453cc9f0df89c0a5$var$cache.set(collection, counter);
|
|
@@ -313,11 +321,12 @@ const $431f98aba6844401$export$1ff3c3f08ae963c0 = /* @__PURE__ */ $e1995378a1429
|
|
|
313
321
|
export {
|
|
314
322
|
$72a5793c14baf454$export$8b251419efc915eb as $,
|
|
315
323
|
$431f98aba6844401$export$1ff3c3f08ae963c0 as a,
|
|
316
|
-
$
|
|
317
|
-
$
|
|
318
|
-
$
|
|
319
|
-
$
|
|
320
|
-
$
|
|
321
|
-
$
|
|
322
|
-
$
|
|
324
|
+
$62d8ded9296f3872$export$cfa2225e87938781 as b,
|
|
325
|
+
$982254629710d113$export$b95089534ab7c1fd as c,
|
|
326
|
+
$453cc9f0df89c0a5$export$77d5aafae4e095b2 as d,
|
|
327
|
+
$d2f53cda644affe3$export$65d2a03b8800d6e3 as e,
|
|
328
|
+
$325a3faab7a68acd$export$a16aca283550c30d as f,
|
|
329
|
+
$2a25aae57d74318e$export$a05409b8bb224a5a as g,
|
|
330
|
+
$431f98aba6844401$export$6615d83f6de245ce as h,
|
|
331
|
+
$72a5793c14baf454$export$e0e4026c12a8bdbb as i
|
|
323
332
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "./utils-
|
|
2
|
-
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-
|
|
1
|
+
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "./utils-CZt7LCbO.js";
|
|
2
|
+
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-JS_ob-kh.js";
|
|
3
3
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
4
4
|
import React__default, { useRef, useMemo, useCallback, useState, useEffect, forwardRef, createContext, useContext } from "react";
|
|
5
|
-
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-
|
|
6
|
-
import { g as $03deb23ff14920c4$export$4eaf04e54aa8eed6, b as $458b0a5536c1a7cf$export$40bfa8c7b0832715, q as $507fabe10e71c6fb$export$8397ddfc504fdb9a, z as $7215afc6de606d6b$export$de79e2c695e052f3, A as $46d819fcbaf35654$export$8f71654801c2f7cd, a as $f645667febf57a63$export$4c014de7c8940b4c, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-
|
|
5
|
+
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-CZ9QUnRt.js";
|
|
6
|
+
import { g as $03deb23ff14920c4$export$4eaf04e54aa8eed6, b as $458b0a5536c1a7cf$export$40bfa8c7b0832715, q as $507fabe10e71c6fb$export$8397ddfc504fdb9a, z as $7215afc6de606d6b$export$de79e2c695e052f3, A as $46d819fcbaf35654$export$8f71654801c2f7cd, a as $f645667febf57a63$export$4c014de7c8940b4c, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-C2SkI1Fn.js";
|
|
7
7
|
import { $ as $9446cca9a3875146$export$cb6e0bb50bc19463, a as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-GajL10e1.js";
|
|
8
|
-
import { $ as $14c0b72509d70225$export$b0d6fa1ab32e3295, a as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-
|
|
9
|
-
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-
|
|
10
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
11
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
12
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-
|
|
13
|
-
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-
|
|
8
|
+
import { $ as $14c0b72509d70225$export$b0d6fa1ab32e3295, a as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-8DpK8fJl.js";
|
|
9
|
+
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-BPCd5c7-.js";
|
|
10
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BbYZoHvX.js";
|
|
11
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-D2YaWRIA.js";
|
|
12
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-Bv0UJQl8.js";
|
|
13
|
+
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-BYi0pekx.js";
|
|
14
14
|
function $e8a7022cf87cba2a$export$36da96379f79f245(props) {
|
|
15
15
|
let { onMoveStart, onMove, onMoveEnd } = props;
|
|
16
16
|
let state = useRef({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-
|
|
1
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-CZt7LCbO.js";
|
|
2
2
|
import React__default, { forwardRef, createContext } from "react";
|
|
3
3
|
const $514c0188e459b4c0$export$9afb8bc826b033ea = /* @__PURE__ */ createContext({});
|
|
4
4
|
const $514c0188e459b4c0$export$5f1af8db9871e1d6 = /* @__PURE__ */ forwardRef(function Text(props, ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-
|
|
1
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-CZt7LCbO.js";
|
|
2
2
|
import React__default, { useState, useMemo } from "react";
|
|
3
|
-
import { a as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-
|
|
3
|
+
import { a as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-Bv0UJQl8.js";
|
|
4
4
|
const $5c3e21d68f1c4674$var$styles = {
|
|
5
5
|
border: 0,
|
|
6
6
|
clip: "rect(0 0 0 0)",
|