@thecb/components 10.12.5-beta.0 → 10.12.5
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/dist/index.cjs.js +258 -127
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +257 -128
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/card/CardText.js +9 -3
- package/src/components/atoms/checkbox/Checkbox.js +22 -9
- package/src/components/atoms/checkbox/Checkbox.stories.js +17 -13
- package/src/components/atoms/checkbox/Checkbox.theme.js +6 -2
- package/src/components/atoms/icons/CheckboxCheckmarkIcon.js +45 -0
- package/src/components/atoms/icons/PaymentStatusIcon.d.ts +1 -0
- package/src/components/atoms/icons/PaymentStatusIcon.js +28 -0
- package/src/components/atoms/icons/PersonIcon.d.ts +1 -0
- package/src/components/atoms/icons/PersonIcon.js +28 -0
- package/src/components/atoms/icons/icons.stories.js +5 -1
- package/src/components/atoms/icons/index.js +5 -1
- package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.js +33 -25
- package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.stories.js +2 -4
- package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.styled.js +15 -7
- package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.theme.js +7 -3
- package/src/components/molecules/multiple-select-filter/__private__/ActionLinkButton.js +16 -13
- package/src/components/molecules/multiple-select-filter/__private__/FilterButton.js +24 -14
- package/src/components/molecules/multiple-select-filter/__private__/FilterDropdown.js +22 -18
- package/src/components/molecules/multiple-select-filter/__private__/FilterableList.js +43 -41
- package/src/components/molecules/multiple-select-filter/__private__/FilterableListItem.js +52 -41
- package/src/components/molecules/multiple-select-filter/__private__/SearchBox.js +10 -7
- package/src/components/molecules/multiple-select-filter/index.d.ts +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -18589,6 +18589,52 @@ var AgencyIcon = function AgencyIcon(_ref) {
|
|
|
18589
18589
|
})));
|
|
18590
18590
|
};
|
|
18591
18591
|
|
|
18592
|
+
var _excluded$m = ["width", "height", "color"];
|
|
18593
|
+
var PersonIcon = function PersonIcon(_ref) {
|
|
18594
|
+
var _ref$width = _ref.width,
|
|
18595
|
+
width = _ref$width === void 0 ? "20" : _ref$width,
|
|
18596
|
+
_ref$height = _ref.height,
|
|
18597
|
+
height = _ref$height === void 0 ? "21" : _ref$height,
|
|
18598
|
+
_ref$color = _ref.color,
|
|
18599
|
+
color = _ref$color === void 0 ? CHARADE_GREY : _ref$color,
|
|
18600
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
18601
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
18602
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18603
|
+
width: width,
|
|
18604
|
+
height: height,
|
|
18605
|
+
viewBox: "0 0 ".concat(width, " ").concat(height),
|
|
18606
|
+
fill: "none"
|
|
18607
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
18608
|
+
fillRule: "evenodd",
|
|
18609
|
+
clipRule: "evenodd",
|
|
18610
|
+
d: "M15.25 4.8125H4.75C4.50838 4.8125 4.3125 5.00838 4.3125 5.25V15.75C4.3125 15.9916 4.50838 16.1875 4.75 16.1875H5.625V14.7778C5.625 12.8985 7.02411 11.375 8.75 11.375H11.25C12.9759 11.375 14.375 12.8985 14.375 14.7778V16.1875H15.25C15.4916 16.1875 15.6875 15.9916 15.6875 15.75V5.25C15.6875 5.00838 15.4916 4.8125 15.25 4.8125ZM4.75 17.5H5.625H14.375H15.25C16.2165 17.5 17 16.7165 17 15.75V5.25C17 4.2835 16.2165 3.5 15.25 3.5H4.75C3.7835 3.5 3 4.2835 3 5.25V15.75C3 16.7165 3.7835 17.5 4.75 17.5ZM10 10.5C11.2081 10.5 12.1875 9.52062 12.1875 8.3125C12.1875 7.10438 11.2081 6.125 10 6.125C8.79188 6.125 7.8125 7.10438 7.8125 8.3125C7.8125 9.52062 8.79188 10.5 10 10.5Z",
|
|
18611
|
+
fill: color
|
|
18612
|
+
}));
|
|
18613
|
+
};
|
|
18614
|
+
|
|
18615
|
+
var _excluded$n = ["width", "height", "color"];
|
|
18616
|
+
var PaymentStatusIcon = function PaymentStatusIcon(_ref) {
|
|
18617
|
+
var _ref$width = _ref.width,
|
|
18618
|
+
width = _ref$width === void 0 ? "20" : _ref$width,
|
|
18619
|
+
_ref$height = _ref.height,
|
|
18620
|
+
height = _ref$height === void 0 ? "21" : _ref$height,
|
|
18621
|
+
_ref$color = _ref.color,
|
|
18622
|
+
color = _ref$color === void 0 ? CHARADE_GREY : _ref$color,
|
|
18623
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
18624
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
18625
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18626
|
+
width: width,
|
|
18627
|
+
height: height,
|
|
18628
|
+
viewBox: "0 0 ".concat(width, " ").concat(height),
|
|
18629
|
+
fill: "none"
|
|
18630
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
18631
|
+
fillRule: "evenodd",
|
|
18632
|
+
clipRule: "evenodd",
|
|
18633
|
+
d: "M10.875 4.375C10.875 3.89175 11.2668 3.5 11.75 3.5H16.125C16.6082 3.5 17 3.89175 17 4.375V8.75C17 9.23325 16.6082 9.625 16.125 9.625H15.25V15.75C15.25 16.7165 14.4665 17.5 13.5 17.5H4.75C3.7835 17.5 3 16.7165 3 15.75V7C3 6.0335 3.7835 5.25 4.75 5.25H10.875V4.375ZM10.875 8.75V6.5625H4.75C4.50838 6.5625 4.3125 6.75838 4.3125 7V15.75C4.3125 15.9916 4.50838 16.1875 4.75 16.1875H13.5C13.7416 16.1875 13.9375 15.9916 13.9375 15.75V9.625H11.75C11.2668 9.625 10.875 9.23325 10.875 8.75ZM13.9375 7.875C14.6624 7.875 15.25 7.28737 15.25 6.5625C15.25 5.83763 14.6624 5.25 13.9375 5.25C13.2126 5.25 12.625 5.83763 12.625 6.5625C12.625 7.28737 13.2126 7.875 13.9375 7.875Z",
|
|
18634
|
+
fill: color
|
|
18635
|
+
}));
|
|
18636
|
+
};
|
|
18637
|
+
|
|
18592
18638
|
var color$2 = "#15749D";
|
|
18593
18639
|
var hoverColor$1 = "#116285";
|
|
18594
18640
|
var activeColor$1 = "#0E506D";
|
|
@@ -19242,7 +19288,7 @@ var mobileFallbackValues = {
|
|
|
19242
19288
|
};
|
|
19243
19289
|
var MOBILE_BREAKPOINT = 768;
|
|
19244
19290
|
|
|
19245
|
-
var _excluded$
|
|
19291
|
+
var _excluded$o = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
19246
19292
|
|
|
19247
19293
|
/*
|
|
19248
19294
|
New responsive text component for Title elements
|
|
@@ -19289,7 +19335,7 @@ var Title = function Title(_ref) {
|
|
|
19289
19335
|
as = _ref$as === void 0 ? "h1" : _ref$as,
|
|
19290
19336
|
dataQa = _ref.dataQa,
|
|
19291
19337
|
children = _ref.children,
|
|
19292
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
19338
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
19293
19339
|
return /*#__PURE__*/React.createElement(TitleText, _extends({
|
|
19294
19340
|
variant: variant,
|
|
19295
19341
|
as: as,
|
|
@@ -20717,12 +20763,12 @@ var fallbackValues$8 = {
|
|
|
20717
20763
|
linkColor: linkColor
|
|
20718
20764
|
};
|
|
20719
20765
|
|
|
20720
|
-
var _excluded$
|
|
20766
|
+
var _excluded$p = ["variant", "themeValues", "children"];
|
|
20721
20767
|
var BoxWithShadow = function BoxWithShadow(_ref) {
|
|
20722
20768
|
var variant = _ref.variant,
|
|
20723
20769
|
themeValues = _ref.themeValues,
|
|
20724
20770
|
children = _ref.children,
|
|
20725
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20771
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
20726
20772
|
var shadowRegistry = {
|
|
20727
20773
|
baseStandard: "0px 3px 7px 2px ".concat(rgba$1(BLACK, 0.1), ", 0px 1px 2px 1px ").concat(rgba$1(BLACK, 0.1), ";"),
|
|
20728
20774
|
baseHover: "0px 1px 7px 0px ".concat(rgba$1(BLACK, 0.3), ", 0px 1px 4px 0px ").concat(rgba$1(BLACK, 0.2), ", 0px 7px 12px 0px ").concat(rgba$1(BLACK, 0.2), ";"),
|
|
@@ -20782,7 +20828,7 @@ var fallbackValues$a = {
|
|
|
20782
20828
|
externalLinkColor: externalLinkColor
|
|
20783
20829
|
};
|
|
20784
20830
|
|
|
20785
|
-
var _excluded$
|
|
20831
|
+
var _excluded$q = ["hoverColor", "activeColor", "extrastyles"];
|
|
20786
20832
|
var ROYAL_BLUE$1 = ROYAL_BLUE;
|
|
20787
20833
|
var LINK_TEXT_DECORATION$3 = LINK_TEXT_DECORATION;
|
|
20788
20834
|
|
|
@@ -20796,7 +20842,7 @@ var StyledExternalLink = styled( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20796
20842
|
var hoverColor = _ref.hoverColor,
|
|
20797
20843
|
activeColor = _ref.activeColor,
|
|
20798
20844
|
extrastyles = _ref.extrastyles,
|
|
20799
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20845
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
20800
20846
|
return /*#__PURE__*/React.createElement("a", _extends({}, props, {
|
|
20801
20847
|
ref: ref
|
|
20802
20848
|
}));
|
|
@@ -20871,7 +20917,7 @@ var ExternalLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20871
20917
|
}, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
|
|
20872
20918
|
});
|
|
20873
20919
|
|
|
20874
|
-
var _excluded$
|
|
20920
|
+
var _excluded$r = ["hoverColor", "activeColor", "active", "color", "extrastyles"];
|
|
20875
20921
|
var ROYAL_BLUE$2 = ROYAL_BLUE;
|
|
20876
20922
|
var LINK_TEXT_DECORATION$4 = LINK_TEXT_DECORATION;
|
|
20877
20923
|
|
|
@@ -20887,7 +20933,7 @@ var StyledInternalLink = styled( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20887
20933
|
active = _ref.active,
|
|
20888
20934
|
color = _ref.color,
|
|
20889
20935
|
extrastyles = _ref.extrastyles,
|
|
20890
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20936
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
20891
20937
|
return /*#__PURE__*/React.createElement(Link, _extends({}, props, {
|
|
20892
20938
|
ref: ref
|
|
20893
20939
|
}));
|
|
@@ -22570,7 +22616,7 @@ _curry2(function test(pattern, str) {
|
|
|
22570
22616
|
return _cloneRegExp(pattern).test(str);
|
|
22571
22617
|
});
|
|
22572
22618
|
|
|
22573
|
-
var _excluded$
|
|
22619
|
+
var _excluded$s = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
|
|
22574
22620
|
var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
22575
22621
|
var _ref$url = _ref.url,
|
|
22576
22622
|
url = _ref$url === void 0 ? "/" : _ref$url,
|
|
@@ -22585,7 +22631,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
22585
22631
|
_ref$newTab = _ref.newTab,
|
|
22586
22632
|
newTab = _ref$newTab === void 0 ? false : _ref$newTab,
|
|
22587
22633
|
dataQa = _ref.dataQa,
|
|
22588
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
22634
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$s);
|
|
22589
22635
|
var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
|
|
22590
22636
|
var children = _ref2.children,
|
|
22591
22637
|
url = _ref2.url,
|
|
@@ -22673,7 +22719,7 @@ var ParagraphText = styled.p.withConfig({
|
|
|
22673
22719
|
return extraStyles;
|
|
22674
22720
|
});
|
|
22675
22721
|
|
|
22676
|
-
var _excluded$
|
|
22722
|
+
var _excluded$t = ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children", "as"];
|
|
22677
22723
|
var Paragraph = function Paragraph(_ref) {
|
|
22678
22724
|
var themeValues = _ref.themeValues,
|
|
22679
22725
|
_ref$weight = _ref.weight,
|
|
@@ -22687,7 +22733,7 @@ var Paragraph = function Paragraph(_ref) {
|
|
|
22687
22733
|
dataQa = _ref.dataQa,
|
|
22688
22734
|
children = _ref.children,
|
|
22689
22735
|
as = _ref.as,
|
|
22690
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22736
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
22691
22737
|
return /*#__PURE__*/React.createElement(ParagraphText, _extends({
|
|
22692
22738
|
weight: weight,
|
|
22693
22739
|
color: color,
|
|
@@ -22891,7 +22937,7 @@ var errorStyles = {
|
|
|
22891
22937
|
"default": "border: 1px solid ".concat(RED, ";")
|
|
22892
22938
|
};
|
|
22893
22939
|
var focusedStyles = {
|
|
22894
|
-
"default": "
|
|
22940
|
+
"default": "\n outline: 3px solid ".concat(ROYAL_BLUE, "; \n outline-offset: 3px;\n ")
|
|
22895
22941
|
};
|
|
22896
22942
|
var disabledCheckedStyles = {
|
|
22897
22943
|
"default": "\n background: #6d717e;\n border: 1px solid #6d717e;\n"
|
|
@@ -22929,7 +22975,7 @@ var ENTER = 13;
|
|
|
22929
22975
|
var ESCAPE = 27;
|
|
22930
22976
|
var SPACEBAR = 32;
|
|
22931
22977
|
|
|
22932
|
-
var _excluded$
|
|
22978
|
+
var _excluded$u = ["title", "name", "checked", "onChange", "disabled", "themeValues", "hidden", "error", "checkboxMargin", "extraStyles", "textExtraStyles", "labelledById", "dataQa", "checkboxExtraStyles", "hasIconOverride", "icon"];
|
|
22933
22979
|
var CheckboxContainer = styled.span.withConfig({
|
|
22934
22980
|
displayName: "Checkbox__CheckboxContainer",
|
|
22935
22981
|
componentId: "sc-36kqbv-0"
|
|
@@ -22937,7 +22983,7 @@ var CheckboxContainer = styled.span.withConfig({
|
|
|
22937
22983
|
var CheckboxLabelContainer = styled.label.withConfig({
|
|
22938
22984
|
displayName: "Checkbox__CheckboxLabelContainer",
|
|
22939
22985
|
componentId: "sc-36kqbv-1"
|
|
22940
|
-
})(["display:flex;align-items:center;column-gap:1rem;"]);
|
|
22986
|
+
})(["display:flex;align-items:center;column-gap:1rem;cursor:pointer;"]);
|
|
22941
22987
|
var CheckboxIcon = styled.svg.withConfig({
|
|
22942
22988
|
displayName: "Checkbox__CheckboxIcon",
|
|
22943
22989
|
componentId: "sc-36kqbv-2"
|
|
@@ -22996,7 +23042,10 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref5, ref) {
|
|
|
22996
23042
|
_ref5$dataQa = _ref5.dataQa,
|
|
22997
23043
|
dataQa = _ref5$dataQa === void 0 ? null : _ref5$dataQa,
|
|
22998
23044
|
checkboxExtraStyles = _ref5.checkboxExtraStyles,
|
|
22999
|
-
|
|
23045
|
+
_ref5$hasIconOverride = _ref5.hasIconOverride,
|
|
23046
|
+
hasIconOverride = _ref5$hasIconOverride === void 0 ? false : _ref5$hasIconOverride,
|
|
23047
|
+
Icon = _ref5.icon,
|
|
23048
|
+
rest = _objectWithoutProperties(_ref5, _excluded$u);
|
|
23000
23049
|
var _useState = useState(false),
|
|
23001
23050
|
_useState2 = _slicedToArray(_useState, 2),
|
|
23002
23051
|
focused = _useState2[0],
|
|
@@ -23024,7 +23073,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref5, ref) {
|
|
|
23024
23073
|
},
|
|
23025
23074
|
hiddenStyles: hidden,
|
|
23026
23075
|
background: themeValues.backgroundColor,
|
|
23027
|
-
extraStyles: "outline:
|
|
23076
|
+
extraStyles: "\n :focus {\n outline: 0;\n }\n ".concat(extraStyles, "; \n margin: ").concat(checkboxMargin, ";\n ")
|
|
23028
23077
|
}, rest), /*#__PURE__*/React.createElement(CheckboxLabelContainer, {
|
|
23029
23078
|
"data-qa": dataQa
|
|
23030
23079
|
}, /*#__PURE__*/React.createElement(CheckboxContainer, {
|
|
@@ -23054,7 +23103,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref5, ref) {
|
|
|
23054
23103
|
disabledCheckedStyles: themeValues.disabledCheckedStyles,
|
|
23055
23104
|
focusedStyles: themeValues.focusedStyles,
|
|
23056
23105
|
checkboxExtraStyles: checkboxExtraStyles
|
|
23057
|
-
}, /*#__PURE__*/React.createElement(CheckboxIcon, {
|
|
23106
|
+
}, hasIconOverride ? /*#__PURE__*/React.createElement(Icon, null) : /*#__PURE__*/React.createElement(CheckboxIcon, {
|
|
23058
23107
|
viewBox: "0 0 24 24",
|
|
23059
23108
|
disabled: disabled,
|
|
23060
23109
|
disabledCheckColor: themeValues.disabledCheckColor,
|
|
@@ -23352,7 +23401,7 @@ var TableRowWrapper = styled.tr.withConfig({
|
|
|
23352
23401
|
return extraStyles;
|
|
23353
23402
|
});
|
|
23354
23403
|
|
|
23355
|
-
var _excluded$
|
|
23404
|
+
var _excluded$v = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
23356
23405
|
var TableRow = function TableRow(_ref) {
|
|
23357
23406
|
var children = _ref.children,
|
|
23358
23407
|
extraStyles = _ref.extraStyles,
|
|
@@ -23361,7 +23410,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
23361
23410
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
23362
23411
|
onClick = _ref.onClick,
|
|
23363
23412
|
themeValues = _ref.themeValues,
|
|
23364
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
23413
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
23365
23414
|
return /*#__PURE__*/React.createElement(TableRowWrapper, _extends({
|
|
23366
23415
|
onClick: onClick,
|
|
23367
23416
|
hoverEffect: hoverEffect,
|
|
@@ -26195,7 +26244,7 @@ var mobileFallbackValues$1 = {
|
|
|
26195
26244
|
};
|
|
26196
26245
|
var MOBILE_BREAKPOINT$1 = 768;
|
|
26197
26246
|
|
|
26198
|
-
var _excluded$
|
|
26247
|
+
var _excluded$w = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
26199
26248
|
|
|
26200
26249
|
/*
|
|
26201
26250
|
New responsive text component for Detail elements
|
|
@@ -26245,7 +26294,7 @@ var Detail = function Detail(_ref) {
|
|
|
26245
26294
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
26246
26295
|
dataQa = _ref.dataQa,
|
|
26247
26296
|
children = _ref.children,
|
|
26248
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26297
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
26249
26298
|
return /*#__PURE__*/React.createElement(DetailText, _extends({
|
|
26250
26299
|
variant: variant,
|
|
26251
26300
|
as: as,
|
|
@@ -26983,7 +27032,7 @@ var fallbackValues$n = {
|
|
|
26983
27032
|
formFooterPanel: formFooterPanel
|
|
26984
27033
|
};
|
|
26985
27034
|
|
|
26986
|
-
var _excluded$
|
|
27035
|
+
var _excluded$x = ["showErrors", "themeValues"],
|
|
26987
27036
|
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired", "errorFieldExtraStyles", "showFieldErrorRow", "labelTextVariant", "errorTextVariant"];
|
|
26988
27037
|
var InputField = styled.input.withConfig({
|
|
26989
27038
|
displayName: "FormInput__InputField",
|
|
@@ -27018,7 +27067,7 @@ var InputField = styled.input.withConfig({
|
|
|
27018
27067
|
var FormattedInputField = styled(function (_ref8) {
|
|
27019
27068
|
var showErrors = _ref8.showErrors,
|
|
27020
27069
|
themeValues = _ref8.themeValues,
|
|
27021
|
-
props = _objectWithoutProperties(_ref8, _excluded$
|
|
27070
|
+
props = _objectWithoutProperties(_ref8, _excluded$x);
|
|
27022
27071
|
return /*#__PURE__*/React.createElement(FormattedInput, props);
|
|
27023
27072
|
}).withConfig({
|
|
27024
27073
|
displayName: "FormInput__FormattedInputField",
|
|
@@ -27223,7 +27272,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
27223
27272
|
};
|
|
27224
27273
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$n, "default");
|
|
27225
27274
|
|
|
27226
|
-
var _excluded$
|
|
27275
|
+
var _excluded$y = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
27227
27276
|
var FormInputRow = function FormInputRow(_ref) {
|
|
27228
27277
|
var _ref$breakpoint = _ref.breakpoint,
|
|
27229
27278
|
breakpoint = _ref$breakpoint === void 0 ? "30rem" : _ref$breakpoint,
|
|
@@ -27232,7 +27281,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
27232
27281
|
largeChild = _ref.largeChild,
|
|
27233
27282
|
largeChildSize = _ref.largeChildSize,
|
|
27234
27283
|
children = _ref.children,
|
|
27235
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27284
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
27236
27285
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
27237
27286
|
padding: "0"
|
|
27238
27287
|
}, rest), /*#__PURE__*/React.createElement(Switcher, {
|
|
@@ -27243,24 +27292,24 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
27243
27292
|
}, children));
|
|
27244
27293
|
};
|
|
27245
27294
|
|
|
27246
|
-
var _excluded$
|
|
27295
|
+
var _excluded$z = ["childGap", "bottomItem", "children"];
|
|
27247
27296
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
27248
27297
|
var _ref$childGap = _ref.childGap,
|
|
27249
27298
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
27250
27299
|
bottomItem = _ref.bottomItem,
|
|
27251
27300
|
children = _ref.children,
|
|
27252
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27301
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
27253
27302
|
return /*#__PURE__*/React.createElement(Stack, _extends({
|
|
27254
27303
|
childGap: childGap,
|
|
27255
27304
|
bottomItem: bottomItem
|
|
27256
27305
|
}, rest), children);
|
|
27257
27306
|
};
|
|
27258
27307
|
|
|
27259
|
-
var _excluded$
|
|
27308
|
+
var _excluded$A = ["themeValues", "children"];
|
|
27260
27309
|
var FormContainer = function FormContainer(_ref) {
|
|
27261
27310
|
var themeValues = _ref.themeValues,
|
|
27262
27311
|
children = _ref.children,
|
|
27263
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27312
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
27264
27313
|
var _useContext = useContext(ThemeContext),
|
|
27265
27314
|
isMobile = _useContext.isMobile;
|
|
27266
27315
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
@@ -27570,7 +27619,7 @@ var fallbackValues$r = {
|
|
|
27570
27619
|
fontSize: fontSize$8
|
|
27571
27620
|
};
|
|
27572
27621
|
|
|
27573
|
-
var _excluded$
|
|
27622
|
+
var _excluded$B = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
27574
27623
|
var Heading = function Heading(_ref) {
|
|
27575
27624
|
var themeValues = _ref.themeValues,
|
|
27576
27625
|
_ref$weight = _ref.weight,
|
|
@@ -27589,7 +27638,7 @@ var Heading = function Heading(_ref) {
|
|
|
27589
27638
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
27590
27639
|
dataQa = _ref.dataQa,
|
|
27591
27640
|
children = _ref.children,
|
|
27592
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27641
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
27593
27642
|
return /*#__PURE__*/React.createElement(HeadingText, _extends({
|
|
27594
27643
|
variant: variant,
|
|
27595
27644
|
as: as,
|
|
@@ -27790,11 +27839,11 @@ var LabeledAmountV2 = function LabeledAmountV2(_ref) {
|
|
|
27790
27839
|
}, /*#__PURE__*/React.createElement("span", null, label), /*#__PURE__*/React.createElement("span", null, amount));
|
|
27791
27840
|
};
|
|
27792
27841
|
|
|
27793
|
-
var _excluded$
|
|
27842
|
+
var _excluded$C = ["version"];
|
|
27794
27843
|
var LabeledAmount = function LabeledAmount(_ref) {
|
|
27795
27844
|
var _ref$version = _ref.version,
|
|
27796
27845
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
27797
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27846
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
27798
27847
|
var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
|
|
27799
27848
|
return /*#__PURE__*/React.createElement(LabeledAmountComponent, rest);
|
|
27800
27849
|
};
|
|
@@ -27939,7 +27988,7 @@ var Loading = function Loading() {
|
|
|
27939
27988
|
})))));
|
|
27940
27989
|
};
|
|
27941
27990
|
|
|
27942
|
-
var _excluded$
|
|
27991
|
+
var _excluded$D = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
27943
27992
|
var NavFooter = function NavFooter(_ref) {
|
|
27944
27993
|
var leftContent = _ref.leftContent,
|
|
27945
27994
|
rightContent = _ref.rightContent,
|
|
@@ -27954,7 +28003,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
27954
28003
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
27955
28004
|
isMobile = _ref.isMobile,
|
|
27956
28005
|
footerWidth = _ref.footerWidth,
|
|
27957
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28006
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
27958
28007
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
27959
28008
|
padding: footerPadding,
|
|
27960
28009
|
background: backgroundColor,
|
|
@@ -27985,7 +28034,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
27985
28034
|
}, rightContent)))))));
|
|
27986
28035
|
};
|
|
27987
28036
|
|
|
27988
|
-
var _excluded$
|
|
28037
|
+
var _excluded$E = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
27989
28038
|
var NavHeader = function NavHeader(_ref) {
|
|
27990
28039
|
var leftContent = _ref.leftContent,
|
|
27991
28040
|
rightContent = _ref.rightContent,
|
|
@@ -27994,7 +28043,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
27994
28043
|
isMobile = _ref.isMobile,
|
|
27995
28044
|
backgroundColor = _ref.backgroundColor,
|
|
27996
28045
|
headerWidth = _ref.headerWidth,
|
|
27997
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28046
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
27998
28047
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
27999
28048
|
padding: "0 16px 4px",
|
|
28000
28049
|
background: backgroundColor,
|
|
@@ -39623,8 +39672,11 @@ var CardText = function CardText(_ref) {
|
|
|
39623
39672
|
themeValues = _ref.themeValues;
|
|
39624
39673
|
return /*#__PURE__*/React.createElement(Box, {
|
|
39625
39674
|
padding: padding
|
|
39626
|
-
}, /*#__PURE__*/React.createElement(Cover, null, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(
|
|
39627
|
-
|
|
39675
|
+
}, /*#__PURE__*/React.createElement(Cover, null, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Cluster, {
|
|
39676
|
+
justify: "space-between",
|
|
39677
|
+
align: "center",
|
|
39678
|
+
overflow: true,
|
|
39679
|
+
nowrap: true
|
|
39628
39680
|
}, titleText && /*#__PURE__*/React.createElement(Title$1, {
|
|
39629
39681
|
as: titleAs,
|
|
39630
39682
|
variant: titleVariant,
|
|
@@ -39639,7 +39691,7 @@ var CardText = function CardText(_ref) {
|
|
|
39639
39691
|
role: "button",
|
|
39640
39692
|
tabIndex: 0,
|
|
39641
39693
|
"aria-label": "Close Card: ".concat(titleText),
|
|
39642
|
-
extraStyles: "
|
|
39694
|
+
extraStyles: "cursor: pointer;"
|
|
39643
39695
|
}, /*#__PURE__*/React.createElement(IconQuitLarge, null))), /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
39644
39696
|
as: textAs,
|
|
39645
39697
|
color: themeValues.textColor
|
|
@@ -46412,11 +46464,11 @@ var Modal$2 = function Modal(_ref) {
|
|
|
46412
46464
|
};
|
|
46413
46465
|
var ModalControlV2 = withWindowSize(Modal$2);
|
|
46414
46466
|
|
|
46415
|
-
var _excluded$
|
|
46467
|
+
var _excluded$F = ["version"];
|
|
46416
46468
|
var Modal$3 = function Modal(_ref) {
|
|
46417
46469
|
var _ref$version = _ref.version,
|
|
46418
46470
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
46419
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46471
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
46420
46472
|
var ModalControl = version === "v1" ? Modal$1 : ModalControlV2;
|
|
46421
46473
|
return /*#__PURE__*/React.createElement(ModalControl, rest);
|
|
46422
46474
|
};
|
|
@@ -47718,7 +47770,7 @@ var fallbackValues$P = {
|
|
|
47718
47770
|
labeledAmountTotal: labeledAmountTotal
|
|
47719
47771
|
};
|
|
47720
47772
|
|
|
47721
|
-
var _excluded$
|
|
47773
|
+
var _excluded$G = ["amount"],
|
|
47722
47774
|
_excluded2$1 = ["amount"];
|
|
47723
47775
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
47724
47776
|
var lineItemElems = _ref.lineItemElems,
|
|
@@ -47961,7 +48013,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47961
48013
|
return fee.amount > 0;
|
|
47962
48014
|
}).map(function (_ref5) {
|
|
47963
48015
|
var amount = _ref5.amount,
|
|
47964
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
48016
|
+
rest = _objectWithoutProperties(_ref5, _excluded$G);
|
|
47965
48017
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
47966
48018
|
amount: displayCurrency(amount)
|
|
47967
48019
|
});
|
|
@@ -48398,11 +48450,11 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48398
48450
|
}, errorMessage))))));
|
|
48399
48451
|
};
|
|
48400
48452
|
|
|
48401
|
-
var _excluded$
|
|
48453
|
+
var _excluded$H = ["version"];
|
|
48402
48454
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48403
48455
|
var _ref$version = _ref.version,
|
|
48404
48456
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48405
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48457
|
+
rest = _objectWithoutProperties(_ref, _excluded$H);
|
|
48406
48458
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48407
48459
|
return /*#__PURE__*/React.createElement(TermsAndConditionsControl, rest);
|
|
48408
48460
|
};
|
|
@@ -49210,7 +49262,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49210
49262
|
}, section.content))));
|
|
49211
49263
|
};
|
|
49212
49264
|
|
|
49213
|
-
var _excluded$
|
|
49265
|
+
var _excluded$I = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections", "borderOverride"];
|
|
49214
49266
|
|
|
49215
49267
|
/**
|
|
49216
49268
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
@@ -49259,7 +49311,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49259
49311
|
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
49260
49312
|
groupedSections = _ref.groupedSections,
|
|
49261
49313
|
borderOverride = _ref.borderOverride,
|
|
49262
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49314
|
+
rest = _objectWithoutProperties(_ref, _excluded$I);
|
|
49263
49315
|
var _useState = useState(null),
|
|
49264
49316
|
_useState2 = _slicedToArray(_useState, 2),
|
|
49265
49317
|
focused = _useState2[0],
|
|
@@ -49806,7 +49858,7 @@ var Timeout = function Timeout(_ref) {
|
|
|
49806
49858
|
};
|
|
49807
49859
|
var Timeout$1 = withWindowSize(Timeout);
|
|
49808
49860
|
|
|
49809
|
-
var _excluded$
|
|
49861
|
+
var _excluded$J = ["variant", "message", "toastOpen", "closeToastNotification", "extraStyles", "minWidth", "maxWidth", "height", "childGap", "backgroundColor", "role", "ariaLive", "screenReaderMessage", "showScreenReaderMessage"];
|
|
49810
49862
|
var VARIANTS = {
|
|
49811
49863
|
SUCCESS: "success",
|
|
49812
49864
|
ERROR: "error"
|
|
@@ -49835,7 +49887,7 @@ var ToastNotification = function ToastNotification(_ref) {
|
|
|
49835
49887
|
screenReaderMessage = _ref.screenReaderMessage,
|
|
49836
49888
|
_ref$showScreenReader = _ref.showScreenReaderMessage,
|
|
49837
49889
|
showScreenReaderMessage = _ref$showScreenReader === void 0 ? true : _ref$showScreenReader,
|
|
49838
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49890
|
+
rest = _objectWithoutProperties(_ref, _excluded$J);
|
|
49839
49891
|
var screenReaderMessageRef = useRef();
|
|
49840
49892
|
var LIVEREGION_TRANSITION_DELAY = 1000;
|
|
49841
49893
|
useEffect$1(function () {
|
|
@@ -50018,7 +50070,7 @@ var PopupMenuItemContainer = styled(ButtonWithAction).withConfig({
|
|
|
50018
50070
|
return "\n background-color: ".concat(isDeleteAction ? theme.menuItemHoverBackgroundColorDelete : theme.menuItemHoverBackgroundColor, ";\n ");
|
|
50019
50071
|
});
|
|
50020
50072
|
|
|
50021
|
-
var _excluded$
|
|
50073
|
+
var _excluded$K = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
|
|
50022
50074
|
var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
50023
50075
|
var id = _ref.id,
|
|
50024
50076
|
closeMenuCallback = _ref.closeMenuCallback,
|
|
@@ -50034,7 +50086,7 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
|
50034
50086
|
hoverStyles = _ref.hoverStyles,
|
|
50035
50087
|
activeStyles = _ref.activeStyles,
|
|
50036
50088
|
extraStyles = _ref.extraStyles,
|
|
50037
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
50089
|
+
rest = _objectWithoutProperties(_ref, _excluded$K);
|
|
50038
50090
|
return /*#__PURE__*/React.createElement(PopupMenuItemContainer, _extends({
|
|
50039
50091
|
id: id,
|
|
50040
50092
|
role: "menuItem",
|
|
@@ -50207,20 +50259,21 @@ var PopupMenu = function PopupMenu(_ref) {
|
|
|
50207
50259
|
};
|
|
50208
50260
|
var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$Z);
|
|
50209
50261
|
|
|
50210
|
-
var primaryColor$1 =
|
|
50262
|
+
var primaryColor$1 = WHITE;
|
|
50263
|
+
var primaryHoverColor = INFO_BLUE;
|
|
50211
50264
|
var secondaryColor = MATISSE_BLUE;
|
|
50265
|
+
var secondaryHoverColor = "#115D7E";
|
|
50212
50266
|
var fallbackValues$_ = {
|
|
50213
50267
|
primaryColor: primaryColor$1,
|
|
50214
|
-
|
|
50268
|
+
primaryHoverColor: primaryHoverColor,
|
|
50269
|
+
secondaryColor: secondaryColor,
|
|
50270
|
+
secondaryHoverColor: secondaryHoverColor
|
|
50215
50271
|
};
|
|
50216
50272
|
|
|
50217
50273
|
var StyledFilterContainer = styled(Box).withConfig({
|
|
50218
50274
|
displayName: "MultipleSelectFilterstyled__StyledFilterContainer",
|
|
50219
50275
|
componentId: "sc-126xgc2-0"
|
|
50220
|
-
})(["position:relative;box-sizing:border-box;padding:0;"
|
|
50221
|
-
var extraStyles = _ref.extraStyles;
|
|
50222
|
-
return extraStyles;
|
|
50223
|
-
});
|
|
50276
|
+
})(["position:relative;overflow:visible;box-sizing:border-box;padding:0;"]);
|
|
50224
50277
|
var FilterContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
50225
50278
|
return /*#__PURE__*/React.createElement(StyledFilterContainer, _extends({
|
|
50226
50279
|
ref: ref
|
|
@@ -50229,7 +50282,7 @@ var FilterContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
50229
50282
|
var StyledFilterDropdown = styled(Box).withConfig({
|
|
50230
50283
|
displayName: "MultipleSelectFilterstyled__StyledFilterDropdown",
|
|
50231
50284
|
componentId: "sc-126xgc2-1"
|
|
50232
|
-
})(["position:absolute;top:calc(100% + 0.5rem);left:0;width:
|
|
50285
|
+
})(["position:absolute;top:calc(100% + 0.5rem);left:0;width:18.4rem;background-color:white;z-index:1000;border-radius:0.25rem;box-shadow:0px 1px 0px 0px rgba(41,42,51,0.1),0px 2px 4px 0px rgba(41,42,51,0.2),0px 1px 2px 0px rgba(41,42,51,0.1);padding:0;max-width:18.625rem;"]);
|
|
50233
50286
|
var FilterDropdownContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
50234
50287
|
return /*#__PURE__*/React.createElement(StyledFilterDropdown, _extends({
|
|
50235
50288
|
ref: ref
|
|
@@ -50238,12 +50291,16 @@ var FilterDropdownContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
50238
50291
|
var FilterButton = styled(ButtonWithAction).withConfig({
|
|
50239
50292
|
displayName: "MultipleSelectFilterstyled__FilterButton",
|
|
50240
50293
|
componentId: "sc-126xgc2-2"
|
|
50241
|
-
})(["min-width:auto;min-height:2.3125rem;margin:0;padding:0.5rem;border-radius:0.25rem;box-shadow:0px 1px 2px 0px rgba(41,42,51,0.1);", " ", ""], function (
|
|
50242
|
-
var
|
|
50243
|
-
|
|
50244
|
-
|
|
50245
|
-
|
|
50246
|
-
|
|
50294
|
+
})(["min-width:auto;min-height:2.3125rem;margin:0;padding:0.5rem;border-radius:0.25rem;box-shadow:0px 1px 2px 0px rgba(41,42,51,0.1);", " ", ""], function (_ref) {
|
|
50295
|
+
var opened = _ref.opened,
|
|
50296
|
+
textColor = _ref.textColor,
|
|
50297
|
+
textHoverColor = _ref.textHoverColor;
|
|
50298
|
+
return "\n color: ".concat(opened ? textHoverColor : textColor, ";\n :hover,\n :active,\n :focus {\n color: ").concat(textHoverColor, ";\n > * {\n color: ").concat(textHoverColor, ";\n }\n }\n ");
|
|
50299
|
+
}, function (_ref2) {
|
|
50300
|
+
var opened = _ref2.opened,
|
|
50301
|
+
backgroundColor = _ref2.backgroundColor,
|
|
50302
|
+
backgroundHoverColor = _ref2.backgroundHoverColor;
|
|
50303
|
+
return "\n background-color: ".concat(opened ? backgroundHoverColor : backgroundColor, "; \n :hover,\n :active,\n :focus {\n background-color: ").concat(backgroundHoverColor, ";\n }\n ");
|
|
50247
50304
|
});
|
|
50248
50305
|
var StyledFilterButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
50249
50306
|
return /*#__PURE__*/React.createElement(FilterButton, _extends({
|
|
@@ -50254,7 +50311,8 @@ var StyledFilterButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
50254
50311
|
var ActionLinkButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
50255
50312
|
var action = _ref.action,
|
|
50256
50313
|
text = _ref.text,
|
|
50257
|
-
dataQa = _ref.dataQa
|
|
50314
|
+
dataQa = _ref.dataQa,
|
|
50315
|
+
ariaLabel = _ref.ariaLabel;
|
|
50258
50316
|
return /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
50259
50317
|
ref: ref,
|
|
50260
50318
|
action: action,
|
|
@@ -50262,11 +50320,12 @@ var ActionLinkButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50262
50320
|
extraStyles: "\n padding: 0.2rem; \n margin: 0.5rem; \n min-height: auto; \n min-width: auto;\n ",
|
|
50263
50321
|
textExtraStyles: "font-weight: ".concat(FONT_WEIGHT_REGULAR, ";"),
|
|
50264
50322
|
text: text,
|
|
50265
|
-
dataQa: dataQa
|
|
50323
|
+
dataQa: dataQa,
|
|
50324
|
+
"aria-label": ariaLabel
|
|
50266
50325
|
});
|
|
50267
50326
|
});
|
|
50268
50327
|
|
|
50269
|
-
var _excluded$
|
|
50328
|
+
var _excluded$L = ["width", "height", "color"];
|
|
50270
50329
|
var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
50271
50330
|
var _ref$width = _ref.width,
|
|
50272
50331
|
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
@@ -50274,7 +50333,7 @@ var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
|
50274
50333
|
height = _ref$height === void 0 ? "19" : _ref$height,
|
|
50275
50334
|
_ref$color = _ref.color,
|
|
50276
50335
|
color = _ref$color === void 0 ? "#292A33" : _ref$color,
|
|
50277
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
50336
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
50278
50337
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
50279
50338
|
width: width,
|
|
50280
50339
|
height: height,
|
|
@@ -50320,7 +50379,9 @@ var FilterButton$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50320
50379
|
action = _ref$action === void 0 ? noop$1 : _ref$action,
|
|
50321
50380
|
opened = _ref.opened,
|
|
50322
50381
|
backgroundColor = _ref.backgroundColor,
|
|
50323
|
-
|
|
50382
|
+
backgroundHoverColor = _ref.backgroundHoverColor,
|
|
50383
|
+
textColor = _ref.textColor,
|
|
50384
|
+
textHoverColor = _ref.textHoverColor,
|
|
50324
50385
|
name = _ref.name,
|
|
50325
50386
|
filterDropdownID = _ref.filterDropdownID,
|
|
50326
50387
|
_ref$hasIcon = _ref.hasIcon,
|
|
@@ -50328,7 +50389,10 @@ var FilterButton$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50328
50389
|
Icon = _ref.icon,
|
|
50329
50390
|
truncateBtnTextWidth = _ref.truncateBtnTextWidth,
|
|
50330
50391
|
filterLabel = _ref.filterLabel,
|
|
50331
|
-
selectedOptions = _ref.selectedOptions
|
|
50392
|
+
selectedOptions = _ref.selectedOptions,
|
|
50393
|
+
extraStyles = _ref.extraStyles;
|
|
50394
|
+
var btnTextFilterDescription = selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? "".concat(filterLabel ? "".concat(filterLabel, ": ") : "").concat(selectedOptions[0].name) : "".concat(filterLabel ? filterLabel : "");
|
|
50395
|
+
var btnTextItemsDescription = selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length && (selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.length) > 1 ? ", +".concat((selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.length) - 1, " More") : "";
|
|
50332
50396
|
return /*#__PURE__*/React.createElement(StyledFilterButton, {
|
|
50333
50397
|
ref: ref,
|
|
50334
50398
|
variant: "tertiary",
|
|
@@ -50337,7 +50401,13 @@ var FilterButton$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50337
50401
|
"aria-expanded": opened,
|
|
50338
50402
|
"aria-controls": filterDropdownID,
|
|
50339
50403
|
backgroundColor: backgroundColor,
|
|
50404
|
+
backgroundHoverColor: backgroundHoverColor,
|
|
50405
|
+
textColor: textColor,
|
|
50406
|
+
textHoverColor: textHoverColor,
|
|
50407
|
+
opened: opened,
|
|
50340
50408
|
dataQa: "".concat(name, "-filter-button"),
|
|
50409
|
+
extraStyles: extraStyles,
|
|
50410
|
+
"aria-label": "".concat(filterLabel, " Filter: ").concat(btnTextFilterDescription, " ").concat(btnTextItemsDescription),
|
|
50341
50411
|
contentOverride: true
|
|
50342
50412
|
}, btnContentOverride ? btnContentOverride : /*#__PURE__*/React.createElement(Center, {
|
|
50343
50413
|
as: "span",
|
|
@@ -50347,7 +50417,7 @@ var FilterButton$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50347
50417
|
},
|
|
50348
50418
|
intrinsic: true
|
|
50349
50419
|
}, hasIcon && /*#__PURE__*/React.createElement(Icon, {
|
|
50350
|
-
color:
|
|
50420
|
+
color: opened ? textHoverColor : textColor
|
|
50351
50421
|
}), /*#__PURE__*/React.createElement(Center, {
|
|
50352
50422
|
as: "span",
|
|
50353
50423
|
style: {
|
|
@@ -50358,20 +50428,22 @@ var FilterButton$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50358
50428
|
intrinsic: true
|
|
50359
50429
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
50360
50430
|
variant: "pS",
|
|
50361
|
-
color:
|
|
50431
|
+
color: opened ? textHoverColor : textColor,
|
|
50362
50432
|
extraStyles: "\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n ".concat(truncateBtnTextWidth && "max-width:" + truncateBtnTextWidth, "\n ")
|
|
50363
|
-
},
|
|
50364
|
-
color:
|
|
50433
|
+
}, btnTextFilterDescription), /*#__PURE__*/React.createElement(Text$1, {
|
|
50434
|
+
color: opened ? textHoverColor : textColor,
|
|
50365
50435
|
variant: "pS"
|
|
50366
|
-
},
|
|
50367
|
-
color:
|
|
50436
|
+
}, btnTextItemsDescription)), /*#__PURE__*/React.createElement(DropdownIconV2, {
|
|
50437
|
+
color: opened ? textHoverColor : textColor
|
|
50368
50438
|
})));
|
|
50369
50439
|
});
|
|
50370
50440
|
|
|
50371
50441
|
var FilterDropdown = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
50372
50442
|
var id = _ref.id,
|
|
50373
50443
|
ariaOwns = _ref.ariaOwns,
|
|
50444
|
+
ariaControls = _ref.ariaControls,
|
|
50374
50445
|
opened = _ref.opened,
|
|
50446
|
+
extraStyles = _ref.extraStyles,
|
|
50375
50447
|
children = _ref.children;
|
|
50376
50448
|
return /*#__PURE__*/React.createElement(React.Fragment, null, opened && /*#__PURE__*/React.createElement(FilterDropdownContainer, {
|
|
50377
50449
|
ref: ref,
|
|
@@ -50379,7 +50451,9 @@ var FilterDropdown = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50379
50451
|
role: "combobox",
|
|
50380
50452
|
"aria-expanded": opened,
|
|
50381
50453
|
"aria-haspopup": "listbox",
|
|
50382
|
-
"aria-owns": ariaOwns
|
|
50454
|
+
"aria-owns": ariaOwns,
|
|
50455
|
+
"aria-controls": ariaControls,
|
|
50456
|
+
extraStyles: extraStyles
|
|
50383
50457
|
}, children));
|
|
50384
50458
|
});
|
|
50385
50459
|
|
|
@@ -50400,10 +50474,54 @@ var SearchBox = function SearchBox(_ref) {
|
|
|
50400
50474
|
fieldActions: actions.fields.searchTerm,
|
|
50401
50475
|
placeholder: placeholder,
|
|
50402
50476
|
disabled: disabled,
|
|
50403
|
-
extraStyles: "\n
|
|
50477
|
+
extraStyles: "\n height: 2.875rem;\n border: 0; \n border-radius: 0;\n padding: 0.45rem;\n font-size: 0.875rem;\n border-bottom: 1px solid ".concat(GHOST_GREY, ";\n :focus {\n outline-offset: -3px;\n }\n ")
|
|
50404
50478
|
}));
|
|
50405
50479
|
};
|
|
50406
50480
|
|
|
50481
|
+
var _excluded$M = ["width", "height", "color"];
|
|
50482
|
+
var CheckboxCheckmarkIcon = function CheckboxCheckmarkIcon(_ref) {
|
|
50483
|
+
var _ref$width = _ref.width,
|
|
50484
|
+
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
50485
|
+
_ref$height = _ref.height,
|
|
50486
|
+
height = _ref$height === void 0 ? "18" : _ref$height,
|
|
50487
|
+
_ref$color = _ref.color,
|
|
50488
|
+
color = _ref$color === void 0 ? "#FEFEFE" : _ref$color,
|
|
50489
|
+
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
50490
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
50491
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
50492
|
+
width: width,
|
|
50493
|
+
height: height,
|
|
50494
|
+
viewBox: "0 0 ".concat(width, " ").concat(height),
|
|
50495
|
+
fill: "none"
|
|
50496
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
50497
|
+
fillRule: "evenodd",
|
|
50498
|
+
clipRule: "evenodd",
|
|
50499
|
+
d: "M13.7503 5.35354C13.555 5.15828 13.2385 5.15828 13.0432 5.35354L7.52373 10.873L5.52808 8.87735C5.33282 8.68209 5.01624 8.68209 4.82097 8.87735L4.35348 9.34484C4.15822 9.54011 4.15822 9.85669 4.35348 10.052L6.70268 12.4012L7.17018 12.8687C7.36544 13.0639 7.68203 13.0639 7.87729 12.8687L8.34478 12.4012L14.2178 6.52814C14.4131 6.33288 14.4131 6.0163 14.2178 5.82104L13.7503 5.35354Z",
|
|
50500
|
+
fill: "#FEFEFE"
|
|
50501
|
+
}), /*#__PURE__*/React.createElement("mask", {
|
|
50502
|
+
id: "mask0_3361_1486",
|
|
50503
|
+
style: {
|
|
50504
|
+
maskType: "luminance"
|
|
50505
|
+
},
|
|
50506
|
+
maskUnits: "userSpaceOnUse",
|
|
50507
|
+
x: "4",
|
|
50508
|
+
y: "5",
|
|
50509
|
+
width: "11",
|
|
50510
|
+
height: "9"
|
|
50511
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
50512
|
+
fillRule: "evenodd",
|
|
50513
|
+
clipRule: "evenodd",
|
|
50514
|
+
d: "M13.7503 5.35354C13.555 5.15828 13.2385 5.15828 13.0432 5.35354L7.52373 10.873L5.52808 8.87735C5.33282 8.68209 5.01624 8.68209 4.82097 8.87735L4.35348 9.34484C4.15822 9.54011 4.15822 9.85669 4.35348 10.052L6.70268 12.4012L7.17018 12.8687C7.36544 13.0639 7.68203 13.0639 7.87729 12.8687L8.34478 12.4012L14.2178 6.52814C14.4131 6.33288 14.4131 6.0163 14.2178 5.82104L13.7503 5.35354Z",
|
|
50515
|
+
fill: "white"
|
|
50516
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
50517
|
+
mask: "url(#mask0_3361_1486)"
|
|
50518
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
50519
|
+
width: width,
|
|
50520
|
+
height: height,
|
|
50521
|
+
fill: color
|
|
50522
|
+
})));
|
|
50523
|
+
};
|
|
50524
|
+
|
|
50407
50525
|
var FilterableListItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
50408
50526
|
var index = _ref.index,
|
|
50409
50527
|
option = _ref.option,
|
|
@@ -50412,28 +50530,31 @@ var FilterableListItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50412
50530
|
disabled = _ref.disabled,
|
|
50413
50531
|
tabIndex = _ref.tabIndex,
|
|
50414
50532
|
name = _ref.name,
|
|
50533
|
+
showDivider = _ref.showDivider,
|
|
50534
|
+
extraStyles = _ref.extraStyles,
|
|
50415
50535
|
themeValues = _ref.themeValues;
|
|
50416
|
-
|
|
50417
|
-
|
|
50536
|
+
var dividerStyles = "\n ::after {\n content: '';\n position: absolute;\n width: 100%;\n display: block;\n height: 1px;\n background-color: ".concat(GHOST_GREY, ";\n bottom: -0.5rem;\n left: 0;\n }");
|
|
50537
|
+
return /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
50418
50538
|
key: index,
|
|
50419
|
-
extraStyles: "\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryColor, ";\n }\n ")
|
|
50420
|
-
}, /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
50421
50539
|
ref: ref,
|
|
50422
50540
|
title: option.name,
|
|
50423
50541
|
name: option.name,
|
|
50542
|
+
role: "option",
|
|
50543
|
+
"aria-selected": checked,
|
|
50544
|
+
tabIndex: tabIndex,
|
|
50545
|
+
dataQa: "".concat(name, "-option-").concat(index),
|
|
50424
50546
|
checked: checked,
|
|
50425
50547
|
onChange: function onChange() {
|
|
50426
50548
|
return selectOption(option);
|
|
50427
50549
|
},
|
|
50428
50550
|
textExtraStyles: "font-size: 0.875rem; margin: 0;",
|
|
50429
50551
|
disabled: disabled,
|
|
50430
|
-
extraStyles: "\n
|
|
50431
|
-
checkboxMargin: "0
|
|
50432
|
-
|
|
50433
|
-
|
|
50434
|
-
|
|
50435
|
-
|
|
50436
|
-
}));
|
|
50552
|
+
extraStyles: "\n padding: 0.375rem 0.625rem; \n margin: 0;\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryHoverColor, ";\n }\n ").concat(showDivider && dividerStyles, "\n ").concat(extraStyles, "\n "),
|
|
50553
|
+
checkboxMargin: showDivider ? "0 0 1rem" : "0",
|
|
50554
|
+
hasIconOverride: true,
|
|
50555
|
+
icon: CheckboxCheckmarkIcon,
|
|
50556
|
+
checkboxExtraStyles: "\n display: flex;\n justify-content: center;\n align-items: center;\n height: 20px;\n width: 20px;\n ".concat(checked && !disabled ? "background: " + themeValues.secondaryColor + ";" : "", "\n ")
|
|
50557
|
+
});
|
|
50437
50558
|
});
|
|
50438
50559
|
|
|
50439
50560
|
var filterItemsList = function filterItemsList(list, searchTerm) {
|
|
@@ -50598,14 +50719,12 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
50598
50719
|
handleKeyDown = _useKeyboardNavigatio.handleKeyDown;
|
|
50599
50720
|
return /*#__PURE__*/React.createElement(Box, {
|
|
50600
50721
|
id: id,
|
|
50601
|
-
role: "listbox",
|
|
50602
|
-
padding: "0",
|
|
50603
|
-
extraStyles: "\n overflow-y: auto;\n max-height: 250px;\n display: flex;\n flex-flow: column;\n ",
|
|
50604
|
-
onKeyDown: handleKeyDown
|
|
50605
|
-
}, (sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length) > 0 && /*#__PURE__*/React.createElement(Box, {
|
|
50606
50722
|
padding: "0",
|
|
50607
|
-
|
|
50608
|
-
|
|
50723
|
+
role: "listbox",
|
|
50724
|
+
"aria-label": "Filter options container",
|
|
50725
|
+
onKeyDown: handleKeyDown,
|
|
50726
|
+
extraStyles: "\n overflow-y: auto;\n max-height: 250px;\n display: flex;\n flex-flow: column;\n padding-bottom: 0.5rem;\n "
|
|
50727
|
+
}, (sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, sortedAppliedOptions.map(function (option, index) {
|
|
50609
50728
|
var checked = isChecked(option, selectedOptions);
|
|
50610
50729
|
var tabIndex = index === focusedIndex || index === 0 && focusedIndex === -1 ? "0" : "-1";
|
|
50611
50730
|
return /*#__PURE__*/React.createElement(FilterableListItem, {
|
|
@@ -50619,9 +50738,10 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
50619
50738
|
selectOption: handleSelectOption,
|
|
50620
50739
|
tabIndex: tabIndex,
|
|
50621
50740
|
name: name,
|
|
50622
|
-
themeValues: themeValues
|
|
50741
|
+
themeValues: themeValues,
|
|
50742
|
+
showDivider: sortedOptions.length > 0 && index === sortedAppliedOptions.length - 1
|
|
50623
50743
|
});
|
|
50624
|
-
})), sortedOptions.map(function (option, index) {
|
|
50744
|
+
})), /*#__PURE__*/React.createElement(React.Fragment, null, sortedOptions.map(function (option, index) {
|
|
50625
50745
|
var checked = isChecked(option, selectedOptions);
|
|
50626
50746
|
var isDisabled = isMaxSelectionReached(maxSelections, selectedOptions) && !checked;
|
|
50627
50747
|
var indexOffset = sortedAppliedOptions !== null && sortedAppliedOptions !== void 0 && sortedAppliedOptions.length ? sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length : 0;
|
|
@@ -50641,7 +50761,7 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
50641
50761
|
name: name,
|
|
50642
50762
|
themeValues: themeValues
|
|
50643
50763
|
});
|
|
50644
|
-
}));
|
|
50764
|
+
})));
|
|
50645
50765
|
};
|
|
50646
50766
|
var FilterableList$1 = /*#__PURE__*/React.memo(FilterableList);
|
|
50647
50767
|
|
|
@@ -50649,7 +50769,9 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50649
50769
|
var actions = _ref.actions,
|
|
50650
50770
|
autocompleteValue = _ref.autocompleteValue,
|
|
50651
50771
|
btnContentOverride = _ref.btnContentOverride,
|
|
50772
|
+
btnExtraStyles = _ref.btnExtraStyles,
|
|
50652
50773
|
disabled = _ref.disabled,
|
|
50774
|
+
dropdownExtraStyles = _ref.dropdownExtraStyles,
|
|
50653
50775
|
extraStyles = _ref.extraStyles,
|
|
50654
50776
|
fields = _ref.fields,
|
|
50655
50777
|
filterLabel = _ref.filterLabel,
|
|
@@ -50668,8 +50790,6 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50668
50790
|
placeholder = _ref$placeholder === void 0 ? "Search" : _ref$placeholder,
|
|
50669
50791
|
_ref$searchable = _ref.searchable,
|
|
50670
50792
|
searchable = _ref$searchable === void 0 ? true : _ref$searchable,
|
|
50671
|
-
selectedOptions = _ref.selectedOptions,
|
|
50672
|
-
setSelectedOptions = _ref.setSelectedOptions,
|
|
50673
50793
|
themeValues = _ref.themeValues,
|
|
50674
50794
|
_ref$truncateBtnTextW = _ref.truncateBtnTextWidth,
|
|
50675
50795
|
truncateBtnTextWidth = _ref$truncateBtnTextW === void 0 ? "15rem" : _ref$truncateBtnTextW;
|
|
@@ -50679,22 +50799,29 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50679
50799
|
setOpened = _useState2[1];
|
|
50680
50800
|
var _useState3 = useState([]),
|
|
50681
50801
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
50682
|
-
|
|
50683
|
-
|
|
50684
|
-
var
|
|
50685
|
-
|
|
50686
|
-
|
|
50687
|
-
|
|
50802
|
+
selectedOptions = _useState4[0],
|
|
50803
|
+
setSelectedOptions = _useState4[1];
|
|
50804
|
+
var _useState5 = useState([]),
|
|
50805
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
50806
|
+
appliedOptions = _useState6[0],
|
|
50807
|
+
setAppliedOptions = _useState6[1];
|
|
50808
|
+
var openedRef = useRef(opened);
|
|
50809
|
+
var handleOnClose = function handleOnClose() {
|
|
50810
|
+
if (openedRef.current) {
|
|
50811
|
+
setOpened(false);
|
|
50812
|
+
actions.fields.searchTerm.set("");
|
|
50813
|
+
}
|
|
50688
50814
|
};
|
|
50689
50815
|
var containerRef = useOutsideClickHook(function () {
|
|
50690
|
-
return
|
|
50816
|
+
return handleOnClose();
|
|
50691
50817
|
});
|
|
50692
50818
|
var dropdownRef = useRef(null);
|
|
50693
50819
|
var filterButtonRef = useRef(null);
|
|
50694
50820
|
var applyFilterButtonRef = useRef(null);
|
|
50695
50821
|
var filterDropdownID = "".concat(name, "-filter-dropdown");
|
|
50696
|
-
var
|
|
50822
|
+
var listGroupID = "".concat(name, "-list-group");
|
|
50697
50823
|
useEffect$1(function () {
|
|
50824
|
+
openedRef.current = opened;
|
|
50698
50825
|
if (!opened) {
|
|
50699
50826
|
onApply(selectedOptions);
|
|
50700
50827
|
setAppliedOptions(selectedOptions);
|
|
@@ -50711,9 +50838,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50711
50838
|
or tabbing backward past the filter button.
|
|
50712
50839
|
*/
|
|
50713
50840
|
if (event.key === "Escape" || event.key === "Tab" && !event.shiftKey && applyFilterButtonRef.current && applyFilterButtonRef.current.contains(event.target) || event.key === "Tab" && event.shiftKey && filterButtonRef.current && filterButtonRef.current.contains(event.target)) {
|
|
50714
|
-
|
|
50715
|
-
actions.fields.searchTerm.set("");
|
|
50716
|
-
onApply(selectedOptions);
|
|
50841
|
+
handleOnClose();
|
|
50717
50842
|
}
|
|
50718
50843
|
};
|
|
50719
50844
|
document.addEventListener("keydown", handleKeyDown);
|
|
@@ -50732,20 +50857,25 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50732
50857
|
setOpened(!opened);
|
|
50733
50858
|
},
|
|
50734
50859
|
opened: opened,
|
|
50735
|
-
|
|
50736
|
-
|
|
50860
|
+
backgroundHoverColor: appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length ? themeValues.secondaryHoverColor : themeValues.primaryHoverColor,
|
|
50861
|
+
backgroundColor: appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length ? themeValues.secondaryColor : themeValues.primaryColor,
|
|
50862
|
+
textColor: appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length ? WHITE : CHARADE_GREY,
|
|
50863
|
+
textHoverColor: opened && !(appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length) ? CHARADE_GREY : WHITE,
|
|
50737
50864
|
name: name,
|
|
50738
50865
|
filterDropdownID: filterDropdownID,
|
|
50739
50866
|
hasIcon: hasIcon,
|
|
50740
50867
|
icon: Icon,
|
|
50741
50868
|
truncateBtnTextWidth: truncateBtnTextWidth,
|
|
50742
50869
|
filterLabel: filterLabel,
|
|
50743
|
-
selectedOptions: selectedOptions
|
|
50870
|
+
selectedOptions: selectedOptions,
|
|
50871
|
+
extraStyles: btnExtraStyles
|
|
50744
50872
|
}), /*#__PURE__*/React.createElement(FilterDropdown, {
|
|
50745
50873
|
id: filterDropdownID,
|
|
50746
50874
|
ref: dropdownRef,
|
|
50747
|
-
ariaOwns:
|
|
50748
|
-
|
|
50875
|
+
ariaOwns: listGroupID,
|
|
50876
|
+
ariaControls: listGroupID,
|
|
50877
|
+
opened: opened,
|
|
50878
|
+
extraStyles: dropdownExtraStyles
|
|
50749
50879
|
}, /*#__PURE__*/React.createElement(SearchBox, {
|
|
50750
50880
|
showSearchBox: searchable && (options === null || options === void 0 ? void 0 : options.length) > 8,
|
|
50751
50881
|
autocompleteValue: autocompleteValue,
|
|
@@ -50754,7 +50884,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50754
50884
|
placeholder: placeholder,
|
|
50755
50885
|
disabled: disabled
|
|
50756
50886
|
}), /*#__PURE__*/React.createElement(FilterableList$1, {
|
|
50757
|
-
id:
|
|
50887
|
+
id: listGroupID,
|
|
50758
50888
|
options: options,
|
|
50759
50889
|
appliedOptions: appliedOptions,
|
|
50760
50890
|
themeValues: themeValues,
|
|
@@ -50768,22 +50898,21 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50768
50898
|
extraStyles: "\n max-height: 100px; \n display: flex; \n flex-flow: row; \n justify-content: space-between;\n border-top: 1px solid ".concat(GHOST_GREY, ";\n ")
|
|
50769
50899
|
}, /*#__PURE__*/React.createElement(ActionLinkButton, {
|
|
50770
50900
|
action: function action() {
|
|
50771
|
-
setOpened(false);
|
|
50772
50901
|
setSelectedOptions([]);
|
|
50773
|
-
|
|
50902
|
+
handleOnClose();
|
|
50774
50903
|
onClear();
|
|
50775
50904
|
},
|
|
50776
50905
|
text: "Clear",
|
|
50777
|
-
dataQa: "".concat(name, "-clear-filters")
|
|
50906
|
+
dataQa: "".concat(name, "-clear-filters"),
|
|
50907
|
+
ariaLabel: "Clear all filters"
|
|
50778
50908
|
}), /*#__PURE__*/React.createElement(ActionLinkButton, {
|
|
50779
50909
|
ref: applyFilterButtonRef,
|
|
50780
50910
|
action: function action() {
|
|
50781
|
-
|
|
50782
|
-
actions.fields.searchTerm.set("");
|
|
50783
|
-
onApply(selectedOptions);
|
|
50911
|
+
return handleOnClose();
|
|
50784
50912
|
},
|
|
50785
50913
|
text: "Apply",
|
|
50786
|
-
dataQa: "".concat(name, "-apply-filters")
|
|
50914
|
+
dataQa: "".concat(name, "-apply-filters"),
|
|
50915
|
+
ariaLabel: "Apply all filters"
|
|
50787
50916
|
}))));
|
|
50788
50917
|
};
|
|
50789
50918
|
var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$_);
|
|
@@ -51081,5 +51210,5 @@ var index$6 = /*#__PURE__*/Object.freeze({
|
|
|
51081
51210
|
useToastNotification: useToastNotification
|
|
51082
51211
|
});
|
|
51083
51212
|
|
|
51084
|
-
export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, AgencyIcon, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowRightIcon, ArrowUpCircleIconSmall, AutopayIcon, AutopayOnIcon, Badge$1 as Badge, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CaretArrowDown$1 as CaretArrowDown, CaretArrowUp$1 as CaretArrowUp, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, CloseIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisabledAccountsAddIcon, DisabledPaymentMethodsAddIcon, DisabledPropertiesAddIcon, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, EmptyCartIconV2$1 as EmptyCartIconV2, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FindIconSmall$1 as FindIconSmall, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GenericErrorIcon, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, KebabMenuIcon, KioskImage, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, LinkCard$1 as LinkCard, Loading, LoadingLine, LoginForm, Modal$3 as Modal, Module$1 as Module, Motion, MultiCartIcon, MultipleSelectFilter$1 as MultipleSelectFilter, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoResultsIcon, NotFoundIcon, Obligation$1 as Obligation, iconsMap as ObligationIcons, OverageIcon, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PencilIcon$1 as PencilIcon, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, PlusCircleIcon, PointOfSaleImage, Popover$1 as Popover, PopupMenu$1 as PopupMenu, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, ProfileImage, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioButtonWithLabel$1 as RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RefundIconMedium, RefundIconSmall, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess$1 as ResetPasswordSuccess, RevenueManagementImage, ReversalNeededIcon, RoutingNumberImage, Search$1 as Search, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, ShortageIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, SortableTableHeading$1 as SortableTableHeading, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, SuccessfulIconMedium, SuccessfulIconSmall, Switcher, TabSidebar$1 as TabSidebar, Table_styled as Table, TableBody_styled as TableBody, TableCell_styled as TableCell, TableHead$1 as TableHead, TableHeading, TableListItem, TableRow$1 as TableRow, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToastNotification, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TrashIconV2$1 as TrashIconV2, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WalletName, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, XCircleIconMedium, XCircleIconSmall, cardRegistry, index$4 as constants, createPartialAmountFormState, createPartialAmountFormValidators, index$5 as hooks, index$6 as util, withWindowSize };
|
|
51213
|
+
export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, AgencyIcon, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowRightIcon, ArrowUpCircleIconSmall, AutopayIcon, AutopayOnIcon, Badge$1 as Badge, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CaretArrowDown$1 as CaretArrowDown, CaretArrowUp$1 as CaretArrowUp, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, CloseIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisabledAccountsAddIcon, DisabledPaymentMethodsAddIcon, DisabledPropertiesAddIcon, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, EmptyCartIconV2$1 as EmptyCartIconV2, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FindIconSmall$1 as FindIconSmall, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GenericErrorIcon, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, KebabMenuIcon, KioskImage, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, LinkCard$1 as LinkCard, Loading, LoadingLine, LoginForm, Modal$3 as Modal, Module$1 as Module, Motion, MultiCartIcon, MultipleSelectFilter$1 as MultipleSelectFilter, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoResultsIcon, NotFoundIcon, Obligation$1 as Obligation, iconsMap as ObligationIcons, OverageIcon, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentStatusIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PencilIcon$1 as PencilIcon, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PersonIcon, PhoneForm, Placeholder$1 as Placeholder, PlusCircleIcon, PointOfSaleImage, Popover$1 as Popover, PopupMenu$1 as PopupMenu, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, ProfileImage, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioButtonWithLabel$1 as RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RefundIconMedium, RefundIconSmall, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess$1 as ResetPasswordSuccess, RevenueManagementImage, ReversalNeededIcon, RoutingNumberImage, Search$1 as Search, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, ShortageIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, SortableTableHeading$1 as SortableTableHeading, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, SuccessfulIconMedium, SuccessfulIconSmall, Switcher, TabSidebar$1 as TabSidebar, Table_styled as Table, TableBody_styled as TableBody, TableCell_styled as TableCell, TableHead$1 as TableHead, TableHeading, TableListItem, TableRow$1 as TableRow, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToastNotification, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TrashIconV2$1 as TrashIconV2, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WalletName, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, XCircleIconMedium, XCircleIconSmall, cardRegistry, index$4 as constants, createPartialAmountFormState, createPartialAmountFormValidators, index$5 as hooks, index$6 as util, withWindowSize };
|
|
51085
51214
|
//# sourceMappingURL=index.esm.js.map
|