@eightshift/ui-components 5.0.1 → 5.0.2

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.
Files changed (72) hide show
  1. package/dist/{Button-wERNNG0T.js → Button-BpwTmkAe.js} +4 -4
  2. package/dist/{Collection-CKsHTyhc.js → Collection-n5d0zIgb.js} +66 -31
  3. package/dist/{Color-BhgbJF5x.js → Color-lVhk8V_G.js} +1 -1
  4. package/dist/{ColorSwatch-Bcn6oRSg.js → ColorSwatch-DntWEAC3.js} +4 -4
  5. package/dist/{ComboBox-D1LPUwWP.js → ComboBox-BJpTEATT.js} +31 -22
  6. package/dist/{Dialog-D190gMbE.js → Dialog-O9uw63D7.js} +46 -27
  7. package/dist/{FieldError-DeUh5Wkw.js → FieldError-DHrSdE_Q.js} +2 -2
  8. package/dist/{FocusScope-C-plSxbS.js → FocusScope-BEPI2m7u.js} +2 -2
  9. package/dist/{Group-C5iZpSAM.js → Group-DDPhPPTQ.js} +3 -3
  10. package/dist/{Heading-D-Pboe4p.js → Heading-ba38ScjJ.js} +1 -1
  11. package/dist/{Input--mF4XVE1.js → Input-BmDS8Juy.js} +6 -6
  12. package/dist/{Label-Fp6AwSRn.js → Label-JS_ob-kh.js} +1 -1
  13. package/dist/{ListBox-4oW9kh3R.js → ListBox-BTxlCGcc.js} +97 -15
  14. package/dist/{OverlayArrow-BpB9uB_I.js → OverlayArrow-5aDgmImj.js} +3 -3
  15. package/dist/{Separator-B88tj5YD.js → Separator-CaTBkETC.js} +21 -12
  16. package/dist/{Slider-CyJzC1bp.js → Slider-C-S1oEH9.js} +10 -10
  17. package/dist/{Text-DRpwWot2.js → Text-BuJgePCv.js} +1 -1
  18. package/dist/{VisuallyHidden-DsKYcRQ_.js → VisuallyHidden-BYi0pekx.js} +2 -2
  19. package/dist/assets/style-admin.css +58 -14
  20. package/dist/assets/style-editor.css +58 -14
  21. package/dist/assets/style.css +58 -14
  22. package/dist/assets/wp-font-enhancements.css +1 -1
  23. package/dist/assets/wp-ui-enhancements.css +29 -10
  24. package/dist/components/base-control/base-control.js +1 -1
  25. package/dist/components/button/button.js +5 -5
  26. package/dist/components/checkbox/checkbox.js +14 -11
  27. package/dist/components/color-pickers/color-swatch.js +2 -2
  28. package/dist/components/color-pickers/gradient-editor.js +1 -1
  29. package/dist/components/color-pickers/solid-color-picker.js +16 -16
  30. package/dist/components/draggable/draggable.js +694 -353
  31. package/dist/components/expandable/expandable.js +6 -6
  32. package/dist/components/input-field/input-field.js +7 -7
  33. package/dist/components/link-input/link-input.js +15 -22
  34. package/dist/components/menu/menu.js +2 -2
  35. package/dist/components/modal/modal.js +4 -4
  36. package/dist/components/number-picker/number-picker.js +9 -9
  37. package/dist/components/options-panel/options-panel.js +1 -1
  38. package/dist/components/popover/popover.js +1 -1
  39. package/dist/components/radio/radio.js +16 -13
  40. package/dist/components/responsive/mini-responsive.js +1 -1
  41. package/dist/components/select/v2/async-select.js +8 -8
  42. package/dist/components/select/v2/shared.js +2 -2
  43. package/dist/components/select/v2/single-select.js +34 -21
  44. package/dist/components/slider/column-config-slider.js +2 -2
  45. package/dist/components/slider/slider.js +3 -3
  46. package/dist/components/tabs/tabs.js +16 -17
  47. package/dist/components/toggle/switch.js +6 -6
  48. package/dist/components/toggle/toggle.js +1 -1
  49. package/dist/components/toggle-button/toggle-button.js +6 -6
  50. package/dist/components/tooltip/tooltip.js +3 -3
  51. package/dist/{context-BYWrbm1z.js → context-BbYZoHvX.js} +1 -1
  52. package/dist/icons/icons.js +124 -0
  53. package/dist/{index-wl5606BX.js → index-BljRBEr_.js} +1 -1
  54. package/dist/{textSelection-CCcyjiRP.js → textSelection-8DpK8fJl.js} +1 -1
  55. package/dist/{useButton-BOHxkGQF.js → useButton-Bt3BffJm.js} +3 -3
  56. package/dist/{useEvent-D5o_CqDH.js → useEvent-ICdlokG-.js} +1 -1
  57. package/dist/{useFocusRing-nMG2uzxS.js → useFocusRing-Bv0UJQl8.js} +1 -1
  58. package/dist/{useFormReset-DlmRL87g.js → useFormReset-D2YaWRIA.js} +1 -1
  59. package/dist/{useFormValidation-D0_aaK-e.js → useFormValidation-Dy0PXJg5.js} +2 -2
  60. package/dist/{useHover-VO5tcIli.js → useHover-C2SkI1Fn.js} +7 -2
  61. package/dist/{useLabel-BKH4fVA4.js → useLabel-BPCd5c7-.js} +2 -2
  62. package/dist/{useLabels-ntF3rFY0.js → useLabels-B7-lUnAF.js} +1 -1
  63. package/dist/{useListState-Cq2Nvr-v.js → useListState-DkyH7elT.js} +10 -3
  64. package/dist/{useLocalizedStringFormatter-CGzwx1a0.js → useLocalizedStringFormatter-C9GO0IDB.js} +1 -1
  65. package/dist/{useNumberField-C9dmERhP.js → useNumberField-CU1_u8ze.js} +18 -10
  66. package/dist/{useNumberFormatter-MrRLgvhj.js → useNumberFormatter-CZ9QUnRt.js} +1 -1
  67. package/dist/{usePress-DjNo5790.js → usePress-BrJylgPR.js} +21 -10
  68. package/dist/{useSingleSelectListState--r3AAhRj.js → useSingleSelectListState-C4sorv2p.js} +2 -2
  69. package/dist/{useToggle-CQaXLe-O.js → useToggle-CDa3YAZI.js} +4 -4
  70. package/dist/{useToggleState-C3DLdez5.js → useToggleState-ibcBUHnB.js} +1 -1
  71. package/dist/{utils-B94NDG0v.js → utils-CZt7LCbO.js} +41 -8
  72. package/package.json +24 -24
