@splunk/react-ui 4.42.0 → 4.43.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 (62) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/Code.js +611 -426
  3. package/ComboBox.js +25 -32
  4. package/Date.js +21 -26
  5. package/Dropdown.js +1 -1
  6. package/JSONTree.js +30 -24
  7. package/MIGRATION.mdx +48 -53
  8. package/Menu.js +12 -8
  9. package/Multiselect.js +1 -1
  10. package/Number.js +418 -392
  11. package/Paginator.js +269 -251
  12. package/Popover.js +412 -345
  13. package/RadioList.js +44 -43
  14. package/ResultsMenu.d.ts +2 -0
  15. package/Search.js +56 -65
  16. package/Select.js +1 -1
  17. package/TabBar.js +4 -0
  18. package/Table.js +146 -146
  19. package/TransitionOpen.js +16 -14
  20. package/Tree.js +20 -14
  21. package/package.json +6 -6
  22. package/types/src/Button/Button.d.ts +1 -0
  23. package/types/src/Code/Code.d.ts +1 -1
  24. package/types/src/ComboBox/ComboBox.d.ts +6 -3
  25. package/types/src/Date/Date.d.ts +0 -1
  26. package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +2 -0
  27. package/types/src/Multiselect/Multiselect.d.ts +2 -0
  28. package/types/src/Number/Number.d.ts +3 -10
  29. package/types/src/Number/utils.d.ts +29 -0
  30. package/types/src/Paginator/Paginator.d.ts +15 -2
  31. package/types/src/Paginator/docs/examples/CustomPages.d.ts +2 -0
  32. package/types/src/Popover/Popover.d.ts +17 -8
  33. package/types/src/Popover/PopoverMenuContext.d.ts +6 -0
  34. package/types/src/Popover/PopoverProvider.d.ts +23 -0
  35. package/types/src/Popover/index.d.ts +2 -1
  36. package/types/src/RadioList/RadioList.d.ts +1 -1
  37. package/types/src/Select/SelectBase.d.ts +1 -1
  38. package/types/src/Select/docs/examples/Appearance.d.ts +1 -11
  39. package/types/src/Select/docs/examples/Basic.d.ts +1 -9
  40. package/types/src/Select/docs/examples/Children.d.ts +1 -9
  41. package/types/src/Select/docs/examples/Descriptions.d.ts +1 -9
  42. package/types/src/Select/docs/examples/Fetching.d.ts +1 -22
  43. package/types/src/Select/docs/examples/Filter.d.ts +1 -9
  44. package/types/src/Select/docs/examples/Headings.d.ts +1 -9
  45. package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +1 -24
  46. package/types/src/Select/docs/examples/Prefix.d.ts +1 -9
  47. package/types/src/Select/docs/examples/Truncate.d.ts +1 -9
  48. package/types/src/Table/docs/examples/Click.d.ts +2 -16
  49. package/types/src/Table/docs/examples/ClickRows.d.ts +2 -16
  50. package/types/src/Table/docs/examples/Complex.d.ts +2 -50
  51. package/types/src/Table/docs/examples/FilterColumnValues.d.ts +1 -13
  52. package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +1 -17
  53. package/types/src/Table/docs/examples/ReorderColumns.d.ts +2 -21
  54. package/types/src/Table/docs/examples/ReorderRows.d.ts +2 -21
  55. package/types/src/Table/docs/examples/Resizable.d.ts +2 -23
  56. package/types/src/Table/docs/examples/ResizableFill.d.ts +2 -23
  57. package/types/src/Table/docs/examples/RowActions.d.ts +2 -39
  58. package/types/src/Table/docs/examples/Selectable.d.ts +2 -18
  59. package/types/src/Table/docs/examples/SortableColumns.d.ts +1 -11
  60. package/useResizeObserver.js +122 -90
  61. package/types/src/Dropdown/docs/examples/OtherToggles.d.ts +0 -2
  62. package/types/src/Popover/PopoverContext.d.ts +0 -6
