@splunk/react-ui 4.22.0 → 4.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Multiselect.js CHANGED
@@ -267,7 +267,7 @@
267
267
  * An option within a `Multiselect`. This inherits from
268
268
  * [PureComponent](https://reactjs.org/docs/react-api.html#reactpurecomponent)
269
269
  * so any elements passed to it must also be pure.
270
- */ var A = function(e) {
270
+ */ var E = function(e) {
271
271
  g(n, e);
272
272
  var t = w(n);
273
273
  function n() {
@@ -326,23 +326,23 @@
326
326
  } ]);
327
327
  return n;
328
328
  }(n.PureComponent);
329
- I(A, "propTypes", j);
330
- I(A, "defaultProps", _);
331
- I(A, "type", p.Item);
332
- /* harmony default export */ const E = A;
329
+ I(E, "propTypes", j);
330
+ I(E, "defaultProps", _);
331
+ I(E, "type", p.Item);
332
+ /* harmony default export */ const M = E;
333
333
  // CONCATENATED MODULE: ./src/Multiselect/Option.tsx
334
- function M(e) {
334
+ function A(e) {
335
335
  "@babel/helpers - typeof";
336
336
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
337
- M = function e(t) {
337
+ A = function e(t) {
338
338
  return typeof t;
339
339
  };
340
340
  } else {
341
- M = function e(t) {
341
+ A = function e(t) {
342
342
  return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
343
343
  };
344
344
  }
345
- return M(e);
345
+ return A(e);
346
346
  }
347
347
  function P() {
348
348
  P = Object.assign || function(e) {
@@ -438,7 +438,7 @@
438
438
  };
439
439
  }
440
440
  function K(e, t) {
441
- if (t && (M(t) === "object" || typeof t === "function")) {
441
+ if (t && (A(t) === "object" || typeof t === "function")) {
442
442
  return t;
443
443
  }
444
444
  return F(e);
@@ -553,7 +553,7 @@
553
553
  value: function e() {
554
554
  var t = this.props, n = t.compact, o = V(t, [ "compact" ]);
555
555
 
556
- return r().createElement(E, P({}, o, {
556
+ return r().createElement(M, P({}, o, {
557
557
  multiple: n,
558
558
  ref: this.handleMount
559
559
  }), this.props.children || this.props.label);
@@ -616,14 +616,14 @@
616
616
  const je = require("@splunk/react-icons/CaretSmallDown");
617
617
  var _e = e.n(je);
618
618
  // CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Caret"
619
- const Ae = require("@splunk/react-icons/enterprise/Caret");
620
- var Ee = e.n(Ae);
619
+ const Ee = require("@splunk/react-icons/enterprise/Caret");
620
+ var Me = e.n(Ee);
621
621
  // CONCATENATED MODULE: external "@splunk/themes"
622
- const Me = require("@splunk/themes");
622
+ const Ae = require("@splunk/themes");
623
623
  // CONCATENATED MODULE: ./src/Select/icons/CaretSmallDown.tsx
624
624
  var Pe = function e() {
625
- var t = (0, Me.useSplunkTheme)(), n = t.isEnterprise;
626
- var o = n ? r().createElement(Ee(), {
625
+ var t = (0, Ae.useSplunkTheme)(), n = t.isEnterprise;
626
+ var o = n ? r().createElement(Me(), {
627
627
  screenReaderText: null,
628
628
  hideDefaultTooltip: true,
629
629
  size: .5
@@ -639,7 +639,7 @@
639
639
  var qe = e.n(De);
640
640
  // CONCATENATED MODULE: ./src/Select/icons/Search.tsx
641
641
  var Ne = function e() {
642
- var t = (0, Me.useSplunkTheme)(), n = t.isEnterprise, o = t.isCompact;
642
+ var t = (0, Ae.useSplunkTheme)(), n = t.isEnterprise, o = t.isCompact;
643
643
  var a = (0, u._)("Search");
644
644
  var i = o ? "20px" : "24px";
645
645
  var l = n ? r().createElement(Te(), {
@@ -667,10 +667,10 @@
667
667
  var We = e.n(He);
668
668
  // CONCATENATED MODULE: ./src/Menu/ItemStyles.ts
669
669
  var ze = (0, Le.css)([ "color:", ";font-size:", ";line-height:", ";overflow:inherit;white-space:inherit;text-overflow:inherit;" ], (0,
670
- Me.pick)({
671
- prisma: Me.variables.contentColorDefault,
672
- enterprise: Me.variables.textGray
673
- }), Me.variables.fontSizeSmall, (0, Me.pick)({
670
+ Ae.pick)({
671
+ prisma: Ae.variables.contentColorDefault,
672
+ enterprise: Ae.variables.textGray
673
+ }), Ae.variables.fontSizeSmall, (0, Ae.pick)({
674
674
  prisma: "16px"
675
675
  }));
676
676
  var Ue = Ke().span.withConfig({
@@ -680,42 +680,42 @@
680
680
  var Ge = Ke().span.withConfig({
681
681
  displayName: "ItemStyles__StyledItemDescriptionRight",
682
682
  componentId: "sc-4kc053-1"
683
- })([ "", ";float:right;padding-left:", ";max-width:50%;text-align:right;box-sizing:border-box;" ], ze, Me.variables.spacing);
683
+ })([ "", ";float:right;padding-left:", ";max-width:50%;text-align:right;box-sizing:border-box;" ], ze, Ae.variables.spacing);
684
684
  var Je = Ke().div.withConfig({
685
685
  displayName: "ItemStyles__StyledItemSelectedIcon",
686
686
  componentId: "sc-4kc053-2"
687
- })([ "position:absolute;", " color:", ";" ], (0, Me.pick)({
687
+ })([ "position:absolute;", " color:", ";" ], (0, Ae.pick)({
688
688
  prisma: (0, Le.css)([ "right:16px;" ]),
689
689
  enterprise: (0, Le.css)([ "top:5px;right:3px;left:8px;" ])
690
- }), (0, Me.pick)({
691
- prisma: Me.variables.contentColorActive,
692
- enterprise: Me.variables.accentColorL10
690
+ }), (0, Ae.pick)({
691
+ prisma: Ae.variables.contentColorActive,
692
+ enterprise: Ae.variables.accentColorL10
693
693
  }));
694
694
  var Qe = Ke().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,
698
- Me.pick)({
698
+ Ae.pick)({
699
699
  prisma: "8px",
700
700
  enterprise: "3px"
701
- }), (0, Me.pick)({
701
+ }), (0, Ae.pick)({
702
702
  prisma: "initial",
703
703
  enterprise: "middle"
704
- }), (0, Me.pick)({
705
- prisma: (0, Le.css)([ "color:", ";display:inline-flex;align-items:center;min-width:20px;min-height:20px;& > svg{width:20px;height:20px;}" ], Me.variables.contentColorMuted),
704
+ }), (0, Ae.pick)({
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
708
  var Xe = Ke()($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,
712
- Me.pick)({
713
- prisma: Me.variables.contentColorActive,
712
+ Ae.pick)({
713
+ prisma: Ae.variables.contentColorActive,
714
714
  enterprise: {
715
- dark: Me.variables.gray96,
716
- light: Me.variables.gray22
715
+ dark: Ae.variables.gray96,
716
+ light: Ae.variables.gray22
717
717
  }
718
- }), (0, Me.pick)({
718
+ }), (0, Ae.pick)({
719
719
  prisma: {
720
720
  comfortable: "10px 16px",
721
721
  compact: "6px 16px"
@@ -723,7 +723,7 @@
723
723
  enterprise: "6px 10px"
724
724
  }), (function(e) {
725
725
  var t = e.$isSelectable, n = e.$selectableAppearance;
726
- return t && (0, Me.pick)({
726
+ return t && (0, Ae.pick)({
727
727
  prisma: (0, Le.css)([ "padding-right:44px;", "" ], (function() {
728
728
  return n === "checkbox" && "padding-left: 42px;";
729
729
  })),
@@ -733,67 +733,67 @@
733
733
  });
734
734
  }), (function(e) {
735
735
  var t = e.$active, n = e.$preventFocus;
736
- return t && !n && (0, Le.css)([ "box-shadow:", ";" ], Me.variables.focusShadowInset);
736
+ return t && !n && (0, Le.css)([ "box-shadow:", ";" ], Ae.variables.focusShadowInset);
737
737
  }), (function(e) {
738
738
  var t = e.$active;
739
- return t && (0, Le.css)([ "background:", ";font-weight:", ";" ], (0, Me.pick)({
739
+ return t && (0, Le.css)([ "background:", ";font-weight:", ";" ], (0, Ae.pick)({
740
740
  enterprise: {
741
- light: Me.variables.gray92,
742
- dark: Me.variables.gray22
741
+ light: Ae.variables.gray92,
742
+ dark: Ae.variables.gray22
743
743
  },
744
- prisma: Me.variables.neutral100
745
- }), Me.variables.fontWeightBold);
746
- }), (0, Me.pick)({
747
- prisma: Me.variables.interactiveColorOverlayHover,
748
- enterprise: Me.variables.backgroundColorHover
744
+ prisma: Ae.variables.neutral100
745
+ }), Ae.variables.fontWeightBold);
746
+ }), (0, Ae.pick)({
747
+ prisma: Ae.variables.interactiveColorOverlayHover,
748
+ enterprise: Ae.variables.backgroundColorHover
749
749
  }), (function(e) {
750
750
  var t = e.$selected;
751
- return t && (0, Me.pick)({
752
- prisma: (0, Le.css)([ "background:", ";" ], Me.mixins.overlayColors(Me.variables.interactiveColorOverlaySelected, Me.variables.interactiveColorOverlayHover))
751
+ return t && (0, Ae.pick)({
752
+ prisma: (0, Le.css)([ "background:", ";" ], Ae.mixins.overlayColors(Ae.variables.interactiveColorOverlaySelected, Ae.variables.interactiveColorOverlayHover))
753
753
  });
754
- }), Me.variables.focusShadowInset, (0, Me.pick)({
755
- prisma: (0, Le.css)([ "background:", ";" ], Me.variables.interactiveColorOverlayHover)
756
- }), (0, Me.pick)({
757
- prisma: (0, Le.css)([ "&:active{background:", ";}" ], Me.variables.interactiveColorOverlayActive)
754
+ }), Ae.variables.focusShadowInset, (0, Ae.pick)({
755
+ prisma: (0, Le.css)([ "background:", ";" ], Ae.variables.interactiveColorOverlayHover)
756
+ }), (0, Ae.pick)({
757
+ prisma: (0, Le.css)([ "&:active{background:", ";}" ], Ae.variables.interactiveColorOverlayActive)
758
758
  }), (function(e) {
759
759
  var t = e.$selected;
760
- return t && (0, Me.pick)({
761
- prisma: (0, Le.css)([ "background:", ";&:active{background:", ";}" ], Me.variables.interactiveColorOverlaySelected, Me.mixins.overlayColors(Me.variables.interactiveColorOverlaySelected, Me.variables.interactiveColorOverlayActive))
760
+ return t && (0, Ae.pick)({
761
+ prisma: (0, Le.css)([ "background:", ";&:active{background:", ";}" ], Ae.variables.interactiveColorOverlaySelected, Ae.mixins.overlayColors(Ae.variables.interactiveColorOverlaySelected, Ae.variables.interactiveColorOverlayActive))
762
762
  });
763
- }), (0, Me.pick)({
763
+ }), (0, Ae.pick)({
764
764
  enterprise: {
765
- light: Me.variables.gray45,
766
- dark: Me.variables.contentColorDisabled
765
+ light: Ae.variables.gray45,
766
+ dark: Ae.variables.contentColorDisabled
767
767
  },
768
- prisma: Me.variables.contentColorDisabled
768
+ prisma: Ae.variables.contentColorDisabled
769
769
  }),
770
770
  /* sc-sel */
771
771
  Ue,
772
772
  /* sc-sel */
773
773
  Ge,
774
774
  /* sc-sel */
775
- Je, (0, Me.pick)({
776
- prisma: Me.variables.contentColorDisabled,
777
- enterprise: Me.variables.gray80
778
- }), (0, Me.pick)({
775
+ Je, (0, Ae.pick)({
776
+ prisma: Ae.variables.contentColorDisabled,
777
+ enterprise: Ae.variables.gray80
778
+ }), (0, Ae.pick)({
779
779
  prisma: (0, Le.css)([ "& > * > ", "{color:", ";}" ],
780
780
  /* sc-sel */
781
- Qe, Me.variables.contentColorDisabled)
781
+ Qe, Ae.variables.contentColorDisabled)
782
782
  }), (function(e) {
783
783
  var t = e.$selected;
784
- return t && (0, Me.pick)({
784
+ return t && (0, Ae.pick)({
785
785
  prisma: (0, Le.css)([ "", "{color:", ";}" ],
786
786
  /* sc-sel */
787
- Qe, Me.variables.contentColorActive)
787
+ Qe, Ae.variables.contentColorActive)
788
788
  });
789
789
  }));
790
790
  var Ye = Ke()(We()).withConfig({
791
791
  displayName: "ItemStyles__StyledSwitch",
792
792
  componentId: "sc-4kc053-5"
793
- })([ "position:absolute;left:", ";top:", ";" ], (0, Me.pick)({
793
+ })([ "position:absolute;left:", ";top:", ";" ], (0, Ae.pick)({
794
794
  prisma: "16px",
795
795
  enterprise: "8px"
796
- }), (0, Me.pick)({
796
+ }), (0, Ae.pick)({
797
797
  prisma: "0px",
798
798
  enterprise: {
799
799
  comfortable: "-1px",
@@ -821,32 +821,32 @@
821
821
  var nt = Ke().span.withConfig({
822
822
  displayName: "ItemStyles__StyledMatch",
823
823
  componentId: "sc-4kc053-9"
824
- })([ "border-bottom:1px solid ", ";" ], (0, Me.pick)({
825
- prisma: Me.variables.contentColorActive,
824
+ })([ "border-bottom:1px solid ", ";" ], (0, Ae.pick)({
825
+ prisma: Ae.variables.contentColorActive,
826
826
  enterprise: {
827
- dark: Me.variables.gray96,
828
- light: Me.variables.gray45
827
+ dark: Ae.variables.gray96,
828
+ light: Ae.variables.gray45
829
829
  }
830
830
  }));
831
831
  var rt = Ke().span.withConfig({
832
832
  displayName: "ItemStyles__StyledSubmenu",
833
833
  componentId: "sc-4kc053-10"
834
- })([ "float:right;padding-left:", ";color:", ";", "" ], Me.variables.spacingSmall, (0,
835
- Me.pick)({
834
+ })([ "float:right;padding-left:", ";color:", ";", "" ], Ae.variables.spacingSmall, (0,
835
+ Ae.pick)({
836
836
  prisma: "inherit",
837
- enterprise: Me.variables.textGray
838
- }), (0, Me.pick)({
837
+ enterprise: Ae.variables.textGray
838
+ }), (0, Ae.pick)({
839
839
  prisma: (0, Le.css)([ "& > svg{width:20px;height:20px;}" ])
840
840
  }));
841
841
  // CONCATENATED MODULE: ./src/Select/SelectAllOptionStyles.ts
842
842
  var ot = Ke()(tt).withConfig({
843
843
  displayName: "SelectAllOptionStyles__StyledSelectAllLabel",
844
844
  componentId: "y6bn08-0"
845
- })([ "font-weight:", ";" ], Me.variables.fontWeightBold);
846
- var at = Ke()(E).withConfig({
845
+ })([ "font-weight:", ";" ], Ae.variables.fontWeightBold);
846
+ var at = Ke()(M).withConfig({
847
847
  displayName: "SelectAllOptionStyles__StyledSelectAllOption",
848
848
  componentId: "y6bn08-1"
849
- })([ "padding-inline-start:", ";box-shadow:none;" ], (0, Me.pick)({
849
+ })([ "padding-inline-start:", ";box-shadow:none;" ], (0, Ae.pick)({
850
850
  prisma: "42px;",
851
851
  enterprise: "32px;"
852
852
  }));
@@ -863,7 +863,7 @@
863
863
  };
864
864
  var lt = r().forwardRef((function(e, t) {
865
865
  var n = e.active, o = e.id, a = e.onClick, i = e.selectAllLabel, l = e.totalCount, s = e.changedToggle, c = e.selected;
866
- // When toggle is changed the total count is not displayed anymore so the count is now shown in the Select All menu item
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
869
  return r().createElement(at, {
@@ -924,51 +924,51 @@
924
924
  var vt = Ke().div.withConfig({
925
925
  displayName: "SelectBaseStyles__StyledFilter",
926
926
  componentId: "sc-16cj7sk-3"
927
- })([ "padding:", ";min-width:160px;" ], (0, Me.pick)({
927
+ })([ "padding:", ";min-width:160px;" ], (0, Ae.pick)({
928
928
  enterprise: "8px",
929
929
  prisma: "10px 16px"
930
930
  }));
931
931
  var ht = Ke().span.withConfig({
932
932
  displayName: "SelectBaseStyles__StyledSearchIconWrapper",
933
933
  componentId: "sc-16cj7sk-4"
934
- })([ "color:", ";pointer-events:none;padding:", ";" ], (0, Me.pick)({
934
+ })([ "color:", ";pointer-events:none;padding:", ";" ], (0, Ae.pick)({
935
935
  enterprise: {
936
- light: Me.variables.gray60,
937
- dark: Me.variables.white
936
+ light: Ae.variables.gray60,
937
+ dark: Ae.variables.white
938
938
  },
939
- prisma: Me.variables.contentColorMuted
940
- }), (0, Me.pick)({
939
+ prisma: Ae.variables.contentColorMuted
940
+ }), (0, Ae.pick)({
941
941
  comfortable: "0 8px",
942
942
  compact: "0 6px"
943
943
  }));
944
944
  var bt = Ke().span.withConfig({
945
945
  displayName: "SelectBaseStyles__StyledCount",
946
946
  componentId: "sc-16cj7sk-5"
947
- })([ "padding-right:", ";" ], (0, Me.pick)({
948
- enterprise: Me.variables.spacingQuarter,
949
- prisma: Me.variables.spacingXSmall
947
+ })([ "padding-right:", ";" ], (0, Ae.pick)({
948
+ enterprise: Ae.variables.spacingQuarter,
949
+ prisma: Ae.variables.spacingXSmall
950
950
  }));
951
951
  var yt = Ke()(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
- return t && (0, Le.css)([ "color:", ";" ], Me.variables.contentColorDisabled);
956
+ return t && (0, Le.css)([ "color:", ";" ], Ae.variables.contentColorDisabled);
957
957
  }));
958
958
  var mt = Ke().div.withConfig({
959
959
  displayName: "SelectBaseStyles__StyledToggleAllControls",
960
960
  componentId: "sc-16cj7sk-7"
961
- })([ "padding:", ";", "" ], (0, Me.pick)({
961
+ })([ "padding:", ";", "" ], (0, Ae.pick)({
962
962
  enterprise: "5px 8px",
963
963
  prisma: "10px 16px"
964
- }), (0, Me.pickVariant)("$placement", {
964
+ }), (0, Ae.pickVariant)("$placement", {
965
965
  above: {
966
- enterprise: (0, Le.css)([ "border-top:", ";" ], Me.variables.border),
967
- prisma: (0, Le.css)([ "border-top:1px solid ", ";" ], Me.variables.neutral200)
966
+ enterprise: (0, Le.css)([ "border-top:", ";" ], Ae.variables.border),
967
+ prisma: (0, Le.css)([ "border-top:1px solid ", ";" ], Ae.variables.neutral200)
968
968
  },
969
969
  below: {
970
- enterprise: (0, Le.css)([ "border-bottom:", ";" ], Me.variables.border),
971
- prisma: (0, Le.css)([ "border-bottom:1px solid ", ";" ], Me.variables.neutral200)
970
+ enterprise: (0, Le.css)([ "border-bottom:", ";" ], Ae.variables.border),
971
+ prisma: (0, Le.css)([ "border-bottom:1px solid ", ";" ], Ae.variables.neutral200)
972
972
  }
973
973
  }));
974
974
  // CONCATENATED MODULE: ./src/utils/fuzzyMatch.ts
@@ -1145,7 +1145,7 @@
1145
1145
  return kt.apply(this, arguments);
1146
1146
  }
1147
1147
  function It(e, t) {
1148
- return At(e) || _t(e, t) || Pt(e, t) || jt();
1148
+ return Et(e) || _t(e, t) || Pt(e, t) || jt();
1149
1149
  }
1150
1150
  function jt() {
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.");
@@ -1173,13 +1173,13 @@
1173
1173
  }
1174
1174
  return n;
1175
1175
  }
1176
- function At(e) {
1176
+ function Et(e) {
1177
1177
  if (Array.isArray(e)) return e;
1178
1178
  }
1179
- function Et(e) {
1180
- return Rt(e) || Vt(e) || Pt(e) || Mt();
1179
+ function Mt(e) {
1180
+ return Rt(e) || Vt(e) || Pt(e) || At();
1181
1181
  }
1182
- function Mt() {
1182
+ function At() {
1183
1183
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1184
1184
  }
1185
1185
  function Pt(e, t) {
@@ -1495,7 +1495,7 @@
1495
1495
  return;
1496
1496
  }
1497
1497
  var u = (t = a.getCurrentValues()) !== null && t !== void 0 ? t : [];
1498
- var p = he().apply(void 0, [ u ].concat(Et(a.displayedValues)));
1498
+ var p = he().apply(void 0, [ u ].concat(Mt(a.displayedValues)));
1499
1499
  // this will unselect all selected values unless those values are disabled or hidden by the filter
1500
1500
  var f = r().Children.toArray(s).filter((function(e) {
1501
1501
  return tn(e) && (re()(u, e.props.value) && e.props.disabled || re()(p, e.props.value));
@@ -1757,7 +1757,7 @@
1757
1757
  suffixLabel: S
1758
1758
  });
1759
1759
  }
1760
- var A = Gt({
1760
+ var E = Gt({
1761
1761
  "aria-describedby": p,
1762
1762
  "aria-label": "".concat(y ? "".concat(y, ", ") : "").concat(_),
1763
1763
  "aria-labelledby": y ? undefined : b,
@@ -1770,23 +1770,23 @@
1770
1770
  error: v
1771
1771
  }, c()(a.props, le()(o.propTypes)));
1772
1772
  if (m) {
1773
- A["data-test-values"] = JSON.stringify(k);
1773
+ E["data-test-values"] = JSON.stringify(k);
1774
1774
  } else {
1775
- var E = It(k, 1), M = E[0];
1776
- A["data-test-value"] = M;
1775
+ var M = It(k, 1), A = M[0];
1776
+ E["data-test-value"] = A;
1777
1777
  }
1778
1778
  if (i) {
1779
1779
 
1780
- return (0, n.cloneElement)(i, A);
1780
+ return (0, n.cloneElement)(i, E);
1781
1781
  }
1782
1782
  if (l === "link") {
1783
1783
 
1784
- return r().createElement(Se(), kt({}, A, {
1784
+ return r().createElement(Se(), kt({}, E, {
1785
1785
  "data-select-appearance": "link"
1786
1786
  }), !!C && r().createElement(ft, null, C), x || g, r().createElement(dt, null, r().createElement(Ve, null)));
1787
1787
  }
1788
1788
 
1789
- return r().createElement(pt, kt({}, A, {
1789
+ return r().createElement(pt, kt({}, E, {
1790
1790
  $multiple: m,
1791
1791
  appearance: l,
1792
1792
  label: x,
@@ -1888,7 +1888,7 @@
1888
1888
  O += 1;
1889
1889
  w = true;
1890
1890
  }
1891
- x.splice(n ? 0 : o + 1, 0, r().createElement(E, {
1891
+ x.splice(n ? 0 : o + 1, 0, r().createElement(M, {
1892
1892
  label: String(e),
1893
1893
  value: e,
1894
1894
  key: "missing-value-".concat(e),
@@ -1925,7 +1925,7 @@
1925
1925
  // Add the option to add the new value
1926
1926
  if (c && !g && t) {
1927
1927
  var j = w ? O + 1 : O;
1928
- x.splice(j, 0, r().createElement(E, {
1928
+ x.splice(j, 0, r().createElement(M, {
1929
1929
  label: "".concat(t, " (new value)"),
1930
1930
  value: t,
1931
1931
  key: "newValue",
@@ -1935,7 +1935,7 @@
1935
1935
  }
1936
1936
  // When selectAll is a menu item, add an offset so that activeItem accounts for the extra selectAll option.
1937
1937
  var _ = v === "checkbox" && d && x.length > 1 ? 1 : 0;
1938
- var A = true;
1938
+ var E = true;
1939
1939
  // Highlight the selected Items and remove hidden
1940
1940
  x = x.reduce((function(e, t) {
1941
1941
  // ignore Dividers & Headings
@@ -1955,7 +1955,7 @@
1955
1955
  a.availableOptionCount += 1;
1956
1956
  a.selectedOptionCount += t.props.selected ? 1 : 0;
1957
1957
  if (t.key !== "newValue" && !t.props.disabled && !t.props.selected) {
1958
- A = false;
1958
+ E = false;
1959
1959
  }
1960
1960
  if (!r || !o) {
1961
1961
  e.push(t);
@@ -1972,10 +1972,10 @@
1972
1972
  e.push(i);
1973
1973
  return e;
1974
1974
  }), []);
1975
- a.optionSelection = a.selectedOptionCount === 0 && "none" || A && "all" || "some";
1975
+ a.optionSelection = a.selectedOptionCount === 0 && "none" || E && "all" || "some";
1976
1976
  // add select all option
1977
1977
  if (v === "checkbox" && d && a.availableOptionCount > 0) {
1978
- var M;
1978
+ var A;
1979
1979
  var P;
1980
1980
  if (a.optionSelection === "all") {
1981
1981
  if (t === "") {
@@ -1995,7 +1995,7 @@
1995
1995
  key: "selectAllOption",
1996
1996
  selected: a.optionSelection === "all" || a.optionSelection !== "none" && "some",
1997
1997
  selectAllLabel: P,
1998
- totalCount: (M = a.getCurrentValues()) === null || M === void 0 ? void 0 : M.length,
1998
+ totalCount: (A = a.getCurrentValues()) === null || A === void 0 ? void 0 : A.length,
1999
1999
  changedToggle: !!a.props.toggle,
2000
2000
  onClick: a.optionSelection === "all" ? a.handleClearAll : a.handleSelectAll,
2001
2001
  id: a.state.activeIndex === 0 ? a.activeItemId : undefined,
@@ -2095,7 +2095,7 @@
2095
2095
  var p;
2096
2096
  if (u) {
2097
2097
  if (l >= 0) {
2098
- p = [].concat(Et(i.slice(0, l)), Et(i.slice(l + 1)));
2098
+ p = [].concat(Mt(i.slice(0, l)), Mt(i.slice(l + 1)));
2099
2099
  } else {
2100
2100
  p = i.concat([ n ]);
2101
2101
  }
@@ -2155,12 +2155,12 @@
2155
2155
  "aria-label": f,
2156
2156
  onClick: this.handleSelectAll,
2157
2157
  "data-test": "select-all"
2158
- }, a ? (0, u._)("Select All Matches") : (0, u._)("Select All")), r().createElement(yt, {
2158
+ }, a ? (0, u._)("Select all Matches") : (0, u._)("Select all")), r().createElement(yt, {
2159
2159
  $disabled: this.optionSelection === "none",
2160
2160
  "aria-label": d,
2161
2161
  onClick: this.handleClearAll,
2162
2162
  "data-test": "clear-all"
2163
- }, a ? (0, u._)("Clear All Matches") : (0, u._)("Clear All")));
2163
+ }, a ? (0, u._)("Clear all Matches") : (0, u._)("Clear all")));
2164
2164
  return this.hasFilter() && r().createElement("div", {
2165
2165
  key: "controls"
2166
2166
  }, r().createElement(vt, {
@@ -2252,7 +2252,7 @@
2252
2252
  }(n.Component);
2253
2253
  Jt(rn, "propTypes", Qt);
2254
2254
  Jt(rn, "defaultProps", Xt);
2255
- Jt(rn, "Option", E);
2255
+ Jt(rn, "Option", M);
2256
2256
  Jt(rn, "Divider", p.Divider);
2257
2257
  Jt(rn, "Heading", p.Heading);
2258
2258
  Jt(rn, "invalidLinkAppearanceProps", [ "append", "error", "prepend" ]);
@@ -2478,7 +2478,7 @@
2478
2478
  children: n.Children.toArray(a).map((function(e) {
2479
2479
  if (tn(e)) {
2480
2480
 
2481
- return r().createElement(E, ln({}, e.props, {
2481
+ return r().createElement(M, ln({}, e.props, {
2482
2482
  multiple: true
2483
2483
  }));
2484
2484
  }
@@ -2513,11 +2513,11 @@
2513
2513
  const jn = require("lodash/extend");
2514
2514
  var _n = e.n(jn);
2515
2515
  // CONCATENATED MODULE: external "lodash/get"
2516
- const An = require("lodash/get");
2517
- var En = e.n(An);
2516
+ const En = require("lodash/get");
2517
+ var Mn = e.n(En);
2518
2518
  // CONCATENATED MODULE: external "lodash/isString"
2519
- const Mn = require("lodash/isString");
2520
- var Pn = e.n(Mn);
2519
+ const An = require("lodash/isString");
2520
+ var Pn = e.n(An);
2521
2521
  // CONCATENATED MODULE: external "lodash/last"
2522
2522
  const Vn = require("lodash/last");
2523
2523
  var Rn = e.n(Vn);
@@ -2540,51 +2540,51 @@
2540
2540
  var Wn = Ke()(Hn()).withConfig({
2541
2541
  displayName: "NormalStyles__StyledBox",
2542
2542
  componentId: "sc-1uwwpco-0"
2543
- })([ "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:", "}" ], Me.variables.borderRadius, (0,
2544
- Me.pick)({
2543
+ })([ "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,
2544
+ Ae.pick)({
2545
2545
  enterprise: "flex-start",
2546
2546
  prisma: "center"
2547
- }), Me.variables.inputHeight, (0, Me.pick)({
2547
+ }), Ae.variables.inputHeight, (0, Ae.pick)({
2548
2548
  enterprise: {
2549
- light: Me.variables.gray60,
2550
- dark: Me.variables.borderColor
2549
+ light: Ae.variables.gray60,
2550
+ dark: Ae.variables.borderColor
2551
2551
  },
2552
- prisma: Me.variables.interactiveColorBorder
2553
- }), (0, Me.pick)({
2552
+ prisma: Ae.variables.interactiveColorBorder
2553
+ }), (0, Ae.pick)({
2554
2554
  enterprise: "2px 0 0 2px",
2555
2555
  prisma: "2px"
2556
- }), (0, Me.pick)({
2556
+ }), (0, Ae.pick)({
2557
2557
  enterprise: {
2558
- light: (0, Le.css)([ "background-color:", ";" ], Me.variables.white),
2559
- dark: (0, Le.css)([ "background-color:", ";" ], Me.variables.gray22)
2558
+ light: (0, Le.css)([ "background-color:", ";" ], Ae.variables.white),
2559
+ dark: (0, Le.css)([ "background-color:", ";" ], Ae.variables.gray22)
2560
2560
  }
2561
2561
  }), (function(e) {
2562
2562
  var t = e.$hasfocus;
2563
- return t && (0, Me.pick)({
2564
- enterprise: (0, Le.css)([ "box-shadow:", ";" ], Me.variables.focusShadow),
2565
- prisma: (0, Le.css)([ "border-color:", ";" ], Me.variables.focusColor)
2563
+ return t && (0, Ae.pick)({
2564
+ enterprise: (0, Le.css)([ "box-shadow:", ";" ], Ae.variables.focusShadow),
2565
+ prisma: (0, Le.css)([ "border-color:", ";" ], Ae.variables.focusColor)
2566
2566
  });
2567
2567
  }), (function(e) {
2568
2568
  var t = e.$error;
2569
- return t && (0, Le.css)([ "border-color:", ";color:", ";" ], Me.variables.accentColorNegative, Me.variables.accentColorNegative);
2569
+ return t && (0, Le.css)([ "border-color:", ";color:", ";" ], Ae.variables.accentColorNegative, Ae.variables.accentColorNegative);
2570
2570
  }), (function(e) {
2571
2571
  var t = e.$disabled, n = e.$hasfocus;
2572
- return t ? (0, Me.pick)({
2572
+ return t ? (0, Ae.pick)({
2573
2573
  enterprise: {
2574
- light: (0, Le.css)([ "background-color:", ";border-color:", ";cursor:not-allowed;" ], Me.variables.gray96, Me.variables.gray92),
2575
- dark: (0, Le.css)([ "background-color:", ";border-color:", ";cursor:not-allowed;" ], Me.variables.gray22, Me.variables.gray30)
2574
+ light: (0, Le.css)([ "background-color:", ";border-color:", ";cursor:not-allowed;" ], Ae.variables.gray96, Ae.variables.gray92),
2575
+ dark: (0, Le.css)([ "background-color:", ";border-color:", ";cursor:not-allowed;" ], Ae.variables.gray22, Ae.variables.gray30)
2576
2576
  },
2577
- prisma: (0, Le.css)([ "border-color:", ";cursor:not-allowed;" ], Me.variables.interactiveColorBorderDisabled)
2578
- }) : !n && (0, Le.css)([ "&:hover{border-color:", ";}" ], (0, Me.pick)({
2579
- enterprise: Me.variables.borderColor,
2580
- prisma: Me.variables.interactiveColorBorderHover
2577
+ prisma: (0, Le.css)([ "border-color:", ";cursor:not-allowed;" ], Ae.variables.interactiveColorBorderDisabled)
2578
+ }) : !n && (0, Le.css)([ "&:hover{border-color:", ";}" ], (0, Ae.pick)({
2579
+ enterprise: Ae.variables.borderColor,
2580
+ prisma: Ae.variables.interactiveColorBorderHover
2581
2581
  }));
2582
2582
  }), (function(e) {
2583
2583
  var t = e.$popoverOpen;
2584
- return t && (0, Le.css)([ "position:relative;z-index:calc(", " - 2);" ], Me.variables.zindexFixedNavbar);
2585
- }), (0, Me.pick)({
2586
- enterprise: Me.variables.spacingHalf,
2587
- prisma: Me.variables.spacingSmall
2584
+ return t && (0, Le.css)([ "position:relative;z-index:calc(", " - 2);" ], Ae.variables.zindexFixedNavbar);
2585
+ }), (0, Ae.pick)({
2586
+ enterprise: Ae.variables.spacingHalf,
2587
+ prisma: Ae.variables.spacingSmall
2588
2588
  }));
2589
2589
  var zn = Ke().div.withConfig({
2590
2590
  displayName: "NormalStyles__StyledInputWrapper",
@@ -2593,10 +2593,10 @@
2593
2593
  var Un = Ke().input.withConfig({
2594
2594
  displayName: "NormalStyles__StyledInput",
2595
2595
  componentId: "sc-1uwwpco-2"
2596
- })([ "", ";min-width:100%;max-width:100%;line-height:12px;", "" ], Me.mixins.reset("block"), (0,
2597
- Me.pick)({
2596
+ })([ "", ";min-width:100%;max-width:100%;line-height:12px;", "" ], Ae.mixins.reset("block"), (0,
2597
+ Ae.pick)({
2598
2598
  enterprise: {
2599
- comfortable: (0, Le.css)([ "padding:", ";" ], Me.variables.spacingQuarter),
2599
+ comfortable: (0, Le.css)([ "padding:", ";" ], Ae.variables.spacingQuarter),
2600
2600
  compact: (0, Le.css)([ "padding:3px;" ])
2601
2601
  },
2602
2602
  prisma: {
@@ -2609,7 +2609,7 @@
2609
2609
  componentId: "sc-1uwwpco-3"
2610
2610
  })([ "", "" ], (function(e) {
2611
2611
  var t = e.$popoveropen;
2612
- return t && (0, Le.css)([ "position:fixed;top:0;left:0;width:100%;height:100%;z-index:calc(", " - 2);" ], Me.variables.zindexFixedNavbar);
2612
+ return t && (0, Le.css)([ "position:fixed;top:0;left:0;width:100%;height:100%;z-index:calc(", " - 2);" ], Ae.variables.zindexFixedNavbar);
2613
2613
  }));
2614
2614
  // CONCATENATED MODULE: ./src/utils/updateReactRef.ts
2615
2615
  /**
@@ -3251,18 +3251,18 @@
3251
3251
  }));
3252
3252
  }
3253
3253
  // Filter the items
3254
- var A = (0, Oe.stringToKeywords)(this.state.filterKeyword);
3255
- var E = p ? n.Children.toArray(s) : // ensure consistent keys
3254
+ var E = (0, Oe.stringToKeywords)(this.state.filterKeyword);
3255
+ var M = p ? n.Children.toArray(s) : // ensure consistent keys
3256
3256
  n.Children.toArray(s).filter((function(e) {
3257
- if (En()(e, [ "props", "label" ], false)) {
3258
- return (0, Oe.testPhrase)(e.props.label, A);
3257
+ if (Mn()(e, [ "props", "label" ], false)) {
3258
+ return (0, Oe.testPhrase)(e.props.label, E);
3259
3259
  }
3260
3260
  return true;
3261
3261
  // Keep all headers and non-interactive options
3262
3262
  }));
3263
3263
  this.availableOptionCount = 0;
3264
3264
  this.activeValue = undefined;
3265
- this.children = n.Children.map(E, (function(e, t) {
3265
+ this.children = n.Children.map(M, (function(e, t) {
3266
3266
  if (!e.props || !l()(e.props, "value")) {
3267
3267
  // ignore Headings and Dividers
3268
3268
  return e;
@@ -3280,7 +3280,7 @@
3280
3280
  // highlight matched text
3281
3281
  var i = r.props, s = i.children, c = i.label, u = i.matchRanges;
3282
3282
  var f = s === undefined || Pn()(s);
3283
- var d = f && !p && !u && A && (0, Oe.keywordLocations)(c, A);
3283
+ var d = f && !p && !u && E && (0, Oe.keywordLocations)(c, E);
3284
3284
  // clone item
3285
3285
  var v = (0, n.cloneElement)(r, {
3286
3286
  key: t,
@@ -3326,7 +3326,7 @@
3326
3326
  return a;
3327
3327
  }));
3328
3328
  }
3329
- var M = wr("".concat(this.state.filterKeyword.length * .8, "em"));
3329
+ var A = wr("".concat(this.state.filterKeyword.length * .8, "em"));
3330
3330
 
3331
3331
  return r().createElement(r().Fragment, null, r().createElement(Wn, lr({
3332
3332
  key: "control",
@@ -3366,7 +3366,7 @@
3366
3366
  autoCorrect: "off",
3367
3367
  spellCheck: false,
3368
3368
  "aria-autocomplete": "list",
3369
- style: M,
3369
+ style: A,
3370
3370
  placeholder: I.length ? "" : g,
3371
3371
  required: O,
3372
3372
  "aria-activedescendant": this.state.open && this.availableOptionCount > 0 ? this.activeItemId : undefined
@@ -3439,12 +3439,12 @@
3439
3439
  Object.defineProperty(e, r.key, r);
3440
3440
  }
3441
3441
  }
3442
- function Ar(e, t, n) {
3442
+ function Er(e, t, n) {
3443
3443
  if (t) _r(e.prototype, t);
3444
3444
  if (n) _r(e, n);
3445
3445
  return e;
3446
3446
  }
3447
- function Er(e, t) {
3447
+ function Mr(e, t) {
3448
3448
  if (typeof t !== "function" && t !== null) {
3449
3449
  throw new TypeError("Super expression must either be null or a function");
3450
3450
  }
@@ -3455,14 +3455,14 @@
3455
3455
  configurable: true
3456
3456
  }
3457
3457
  });
3458
- if (t) Mr(e, t);
3458
+ if (t) Ar(e, t);
3459
3459
  }
3460
- function Mr(e, t) {
3461
- Mr = Object.setPrototypeOf || function e(t, n) {
3460
+ function Ar(e, t) {
3461
+ Ar = Object.setPrototypeOf || function e(t, n) {
3462
3462
  t.__proto__ = n;
3463
3463
  return t;
3464
3464
  };
3465
- return Mr(e, t);
3465
+ return Ar(e, t);
3466
3466
  }
3467
3467
  function Pr(e) {
3468
3468
  var t = Tr();
@@ -3575,13 +3575,13 @@
3575
3575
  return e && e.compact === true;
3576
3576
  }
3577
3577
  var Kr = function(e) {
3578
- Er(n, e);
3578
+ Mr(n, e);
3579
3579
  var t = Pr(n);
3580
3580
  function n() {
3581
3581
  jr(this, n);
3582
3582
  return t.apply(this, arguments);
3583
3583
  }
3584
- Ar(n, [ {
3584
+ Er(n, [ {
3585
3585
  key: "render",
3586
3586
  // @docs-props-type MultiselectPropsBase
3587
3587
  // TODO: SUI-3402, this can be removed when ControlGroup no longer needs to inspect componentType