@eightshift/ui-components 7.2.0 → 7.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.
- package/dist/Autocomplete-pLMPWMFq.js +451 -0
- package/dist/Button-Biwg7zwt.js +223 -0
- package/dist/Dialog-C1sh8jbh.js +2474 -0
- package/dist/{Disclosure-NYWFw9RJ.js → Disclosure-B_SHgiUz.js} +50 -51
- package/dist/FocusScope-lGkM8AO8.js +734 -0
- package/dist/Form-BxIJCHYd.js +5 -0
- package/dist/Heading-B2EsUuu6.js +16 -0
- package/dist/{Hidden-8TB37dpK.js → Hidden-DYY00jLm.js} +10 -10
- package/dist/I18nProvider-Cm6dj5jY.js +93 -0
- package/dist/Label-B1TkoVOG.js +17 -0
- package/dist/ListBox-BquE0m8z.js +584 -0
- package/dist/{NumberFormatter-m5VW6MTK.js → NumberFormatter-JHF0Tadk.js} +24 -26
- package/dist/PortalProvider-BYcv24il.js +13 -0
- package/dist/RadioGroup-BxjLooWU.js +324 -0
- package/dist/SearchField-BkAU0HLm.js +322 -0
- package/dist/SelectionIndicator-Bx_EYBXD.js +13 -0
- package/dist/{Slider-DW1RuMVp.js → Slider-DSv6fyZ6.js} +321 -363
- package/dist/Text-C8pfwn0W.js +16 -0
- package/dist/{VisuallyHidden-CfsnJHZb.js → VisuallyHidden-KcXlGa5p.js} +12 -12
- package/dist/{animation-Bd2peown.js → animation-BJ-2VKdB.js} +12 -12
- package/dist/assets/fonts/google-sans-flex-latin-ext-full-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-latin-full-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-symbols-full-normal.woff2 +0 -0
- package/dist/assets/style-admin.css +1 -1
- package/dist/assets/style-editor.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/{button-D9cbyHeZ.js → button-CawAzlko.js} +21 -73
- package/dist/{checkbox-BO5RZmO8.js → checkbox-t7VrqXv2.js} +59 -62
- package/dist/{color-swatch-D2ZBkuTt.js → color-swatch-gU09x9Ga.js} +417 -414
- package/dist/components/base-control/base-control.js +2 -2
- package/dist/components/base-control/container.js +1 -1
- package/dist/components/breakpoint-preview/breakpoint-preview.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-pickers/color-picker.js +2 -2
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +1 -1
- package/dist/components/component-toggle/component-toggle.js +4 -4
- package/dist/components/container-panel/container-panel.js +5 -5
- package/dist/components/draggable/draggable-handle.js +1 -1
- package/dist/components/draggable/draggable.js +1 -1
- package/dist/components/draggable-list/draggable-list-item.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +2 -2
- package/dist/components/expandable/expandable.js +7 -7
- package/dist/components/index.js +15 -15
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/matrix-align/matrix-align.js +5 -5
- package/dist/components/menu/menu.js +11 -11
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/number-picker/number-picker.js +1 -1
- package/dist/components/option-select/option-select.js +3 -3
- package/dist/components/options-panel/options-panel.js +3 -3
- package/dist/components/placeholders/file-picker-shell.js +1 -1
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +6 -6
- package/dist/components/portal-provider/portal-provider.js +2 -2
- package/dist/components/radio/radio.js +9 -9
- package/dist/components/repeater/repeater-item.js +2 -2
- package/dist/components/repeater/repeater.js +3 -3
- package/dist/components/responsive/mini-responsive.js +6 -6
- package/dist/components/responsive/responsive-legacy.js +5 -5
- package/dist/components/responsive/responsive.js +5 -5
- package/dist/components/responsive-preview/responsive-preview.js +2 -2
- package/dist/components/select/async-multi-select.js +27 -26
- package/dist/components/select/async-select.js +27 -26
- package/dist/components/select/multi-select.js +33 -32
- package/dist/components/select/shared.js +1 -1
- package/dist/components/select/single-select.js +33 -32
- package/dist/components/select/styles.js +1 -1
- package/dist/components/slider/column-config-slider.js +8 -8
- package/dist/components/slider/slider.js +8 -8
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/smart-image/smart-image.js +1 -1
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle/toggle.js +3 -3
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{draggable-CTDVJ4zd.js → draggable-Cxv-OueQ.js} +1 -1
- package/dist/filterDOMProps-BfW758QC.js +69 -0
- package/dist/{gradient-editor-xfxA_s9a.js → gradient-editor-CInqVF8v.js} +6 -11
- package/dist/icons/index.js +1 -1
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/index.js +15 -15
- package/dist/{input-field-_OCWbftf.js → input-field-BdFrxQ-R.js} +46 -47
- package/dist/{jsx-svg-BRJ4n3pD.js → jsx-svg-DT1SBWuP.js} +6 -12
- package/dist/keyboard-CT41mQzR.js +55 -0
- package/dist/{link-input-Bh8G7Urm.js → link-input-BDFhSSvH.js} +324 -356
- package/dist/{modal-snrElwty.js → modal-CJDaBdPh.js} +100 -92
- package/dist/{number-ZZIxJukn.js → number-MWRvGfyE.js} +10 -10
- package/dist/{number-picker-Dhtx4409.js → number-picker-BrxrB-xq.js} +43 -42
- package/dist/{shared-BiWZjrGF.js → shared-CI4kcnm8.js} +482 -502
- package/dist/{smart-image-CBNbxJ57.js → smart-image-eGdMu9s9.js} +2 -2
- package/dist/{solid-color-picker-DukArNH-.js → solid-color-picker-DXgX-OAm.js} +926 -935
- package/dist/{switch-DmsvyQPa.js → switch-DNHFoCCx.js} +28 -28
- package/dist/{tabs-DaIUEc0g.js → tabs-C2tPOEYr.js} +150 -153
- package/dist/textSelection-BhX_2zV9.js +45 -0
- package/dist/{toggle-button-BlzUGfGy.js → toggle-button-DYDp11rq.js} +35 -35
- package/dist/{tooltip-BzJzYlcc.js → tooltip-C-hT6tN9.js} +162 -162
- package/dist/{useAsyncList-BNzwKoX4.js → useAsyncList-DsOh1xIx.js} +54 -74
- package/dist/{useButton-ra1ZSZ4z.js → useButton-BMZc4fTX.js} +11 -11
- package/dist/{SelectionManager-B8lLv6Ue.js → useCollection-CBVYSuGz.js} +1689 -1777
- package/dist/{useEvent-DkZVfgsS.js → useEvent-ypAU33vv.js} +5 -5
- package/dist/useField-BXf__jxy.js +32 -0
- package/dist/{useFilter-OiMnf6sb.js → useFilter-CfKEbIwL.js} +5 -5
- package/dist/{useFocusRing-DuYL4cdO.js → useFocusRing-BgYY-7ko.js} +23 -23
- package/dist/useFormReset-BuMc_O4y.js +17 -0
- package/dist/{FieldError-BWDbP5Db.js → useFormValidation-BcME9D0E.js} +63 -66
- package/dist/useHover-lyApu3ba.js +975 -0
- package/dist/{useLabel-2EohW5l6.js → useLabel-Rv8cIIKk.js} +8 -8
- package/dist/{useLabels-B2p7RXi5.js → useLabels-xOYtkA8o.js} +5 -5
- package/dist/useListState-u6DfeXHi.js +135 -0
- package/dist/{useLocalizedStringFormatter-Dv2diN3k.js → useLocalizedStringFormatter-CR-bmorj.js} +45 -45
- package/dist/{useNumberField-2xbi3jRV.js → useNumberFieldState-xL-ecwNz.js} +665 -619
- package/dist/useNumberFormatter-CR1PAFPG.js +10 -0
- package/dist/useOverlayTriggerState-AeCx45Gv.js +551 -0
- package/dist/usePress-Dnx5rBoD.js +593 -0
- package/dist/useTextField-BW3ZwGyz.js +159 -0
- package/dist/{useToggle-ecIirvIM.js → useToggle-BF5wptMP.js} +19 -20
- package/dist/useToggleState-D5P01lch.js +22 -0
- package/dist/useToolbar-BT25-MJg.js +55 -0
- package/dist/utilities/debounce-throttle.js +1 -1
- package/dist/utilities/es-dash.js +1 -1
- package/dist/utilities/index.js +3 -3
- package/dist/{utils-B_uiqNa4.js → utils-JFcCNFzy.js} +121 -122
- package/package.json +18 -18
- package/dist/Button-h6xF_WrP.js +0 -225
- package/dist/Dialog-i5VLQw1o.js +0 -2488
- package/dist/FocusScope-CgwbGOBB.js +0 -746
- package/dist/Form-DTMkbrQY.js +0 -5
- package/dist/Heading-Hol-wS_B.js +0 -16
- package/dist/Input-BURqyJXW.js +0 -161
- package/dist/Label-DFXXxMKY.js +0 -17
- package/dist/ListBox-B21SgugS.js +0 -601
- package/dist/OverlayArrow-BoloUPQM.js +0 -573
- package/dist/PortalProvider-DinZZCKX.js +0 -14
- package/dist/RSPContexts-C_z0bI8W.js +0 -12
- package/dist/RadioGroup-BwlGtCja.js +0 -329
- package/dist/SearchField-DR_I4_yn.js +0 -765
- package/dist/SelectionIndicator-31L6EI9F.js +0 -13
- package/dist/Text-O6VBBDlP.js +0 -16
- package/dist/context-C-XNeJ_l.js +0 -93
- package/dist/filterDOMProps-_2_3GD-K.js +0 -69
- package/dist/textSelection-Dv6WPj0Z.js +0 -45
- package/dist/useField-D0WrzR2F.js +0 -32
- package/dist/useFormReset-DdkykzAn.js +0 -18
- package/dist/useHover-qaMm3XFO.js +0 -982
- package/dist/useListState-CD_5vfyy.js +0 -147
- package/dist/useNumberFormatter-C2Cm2mNj.js +0 -10
- package/dist/usePress-ZP1TjkFf.js +0 -678
- package/dist/useToggleState-IIDbiKPl.js +0 -23
- /package/dist/{List-DWlgW2Ex.js → List---tsVJlI.js} +0 -0
- /package/dist/{build-module-Bsx62nlm.js → build-module-K6vi4xE0.js} +0 -0
- /package/dist/{debounce-throttle-DXxSAKpq.js → debounce-throttle-LSPAPFtq.js} +0 -0
- /package/dist/{dist-2gkv7_1U.js → dist-jw8wvxoG.js} +0 -0
- /package/dist/{es-dash-HqXWZZ3_.js → es-dash-BuShf_ht.js} +0 -0
- /package/dist/{utilities-lwX686oD.js → utilities-DV0KKJNR.js} +0 -0
package/dist/ListBox-B21SgugS.js
DELETED
|
@@ -1,601 +0,0 @@
|
|
|
1
|
-
import { a as $4e85f108e88277b8$export$b0d3ecf7112093a7 } from "./RSPContexts-C_z0bI8W.js";
|
|
2
|
-
import { a as $64fa3d84918910a7$export$c62b8e45d58ddad9, f as $ff5963eb1fccf552$export$e08e3b67e392101e, g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, i as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, l as $df56164dff5785e2$export$4338b53315abf666, m as $bdb11010cef70236$export$f680877a34711e37, n as $64fa3d84918910a7$export$29f1550f4b0d4415, o as $64fa3d84918910a7$export$df3a06d6289f983e, p as $bdb11010cef70236$export$b4cc09c592e8fdb8, r as $64fa3d84918910a7$export$4d86445c2cf5e3, t as $64fa3d84918910a7$export$2881499e37b75b9a, u as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-B_uiqNa4.js";
|
|
3
|
-
import { N as $c87311424ea30a05$export$78551043582a6a98, O as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18, P as $c87311424ea30a05$export$9ac100e40613ea10, a as $46d819fcbaf35654$export$8f71654801c2f7cd, f as $507fabe10e71c6fb$export$b9b3dfddab17db27, o as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, t as $6179b936705e76d3$export$ae780daf29e6d456, w as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./useHover-qaMm3XFO.js";
|
|
4
|
-
import { n as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-CgwbGOBB.js";
|
|
5
|
-
import { t as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-_2_3GD-K.js";
|
|
6
|
-
import { c as $e1995378a142960e$export$bf788dd355e3a401, d as $23b9f4fcf0fe224b$export$437f11dc9b403b78, h as $23b9f4fcf0fe224b$export$fd11f34e1d07f134, l as $e1995378a142960e$export$e953bb1cd0f19726, o as $7135fc7d473fd974$export$d40e14dec8b060a8, p as $23b9f4fcf0fe224b$export$8258a0665a675899, r as $7135fc7d473fd974$export$4feb769f8ddf26c5, s as $e1995378a142960e$export$18af5c7a9e9b3664, u as $e1995378a142960e$export$fb8073518f34e6ec, v as $880e95eb8b93ba9a$export$ecf600387e221c37 } from "./SelectionManager-B8lLv6Ue.js";
|
|
7
|
-
import { D as $62d8ded9296f3872$export$cfa2225e87938781, E as $325a3faab7a68acd$export$a16aca283550c30d, _ as $982254629710d113$export$b95089534ab7c1fd, f as $431f98aba6844401$export$6615d83f6de245ce, g as $453cc9f0df89c0a5$export$77d5aafae4e095b2, m as $72a5793c14baf454$export$e0e4026c12a8bdbb, v as $2a25aae57d74318e$export$a05409b8bb224a5a } from "./Dialog-i5VLQw1o.js";
|
|
8
|
-
import { i as $cdc5a6778b766db2$export$a9d04c5684123369, n as $e72dd72e1c76a225$export$ba9d38c0f1bf2b36, t as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-CD_5vfyy.js";
|
|
9
|
-
import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-C-XNeJ_l.js";
|
|
10
|
-
import { n as $9ab94262bd0047c7$export$420e68273165f4ec, t as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-DuYL4cdO.js";
|
|
11
|
-
import { t as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-2EohW5l6.js";
|
|
12
|
-
import { n as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-O6VBBDlP.js";
|
|
13
|
-
import { n as $c8a5a149f625efcf$export$758399f318e6385a, t as $1d5b8b8664671ef2$export$c9549807523555e0 } from "./SelectionIndicator-31L6EI9F.js";
|
|
14
|
-
import React, { createContext, forwardRef, useCallback, useContext, useEffect, useMemo, useRef } from "react";
|
|
15
|
-
//#region node_modules/@react-aria/utils/dist/useLoadMoreSentinel.mjs
|
|
16
|
-
function $a5fa973c1850dd36$export$ccaea96c28e8b9e7(props, ref) {
|
|
17
|
-
let { collection, onLoadMore, scrollOffset = 1 } = props;
|
|
18
|
-
let sentinelObserver = useRef(null);
|
|
19
|
-
let triggerLoadMore = $8ae05eaa5c114e9c$export$7f54fc3180508a52((entries) => {
|
|
20
|
-
for (let entry of entries) if (entry.isIntersecting && onLoadMore) onLoadMore();
|
|
21
|
-
});
|
|
22
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
23
|
-
if (ref.current) {
|
|
24
|
-
sentinelObserver.current = new IntersectionObserver(triggerLoadMore, {
|
|
25
|
-
root: $62d8ded9296f3872$export$cfa2225e87938781(ref === null || ref === void 0 ? void 0 : ref.current),
|
|
26
|
-
rootMargin: `0px ${100 * scrollOffset}% ${100 * scrollOffset}% ${100 * scrollOffset}%`
|
|
27
|
-
});
|
|
28
|
-
sentinelObserver.current.observe(ref.current);
|
|
29
|
-
}
|
|
30
|
-
return () => {
|
|
31
|
-
if (sentinelObserver.current) sentinelObserver.current.disconnect();
|
|
32
|
-
};
|
|
33
|
-
}, [
|
|
34
|
-
collection,
|
|
35
|
-
ref,
|
|
36
|
-
scrollOffset
|
|
37
|
-
]);
|
|
38
|
-
}
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region node_modules/@react-aria/listbox/dist/utils.mjs
|
|
41
|
-
var $b1f0cad8af73213b$export$3585ede4d035bf14 = new WeakMap();
|
|
42
|
-
function $b1f0cad8af73213b$var$normalizeKey(key) {
|
|
43
|
-
if (typeof key === "string") return key.replace(/\s*/g, "");
|
|
44
|
-
return "" + key;
|
|
45
|
-
}
|
|
46
|
-
function $b1f0cad8af73213b$export$9145995848b05025(state, itemKey) {
|
|
47
|
-
let data = $b1f0cad8af73213b$export$3585ede4d035bf14.get(state);
|
|
48
|
-
if (!data) throw new Error("Unknown list");
|
|
49
|
-
return `${data.id}-option-${$b1f0cad8af73213b$var$normalizeKey(itemKey)}`;
|
|
50
|
-
}
|
|
51
|
-
//#endregion
|
|
52
|
-
//#region node_modules/@react-aria/listbox/dist/useListBox.mjs
|
|
53
|
-
function $c132121280ec012d$export$50eacbbf140a3141(props, state, ref) {
|
|
54
|
-
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { labelable: true });
|
|
55
|
-
let selectionBehavior = props.selectionBehavior || "toggle";
|
|
56
|
-
let linkBehavior = props.linkBehavior || (selectionBehavior === "replace" ? "action" : "override");
|
|
57
|
-
if (selectionBehavior === "toggle" && linkBehavior === "action") linkBehavior = "override";
|
|
58
|
-
let { listProps } = $982254629710d113$export$b95089534ab7c1fd({
|
|
59
|
-
...props,
|
|
60
|
-
ref,
|
|
61
|
-
selectionManager: state.selectionManager,
|
|
62
|
-
collection: state.collection,
|
|
63
|
-
disabledKeys: state.disabledKeys,
|
|
64
|
-
linkBehavior
|
|
65
|
-
});
|
|
66
|
-
let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
|
|
67
|
-
onFocusWithin: props.onFocus,
|
|
68
|
-
onBlurWithin: props.onBlur,
|
|
69
|
-
onFocusWithinChange: props.onFocusChange
|
|
70
|
-
});
|
|
71
|
-
let id = $bdb11010cef70236$export$f680877a34711e37(props.id);
|
|
72
|
-
$b1f0cad8af73213b$export$3585ede4d035bf14.set(state, {
|
|
73
|
-
id,
|
|
74
|
-
shouldUseVirtualFocus: props.shouldUseVirtualFocus,
|
|
75
|
-
shouldSelectOnPressUp: props.shouldSelectOnPressUp,
|
|
76
|
-
shouldFocusOnHover: props.shouldFocusOnHover,
|
|
77
|
-
isVirtualized: props.isVirtualized,
|
|
78
|
-
onAction: props.onAction,
|
|
79
|
-
linkBehavior,
|
|
80
|
-
UNSTABLE_itemBehavior: props["UNSTABLE_itemBehavior"]
|
|
81
|
-
});
|
|
82
|
-
let { labelProps, fieldProps } = $d191a55c9702f145$export$8467354a121f1b9f({
|
|
83
|
-
...props,
|
|
84
|
-
id,
|
|
85
|
-
labelElementType: "span"
|
|
86
|
-
});
|
|
87
|
-
return {
|
|
88
|
-
labelProps,
|
|
89
|
-
listBoxProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, focusWithinProps, state.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
|
|
90
|
-
role: "listbox",
|
|
91
|
-
...$3ef42575df84b30b$export$9d1611c77c2fe928(fieldProps, listProps)
|
|
92
|
-
})
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
//#endregion
|
|
96
|
-
//#region node_modules/@react-aria/listbox/dist/useOption.mjs
|
|
97
|
-
function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
|
|
98
|
-
var _item_props, _item_props1;
|
|
99
|
-
let { key } = props;
|
|
100
|
-
let data = $b1f0cad8af73213b$export$3585ede4d035bf14.get(state);
|
|
101
|
-
var _props_isDisabled;
|
|
102
|
-
let isDisabled = (_props_isDisabled = props.isDisabled) !== null && _props_isDisabled !== void 0 ? _props_isDisabled : state.selectionManager.isDisabled(key);
|
|
103
|
-
var _props_isSelected;
|
|
104
|
-
let isSelected = (_props_isSelected = props.isSelected) !== null && _props_isSelected !== void 0 ? _props_isSelected : state.selectionManager.isSelected(key);
|
|
105
|
-
var _props_shouldSelectOnPressUp;
|
|
106
|
-
let shouldSelectOnPressUp = (_props_shouldSelectOnPressUp = props.shouldSelectOnPressUp) !== null && _props_shouldSelectOnPressUp !== void 0 ? _props_shouldSelectOnPressUp : data === null || data === void 0 ? void 0 : data.shouldSelectOnPressUp;
|
|
107
|
-
var _props_shouldFocusOnHover;
|
|
108
|
-
let shouldFocusOnHover = (_props_shouldFocusOnHover = props.shouldFocusOnHover) !== null && _props_shouldFocusOnHover !== void 0 ? _props_shouldFocusOnHover : data === null || data === void 0 ? void 0 : data.shouldFocusOnHover;
|
|
109
|
-
var _props_shouldUseVirtualFocus;
|
|
110
|
-
let shouldUseVirtualFocus = (_props_shouldUseVirtualFocus = props.shouldUseVirtualFocus) !== null && _props_shouldUseVirtualFocus !== void 0 ? _props_shouldUseVirtualFocus : data === null || data === void 0 ? void 0 : data.shouldUseVirtualFocus;
|
|
111
|
-
var _props_isVirtualized;
|
|
112
|
-
let isVirtualized = (_props_isVirtualized = props.isVirtualized) !== null && _props_isVirtualized !== void 0 ? _props_isVirtualized : data === null || data === void 0 ? void 0 : data.isVirtualized;
|
|
113
|
-
let labelId = $bdb11010cef70236$export$b4cc09c592e8fdb8();
|
|
114
|
-
let descriptionId = $bdb11010cef70236$export$b4cc09c592e8fdb8();
|
|
115
|
-
let optionProps = {
|
|
116
|
-
role: "option",
|
|
117
|
-
"aria-disabled": isDisabled || void 0,
|
|
118
|
-
"aria-selected": state.selectionManager.selectionMode !== "none" ? isSelected : void 0
|
|
119
|
-
};
|
|
120
|
-
if (!($c87311424ea30a05$export$9ac100e40613ea10() && $c87311424ea30a05$export$78551043582a6a98())) {
|
|
121
|
-
optionProps["aria-label"] = props["aria-label"];
|
|
122
|
-
optionProps["aria-labelledby"] = labelId;
|
|
123
|
-
optionProps["aria-describedby"] = descriptionId;
|
|
124
|
-
}
|
|
125
|
-
let item = state.collection.getItem(key);
|
|
126
|
-
if (isVirtualized) {
|
|
127
|
-
let index = Number(item === null || item === void 0 ? void 0 : item.index);
|
|
128
|
-
optionProps["aria-posinset"] = Number.isNaN(index) ? void 0 : index + 1;
|
|
129
|
-
optionProps["aria-setsize"] = $453cc9f0df89c0a5$export$77d5aafae4e095b2(state.collection);
|
|
130
|
-
}
|
|
131
|
-
let onAction = (data === null || data === void 0 ? void 0 : data.onAction) ? () => {
|
|
132
|
-
var _data_onAction;
|
|
133
|
-
return data === null || data === void 0 ? void 0 : (_data_onAction = data.onAction) === null || _data_onAction === void 0 ? void 0 : _data_onAction.call(data, key);
|
|
134
|
-
} : void 0;
|
|
135
|
-
let id = $b1f0cad8af73213b$export$9145995848b05025(state, key);
|
|
136
|
-
let { itemProps, isPressed, isFocused, hasAction, allowsSelection } = $880e95eb8b93ba9a$export$ecf600387e221c37({
|
|
137
|
-
selectionManager: state.selectionManager,
|
|
138
|
-
key,
|
|
139
|
-
ref,
|
|
140
|
-
shouldSelectOnPressUp,
|
|
141
|
-
allowsDifferentPressOrigin: shouldSelectOnPressUp && shouldFocusOnHover,
|
|
142
|
-
isVirtualized,
|
|
143
|
-
shouldUseVirtualFocus,
|
|
144
|
-
isDisabled,
|
|
145
|
-
onAction: onAction || (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.onAction) ? $ff5963eb1fccf552$export$e08e3b67e392101e(item === null || item === void 0 ? void 0 : (_item_props1 = item.props) === null || _item_props1 === void 0 ? void 0 : _item_props1.onAction, onAction) : void 0,
|
|
146
|
-
linkBehavior: data === null || data === void 0 ? void 0 : data.linkBehavior,
|
|
147
|
-
UNSTABLE_itemBehavior: data === null || data === void 0 ? void 0 : data["UNSTABLE_itemBehavior"],
|
|
148
|
-
id
|
|
149
|
-
});
|
|
150
|
-
let { hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456({
|
|
151
|
-
isDisabled: isDisabled || !shouldFocusOnHover,
|
|
152
|
-
onHoverStart() {
|
|
153
|
-
if (!$507fabe10e71c6fb$export$b9b3dfddab17db27()) {
|
|
154
|
-
state.selectionManager.setFocused(true);
|
|
155
|
-
state.selectionManager.setFocusedKey(key);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(item === null || item === void 0 ? void 0 : item.props);
|
|
160
|
-
delete domProps.id;
|
|
161
|
-
let linkProps = $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(item === null || item === void 0 ? void 0 : item.props);
|
|
162
|
-
return {
|
|
163
|
-
optionProps: {
|
|
164
|
-
...optionProps,
|
|
165
|
-
...$3ef42575df84b30b$export$9d1611c77c2fe928(domProps, itemProps, hoverProps, linkProps),
|
|
166
|
-
id
|
|
167
|
-
},
|
|
168
|
-
labelProps: { id: labelId },
|
|
169
|
-
descriptionProps: { id: descriptionId },
|
|
170
|
-
isFocused,
|
|
171
|
-
isFocusVisible: isFocused && state.selectionManager.isFocused && $507fabe10e71c6fb$export$b9b3dfddab17db27(),
|
|
172
|
-
isSelected,
|
|
173
|
-
isDisabled,
|
|
174
|
-
isPressed,
|
|
175
|
-
allowsSelection,
|
|
176
|
-
hasAction
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
//#endregion
|
|
180
|
-
//#region node_modules/@react-aria/listbox/dist/useListBoxSection.mjs
|
|
181
|
-
function $af383d3bef1cfdc9$export$c3f9f39876e4bc7(props) {
|
|
182
|
-
let { heading, "aria-label": ariaLabel } = props;
|
|
183
|
-
let headingId = $bdb11010cef70236$export$f680877a34711e37();
|
|
184
|
-
return {
|
|
185
|
-
itemProps: { role: "presentation" },
|
|
186
|
-
headingProps: heading ? {
|
|
187
|
-
id: headingId,
|
|
188
|
-
role: "presentation",
|
|
189
|
-
onMouseDown: (e) => {
|
|
190
|
-
e.preventDefault();
|
|
191
|
-
}
|
|
192
|
-
} : {},
|
|
193
|
-
groupProps: {
|
|
194
|
-
role: "group",
|
|
195
|
-
"aria-label": ariaLabel,
|
|
196
|
-
"aria-labelledby": heading ? headingId : void 0
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
//#endregion
|
|
201
|
-
//#region node_modules/react-aria-components/dist/DragAndDrop.mjs
|
|
202
|
-
var $612b8eb6cb90e02d$export$d188a835a7bc5783 = createContext({});
|
|
203
|
-
var $612b8eb6cb90e02d$export$f55761759794cf55 = createContext(null);
|
|
204
|
-
var $612b8eb6cb90e02d$export$62ed72bc21f6b8a6 = forwardRef(function DropIndicator(props, ref) {
|
|
205
|
-
let { render } = useContext($612b8eb6cb90e02d$export$f55761759794cf55);
|
|
206
|
-
return React.createElement(React.Fragment, null, render(props, ref));
|
|
207
|
-
});
|
|
208
|
-
function $612b8eb6cb90e02d$export$971707d8a129a1f7(dragAndDropHooks, dropState) {
|
|
209
|
-
var _dragAndDropHooks_isVirtualDragging;
|
|
210
|
-
let renderDropIndicator = dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.renderDropIndicator;
|
|
211
|
-
let isVirtualDragging = dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : (_dragAndDropHooks_isVirtualDragging = dragAndDropHooks.isVirtualDragging) === null || _dragAndDropHooks_isVirtualDragging === void 0 ? void 0 : _dragAndDropHooks_isVirtualDragging.call(dragAndDropHooks);
|
|
212
|
-
let fn = useCallback((target) => {
|
|
213
|
-
if (isVirtualDragging || (dropState === null || dropState === void 0 ? void 0 : dropState.isDropTarget(target))) return renderDropIndicator ? renderDropIndicator(target) : React.createElement($612b8eb6cb90e02d$export$62ed72bc21f6b8a6, { target });
|
|
214
|
-
}, [
|
|
215
|
-
dropState === null || dropState === void 0 ? void 0 : dropState.target,
|
|
216
|
-
isVirtualDragging,
|
|
217
|
-
renderDropIndicator
|
|
218
|
-
]);
|
|
219
|
-
return (dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDropIndicator) ? fn : void 0;
|
|
220
|
-
}
|
|
221
|
-
function $612b8eb6cb90e02d$export$d1e8e3fbb7461f6(selectionManager, dragAndDropHooks, dropState) {
|
|
222
|
-
var _dragAndDropHooks_isVirtualDragging, _dropState_target;
|
|
223
|
-
let focusedKey = selectionManager.focusedKey;
|
|
224
|
-
let dropTargetKey = null;
|
|
225
|
-
if ((dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : (_dragAndDropHooks_isVirtualDragging = dragAndDropHooks.isVirtualDragging) === null || _dragAndDropHooks_isVirtualDragging === void 0 ? void 0 : _dragAndDropHooks_isVirtualDragging.call(dragAndDropHooks)) && (dropState === null || dropState === void 0 ? void 0 : (_dropState_target = dropState.target) === null || _dropState_target === void 0 ? void 0 : _dropState_target.type) === "item") {
|
|
226
|
-
dropTargetKey = dropState.target.key;
|
|
227
|
-
if (dropState.target.dropPosition === "after") {
|
|
228
|
-
let nextKey = dropState.collection.getKeyAfter(dropTargetKey);
|
|
229
|
-
let lastDescendantKey = null;
|
|
230
|
-
if (nextKey != null) {
|
|
231
|
-
var _dropState_collection_getItem;
|
|
232
|
-
var _dropState_collection_getItem_level;
|
|
233
|
-
let targetLevel = (_dropState_collection_getItem_level = (_dropState_collection_getItem = dropState.collection.getItem(dropTargetKey)) === null || _dropState_collection_getItem === void 0 ? void 0 : _dropState_collection_getItem.level) !== null && _dropState_collection_getItem_level !== void 0 ? _dropState_collection_getItem_level : 0;
|
|
234
|
-
while (nextKey) {
|
|
235
|
-
let node = dropState.collection.getItem(nextKey);
|
|
236
|
-
if (!node) break;
|
|
237
|
-
if (node.type !== "item") {
|
|
238
|
-
nextKey = dropState.collection.getKeyAfter(nextKey);
|
|
239
|
-
continue;
|
|
240
|
-
}
|
|
241
|
-
var _node_level;
|
|
242
|
-
if (((_node_level = node.level) !== null && _node_level !== void 0 ? _node_level : 0) <= targetLevel) break;
|
|
243
|
-
lastDescendantKey = nextKey;
|
|
244
|
-
nextKey = dropState.collection.getKeyAfter(nextKey);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
var _ref;
|
|
248
|
-
dropTargetKey = (_ref = nextKey !== null && nextKey !== void 0 ? nextKey : lastDescendantKey) !== null && _ref !== void 0 ? _ref : dropTargetKey;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
return useMemo(() => {
|
|
252
|
-
return new Set([focusedKey, dropTargetKey].filter((k) => k != null));
|
|
253
|
-
}, [focusedKey, dropTargetKey]);
|
|
254
|
-
}
|
|
255
|
-
//#endregion
|
|
256
|
-
//#region node_modules/react-aria-components/dist/ListBox.mjs
|
|
257
|
-
var $eed445e0843c11d0$export$7ff8f37d2d81a48d = createContext(null);
|
|
258
|
-
var $eed445e0843c11d0$export$7c5906fe4f1f2af2 = createContext(null);
|
|
259
|
-
var $eed445e0843c11d0$export$41f133550aa26f48 = forwardRef(function ListBox(props, ref) {
|
|
260
|
-
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $eed445e0843c11d0$export$7ff8f37d2d81a48d);
|
|
261
|
-
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
262
|
-
if (state) return React.createElement($eed445e0843c11d0$var$ListBoxInner, {
|
|
263
|
-
state,
|
|
264
|
-
props,
|
|
265
|
-
listBoxRef: ref
|
|
266
|
-
});
|
|
267
|
-
return React.createElement($e1995378a142960e$export$bf788dd355e3a401, { content: React.createElement($e1995378a142960e$export$fb8073518f34e6ec, props) }, (collection) => React.createElement($eed445e0843c11d0$var$StandaloneListBox, {
|
|
268
|
-
props,
|
|
269
|
-
listBoxRef: ref,
|
|
270
|
-
collection
|
|
271
|
-
}));
|
|
272
|
-
});
|
|
273
|
-
function $eed445e0843c11d0$var$StandaloneListBox({ props, listBoxRef, collection }) {
|
|
274
|
-
props = {
|
|
275
|
-
...props,
|
|
276
|
-
collection,
|
|
277
|
-
children: null,
|
|
278
|
-
items: null
|
|
279
|
-
};
|
|
280
|
-
let { layoutDelegate } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
281
|
-
let state = $e72dd72e1c76a225$export$2f645645f7bca764({
|
|
282
|
-
...props,
|
|
283
|
-
layoutDelegate
|
|
284
|
-
});
|
|
285
|
-
return React.createElement($eed445e0843c11d0$var$ListBoxInner, {
|
|
286
|
-
state,
|
|
287
|
-
props,
|
|
288
|
-
listBoxRef
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
|
-
function $eed445e0843c11d0$var$ListBoxInner({ state: inputState, props, listBoxRef }) {
|
|
292
|
-
[props, listBoxRef] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, listBoxRef, $4e85f108e88277b8$export$b0d3ecf7112093a7);
|
|
293
|
-
let { dragAndDropHooks, layout = "stack", orientation = "vertical", filter } = props;
|
|
294
|
-
let state = $e72dd72e1c76a225$export$ba9d38c0f1bf2b36(inputState, filter);
|
|
295
|
-
let { collection, selectionManager } = state;
|
|
296
|
-
let isListDraggable = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDraggableCollectionState);
|
|
297
|
-
let isListDroppable = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDroppableCollectionState);
|
|
298
|
-
let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
299
|
-
let { disabledBehavior, disabledKeys } = selectionManager;
|
|
300
|
-
let collator = $325a3faab7a68acd$export$a16aca283550c30d({
|
|
301
|
-
usage: "search",
|
|
302
|
-
sensitivity: "base"
|
|
303
|
-
});
|
|
304
|
-
let { isVirtualized, layoutDelegate, dropTargetDelegate: ctxDropTargetDelegate, CollectionRoot } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
305
|
-
let keyboardDelegate = useMemo(() => props.keyboardDelegate || new $2a25aae57d74318e$export$a05409b8bb224a5a({
|
|
306
|
-
collection,
|
|
307
|
-
collator,
|
|
308
|
-
ref: listBoxRef,
|
|
309
|
-
disabledKeys,
|
|
310
|
-
disabledBehavior,
|
|
311
|
-
layout,
|
|
312
|
-
orientation,
|
|
313
|
-
direction,
|
|
314
|
-
layoutDelegate
|
|
315
|
-
}), [
|
|
316
|
-
collection,
|
|
317
|
-
collator,
|
|
318
|
-
listBoxRef,
|
|
319
|
-
disabledBehavior,
|
|
320
|
-
disabledKeys,
|
|
321
|
-
orientation,
|
|
322
|
-
direction,
|
|
323
|
-
props.keyboardDelegate,
|
|
324
|
-
layout,
|
|
325
|
-
layoutDelegate
|
|
326
|
-
]);
|
|
327
|
-
let { listBoxProps } = $c132121280ec012d$export$50eacbbf140a3141({
|
|
328
|
-
...props,
|
|
329
|
-
shouldSelectOnPressUp: isListDraggable || props.shouldSelectOnPressUp,
|
|
330
|
-
keyboardDelegate,
|
|
331
|
-
isVirtualized
|
|
332
|
-
}, state, listBoxRef);
|
|
333
|
-
let dragHooksProvided = useRef(isListDraggable);
|
|
334
|
-
let dropHooksProvided = useRef(isListDroppable);
|
|
335
|
-
useEffect(() => {
|
|
336
|
-
if (process.env.NODE_ENV === "production") return;
|
|
337
|
-
if (dragHooksProvided.current !== isListDraggable) console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
|
|
338
|
-
if (dropHooksProvided.current !== isListDroppable) console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
|
|
339
|
-
}, [isListDraggable, isListDroppable]);
|
|
340
|
-
let dragState = void 0;
|
|
341
|
-
let dropState = void 0;
|
|
342
|
-
let droppableCollection = void 0;
|
|
343
|
-
let isRootDropTarget = false;
|
|
344
|
-
let dragPreview = null;
|
|
345
|
-
let preview = useRef(null);
|
|
346
|
-
if (isListDraggable && dragAndDropHooks) {
|
|
347
|
-
dragState = dragAndDropHooks.useDraggableCollectionState({
|
|
348
|
-
collection,
|
|
349
|
-
selectionManager,
|
|
350
|
-
preview: dragAndDropHooks.renderDragPreview ? preview : void 0
|
|
351
|
-
});
|
|
352
|
-
dragAndDropHooks.useDraggableCollection({}, dragState, listBoxRef);
|
|
353
|
-
let DragPreview = dragAndDropHooks.DragPreview;
|
|
354
|
-
dragPreview = dragAndDropHooks.renderDragPreview ? React.createElement(DragPreview, { ref: preview }, dragAndDropHooks.renderDragPreview) : null;
|
|
355
|
-
}
|
|
356
|
-
if (isListDroppable && dragAndDropHooks) {
|
|
357
|
-
dropState = dragAndDropHooks.useDroppableCollectionState({
|
|
358
|
-
collection,
|
|
359
|
-
selectionManager
|
|
360
|
-
});
|
|
361
|
-
let dropTargetDelegate = dragAndDropHooks.dropTargetDelegate || ctxDropTargetDelegate || new dragAndDropHooks.ListDropTargetDelegate(collection, listBoxRef, {
|
|
362
|
-
orientation,
|
|
363
|
-
layout,
|
|
364
|
-
direction
|
|
365
|
-
});
|
|
366
|
-
droppableCollection = dragAndDropHooks.useDroppableCollection({
|
|
367
|
-
keyboardDelegate,
|
|
368
|
-
dropTargetDelegate
|
|
369
|
-
}, dropState, listBoxRef);
|
|
370
|
-
isRootDropTarget = dropState.isDropTarget({ type: "root" });
|
|
371
|
-
}
|
|
372
|
-
let { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f();
|
|
373
|
-
let isEmpty = state.collection.size === 0;
|
|
374
|
-
let renderValues = {
|
|
375
|
-
isDropTarget: isRootDropTarget,
|
|
376
|
-
isEmpty,
|
|
377
|
-
isFocused,
|
|
378
|
-
isFocusVisible,
|
|
379
|
-
layout: props.layout || "stack",
|
|
380
|
-
state
|
|
381
|
-
};
|
|
382
|
-
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
383
|
-
...props,
|
|
384
|
-
children: void 0,
|
|
385
|
-
defaultClassName: "react-aria-ListBox",
|
|
386
|
-
values: renderValues
|
|
387
|
-
});
|
|
388
|
-
let emptyState = null;
|
|
389
|
-
if (isEmpty && props.renderEmptyState) emptyState = React.createElement("div", {
|
|
390
|
-
role: "option",
|
|
391
|
-
style: { display: "contents" }
|
|
392
|
-
}, props.renderEmptyState(renderValues));
|
|
393
|
-
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { global: true });
|
|
394
|
-
return React.createElement($9bf71ea28793e738$export$20e40289641fbbb6, null, React.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
|
|
395
|
-
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, listBoxProps, focusProps, droppableCollection === null || droppableCollection === void 0 ? void 0 : droppableCollection.collectionProps),
|
|
396
|
-
ref: listBoxRef,
|
|
397
|
-
slot: props.slot || void 0,
|
|
398
|
-
onScroll: props.onScroll,
|
|
399
|
-
"data-drop-target": isRootDropTarget || void 0,
|
|
400
|
-
"data-empty": isEmpty || void 0,
|
|
401
|
-
"data-focused": isFocused || void 0,
|
|
402
|
-
"data-focus-visible": isFocusVisible || void 0,
|
|
403
|
-
"data-layout": props.layout || "stack",
|
|
404
|
-
"data-orientation": props.orientation || "vertical"
|
|
405
|
-
}, React.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { values: [
|
|
406
|
-
[$eed445e0843c11d0$export$7ff8f37d2d81a48d, props],
|
|
407
|
-
[$eed445e0843c11d0$export$7c5906fe4f1f2af2, state],
|
|
408
|
-
[$612b8eb6cb90e02d$export$d188a835a7bc5783, {
|
|
409
|
-
dragAndDropHooks,
|
|
410
|
-
dragState,
|
|
411
|
-
dropState
|
|
412
|
-
}],
|
|
413
|
-
[$431f98aba6844401$export$6615d83f6de245ce, { elementType: "div" }],
|
|
414
|
-
[$612b8eb6cb90e02d$export$f55761759794cf55, { render: $eed445e0843c11d0$var$ListBoxDropIndicatorWrapper }],
|
|
415
|
-
[$7135fc7d473fd974$export$d40e14dec8b060a8, {
|
|
416
|
-
name: "ListBoxSection",
|
|
417
|
-
render: $eed445e0843c11d0$var$ListBoxSectionInner
|
|
418
|
-
}]
|
|
419
|
-
] }, React.createElement($c8a5a149f625efcf$export$758399f318e6385a, null, React.createElement(CollectionRoot, {
|
|
420
|
-
collection,
|
|
421
|
-
scrollRef: listBoxRef,
|
|
422
|
-
persistedKeys: $612b8eb6cb90e02d$export$d1e8e3fbb7461f6(selectionManager, dragAndDropHooks, dropState),
|
|
423
|
-
renderDropIndicator: $612b8eb6cb90e02d$export$971707d8a129a1f7(dragAndDropHooks, dropState)
|
|
424
|
-
}))), emptyState, dragPreview));
|
|
425
|
-
}
|
|
426
|
-
function $eed445e0843c11d0$var$ListBoxSectionInner(props, ref, section, className = "react-aria-ListBoxSection") {
|
|
427
|
-
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
428
|
-
let { dragAndDropHooks, dropState } = useContext($612b8eb6cb90e02d$export$d188a835a7bc5783);
|
|
429
|
-
let { CollectionBranch } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
430
|
-
let [headingRef, heading] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8();
|
|
431
|
-
var _props_arialabel;
|
|
432
|
-
let { headingProps, groupProps } = $af383d3bef1cfdc9$export$c3f9f39876e4bc7({
|
|
433
|
-
heading,
|
|
434
|
-
"aria-label": (_props_arialabel = props["aria-label"]) !== null && _props_arialabel !== void 0 ? _props_arialabel : void 0
|
|
435
|
-
});
|
|
436
|
-
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
437
|
-
...props,
|
|
438
|
-
id: void 0,
|
|
439
|
-
children: void 0,
|
|
440
|
-
defaultClassName: className,
|
|
441
|
-
values: void 0
|
|
442
|
-
});
|
|
443
|
-
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { global: true });
|
|
444
|
-
delete DOMProps.id;
|
|
445
|
-
return React.createElement($64fa3d84918910a7$export$df3a06d6289f983e.section, {
|
|
446
|
-
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, groupProps),
|
|
447
|
-
ref
|
|
448
|
-
}, React.createElement($72a5793c14baf454$export$e0e4026c12a8bdbb.Provider, { value: {
|
|
449
|
-
...headingProps,
|
|
450
|
-
ref: headingRef
|
|
451
|
-
} }, React.createElement(CollectionBranch, {
|
|
452
|
-
collection: state.collection,
|
|
453
|
-
parent: section,
|
|
454
|
-
renderDropIndicator: $612b8eb6cb90e02d$export$971707d8a129a1f7(dragAndDropHooks, dropState)
|
|
455
|
-
})));
|
|
456
|
-
}
|
|
457
|
-
var $eed445e0843c11d0$export$dca12b0bb56e4fc = $e1995378a142960e$export$e953bb1cd0f19726($23b9f4fcf0fe224b$export$437f11dc9b403b78, $eed445e0843c11d0$var$ListBoxSectionInner);
|
|
458
|
-
var $eed445e0843c11d0$export$a11e76429ed99b4 = $e1995378a142960e$export$18af5c7a9e9b3664($23b9f4fcf0fe224b$export$fd11f34e1d07f134, function ListBoxItem(props, forwardedRef, item) {
|
|
459
|
-
let ref = $df56164dff5785e2$export$4338b53315abf666(forwardedRef);
|
|
460
|
-
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
461
|
-
let { dragAndDropHooks, dragState, dropState } = useContext($612b8eb6cb90e02d$export$d188a835a7bc5783);
|
|
462
|
-
let { optionProps, labelProps, descriptionProps, ...states } = $293f70390ea03370$export$497855f14858aa34({
|
|
463
|
-
key: item.key,
|
|
464
|
-
"aria-label": props === null || props === void 0 ? void 0 : props["aria-label"]
|
|
465
|
-
}, state, ref);
|
|
466
|
-
let { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({
|
|
467
|
-
isDisabled: !states.allowsSelection && !states.hasAction,
|
|
468
|
-
onHoverStart: item.props.onHoverStart,
|
|
469
|
-
onHoverChange: item.props.onHoverChange,
|
|
470
|
-
onHoverEnd: item.props.onHoverEnd
|
|
471
|
-
});
|
|
472
|
-
let { keyboardProps } = $46d819fcbaf35654$export$8f71654801c2f7cd(props);
|
|
473
|
-
let { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props);
|
|
474
|
-
let draggableItem = null;
|
|
475
|
-
if (dragState && dragAndDropHooks) draggableItem = dragAndDropHooks.useDraggableItem({
|
|
476
|
-
key: item.key,
|
|
477
|
-
hasAction: states.hasAction
|
|
478
|
-
}, dragState);
|
|
479
|
-
let droppableItem = null;
|
|
480
|
-
if (dropState && dragAndDropHooks) droppableItem = dragAndDropHooks.useDroppableItem({ target: {
|
|
481
|
-
type: "item",
|
|
482
|
-
key: item.key,
|
|
483
|
-
dropPosition: "on"
|
|
484
|
-
} }, dropState, ref);
|
|
485
|
-
let isDragging = dragState && dragState.isDragging(item.key);
|
|
486
|
-
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
487
|
-
...props,
|
|
488
|
-
id: void 0,
|
|
489
|
-
children: props.children,
|
|
490
|
-
defaultClassName: "react-aria-ListBoxItem",
|
|
491
|
-
values: {
|
|
492
|
-
...states,
|
|
493
|
-
isHovered,
|
|
494
|
-
selectionMode: state.selectionManager.selectionMode,
|
|
495
|
-
selectionBehavior: state.selectionManager.selectionBehavior,
|
|
496
|
-
allowsDragging: !!dragState,
|
|
497
|
-
isDragging,
|
|
498
|
-
isDropTarget: droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.isDropTarget
|
|
499
|
-
}
|
|
500
|
-
});
|
|
501
|
-
useEffect(() => {
|
|
502
|
-
if (!item.textValue && process.env.NODE_ENV !== "production") console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.");
|
|
503
|
-
}, [item.textValue]);
|
|
504
|
-
let ElementType = props.href ? $64fa3d84918910a7$export$df3a06d6289f983e.a : $64fa3d84918910a7$export$df3a06d6289f983e.div;
|
|
505
|
-
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { global: true });
|
|
506
|
-
delete DOMProps.id;
|
|
507
|
-
delete DOMProps.onClick;
|
|
508
|
-
if (props.href && optionProps.tabIndex == null) optionProps.tabIndex = -1;
|
|
509
|
-
return React.createElement(ElementType, {
|
|
510
|
-
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, optionProps, hoverProps, keyboardProps, focusProps, draggableItem === null || draggableItem === void 0 ? void 0 : draggableItem.dragProps, droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.dropProps),
|
|
511
|
-
ref,
|
|
512
|
-
"data-allows-dragging": !!dragState || void 0,
|
|
513
|
-
"data-selected": states.isSelected || void 0,
|
|
514
|
-
"data-disabled": states.isDisabled || void 0,
|
|
515
|
-
"data-hovered": isHovered || void 0,
|
|
516
|
-
"data-focused": states.isFocused || void 0,
|
|
517
|
-
"data-focus-visible": states.isFocusVisible || void 0,
|
|
518
|
-
"data-pressed": states.isPressed || void 0,
|
|
519
|
-
"data-dragging": isDragging || void 0,
|
|
520
|
-
"data-drop-target": (droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.isDropTarget) || void 0,
|
|
521
|
-
"data-selection-mode": state.selectionManager.selectionMode === "none" ? void 0 : state.selectionManager.selectionMode
|
|
522
|
-
}, React.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { values: [[$514c0188e459b4c0$export$9afb8bc826b033ea, { slots: {
|
|
523
|
-
[$64fa3d84918910a7$export$c62b8e45d58ddad9]: labelProps,
|
|
524
|
-
label: labelProps,
|
|
525
|
-
description: descriptionProps
|
|
526
|
-
} }], [$1d5b8b8664671ef2$export$c9549807523555e0, { isSelected: states.isSelected }]] }, renderProps.children));
|
|
527
|
-
});
|
|
528
|
-
function $eed445e0843c11d0$var$ListBoxDropIndicatorWrapper(props, ref) {
|
|
529
|
-
ref = $df56164dff5785e2$export$4338b53315abf666(ref);
|
|
530
|
-
let { dragAndDropHooks, dropState } = useContext($612b8eb6cb90e02d$export$d188a835a7bc5783);
|
|
531
|
-
let { dropIndicatorProps, isHidden, isDropTarget } = dragAndDropHooks.useDropIndicator(props, dropState, ref);
|
|
532
|
-
if (isHidden) return null;
|
|
533
|
-
return React.createElement($eed445e0843c11d0$var$ListBoxDropIndicatorForwardRef, {
|
|
534
|
-
...props,
|
|
535
|
-
dropIndicatorProps,
|
|
536
|
-
isDropTarget,
|
|
537
|
-
ref
|
|
538
|
-
});
|
|
539
|
-
}
|
|
540
|
-
function $eed445e0843c11d0$var$ListBoxDropIndicator(props, ref) {
|
|
541
|
-
let { dropIndicatorProps, isDropTarget, ...otherProps } = props;
|
|
542
|
-
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
543
|
-
...otherProps,
|
|
544
|
-
defaultClassName: "react-aria-DropIndicator",
|
|
545
|
-
values: { isDropTarget }
|
|
546
|
-
});
|
|
547
|
-
return React.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
|
|
548
|
-
...dropIndicatorProps,
|
|
549
|
-
...renderProps,
|
|
550
|
-
role: "option",
|
|
551
|
-
ref,
|
|
552
|
-
"data-drop-target": isDropTarget || void 0
|
|
553
|
-
});
|
|
554
|
-
}
|
|
555
|
-
var $eed445e0843c11d0$var$ListBoxDropIndicatorForwardRef = forwardRef($eed445e0843c11d0$var$ListBoxDropIndicator);
|
|
556
|
-
var $eed445e0843c11d0$export$8e6d031a08cf56a1 = $e1995378a142960e$export$18af5c7a9e9b3664($23b9f4fcf0fe224b$export$8258a0665a675899, function ListBoxLoadingIndicator(props, ref, item) {
|
|
557
|
-
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
558
|
-
let { isLoading, onLoadMore, scrollOffset, ...otherProps } = props;
|
|
559
|
-
let sentinelRef = useRef(null);
|
|
560
|
-
$a5fa973c1850dd36$export$ccaea96c28e8b9e7(useMemo(() => ({
|
|
561
|
-
onLoadMore,
|
|
562
|
-
collection: state === null || state === void 0 ? void 0 : state.collection,
|
|
563
|
-
sentinelRef,
|
|
564
|
-
scrollOffset
|
|
565
|
-
}), [
|
|
566
|
-
onLoadMore,
|
|
567
|
-
scrollOffset,
|
|
568
|
-
state === null || state === void 0 ? void 0 : state.collection
|
|
569
|
-
]), sentinelRef);
|
|
570
|
-
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
571
|
-
...otherProps,
|
|
572
|
-
id: void 0,
|
|
573
|
-
children: item.rendered,
|
|
574
|
-
defaultClassName: "react-aria-ListBoxLoadingIndicator",
|
|
575
|
-
values: void 0
|
|
576
|
-
});
|
|
577
|
-
let optionProps = { tabIndex: -1 };
|
|
578
|
-
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
579
|
-
style: {
|
|
580
|
-
position: "relative",
|
|
581
|
-
width: 0,
|
|
582
|
-
height: 0
|
|
583
|
-
},
|
|
584
|
-
inert: $cdc5a6778b766db2$export$a9d04c5684123369(true)
|
|
585
|
-
}, React.createElement("div", {
|
|
586
|
-
"data-testid": "loadMoreSentinel",
|
|
587
|
-
ref: sentinelRef,
|
|
588
|
-
style: {
|
|
589
|
-
position: "absolute",
|
|
590
|
-
height: 1,
|
|
591
|
-
width: 1
|
|
592
|
-
}
|
|
593
|
-
})), isLoading && renderProps.children && React.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
|
|
594
|
-
...$3ef42575df84b30b$export$9d1611c77c2fe928($65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { global: true }), optionProps),
|
|
595
|
-
...renderProps,
|
|
596
|
-
role: "option",
|
|
597
|
-
ref
|
|
598
|
-
}, renderProps.children));
|
|
599
|
-
});
|
|
600
|
-
//#endregion
|
|
601
|
-
export { $eed445e0843c11d0$export$dca12b0bb56e4fc as a, $eed445e0843c11d0$export$a11e76429ed99b4 as i, $eed445e0843c11d0$export$7c5906fe4f1f2af2 as n, $b1f0cad8af73213b$export$3585ede4d035bf14 as o, $eed445e0843c11d0$export$7ff8f37d2d81a48d as r, $b1f0cad8af73213b$export$9145995848b05025 as s, $eed445e0843c11d0$export$41f133550aa26f48 as t };
|