@eightshift/ui-components 2.0.2 → 3.0.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-OQ5EIPvt.js → Button-BPLceDeW.js} +5 -5
- package/dist/{Collection-CJM_asJz.js → Collection-CZxddMZS.js} +241 -135
- package/dist/{Color-B0HgM8f4.js → Color-MV5kBVXr.js} +1 -1
- package/dist/{ColorSwatch-Dv3Wxdl_.js → ColorSwatch-BqQfVu4L.js} +5 -5
- package/dist/{ComboBox-BnlZjJ3T.js → ComboBox-_RfyhwZw.js} +42 -21
- package/dist/{Dialog-CIh-hX93.js → Dialog-8tYeQ9n4.js} +202 -91
- package/dist/{FieldError-D7A6s7O5.js → FieldError-52GVSGgC.js} +2 -2
- package/dist/{FocusScope-Cs5_OoeA.js → FocusScope-Cri5BFRz.js} +206 -43
- package/dist/{Group-D6tr3U_n.js → Group-_emcIVxI.js} +3 -3
- package/dist/{Heading-DiYTXoIW.js → Heading-B2153VXe.js} +1 -1
- package/dist/{Hidden-DnOd_jPX.js → Hidden-rE6uR-lr.js} +2 -6
- package/dist/{Input-Se0m3ubj.js → Input-BxpFEIXV.js} +10 -10
- package/dist/{Label-Ca9uelsn.js → Label-icmbmNdI.js} +2 -2
- package/dist/{List-Br274SP1.js → List-CZMUbkFU.js} +3 -1
- package/dist/{ListBox-D9dFEh5A.js → ListBox-Ca6hiCqz.js} +29 -28
- package/dist/{OverlayArrow-1jx-ZyCR.js → OverlayArrow-CYXQSlEU.js} +7 -7
- package/dist/{Select-aab027f3.esm-HFNIFFya.js → Select-aab027f3.esm-PDJCDE95.js} +2 -2
- package/dist/{Separator-BhZycTUp.js → Separator-4IIDRlV_.js} +4 -4
- package/dist/{Slider-BZNaJylD.js → Slider-rz2XRMGm.js} +15 -16
- package/dist/{Text-aOUPPvTO.js → Text-DVSAPY-K.js} +1 -1
- package/dist/{VisuallyHidden-ClTQo25k.js → VisuallyHidden-f9zX67a_.js} +2 -2
- package/dist/assets/style-admin.css +1289 -1338
- package/dist/assets/style-editor.css +433 -482
- package/dist/assets/style.css +433 -482
- package/dist/assets/wp-font-enhancements.css +3 -3
- package/dist/assets/wp-ui-enhancements.css +45 -45
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +6 -6
- package/dist/components/checkbox/checkbox.js +13 -10
- package/dist/components/color-pickers/color-picker.js +1 -1
- package/dist/components/color-pickers/color-swatch.js +3 -3
- package/dist/components/color-pickers/gradient-editor.js +4 -4
- package/dist/components/color-pickers/solid-color-picker.js +22 -24
- package/dist/components/component-toggle/component-toggle.js +1 -1
- package/dist/components/container-panel/container-panel.js +9 -3
- package/dist/components/draggable/draggable-handle.js +2 -2
- package/dist/components/draggable/draggable.js +1167 -871
- package/dist/components/draggable-list/draggable-list-item.js +2 -2
- package/dist/components/draggable-list/draggable-list.js +2 -2
- package/dist/components/expandable/expandable.js +9 -9
- package/dist/components/input-field/input-field.js +10 -9
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +9 -10
- package/dist/components/matrix-align/matrix-align.js +2 -2
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/modal/modal.js +7 -7
- package/dist/components/number-picker/number-picker.js +15 -13
- package/dist/components/option-select/option-select.js +1 -1
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/placeholders/image-placeholder.js +1 -1
- package/dist/components/popover/popover.js +2 -2
- package/dist/components/radio/radio.js +20 -17
- package/dist/components/repeater/repeater-item.js +10 -3
- package/dist/components/repeater/repeater.js +34 -5
- package/dist/components/responsive/mini-responsive.js +8 -5
- package/dist/components/responsive/responsive-legacy.js +2 -2
- package/dist/components/responsive/responsive.js +10 -7
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/rich-label/rich-label.js +4 -3
- package/dist/components/select/async-multi-select.js +4 -4
- package/dist/components/select/async-single-select.js +3 -3
- package/dist/components/select/custom-select-default-components.js +1 -1
- package/dist/components/select/multi-select-components.js +3 -3
- package/dist/components/select/multi-select.js +4 -4
- package/dist/components/select/react-select-component-wrappers.js +1 -1
- package/dist/components/select/single-select.js +3 -3
- package/dist/components/select/v2/async-select.js +10 -10
- package/dist/components/select/v2/shared.js +2 -2
- package/dist/components/select/v2/single-select.js +24 -23
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/tabs/tabs.js +46 -26
- package/dist/components/toggle/switch.js +7 -7
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +6 -6
- package/dist/components/tooltip/tooltip.js +18 -24
- package/dist/{context-CDOs-GuR.js → context-D2KUdwNL.js} +1 -1
- package/dist/{default-i18n-CM1-Xvzf.js → default-i18n-CT_oS1Fy.js} +22 -3
- package/dist/icons/icons.js +229 -1629
- package/dist/icons/index.js +2 -3
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/{index-641ee5b8.esm-DbdaYaxR.js → index-641ee5b8.esm-DIuJijyT.js} +31 -31
- package/dist/{index-CcCn9HWX.js → index-BKGQ6jGS.js} +1 -1
- package/dist/{index-BRp93Yfa.js → index-CFozsmNS.js} +4 -1
- package/dist/{multi-select-components-DJfz929p.js → multi-select-components-Sp-JEFEX.js} +4 -4
- package/dist/{react-jsx-parser.min-CVit0rZn.js → react-jsx-parser.min-DZCiis5V.js} +48 -20
- package/dist/{react-select-async.esm-DcVLw9X5.js → react-select-async.esm-Bql4G5iV.js} +3 -3
- package/dist/{react-select.esm-OZ0cmTjg.js → react-select.esm-B_TudhTU.js} +3 -3
- package/dist/{textSelection-BlTDSskG.js → textSelection-0UUS8Yfg.js} +8 -47
- package/dist/{useButton-CmLbE5vg.js → useButton-Cg474OYB.js} +5 -5
- package/dist/{useEvent-cLDJlznQ.js → useEvent-B0b-6KBr.js} +1 -1
- package/dist/useFocusRing-CV5l3lf6.js +107 -0
- package/dist/{useFormReset-NpLM2e3G.js → useFormReset-C5OggHsw.js} +1 -1
- package/dist/{useFormValidation-BWwmZQE2.js → useFormValidation-DhDNSjws.js} +3 -3
- package/dist/{focusSafely-CiqTTjWy.js → useHover-DwDr6ozG.js} +305 -98
- package/dist/{useLabel-C85N3Hzw.js → useLabel-D7HkNEHT.js} +2 -2
- package/dist/{useLabels-C_2wWraB.js → useLabels-D8cxd1Z8.js} +1 -1
- package/dist/{useListState-Z7FB_NzO.js → useListState-DVr6aYd_.js} +28 -13
- package/dist/{useLocalizedStringFormatter-BQ4TF72x.js → useLocalizedStringFormatter-CFP1YZWQ.js} +1 -1
- package/dist/{useNumberField-Bm6_BVl9.js → useNumberField-TwM0Z9D1.js} +10 -10
- package/dist/{useNumberFormatter-DlUVKkO7.js → useNumberFormatter-321rAb4J.js} +1 -1
- package/dist/{usePress-rg_OQIGW.js → usePress-Cucx-xSA.js} +69 -63
- package/dist/{useSingleSelectListState-Cu3xtEJS.js → useSingleSelectListState-CMGsRHHh.js} +2 -2
- package/dist/{useToggle-DzlgBLAJ.js → useToggle-C0I3vs0g.js} +9 -7
- package/dist/{useToggleState-DhSBQxkp.js → useToggleState-CmQX3SoX.js} +1 -1
- package/dist/{utils-39D0mStj.js → utils-DkCSC521.js} +38 -35
- package/package.json +32 -32
- package/dist/useFocusRing-CGp3guTX.js +0 -41
- package/dist/useFocusable-087cO5Ct.js +0 -81
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import React__default, { useRef, useCallback, useEffect, useState, useContext, useMemo } from "react";
|
|
2
|
+
import { k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, n as $b5e257d569688ac6$export$535bd6ca7f90a273, l as $df56164dff5785e2$export$4338b53315abf666, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-DkCSC521.js";
|
|
3
3
|
const $431fbd86ca7dc216$export$b204af158042fbac = (el) => {
|
|
4
4
|
var _el_ownerDocument;
|
|
5
5
|
return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
|
|
@@ -9,6 +9,43 @@ const $431fbd86ca7dc216$export$f21a1ffae260145a = (el) => {
|
|
|
9
9
|
const doc = $431fbd86ca7dc216$export$b204af158042fbac(el);
|
|
10
10
|
return doc.defaultView || window;
|
|
11
11
|
};
|
|
12
|
+
function $431fbd86ca7dc216$var$isNode(value) {
|
|
13
|
+
return value !== null && typeof value === "object" && "nodeType" in value && typeof value.nodeType === "number";
|
|
14
|
+
}
|
|
15
|
+
function $431fbd86ca7dc216$export$af51f0f06c0f328a(node) {
|
|
16
|
+
return $431fbd86ca7dc216$var$isNode(node) && node.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in node;
|
|
17
|
+
}
|
|
18
|
+
let $f4e2df6bd15f8569$var$_shadowDOM = false;
|
|
19
|
+
function $f4e2df6bd15f8569$export$98658e8c59125e6a() {
|
|
20
|
+
return $f4e2df6bd15f8569$var$_shadowDOM;
|
|
21
|
+
}
|
|
22
|
+
function $d4ee10de306f2510$export$4282f70798064fe0(node, otherNode) {
|
|
23
|
+
if (!$f4e2df6bd15f8569$export$98658e8c59125e6a()) return otherNode && node ? node.contains(otherNode) : false;
|
|
24
|
+
if (!node || !otherNode) return false;
|
|
25
|
+
let currentNode = otherNode;
|
|
26
|
+
while (currentNode !== null) {
|
|
27
|
+
if (currentNode === node) return true;
|
|
28
|
+
if (currentNode.tagName === "SLOT" && currentNode.assignedSlot)
|
|
29
|
+
currentNode = currentNode.assignedSlot.parentNode;
|
|
30
|
+
else if ($431fbd86ca7dc216$export$af51f0f06c0f328a(currentNode))
|
|
31
|
+
currentNode = currentNode.host;
|
|
32
|
+
else currentNode = currentNode.parentNode;
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
const $d4ee10de306f2510$export$cd4e5573fbe2b576 = (doc = document) => {
|
|
37
|
+
var _activeElement_shadowRoot;
|
|
38
|
+
if (!$f4e2df6bd15f8569$export$98658e8c59125e6a()) return doc.activeElement;
|
|
39
|
+
let activeElement = doc.activeElement;
|
|
40
|
+
while (activeElement && "shadowRoot" in activeElement && ((_activeElement_shadowRoot = activeElement.shadowRoot) === null || _activeElement_shadowRoot === void 0 ? void 0 : _activeElement_shadowRoot.activeElement)) activeElement = activeElement.shadowRoot.activeElement;
|
|
41
|
+
return activeElement;
|
|
42
|
+
};
|
|
43
|
+
function $d4ee10de306f2510$export$e58f029f0fbfdb29(event) {
|
|
44
|
+
if ($f4e2df6bd15f8569$export$98658e8c59125e6a() && event.target.shadowRoot) {
|
|
45
|
+
if (event.composedPath) return event.composedPath()[0];
|
|
46
|
+
}
|
|
47
|
+
return event.target;
|
|
48
|
+
}
|
|
12
49
|
function $7215afc6de606d6b$export$de79e2c695e052f3(element) {
|
|
13
50
|
if ($7215afc6de606d6b$var$supportsPreventScroll()) element.focus({
|
|
14
51
|
preventScroll: true
|
|
@@ -151,6 +188,45 @@ function $bbed8b41f857bcc0$export$24490316f764c430(fn) {
|
|
|
151
188
|
else $bbed8b41f857bcc0$var$transitionCallbacks.add(fn);
|
|
152
189
|
});
|
|
153
190
|
}
|
|
191
|
+
function $03deb23ff14920c4$export$4eaf04e54aa8eed6() {
|
|
192
|
+
let globalListeners = useRef(/* @__PURE__ */ new Map());
|
|
193
|
+
let addGlobalListener = useCallback((eventTarget, type, listener, options) => {
|
|
194
|
+
let fn = (options === null || options === void 0 ? void 0 : options.once) ? (...args) => {
|
|
195
|
+
globalListeners.current.delete(listener);
|
|
196
|
+
listener(...args);
|
|
197
|
+
} : listener;
|
|
198
|
+
globalListeners.current.set(listener, {
|
|
199
|
+
type,
|
|
200
|
+
eventTarget,
|
|
201
|
+
fn,
|
|
202
|
+
options
|
|
203
|
+
});
|
|
204
|
+
eventTarget.addEventListener(type, fn, options);
|
|
205
|
+
}, []);
|
|
206
|
+
let removeGlobalListener = useCallback((eventTarget, type, listener, options) => {
|
|
207
|
+
var _globalListeners_current_get;
|
|
208
|
+
let fn = ((_globalListeners_current_get = globalListeners.current.get(listener)) === null || _globalListeners_current_get === void 0 ? void 0 : _globalListeners_current_get.fn) || listener;
|
|
209
|
+
eventTarget.removeEventListener(type, fn, options);
|
|
210
|
+
globalListeners.current.delete(listener);
|
|
211
|
+
}, []);
|
|
212
|
+
let removeAllGlobalListeners = useCallback(() => {
|
|
213
|
+
globalListeners.current.forEach((value, key) => {
|
|
214
|
+
removeGlobalListener(value.eventTarget, value.type, key, value.options);
|
|
215
|
+
});
|
|
216
|
+
}, [
|
|
217
|
+
removeGlobalListener
|
|
218
|
+
]);
|
|
219
|
+
useEffect(() => {
|
|
220
|
+
return removeAllGlobalListeners;
|
|
221
|
+
}, [
|
|
222
|
+
removeAllGlobalListeners
|
|
223
|
+
]);
|
|
224
|
+
return {
|
|
225
|
+
addGlobalListener,
|
|
226
|
+
removeGlobalListener,
|
|
227
|
+
removeAllGlobalListeners
|
|
228
|
+
};
|
|
229
|
+
}
|
|
154
230
|
function $e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, ref) {
|
|
155
231
|
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
156
232
|
if (context && context.ref && ref) {
|
|
@@ -169,6 +245,30 @@ function $6a7db85432448f7f$export$60278871457622de(event) {
|
|
|
169
245
|
function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {
|
|
170
246
|
return !$c87311424ea30a05$export$a11b0059900ceec8() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
|
|
171
247
|
}
|
|
248
|
+
const $b4b717babfbb907b$var$focusableElements = [
|
|
249
|
+
"input:not([disabled]):not([type=hidden])",
|
|
250
|
+
"select:not([disabled])",
|
|
251
|
+
"textarea:not([disabled])",
|
|
252
|
+
"button:not([disabled])",
|
|
253
|
+
"a[href]",
|
|
254
|
+
"area[href]",
|
|
255
|
+
"summary",
|
|
256
|
+
"iframe",
|
|
257
|
+
"object",
|
|
258
|
+
"embed",
|
|
259
|
+
"audio[controls]",
|
|
260
|
+
"video[controls]",
|
|
261
|
+
'[contenteditable]:not([contenteditable^="false"])'
|
|
262
|
+
];
|
|
263
|
+
const $b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
|
|
264
|
+
$b4b717babfbb907b$var$focusableElements.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
|
265
|
+
const $b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(':not([hidden]):not([tabindex="-1"]),');
|
|
266
|
+
function $b4b717babfbb907b$export$4c063cf1350e6fed(element) {
|
|
267
|
+
return element.matches($b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR);
|
|
268
|
+
}
|
|
269
|
+
function $b4b717babfbb907b$export$bebd5a1431fec25d(element) {
|
|
270
|
+
return element.matches($b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR);
|
|
271
|
+
}
|
|
172
272
|
function $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, onChange) {
|
|
173
273
|
let [stateValue, setStateValue] = useState(value || defaultValue);
|
|
174
274
|
let isControlledRef = useRef(value !== void 0);
|
|
@@ -301,37 +401,55 @@ function $8a9cb279dc87e130$export$715c682d09d639cc(onBlur) {
|
|
|
301
401
|
dispatchBlur
|
|
302
402
|
]);
|
|
303
403
|
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
404
|
+
let $8a9cb279dc87e130$export$fda7da73ab5d4c48 = false;
|
|
405
|
+
function $8a9cb279dc87e130$export$cabe61c495ee3649(target) {
|
|
406
|
+
while (target && !$b4b717babfbb907b$export$4c063cf1350e6fed(target)) target = target.parentElement;
|
|
407
|
+
let window2 = $431fbd86ca7dc216$export$f21a1ffae260145a(target);
|
|
408
|
+
let activeElement = window2.document.activeElement;
|
|
409
|
+
if (!activeElement || activeElement === target) return;
|
|
410
|
+
$8a9cb279dc87e130$export$fda7da73ab5d4c48 = true;
|
|
411
|
+
let isRefocusing = false;
|
|
412
|
+
let onBlur = (e) => {
|
|
413
|
+
if (e.target === activeElement || isRefocusing) e.stopImmediatePropagation();
|
|
414
|
+
};
|
|
415
|
+
let onFocusOut = (e) => {
|
|
416
|
+
if (e.target === activeElement || isRefocusing) {
|
|
417
|
+
e.stopImmediatePropagation();
|
|
418
|
+
if (!target && !isRefocusing) {
|
|
419
|
+
isRefocusing = true;
|
|
420
|
+
$7215afc6de606d6b$export$de79e2c695e052f3(activeElement);
|
|
421
|
+
cleanup();
|
|
422
|
+
}
|
|
323
423
|
}
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
424
|
+
};
|
|
425
|
+
let onFocus = (e) => {
|
|
426
|
+
if (e.target === target || isRefocusing) e.stopImmediatePropagation();
|
|
427
|
+
};
|
|
428
|
+
let onFocusIn = (e) => {
|
|
429
|
+
if (e.target === target || isRefocusing) {
|
|
430
|
+
e.stopImmediatePropagation();
|
|
431
|
+
if (!isRefocusing) {
|
|
432
|
+
isRefocusing = true;
|
|
433
|
+
$7215afc6de606d6b$export$de79e2c695e052f3(activeElement);
|
|
434
|
+
cleanup();
|
|
435
|
+
}
|
|
333
436
|
}
|
|
334
437
|
};
|
|
438
|
+
window2.addEventListener("blur", onBlur, true);
|
|
439
|
+
window2.addEventListener("focusout", onFocusOut, true);
|
|
440
|
+
window2.addEventListener("focusin", onFocusIn, true);
|
|
441
|
+
window2.addEventListener("focus", onFocus, true);
|
|
442
|
+
let cleanup = () => {
|
|
443
|
+
cancelAnimationFrame(raf);
|
|
444
|
+
window2.removeEventListener("blur", onBlur, true);
|
|
445
|
+
window2.removeEventListener("focusout", onFocusOut, true);
|
|
446
|
+
window2.removeEventListener("focusin", onFocusIn, true);
|
|
447
|
+
window2.removeEventListener("focus", onFocus, true);
|
|
448
|
+
$8a9cb279dc87e130$export$fda7da73ab5d4c48 = false;
|
|
449
|
+
isRefocusing = false;
|
|
450
|
+
};
|
|
451
|
+
let raf = requestAnimationFrame(cleanup);
|
|
452
|
+
return cleanup;
|
|
335
453
|
}
|
|
336
454
|
let $507fabe10e71c6fb$var$currentModality = null;
|
|
337
455
|
let $507fabe10e71c6fb$var$changeHandlers = /* @__PURE__ */ new Set();
|
|
@@ -369,7 +487,7 @@ function $507fabe10e71c6fb$var$handleClickEvent(e) {
|
|
|
369
487
|
}
|
|
370
488
|
}
|
|
371
489
|
function $507fabe10e71c6fb$var$handleFocusEvent(e) {
|
|
372
|
-
if (e.target === window || e.target === document) return;
|
|
490
|
+
if (e.target === window || e.target === document || $8a9cb279dc87e130$export$fda7da73ab5d4c48 || !e.isTrusted) return;
|
|
373
491
|
if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {
|
|
374
492
|
$507fabe10e71c6fb$var$currentModality = "virtual";
|
|
375
493
|
$507fabe10e71c6fb$var$triggerChangeHandlers("virtual", e);
|
|
@@ -378,6 +496,7 @@ function $507fabe10e71c6fb$var$handleFocusEvent(e) {
|
|
|
378
496
|
$507fabe10e71c6fb$var$hasBlurredWindowRecently = false;
|
|
379
497
|
}
|
|
380
498
|
function $507fabe10e71c6fb$var$handleWindowBlur() {
|
|
499
|
+
if ($8a9cb279dc87e130$export$fda7da73ab5d4c48) return;
|
|
381
500
|
$507fabe10e71c6fb$var$hasEventBeforeFocus = false;
|
|
382
501
|
$507fabe10e71c6fb$var$hasBlurredWindowRecently = true;
|
|
383
502
|
}
|
|
@@ -484,12 +603,12 @@ const $507fabe10e71c6fb$var$nonTextInputTypes = /* @__PURE__ */ new Set([
|
|
|
484
603
|
"reset"
|
|
485
604
|
]);
|
|
486
605
|
function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {
|
|
487
|
-
|
|
606
|
+
let document1 = $431fbd86ca7dc216$export$b204af158042fbac(e === null || e === void 0 ? void 0 : e.target);
|
|
488
607
|
const IHTMLInputElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;
|
|
489
608
|
const IHTMLTextAreaElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;
|
|
490
609
|
const IHTMLElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;
|
|
491
610
|
const IKeyboardEvent = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;
|
|
492
|
-
isTextInput = isTextInput ||
|
|
611
|
+
isTextInput = isTextInput || document1.activeElement instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(document1.activeElement.type) || document1.activeElement instanceof IHTMLTextAreaElement || document1.activeElement instanceof IHTMLElement && document1.activeElement.isContentEditable;
|
|
493
612
|
return !(isTextInput && modality === "keyboard" && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
|
|
494
613
|
}
|
|
495
614
|
function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {
|
|
@@ -505,49 +624,124 @@ function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {
|
|
|
505
624
|
};
|
|
506
625
|
}, deps);
|
|
507
626
|
}
|
|
508
|
-
function $
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
627
|
+
function $3ad3f6e1647bc98d$export$80f3e147d781571c(element) {
|
|
628
|
+
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
629
|
+
const activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
630
|
+
if ($507fabe10e71c6fb$export$630ff653c5ada6a9() === "virtual") {
|
|
631
|
+
let lastFocusedElement = activeElement;
|
|
632
|
+
$bbed8b41f857bcc0$export$24490316f764c430(() => {
|
|
633
|
+
if ($d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument) === lastFocusedElement && element.isConnected) $7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
634
|
+
});
|
|
635
|
+
} else $7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
636
|
+
}
|
|
637
|
+
function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {
|
|
638
|
+
let { isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange } = props;
|
|
639
|
+
const onBlur = useCallback((e) => {
|
|
640
|
+
if (e.target === e.currentTarget) {
|
|
641
|
+
if (onBlurProp) onBlurProp(e);
|
|
642
|
+
if (onFocusChange) onFocusChange(false);
|
|
643
|
+
return true;
|
|
518
644
|
}
|
|
519
645
|
}, [
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
state
|
|
646
|
+
onBlurProp,
|
|
647
|
+
onFocusChange
|
|
523
648
|
]);
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
649
|
+
const onSyntheticFocus = $8a9cb279dc87e130$export$715c682d09d639cc(onBlur);
|
|
650
|
+
const onFocus = useCallback((e) => {
|
|
651
|
+
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(e.target);
|
|
652
|
+
const activeElement = ownerDocument ? $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument) : $d4ee10de306f2510$export$cd4e5573fbe2b576();
|
|
653
|
+
if (e.target === e.currentTarget && activeElement === $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) {
|
|
654
|
+
if (onFocusProp) onFocusProp(e);
|
|
655
|
+
if (onFocusChange) onFocusChange(true);
|
|
530
656
|
onSyntheticFocus(e);
|
|
531
657
|
}
|
|
532
658
|
}, [
|
|
533
|
-
|
|
534
|
-
|
|
659
|
+
onFocusChange,
|
|
660
|
+
onFocusProp,
|
|
535
661
|
onSyntheticFocus
|
|
536
662
|
]);
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
onBlur: void 0
|
|
663
|
+
return {
|
|
664
|
+
focusProps: {
|
|
665
|
+
onFocus: !isDisabled && (onFocusProp || onFocusChange || onBlurProp) ? onFocus : void 0,
|
|
666
|
+
onBlur: !isDisabled && (onBlurProp || onFocusChange) ? onBlur : void 0
|
|
542
667
|
}
|
|
543
668
|
};
|
|
669
|
+
}
|
|
670
|
+
function $93925083ecbb358c$export$48d1ea6320830260(handler) {
|
|
671
|
+
if (!handler) return void 0;
|
|
672
|
+
let shouldStopPropagation = true;
|
|
673
|
+
return (e) => {
|
|
674
|
+
let event = {
|
|
675
|
+
...e,
|
|
676
|
+
preventDefault() {
|
|
677
|
+
e.preventDefault();
|
|
678
|
+
},
|
|
679
|
+
isDefaultPrevented() {
|
|
680
|
+
return e.isDefaultPrevented();
|
|
681
|
+
},
|
|
682
|
+
stopPropagation() {
|
|
683
|
+
if (shouldStopPropagation) console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.");
|
|
684
|
+
else shouldStopPropagation = true;
|
|
685
|
+
},
|
|
686
|
+
continuePropagation() {
|
|
687
|
+
shouldStopPropagation = false;
|
|
688
|
+
},
|
|
689
|
+
isPropagationStopped() {
|
|
690
|
+
return shouldStopPropagation;
|
|
691
|
+
}
|
|
692
|
+
};
|
|
693
|
+
handler(event);
|
|
694
|
+
if (shouldStopPropagation) e.stopPropagation();
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
function $46d819fcbaf35654$export$8f71654801c2f7cd(props) {
|
|
544
698
|
return {
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
699
|
+
keyboardProps: props.isDisabled ? {} : {
|
|
700
|
+
onKeyDown: $93925083ecbb358c$export$48d1ea6320830260(props.onKeyDown),
|
|
701
|
+
onKeyUp: $93925083ecbb358c$export$48d1ea6320830260(props.onKeyUp)
|
|
548
702
|
}
|
|
549
703
|
};
|
|
550
704
|
}
|
|
705
|
+
let $f645667febf57a63$export$f9762fab77588ecb = /* @__PURE__ */ React__default.createContext(null);
|
|
706
|
+
function $f645667febf57a63$var$useFocusableContext(ref) {
|
|
707
|
+
let context = useContext($f645667febf57a63$export$f9762fab77588ecb) || {};
|
|
708
|
+
$e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, ref);
|
|
709
|
+
let { ref: _, ...otherProps } = context;
|
|
710
|
+
return otherProps;
|
|
711
|
+
}
|
|
712
|
+
const $f645667febf57a63$export$13f3202a3e5ddd5 = /* @__PURE__ */ React__default.forwardRef(function FocusableProvider(props, ref) {
|
|
713
|
+
let { children, ...otherProps } = props;
|
|
714
|
+
let objRef = $df56164dff5785e2$export$4338b53315abf666(ref);
|
|
715
|
+
let context = {
|
|
716
|
+
...otherProps,
|
|
717
|
+
ref: objRef
|
|
718
|
+
};
|
|
719
|
+
return /* @__PURE__ */ React__default.createElement($f645667febf57a63$export$f9762fab77588ecb.Provider, {
|
|
720
|
+
value: context
|
|
721
|
+
}, children);
|
|
722
|
+
});
|
|
723
|
+
function $f645667febf57a63$export$4c014de7c8940b4c(props, domRef) {
|
|
724
|
+
let { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props);
|
|
725
|
+
let { keyboardProps } = $46d819fcbaf35654$export$8f71654801c2f7cd(props);
|
|
726
|
+
let interactions = $3ef42575df84b30b$export$9d1611c77c2fe928(focusProps, keyboardProps);
|
|
727
|
+
let domProps = $f645667febf57a63$var$useFocusableContext(domRef);
|
|
728
|
+
let interactionProps = props.isDisabled ? {} : domProps;
|
|
729
|
+
let autoFocusRef = useRef(props.autoFocus);
|
|
730
|
+
useEffect(() => {
|
|
731
|
+
if (autoFocusRef.current && domRef.current) $3ad3f6e1647bc98d$export$80f3e147d781571c(domRef.current);
|
|
732
|
+
autoFocusRef.current = false;
|
|
733
|
+
}, [
|
|
734
|
+
domRef
|
|
735
|
+
]);
|
|
736
|
+
let tabIndex = props.excludeFromTabOrder ? -1 : 0;
|
|
737
|
+
if (props.isDisabled) tabIndex = void 0;
|
|
738
|
+
return {
|
|
739
|
+
focusableProps: $3ef42575df84b30b$export$9d1611c77c2fe928({
|
|
740
|
+
...interactions,
|
|
741
|
+
tabIndex
|
|
742
|
+
}, interactionProps)
|
|
743
|
+
};
|
|
744
|
+
}
|
|
551
745
|
let $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = false;
|
|
552
746
|
let $6179b936705e76d3$var$hoverCount = 0;
|
|
553
747
|
function $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents() {
|
|
@@ -581,6 +775,7 @@ function $6179b936705e76d3$export$ae780daf29e6d456(props) {
|
|
|
581
775
|
target: null
|
|
582
776
|
}).current;
|
|
583
777
|
useEffect($6179b936705e76d3$var$setupGlobalTouchEvents, []);
|
|
778
|
+
let { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6();
|
|
584
779
|
let { hoverProps, triggerHoverEnd } = useMemo(() => {
|
|
585
780
|
let triggerHoverStart = (event, pointerType) => {
|
|
586
781
|
state.pointerType = pointerType;
|
|
@@ -588,6 +783,11 @@ function $6179b936705e76d3$export$ae780daf29e6d456(props) {
|
|
|
588
783
|
state.isHovered = true;
|
|
589
784
|
let target = event.currentTarget;
|
|
590
785
|
state.target = target;
|
|
786
|
+
addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(event.target), "pointerover", (e) => {
|
|
787
|
+
if (state.isHovered && state.target && !$d4ee10de306f2510$export$4282f70798064fe0(state.target, e.target)) triggerHoverEnd2(e, e.pointerType);
|
|
788
|
+
}, {
|
|
789
|
+
capture: true
|
|
790
|
+
});
|
|
591
791
|
if (onHoverStart) onHoverStart({
|
|
592
792
|
type: "hoverstart",
|
|
593
793
|
target,
|
|
@@ -597,11 +797,12 @@ function $6179b936705e76d3$export$ae780daf29e6d456(props) {
|
|
|
597
797
|
setHovered(true);
|
|
598
798
|
};
|
|
599
799
|
let triggerHoverEnd2 = (event, pointerType) => {
|
|
800
|
+
let target = state.target;
|
|
600
801
|
state.pointerType = "";
|
|
601
802
|
state.target = null;
|
|
602
|
-
if (pointerType === "touch" || !state.isHovered) return;
|
|
803
|
+
if (pointerType === "touch" || !state.isHovered || !target) return;
|
|
603
804
|
state.isHovered = false;
|
|
604
|
-
|
|
805
|
+
removeAllGlobalListeners();
|
|
605
806
|
if (onHoverEnd) onHoverEnd({
|
|
606
807
|
type: "hoverend",
|
|
607
808
|
target,
|
|
@@ -640,7 +841,9 @@ function $6179b936705e76d3$export$ae780daf29e6d456(props) {
|
|
|
640
841
|
onHoverChange,
|
|
641
842
|
onHoverEnd,
|
|
642
843
|
isDisabled,
|
|
643
|
-
state
|
|
844
|
+
state,
|
|
845
|
+
addGlobalListener,
|
|
846
|
+
removeAllGlobalListeners
|
|
644
847
|
]);
|
|
645
848
|
useEffect(() => {
|
|
646
849
|
if (isDisabled) triggerHoverEnd({
|
|
@@ -654,40 +857,44 @@ function $6179b936705e76d3$export$ae780daf29e6d456(props) {
|
|
|
654
857
|
isHovered
|
|
655
858
|
};
|
|
656
859
|
}
|
|
657
|
-
function $6a99195332edec8b$export$80f3e147d781571c(element) {
|
|
658
|
-
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
659
|
-
if ($507fabe10e71c6fb$export$630ff653c5ada6a9() === "virtual") {
|
|
660
|
-
let lastFocusedElement = ownerDocument.activeElement;
|
|
661
|
-
$bbed8b41f857bcc0$export$24490316f764c430(() => {
|
|
662
|
-
if (ownerDocument.activeElement === lastFocusedElement && element.isConnected) $7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
663
|
-
});
|
|
664
|
-
} else $7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
665
|
-
}
|
|
666
860
|
export {
|
|
667
861
|
$6179b936705e76d3$export$ae780daf29e6d456 as $,
|
|
668
|
-
$
|
|
669
|
-
$
|
|
670
|
-
$
|
|
671
|
-
$
|
|
672
|
-
$
|
|
862
|
+
$c87311424ea30a05$export$9ac100e40613ea10 as A,
|
|
863
|
+
$c87311424ea30a05$export$78551043582a6a98 as B,
|
|
864
|
+
$c87311424ea30a05$export$b7d78993b74f766d as C,
|
|
865
|
+
$c87311424ea30a05$export$7bef049ce92e4224 as D,
|
|
866
|
+
$6a7db85432448f7f$export$29bf1b5f2c56cf63 as E,
|
|
867
|
+
$8a9cb279dc87e130$export$cabe61c495ee3649 as F,
|
|
868
|
+
$6a7db85432448f7f$export$60278871457622de as G,
|
|
869
|
+
$e7801be82b4b2a53$export$4debdb1a3f0fa79e as H,
|
|
870
|
+
$f645667febf57a63$export$f9762fab77588ecb as I,
|
|
871
|
+
$c87311424ea30a05$export$e1865c3bedcd822b as J,
|
|
872
|
+
$c87311424ea30a05$export$186c6964ca17d99 as K,
|
|
873
|
+
$507fabe10e71c6fb$export$98e20ec92f614cfe as L,
|
|
874
|
+
$f645667febf57a63$export$4c014de7c8940b4c as a,
|
|
875
|
+
$458b0a5536c1a7cf$export$40bfa8c7b0832715 as b,
|
|
876
|
+
$c87311424ea30a05$export$fedb369cb70207f1 as c,
|
|
877
|
+
$431fbd86ca7dc216$export$b204af158042fbac as d,
|
|
878
|
+
$bbed8b41f857bcc0$export$24490316f764c430 as e,
|
|
673
879
|
$431fbd86ca7dc216$export$f21a1ffae260145a as f,
|
|
674
|
-
$
|
|
675
|
-
$
|
|
676
|
-
$
|
|
677
|
-
$
|
|
678
|
-
$
|
|
679
|
-
$
|
|
680
|
-
$
|
|
681
|
-
$
|
|
682
|
-
$
|
|
683
|
-
$
|
|
684
|
-
$
|
|
685
|
-
$
|
|
686
|
-
$
|
|
687
|
-
$
|
|
688
|
-
$
|
|
689
|
-
$
|
|
690
|
-
$
|
|
691
|
-
$
|
|
692
|
-
$
|
|
880
|
+
$03deb23ff14920c4$export$4eaf04e54aa8eed6 as g,
|
|
881
|
+
$8a9cb279dc87e130$export$715c682d09d639cc as h,
|
|
882
|
+
$d4ee10de306f2510$export$cd4e5573fbe2b576 as i,
|
|
883
|
+
$d4ee10de306f2510$export$e58f029f0fbfdb29 as j,
|
|
884
|
+
$d4ee10de306f2510$export$4282f70798064fe0 as k,
|
|
885
|
+
$8a9cb279dc87e130$export$905e7fc544a71f36 as l,
|
|
886
|
+
$507fabe10e71c6fb$export$b9b3dfddab17db27 as m,
|
|
887
|
+
$507fabe10e71c6fb$export$ec71b4b83ac08ec3 as n,
|
|
888
|
+
$a1ea59d68270f0dd$export$f8168d8dd8fd66e6 as o,
|
|
889
|
+
$507fabe10e71c6fb$export$8397ddfc504fdb9a as p,
|
|
890
|
+
$f4e2df6bd15f8569$export$98658e8c59125e6a as q,
|
|
891
|
+
$b4b717babfbb907b$export$bebd5a1431fec25d as r,
|
|
892
|
+
$b4b717babfbb907b$export$4c063cf1350e6fed as s,
|
|
893
|
+
$3ad3f6e1647bc98d$export$80f3e147d781571c as t,
|
|
894
|
+
$c87311424ea30a05$export$a11b0059900ceec8 as u,
|
|
895
|
+
$c87311424ea30a05$export$6446a186d09e379e as v,
|
|
896
|
+
$507fabe10e71c6fb$export$630ff653c5ada6a9 as w,
|
|
897
|
+
$f645667febf57a63$export$13f3202a3e5ddd5 as x,
|
|
898
|
+
$7215afc6de606d6b$export$de79e2c695e052f3 as y,
|
|
899
|
+
$46d819fcbaf35654$export$8f71654801c2f7cd as z
|
|
693
900
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-
|
|
1
|
+
import { e as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-DkCSC521.js";
|
|
2
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-D8cxd1Z8.js";
|
|
3
3
|
function $d191a55c9702f145$export$8467354a121f1b9f(props) {
|
|
4
4
|
let { id, label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType = "label" } = props;
|
|
5
5
|
id = $bdb11010cef70236$export$f680877a34711e37(id);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-DkCSC521.js";
|
|
2
2
|
function $313b98861ee5dd6c$export$d6875122194c7b44(props, defaultLabel) {
|
|
3
3
|
let { id, "aria-label": label, "aria-labelledby": labelledBy } = props;
|
|
4
4
|
id = $bdb11010cef70236$export$f680877a34711e37(id);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852 } from "./Collection-
|
|
1
|
+
import { $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852 } from "./Collection-CZxddMZS.js";
|
|
2
2
|
import { useMemo, useCallback, useRef, useEffect } from "react";
|
|
3
3
|
class $a02d57049d202695$export$d085fb9e920b5ca7 {
|
|
4
4
|
*[Symbol.iterator]() {
|
|
@@ -90,10 +90,31 @@ function $e72dd72e1c76a225$export$2f645645f7bca764(props) {
|
|
|
90
90
|
selectionState,
|
|
91
91
|
layoutDelegate
|
|
92
92
|
]);
|
|
93
|
+
$e72dd72e1c76a225$var$useFocusedKeyReset(collection, selectionManager);
|
|
94
|
+
return {
|
|
95
|
+
collection,
|
|
96
|
+
disabledKeys,
|
|
97
|
+
selectionManager
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function $e72dd72e1c76a225$export$ba9d38c0f1bf2b36(state, filter) {
|
|
101
|
+
let collection = useMemo(() => filter ? state.collection.UNSTABLE_filter(filter) : state.collection, [
|
|
102
|
+
state.collection,
|
|
103
|
+
filter
|
|
104
|
+
]);
|
|
105
|
+
let selectionManager = state.selectionManager.withCollection(collection);
|
|
106
|
+
$e72dd72e1c76a225$var$useFocusedKeyReset(collection, selectionManager);
|
|
107
|
+
return {
|
|
108
|
+
collection,
|
|
109
|
+
selectionManager,
|
|
110
|
+
disabledKeys: state.disabledKeys
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
function $e72dd72e1c76a225$var$useFocusedKeyReset(collection, selectionManager) {
|
|
93
114
|
const cachedCollection = useRef(null);
|
|
94
115
|
useEffect(() => {
|
|
95
|
-
if (
|
|
96
|
-
const startItem = cachedCollection.current.getItem(
|
|
116
|
+
if (selectionManager.focusedKey != null && !collection.getItem(selectionManager.focusedKey) && cachedCollection.current) {
|
|
117
|
+
const startItem = cachedCollection.current.getItem(selectionManager.focusedKey);
|
|
97
118
|
const cachedItemNodes = [
|
|
98
119
|
...cachedCollection.current.getKeys()
|
|
99
120
|
].map((key) => {
|
|
@@ -125,22 +146,16 @@ function $e72dd72e1c76a225$export$2f645645f7bca764(props) {
|
|
|
125
146
|
index--;
|
|
126
147
|
}
|
|
127
148
|
}
|
|
128
|
-
|
|
149
|
+
selectionManager.setFocusedKey(newNode ? newNode.key : null);
|
|
129
150
|
}
|
|
130
151
|
cachedCollection.current = collection;
|
|
131
152
|
}, [
|
|
132
153
|
collection,
|
|
133
|
-
selectionManager,
|
|
134
|
-
selectionState,
|
|
135
|
-
selectionState.focusedKey
|
|
136
|
-
]);
|
|
137
|
-
return {
|
|
138
|
-
collection,
|
|
139
|
-
disabledKeys,
|
|
140
154
|
selectionManager
|
|
141
|
-
|
|
155
|
+
]);
|
|
142
156
|
}
|
|
143
157
|
export {
|
|
144
158
|
$e72dd72e1c76a225$export$2f645645f7bca764 as $,
|
|
145
|
-
$
|
|
159
|
+
$e72dd72e1c76a225$export$ba9d38c0f1bf2b36 as a,
|
|
160
|
+
$a02d57049d202695$export$d085fb9e920b5ca7 as b
|
|
146
161
|
};
|
package/dist/{useLocalizedStringFormatter-BQ4TF72x.js → useLocalizedStringFormatter-CFP1YZWQ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
1
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-D2KUdwNL.js";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
const $5b160d28a433310d$var$localeSymbol = Symbol.for("react-aria.i18n.locale");
|
|
4
4
|
const $5b160d28a433310d$var$stringsSymbol = Symbol.for("react-aria.i18n.strings");
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as $458b0a5536c1a7cf$export$40bfa8c7b0832715, g as $03deb23ff14920c4$export$4eaf04e54aa8eed6, o as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, K as $c87311424ea30a05$export$186c6964ca17d99, u as $c87311424ea30a05$export$a11b0059900ceec8, c as $c87311424ea30a05$export$fedb369cb70207f1 } from "./useHover-DwDr6ozG.js";
|
|
2
2
|
import { $ as $9446cca9a3875146$export$cb6e0bb50bc19463, a as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-GajL10e1.js";
|
|
3
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./useFormValidation-
|
|
3
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./useFormValidation-DhDNSjws.js";
|
|
4
4
|
import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-DA8u1Ot7.js";
|
|
5
5
|
import { useCallback, useState, useMemo, useEffect, useRef } from "react";
|
|
6
|
-
import {
|
|
6
|
+
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, p as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-DkCSC521.js";
|
|
7
7
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
8
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { $ as $
|
|
13
|
-
import {
|
|
14
|
-
import { $ as $
|
|
8
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-C5OggHsw.js";
|
|
9
|
+
import { a as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-CV5l3lf6.js";
|
|
10
|
+
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-B0b-6KBr.js";
|
|
11
|
+
import { b as $2d73ec29415bd339$export$712718f7aec83d5 } from "./Input-BxpFEIXV.js";
|
|
12
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CFP1YZWQ.js";
|
|
13
|
+
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-321rAb4J.js";
|
|
14
|
+
import { c as $319e236875307eab$export$d10ae4f68404609a, b as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-BPLceDeW.js";
|
|
15
15
|
function $7d0a636d7a4dcefd$export$2123ff2b87c81ca(props, ref) {
|
|
16
16
|
let { onScroll, isDisabled } = props;
|
|
17
17
|
let onScrollHandler = useCallback((e) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
1
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-D2KUdwNL.js";
|
|
2
2
|
import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-DA8u1Ot7.js";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
function $a916eb452884faea$export$b7a616150fdb9f44(options = {}) {
|