@eightshift/ui-components 8.1.0 → 8.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Autocomplete-BUU44AuW.js → Autocomplete-CO9aIsTe.js} +29 -25
- package/dist/{Button-_E2Z5G2l.js → Button-DO3oQfCq.js} +15 -9
- package/dist/{Dialog-3XLIaepk.js → Dialog-Bdqjmtt2.js} +293 -160
- package/dist/{Disclosure-Dh0z_DEQ.js → Disclosure-BTSsPhG9.js} +33 -29
- package/dist/{FocusScope-BKGWN6UK.js → FocusScope-Cj6cUR6X.js} +8 -6
- package/dist/{Heading-BWTs9ckA.js → Heading-BQje2nS2.js} +1 -1
- package/dist/{I18nProvider-BskRMK8G.js → I18nProvider-R_4IDnf9.js} +1 -1
- package/dist/{Label-UpU4cKPh.js → Label-C4bJkVti.js} +1 -1
- package/dist/{ListBox-DepY-52g.js → ListBox-CBvtIFuB.js} +20 -16
- package/dist/{NumberFormatter-WKBRKiEA.js → NumberFormatter-Bwdv413k.js} +4 -2
- package/dist/{RadioGroup-Br9Mn9QJ.js → RadioGroup-Dxzko0ma.js} +35 -35
- package/dist/{SearchField-q2Fj0L9K.js → SearchField-zY9JqR1c.js} +29 -26
- package/dist/{Slider-B8icnyOo.js → Slider-BXc72kE0.js} +55 -44
- package/dist/{Text-D4y19vs8.js → Text-i-ZK4MiL.js} +1 -1
- package/dist/{VisuallyHidden-B_LZ_kn7.js → VisuallyHidden-CsM0VnV1.js} +2 -2
- package/dist/{animation-DpSgtWyu.js → animation-COc9P6ap.js} +2 -4
- package/dist/assets/{image-analysis-worker-BuHru-CI.js → image-analysis-worker-CBOB71mx.js} +1 -1
- package/dist/assets/style-admin.css +1 -1
- package/dist/assets/style-editor.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/{button-XSk_8UW7.js → button-C7mc6eS1.js} +15 -12
- package/dist/{checkbox-BYaS9tQ5.js → checkbox-DlG5DILl.js} +8 -8
- package/dist/{color-swatch-6ZEIXej3.js → color-swatch-D6xMLGU-.js} +14 -15
- package/dist/components/animated-visibility/animated-visibility.js +5 -3
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/base-control/container.d.ts +4 -30
- package/dist/components/base-control/container.js +5 -32
- package/dist/components/breakpoint-preview/breakpoint-preview.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-pickers/color-picker.js +7 -7
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +1 -1
- package/dist/components/component-toggle/component-toggle.js +3 -3
- package/dist/components/container-panel/container-panel.js +11 -11
- package/dist/components/contextual-help/contextual-help.js +2 -2
- package/dist/components/draggable/draggable.d.ts +3 -3
- package/dist/components/draggable/draggable.js +1 -1
- package/dist/components/draggable-list/draggable-list.d.ts +3 -3
- package/dist/components/draggable-list/draggable-list.js +8 -8
- package/dist/components/expandable/expandable.js +3 -3
- package/dist/components/index.js +16 -16
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/item-collection/item-collection.d.ts +3 -28
- package/dist/components/item-collection/item-collection.js +6 -6
- package/dist/components/link-input/link-input.d.ts +0 -2
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/matrix-align/matrix-align.js +4 -3
- package/dist/components/menu/menu.js +10 -7
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/notice/notice.js +8 -8
- package/dist/components/number-picker/number-picker.js +1 -1
- package/dist/components/option-select/option-select.d.ts +1 -1
- package/dist/components/option-select/option-select.js +21 -15
- package/dist/components/options-panel/options-panel.js +4 -4
- package/dist/components/placeholders/file-picker-shell.js +4 -3
- package/dist/components/placeholders/file-placeholder.js +2 -1
- package/dist/components/popover/popover.js +3 -3
- package/dist/components/portal-provider/portal-provider.js +2 -1
- package/dist/components/radio/radio.js +2 -2
- package/dist/components/repeater/repeater-context.d.ts +0 -1
- package/dist/components/repeater/repeater-item.js +1 -1
- package/dist/components/repeater/repeater.d.ts +5 -38
- package/dist/components/repeater/repeater.js +7 -10
- package/dist/components/responsive/mini-responsive.d.ts +0 -1
- package/dist/components/responsive/mini-responsive.js +30 -30
- package/dist/components/responsive/responsive-legacy.d.ts +0 -1
- package/dist/components/responsive/responsive-legacy.js +12 -10
- package/dist/components/responsive/responsive.d.ts +0 -1
- package/dist/components/responsive/responsive.js +28 -28
- package/dist/components/responsive-preview/responsive-preview.js +3 -3
- package/dist/components/select/async-multi-select.d.ts +12 -13
- package/dist/components/select/async-multi-select.js +39 -20
- package/dist/components/select/async-select.d.ts +12 -13
- package/dist/components/select/async-select.js +38 -20
- package/dist/components/select/multi-select.d.ts +2 -8
- package/dist/components/select/multi-select.js +19 -19
- package/dist/components/select/shared.d.ts +5 -9
- package/dist/components/select/shared.js +2 -2
- package/dist/components/select/single-select.d.ts +2 -8
- package/dist/components/select/single-select.js +16 -16
- package/dist/components/slider/column-config-slider.js +7 -5
- package/dist/components/slider/slider.js +15 -11
- package/dist/components/smart-image/smart-image.d.ts +0 -1
- package/dist/components/smart-image/smart-image.js +52 -50
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle/toggle.js +2 -2
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{draggable-9MfdTVWP.js → draggable-BUfOpGSZ.js} +129 -124
- package/dist/{es-dash-DunirOmV.js → es-dash-DPtJSRjw.js} +23 -52
- package/dist/{gradient-editor-yqSw0uPA.js → gradient-editor-_q3XF10i.js} +38 -29
- package/dist/icons/block-icon.js +1 -1
- package/dist/icons/icon.d.ts +3 -3
- package/dist/icons/icon.js +21 -9
- package/dist/icons/icons.d.ts +210 -1
- package/dist/icons/index.js +1 -1
- package/dist/icons/jsx-svg.d.ts +5 -4
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/index.js +16 -16
- package/dist/{input-field-nN6BO0oz.js → input-field-QzBpjm-m.js} +8 -8
- package/dist/{jsx-svg-BjGQUBLh.js → jsx-svg-DRwJdRpA.js} +171 -129
- package/dist/{keyboard-g5Amam-c.js → keyboard-BxnnQA2Z.js} +1 -1
- package/dist/{link-input-BhlPElU8.js → link-input-CElQp3lP.js} +145 -87
- package/dist/{modal-B5axB0Fc.js → modal-BeacK9N_.js} +14 -13
- package/dist/{number-picker-nnOf0XnN.js → number-picker-CK_OHBXw.js} +9 -9
- package/dist/{react-y40Dt3ab.js → react-C6Y6cCOx.js} +194 -215
- package/dist/{shared-Ba_bt4s9.js → shared-DBCipn_m.js} +59 -43
- package/dist/{solid-color-picker-CsosgTVa.js → solid-color-picker-2-X3ridX.js} +58 -53
- package/dist/{switch-BJ4_OyUm.js → switch-B87lQ1V0.js} +6 -6
- package/dist/{tabs-wAe0AAyu.js → tabs-DgkJUkIX.js} +33 -28
- package/dist/{text-helpers-2j9DuxP1.js → text-helpers-QrwKKaOh.js} +3 -2
- package/dist/{textSelection-B_Nv6Jz3.js → textSelection-5Qk8tLtm.js} +3 -3
- package/dist/{toggle-button-BLJdEp8V.js → toggle-button-B2-f2rU6.js} +8 -7
- package/dist/{tooltip-BW9nj5-V.js → tooltip-AzOLps8g.js} +68 -62
- package/dist/{useAsyncList-B3-uyJgA.js → useAsyncList-CjKVLGN0.js} +8 -4
- package/dist/{useButton-CPMVLXoX.js → useButton-BIrfoiY8.js} +3 -3
- package/dist/{useCollection-PzY6FI39.js → useCollection-LQlZnc1u.js} +267 -180
- package/dist/{useEvent-CzuFZ2HT.js → useEvent-Bih8lvtM.js} +1 -1
- package/dist/{useField-DrfR8j9h.js → useField-B_ibsWst.js} +2 -2
- package/dist/{useFilter-CiCjo6Na.js → useFilter-BFaOw4yi.js} +1 -1
- package/dist/{useFocusRing-CrYHpV7C.js → useFocusRing-ZXFsftJJ.js} +1 -1
- package/dist/{useFormReset-U6c35PHq.js → useFormReset-DDJhIIfG.js} +1 -1
- package/dist/{useFormValidation-B2q2MGWN.js → useFormValidation-BfnJKcdX.js} +2 -2
- package/dist/{useHover-CNsbAR0V.js → useHover-CbyH227W.js} +216 -39
- package/dist/{useLabel-DuxAjaic.js → useLabel-gfFDE4bn.js} +2 -2
- package/dist/{useLabels-NUsp5IW3.js → useLabels-Dcg-cEyM.js} +1 -1
- package/dist/{useListState-FLxa7R_U.js → useListState-I22DfnmE.js} +4 -2
- package/dist/{useLocalizedStringFormatter-Ccm8EL_u.js → useLocalizedStringFormatter-CTCqjYu4.js} +6 -1
- package/dist/{useNumberFieldState-DWvm7CXu.js → useNumberFieldState-C1gD0RuW.js} +79 -62
- package/dist/{useNumberFormatter-B0_D7a_o.js → useNumberFormatter-DbAt_fC_.js} +2 -2
- package/dist/{useOverlayTriggerState-zZ7homyI.js → useOverlayTriggerState-Cpc_IbQf.js} +12 -9
- package/dist/{usePress-DRoujMNm.js → usePress-BF7otjax.js} +30 -19
- package/dist/{useSlot-pRz-v9kC.js → useSlot-CnQHcvd4.js} +1 -1
- package/dist/{useTextField-e8jIFT3s.js → useTextField-CnTuCBMs.js} +6 -6
- package/dist/{useToggle-CR_ZKvr_.js → useToggle-Cgv5UXaB.js} +6 -6
- package/dist/{useToggleState-ButQxGrJ.js → useToggleState-Cy1E36QZ.js} +1 -1
- package/dist/utilities/array-helpers.d.ts +1 -1
- package/dist/utilities/array-helpers.js +4 -3
- package/dist/utilities/debounce-throttle.d.ts +9 -2
- package/dist/utilities/es-dash.d.ts +11 -8
- package/dist/utilities/es-dash.js +1 -1
- package/dist/utilities/index.js +2 -2
- package/dist/utilities/text-helpers.js +1 -1
- package/dist/utilities/web-workers.d.ts +7 -7
- package/dist/utilities/web-workers.js +5 -5
- package/dist/{utils-Czi6q2Ub.js → utils-ClM91CuL.js} +30 -19
- package/package.json +21 -25
|
@@ -1,21 +1,36 @@
|
|
|
1
|
-
import { h as $c4867b2f328c2698$export$e5c5a5f917a5871c, l as $03e8ab2d84d7657a$export$4338b53315abf666, m as $c7eafbbe1ea5834e$export$535bd6ca7f90a273, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-
|
|
1
|
+
import { g as $a4e76a5424781910$export$e08e3b67e392101e, h as $c4867b2f328c2698$export$e5c5a5f917a5871c, l as $03e8ab2d84d7657a$export$4338b53315abf666, m as $c7eafbbe1ea5834e$export$535bd6ca7f90a273, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-ClM91CuL.js";
|
|
2
2
|
import $3ARPR$react, { createContext, forwardRef, useCallback, useContext, useEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
3
3
|
//#region node_modules/react-aria/dist/private/utils/domHelpers.mjs
|
|
4
|
-
var $d447af545b77c9f1$export$b204af158042fbac = (
|
|
5
|
-
|
|
4
|
+
var $d447af545b77c9f1$export$b204af158042fbac = (target) => {
|
|
5
|
+
if ($d447af545b77c9f1$var$isWindow(target)) return target.document;
|
|
6
|
+
if ($d447af545b77c9f1$export$62858bae88b53fd0(target)) return target;
|
|
7
|
+
return target?.ownerDocument ?? (typeof document !== "undefined" ? document : void 0);
|
|
6
8
|
};
|
|
7
|
-
var $d447af545b77c9f1$export$f21a1ffae260145a = (
|
|
8
|
-
|
|
9
|
-
return $d447af545b77c9f1$export$b204af158042fbac(el).defaultView || window;
|
|
9
|
+
var $d447af545b77c9f1$export$f21a1ffae260145a = (target) => {
|
|
10
|
+
return $d447af545b77c9f1$export$b204af158042fbac(target)?.defaultView ?? (typeof window !== "undefined" ? window : void 0);
|
|
10
11
|
};
|
|
11
|
-
|
|
12
|
-
* Type guard that checks if a value is a Node. Verifies the presence and type of the nodeType
|
|
13
|
-
* property.
|
|
14
|
-
*/ function $d447af545b77c9f1$var$isNode(value) {
|
|
12
|
+
function $d447af545b77c9f1$export$8ee0fc9ee280b4ee(value) {
|
|
15
13
|
return value !== null && typeof value === "object" && "nodeType" in value && typeof value.nodeType === "number";
|
|
16
14
|
}
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Type guard that checks if a value is a Window. Uses window self reference checks to
|
|
17
|
+
* distinguish Window from other values.
|
|
18
|
+
*/ function $d447af545b77c9f1$var$isWindow(value) {
|
|
19
|
+
return typeof value === "object" && value != null && "window" in value && value.window === value;
|
|
20
|
+
}
|
|
21
|
+
function $d447af545b77c9f1$export$62858bae88b53fd0(value) {
|
|
22
|
+
return $d447af545b77c9f1$export$8ee0fc9ee280b4ee(value) && value.nodeType === 9;
|
|
23
|
+
}
|
|
24
|
+
function $d447af545b77c9f1$export$af51f0f06c0f328a(value) {
|
|
25
|
+
return $d447af545b77c9f1$export$8ee0fc9ee280b4ee(value) && value.nodeType === 11 && "host" in value;
|
|
26
|
+
}
|
|
27
|
+
function $d447af545b77c9f1$export$f531f92e2a15358f(target, event, listener, options) {
|
|
28
|
+
if (listener == null || target == null) return () => {};
|
|
29
|
+
let eventTargets = Array.isArray(target) ? target : [target];
|
|
30
|
+
for (let eventTarget of eventTargets) eventTarget.addEventListener(event, listener, options);
|
|
31
|
+
return () => {
|
|
32
|
+
for (let eventTarget of eventTargets) eventTarget.removeEventListener(event, listener, options);
|
|
33
|
+
};
|
|
19
34
|
}
|
|
20
35
|
//#endregion
|
|
21
36
|
//#region node_modules/react-stately/dist/private/flags/flags.mjs
|
|
@@ -31,7 +46,7 @@ function $23f2114a1b82827e$export$4282f70798064fe0(node, otherNode) {
|
|
|
31
46
|
let currentNode = otherNode;
|
|
32
47
|
while (currentNode !== null) {
|
|
33
48
|
if (currentNode === node) return true;
|
|
34
|
-
if (currentNode.
|
|
49
|
+
if (typeof currentNode.assignedElements !== "function" && currentNode.assignedSlot?.parentNode) currentNode = currentNode.assignedSlot.parentNode;
|
|
35
50
|
else if ($d447af545b77c9f1$export$af51f0f06c0f328a(currentNode)) currentNode = currentNode.host;
|
|
36
51
|
else currentNode = currentNode.parentNode;
|
|
37
52
|
}
|
|
@@ -50,6 +65,19 @@ function $23f2114a1b82827e$export$e58f029f0fbfdb29(event) {
|
|
|
50
65
|
}
|
|
51
66
|
return event.target;
|
|
52
67
|
}
|
|
68
|
+
function $23f2114a1b82827e$export$da7af4355d792141(from, to) {
|
|
69
|
+
if (to === null) return [];
|
|
70
|
+
to = to ?? $d447af545b77c9f1$export$f21a1ffae260145a(from);
|
|
71
|
+
let targets = [to];
|
|
72
|
+
if (!$6a20a7989e6c817a$export$98658e8c59125e6a() || !from || from === to) return targets;
|
|
73
|
+
let toRoot = "getRootNode" in to ? to.getRootNode() : null;
|
|
74
|
+
let current = from.getRootNode() ?? null;
|
|
75
|
+
while ($d447af545b77c9f1$export$af51f0f06c0f328a(current) && current !== toRoot) {
|
|
76
|
+
targets.push(current);
|
|
77
|
+
current = current.host.getRootNode();
|
|
78
|
+
}
|
|
79
|
+
return targets;
|
|
80
|
+
}
|
|
53
81
|
function $23f2114a1b82827e$export$b4f377a2b6254582(node) {
|
|
54
82
|
if (!node) return false;
|
|
55
83
|
let root = node.getRootNode();
|
|
@@ -229,8 +257,8 @@ function $a92dc41f639950be$export$715c682d09d639cc(onBlur) {
|
|
|
229
257
|
var $a92dc41f639950be$export$fda7da73ab5d4c48 = false;
|
|
230
258
|
function $a92dc41f639950be$export$cabe61c495ee3649(target) {
|
|
231
259
|
while (target && !$3b8b240c1bf84ab9$export$4c063cf1350e6fed(target, { skipVisibilityCheck: true })) target = target.parentElement;
|
|
232
|
-
let
|
|
233
|
-
let activeElement =
|
|
260
|
+
let ownerWindow = $d447af545b77c9f1$export$f21a1ffae260145a(target);
|
|
261
|
+
let activeElement = ownerWindow.document.activeElement;
|
|
234
262
|
if (!activeElement || activeElement === target) return;
|
|
235
263
|
$a92dc41f639950be$export$fda7da73ab5d4c48 = true;
|
|
236
264
|
let isRefocusing = false;
|
|
@@ -260,16 +288,16 @@ function $a92dc41f639950be$export$cabe61c495ee3649(target) {
|
|
|
260
288
|
}
|
|
261
289
|
}
|
|
262
290
|
};
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
291
|
+
ownerWindow.addEventListener("blur", onBlur, true);
|
|
292
|
+
ownerWindow.addEventListener("focusout", onFocusOut, true);
|
|
293
|
+
ownerWindow.addEventListener("focusin", onFocusIn, true);
|
|
294
|
+
ownerWindow.addEventListener("focus", onFocus, true);
|
|
267
295
|
let cleanup = () => {
|
|
268
296
|
cancelAnimationFrame(raf);
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
297
|
+
ownerWindow.removeEventListener("blur", onBlur, true);
|
|
298
|
+
ownerWindow.removeEventListener("focusout", onFocusOut, true);
|
|
299
|
+
ownerWindow.removeEventListener("focusin", onFocusIn, true);
|
|
300
|
+
ownerWindow.removeEventListener("focus", onFocus, true);
|
|
273
301
|
$a92dc41f639950be$export$fda7da73ab5d4c48 = false;
|
|
274
302
|
isRefocusing = false;
|
|
275
303
|
};
|
|
@@ -310,16 +338,19 @@ var $2add3ce32c6007eb$export$e1865c3bedcd822b = $2add3ce32c6007eb$var$cached(fun
|
|
|
310
338
|
return $2add3ce32c6007eb$export$9ac100e40613ea10() || $2add3ce32c6007eb$export$fedb369cb70207f1();
|
|
311
339
|
});
|
|
312
340
|
var $2add3ce32c6007eb$export$78551043582a6a98 = $2add3ce32c6007eb$var$cached(function() {
|
|
313
|
-
return $2add3ce32c6007eb$var$testUserAgent(/AppleWebKit/i) && !$2add3ce32c6007eb$export$6446a186d09e379e();
|
|
341
|
+
return $2add3ce32c6007eb$var$testUserAgent(/AppleWebKit/i) && ($2add3ce32c6007eb$export$fedb369cb70207f1() || !$2add3ce32c6007eb$export$6446a186d09e379e());
|
|
342
|
+
});
|
|
343
|
+
var $2add3ce32c6007eb$export$95df08bae54cb4df = $2add3ce32c6007eb$var$cached(function() {
|
|
344
|
+
return $2add3ce32c6007eb$export$78551043582a6a98() && !$2add3ce32c6007eb$export$6446a186d09e379e() && !$2add3ce32c6007eb$export$b7d78993b74f766d();
|
|
314
345
|
});
|
|
315
346
|
var $2add3ce32c6007eb$export$6446a186d09e379e = $2add3ce32c6007eb$var$cached(function() {
|
|
316
|
-
return $2add3ce32c6007eb$var$testUserAgent(/Chrome/i);
|
|
347
|
+
return $2add3ce32c6007eb$var$testUserAgent(/Chrome|CriOS|CrMo/i);
|
|
317
348
|
});
|
|
318
349
|
var $2add3ce32c6007eb$export$a11b0059900ceec8 = $2add3ce32c6007eb$var$cached(function() {
|
|
319
350
|
return $2add3ce32c6007eb$var$testUserAgent(/Android/i);
|
|
320
351
|
});
|
|
321
352
|
var $2add3ce32c6007eb$export$b7d78993b74f766d = $2add3ce32c6007eb$var$cached(function() {
|
|
322
|
-
return $2add3ce32c6007eb$var$testUserAgent(/Firefox/i);
|
|
353
|
+
return $2add3ce32c6007eb$var$testUserAgent(/(Firefox|FxiOS)/i);
|
|
323
354
|
});
|
|
324
355
|
//#endregion
|
|
325
356
|
//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
|
|
@@ -329,7 +360,7 @@ function $b5c62b033c25b96d$export$60278871457622de(event) {
|
|
|
329
360
|
return event.detail === 0 && !event.pointerType;
|
|
330
361
|
}
|
|
331
362
|
function $b5c62b033c25b96d$export$29bf1b5f2c56cf63(event) {
|
|
332
|
-
return !$2add3ce32c6007eb$export$a11b0059900ceec8() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
|
|
363
|
+
return !$2add3ce32c6007eb$export$a11b0059900ceec8() && event.width === 0 && event.height === 0 || $2add3ce32c6007eb$export$a11b0059900ceec8() && event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
|
|
333
364
|
}
|
|
334
365
|
//#endregion
|
|
335
366
|
//#region node_modules/react-aria/dist/private/utils/openLink.mjs
|
|
@@ -347,8 +378,10 @@ function $caaf0dd3060ed57c$export$efa8c9099e530235(link, modifiers) {
|
|
|
347
378
|
}
|
|
348
379
|
function $caaf0dd3060ed57c$export$95185d699e05d4d7(target, modifiers, setOpening = true) {
|
|
349
380
|
let { metaKey, ctrlKey, altKey, shiftKey } = modifiers;
|
|
350
|
-
if ($2add3ce32c6007eb$export$b7d78993b74f766d() && window.event?.type?.startsWith("key") && target.target === "_blank")
|
|
351
|
-
|
|
381
|
+
if (!$2add3ce32c6007eb$export$78551043582a6a98() && $2add3ce32c6007eb$export$b7d78993b74f766d() && window.event?.type?.startsWith("key") && target.target === "_blank") {
|
|
382
|
+
if ($2add3ce32c6007eb$export$9ac100e40613ea10()) metaKey = true;
|
|
383
|
+
else ctrlKey = true;
|
|
384
|
+
}
|
|
352
385
|
let event = $2add3ce32c6007eb$export$78551043582a6a98() && $2add3ce32c6007eb$export$9ac100e40613ea10() && !$2add3ce32c6007eb$export$7bef049ce92e4224() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
|
|
353
386
|
keyIdentifier: "Enter",
|
|
354
387
|
metaKey,
|
|
@@ -399,7 +432,7 @@ function $caaf0dd3060ed57c$export$7e924b3091a3bd18(props) {
|
|
|
399
432
|
"download",
|
|
400
433
|
"ping",
|
|
401
434
|
"referrerPolicy"
|
|
402
|
-
]) if (key in props) linkProps[key] = key === "href" ? href : props[key];
|
|
435
|
+
]) if (key in props && props[key] !== void 0) linkProps[key] = key === "href" ? href : props[key];
|
|
403
436
|
}
|
|
404
437
|
return linkProps;
|
|
405
438
|
}
|
|
@@ -588,13 +621,13 @@ var $8f5a2122b0992be3$var$nonTextInputTypes = new Set([
|
|
|
588
621
|
* keys pressed) so that focus visible style can be properly set.
|
|
589
622
|
*/ function $8f5a2122b0992be3$var$isKeyboardFocusEvent(isTextInput, modality, e) {
|
|
590
623
|
let eventTarget = e ? $23f2114a1b82827e$export$e58f029f0fbfdb29(e) : void 0;
|
|
591
|
-
let
|
|
624
|
+
let ownerDocument = $d447af545b77c9f1$export$b204af158042fbac(eventTarget);
|
|
592
625
|
let ownerWindow = $d447af545b77c9f1$export$f21a1ffae260145a(eventTarget);
|
|
593
626
|
const IHTMLInputElement = typeof ownerWindow !== "undefined" ? ownerWindow.HTMLInputElement : HTMLInputElement;
|
|
594
627
|
const IHTMLTextAreaElement = typeof ownerWindow !== "undefined" ? ownerWindow.HTMLTextAreaElement : HTMLTextAreaElement;
|
|
595
628
|
const IHTMLElement = typeof ownerWindow !== "undefined" ? ownerWindow.HTMLElement : HTMLElement;
|
|
596
629
|
const IKeyboardEvent = typeof ownerWindow !== "undefined" ? ownerWindow.KeyboardEvent : KeyboardEvent;
|
|
597
|
-
let activeElement = $23f2114a1b82827e$export$cd4e5573fbe2b576(
|
|
630
|
+
let activeElement = $23f2114a1b82827e$export$cd4e5573fbe2b576(ownerDocument);
|
|
598
631
|
isTextInput = isTextInput || activeElement instanceof IHTMLInputElement && !$8f5a2122b0992be3$var$nonTextInputTypes.has(activeElement.type) || activeElement instanceof IHTMLTextAreaElement || activeElement instanceof IHTMLElement && activeElement.isContentEditable;
|
|
599
632
|
return !(isTextInput && modality === "keyboard" && e instanceof IKeyboardEvent && !$8f5a2122b0992be3$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
|
|
600
633
|
}
|
|
@@ -691,8 +724,10 @@ function $081cb5757e08788e$var$setupGlobalEvents() {
|
|
|
691
724
|
document.body.addEventListener("transitionrun", onTransitionStart);
|
|
692
725
|
document.body.addEventListener("transitionend", onTransitionEnd);
|
|
693
726
|
}
|
|
694
|
-
if (typeof document !== "undefined")
|
|
695
|
-
|
|
727
|
+
if (typeof document !== "undefined") {
|
|
728
|
+
if (document.readyState !== "loading") $081cb5757e08788e$var$setupGlobalEvents();
|
|
729
|
+
else document.addEventListener("DOMContentLoaded", $081cb5757e08788e$var$setupGlobalEvents);
|
|
730
|
+
}
|
|
696
731
|
/**
|
|
697
732
|
* Cleans up any elements that are no longer in the document.
|
|
698
733
|
* This is necessary because we can't rely on transitionend events to fire
|
|
@@ -755,8 +790,8 @@ function $1e74c67db218ce67$export$f8168d8dd8fd66e6(props) {
|
|
|
755
790
|
//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
|
|
756
791
|
function $8dba16319206abb6$export$48d1ea6320830260(handler) {
|
|
757
792
|
if (!handler) return void 0;
|
|
758
|
-
let shouldStopPropagation = true;
|
|
759
793
|
return (e) => {
|
|
794
|
+
let shouldStopPropagation = true;
|
|
760
795
|
handler({
|
|
761
796
|
...e,
|
|
762
797
|
preventDefault() {
|
|
@@ -777,15 +812,157 @@ function $8dba16319206abb6$export$48d1ea6320830260(handler) {
|
|
|
777
812
|
return shouldStopPropagation;
|
|
778
813
|
}
|
|
779
814
|
});
|
|
780
|
-
if (shouldStopPropagation) e.stopPropagation();
|
|
815
|
+
if (shouldStopPropagation && !(typeof e.isPropagationStopped === "function" && e.isPropagationStopped())) e.stopPropagation();
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
//#endregion
|
|
819
|
+
//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
|
|
820
|
+
/** Modifier names in shortcut strings (case-insensitive). Order in the string does not matter. */ var $cbf729ad7eb217b0$var$MODIFIER_NAMES = new Set([
|
|
821
|
+
"shift",
|
|
822
|
+
"alt",
|
|
823
|
+
"control",
|
|
824
|
+
"meta",
|
|
825
|
+
"mod"
|
|
826
|
+
]);
|
|
827
|
+
/** Canonical modifier order for stable keys (sorted, fixed order). */ var $cbf729ad7eb217b0$var$CANONICAL_MODIFIER_ORDER = [
|
|
828
|
+
"Alt",
|
|
829
|
+
"Control",
|
|
830
|
+
"Meta",
|
|
831
|
+
"Shift"
|
|
832
|
+
];
|
|
833
|
+
function $cbf729ad7eb217b0$export$9932402e211e7315(parsed) {
|
|
834
|
+
let set = new Set();
|
|
835
|
+
if (parsed.alt) set.add("Alt");
|
|
836
|
+
if (parsed.shift) set.add("Shift");
|
|
837
|
+
if (parsed.ctrl) set.add("Control");
|
|
838
|
+
if (parsed.meta) set.add("Meta");
|
|
839
|
+
if (parsed.mod) set.add($2add3ce32c6007eb$export$9ac100e40613ea10() ? "Meta" : "Control");
|
|
840
|
+
return set;
|
|
841
|
+
}
|
|
842
|
+
function $cbf729ad7eb217b0$export$bf26c410e1f8fe6d(e) {
|
|
843
|
+
let set = new Set();
|
|
844
|
+
if (e.altKey) set.add("Alt");
|
|
845
|
+
if (e.ctrlKey) set.add("Control");
|
|
846
|
+
if (e.metaKey) set.add("Meta");
|
|
847
|
+
if (e.shiftKey) set.add("Shift");
|
|
848
|
+
return set;
|
|
849
|
+
}
|
|
850
|
+
function $cbf729ad7eb217b0$var$sortedModifierTokens(set) {
|
|
851
|
+
return $cbf729ad7eb217b0$var$CANONICAL_MODIFIER_ORDER.filter((name) => set.has(name));
|
|
852
|
+
}
|
|
853
|
+
function $cbf729ad7eb217b0$export$d636f01a2eaffd51(spec) {
|
|
854
|
+
let parts = spec.split("+").reduce((prev, part) => {
|
|
855
|
+
let lower = part.toLowerCase();
|
|
856
|
+
if ($cbf729ad7eb217b0$var$MODIFIER_NAMES.has(lower)) {
|
|
857
|
+
if (lower === "shift") prev.shift = true;
|
|
858
|
+
else if (lower === "alt") prev.alt = true;
|
|
859
|
+
else if (lower === "control") prev.ctrl = true;
|
|
860
|
+
else if (lower === "meta") prev.meta = true;
|
|
861
|
+
else if (lower === "mod") prev.mod = true;
|
|
862
|
+
} else prev.key = part;
|
|
863
|
+
return prev;
|
|
864
|
+
}, {
|
|
865
|
+
shift: false,
|
|
866
|
+
alt: false,
|
|
867
|
+
ctrl: false,
|
|
868
|
+
meta: false,
|
|
869
|
+
mod: false,
|
|
870
|
+
key: ""
|
|
871
|
+
});
|
|
872
|
+
if (parts.key === "") throw new Error(`Invalid keyboard shortcut: "${spec}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);
|
|
873
|
+
return parts;
|
|
874
|
+
}
|
|
875
|
+
function $cbf729ad7eb217b0$var$normalizeEventKey(key) {
|
|
876
|
+
return key.toLowerCase();
|
|
877
|
+
}
|
|
878
|
+
/** Short aliases for common keys (shortcut side, before match). */ var $cbf729ad7eb217b0$var$KEY_ALIASES = {
|
|
879
|
+
space: " ",
|
|
880
|
+
esc: "escape",
|
|
881
|
+
del: "delete",
|
|
882
|
+
ins: "insert",
|
|
883
|
+
left: "arrowleft",
|
|
884
|
+
right: "arrowright",
|
|
885
|
+
up: "arrowup",
|
|
886
|
+
down: "arrowdown",
|
|
887
|
+
pageup: "pageup",
|
|
888
|
+
pagedown: "pagedown"
|
|
889
|
+
};
|
|
890
|
+
/** Canonical key segment (lowercase); aliases like `down` → `arrowdown`. */ function $cbf729ad7eb217b0$var$canonicalKeyFromSpecKey(specKey) {
|
|
891
|
+
let k = $cbf729ad7eb217b0$var$normalizeEventKey(specKey);
|
|
892
|
+
let aliased = $cbf729ad7eb217b0$var$KEY_ALIASES[k];
|
|
893
|
+
return aliased != null ? aliased : k;
|
|
894
|
+
}
|
|
895
|
+
function $cbf729ad7eb217b0$export$6cfa2ace150c84a5(parsed) {
|
|
896
|
+
let mods = $cbf729ad7eb217b0$var$sortedModifierTokens($cbf729ad7eb217b0$export$9932402e211e7315(parsed));
|
|
897
|
+
let key = $cbf729ad7eb217b0$var$canonicalKeyFromSpecKey(parsed.key);
|
|
898
|
+
return mods.length > 0 ? `${mods.join("+")}+${key}` : key;
|
|
899
|
+
}
|
|
900
|
+
function $cbf729ad7eb217b0$export$786304bda41dd69f(e) {
|
|
901
|
+
let mods = $cbf729ad7eb217b0$var$sortedModifierTokens($cbf729ad7eb217b0$export$bf26c410e1f8fe6d(e));
|
|
902
|
+
let key = $cbf729ad7eb217b0$var$normalizeEventKey(e.key);
|
|
903
|
+
return (mods.length > 0 ? `${mods.join("+")}+` : "") + key;
|
|
904
|
+
}
|
|
905
|
+
function $cbf729ad7eb217b0$export$2fd1fc8039383ae1(bindings) {
|
|
906
|
+
let map = new Map();
|
|
907
|
+
for (let [spec, action] of Object.entries(bindings)) {
|
|
908
|
+
let parsed = $cbf729ad7eb217b0$export$d636f01a2eaffd51(spec);
|
|
909
|
+
map.set($cbf729ad7eb217b0$export$6cfa2ace150c84a5(parsed), action);
|
|
910
|
+
}
|
|
911
|
+
return (e) => {
|
|
912
|
+
let canonical = $cbf729ad7eb217b0$export$786304bda41dd69f(e);
|
|
913
|
+
let action = map.get(canonical);
|
|
914
|
+
let result = action?.(e);
|
|
915
|
+
if (result === void 0 && action !== void 0) result = {
|
|
916
|
+
shouldContinuePropagation: false,
|
|
917
|
+
shouldPreventDefault: true
|
|
918
|
+
};
|
|
919
|
+
else if (typeof result === "boolean") result = {
|
|
920
|
+
shouldContinuePropagation: !result,
|
|
921
|
+
shouldPreventDefault: result
|
|
922
|
+
};
|
|
923
|
+
if (result?.shouldPreventDefault) e.preventDefault();
|
|
924
|
+
if (!action || result?.shouldContinuePropagation) e.continuePropagation();
|
|
781
925
|
};
|
|
782
926
|
}
|
|
783
927
|
//#endregion
|
|
784
928
|
//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
|
|
785
929
|
function $8296dad1a4c5e0dc$export$8f71654801c2f7cd(props) {
|
|
930
|
+
let { shortcuts, allowRepeats = false, allowComposing = false } = props;
|
|
931
|
+
let onKeyDown;
|
|
932
|
+
let onKeyUp;
|
|
933
|
+
if (shortcuts) {
|
|
934
|
+
let shortcutHandler = $cbf729ad7eb217b0$export$2fd1fc8039383ae1(shortcuts);
|
|
935
|
+
let shortcutOnKeyDown = $8dba16319206abb6$export$48d1ea6320830260((e) => {
|
|
936
|
+
if (!$23f2114a1b82827e$export$4282f70798064fe0(e.currentTarget, $23f2114a1b82827e$export$e58f029f0fbfdb29(e))) {
|
|
937
|
+
e.continuePropagation();
|
|
938
|
+
return;
|
|
939
|
+
}
|
|
940
|
+
if (e.nativeEvent?.repeat && !allowRepeats || e.nativeEvent?.isComposing && !allowComposing) {
|
|
941
|
+
e.continuePropagation();
|
|
942
|
+
return;
|
|
943
|
+
}
|
|
944
|
+
shortcutHandler(e);
|
|
945
|
+
});
|
|
946
|
+
let shortcutOnKeyUp = $8dba16319206abb6$export$48d1ea6320830260((e) => {
|
|
947
|
+
if (!$23f2114a1b82827e$export$4282f70798064fe0(e.currentTarget, $23f2114a1b82827e$export$e58f029f0fbfdb29(e))) {
|
|
948
|
+
e.continuePropagation();
|
|
949
|
+
return;
|
|
950
|
+
}
|
|
951
|
+
if (e.nativeEvent?.repeat && !allowRepeats || e.nativeEvent?.isComposing && !allowComposing) {
|
|
952
|
+
e.continuePropagation();
|
|
953
|
+
return;
|
|
954
|
+
}
|
|
955
|
+
e.continuePropagation();
|
|
956
|
+
});
|
|
957
|
+
onKeyDown = props.onKeyDown ? $a4e76a5424781910$export$e08e3b67e392101e(props.onKeyDown, shortcutOnKeyDown) : shortcutOnKeyDown;
|
|
958
|
+
onKeyUp = props.onKeyUp ? $a4e76a5424781910$export$e08e3b67e392101e(props.onKeyUp, shortcutOnKeyUp) : shortcutOnKeyUp;
|
|
959
|
+
} else {
|
|
960
|
+
onKeyDown = $8dba16319206abb6$export$48d1ea6320830260(props.onKeyDown);
|
|
961
|
+
onKeyUp = $8dba16319206abb6$export$48d1ea6320830260(props.onKeyUp);
|
|
962
|
+
}
|
|
786
963
|
return { keyboardProps: props.isDisabled ? {} : {
|
|
787
|
-
onKeyDown
|
|
788
|
-
onKeyUp
|
|
964
|
+
onKeyDown,
|
|
965
|
+
onKeyUp
|
|
789
966
|
} };
|
|
790
967
|
}
|
|
791
968
|
//#endregion
|
|
@@ -987,4 +1164,4 @@ function $e969f22b6713ca4a$export$ae780daf29e6d456(props) {
|
|
|
987
1164
|
};
|
|
988
1165
|
}
|
|
989
1166
|
//#endregion
|
|
990
|
-
export { $2add3ce32c6007eb$export$e1865c3bedcd822b as A, $23f2114a1b82827e$export$b4f377a2b6254582 as B, $b5c62b033c25b96d$export$29bf1b5f2c56cf63 as C, $2add3ce32c6007eb$export$78551043582a6a98 as D, $2add3ce32c6007eb$export$6446a186d09e379e as E, $a92dc41f639950be$export$cabe61c495ee3649 as F, $d447af545b77c9f1$export$
|
|
1167
|
+
export { $2add3ce32c6007eb$export$e1865c3bedcd822b as A, $23f2114a1b82827e$export$b4f377a2b6254582 as B, $b5c62b033c25b96d$export$29bf1b5f2c56cf63 as C, $2add3ce32c6007eb$export$78551043582a6a98 as D, $2add3ce32c6007eb$export$6446a186d09e379e as E, $a92dc41f639950be$export$cabe61c495ee3649 as F, $d447af545b77c9f1$export$af51f0f06c0f328a as G, $23f2114a1b82827e$export$da7af4355d792141 as H, $3b8b240c1bf84ab9$export$4c063cf1350e6fed as I, $d447af545b77c9f1$export$f531f92e2a15358f as J, $d447af545b77c9f1$export$b204af158042fbac as K, $3b8b240c1bf84ab9$export$bebd5a1431fec25d as L, $a92dc41f639950be$export$525bc4921d56d4a as M, $a92dc41f639950be$export$715c682d09d639cc as N, $2add3ce32c6007eb$export$9ac100e40613ea10 as O, $a92dc41f639950be$export$c2b7abe5d61ec696 as P, $1969ac565cfec8d0$export$de79e2c695e052f3 as R, $caaf0dd3060ed57c$export$9a302a45f65d0572 as S, $2add3ce32c6007eb$export$186c6964ca17d99 as T, $23f2114a1b82827e$export$e58f029f0fbfdb29 as U, $23f2114a1b82827e$export$cd4e5573fbe2b576 as V, $6a20a7989e6c817a$export$98658e8c59125e6a as W, $8f5a2122b0992be3$export$b9b3dfddab17db27 as _, $d1116acdf220c2da$export$f9762fab77588ecb as a, $caaf0dd3060ed57c$export$7e924b3091a3bd18 as b, $1e74c67db218ce67$export$f8168d8dd8fd66e6 as c, $3e6197669829fe11$export$40bfa8c7b0832715 as d, $fe16bffc7a557bf0$export$7f54fc3180508a52 as f, $8f5a2122b0992be3$export$98e20ec92f614cfe as g, $8f5a2122b0992be3$export$887a228355cf7d95 as h, $d1116acdf220c2da$export$4c014de7c8940b4c as i, $2add3ce32c6007eb$export$fedb369cb70207f1 as j, $2add3ce32c6007eb$export$a11b0059900ceec8 as k, $f192c2f16961cbe0$export$80f3e147d781571c as l, $8f5a2122b0992be3$export$8397ddfc504fdb9a as m, $48a7d519b337145d$export$4eaf04e54aa8eed6 as n, $b7115c395c64f7b5$export$4debdb1a3f0fa79e as o, $8f5a2122b0992be3$export$630ff653c5ada6a9 as p, $d447af545b77c9f1$export$f21a1ffae260145a as q, $d1116acdf220c2da$export$13f3202a3e5ddd5 as r, $8296dad1a4c5e0dc$export$8f71654801c2f7cd as s, $e969f22b6713ca4a$export$ae780daf29e6d456 as t, $081cb5757e08788e$export$24490316f764c430 as u, $8f5a2122b0992be3$export$ec71b4b83ac08ec3 as v, $b5c62b033c25b96d$export$60278871457622de as w, $caaf0dd3060ed57c$export$95185d699e05d4d7 as x, $caaf0dd3060ed57c$export$13aea1a3cb5e3f1f as y, $23f2114a1b82827e$export$4282f70798064fe0 as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as $390e54f620492c70$export$f680877a34711e37 } from "./utils-
|
|
2
|
-
import { t as $e8ac3c3f5d4bae7f$export$d6875122194c7b44 } from "./useLabels-
|
|
1
|
+
import { p as $390e54f620492c70$export$f680877a34711e37 } from "./utils-ClM91CuL.js";
|
|
2
|
+
import { t as $e8ac3c3f5d4bae7f$export$d6875122194c7b44 } from "./useLabels-Dcg-cEyM.js";
|
|
3
3
|
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
|
|
4
4
|
function $0beb20c9744a2065$export$8467354a121f1b9f(props) {
|
|
5
5
|
let { id, label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType = "label" } = props;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as $390e54f620492c70$export$f680877a34711e37 } from "./utils-
|
|
1
|
+
import { p as $390e54f620492c70$export$f680877a34711e37 } from "./utils-ClM91CuL.js";
|
|
2
2
|
//#region node_modules/react-aria/dist/private/utils/useLabels.mjs
|
|
3
3
|
function $e8ac3c3f5d4bae7f$export$d6875122194c7b44(props, defaultLabel) {
|
|
4
4
|
let { id, "aria-label": label, "aria-labelledby": labelledBy } = props;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as $4a07ac835f260f78$export$6c8a5aaad13c9852, r as $60f19cefd567a3e4$export$253fe78d46329472, t as $d03379b88399b8c5$export$6cd28814d92fa9c9 } from "./useCollection-
|
|
1
|
+
import { n as $4a07ac835f260f78$export$6c8a5aaad13c9852, r as $60f19cefd567a3e4$export$253fe78d46329472, t as $d03379b88399b8c5$export$6cd28814d92fa9c9 } from "./useCollection-LQlZnc1u.js";
|
|
2
2
|
import { useCallback, useEffect, useMemo, useRef, version } from "react";
|
|
3
3
|
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
|
|
4
4
|
function $b24d1bc31a0f941d$export$a9d04c5684123369(value) {
|
|
@@ -78,7 +78,9 @@ function $b14b6f590b50af39$export$2f645645f7bca764(props) {
|
|
|
78
78
|
let { filter, layoutDelegate } = props;
|
|
79
79
|
let selectionState = $60f19cefd567a3e4$export$253fe78d46329472(props);
|
|
80
80
|
let disabledKeys = useMemo(() => props.disabledKeys ? new Set(props.disabledKeys) : new Set(), [props.disabledKeys]);
|
|
81
|
-
let
|
|
81
|
+
let factory = useCallback((nodes) => filter ? new $f664a81d022446b5$export$d085fb9e920b5ca7(filter(nodes)) : new $f664a81d022446b5$export$d085fb9e920b5ca7(nodes), [filter]);
|
|
82
|
+
let context = useMemo(() => ({ suppressTextValueWarning: props.suppressTextValueWarning }), [props.suppressTextValueWarning]);
|
|
83
|
+
let collection = $d03379b88399b8c5$export$6cd28814d92fa9c9(props, factory, context);
|
|
82
84
|
let selectionManager = useMemo(() => new $4a07ac835f260f78$export$6c8a5aaad13c9852(collection, selectionState, { layoutDelegate }), [
|
|
83
85
|
collection,
|
|
84
86
|
selectionState,
|
package/dist/{useLocalizedStringFormatter-Ccm8EL_u.js → useLocalizedStringFormatter-CTCqjYu4.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider-
|
|
1
|
+
import { t as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider-R_4IDnf9.js";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
|
|
4
4
|
var $a747a10fe70a57da$var$localeSymbol = Symbol.for("react-aria.i18n.locale");
|
|
@@ -39,6 +39,8 @@ var $a747a10fe70a57da$export$c17fa47878dc55b6 = class $a747a10fe70a57da$export$c
|
|
|
39
39
|
function $a747a10fe70a57da$var$getStringsForLocale(locale, strings, defaultLocale = "en-US") {
|
|
40
40
|
if (strings[locale]) return strings[locale];
|
|
41
41
|
let language = $a747a10fe70a57da$var$getLanguage(locale);
|
|
42
|
+
let script = $a747a10fe70a57da$var$getScript(locale);
|
|
43
|
+
if (script && strings[`${language}-${script}`]) return strings[`${language}-${script}`];
|
|
42
44
|
if (strings[language]) return strings[language];
|
|
43
45
|
for (let key in strings) if (key.startsWith(language + "-")) return strings[key];
|
|
44
46
|
return strings[defaultLocale];
|
|
@@ -47,6 +49,9 @@ function $a747a10fe70a57da$var$getLanguage(locale) {
|
|
|
47
49
|
if (Intl.Locale) return new Intl.Locale(locale).language;
|
|
48
50
|
return locale.split("-")[0];
|
|
49
51
|
}
|
|
52
|
+
function $a747a10fe70a57da$var$getScript(locale) {
|
|
53
|
+
if (Intl.Locale) return new Intl.Locale(locale).script;
|
|
54
|
+
}
|
|
50
55
|
//#endregion
|
|
51
56
|
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
|
|
52
57
|
var $b27c684a33948c64$var$pluralRulesCache = new Map();
|