@eightshift/ui-components 5.2.1 → 5.3.1
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-RTwMSBs-.js → Button-npzfSoYo.js} +3 -3
- package/dist/{Dialog-Xf6AsnV-.js → Dialog-CQ8H6Noi.js} +77 -50
- package/dist/{FocusScope-BnwM-e8R.js → FocusScope-DJApHXhY.js} +1 -1
- package/dist/Form-Cq3fu75_.js +5 -0
- package/dist/{Group-C4cXobNT.js → Input-ChJaTNa5.js} +39 -39
- package/dist/{List-CwJTORxj.js → List-BiAnh5G5.js} +5 -5
- package/dist/{ListBox-BeC97FZ4.js → ListBox-D0Stb4wr.js} +13 -23
- package/dist/{OverlayArrow-EZ0v_ljk.js → OverlayArrow-DivvkAVb.js} +46 -25
- package/dist/{Separator-Fl7qSeN-.js → SearchField-jVsbJe1O.js} +151 -475
- package/dist/{Select-DEQf8ZWI.js → Select-ciHB1pub.js} +12 -11
- package/dist/{Select-ef7c0426.esm-D6WOCaYm.js → Select-ef7c0426.esm-CmTkSxDx.js} +3 -3
- package/dist/{Collection-D_KhdLDC.js → SelectionManager-CabSdgMq.js} +1801 -1777
- package/dist/Separator-BPvqJny4.js +344 -0
- package/dist/{Slider-BQFSEhvk.js → Slider-ChP04COa.js} +4 -4
- package/dist/{VisuallyHidden-D9s7FTtC.js → VisuallyHidden-X6SggVVO.js} +1 -1
- package/dist/assets/style-admin.css +315 -79
- package/dist/assets/style-editor.css +315 -79
- package/dist/assets/style.css +315 -79
- package/dist/assets/wp-font-enhancements.css +1 -1
- package/dist/assets/wp-ui-enhancements.css +5 -14
- package/dist/components/animated-visibility/animated-visibility.js +16 -16
- package/dist/components/button/button.js +28 -23
- package/dist/components/checkbox/checkbox.js +11 -10
- package/dist/components/color-pickers/color-picker.js +5 -4
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +7 -7
- package/dist/components/color-pickers/solid-color-picker.js +8 -8
- package/dist/components/component-toggle/component-toggle.js +1 -1
- package/dist/components/draggable/draggable-handle.js +1 -1
- package/dist/components/draggable/draggable.js +34 -17
- package/dist/components/draggable-list/draggable-list-item.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +6 -4
- package/dist/components/expandable/expandable.js +5 -5
- package/dist/components/index.js +2 -1
- package/dist/components/input-field/input-field.js +139 -3
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +16 -15
- package/dist/components/matrix-align/matrix-align.js +1 -1
- package/dist/components/menu/menu.js +94 -24
- package/dist/components/modal/modal.js +4 -4
- package/dist/components/notice/notice.js +6 -5
- package/dist/components/number-picker/number-picker.js +5 -5
- package/dist/components/option-select/option-select.js +1 -1
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +28 -21
- package/dist/components/radio/radio.js +7 -6
- package/dist/components/repeater/repeater-item.js +1 -1
- package/dist/components/repeater/repeater.js +2 -2
- package/dist/components/responsive/mini-responsive.js +1 -1
- package/dist/components/responsive/responsive-legacy.js +1 -1
- package/dist/components/responsive/responsive.js +21 -20
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/rich-label/rich-label.js +28 -15
- package/dist/components/select/async-multi-select.js +3 -3
- package/dist/components/select/async-single-select.js +2 -2
- package/dist/components/select/custom-select-default-components.js +1 -1
- package/dist/components/select/multi-select-components.js +1 -1
- package/dist/components/select/multi-select.js +3 -3
- package/dist/components/select/react-select-component-wrappers.js +1 -1
- package/dist/components/select/single-select.js +2 -2
- package/dist/components/select/styles.js +1 -1
- package/dist/components/select/v2/async-multi-select.js +9 -9
- package/dist/components/select/v2/async-select.js +9 -9
- package/dist/components/select/v2/multi-select.js +8 -8
- package/dist/components/select/v2/shared.js +1 -1
- package/dist/components/select/v2/single-select.js +8 -8
- package/dist/components/slider/column-config-slider.js +2 -2
- package/dist/components/slider/slider.js +1 -1
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/tabs/tabs.js +13 -9
- package/dist/components/toggle/switch.js +5 -5
- package/dist/components/toggle-button/toggle-button.js +7 -7
- package/dist/components/tooltip/tooltip.js +35 -35
- package/dist/context-DCAZLyDS.js +7 -0
- package/dist/{default-i18n-DY6EfUSA.js → default-i18n-CN_q3KUs.js} +15 -56
- package/dist/icons/icons.js +3347 -30273
- package/dist/{index-641ee5b8.esm-Bu-mgopl.js → index-641ee5b8.esm-DVp0njHa.js} +10 -8
- package/dist/{index-CBHA_HDD.js → index-D8-Zjpbd.js} +18 -18
- package/dist/index.js +2 -1
- package/dist/{multi-select-components-rCCyCaKO.js → multi-select-components-CT_W0Cy9.js} +1 -1
- package/dist/{react-select-async.esm-XYrsKYb2.js → react-select-async.esm-Zl1LPaPb.js} +3 -3
- package/dist/{react-select.esm-CCSPY6XR.js → react-select.esm-Bu36HujU.js} +3 -3
- package/dist/{textSelection-D5tWX1rJ.js → textSelection-k0u64dDA.js} +1 -1
- package/dist/{useAsyncList-ZqaIH2gh.js → useAsyncList-D52mQcrH.js} +30 -0
- package/dist/{useButton-BtJSiQi3.js → useButton-Bn4ZT295.js} +4 -3
- package/dist/{useDragAndDrop-CddFteYC.js → useDragAndDrop-DVLrIdEn.js} +18 -10
- package/dist/{useFilter-Cl2ggwwq.js → useFilter-C4wo8Iii.js} +1 -1
- package/dist/{useFocusRing-D5BfOWag.js → useFocusRing-CUxgjvAY.js} +1 -1
- package/dist/{Form-BeMxJA29.js → useFormValidation-CUtZcedF.js} +5 -7
- package/dist/{useHover-44IApaa2.js → useHover-LmGemtHE.js} +24 -24
- package/dist/{useListState-BSkHuB7-.js → useListState-Xsk-aOvN.js} +8 -5
- package/dist/{useNumberField-JhWPy1JY.js → useNumberField-BCjjZWaz.js} +100 -99
- package/dist/{usePress-BnrkvZ7e.js → usePress-CBQIDzpQ.js} +12 -12
- package/dist/{useSingleSelectListState-CzJFsSHr.js → useSingleSelectListState-DattSD7d.js} +2 -2
- package/dist/{useToggle-OaIBlwRu.js → useToggle-C8CedY6Z.js} +2 -2
- package/dist/{useToggleState-BF8hvidm.js → useToggleState-CiAradXs.js} +1 -1
- package/package.json +26 -26
- package/dist/TextField-x_eEa_qR.js +0 -143
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
import { o as $cc38e7bd3fc7b213$export$2bb74740c4e19def, p as $feb5ffebff200149$export$c3d8340acf92597f, k as $ae20dd8cbca75726$export$d6daf82dcd84e87c, q as $c5a24bc478652b5f$export$1005530eda016c13, d as $e1995378a142960e$export$18af5c7a9e9b3664, r as $23b9f4fcf0fe224b$export$5ae2504e948afce5, m as $23b9f4fcf0fe224b$export$d68d59712b04d9d1 } from "./SelectionManager-CabSdgMq.js";
|
|
2
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-DMOmz986.js";
|
|
3
|
+
import React__default, { useMemo, createContext } from "react";
|
|
4
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-cvK1vxO7.js";
|
|
5
|
+
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-D2C6R0DK.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
|
+
}
|
|
12
|
+
let $325a3faab7a68acd$var$cache = /* @__PURE__ */ new Map();
|
|
13
|
+
function $325a3faab7a68acd$export$a16aca283550c30d(options) {
|
|
14
|
+
let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
15
|
+
let cacheKey = locale + (options ? Object.entries(options).sort((a, b) => a[0] < b[0] ? -1 : 1).join() : "");
|
|
16
|
+
if ($325a3faab7a68acd$var$cache.has(cacheKey)) return $325a3faab7a68acd$var$cache.get(cacheKey);
|
|
17
|
+
let formatter = new Intl.Collator(locale, options);
|
|
18
|
+
$325a3faab7a68acd$var$cache.set(cacheKey, formatter);
|
|
19
|
+
return formatter;
|
|
20
|
+
}
|
|
21
|
+
class $657e4dc4a6e88df0$export$8f5ed9ff9f511381 {
|
|
22
|
+
getItemRect(key) {
|
|
23
|
+
let container = this.ref.current;
|
|
24
|
+
if (!container) return null;
|
|
25
|
+
let item = key != null ? $feb5ffebff200149$export$c3d8340acf92597f(this.ref, key) : null;
|
|
26
|
+
if (!item) return null;
|
|
27
|
+
let containerRect = container.getBoundingClientRect();
|
|
28
|
+
let itemRect = item.getBoundingClientRect();
|
|
29
|
+
return {
|
|
30
|
+
x: itemRect.left - containerRect.left + container.scrollLeft,
|
|
31
|
+
y: itemRect.top - containerRect.top + container.scrollTop,
|
|
32
|
+
width: itemRect.width,
|
|
33
|
+
height: itemRect.height
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
getContentSize() {
|
|
37
|
+
let container = this.ref.current;
|
|
38
|
+
var _container_scrollWidth, _container_scrollHeight;
|
|
39
|
+
return {
|
|
40
|
+
width: (_container_scrollWidth = container === null || container === void 0 ? void 0 : container.scrollWidth) !== null && _container_scrollWidth !== void 0 ? _container_scrollWidth : 0,
|
|
41
|
+
height: (_container_scrollHeight = container === null || container === void 0 ? void 0 : container.scrollHeight) !== null && _container_scrollHeight !== void 0 ? _container_scrollHeight : 0
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
getVisibleRect() {
|
|
45
|
+
let container = this.ref.current;
|
|
46
|
+
var _container_scrollLeft, _container_scrollTop, _container_offsetWidth, _container_offsetHeight;
|
|
47
|
+
return {
|
|
48
|
+
x: (_container_scrollLeft = container === null || container === void 0 ? void 0 : container.scrollLeft) !== null && _container_scrollLeft !== void 0 ? _container_scrollLeft : 0,
|
|
49
|
+
y: (_container_scrollTop = container === null || container === void 0 ? void 0 : container.scrollTop) !== null && _container_scrollTop !== void 0 ? _container_scrollTop : 0,
|
|
50
|
+
width: (_container_offsetWidth = container === null || container === void 0 ? void 0 : container.offsetWidth) !== null && _container_offsetWidth !== void 0 ? _container_offsetWidth : 0,
|
|
51
|
+
height: (_container_offsetHeight = container === null || container === void 0 ? void 0 : container.offsetHeight) !== null && _container_offsetHeight !== void 0 ? _container_offsetHeight : 0
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
constructor(ref) {
|
|
55
|
+
this.ref = ref;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
class $2a25aae57d74318e$export$a05409b8bb224a5a {
|
|
59
|
+
isDisabled(item) {
|
|
60
|
+
var _item_props;
|
|
61
|
+
return this.disabledBehavior === "all" && (((_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.isDisabled) || this.disabledKeys.has(item.key));
|
|
62
|
+
}
|
|
63
|
+
findNextNonDisabled(key, getNext) {
|
|
64
|
+
let nextKey = key;
|
|
65
|
+
while (nextKey != null) {
|
|
66
|
+
let item = this.collection.getItem(nextKey);
|
|
67
|
+
if ((item === null || item === void 0 ? void 0 : item.type) === "item" && !this.isDisabled(item)) return nextKey;
|
|
68
|
+
nextKey = getNext(nextKey);
|
|
69
|
+
}
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
getNextKey(key) {
|
|
73
|
+
let nextKey = key;
|
|
74
|
+
nextKey = this.collection.getKeyAfter(nextKey);
|
|
75
|
+
return this.findNextNonDisabled(nextKey, (key2) => this.collection.getKeyAfter(key2));
|
|
76
|
+
}
|
|
77
|
+
getPreviousKey(key) {
|
|
78
|
+
let nextKey = key;
|
|
79
|
+
nextKey = this.collection.getKeyBefore(nextKey);
|
|
80
|
+
return this.findNextNonDisabled(nextKey, (key2) => this.collection.getKeyBefore(key2));
|
|
81
|
+
}
|
|
82
|
+
findKey(key, nextKey, shouldSkip) {
|
|
83
|
+
let tempKey = key;
|
|
84
|
+
let itemRect = this.layoutDelegate.getItemRect(tempKey);
|
|
85
|
+
if (!itemRect || tempKey == null) return null;
|
|
86
|
+
let prevRect = itemRect;
|
|
87
|
+
do {
|
|
88
|
+
tempKey = nextKey(tempKey);
|
|
89
|
+
if (tempKey == null) break;
|
|
90
|
+
itemRect = this.layoutDelegate.getItemRect(tempKey);
|
|
91
|
+
} while (itemRect && shouldSkip(prevRect, itemRect) && tempKey != null);
|
|
92
|
+
return tempKey;
|
|
93
|
+
}
|
|
94
|
+
isSameRow(prevRect, itemRect) {
|
|
95
|
+
return prevRect.y === itemRect.y || prevRect.x !== itemRect.x;
|
|
96
|
+
}
|
|
97
|
+
isSameColumn(prevRect, itemRect) {
|
|
98
|
+
return prevRect.x === itemRect.x || prevRect.y !== itemRect.y;
|
|
99
|
+
}
|
|
100
|
+
getKeyBelow(key) {
|
|
101
|
+
if (this.layout === "grid" && this.orientation === "vertical") return this.findKey(key, (key2) => this.getNextKey(key2), this.isSameRow);
|
|
102
|
+
else return this.getNextKey(key);
|
|
103
|
+
}
|
|
104
|
+
getKeyAbove(key) {
|
|
105
|
+
if (this.layout === "grid" && this.orientation === "vertical") return this.findKey(key, (key2) => this.getPreviousKey(key2), this.isSameRow);
|
|
106
|
+
else return this.getPreviousKey(key);
|
|
107
|
+
}
|
|
108
|
+
getNextColumn(key, right) {
|
|
109
|
+
return right ? this.getPreviousKey(key) : this.getNextKey(key);
|
|
110
|
+
}
|
|
111
|
+
getKeyRightOf(key) {
|
|
112
|
+
let layoutDelegateMethod = this.direction === "ltr" ? "getKeyRightOf" : "getKeyLeftOf";
|
|
113
|
+
if (this.layoutDelegate[layoutDelegateMethod]) {
|
|
114
|
+
key = this.layoutDelegate[layoutDelegateMethod](key);
|
|
115
|
+
return this.findNextNonDisabled(key, (key2) => this.layoutDelegate[layoutDelegateMethod](key2));
|
|
116
|
+
}
|
|
117
|
+
if (this.layout === "grid") {
|
|
118
|
+
if (this.orientation === "vertical") return this.getNextColumn(key, this.direction === "rtl");
|
|
119
|
+
else return this.findKey(key, (key2) => this.getNextColumn(key2, this.direction === "rtl"), this.isSameColumn);
|
|
120
|
+
} else if (this.orientation === "horizontal") return this.getNextColumn(key, this.direction === "rtl");
|
|
121
|
+
return null;
|
|
122
|
+
}
|
|
123
|
+
getKeyLeftOf(key) {
|
|
124
|
+
let layoutDelegateMethod = this.direction === "ltr" ? "getKeyLeftOf" : "getKeyRightOf";
|
|
125
|
+
if (this.layoutDelegate[layoutDelegateMethod]) {
|
|
126
|
+
key = this.layoutDelegate[layoutDelegateMethod](key);
|
|
127
|
+
return this.findNextNonDisabled(key, (key2) => this.layoutDelegate[layoutDelegateMethod](key2));
|
|
128
|
+
}
|
|
129
|
+
if (this.layout === "grid") {
|
|
130
|
+
if (this.orientation === "vertical") return this.getNextColumn(key, this.direction === "ltr");
|
|
131
|
+
else return this.findKey(key, (key2) => this.getNextColumn(key2, this.direction === "ltr"), this.isSameColumn);
|
|
132
|
+
} else if (this.orientation === "horizontal") return this.getNextColumn(key, this.direction === "ltr");
|
|
133
|
+
return null;
|
|
134
|
+
}
|
|
135
|
+
getFirstKey() {
|
|
136
|
+
let key = this.collection.getFirstKey();
|
|
137
|
+
return this.findNextNonDisabled(key, (key2) => this.collection.getKeyAfter(key2));
|
|
138
|
+
}
|
|
139
|
+
getLastKey() {
|
|
140
|
+
let key = this.collection.getLastKey();
|
|
141
|
+
return this.findNextNonDisabled(key, (key2) => this.collection.getKeyBefore(key2));
|
|
142
|
+
}
|
|
143
|
+
getKeyPageAbove(key) {
|
|
144
|
+
let menu = this.ref.current;
|
|
145
|
+
let itemRect = this.layoutDelegate.getItemRect(key);
|
|
146
|
+
if (!itemRect) return null;
|
|
147
|
+
if (menu && !$cc38e7bd3fc7b213$export$2bb74740c4e19def(menu)) return this.getFirstKey();
|
|
148
|
+
let nextKey = key;
|
|
149
|
+
if (this.orientation === "horizontal") {
|
|
150
|
+
let pageX = Math.max(0, itemRect.x + itemRect.width - this.layoutDelegate.getVisibleRect().width);
|
|
151
|
+
while (itemRect && itemRect.x > pageX && nextKey != null) {
|
|
152
|
+
nextKey = this.getKeyAbove(nextKey);
|
|
153
|
+
itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey);
|
|
154
|
+
}
|
|
155
|
+
} else {
|
|
156
|
+
let pageY = Math.max(0, itemRect.y + itemRect.height - this.layoutDelegate.getVisibleRect().height);
|
|
157
|
+
while (itemRect && itemRect.y > pageY && nextKey != null) {
|
|
158
|
+
nextKey = this.getKeyAbove(nextKey);
|
|
159
|
+
itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
return nextKey !== null && nextKey !== void 0 ? nextKey : this.getFirstKey();
|
|
163
|
+
}
|
|
164
|
+
getKeyPageBelow(key) {
|
|
165
|
+
let menu = this.ref.current;
|
|
166
|
+
let itemRect = this.layoutDelegate.getItemRect(key);
|
|
167
|
+
if (!itemRect) return null;
|
|
168
|
+
if (menu && !$cc38e7bd3fc7b213$export$2bb74740c4e19def(menu)) return this.getLastKey();
|
|
169
|
+
let nextKey = key;
|
|
170
|
+
if (this.orientation === "horizontal") {
|
|
171
|
+
let pageX = Math.min(this.layoutDelegate.getContentSize().width, itemRect.y - itemRect.width + this.layoutDelegate.getVisibleRect().width);
|
|
172
|
+
while (itemRect && itemRect.x < pageX && nextKey != null) {
|
|
173
|
+
nextKey = this.getKeyBelow(nextKey);
|
|
174
|
+
itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey);
|
|
175
|
+
}
|
|
176
|
+
} else {
|
|
177
|
+
let pageY = Math.min(this.layoutDelegate.getContentSize().height, itemRect.y - itemRect.height + this.layoutDelegate.getVisibleRect().height);
|
|
178
|
+
while (itemRect && itemRect.y < pageY && nextKey != null) {
|
|
179
|
+
nextKey = this.getKeyBelow(nextKey);
|
|
180
|
+
itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return nextKey !== null && nextKey !== void 0 ? nextKey : this.getLastKey();
|
|
184
|
+
}
|
|
185
|
+
getKeyForSearch(search, fromKey) {
|
|
186
|
+
if (!this.collator) return null;
|
|
187
|
+
let collection = this.collection;
|
|
188
|
+
let key = fromKey || this.getFirstKey();
|
|
189
|
+
while (key != null) {
|
|
190
|
+
let item = collection.getItem(key);
|
|
191
|
+
if (!item) return null;
|
|
192
|
+
let substring = item.textValue.slice(0, search.length);
|
|
193
|
+
if (item.textValue && this.collator.compare(substring, search) === 0) return key;
|
|
194
|
+
key = this.getNextKey(key);
|
|
195
|
+
}
|
|
196
|
+
return null;
|
|
197
|
+
}
|
|
198
|
+
constructor(...args) {
|
|
199
|
+
if (args.length === 1) {
|
|
200
|
+
let opts = args[0];
|
|
201
|
+
this.collection = opts.collection;
|
|
202
|
+
this.ref = opts.ref;
|
|
203
|
+
this.collator = opts.collator;
|
|
204
|
+
this.disabledKeys = opts.disabledKeys || /* @__PURE__ */ new Set();
|
|
205
|
+
this.disabledBehavior = opts.disabledBehavior || "all";
|
|
206
|
+
this.orientation = opts.orientation || "vertical";
|
|
207
|
+
this.direction = opts.direction;
|
|
208
|
+
this.layout = opts.layout || "stack";
|
|
209
|
+
this.layoutDelegate = opts.layoutDelegate || new $657e4dc4a6e88df0$export$8f5ed9ff9f511381(opts.ref);
|
|
210
|
+
} else {
|
|
211
|
+
this.collection = args[0];
|
|
212
|
+
this.disabledKeys = args[1];
|
|
213
|
+
this.ref = args[2];
|
|
214
|
+
this.collator = args[3];
|
|
215
|
+
this.layout = "stack";
|
|
216
|
+
this.orientation = "vertical";
|
|
217
|
+
this.disabledBehavior = "all";
|
|
218
|
+
this.layoutDelegate = new $657e4dc4a6e88df0$export$8f5ed9ff9f511381(this.ref);
|
|
219
|
+
}
|
|
220
|
+
if (this.layout === "stack" && this.orientation === "vertical") {
|
|
221
|
+
this.getKeyLeftOf = void 0;
|
|
222
|
+
this.getKeyRightOf = void 0;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
function $982254629710d113$export$b95089534ab7c1fd(props) {
|
|
227
|
+
let { selectionManager, collection, disabledKeys, ref, keyboardDelegate, layoutDelegate } = props;
|
|
228
|
+
let collator = $325a3faab7a68acd$export$a16aca283550c30d({
|
|
229
|
+
usage: "search",
|
|
230
|
+
sensitivity: "base"
|
|
231
|
+
});
|
|
232
|
+
let disabledBehavior = selectionManager.disabledBehavior;
|
|
233
|
+
let delegate = useMemo(() => keyboardDelegate || new $2a25aae57d74318e$export$a05409b8bb224a5a({
|
|
234
|
+
collection,
|
|
235
|
+
disabledKeys,
|
|
236
|
+
disabledBehavior,
|
|
237
|
+
ref,
|
|
238
|
+
collator,
|
|
239
|
+
layoutDelegate
|
|
240
|
+
}), [
|
|
241
|
+
keyboardDelegate,
|
|
242
|
+
layoutDelegate,
|
|
243
|
+
collection,
|
|
244
|
+
disabledKeys,
|
|
245
|
+
ref,
|
|
246
|
+
collator,
|
|
247
|
+
disabledBehavior
|
|
248
|
+
]);
|
|
249
|
+
let { collectionProps } = $ae20dd8cbca75726$export$d6daf82dcd84e87c({
|
|
250
|
+
...props,
|
|
251
|
+
ref,
|
|
252
|
+
selectionManager,
|
|
253
|
+
keyboardDelegate: delegate
|
|
254
|
+
});
|
|
255
|
+
return {
|
|
256
|
+
listProps: collectionProps
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
const $453cc9f0df89c0a5$var$cache = /* @__PURE__ */ new WeakMap();
|
|
260
|
+
function $453cc9f0df89c0a5$export$77d5aafae4e095b2(collection) {
|
|
261
|
+
let count = $453cc9f0df89c0a5$var$cache.get(collection);
|
|
262
|
+
if (count != null) return count;
|
|
263
|
+
let counter = 0;
|
|
264
|
+
let countItems = (items) => {
|
|
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
|
+
}
|
|
269
|
+
};
|
|
270
|
+
countItems(collection);
|
|
271
|
+
$453cc9f0df89c0a5$var$cache.set(collection, counter);
|
|
272
|
+
return counter;
|
|
273
|
+
}
|
|
274
|
+
function $f4b273590fab9f93$export$52210f68a14655d0(props) {
|
|
275
|
+
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
276
|
+
labelable: true
|
|
277
|
+
});
|
|
278
|
+
let ariaOrientation;
|
|
279
|
+
if (props.orientation === "vertical") ariaOrientation = "vertical";
|
|
280
|
+
if (props.elementType !== "hr") return {
|
|
281
|
+
separatorProps: {
|
|
282
|
+
...domProps,
|
|
283
|
+
role: "separator",
|
|
284
|
+
"aria-orientation": ariaOrientation
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
return {
|
|
288
|
+
separatorProps: domProps
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
const $72a5793c14baf454$export$e0e4026c12a8bdbb = /* @__PURE__ */ createContext({});
|
|
292
|
+
const $72a5793c14baf454$export$8b251419efc915eb = /* @__PURE__ */ $e1995378a142960e$export$18af5c7a9e9b3664($23b9f4fcf0fe224b$export$5ae2504e948afce5, function Header(props, ref) {
|
|
293
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $72a5793c14baf454$export$e0e4026c12a8bdbb);
|
|
294
|
+
return /* @__PURE__ */ React__default.createElement("header", {
|
|
295
|
+
className: "react-aria-Header",
|
|
296
|
+
...props,
|
|
297
|
+
ref
|
|
298
|
+
}, props.children);
|
|
299
|
+
});
|
|
300
|
+
const $431f98aba6844401$export$6615d83f6de245ce = /* @__PURE__ */ createContext({});
|
|
301
|
+
class $431f98aba6844401$export$7750289ca694c0b5 extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
|
|
302
|
+
filter(collection, newCollection) {
|
|
303
|
+
let prevItem = newCollection.getItem(this.prevKey);
|
|
304
|
+
if (prevItem && prevItem.type !== "separator") {
|
|
305
|
+
let clone = this.clone();
|
|
306
|
+
newCollection.addDescendants(clone, collection);
|
|
307
|
+
return clone;
|
|
308
|
+
}
|
|
309
|
+
return null;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
$431f98aba6844401$export$7750289ca694c0b5.type = "separator";
|
|
313
|
+
const $431f98aba6844401$export$1ff3c3f08ae963c0 = /* @__PURE__ */ $e1995378a142960e$export$18af5c7a9e9b3664($431f98aba6844401$export$7750289ca694c0b5, function Separator(props, ref) {
|
|
314
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $431f98aba6844401$export$6615d83f6de245ce);
|
|
315
|
+
let { elementType, orientation, style, className, slot, ...otherProps } = props;
|
|
316
|
+
let Element = elementType || "hr";
|
|
317
|
+
if (Element === "hr" && orientation === "vertical") Element = "div";
|
|
318
|
+
let { separatorProps } = $f4b273590fab9f93$export$52210f68a14655d0({
|
|
319
|
+
...otherProps,
|
|
320
|
+
elementType,
|
|
321
|
+
orientation
|
|
322
|
+
});
|
|
323
|
+
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
324
|
+
global: true
|
|
325
|
+
});
|
|
326
|
+
return /* @__PURE__ */ React__default.createElement(Element, {
|
|
327
|
+
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, separatorProps),
|
|
328
|
+
style,
|
|
329
|
+
className: className !== null && className !== void 0 ? className : "react-aria-Separator",
|
|
330
|
+
ref,
|
|
331
|
+
slot: slot || void 0
|
|
332
|
+
});
|
|
333
|
+
});
|
|
334
|
+
export {
|
|
335
|
+
$72a5793c14baf454$export$8b251419efc915eb as $,
|
|
336
|
+
$431f98aba6844401$export$1ff3c3f08ae963c0 as a,
|
|
337
|
+
$325a3faab7a68acd$export$a16aca283550c30d as b,
|
|
338
|
+
$62d8ded9296f3872$export$cfa2225e87938781 as c,
|
|
339
|
+
$982254629710d113$export$b95089534ab7c1fd as d,
|
|
340
|
+
$453cc9f0df89c0a5$export$77d5aafae4e095b2 as e,
|
|
341
|
+
$2a25aae57d74318e$export$a05409b8bb224a5a as f,
|
|
342
|
+
$431f98aba6844401$export$6615d83f6de245ce as g,
|
|
343
|
+
$72a5793c14baf454$export$e0e4026c12a8bdbb as h
|
|
344
|
+
};
|
|
@@ -3,14 +3,14 @@ import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-DWVaNd2E
|
|
|
3
3
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-D2C6R0DK.js";
|
|
4
4
|
import React__default, { useRef, useMemo, useCallback, useState, useEffect, forwardRef, createContext, useContext } from "react";
|
|
5
5
|
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-BCmkV-7c.js";
|
|
6
|
-
import {
|
|
6
|
+
import { e as $03deb23ff14920c4$export$4eaf04e54aa8eed6, a as $458b0a5536c1a7cf$export$40bfa8c7b0832715, v as $507fabe10e71c6fb$export$8397ddfc504fdb9a, z as $7215afc6de606d6b$export$de79e2c695e052f3, A as $46d819fcbaf35654$export$8f71654801c2f7cd, $ as $f645667febf57a63$export$4c014de7c8940b4c, w as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-LmGemtHE.js";
|
|
7
7
|
import { a as $9446cca9a3875146$export$cb6e0bb50bc19463, $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-7sOvrqo0.js";
|
|
8
|
-
import { $ as $14c0b72509d70225$export$b0d6fa1ab32e3295, a as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-
|
|
8
|
+
import { $ as $14c0b72509d70225$export$b0d6fa1ab32e3295, a as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-k0u64dDA.js";
|
|
9
9
|
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-C8umX0gk.js";
|
|
10
10
|
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-DMOmz986.js";
|
|
11
11
|
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-yV9VVy9R.js";
|
|
12
|
-
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-
|
|
13
|
-
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-
|
|
12
|
+
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-CUxgjvAY.js";
|
|
13
|
+
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-X6SggVVO.js";
|
|
14
14
|
function $e8a7022cf87cba2a$export$36da96379f79f245(props) {
|
|
15
15
|
let { onMoveStart, onMove, onMoveEnd } = props;
|
|
16
16
|
let state = useRef({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-cvK1vxO7.js";
|
|
2
2
|
import React__default, { useState, useMemo } from "react";
|
|
3
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-
|
|
3
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-CUxgjvAY.js";
|
|
4
4
|
const $5c3e21d68f1c4674$var$styles = {
|
|
5
5
|
border: 0,
|
|
6
6
|
clip: "rect(0 0 0 0)",
|