@@ -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-B94NDG0v.js";
1
+ import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, e as $bdb11010cef70236$export$f680877a34711e37, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-CZt7LCbO.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-BOHxkGQF.js";
6
- import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-nMG2uzxS.js";
7
- import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-VO5tcIli.js";
5
+ import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "./useButton-Bt3BffJm.js";
6
+ import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-Bv0UJQl8.js";
7
+ import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-C2SkI1Fn.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
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
- 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-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";
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-C2SkI1Fn.js";
4
+ import React__default, { useRef, useState, useMemo, cloneElement, forwardRef, useContext, createContext, useCallback, useEffect, isValidElement } 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-CZt7LCbO.js";
6
+ import { $ as $f6c31cce2adf654f$export$45712eceda6fad21, b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, c as $ea8dcbcb9ea1b556$export$95185d699e05d4d7 } from "./usePress-BrJylgPR.js";
7
+ import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-ICdlokG-.js";
8
+ import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-BEPI2m7u.js";
9
+ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BbYZoHvX.js";
10
10
  function $ca9b37712f007381$export$72ef708ab07251f1(effect, dependencies) {
11
11
  const isInitialMount = useRef(true);
12
12
  const lastDeps = useRef(null);
@@ -415,7 +415,10 @@ class $681cc3c98f569e39$export$410b0c854570d131 {
415
415
  return ((_this_parentNode = this.parentNode) === null || _this_parentNode === void 0 ? void 0 : _this_parentNode.isConnected) || false;
416
416
  }
417
417
  invalidateChildIndices(child) {
418
- if (this._minInvalidChildIndex == null || child.index < this._minInvalidChildIndex.index) this._minInvalidChildIndex = child;
418
+ if (this._minInvalidChildIndex == null || !this._minInvalidChildIndex.isConnected || child.index < this._minInvalidChildIndex.index) {
419
+ this._minInvalidChildIndex = child;
420
+ this.ownerDocument.markDirty(this);
421
+ }
419
422
  }
420
423
  updateChildIndices() {
421
424
  let node = this._minInvalidChildIndex;
@@ -440,23 +443,24 @@ class $681cc3c98f569e39$export$410b0c854570d131 {
440
443
  child.nextSibling = null;
441
444
  this.lastChild = child;
442
445
  this.ownerDocument.markDirty(this);
443
- this.ownerDocument.queueUpdate();
446
+ if (this.isConnected) this.ownerDocument.queueUpdate();
444
447
  }
445
448
  insertBefore(newNode, referenceNode) {
446
449
  if (referenceNode == null) return this.appendChild(newNode);
447
450
  if (newNode.parentNode) newNode.parentNode.removeChild(newNode);
448
451
  newNode.nextSibling = referenceNode;
449
452
  newNode.previousSibling = referenceNode.previousSibling;
450
- newNode.index = referenceNode.index;
453
+ newNode.index = referenceNode.index - 1;
451
454
  if (this.firstChild === referenceNode) this.firstChild = newNode;
452
455
  else if (referenceNode.previousSibling) referenceNode.previousSibling.nextSibling = newNode;
453
456
  referenceNode.previousSibling = newNode;
454
457
  newNode.parentNode = referenceNode.parentNode;
455
- this.invalidateChildIndices(referenceNode);
456
- this.ownerDocument.queueUpdate();
458
+ this.invalidateChildIndices(newNode);
459
+ if (this.isConnected) this.ownerDocument.queueUpdate();
457
460
  }
458
461
  removeChild(child) {
459
462
  if (child.parentNode !== this || !this.ownerDocument.isMounted) return;
463
+ if (this._minInvalidChildIndex === child) this._minInvalidChildIndex = null;
460
464
  if (child.nextSibling) {
461
465
  this.invalidateChildIndices(child.nextSibling);
462
466
  child.nextSibling.previousSibling = child.previousSibling;
@@ -469,7 +473,7 @@ class $681cc3c98f569e39$export$410b0c854570d131 {
469
473
  child.previousSibling = null;
470
474
  child.index = 0;
471
475
  this.ownerDocument.markDirty(child);
472
- this.ownerDocument.queueUpdate();
476
+ if (this.isConnected) this.ownerDocument.queueUpdate();
473
477
  }
474
478
  addEventListener() {
475
479
  }
@@ -569,7 +573,7 @@ class $681cc3c98f569e39$export$dc064fe9e59310fd extends $681cc3c98f569e39$export
569
573
  }
570
574
  if (props.colSpan != null) node.colSpan = props.colSpan;
571
575
  this.hasSetProps = true;
572
- this.ownerDocument.queueUpdate();
576
+ if (this.isConnected) this.ownerDocument.queueUpdate();
573
577
  }
574
578
  get style() {
575
579
  let element = this;
@@ -1433,6 +1437,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
1433
1437
  }
1434
1438
  });
