@splunk/react-ui 4.27.0 → 4.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/Box.js +45 -44
  2. package/Button.js +1 -2
  3. package/ButtonSimple.js +145 -147
  4. package/CHANGELOG.md +36 -2
  5. package/CollapsiblePanel.js +60 -73
  6. package/JSONTree.js +1311 -629
  7. package/Markdown.js +521 -222
  8. package/Modal.js +11 -4
  9. package/Multiselect.js +844 -804
  10. package/Paginator.js +593 -271
  11. package/TabBar.js +487 -312
  12. package/Table.js +5 -3
  13. package/TextArea.js +368 -344
  14. package/Tree.js +607 -519
  15. package/package.json +2 -2
  16. package/types/src/Box/Box.d.ts +3 -2
  17. package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +5 -4
  18. package/types/src/CollapsiblePanel/SingleOpenPanelGroup.d.ts +4 -4
  19. package/types/src/File/docs/examples/FullScreen.d.ts +1 -14
  20. package/types/src/JSONTree/JSONTreeItem.d.ts +45 -0
  21. package/types/src/JSONTree/renderTreeItems.d.ts +17 -0
  22. package/types/src/Markdown/renderers/MarkdownAnchorHeading.d.ts +1 -1
  23. package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +1 -1
  24. package/types/src/Markdown/renderers/MarkdownCode.d.ts +1 -1
  25. package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +1 -1
  26. package/types/src/Markdown/renderers/MarkdownHeading.d.ts +1 -1
  27. package/types/src/Markdown/renderers/MarkdownImage.d.ts +1 -1
  28. package/types/src/Markdown/renderers/MarkdownItem.d.ts +1 -1
  29. package/types/src/Markdown/renderers/MarkdownList.d.ts +1 -1
  30. package/types/src/Markdown/renderers/MarkdownParagraph.d.ts +1 -1
  31. package/types/src/Modal/Modal.d.ts +4 -5
  32. package/types/src/Multiselect/Normal.d.ts +1 -0
  33. package/types/src/Paginator/Button.d.ts +8 -3
  34. package/types/src/Paginator/Compact.d.ts +50 -0
  35. package/types/src/Paginator/PageControl.d.ts +37 -0
  36. package/types/src/Paginator/PageSelect.d.ts +32 -0
  37. package/types/src/Paginator/Paginator.d.ts +9 -4
  38. package/types/src/Paginator/docs/examples/Compact.d.ts +2 -0
  39. package/types/src/Paginator/docs/examples/CompactCustomLabel.d.ts +2 -0
  40. package/types/src/Paginator/docs/examples/CompactWithLabel.d.ts +2 -0
  41. package/types/src/Paginator/docs/examples/Labelled.d.ts +2 -0
  42. package/types/src/Paginator/docs/examples/PageControl.d.ts +2 -0
  43. package/types/src/Paginator/icons/ChevronLeft.d.ts +5 -0
  44. package/types/src/Paginator/icons/ChevronRight.d.ts +5 -0
  45. package/types/src/SlidingPanels/docs/examples/Modal.d.ts +1 -13
  46. package/types/src/TabBar/Tab.d.ts +12 -2
  47. package/types/src/TabBar/TabBar.d.ts +4 -3
  48. package/types/src/TabBar/TabBarContext.d.ts +6 -1
  49. package/types/src/TextArea/TextArea.d.ts +3 -2
  50. package/types/src/TextArea/icons/ClearButton.d.ts +3 -0
  51. package/types/src/TextArea/icons/SearchIcon.d.ts +1 -0
  52. package/types/src/Tree/TreeContext.d.ts +2 -1
  53. package/types/src/Tree/TreeItem.d.ts +18 -5
  54. package/types/src/JSONTree/JSONTreeContext.d.ts +0 -7
  55. package/types/src/JSONTree/TreeNode.d.ts +0 -44
package/Multiselect.js CHANGED
@@ -64,17 +64,17 @@
64
64
  Divider: () => /* reexport */ p.Divider,
65
65
  Heading: () => /* reexport */ p.Heading,
66
66
  Option: () => /* reexport */ J,
67
- default: () => /* reexport */ Fr
67
+ default: () => /* reexport */ $r
68
68
  });
69
69
  // CONCATENATED MODULE: external "react"
70
70
  const n = require("react");
71
71
  var r = e.n(n);
72
72
  // CONCATENATED MODULE: external "prop-types"
73
73
  const o = require("prop-types");
74
- var i = e.n(o);
74
+ var a = e.n(o);
75
75
  // CONCATENATED MODULE: external "lodash/has"
76
- const a = require("lodash/has");
77
- var l = e.n(a);
76
+ const i = require("lodash/has");
77
+ var l = e.n(i);
78
78
  // CONCATENATED MODULE: external "lodash/omit"
79
79
  const s = require("lodash/omit");
80
80
  var c = e.n(s);
@@ -115,9 +115,9 @@
115
115
  var n = h(e, t);
116
116
  var r, o;
