@eightshift/ui-components 5.2.1 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/{Button-RTwMSBs-.js → Button-npzfSoYo.js} +3 -3
  2. package/dist/{Dialog-Xf6AsnV-.js → Dialog-CQ8H6Noi.js} +77 -50
  3. package/dist/{FocusScope-BnwM-e8R.js → FocusScope-DJApHXhY.js} +1 -1
  4. package/dist/Form-Cq3fu75_.js +5 -0
  5. package/dist/{Group-C4cXobNT.js → Input-ChJaTNa5.js} +39 -39
  6. package/dist/{List-CwJTORxj.js → List-BiAnh5G5.js} +5 -5
  7. package/dist/{ListBox-BeC97FZ4.js → ListBox-D0Stb4wr.js} +13 -23
  8. package/dist/{OverlayArrow-EZ0v_ljk.js → OverlayArrow-DivvkAVb.js} +46 -25
  9. package/dist/{Separator-Fl7qSeN-.js → SearchField-jVsbJe1O.js} +151 -475
  10. package/dist/{Select-DEQf8ZWI.js → Select-ciHB1pub.js} +12 -11
  11. package/dist/{Select-ef7c0426.esm-D6WOCaYm.js → Select-ef7c0426.esm-CmTkSxDx.js} +3 -3
  12. package/dist/{Collection-D_KhdLDC.js → SelectionManager-CabSdgMq.js} +1801 -1777
  13. package/dist/Separator-BPvqJny4.js +344 -0
  14. package/dist/{Slider-BQFSEhvk.js → Slider-ChP04COa.js} +4 -4
  15. package/dist/{VisuallyHidden-D9s7FTtC.js → VisuallyHidden-X6SggVVO.js} +1 -1
  16. package/dist/assets/style-admin.css +315 -79
  17. package/dist/assets/style-editor.css +315 -79
  18. package/dist/assets/style.css +315 -79
  19. package/dist/assets/wp-font-enhancements.css +1 -1
  20. package/dist/assets/wp-ui-enhancements.css +5 -14
  21. package/dist/components/animated-visibility/animated-visibility.js +16 -16
  22. package/dist/components/button/button.js +7 -23
  23. package/dist/components/checkbox/checkbox.js +11 -10
  24. package/dist/components/color-pickers/color-picker.js +5 -4
  25. package/dist/components/color-pickers/color-swatch.js +1 -1
  26. package/dist/components/color-pickers/gradient-editor.js +7 -7
  27. package/dist/components/color-pickers/solid-color-picker.js +8 -8
  28. package/dist/components/component-toggle/component-toggle.js +1 -1
  29. package/dist/components/draggable/draggable-handle.js +1 -1
  30. package/dist/components/draggable/draggable.js +34 -17
  31. package/dist/components/draggable-list/draggable-list-item.js +1 -1
  32. package/dist/components/draggable-list/draggable-list.js +6 -4
  33. package/dist/components/expandable/expandable.js +5 -5
  34. package/dist/components/index.js +2 -1
  35. package/dist/components/input-field/input-field.js +139 -3
  36. package/dist/components/item-collection/item-collection.js +1 -1
  37. package/dist/components/link-input/link-input.js +16 -15
  38. package/dist/components/matrix-align/matrix-align.js +1 -1
  39. package/dist/components/menu/menu.js +94 -24
  40. package/dist/components/modal/modal.js +4 -4
  41. package/dist/components/notice/notice.js +6 -5
  42. package/dist/components/number-picker/number-picker.js +5 -5
  43. package/dist/components/option-select/option-select.js +1 -1
  44. package/dist/components/placeholders/file-placeholder.js +1 -1
  45. package/dist/components/popover/popover.js +7 -21
  46. package/dist/components/radio/radio.js +7 -6
  47. package/dist/components/repeater/repeater-item.js +1 -1
  48. package/dist/components/repeater/repeater.js +2 -2
  49. package/dist/components/responsive/mini-responsive.js +1 -1
  50. package/dist/components/responsive/responsive-legacy.js +1 -1
  51. package/dist/components/responsive/responsive.js +21 -20
  52. package/dist/components/responsive-preview/responsive-preview.js +1 -1
  53. package/dist/components/rich-label/rich-label.js +28 -15
  54. package/dist/components/select/async-multi-select.js +3 -3
  55. package/dist/components/select/async-single-select.js +2 -2
  56. package/dist/components/select/custom-select-default-components.js +1 -1
  57. package/dist/components/select/multi-select-components.js +1 -1
  58. package/dist/components/select/multi-select.js +3 -3
  59. package/dist/components/select/react-select-component-wrappers.js +1 -1
  60. package/dist/components/select/single-select.js +2 -2
  61. package/dist/components/select/styles.js +1 -1
  62. package/dist/components/select/v2/async-multi-select.js +9 -9
  63. package/dist/components/select/v2/async-select.js +9 -9
  64. package/dist/components/select/v2/multi-select.js +8 -8
  65. package/dist/components/select/v2/shared.js +1 -1
  66. package/dist/components/select/v2/single-select.js +8 -8
  67. package/dist/components/slider/column-config-slider.js +2 -2
  68. package/dist/components/slider/slider.js +1 -1
  69. package/dist/components/slider/utils.js +1 -1
  70. package/dist/components/tabs/tabs.js +13 -9
  71. package/dist/components/toggle/switch.js +5 -5
  72. package/dist/components/toggle-button/toggle-button.js +7 -7
  73. package/dist/components/tooltip/tooltip.js +12 -35
  74. package/dist/context-DCAZLyDS.js +7 -0
  75. package/dist/{default-i18n-DY6EfUSA.js → default-i18n-CN_q3KUs.js} +15 -56
  76. package/dist/icons/icons.js +3347 -30273
  77. package/dist/{index-641ee5b8.esm-Bu-mgopl.js → index-641ee5b8.esm-DVp0njHa.js} +10 -8
  78. package/dist/{index-CBHA_HDD.js → index-D8-Zjpbd.js} +18 -18
  79. package/dist/index.js +2 -1
  80. package/dist/{multi-select-components-rCCyCaKO.js → multi-select-components-CT_W0Cy9.js} +1 -1
  81. package/dist/{react-select-async.esm-XYrsKYb2.js → react-select-async.esm-Zl1LPaPb.js} +3 -3
  82. package/dist/{react-select.esm-CCSPY6XR.js → react-select.esm-Bu36HujU.js} +3 -3
  83. package/dist/{textSelection-D5tWX1rJ.js → textSelection-k0u64dDA.js} +1 -1
  84. package/dist/{useAsyncList-ZqaIH2gh.js → useAsyncList-D52mQcrH.js} +30 -0
  85. package/dist/{useButton-BtJSiQi3.js → useButton-Bn4ZT295.js} +4 -3
  86. package/dist/{useDragAndDrop-CddFteYC.js → useDragAndDrop-DVLrIdEn.js} +18 -10
  87. package/dist/{useFilter-Cl2ggwwq.js → useFilter-C4wo8Iii.js} +1 -1
  88. package/dist/{useFocusRing-D5BfOWag.js → useFocusRing-CUxgjvAY.js} +1 -1
  89. package/dist/{Form-BeMxJA29.js → useFormValidation-CUtZcedF.js} +5 -7
  90. package/dist/{useHover-44IApaa2.js → useHover-LmGemtHE.js} +24 -24
  91. package/dist/{useListState-BSkHuB7-.js → useListState-Xsk-aOvN.js} +8 -5
  92. package/dist/{useNumberField-JhWPy1JY.js → useNumberField-BCjjZWaz.js} +100 -99
  93. package/dist/{usePress-BnrkvZ7e.js → usePress-CBQIDzpQ.js} +12 -12
  94. package/dist/{useSingleSelectListState-CzJFsSHr.js → useSingleSelectListState-DattSD7d.js} +2 -2
  95. package/dist/{useToggle-OaIBlwRu.js → useToggle-C8CedY6Z.js} +2 -2
  96. package/dist/{useToggleState-BF8hvidm.js → useToggleState-CiAradXs.js} +1 -1
  97. package/package.json +25 -25
  98. package/dist/TextField-x_eEa_qR.js +0 -143
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { forwardRef, useContext, useLayoutEffect, useRef, useState, useMemo, useCallback, createContext } from "react";
3
- import { r as reactDomExports } from "./index-CBHA_HDD.js";
3
+ import { r as reactDomExports } from "./index-D8-Zjpbd.js";
4
4
  function _typeof(o) {
5
5
  "@babel/helpers - typeof";
6
6
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
@@ -98,7 +98,7 @@ function _objectWithoutPropertiesLoose(r, e) {
98
98
  if (null == r) return {};
99
99
  var t = {};
100
100
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
101
- if (e.includes(n)) continue;
101
+ if (-1 !== e.indexOf(n)) continue;
102
102
  t[n] = r[n];
103
103
  }
104
104
  return t;
@@ -107,8 +107,8 @@ function _objectWithoutProperties(e, t) {
107
107
  if (null == e) return {};
108
108
  var o, r, i = _objectWithoutPropertiesLoose(e, t);
109
109
  if (Object.getOwnPropertySymbols) {
110
- var s = Object.getOwnPropertySymbols(e);
111
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
110
+ var n = Object.getOwnPropertySymbols(e);
111
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
112
112
  }
113
113
  return i;
114
114
  }
@@ -142,7 +142,7 @@ function createStyleElement(options2) {
142
142
  tag.setAttribute("data-s", "");
143
143
  return tag;
144
144
  }
145
- var StyleSheet = /* @__PURE__ */ function() {
145
+ var StyleSheet = /* @__PURE__ */ (function() {
146
146
  function StyleSheet2(options2) {
147
147
  var _this = this;
148
148
  this._insertTag = function(tag) {
@@ -200,7 +200,7 @@ var StyleSheet = /* @__PURE__ */ function() {
200
200
  this.ctr = 0;
201
201
  };
202
202
  return StyleSheet2;
203
- }();
203
+ })();
204
204
  var MS = "-ms-";
205
205
  var MOZ = "-moz-";
206
206
  var WEBKIT = "-webkit-";
@@ -1743,6 +1743,7 @@ function isShadowRoot(value) {
1743
1743
  }
1744
1744
  return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
1745
1745
  }
1746
+ const invalidOverflowDisplayValues = /* @__PURE__ */ new Set(["inline", "contents"]);
1746
1747
  function isOverflowElement(element) {
1747
1748
  const {
1748
1749
  overflow,
@@ -1750,14 +1751,15 @@ function isOverflowElement(element) {
1750
1751
  overflowY,
1751
1752
  display
1752
1753
  } = getComputedStyle$1(element);
1753
- return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !["inline", "contents"].includes(display);
1754
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
1754
1755
  }
1755
1756
  function isWebKit() {
1756
1757
  if (typeof CSS === "undefined" || !CSS.supports) return false;
1757
1758
  return CSS.supports("-webkit-backdrop-filter", "none");
1758
1759
  }
1760
+ const lastTraversableNodeNames = /* @__PURE__ */ new Set(["html", "body", "#document"]);
1759
1761
  function isLastTraversableNode(node2) {
1760
- return ["html", "body", "#document"].includes(getNodeName(node2));
1762
+ return lastTraversableNodeNames.has(getNodeName(node2));
1761
1763
  }
1762
1764
  function getComputedStyle$1(element) {
1763
1765
  return getWindow(element).getComputedStyle(element);
@@ -1197,13 +1197,13 @@ function requireReactDom_production_min() {
1197
1197
  function lb(a, b) {
1198
1198
  return null == a || "http://www.w3.org/1999/xhtml" === a ? kb(b) : "http://www.w3.org/2000/svg" === a && "foreignObject" === b ? "http://www.w3.org/1999/xhtml" : a;
1199
1199
  }
1200
- var mb, nb = function(a) {
1200
+ var mb, nb = (function(a) {
1201
1201
  return "undefined" !== typeof MSApp && MSApp.execUnsafeLocalFunction ? function(b, c, d, e) {
1202
1202
  MSApp.execUnsafeLocalFunction(function() {
1203
1203
  return a(b, c, d, e);
1204
1204
  });
1205
1205
  } : a;
1206
- }(function(a, b) {
1206
+ })(function(a, b) {
1207
1207
  if ("http://www.w3.org/2000/svg" !== a.namespaceURI || "innerHTML" in a) a.innerHTML = b;
1208
1208
  else {
1209
1209
  mb = mb || document.createElement("div");
@@ -11502,7 +11502,7 @@ function requireReactDom_development() {
11502
11502
  return getHighestPriorityLanes(root2.pendingLanes);
11503
11503
  }
11504
11504
  function getLanesToRetrySynchronouslyOnError(root2) {
11505
- var everythingButOffscreen = root2.pendingLanes & -1073741825;
11505
+ var everythingButOffscreen = root2.pendingLanes & ~OffscreenLane;
11506
11506
  if (everythingButOffscreen !== NoLanes) {
11507
11507
  return everythingButOffscreen;
11508
11508
  }
@@ -14610,7 +14610,7 @@ function requireReactDom_development() {
14610
14610
  warnForPropDifference(propKey, serverValue, expectedStyle);
14611
14611
  }
14612
14612
  }
14613
- } else if (isCustomComponentTag && true) {
14613
+ } else if (isCustomComponentTag && !enableCustomElementPropertySupport) {
14614
14614
  extraAttributeNames.delete(propKey.toLowerCase());
14615
14615
  serverValue = getValueForAttribute(domElement, propKey, nextProp);
14616
14616
  if (nextProp !== serverValue) {
@@ -16135,7 +16135,7 @@ function requireReactDom_development() {
16135
16135
  }
16136
16136
  }
16137
16137
  function insertNonHydratedInstance(returnFiber, fiber) {
16138
- fiber.flags = fiber.flags & -4097 | Placement;
16138
+ fiber.flags = fiber.flags & ~Hydrating | Placement;
16139
16139
  warnNonhydratedInstance(returnFiber, fiber);
16140
16140
  }
16141
16141
  function tryHydrate(fiber, nextInstance) {
@@ -17796,7 +17796,7 @@ function requireReactDom_development() {
17796
17796
  return payload;
17797
17797
  }
17798
17798
  case CaptureUpdate: {
17799
- workInProgress2.flags = workInProgress2.flags & -65537 | DidCapture;
17799
+ workInProgress2.flags = workInProgress2.flags & ~ShouldCapture | DidCapture;
17800
17800
  }
17801
17801
  // Intentional fallthrough
17802
17802
  case UpdateState: {
@@ -20647,7 +20647,7 @@ function requireReactDom_development() {
20647
20647
  var newState = instance.state = oldState;
20648
20648
  processUpdateQueue(workInProgress2, newProps, instance, renderLanes2);
20649
20649
  newState = workInProgress2.memoizedState;
20650
- if (unresolvedOldProps === unresolvedNewProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing() && true) {
20650
+ if (unresolvedOldProps === unresolvedNewProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing() && !enableLazyContextPropagation) {
20651
20651
  if (typeof instance.componentDidUpdate === "function") {
20652
20652
  if (unresolvedOldProps !== current2.memoizedProps || oldState !== current2.memoizedState) {
20653
20653
  workInProgress2.flags |= Update;
@@ -20915,7 +20915,7 @@ function requireReactDom_development() {
20915
20915
  }
20916
20916
  var suspenseBoundary = getNearestSuspenseBoundaryToCapture(returnFiber);
20917
20917
  if (suspenseBoundary !== null) {
20918
- suspenseBoundary.flags &= -257;
20918
+ suspenseBoundary.flags &= ~ForceClientRender;
20919
20919
  markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root2, rootRenderLanes);
20920
20920
  if (suspenseBoundary.mode & ConcurrentMode) {
20921
20921
  attachPingListener(root2, wakeable, rootRenderLanes);
@@ -21486,7 +21486,7 @@ function requireReactDom_development() {
21486
21486
  workInProgress2.child = child;
21487
21487
  var node = child;
21488
21488
  while (node) {
21489
- node.flags = node.flags & -3 | Hydrating;
21489
+ node.flags = node.flags & ~Placement | Hydrating;
21490
21490
  node = node.sibling;
21491
21491
  }
21492
21492
  }
@@ -21798,7 +21798,7 @@ function requireReactDom_development() {
21798
21798
  var didSuspend = (workInProgress2.flags & DidCapture) !== NoFlags;
21799
21799
  if (didSuspend || shouldRemainOnFallback(suspenseContext, current2)) {
21800
21800
  showFallback = true;
21801
- workInProgress2.flags &= -129;
21801
+ workInProgress2.flags &= ~DidCapture;
21802
21802
  } else {
21803
21803
  if (current2 === null || current2.memoizedState !== null) {
21804
21804
  {
@@ -22077,7 +22077,7 @@ function requireReactDom_development() {
22077
22077
  }
22078
22078
  } else {
22079
22079
  if (workInProgress2.flags & ForceClientRender) {
22080
- workInProgress2.flags &= -257;
22080
+ workInProgress2.flags &= ~ForceClientRender;
22081
22081
  var _capturedValue2 = createCapturedValue(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));
22082
22082
  return retrySuspenseComponentWithoutHydrating(current2, workInProgress2, renderLanes2, _capturedValue2);
22083
22083
  } else if (workInProgress2.memoizedState !== null) {
@@ -23231,7 +23231,7 @@ function requireReactDom_development() {
23231
23231
  var _prevState = current2.memoizedState;
23232
23232
  var prevIsHidden = _prevState !== null;
23233
23233
  if (prevIsHidden !== nextIsHidden && // LegacyHidden doesn't do any hiding — it only pre-renders.
23234
- true) {
23234
+ !enableLegacyHidden) {
23235
23235
  workInProgress2.flags |= Visibility;
23236
23236
  }
23237
23237
  }
@@ -23268,7 +23268,7 @@ function requireReactDom_development() {
23268
23268
  }
23269
23269
  var flags = workInProgress2.flags;
23270
23270
  if (flags & ShouldCapture) {
23271
- workInProgress2.flags = flags & -65537 | DidCapture;
23271
+ workInProgress2.flags = flags & ~ShouldCapture | DidCapture;
23272
23272
  if ((workInProgress2.mode & ProfileMode) !== NoMode) {
23273
23273
  transferActualDuration(workInProgress2);
23274
23274
  }
@@ -23283,7 +23283,7 @@ function requireReactDom_development() {
23283
23283
  resetWorkInProgressVersions();
23284
23284
  var _flags = workInProgress2.flags;
23285
23285
  if ((_flags & ShouldCapture) !== NoFlags && (_flags & DidCapture) === NoFlags) {
23286
- workInProgress2.flags = _flags & -65537 | DidCapture;
23286
+ workInProgress2.flags = _flags & ~ShouldCapture | DidCapture;
23287
23287
  return workInProgress2;
23288
23288
  }
23289
23289
  return null;
@@ -23303,7 +23303,7 @@ function requireReactDom_development() {
23303
23303
  }
23304
23304
  var _flags2 = workInProgress2.flags;
23305
23305
  if (_flags2 & ShouldCapture) {
23306
- workInProgress2.flags = _flags2 & -65537 | DidCapture;
23306
+ workInProgress2.flags = _flags2 & ~ShouldCapture | DidCapture;
23307
23307
  if ((workInProgress2.mode & ProfileMode) !== NoMode) {
23308
23308
  transferActualDuration(workInProgress2);
23309
23309
  }
@@ -24099,7 +24099,7 @@ function requireReactDom_development() {
24099
24099
  var parent = parentFiber.stateNode;
24100
24100
  if (parentFiber.flags & ContentReset) {
24101
24101
  resetTextContent(parent);
24102
- parentFiber.flags &= -33;
24102
+ parentFiber.flags &= ~ContentReset;
24103
24103
  }
24104
24104
  var before = getHostSibling(finishedWork);
24105
24105
  insertOrAppendPlacementNode(finishedWork, before, parent);
@@ -24625,10 +24625,10 @@ function requireReactDom_development() {
24625
24625
  } catch (error2) {
24626
24626
  captureCommitPhaseError(finishedWork, finishedWork.return, error2);
24627
24627
  }
24628
- finishedWork.flags &= -3;
24628
+ finishedWork.flags &= ~Placement;
24629
24629
  }
24630
24630
  if (flags & Hydrating) {
24631
- finishedWork.flags &= -4097;
24631
+ finishedWork.flags &= ~Hydrating;
24632
24632
  }
24633
24633
  }
24634
24634
  function commitLayoutEffects(finishedWork, root2, committedLanes) {
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@ import { ItemCollection } from "./components/item-collection/item-collection.js"
24
24
  import { LinkInput } from "./components/link-input/link-input.js";
25
25
  import { MatrixAlign } from "./components/matrix-align/matrix-align.js";
26
26
  import { MediaPlaceholder } from "./components/placeholders/media-placeholder.js";
27
- import { Menu, MenuItem, MenuSection, MenuSeparator, SubMenuItem } from "./components/menu/menu.js";
27
+ import { Menu, MenuItem, MenuSection, MenuSectionHeader, MenuSeparator, SubMenuItem } from "./components/menu/menu.js";
28
28
  import { MiniResponsive } from "./components/responsive/mini-responsive.js";
29
29
  import { Notice } from "./components/notice/notice.js";
30
30
  import { NumberPicker } from "./components/number-picker/number-picker.js";
@@ -94,6 +94,7 @@ export {
94
94
  Menu,
95
95
  MenuItem,
96
96
  MenuSection,
97
+ MenuSectionHeader,
97
98
  MenuSeparator,
98
99
  MiniResponsive,
99
100
  Modal,
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import React__default, { useLayoutEffect, useEffect, useRef, useMemo, useCallback, useState, createContext, memo, useReducer, useContext } from "react";
3
- import { r as reactDomExports } from "./index-CBHA_HDD.js";
3
+ import { r as reactDomExports } from "./index-D8-Zjpbd.js";
4
4
  import { c as clsx } from "./lite-DVmmD_-j.js";
5
5
  function useCombinedRefs() {
6
6
  for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -1,8 +1,8 @@
1
- import { a as _objectWithoutProperties, b as _slicedToArray, h as handleInputChange, d as _objectSpread2, e as _defineProperty, _ as _extends } from "./index-641ee5b8.esm-Bu-mgopl.js";
1
+ import { a as _objectWithoutProperties, b as _slicedToArray, h as handleInputChange, d as _objectSpread2, e as _defineProperty, _ as _extends } from "./index-641ee5b8.esm-DVp0njHa.js";
2
2
  import * as React from "react";
3
3
  import { useRef, useState, useEffect, useCallback, forwardRef } from "react";
4
- import { u as useStateManager, S as Select } from "./Select-ef7c0426.esm-D6WOCaYm.js";
5
- import "./index-CBHA_HDD.js";
4
+ import { u as useStateManager, S as Select } from "./Select-ef7c0426.esm-CmTkSxDx.js";
5
+ import "./index-D8-Zjpbd.js";
6
6
  var _excluded = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
7
7
  function useAsync(_ref) {
8
8
  var _ref$defaultOptions = _ref.defaultOptions, propsDefaultOptions = _ref$defaultOptions === void 0 ? false : _ref$defaultOptions, _ref$cacheOptions = _ref.cacheOptions, cacheOptions = _ref$cacheOptions === void 0 ? false : _ref$cacheOptions, propsLoadOptions = _ref.loadOptions;
@@ -1,8 +1,8 @@
1
- import { u as useStateManager, S as Select } from "./Select-ef7c0426.esm-D6WOCaYm.js";
2
- import { _ as _extends } from "./index-641ee5b8.esm-Bu-mgopl.js";
1
+ import { u as useStateManager, S as Select } from "./Select-ef7c0426.esm-CmTkSxDx.js";
2
+ import { _ as _extends } from "./index-641ee5b8.esm-DVp0njHa.js";
3
3
  import * as React from "react";
4
4
  import { forwardRef } from "react";
5
- import "./index-CBHA_HDD.js";
5
+ import "./index-D8-Zjpbd.js";
6
6
  var StateManagedSelect = /* @__PURE__ */ forwardRef(function(props, ref) {
7
7
  var baseSelectProps = useStateManager(props);
8
8
  return /* @__PURE__ */ React.createElement(Select, _extends({
@@ -1,4 +1,4 @@
1
- import { b as $c87311424ea30a05$export$fedb369cb70207f1, c as $431fbd86ca7dc216$export$b204af158042fbac, d as $bbed8b41f857bcc0$export$24490316f764c430 } from "./useHover-44IApaa2.js";
1
+ import { b as $c87311424ea30a05$export$fedb369cb70207f1, c as $431fbd86ca7dc216$export$b204af158042fbac, d as $bbed8b41f857bcc0$export$24490316f764c430 } from "./useHover-LmGemtHE.js";
2
2
  let $14c0b72509d70225$var$state = "default";
3
3
  let $14c0b72509d70225$var$savedUserSelect = "";
4
4
  let $14c0b72509d70225$var$modifiedElementMap = /* @__PURE__ */ new WeakMap();
@@ -8,6 +8,36 @@ function $0d86e9c8f07f9a7b$export$79c0c687a5963b0a(opts, dispatch) {
8
8
  selectedKeys
9
9
  }));
10
10
  },
11
+ addKeysToSelection(selectedKeys) {
12
+ dispatch((state) => {
13
+ if (state.selectedKeys === "all") return state;
14
+ if (selectedKeys === "all") return {
15
+ ...state,
16
+ selectedKeys: "all"
17
+ };
18
+ return {
19
+ ...state,
20
+ selectedKeys: /* @__PURE__ */ new Set([
21
+ ...state.selectedKeys,
22
+ ...selectedKeys
23
+ ])
24
+ };
25
+ });
26
+ },
27
+ removeKeysFromSelection(selectedKeys) {
28
+ dispatch((state) => {
29
+ if (selectedKeys === "all") return {
30
+ ...state,
31
+ selectedKeys: /* @__PURE__ */ new Set()
32
+ };
33
+ let selection = state.selectedKeys === "all" ? new Set(state.items.map(getKey)) : new Set(state.selectedKeys);
34
+ for (let key of selectedKeys) selection.delete(key);
35
+ return {
36
+ ...state,
37
+ selectedKeys: selection
38
+ };
39
+ });
40
+ },
11
41
  setFilterText(filterText) {
12
42
  dispatch((state) => ({
13
43
  ...state,
@@ -1,7 +1,7 @@
1
1
  import { b as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-cvK1vxO7.js";
2
2
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-D2C6R0DK.js";
3
- import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-BnrkvZ7e.js";
4
- import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useHover-44IApaa2.js";
3
+ import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-CBQIDzpQ.js";
4
+ import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useHover-LmGemtHE.js";
5
5
  function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
6
6
  let { elementType = "button", isDisabled, onPress, onPressStart, onPressEnd, onPressUp, onPressChange, preventFocusOnPress, allowFocusWhenDisabled, onClick, href, target, rel, type = "button" } = props;
7
7
  let additionalProps;
@@ -49,7 +49,8 @@ function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
49
49
  "aria-expanded": props["aria-expanded"],
50
50
  "aria-controls": props["aria-controls"],
51
51
  "aria-pressed": props["aria-pressed"],
52
- "aria-current": props["aria-current"]
52
+ "aria-current": props["aria-current"],
53
+ "aria-disabled": props["aria-disabled"]
53
54
  })
54
55
  };
55
56
  }
@@ -1,14 +1,14 @@
1
- import { L as $507fabe10e71c6fb$export$98e20ec92f614cfe, v as $507fabe10e71c6fb$export$630ff653c5ada6a9, H as $6a7db85432448f7f$export$60278871457622de, F as $6a7db85432448f7f$export$29bf1b5f2c56cf63, f as $03deb23ff14920c4$export$4eaf04e54aa8eed6, B as $c87311424ea30a05$export$9ac100e40613ea10, E as $c87311424ea30a05$export$7bef049ce92e4224, C as $c87311424ea30a05$export$78551043582a6a98, b as $c87311424ea30a05$export$fedb369cb70207f1, x as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./useHover-44IApaa2.js";
2
- import { c as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-RTwMSBs-.js";
3
- import { k as $5e3802645cc19319$export$1c3ebcada18427bf } from "./Dialog-Xf6AsnV-.js";
1
+ import { L as $507fabe10e71c6fb$export$98e20ec92f614cfe, u as $507fabe10e71c6fb$export$630ff653c5ada6a9, H as $6a7db85432448f7f$export$60278871457622de, F as $6a7db85432448f7f$export$29bf1b5f2c56cf63, e as $03deb23ff14920c4$export$4eaf04e54aa8eed6, B as $c87311424ea30a05$export$9ac100e40613ea10, E as $c87311424ea30a05$export$7bef049ce92e4224, C as $c87311424ea30a05$export$78551043582a6a98, b as $c87311424ea30a05$export$fedb369cb70207f1, v as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./useHover-LmGemtHE.js";
2
+ import { c as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-npzfSoYo.js";
3
+ import { k as $5e3802645cc19319$export$1c3ebcada18427bf } from "./Dialog-CQ8H6Noi.js";
4
4
  import React__default, { useState, useEffect, useRef, version, useCallback, useImperativeHandle, useMemo } from "react";
5
- import { o as $ef06256079686ba0$export$f8aeda7b10753fa1, m as $c5a24bc478652b5f$export$1005530eda016c13, p as $cc38e7bd3fc7b213$export$2bb74740c4e19def } from "./Collection-D_KhdLDC.js";
6
- import { e as $62d8ded9296f3872$export$cfa2225e87938781 } from "./Separator-Fl7qSeN-.js";
5
+ import { u as $ef06256079686ba0$export$f8aeda7b10753fa1, q as $c5a24bc478652b5f$export$1005530eda016c13, o as $cc38e7bd3fc7b213$export$2bb74740c4e19def } from "./SelectionManager-CabSdgMq.js";
6
+ import { c as $62d8ded9296f3872$export$cfa2225e87938781 } from "./Separator-BPvqJny4.js";
7
7
  import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-eaZiN2tE.js";
8
8
  import { e as $8ae05eaa5c114e9c$export$7f54fc3180508a52, k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, d as $bdb11010cef70236$export$f680877a34711e37, b as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-cvK1vxO7.js";
9
9
  import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-DMOmz986.js";
10
- import { r as reactDomExports } from "./index-CBHA_HDD.js";
11
- var $103790afe9474d1c$export$60b7b4bcf3903d8e = /* @__PURE__ */ function(DROP_OPERATION) {
10
+ import { r as reactDomExports } from "./index-D8-Zjpbd.js";
11
+ var $103790afe9474d1c$export$60b7b4bcf3903d8e = /* @__PURE__ */ (function(DROP_OPERATION) {
12
12
  DROP_OPERATION[DROP_OPERATION["none"] = 0] = "none";
13
13
  DROP_OPERATION[DROP_OPERATION["cancel"] = 0] = "cancel";
14
14
  DROP_OPERATION[DROP_OPERATION["move"] = 1] = "move";
@@ -16,7 +16,7 @@ var $103790afe9474d1c$export$60b7b4bcf3903d8e = /* @__PURE__ */ function(DROP_OP
16
16
  DROP_OPERATION[DROP_OPERATION["link"] = 4] = "link";
17
17
  DROP_OPERATION[DROP_OPERATION["all"] = 7] = "all";
18
18
  return DROP_OPERATION;
19
- }({});
19
+ })({});
20
20
  const $103790afe9474d1c$export$9bbdfc78cf083e16 = {
21
21
  ...$103790afe9474d1c$export$60b7b4bcf3903d8e,
22
22
  copyMove: 3,
@@ -2173,7 +2173,7 @@ function $8253ed7ece74b463$export$7941f8aafa4b6021(options) {
2173
2173
  let { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6();
2174
2174
  let modalityOnPointerDown = useRef(null);
2175
2175
  let onDragStart = (e) => {
2176
- var _options_preview;
2176
+ var _e_dataTransfer_clearData, _e_dataTransfer, _options_preview;
2177
2177
  if (e.defaultPrevented) return;
2178
2178
  e.stopPropagation();
2179
2179
  if (modalityOnPointerDown.current === "virtual") {
@@ -2188,6 +2188,7 @@ function $8253ed7ece74b463$export$7941f8aafa4b6021(options) {
2188
2188
  y: e.clientY
2189
2189
  });
2190
2190
  let items = options.getItems();
2191
+ (_e_dataTransfer_clearData = (_e_dataTransfer = e.dataTransfer).clearData) === null || _e_dataTransfer_clearData === void 0 ? void 0 : _e_dataTransfer_clearData.call(_e_dataTransfer);
2191
2192
  $7252cd45fc48c07c$export$f9c1490890ddd063(e.dataTransfer, items);
2192
2193
  let allowed = $103790afe9474d1c$export$60b7b4bcf3903d8e.all;
2193
2194
  if (typeof options.getAllowedDropOperations === "function") {
@@ -3728,7 +3729,14 @@ function $b45bbbaf0c3785df$export$29efd034f1d79f81(props) {
3728
3729
  },
3729
3730
  getKeysForDrag: getKeys,
3730
3731
  getItems(key) {
3731
- return getItems(getKeys(key));
3732
+ let keys = getKeys(key);
3733
+ let items = [];
3734
+ for (let key2 of keys) {
3735
+ var _collection_getItem;
3736
+ let value = (_collection_getItem = collection.getItem(key2)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.value;
3737
+ if (value != null) items.push(value);
3738
+ }
3739
+ return getItems(getKeys(key), items);
3732
3740
  },
3733
3741
  isDisabled,
3734
3742
  preview,
@@ -1,4 +1,4 @@
1
- import { d as $325a3faab7a68acd$export$a16aca283550c30d } from "./Separator-Fl7qSeN-.js";
1
+ import { b as $325a3faab7a68acd$export$a16aca283550c30d } from "./Separator-BPvqJny4.js";
2
2
  import { useCallback, useMemo } from "react";
3
3
  function $bb77f239b46e8c72$export$3274cf84b703fff(options) {
4
4
  let collator = $325a3faab7a68acd$export$a16aca283550c30d({
@@ -1,4 +1,4 @@
1
- import { f as $03deb23ff14920c4$export$4eaf04e54aa8eed6, g as $8a9cb279dc87e130$export$715c682d09d639cc, c as $431fbd86ca7dc216$export$b204af158042fbac, h as $d4ee10de306f2510$export$cd4e5573fbe2b576, i as $d4ee10de306f2510$export$e58f029f0fbfdb29, j as $d4ee10de306f2510$export$4282f70798064fe0, k as $8a9cb279dc87e130$export$c2b7abe5d61ec696, l as $8a9cb279dc87e130$export$525bc4921d56d4a, m as $507fabe10e71c6fb$export$b9b3dfddab17db27, n as $507fabe10e71c6fb$export$ec71b4b83ac08ec3, o as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useHover-44IApaa2.js";
1
+ import { e as $03deb23ff14920c4$export$4eaf04e54aa8eed6, f as $8a9cb279dc87e130$export$715c682d09d639cc, c as $431fbd86ca7dc216$export$b204af158042fbac, g as $d4ee10de306f2510$export$cd4e5573fbe2b576, h as $d4ee10de306f2510$export$e58f029f0fbfdb29, i as $d4ee10de306f2510$export$4282f70798064fe0, j as $8a9cb279dc87e130$export$c2b7abe5d61ec696, k as $8a9cb279dc87e130$export$525bc4921d56d4a, l as $507fabe10e71c6fb$export$b9b3dfddab17db27, m as $507fabe10e71c6fb$export$ec71b4b83ac08ec3, n as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useHover-LmGemtHE.js";
2
2
  import { useRef, useCallback, useState } from "react";
3
3
  function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
4
4
  let { isDisabled, onBlurWithin, onFocusWithin, onFocusWithinChange } = props;
@@ -1,5 +1,5 @@
1
1
  import { useMemo, useContext, createContext, useState, useRef, useEffect } from "react";
2
- import { x as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./useHover-44IApaa2.js";
2
+ import { v as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./useHover-LmGemtHE.js";
3
3
  import { k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, e as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-cvK1vxO7.js";
4
4
  const $e5be200c675c3b3a$export$aca958c65c314e6c = {
5
5
  badInput: false,
@@ -226,11 +226,9 @@ function $e93e671b31057976$var$getFirstInvalidInput(form) {
226
226
  }
227
227
  return null;
228
228
  }
229
- const $d3e0e05bdfcf66bd$export$c24727297075ec6a = /* @__PURE__ */ createContext(null);
230
229
  export {
231
- $d3e0e05bdfcf66bd$export$c24727297075ec6a as $,
232
- $e5be200c675c3b3a$export$fc1a364ae1f3ff10 as a,
233
- $e93e671b31057976$export$b8473d3665f3a75a as b,
234
- $e5be200c675c3b3a$export$a763b9476acd3eb as c,
235
- $e5be200c675c3b3a$export$dad6ae84456c676a as d
230
+ $e5be200c675c3b3a$export$fc1a364ae1f3ff10 as $,
231
+ $e93e671b31057976$export$b8473d3665f3a75a as a,
232
+ $e5be200c675c3b3a$export$a763b9476acd3eb as b,
233
+ $e5be200c675c3b3a$export$dad6ae84456c676a as c
236
234
  };
@@ -245,7 +245,7 @@ function $e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, ref) {
245
245
  });
246
246
  }
247
247
  function $6a7db85432448f7f$export$60278871457622de(event) {
248
- if (event.mozInputSource === 0 && event.isTrusted) return true;
248
+ if (event.pointerType === "" && event.isTrusted) return true;
249
249
  if ($c87311424ea30a05$export$a11b0059900ceec8() && event.pointerType) return event.type === "click" && event.buttons === 1;
250
250
  return event.detail === 0 && !event.pointerType;
251
251
  }
@@ -270,7 +270,7 @@ function $7d2416ea0959daaa$var$isAttributeVisible(element, childElement) {
270
270
  !element.hasAttribute("data-react-aria-prevent-focus") && (element.nodeName === "DETAILS" && childElement && childElement.nodeName !== "SUMMARY" ? element.hasAttribute("open") : true);
271
271
  }
272
272
  function $7d2416ea0959daaa$export$e989c0fffaa6b27a(element, childElement) {
273
- if ($7d2416ea0959daaa$var$supportsCheckVisibility) return element.checkVisibility();
273
+ if ($7d2416ea0959daaa$var$supportsCheckVisibility) return element.checkVisibility() && !element.closest("[data-react-aria-prevent-focus]");
274
274
  return element.nodeName !== "#comment" && $7d2416ea0959daaa$var$isStyleVisible(element) && $7d2416ea0959daaa$var$isAttributeVisible(element, childElement) && (!element.parentElement || $7d2416ea0959daaa$export$e989c0fffaa6b27a(element.parentElement, element));
275
275
  }
276
276
  const $b4b717babfbb907b$var$focusableElements = [
@@ -895,34 +895,34 @@ export {
895
895
  $8a9cb279dc87e130$export$cabe61c495ee3649 as G,
896
896
  $6a7db85432448f7f$export$60278871457622de as H,
897
897
  $e7801be82b4b2a53$export$4debdb1a3f0fa79e as I,
898
- $f645667febf57a63$export$f9762fab77588ecb as J,
899
- $c87311424ea30a05$export$e1865c3bedcd822b as K,
898
+ $c87311424ea30a05$export$e1865c3bedcd822b as J,
899
+ $f645667febf57a63$export$f9762fab77588ecb as K,
900
900
  $507fabe10e71c6fb$export$98e20ec92f614cfe as L,
901
901
  $c87311424ea30a05$export$186c6964ca17d99 as M,
902
902
  $458b0a5536c1a7cf$export$40bfa8c7b0832715 as a,
903
903
  $c87311424ea30a05$export$fedb369cb70207f1 as b,
904
904
  $431fbd86ca7dc216$export$b204af158042fbac as c,
905
905
  $bbed8b41f857bcc0$export$24490316f764c430 as d,
906
- $6179b936705e76d3$export$ae780daf29e6d456 as e,
907
- $03deb23ff14920c4$export$4eaf04e54aa8eed6 as f,
908
- $8a9cb279dc87e130$export$715c682d09d639cc as g,
909
- $d4ee10de306f2510$export$cd4e5573fbe2b576 as h,
910
- $d4ee10de306f2510$export$e58f029f0fbfdb29 as i,
911
- $d4ee10de306f2510$export$4282f70798064fe0 as j,
912
- $8a9cb279dc87e130$export$c2b7abe5d61ec696 as k,
913
- $8a9cb279dc87e130$export$525bc4921d56d4a as l,
914
- $507fabe10e71c6fb$export$b9b3dfddab17db27 as m,
915
- $507fabe10e71c6fb$export$ec71b4b83ac08ec3 as n,
916
- $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 as o,
917
- $f4e2df6bd15f8569$export$98658e8c59125e6a as p,
918
- $b4b717babfbb907b$export$bebd5a1431fec25d as q,
919
- $b4b717babfbb907b$export$4c063cf1350e6fed as r,
920
- $3ad3f6e1647bc98d$export$80f3e147d781571c as s,
921
- $c87311424ea30a05$export$a11b0059900ceec8 as t,
922
- $c87311424ea30a05$export$6446a186d09e379e as u,
923
- $507fabe10e71c6fb$export$630ff653c5ada6a9 as v,
924
- $431fbd86ca7dc216$export$f21a1ffae260145a as w,
925
- $507fabe10e71c6fb$export$8397ddfc504fdb9a as x,
906
+ $03deb23ff14920c4$export$4eaf04e54aa8eed6 as e,
907
+ $8a9cb279dc87e130$export$715c682d09d639cc as f,
908
+ $d4ee10de306f2510$export$cd4e5573fbe2b576 as g,
909
+ $d4ee10de306f2510$export$e58f029f0fbfdb29 as h,
910
+ $d4ee10de306f2510$export$4282f70798064fe0 as i,
911
+ $8a9cb279dc87e130$export$c2b7abe5d61ec696 as j,
912
+ $8a9cb279dc87e130$export$525bc4921d56d4a as k,
913
+ $507fabe10e71c6fb$export$b9b3dfddab17db27 as l,
914
+ $507fabe10e71c6fb$export$ec71b4b83ac08ec3 as m,
915
+ $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 as n,
916
+ $f4e2df6bd15f8569$export$98658e8c59125e6a as o,
917
+ $b4b717babfbb907b$export$bebd5a1431fec25d as p,
918
+ $b4b717babfbb907b$export$4c063cf1350e6fed as q,
919
+ $3ad3f6e1647bc98d$export$80f3e147d781571c as r,
920
+ $c87311424ea30a05$export$a11b0059900ceec8 as s,
921
+ $c87311424ea30a05$export$6446a186d09e379e as t,
922
+ $507fabe10e71c6fb$export$630ff653c5ada6a9 as u,
923
+ $507fabe10e71c6fb$export$8397ddfc504fdb9a as v,
924
+ $6179b936705e76d3$export$ae780daf29e6d456 as w,
925
+ $431fbd86ca7dc216$export$f21a1ffae260145a as x,
926
926
  $f645667febf57a63$export$13f3202a3e5ddd5 as y,
927
927
  $7215afc6de606d6b$export$de79e2c695e052f3 as z
928
928
  };
@@ -1,5 +1,5 @@
1
1
  import { version, useMemo, useCallback, useRef, useEffect } from "react";
2
- import { $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852 } from "./Collection-D_KhdLDC.js";
2
+ import { $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852 } from "./SelectionManager-CabSdgMq.js";
3
3
  function $cdc5a6778b766db2$export$a9d04c5684123369(value) {
4
4
  const pieces = version.split(".");
5
5
  const major = parseInt(pieces[0], 10);
@@ -11,7 +11,7 @@ class $a02d57049d202695$export$d085fb9e920b5ca7 {
11
11
  yield* this.iterable;
12
12
  }
13
13
  get size() {
14
- return this.keyMap.size;
14
+ return this._size;
15
15
  }
16
16
  getKeys() {
17
17
  return this.keyMap.keys();
@@ -58,6 +58,7 @@ class $a02d57049d202695$export$d085fb9e920b5ca7 {
58
58
  for (let node of nodes) visit(node);
59
59
  let last = null;
60
60
  let index = 0;
61
+ let size = 0;
61
62
  for (let [key, node] of this.keyMap) {
62
63
  if (last) {
63
64
  last.nextKey = key;
@@ -67,9 +68,11 @@ class $a02d57049d202695$export$d085fb9e920b5ca7 {
67
68
  node.prevKey = void 0;
68
69
  }
69
70
  if (node.type === "item") node.index = index++;
71
+ if (node.type === "section" || node.type === "item") size++;
70
72
  last = node;
71
73
  last.nextKey = void 0;
72
74
  }
75
+ this._size = size;
73
76
  var _last_key;
74
77
  this.lastKey = (_last_key = last === null || last === void 0 ? void 0 : last.key) !== null && _last_key !== void 0 ? _last_key : null;
75
78
  }
@@ -103,10 +106,10 @@ function $e72dd72e1c76a225$export$2f645645f7bca764(props) {
103
106
  selectionManager
104
107
  };
105
108
  }
106
- function $e72dd72e1c76a225$export$ba9d38c0f1bf2b36(state, filter) {
107
- let collection = useMemo(() => filter ? state.collection.UNSTABLE_filter(filter) : state.collection, [
109
+ function $e72dd72e1c76a225$export$ba9d38c0f1bf2b36(state, filterFn) {
110
+ let collection = useMemo(() => filterFn ? state.collection.filter(filterFn) : state.collection, [
108
111
  state.collection,
109
- filter
112
+ filterFn
110
113
  ]);
111
114
  let selectionManager = state.selectionManager.withCollection(collection);
112
115
  $e72dd72e1c76a225$var$useFocusedKeyReset(collection, selectionManager);