1435
1439
  let lastFocusedKey = useRef(manager.focusedKey);
1440
+ let raf = useRef(null);
1436
1441
  useEffect(() => {
1437
1442
  if (manager.isFocused && manager.focusedKey != null && (manager.focusedKey !== lastFocusedKey.current || didAutoFocusRef.current) && scrollRef.current && ref.current) {
1438
1443
  let modality = $507fabe10e71c6fb$export$630ff653c5ada6a9();
@@ -1440,9 +1445,14 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
1440
1445
  if (!(element instanceof HTMLElement))
1441
1446
  return;
1442
1447
  if (modality === "keyboard" || didAutoFocusRef.current) {
1443
- $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollRef.current, element);
1444
- if (modality !== "virtual") $2f04cbc44ee30ce0$export$c826860796309d1b(element, {
1445
- containingElement: ref.current
1448
+ if (raf.current) cancelAnimationFrame(raf.current);
1449
+ raf.current = requestAnimationFrame(() => {
1450
+ if (scrollRef.current) {
1451
+ $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollRef.current, element);
1452
+ if (modality !== "virtual") $2f04cbc44ee30ce0$export$c826860796309d1b(element, {
1453
+ containingElement: ref.current
1454
+ });
1455
+ }
1446
1456
  });
1447
1457
  }
1448
1458
  }
@@ -1450,6 +1460,11 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
1450
1460
  lastFocusedKey.current = manager.focusedKey;
1451
1461
  didAutoFocusRef.current = false;
1452
1462
  });
