@splunk/react-ui 4.44.0 → 4.45.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/CHANGELOG.md +15 -2
- package/ComboBox.js +10 -8
- package/Concertina.js +357 -232
- package/File.js +404 -279
- package/Layer.js +149 -84
- package/Multiselect.js +449 -443
- package/Popover.js +150 -146
- package/Resize.js +234 -109
- package/ResultsMenu.js +49 -45
- package/ScrollContainerContext.js +13 -9
- package/Select.js +278 -274
- package/Slider.js +351 -226
- package/Table.js +788 -768
- package/TextArea.js +526 -401
- package/package.json +4 -4
package/Select.js
CHANGED
|
@@ -136,8 +136,8 @@
|
|
|
136
136
|
n.d(r, {
|
|
137
137
|
Divider: () => /* reexport */ T.Divider,
|
|
138
138
|
Heading: () => /* reexport */ T.Heading,
|
|
139
|
-
Option: () => /* reexport */
|
|
140
|
-
default: () => /* reexport */
|
|
139
|
+
Option: () => /* reexport */ Bt,
|
|
140
|
+
default: () => /* reexport */ ln
|
|
141
141
|
});
|
|
142
142
|
// EXTERNAL MODULE: external "react"
|
|
143
143
|
var e = n(9497);
|
|
@@ -617,9 +617,11 @@
|
|
|
617
617
|
var e = typeof document !== "undefined" ? document : Ae;
|
|
618
618
|
return e;
|
|
619
619
|
}
|
|
620
|
+
var Ie = _e();
|
|
621
|
+
/* harmony default export */ const Me = /* unused pure expression or super */ null && Ie;
|
|
620
622
|
// CONCATENATED MODULE: ./src/utils/ssrWindow.ts
|
|
621
623
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
622
|
-
var
|
|
624
|
+
var Le = {
|
|
623
625
|
document: Ae,
|
|
624
626
|
navigator: {
|
|
625
627
|
userAgent: ""
|
|
@@ -674,25 +676,27 @@
|
|
|
674
676
|
clearTimeout(t);
|
|
675
677
|
}
|
|
676
678
|
};
|
|
677
|
-
function
|
|
678
|
-
var e = typeof window !== "undefined" ? window :
|
|
679
|
+
function qe() {
|
|
680
|
+
var e = typeof window !== "undefined" ? window : Le;
|
|
679
681
|
return e;
|
|
680
682
|
}
|
|
683
|
+
var De = qe();
|
|
684
|
+
/* harmony default export */ const Be = /* unused pure expression or super */ null && De;
|
|
681
685
|
// CONCATENATED MODULE: ./src/Select/SelectBase.tsx
|
|
682
|
-
function
|
|
683
|
-
return
|
|
686
|
+
function Ve(e) {
|
|
687
|
+
return Fe(e) || Ke(e) || We(e) || Ne();
|
|
684
688
|
}
|
|
685
|
-
function
|
|
689
|
+
function Ne() {
|
|
686
690
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
687
691
|
}
|
|
688
|
-
function
|
|
692
|
+
function Ke(e) {
|
|
689
693
|
if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
|
|
690
694
|
}
|
|
691
|
-
function
|
|
692
|
-
if (Array.isArray(e)) return
|
|
695
|
+
function Fe(e) {
|
|
696
|
+
if (Array.isArray(e)) return Ue(e);
|
|
693
697
|
}
|
|
694
|
-
function
|
|
695
|
-
return
|
|
698
|
+
function He() {
|
|
699
|
+
return He = Object.assign ? Object.assign.bind() : function(e) {
|
|
696
700
|
for (var t = 1; t < arguments.length; t++) {
|
|
697
701
|
var n = arguments[t];
|
|
698
702
|
for (var r in n) {
|
|
@@ -700,29 +704,29 @@
|
|
|
700
704
|
}
|
|
701
705
|
}
|
|
702
706
|
return e;
|
|
703
|
-
},
|
|
707
|
+
}, He.apply(null, arguments);
|
|
704
708
|
}
|
|
705
|
-
function
|
|
706
|
-
return
|
|
709
|
+
function ze(e, t) {
|
|
710
|
+
return Xe(e) || Je(e, t) || We(e, t) || $e();
|
|
707
711
|
}
|
|
708
|
-
function
|
|
712
|
+
function $e() {
|
|
709
713
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
710
714
|
}
|
|
711
|
-
function
|
|
715
|
+
function We(e, t) {
|
|
712
716
|
if (e) {
|
|
713
|
-
if ("string" == typeof e) return
|
|
717
|
+
if ("string" == typeof e) return Ue(e, t);
|
|
714
718
|
var n = {}.toString.call(e).slice(8, -1);
|
|
715
|
-
return "Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
719
|
+
return "Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ue(e, t) : void 0;
|
|
716
720
|
}
|
|
717
721
|
}
|
|
718
|
-
function
|
|
722
|
+
function Ue(e, t) {
|
|
719
723
|
(null == t || t > e.length) && (t = e.length);
|
|
720
724
|
for (var n = 0, r = Array(t); n < t; n++) {
|
|
721
725
|
r[n] = e[n];
|
|
722
726
|
}
|
|
723
727
|
return r;
|
|
724
728
|
}
|
|
725
|
-
function
|
|
729
|
+
function Je(e, t) {
|
|
726
730
|
var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
727
731
|
if (null != n) {
|
|
728
732
|
var r, o, l, a, i = [], u = !0, c = !1;
|
|
@@ -744,12 +748,12 @@
|
|
|
744
748
|
return i;
|
|
745
749
|
}
|
|
746
750
|
}
|
|
747
|
-
function
|
|
751
|
+
function Xe(e) {
|
|
748
752
|
if (Array.isArray(e)) return e;
|
|
749
753
|
}
|
|
750
|
-
function
|
|
754
|
+
function Ge(e, t) {
|
|
751
755
|
if (null == e) return {};
|
|
752
|
-
var n, r, o =
|
|
756
|
+
var n, r, o = Qe(e, t);
|
|
753
757
|
if (Object.getOwnPropertySymbols) {
|
|
754
758
|
var l = Object.getOwnPropertySymbols(e);
|
|
755
759
|
for (r = 0; r < l.length; r++) {
|
|
@@ -758,7 +762,7 @@
|
|
|
758
762
|
}
|
|
759
763
|
return o;
|
|
760
764
|
}
|
|
761
|
-
function
|
|
765
|
+
function Qe(e, t) {
|
|
762
766
|
if (null == e) return {};
|
|
763
767
|
var n = {};
|
|
764
768
|
for (var r in e) {
|
|
@@ -769,15 +773,15 @@
|
|
|
769
773
|
}
|
|
770
774
|
return n;
|
|
771
775
|
}
|
|
772
|
-
function
|
|
776
|
+
function Ye(e) {
|
|
773
777
|
"@babel/helpers - typeof";
|
|
774
|
-
return
|
|
778
|
+
return Ye = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
775
779
|
return typeof e;
|
|
776
780
|
} : function(e) {
|
|
777
781
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
778
|
-
},
|
|
782
|
+
}, Ye(e);
|
|
779
783
|
}
|
|
780
|
-
function
|
|
784
|
+
function Ze(e, t) {
|
|
781
785
|
var n = Object.keys(e);
|
|
782
786
|
if (Object.getOwnPropertySymbols) {
|
|
783
787
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -787,40 +791,40 @@
|
|
|
787
791
|
}
|
|
788
792
|
return n;
|
|
789
793
|
}
|
|
790
|
-
function
|
|
794
|
+
function et(e) {
|
|
791
795
|
for (var t = 1; t < arguments.length; t++) {
|
|
792
796
|
var n = null != arguments[t] ? arguments[t] : {};
|
|
793
|
-
t % 2 ?
|
|
794
|
-
|
|
795
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
797
|
+
t % 2 ? Ze(Object(n), !0).forEach((function(t) {
|
|
798
|
+
tt(e, t, n[t]);
|
|
799
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ze(Object(n)).forEach((function(t) {
|
|
796
800
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
797
801
|
}));
|
|
798
802
|
}
|
|
799
803
|
return e;
|
|
800
804
|
}
|
|
801
|
-
function
|
|
802
|
-
return (t =
|
|
805
|
+
function tt(e, t, n) {
|
|
806
|
+
return (t = nt(t)) in e ? Object.defineProperty(e, t, {
|
|
803
807
|
value: n,
|
|
804
808
|
enumerable: !0,
|
|
805
809
|
configurable: !0,
|
|
806
810
|
writable: !0
|
|
807
811
|
}) : e[t] = n, e;
|
|
808
812
|
}
|
|
809
|
-
function
|
|
810
|
-
var t =
|
|
811
|
-
return "symbol" ==
|
|
813
|
+
function nt(e) {
|
|
814
|
+
var t = rt(e, "string");
|
|
815
|
+
return "symbol" == Ye(t) ? t : t + "";
|
|
812
816
|
}
|
|
813
|
-
function
|
|
814
|
-
if ("object" !=
|
|
817
|
+
function rt(e, t) {
|
|
818
|
+
if ("object" != Ye(e) || !e) return e;
|
|
815
819
|
var n = e[Symbol.toPrimitive];
|
|
816
820
|
if (void 0 !== n) {
|
|
817
821
|
var r = n.call(e, t || "default");
|
|
818
|
-
if ("object" !=
|
|
822
|
+
if ("object" != Ye(r)) return r;
|
|
819
823
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
820
824
|
}
|
|
821
825
|
return ("string" === t ? String : Number)(e);
|
|
822
826
|
}
|
|
823
|
-
var
|
|
827
|
+
var ot = {
|
|
824
828
|
allowKeyMatching: l().bool,
|
|
825
829
|
allowNewValues: l().bool,
|
|
826
830
|
animateLoading: l().bool,
|
|
@@ -869,32 +873,32 @@
|
|
|
869
873
|
/** @private. */
|
|
870
874
|
virtualization: l().number
|
|
871
875
|
};
|
|
872
|
-
var
|
|
876
|
+
var lt = h()((function(e) {
|
|
873
877
|
return [ e ];
|
|
874
878
|
}));
|
|
875
879
|
// preserve separate widths for single vs. multi mode
|
|
876
|
-
var
|
|
880
|
+
var at = h()((function(e) {
|
|
877
881
|
var t = e.anchorWidth, n = e.isMultiple, r = e.maxHeight, o = e.menuStyle;
|
|
878
|
-
return n ?
|
|
882
|
+
return n ? et({
|
|
879
883
|
width: Math.max(t !== null && t !== void 0 ? t : 0, 200),
|
|
880
884
|
maxHeight: r
|
|
881
|
-
}, o) :
|
|
885
|
+
}, o) : et({
|
|
882
886
|
minWidth: t !== null && t !== void 0 ? t : undefined,
|
|
883
887
|
maxWidth: Math.max(t !== null && t !== void 0 ? t : 0, 300),
|
|
884
888
|
maxHeight: r
|
|
885
889
|
}, o);
|
|
886
890
|
}));
|
|
887
|
-
var
|
|
888
|
-
function
|
|
891
|
+
var it = [ "clickAway", "escapeKey", "offScreen", "tabKey", "toggleClick" ];
|
|
892
|
+
function ut(e) {
|
|
889
893
|
return e && i()(e.props, "value");
|
|
890
894
|
}
|
|
891
|
-
function
|
|
892
|
-
return "".concat(
|
|
895
|
+
function ct(e, t) {
|
|
896
|
+
return "".concat(Ye(e), "-").concat(e, "-").concat(t);
|
|
893
897
|
}
|
|
894
|
-
var
|
|
895
|
-
var
|
|
896
|
-
var
|
|
897
|
-
var
|
|
898
|
+
var st = [ "append", "error", "prepend" ];
|
|
899
|
+
var ft = (0, u._)("No matches");
|
|
900
|
+
var pt = (0, u._)("Select...");
|
|
901
|
+
var dt = function e(n) {
|
|
898
902
|
var r = n.activeItemId, o = n.filterA11yId, l = n.filterKeyword, a = n.hasChildren, i = n.inputId, c = n.inputRef, s = n.menuListboxId, f = n.multiple, p = n.onClearAll, d = n.onSelectAll, v = n.onTextBlur, b = n.onTextChange, m = n.onTextFocus, y = n.onTextKeyDown, h = n.optionSelection, g = n.placement, O = n.selectAllAppearance, S = n.textHasFocus;
|
|
899
903
|
var C = (0, u._)("Select all options".concat(h.current === "all" ? " disabled" : ""));
|
|
900
904
|
var k = (0, u._)("Clear all options".concat(h.current === "none" ? " disabled" : ""));
|
|
@@ -945,8 +949,8 @@
|
|
|
945
949
|
startAdornment: t().createElement(ke, null, t().createElement(Z, null))
|
|
946
950
|
})), f && a && O === "buttongroup" && w);
|
|
947
951
|
};
|
|
948
|
-
var
|
|
949
|
-
var
|
|
952
|
+
var vt = false;
|
|
953
|
+
var bt = function e(t) {
|
|
950
954
|
var n = t.prefixLabel, r = t.label, o = t.suffixLabel;
|
|
951
955
|
var l = r;
|
|
952
956
|
if (n) {
|
|
@@ -957,8 +961,8 @@
|
|
|
957
961
|
}
|
|
958
962
|
return l;
|
|
959
963
|
};
|
|
960
|
-
function
|
|
961
|
-
var r = n.appearance, o = n.append, l = n.children, a = n.currentValues, i = a === void 0 ? [] : a, c = n.describedBy, s = n.disabled, f = n.elementRef, d = n.error, v = n.inline, b = n.labelText, m = n.labelledBy, y = n.multiple, h = n.onClick, g = n.placeholder, S = n.prefixLabel, C = n.prepend, k = n.required, w = n.suffixLabel, x = n.toggle, j = n.toggleContent, P =
|
|
964
|
+
function mt(n) {
|
|
965
|
+
var r = n.appearance, o = n.append, l = n.children, a = n.currentValues, i = a === void 0 ? [] : a, c = n.describedBy, s = n.disabled, f = n.elementRef, d = n.error, v = n.inline, b = n.labelText, m = n.labelledBy, y = n.multiple, h = n.onClick, g = n.placeholder, S = n.prefixLabel, C = n.prepend, k = n.required, w = n.suffixLabel, x = n.toggle, j = n.toggleContent, P = Ge(n, [ "appearance", "append", "children", "currentValues", "describedBy", "disabled", "elementRef", "error", "inline", "labelText", "labelledBy", "multiple", "onClick", "placeholder", "prefixLabel", "prepend", "required", "suffixLabel", "toggle", "toggleContent" ]);
|
|
962
966
|
var T;
|
|
963
967
|
var R;
|
|
964
968
|
var A = [];
|
|
@@ -966,7 +970,7 @@
|
|
|
966
970
|
var _ = e.Children.toArray(l);
|
|
967
971
|
var I = i.reduce((function(e, t, n, r) {
|
|
968
972
|
var o = p()(_, (function(e) {
|
|
969
|
-
return
|
|
973
|
+
return ut(e) && e.props.value === t;
|
|
970
974
|
}));
|
|
971
975
|
if (o) {
|
|
972
976
|
var l = o.props, a = l.children, c = l.icon, s = l.label;
|
|
@@ -993,12 +997,12 @@
|
|
|
993
997
|
if (R.length > 0) {
|
|
994
998
|
// If there's more than one item selected, read out the selected total
|
|
995
999
|
// rather than reading out each selected item
|
|
996
|
-
A =
|
|
1000
|
+
A = bt({
|
|
997
1001
|
prefixLabel: S,
|
|
998
1002
|
label: R.length > 1 ? [ "".concat(i.length, " items selected") ] : A,
|
|
999
1003
|
suffixLabel: w
|
|
1000
1004
|
});
|
|
1001
|
-
R =
|
|
1005
|
+
R = bt({
|
|
1002
1006
|
prefixLabel: S,
|
|
1003
1007
|
label: R,
|
|
1004
1008
|
suffixLabel: w
|
|
@@ -1009,11 +1013,11 @@
|
|
|
1009
1013
|
if (R.length === 0 || !y && R.every((function(e) {
|
|
1010
1014
|
return e === "";
|
|
1011
1015
|
}))) {
|
|
1012
|
-
R =
|
|
1016
|
+
R = lt(g);
|
|
1013
1017
|
A = R;
|
|
1014
1018
|
}
|
|
1015
1019
|
var M = Object.keys(P).includes("aria-labelledby");
|
|
1016
|
-
var L =
|
|
1020
|
+
var L = et({
|
|
1017
1021
|
"aria-describedby": c,
|
|
1018
1022
|
"aria-label": m || M ? undefined : "".concat(b ? "".concat(b, ", ") : "").concat(A.join("")),
|
|
1019
1023
|
// aria-labelledby takes precedence over aria-label, so existence of both is redundant
|
|
@@ -1031,7 +1035,7 @@
|
|
|
1031
1035
|
if (y) {
|
|
1032
1036
|
L["data-test-values"] = JSON.stringify(i);
|
|
1033
1037
|
} else {
|
|
1034
|
-
var q =
|
|
1038
|
+
var q = ze(i, 1), D = q[0];
|
|
1035
1039
|
L["data-test-value"] = D;
|
|
1036
1040
|
}
|
|
1037
1041
|
if (x) {
|
|
@@ -1040,12 +1044,12 @@
|
|
|
1040
1044
|
}
|
|
1041
1045
|
if (r === "link") {
|
|
1042
1046
|
|
|
1043
|
-
return t().createElement(E(),
|
|
1047
|
+
return t().createElement(E(), He({}, L, {
|
|
1044
1048
|
"data-select-appearance": "link"
|
|
1045
1049
|
}), !!T && t().createElement(Oe, null, T), R || g, t().createElement(Se, null, t().createElement(U, null)));
|
|
1046
1050
|
}
|
|
1047
1051
|
|
|
1048
|
-
return t().createElement(ge,
|
|
1052
|
+
return t().createElement(ge, He({}, L, {
|
|
1049
1053
|
$multiple: y,
|
|
1050
1054
|
appearance: r,
|
|
1051
1055
|
label: R,
|
|
@@ -1054,13 +1058,13 @@
|
|
|
1054
1058
|
inline: v,
|
|
1055
1059
|
isMenu: true,
|
|
1056
1060
|
onClick: h
|
|
1057
|
-
}, O()(P,
|
|
1061
|
+
}, O()(P, st)), !!i.length && y && t().createElement(we, {
|
|
1058
1062
|
"data-role": "count"
|
|
1059
1063
|
}, "(", i.length, ")"));
|
|
1060
1064
|
}
|
|
1061
|
-
|
|
1062
|
-
function
|
|
1063
|
-
var r = n.allowKeyMatching, o = r === void 0 ? true : r, l = n.animateLoading, a = n.appearance, i = a === void 0 ? "toggle" : a, c = n.append, s = n.allowNewValues, f = n.children, d = n.defaultPlacement, b = d === void 0 ? "vertical" : d, y = n.defaultValues, h = n.describedBy, g = n.disabled, O = n.elementRef, S = n.error, k = n.filter, x = n.footerMessage, P = n.inline, E = n.inputId, _ = n.inputRef, I = n.isLoadingOptions, M = n.labelledBy, L = n.labelText, q = n.loadingMessage, K = n.menuStyle, F = K === void 0 ? {} : K, H = n.multiple, z = n.name, $ = n.noOptionsMessage, W = $ === void 0 ?
|
|
1065
|
+
mt[x.legacyRefMode] = true;
|
|
1066
|
+
function yt(n) {
|
|
1067
|
+
var r = n.allowKeyMatching, o = r === void 0 ? true : r, l = n.animateLoading, a = n.appearance, i = a === void 0 ? "toggle" : a, c = n.append, s = n.allowNewValues, f = n.children, d = n.defaultPlacement, b = d === void 0 ? "vertical" : d, y = n.defaultValues, h = n.describedBy, g = n.disabled, O = n.elementRef, S = n.error, k = n.filter, x = n.footerMessage, P = n.inline, E = n.inputId, _ = n.inputRef, I = n.isLoadingOptions, M = n.labelledBy, L = n.labelText, q = n.loadingMessage, K = n.menuStyle, F = K === void 0 ? {} : K, H = n.multiple, z = n.name, $ = n.noOptionsMessage, W = $ === void 0 ? ft : $, U = n.onChange, J = n.onScroll, X = n.onScrollBottom, G = n.onFilterChange, Q = n.onClick, Y = n.onClose, Z = n.onOpen, ee = n.required, te = n.placeholder, ne = te === void 0 ? pt : te, re = n.prefixLabel, oe = n.prepend, le = n.repositionMode, ae = le === void 0 ? "flip" : le, ie = n.selectAllAppearance, ue = ie === void 0 ? "buttongroup" : ie, ce = n.showSelectedValuesFirst, se = n.suffixLabel, pe = n.tabConfirmsNewValue, de = n.values, be = n.virtualization, me = n.toggle, ye = n.toggleContent, he = ye === void 0 ? "optionChildren" : ye, ge = Ge(n, [ "allowKeyMatching", "animateLoading", "appearance", "append", "allowNewValues", "children", "defaultPlacement", "defaultValues", "describedBy", "disabled", "elementRef", "error", "filter", "footerMessage", "inline", "inputId", "inputRef", "isLoadingOptions", "labelledBy", "labelText", "loadingMessage", "menuStyle", "multiple", "name", "noOptionsMessage", "onChange", "onScroll", "onScrollBottom", "onFilterChange", "onClick", "onClose", "onOpen", "required", "placeholder", "prefixLabel", "prepend", "repositionMode", "selectAllAppearance", "showSelectedValuesFirst", "suffixLabel", "tabConfirmsNewValue", "values", "virtualization", "toggle", "toggleContent" ]);
|
|
1064
1068
|
// @docs-props-type SelectBasePropsBase
|
|
1065
1069
|
var Oe = (0, Pe["default"])({
|
|
1066
1070
|
componentName: "SelectBase",
|
|
@@ -1076,22 +1080,22 @@
|
|
|
1076
1080
|
activeItemId: (0, V.createDOMID)("active-item"),
|
|
1077
1081
|
menuListboxId: (0, V.createDOMID)("menu-listbox")
|
|
1078
1082
|
};
|
|
1079
|
-
})), Ce =
|
|
1080
|
-
var je = (0, e.useState)(0), Ee =
|
|
1081
|
-
var Ie = (0, e.useState)(""),
|
|
1082
|
-
var
|
|
1083
|
-
var $e = (0, e.useState)(false),
|
|
1084
|
-
var
|
|
1085
|
-
var et = (0, e.useState)(y || []), tt =
|
|
1083
|
+
})), Ce = ze(Se, 1), ke = Ce[0], we = ke.activeItemId, xe = ke.menuListboxId;
|
|
1084
|
+
var je = (0, e.useState)(0), Ee = ze(je, 2), Ae = Ee[0], _e = Ee[1];
|
|
1085
|
+
var Ie = (0, e.useState)(""), Me = ze(Ie, 2), Le = Me[0], De = Me[1];
|
|
1086
|
+
var Be = (0, e.useState)(false), Ne = ze(Be, 2), Ke = Ne[0], Fe = Ne[1];
|
|
1087
|
+
var $e = (0, e.useState)(false), We = ze($e, 2), Ue = We[0], Je = We[1];
|
|
1088
|
+
var Xe = (0, e.useState)([]), Qe = ze(Xe, 2), Ye = Qe[0], Ze = Qe[1];
|
|
1089
|
+
var et = (0, e.useState)(y || []), tt = ze(et, 2), nt = tt[0], rt = tt[1];
|
|
1086
1090
|
// previous state
|
|
1087
|
-
var
|
|
1091
|
+
var ot = D()(Ae);
|
|
1088
1092
|
// refs
|
|
1089
|
-
var
|
|
1093
|
+
var lt = (0, e.useRef)(null);
|
|
1094
|
+
var st = (0, e.useRef)(null);
|
|
1090
1095
|
var bt = (0, e.useRef)(null);
|
|
1091
|
-
var mt = (0, e.useRef)(null);
|
|
1092
1096
|
var yt = (0, e.useRef)([]);
|
|
1093
1097
|
var ht = (0, e.useRef)([]);
|
|
1094
|
-
var gt = (0, e.useRef)(
|
|
1098
|
+
var gt = (0, e.useRef)(ot);
|
|
1095
1099
|
var Ot = (0, e.useRef)();
|
|
1096
1100
|
var St = (0, e.useRef)({});
|
|
1097
1101
|
var Ct = (0, e.useRef)(0);
|
|
@@ -1100,35 +1104,35 @@
|
|
|
1100
1104
|
var xt = (0, e.useRef)();
|
|
1101
1105
|
var jt = (0, e.useRef)(0);
|
|
1102
1106
|
var Pt = (0, e.useRef)("none");
|
|
1103
|
-
var Et = (0, e.useState)(k ? (0, V.createDOMID)("filter") : undefined), Tt =
|
|
1107
|
+
var Et = (0, e.useState)(k ? (0, V.createDOMID)("filter") : undefined), Tt = ze(Et, 1), Rt = Tt[0];
|
|
1104
1108
|
(0, e.useEffect)((function() {
|
|
1105
1109
|
if (false) {}
|
|
1106
1110
|
}), [ i, c, S, oe ]);
|
|
1107
1111
|
var At = (0, e.useCallback)((function() {
|
|
1108
|
-
var e = Oe ? de :
|
|
1112
|
+
var e = Oe ? de : nt;
|
|
1109
1113
|
return H || e == null ? e : e.slice(0, 1);
|
|
1110
|
-
}), [ Oe, H, de,
|
|
1114
|
+
}), [ Oe, H, de, nt ]);
|
|
1111
1115
|
var _t = (0, e.useCallback)((function() {
|
|
1112
1116
|
var e;
|
|
1113
1117
|
// in non-multiple mode, don't move values to the top of the list
|
|
1114
1118
|
return H && ce !== "never" ? (e = At()) !== null && e !== void 0 ? e : [] : [];
|
|
1115
1119
|
}), [ At, H, ce ]);
|
|
1116
1120
|
var It = (0, e.useCallback)((function(e) {
|
|
1117
|
-
var t =
|
|
1118
|
-
|
|
1121
|
+
var t = Le;
|
|
1122
|
+
Fe(true);
|
|
1119
1123
|
Ze(_t());
|
|
1120
1124
|
// SUI-3234: preserve existing behavior difference between <Select> and <Multiselect.Compact>
|
|
1121
1125
|
if (H) {
|
|
1122
|
-
|
|
1126
|
+
De("");
|
|
1123
1127
|
}
|
|
1124
|
-
if (t !==
|
|
1128
|
+
if (t !== Le) {
|
|
1125
1129
|
G === null || G === void 0 ? void 0 : G(e, {
|
|
1126
|
-
keyword:
|
|
1130
|
+
keyword: Le
|
|
1127
1131
|
});
|
|
1128
1132
|
}
|
|
1129
|
-
}), [
|
|
1133
|
+
}), [ Le, _t, H, G ]);
|
|
1130
1134
|
(0, e.useEffect)((function() {
|
|
1131
|
-
if (
|
|
1135
|
+
if (Ke) {
|
|
1132
1136
|
Z === null || Z === void 0 ? void 0 : Z();
|
|
1133
1137
|
if (wt.current && !k) {
|
|
1134
1138
|
wt.current.focus();
|
|
@@ -1137,9 +1141,9 @@
|
|
|
1137
1141
|
_e((e = xt.current) !== null && e !== void 0 ? e : 0);
|
|
1138
1142
|
}
|
|
1139
1143
|
}
|
|
1140
|
-
}), [ Z,
|
|
1144
|
+
}), [ Z, Ke, Ye, Le, k ]);
|
|
1141
1145
|
var Mt = (0, e.useCallback)((function() {
|
|
1142
|
-
|
|
1146
|
+
Fe(false);
|
|
1143
1147
|
_e(0);
|
|
1144
1148
|
gt.current = null;
|
|
1145
1149
|
Y === null || Y === void 0 ? void 0 : Y();
|
|
@@ -1151,7 +1155,7 @@
|
|
|
1151
1155
|
var l;
|
|
1152
1156
|
if (H) {
|
|
1153
1157
|
if (o >= 0) {
|
|
1154
|
-
l = [].concat(
|
|
1158
|
+
l = [].concat(Ve(r.slice(0, o)), Ve(r.slice(o + 1)));
|
|
1155
1159
|
} else {
|
|
1156
1160
|
l = r.concat([ t ]);
|
|
1157
1161
|
}
|
|
@@ -1161,12 +1165,12 @@
|
|
|
1161
1165
|
}
|
|
1162
1166
|
var a = !Oe;
|
|
1163
1167
|
if (a) {
|
|
1164
|
-
|
|
1168
|
+
rt(l);
|
|
1165
1169
|
}
|
|
1166
1170
|
if (H) {
|
|
1167
1171
|
// in uncontrolled multiple mode, keep the menu open
|
|
1168
1172
|
if (a) {
|
|
1169
|
-
|
|
1173
|
+
Fe(true);
|
|
1170
1174
|
}
|
|
1171
1175
|
} else {
|
|
1172
1176
|
var i;
|
|
@@ -1175,7 +1179,7 @@
|
|
|
1175
1179
|
Mt({
|
|
1176
1180
|
reason: "contentClick"
|
|
1177
1181
|
});
|
|
1178
|
-
(i =
|
|
1182
|
+
(i = lt.current) === null || i === void 0 ? void 0 : i.focus();
|
|
1179
1183
|
}
|
|
1180
1184
|
U === null || U === void 0 ? void 0 : U(e, {
|
|
1181
1185
|
values: l,
|
|
@@ -1184,10 +1188,10 @@
|
|
|
1184
1188
|
});
|
|
1185
1189
|
}), [ At, Mt, Oe, H, z, U ]);
|
|
1186
1190
|
var qt = function e() {
|
|
1187
|
-
|
|
1191
|
+
st.current = null;
|
|
1188
1192
|
yt.current = [];
|
|
1189
|
-
if (
|
|
1190
|
-
clearTimeout(
|
|
1193
|
+
if (bt.current) {
|
|
1194
|
+
clearTimeout(bt.current);
|
|
1191
1195
|
}
|
|
1192
1196
|
};
|
|
1193
1197
|
var Dt = (0, e.useCallback)((function(e) {
|
|
@@ -1199,12 +1203,12 @@
|
|
|
1199
1203
|
var r = (n = At()) !== null && n !== void 0 ? n : [];
|
|
1200
1204
|
var o = C()(r.concat(kt.current));
|
|
1201
1205
|
o = t().Children.toArray(f).filter((function(e) {
|
|
1202
|
-
return
|
|
1206
|
+
return ut(e) && m()(o, e.props.value) && (!e.props.disabled || m()(r, e.props.value));
|
|
1203
1207
|
})).map((function(e) {
|
|
1204
1208
|
return e.props.value;
|
|
1205
1209
|
}));
|
|
1206
1210
|
if (!Oe) {
|
|
1207
|
-
|
|
1211
|
+
rt(o);
|
|
1208
1212
|
}
|
|
1209
1213
|
U === null || U === void 0 ? void 0 : U(e, {
|
|
1210
1214
|
values: o,
|
|
@@ -1219,15 +1223,15 @@
|
|
|
1219
1223
|
return;
|
|
1220
1224
|
}
|
|
1221
1225
|
var r = (n = At()) !== null && n !== void 0 ? n : [];
|
|
1222
|
-
var o = w().apply(void 0, [ r ].concat(
|
|
1226
|
+
var o = w().apply(void 0, [ r ].concat(Ve(kt.current)));
|
|
1223
1227
|
// this will unselect all selected values unless those values are disabled or hidden by the filter
|
|
1224
1228
|
var l = t().Children.toArray(f).filter((function(e) {
|
|
1225
|
-
return
|
|
1229
|
+
return ut(e) && (m()(r, e.props.value) && e.props.disabled || m()(o, e.props.value));
|
|
1226
1230
|
})).map((function(e) {
|
|
1227
1231
|
return e.props.value;
|
|
1228
1232
|
}));
|
|
1229
1233
|
if (!Oe) {
|
|
1230
|
-
|
|
1234
|
+
rt(l);
|
|
1231
1235
|
}
|
|
1232
1236
|
U === null || U === void 0 ? void 0 : U(e, {
|
|
1233
1237
|
values: l,
|
|
@@ -1236,10 +1240,10 @@
|
|
|
1236
1240
|
});
|
|
1237
1241
|
}), [ f, At, Oe, H, z, U ]);
|
|
1238
1242
|
var Vt = (0, e.useCallback)((function(e) {
|
|
1239
|
-
if (
|
|
1243
|
+
if (Ke && !I) {
|
|
1240
1244
|
X === null || X === void 0 ? void 0 : X(e);
|
|
1241
1245
|
}
|
|
1242
|
-
}), [
|
|
1246
|
+
}), [ Ke, I, X ]);
|
|
1243
1247
|
var Nt = (0, e.useCallback)((function(t) {
|
|
1244
1248
|
var n = (0, N.keycode)(t.nativeEvent);
|
|
1245
1249
|
if (n === "tab") {
|
|
@@ -1274,7 +1278,7 @@
|
|
|
1274
1278
|
t.preventDefault();
|
|
1275
1279
|
_e(Math.max(Ae - 1, 0));
|
|
1276
1280
|
}
|
|
1277
|
-
if (n === "enter" && Ot.current &&
|
|
1281
|
+
if (n === "enter" && Ot.current && Ke) {
|
|
1278
1282
|
if (Ot.current === "selectAll") {
|
|
1279
1283
|
if (Pt.current === "all") {
|
|
1280
1284
|
Bt(t);
|
|
@@ -1286,15 +1290,15 @@
|
|
|
1286
1290
|
Lt(t, Ot.current);
|
|
1287
1291
|
}
|
|
1288
1292
|
}
|
|
1289
|
-
}), [ Ae, f, At, Bt, Vt, Dt, X,
|
|
1293
|
+
}), [ Ae, f, At, Bt, Vt, Dt, X, Ke, ue, pe, Lt ]);
|
|
1290
1294
|
var Kt = (0, e.useCallback)((function(e, t) {
|
|
1291
1295
|
var n = t.value;
|
|
1292
1296
|
e.preventDefault();
|
|
1293
|
-
if (!
|
|
1297
|
+
if (!Ke) {
|
|
1294
1298
|
return;
|
|
1295
1299
|
}
|
|
1296
1300
|
Lt(e, n);
|
|
1297
|
-
}), [
|
|
1301
|
+
}), [ Ke, Lt ]);
|
|
1298
1302
|
var Ft = (0, e.useCallback)((function(e, t) {
|
|
1299
1303
|
var n = e.nativeEvent.key;
|
|
1300
1304
|
// Checking for a single character to avoid complications from double-byte languages and emojis.
|
|
@@ -1304,14 +1308,14 @@
|
|
|
1304
1308
|
index: 0,
|
|
1305
1309
|
value: n
|
|
1306
1310
|
};
|
|
1307
|
-
if (!
|
|
1311
|
+
if (!st.current) {
|
|
1308
1312
|
if (n === " ") {
|
|
1309
1313
|
qt();
|
|
1310
1314
|
return;
|
|
1311
1315
|
}
|
|
1312
1316
|
r = Te(ht.current, o);
|
|
1313
1317
|
} else if (yt.current.length > 1) {
|
|
1314
|
-
o.index =
|
|
1318
|
+
o.index = st.current.index + 1;
|
|
1315
1319
|
r = Te(yt.current, o);
|
|
1316
1320
|
}
|
|
1317
1321
|
if (r.length) {
|
|
@@ -1326,33 +1330,33 @@
|
|
|
1326
1330
|
}
|
|
1327
1331
|
var u = r[a];
|
|
1328
1332
|
var c = u.value, s = u.label;
|
|
1329
|
-
var f = St.current[
|
|
1333
|
+
var f = St.current[ct(c, s)];
|
|
1330
1334
|
f === null || f === void 0 ? void 0 : (l = f.focus) === null || l === void 0 ? void 0 : l.call(f);
|
|
1331
1335
|
}
|
|
1332
1336
|
yt.current = r;
|
|
1333
|
-
|
|
1334
|
-
if (
|
|
1335
|
-
clearTimeout(
|
|
1337
|
+
st.current = o;
|
|
1338
|
+
if (bt.current) {
|
|
1339
|
+
clearTimeout(bt.current);
|
|
1336
1340
|
}
|
|
1337
|
-
|
|
1341
|
+
bt.current = setTimeout(qt, 500);
|
|
1338
1342
|
e.preventDefault();
|
|
1339
1343
|
e.stopPropagation();
|
|
1340
1344
|
}
|
|
1341
1345
|
}), []);
|
|
1342
1346
|
var Ht = (0, e.useCallback)((function(e, t) {
|
|
1343
1347
|
var n = t.value;
|
|
1344
|
-
|
|
1345
|
-
|
|
1348
|
+
De(n);
|
|
1349
|
+
Fe(true);
|
|
1346
1350
|
_e(0);
|
|
1347
1351
|
G === null || G === void 0 ? void 0 : G(e, {
|
|
1348
1352
|
keyword: n
|
|
1349
1353
|
});
|
|
1350
1354
|
}), [ G ]);
|
|
1351
1355
|
var zt = (0, e.useCallback)((function() {
|
|
1352
|
-
|
|
1356
|
+
Je(true);
|
|
1353
1357
|
}), []);
|
|
1354
1358
|
var $t = (0, e.useCallback)((function() {
|
|
1355
|
-
|
|
1359
|
+
Je(false);
|
|
1356
1360
|
}), []);
|
|
1357
1361
|
var Wt = (0, e.useCallback)((function(e) {
|
|
1358
1362
|
if (gt.current !== Ae) {
|
|
@@ -1370,8 +1374,8 @@
|
|
|
1370
1374
|
}
|
|
1371
1375
|
}), [ St ]);
|
|
1372
1376
|
var Jt = (0, e.useCallback)((function(e) {
|
|
1373
|
-
|
|
1374
|
-
}), [
|
|
1377
|
+
lt.current = e;
|
|
1378
|
+
}), [ lt ]);
|
|
1375
1379
|
var Xt = (0, e.useMemo)((function() {
|
|
1376
1380
|
var e;
|
|
1377
1381
|
return (e = At()) !== null && e !== void 0 ? e : [];
|
|
@@ -1379,7 +1383,7 @@
|
|
|
1379
1383
|
var Gt = e.Children.toArray(f);
|
|
1380
1384
|
var Qt = Xt.some((function(e) {
|
|
1381
1385
|
var t = p()(Gt, (function(t) {
|
|
1382
|
-
return
|
|
1386
|
+
return ut(t) && t.props.value === e;
|
|
1383
1387
|
}));
|
|
1384
1388
|
return t && !t.props.disabled;
|
|
1385
1389
|
}));
|
|
@@ -1402,19 +1406,19 @@
|
|
|
1402
1406
|
var i;
|
|
1403
1407
|
var c = e.Children.toArray(f).reduce((function(u, c, s) {
|
|
1404
1408
|
// ignore Headings and Dividers
|
|
1405
|
-
if (!
|
|
1409
|
+
if (!ut(c)) {
|
|
1406
1410
|
u.push(c);
|
|
1407
1411
|
return u;
|
|
1408
1412
|
}
|
|
1409
1413
|
var f = c.props, p = f.disabled, d = f.hidden, v = f.label, b = f.value;
|
|
1410
1414
|
// Find out if the search string exactly matches a value
|
|
1411
|
-
if (b ===
|
|
1415
|
+
if (b === Le) {
|
|
1412
1416
|
r = true;
|
|
1413
1417
|
}
|
|
1414
1418
|
var m = Xt && Xt.indexOf(b) >= 0;
|
|
1415
1419
|
var y = !!m && !p && !i;
|
|
1416
1420
|
var h = o && !H && !k && !I && !X;
|
|
1417
|
-
var g =
|
|
1421
|
+
var g = ct(b, v);
|
|
1418
1422
|
var O = -1;
|
|
1419
1423
|
if (h && !p && !d) {
|
|
1420
1424
|
ht.current.push({
|
|
@@ -1456,10 +1460,10 @@
|
|
|
1456
1460
|
if (H) {
|
|
1457
1461
|
v()(Xt, (function(e) {
|
|
1458
1462
|
var o = p()(c, (function(t) {
|
|
1459
|
-
return
|
|
1463
|
+
return ut(t) && t.props && t.props.value === e;
|
|
1460
1464
|
}));
|
|
1461
1465
|
if (!o) {
|
|
1462
|
-
if (e ===
|
|
1466
|
+
if (e === Le) {
|
|
1463
1467
|
r = true;
|
|
1464
1468
|
}
|
|
1465
1469
|
var i = Yt && Yt.indexOf(e) >= 0;
|
|
@@ -1472,7 +1476,7 @@
|
|
|
1472
1476
|
a = true;
|
|
1473
1477
|
}
|
|
1474
1478
|
var s = String(e);
|
|
1475
|
-
var f =
|
|
1479
|
+
var f = ct(e, s);
|
|
1476
1480
|
c.splice(i ? 0 : u + 1, 0, t().createElement(fe, {
|
|
1477
1481
|
elementRef: n(f),
|
|
1478
1482
|
label: s,
|
|
@@ -1490,15 +1494,15 @@
|
|
|
1490
1494
|
}
|
|
1491
1495
|
var d = k === "controlled";
|
|
1492
1496
|
// Filter the items
|
|
1493
|
-
var b = (0, B.stringToKeywords)(
|
|
1497
|
+
var b = (0, B.stringToKeywords)(Le);
|
|
1494
1498
|
c = d ? c : c.filter((function(e) {
|
|
1495
|
-
if (
|
|
1499
|
+
if (ut(e)) {
|
|
1496
1500
|
return (0, B.testPhrase)(e.props.label, b);
|
|
1497
1501
|
}
|
|
1498
1502
|
return true;
|
|
1499
1503
|
// Keep all headers and non-interactive options
|
|
1500
1504
|
})).map((function(t) {
|
|
1501
|
-
if (!
|
|
1505
|
+
if (!ut(t)) {
|
|
1502
1506
|
return t;
|
|
1503
1507
|
}
|
|
1504
1508
|
// highlight matched text
|
|
@@ -1509,14 +1513,14 @@
|
|
|
1509
1513
|
});
|
|
1510
1514
|
}));
|
|
1511
1515
|
// Add the option to add the new value
|
|
1512
|
-
if (s && !r &&
|
|
1516
|
+
if (s && !r && Le) {
|
|
1513
1517
|
var m = a ? l + 1 : l;
|
|
1514
|
-
var y = "".concat(
|
|
1515
|
-
var h =
|
|
1518
|
+
var y = "".concat(Le, " (new value)");
|
|
1519
|
+
var h = ct(Le, y);
|
|
1516
1520
|
c.splice(m, 0, t().createElement(fe, {
|
|
1517
1521
|
elementRef: n(h),
|
|
1518
1522
|
label: y,
|
|
1519
|
-
value:
|
|
1523
|
+
value: Le,
|
|
1520
1524
|
key: "newValue",
|
|
1521
1525
|
multiple: H,
|
|
1522
1526
|
onClick: Kt
|
|
@@ -1528,7 +1532,7 @@
|
|
|
1528
1532
|
// Highlight the selected Items and remove hidden
|
|
1529
1533
|
c = c.reduce((function(t, n) {
|
|
1530
1534
|
// ignore Dividers & Headings
|
|
1531
|
-
if (!
|
|
1535
|
+
if (!ut(n)) {
|
|
1532
1536
|
t.push(n);
|
|
1533
1537
|
return t;
|
|
1534
1538
|
}
|
|
@@ -1546,7 +1550,7 @@
|
|
|
1546
1550
|
if (n.key !== "newValue" && !n.props.disabled && !n.props.selected) {
|
|
1547
1551
|
O = false;
|
|
1548
1552
|
}
|
|
1549
|
-
if (!r || !
|
|
1553
|
+
if (!r || !Ue) {
|
|
1550
1554
|
t.push(n);
|
|
1551
1555
|
return t;
|
|
1552
1556
|
}
|
|
@@ -1566,17 +1570,17 @@
|
|
|
1566
1570
|
if (ue === "checkbox" && H && Ct.current > 0) {
|
|
1567
1571
|
var S;
|
|
1568
1572
|
if (Pt.current === "all") {
|
|
1569
|
-
if (
|
|
1573
|
+
if (Le === "") {
|
|
1570
1574
|
S = (0, u._)("Clear all");
|
|
1571
1575
|
} else {
|
|
1572
1576
|
S = (0, u._)("Clear all matches");
|
|
1573
1577
|
}
|
|
1574
|
-
} else if (
|
|
1578
|
+
} else if (Le === "") {
|
|
1575
1579
|
S = (0, u._)("Select all");
|
|
1576
1580
|
} else {
|
|
1577
1581
|
S = (0, u._)("Select all matches");
|
|
1578
1582
|
}
|
|
1579
|
-
if (Ae === 0 &&
|
|
1583
|
+
if (Ae === 0 && Ue) {
|
|
1580
1584
|
Ot.current = "selectAll";
|
|
1581
1585
|
}
|
|
1582
1586
|
c.unshift( t().createElement(ve, {
|
|
@@ -1595,19 +1599,19 @@
|
|
|
1595
1599
|
}));
|
|
1596
1600
|
}
|
|
1597
1601
|
kt.current = c.reduce((function(e, t) {
|
|
1598
|
-
if (
|
|
1602
|
+
if (ut(t)) {
|
|
1599
1603
|
e.push(t.props.value);
|
|
1600
1604
|
}
|
|
1601
1605
|
return e;
|
|
1602
1606
|
}), []);
|
|
1603
|
-
|
|
1604
|
-
return
|
|
1607
|
+
vt = c.some((function(e) {
|
|
1608
|
+
return ut(e);
|
|
1605
1609
|
}));
|
|
1606
1610
|
return c;
|
|
1607
|
-
}), [ Ae, we, o, s, f, Xt, k,
|
|
1611
|
+
}), [ Ae, we, o, s, f, Xt, k, Le, Wt, Bt, Kt, Ft, Ut, Dt, I, H, Yt, X, ue, Ue, me ]);
|
|
1608
1612
|
var en = function e(n) {
|
|
1609
1613
|
var r = n.anchorWidth, o = n.maxHeight, a = n.placement;
|
|
1610
|
-
var i =
|
|
1614
|
+
var i = at({
|
|
1611
1615
|
anchorWidth: r,
|
|
1612
1616
|
isMultiple: H,
|
|
1613
1617
|
maxHeight: o,
|
|
@@ -1616,11 +1620,11 @@
|
|
|
1616
1620
|
var u = Xt.length > 0 && !Qt && !k ? 0 : undefined;
|
|
1617
1621
|
var c = {
|
|
1618
1622
|
"aria-multiselectable": H || undefined,
|
|
1619
|
-
childrenStart: !!k && t().createElement(
|
|
1623
|
+
childrenStart: !!k && t().createElement(dt, {
|
|
1620
1624
|
activeItemId: we,
|
|
1621
1625
|
filterA11yId: Rt,
|
|
1622
|
-
filterKeyword:
|
|
1623
|
-
hasChildren:
|
|
1626
|
+
filterKeyword: Le,
|
|
1627
|
+
hasChildren: vt,
|
|
1624
1628
|
inputId: E,
|
|
1625
1629
|
inputRef: _,
|
|
1626
1630
|
menuListboxId: xe,
|
|
@@ -1634,7 +1638,7 @@
|
|
|
1634
1638
|
optionSelection: Pt,
|
|
1635
1639
|
placement: a,
|
|
1636
1640
|
selectAllAppearance: ue,
|
|
1637
|
-
textHasFocus:
|
|
1641
|
+
textHasFocus: Ue
|
|
1638
1642
|
}),
|
|
1639
1643
|
focusMode: k ? "never" : undefined,
|
|
1640
1644
|
isLoading: I,
|
|
@@ -1651,7 +1655,7 @@
|
|
|
1651
1655
|
};
|
|
1652
1656
|
if (be) {
|
|
1653
1657
|
|
|
1654
|
-
return t().createElement(R.VirtualizedResultsMenu,
|
|
1658
|
+
return t().createElement(R.VirtualizedResultsMenu, He({
|
|
1655
1659
|
virtualization: be
|
|
1656
1660
|
}, c), Zt);
|
|
1657
1661
|
}
|
|
@@ -1660,10 +1664,10 @@
|
|
|
1660
1664
|
};
|
|
1661
1665
|
|
|
1662
1666
|
return t().createElement(j(), {
|
|
1663
|
-
closeReasons:
|
|
1667
|
+
closeReasons: it,
|
|
1664
1668
|
inputId: E,
|
|
1665
1669
|
"aria-labelledby": Rt,
|
|
1666
|
-
toggle: t().createElement(
|
|
1670
|
+
toggle: t().createElement(mt, He({
|
|
1667
1671
|
appearance: i,
|
|
1668
1672
|
append: c,
|
|
1669
1673
|
currentValues: At(),
|
|
@@ -1687,22 +1691,22 @@
|
|
|
1687
1691
|
}, ge), f),
|
|
1688
1692
|
onRequestOpen: It,
|
|
1689
1693
|
onRequestClose: Mt,
|
|
1690
|
-
open:
|
|
1694
|
+
open: Ke,
|
|
1691
1695
|
openWithArrowKeys: true,
|
|
1692
1696
|
repositionMode: ae,
|
|
1693
1697
|
defaultPlacement: k ? b : undefined,
|
|
1694
|
-
canCoverAnchor:
|
|
1698
|
+
canCoverAnchor: qe().innerHeight < 500,
|
|
1695
1699
|
ref: Jt,
|
|
1696
1700
|
retainFocus: false,
|
|
1697
1701
|
takeFocus: Xt.length === 0 || Xt.length > 0 && !Qt || !!k
|
|
1698
1702
|
}, en);
|
|
1699
1703
|
}
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
/* harmony default export */ const
|
|
1704
|
+
yt.propTypes = ot;
|
|
1705
|
+
yt.componentType = "SelectBase";
|
|
1706
|
+
yt.Option = fe;
|
|
1707
|
+
yt.Divider = T.Divider;
|
|
1708
|
+
yt.Heading = T.Heading;
|
|
1709
|
+
/* harmony default export */ const ht = yt;
|
|
1706
1710
|
// CONCATENATED MODULE: ./src/utils/updateReactRef.ts
|
|
1707
1711
|
/**
|
|
1708
1712
|
* Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
|
|
@@ -1710,7 +1714,7 @@
|
|
|
1710
1714
|
* @param ref - The React callback or object ref. Can be `null` or `undefined`.
|
|
1711
1715
|
* @param current - The new value of the ref.
|
|
1712
1716
|
*/
|
|
1713
|
-
function
|
|
1717
|
+
function gt(e, t) {
|
|
1714
1718
|
if (e) {
|
|
1715
1719
|
if (typeof e === "function") {
|
|
1716
1720
|
e(t);
|
|
@@ -1723,16 +1727,16 @@
|
|
|
1723
1727
|
}
|
|
1724
1728
|
}
|
|
1725
1729
|
// CONCATENATED MODULE: ./src/Select/Option.tsx
|
|
1726
|
-
function
|
|
1730
|
+
function Ot(e) {
|
|
1727
1731
|
"@babel/helpers - typeof";
|
|
1728
|
-
return
|
|
1732
|
+
return Ot = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
1729
1733
|
return typeof e;
|
|
1730
1734
|
} : function(e) {
|
|
1731
1735
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1732
|
-
},
|
|
1736
|
+
}, Ot(e);
|
|
1733
1737
|
}
|
|
1734
|
-
function
|
|
1735
|
-
return
|
|
1738
|
+
function St() {
|
|
1739
|
+
return St = Object.assign ? Object.assign.bind() : function(e) {
|
|
1736
1740
|
for (var t = 1; t < arguments.length; t++) {
|
|
1737
1741
|
var n = arguments[t];
|
|
1738
1742
|
for (var r in n) {
|
|
@@ -1740,24 +1744,24 @@
|
|
|
1740
1744
|
}
|
|
1741
1745
|
}
|
|
1742
1746
|
return e;
|
|
1743
|
-
},
|
|
1747
|
+
}, St.apply(null, arguments);
|
|
1744
1748
|
}
|
|
1745
|
-
function
|
|
1749
|
+
function Ct(e, t) {
|
|
1746
1750
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
1747
1751
|
}
|
|
1748
|
-
function
|
|
1752
|
+
function kt(e, t) {
|
|
1749
1753
|
for (var n = 0; n < t.length; n++) {
|
|
1750
1754
|
var r = t[n];
|
|
1751
1755
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
|
|
1752
|
-
Object.defineProperty(e,
|
|
1756
|
+
Object.defineProperty(e, It(r.key), r);
|
|
1753
1757
|
}
|
|
1754
1758
|
}
|
|
1755
|
-
function
|
|
1756
|
-
return t &&
|
|
1759
|
+
function wt(e, t, n) {
|
|
1760
|
+
return t && kt(e.prototype, t), n && kt(e, n), Object.defineProperty(e, "prototype", {
|
|
1757
1761
|
writable: !1
|
|
1758
1762
|
}), e;
|
|
1759
1763
|
}
|
|
1760
|
-
function
|
|
1764
|
+
function xt(e, t) {
|
|
1761
1765
|
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
|
|
1762
1766
|
e.prototype = Object.create(t && t.prototype, {
|
|
1763
1767
|
constructor: {
|
|
@@ -1767,69 +1771,69 @@
|
|
|
1767
1771
|
}
|
|
1768
1772
|
}), Object.defineProperty(e, "prototype", {
|
|
1769
1773
|
writable: !1
|
|
1770
|
-
}), t &&
|
|
1774
|
+
}), t && jt(e, t);
|
|
1771
1775
|
}
|
|
1772
|
-
function
|
|
1773
|
-
return
|
|
1776
|
+
function jt(e, t) {
|
|
1777
|
+
return jt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
1774
1778
|
return e.__proto__ = t, e;
|
|
1775
|
-
},
|
|
1779
|
+
}, jt(e, t);
|
|
1776
1780
|
}
|
|
1777
|
-
function
|
|
1778
|
-
var t =
|
|
1781
|
+
function Pt(e) {
|
|
1782
|
+
var t = Rt();
|
|
1779
1783
|
return function() {
|
|
1780
|
-
var n, r =
|
|
1784
|
+
var n, r = At(e);
|
|
1781
1785
|
if (t) {
|
|
1782
|
-
var o =
|
|
1786
|
+
var o = At(this).constructor;
|
|
1783
1787
|
n = Reflect.construct(r, arguments, o);
|
|
1784
1788
|
} else n = r.apply(this, arguments);
|
|
1785
|
-
return
|
|
1789
|
+
return Et(this, n);
|
|
1786
1790
|
};
|
|
1787
1791
|
}
|
|
1788
|
-
function
|
|
1789
|
-
if (t && ("object" ==
|
|
1792
|
+
function Et(e, t) {
|
|
1793
|
+
if (t && ("object" == Ot(t) || "function" == typeof t)) return t;
|
|
1790
1794
|
if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
|
|
1791
|
-
return
|
|
1795
|
+
return Tt(e);
|
|
1792
1796
|
}
|
|
1793
|
-
function
|
|
1797
|
+
function Tt(e) {
|
|
1794
1798
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1795
1799
|
return e;
|
|
1796
1800
|
}
|
|
1797
|
-
function
|
|
1801
|
+
function Rt() {
|
|
1798
1802
|
try {
|
|
1799
1803
|
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
|
|
1800
1804
|
} catch (e) {}
|
|
1801
|
-
return (
|
|
1805
|
+
return (Rt = function t() {
|
|
1802
1806
|
return !!e;
|
|
1803
1807
|
})();
|
|
1804
1808
|
}
|
|
1805
|
-
function
|
|
1806
|
-
return
|
|
1809
|
+
function At(e) {
|
|
1810
|
+
return At = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
1807
1811
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
1808
|
-
},
|
|
1812
|
+
}, At(e);
|
|
1809
1813
|
}
|
|
1810
|
-
function
|
|
1811
|
-
return (t =
|
|
1814
|
+
function _t(e, t, n) {
|
|
1815
|
+
return (t = It(t)) in e ? Object.defineProperty(e, t, {
|
|
1812
1816
|
value: n,
|
|
1813
1817
|
enumerable: !0,
|
|
1814
1818
|
configurable: !0,
|
|
1815
1819
|
writable: !0
|
|
1816
1820
|
}) : e[t] = n, e;
|
|
1817
1821
|
}
|
|
1818
|
-
function
|
|
1819
|
-
var t =
|
|
1820
|
-
return "symbol" ==
|
|
1822
|
+
function It(e) {
|
|
1823
|
+
var t = Mt(e, "string");
|
|
1824
|
+
return "symbol" == Ot(t) ? t : t + "";
|
|
1821
1825
|
}
|
|
1822
|
-
function
|
|
1823
|
-
if ("object" !=
|
|
1826
|
+
function Mt(e, t) {
|
|
1827
|
+
if ("object" != Ot(e) || !e) return e;
|
|
1824
1828
|
var n = e[Symbol.toPrimitive];
|
|
1825
1829
|
if (void 0 !== n) {
|
|
1826
1830
|
var r = n.call(e, t || "default");
|
|
1827
|
-
if ("object" !=
|
|
1831
|
+
if ("object" != Ot(r)) return r;
|
|
1828
1832
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1829
1833
|
}
|
|
1830
1834
|
return ("string" === t ? String : Number)(e);
|
|
1831
1835
|
}
|
|
1832
|
-
var
|
|
1836
|
+
var Lt = {
|
|
1833
1837
|
/** @private */
|
|
1834
1838
|
active: l().bool,
|
|
1835
1839
|
children: l().node,
|
|
@@ -1853,7 +1857,7 @@
|
|
|
1853
1857
|
truncate: l().bool,
|
|
1854
1858
|
value: l().oneOfType([ l().string, l().number, l().bool ]).isRequired
|
|
1855
1859
|
};
|
|
1856
|
-
var
|
|
1860
|
+
var qt = {
|
|
1857
1861
|
active: false,
|
|
1858
1862
|
descriptionPosition: "bottom",
|
|
1859
1863
|
disabled: false,
|
|
@@ -1865,25 +1869,25 @@
|
|
|
1865
1869
|
* An option within a `Select`. This inherits from
|
|
1866
1870
|
* [PureComponent](https://reactjs.org/docs/react-api.html#reactpurecomponent)
|
|
1867
1871
|
* so any elements passed to it must also be pure.
|
|
1868
|
-
*/ var
|
|
1869
|
-
|
|
1870
|
-
var n =
|
|
1872
|
+
*/ var Dt = function(e) {
|
|
1873
|
+
xt(r, e);
|
|
1874
|
+
var n = Pt(r);
|
|
1871
1875
|
function r() {
|
|
1872
1876
|
var e;
|
|
1873
|
-
|
|
1877
|
+
Ct(this, r);
|
|
1874
1878
|
for (var o = arguments.length, l = new Array(o), a = 0; a < o; a++) {
|
|
1875
1879
|
l[a] = arguments[a];
|
|
1876
1880
|
}
|
|
1877
1881
|
e = n.call.apply(n, [ this ].concat(l));
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
+
_t(Tt(e), "optionBaseRef", t().createRef());
|
|
1883
|
+
_t(Tt(e), "handleMount", (function(t) {
|
|
1884
|
+
gt(e.props.elementRef, t);
|
|
1885
|
+
gt(e.optionBaseRef, t);
|
|
1882
1886
|
}));
|
|
1883
1887
|
return e;
|
|
1884
1888
|
}
|
|
1885
1889
|
// @docs-props-type OptionPropsBase
|
|
1886
|
-
|
|
1890
|
+
wt(r, [ {
|
|
1887
1891
|
key: "scrollIntoViewIfNeeded",
|
|
1888
1892
|
// eslint-disable-next-line react/no-unused-class-component-methods
|
|
1889
1893
|
value: function e() {
|
|
@@ -1903,7 +1907,7 @@
|
|
|
1903
1907
|
key: "render",
|
|
1904
1908
|
value: function e() {
|
|
1905
1909
|
|
|
1906
|
-
return t().createElement(fe,
|
|
1910
|
+
return t().createElement(fe, St({}, this.props, {
|
|
1907
1911
|
elementRef: this.handleMount,
|
|
1908
1912
|
multiple: false
|
|
1909
1913
|
}), this.props.children || this.props.label);
|
|
@@ -1911,20 +1915,20 @@
|
|
|
1911
1915
|
} ]);
|
|
1912
1916
|
return r;
|
|
1913
1917
|
}(e.PureComponent);
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
/* harmony default export */ const
|
|
1918
|
+
_t(Dt, "propTypes", Lt);
|
|
1919
|
+
_t(Dt, "defaultProps", qt);
|
|
1920
|
+
/* harmony default export */ const Bt = Dt;
|
|
1917
1921
|
// CONCATENATED MODULE: ./src/Select/Select.tsx
|
|
1918
|
-
function
|
|
1922
|
+
function Vt(e) {
|
|
1919
1923
|
"@babel/helpers - typeof";
|
|
1920
|
-
return
|
|
1924
|
+
return Vt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
1921
1925
|
return typeof e;
|
|
1922
1926
|
} : function(e) {
|
|
1923
1927
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1924
|
-
},
|
|
1928
|
+
}, Vt(e);
|
|
1925
1929
|
}
|
|
1926
|
-
function
|
|
1927
|
-
return
|
|
1930
|
+
function Nt() {
|
|
1931
|
+
return Nt = Object.assign ? Object.assign.bind() : function(e) {
|
|
1928
1932
|
for (var t = 1; t < arguments.length; t++) {
|
|
1929
1933
|
var n = arguments[t];
|
|
1930
1934
|
for (var r in n) {
|
|
@@ -1932,11 +1936,11 @@
|
|
|
1932
1936
|
}
|
|
1933
1937
|
}
|
|
1934
1938
|
return e;
|
|
1935
|
-
},
|
|
1939
|
+
}, Nt.apply(null, arguments);
|
|
1936
1940
|
}
|
|
1937
|
-
function
|
|
1941
|
+
function Kt(e, t) {
|
|
1938
1942
|
if (null == e) return {};
|
|
1939
|
-
var n, r, o =
|
|
1943
|
+
var n, r, o = Ft(e, t);
|
|
1940
1944
|
if (Object.getOwnPropertySymbols) {
|
|
1941
1945
|
var l = Object.getOwnPropertySymbols(e);
|
|
1942
1946
|
for (r = 0; r < l.length; r++) {
|
|
@@ -1945,7 +1949,7 @@
|
|
|
1945
1949
|
}
|
|
1946
1950
|
return o;
|
|
1947
1951
|
}
|
|
1948
|
-
function
|
|
1952
|
+
function Ft(e, t) {
|
|
1949
1953
|
if (null == e) return {};
|
|
1950
1954
|
var n = {};
|
|
1951
1955
|
for (var r in e) {
|
|
@@ -1956,22 +1960,22 @@
|
|
|
1956
1960
|
}
|
|
1957
1961
|
return n;
|
|
1958
1962
|
}
|
|
1959
|
-
function
|
|
1963
|
+
function Ht(e, t) {
|
|
1960
1964
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
1961
1965
|
}
|
|
1962
|
-
function
|
|
1966
|
+
function zt(e, t) {
|
|
1963
1967
|
for (var n = 0; n < t.length; n++) {
|
|
1964
1968
|
var r = t[n];
|
|
1965
1969
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
|
|
1966
|
-
Object.defineProperty(e,
|
|
1970
|
+
Object.defineProperty(e, en(r.key), r);
|
|
1967
1971
|
}
|
|
1968
1972
|
}
|
|
1969
|
-
function
|
|
1970
|
-
return t &&
|
|
1973
|
+
function $t(e, t, n) {
|
|
1974
|
+
return t && zt(e.prototype, t), n && zt(e, n), Object.defineProperty(e, "prototype", {
|
|
1971
1975
|
writable: !1
|
|
1972
1976
|
}), e;
|
|
1973
1977
|
}
|
|
1974
|
-
function
|
|
1978
|
+
function Wt(e, t) {
|
|
1975
1979
|
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
|
|
1976
1980
|
e.prototype = Object.create(t && t.prototype, {
|
|
1977
1981
|
constructor: {
|
|
@@ -1981,64 +1985,64 @@
|
|
|
1981
1985
|
}
|
|
1982
1986
|
}), Object.defineProperty(e, "prototype", {
|
|
1983
1987
|
writable: !1
|
|
1984
|
-
}), t &&
|
|
1988
|
+
}), t && Ut(e, t);
|
|
1985
1989
|
}
|
|
1986
|
-
function
|
|
1987
|
-
return
|
|
1990
|
+
function Ut(e, t) {
|
|
1991
|
+
return Ut = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
1988
1992
|
return e.__proto__ = t, e;
|
|
1989
|
-
},
|
|
1993
|
+
}, Ut(e, t);
|
|
1990
1994
|
}
|
|
1991
|
-
function
|
|
1992
|
-
var t =
|
|
1995
|
+
function Jt(e) {
|
|
1996
|
+
var t = Qt();
|
|
1993
1997
|
return function() {
|
|
1994
|
-
var n, r =
|
|
1998
|
+
var n, r = Yt(e);
|
|
1995
1999
|
if (t) {
|
|
1996
|
-
var o =
|
|
2000
|
+
var o = Yt(this).constructor;
|
|
1997
2001
|
n = Reflect.construct(r, arguments, o);
|
|
1998
2002
|
} else n = r.apply(this, arguments);
|
|
1999
|
-
return
|
|
2003
|
+
return Xt(this, n);
|
|
2000
2004
|
};
|
|
2001
2005
|
}
|
|
2002
|
-
function
|
|
2003
|
-
if (t && ("object" ==
|
|
2006
|
+
function Xt(e, t) {
|
|
2007
|
+
if (t && ("object" == Vt(t) || "function" == typeof t)) return t;
|
|
2004
2008
|
if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
|
|
2005
|
-
return
|
|
2009
|
+
return Gt(e);
|
|
2006
2010
|
}
|
|
2007
|
-
function
|
|
2011
|
+
function Gt(e) {
|
|
2008
2012
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2009
2013
|
return e;
|
|
2010
2014
|
}
|
|
2011
|
-
function
|
|
2015
|
+
function Qt() {
|
|
2012
2016
|
try {
|
|
2013
2017
|
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
|
|
2014
2018
|
} catch (e) {}
|
|
2015
|
-
return (
|
|
2019
|
+
return (Qt = function t() {
|
|
2016
2020
|
return !!e;
|
|
2017
2021
|
})();
|
|
2018
2022
|
}
|
|
2019
|
-
function
|
|
2020
|
-
return
|
|
2023
|
+
function Yt(e) {
|
|
2024
|
+
return Yt = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
2021
2025
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
2022
|
-
},
|
|
2026
|
+
}, Yt(e);
|
|
2023
2027
|
}
|
|
2024
|
-
function
|
|
2025
|
-
return (t =
|
|
2028
|
+
function Zt(e, t, n) {
|
|
2029
|
+
return (t = en(t)) in e ? Object.defineProperty(e, t, {
|
|
2026
2030
|
value: n,
|
|
2027
2031
|
enumerable: !0,
|
|
2028
2032
|
configurable: !0,
|
|
2029
2033
|
writable: !0
|
|
2030
2034
|
}) : e[t] = n, e;
|
|
2031
2035
|
}
|
|
2032
|
-
function
|
|
2033
|
-
var t =
|
|
2034
|
-
return "symbol" ==
|
|
2036
|
+
function en(e) {
|
|
2037
|
+
var t = tn(e, "string");
|
|
2038
|
+
return "symbol" == Vt(t) ? t : t + "";
|
|
2035
2039
|
}
|
|
2036
|
-
function
|
|
2037
|
-
if ("object" !=
|
|
2040
|
+
function tn(e, t) {
|
|
2041
|
+
if ("object" != Vt(e) || !e) return e;
|
|
2038
2042
|
var n = e[Symbol.toPrimitive];
|
|
2039
2043
|
if (void 0 !== n) {
|
|
2040
2044
|
var r = n.call(e, t || "default");
|
|
2041
|
-
if ("object" !=
|
|
2045
|
+
if ("object" != Vt(r)) return r;
|
|
2042
2046
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2043
2047
|
}
|
|
2044
2048
|
return ("string" === t ? String : Number)(e);
|
|
@@ -2046,7 +2050,7 @@
|
|
|
2046
2050
|
/* eslint-disable max-classes-per-file */
|
|
2047
2051
|
/** @public */
|
|
2048
2052
|
/** @public */
|
|
2049
|
-
/** @public */ var
|
|
2053
|
+
/** @public */ var nn = {
|
|
2050
2054
|
allowKeyMatching: l().bool,
|
|
2051
2055
|
animateLoading: l().bool,
|
|
2052
2056
|
appearance: l().oneOf([ "default", "link", "primary", "pill", "toggle", "flat", "subtle" ]),
|
|
@@ -2087,7 +2091,7 @@
|
|
|
2087
2091
|
/** @private. */
|
|
2088
2092
|
virtualization: l().number
|
|
2089
2093
|
};
|
|
2090
|
-
var
|
|
2094
|
+
var rn = {
|
|
2091
2095
|
allowKeyMatching: true,
|
|
2092
2096
|
animateLoading: false,
|
|
2093
2097
|
appearance: "toggle",
|
|
@@ -2105,13 +2109,13 @@
|
|
|
2105
2109
|
prepend: false,
|
|
2106
2110
|
toggleContent: "optionChildren"
|
|
2107
2111
|
};
|
|
2108
|
-
var
|
|
2109
|
-
|
|
2110
|
-
var n =
|
|
2112
|
+
var on = function(e) {
|
|
2113
|
+
Wt(r, e);
|
|
2114
|
+
var n = Jt(r);
|
|
2111
2115
|
// @docs-props-type SelectPropsBase
|
|
2112
2116
|
function r(e) {
|
|
2113
2117
|
var t;
|
|
2114
|
-
|
|
2118
|
+
Ht(this, r);
|
|
2115
2119
|
t = n.call(this, e);
|
|
2116
2120
|
var o = {};
|
|
2117
2121
|
// wrap defaultValue in an array once to avoid failing <SelectBase>'s defaultValues comparison check
|
|
@@ -2129,7 +2133,7 @@
|
|
|
2129
2133
|
if (false) {}
|
|
2130
2134
|
return t;
|
|
2131
2135
|
}
|
|
2132
|
-
|
|
2136
|
+
$t(r, [ {
|
|
2133
2137
|
key: "componentDidUpdate",
|
|
2134
2138
|
value: function e(t) {
|
|
2135
2139
|
if (false) {}
|
|
@@ -2137,7 +2141,7 @@
|
|
|
2137
2141
|
}, {
|
|
2138
2142
|
key: "render",
|
|
2139
2143
|
value: function e() {
|
|
2140
|
-
var n = this.props, r = n.defaultValue, o = n.onChange, l = n.value, a =
|
|
2144
|
+
var n = this.props, r = n.defaultValue, o = n.onChange, l = n.value, a = Kt(n, [ "defaultValue", "onChange", "value" ]);
|
|
2141
2145
|
var u = {
|
|
2142
2146
|
onChange: function e(t, n) {
|
|
2143
2147
|
var r = n.name, l = n.values;
|
|
@@ -2159,19 +2163,19 @@
|
|
|
2159
2163
|
u.defaultValues = this.state.defaultValues;
|
|
2160
2164
|
}
|
|
2161
2165
|
|
|
2162
|
-
return t().createElement(
|
|
2166
|
+
return t().createElement(ht, Nt({}, a, u, {
|
|
2163
2167
|
multiple: false
|
|
2164
2168
|
}));
|
|
2165
2169
|
}
|
|
2166
2170
|
} ]);
|
|
2167
2171
|
return r;
|
|
2168
2172
|
}(e.Component);
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
/* harmony default export */ const
|
|
2173
|
+
Zt(on, "propTypes", nn);
|
|
2174
|
+
Zt(on, "defaultProps", rn);
|
|
2175
|
+
Zt(on, "Option", Bt);
|
|
2176
|
+
Zt(on, "Heading", T.Heading);
|
|
2177
|
+
Zt(on, "Divider", T.Divider);
|
|
2178
|
+
/* harmony default export */ const ln = on;
|
|
2175
2179
|
}) // CONCATENATED MODULE: ./src/Select/index.ts
|
|
2176
2180
|
();
|
|
2177
2181
|
module.exports = r;
|