package/ComboBox.js CHANGED
@@ -88,8 +88,8 @@
88
88
  const v = require("lodash/pick");
89
89
  var b = e.n(v);
90
90
  // CONCATENATED MODULE: external "lodash/some"
91
- const y = require("lodash/some");
92
- var h = e.n(y);
91
+ const h = require("lodash/some");
92
+ var y = e.n(h);
93
93
  // CONCATENATED MODULE: external "@splunk/ui-utils/filter"
94
94
  const m = require("@splunk/ui-utils/filter");
95
95
  // CONCATENATED MODULE: external "@splunk/ui-utils/id"
@@ -482,6 +482,7 @@
482
482
  error: i().bool,
483
483
  footerMessage: i().node,
484
484
  inline: i().bool,
485
+ inputId: i().string,
485
486
  inputRef: i().oneOfType([ i().func, i().object ]),
486
487
  isLoadingOptions: i().bool,
487
488
  labelledBy: i().string,
@@ -516,12 +517,12 @@
516
517
  menuStyle: {},
517
518
  placeholder: (0, O._)("Select...")
518
519
  };
519
- function ye(e, t) {
520
+ function he(e, t) {
520
521
  var n = t.clientX, o = t.clientY;
521
522
  var r = e.getBoundingClientRect(), i = r.top, a = r.left, l = r.bottom, u = r.right;
522
523
  return n > a && n < u && o > i && o < l;
523
524
  }
524
- var he = p()((function(e) {
525
+ var ye = p()((function(e) {
525
526
  var t = e.anchorWidth, n = e.maxHeight, o = e.menuStyle;
526
527
  return l()({
527
528
  maxHeight: n,
@@ -531,8 +532,7 @@
531
532
  }));
532
533
  /**
533
534
  * `ComboBox` allows the user to select a predefined string or enter a new value. Unlike `Select`
534
- * and `Multiselect`, `Option` value must always be a string and `Option` does not have a label
535
- * property.
535
+ * and `Multiselect`, `Option` value must always be a string.
536
536
  */ var me = function(e) {
537
537
  re(r, e);
538
538
  var t = ae(r);
@@ -545,7 +545,6 @@
545
545
  pe(ue(i), "activeValue", void 0);
546
546
  pe(ue(i), "availableOptionCount", 0);
547
547
  pe(ue(i), "controlledExternally", void 0);
548
- pe(ue(i), "focusCalledInternally", false);
549
548
  pe(ue(i), "options", void 0);
550
549
  pe(ue(i), "popoverId", void 0);
551
550
  pe(ue(i), "previousActiveIndex", null);
@@ -567,13 +566,7 @@
567
566
  }));
568
567
  pe(ue(i), "handleInputFocus", (function(e, t) {
569
568
  var n, o;
570
- /* SUI-930 On IE 11 this handler is essentially deferred after calling
571
- * this.textInput.focus(). this.focusCalledInternally enables the focus event to be ignored
572
- * when the menu closes. */ if (i.focusCalledInternally) {
573
- i.focusCalledInternally = false;
574
- } else {
575
- i.open();
576
- }
569
+ i.open();
577
570
  (n = (o = i.props).onFocus) === null || n === void 0 ? void 0 : n.call(o, e, t);
578
571
  }));
579
572
  pe(ue(i), "handleChange", (function(e, t) {
@@ -603,7 +596,6 @@
603
596
  i.handleChange(e, ee(ee({}, t), {}, {
604
597
  selectedOption: true
605
598
  }));
606
- i.focusCalledInternally = true;
607
599
  i.focus();
608
600
  i.close();
609
601
  }));
@@ -668,7 +660,7 @@
668
660
  }));
669
661
  pe(ue(i), "handleRequestClose", (function(e) {
670
662
  var t = e.event, n = e.reason;
671
- var o = n === "offScreen" || n === "escapeKey" || n === "clickAway" && i.state.anchor && !ye(i.state.anchor, t);
663
+ var o = n === "offScreen" || n === "escapeKey" || n === "clickAway" && i.state.anchor && !he(i.state.anchor, t);
672
664
  if (o) {
673
665
  i.close();
674
666
  }
@@ -684,7 +676,7 @@
684
676
  var a = i.state, l = a.activeIndex, u = a.typedValue;
685
677
  var s = i.getValue();
686
678
  var p = n.Children.toArray(t).filter(n.isValidElement);
687
- var f = h()(p, (function(e) {
679
+ var f = y()(p, (function(e) {
688
680
  if (e.type === S.Heading) {
689
681
  return false;
690
682
  }
@@ -751,7 +743,7 @@
751
743
  pe(ue(i), "renderMenu", (function(e) {
752
744
  var t = e.anchorWidth, n = e.maxHeight;
753
745
  var r = i.props, a = r.isLoadingOptions, l = r.menuStyle, u = r.onScrollBottom, c = r.virtualization;
754
- var s = he({
746
+ var s = ye({
755
747
  anchorWidth: t,
756
748
  maxHeight: n,
757
749
  menuStyle: l
@@ -851,10 +843,10 @@
851
843
  }, {
852
844
  key: "render",
853
845
  value: function e() {
854
- var t = this.props.defaultPlacement;
855
- var n = this.state, r = n.anchor, i = n.open;
856
- var a = this.getValue();
857
- var l = this.getDisplayValue();
846
+ var t = this.props, n = t.defaultPlacement, r = t.inputId;
847
+ var i = this.state, a = i.anchor, l = i.open;
848
+ var u = this.getValue();
849
+ var c = this.getDisplayValue();
858
850
  this.prepareOptions();
859
851
 
860
852
  return o().createElement(x(), Z({
@@ -864,30 +856,31 @@
864
856
  spellCheck: false,
865
857
  canClear: true,
866
858
  "data-test": "combo-box"
867
- }, d()(this.props, "animateLoading", "className", "controlledFilter", "defaultValue", "footerMessage", "isLoadingOptions", "loadingMessage", "menuStyle", "noOptionsMessage", "onClose", "onOpen", "onScroll", "onScrollBottom", "spellCheck"), {
859
+ }, d()(this.props, "animateLoading", "className", "controlledFilter", "defaultValue", "footerMessage", "inputId", "isLoadingOptions", "loadingMessage", "menuStyle", "noOptionsMessage", "onClose", "onOpen", "onScroll", "onScrollBottom", "spellCheck"), {
868
860
  "data-test-popover-id": this.popoverId,
869
- "data-test-label": l,
870
- "data-test-value": a,
871
- "data-test-open": i && !!r,
861
+ "data-test-label": c,
862
+ "data-test-value": u,
863
+ "data-test-open": l && !!a,
872
864
  onFocus: this.handleInputFocus,
873
865
  onInputClick: this.handleInputClick,
874
866
  onChange: this.handleChange,
875
867
  onKeyDown: this.handleInputKeyDown,
868
+ inputId: r,
876
869
  inputRef: this.handleInputMount,
877
870
  elementRef: this.handleAnchorMount,
878
871
  role: "combobox",
879
- value: l,
872
+ value: c,
880
873
  "aria-activedescendant": this.state.open && Array.isArray(this.options) && this.options.length > 0 ? this.activeItemId : undefined,
881
- "aria-expanded": i,
882
- "aria-controls": i ? this.popoverId : undefined
874
+ "aria-expanded": l,
875
+ "aria-controls": l ? this.popoverId : undefined
883
876
  }), o().createElement(P(), {
884
- anchor: r,
877
+ anchor: a,
885
878
  autoCloseWhenOffScreen: true,
886
879
  canCoverAnchor: false,
887
- defaultPlacement: t,
880
+ defaultPlacement: n,
888
881
  id: this.popoverId,
889
882
  onRequestClose: this.handleRequestClose,
890
- open: i && !!r,
883
+ open: l && !!a,
891
884
  repositionMode: "flip"
892
885
  }, this.renderMenu));
893
886
  }
package/Date.js CHANGED
@@ -94,12 +94,12 @@
94
94
  const m = require("@splunk/themes");
95
95
  // CONCATENATED MODULE: external "styled-components"
96
96
  const g = require("styled-components");
97
- var C = e.n(g);
97
+ var O = e.n(g);
98
98
  // CONCATENATED MODULE: external "@splunk/react-ui/Text"
99
- const O = require("@splunk/react-ui/Text");
100
- var x = e.n(O);
99
+ const C = require("@splunk/react-ui/Text");
100
+ var x = e.n(C);
101
101
  // CONCATENATED MODULE: ./src/Date/DateStyles.ts
102
- var k = C()(x()).withConfig({
102
+ var k = O()(x()).withConfig({
103
103
  displayName: "DateStyles__StyledText",
104
104
  componentId: "kacgdc-0"
105
105
  })([ "cursor:", ";&[data-inline]{flex-basis:", ";width:", ";}" ], (0, m.pickVariant)("$disabled", {
@@ -115,7 +115,7 @@
115
115
  },
116
116
  prisma: "150px"
117
117
  }));
118
- var w = C().div.withConfig({
118
+ var w = O().div.withConfig({
119
119
  displayName: "DateStyles__IconContainer",
120
120
  componentId: "kacgdc-1"
121
121
  })([ "align-items:center;color:", ";display:flex;padding:", ";pointer-events:none;" ], (0,
@@ -138,7 +138,7 @@
138
138
  return e;
139
139
  }, T.apply(null, arguments);
140
140
  }
141
- function I(e) {
141
+ function S(e) {
142
142
  var t = (0, m.useSplunkTheme)(), n = t.density;
143
143
  var r = n === "compact" ? "20px" : "24px";
144
144
 
@@ -159,7 +159,7 @@
159
159
  * @param ref - The React callback or object ref. Can be `null` or `undefined`.
160
160
  * @param current - The new value of the ref.
161
161
  */
162
- function S(e, t) {
162
+ function D(e, t) {
163
163
  if (e) {
164
164
  if (typeof e === "function") {
165
165
  e(t);
@@ -172,16 +172,16 @@
172
172
  }
173
173
  }
174
174
  // CONCATENATED MODULE: ./src/Date/Date.tsx
175
- function D(e) {
175
+ function V(e) {
176
176
  "@babel/helpers - typeof";
177
- return D = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
177
+ return V = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
178
178
  return typeof e;
179
179
  } : function(e) {
180
180
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
181
- }, D(e);
181
+ }, V(e);
182
182
  }
183
- function V() {
184
- return V = Object.assign ? Object.assign.bind() : function(e) {
183
+ function I() {
184
+ return I = Object.assign ? Object.assign.bind() : function(e) {
185
185
  for (var t = 1; t < arguments.length; t++) {
186
186
  var n = arguments[t];
187
187
  for (var a in n) {
@@ -189,7 +189,7 @@
189
189
  }
190
190
  }
191
191
  return e;
192
- }, V.apply(null, arguments);
192
+ }, I.apply(null, arguments);
193
193
  }
194
194
  function j(e, t) {
195
195
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
@@ -235,7 +235,7 @@
235
235
  };
236
236
  }
237
237
  function M(e, t) {
238
- if (t && ("object" == D(t) || "function" == typeof t)) return t;
238
+ if (t && ("object" == V(t) || "function" == typeof t)) return t;
239
239
  if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
240
240
  return F(e);
241
241
  }
@@ -266,14 +266,14 @@
266
266
  }
267
267
  function W(e) {
268
268
  var t = A(e, "string");
269
- return "symbol" == D(t) ? t : t + "";
269
+ return "symbol" == V(t) ? t : t + "";
270
270
  }
271
271
  function A(e, t) {
272
- if ("object" != D(e) || !e) return e;
272
+ if ("object" != V(e) || !e) return e;
273
273
  var n = e[Symbol.toPrimitive];
274
274
  if (void 0 !== n) {
275
275
  var a = n.call(e, t || "default");
276
- if ("object" != D(a)) return a;
276
+ if ("object" != V(a)) return a;
277
277
  throw new TypeError("@@toPrimitive must return a primitive value.");
278
278
  }
279
279
  return ("string" === t ? String : Number)(e);
@@ -336,7 +336,6 @@
336
336
  j(this, n);
337
337
  r = t.call(this, e);
338
338
  B(F(r), "controlledExternally", void 0);
339
- B(F(r), "focusCalledInternally", false);
340
339
  B(F(r), "popoverId", void 0);
341
340
  B(F(r), "calendarRef", a().createRef());
342
341
  B(F(r), "openWithFocus", false);
@@ -356,7 +355,6 @@
356
355
  B(F(r), "handleDateChange", (function(e, t, n) {
357
356
  var a = t.value;
358
357
  if (n !== "textInput") {
359
- r.focusCalledInternally = true;
360
358
  r.focus();
361
359
  }
362
360
  if (r.getValue() !== a) {
@@ -379,9 +377,7 @@
379
377
  }));
380
378
  B(F(r), "handleFocus", (function(e, t) {
381
379
  var n, a;
382
- if (r.focusCalledInternally) {
383
- r.focusCalledInternally = false;
384
- } else if (!r.props.inputOnly) {
380
+ if (!r.props.inputOnly) {
385
381
  r.setState({
386
382
  calendarOpen: true
387
383
  });
@@ -432,7 +428,7 @@
432
428
  r.setState({
433
429
  anchor: e
434
430
  });
435
- S(r.props.elementRef, e);
431
+ D(r.props.elementRef, e);
436
432
  }));
437
433
  B(F(r), "handleInputMount", (function(e) {
438
434
  r.setState({
@@ -444,7 +440,6 @@
444
440
  if ((n === "clickAway" || n === "escapeKey") && t !== undefined && t.target !== r.state.anchor) {
445
441
  r.applyTextChange(t);
446
442
  if (n === "escapeKey") {
447
- r.focusCalledInternally = true;
448
443
  r.focus();
449
444
  }
450
445
  }
@@ -508,7 +503,7 @@
508
503
  var p = u && !o && a().createElement(w, {
509
504
  "aria-hidden": true,
510
505
  $disabled: n
511
- }, a().createElement(I, null));
506
+ }, a().createElement(S, null));
512
507
  var f;
513
508
  var d = {};
514
509
  if (!o) {
@@ -530,7 +525,7 @@
530
525
  }));
531
526
  }
532
527
 
533
- return a().createElement(k, V({
528
+ return a().createElement(k, I({
534
529
  autoCapitalize: "off",
535
530
  autoComplete: "off",
536
531
  autoCorrect: "off",
package/Dropdown.js CHANGED
@@ -382,7 +382,7 @@
382
382
  key: "componentDidUpdate",
383
383
  value: function e() {
384
384
  if (false) {}
385
- var o = R({}, y()(this.props, v()(r.propTypes), "value", "id"));
385
+ var o = R({}, y()(this.props, v()(r.propTypes), "aria-labelledby", "id", "value"));
386
386
  if (false) {}
387
387
  }
388
388
  }, {
package/JSONTree.js CHANGED
@@ -139,9 +139,9 @@
139
139
  function C(e) {
140
140
  var r = e.id, n = e.children, a = e.content, i = e.customIndent, l = e.endAdornment, u = e.labelledBy, f = e.onFocus, d = e.onKeyDown, s = e.onToggle, h = e.open, g = h === void 0 ? true : h, S = e.toggle, w = O(e, [ "id", "children", "content", "customIndent", "endAdornment", "labelledBy", "onFocus", "onKeyDown", "onToggle", "open", "toggle" ]);
141
141
  var k = (0, t.useContext)(c), x = k.defaultIndent, I = x === void 0 ? true : x, C = k.onItemKeyDown, j = k.onItemClick, E = k.removeNode, A = k.setNode, T = k.itemPaths, P = k.focusedItemId;
142
- var R = (0, t.useState)(g), K = b(R, 2), _ = K[0], N = K[1];
142
+ var R = (0, t.useState)(g), K = b(R, 2), _ = K[0], D = K[1];
143
143
  // make first tree item tabbable
144
- var D = (0, t.useState)((T === null || T === void 0 ? void 0 : T.get("".concat(r))) === "0" ? 0 : -1), V = b(D, 2), L = V[0], q = V[1];
144
+ var N = (0, t.useState)((T === null || T === void 0 ? void 0 : T.get("".concat(r))) === "0" ? 0 : -1), V = b(N, 2), L = V[0], q = V[1];
145
145
  var F = (0, t.useRef)(null);
146
146
  var M = (0, t.useRef)(null);
147
147
  var $ = t.Children.toArray(n).filter(t.isValidElement);
@@ -155,7 +155,7 @@
155
155
  }
156
156
  }));
157
157
  var J = function e(r, n) {
158
- N(r);
158
+ D(r);
159
159
  s === null || s === void 0 ? void 0 : s(r, n);
160
160
  };
161
161
  var U = function e(n) {
@@ -286,13 +286,13 @@
286
286
  }
287
287
  /**
288
288
  * A helper function to get parent path of current item path
289
- */ function N(e) {
289
+ */ function D(e) {
290
290
  // remove last index number of the current item path string to get parent
291
291
  return e.split("-").slice(0, -1).join("-");
292
292
  }
293
293
  /**
294
294
  * A helper function to get next path of current item path in same level
295
- */ function D(e, r) {
295
+ */ function N(e, r) {
296
296
  return e === null || e === void 0 ? void 0 : e.replace(/([^-]*)$/, "".concat(r + 1));
297
297
  }
298
298
  /**
@@ -309,19 +309,19 @@
309
309
  if (!n) {
310
310
  return r;
311
311
  }
312
- var t = N(n);
312
+ var t = D(n);
313
313
  return _(e, t) || r;
314
314
  }
315
315
  /**
316
316
  * A helper function for getNextTreeItem
317
317
  */ function q(e, r) {
318
- var n = N(r);
318
+ var n = D(r);
319
319
  if (!n) {
320
320
  return _(e, r);
321
321
  }
322
322
  // get next node in the parent level
323
323
  var t = V(n);
324
- var o = D(n, t);
324
+ var o = N(n, t);
325
325
  var a = _(e, o);
326
326
  if (a) {
327
327
  return a;
@@ -341,7 +341,7 @@
341
341
  }
342
342
  // case where next tree item is the next node in the same level
343
343
  var o = V(n);
344
- var a = D(n, o);
344
+ var a = N(n, o);
345
345
  var i = _(e, a);
346
346
  if (i) {
347
347
  return i;
@@ -361,7 +361,7 @@
361
361
  // get the last child in current node, and continue to find its children recursively
362
362
  while (t) {
363
363
  var a = V(o);
364
- var i = D(o, a);
364
+ var i = N(o, a);
365
365
  t = _(e, i);
366
366
  if (t) {
367
367
  o = i;
@@ -393,9 +393,9 @@
393
393
  // find last child in current node
394
394
  while (n) {
395
395
  var o = V(t);
396
- n = _(e, D(t, o));
396
+ n = _(e, N(t, o));
397
397
  if (n) {
398
- t = D(t, o);
398
+ t = N(t, o);
399
399
  }
400
400
  }
401
401
  // check if last child has children
@@ -495,8 +495,9 @@
495
495
  var u = (0, t.useState)(), f = H(u, 2), d = f[0], s = f[1];
496
496
  var v = new Map;
497
497
  var p = function e(r, n, t, o, a) {
498
- var i = (0, l.keycode)(r.nativeEvent);
499
498
  r.stopPropagation();
499
+ var i = (0, l.keycode)(r.nativeEvent);
500
+ var u = t && (o === null || o === void 0 ? void 0 : o.length);
500
501
  switch (i) {
501
502
  case "up":
502
503
  r.preventDefault();
@@ -510,7 +511,7 @@
510
511
 
511
512
  case "left":
512
513
  r.preventDefault();
513
- if (t && (o === null || o === void 0 ? void 0 : o.length)) {
514
+ if (u) {
514
515
  a(false, r);
515
516
  } else {
516
517
  s(L(v, n));
@@ -519,7 +520,7 @@
519
520
 
520
521
  case "right":
521
522
  r.preventDefault();
522
- if (t && (o === null || o === void 0 ? void 0 : o.length)) {
523
+ if (u) {
523
524
  s(F(v, n));
524
525
  } else {
525
526
  a(true, r);
@@ -536,6 +537,11 @@
536
537
  s(U(v));
537
538
  break;
538
539
 
540
+ case "enter":
541
+ r.preventDefault();
542
+ a(!u, r);
543
+ break;
544
+
539
545
  default:
540
546
  // do nothing
541
547
  }
@@ -754,26 +760,26 @@
754
760
  }, P.apply(null, arguments);
755
761
  }
756
762
  function R(e, r) {
757
- return V(e) || D(e, r) || _(e, r) || K();
763
+ return V(e) || N(e, r) || _(e, r) || K();
758
764
  }
759
765
  function K() {
760
766
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
761
767
  }
762
768
  function _(e, r) {
763
769
  if (e) {
764
- if ("string" == typeof e) return N(e, r);
770
+ if ("string" == typeof e) return D(e, r);
765
771
  var n = {}.toString.call(e).slice(8, -1);
766
- return "Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? N(e, r) : void 0;
772
+ return "Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? D(e, r) : void 0;
767
773
  }
768
774
  }
769
- function N(e, r) {
775
+ function D(e, r) {
770
776
  (null == r || r > e.length) && (r = e.length);
771
777
  for (var n = 0, t = Array(r); n < r; n++) {
772
778
  t[n] = e[n];
773
779
  }
774
780
  return t;
775
781
  }
776
- function D(e, r) {
782
+ function N(e, r) {
777
783
  var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
778
784
  if (null != n) {
779
785
  var t, o, a, i, l = [], u = !0, c = !1;
@@ -1055,14 +1061,14 @@
1055
1061
  }
1056
1062
  return false;
1057
1063
  };
1058
- var N = function e(r) {
1064
+ var D = function e(r) {
1059
1065
  if (a === "withShiftModifier" || u) {
1060
1066
  if (T != null) {
1061
1067
  T(r.shiftKey);
1062
1068
  }
1063
1069
  }
1064
1070
  };
1065
- var D = function e(r, n) {
1071
+ var N = function e(r, n) {
1066
1072
  var t, o;
1067
1073
  // When rendering a single value key is not present, here we prevent `[undefined]` in path
1068
1074
  var a = n !== undefined ? [].concat(oe(x), [ n ]) : oe(x);
@@ -1107,7 +1113,7 @@
1107
1113
  elementRef: a,
1108
1114
  tabIndex: -1,
1109
1115
  onClick: function e(r) {
1110
- N(r);
1116
+ D(r);
1111
1117
  },
1112
1118
  "aria-expanded": t,
1113
1119
  "data-test": "toggle"
@@ -1199,7 +1205,7 @@
1199
1205
  tabIndex: -1,
1200
1206
  onClick: function e(r) {
1201
1207
  K = t;
1202
- D(r, n);
1208
+ N(r, n);
1203
1209
  },
1204
1210
  onKeyDown: function e(r) {
1205
1211
  L(r, true);