1463
+ useEffect(() => {
1464
+ return () => {
1465
+ if (raf.current) cancelAnimationFrame(raf.current);
1466
+ };
1467
+ }, []);
1453
1468
  $e9faafb641e167db$export$90fc3a17d93f704c(ref, "react-aria-focus-scope-restore", (e) => {
1454
1469
  e.preventDefault();
1455
1470
  manager.setFocused(true);
@@ -1628,7 +1643,7 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
1628
1643
  return {
1629
1644
  itemProps: $3ef42575df84b30b$export$9d1611c77c2fe928(
1630
1645
  itemProps,
1631
- allowsSelection || hasPrimaryAction || shouldUseVirtualFocus ? pressProps : {},
1646
+ allowsSelection || hasPrimaryAction || shouldUseVirtualFocus && !isDisabled ? pressProps : {},
1632
1647
  longPressEnabled ? longPressProps : {},
1633
1648
  {
1634
1649
  onDoubleClick,
@@ -2315,22 +2330,42 @@ function $7135fc7d473fd974$var$useCollectionRender(collection, parent, renderDro
2315
2330
  renderDropIndicator
2316
2331
  ],
2317
2332
  children(node) {
2318
- var _collection_getItem;
2319
2333
  let rendered = node.render(node);
2320
2334
  if (!renderDropIndicator || node.type !== "item") return rendered;
2321
- let key = node.key;
2322
- let keyAfter = collection.getKeyAfter(key);
2323
2335
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, renderDropIndicator({
2324
2336
  type: "item",
2325
- key,
2337
+ key: node.key,
2326
2338
  dropPosition: "before"
2327
- }), rendered, (keyAfter == null || ((_collection_getItem = collection.getItem(keyAfter)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.type) !== "item") && renderDropIndicator({
2339
+ }), rendered, $7135fc7d473fd974$export$2dbbd341daed716d(collection, node, renderDropIndicator));
2340
+ }
2341
+ });
2342
+ }
2343
+ function $7135fc7d473fd974$export$2dbbd341daed716d(collection, node, renderDropIndicator) {
2344
+ let key = node.key;
2345
+ let keyAfter = collection.getKeyAfter(key);
2346
+ let nextItemInFlattenedCollection = keyAfter != null ? collection.getItem(keyAfter) : null;
2347
+ while (nextItemInFlattenedCollection != null && nextItemInFlattenedCollection.type !== "item") {
2348
+ keyAfter = collection.getKeyAfter(nextItemInFlattenedCollection.key);
2349
+ nextItemInFlattenedCollection = keyAfter != null ? collection.getItem(keyAfter) : null;
2350
+ }
2351
+ let nextItemInSameLevel = node.nextKey != null ? collection.getItem(node.nextKey) : null;
2352
+ while (nextItemInSameLevel != null && nextItemInSameLevel.type !== "item") nextItemInSameLevel = nextItemInSameLevel.nextKey != null ? collection.getItem(nextItemInSameLevel.nextKey) : null;
2353
+ let afterIndicators = [];
2354
+ if (nextItemInSameLevel == null) {
2355
+ let current = node;
2356
+ while (current && (!nextItemInFlattenedCollection || current.parentKey !== nextItemInFlattenedCollection.parentKey && nextItemInFlattenedCollection.level < current.level)) {
2357
+ let indicator = renderDropIndicator({
2328
2358
  type: "item",
2329
- key,
2359
+ key: current.key,
2330
2360
  dropPosition: "after"
2361
+ });
2362
+ if (/* @__PURE__ */ isValidElement(indicator)) afterIndicators.push(/* @__PURE__ */ cloneElement(indicator, {
2363
+ key: `${current.key}-after`
2331
2364
  }));
2365
+ current = current.parentKey != null ? collection.getItem(current.parentKey) : null;
2332
2366
  }
2333
- });
2367
+ }
2368
+ return afterIndicators;
2334
2369
  }
2335
2370
  const $7135fc7d473fd974$export$4feb769f8ddf26c5 = /* @__PURE__ */ createContext($7135fc7d473fd974$export$a164736487e3f0ae);
