@eightshift/ui-components 4.0.0 → 5.0.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/package.json +101 -101
- package/dist/Button-CvzGKGCo.js +0 -185
- package/dist/Collection-ddre1L5v.js +0 -2332
- package/dist/Color-MV5kBVXr.js +0 -2452
- package/dist/ColorSwatch-BqQfVu4L.js +0 -64
- package/dist/ComboBox-jQ-dk95U.js +0 -1906
- package/dist/Dialog-DX1aiYyE.js +0 -2300
- package/dist/FieldError-52GVSGgC.js +0 -42
- package/dist/FocusScope-Cri5BFRz.js +0 -831
- package/dist/Form-Cq3fu75_.js +0 -5
- package/dist/Group-_emcIVxI.js +0 -48
- package/dist/Heading-B2153VXe.js +0 -16
- package/dist/Hidden-rE6uR-lr.js +0 -41
- package/dist/Input-BxpFEIXV.js +0 -133
- package/dist/Label-icmbmNdI.js +0 -17
- package/dist/List-BYNHbol3.js +0 -593
- package/dist/ListBox-mJ4nQaL7.js +0 -581
- package/dist/NumberFormatter-DA8u1Ot7.js +0 -140
- package/dist/OverlayArrow-BB0CWwdq.js +0 -629
- package/dist/RSPContexts-2lR5GG9p.js +0 -14
- package/dist/Select-aab027f3.esm--EmXjiL3.js +0 -2469
- package/dist/Separator-D9moUgP8.js +0 -322
- package/dist/Slider-rz2XRMGm.js +0 -853
- package/dist/Text-DVSAPY-K.js +0 -16
- package/dist/VisuallyHidden-f9zX67a_.js +0 -48
- package/dist/_commonjsHelpers-CUmg6egw.js +0 -6
- package/dist/assets/index.css +0 -37
- package/dist/assets/style-admin.css +0 -5255
- package/dist/assets/style-editor.css +0 -5255
- package/dist/assets/style.css +0 -5261
- package/dist/assets/wp-font-enhancements.css +0 -8
- package/dist/assets/wp-ui-enhancements.css +0 -299
- package/dist/components/animated-visibility/animated-visibility.js +0 -105
- package/dist/components/base-control/base-control.js +0 -86
- package/dist/components/breakpoint-preview/breakpoint-preview.js +0 -161
- package/dist/components/button/button.js +0 -387
- package/dist/components/checkbox/checkbox.js +0 -320
- package/dist/components/color-pickers/color-picker.js +0 -272
- package/dist/components/color-pickers/color-swatch.js +0 -58
- package/dist/components/color-pickers/gradient-editor.js +0 -534
- package/dist/components/color-pickers/solid-color-picker.js +0 -1567
- package/dist/components/component-toggle/component-toggle.js +0 -158
- package/dist/components/container-panel/container-panel.js +0 -131
- package/dist/components/draggable/draggable-context.js +0 -5
- package/dist/components/draggable/draggable-handle.js +0 -46
- package/dist/components/draggable/draggable.js +0 -6207
- package/dist/components/draggable-list/draggable-list-context.js +0 -5
- package/dist/components/draggable-list/draggable-list-item.js +0 -77
- package/dist/components/draggable-list/draggable-list.js +0 -151
- package/dist/components/expandable/expandable.js +0 -342
- package/dist/components/index.js +0 -137
- package/dist/components/input-field/input-field.js +0 -231
- package/dist/components/item-collection/item-collection.js +0 -59
- package/dist/components/layout/hstack.js +0 -30
- package/dist/components/layout/vstack.js +0 -30
- package/dist/components/link-input/link-input.js +0 -293
- package/dist/components/matrix-align/matrix-align.js +0 -134
- package/dist/components/menu/menu.js +0 -285
- package/dist/components/modal/modal.js +0 -305
- package/dist/components/notice/notice.js +0 -123
- package/dist/components/number-picker/number-picker.js +0 -292
- package/dist/components/option-select/option-select.js +0 -264
- package/dist/components/options-panel/options-panel.js +0 -158
- package/dist/components/placeholders/file-placeholder.js +0 -42
- package/dist/components/placeholders/image-placeholder.js +0 -88
- package/dist/components/placeholders/media-placeholder.js +0 -63
- package/dist/components/popover/popover.js +0 -207
- package/dist/components/radio/radio.js +0 -579
- package/dist/components/repeater/repeater-context.js +0 -5
- package/dist/components/repeater/repeater-item.js +0 -119
- package/dist/components/repeater/repeater.js +0 -280
- package/dist/components/responsive/mini-responsive.js +0 -498
- package/dist/components/responsive/responsive-legacy.js +0 -343
- package/dist/components/responsive/responsive.js +0 -580
- package/dist/components/responsive-preview/responsive-preview.js +0 -123
- package/dist/components/rich-label/rich-label.js +0 -66
- package/dist/components/select/async-multi-select.js +0 -157
- package/dist/components/select/async-single-select.js +0 -137
- package/dist/components/select/custom-select-default-components.js +0 -38
- package/dist/components/select/multi-select-components.js +0 -8
- package/dist/components/select/multi-select.js +0 -151
- package/dist/components/select/react-select-component-wrappers.js +0 -90
- package/dist/components/select/shared.js +0 -26
- package/dist/components/select/single-select.js +0 -131
- package/dist/components/select/styles.js +0 -49
- package/dist/components/select/v2/async-select.js +0 -297
- package/dist/components/select/v2/shared.js +0 -24
- package/dist/components/select/v2/single-select.js +0 -990
- package/dist/components/slider/column-config-slider.js +0 -210
- package/dist/components/slider/slider.js +0 -343
- package/dist/components/slider/utils.js +0 -84
- package/dist/components/spacer/spacer.js +0 -97
- package/dist/components/tabs/tabs.js +0 -702
- package/dist/components/toggle/switch.js +0 -155
- package/dist/components/toggle/toggle.js +0 -64
- package/dist/components/toggle-button/toggle-button.js +0 -324
- package/dist/components/tooltip/tooltip.js +0 -525
- package/dist/context-D2KUdwNL.js +0 -92
- package/dist/default-i18n-CT_oS1Fy.js +0 -922
- package/dist/filterDOMProps-EDDcM64A.js +0 -28
- package/dist/icons/block-icon.js +0 -42
- package/dist/icons/generic-color-swatch.js +0 -113
- package/dist/icons/icons.js +0 -30371
- package/dist/icons/index.js +0 -11
- package/dist/icons/jsx-svg.js +0 -50
- package/dist/index-641ee5b8.esm-BPz6U6sJ.js +0 -3137
- package/dist/index-BKGQ6jGS.js +0 -44
- package/dist/index-BYHhzLf-.js +0 -444
- package/dist/index.js +0 -139
- package/dist/lite-DVmmD_-j.js +0 -7
- package/dist/modifiers.esm-BuJQPI1X.js +0 -31
- package/dist/multi-select-components-BlZZoNXC.js +0 -3744
- package/dist/number-GajL10e1.js +0 -36
- package/dist/react-jsx-parser.min-DZCiis5V.js +0 -11753
- package/dist/react-select-async.esm-CwUoej5h.js +0 -107
- package/dist/react-select.esm-DcwYxadV.js +0 -15
- package/dist/style-admin.js +0 -1
- package/dist/style-editor.js +0 -1
- package/dist/style.js +0 -1
- package/dist/textSelection-0UUS8Yfg.js +0 -46
- package/dist/useButton-BpOKDWEN.js +0 -71
- package/dist/useEvent-B0b-6KBr.js +0 -23
- package/dist/useFocusRing-CV5l3lf6.js +0 -107
- package/dist/useFormReset-C5OggHsw.js +0 -22
- package/dist/useFormValidation-DhDNSjws.js +0 -224
- package/dist/useHover-DwDr6ozG.js +0 -900
- package/dist/useLabel-D7HkNEHT.js +0 -27
- package/dist/useLabels-D8cxd1Z8.js +0 -23
- package/dist/useListState-UGlN5-7P.js +0 -161
- package/dist/useLocalizedStringFormatter-CFP1YZWQ.js +0 -121
- package/dist/useNumberField-CEAj7Mrj.js +0 -1204
- package/dist/useNumberFormatter-321rAb4J.js +0 -13
- package/dist/usePress-DNW8qpY6.js +0 -664
- package/dist/useSingleSelectListState-DC0wWTUM.js +0 -38
- package/dist/useToggle-BrpmSOB-.js +0 -59
- package/dist/useToggleState-CmQX3SoX.js +0 -19
- package/dist/utilities/array-helpers.js +0 -56
- package/dist/utilities/debounce-throttle.js +0 -123
- package/dist/utilities/es-dash.js +0 -376
- package/dist/utilities/index.js +0 -27
- package/dist/utilities/text-helpers.js +0 -136
- package/dist/utils-DkCSC521.js +0 -370
- package/dist/wp/wp-font-enhancements.js +0 -1
- package/dist/wp/wp-ui-enhancements.js +0 -1
package/dist/ListBox-mJ4nQaL7.js
DELETED
|
@@ -1,581 +0,0 @@
|
|
|
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-ddre1L5v.js";
|
|
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-DkCSC521.js";
|
|
3
|
-
import React__default, { createContext, useCallback, forwardRef, useMemo, useContext, useEffect, useRef } from "react";
|
|
4
|
-
import { b as $982254629710d113$export$b95089534ab7c1fd, c as $453cc9f0df89c0a5$export$77d5aafae4e095b2, d as $d2f53cda644affe3$export$65d2a03b8800d6e3, e as $325a3faab7a68acd$export$a16aca283550c30d, f as $2a25aae57d74318e$export$a05409b8bb224a5a, g as $431f98aba6844401$export$6615d83f6de245ce, h as $72a5793c14baf454$export$e0e4026c12a8bdbb } from "./Separator-D9moUgP8.js";
|
|
5
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-DVSAPY-K.js";
|
|
6
|
-
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
7
|
-
import { a as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "./usePress-DNW8qpY6.js";
|
|
8
|
-
import { A as $c87311424ea30a05$export$9ac100e40613ea10, B as $c87311424ea30a05$export$78551043582a6a98, $ as $6179b936705e76d3$export$ae780daf29e6d456, m as $507fabe10e71c6fb$export$b9b3dfddab17db27 } from "./useHover-DwDr6ozG.js";
|
|
9
|
-
import { a as $9ab94262bd0047c7$export$420e68273165f4ec, $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-CV5l3lf6.js";
|
|
10
|
-
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-D7HkNEHT.js";
|
|
11
|
-
import { a as $e72dd72e1c76a225$export$ba9d38c0f1bf2b36, $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-UGlN5-7P.js";
|
|
12
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-D2KUdwNL.js";
|
|
13
|
-
import { b as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-Cri5BFRz.js";
|
|
14
|
-
const $b1f0cad8af73213b$export$3585ede4d035bf14 = /* @__PURE__ */ new WeakMap();
|
|
15
|
-
function $b1f0cad8af73213b$var$normalizeKey(key) {
|
|
16
|
-
if (typeof key === "string") return key.replace(/\s*/g, "");
|
|
17
|
-
return "" + key;
|
|
18
|
-
}
|
|
19
|
-
function $b1f0cad8af73213b$export$9145995848b05025(state, itemKey) {
|
|
20
|
-
let data = $b1f0cad8af73213b$export$3585ede4d035bf14.get(state);
|
|
21
|
-
if (!data) throw new Error("Unknown list");
|
|
22
|
-
return `${data.id}-option-${$b1f0cad8af73213b$var$normalizeKey(itemKey)}`;
|
|
23
|
-
}
|
|
24
|
-
function $c132121280ec012d$export$50eacbbf140a3141(props, state, ref) {
|
|
25
|
-
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
26
|
-
labelable: true
|
|
27
|
-
});
|
|
28
|
-
let selectionBehavior = props.selectionBehavior || "toggle";
|
|
29
|
-
let linkBehavior = props.linkBehavior || (selectionBehavior === "replace" ? "action" : "override");
|
|
30
|
-
if (selectionBehavior === "toggle" && linkBehavior === "action")
|
|
31
|
-
linkBehavior = "override";
|
|
32
|
-
let { listProps } = $982254629710d113$export$b95089534ab7c1fd({
|
|
33
|
-
...props,
|
|
34
|
-
ref,
|
|
35
|
-
selectionManager: state.selectionManager,
|
|
36
|
-
collection: state.collection,
|
|
37
|
-
disabledKeys: state.disabledKeys,
|
|
38
|
-
linkBehavior
|
|
39
|
-
});
|
|
40
|
-
let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
|
|
41
|
-
onFocusWithin: props.onFocus,
|
|
42
|
-
onBlurWithin: props.onBlur,
|
|
43
|
-
onFocusWithinChange: props.onFocusChange
|
|
44
|
-
});
|
|
45
|
-
let id = $bdb11010cef70236$export$f680877a34711e37(props.id);
|
|
46
|
-
$b1f0cad8af73213b$export$3585ede4d035bf14.set(state, {
|
|
47
|
-
id,
|
|
48
|
-
shouldUseVirtualFocus: props.shouldUseVirtualFocus,
|
|
49
|
-
shouldSelectOnPressUp: props.shouldSelectOnPressUp,
|
|
50
|
-
shouldFocusOnHover: props.shouldFocusOnHover,
|
|
51
|
-
isVirtualized: props.isVirtualized,
|
|
52
|
-
onAction: props.onAction,
|
|
53
|
-
linkBehavior
|
|
54
|
-
});
|
|
55
|
-
let { labelProps, fieldProps } = $d191a55c9702f145$export$8467354a121f1b9f({
|
|
56
|
-
...props,
|
|
57
|
-
id,
|
|
58
|
-
// listbox is not an HTML input element so it
|
|
59
|
-
// shouldn't be labeled by a <label> element.
|
|
60
|
-
labelElementType: "span"
|
|
61
|
-
});
|
|
62
|
-
return {
|
|
63
|
-
labelProps,
|
|
64
|
-
listBoxProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, focusWithinProps, state.selectionManager.selectionMode === "multiple" ? {
|
|
65
|
-
"aria-multiselectable": "true"
|
|
66
|
-
} : {}, {
|
|
67
|
-
role: "listbox",
|
|
68
|
-
...$3ef42575df84b30b$export$9d1611c77c2fe928(fieldProps, listProps)
|
|
69
|
-
})
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
|
|
73
|
-
var _item_props, _item_props1;
|
|
74
|
-
let { key } = props;
|
|
75
|
-
let data = $b1f0cad8af73213b$export$3585ede4d035bf14.get(state);
|
|
76
|
-
var _props_isDisabled;
|
|
77
|
-
let isDisabled = (_props_isDisabled = props.isDisabled) !== null && _props_isDisabled !== void 0 ? _props_isDisabled : state.selectionManager.isDisabled(key);
|
|
78
|
-
var _props_isSelected;
|
|
79
|
-
let isSelected = (_props_isSelected = props.isSelected) !== null && _props_isSelected !== void 0 ? _props_isSelected : state.selectionManager.isSelected(key);
|
|
80
|
-
var _props_shouldSelectOnPressUp;
|
|
81
|
-
let shouldSelectOnPressUp = (_props_shouldSelectOnPressUp = props.shouldSelectOnPressUp) !== null && _props_shouldSelectOnPressUp !== void 0 ? _props_shouldSelectOnPressUp : data === null || data === void 0 ? void 0 : data.shouldSelectOnPressUp;
|
|
82
|
-
var _props_shouldFocusOnHover;
|
|
83
|
-
let shouldFocusOnHover = (_props_shouldFocusOnHover = props.shouldFocusOnHover) !== null && _props_shouldFocusOnHover !== void 0 ? _props_shouldFocusOnHover : data === null || data === void 0 ? void 0 : data.shouldFocusOnHover;
|
|
84
|
-
var _props_shouldUseVirtualFocus;
|
|
85
|
-
let shouldUseVirtualFocus = (_props_shouldUseVirtualFocus = props.shouldUseVirtualFocus) !== null && _props_shouldUseVirtualFocus !== void 0 ? _props_shouldUseVirtualFocus : data === null || data === void 0 ? void 0 : data.shouldUseVirtualFocus;
|
|
86
|
-
var _props_isVirtualized;
|
|
87
|
-
let isVirtualized = (_props_isVirtualized = props.isVirtualized) !== null && _props_isVirtualized !== void 0 ? _props_isVirtualized : data === null || data === void 0 ? void 0 : data.isVirtualized;
|
|
88
|
-
let labelId = $bdb11010cef70236$export$b4cc09c592e8fdb8();
|
|
89
|
-
let descriptionId = $bdb11010cef70236$export$b4cc09c592e8fdb8();
|
|
90
|
-
let optionProps = {
|
|
91
|
-
role: "option",
|
|
92
|
-
"aria-disabled": isDisabled || void 0,
|
|
93
|
-
"aria-selected": state.selectionManager.selectionMode !== "none" ? isSelected : void 0
|
|
94
|
-
};
|
|
95
|
-
if (!($c87311424ea30a05$export$9ac100e40613ea10() && $c87311424ea30a05$export$78551043582a6a98())) {
|
|
96
|
-
optionProps["aria-label"] = props["aria-label"];
|
|
97
|
-
optionProps["aria-labelledby"] = labelId;
|
|
98
|
-
optionProps["aria-describedby"] = descriptionId;
|
|
99
|
-
}
|
|
100
|
-
let item = state.collection.getItem(key);
|
|
101
|
-
if (isVirtualized) {
|
|
102
|
-
let index = Number(item === null || item === void 0 ? void 0 : item.index);
|
|
103
|
-
optionProps["aria-posinset"] = Number.isNaN(index) ? void 0 : index + 1;
|
|
104
|
-
optionProps["aria-setsize"] = $453cc9f0df89c0a5$export$77d5aafae4e095b2(state.collection);
|
|
105
|
-
}
|
|
106
|
-
let onAction = (data === null || data === void 0 ? void 0 : data.onAction) ? () => {
|
|
107
|
-
var _data_onAction;
|
|
108
|
-
return data === null || data === void 0 ? void 0 : (_data_onAction = data.onAction) === null || _data_onAction === void 0 ? void 0 : _data_onAction.call(data, key);
|
|
109
|
-
} : void 0;
|
|
110
|
-
let id = $b1f0cad8af73213b$export$9145995848b05025(state, key);
|
|
111
|
-
let { itemProps, isPressed, isFocused, hasAction, allowsSelection } = $880e95eb8b93ba9a$export$ecf600387e221c37({
|
|
112
|
-
selectionManager: state.selectionManager,
|
|
113
|
-
key,
|
|
114
|
-
ref,
|
|
115
|
-
shouldSelectOnPressUp,
|
|
116
|
-
allowsDifferentPressOrigin: shouldSelectOnPressUp && shouldFocusOnHover,
|
|
117
|
-
isVirtualized,
|
|
118
|
-
shouldUseVirtualFocus,
|
|
119
|
-
isDisabled,
|
|
120
|
-
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,
|
|
121
|
-
linkBehavior: data === null || data === void 0 ? void 0 : data.linkBehavior,
|
|
122
|
-
id
|
|
123
|
-
});
|
|
124
|
-
let { hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456({
|
|
125
|
-
isDisabled: isDisabled || !shouldFocusOnHover,
|
|
126
|
-
onHoverStart() {
|
|
127
|
-
if (!$507fabe10e71c6fb$export$b9b3dfddab17db27()) {
|
|
128
|
-
state.selectionManager.setFocused(true);
|
|
129
|
-
state.selectionManager.setFocusedKey(key);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(item === null || item === void 0 ? void 0 : item.props);
|
|
134
|
-
delete domProps.id;
|
|
135
|
-
let linkProps = $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(item === null || item === void 0 ? void 0 : item.props);
|
|
136
|
-
return {
|
|
137
|
-
optionProps: {
|
|
138
|
-
...optionProps,
|
|
139
|
-
...$3ef42575df84b30b$export$9d1611c77c2fe928(domProps, itemProps, hoverProps, linkProps),
|
|
140
|
-
id
|
|
141
|
-
},
|
|
142
|
-
labelProps: {
|
|
143
|
-
id: labelId
|
|
144
|
-
},
|
|
145
|
-
descriptionProps: {
|
|
146
|
-
id: descriptionId
|
|
147
|
-
},
|
|
148
|
-
isFocused,
|
|
149
|
-
isFocusVisible: isFocused && state.selectionManager.isFocused && $507fabe10e71c6fb$export$b9b3dfddab17db27(),
|
|
150
|
-
isSelected,
|
|
151
|
-
isDisabled,
|
|
152
|
-
isPressed,
|
|
153
|
-
allowsSelection,
|
|
154
|
-
hasAction
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
function $af383d3bef1cfdc9$export$c3f9f39876e4bc7(props) {
|
|
158
|
-
let { heading, "aria-label": ariaLabel } = props;
|
|
159
|
-
let headingId = $bdb11010cef70236$export$f680877a34711e37();
|
|
160
|
-
return {
|
|
161
|
-
itemProps: {
|
|
162
|
-
role: "presentation"
|
|
163
|
-
},
|
|
164
|
-
headingProps: heading ? {
|
|
165
|
-
// Techincally, listbox cannot contain headings according to ARIA.
|
|
166
|
-
// We hide the heading from assistive technology, using role="presentation",
|
|
167
|
-
// and only use it as a visual label for the nested group.
|
|
168
|
-
id: headingId,
|
|
169
|
-
role: "presentation"
|
|
170
|
-
} : {},
|
|
171
|
-
groupProps: {
|
|
172
|
-
role: "group",
|
|
173
|
-
"aria-label": ariaLabel,
|
|
174
|
-
"aria-labelledby": heading ? headingId : void 0
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
const $612b8eb6cb90e02d$export$d188a835a7bc5783 = /* @__PURE__ */ createContext({});
|
|
179
|
-
const $612b8eb6cb90e02d$export$f55761759794cf55 = /* @__PURE__ */ createContext(null);
|
|
180
|
-
const $612b8eb6cb90e02d$export$62ed72bc21f6b8a6 = /* @__PURE__ */ forwardRef(function DropIndicator(props, ref) {
|
|
181
|
-
let { render } = useContext($612b8eb6cb90e02d$export$f55761759794cf55);
|
|
182
|
-
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, render(props, ref));
|
|
183
|
-
});
|
|
184
|
-
function $612b8eb6cb90e02d$export$971707d8a129a1f7(dragAndDropHooks, dropState) {
|
|
185
|
-
var _dragAndDropHooks_isVirtualDragging;
|
|
186
|
-
let renderDropIndicator = dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.renderDropIndicator;
|
|
187
|
-
let isVirtualDragging = dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : (_dragAndDropHooks_isVirtualDragging = dragAndDropHooks.isVirtualDragging) === null || _dragAndDropHooks_isVirtualDragging === void 0 ? void 0 : _dragAndDropHooks_isVirtualDragging.call(dragAndDropHooks);
|
|
188
|
-
let fn = useCallback((target) => {
|
|
189
|
-
if (isVirtualDragging || (dropState === null || dropState === void 0 ? void 0 : dropState.isDropTarget(target))) return renderDropIndicator ? renderDropIndicator(target) : /* @__PURE__ */ React__default.createElement($612b8eb6cb90e02d$export$62ed72bc21f6b8a6, {
|
|
190
|
-
target
|
|
191
|
-
});
|
|
192
|
-
}, [
|
|
193
|
-
dropState === null || dropState === void 0 ? void 0 : dropState.target,
|
|
194
|
-
isVirtualDragging,
|
|
195
|
-
renderDropIndicator
|
|
196
|
-
]);
|
|
197
|
-
return (dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDropIndicator) ? fn : void 0;
|
|
198
|
-
}
|
|
199
|
-
function $612b8eb6cb90e02d$export$d1e8e3fbb7461f6(selectionManager, dragAndDropHooks, dropState) {
|
|
200
|
-
var _dragAndDropHooks_isVirtualDragging, _dropState_target;
|
|
201
|
-
let focusedKey = selectionManager.focusedKey;
|
|
202
|
-
let dropTargetKey = null;
|
|
203
|
-
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") {
|
|
204
|
-
dropTargetKey = dropState.target.key;
|
|
205
|
-
var _dropState_collection_getKeyAfter;
|
|
206
|
-
if (dropState.target.dropPosition === "after")
|
|
207
|
-
dropTargetKey = (_dropState_collection_getKeyAfter = dropState.collection.getKeyAfter(dropTargetKey)) !== null && _dropState_collection_getKeyAfter !== void 0 ? _dropState_collection_getKeyAfter : dropTargetKey;
|
|
208
|
-
}
|
|
209
|
-
return useMemo(() => {
|
|
210
|
-
return new Set([
|
|
211
|
-
focusedKey,
|
|
212
|
-
dropTargetKey
|
|
213
|
-
].filter((k) => k != null));
|
|
214
|
-
}, [
|
|
215
|
-
focusedKey,
|
|
216
|
-
dropTargetKey
|
|
217
|
-
]);
|
|
218
|
-
}
|
|
219
|
-
const $eed445e0843c11d0$export$7ff8f37d2d81a48d = /* @__PURE__ */ createContext(null);
|
|
220
|
-
const $eed445e0843c11d0$export$7c5906fe4f1f2af2 = /* @__PURE__ */ createContext(null);
|
|
221
|
-
const $eed445e0843c11d0$export$41f133550aa26f48 = /* @__PURE__ */ forwardRef(function ListBox(props, ref) {
|
|
222
|
-
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $eed445e0843c11d0$export$7ff8f37d2d81a48d);
|
|
223
|
-
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
224
|
-
if (state) return /* @__PURE__ */ React__default.createElement($eed445e0843c11d0$var$ListBoxInner, {
|
|
225
|
-
state,
|
|
226
|
-
props,
|
|
227
|
-
listBoxRef: ref
|
|
228
|
-
});
|
|
229
|
-
return /* @__PURE__ */ React__default.createElement($e1995378a142960e$export$bf788dd355e3a401, {
|
|
230
|
-
content: /* @__PURE__ */ React__default.createElement($e1995378a142960e$export$fb8073518f34e6ec, props)
|
|
231
|
-
}, (collection) => /* @__PURE__ */ React__default.createElement($eed445e0843c11d0$var$StandaloneListBox, {
|
|
232
|
-
props,
|
|
233
|
-
listBoxRef: ref,
|
|
234
|
-
collection
|
|
235
|
-
}));
|
|
236
|
-
});
|
|
237
|
-
function $eed445e0843c11d0$var$StandaloneListBox({ props, listBoxRef, collection }) {
|
|
238
|
-
props = {
|
|
239
|
-
...props,
|
|
240
|
-
collection,
|
|
241
|
-
children: null,
|
|
242
|
-
items: null
|
|
243
|
-
};
|
|
244
|
-
let { layoutDelegate } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
245
|
-
let state = $e72dd72e1c76a225$export$2f645645f7bca764({
|
|
246
|
-
...props,
|
|
247
|
-
layoutDelegate
|
|
248
|
-
});
|
|
249
|
-
return /* @__PURE__ */ React__default.createElement($eed445e0843c11d0$var$ListBoxInner, {
|
|
250
|
-
state,
|
|
251
|
-
props,
|
|
252
|
-
listBoxRef
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
function $eed445e0843c11d0$var$ListBoxInner({ state: inputState, props, listBoxRef }) {
|
|
256
|
-
let { filter, collectionProps, collectionRef } = useContext($d2f53cda644affe3$export$65d2a03b8800d6e3) || {};
|
|
257
|
-
props = useMemo(() => collectionProps ? {
|
|
258
|
-
...props,
|
|
259
|
-
...collectionProps
|
|
260
|
-
} : props, [
|
|
261
|
-
props,
|
|
262
|
-
collectionProps
|
|
263
|
-
]);
|
|
264
|
-
let { dragAndDropHooks, layout = "stack", orientation = "vertical" } = props;
|
|
265
|
-
listBoxRef = $df56164dff5785e2$export$4338b53315abf666(useMemo(() => $5dc95899b306f630$export$c9058316764c140e(listBoxRef, collectionRef !== void 0 ? collectionRef : null), [
|
|
266
|
-
collectionRef,
|
|
267
|
-
listBoxRef
|
|
268
|
-
]));
|
|
269
|
-
let state = $e72dd72e1c76a225$export$ba9d38c0f1bf2b36(inputState, filter);
|
|
270
|
-
let { collection, selectionManager } = state;
|
|
271
|
-
let isListDraggable = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDraggableCollectionState);
|
|
272
|
-
let isListDroppable = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDroppableCollectionState);
|
|
273
|
-
let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
274
|
-
let { disabledBehavior, disabledKeys } = selectionManager;
|
|
275
|
-
let collator = $325a3faab7a68acd$export$a16aca283550c30d({
|
|
276
|
-
usage: "search",
|
|
277
|
-
sensitivity: "base"
|
|
278
|
-
});
|
|
279
|
-
let { isVirtualized, layoutDelegate, dropTargetDelegate: ctxDropTargetDelegate, CollectionRoot } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
280
|
-
let keyboardDelegate = useMemo(() => props.keyboardDelegate || new $2a25aae57d74318e$export$a05409b8bb224a5a({
|
|
281
|
-
collection,
|
|
282
|
-
collator,
|
|
283
|
-
ref: listBoxRef,
|
|
284
|
-
disabledKeys,
|
|
285
|
-
disabledBehavior,
|
|
286
|
-
layout,
|
|
287
|
-
orientation,
|
|
288
|
-
direction,
|
|
289
|
-
layoutDelegate
|
|
290
|
-
}), [
|
|
291
|
-
collection,
|
|
292
|
-
collator,
|
|
293
|
-
listBoxRef,
|
|
294
|
-
disabledBehavior,
|
|
295
|
-
disabledKeys,
|
|
296
|
-
orientation,
|
|
297
|
-
direction,
|
|
298
|
-
props.keyboardDelegate,
|
|
299
|
-
layout,
|
|
300
|
-
layoutDelegate
|
|
301
|
-
]);
|
|
302
|
-
let { listBoxProps } = $c132121280ec012d$export$50eacbbf140a3141({
|
|
303
|
-
...props,
|
|
304
|
-
shouldSelectOnPressUp: isListDraggable || props.shouldSelectOnPressUp,
|
|
305
|
-
keyboardDelegate,
|
|
306
|
-
isVirtualized
|
|
307
|
-
}, state, listBoxRef);
|
|
308
|
-
let dragHooksProvided = useRef(isListDraggable);
|
|
309
|
-
let dropHooksProvided = useRef(isListDroppable);
|
|
310
|
-
useEffect(() => {
|
|
311
|
-
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.");
|
|
312
|
-
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.");
|
|
313
|
-
}, [
|
|
314
|
-
isListDraggable,
|
|
315
|
-
isListDroppable
|
|
316
|
-
]);
|
|
317
|
-
let dragState = void 0;
|
|
318
|
-
let dropState = void 0;
|
|
319
|
-
let droppableCollection = void 0;
|
|
320
|
-
let isRootDropTarget = false;
|
|
321
|
-
let dragPreview = null;
|
|
322
|
-
let preview = useRef(null);
|
|
323
|
-
if (isListDraggable && dragAndDropHooks) {
|
|
324
|
-
dragState = dragAndDropHooks.useDraggableCollectionState({
|
|
325
|
-
collection,
|
|
326
|
-
selectionManager,
|
|
327
|
-
preview: dragAndDropHooks.renderDragPreview ? preview : void 0
|
|
328
|
-
});
|
|
329
|
-
dragAndDropHooks.useDraggableCollection({}, dragState, listBoxRef);
|
|
330
|
-
let DragPreview = dragAndDropHooks.DragPreview;
|
|
331
|
-
dragPreview = dragAndDropHooks.renderDragPreview ? /* @__PURE__ */ React__default.createElement(DragPreview, {
|
|
332
|
-
ref: preview
|
|
333
|
-
}, dragAndDropHooks.renderDragPreview) : null;
|
|
334
|
-
}
|
|
335
|
-
if (isListDroppable && dragAndDropHooks) {
|
|
336
|
-
dropState = dragAndDropHooks.useDroppableCollectionState({
|
|
337
|
-
collection,
|
|
338
|
-
selectionManager
|
|
339
|
-
});
|
|
340
|
-
let dropTargetDelegate = dragAndDropHooks.dropTargetDelegate || ctxDropTargetDelegate || new dragAndDropHooks.ListDropTargetDelegate(collection, listBoxRef, {
|
|
341
|
-
orientation,
|
|
342
|
-
layout,
|
|
343
|
-
direction
|
|
344
|
-
});
|
|
345
|
-
droppableCollection = dragAndDropHooks.useDroppableCollection({
|
|
346
|
-
keyboardDelegate,
|
|
347
|
-
dropTargetDelegate
|
|
348
|
-
}, dropState, listBoxRef);
|
|
349
|
-
isRootDropTarget = dropState.isDropTarget({
|
|
350
|
-
type: "root"
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
let { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f();
|
|
354
|
-
let renderValues = {
|
|
355
|
-
isDropTarget: isRootDropTarget,
|
|
356
|
-
isEmpty: state.collection.size === 0,
|
|
357
|
-
isFocused,
|
|
358
|
-
isFocusVisible,
|
|
359
|
-
layout: props.layout || "stack",
|
|
360
|
-
state
|
|
361
|
-
};
|
|
362
|
-
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
363
|
-
className: props.className,
|
|
364
|
-
style: props.style,
|
|
365
|
-
defaultClassName: "react-aria-ListBox",
|
|
366
|
-
values: renderValues
|
|
367
|
-
});
|
|
368
|
-
let emptyState = null;
|
|
369
|
-
if (state.collection.size === 0 && props.renderEmptyState) emptyState = /* @__PURE__ */ React__default.createElement("div", {
|
|
370
|
-
// eslint-disable-next-line
|
|
371
|
-
role: "option",
|
|
372
|
-
style: {
|
|
373
|
-
display: "contents"
|
|
374
|
-
}
|
|
375
|
-
}, props.renderEmptyState(renderValues));
|
|
376
|
-
return /* @__PURE__ */ React__default.createElement($9bf71ea28793e738$export$20e40289641fbbb6, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
377
|
-
...$65484d02dcb7eb3e$export$457c3d6518dd4c6f(props),
|
|
378
|
-
...$3ef42575df84b30b$export$9d1611c77c2fe928(listBoxProps, focusProps, droppableCollection === null || droppableCollection === void 0 ? void 0 : droppableCollection.collectionProps),
|
|
379
|
-
...renderProps,
|
|
380
|
-
ref: listBoxRef,
|
|
381
|
-
slot: props.slot || void 0,
|
|
382
|
-
onScroll: props.onScroll,
|
|
383
|
-
"data-drop-target": isRootDropTarget || void 0,
|
|
384
|
-
"data-empty": state.collection.size === 0 || void 0,
|
|
385
|
-
"data-focused": isFocused || void 0,
|
|
386
|
-
"data-focus-visible": isFocusVisible || void 0,
|
|
387
|
-
"data-layout": props.layout || "stack",
|
|
388
|
-
"data-orientation": props.orientation || "vertical"
|
|
389
|
-
}, /* @__PURE__ */ React__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
390
|
-
values: [
|
|
391
|
-
[
|
|
392
|
-
$eed445e0843c11d0$export$7ff8f37d2d81a48d,
|
|
393
|
-
props
|
|
394
|
-
],
|
|
395
|
-
[
|
|
396
|
-
$eed445e0843c11d0$export$7c5906fe4f1f2af2,
|
|
397
|
-
state
|
|
398
|
-
],
|
|
399
|
-
[
|
|
400
|
-
$612b8eb6cb90e02d$export$d188a835a7bc5783,
|
|
401
|
-
{
|
|
402
|
-
dragAndDropHooks,
|
|
403
|
-
dragState,
|
|
404
|
-
dropState
|
|
405
|
-
}
|
|
406
|
-
],
|
|
407
|
-
[
|
|
408
|
-
$431f98aba6844401$export$6615d83f6de245ce,
|
|
409
|
-
{
|
|
410
|
-
elementType: "div"
|
|
411
|
-
}
|
|
412
|
-
],
|
|
413
|
-
[
|
|
414
|
-
$612b8eb6cb90e02d$export$f55761759794cf55,
|
|
415
|
-
{
|
|
416
|
-
render: $eed445e0843c11d0$var$ListBoxDropIndicatorWrapper
|
|
417
|
-
}
|
|
418
|
-
],
|
|
419
|
-
[
|
|
420
|
-
$7135fc7d473fd974$export$d40e14dec8b060a8,
|
|
421
|
-
{
|
|
422
|
-
name: "ListBoxSection",
|
|
423
|
-
render: $eed445e0843c11d0$var$ListBoxSectionInner
|
|
424
|
-
}
|
|
425
|
-
]
|
|
426
|
-
]
|
|
427
|
-
}, /* @__PURE__ */ React__default.createElement(CollectionRoot, {
|
|
428
|
-
collection,
|
|
429
|
-
scrollRef: listBoxRef,
|
|
430
|
-
persistedKeys: $612b8eb6cb90e02d$export$d1e8e3fbb7461f6(selectionManager, dragAndDropHooks, dropState),
|
|
431
|
-
renderDropIndicator: $612b8eb6cb90e02d$export$971707d8a129a1f7(dragAndDropHooks, dropState)
|
|
432
|
-
})), emptyState, dragPreview));
|
|
433
|
-
}
|
|
434
|
-
function $eed445e0843c11d0$var$ListBoxSectionInner(props, ref, section, className = "react-aria-ListBoxSection") {
|
|
435
|
-
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
436
|
-
let { dragAndDropHooks, dropState } = useContext($612b8eb6cb90e02d$export$d188a835a7bc5783);
|
|
437
|
-
let { CollectionBranch } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
438
|
-
let [headingRef, heading] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8();
|
|
439
|
-
var _props_arialabel;
|
|
440
|
-
let { headingProps, groupProps } = $af383d3bef1cfdc9$export$c3f9f39876e4bc7({
|
|
441
|
-
heading,
|
|
442
|
-
"aria-label": (_props_arialabel = props["aria-label"]) !== null && _props_arialabel !== void 0 ? _props_arialabel : void 0
|
|
443
|
-
});
|
|
444
|
-
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
445
|
-
defaultClassName: className,
|
|
446
|
-
className: props.className,
|
|
447
|
-
style: props.style,
|
|
448
|
-
values: {}
|
|
449
|
-
});
|
|
450
|
-
return /* @__PURE__ */ React__default.createElement("section", {
|
|
451
|
-
...$65484d02dcb7eb3e$export$457c3d6518dd4c6f(props),
|
|
452
|
-
...groupProps,
|
|
453
|
-
...renderProps,
|
|
454
|
-
ref
|
|
455
|
-
}, /* @__PURE__ */ React__default.createElement($72a5793c14baf454$export$e0e4026c12a8bdbb.Provider, {
|
|
456
|
-
value: {
|
|
457
|
-
...headingProps,
|
|
458
|
-
ref: headingRef
|
|
459
|
-
}
|
|
460
|
-
}, /* @__PURE__ */ React__default.createElement(CollectionBranch, {
|
|
461
|
-
collection: state.collection,
|
|
462
|
-
parent: section,
|
|
463
|
-
renderDropIndicator: $612b8eb6cb90e02d$export$971707d8a129a1f7(dragAndDropHooks, dropState)
|
|
464
|
-
})));
|
|
465
|
-
}
|
|
466
|
-
const $eed445e0843c11d0$export$a11e76429ed99b4 = /* @__PURE__ */ $e1995378a142960e$export$18af5c7a9e9b3664("item", function ListBoxItem(props, forwardedRef, item) {
|
|
467
|
-
let ref = $df56164dff5785e2$export$4338b53315abf666(forwardedRef);
|
|
468
|
-
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
469
|
-
let { dragAndDropHooks, dragState, dropState } = useContext($612b8eb6cb90e02d$export$d188a835a7bc5783);
|
|
470
|
-
let { optionProps, labelProps, descriptionProps, ...states } = $293f70390ea03370$export$497855f14858aa34({
|
|
471
|
-
key: item.key,
|
|
472
|
-
"aria-label": props === null || props === void 0 ? void 0 : props["aria-label"]
|
|
473
|
-
}, state, ref);
|
|
474
|
-
let { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({
|
|
475
|
-
isDisabled: !states.allowsSelection && !states.hasAction,
|
|
476
|
-
onHoverStart: item.props.onHoverStart,
|
|
477
|
-
onHoverChange: item.props.onHoverChange,
|
|
478
|
-
onHoverEnd: item.props.onHoverEnd
|
|
479
|
-
});
|
|
480
|
-
let draggableItem = null;
|
|
481
|
-
if (dragState && dragAndDropHooks) draggableItem = dragAndDropHooks.useDraggableItem({
|
|
482
|
-
key: item.key
|
|
483
|
-
}, dragState);
|
|
484
|
-
let droppableItem = null;
|
|
485
|
-
if (dropState && dragAndDropHooks) droppableItem = dragAndDropHooks.useDroppableItem({
|
|
486
|
-
target: {
|
|
487
|
-
type: "item",
|
|
488
|
-
key: item.key,
|
|
489
|
-
dropPosition: "on"
|
|
490
|
-
}
|
|
491
|
-
}, dropState, ref);
|
|
492
|
-
let isDragging = dragState && dragState.isDragging(item.key);
|
|
493
|
-
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
494
|
-
...props,
|
|
495
|
-
id: void 0,
|
|
496
|
-
children: props.children,
|
|
497
|
-
defaultClassName: "react-aria-ListBoxItem",
|
|
498
|
-
values: {
|
|
499
|
-
...states,
|
|
500
|
-
isHovered,
|
|
501
|
-
selectionMode: state.selectionManager.selectionMode,
|
|
502
|
-
selectionBehavior: state.selectionManager.selectionBehavior,
|
|
503
|
-
allowsDragging: !!dragState,
|
|
504
|
-
isDragging,
|
|
505
|
-
isDropTarget: droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.isDropTarget
|
|
506
|
-
}
|
|
507
|
-
});
|
|
508
|
-
useEffect(() => {
|
|
509
|
-
if (!item.textValue) 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.");
|
|
510
|
-
}, [
|
|
511
|
-
item.textValue
|
|
512
|
-
]);
|
|
513
|
-
let ElementType = props.href ? "a" : "div";
|
|
514
|
-
return /* @__PURE__ */ React__default.createElement(ElementType, {
|
|
515
|
-
...$3ef42575df84b30b$export$9d1611c77c2fe928(optionProps, hoverProps, draggableItem === null || draggableItem === void 0 ? void 0 : draggableItem.dragProps, droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.dropProps),
|
|
516
|
-
...renderProps,
|
|
517
|
-
ref,
|
|
518
|
-
"data-allows-dragging": !!dragState || void 0,
|
|
519
|
-
"data-selected": states.isSelected || void 0,
|
|
520
|
-
"data-disabled": states.isDisabled || void 0,
|
|
521
|
-
"data-hovered": isHovered || void 0,
|
|
522
|
-
"data-focused": states.isFocused || void 0,
|
|
523
|
-
"data-focus-visible": states.isFocusVisible || void 0,
|
|
524
|
-
"data-pressed": states.isPressed || void 0,
|
|
525
|
-
"data-dragging": isDragging || void 0,
|
|
526
|
-
"data-drop-target": (droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.isDropTarget) || void 0,
|
|
527
|
-
"data-selection-mode": state.selectionManager.selectionMode === "none" ? void 0 : state.selectionManager.selectionMode
|
|
528
|
-
}, /* @__PURE__ */ React__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
529
|
-
values: [
|
|
530
|
-
[
|
|
531
|
-
$514c0188e459b4c0$export$9afb8bc826b033ea,
|
|
532
|
-
{
|
|
533
|
-
slots: {
|
|
534
|
-
[$64fa3d84918910a7$export$c62b8e45d58ddad9]: labelProps,
|
|
535
|
-
label: labelProps,
|
|
536
|
-
description: descriptionProps
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
]
|
|
540
|
-
]
|
|
541
|
-
}, renderProps.children));
|
|
542
|
-
});
|
|
543
|
-
function $eed445e0843c11d0$var$ListBoxDropIndicatorWrapper(props, ref) {
|
|
544
|
-
ref = $df56164dff5785e2$export$4338b53315abf666(ref);
|
|
545
|
-
let { dragAndDropHooks, dropState } = useContext($612b8eb6cb90e02d$export$d188a835a7bc5783);
|
|
546
|
-
let { dropIndicatorProps, isHidden, isDropTarget } = dragAndDropHooks.useDropIndicator(props, dropState, ref);
|
|
547
|
-
if (isHidden) return null;
|
|
548
|
-
return /* @__PURE__ */ React__default.createElement($eed445e0843c11d0$var$ListBoxDropIndicatorForwardRef, {
|
|
549
|
-
...props,
|
|
550
|
-
dropIndicatorProps,
|
|
551
|
-
isDropTarget,
|
|
552
|
-
ref
|
|
553
|
-
});
|
|
554
|
-
}
|
|
555
|
-
function $eed445e0843c11d0$var$ListBoxDropIndicator(props, ref) {
|
|
556
|
-
let { dropIndicatorProps, isDropTarget, ...otherProps } = props;
|
|
557
|
-
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
558
|
-
...otherProps,
|
|
559
|
-
defaultClassName: "react-aria-DropIndicator",
|
|
560
|
-
values: {
|
|
561
|
-
isDropTarget
|
|
562
|
-
}
|
|
563
|
-
});
|
|
564
|
-
return /* @__PURE__ */ React__default.createElement("div", {
|
|
565
|
-
...dropIndicatorProps,
|
|
566
|
-
...renderProps,
|
|
567
|
-
// eslint-disable-next-line
|
|
568
|
-
role: "option",
|
|
569
|
-
ref,
|
|
570
|
-
"data-drop-target": isDropTarget || void 0
|
|
571
|
-
});
|
|
572
|
-
}
|
|
573
|
-
const $eed445e0843c11d0$var$ListBoxDropIndicatorForwardRef = /* @__PURE__ */ forwardRef($eed445e0843c11d0$var$ListBoxDropIndicator);
|
|
574
|
-
export {
|
|
575
|
-
$eed445e0843c11d0$export$41f133550aa26f48 as $,
|
|
576
|
-
$eed445e0843c11d0$export$a11e76429ed99b4 as a,
|
|
577
|
-
$eed445e0843c11d0$export$7ff8f37d2d81a48d as b,
|
|
578
|
-
$eed445e0843c11d0$export$7c5906fe4f1f2af2 as c,
|
|
579
|
-
$b1f0cad8af73213b$export$3585ede4d035bf14 as d,
|
|
580
|
-
$b1f0cad8af73213b$export$9145995848b05025 as e
|
|
581
|
-
};
|