117
117
  if (Object.getOwnPropertySymbols) {
118
- var i = Object.getOwnPropertySymbols(e);
119
- for (o = 0; o < i.length; o++) {
120
- r = i[o];
118
+ var a = Object.getOwnPropertySymbols(e);
119
+ for (o = 0; o < a.length; o++) {
120
+ r = a[o];
121
121
  if (t.indexOf(r) >= 0) continue;
122
122
  if (!Object.prototype.propertyIsEnumerable.call(e, r)) continue;
123
123
  n[r] = e[r];
@@ -129,9 +129,9 @@
129
129
  if (e == null) return {};
130
130
  var n = {};
131
131
  var r = Object.keys(e);
132
- var o, i;
133
- for (i = 0; i < r.length; i++) {
134
- o = r[i];
132
+ var o, a;
133
+ for (a = 0; a < r.length; a++) {
134
+ o = r[a];
135
135
  if (t.indexOf(o) >= 0) continue;
136
136
  n[o] = e[o];
137
137
  }
@@ -181,8 +181,8 @@
181
181
  return function n() {
182
182
  var r = k(e), o;
183
183
  if (t) {
184
- var i = k(this).constructor;
185
- o = Reflect.construct(r, arguments, i);
184
+ var a = k(this).constructor;
185
+ o = Reflect.construct(r, arguments, a);
186
186
  } else {
187
187
  o = r.apply(this, arguments);
188
188
  }
@@ -231,32 +231,32 @@
231
231
  }
232
232
  return e;
233
233
  }
234
- var j = {
234
+ var _ = {
235
235
  /** @private */
236
- active: i().bool,
237
- children: i().node,
238
- description: i().string,
239
- descriptionPosition: i().oneOf([ "right", "bottom" ]),
240
- disabled: i().bool,
241
- hidden: i().bool,
242
- icon: i().node,
243
- label: i().string.isRequired,
236
+ active: a().bool,
237
+ children: a().node,
238
+ description: a().string,
239
+ descriptionPosition: a().oneOf([ "right", "bottom" ]),
240
+ disabled: a().bool,
241
+ hidden: a().bool,
242
+ icon: a().node,
243
+ label: a().string.isRequired,
244
244
  /**
245
245
  * @private Passed down from <BaseSelect>
246
246
  */
247
- multiple: i().bool,
248
- matchRanges: i().arrayOf(i().shape({
249
- start: i().number.isRequired,
250
- end: i().number.isRequired
247
+ multiple: a().bool,
248
+ matchRanges: a().arrayOf(a().shape({
249
+ start: a().number.isRequired,
250
+ end: a().number.isRequired
251
251
  })),
252
252
  /** @private */
253
- onClick: i().func,
253
+ onClick: a().func,
254
254
  /** @private */
255
- selected: i().bool,
256
- truncate: i().bool,
257
- value: i().oneOfType([ i().string, i().number, i().bool ]).isRequired
255
+ selected: a().bool,
256
+ truncate: a().bool,
257
+ value: a().oneOfType([ a().string, a().number, a().bool ]).isRequired
258
258
  };
259
- var _ = {
259
+ var j = {
260
260
  descriptionPosition: "bottom",
261
261
  disabled: false,
262
262
  multiple: false,
@@ -273,14 +273,14 @@
273
273
  function n() {
274
274
  var e;
275
275
  b(this, n);
276
- for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) {
277
- o[i] = arguments[i];
276
+ for (var r = arguments.length, o = new Array(r), a = 0; a < r; a++) {
277
+ o[a] = arguments[a];
278
278
  }
279
279
  e = t.call.apply(t, [ this ].concat(o));
280
280
  I(C(e), "c", null);
281
281
  I(C(e), "handleClick", (function(t) {
282
- var n = e.props, r = n.onClick, o = n.value, i = n.disabled;
283
- if (!i) {
282
+ var n = e.props, r = n.onClick, o = n.value, a = n.disabled;
283
+ if (!a) {
284
284
  r === null || r === void 0 ? void 0 : r(t, {
285
285
  value: o
286
286
  });
@@ -308,7 +308,7 @@
308
308
  }, {
309
309
  key: "render",
310
310
  value: function e() {
311
- var t = this.props, n = t.value, o = t.children, i = t.label, a = t.multiple, l = v(t, [ "value", "children", "label", "multiple" ]);
311
+ var t = this.props, n = t.value, o = t.children, a = t.label, i = t.multiple, l = v(t, [ "value", "children", "label", "multiple" ]);
312
312
 
313
313
  return r().createElement(p.Item, d({
314
314
  "aria-selected": this.props.selected,
@@ -317,17 +317,17 @@
317
317
  ref: this.handleMount
318
318
  }, l, {
319
319
  selectable: true,
320
- selectableAppearance: a ? "checkbox" : undefined,
320
+ selectableAppearance: i ? "checkbox" : undefined,
321
321
  onClick: this.handleClick,
322
322
  role: "option",
323
323
  value: n.toString()
324
- }), o || i);
324
+ }), o || a);
325
325
  }
326
326
  } ]);
327
327
  return n;
328
328
  }(n.PureComponent);
329
- I(E, "propTypes", j);
330
- I(E, "defaultProps", _);
329
+ I(E, "propTypes", _);
330
+ I(E, "defaultProps", j);
331
331
  I(E, "type", p.Item);
332
332
  /* harmony default export */ const M = E;
333
333
  // CONCATENATED MODULE: ./src/Multiselect/Option.tsx
@@ -363,9 +363,9 @@
363
363
  var n = R(e, t);
364
364
  var r, o;
365
365
  if (Object.getOwnPropertySymbols) {
366
- var i = Object.getOwnPropertySymbols(e);
367
- for (o = 0; o < i.length; o++) {
368
- r = i[o];
366
+ var a = Object.getOwnPropertySymbols(e);
367
+ for (o = 0; o < a.length; o++) {
368
+ r = a[o];
369
369
  if (t.indexOf(r) >= 0) continue;
370
370
  if (!Object.prototype.propertyIsEnumerable.call(e, r)) continue;
371
371
  n[r] = e[r];
@@ -377,20 +377,20 @@
377
377
  if (e == null) return {};
378
378
  var n = {};
379
379
  var r = Object.keys(e);
380
- var o, i;
381
- for (i = 0; i < r.length; i++) {
382
- o = r[i];
380
+ var o, a;
381
+ for (a = 0; a < r.length; a++) {
382
+ o = r[a];
383
383
  if (t.indexOf(o) >= 0) continue;
384
384
  n[o] = e[o];
385
385
  }
386
386
  return n;
387
387
  }
388
- function T(e, t) {
388
+ function D(e, t) {
389
389
  if (!(e instanceof t)) {
390
390
  throw new TypeError("Cannot call a class as a function");
391
391
  }
392
392
  }
393
- function D(e, t) {
393
+ function T(e, t) {
394
394
  for (var n = 0; n < t.length; n++) {
395
395
  var r = t[n];
396
396
  r.enumerable = r.enumerable || false;
@@ -400,8 +400,8 @@
400
400
  }
401
401
  }
402
402
  function q(e, t, n) {
403
- if (t) D(e.prototype, t);
404
- if (n) D(e, n);
403
+ if (t) T(e.prototype, t);
404
+ if (n) T(e, n);
405
405
  return e;
406
406
  }
407
407
  function N(e, t) {
@@ -429,21 +429,21 @@
429
429
  return function n() {
430
430
  var r = H(e), o;
431
431
  if (t) {
432
- var i = H(this).constructor;
433
- o = Reflect.construct(r, arguments, i);
432
+ var a = H(this).constructor;
433
+ o = Reflect.construct(r, arguments, a);
434
434
  } else {
435
435
  o = r.apply(this, arguments);
436
436
  }
437
- return K(this, o);
437
+ return F(this, o);
438
438
  };
439
439
  }
440
- function K(e, t) {
440
+ function F(e, t) {
441
441
  if (t && (A(t) === "object" || typeof t === "function")) {
442
442
  return t;
443
443
  }
444
- return F(e);
444
+ return K(e);
445
445
  }
446
- function F(e) {
446
+ function K(e) {
447
447
  if (e === void 0) {
448
448
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
449
449
  }
@@ -481,31 +481,31 @@
481
481
  }
482
482
  var W = {
483
483
  /** @private */
484
- active: i().bool,
485
- children: i().node,
484
+ active: a().bool,
485
+ children: a().node,
486
486
  /**
487
487
  * @private this is passed down from Multiselect.
488
488
  */
489
- compact: i().bool,
490
- description: i().string,
491
- descriptionPosition: i().oneOf([ "right", "bottom" ]),
492
- disabled: i().bool,
493
- hidden: i().bool,
494
- icon: i().node,
495
- label: i().string.isRequired,
496
- matchRanges: i().arrayOf(i().shape({
497
- start: i().number.isRequired,
498
- end: i().number.isRequired
489
+ compact: a().bool,
490
+ description: a().string,
491
+ descriptionPosition: a().oneOf([ "right", "bottom" ]),
492
+ disabled: a().bool,
493
+ hidden: a().bool,
494
+ icon: a().node,
495
+ label: a().string.isRequired,
496
+ matchRanges: a().arrayOf(a().shape({
497
+ start: a().number.isRequired,
498
+ end: a().number.isRequired
499
499
  })),
500
500
  /** @private */
501
- onClick: i().func,
501
+ onClick: a().func,
502
502
  /** @private */
503
- selected: i().bool,
504
- selectedAppearance: i().oneOf([ "info", "success", "warning", "error" ]),
505
- selectedBackgroundColor: i().string,
506
- selectedForegroundColor: i().string,
507
- truncate: i().bool,
508
- value: i().oneOfType([ i().string, i().number, i().bool ]).isRequired
503
+ selected: a().bool,
504
+ selectedAppearance: a().oneOf([ "info", "success", "warning", "error" ]),
505
+ selectedBackgroundColor: a().string,
506
+ selectedForegroundColor: a().string,
507
+ truncate: a().bool,
508
+ value: a().oneOfType([ a().string, a().number, a().bool ]).isRequired
509
509
  };
510
510
  var U = {
511
511
  compact: false,
@@ -523,13 +523,13 @@
523
523
  var t = L(n);
524
524
  function n() {
525
525
  var e;
526
- T(this, n);
527
- for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) {
528
- o[i] = arguments[i];
526
+ D(this, n);
527
+ for (var r = arguments.length, o = new Array(r), a = 0; a < r; a++) {
528
+ o[a] = arguments[a];
529
529
  }
530
530
  e = t.call.apply(t, [ this ].concat(o));
531
- z(F(e), "c", null);
532
- z(F(e), "handleMount", (function(t) {
531
+ z(K(e), "c", null);
532
+ z(K(e), "handleMount", (function(t) {
533
533
  e.c = t;
534
534
  }));
535
535
  return e;
@@ -578,10 +578,10 @@
578
578
  var re = e.n(ne);
579
579
  // CONCATENATED MODULE: external "lodash/isUndefined"
580
580
  const oe = require("lodash/isUndefined");
581
- var ie = e.n(oe);
581
+ var ae = e.n(oe);
582
582
  // CONCATENATED MODULE: external "lodash/keys"
583
- const ae = require("lodash/keys");
584
- var le = e.n(ae);
583
+ const ie = require("lodash/keys");
584
+ var le = e.n(ie);
585
585
  // CONCATENATED MODULE: external "lodash/memoize"
586
586
  const se = require("lodash/memoize");
587
587
  var ce = e.n(se);
@@ -613,8 +613,8 @@
613
613
  const ke = require("@splunk/react-ui/Text");
614
614
  var Ie = e.n(ke);
615
615
  // CONCATENATED MODULE: external "@splunk/react-icons/CaretSmallDown"
616
- const je = require("@splunk/react-icons/CaretSmallDown");
617
- var _e = e.n(je);
616
+ const _e = require("@splunk/react-icons/CaretSmallDown");
617
+ var je = e.n(_e);
618
618
  // CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Caret"
619
619
  const Ee = require("@splunk/react-icons/enterprise/Caret");
620
620
  var Me = e.n(Ee);
@@ -627,41 +627,41 @@
627
627
  screenReaderText: null,
628
628
  hideDefaultTooltip: true,
629
629
  size: .5
630
- }) : r().createElement(_e(), null);
630
+ }) : r().createElement(je(), null);
631
631
  return o;
632
632
  };
633
633
  /* harmony default export */ const Ve = Pe;
634
634
  // CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Search"
635
635
  const Re = require("@splunk/react-icons/enterprise/Search");
636
- var Te = e.n(Re);
636
+ var De = e.n(Re);
637
637
  // CONCATENATED MODULE: external "@splunk/react-icons/Magnifier"
638
- const De = require("@splunk/react-icons/Magnifier");
639
- var qe = e.n(De);
638
+ const Te = require("@splunk/react-icons/Magnifier");
639
+ var qe = e.n(Te);
640
640
  // CONCATENATED MODULE: ./src/Select/icons/Search.tsx
641
641
  var Ne = function e() {
642
642
  var t = (0, Ae.useSplunkTheme)(), n = t.isEnterprise, o = t.isCompact;
643
- var i = (0, u._)("Search");
644
- var a = o ? "20px" : "24px";
645
- var l = n ? r().createElement(Te(), {
643
+ var a = (0, u._)("Search");
644
+ var i = o ? "20px" : "24px";
645
+ var l = n ? r().createElement(De(), {
646
646
  role: "presentation",
647
647
  size: "16px",
648
- screenReaderText: i,
648
+ screenReaderText: a,
649
649
  hideDefaultTooltip: true
650
650
  }) : r().createElement(qe(), {
651
651
  role: "presentation",
652
- "aria-label": i,
653
- width: a,
654
- height: a
652
+ "aria-label": a,
653
+ width: i,
654
+ height: i
655
655
  });
656
656
  return l;
657
657
  };
658
658
  /* harmony default export */ const Be = Ne;
659
659
  // CONCATENATED MODULE: external "styled-components"
660
660
  const Le = require("styled-components");
661
- var Ke = e.n(Le);
661
+ var Fe = e.n(Le);
662
662
  // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
663
- const Fe = require("@splunk/react-ui/Clickable");
664
- var $e = e.n(Fe);
663
+ const Ke = require("@splunk/react-ui/Clickable");
664
+ var $e = e.n(Ke);
665
665
  // CONCATENATED MODULE: external "@splunk/react-ui/Switch"
666
666
  const He = require("@splunk/react-ui/Switch");
667
667
  var ze = e.n(He);
@@ -673,15 +673,15 @@
673
673
  }), Ae.variables.fontSizeSmall, (0, Ae.pick)({
674
674
  prisma: "16px"
675
675
  }));
676
- var Ue = Ke().span.withConfig({
676
+ var Ue = Fe().span.withConfig({
677
677
  displayName: "ItemStyles__StyledItemDescriptionBottom",
678
678
  componentId: "sc-4kc053-0"
679
679
  })([ "", ";display:block;" ], We);
680
- var Ge = Ke().span.withConfig({
680
+ var Ge = Fe().span.withConfig({
681
681
  displayName: "ItemStyles__StyledItemDescriptionRight",
682
682
  componentId: "sc-4kc053-1"
683
683
  })([ "", ";float:right;padding-left:", ";max-width:50%;text-align:right;box-sizing:border-box;" ], We, Ae.variables.spacing);
684
- var Je = Ke().div.withConfig({
684
+ var Je = Fe().div.withConfig({
685
685
  displayName: "ItemStyles__StyledItemSelectedIcon",
686
686
  componentId: "sc-4kc053-2"
687
687
  })([ "position:absolute;", " color:", ";" ], (0, Ae.pick)({
@@ -691,7 +691,7 @@
691
691
  prisma: Ae.variables.contentColorActive,
692
692
  enterprise: Ae.variables.accentColorL10
693
693
  }));
694
- var Qe = Ke().span.withConfig({
694
+ var Qe = Fe().span.withConfig({
695
695
  displayName: "ItemStyles__StyledItemIcon",
696
696
  componentId: "sc-4kc053-3"
697
697
  })([ "flex:0 0 auto;padding-right:", ";min-width:10px;display:inline-block;text-align:center;vertical-align:", ";", "" ], (0,
@@ -705,7 +705,7 @@
705
705
  prisma: (0, Le.css)([ "color:", ";display:inline-flex;align-items:center;min-width:20px;min-height:20px;& > svg{width:20px;height:20px;}" ], Ae.variables.contentColorMuted),
706
706
  enterprise: (0, Le.css)([ "transform:translateY(-1px);" ])
707
707
  }));
708
- var Xe = Ke()($e()).withConfig({
708
+ var Xe = Fe()($e()).withConfig({
709
709
  displayName: "ItemStyles__StyledClickable",
710
710
  componentId: "sc-4kc053-4"
711
711
  })([ "display:block;position:relative;cursor:pointer;color:", ";word-wrap:break-word;max-width:100%;width:100%;padding:", ";", " ", " ", " &:not([disabled]){&:hover{background:", ";", "}&:focus{outline:0;box-shadow:", ";", "}", " ", "}&[disabled]{color:", ";cursor:not-allowed;", ",", "{color:inherit;}", "{cursor:not-allowed;color:", ";}", "}", "" ], (0,
@@ -787,7 +787,7 @@
787
787
  Qe, Ae.variables.contentColorActive)
788
788
  });
789
789
  }));
790
- var Ye = Ke()(ze()).withConfig({
790
+ var Ye = Fe()(ze()).withConfig({
791
791
  displayName: "ItemStyles__StyledSwitch",
792
792
  componentId: "sc-4kc053-5"
793
793
  })([ "position:absolute;left:", ";top:", ";" ], (0, Ae.pick)({
@@ -800,25 +800,25 @@
800
800
  compact: "2px"
801
801
  }
802
802
  }));
803
- var Ze = Ke().span.withConfig({
803
+ var Ze = Fe().span.withConfig({
804
804
  displayName: "ItemStyles__StyledInnerWrapper",
805
805
  componentId: "sc-4kc053-6"
806
806
  })([ "display:flex;align-items:flex-start;" ]);
807
- var et = Ke().span.withConfig({
807
+ var et = Fe().span.withConfig({
808
808
  displayName: "ItemStyles__StyledTitleAndDescriptionWrapper",
809
809
  componentId: "sc-4kc053-7"
810
810
  })([ "max-width:100%;width:100%;align-self:center;word-break:break-word;white-space:normal;", "" ], (function(e) {
811
811
  var t = e.$truncate;
812
812
  return t && (0, Le.css)([ "white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" ]);
813
813
  }));
814
- var tt = Ke().div.withConfig({
814
+ var tt = Fe().div.withConfig({
815
815
  displayName: "ItemStyles__StyledLabel",
816
816
  componentId: "sc-4kc053-8"
817
817
  })([ "overflow:inherit;white-space:inherit;text-overflow:inherit;max-width:100%;min-height:20px;", "" ], (function(e) {
818
818
  var t = e.$truncate;
819
819
  return t && (0, Le.css)([ "display:block;clear:both;" ]);
820
820
  }));
821
- var nt = Ke().span.withConfig({
821
+ var nt = Fe().span.withConfig({
822
822
  displayName: "ItemStyles__StyledMatch",
823
823
  componentId: "sc-4kc053-9"
824
824
  })([ "border-bottom:1px solid ", ";" ], (0, Ae.pick)({
@@ -828,7 +828,7 @@
828
828
  light: Ae.variables.gray45
829
829
  }
830
830
  }));
831
- var rt = Ke().span.withConfig({
831
+ var rt = Fe().span.withConfig({
832
832
  displayName: "ItemStyles__StyledSubmenu",
833
833
  componentId: "sc-4kc053-10"
834
834
  })([ "float:right;padding-left:", ";color:", ";", "" ], Ae.variables.spacingSmall, (0,
@@ -839,11 +839,11 @@
839
839
  prisma: (0, Le.css)([ "& > svg{width:20px;height:20px;}" ])
840
840
  }));
841
841
  // CONCATENATED MODULE: ./src/Select/SelectAllOptionStyles.ts
842
- var ot = Ke()(tt).withConfig({
842
+ var ot = Fe()(tt).withConfig({
843
843
  displayName: "SelectAllOptionStyles__StyledSelectAllLabel",
844
844
  componentId: "y6bn08-0"
845
845
  })([ "font-weight:", ";" ], Ae.variables.fontWeightBold);
846
- var it = Ke()(M).withConfig({
846
+ var at = Fe()(M).withConfig({
847
847
  displayName: "SelectAllOptionStyles__StyledSelectAllOption",
848
848
  componentId: "y6bn08-1"
849
849
  })([ "padding-inline-start:", ";box-shadow:none;" ], (0, Ae.pick)({
@@ -851,26 +851,26 @@
851
851
  enterprise: "32px;"
852
852
  }));
853
853
  // CONCATENATED MODULE: ./src/Select/SelectAllOption.tsx
854
- var at = {
855
- active: i().bool,
856
- elementRef: i().oneOfType([ i().func, i().object ]),
857
- id: i().string,
858
- onClick: i().func,
859
- selectAllLabel: i().string,
860
- totalCount: i().number,
861
- changedToggle: i().bool,
862
- selected: i().oneOf([ false, true, "some" ])
854
+ var it = {
855
+ active: a().bool,
856
+ elementRef: a().oneOfType([ a().func, a().object ]),
857
+ id: a().string,
858
+ onClick: a().func,
859
+ selectAllLabel: a().string,
860
+ totalCount: a().number,
861
+ changedToggle: a().bool,
862
+ selected: a().oneOf([ false, true, "some" ])
863
863
  };
864
864
  var lt = r().forwardRef((function(e, t) {
865
- var n = e.active, o = e.id, i = e.onClick, a = e.selectAllLabel, l = e.totalCount, s = e.changedToggle, c = e.selected;
865
+ var n = e.active, o = e.id, a = e.onClick, i = e.selectAllLabel, l = e.totalCount, s = e.changedToggle, c = e.selected;
866
866
  // When toggle is changed the total count is not displayed anymore so the count is now shown in the Select all menu item
867
867
  var p = s ? " (".concat(l === null || l === void 0 ? void 0 : l.toString(), ")") : "";
868
868
 
869
- return r().createElement(it, {
870
- label: a,
869
+ return r().createElement(at, {
870
+ label: i,
871
871
  value: "selectAll",
872
872
  key: "selectAll",
873
- onClick: i,
873
+ onClick: a,
874
874
  "data-test": "select-all",
875
875
  "aria-keyshortcuts": "Control+A",
876
876
  id: o,
@@ -895,15 +895,15 @@
895
895
  $truncate: false
896
896
  }, r().createElement(ot, {
897
897
  $truncate: false
898
- }, a))));
898
+ }, i))));
899
899
  }));
900
- lt.propTypes = at;
900
+ lt.propTypes = it;
901
901
  /* harmony default export */ const st = lt;
902
902
  // CONCATENATED MODULE: external "@splunk/react-ui/Button"
903
903
  const ct = require("@splunk/react-ui/Button");
904
904
  var ut = e.n(ct);
905
905
  // CONCATENATED MODULE: ./src/Select/SelectBaseStyles.ts
906
- var pt = Ke()(ut()).withConfig({
906
+ var pt = Fe()(ut()).withConfig({
907
907
  displayName: "SelectBaseStyles__StyledButton",
908
908
  componentId: "sc-16cj7sk-0"
909
909
  })([ "&[data-inline]{width:", ";}", "" ], (function(e) {
@@ -913,22 +913,22 @@
913
913
  var t = e.$multiple;
914
914
  return !t && "flex-grow: 0;";
915
915
  }));
916
- var ft = Ke().span.withConfig({
916
+ var ft = Fe().span.withConfig({
917
917
  displayName: "SelectBaseStyles__StyledLinkIcon",
918
918
  componentId: "sc-16cj7sk-1"
919
919
  })([ "padding-right:2px;" ]);
920
- var dt = Ke().span.withConfig({
920
+ var dt = Fe().span.withConfig({
921
921
  displayName: "SelectBaseStyles__StyledLinkCaret",
922
922
  componentId: "sc-16cj7sk-2"
923
923
  })([ "padding-left:2px;" ]);
924
- var vt = Ke().div.withConfig({
924
+ var vt = Fe().div.withConfig({
925
925
  displayName: "SelectBaseStyles__StyledFilter",
926
926
  componentId: "sc-16cj7sk-3"
927
927
  })([ "padding:", ";min-width:160px;" ], (0, Ae.pick)({
928
928
  enterprise: "8px",
929
929
  prisma: "10px 16px"
930
930
  }));
931
- var ht = Ke().span.withConfig({
931
+ var ht = Fe().span.withConfig({
932
932
  displayName: "SelectBaseStyles__StyledSearchIconWrapper",
933
933
  componentId: "sc-16cj7sk-4"
934
934
  })([ "color:", ";pointer-events:none;padding:", ";" ], (0, Ae.pick)({
@@ -941,21 +941,21 @@
941
941
  comfortable: "0 8px",
942
942
  compact: "0 6px"
943
943
  }));
944
- var bt = Ke().span.withConfig({
944
+ var bt = Fe().span.withConfig({
945
945
  displayName: "SelectBaseStyles__StyledCount",
946
946
  componentId: "sc-16cj7sk-5"
947
947
  })([ "padding-right:", ";" ], (0, Ae.pick)({
948
948
  enterprise: Ae.variables.spacingQuarter,
949
949
  prisma: Ae.variables.spacingXSmall
950
950
  }));
951
- var yt = Ke()(Se()).withConfig({
951
+ var yt = Fe()(Se()).withConfig({
952
952
  displayName: "SelectBaseStyles__StyledControlsLink",
953
953
  componentId: "sc-16cj7sk-6"
954
954
  })([ "margin-right:20px;", ";" ], (function(e) {
955
955
  var t = e.$disabled;
956
956
  return t && (0, Le.css)([ "color:", ";" ], Ae.variables.contentColorDisabled);
957
957
  }));
958
- var mt = Ke().div.withConfig({
958
+ var mt = Fe().div.withConfig({
959
959
  displayName: "SelectBaseStyles__StyledToggleAllControls",
960
960
  componentId: "sc-16cj7sk-7"
961
961
  })([ "padding:", ";", "" ], (0, Ae.pick)({
@@ -982,7 +982,7 @@
982
982
  }
983
983
  var r = null;
984
984
  var o = false;
985
- var i = t.filter((function(e) {
985
+ var a = t.filter((function(e) {
986
986
  var t = gt(e, n.index);
987
987
  if (t === n.value) {
988
988
  o = true;
@@ -991,22 +991,22 @@
991
991
  // If we haven't found a match yet, keep track of the next closest match.
992
992
  // Secondary matching looks for the closest character of a higher value, and failing that, closest of a lower value.
993
993
  if (!o) {
994
- var i = gt(r, n.index);
995
- if (!i) {
994
+ var a = gt(r, n.index);
995
+ if (!a) {
996
996
  r = e;
997
997
  } else if (t > n.value) {
998
- if (i < n.value) {
998
+ if (a < n.value) {
999
999
  r = e;
1000
- } else if (i > t) {
1000
+ } else if (a > t) {
1001
1001
  r = e;
1002
1002
  }
1003
- } else if (t > i) {
1003
+ } else if (t > a) {
1004
1004
  r = e;
1005
1005
  }
1006
1006
  }
1007
1007
  return false;
1008
1008
  }));
1009
- return i.length === 0 && r ? [ r ] : i;
1009
+ return a.length === 0 && r ? [ r ] : a;
1010
1010
  };
1011
1011
  // CONCATENATED MODULE: ./src/utils/ssrDocument.ts
1012
1012
  /* eslint-disable @typescript-eslint/no-empty-function */
@@ -1145,30 +1145,30 @@
1145
1145
  return kt.apply(this, arguments);
1146
1146
  }
1147
1147
  function It(e, t) {
1148
- return Et(e) || _t(e, t) || Pt(e, t) || jt();
1148
+ return Et(e) || jt(e, t) || Pt(e, t) || _t();
1149
1149
  }
1150
- function jt() {
1150
+ function _t() {
1151
1151
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1152
1152
  }
1153
- function _t(e, t) {
1153
+ function jt(e, t) {
1154
1154
  if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(e))) return;
1155
1155
  var n = [];
1156
1156
  var r = true;
1157
1157
  var o = false;
1158
- var i = undefined;
1158
+ var a = undefined;
1159
1159
  try {
1160
- for (var a = e[Symbol.iterator](), l; !(r = (l = a.next()).done); r = true) {
1160
+ for (var i = e[Symbol.iterator](), l; !(r = (l = i.next()).done); r = true) {
1161
1161
  n.push(l.value);
1162
1162
  if (t && n.length === t) break;
1163
1163
  }
1164
1164
  } catch (e) {
1165
1165
  o = true;
1166
- i = e;
1166
+ a = e;
1167
1167
  } finally {
1168
1168
  try {
1169
- if (!r && a["return"] != null) a["return"]();
1169
+ if (!r && i["return"] != null) i["return"]();
1170
1170
  } finally {
1171
- if (o) throw i;
1171
+ if (o) throw a;
1172
1172
  }
1173
1173
  }
1174
1174
  return n;
@@ -1184,26 +1184,26 @@
1184
1184
  }
1185
1185
  function Pt(e, t) {
1186
1186
  if (!e) return;
1187
- if (typeof e === "string") return Tt(e, t);
1187
+ if (typeof e === "string") return Dt(e, t);
1188
1188
  var n = Object.prototype.toString.call(e).slice(8, -1);
1189
1189
  if (n === "Object" && e.constructor) n = e.constructor.name;
1190
1190
  if (n === "Map" || n === "Set") return Array.from(e);
1191
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Tt(e, t);
1191
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Dt(e, t);
1192
1192
  }
1193
1193
  function Vt(e) {
1194
1194
  if (typeof Symbol !== "undefined" && Symbol.iterator in Object(e)) return Array.from(e);
1195
1195
  }
1196
1196
  function Rt(e) {
1197
- if (Array.isArray(e)) return Tt(e);
1197
+ if (Array.isArray(e)) return Dt(e);
1198
1198
  }
1199
- function Tt(e, t) {
1199
+ function Dt(e, t) {
1200
1200
  if (t == null || t > e.length) t = e.length;
1201
1201
  for (var n = 0, r = new Array(t); n < t; n++) {
1202
1202
  r[n] = e[n];
1203
1203
  }
1204
1204
  return r;
1205
1205
  }
1206
- function Dt(e, t) {
1206
+ function Tt(e, t) {
1207
1207
  if (!(e instanceof t)) {
1208
1208
  throw new TypeError("Cannot call a class as a function");
1209
1209
  }
@@ -1242,20 +1242,20 @@
1242
1242
  };
1243
1243
  return Lt(e, t);
1244
1244
  }
1245
- function Kt(e) {
1245
+ function Ft(e) {
1246
1246
  var t = Ht();
1247
1247
  return function n() {
1248
1248
  var r = zt(e), o;
1249
1249
  if (t) {
1250
- var i = zt(this).constructor;
1251
- o = Reflect.construct(r, arguments, i);
1250
+ var a = zt(this).constructor;
1251
+ o = Reflect.construct(r, arguments, a);
1252
1252
  } else {
1253
1253
  o = r.apply(this, arguments);
1254
1254
  }
1255
- return Ft(this, o);
1255
+ return Kt(this, o);
1256
1256
  };
1257
1257
  }
1258
- function Ft(e, t) {
1258
+ function Kt(e, t) {
1259
1259
  if (t && (Wt(t) === "object" || typeof t === "function")) {
1260
1260
  return t;
1261
1261
  }
@@ -1339,50 +1339,50 @@
1339
1339
  return e;
1340
1340
  }
1341
1341
  var Qt = {
1342
- allowKeyMatching: i().bool,
1343
- allowNewValues: i().bool,
1344
- animateLoading: i().bool,
1345
- appearance: i().oneOf([ "default", "link", "primary", "pill", "toggle", "flat" ]),
1346
- append: i().bool,
1347
- children: i().node,
1348
- defaultPlacement: i().oneOf([ "above", "below", "vertical" ]),
1349
- defaultValues: i().array,
1350
- describedBy: i().string,
1351
- disabled: i().bool,
1352
- elementRef: i().oneOfType([ i().func, i().object ]),
1353
- error: i().bool,
1354
- filter: i().oneOf([ false, true, "controlled" ]),
1355
- footerMessage: i().node,
1356
- inline: i().bool,
1357
- inputId: i().string,
1358
- inputRef: i().oneOfType([ i().func, i().object ]),
1359
- isLoadingOptions: i().bool,
1360
- labelledBy: i().string,
1361
- labelText: i().string,
1362
- loadingMessage: i().node,
1363
- menuStyle: i().object,
1364
- multiple: i().bool,
1365
- name: i().string,
1366
- noOptionsMessage: i().node,
1367
- onChange: i().func,
1368
- onClose: i().func,
1369
- onFilterChange: i().func,
1370
- onOpen: i().func,
1371
- onScroll: i().func,
1372
- onScrollBottom: i().func,
1342
+ allowKeyMatching: a().bool,
1343
+ allowNewValues: a().bool,
1344
+ animateLoading: a().bool,
1345
+ appearance: a().oneOf([ "default", "link", "primary", "pill", "toggle", "flat" ]),
1346
+ append: a().bool,
1347
+ children: a().node,
1348
+ defaultPlacement: a().oneOf([ "above", "below", "vertical" ]),
1349
+ defaultValues: a().array,
1350
+ describedBy: a().string,
1351
+ disabled: a().bool,
1352
+ elementRef: a().oneOfType([ a().func, a().object ]),
1353
+ error: a().bool,
1354
+ filter: a().oneOf([ false, true, "controlled" ]),
1355
+ footerMessage: a().node,
1356
+ inline: a().bool,
1357
+ inputId: a().string,
1358
+ inputRef: a().oneOfType([ a().func, a().object ]),
1359
+ isLoadingOptions: a().bool,
1360
+ labelledBy: a().string,
1361
+ labelText: a().string,
1362
+ loadingMessage: a().node,
1363
+ menuStyle: a().object,
1364
+ multiple: a().bool,
1365
+ name: a().string,
1366
+ noOptionsMessage: a().node,
1367
+ onChange: a().func,
1368
+ onClose: a().func,
1369
+ onFilterChange: a().func,
1370
+ onOpen: a().func,
1371
+ onScroll: a().func,
1372
+ onScrollBottom: a().func,
1373
1373
  /** @private. */
1374
- required: i().bool,
1375
- placeholder: i().string,
1376
- prefixLabel: i().string,
1377
- prepend: i().bool,
1378
- repositionMode: i().oneOf([ "none", "flip" ]),
1379
- selectAllAppearance: i().oneOf([ "buttongroup", "checkbox" ]),
1380
- showSelectedValuesFirst: i().oneOf([ "nextOpen", "immediately", "never" ]),
1381
- suffixLabel: i().string,
1382
- tabConfirmsNewValue: i().bool,
1383
- values: i().array,
1374
+ required: a().bool,
1375
+ placeholder: a().string,
1376
+ prefixLabel: a().string,
1377
+ prepend: a().bool,
1378
+ repositionMode: a().oneOf([ "none", "flip" ]),
1379
+ selectAllAppearance: a().oneOf([ "buttongroup", "checkbox" ]),
1380
+ showSelectedValuesFirst: a().oneOf([ "nextOpen", "immediately", "never" ]),
1381
+ suffixLabel: a().string,
1382
+ tabConfirmsNewValue: a().bool,
1383
+ values: a().array,
1384
1384
  /** @private. */
1385
- virtualization: i().number
1385
+ virtualization: a().number
1386
1386
  };
1387
1387
  var Xt = {
1388
1388
  allowKeyMatching: true,
@@ -1428,7 +1428,7 @@
1428
1428
  }
1429
1429
  var rn = function(e) {
1430
1430
  Bt(o, e);
1431
- var t = Kt(o);
1431
+ var t = Ft(o);
1432
1432
  Nt(o, null, [ {
1433
1433
  key: "validateAppearance",
1434
1434
  // @docs-props-type CompactPropsBase
@@ -1437,149 +1437,149 @@
1437
1437
  }
1438
1438
  } ]);
1439
1439
  function o(e) {
1440
- var i;
1441
- Dt(this, o);
1442
- i = t.call(this, e);
1443
- Jt($t(i), "activeItemId", void 0);
1444
- Jt($t(i), "activeValue", void 0);
1445
- Jt($t(i), "availableOptionCount", void 0);
1446
- Jt($t(i), "controlledExternally", void 0);
1447
- Jt($t(i), "displayedValues", void 0);
1448
- Jt($t(i), "dropdown", null);
1449
- Jt($t(i), "firstSelectedEnabledOption", null);
1450
- Jt($t(i), "firstSelectedOptionIndex", void 0);
1451
- Jt($t(i), "menuId", void 0);
1452
- Jt($t(i), "previousActiveIndex", null);
1453
- Jt($t(i), "selectedOptionCount", void 0);
1454
- Jt($t(i), "optionRefsByKey", void 0);
1455
- Jt($t(i), "matchCharacter", void 0);
1456
- Jt($t(i), "matchTimeout", void 0);
1457
- Jt($t(i), "currentMatchOptions", void 0);
1458
- Jt($t(i), "availableMatchOptions", void 0);
1459
- Jt($t(i), "optionSelection", void 0);
1460
- Jt($t(i), "resetMatches", (function() {
1461
- i.matchCharacter = null;
1462
- i.currentMatchOptions = [];
1463
- if (i.matchTimeout) {
1464
- clearTimeout(i.matchTimeout);
1440
+ var a;
1441
+ Tt(this, o);
1442
+ a = t.call(this, e);
1443
+ Jt($t(a), "activeItemId", void 0);
1444
+ Jt($t(a), "activeValue", void 0);
1445
+ Jt($t(a), "availableOptionCount", void 0);
1446
+ Jt($t(a), "controlledExternally", void 0);
1447
+ Jt($t(a), "displayedValues", void 0);
1448
+ Jt($t(a), "dropdown", null);
1449
+ Jt($t(a), "firstSelectedEnabledOption", null);
1450
+ Jt($t(a), "firstSelectedOptionIndex", void 0);
1451
+ Jt($t(a), "menuId", void 0);
1452
+ Jt($t(a), "previousActiveIndex", null);
1453
+ Jt($t(a), "selectedOptionCount", void 0);
1454
+ Jt($t(a), "optionRefsByKey", void 0);
1455
+ Jt($t(a), "matchCharacter", void 0);
1456
+ Jt($t(a), "matchTimeout", void 0);
1457
+ Jt($t(a), "currentMatchOptions", void 0);
1458
+ Jt($t(a), "availableMatchOptions", void 0);
1459
+ Jt($t(a), "optionSelection", void 0);
1460
+ Jt($t(a), "resetMatches", (function() {
1461
+ a.matchCharacter = null;
1462
+ a.currentMatchOptions = [];
1463
+ if (a.matchTimeout) {
1464
+ clearTimeout(a.matchTimeout);
1465
1465
  }
1466
1466
  }));
1467
- Jt($t(i), "handleSelectAll", (function(e) {
1467
+ Jt($t(a), "handleSelectAll", (function(e) {
1468
1468
  var t, n, o;
1469
- var a = i.props, l = a.name, s = a.children, c = a.multiple;
1469
+ var i = a.props, l = i.name, s = i.children, c = i.multiple;
1470
1470
  // this doesn't make sense if we can't select multiple values
1471
1471
  if (!c) {
1472
1472
  return;
1473
1473
  }
1474
- var u = (t = i.getCurrentValues()) !== null && t !== void 0 ? t : [];
1475
- var p = de()(u.concat(i.displayedValues));
1474
+ var u = (t = a.getCurrentValues()) !== null && t !== void 0 ? t : [];
1475
+ var p = de()(u.concat(a.displayedValues));
1476
1476
  p = r().Children.toArray(s).filter((function(e) {
1477
1477
  return tn(e) && re()(p, e.props.value) && (!e.props.disabled || re()(u, e.props.value));
1478
1478
  })).map((function(e) {
1479
1479
  return e.props.value;
1480
1480
  }));
1481
- if (!i.isControlled()) {
1482
- i.setState({
1481
+ if (!a.isControlled()) {
1482
+ a.setState({
1483
1483
  values: p
1484
1484
  });
1485
1485
  }
1486
- (n = (o = i.props).onChange) === null || n === void 0 ? void 0 : n.call(o, e, {
1486
+ (n = (o = a.props).onChange) === null || n === void 0 ? void 0 : n.call(o, e, {
1487
1487
  values: p,
1488
1488
  name: l,
1489
1489
  reason: "selectAll"
1490
1490
  });
1491
1491
  }));
1492
- Jt($t(i), "handleClearAll", (function(e) {
1492
+ Jt($t(a), "handleClearAll", (function(e) {
1493
1493
  var t, n, o;
1494
- var a = i.props, l = a.name, s = a.children, c = a.multiple;
1494
+ var i = a.props, l = i.name, s = i.children, c = i.multiple;
1495
1495
  // this doesn't make sense if we can't select multiple values
1496
1496
  if (!c) {
1497
1497
  return;
1498
1498
  }
1499
- var u = (t = i.getCurrentValues()) !== null && t !== void 0 ? t : [];
1500
- var p = he().apply(void 0, [ u ].concat(Mt(i.displayedValues)));
1499
+ var u = (t = a.getCurrentValues()) !== null && t !== void 0 ? t : [];
1500
+ var p = he().apply(void 0, [ u ].concat(Mt(a.displayedValues)));
1501
1501
  // this will unselect all selected values unless those values are disabled or hidden by the filter
1502
1502
  var f = r().Children.toArray(s).filter((function(e) {
1503
1503
  return tn(e) && (re()(u, e.props.value) && e.props.disabled || re()(p, e.props.value));
1504
1504
  })).map((function(e) {
1505
1505
  return e.props.value;
1506
1506
  }));
1507
- if (!i.isControlled()) {
1508
- i.setState({
1507
+ if (!a.isControlled()) {
1508
+ a.setState({
1509
1509
  values: f
1510
1510
  });
1511
1511
  }
1512
- (n = (o = i.props).onChange) === null || n === void 0 ? void 0 : n.call(o, e, {
1512
+ (n = (o = a.props).onChange) === null || n === void 0 ? void 0 : n.call(o, e, {
1513
1513
  values: f,
1514
1514
  name: l,
1515
1515
  reason: "clearAll"
1516
1516
  });
1517
1517
  }));
1518
- Jt($t(i), "handleTextKeyDown", (function(e) {
1519
- var t = i.props, r = t.children, o = t.onScrollBottom, a = t.tabConfirmsNewValue;
1518
+ Jt($t(a), "handleTextKeyDown", (function(e) {
1519
+ var t = a.props, r = t.children, o = t.onScrollBottom, i = t.tabConfirmsNewValue;
1520
1520
  var l = (0, ge.keycode)(e.nativeEvent);
1521
1521
  if (l === "tab") {
1522
- if (a && !ie()(i.activeValue) && i.availableOptionCount <= 1) {
1522
+ if (i && !ae()(a.activeValue) && a.availableOptionCount <= 1) {
1523
1523
  e.preventDefault();
1524
- i.toggleValue(e, i.activeValue);
1524
+ a.toggleValue(e, a.activeValue);
1525
1525
  }
1526
1526
  }
1527
1527
  if (e.shiftKey || e.metaKey || e.ctrlKey) {
1528
1528
  if (l === "a" && (e.ctrlKey || e.metaKey)) {
1529
1529
  // handle control + A
1530
- if (i.optionSelection === "all") {
1531
- i.handleClearAll(e);
1530
+ if (a.optionSelection === "all") {
1531
+ a.handleClearAll(e);
1532
1532
  } else {
1533
- i.handleSelectAll(e);
1533
+ a.handleSelectAll(e);
1534
1534
  }
1535
1535
  }
1536
1536
  return;
1537
1537
  }
1538
1538
  if (l === "down") {
1539
1539
  e.preventDefault();
1540
- i.setState((function(e) {
1540
+ a.setState((function(e) {
1541
1541
  return {
1542
- activeIndex: Math.min(e.activeIndex + 1, i.props.selectAllAppearance === "checkbox" ? i.availableOptionCount : i.availableOptionCount - 1)
1542
+ activeIndex: Math.min(e.activeIndex + 1, a.props.selectAllAppearance === "checkbox" ? a.availableOptionCount : a.availableOptionCount - 1)
1543
1543
  };
1544
1544
  }));
1545
1545
  if (r && o) {
1546
1546
  var s;
1547
- var c = n.Children.toArray(r).length - (2 + ((s = i.getCurrentValues()) !== null && s !== void 0 ? s : []).length);
1548
- if (i.state.activeIndex === c) {
1549
- i.handleScrollBottom(e);
1547
+ var c = n.Children.toArray(r).length - (2 + ((s = a.getCurrentValues()) !== null && s !== void 0 ? s : []).length);
1548
+ if (a.state.activeIndex === c) {
1549
+ a.handleScrollBottom(e);
1550
1550
  }
1551
1551
  }
1552
1552
  }
1553
1553
  if (l === "up") {
1554
1554
  e.preventDefault();
1555
- i.setState((function(e) {
1555
+ a.setState((function(e) {
1556
1556
  return {
1557
1557
  activeIndex: Math.max(e.activeIndex - 1, 0)
1558
1558
  };
1559
1559
  }));
1560
1560
  }
1561
- if (l === "enter" && !ie()(i.activeValue) && i.state.open) {
1562
- if (i.activeValue === "selectAll") {
1563
- if (i.optionSelection === "all") {
1564
- i.handleClearAll(e);
1561
+ if (l === "enter" && !ae()(a.activeValue) && a.state.open) {
1562
+ if (a.activeValue === "selectAll") {
1563
+ if (a.optionSelection === "all") {
1564
+ a.handleClearAll(e);
1565
1565
  } else {
1566
- i.handleSelectAll(e);
1566
+ a.handleSelectAll(e);
1567
1567
  }
1568
1568
  } else {
1569
1569
  e.preventDefault();
1570
- i.toggleValue(e, i.activeValue);
1570
+ a.toggleValue(e, a.activeValue);
1571
1571
  }
1572
1572
  }
1573
1573
  }));
1574
- Jt($t(i), "handleMenuOptionClick", (function(e, t) {
1574
+ Jt($t(a), "handleMenuOptionClick", (function(e, t) {
1575
1575
  var n = t.value;
1576
1576
  e.preventDefault();
1577
- if (!i.state.open) {
1577
+ if (!a.state.open) {
1578
1578
  return;
1579
1579
  }
1580
- i.toggleValue(e, n);
1580
+ a.toggleValue(e, n);
1581
1581
  }));
1582
- Jt($t(i), "handleMenuOptionKeyDown", (function(e, t) {
1582
+ Jt($t(a), "handleMenuOptionKeyDown", (function(e, t) {
1583
1583
  var n = e.nativeEvent.key;
1584
1584
  // Checking for a single character to avoid complications from double-byte languages and emojis.
1585
1585
  if (n.length === 1) {
@@ -1588,133 +1588,133 @@
1588
1588
  index: 0,
1589
1589
  value: n
1590
1590
  };
1591
- if (!i.matchCharacter) {
1591
+ if (!a.matchCharacter) {
1592
1592
  if (n === " ") {
1593
- i.resetMatches();
1593
+ a.resetMatches();
1594
1594
  return;
1595
1595
  }
1596
- r = Ot(i.availableMatchOptions, o);
1597
- } else if (i.currentMatchOptions.length > 1) {
1598
- o.index = i.matchCharacter.index + 1;
1599
- r = Ot(i.currentMatchOptions, o);
1596
+ r = Ot(a.availableMatchOptions, o);
1597
+ } else if (a.currentMatchOptions.length > 1) {
1598
+ o.index = a.matchCharacter.index + 1;
1599
+ r = Ot(a.currentMatchOptions, o);
1600
1600
  }
1601
1601
  if (r.length) {
1602
- var a = 0;
1602
+ var i = 0;
1603
1603
  // If the active option is a first character match, cycle to the next matching option.
1604
1604
  if (o.index === 0 && r.length > 1) {
1605
- var l = r.indexOf(i.availableMatchOptions[t]);
1605
+ var l = r.indexOf(a.availableMatchOptions[t]);
1606
1606
  if (l >= 0) {
1607
- a = l === r.length - 1 ? 0 : l + 1;
1607
+ i = l === r.length - 1 ? 0 : l + 1;
1608
1608
  }
1609
1609
  }
1610
- var s = r[a];
1611
- var c = i.optionRefsByKey[nn(s.value, s.label)];
1610
+ var s = r[i];
1611
+ var c = a.optionRefsByKey[nn(s.value, s.label)];
1612
1612
  if (c != null) {
1613
1613
  var u;
1614
1614
  (u = c.focus) === null || u === void 0 ? void 0 : u.call(c);
1615
1615
  }
1616
1616
  }
1617
- i.currentMatchOptions = r;
1618
- i.matchCharacter = o;
1619
- if (i.matchTimeout) {
1620
- clearTimeout(i.matchTimeout);
1617
+ a.currentMatchOptions = r;
1618
+ a.matchCharacter = o;
1619
+ if (a.matchTimeout) {
1620
+ clearTimeout(a.matchTimeout);
1621
1621
  }
1622
- i.matchTimeout = setTimeout(i.resetMatches, 500);
1622
+ a.matchTimeout = setTimeout(a.resetMatches, 500);
1623
1623
  e.preventDefault();
1624
1624
  e.stopPropagation();
1625
1625
  }
1626
1626
  }));
1627
- Jt($t(i), "handleTextChange", (function(e, t) {
1627
+ Jt($t(a), "handleTextChange", (function(e, t) {
1628
1628
  var n, r;
1629
1629
  var o = t.value;
1630
- i.setState({
1630
+ a.setState({
1631
1631
  filterKeyword: o,
1632
1632
  open: true,
1633
1633
  activeIndex: 0
1634
1634
  });
1635
- (n = (r = i.props).onFilterChange) === null || n === void 0 ? void 0 : n.call(r, e, {
1635
+ (n = (r = a.props).onFilterChange) === null || n === void 0 ? void 0 : n.call(r, e, {
1636
1636
  keyword: o
1637
1637
  });
1638
1638
  }));
1639
- Jt($t(i), "handleTextFocus", (function() {
1640
- i.setState({
1639
+ Jt($t(a), "handleTextFocus", (function() {
1640
+ a.setState({
1641
1641
  textHasFocus: true
1642
1642
  });
1643
1643
  }));
1644
- Jt($t(i), "handleTextBlur", (function() {
1645
- i.setState({
1644
+ Jt($t(a), "handleTextBlur", (function() {
1645
+ a.setState({
1646
1646
  textHasFocus: false
1647
1647
  });
1648
1648
  }));
1649
- Jt($t(i), "handleRequestOpen", (function(e) {
1649
+ Jt($t(a), "handleRequestOpen", (function(e) {
1650
1650
  var t = {
1651
1651
  open: true,
1652
- topValues: i.getTopValues()
1652
+ topValues: a.getTopValues()
1653
1653
  };
1654
1654
  // SUI-3234: preserve existing behavior difference between <Select> and <Multiselect.Compact>
1655
- if (i.props.multiple) {
1655
+ if (a.props.multiple) {
1656
1656
  t.filterKeyword = "";
1657
1657
  }
1658
- var n = i.state.filterKeyword;
1659
- i.setState(t, (function() {
1658
+ var n = a.state.filterKeyword;
1659
+ a.setState(t, (function() {
1660
1660
  var t, r;
1661
- (t = (r = i.props).onOpen) === null || t === void 0 ? void 0 : t.call(r);
1662
- if (i.firstSelectedEnabledOption && !i.hasFilter()) {
1663
- i.firstSelectedEnabledOption.focus();
1661
+ (t = (r = a.props).onOpen) === null || t === void 0 ? void 0 : t.call(r);
1662
+ if (a.firstSelectedEnabledOption && !a.hasFilter()) {
1663
+ a.firstSelectedEnabledOption.focus();
1664
1664
  } else {
1665
1665
  var o;
1666
- i.setState({
1667
- activeIndex: (o = i.firstSelectedOptionIndex) !== null && o !== void 0 ? o : 0
1666
+ a.setState({
1667
+ activeIndex: (o = a.firstSelectedOptionIndex) !== null && o !== void 0 ? o : 0
1668
1668
  });
1669
1669
  }
1670
- if (n !== i.state.filterKeyword) {
1671
- var a, l;
1672
- (a = (l = i.props).onFilterChange) === null || a === void 0 ? void 0 : a.call(l, e, {
1673
- keyword: i.state.filterKeyword
1670
+ if (n !== a.state.filterKeyword) {
1671
+ var i, l;
1672
+ (i = (l = a.props).onFilterChange) === null || i === void 0 ? void 0 : i.call(l, e, {
1673
+ keyword: a.state.filterKeyword
1674
1674
  });
1675
1675
  }
1676
1676
  }));
1677
1677
  }));
1678
- Jt($t(i), "handleRequestClose", (function() {
1679
- i.setState({
1678
+ Jt($t(a), "handleRequestClose", (function() {
1679
+ a.setState({
1680
1680
  open: false,
1681
1681
  activeIndex: 0
1682
1682
  }, (function() {
1683
1683
  var e, t;
1684
- i.previousActiveIndex = null;
1685
- (e = (t = i.props).onClose) === null || e === void 0 ? void 0 : e.call(t);
1684
+ a.previousActiveIndex = null;
1685
+ (e = (t = a.props).onClose) === null || e === void 0 ? void 0 : e.call(t);
1686
1686
  }));
1687
1687
  }));
1688
- Jt($t(i), "handleScrollBottom", (function(e) {
1689
- if (i.state.open && !i.props.isLoadingOptions) {
1688
+ Jt($t(a), "handleScrollBottom", (function(e) {
1689
+ if (a.state.open && !a.props.isLoadingOptions) {
1690
1690
  var t, n;
1691
- (t = (n = i.props).onScrollBottom) === null || t === void 0 ? void 0 : t.call(n, e);
1691
+ (t = (n = a.props).onScrollBottom) === null || t === void 0 ? void 0 : t.call(n, e);
1692
1692
  }
1693
1693
  }));
1694
- Jt($t(i), "handleActiveOptionMount", (function(e) {
1695
- if (i.previousActiveIndex !== i.state.activeIndex) {
1694
+ Jt($t(a), "handleActiveOptionMount", (function(e) {
1695
+ if (a.previousActiveIndex !== a.state.activeIndex) {
1696
1696
  e === null || e === void 0 ? void 0 : e.scrollIntoViewIfNeeded();
1697
1697
  }
1698
1698
  }));
1699
- Jt($t(i), "handleOptionMount", (function(e, t, n) {
1699
+ Jt($t(a), "handleOptionMount", (function(e, t, n) {
1700
1700
  if (n) {
1701
- i.firstSelectedEnabledOption = e;
1701
+ a.firstSelectedEnabledOption = e;
1702
1702
  }
1703
1703
  if (e == null) {
1704
- delete i.optionRefsByKey[t];
1704
+ delete a.optionRefsByKey[t];
1705
1705
  } else {
1706
- i.optionRefsByKey[t] = e;
1706
+ a.optionRefsByKey[t] = e;
1707
1707
  }
1708
1708
  }));
1709
- Jt($t(i), "createToggle", (function() {
1709
+ Jt($t(a), "createToggle", (function() {
1710
1710
  var e;
1711
- var t = i.props, a = t.toggle, l = t.appearance, s = t.children, p = t.describedBy, f = t.disabled, d = t.elementRef, v = t.error, h = t.inline, b = t.labelledBy, y = t.labelText, m = t.multiple, g = t.placeholder, O = t.prefixLabel, w = t.required, S = t.suffixLabel;
1711
+ var t = a.props, i = t.toggle, l = t.appearance, s = t.children, p = t.describedBy, f = t.disabled, d = t.elementRef, v = t.error, h = t.inline, b = t.labelledBy, y = t.labelText, m = t.multiple, g = t.placeholder, O = t.prefixLabel, w = t.required, S = t.suffixLabel;
1712
1712
  var C;
1713
1713
  var x;
1714
1714
  // Generate buttonLabels
1715
- var k = (e = i.getCurrentValues()) !== null && e !== void 0 ? e : [];
1715
+ var k = (e = a.getCurrentValues()) !== null && e !== void 0 ? e : [];
1716
1716
  var I = n.Children.toArray(s);
1717
- var j = k.reduce((function(e, t, n, r) {
1717
+ var _ = k.reduce((function(e, t, n, r) {
1718
1718
  var o = Z()(I, (function(e) {
1719
1719
  return tn(e) && e.props.value === t;
1720
1720
  }));
@@ -1733,10 +1733,10 @@
1733
1733
  }
1734
1734
  return e;
1735
1735
  }), []);
1736
- x = j;
1736
+ x = _;
1737
1737
  // only apply prefix / suffix if the label is not empty
1738
1738
  if (x.length > 0) {
1739
- x = i.wrapLabel({
1739
+ x = a.wrapLabel({
1740
1740
  prefixLabel: O,
1741
1741
  label: x,
1742
1742
  suffixLabel: S
@@ -1749,11 +1749,11 @@
1749
1749
  }))) {
1750
1750
  x = Yt(g);
1751
1751
  }
1752
- var _ = x;
1752
+ var j = x;
1753
1753
  // If there's more than one item selected, read out the selected total
1754
1754
  // rather than reading out each selected item
1755
1755
  if (x.length > 1) {
1756
- _ = i.wrapLabel({
1756
+ j = a.wrapLabel({
1757
1757
  prefixLabel: O,
1758
1758
  label: [ "".concat(k.length, " items selected") ],
1759
1759
  suffixLabel: S
@@ -1761,7 +1761,7 @@
1761
1761
  }
1762
1762
  var E = Gt({
1763
1763
  "aria-describedby": p,
1764
- "aria-label": "".concat(y ? "".concat(y, ", ") : "").concat(_),
1764
+ "aria-label": "".concat(y ? "".concat(y, ", ") : "").concat(j),
1765
1765
  "aria-labelledby": y ? undefined : b,
1766
1766
  "aria-multiselectable": m || undefined,
1767
1767
  "aria-required": w,
@@ -1770,16 +1770,16 @@
1770
1770
  disabled: f,
1771
1771
  elementRef: d,
1772
1772
  error: v
1773
- }, c()(i.props, le()(o.propTypes)));
1773
+ }, c()(a.props, le()(o.propTypes)));
1774
1774
  if (m) {
1775
1775
  E["data-test-values"] = JSON.stringify(k);
1776
1776
  } else {
1777
1777
  var M = It(k, 1), A = M[0];
1778
1778
  E["data-test-value"] = A;
1779
1779
  }
1780
- if (a) {
1780
+ if (i) {
1781
1781
 
1782
- return (0, n.cloneElement)(a, E);
1782
+ return (0, n.cloneElement)(i, E);
1783
1783
  }
1784
1784
  if (l === "link") {
1785
1785
 
@@ -1797,61 +1797,61 @@
1797
1797
  inline: h,
1798
1798
  isMenu: true,
1799
1799
  "aria-haspopup": "listbox",
1800
- "aria-owns": i.menuId,
1801
- onClick: i.props.onClick
1802
- }, pe()(i.props, o.invalidLinkAppearanceProps)), !!k.length && m && r().createElement(bt, {
1800
+ "aria-owns": a.menuId,
1801
+ onClick: a.props.onClick
1802
+ }, pe()(a.props, o.invalidLinkAppearanceProps)), !!k.length && m && r().createElement(bt, {
1803
1803
  "data-role": "count"
1804
1804
  }, "(", k.length, ")"));
1805
1805
  }));
1806
- Jt($t(i), "createChildren", (function() {
1807
- var e = i.state, t = e.filterKeyword, o = e.textHasFocus, a = e.topValues;
1808
- var l = i.props, s = l.allowKeyMatching, c = l.allowNewValues, f = l.filter, d = l.multiple, v = l.selectAllAppearance, h = l.showSelectedValuesFirst, b = l.isLoadingOptions, y = l.onScrollBottom;
1809
- var m = i.getCurrentValues();
1810
- i.availableOptionCount = 0;
1811
- i.firstSelectedOptionIndex = undefined;
1812
- i.selectedOptionCount = 0;
1813
- i.activeValue = undefined;
1814
- i.availableMatchOptions = [];
1806
+ Jt($t(a), "createChildren", (function() {
1807
+ var e = a.state, t = e.filterKeyword, o = e.textHasFocus, i = e.topValues;
1808
+ var l = a.props, s = l.allowKeyMatching, c = l.allowNewValues, f = l.filter, d = l.multiple, v = l.selectAllAppearance, h = l.showSelectedValuesFirst, b = l.isLoadingOptions, y = l.onScrollBottom;
1809
+ var m = a.getCurrentValues();
1810
+ a.availableOptionCount = 0;
1811
+ a.firstSelectedOptionIndex = undefined;
1812
+ a.selectedOptionCount = 0;
1813
+ a.activeValue = undefined;
1814
+ a.availableMatchOptions = [];
1815
1815
  var g;
1816
1816
  var O = 0;
1817
1817
  var w = false;
1818
1818
  // used to avoid overwriting the selected item ref in multiple mode
1819
1819
  var S;
1820
- var C = h === "immediately" ? i.getTopValues() : a;
1821
- var x = n.Children.toArray(i.props.children).reduce((function(e, t, o) {
1820
+ var C = h === "immediately" ? a.getTopValues() : i;
1821
+ var x = n.Children.toArray(a.props.children).reduce((function(e, t, o) {
1822
1822
  // ignore Headings and Dividers
1823
1823
  if (!tn(t)) {
1824
1824
  e.push(t);
1825
1825
  return e;
1826
1826
  }
1827
1827
  // Find out if the search string exactly matches a value
1828
- if (t.props.value === i.state.filterKeyword) {
1828
+ if (t.props.value === a.state.filterKeyword) {
1829
1829
  g = true;
1830
1830
  }
1831
- var a = m && m.indexOf(t.props.value) >= 0;
1832
- var l = !!a && !t.props.disabled && !S;
1831
+ var i = m && m.indexOf(t.props.value) >= 0;
1832
+ var l = !!i && !t.props.disabled && !S;
1833
1833
  var c = s && !d && !f && !b && !y;
1834
1834
  var u = nn(t.props.value, t.props.label);
1835
1835
  var v = -1;
1836
1836
  if (c && !t.props.disabled && !t.props.hidden) {
1837
- i.availableMatchOptions.push({
1837
+ a.availableMatchOptions.push({
1838
1838
  label: t.props.label,
1839
1839
  value: t.props.value
1840
1840
  });
1841
- v = i.availableMatchOptions.length - 1;
1841
+ v = a.availableMatchOptions.length - 1;
1842
1842
  }
1843
1843
  // Format the Menu.Item
1844
1844
  var h = (0, n.cloneElement)(t, {
1845
1845
  key: t.key || o,
1846
- onClick: i.handleMenuOptionClick,
1846
+ onClick: a.handleMenuOptionClick,
1847
1847
  onKeyDown: c ? function(e) {
1848
- return i.handleMenuOptionKeyDown(e, v);
1848
+ return a.handleMenuOptionKeyDown(e, v);
1849
1849
  } : undefined,
1850
- selected: a,
1850
+ selected: i,
1851
1851
  multiple: d,
1852
1852
  role: "option",
1853
1853
  ref: function e(t) {
1854
- return i.handleOptionMount(t, u, l);
1854
+ return a.handleOptionMount(t, u, l);
1855
1855
  }
1856
1856
  });
1857
1857
  if (l) {
@@ -1878,7 +1878,7 @@
1878
1878
  return tn(t) && t.props && t.props.value === e;
1879
1879
  }));
1880
1880
  if (!t) {
1881
- if (e === i.state.filterKeyword) {
1881
+ if (e === a.state.filterKeyword) {
1882
1882
  g = true;
1883
1883
  }
1884
1884
  var n = C && C.indexOf(e) >= 0;
@@ -1894,7 +1894,7 @@
1894
1894
  label: String(e),
1895
1895
  value: e,
1896
1896
  key: "missing-value-".concat(e),
1897
- onClick: i.handleMenuOptionClick,
1897
+ onClick: a.handleMenuOptionClick,
1898
1898
  multiple: d,
1899
1899
  selected: true
1900
1900
  }));
@@ -1926,17 +1926,17 @@
1926
1926
  }));
1927
1927
  // Add the option to add the new value
1928
1928
  if (c && !g && t) {
1929
- var j = w ? O + 1 : O;
1930
- x.splice(j, 0, r().createElement(M, {
1929
+ var _ = w ? O + 1 : O;
1930
+ x.splice(_, 0, r().createElement(M, {
1931
1931
  label: "".concat(t, " (new value)"),
1932
1932
  value: t,
1933
1933
  key: "newValue",
1934
1934
  multiple: d,
1935
- onClick: i.handleMenuOptionClick
1935
+ onClick: a.handleMenuOptionClick
1936
1936
  }));
1937
1937
  }
1938
1938
  // When selectAll is a menu item, add an offset so that activeItem accounts for the extra selectAll option.
1939
- var _ = v === "checkbox" && d && x.length > 1 ? 1 : 0;
1939
+ var j = v === "checkbox" && d && x.length > 1 ? 1 : 0;
1940
1940
  var E = true;
1941
1941
  // Highlight the selected Items and remove hidden
1942
1942
  x = x.reduce((function(e, t) {
@@ -1949,13 +1949,13 @@
1949
1949
  if (t.props && t.props.hidden) {
1950
1950
  return e;
1951
1951
  }
1952
- if (t.props.selected && !t.props.disabled && i.firstSelectedOptionIndex == null) {
1953
- i.firstSelectedOptionIndex = i.availableOptionCount;
1952
+ if (t.props.selected && !t.props.disabled && a.firstSelectedOptionIndex == null) {
1953
+ a.firstSelectedOptionIndex = a.availableOptionCount;
1954
1954
  }
1955
- var r = _ === i.state.activeIndex;
1956
- _ += 1;
1957
- i.availableOptionCount += 1;
1958
- i.selectedOptionCount += t.props.selected ? 1 : 0;
1955
+ var r = j === a.state.activeIndex;
1956
+ j += 1;
1957
+ a.availableOptionCount += 1;
1958
+ a.selectedOptionCount += t.props.selected ? 1 : 0;
1959
1959
  if (t.key !== "newValue" && !t.props.disabled && !t.props.selected) {
1960
1960
  E = false;
1961
1961
  }
@@ -1964,22 +1964,22 @@
1964
1964
  return e;
1965
1965
  }
1966
1966
  if (!t.props.disabled) {
1967
- i.activeValue = t.props.value;
1967
+ a.activeValue = t.props.value;
1968
1968
  }
1969
- var a = (0, n.cloneElement)(t, {
1969
+ var i = (0, n.cloneElement)(t, {
1970
1970
  active: r,
1971
- id: i.activeItemId,
1972
- ref: i.handleActiveOptionMount
1971
+ id: a.activeItemId,
1972
+ ref: a.handleActiveOptionMount
1973
1973
  });
1974
- e.push(a);
1974
+ e.push(i);
1975
1975
  return e;
1976
1976
  }), []);
1977
- i.optionSelection = i.selectedOptionCount === 0 && "none" || E && "all" || "some";
1977
+ a.optionSelection = a.selectedOptionCount === 0 && "none" || E && "all" || "some";
1978
1978
  // add select all option
1979
- if (v === "checkbox" && d && i.availableOptionCount > 0) {
1979
+ if (v === "checkbox" && d && a.availableOptionCount > 0) {
1980
1980
  var A;
1981
1981
  var P;
1982
- if (i.optionSelection === "all") {
1982
+ if (a.optionSelection === "all") {
1983
1983
  if (t === "") {
1984
1984
  P = (0, u._)("Clear all");
1985
1985
  } else {
@@ -1990,25 +1990,25 @@
1990
1990
  } else {
1991
1991
  P = (0, u._)("Select all matches");
1992
1992
  }
1993
- if (i.state.activeIndex === 0 && o) {
1994
- i.activeValue = "selectAll";
1993
+ if (a.state.activeIndex === 0 && o) {
1994
+ a.activeValue = "selectAll";
1995
1995
  }
1996
1996
  x.unshift( r().createElement(st, {
1997
1997
  key: "selectAllOption",
1998
- selected: i.optionSelection === "all" || i.optionSelection !== "none" && "some",
1998
+ selected: a.optionSelection === "all" || a.optionSelection !== "none" && "some",
1999
1999
  selectAllLabel: P,
2000
- totalCount: (A = i.getCurrentValues()) === null || A === void 0 ? void 0 : A.length,
2001
- changedToggle: !!i.props.toggle,
2002
- onClick: i.optionSelection === "all" ? i.handleClearAll : i.handleSelectAll,
2003
- id: i.state.activeIndex === 0 ? i.activeItemId : undefined,
2004
- active: i.state.activeIndex === 0,
2005
- ref: i.handleActiveOptionMount,
2000
+ totalCount: (A = a.getCurrentValues()) === null || A === void 0 ? void 0 : A.length,
2001
+ changedToggle: !!a.props.toggle,
2002
+ onClick: a.optionSelection === "all" ? a.handleClearAll : a.handleSelectAll,
2003
+ id: a.state.activeIndex === 0 ? a.activeItemId : undefined,
2004
+ active: a.state.activeIndex === 0,
2005
+ ref: a.handleActiveOptionMount,
2006
2006
  tabIndex: -1
2007
2007
  }), r().createElement(p.Divider, {
2008
2008
  key: "selectAllDivider"
2009
2009
  }));
2010
2010
  }
2011
- i.displayedValues = x.reduce((function(e, t) {
2011
+ a.displayedValues = x.reduce((function(e, t) {
2012
2012
  if (tn(t)) {
2013
2013
  e.push(t.props.value);
2014
2014
  }
@@ -2016,7 +2016,7 @@
2016
2016
  }), []);
2017
2017
  return x;
2018
2018
  }));
2019
- Jt($t(i), "wrapLabel", (function(e) {
2019
+ Jt($t(a), "wrapLabel", (function(e) {
2020
2020
  var t = e.prefixLabel, n = e.label, r = e.suffixLabel;
2021
2021
  var o = n;
2022
2022
  if (t) {
@@ -2027,10 +2027,10 @@
2027
2027
  }
2028
2028
  return o;
2029
2029
  }));
2030
- Jt($t(i), "handleDropdownMount", (function(e) {
2031
- i.dropdown = e;
2030
+ Jt($t(a), "handleDropdownMount", (function(e) {
2031
+ a.dropdown = e;
2032
2032
  }));
2033
- i.state = {
2033
+ a.state = {
2034
2034
  activeIndex: 0,
2035
2035
  filterKeyword: "",
2036
2036
  open: false,
@@ -2038,23 +2038,23 @@
2038
2038
  topValues: [],
2039
2039
  values: e.defaultValues || []
2040
2040
  };
2041
- i.controlledExternally = l()(e, "values");
2042
- i.displayedValues = [];
2043
- i.availableOptionCount = 0;
2044
- i.firstSelectedOptionIndex = undefined;
2045
- i.selectedOptionCount = 0;
2046
- i.matchCharacter = null;
2047
- i.matchTimeout = null;
2048
- i.currentMatchOptions = [];
2049
- i.availableMatchOptions = [];
2050
- i.optionRefsByKey = {};
2051
- i.optionSelection = "none";
2041
+ a.controlledExternally = l()(e, "values");
2042
+ a.displayedValues = [];
2043
+ a.availableOptionCount = 0;
2044
+ a.firstSelectedOptionIndex = undefined;
2045
+ a.selectedOptionCount = 0;
2046
+ a.matchCharacter = null;
2047
+ a.matchTimeout = null;
2048
+ a.currentMatchOptions = [];
2049
+ a.availableMatchOptions = [];
2050
+ a.optionRefsByKey = {};
2051
+ a.optionSelection = "none";
2052
2052
  if (false) {}
2053
2053
  if (false) {}
2054
2054
  o.validateAppearance(e);
2055
- i.menuId = (0, be.createDOMID)("menu");
2056
- i.activeItemId = (0, be.createDOMID)("active-item");
2057
- return i;
2055
+ a.menuId = (0, be.createDOMID)("menu");
2056
+ a.activeItemId = (0, be.createDOMID)("active-item");
2057
+ return a;
2058
2058
  }
2059
2059
  Nt(o, [ {
2060
2060
  key: "componentDidUpdate",
@@ -2090,16 +2090,16 @@
2090
2090
  }, {
2091
2091
  key: "toggleValue",
2092
2092
  value: function e(t, n) {
2093
- var r, o, i;
2094
- var a = (r = this.getCurrentValues()) !== null && r !== void 0 ? r : [];
2095
- var l = a.indexOf(n);
2093
+ var r, o, a;
2094
+ var i = (r = this.getCurrentValues()) !== null && r !== void 0 ? r : [];
2095
+ var l = i.indexOf(n);
2096
2096
  var s = this.props, c = s.name, u = s.multiple;
2097
2097
  var p;
2098
2098
  if (u) {
2099
2099
  if (l >= 0) {
2100
- p = [].concat(Mt(a.slice(0, l)), Mt(a.slice(l + 1)));
2100
+ p = [].concat(Mt(i.slice(0, l)), Mt(i.slice(l + 1)));
2101
2101
  } else {
2102
- p = a.concat([ n ]);
2102
+ p = i.concat([ n ]);
2103
2103
  }
2104
2104
  } else {
2105
2105
  // non-multiple mode must always have a value
@@ -2126,7 +2126,7 @@
2126
2126
  });
2127
2127
  this.focus();
2128
2128
  }
2129
- (o = (i = this.props).onChange) === null || o === void 0 ? void 0 : o.call(i, t, {
2129
+ (o = (a = this.props).onChange) === null || o === void 0 ? void 0 : o.call(a, t, {
2130
2130
  values: p,
2131
2131
  name: c,
2132
2132
  reason: "valueToggle"
@@ -2144,8 +2144,8 @@
2144
2144
  key: "renderControls",
2145
2145
  value: function e(t) {
2146
2146
  var n = t.hasChildren, o = t.placement;
2147
- var i = this.state.filterKeyword;
2148
- var a = this.props, l = a.inputId, s = a.inputRef, c = a.multiple, p = a.selectAllAppearance;
2147
+ var a = this.state.filterKeyword;
2148
+ var i = this.props, l = i.inputId, s = i.inputRef, c = i.multiple, p = i.selectAllAppearance;
2149
2149
  var f = (0, u._)("Select all options".concat(this.optionSelection === "all" ? " disabled" : ""));
2150
2150
  var d = (0, u._)("Clear all options".concat(this.optionSelection === "none" ? " disabled" : ""));
2151
2151
  // only visually disable these as opposed to fully disabling to avoid losing keyboard focus - see SUI-2731
@@ -2157,19 +2157,19 @@
2157
2157
  "aria-label": f,
2158
2158
  onClick: this.handleSelectAll,
2159
2159
  "data-test": "select-all"
2160
- }, i ? (0, u._)("Select all Matches") : (0, u._)("Select all")), r().createElement(yt, {
2160
+ }, a ? (0, u._)("Select all Matches") : (0, u._)("Select all")), r().createElement(yt, {
2161
2161
  $disabled: this.optionSelection === "none",
2162
2162
  "aria-label": d,
2163
2163
  onClick: this.handleClearAll,
2164
2164
  "data-test": "clear-all"
2165
- }, i ? (0, u._)("Clear all Matches") : (0, u._)("Clear all")));
2165
+ }, a ? (0, u._)("Clear all Matches") : (0, u._)("Clear all")));
2166
2166
  return this.hasFilter() && r().createElement("div", {
2167
2167
  key: "controls"
2168
2168
  }, r().createElement(vt, {
2169
2169
  key: "filter",
2170
2170
  "data-test": "filter"
2171
2171
  }, r().createElement(Ie(), {
2172
- value: i,
2172
+ value: a,
2173
2173
  autoCapitalize: "off",
2174
2174
  autoComplete: "off",
2175
2175
  autoCorrect: "off",
@@ -2193,10 +2193,10 @@
2193
2193
  key: "render",
2194
2194
  value: function e() {
2195
2195
  var t, o = this;
2196
- var i = this.props, a = i.children, l = i.defaultPlacement, s = i.inputId, c = i.multiple, u = i.repositionMode, p = i.virtualization;
2196
+ var a = this.props, i = a.children, l = a.defaultPlacement, s = a.inputId, c = a.multiple, u = a.repositionMode, p = a.virtualization;
2197
2197
  var f = this.hasFilter();
2198
2198
  var d = (t = this.getCurrentValues()) !== null && t !== void 0 ? t : [];
2199
- var v = n.Children.toArray(a);
2199
+ var v = n.Children.toArray(i);
2200
2200
  var h = d.some((function(e) {
2201
2201
  var t = Z()(v, (function(t) {
2202
2202
  return tn(t) && t.props.value === e;
@@ -2206,22 +2206,22 @@
2206
2206
  var b = this.createChildren();
2207
2207
  var y = this.createToggle();
2208
2208
  var m = function e(t) {
2209
- var n = t.anchorWidth, i = t.maxHeight, a = t.placement;
2209
+ var n = t.anchorWidth, a = t.maxHeight, i = t.placement;
2210
2210
  var l = Zt({
2211
2211
  anchorWidth: n,
2212
2212
  isMultiple: o.props.multiple,
2213
- maxHeight: i,
2213
+ maxHeight: a,
2214
2214
  menuStyle: o.props.menuStyle
2215
2215
  });
2216
2216
  var s = d.length > 0 && !h && !o.hasFilter() ? 0 : undefined;
2217
2217
  var u = Gt(Gt({
2218
2218
  "aria-multiselectable": c || undefined,
2219
2219
  childrenStart: o.renderControls({
2220
- placement: a,
2220
+ placement: i,
2221
2221
  hasChildren: !!b.length
2222
2222
  }),
2223
2223
  controlledExternally: o.hasFilter(),
2224
- placement: a !== null && a !== void 0 ? a : undefined,
2224
+ placement: i !== null && i !== void 0 ? i : undefined,
2225
2225
  onScrollBottom: o.props.onScrollBottom ? o.handleScrollBottom : undefined,
2226
2226
  "data-test": "results-menu",
2227
2227
  isLoading: o.props.isLoadingOptions,
@@ -2299,9 +2299,9 @@
2299
2299
  var n = cn(e, t);
2300
2300
  var r, o;
2301
2301
  if (Object.getOwnPropertySymbols) {
2302
- var i = Object.getOwnPropertySymbols(e);
2303
- for (o = 0; o < i.length; o++) {
2304
- r = i[o];
2302
+ var a = Object.getOwnPropertySymbols(e);
2303
+ for (o = 0; o < a.length; o++) {
2304
+ r = a[o];
2305
2305
  if (t.indexOf(r) >= 0) continue;
2306
2306
  if (!Object.prototype.propertyIsEnumerable.call(e, r)) continue;
2307
2307
  n[r] = e[r];
@@ -2313,9 +2313,9 @@
2313
2313
  if (e == null) return {};
2314
2314
  var n = {};
2315
2315
  var r = Object.keys(e);
2316
- var o, i;
2317
- for (i = 0; i < r.length; i++) {
2318
- o = r[i];
2316
+ var o, a;
2317
+ for (a = 0; a < r.length; a++) {
2318
+ o = r[a];
2319
2319
  if (t.indexOf(o) >= 0) continue;
2320
2320
  n[o] = e[o];
2321
2321
  }
@@ -2365,8 +2365,8 @@
2365
2365
  return function n() {
2366
2366
  var r = gn(e), o;
2367
2367
  if (t) {
2368
- var i = gn(this).constructor;
2369
- o = Reflect.construct(r, arguments, i);
2368
+ var a = gn(this).constructor;
2369
+ o = Reflect.construct(r, arguments, a);
2370
2370
  } else {
2371
2371
  o = r.apply(this, arguments);
2372
2372
  }
@@ -2416,41 +2416,41 @@
2416
2416
  return e;
2417
2417
  }
2418
2418
  var wn = {
2419
- allowNewValues: i().bool,
2420
- animateLoading: i().bool,
2421
- children: i().node,
2422
- controlledFilter: i().bool,
2423
- defaultPlacement: i().oneOf([ "above", "below", "vertical" ]),
2424
- defaultValues: i().array,
2425
- describedBy: i().string,
2426
- disabled: i().bool,
2427
- elementRef: i().oneOfType([ i().func, i().object ]),
2428
- error: i().bool,
2429
- filter: i().oneOf([ false, true, "controlled" ]),
2430
- footerMessage: i().node,
2431
- inline: i().bool,
2432
- inputId: i().string,
2433
- inputRef: i().oneOfType([ i().func, i().object ]),
2434
- isLoadingOptions: i().bool,
2435
- labelledBy: i().string,
2436
- loadingMessage: i().node,
2437
- menuStyle: i().object,
2438
- name: i().string,
2439
- noOptionsMessage: i().node,
2440
- onChange: i().func,
2441
- onClose: i().func,
2442
- onFilterChange: i().func,
2443
- onOpen: i().func,
2444
- onScroll: i().func,
2445
- onScrollBottom: i().func,
2446
- placeholder: i().string,
2447
- repositionMode: i().oneOf([ "none", "flip" ]),
2448
- selectAllAppearance: i().oneOf([ "buttongroup", "checkbox" ]),
2449
- showSelectedValuesFirst: i().oneOf([ "nextOpen", "immediately", "never" ]),
2450
- tabConfirmsNewValue: i().bool,
2451
- values: i().array,
2419
+ allowNewValues: a().bool,
2420
+ animateLoading: a().bool,
2421
+ children: a().node,
2422
+ controlledFilter: a().bool,
2423
+ defaultPlacement: a().oneOf([ "above", "below", "vertical" ]),
2424
+ defaultValues: a().array,
2425
+ describedBy: a().string,
2426
+ disabled: a().bool,
2427
+ elementRef: a().oneOfType([ a().func, a().object ]),
2428
+ error: a().bool,
2429
+ filter: a().oneOf([ false, true, "controlled" ]),
2430
+ footerMessage: a().node,
2431
+ inline: a().bool,
2432
+ inputId: a().string,
2433
+ inputRef: a().oneOfType([ a().func, a().object ]),
2434
+ isLoadingOptions: a().bool,
2435
+ labelledBy: a().string,
2436
+ loadingMessage: a().node,
2437
+ menuStyle: a().object,
2438
+ name: a().string,
2439
+ noOptionsMessage: a().node,
2440
+ onChange: a().func,
2441
+ onClose: a().func,
2442
+ onFilterChange: a().func,
2443
+ onOpen: a().func,
2444
+ onScroll: a().func,
2445
+ onScrollBottom: a().func,
2446
+ placeholder: a().string,
2447
+ repositionMode: a().oneOf([ "none", "flip" ]),
2448
+ selectAllAppearance: a().oneOf([ "buttongroup", "checkbox" ]),
2449
+ showSelectedValuesFirst: a().oneOf([ "nextOpen", "immediately", "never" ]),
2450
+ tabConfirmsNewValue: a().bool,
2451
+ values: a().array,
2452
2452
  /** @private */
2453
- virtualization: i().number
2453
+ virtualization: a().number
2454
2454
  };
2455
2455
  var Sn = {
2456
2456
  allowNewValues: false,
@@ -2477,16 +2477,16 @@
2477
2477
  key: "render",
2478
2478
  // @docs-props-type CompactPropsBase
2479
2479
  value: function e() {
2480
- var t = this.props, o = t.defaultValues, i = t.children, a = t.controlledFilter, l = t.filter, s = t.values, c = sn(t, [ "defaultValues", "children", "controlledFilter", "filter", "values" ]);
2480
+ var t = this.props, o = t.defaultValues, a = t.children, i = t.controlledFilter, l = t.filter, s = t.values, c = sn(t, [ "defaultValues", "children", "controlledFilter", "filter", "values" ]);
2481
2481
  var u = true;
2482
2482
  if (l != null) {
2483
2483
  u = l;
2484
2484
  if (false) {}
2485
2485
  } else {
2486
- u = a ? "controlled" : true;
2486
+ u = i ? "controlled" : true;
2487
2487
  }
2488
2488
  var p = {
2489
- children: n.Children.toArray(i).map((function(e) {
2489
+ children: n.Children.toArray(a).map((function(e) {
2490
2490
  if (tn(e)) {
2491
2491
 
2492
2492
  return r().createElement(M, ln({}, e.props, {
@@ -2521,8 +2521,8 @@
2521
2521
  const kn = require("lodash/defer");
2522
2522
  var In = e.n(kn);
2523
2523
  // CONCATENATED MODULE: external "lodash/extend"
2524
- const jn = require("lodash/extend");
2525
- var _n = e.n(jn);
2524
+ const _n = require("lodash/extend");
2525
+ var jn = e.n(_n);
2526
2526
  // CONCATENATED MODULE: external "lodash/get"
2527
2527
  const En = require("lodash/get");
2528
2528
  var Mn = e.n(En);
@@ -2533,8 +2533,8 @@
2533
2533
  const Vn = require("lodash/last");
2534
2534
  var Rn = e.n(Vn);
2535
2535
  // CONCATENATED MODULE: external "lodash/pickBy"
2536
- const Tn = require("lodash/pickBy");
2537
- var Dn = e.n(Tn);
2536
+ const Dn = require("lodash/pickBy");
2537
+ var Tn = e.n(Dn);
2538
2538
  // CONCATENATED MODULE: external "@splunk/react-ui/Chip"
2539
2539
  const qn = require("@splunk/react-ui/Chip");
2540
2540
  var Nn = e.n(qn);
@@ -2542,13 +2542,15 @@
2542
2542
  const Bn = require("@splunk/react-ui/Popover");
2543
2543
  var Ln = e.n(Bn);
2544
2544
  // CONCATENATED MODULE: external "@splunk/react-ui/ScreenReaderContent"
2545
- const Kn = require("@splunk/react-ui/ScreenReaderContent");
2546
- var Fn = e.n(Kn);
2545
+ const Fn = require("@splunk/react-ui/ScreenReaderContent");
2546
+ var Kn = e.n(Fn);
2547
+ // CONCATENATED MODULE: external "@splunk/ui-utils/format"
2548
+ const $n = require("@splunk/ui-utils/format");
2547
2549
  // CONCATENATED MODULE: external "@splunk/react-ui/Box"
2548
- const $n = require("@splunk/react-ui/Box");
2549
- var Hn = e.n($n);
2550
+ const Hn = require("@splunk/react-ui/Box");
2551
+ var zn = e.n(Hn);
2550
2552
  // CONCATENATED MODULE: ./src/Multiselect/NormalStyles.ts
2551
- var zn = Ke()(Hn()).withConfig({
2553
+ var Wn = Fe()(zn()).withConfig({
2552
2554
  displayName: "NormalStyles__StyledBox",
2553
2555
  componentId: "sc-1uwwpco-0"
2554
2556
  })([ "border-radius:", ";align-items:", ";flex-wrap:wrap;min-height:", ";max-height:300px;overflow-y:auto;border:1px solid ", ";padding:", ";", " ", " ", " ", " ", " &[data-inline]{width:400px;}[data-inline='true'] + &{margin-left:", "}" ], Ae.variables.borderRadius, (0,
@@ -2597,11 +2599,11 @@
2597
2599
  enterprise: Ae.variables.spacingHalf,
2598
2600
  prisma: Ae.variables.spacingSmall
2599
2601
  }));
2600
- var Wn = Ke().div.withConfig({
2602
+ var Un = Fe().div.withConfig({
2601
2603
  displayName: "NormalStyles__StyledInputWrapper",
2602
2604
  componentId: "sc-1uwwpco-1"
2603
2605
  })([ "flex:1 0 auto;max-width:100%;" ]);
2604
- var Un = Ke().input.withConfig({
2606
+ var Gn = Fe().input.withConfig({
2605
2607
  displayName: "NormalStyles__StyledInput",
2606
2608
  componentId: "sc-1uwwpco-2"
2607
2609
  })([ "", ";min-width:100%;max-width:100%;line-height:12px;", "" ], Ae.mixins.reset("block"), (0,
@@ -2615,7 +2617,7 @@
2615
2617
  compact: (0, Le.css)([ "padding:3px;" ])
2616
2618
  }
2617
2619
  }));
2618
- var Gn = Ke().div.withConfig({
2620
+ var Jn = Fe().div.withConfig({
2619
2621
  displayName: "NormalStyles__StyledOverlay",
2620
2622
  componentId: "sc-1uwwpco-3"
2621
2623
  })([ "", "" ], (function(e) {
@@ -2629,7 +2631,7 @@
2629
2631
  * @param ref - The React callback or object ref. Can be `null` or `undefined`.
2630
2632
  * @param current - The new value of the ref.
2631
2633
  */
2632
- function Jn(e, t) {
2634
+ function Qn(e, t) {
2633
2635
  if (e) {
2634
2636
  if (typeof e === "function") {
2635
2637
  e(t);
@@ -2642,47 +2644,47 @@
2642
2644
  }
2643
2645
  }
2644
2646
  // CONCATENATED MODULE: ./src/Multiselect/Normal.tsx
2645
- function Qn(e) {
2647
+ function Xn(e) {
2646
2648
  "@babel/helpers - typeof";
2647
2649
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
2648
- Qn = function e(t) {
2650
+ Xn = function e(t) {
2649
2651
  return typeof t;
2650
2652
  };
2651
2653
  } else {
2652
- Qn = function e(t) {
2654
+ Xn = function e(t) {
2653
2655
  return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2654
2656
  };
2655
2657
  }
2656
- return Qn(e);
2658
+ return Xn(e);
2657
2659
  }
2658
- function Xn(e) {
2659
- return tr(e) || er(e) || Zn(e) || Yn();
2660
+ function Yn(e) {
2661
+ return nr(e) || tr(e) || er(e) || Zn();
2660
2662
  }
2661
- function Yn() {
2663
+ function Zn() {
2662
2664
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2663
2665
  }
2664
- function Zn(e, t) {
2666
+ function er(e, t) {
2665
2667
  if (!e) return;
2666
- if (typeof e === "string") return nr(e, t);
2668
+ if (typeof e === "string") return rr(e, t);
2667
2669
  var n = Object.prototype.toString.call(e).slice(8, -1);
2668
2670
  if (n === "Object" && e.constructor) n = e.constructor.name;
2669
2671
  if (n === "Map" || n === "Set") return Array.from(e);
2670
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return nr(e, t);
2672
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return rr(e, t);
2671
2673
  }
2672
- function er(e) {
2674
+ function tr(e) {
2673
2675
  if (typeof Symbol !== "undefined" && Symbol.iterator in Object(e)) return Array.from(e);
2674
2676
  }
2675
- function tr(e) {
2676
- if (Array.isArray(e)) return nr(e);
2677
+ function nr(e) {
2678
+ if (Array.isArray(e)) return rr(e);
2677
2679
  }
2678
- function nr(e, t) {
2680
+ function rr(e, t) {
2679
2681
  if (t == null || t > e.length) t = e.length;
2680
2682
  for (var n = 0, r = new Array(t); n < t; n++) {
2681
2683
  r[n] = e[n];
2682
2684
  }
2683
2685
  return r;
2684
2686
  }
2685
- function rr(e, t) {
2687
+ function or(e, t) {
2686
2688
  var n = Object.keys(e);
2687
2689
  if (Object.getOwnPropertySymbols) {
2688
2690
  var r = Object.getOwnPropertySymbols(e);
@@ -2693,17 +2695,17 @@
2693
2695
  }
2694
2696
  return n;
2695
2697
  }
2696
- function or(e) {
2698
+ function ar(e) {
2697
2699
  for (var t = 1; t < arguments.length; t++) {
2698
2700
  var n = arguments[t] != null ? arguments[t] : {};
2699
2701
  if (t % 2) {
2700
- rr(Object(n), true).forEach((function(t) {
2701
- mr(e, t, n[t]);
2702
+ or(Object(n), true).forEach((function(t) {
2703
+ gr(e, t, n[t]);
2702
2704
  }));
2703
2705
  } else if (Object.getOwnPropertyDescriptors) {
2704
2706
  Object.defineProperties(e, Object.getOwnPropertyDescriptors(n));
2705
2707
  } else {
2706
- rr(Object(n)).forEach((function(t) {
2708
+ or(Object(n)).forEach((function(t) {
2707
2709
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
2708
2710
  }));
2709
2711
  }
@@ -2712,12 +2714,12 @@
2712
2714
  }
2713
2715
  function ir(e, t) {
2714
2716
  if (e == null) return {};
2715
- var n = ar(e, t);
2717
+ var n = lr(e, t);
2716
2718
  var r, o;
2717
2719
  if (Object.getOwnPropertySymbols) {
2718
- var i = Object.getOwnPropertySymbols(e);
2719
- for (o = 0; o < i.length; o++) {
2720
- r = i[o];
2720
+ var a = Object.getOwnPropertySymbols(e);
2721
+ for (o = 0; o < a.length; o++) {
2722
+ r = a[o];
2721
2723
  if (t.indexOf(r) >= 0) continue;
2722
2724
  if (!Object.prototype.propertyIsEnumerable.call(e, r)) continue;
2723
2725
  n[r] = e[r];
@@ -2725,20 +2727,20 @@
2725
2727
  }
2726
2728
  return n;
2727
2729
  }
2728
- function ar(e, t) {
2730
+ function lr(e, t) {
2729
2731
  if (e == null) return {};
2730
2732
  var n = {};
2731
2733
  var r = Object.keys(e);
2732
- var o, i;
2733
- for (i = 0; i < r.length; i++) {
2734
- o = r[i];
2734
+ var o, a;
2735
+ for (a = 0; a < r.length; a++) {
2736
+ o = r[a];
2735
2737
  if (t.indexOf(o) >= 0) continue;
2736
2738
  n[o] = e[o];
2737
2739
  }
2738
2740
  return n;
2739
2741
  }
2740
- function lr() {
2741
- lr = Object.assign || function(e) {
2742
+ function sr() {
2743
+ sr = Object.assign || function(e) {
2742
2744
  for (var t = 1; t < arguments.length; t++) {
2743
2745
  var n = arguments[t];
2744
2746
  for (var r in n) {
@@ -2749,14 +2751,14 @@
2749
2751
  }
2750
2752
  return e;
2751
2753
  };
2752
- return lr.apply(this, arguments);
2754
+ return sr.apply(this, arguments);
2753
2755
  }
2754
- function sr(e, t) {
2756
+ function cr(e, t) {
2755
2757
  if (!(e instanceof t)) {
2756
2758
  throw new TypeError("Cannot call a class as a function");
2757
2759
  }
2758
2760
  }
2759
- function cr(e, t) {
2761
+ function ur(e, t) {
2760
2762
  for (var n = 0; n < t.length; n++) {
2761
2763
  var r = t[n];
2762
2764
  r.enumerable = r.enumerable || false;
@@ -2765,12 +2767,12 @@
2765
2767
  Object.defineProperty(e, r.key, r);
2766
2768
  }
2767
2769
  }
2768
- function ur(e, t, n) {
2769
- if (t) cr(e.prototype, t);
2770
- if (n) cr(e, n);
2770
+ function pr(e, t, n) {
2771
+ if (t) ur(e.prototype, t);
2772
+ if (n) ur(e, n);
2771
2773
  return e;
2772
2774
  }
2773
- function pr(e, t) {
2775
+ function fr(e, t) {
2774
2776
  if (typeof t !== "function" && t !== null) {
2775
2777
  throw new TypeError("Super expression must either be null or a function");
2776
2778
  }
@@ -2781,41 +2783,41 @@
2781
2783
  configurable: true
2782
2784
  }
2783
2785
  });
2784
- if (t) fr(e, t);
2786
+ if (t) dr(e, t);
2785
2787
  }
2786
- function fr(e, t) {
2787
- fr = Object.setPrototypeOf || function e(t, n) {
2788
+ function dr(e, t) {
2789
+ dr = Object.setPrototypeOf || function e(t, n) {
2788
2790
  t.__proto__ = n;
2789
2791
  return t;
2790
2792
  };
2791
- return fr(e, t);
2793
+ return dr(e, t);
2792
2794
  }
2793
- function dr(e) {
2794
- var t = br();
2795
+ function vr(e) {
2796
+ var t = yr();
2795
2797
  return function n() {
2796
- var r = yr(e), o;
2798
+ var r = mr(e), o;
2797
2799
  if (t) {
2798
- var i = yr(this).constructor;
2799
- o = Reflect.construct(r, arguments, i);
2800
+ var a = mr(this).constructor;
2801
+ o = Reflect.construct(r, arguments, a);
2800
2802
  } else {
2801
2803
  o = r.apply(this, arguments);
2802
2804
  }
2803
- return vr(this, o);
2805
+ return hr(this, o);
2804
2806
  };
2805
2807
  }
2806
- function vr(e, t) {
2807
- if (t && (Qn(t) === "object" || typeof t === "function")) {
2808
+ function hr(e, t) {
2809
+ if (t && (Xn(t) === "object" || typeof t === "function")) {
2808
2810
  return t;
2809
2811
  }
2810
- return hr(e);
2812
+ return br(e);
2811
2813
  }
2812
- function hr(e) {
2814
+ function br(e) {
2813
2815
  if (e === void 0) {
2814
2816
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2815
2817
  }
2816
2818
  return e;
2817
2819
  }
2818
- function br() {
2820
+ function yr() {
2819
2821
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
2820
2822
  if (Reflect.construct.sham) return false;
2821
2823
  if (typeof Proxy === "function") return true;
@@ -2826,13 +2828,13 @@
2826
2828
  return false;
2827
2829
  }
2828
2830
  }
2829
- function yr(e) {
2830
- yr = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
2831
+ function mr(e) {
2832
+ mr = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
2831
2833
  return t.__proto__ || Object.getPrototypeOf(t);
2832
2834
  };
2833
- return yr(e);
2835
+ return mr(e);
2834
2836
  }
2835
- function mr(e, t, n) {
2837
+ function gr(e, t, n) {
2836
2838
  if (t in e) {
2837
2839
  Object.defineProperty(e, t, {
2838
2840
  value: n,
@@ -2845,42 +2847,42 @@
2845
2847
  }
2846
2848
  return e;
2847
2849
  }
2848
- var gr = {
2849
- allowNewValues: i().bool,
2850
- animateLoading: i().bool,
2851
- children: i().node,
2852
- controlledFilter: i().bool,
2853
- defaultPlacement: i().oneOf([ "above", "below", "vertical" ]),
2854
- defaultValues: i().array,
2855
- describedBy: i().string,
2856
- disabled: i().bool,
2857
- elementRef: i().oneOfType([ i().func, i().object ]),
2858
- error: i().bool,
2859
- footerMessage: i().node,
2860
- inline: i().bool,
2861
- inputId: i().string,
2862
- inputRef: i().oneOfType([ i().func, i().object ]),
2863
- isLoadingOptions: i().bool,
2864
- labelledBy: i().string,
2865
- loadingMessage: i().node,
2866
- menuStyle: i().object,
2867
- name: i().string,
2868
- noOptionsMessage: i().node,
2869
- onChange: i().func,
2870
- onClose: i().func,
2871
- onFilterChange: i().func,
2872
- onOpen: i().func,
2873
- onScroll: i().func,
2874
- onScrollBottom: i().func,
2875
- placeholder: i().string,
2850
+ var Or = {
2851
+ allowNewValues: a().bool,
2852
+ animateLoading: a().bool,
2853
+ children: a().node,
2854
+ controlledFilter: a().bool,
2855
+ defaultPlacement: a().oneOf([ "above", "below", "vertical" ]),
2856
+ defaultValues: a().array,
2857
+ describedBy: a().string,
2858
+ disabled: a().bool,
2859
+ elementRef: a().oneOfType([ a().func, a().object ]),
2860
+ error: a().bool,
2861
+ footerMessage: a().node,
2862
+ inline: a().bool,
2863
+ inputId: a().string,
2864
+ inputRef: a().oneOfType([ a().func, a().object ]),
2865
+ isLoadingOptions: a().bool,
2866
+ labelledBy: a().string,
2867
+ loadingMessage: a().node,
2868
+ menuStyle: a().object,
2869
+ name: a().string,
2870
+ noOptionsMessage: a().node,
2871
+ onChange: a().func,
2872
+ onClose: a().func,
2873
+ onFilterChange: a().func,
2874
+ onOpen: a().func,
2875
+ onScroll: a().func,
2876
+ onScrollBottom: a().func,
2877
+ placeholder: a().string,
2876
2878
  /** @private. */
2877
- required: i().bool,
2878
- repositionMode: i().oneOf([ "none", "flip" ]),
2879
- tabConfirmsNewValue: i().bool,
2880
- useClickawayOverlay: i().bool,
2881
- values: i().array
2879
+ required: a().bool,
2880
+ repositionMode: a().oneOf([ "none", "flip" ]),
2881
+ tabConfirmsNewValue: a().bool,
2882
+ useClickawayOverlay: a().bool,
2883
+ values: a().array
2882
2884
  };
2883
- var Or = {
2885
+ var wr = {
2884
2886
  allowNewValues: false,
2885
2887
  animateLoading: false,
2886
2888
  defaultPlacement: "vertical",
@@ -2893,76 +2895,76 @@
2893
2895
  tabConfirmsNewValue: false,
2894
2896
  useClickawayOverlay: false
2895
2897
  };
2896
- var wr = ce()((function(e) {
2898
+ var Sr = ce()((function(e) {
2897
2899
  return {
2898
2900
  flexBasis: e,
2899
2901
  width: e
2900
2902
  };
2901
2903
  }));
2902
- var Sr = ce()((function(e) {
2904
+ var Cr = ce()((function(e) {
2903
2905
  var t = e.anchorWidth, n = e.maxHeight, r = e.menuStyle;
2904
- return _n()({
2906
+ return jn()({
2905
2907
  maxHeight: n,
2906
2908
  overflow: "auto",
2907
2909
  width: Math.max(t !== null && t !== void 0 ? t : 0, 200)
2908
2910
  }, r);
2909
2911
  }));
2910
2912
  // TS: not typed controlled/uncontrolled, handled by Multiselect wrapper component
2911
- var Cr = function(e) {
2912
- pr(o, e);
2913
- var t = dr(o);
2913
+ var xr = function(e) {
2914
+ fr(o, e);
2915
+ var t = vr(o);
2914
2916
  // @docs-props-type NormalPropsBase
2915
2917
  function o(e) {
2916
- var i;
2917
- sr(this, o);
2918
- i = t.call(this, e);
2919
- mr(hr(i), "activeItemId", void 0);
2920
- mr(hr(i), "activeValue", void 0);
2921
- mr(hr(i), "availableOptionCount", void 0);
2922
- mr(hr(i), "children", void 0);
2923
- mr(hr(i), "controlledExternally", void 0);
2924
- mr(hr(i), "input", null);
2925
- mr(hr(i), "popoverId", void 0);
2926
- mr(hr(i), "previousActiveIndex", null);
2927
- mr(hr(i), "handleClick", (function() {
2918
+ var a;
2919
+ cr(this, o);
2920
+ a = t.call(this, e);
2921
+ gr(br(a), "activeItemId", void 0);
2922
+ gr(br(a), "activeValue", void 0);
2923
+ gr(br(a), "availableOptionCount", void 0);
2924
+ gr(br(a), "children", void 0);
2925
+ gr(br(a), "controlledExternally", void 0);
2926
+ gr(br(a), "input", null);
2927
+ gr(br(a), "popoverId", void 0);
2928
+ gr(br(a), "previousActiveIndex", null);
2929
+ gr(br(a), "handleClick", (function() {
2928
2930
  var e;
2929
- (e = i.input) === null || e === void 0 ? void 0 : e.focus();
2931
+ (e = a.input) === null || e === void 0 ? void 0 : e.focus();
2930
2932
  }));
2931
- mr(hr(i), "handleRequestRemove", (function(e, t) {
2933
+ gr(br(a), "handleRequestRemove", (function(e, t) {
2932
2934
  var n = t.value;
2933
2935
  In()((function() {
2934
- return i.removeValue(e, n);
2936
+ return a.removeValue(e, n);
2935
2937
  }));
2936
2938
  // allow the event to bubble before removing.
2937
2939
  }));
2938
- mr(hr(i), "handleInputFocus", (function(e) {
2939
- if (i.state.filterKeyword !== "") {
2940
+ gr(br(a), "handleInputFocus", (function(e) {
2941
+ if (a.state.filterKeyword !== "") {
2940
2942
  var t, n;
2941
- (t = (n = i.props).onFilterChange) === null || t === void 0 ? void 0 : t.call(n, e, {
2943
+ (t = (n = a.props).onFilterChange) === null || t === void 0 ? void 0 : t.call(n, e, {
2942
2944
  keyword: ""
2943
2945
  });
2944
2946
  }
2945
- i.setState({
2947
+ a.setState({
2946
2948
  filterKeyword: "",
2947
2949
  hasFocus: true,
2948
2950
  open: true
2949
2951
  }, (function() {
2950
2952
  var e, t;
2951
- (e = (t = i.props).onOpen) === null || e === void 0 ? void 0 : e.call(t);
2953
+ (e = (t = a.props).onOpen) === null || e === void 0 ? void 0 : e.call(t);
2952
2954
  }));
2953
2955
  }));
2954
- mr(hr(i), "handleInputKeyDown", (function(e) {
2956
+ gr(br(a), "handleInputKeyDown", (function(e) {
2955
2957
  var t, r;
2956
- var o = i.props, a = o.children, l = o.onScrollBottom, s = o.tabConfirmsNewValue;
2958
+ var o = a.props, i = o.children, l = o.onScrollBottom, s = o.tabConfirmsNewValue;
2957
2959
  var c = (0, ge.keycode)(e.nativeEvent);
2958
- if (c === "tab" && i.state.open) {
2959
- if (s && !ie()(i.activeValue) && i.availableOptionCount <= 1) {
2960
+ if (c === "tab" && a.state.open) {
2961
+ if (s && !ae()(a.activeValue) && a.availableOptionCount <= 1) {
2960
2962
  var u;
2961
2963
  e.preventDefault();
2962
- i.addValue(e, i.activeValue);
2963
- (u = i.input) === null || u === void 0 ? void 0 : u.focus();
2964
+ a.addValue(e, a.activeValue);
2965
+ (u = a.input) === null || u === void 0 ? void 0 : u.focus();
2964
2966
  } else {
2965
- i.setState({
2967
+ a.setState({
2966
2968
  open: false
2967
2969
  });
2968
2970
  }
@@ -2970,157 +2972,175 @@
2970
2972
  if (e.shiftKey || e.metaKey || e.ctrlKey) {
2971
2973
  return;
2972
2974
  }
2973
- if (c === "end" && i.state.open) {
2975
+ if (c === "end" && a.state.open) {
2974
2976
  e.preventDefault();
2975
- i.setState({
2976
- activeIndex: i.availableOptionCount - 1
2977
+ a.setState({
2978
+ activeIndex: a.availableOptionCount - 1
2977
2979
  });
2978
2980
  }
2979
- if (c === "home" && i.state.open) {
2981
+ if (c === "home" && a.state.open) {
2980
2982
  e.preventDefault();
2981
- i.setState({
2983
+ a.setState({
2982
2984
  activeIndex: 0
2983
2985
  });
2984
2986
  }
2985
2987
  if (c === "down") {
2986
2988
  e.preventDefault();
2987
- if (i.state.open) {
2988
- i.setState((function(e) {
2989
+ if (a.state.open) {
2990
+ a.setState((function(e) {
2989
2991
  return {
2990
- activeIndex: Math.min(e.activeIndex + 1, i.availableOptionCount - 1)
2992
+ activeIndex: Math.min(e.activeIndex + 1, a.availableOptionCount - 1)
2991
2993
  };
2992
2994
  }));
2993
2995
  } else {
2994
- i.setState({
2996
+ a.setState({
2995
2997
  activeIndex: 0,
2996
2998
  open: true
2997
2999
  });
2998
3000
  }
2999
- if (a && l) {
3001
+ if (i && l) {
3000
3002
  var p;
3001
- var f = n.Children.toArray(a).length - (2 + ((p = i.getCurrentValues()) !== null && p !== void 0 ? p : []).length);
3002
- if (i.state.activeIndex === f) {
3003
- i.handleScrollBottom(e);
3003
+ var f = n.Children.toArray(i).length - (2 + ((p = a.getCurrentValues()) !== null && p !== void 0 ? p : []).length);
3004
+ if (a.state.activeIndex === f) {
3005
+ a.handleScrollBottom(e);
3004
3006
  }
3005
3007
  }
3006
3008
  }
3007
3009
  if (c === "up") {
3008
3010
  e.preventDefault();
3009
- if (i.state.open) {
3010
- i.setState((function(e) {
3011
+ if (a.state.open) {
3012
+ a.setState((function(e) {
3011
3013
  return {
3012
3014
  activeIndex: Math.max(e.activeIndex - 1, 0)
3013
3015
  };
3014
3016
  }));
3015
3017
  } else {
3016
- i.setState({
3018
+ a.setState({
3017
3019
  activeIndex: 0,
3018
3020
  open: true
3019
3021
  });
3020
3022
  }
3021
3023
  }
3022
- if (c === "enter" && !ie()(i.activeValue) && i.state.open) {
3023
- i.addValue(e, i.activeValue);
3024
+ if (c === "enter" && !ae()(a.activeValue) && a.state.open) {
3025
+ a.addValue(e, a.activeValue);
3024
3026
  }
3025
- if (c === "backspace" && ((t = i.input) === null || t === void 0 ? void 0 : t.value) === "" && ((r = i.getCurrentValues()) === null || r === void 0 ? void 0 : r.length)) {
3026
- i.removeValue(e, Rn()(i.getCurrentValues()));
3027
+ if (c === "backspace" && ((t = a.input) === null || t === void 0 ? void 0 : t.value) === "" && ((r = a.getCurrentValues()) === null || r === void 0 ? void 0 : r.length)) {
3028
+ a.removeValue(e, Rn()(a.getCurrentValues()));
3027
3029
  }
3028
3030
  }));
3029
- mr(hr(i), "handleInputChange", (function(e) {
3031
+ gr(br(a), "handleInputChange", (function(e) {
3030
3032
  var t, n;
3031
- i.setState({
3033
+ a.setState({
3032
3034
  filterKeyword: e.target.value,
3033
3035
  open: true,
3034
3036
  activeIndex: 0
3035
3037
  });
3036
- (t = (n = i.props).onFilterChange) === null || t === void 0 ? void 0 : t.call(n, e, {
3038
+ (t = (n = a.props).onFilterChange) === null || t === void 0 ? void 0 : t.call(n, e, {
3037
3039
  keyword: e.target.value
3038
3040
  });
3039
3041
  }));
3040
- mr(hr(i), "handleMenuOptionClick", (function(e, t) {
3042
+ gr(br(a), "handleMenuOptionClick", (function(e, t) {
3041
3043
  var n;
3042
3044
  var r = t.value;
3043
- i.addValue(e, r);
3044
- (n = i.input) === null || n === void 0 ? void 0 : n.focus();
3045
+ a.addValue(e, r);
3046
+ (n = a.input) === null || n === void 0 ? void 0 : n.focus();
3045
3047
  }));
3046
- mr(hr(i), "handleInputBlur", (function(e) {
3047
- var t = document.getElementById(i.popoverId);
3048
+ gr(br(a), "handleInputBlur", (function(e) {
3049
+ var t = document.getElementById(a.popoverId);
3048
3050
  var n = e.relatedTarget || document.activeElement;
3049
3051
  // IE11 doesn't support relatedTarget but sets activeElement
3050
3052
  var r = t && n && t.contains(n);
3051
3053
  // TS: target as Node is an unsafe assumption
3052
- i.setState((function(e) {
3054
+ a.setState((function(e) {
3053
3055
  return {
3054
3056
  filterKeyword: r ? e.filterKeyword : "",
3055
3057
  hasFocus: false
3056
3058
  };
3057
3059
  }));
3058
3060
  if (!r) {
3059
- var o, a;
3060
- (o = (a = i.props).onFilterChange) === null || o === void 0 ? void 0 : o.call(a, e, {
3061
+ var o, i;
3062
+ (o = (i = a.props).onFilterChange) === null || o === void 0 ? void 0 : o.call(i, e, {
3061
3063
  keyword: ""
3062
3064
  });
3063
3065
  }
3064
3066
  }));
3065
- mr(hr(i), "handleRequestClose", (function(e) {
3067
+ gr(br(a), "handleRequestClose", (function(e) {
3066
3068
  var t;
3067
3069
  var n = e.reason, r = e.event;
3068
- if (n === "escapeKey" || n === "offScreen" || n === "clickAway" && r !== undefined && !((t = i.state.el) === null || t === void 0 ? void 0 : t.contains(r.target))) {
3069
- i.setState({
3070
+ if (n === "escapeKey" || n === "offScreen" || n === "clickAway" && r !== undefined && !((t = a.state.el) === null || t === void 0 ? void 0 : t.contains(r.target))) {
3071
+ a.setState({
3070
3072
  open: false
3071
3073
  }, (function() {
3072
3074
  var e, t;
3073
- i.previousActiveIndex = null;
3074
- (e = (t = i.props).onClose) === null || e === void 0 ? void 0 : e.call(t);
3075
+ a.previousActiveIndex = null;
3076
+ (e = (t = a.props).onClose) === null || e === void 0 ? void 0 : e.call(t);
3075
3077
  }));
3076
3078
  }
3077
3079
  if (n === "escapeKey") {
3078
3080
  var o;
3079
- (o = i.input) === null || o === void 0 ? void 0 : o.focus();
3081
+ (o = a.input) === null || o === void 0 ? void 0 : o.focus();
3080
3082
  }
3081
3083
  }));
3082
- mr(hr(i), "handleScrollBottom", (function(e) {
3083
- if (i.state.open && !i.props.isLoadingOptions) {
3084
+ gr(br(a), "handleScrollBottom", (function(e) {
3085
+ if (a.state.open && !a.props.isLoadingOptions) {
3084
3086
  var t, n;
3085
- (t = (n = i.props).onScrollBottom) === null || t === void 0 ? void 0 : t.call(n, e);
3086
- i.setState({
3087
- loadingMoreMessage: "".concat(i.availableOptionCount, " options, loading more options")
3087
+ (t = (n = a.props).onScrollBottom) === null || t === void 0 ? void 0 : t.call(n, e);
3088
+ a.setState({
3089
+ loadingMoreMessage: "".concat(a.availableOptionCount, " options, loading more options")
3088
3090
  });
3089
3091
  }
3090
3092
  }));
3091
- mr(hr(i), "handleMount", (function(e) {
3092
- i.setState({
3093
+ gr(br(a), "handleMount", (function(e) {
3094
+ a.setState({
3093
3095
  el: e
3094
3096
  });
3095
- Jn(i.props.elementRef, e);
3097
+ Qn(a.props.elementRef, e);
3096
3098
  }));
3097
- mr(hr(i), "handleInputMount", (function(e) {
3098
- i.input = e;
3099
- Jn(i.props.inputRef, e);
3099
+ gr(br(a), "handleInputMount", (function(e) {
3100
+ a.input = e;
3101
+ Qn(a.props.inputRef, e);
3100
3102
  }));
3101
- mr(hr(i), "handleActiveOptionMount", (function(e) {
3102
- if (i.previousActiveIndex !== i.state.activeIndex) {
3103
+ gr(br(a), "handleActiveOptionMount", (function(e) {
3104
+ if (a.previousActiveIndex !== a.state.activeIndex) {
3103
3105
  e === null || e === void 0 ? void 0 : e.scrollIntoViewIfNeeded();
3104
3106
  }
3105
3107
  }));
3106
- mr(hr(i), "renderMenu", (function(e) {
3108
+ gr(br(a), "renderMenu", (function(e) {
3107
3109
  var t = e.anchorWidth, n = e.maxHeight, o = e.placement;
3108
- var a = Sr({
3110
+ var i = Cr({
3109
3111
  anchorWidth: t,
3110
3112
  maxHeight: n,
3111
- menuStyle: i.props.menuStyle
3113
+ menuStyle: a.props.menuStyle
3112
3114
  });
3113
3115
 
3114
- return r().createElement(xe(), lr({
3116
+ return r().createElement(xe(), sr({
3115
3117
  controlledExternally: true,
3116
3118
  placement: o !== null && o !== void 0 ? o : undefined,
3117
- isLoading: i.props.isLoadingOptions,
3118
- onScrollBottom: i.props.onScrollBottom ? i.handleScrollBottom : undefined
3119
- }, pe()(i.props, "noOptionsMessage", "footerMessage", "animateLoading", "loadingMessage", "onScroll"), {
3120
- style: a
3121
- }), i.children);
3119
+ isLoading: a.props.isLoadingOptions,
3120
+ onScrollBottom: a.props.onScrollBottom ? a.handleScrollBottom : undefined
3121
+ }, pe()(a.props, "noOptionsMessage", "footerMessage", "animateLoading", "loadingMessage", "onScroll"), {
3122
+ style: i
3123
+ }), a.children);
3124
+ }));
3125
+ gr(br(a), "getSelectedItemsContent", (function(e) {
3126
+ return e.map((function(e) {
3127
+ var t = e;
3128
+ // TS: faking props here
3129
+ var n = t.props;
3130
+ if (n != null) {
3131
+ var o = n.children, a = n.label, i = n.value;
3132
+
3133
+ return r().createElement("span", {
3134
+ key: i.toString()
3135
+ }, o || a, (0, $n.sprintf)((0, u._)(" selected")));
3136
+ }
3137
+
3138
+ return r().createElement("span", {
3139
+ key: (0, be.createGUID)()
3140
+ }, r().createElement(r().Fragment, null, t, (0, $n.sprintf)((0, u._)(" selected"))));
3141
+ }));
3122
3142
  }));
3123
- i.state = {
3143
+ a.state = {
3124
3144
  activeIndex: 0,
3125
3145
  el: null,
3126
3146
  filterKeyword: "",
@@ -3129,16 +3149,16 @@
3129
3149
  values: e.defaultValues || [],
3130
3150
  loadingMoreMessage: ""
3131
3151
  };
3132
- i.availableOptionCount = 0;
3133
- i.children = [];
3134
- i.controlledExternally = l()(e, "values");
3135
- i.activeItemId = (0, be.createDOMID)("active-item");
3136
- i.popoverId = (0, be.createDOMID)("popover");
3152
+ a.availableOptionCount = 0;
3153
+ a.children = [];
3154
+ a.controlledExternally = l()(e, "values");
3155
+ a.activeItemId = (0, be.createDOMID)("active-item");
3156
+ a.popoverId = (0, be.createDOMID)("popover");
3137
3157
  if (false) {}
3138
3158
  if (false) {}
3139
- return i;
3159
+ return a;
3140
3160
  }
3141
- ur(o, [ {
3161
+ pr(o, [ {
3142
3162
  key: "componentDidUpdate",
3143
3163
  value: function e(t, n) {
3144
3164
  if (false) {}
@@ -3174,19 +3194,19 @@
3174
3194
  }, {
3175
3195
  key: "addValue",
3176
3196
  value: function e(t, n) {
3177
- var r, o, i;
3178
- var a = ((r = this.getCurrentValues()) !== null && r !== void 0 ? r : []).concat([ n ]);
3197
+ var r, o, a;
3198
+ var i = ((r = this.getCurrentValues()) !== null && r !== void 0 ? r : []).concat([ n ]);
3179
3199
  var l = this.props.name;
3180
3200
  if (!this.isControlled()) {
3181
3201
  this.setState({
3182
- values: a,
3202
+ values: i,
3183
3203
  activeIndex: 0,
3184
3204
  open: true,
3185
3205
  filterKeyword: ""
3186
3206
  });
3187
3207
  }
3188
- (o = (i = this.props).onChange) === null || o === void 0 ? void 0 : o.call(i, t, {
3189
- values: a,
3208
+ (o = (a = this.props).onChange) === null || o === void 0 ? void 0 : o.call(a, t, {
3209
+ values: i,
3190
3210
  name: l
3191
3211
  });
3192
3212
  }
@@ -3194,16 +3214,16 @@
3194
3214
  key: "removeValue",
3195
3215
  value: function e(t, n) {
3196
3216
  var r, o;
3197
- var i = he()(this.getCurrentValues(), n);
3198
- var a = this.props.name;
3217
+ var a = he()(this.getCurrentValues(), n);
3218
+ var i = this.props.name;
3199
3219
  if (!this.isControlled()) {
3200
3220
  this.setState({
3201
- values: i
3221
+ values: a
3202
3222
  });
3203
3223
  }
3204
3224
  (r = (o = this.props).onChange) === null || r === void 0 ? void 0 : r.call(o, t, {
3205
- values: i,
3206
- name: a
3225
+ values: a,
3226
+ name: i
3207
3227
  });
3208
3228
  }
3209
3229
  }, {
@@ -3214,40 +3234,54 @@
3214
3234
  return t.map((function(e) {
3215
3235
  var t = e;
3216
3236
  // TS: faking props here
3217
-
3237
+ var o = t.props;
3238
+ if (o != null) {
3239
+ var a = o.children, i = o.icon, l = o.label, s = o.selectedAppearance, c = o.selectedBackgroundColor, u = o.selectedForegroundColor, p = o.value;
3240
+
3241
+ return r().createElement(Nn(), {
3242
+ "aria-selected": true,
3243
+ disabled: n.props.disabled,
3244
+ icon: i,
3245
+ key: p.toString(),
3246
+ "data-test": "selected-option",
3247
+ onRequestRemove: n.handleRequestRemove,
3248
+ role: "option",
3249
+ value: p,
3250
+ appearance: s,
3251
+ backgroundColor: c,
3252
+ foregroundColor: u
3253
+ }, r().createElement(r().Fragment, null, a || l));
3254
+ }
3255
+
3218
3256
  return r().createElement(Nn(), {
3219
3257
  "aria-selected": true,
3220
3258
  disabled: n.props.disabled,
3221
- icon: t.props ? t.props.icon : undefined,
3222
- key: (t.props ? t.props.value : t).toString(),
3259
+ key: (0, be.createGUID)(),
3223
3260
  "data-test": "selected-option",
3224
3261
  onRequestRemove: n.handleRequestRemove,
3225
3262
  role: "option",
3226
- value: t.props ? t.props.value : t,
3227
- appearance: t.props ? t.props.selectedAppearance : undefined,
3228
- backgroundColor: t.props ? t.props.selectedBackgroundColor : undefined,
3229
- foregroundColor: t.props ? t.props.selectedForegroundColor : undefined
3230
- }, r().createElement(r().Fragment, null, t.props ? t.props.children || t.props.label : t));
3263
+ value: t
3264
+ }, r().createElement(r().Fragment, null, t));
3231
3265
  }));
3232
3266
  }
3233
3267
  }, {
3234
3268
  key: "render",
3235
3269
  value: function e() {
3236
3270
  var t, o = this;
3237
- var i = this.props, a = i.allowNewValues, s = i.children, p = i.controlledFilter, f = i.defaultPlacement, d = i.describedBy, v = i.disabled, h = i.error, b = i.inline, y = i.inputId, m = i.labelledBy, g = i.placeholder, O = i.required, w = i.repositionMode, S = i.useClickawayOverlay, C = ir(i, [ "allowNewValues", "children", "controlledFilter", "defaultPlacement", "describedBy", "disabled", "error", "inline", "inputId", "labelledBy", "placeholder", "required", "repositionMode", "useClickawayOverlay" ]);
3238
- var x = or(or({}, Dn()(C, (function(e, t) {
3271
+ var a = this.props, i = a.allowNewValues, s = a.children, p = a.controlledFilter, f = a.defaultPlacement, d = a.describedBy, v = a.disabled, h = a.error, b = a.inline, y = a.inputId, m = a.labelledBy, g = a.placeholder, O = a.required, w = a.repositionMode, S = a.useClickawayOverlay, C = ir(a, [ "allowNewValues", "children", "controlledFilter", "defaultPlacement", "describedBy", "disabled", "error", "inline", "inputId", "labelledBy", "placeholder", "required", "repositionMode", "useClickawayOverlay" ]);
3272
+ var x = ar(ar({}, Tn()(C, (function(e, t) {
3239
3273
  return t === "role" || t.indexOf("aria-") === 0;
3240
3274
  }))), {}, {
3241
3275
  "aria-describedby": d,
3242
3276
  "aria-labelledby": m,
3243
3277
  "aria-invalid": h || undefined
3244
3278
  });
3245
- var k = or({}, Dn()(C, (function(e, t) {
3279
+ var k = ar({}, Tn()(C, (function(e, t) {
3246
3280
  return t === "aria-label" || t === "aria-describedby";
3247
3281
  })));
3248
3282
  var I = (t = this.getCurrentValues()) !== null && t !== void 0 ? t : [];
3249
- var j = I.slice(0);
3250
- var _ = I.indexOf(this.state.filterKeyword) >= 0;
3283
+ var _ = I.slice(0);
3284
+ var j = I.indexOf(this.state.filterKeyword) >= 0;
3251
3285
  // Map Options to selected values
3252
3286
  if (I && I.length) {
3253
3287
  n.Children.toArray(s).filter(n.isValidElement).filter((function(e) {
@@ -3256,7 +3290,7 @@
3256
3290
  if (e.type === J) {
3257
3291
  var t = I.indexOf(e.props.value);
3258
3292
  if (t !== -1) {
3259
- j[t] = e;
3293
+ _[t] = e;
3260
3294
  }
3261
3295
  }
3262
3296
  }));
@@ -3274,36 +3308,37 @@
3274
3308
  this.availableOptionCount = 0;
3275
3309
  this.activeValue = undefined;
3276
3310
  this.children = n.Children.map(M, (function(e, t) {
3277
- if (!e.props || !l()(e.props, "value")) {
3311
+ var r = e.props;
3312
+ if (!r || !l()(r, "value")) {
3278
3313
  // ignore Headings and Dividers
3279
3314
  return e;
3280
3315
  }
3281
- var r = e;
3316
+ var a = e;
3317
+ var i = a.props, s = i.children, c = i.label, u = i.matchRanges, f = i.value;
3282
3318
  // find out if the search string exactly matches a value
3283
- if (r.props.value === o.state.filterKeyword) {
3284
- _ = true;
3319
+ if (f === o.state.filterKeyword) {
3320
+ j = true;
3285
3321
  }
3286
3322
  // remove items that are already selected
3287
- var i = I.indexOf(r.props.value);
3288
- if (i >= 0) {
3323
+ var d = I.indexOf(f);
3324
+ if (d >= 0) {
3289
3325
  return null;
3290
3326
  }
3291
3327
  // highlight matched text
3292
- var a = r.props, s = a.children, c = a.label, u = a.matchRanges;
3293
- var f = s === undefined || Pn()(s);
3294
- var d = f && !p && !u && E && (0, Oe.keywordLocations)(c, E);
3328
+ var v = s === undefined || Pn()(s);
3329
+ var h = v && !p && !u && E && (0, Oe.keywordLocations)(c, E);
3295
3330
  // clone item
3296
- var v = (0, n.cloneElement)(r, {
3331
+ var b = (0, n.cloneElement)(a, {
3297
3332
  key: t,
3298
3333
  onClick: o.handleMenuOptionClick,
3299
- matchRanges: f && (u || d) || undefined
3334
+ matchRanges: v && (u || h) || undefined
3300
3335
  });
3301
- return v;
3336
+ return b;
3302
3337
  })).filter((function(e) {
3303
3338
  return e !== null;
3304
3339
  }));
3305
3340
  // Add the option to add the new value
3306
- if (a && !_ && this.state.filterKeyword) {
3341
+ if (i && !j && this.state.filterKeyword) {
3307
3342
  this.children.unshift( r().createElement(J, {
3308
3343
  label: "".concat(this.state.filterKeyword),
3309
3344
  description: (0, u._)("(New value)"),
@@ -3316,35 +3351,37 @@
3316
3351
  if (this.state.open) {
3317
3352
  // highlight the selected Item
3318
3353
  this.children = n.Children.map(this.children, (function(e) {
3319
- if (!e.props || !l()(e.props, "value")) {
3354
+ var t = e.props;
3355
+ if (!t || !l()(t, "value")) {
3320
3356
  // ignore Headings and Dividers
3321
3357
  return e;
3322
3358
  }
3323
- var t = e;
3324
- var r = o.availableOptionCount === o.state.activeIndex;
3359
+ var r = e;
3360
+ var a = r.props, i = a.disabled, s = a.value;
3361
+ var c = o.availableOptionCount === o.state.activeIndex;
3325
3362
  o.availableOptionCount += 1;
3326
- if (!r) {
3327
- return t;
3363
+ if (!c) {
3364
+ return r;
3328
3365
  }
3329
- if (!t.props.disabled) {
3330
- o.activeValue = t.props.value;
3366
+ if (!i) {
3367
+ o.activeValue = s;
3331
3368
  }
3332
- var i = (0, n.cloneElement)(t, {
3333
- active: r,
3369
+ var u = (0, n.cloneElement)(r, {
3370
+ active: c,
3334
3371
  id: o.activeItemId,
3335
3372
  ref: o.handleActiveOptionMount
3336
3373
  });
3337
- return i;
3374
+ return u;
3338
3375
  }));
3339
3376
  }
3340
- var A = wr("".concat(this.state.filterKeyword.length * .8, "em"));
3377
+ var A = Sr("".concat(this.state.filterKeyword.length * .8, "em"));
3341
3378
 
3342
- return r().createElement(r().Fragment, null, r().createElement(zn, lr({
3379
+ return r().createElement(r().Fragment, null, r().createElement(Wn, sr({
3343
3380
  key: "control",
3344
3381
  "data-test-values": JSON.stringify(I),
3345
3382
  inline: b,
3346
3383
  $hasfocus: this.state.hasFocus
3347
- }, c().apply(void 0, [ C, "animateLoading", "controlledFilter", "defaultValues", "footerMessage", "inputRef", "isLoadingOptions", "labelledBy", "menuStyle", "noOptionsMessage", "onChange", "onFilterChange", "onScroll", "onScrollBottom", "onClose", "onOpen", "values", "useClickawayOverlay" ].concat(Xn(le()(x)))), {
3384
+ }, c().apply(void 0, [ C, "animateLoading", "controlledFilter", "defaultValues", "footerMessage", "inputRef", "isLoadingOptions", "labelledBy", "menuStyle", "noOptionsMessage", "onChange", "onFilterChange", "onScroll", "onScrollBottom", "onClose", "onOpen", "values", "useClickawayOverlay" ].concat(Yn(le()(x)))), {
3348
3385
  onClick: v ? undefined : this.handleClick,
3349
3386
  $disabled: v,
3350
3387
  $error: h,
@@ -3357,13 +3394,13 @@
3357
3394
  "aria-labelledby": m,
3358
3395
  "aria-invalid": h,
3359
3396
  "aria-multiselectable": "true"
3360
- }, k), this.renderButtons(j), !v && r().createElement(Wn, {
3397
+ }, k), this.renderButtons(_), !v && r().createElement(Un, {
3361
3398
  role: "combobox",
3362
3399
  "aria-owns": this.state.open ? this.popoverId : undefined,
3363
3400
  "aria-haspopup": true,
3364
3401
  "aria-expanded": this.state.open,
3365
3402
  "aria-controls": this.state.open ? this.popoverId : undefined
3366
- }, r().createElement(Un, lr({
3403
+ }, r().createElement(Gn, sr({
3367
3404
  "data-test": "textbox",
3368
3405
  id: y,
3369
3406
  ref: this.handleInputMount,
@@ -3390,40 +3427,43 @@
3390
3427
  defaultPlacement: f,
3391
3428
  repositionMode: w,
3392
3429
  id: this.popoverId
3393
- }, this.renderMenu)), r().createElement(Fn(), {
3430
+ }, this.renderMenu)), r().createElement(Kn(), {
3394
3431
  role: "status",
3395
- "aria-live": "polite"
3396
- }, this.state.loadingMoreMessage), S && this.state.open ? r().createElement(Gn, {
3432
+ "aria-relevant": "text"
3433
+ }, this.state.loadingMoreMessage), S && this.state.open ? r().createElement(Jn, {
3397
3434
  key: "overlay",
3398
3435
  $popoveropen: this.state.open,
3399
3436
  "data-test": "overlay"
3400
- }) : null);
3437
+ }) : null, r().createElement(Kn(), {
3438
+ role: "alert",
3439
+ "aria-relevant": "additions"
3440
+ }, this.getSelectedItemsContent(_)));
3401
3441
  }
3402
3442
  } ]);
3403
3443
  return o;
3404
3444
  }(n.Component);
3405
- mr(Cr, "propTypes", gr);
3406
- mr(Cr, "defaultProps", Or);
3407
- mr(Cr, "Option", J);
3408
- mr(Cr, "Divider", p.Divider);
3409
- mr(Cr, "Heading", p.Heading);
3410
- /* harmony default export */ const xr = Cr;
3445
+ gr(xr, "propTypes", Or);
3446
+ gr(xr, "defaultProps", wr);
3447
+ gr(xr, "Option", J);
3448
+ gr(xr, "Divider", p.Divider);
3449
+ gr(xr, "Heading", p.Heading);
3450
+ /* harmony default export */ const kr = xr;
3411
3451
  // CONCATENATED MODULE: ./src/Multiselect/Multiselect.tsx
3412
- function kr(e) {
3452
+ function Ir(e) {
3413
3453
  "@babel/helpers - typeof";
3414
3454
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
3415
- kr = function e(t) {
3455
+ Ir = function e(t) {
3416
3456
  return typeof t;
3417
3457
  };
3418
3458
  } else {
3419
- kr = function e(t) {
3459
+ Ir = function e(t) {
3420
3460
  return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
3421
3461
  };
3422
3462
  }
3423
- return kr(e);
3463
+ return Ir(e);
3424
3464
  }
3425
- function Ir() {
3426
- Ir = Object.assign || function(e) {
3465
+ function _r() {
3466
+ _r = Object.assign || function(e) {
3427
3467
  for (var t = 1; t < arguments.length; t++) {
3428
3468
  var n = arguments[t];
3429
3469
  for (var r in n) {
@@ -3434,14 +3474,14 @@
3434
3474
  }
3435
3475
  return e;
3436
3476
  };
3437
- return Ir.apply(this, arguments);
3477
+ return _r.apply(this, arguments);
3438
3478
  }
3439
3479
  function jr(e, t) {
3440
3480
  if (!(e instanceof t)) {
3441
3481
  throw new TypeError("Cannot call a class as a function");
3442
3482
  }
3443
3483
  }
3444
- function _r(e, t) {
3484
+ function Er(e, t) {
3445
3485
  for (var n = 0; n < t.length; n++) {
3446
3486
  var r = t[n];
3447
3487
  r.enumerable = r.enumerable || false;
@@ -3450,12 +3490,12 @@
3450
3490
  Object.defineProperty(e, r.key, r);
3451
3491
  }
3452
3492
  }
3453
- function Er(e, t, n) {
3454
- if (t) _r(e.prototype, t);
3455
- if (n) _r(e, n);
3493
+ function Mr(e, t, n) {
3494
+ if (t) Er(e.prototype, t);
3495
+ if (n) Er(e, n);
3456
3496
  return e;
3457
3497
  }
3458
- function Mr(e, t) {
3498
+ function Ar(e, t) {
3459
3499
  if (typeof t !== "function" && t !== null) {
3460
3500
  throw new TypeError("Super expression must either be null or a function");
3461
3501
  }
@@ -3466,35 +3506,35 @@
3466
3506
  configurable: true
3467
3507
  }
3468
3508
  });
3469
- if (t) Ar(e, t);
3509
+ if (t) Pr(e, t);
3470
3510
  }
3471
- function Ar(e, t) {
3472
- Ar = Object.setPrototypeOf || function e(t, n) {
3511
+ function Pr(e, t) {
3512
+ Pr = Object.setPrototypeOf || function e(t, n) {
3473
3513
  t.__proto__ = n;
3474
3514
  return t;
3475
3515
  };
3476
- return Ar(e, t);
3516
+ return Pr(e, t);
3477
3517
  }
3478
- function Pr(e) {
3518
+ function Vr(e) {
3479
3519
  var t = Tr();
3480
3520
  return function n() {
3481
- var r = Dr(e), o;
3521
+ var r = qr(e), o;
3482
3522
  if (t) {
3483
- var i = Dr(this).constructor;
3484
- o = Reflect.construct(r, arguments, i);
3523
+ var a = qr(this).constructor;
3524
+ o = Reflect.construct(r, arguments, a);
3485
3525
  } else {
3486
3526
  o = r.apply(this, arguments);
3487
3527
  }
3488
- return Vr(this, o);
3528
+ return Rr(this, o);
3489
3529
  };
3490
3530
  }
3491
- function Vr(e, t) {
3492
- if (t && (kr(t) === "object" || typeof t === "function")) {
3531
+ function Rr(e, t) {
3532
+ if (t && (Ir(t) === "object" || typeof t === "function")) {
3493
3533
  return t;
3494
3534
  }
3495
- return Rr(e);
3535
+ return Dr(e);
3496
3536
  }
3497
- function Rr(e) {
3537
+ function Dr(e) {
3498
3538
  if (e === void 0) {
3499
3539
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
3500
3540
  }
@@ -3511,13 +3551,13 @@
3511
3551
  return false;
3512
3552
  }
3513
3553
  }
3514
- function Dr(e) {
3515
- Dr = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
3554
+ function qr(e) {
3555
+ qr = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
3516
3556
  return t.__proto__ || Object.getPrototypeOf(t);
3517
3557
  };
3518
- return Dr(e);
3558
+ return qr(e);
3519
3559
  }
3520
- function qr(e, t, n) {
3560
+ function Nr(e, t, n) {
3521
3561
  if (t in e) {
3522
3562
  Object.defineProperty(e, t, {
3523
3563
  value: n,
@@ -3530,46 +3570,46 @@
3530
3570
  }
3531
3571
  return e;
3532
3572
  }
3533
- var Nr = {
3534
- allowNewValues: i().bool,
3535
- animateLoading: i().bool,
3536
- children: i().node,
3537
- compact: i().bool,
3538
- controlledFilter: i().bool,
3539
- defaultPlacement: i().oneOf([ "above", "below", "vertical" ]),
3540
- defaultValues: i().array,
3541
- describedBy: i().string,
3542
- disabled: i().bool,
3543
- elementRef: i().oneOfType([ i().func, i().object ]),
3544
- error: i().bool,
3545
- filter: i().oneOf([ false, true, "controlled" ]),
3546
- footerMessage: i().node,
3547
- inline: i().bool,
3548
- inputId: i().string,
3549
- inputRef: i().oneOfType([ i().func, i().object ]),
3550
- isLoadingOptions: i().bool,
3551
- labelledBy: i().string,
3552
- loadingMessage: i().node,
3553
- menuStyle: i().object,
3554
- name: i().string,
3555
- noOptionsMessage: i().node,
3556
- onChange: i().func,
3557
- onClose: i().func,
3558
- onFilterChange: i().func,
3559
- onOpen: i().func,
3560
- onScroll: i().func,
3561
- onScrollBottom: i().func,
3562
- placeholder: i().string,
3563
- repositionMode: i().oneOf([ "none", "flip" ]),
3564
- selectAllAppearance: i().oneOf([ "buttongroup", "checkbox" ]),
3565
- showSelectedValuesFirst: i().oneOf([ "nextOpen", "immediately", "never" ]),
3566
- tabConfirmsNewValue: i().bool,
3567
- useClickawayOverlay: i().bool,
3568
- values: i().array,
3573
+ var Br = {
3574
+ allowNewValues: a().bool,
3575
+ animateLoading: a().bool,
3576
+ children: a().node,
3577
+ compact: a().bool,
3578
+ controlledFilter: a().bool,
3579
+ defaultPlacement: a().oneOf([ "above", "below", "vertical" ]),
3580
+ defaultValues: a().array,
3581
+ describedBy: a().string,
3582
+ disabled: a().bool,
3583
+ elementRef: a().oneOfType([ a().func, a().object ]),
3584
+ error: a().bool,
3585
+ filter: a().oneOf([ false, true, "controlled" ]),
3586
+ footerMessage: a().node,
3587
+ inline: a().bool,
3588
+ inputId: a().string,
3589
+ inputRef: a().oneOfType([ a().func, a().object ]),
3590
+ isLoadingOptions: a().bool,
3591
+ labelledBy: a().string,
3592
+ loadingMessage: a().node,
3593
+ menuStyle: a().object,
3594
+ name: a().string,
3595
+ noOptionsMessage: a().node,
3596
+ onChange: a().func,
3597
+ onClose: a().func,
3598
+ onFilterChange: a().func,
3599
+ onOpen: a().func,
3600
+ onScroll: a().func,
3601
+ onScrollBottom: a().func,
3602
+ placeholder: a().string,
3603
+ repositionMode: a().oneOf([ "none", "flip" ]),
3604
+ selectAllAppearance: a().oneOf([ "buttongroup", "checkbox" ]),
3605
+ showSelectedValuesFirst: a().oneOf([ "nextOpen", "immediately", "never" ]),
3606
+ tabConfirmsNewValue: a().bool,
3607
+ useClickawayOverlay: a().bool,
3608
+ values: a().array,
3569
3609
  /** @private */
3570
- virtualization: i().number
3610
+ virtualization: a().number
3571
3611
  };
3572
- var Br = {
3612
+ var Lr = {
3573
3613
  allowNewValues: false,
3574
3614
  animateLoading: false,
3575
3615
  compact: false,
@@ -3584,44 +3624,44 @@
3584
3624
  tabConfirmsNewValue: false,
3585
3625
  useClickawayOverlay: false
3586
3626
  };
3587
- function Lr(e) {
3627
+ function Fr(e) {
3588
3628
  return e && e.compact === true;
3589
3629
  }
3590
3630
  var Kr = function(e) {
3591
- Mr(n, e);
3592
- var t = Pr(n);
3631
+ Ar(n, e);
3632
+ var t = Vr(n);
3593
3633
  function n() {
3594
3634
  jr(this, n);
3595
3635
  return t.apply(this, arguments);
3596
3636
  }
3597
- Er(n, [ {
3637
+ Mr(n, [ {
3598
3638
  key: "render",
3599
3639
  // @docs-props-type MultiselectPropsBase
3600
3640
  // TODO: SUI-3402, this can be removed when ControlGroup no longer needs to inspect componentType
3601
3641
  value: function e() {
3602
- if (Lr(this.props)) {
3642
+ if (Fr(this.props)) {
3603
3643
 
3604
- return r().createElement(xn, Ir({
3644
+ return r().createElement(xn, _r({
3605
3645
  "data-test": "multiselect"
3606
3646
  }, c()(this.props, "compact")));
3607
3647
  }
3608
3648
  if (false) {}
3609
3649
  if (false) {}
3610
3650
 
3611
- return r().createElement(xr, Ir({
3651
+ return r().createElement(kr, _r({
3612
3652
  "data-test": "multiselect"
3613
3653
  }, c()(this.props, "compact")));
3614
3654
  }
3615
3655
  } ]);
3616
3656
  return n;
3617
3657
  }(n.Component);
3618
- qr(Kr, "propTypes", Nr);
3619
- qr(Kr, "defaultProps", Br);
3620
- qr(Kr, "componentType", "Multiselect");
3621
- qr(Kr, "Option", J);
3622
- qr(Kr, "Heading", p.Heading);
3623
- qr(Kr, "Divider", p.Divider);
3624
- /* harmony default export */ const Fr = Kr;
3658
+ Nr(Kr, "propTypes", Br);
3659
+ Nr(Kr, "defaultProps", Lr);
3660
+ Nr(Kr, "componentType", "Multiselect");
3661
+ Nr(Kr, "Option", J);
3662
+ Nr(Kr, "Heading", p.Heading);
3663
+ Nr(Kr, "Divider", p.Divider);
3664
+ /* harmony default export */ const $r = Kr;
3625
3665
  // CONCATENATED MODULE: ./src/Multiselect/index.ts
3626
3666
  module.exports = t;
3627
3667
  /******/})();