2336
2371
  function $7135fc7d473fd974$export$90e00781bc59d8f9(focusedKey) {
@@ -2350,12 +2385,12 @@ export {
2350
2385
  $e1995378a142960e$export$fb8073518f34e6ec as f,
2351
2386
  $7135fc7d473fd974$export$4feb769f8ddf26c5 as g,
2352
2387
  $7135fc7d473fd974$export$d40e14dec8b060a8 as h,
2353
- $feb5ffebff200149$export$c3d8340acf92597f as i,
2354
- $cc38e7bd3fc7b213$export$2bb74740c4e19def as j,
2355
- $ae20dd8cbca75726$export$d6daf82dcd84e87c as k,
2356
- $c5a24bc478652b5f$export$1005530eda016c13 as l,
2357
- $7135fc7d473fd974$export$a164736487e3f0ae as m,
2358
- $7135fc7d473fd974$export$90e00781bc59d8f9 as n,
2388
+ $ae20dd8cbca75726$export$d6daf82dcd84e87c as i,
2389
+ $7135fc7d473fd974$export$a164736487e3f0ae as j,
2390
+ $7135fc7d473fd974$export$90e00781bc59d8f9 as k,
2391
+ $cc38e7bd3fc7b213$export$2bb74740c4e19def as l,
2392
+ $feb5ffebff200149$export$c3d8340acf92597f as m,
2393
+ $c5a24bc478652b5f$export$1005530eda016c13 as n,
2359
2394
  $fb3050f43d946246$export$e32c88dfddc6e1d8 as o,
2360
2395
  $55f9b1ae81f22853$export$2b35b76d2e30e129 as p,
2361
2396
  $8a26561d2877236e$export$c24ed0104d07eab9 as q,
@@ -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-CGzwx1a0.js";
2
+ import { a as $5b160d28a433310d$export$c17fa47878dc55b6, b as $6db58dc88e78b024$export$2f817fcdc4b89ae0 } from "./useLocalizedStringFormatter-C9GO0IDB.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-B94NDG0v.js";
1
+ import { e as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./utils-CZt7LCbO.js";
2
2
  import React__default, { useMemo, forwardRef, createContext } from "react";
3
- import { $ as $799cddbef784668f$export$6e865ea70d7724f, a as $3493a52097159720$exports } from "./Color-BhgbJF5x.js";
3
+ import { $ as $799cddbef784668f$export$6e865ea70d7724f, a as $3493a52097159720$exports } from "./Color-lVhk8V_G.js";
4
4
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
5
- import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BYWrbm1z.js";
6
- import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CGzwx1a0.js";
5
+ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BbYZoHvX.js";
6
+ import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-C9GO0IDB.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-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";
2
+ import { b as $319e236875307eab$export$a9b970dcc4ae71a9, a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-BpwTmkAe.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-CZt7LCbO.js";
4
+ import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "./FieldError-DHrSdE_Q.js";
5
5
  import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "./Form-Cq3fu75_.js";
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";
6
+ import { a as $a049562f99e7db0e$export$f9c6924e160136d1 } from "./Group-DDPhPPTQ.js";
7
+ import { b as $2d73ec29415bd339$export$712718f7aec83d5, a as $3985021b0ad6602f$export$37fb8590cf2c088c } from "./Input-BmDS8Juy.js";
8
+ import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-JS_ob-kh.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-BTxlCGcc.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-O9uw63D7.js";
11
+ import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-BuJgePCv.js";
12
+ import { i as $ae20dd8cbca75726$export$d6daf82dcd84e87c, n as $c5a24bc478652b5f$export$1005530eda016c13, p as $55f9b1ae81f22853$export$2b35b76d2e30e129, e as $e1995378a142960e$export$bf788dd355e3a401 } from "./Collection-n5d0zIgb.js";
13
13
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
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";
14
+ import { $ as $fc909762b330b746$export$61c6a8c84e605fb6, g as $9daab02d461809db$export$683480f191c0e3ea } from "./OverlayArrow-5aDgmImj.js";
15
+ import { f as $325a3faab7a68acd$export$a16aca283550c30d, g as $2a25aae57d74318e$export$a05409b8bb224a5a, d as $453cc9f0df89c0a5$export$77d5aafae4e095b2 } from "./Separator-CaTBkETC.js";
16
+ import { b as $e5be200c675c3b3a$export$a763b9476acd3eb, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "./useFormValidation-Dy0PXJg5.js";
17
+ import { $ as $a0d645289fe9b86b$export$e7f05e985daf4b5f } from "./useSingleSelectListState-C4sorv2p.js";
18
+ import { c as $a02d57049d202695$export$d085fb9e920b5ca7 } from "./useListState-DkyH7elT.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-C2SkI1Fn.js";
20
+ import { b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572 } from "./usePress-BrJylgPR.js";
21
+ import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-B7-lUnAF.js";
22
+ import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-C9GO0IDB.js";
23
23
  function $4f58c5f72bcf79f7$export$496315a1608d9602(effect, dependencies) {
24
24
  const isInitialMount = useRef(true);
25
25
  const lastDeps = useRef(null);
@@ -1031,7 +1031,7 @@ function $c350ade66beef0af$export$8c18d1b4f7232bbf(props, state) {
1031
1031
  spellCheck: "false"
1032
1032
  }),
1033
1033
  listBoxProps: $3ef42575df84b30b$export$9d1611c77c2fe928(menuProps, listBoxProps, {
1034
- autoFocus: state.focusStrategy,
1034
+ autoFocus: state.focusStrategy || true,
1035
1035
  shouldUseVirtualFocus: true,
1036
1036
  shouldSelectOnPressUp: true,
1037
1037
  shouldFocusOnHover: true,
@@ -1624,7 +1624,8 @@ function $f86e6c1ec7da6ebb$export$bc3384a35de93d66(options) {
1624
1624
  sortDescriptor: (_action_sortDescriptor = action.sortDescriptor) !== null && _action_sortDescriptor !== void 0 ? _action_sortDescriptor : data.sortDescriptor,
1625
1625
  signal: abortController.signal,
1626
1626
  cursor: action.type === "loadingMore" ? data.cursor : void 0,
1627
- filterText: previousFilterText
1627
+ filterText: previousFilterText,
1628
+ loadingState: data.state
1628
1629
  });
1629
1630
  var _response_filterText;
1630
1631
  let filterText = (_response_filterText = response.filterText) !== null && _response_filterText !== void 0 ? _response_filterText : previousFilterText;
@@ -1734,6 +1735,13 @@ const $d01f2c01039c0eec$export$72b9695b8216309a = /* @__PURE__ */ forwardRef(fun
1734
1735
  comboBoxRef: ref
1735
1736
  }));
1736
1737
  });
1738
+ const $d01f2c01039c0eec$var$CLEAR_CONTEXTS = [
1739
+ $01b77f81d0f07f68$export$75b6ee27786ba447,
1740
+ $d2b4bc8c273e7be6$export$24d547caef80ccd1,
1741
+ $3985021b0ad6602f$export$37fb8590cf2c088c,
1742
+ $a049562f99e7db0e$export$f9c6924e160136d1,
1743
+ $514c0188e459b4c0$export$9afb8bc826b033ea
1744
+ ];
1737
1745
  function $d01f2c01039c0eec$var$ComboBoxInner({ props, collection, comboBoxRef: ref }) {
1738
1746
  let { name, formValue = "key", allowsCustomValue } = props;
1739
1747
  if (allowsCustomValue) formValue = "text";
@@ -1848,7 +1856,8 @@ function $d01f2c01039c0eec$var$ComboBoxInner({ props, collection, comboBoxRef: r
1848
1856
  trigger: "ComboBox",
1849
1857
  style: {
1850
1858
  "--trigger-width": menuWidth
1851
- }
1859
+ },
1860
+ clearContexts: $d01f2c01039c0eec$var$CLEAR_CONTEXTS
1852
1861
  }
1853
1862
  ],
1854
1863
  [
@@ -1,28 +1,22 @@
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";
1
+ import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-BpwTmkAe.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-CZt7LCbO.js";
3
3
  import { $ as $4e85f108e88277b8$export$d688439359537581 } from "./RSPContexts-2lR5GG9p.js";
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";
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-5aDgmImj.js";
5
+ import { 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, k as $7135fc7d473fd974$export$90e00781bc59d8f9 } from "./Collection-n5d0zIgb.js";
6
+ import { b as $62d8ded9296f3872$export$cfa2225e87938781, c as $982254629710d113$export$b95089534ab7c1fd, d as $453cc9f0df89c0a5$export$77d5aafae4e095b2, e as $d2f53cda644affe3$export$65d2a03b8800d6e3, h as $431f98aba6844401$export$6615d83f6de245ce, i as $72a5793c14baf454$export$e0e4026c12a8bdbb } from "./Separator-CaTBkETC.js";
7
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";
8
+ import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-BuJgePCv.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-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";
10
+ import { d as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "./usePress-BrJylgPR.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-C2SkI1Fn.js";
12
+ import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-C9GO0IDB.js";
13
+ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BbYZoHvX.js";
14
+ import { c as $9bf71ea28793e738$export$1258395f99bf9cbf, b as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-BEPI2m7u.js";
15
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-nMG2uzxS.js";
18
- import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-ntF3rFY0.js";
19
- import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-DsKYcRQ_.js";
20
- function $62d8ded9296f3872$export$cfa2225e87938781(node, checkForOverflow) {
21
- let scrollableNode = node;
22
- if ($cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;
23
- while (scrollableNode && !$cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;
24
- return scrollableNode || document.scrollingElement || document.documentElement;
25
- }
17
+ import { a as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-Bv0UJQl8.js";
18
+ import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-B7-lUnAF.js";
19
+ import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-BYi0pekx.js";
26
20
  const $f1ab8c75478c6f73$export$3351871ee4b288b8 = /* @__PURE__ */ React__default.forwardRef(({ children, ...props }, ref) => {
27
21
  let isRegistered = useRef(false);
28
22
  let prevContext = useContext($ae1eeba8b9eafd08$export$5165eccb35aaadb5);
@@ -76,15 +70,15 @@ function $e0b6e0b68ec7f50f$export$872b660ac5a1ff98(props) {
76
70
  const element = ref.current;
77
71
  const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
78
72
  if (typeof PointerEvent !== "undefined") {
79
- let onPointerUp = (e) => {
73
+ let onClick = (e) => {
80
74
  if (state.isPointerDown && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref)) triggerInteractOutside(e);
81
75
  state.isPointerDown = false;
82
76
  };
83
77
  documentObject.addEventListener("pointerdown", onPointerDown, true);
84
- documentObject.addEventListener("pointerup", onPointerUp, true);
78
+ documentObject.addEventListener("click", onClick, true);
85
79
  return () => {
86
80
  documentObject.removeEventListener("pointerdown", onPointerDown, true);
87
- documentObject.removeEventListener("pointerup", onPointerUp, true);
81
+ documentObject.removeEventListener("click", onClick, true);
88
82
  };
89
83
  } else if (process.env.NODE_ENV === "test") {
90
84
  let onMouseUp = (e) => {
@@ -246,7 +240,9 @@ function $49c51c25361d4cd2$export$ee0f7cc6afcd1c18(options = {}) {
246
240
  ]);
247
241
  }
248
242
  function $49c51c25361d4cd2$var$preventScrollStandard() {
249
- return $ff5963eb1fccf552$export$e08e3b67e392101e($49c51c25361d4cd2$var$setStyle(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), $49c51c25361d4cd2$var$setStyle(document.documentElement, "overflow", "hidden"));
243
+ let scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
244
+ return $ff5963eb1fccf552$export$e08e3b67e392101e(scrollbarWidth > 0 && // Use scrollbar-gutter when supported because it also works for fixed positioned elements.
245
+ ("scrollbarGutter" in document.documentElement.style ? $49c51c25361d4cd2$var$setStyle(document.documentElement, "scrollbarGutter", "stable") : $49c51c25361d4cd2$var$setStyle(document.documentElement, "paddingRight", `${scrollbarWidth}px`)), $49c51c25361d4cd2$var$setStyle(document.documentElement, "overflow", "hidden"));
250
246
  }
251
247
  function $49c51c25361d4cd2$var$preventScrollMobileSafari() {
252
248
  let scrollable;
@@ -1725,7 +1721,7 @@ const $07b14b47974efb58$export$5b6b19405a83ff9d = /* @__PURE__ */ forwardRef(fun
1725
1721
  dir: direction
1726
1722
  });
1727
1723
  });
1728
- function $07b14b47974efb58$var$PopoverInner({ state, isExiting, UNSTABLE_portalContainer, ...props }) {
1724
+ function $07b14b47974efb58$var$PopoverInner({ state, isExiting, UNSTABLE_portalContainer, clearContexts, ...props }) {
1729
1725
  let arrowRef = useRef(null);
1730
1726
  let [arrowWidth, setArrowWidth] = useState(0);
1731
1727
  let containerRef = useRef(null);
@@ -1772,6 +1768,16 @@ function $07b14b47974efb58$var$PopoverInner({ state, isExiting, UNSTABLE_portalC
1772
1768
  isDialog,
1773
1769
  ref
1774
1770
  ]);
1771
+ let children = useMemo(() => {
1772
+ let children2 = renderProps.children;
1773
+ if (clearContexts) for (let Context of clearContexts) children2 = /* @__PURE__ */ React__default.createElement(Context.Provider, {
1774
+ value: null
1775
+ }, children2);
1776
+ return children2;
1777
+ }, [
1778
+ renderProps.children,
1779
+ clearContexts
1780
+ ]);
1775
1781
  let style = {
1776
1782
  ...popoverProps.style,
1777
1783
  ...renderProps.style
@@ -1799,7 +1805,7 @@ function $07b14b47974efb58$var$PopoverInner({ state, isExiting, UNSTABLE_portalC
1799
1805
  placement,
1800
1806
  ref: arrowRef
1801
1807
  }
1802
- }, renderProps.children), /* @__PURE__ */ React__default.createElement($86ea4cb521eb2e37$export$2317d149ed6f78c4, {
1808
+ }, children), /* @__PURE__ */ React__default.createElement($86ea4cb521eb2e37$export$2317d149ed6f78c4, {
1803
1809
  onDismiss: state.close
1804
1810
  }));
1805
1811
  if (!isSubPopover) return /* @__PURE__ */ React__default.createElement($337b884510726a0d$export$c6fdb837b070b4ff, {
@@ -2188,6 +2194,16 @@ function $de32f1b87079253c$export$2e1e1122cf0cba88(props) {
2188
2194
  let { triggerProps, overlayProps } = $628037886ba31236$export$f9d5c8beee7d008d({
2189
2195
  type: "dialog"
2190
2196
  }, state, buttonRef);
2197
+ let [buttonWidth, setButtonWidth] = useState(null);
2198
+ let onResize = useCallback(() => {
2199
+ if (buttonRef.current) setButtonWidth(buttonRef.current.offsetWidth + "px");
2200
+ }, [
2201
+ buttonRef
2202
+ ]);
2203
+ $9daab02d461809db$export$683480f191c0e3ea({
2204
+ ref: buttonRef,
2205
+ onResize
2206
+ });
2191
2207
  triggerProps.id = $bdb11010cef70236$export$f680877a34711e37();
2192
2208
  overlayProps["aria-labelledby"] = triggerProps.id;
2193
2209
  return /* @__PURE__ */ React__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
@@ -2209,7 +2225,10 @@ function $de32f1b87079253c$export$2e1e1122cf0cba88(props) {
2209
2225
  {
2210
2226
  trigger: "DialogTrigger",
2211
2227
  triggerRef: buttonRef,
2212
- "aria-labelledby": overlayProps["aria-labelledby"]
2228
+ "aria-labelledby": overlayProps["aria-labelledby"],
2229
+ style: {
2230
+ "--trigger-width": buttonWidth
2231
+ }
2213
2232
  }
2214
2233
  ]
2215
2234
  ]
@@ -1,5 +1,5 @@
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";
1
+ import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-BPCd5c7-.js";
2
+ import { j as $bdb11010cef70236$export$b4cc09c592e8fdb8, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-CZt7LCbO.js";
3
3
  import { createContext } from "react";
4
4
  function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
5
5
  let { description, errorMessage, isInvalid, validationState } = props;
@@ -1,5 +1,5 @@
1
- import { r as $f4e2df6bd15f8569$export$98658e8c59125e6a, k as $d4ee10de306f2510$export$4282f70798064fe0, f as $431fbd86ca7dc216$export$f21a1ffae260145a, i as $d4ee10de306f2510$export$cd4e5573fbe2b576, d as $431fbd86ca7dc216$export$b204af158042fbac, s as $b4b717babfbb907b$export$bebd5a1431fec25d, t as $b4b717babfbb907b$export$4c063cf1350e6fed, u as $3ad3f6e1647bc98d$export$80f3e147d781571c, j as $d4ee10de306f2510$export$e58f029f0fbfdb29, v as $c87311424ea30a05$export$a11b0059900ceec8, w as $c87311424ea30a05$export$6446a186d09e379e, x as $507fabe10e71c6fb$export$630ff653c5ada6a9 } from "./useHover-VO5tcIli.js";
2
- import { k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./utils-B94NDG0v.js";
1
+ import { r as $f4e2df6bd15f8569$export$98658e8c59125e6a, k as $d4ee10de306f2510$export$4282f70798064fe0, f as $431fbd86ca7dc216$export$f21a1ffae260145a, i as $d4ee10de306f2510$export$cd4e5573fbe2b576, d as $431fbd86ca7dc216$export$b204af158042fbac, s as $b4b717babfbb907b$export$bebd5a1431fec25d, t as $b4b717babfbb907b$export$4c063cf1350e6fed, u as $3ad3f6e1647bc98d$export$80f3e147d781571c, j as $d4ee10de306f2510$export$e58f029f0fbfdb29, v as $c87311424ea30a05$export$a11b0059900ceec8, w as $c87311424ea30a05$export$6446a186d09e379e, x as $507fabe10e71c6fb$export$630ff653c5ada6a9 } from "./useHover-C2SkI1Fn.js";
2
+ import { k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./utils-CZt7LCbO.js";
3
3
  import React__default, { useRef, useContext, useMemo, useEffect } from "react";
4
4
  class $dfc540311bf7f109$export$63eb3ababa9c55c4 {
5
5
  get currentNode() {
@@ -1,7 +1,7 @@
1
- import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-B94NDG0v.js";
1
+ import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-CZt7LCbO.js";
2
2
  import React__default, { forwardRef, createContext } from "react";
3
- import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-VO5tcIli.js";
4
- import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-nMG2uzxS.js";
3
+ import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-C2SkI1Fn.js";
4
+ import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-Bv0UJQl8.js";
5
5
  const $a049562f99e7db0e$export$f9c6924e160136d1 = /* @__PURE__ */ createContext({});
6
6
  const $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 = /* @__PURE__ */ forwardRef(function Group(props, ref) {
7
7
  [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $a049562f99e7db0e$export$f9c6924e160136d1);
@@ -1,5 +1,5 @@
1
1
  import { $ as $4e85f108e88277b8$export$d688439359537581 } from "./RSPContexts-2lR5GG9p.js";
2
- import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-B94NDG0v.js";
2
+ import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-CZt7LCbO.js";
3
3
  import React__default, { forwardRef } from "react";
4
4
  const $5cb03073d3f54797$export$a8a3e93435678ff9 = /* @__PURE__ */ forwardRef(function Heading(props, ref) {
5
5
  [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e85f108e88277b8$export$d688439359537581);
@@ -1,12 +1,12 @@
1
- import { b as $458b0a5536c1a7cf$export$40bfa8c7b0832715, a as $f645667febf57a63$export$4c014de7c8940b4c, f as $431fbd86ca7dc216$export$f21a1ffae260145a, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-VO5tcIli.js";
2
- import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./utils-B94NDG0v.js";
1
+ import { b as $458b0a5536c1a7cf$export$40bfa8c7b0832715, a as $f645667febf57a63$export$4c014de7c8940b4c, f as $431fbd86ca7dc216$export$f21a1ffae260145a, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-C2SkI1Fn.js";
2
+ import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./utils-CZt7LCbO.js";
3
3
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
4
- import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-DlmRL87g.js";
4
+ import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-D2YaWRIA.js";
5
5
  import React__default, { useEffect, createContext } from "react";
6
- import { a as $2baaea4c71418dea$export$294aa081a6c6f55d } from "./FieldError-DeUh5Wkw.js";
7
- import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidation-D0_aaK-e.js";
6
+ import { a as $2baaea4c71418dea$export$294aa081a6c6f55d } from "./FieldError-DHrSdE_Q.js";
7
+ import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidation-Dy0PXJg5.js";
8
8
  import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-rE6uR-lr.js";
9
- import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-nMG2uzxS.js";
9
+ import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-Bv0UJQl8.js";
10
10
  function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
11
11
  let { inputElementType = "input", isDisabled = false, isRequired = false, isReadOnly = false, type = "text", validationBehavior = "aria" } = props;
12
12
  let [value, setValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.value, props.defaultValue || "", props.onChange);
@@ -1,4 +1,4 @@
1
- import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-B94NDG0v.js";
1
+ import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-CZt7LCbO.js";
2
2
  import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-rE6uR-lr.js";
3
3
  import React__default, { createContext } from "react";
4
4
  const $01b77f81d0f07f68$export$75b6ee27786ba447 = /* @__PURE__ */ createContext({});