@eightshift/ui-components 4.0.0 → 5.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-CvzGKGCo.js → Button-wERNNG0T.js} +4 -4
- package/dist/{Collection-ddre1L5v.js → Collection-CKsHTyhc.js} +129 -98
- package/dist/{Color-MV5kBVXr.js → Color-BhgbJF5x.js} +1 -1
- package/dist/{ColorSwatch-BqQfVu4L.js → ColorSwatch-Bcn6oRSg.js} +4 -4
- package/dist/{ComboBox-jQ-dk95U.js → ComboBox-D1LPUwWP.js} +19 -19
- package/dist/{Dialog-DX1aiYyE.js → Dialog-D190gMbE.js} +28 -30
- package/dist/{FieldError-52GVSGgC.js → FieldError-DeUh5Wkw.js} +2 -2
- package/dist/{FocusScope-Cri5BFRz.js → FocusScope-C-plSxbS.js} +2 -2
- package/dist/{Group-_emcIVxI.js → Group-C5iZpSAM.js} +3 -3
- package/dist/{Heading-B2153VXe.js → Heading-D-Pboe4p.js} +1 -1
- package/dist/{Input-BxpFEIXV.js → Input--mF4XVE1.js} +6 -6
- package/dist/{Label-icmbmNdI.js → Label-Fp6AwSRn.js} +1 -1
- package/dist/{List-BYNHbol3.js → List-CZMUbkFU.js} +1 -1
- package/dist/{ListBox-mJ4nQaL7.js → ListBox-4oW9kh3R.js} +13 -12
- package/dist/{OverlayArrow-BB0CWwdq.js → OverlayArrow-BpB9uB_I.js} +19 -11
- package/dist/{Select-aab027f3.esm--EmXjiL3.js → Select-aab027f3.esm-BKIJGje-.js} +1 -1
- package/dist/{Separator-D9moUgP8.js → Separator-B88tj5YD.js} +6 -5
- package/dist/{Slider-rz2XRMGm.js → Slider-CyJzC1bp.js} +11 -11
- package/dist/{Text-DVSAPY-K.js → Text-DRpwWot2.js} +1 -1
- package/dist/{VisuallyHidden-f9zX67a_.js → VisuallyHidden-DsKYcRQ_.js} +2 -2
- package/dist/assets/index.css +21 -1
- package/dist/assets/style-admin.css +891 -282
- package/dist/assets/style-editor.css +891 -282
- package/dist/assets/style.css +891 -282
- package/dist/assets/wp-font-enhancements.css +1 -1
- package/dist/assets/wp-ui-enhancements.css +91 -13
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +5 -5
- package/dist/components/checkbox/checkbox.js +9 -9
- package/dist/components/color-pickers/color-swatch.js +8 -7
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +16 -16
- package/dist/components/component-toggle/component-toggle.js +5 -2
- package/dist/components/draggable/draggable.js +2049 -1277
- package/dist/components/draggable-list/draggable-list.js +1 -1
- package/dist/components/expandable/expandable.js +7 -7
- package/dist/components/input-field/input-field.js +7 -7
- package/dist/components/link-input/link-input.js +16 -18
- package/dist/components/menu/menu.js +2 -2
- package/dist/components/modal/modal.js +5 -5
- package/dist/components/number-picker/number-picker.js +9 -9
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/radio/radio.js +13 -13
- package/dist/components/repeater/repeater.js +1 -1
- package/dist/components/responsive/mini-responsive.js +3 -3
- package/dist/components/responsive/responsive-legacy.js +3 -3
- package/dist/components/responsive/responsive.js +6 -3
- 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/v2/async-select.js +8 -8
- package/dist/components/select/v2/shared.js +2 -2
- package/dist/components/select/v2/single-select.js +19 -18
- package/dist/components/slider/column-config-slider.js +2 -2
- package/dist/components/slider/slider.js +6 -4
- package/dist/components/slider/utils.js +11 -1
- package/dist/components/tabs/tabs.js +16 -14
- package/dist/components/toggle/switch.js +8 -7
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +27 -8
- package/dist/components/tooltip/tooltip.js +6 -4
- package/dist/{context-D2KUdwNL.js → context-BYWrbm1z.js} +1 -1
- package/dist/{index-641ee5b8.esm-BPz6U6sJ.js → index-641ee5b8.esm-BPU8rMZr.js} +5 -5
- package/dist/index-CFozsmNS.js +28321 -0
- package/dist/{index-BKGQ6jGS.js → index-wl5606BX.js} +1 -1
- package/dist/{multi-select-components-BlZZoNXC.js → multi-select-components-Sp-JEFEX.js} +1 -1
- package/dist/{react-select-async.esm-CwUoej5h.js → react-select-async.esm-D937XTWW.js} +3 -3
- package/dist/{react-select.esm-DcwYxadV.js → react-select.esm-Ciai3aKf.js} +3 -3
- package/dist/{textSelection-0UUS8Yfg.js → textSelection-CCcyjiRP.js} +1 -1
- package/dist/{useButton-BpOKDWEN.js → useButton-BOHxkGQF.js} +6 -27
- package/dist/{useEvent-B0b-6KBr.js → useEvent-D5o_CqDH.js} +1 -1
- package/dist/{useFocusRing-CV5l3lf6.js → useFocusRing-nMG2uzxS.js} +5 -5
- package/dist/{useFormReset-C5OggHsw.js → useFormReset-DlmRL87g.js} +1 -1
- package/dist/{useFormValidation-DhDNSjws.js → useFormValidation-D0_aaK-e.js} +2 -2
- package/dist/{useHover-DwDr6ozG.js → useHover-VO5tcIli.js} +58 -68
- package/dist/{useLabel-D7HkNEHT.js → useLabel-BKH4fVA4.js} +3 -3
- package/dist/{useLabels-D8cxd1Z8.js → useLabels-ntF3rFY0.js} +1 -1
- package/dist/{useListState-UGlN5-7P.js → useListState-Cq2Nvr-v.js} +1 -1
- package/dist/{useLocalizedStringFormatter-CFP1YZWQ.js → useLocalizedStringFormatter-CGzwx1a0.js} +1 -1
- package/dist/{useNumberField-CEAj7Mrj.js → useNumberField-C9dmERhP.js} +14 -11
- package/dist/{useNumberFormatter-321rAb4J.js → useNumberFormatter-MrRLgvhj.js} +1 -1
- package/dist/{usePress-DNW8qpY6.js → usePress-DjNo5790.js} +36 -23
- package/dist/{useSingleSelectListState-DC0wWTUM.js → useSingleSelectListState--r3AAhRj.js} +2 -2
- package/dist/{useToggle-BrpmSOB-.js → useToggle-CQaXLe-O.js} +5 -5
- package/dist/{useToggleState-CmQX3SoX.js → useToggleState-C3DLdez5.js} +1 -1
- package/dist/utilities/es-dash.js +6 -0
- package/dist/{utils-DkCSC521.js → utils-B94NDG0v.js} +1 -1
- package/package.json +101 -101
- package/dist/index-BYHhzLf-.js +0 -444
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, e as $bdb11010cef70236$export$f680877a34711e37, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-
|
|
1
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, e as $bdb11010cef70236$export$f680877a34711e37, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-B94NDG0v.js";
|
|
2
2
|
import React__default, { createContext, useRef, useEffect } from "react";
|
|
3
3
|
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-rE6uR-lr.js";
|
|
4
4
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
5
|
-
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "./useButton-
|
|
6
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-
|
|
7
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-
|
|
5
|
+
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "./useButton-BOHxkGQF.js";
|
|
6
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-nMG2uzxS.js";
|
|
7
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-VO5tcIli.js";
|
|
8
8
|
const $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY = 7e3;
|
|
9
9
|
let $319e236875307eab$var$liveAnnouncer = null;
|
|
10
10
|
function $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = "assertive", timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as $f39a9eba43920ace$export$8dc98ba7eadeaa56 } from "./Hidden-rE6uR-lr.js";
|
|
2
|
-
import { r as reactDomExports } from "./index-
|
|
3
|
-
import {
|
|
2
|
+
import { r as reactDomExports } from "./index-CFozsmNS.js";
|
|
3
|
+
import { B as $c87311424ea30a05$export$9ac100e40613ea10, g as $03deb23ff14920c4$export$4eaf04e54aa8eed6, d as $431fbd86ca7dc216$export$b204af158042fbac, z as $7215afc6de606d6b$export$de79e2c695e052f3, J as $f645667febf57a63$export$f9762fab77588ecb, i as $d4ee10de306f2510$export$cd4e5573fbe2b576, K as $c87311424ea30a05$export$e1865c3bedcd822b, u as $3ad3f6e1647bc98d$export$80f3e147d781571c, x as $507fabe10e71c6fb$export$630ff653c5ada6a9, b as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-VO5tcIli.js";
|
|
4
4
|
import React__default, { useRef, useState, useMemo, cloneElement, forwardRef, useContext, createContext, useCallback, useEffect } from "react";
|
|
5
|
-
import { k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, d as $3ef42575df84b30b$export$9d1611c77c2fe928, n as $b5e257d569688ac6$export$535bd6ca7f90a273, e as $bdb11010cef70236$export$f680877a34711e37, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-
|
|
6
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21, b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, c as $ea8dcbcb9ea1b556$export$95185d699e05d4d7 } from "./usePress-
|
|
7
|
-
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-
|
|
8
|
-
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-
|
|
9
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
5
|
+
import { k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, d as $3ef42575df84b30b$export$9d1611c77c2fe928, n as $b5e257d569688ac6$export$535bd6ca7f90a273, e as $bdb11010cef70236$export$f680877a34711e37, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-B94NDG0v.js";
|
|
6
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21, b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, c as $ea8dcbcb9ea1b556$export$95185d699e05d4d7 } from "./usePress-DjNo5790.js";
|
|
7
|
+
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-D5o_CqDH.js";
|
|
8
|
+
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-C-plSxbS.js";
|
|
9
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BYWrbm1z.js";
|
|
10
10
|
function $ca9b37712f007381$export$72ef708ab07251f1(effect, dependencies) {
|
|
11
11
|
const isInitialMount = useRef(true);
|
|
12
12
|
const lastDeps = useRef(null);
|
|
@@ -414,8 +414,18 @@ class $681cc3c98f569e39$export$410b0c854570d131 {
|
|
|
414
414
|
var _this_parentNode;
|
|
415
415
|
return ((_this_parentNode = this.parentNode) === null || _this_parentNode === void 0 ? void 0 : _this_parentNode.isConnected) || false;
|
|
416
416
|
}
|
|
417
|
+
invalidateChildIndices(child) {
|
|
418
|
+
if (this._minInvalidChildIndex == null || child.index < this._minInvalidChildIndex.index) this._minInvalidChildIndex = child;
|
|
419
|
+
}
|
|
420
|
+
updateChildIndices() {
|
|
421
|
+
let node = this._minInvalidChildIndex;
|
|
422
|
+
while (node) {
|
|
423
|
+
node.index = node.previousSibling ? node.previousSibling.index + 1 : 0;
|
|
424
|
+
node = node.nextSibling;
|
|
425
|
+
}
|
|
426
|
+
this._minInvalidChildIndex = null;
|
|
427
|
+
}
|
|
417
428
|
appendChild(child) {
|
|
418
|
-
this.ownerDocument.startTransaction();
|
|
419
429
|
if (child.parentNode) child.parentNode.removeChild(child);
|
|
420
430
|
if (this.firstChild == null) this.firstChild = child;
|
|
421
431
|
if (this.lastChild) {
|
|
@@ -430,14 +440,10 @@ class $681cc3c98f569e39$export$410b0c854570d131 {
|
|
|
430
440
|
child.nextSibling = null;
|
|
431
441
|
this.lastChild = child;
|
|
432
442
|
this.ownerDocument.markDirty(this);
|
|
433
|
-
if (child.hasSetProps)
|
|
434
|
-
this.ownerDocument.addNode(child);
|
|
435
|
-
this.ownerDocument.endTransaction();
|
|
436
443
|
this.ownerDocument.queueUpdate();
|
|
437
444
|
}
|
|
438
445
|
insertBefore(newNode, referenceNode) {
|
|
439
446
|
if (referenceNode == null) return this.appendChild(newNode);
|
|
440
|
-
this.ownerDocument.startTransaction();
|
|
441
447
|
if (newNode.parentNode) newNode.parentNode.removeChild(newNode);
|
|
442
448
|
newNode.nextSibling = referenceNode;
|
|
443
449
|
newNode.previousSibling = referenceNode.previousSibling;
|
|
@@ -446,24 +452,15 @@ class $681cc3c98f569e39$export$410b0c854570d131 {
|
|
|
446
452
|
else if (referenceNode.previousSibling) referenceNode.previousSibling.nextSibling = newNode;
|
|
447
453
|
referenceNode.previousSibling = newNode;
|
|
448
454
|
newNode.parentNode = referenceNode.parentNode;
|
|
449
|
-
|
|
450
|
-
while (node) {
|
|
451
|
-
node.index++;
|
|
452
|
-
node = node.nextSibling;
|
|
453
|
-
}
|
|
454
|
-
if (newNode.hasSetProps) this.ownerDocument.addNode(newNode);
|
|
455
|
-
this.ownerDocument.endTransaction();
|
|
455
|
+
this.invalidateChildIndices(referenceNode);
|
|
456
456
|
this.ownerDocument.queueUpdate();
|
|
457
457
|
}
|
|
458
458
|
removeChild(child) {
|
|
459
459
|
if (child.parentNode !== this || !this.ownerDocument.isMounted) return;
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
node.index--;
|
|
464
|
-
node = node.nextSibling;
|
|
460
|
+
if (child.nextSibling) {
|
|
461
|
+
this.invalidateChildIndices(child.nextSibling);
|
|
462
|
+
child.nextSibling.previousSibling = child.previousSibling;
|
|
465
463
|
}
|
|
466
|
-
if (child.nextSibling) child.nextSibling.previousSibling = child.previousSibling;
|
|
467
464
|
if (child.previousSibling) child.previousSibling.nextSibling = child.nextSibling;
|
|
468
465
|
if (this.firstChild === child) this.firstChild = child.nextSibling;
|
|
469
466
|
if (this.lastChild === child) this.lastChild = child.previousSibling;
|
|
@@ -471,20 +468,40 @@ class $681cc3c98f569e39$export$410b0c854570d131 {
|
|
|
471
468
|
child.nextSibling = null;
|
|
472
469
|
child.previousSibling = null;
|
|
473
470
|
child.index = 0;
|
|
474
|
-
this.ownerDocument.
|
|
475
|
-
this.ownerDocument.endTransaction();
|
|
471
|
+
this.ownerDocument.markDirty(child);
|
|
476
472
|
this.ownerDocument.queueUpdate();
|
|
477
473
|
}
|
|
478
474
|
addEventListener() {
|
|
479
475
|
}
|
|
480
476
|
removeEventListener() {
|
|
481
477
|
}
|
|
478
|
+
get previousVisibleSibling() {
|
|
479
|
+
let node = this.previousSibling;
|
|
480
|
+
while (node && node.isHidden) node = node.previousSibling;
|
|
481
|
+
return node;
|
|
482
|
+
}
|
|
483
|
+
get nextVisibleSibling() {
|
|
484
|
+
let node = this.nextSibling;
|
|
485
|
+
while (node && node.isHidden) node = node.nextSibling;
|
|
486
|
+
return node;
|
|
487
|
+
}
|
|
488
|
+
get firstVisibleChild() {
|
|
489
|
+
let node = this.firstChild;
|
|
490
|
+
while (node && node.isHidden) node = node.nextSibling;
|
|
491
|
+
return node;
|
|
492
|
+
}
|
|
493
|
+
get lastVisibleChild() {
|
|
494
|
+
let node = this.lastChild;
|
|
495
|
+
while (node && node.isHidden) node = node.previousSibling;
|
|
496
|
+
return node;
|
|
497
|
+
}
|
|
482
498
|
constructor(ownerDocument) {
|
|
483
499
|
this._firstChild = null;
|
|
484
500
|
this._lastChild = null;
|
|
485
501
|
this._previousSibling = null;
|
|
486
502
|
this._nextSibling = null;
|
|
487
503
|
this._parentNode = null;
|
|
504
|
+
this._minInvalidChildIndex = null;
|
|
488
505
|
this.ownerDocument = ownerDocument;
|
|
489
506
|
}
|
|
490
507
|
}
|
|
@@ -500,53 +517,80 @@ class $681cc3c98f569e39$export$dc064fe9e59310fd extends $681cc3c98f569e39$export
|
|
|
500
517
|
if (this.parentNode instanceof $681cc3c98f569e39$export$dc064fe9e59310fd) return this.parentNode.level + (this.node.type === "item" ? 1 : 0);
|
|
501
518
|
return 0;
|
|
502
519
|
}
|
|
520
|
+
/**
|
|
521
|
+
* Lazily gets a mutable instance of a Node. If the node has already
|
|
522
|
+
* been cloned during this update cycle, it just returns the existing one.
|
|
523
|
+
*/
|
|
524
|
+
getMutableNode() {
|
|
525
|
+
if (!this.isMutated) {
|
|
526
|
+
this.node = this.node.clone();
|
|
527
|
+
this.isMutated = true;
|
|
528
|
+
}
|
|
529
|
+
this.ownerDocument.markDirty(this);
|
|
530
|
+
return this.node;
|
|
531
|
+
}
|
|
503
532
|
updateNode() {
|
|
504
|
-
var
|
|
505
|
-
let
|
|
533
|
+
var _this_previousVisibleSibling, _this_firstVisibleChild, _this_lastVisibleChild;
|
|
534
|
+
let nextSibling = this.nextVisibleSibling;
|
|
535
|
+
let node = this.getMutableNode();
|
|
506
536
|
node.index = this.index;
|
|
507
537
|
node.level = this.level;
|
|
508
538
|
node.parentKey = this.parentNode instanceof $681cc3c98f569e39$export$dc064fe9e59310fd ? this.parentNode.node.key : null;
|
|
509
|
-
var
|
|
510
|
-
node.prevKey = (
|
|
511
|
-
var
|
|
512
|
-
node.nextKey = (
|
|
539
|
+
var _this_previousVisibleSibling_node_key;
|
|
540
|
+
node.prevKey = (_this_previousVisibleSibling_node_key = (_this_previousVisibleSibling = this.previousVisibleSibling) === null || _this_previousVisibleSibling === void 0 ? void 0 : _this_previousVisibleSibling.node.key) !== null && _this_previousVisibleSibling_node_key !== void 0 ? _this_previousVisibleSibling_node_key : null;
|
|
541
|
+
var _nextSibling_node_key;
|
|
542
|
+
node.nextKey = (_nextSibling_node_key = nextSibling === null || nextSibling === void 0 ? void 0 : nextSibling.node.key) !== null && _nextSibling_node_key !== void 0 ? _nextSibling_node_key : null;
|
|
513
543
|
node.hasChildNodes = !!this.firstChild;
|
|
514
|
-
var
|
|
515
|
-
node.firstChildKey = (
|
|
516
|
-
var
|
|
517
|
-
node.lastChildKey = (
|
|
518
|
-
if ((node.colSpan != null || node.colIndex != null) &&
|
|
544
|
+
var _this_firstVisibleChild_node_key;
|
|
545
|
+
node.firstChildKey = (_this_firstVisibleChild_node_key = (_this_firstVisibleChild = this.firstVisibleChild) === null || _this_firstVisibleChild === void 0 ? void 0 : _this_firstVisibleChild.node.key) !== null && _this_firstVisibleChild_node_key !== void 0 ? _this_firstVisibleChild_node_key : null;
|
|
546
|
+
var _this_lastVisibleChild_node_key;
|
|
547
|
+
node.lastChildKey = (_this_lastVisibleChild_node_key = (_this_lastVisibleChild = this.lastVisibleChild) === null || _this_lastVisibleChild === void 0 ? void 0 : _this_lastVisibleChild.node.key) !== null && _this_lastVisibleChild_node_key !== void 0 ? _this_lastVisibleChild_node_key : null;
|
|
548
|
+
if ((node.colSpan != null || node.colIndex != null) && nextSibling) {
|
|
519
549
|
var _node_colIndex, _node_colSpan;
|
|
520
550
|
let nextColIndex = ((_node_colIndex = node.colIndex) !== null && _node_colIndex !== void 0 ? _node_colIndex : node.index) + ((_node_colSpan = node.colSpan) !== null && _node_colSpan !== void 0 ? _node_colSpan : 1);
|
|
521
|
-
if (nextColIndex !==
|
|
522
|
-
let siblingNode =
|
|
551
|
+
if (nextColIndex !== nextSibling.node.colIndex) {
|
|
552
|
+
let siblingNode = nextSibling.getMutableNode();
|
|
523
553
|
siblingNode.colIndex = nextColIndex;
|
|
524
554
|
}
|
|
525
555
|
}
|
|
526
556
|
}
|
|
527
557
|
setProps(obj, ref, rendered, render) {
|
|
528
|
-
let node = this.
|
|
529
|
-
let { value, textValue, id, ...props } = obj;
|
|
558
|
+
let node = this.getMutableNode();
|
|
559
|
+
let { value: value1, textValue, id, ...props } = obj;
|
|
530
560
|
props.ref = ref;
|
|
531
561
|
node.props = props;
|
|
532
562
|
node.rendered = rendered;
|
|
533
563
|
node.render = render;
|
|
534
|
-
node.value =
|
|
564
|
+
node.value = value1;
|
|
535
565
|
node.textValue = textValue || (typeof props.children === "string" ? props.children : "") || obj["aria-label"] || "";
|
|
536
566
|
if (id != null && id !== node.key) {
|
|
537
567
|
if (this.hasSetProps) throw new Error("Cannot change the id of an item");
|
|
538
568
|
node.key = id;
|
|
539
569
|
}
|
|
540
570
|
if (props.colSpan != null) node.colSpan = props.colSpan;
|
|
541
|
-
|
|
542
|
-
this.ownerDocument.addNode(this);
|
|
543
|
-
this.ownerDocument.endTransaction();
|
|
544
|
-
this.hasSetProps = true;
|
|
545
|
-
}
|
|
571
|
+
this.hasSetProps = true;
|
|
546
572
|
this.ownerDocument.queueUpdate();
|
|
547
573
|
}
|
|
548
574
|
get style() {
|
|
549
|
-
|
|
575
|
+
let element = this;
|
|
576
|
+
return {
|
|
577
|
+
get display() {
|
|
578
|
+
return element.isHidden ? "none" : "";
|
|
579
|
+
},
|
|
580
|
+
set display(value) {
|
|
581
|
+
let isHidden = value === "none";
|
|
582
|
+
if (element.isHidden !== isHidden) {
|
|
583
|
+
var _element_parentNode, _element_parentNode1;
|
|
584
|
+
if (((_element_parentNode = element.parentNode) === null || _element_parentNode === void 0 ? void 0 : _element_parentNode.firstVisibleChild) === element || ((_element_parentNode1 = element.parentNode) === null || _element_parentNode1 === void 0 ? void 0 : _element_parentNode1.lastVisibleChild) === element) element.ownerDocument.markDirty(element.parentNode);
|
|
585
|
+
let prev = element.previousVisibleSibling;
|
|
586
|
+
let next = element.nextVisibleSibling;
|
|
587
|
+
if (prev) element.ownerDocument.markDirty(prev);
|
|
588
|
+
if (next) element.ownerDocument.markDirty(next);
|
|
589
|
+
element.isHidden = isHidden;
|
|
590
|
+
element.ownerDocument.markDirty(element);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
};
|
|
550
594
|
}
|
|
551
595
|
hasAttribute() {
|
|
552
596
|
}
|
|
@@ -557,9 +601,8 @@ class $681cc3c98f569e39$export$dc064fe9e59310fd extends $681cc3c98f569e39$export
|
|
|
557
601
|
removeAttribute() {
|
|
558
602
|
}
|
|
559
603
|
constructor(type, ownerDocument) {
|
|
560
|
-
super(ownerDocument), this.nodeType = 8, this._index = 0, this.hasSetProps = false;
|
|
604
|
+
super(ownerDocument), this.nodeType = 8, this.isMutated = true, this._index = 0, this.hasSetProps = false, this.isHidden = false;
|
|
561
605
|
this.node = new $23b9f4fcf0fe224b$export$d68d59712b04d9d1(type, `react-aria-${++ownerDocument.nodeId}`);
|
|
562
|
-
this.ownerDocument.startTransaction();
|
|
563
606
|
}
|
|
564
607
|
}
|
|
565
608
|
class $681cc3c98f569e39$export$b34a105447964f9f extends $681cc3c98f569e39$export$410b0c854570d131 {
|
|
@@ -569,72 +612,58 @@ class $681cc3c98f569e39$export$b34a105447964f9f extends $681cc3c98f569e39$export
|
|
|
569
612
|
createElement(type) {
|
|
570
613
|
return new $681cc3c98f569e39$export$dc064fe9e59310fd(type, this);
|
|
571
614
|
}
|
|
572
|
-
/**
|
|
573
|
-
* Lazily gets a mutable instance of a Node. If the node has already
|
|
574
|
-
* been cloned during this update cycle, it just returns the existing one.
|
|
575
|
-
*/
|
|
576
|
-
getMutableNode(element) {
|
|
577
|
-
let node = element.node;
|
|
578
|
-
if (!this.mutatedNodes.has(element)) {
|
|
579
|
-
node = element.node.clone();
|
|
580
|
-
this.mutatedNodes.add(element);
|
|
581
|
-
element.node = node;
|
|
582
|
-
}
|
|
583
|
-
this.markDirty(element);
|
|
584
|
-
return node;
|
|
585
|
-
}
|
|
586
615
|
getMutableCollection() {
|
|
587
|
-
if (!this.
|
|
588
|
-
|
|
589
|
-
this.collectionMutated = true;
|
|
590
|
-
}
|
|
591
|
-
return this.collection;
|
|
616
|
+
if (!this.nextCollection) this.nextCollection = this.collection.clone();
|
|
617
|
+
return this.nextCollection;
|
|
592
618
|
}
|
|
593
619
|
markDirty(node) {
|
|
594
620
|
this.dirtyNodes.add(node);
|
|
595
621
|
}
|
|
596
|
-
startTransaction() {
|
|
597
|
-
this.transactionCount++;
|
|
598
|
-
}
|
|
599
|
-
endTransaction() {
|
|
600
|
-
this.transactionCount--;
|
|
601
|
-
}
|
|
602
622
|
addNode(element) {
|
|
623
|
+
if (element.isHidden) return;
|
|
603
624
|
let collection = this.getMutableCollection();
|
|
604
|
-
if (!collection.getItem(element.node.key))
|
|
605
|
-
|
|
606
|
-
for (let child of element) this.addNode(child);
|
|
607
|
-
}
|
|
608
|
-
this.markDirty(element);
|
|
625
|
+
if (!collection.getItem(element.node.key)) for (let child of element) this.addNode(child);
|
|
626
|
+
collection.addNode(element.node);
|
|
609
627
|
}
|
|
610
628
|
removeNode(node) {
|
|
611
629
|
for (let child of node) this.removeNode(child);
|
|
612
630
|
let collection = this.getMutableCollection();
|
|
613
631
|
collection.removeNode(node.node.key);
|
|
614
|
-
this.markDirty(node);
|
|
615
632
|
}
|
|
616
633
|
/** Finalizes the collection update, updating all nodes and freezing the collection. */
|
|
617
634
|
getCollection() {
|
|
618
|
-
if (this.
|
|
635
|
+
if (this.inSubscription) return this.collection.clone();
|
|
636
|
+
this.queuedRender = false;
|
|
619
637
|
this.updateCollection();
|
|
620
638
|
return this.collection;
|
|
621
639
|
}
|
|
622
640
|
updateCollection() {
|
|
623
|
-
for (let element of this.dirtyNodes) if (element instanceof $681cc3c98f569e39$export$dc064fe9e59310fd && element.isConnected
|
|
641
|
+
for (let element of this.dirtyNodes) if (element instanceof $681cc3c98f569e39$export$dc064fe9e59310fd && (!element.isConnected || element.isHidden)) this.removeNode(element);
|
|
642
|
+
else element.updateChildIndices();
|
|
643
|
+
for (let element of this.dirtyNodes) if (element instanceof $681cc3c98f569e39$export$dc064fe9e59310fd) {
|
|
644
|
+
if (element.isConnected && !element.isHidden) {
|
|
645
|
+
element.updateNode();
|
|
646
|
+
this.addNode(element);
|
|
647
|
+
}
|
|
648
|
+
element.isMutated = false;
|
|
649
|
+
}
|
|
624
650
|
this.dirtyNodes.clear();
|
|
625
|
-
if (this.
|
|
626
|
-
var
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
this.
|
|
630
|
-
|
|
631
|
-
|
|
651
|
+
if (this.nextCollection) {
|
|
652
|
+
var _this_firstVisibleChild, _this_lastVisibleChild;
|
|
653
|
+
var _this_firstVisibleChild_node_key, _this_lastVisibleChild_node_key;
|
|
654
|
+
this.nextCollection.commit((_this_firstVisibleChild_node_key = (_this_firstVisibleChild = this.firstVisibleChild) === null || _this_firstVisibleChild === void 0 ? void 0 : _this_firstVisibleChild.node.key) !== null && _this_firstVisibleChild_node_key !== void 0 ? _this_firstVisibleChild_node_key : null, (_this_lastVisibleChild_node_key = (_this_lastVisibleChild = this.lastVisibleChild) === null || _this_lastVisibleChild === void 0 ? void 0 : _this_lastVisibleChild.node.key) !== null && _this_lastVisibleChild_node_key !== void 0 ? _this_lastVisibleChild_node_key : null, this.isSSR);
|
|
655
|
+
if (!this.isSSR) {
|
|
656
|
+
this.collection = this.nextCollection;
|
|
657
|
+
this.nextCollection = null;
|
|
658
|
+
}
|
|
632
659
|
}
|
|
633
|
-
this.collectionMutated = false;
|
|
634
660
|
}
|
|
635
661
|
queueUpdate() {
|
|
636
|
-
if (this.dirtyNodes.size === 0 || this.
|
|
662
|
+
if (this.dirtyNodes.size === 0 || this.queuedRender) return;
|
|
663
|
+
this.queuedRender = true;
|
|
664
|
+
this.inSubscription = true;
|
|
637
665
|
for (let fn of this.subscriptions) fn();
|
|
666
|
+
this.inSubscription = false;
|
|
638
667
|
}
|
|
639
668
|
subscribe(fn) {
|
|
640
669
|
this.subscriptions.add(fn);
|
|
@@ -649,9 +678,9 @@ class $681cc3c98f569e39$export$b34a105447964f9f extends $681cc3c98f569e39$export
|
|
|
649
678
|
}
|
|
650
679
|
}
|
|
651
680
|
constructor(collection) {
|
|
652
|
-
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = false, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.isMounted = true, this.
|
|
681
|
+
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = false, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.isMounted = true, this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = false, this.inSubscription = false;
|
|
653
682
|
this.collection = collection;
|
|
654
|
-
this.
|
|
683
|
+
this.nextCollection = collection;
|
|
655
684
|
}
|
|
656
685
|
}
|
|
657
686
|
function $e948873055cbafe4$export$727c8fc270210f13(props) {
|
|
@@ -1145,7 +1174,7 @@ function $fb3050f43d946246$var$getStringForKey(key) {
|
|
|
1145
1174
|
return "";
|
|
1146
1175
|
}
|
|
1147
1176
|
function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
1148
|
-
let { selectionManager: manager, keyboardDelegate: delegate, ref, autoFocus = false, shouldFocusWrap = false, disallowEmptySelection = false, disallowSelectAll = false, selectOnFocus = manager.selectionBehavior === "replace", disallowTypeAhead = false, shouldUseVirtualFocus, allowsTabNavigation = false, isVirtualized, scrollRef = ref, linkBehavior = "action" } = options;
|
|
1177
|
+
let { selectionManager: manager, keyboardDelegate: delegate, ref, autoFocus = false, shouldFocusWrap = false, disallowEmptySelection = false, disallowSelectAll = false, escapeKeyBehavior = "clearSelection", selectOnFocus = manager.selectionBehavior === "replace", disallowTypeAhead = false, shouldUseVirtualFocus, allowsTabNavigation = false, isVirtualized, scrollRef = ref, linkBehavior = "action" } = options;
|
|
1149
1178
|
let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
1150
1179
|
let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
|
|
1151
1180
|
let onKeyDown = (e) => {
|
|
@@ -1263,7 +1292,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
1263
1292
|
}
|
|
1264
1293
|
break;
|
|
1265
1294
|
case "Escape":
|
|
1266
|
-
if (!disallowEmptySelection && manager.selectedKeys.size !== 0) {
|
|
1295
|
+
if (escapeKeyBehavior === "clearSelection" && !disallowEmptySelection && manager.selectedKeys.size !== 0) {
|
|
1267
1296
|
e.stopPropagation();
|
|
1268
1297
|
e.preventDefault();
|
|
1269
1298
|
manager.clearSelection();
|
|
@@ -1519,7 +1548,9 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
1519
1548
|
router.open(ref.current, e, itemProps2.href, itemProps2.routerOptions);
|
|
1520
1549
|
}
|
|
1521
1550
|
};
|
|
1522
|
-
let itemPressProps = {
|
|
1551
|
+
let itemPressProps = {
|
|
1552
|
+
ref
|
|
1553
|
+
};
|
|
1523
1554
|
if (shouldSelectOnPressUp) {
|
|
1524
1555
|
itemPressProps.onPressStart = (e) => {
|
|
1525
1556
|
modality.current = e.pointerType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as $9446cca9a3875146$export$7d15b64cf5a3a4c4, b as $9446cca9a3875146$export$b6268554fba451f } from "./number-GajL10e1.js";
|
|
2
|
-
import { a as $5b160d28a433310d$export$c17fa47878dc55b6, b as $6db58dc88e78b024$export$2f817fcdc4b89ae0 } from "./useLocalizedStringFormatter-
|
|
2
|
+
import { a as $5b160d28a433310d$export$c17fa47878dc55b6, b as $6db58dc88e78b024$export$2f817fcdc4b89ae0 } from "./useLocalizedStringFormatter-CGzwx1a0.js";
|
|
3
3
|
import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-DA8u1Ot7.js";
|
|
4
4
|
var $eccab2b0118aef08$exports = {};
|
|
5
5
|
$eccab2b0118aef08$exports = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { e as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./utils-
|
|
1
|
+
import { e as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./utils-B94NDG0v.js";
|
|
2
2
|
import React__default, { useMemo, forwardRef, createContext } from "react";
|
|
3
|
-
import { $ as $799cddbef784668f$export$6e865ea70d7724f, a as $3493a52097159720$exports } from "./Color-
|
|
3
|
+
import { $ as $799cddbef784668f$export$6e865ea70d7724f, a as $3493a52097159720$exports } from "./Color-BhgbJF5x.js";
|
|
4
4
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
5
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
6
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
5
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BYWrbm1z.js";
|
|
6
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CGzwx1a0.js";
|
|
7
7
|
function $parcel$interopDefault(a) {
|
|
8
8
|
return a && a.__esModule ? a.default : a;
|
|
9
9
|
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect, useCallback, useMemo, useState, useReducer, forwardRef, createContext } from "react";
|
|
2
|
-
import { b as $319e236875307eab$export$a9b970dcc4ae71a9, a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-
|
|
3
|
-
import { p as $ff5963eb1fccf552$export$e08e3b67e392101e, d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, h as $64fa3d84918910a7$export$ef03459518577ad4, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a } from "./utils-
|
|
4
|
-
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "./FieldError-
|
|
2
|
+
import { b as $319e236875307eab$export$a9b970dcc4ae71a9, a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-wERNNG0T.js";
|
|
3
|
+
import { p as $ff5963eb1fccf552$export$e08e3b67e392101e, d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, h as $64fa3d84918910a7$export$ef03459518577ad4, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a } from "./utils-B94NDG0v.js";
|
|
4
|
+
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "./FieldError-DeUh5Wkw.js";
|
|
5
5
|
import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "./Form-Cq3fu75_.js";
|
|
6
|
-
import { a as $a049562f99e7db0e$export$f9c6924e160136d1 } from "./Group-
|
|
7
|
-
import { b as $2d73ec29415bd339$export$712718f7aec83d5, a as $3985021b0ad6602f$export$37fb8590cf2c088c } from "./Input
|
|
8
|
-
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-
|
|
9
|
-
import { d as $b1f0cad8af73213b$export$3585ede4d035bf14, e as $b1f0cad8af73213b$export$9145995848b05025, b as $eed445e0843c11d0$export$7ff8f37d2d81a48d, c as $eed445e0843c11d0$export$7c5906fe4f1f2af2 } from "./ListBox-
|
|
10
|
-
import { o as $168583247155ddda$export$dc9c12ed27dd1b49, k as $5e3802645cc19319$export$1c3ebcada18427bf, l as $de32f1b87079253c$export$d2f961adcb0afbe, p as $07b14b47974efb58$export$9b9a0cd73afb7ca4 } from "./Dialog-
|
|
11
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-
|
|
12
|
-
import { k as $ae20dd8cbca75726$export$d6daf82dcd84e87c, l as $c5a24bc478652b5f$export$1005530eda016c13, p as $55f9b1ae81f22853$export$2b35b76d2e30e129, e as $e1995378a142960e$export$bf788dd355e3a401 } from "./Collection-
|
|
6
|
+
import { a as $a049562f99e7db0e$export$f9c6924e160136d1 } from "./Group-C5iZpSAM.js";
|
|
7
|
+
import { b as $2d73ec29415bd339$export$712718f7aec83d5, a as $3985021b0ad6602f$export$37fb8590cf2c088c } from "./Input--mF4XVE1.js";
|
|
8
|
+
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-Fp6AwSRn.js";
|
|
9
|
+
import { d as $b1f0cad8af73213b$export$3585ede4d035bf14, e as $b1f0cad8af73213b$export$9145995848b05025, b as $eed445e0843c11d0$export$7ff8f37d2d81a48d, c as $eed445e0843c11d0$export$7c5906fe4f1f2af2 } from "./ListBox-4oW9kh3R.js";
|
|
10
|
+
import { o as $168583247155ddda$export$dc9c12ed27dd1b49, k as $5e3802645cc19319$export$1c3ebcada18427bf, l as $de32f1b87079253c$export$d2f961adcb0afbe, p as $07b14b47974efb58$export$9b9a0cd73afb7ca4 } from "./Dialog-D190gMbE.js";
|
|
11
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-DRpwWot2.js";
|
|
12
|
+
import { k as $ae20dd8cbca75726$export$d6daf82dcd84e87c, l as $c5a24bc478652b5f$export$1005530eda016c13, p as $55f9b1ae81f22853$export$2b35b76d2e30e129, e as $e1995378a142960e$export$bf788dd355e3a401 } from "./Collection-CKsHTyhc.js";
|
|
13
13
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
14
|
-
import { $ as $fc909762b330b746$export$61c6a8c84e605fb6,
|
|
15
|
-
import { e as $325a3faab7a68acd$export$a16aca283550c30d, f as $2a25aae57d74318e$export$a05409b8bb224a5a, c as $453cc9f0df89c0a5$export$77d5aafae4e095b2 } from "./Separator-
|
|
16
|
-
import { b as $e5be200c675c3b3a$export$a763b9476acd3eb, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "./useFormValidation-
|
|
17
|
-
import { $ as $a0d645289fe9b86b$export$e7f05e985daf4b5f } from "./useSingleSelectListState
|
|
18
|
-
import { b as $a02d57049d202695$export$d085fb9e920b5ca7 } from "./useListState-
|
|
19
|
-
import {
|
|
20
|
-
import { b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572 } from "./usePress-
|
|
21
|
-
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-
|
|
22
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
14
|
+
import { $ as $fc909762b330b746$export$61c6a8c84e605fb6, g as $9daab02d461809db$export$683480f191c0e3ea } from "./OverlayArrow-BpB9uB_I.js";
|
|
15
|
+
import { e as $325a3faab7a68acd$export$a16aca283550c30d, f as $2a25aae57d74318e$export$a05409b8bb224a5a, c as $453cc9f0df89c0a5$export$77d5aafae4e095b2 } from "./Separator-B88tj5YD.js";
|
|
16
|
+
import { b as $e5be200c675c3b3a$export$a763b9476acd3eb, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "./useFormValidation-D0_aaK-e.js";
|
|
17
|
+
import { $ as $a0d645289fe9b86b$export$e7f05e985daf4b5f } from "./useSingleSelectListState--r3AAhRj.js";
|
|
18
|
+
import { b as $a02d57049d202695$export$d085fb9e920b5ca7 } from "./useListState-Cq2Nvr-v.js";
|
|
19
|
+
import { K as $c87311424ea30a05$export$e1865c3bedcd822b, i as $d4ee10de306f2510$export$cd4e5573fbe2b576, d as $431fbd86ca7dc216$export$b204af158042fbac, b as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-VO5tcIli.js";
|
|
20
|
+
import { b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572 } from "./usePress-DjNo5790.js";
|
|
21
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-ntF3rFY0.js";
|
|
22
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CGzwx1a0.js";
|
|
23
23
|
function $4f58c5f72bcf79f7$export$496315a1608d9602(effect, dependencies) {
|
|
24
24
|
const isInitialMount = useRef(true);
|
|
25
25
|
const lastDeps = useRef(null);
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-
|
|
2
|
-
import { l as $df56164dff5785e2$export$4338b53315abf666, d as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, e as $bdb11010cef70236$export$f680877a34711e37, k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, p as $ff5963eb1fccf552$export$e08e3b67e392101e, n as $b5e257d569688ac6$export$535bd6ca7f90a273, j as $bdb11010cef70236$export$b4cc09c592e8fdb8, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, o as $64fa3d84918910a7$export$c62b8e45d58ddad9, m as $5dc95899b306f630$export$c9058316764c140e, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8 } from "./utils-
|
|
1
|
+
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-wERNNG0T.js";
|
|
2
|
+
import { l as $df56164dff5785e2$export$4338b53315abf666, d as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, e as $bdb11010cef70236$export$f680877a34711e37, k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, p as $ff5963eb1fccf552$export$e08e3b67e392101e, n as $b5e257d569688ac6$export$535bd6ca7f90a273, j as $bdb11010cef70236$export$b4cc09c592e8fdb8, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, o as $64fa3d84918910a7$export$c62b8e45d58ddad9, m as $5dc95899b306f630$export$c9058316764c140e, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8 } from "./utils-B94NDG0v.js";
|
|
3
3
|
import { $ as $4e85f108e88277b8$export$d688439359537581 } from "./RSPContexts-2lR5GG9p.js";
|
|
4
|
-
import {
|
|
5
|
-
import { j as $cc38e7bd3fc7b213$export$2bb74740c4e19def, q as $8a26561d2877236e$export$c24ed0104d07eab9, c as $880e95eb8b93ba9a$export$ecf600387e221c37, $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852, d as $e1995378a142960e$export$18af5c7a9e9b3664, r as $e1995378a142960e$export$e953bb1cd0f19726, e as $e1995378a142960e$export$bf788dd355e3a401, f as $e1995378a142960e$export$fb8073518f34e6ec, g as $7135fc7d473fd974$export$4feb769f8ddf26c5, h as $7135fc7d473fd974$export$d40e14dec8b060a8, n as $7135fc7d473fd974$export$90e00781bc59d8f9 } from "./Collection-
|
|
6
|
-
import { b as $982254629710d113$export$b95089534ab7c1fd, c as $453cc9f0df89c0a5$export$77d5aafae4e095b2, d as $d2f53cda644affe3$export$65d2a03b8800d6e3, g as $431f98aba6844401$export$6615d83f6de245ce, h as $72a5793c14baf454$export$e0e4026c12a8bdbb } from "./Separator-
|
|
7
|
-
import React__default, { useRef, useContext, useEffect, useMemo,
|
|
8
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-
|
|
4
|
+
import { h as $dd149f63282afbbf$export$f6211563215e3b37, d as $2a41e45df1593e64$export$d39e1813b3bdd0e1, c as $96b38030c423d352$export$9fc1347d4195ccb3, g as $9daab02d461809db$export$683480f191c0e3ea, $ as $fc909762b330b746$export$61c6a8c84e605fb6, a as $d3f049242431219c$export$45fda7c47f93fd48, b as $d3f049242431219c$export$6d3443f2c48bfc20, e as $44f671af83e7d9e0$export$2de4954e8ae13b9f } from "./OverlayArrow-BpB9uB_I.js";
|
|
5
|
+
import { j as $cc38e7bd3fc7b213$export$2bb74740c4e19def, q as $8a26561d2877236e$export$c24ed0104d07eab9, c as $880e95eb8b93ba9a$export$ecf600387e221c37, $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852, d as $e1995378a142960e$export$18af5c7a9e9b3664, r as $e1995378a142960e$export$e953bb1cd0f19726, e as $e1995378a142960e$export$bf788dd355e3a401, f as $e1995378a142960e$export$fb8073518f34e6ec, g as $7135fc7d473fd974$export$4feb769f8ddf26c5, h as $7135fc7d473fd974$export$d40e14dec8b060a8, n as $7135fc7d473fd974$export$90e00781bc59d8f9 } from "./Collection-CKsHTyhc.js";
|
|
6
|
+
import { b as $982254629710d113$export$b95089534ab7c1fd, c as $453cc9f0df89c0a5$export$77d5aafae4e095b2, d as $d2f53cda644affe3$export$65d2a03b8800d6e3, g as $431f98aba6844401$export$6615d83f6de245ce, h as $72a5793c14baf454$export$e0e4026c12a8bdbb } from "./Separator-B88tj5YD.js";
|
|
7
|
+
import React__default, { useRef, useContext, useEffect, useMemo, useState, useCallback, forwardRef, createContext } from "react";
|
|
8
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-DRpwWot2.js";
|
|
9
9
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
10
|
-
import { d as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "./usePress-
|
|
11
|
-
import {
|
|
12
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
13
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
14
|
-
import { c as $9bf71ea28793e738$export$1258395f99bf9cbf, b as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-
|
|
15
|
-
import { $ as $dbSRa$reactdom } from "./index-
|
|
10
|
+
import { d as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "./usePress-DjNo5790.js";
|
|
11
|
+
import { I as $e7801be82b4b2a53$export$4debdb1a3f0fa79e, d as $431fbd86ca7dc216$export$b204af158042fbac, c as $c87311424ea30a05$export$fedb369cb70207f1, z as $7215afc6de606d6b$export$de79e2c695e052f3, $ as $6179b936705e76d3$export$ae780daf29e6d456, n as $507fabe10e71c6fb$export$b9b3dfddab17db27, A as $46d819fcbaf35654$export$8f71654801c2f7cd, p as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, M as $507fabe10e71c6fb$export$98e20ec92f614cfe, u as $3ad3f6e1647bc98d$export$80f3e147d781571c, b as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-VO5tcIli.js";
|
|
12
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CGzwx1a0.js";
|
|
13
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BYWrbm1z.js";
|
|
14
|
+
import { c as $9bf71ea28793e738$export$1258395f99bf9cbf, b as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-C-plSxbS.js";
|
|
15
|
+
import { $ as $dbSRa$reactdom } from "./index-CFozsmNS.js";
|
|
16
16
|
import { b as $f39a9eba43920ace$export$b5d7cc18bb8d2b59 } from "./Hidden-rE6uR-lr.js";
|
|
17
|
-
import { a as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-
|
|
18
|
-
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-
|
|
19
|
-
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-
|
|
17
|
+
import { a as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-nMG2uzxS.js";
|
|
18
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-ntF3rFY0.js";
|
|
19
|
+
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-DsKYcRQ_.js";
|
|
20
20
|
function $62d8ded9296f3872$export$cfa2225e87938781(node, checkForOverflow) {
|
|
21
21
|
let scrollableNode = node;
|
|
22
22
|
if ($cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;
|
|
@@ -38,7 +38,7 @@ const $f1ab8c75478c6f73$export$3351871ee4b288b8 = /* @__PURE__ */ React__default
|
|
|
38
38
|
$e7801be82b4b2a53$export$4debdb1a3f0fa79e(prevContext, ref);
|
|
39
39
|
useEffect(() => {
|
|
40
40
|
if (!isRegistered.current) {
|
|
41
|
-
console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.");
|
|
41
|
+
if (process.env.NODE_ENV !== "production") console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.");
|
|
42
42
|
isRegistered.current = true;
|
|
43
43
|
}
|
|
44
44
|
}, []);
|
|
@@ -86,7 +86,7 @@ function $e0b6e0b68ec7f50f$export$872b660ac5a1ff98(props) {
|
|
|
86
86
|
documentObject.removeEventListener("pointerdown", onPointerDown, true);
|
|
87
87
|
documentObject.removeEventListener("pointerup", onPointerUp, true);
|
|
88
88
|
};
|
|
89
|
-
} else {
|
|
89
|
+
} else if (process.env.NODE_ENV === "test") {
|
|
90
90
|
let onMouseUp = (e) => {
|
|
91
91
|
if (state.ignoreEmulatedMouseEvents) state.ignoreEmulatedMouseEvents = false;
|
|
92
92
|
else if (state.isPointerDown && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref)) triggerInteractOutside(e);
|
|
@@ -677,11 +677,6 @@ function $f2f8a6077418541e$export$542a6fd13ac93354(props, state) {
|
|
|
677
677
|
placement
|
|
678
678
|
};
|
|
679
679
|
}
|
|
680
|
-
const $96b38030c423d352$export$60d741e20e0aa309 = /* @__PURE__ */ createContext({});
|
|
681
|
-
function $96b38030c423d352$export$574e9b0fb070c3b0() {
|
|
682
|
-
var _useContext;
|
|
683
|
-
return (_useContext = useContext($96b38030c423d352$export$60d741e20e0aa309)) !== null && _useContext !== void 0 ? _useContext : {};
|
|
684
|
-
}
|
|
685
680
|
const $337b884510726a0d$export$a2200b96afd16271 = /* @__PURE__ */ React__default.createContext(null);
|
|
686
681
|
function $337b884510726a0d$export$c6fdb837b070b4ff(props) {
|
|
687
682
|
let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273();
|
|
@@ -694,7 +689,7 @@ function $337b884510726a0d$export$c6fdb837b070b4ff(props) {
|
|
|
694
689
|
contain,
|
|
695
690
|
setContain
|
|
696
691
|
]);
|
|
697
|
-
let { getContainer } = $96b38030c423d352$export$
|
|
692
|
+
let { getContainer } = $96b38030c423d352$export$9fc1347d4195ccb3();
|
|
698
693
|
if (!props.portalContainer && getContainer) portalContainer = getContainer();
|
|
699
694
|
if (!portalContainer) return null;
|
|
700
695
|
let contents = props.children;
|
|
@@ -940,7 +935,10 @@ function $168583247155ddda$export$dc9c12ed27dd1b49(props, state, ref) {
|
|
|
940
935
|
}
|
|
941
936
|
},
|
|
942
937
|
onPress(e) {
|
|
943
|
-
if (e.pointerType === "touch" && !isDisabled)
|
|
938
|
+
if (e.pointerType === "touch" && !isDisabled) {
|
|
939
|
+
$7215afc6de606d6b$export$de79e2c695e052f3(e.target);
|
|
940
|
+
state.toggle();
|
|
941
|
+
}
|
|
944
942
|
}
|
|
945
943
|
};
|
|
946
944
|
delete triggerProps.onPress;
|
|
@@ -963,7 +961,7 @@ function $168583247155ddda$export$dc9c12ed27dd1b49(props, state, ref) {
|
|
|
963
961
|
const $fc79756100351201$export$6f49b4016bfc8d56 = /* @__PURE__ */ new WeakMap();
|
|
964
962
|
function $d5336fe17ce95402$export$38eaa17faae8f579(props, state, ref) {
|
|
965
963
|
let { shouldFocusWrap = true, onKeyDown, onKeyUp, ...otherProps } = props;
|
|
966
|
-
if (!props["aria-label"] && !props["aria-labelledby"]) console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
964
|
+
if (!props["aria-label"] && !props["aria-labelledby"] && process.env.NODE_ENV !== "production") console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
967
965
|
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
968
966
|
labelable: true
|
|
969
967
|
});
|
|
@@ -1284,10 +1282,10 @@ function $d275435c250248f8$export$85ec83e04c95f50a(options) {
|
|
|
1284
1282
|
}, $d275435c250248f8$var$TIMEOUT_TIME);
|
|
1285
1283
|
};
|
|
1286
1284
|
window.addEventListener("pointermove", onPointerMove);
|
|
1287
|
-
window.addEventListener("pointerdown", onPointerDown, true);
|
|
1285
|
+
if (process.env.NODE_ENV !== "test") window.addEventListener("pointerdown", onPointerDown, true);
|
|
1288
1286
|
return () => {
|
|
1289
1287
|
window.removeEventListener("pointermove", onPointerMove);
|
|
1290
|
-
window.removeEventListener("pointerdown", onPointerDown, true);
|
|
1288
|
+
if (process.env.NODE_ENV !== "test") window.removeEventListener("pointerdown", onPointerDown, true);
|
|
1291
1289
|
clearTimeout(timeout.current);
|
|
1292
1290
|
clearTimeout(autoCloseTimeout.current);
|
|
1293
1291
|
movementsTowardsSubmenuCount.current = $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS;
|
|
@@ -1744,7 +1742,7 @@ function $07b14b47974efb58$var$PopoverInner({ state, isExiting, UNSTABLE_portalC
|
|
|
1744
1742
|
...props,
|
|
1745
1743
|
offset: (_props_offset = props.offset) !== null && _props_offset !== void 0 ? _props_offset : 8,
|
|
1746
1744
|
arrowSize: arrowWidth,
|
|
1747
|
-
// If this is a submenu/subdialog, use the root popover's container
|
|
1745
|
+
// If this is a submenu/subdialog, use the root popover's container
|
|
1748
1746
|
// to detect outside interaction and add aria-hidden.
|
|
1749
1747
|
groupRef: isSubPopover ? groupCtx : containerRef
|
|
1750
1748
|
}, state);
|
|
@@ -2233,7 +2231,7 @@ const $de32f1b87079253c$export$3ddf2d174ce01153 = /* @__PURE__ */ forwardRef(fun
|
|
|
2233
2231
|
let state = useContext($de32f1b87079253c$export$d2f961adcb0afbe);
|
|
2234
2232
|
if (!dialogProps["aria-label"] && !dialogProps["aria-labelledby"]) {
|
|
2235
2233
|
if (props["aria-labelledby"]) dialogProps["aria-labelledby"] = props["aria-labelledby"];
|
|
2236
|
-
else console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.');
|
|
2234
|
+
else if (process.env.NODE_ENV !== "production") console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.');
|
|
2237
2235
|
}
|
|
2238
2236
|
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
2239
2237
|
defaultClassName: "react-aria-Dialog",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-
|
|
2
|
-
import { j as $bdb11010cef70236$export$b4cc09c592e8fdb8, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-
|
|
1
|
+
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-BKH4fVA4.js";
|
|
2
|
+
import { j as $bdb11010cef70236$export$b4cc09c592e8fdb8, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-B94NDG0v.js";
|
|
3
3
|
import { createContext } from "react";
|
|
4
4
|
function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
|
|
5
5
|
let { description, errorMessage, isInvalid, validationState } = props;
|