@thecb/components 10.12.1-beta.0 → 10.12.2-beta.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/dist/index.cjs.js +274 -121
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +13 -8
- package/dist/index.esm.js +273 -122
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/card/Card.js +9 -0
- package/src/components/atoms/card/CardText.js +34 -11
- package/src/components/atoms/card/index.d.ts +7 -1
- package/src/components/atoms/checkbox/Checkbox.js +14 -8
- 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 +26 -32
- package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.stories.js +2 -4
- package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.styled.js +2 -2
- package/src/components/molecules/multiple-select-filter/__private__/ActionLinkButton.js +16 -13
- package/src/components/molecules/multiple-select-filter/__private__/FilterButton.js +13 -9
- 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 +53 -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/src/hooks/use-outside-click/index.js +4 -5
package/dist/index.esm.js
CHANGED
|
@@ -18849,6 +18849,52 @@ var AgencyIcon = function AgencyIcon(_ref) {
|
|
|
18849
18849
|
})));
|
|
18850
18850
|
};
|
|
18851
18851
|
|
|
18852
|
+
var _excluded$m = ["width", "height", "color"];
|
|
18853
|
+
var PersonIcon = function PersonIcon(_ref) {
|
|
18854
|
+
var _ref$width = _ref.width,
|
|
18855
|
+
width = _ref$width === void 0 ? "14" : _ref$width,
|
|
18856
|
+
_ref$height = _ref.height,
|
|
18857
|
+
height = _ref$height === void 0 ? "15" : _ref$height,
|
|
18858
|
+
_ref$color = _ref.color,
|
|
18859
|
+
color = _ref$color === void 0 ? CHARADE_GREY : _ref$color,
|
|
18860
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
18861
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
18862
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18863
|
+
width: width,
|
|
18864
|
+
height: height,
|
|
18865
|
+
viewBox: "0 0 ".concat(width, " ").concat(height),
|
|
18866
|
+
fill: "none"
|
|
18867
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
18868
|
+
fillRule: "evenodd",
|
|
18869
|
+
clipRule: "evenodd",
|
|
18870
|
+
d: "M12.25 1.8125H1.75C1.50838 1.8125 1.3125 2.00838 1.3125 2.25V12.75C1.3125 12.9916 1.50838 13.1875 1.75 13.1875H2.625V11.7778C2.625 9.89848 4.02411 8.375 5.75 8.375H8.25C9.97589 8.375 11.375 9.89848 11.375 11.7778V13.1875H12.25C12.4916 13.1875 12.6875 12.9916 12.6875 12.75V2.25C12.6875 2.00838 12.4916 1.8125 12.25 1.8125ZM1.75 14.5H2.625H11.375H12.25C13.2165 14.5 14 13.7165 14 12.75V2.25C14 1.2835 13.2165 0.5 12.25 0.5H1.75C0.783502 0.5 0 1.2835 0 2.25V12.75C0 13.7165 0.783502 14.5 1.75 14.5ZM7 7.5C8.20812 7.5 9.1875 6.52062 9.1875 5.3125C9.1875 4.10438 8.20812 3.125 7 3.125C5.79188 3.125 4.8125 4.10438 4.8125 5.3125C4.8125 6.52062 5.79188 7.5 7 7.5Z",
|
|
18871
|
+
fill: color
|
|
18872
|
+
}));
|
|
18873
|
+
};
|
|
18874
|
+
|
|
18875
|
+
var _excluded$n = ["width", "height", "color"];
|
|
18876
|
+
var PaymentStatusIcon = function PaymentStatusIcon(_ref) {
|
|
18877
|
+
var _ref$width = _ref.width,
|
|
18878
|
+
width = _ref$width === void 0 ? "20" : _ref$width,
|
|
18879
|
+
_ref$height = _ref.height,
|
|
18880
|
+
height = _ref$height === void 0 ? "21" : _ref$height,
|
|
18881
|
+
_ref$color = _ref.color,
|
|
18882
|
+
color = _ref$color === void 0 ? CHARADE_GREY : _ref$color,
|
|
18883
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
18884
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
18885
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18886
|
+
width: width,
|
|
18887
|
+
height: height,
|
|
18888
|
+
viewBox: "0 0 ".concat(width, " ").concat(height),
|
|
18889
|
+
fill: "none"
|
|
18890
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
18891
|
+
fillRule: "evenodd",
|
|
18892
|
+
clipRule: "evenodd",
|
|
18893
|
+
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",
|
|
18894
|
+
fill: color
|
|
18895
|
+
}));
|
|
18896
|
+
};
|
|
18897
|
+
|
|
18852
18898
|
var color$2 = "#15749D";
|
|
18853
18899
|
var hoverColor$1 = "#116285";
|
|
18854
18900
|
var activeColor$1 = "#0E506D";
|
|
@@ -19502,7 +19548,7 @@ var mobileFallbackValues = {
|
|
|
19502
19548
|
};
|
|
19503
19549
|
var MOBILE_BREAKPOINT = 768;
|
|
19504
19550
|
|
|
19505
|
-
var _excluded$
|
|
19551
|
+
var _excluded$o = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
19506
19552
|
|
|
19507
19553
|
/*
|
|
19508
19554
|
New responsive text component for Title elements
|
|
@@ -19549,7 +19595,7 @@ var Title = function Title(_ref) {
|
|
|
19549
19595
|
as = _ref$as === void 0 ? "h1" : _ref$as,
|
|
19550
19596
|
dataQa = _ref.dataQa,
|
|
19551
19597
|
children = _ref.children,
|
|
19552
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
19598
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
19553
19599
|
return /*#__PURE__*/React.createElement(TitleText, _extends({
|
|
19554
19600
|
variant: variant,
|
|
19555
19601
|
as: as,
|
|
@@ -20977,12 +21023,12 @@ var fallbackValues$8 = {
|
|
|
20977
21023
|
linkColor: linkColor
|
|
20978
21024
|
};
|
|
20979
21025
|
|
|
20980
|
-
var _excluded$
|
|
21026
|
+
var _excluded$p = ["variant", "themeValues", "children"];
|
|
20981
21027
|
var BoxWithShadow = function BoxWithShadow(_ref) {
|
|
20982
21028
|
var variant = _ref.variant,
|
|
20983
21029
|
themeValues = _ref.themeValues,
|
|
20984
21030
|
children = _ref.children,
|
|
20985
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
21031
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
20986
21032
|
var shadowRegistry = {
|
|
20987
21033
|
baseStandard: "0px 3px 7px 2px ".concat(rgba$1(BLACK, 0.1), ", 0px 1px 2px 1px ").concat(rgba$1(BLACK, 0.1), ";"),
|
|
20988
21034
|
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), ";"),
|
|
@@ -21042,7 +21088,7 @@ var fallbackValues$a = {
|
|
|
21042
21088
|
externalLinkColor: externalLinkColor
|
|
21043
21089
|
};
|
|
21044
21090
|
|
|
21045
|
-
var _excluded$
|
|
21091
|
+
var _excluded$q = ["hoverColor", "activeColor", "extrastyles"];
|
|
21046
21092
|
var ROYAL_BLUE$1 = ROYAL_BLUE;
|
|
21047
21093
|
var LINK_TEXT_DECORATION$3 = LINK_TEXT_DECORATION;
|
|
21048
21094
|
|
|
@@ -21056,7 +21102,7 @@ var StyledExternalLink = styled( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
21056
21102
|
var hoverColor = _ref.hoverColor,
|
|
21057
21103
|
activeColor = _ref.activeColor,
|
|
21058
21104
|
extrastyles = _ref.extrastyles,
|
|
21059
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
21105
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
21060
21106
|
return /*#__PURE__*/React.createElement("a", _extends({}, props, {
|
|
21061
21107
|
ref: ref
|
|
21062
21108
|
}));
|
|
@@ -21131,7 +21177,7 @@ var ExternalLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
21131
21177
|
}, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
|
|
21132
21178
|
});
|
|
21133
21179
|
|
|
21134
|
-
var _excluded$
|
|
21180
|
+
var _excluded$r = ["hoverColor", "activeColor", "active", "color", "extrastyles"];
|
|
21135
21181
|
var ROYAL_BLUE$2 = ROYAL_BLUE;
|
|
21136
21182
|
var LINK_TEXT_DECORATION$4 = LINK_TEXT_DECORATION;
|
|
21137
21183
|
|
|
@@ -21147,7 +21193,7 @@ var StyledInternalLink = styled( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
21147
21193
|
active = _ref.active,
|
|
21148
21194
|
color = _ref.color,
|
|
21149
21195
|
extrastyles = _ref.extrastyles,
|
|
21150
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
21196
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
21151
21197
|
return /*#__PURE__*/React.createElement(Link, _extends({}, props, {
|
|
21152
21198
|
ref: ref
|
|
21153
21199
|
}));
|
|
@@ -22830,7 +22876,7 @@ _curry2(function test(pattern, str) {
|
|
|
22830
22876
|
return _cloneRegExp(pattern).test(str);
|
|
22831
22877
|
});
|
|
22832
22878
|
|
|
22833
|
-
var _excluded$
|
|
22879
|
+
var _excluded$s = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
|
|
22834
22880
|
var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
22835
22881
|
var _ref$url = _ref.url,
|
|
22836
22882
|
url = _ref$url === void 0 ? "/" : _ref$url,
|
|
@@ -22845,7 +22891,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
22845
22891
|
_ref$newTab = _ref.newTab,
|
|
22846
22892
|
newTab = _ref$newTab === void 0 ? false : _ref$newTab,
|
|
22847
22893
|
dataQa = _ref.dataQa,
|
|
22848
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
22894
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$s);
|
|
22849
22895
|
var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
|
|
22850
22896
|
var children = _ref2.children,
|
|
22851
22897
|
url = _ref2.url,
|
|
@@ -22933,7 +22979,7 @@ var ParagraphText = styled.p.withConfig({
|
|
|
22933
22979
|
return extraStyles;
|
|
22934
22980
|
});
|
|
22935
22981
|
|
|
22936
|
-
var _excluded$
|
|
22982
|
+
var _excluded$t = ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children", "as"];
|
|
22937
22983
|
var Paragraph = function Paragraph(_ref) {
|
|
22938
22984
|
var themeValues = _ref.themeValues,
|
|
22939
22985
|
_ref$weight = _ref.weight,
|
|
@@ -22947,7 +22993,7 @@ var Paragraph = function Paragraph(_ref) {
|
|
|
22947
22993
|
dataQa = _ref.dataQa,
|
|
22948
22994
|
children = _ref.children,
|
|
22949
22995
|
as = _ref.as,
|
|
22950
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22996
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
22951
22997
|
return /*#__PURE__*/React.createElement(ParagraphText, _extends({
|
|
22952
22998
|
weight: weight,
|
|
22953
22999
|
color: color,
|
|
@@ -23189,7 +23235,7 @@ var ENTER = 13;
|
|
|
23189
23235
|
var ESCAPE = 27;
|
|
23190
23236
|
var SPACEBAR = 32;
|
|
23191
23237
|
|
|
23192
|
-
var _excluded$
|
|
23238
|
+
var _excluded$u = ["title", "name", "checked", "onChange", "disabled", "themeValues", "hidden", "error", "checkboxMargin", "extraStyles", "textExtraStyles", "labelledById", "dataQa", "checkboxExtraStyles", "hasIconOverride", "icon"];
|
|
23193
23239
|
var CheckboxContainer = styled.span.withConfig({
|
|
23194
23240
|
displayName: "Checkbox__CheckboxContainer",
|
|
23195
23241
|
componentId: "sc-36kqbv-0"
|
|
@@ -23256,7 +23302,10 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref5, ref) {
|
|
|
23256
23302
|
_ref5$dataQa = _ref5.dataQa,
|
|
23257
23303
|
dataQa = _ref5$dataQa === void 0 ? null : _ref5$dataQa,
|
|
23258
23304
|
checkboxExtraStyles = _ref5.checkboxExtraStyles,
|
|
23259
|
-
|
|
23305
|
+
_ref5$hasIconOverride = _ref5.hasIconOverride,
|
|
23306
|
+
hasIconOverride = _ref5$hasIconOverride === void 0 ? false : _ref5$hasIconOverride,
|
|
23307
|
+
Icon = _ref5.icon,
|
|
23308
|
+
rest = _objectWithoutProperties(_ref5, _excluded$u);
|
|
23260
23309
|
var _useState = useState(false),
|
|
23261
23310
|
_useState2 = _slicedToArray(_useState, 2),
|
|
23262
23311
|
focused = _useState2[0],
|
|
@@ -23314,7 +23363,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref5, ref) {
|
|
|
23314
23363
|
disabledCheckedStyles: themeValues.disabledCheckedStyles,
|
|
23315
23364
|
focusedStyles: themeValues.focusedStyles,
|
|
23316
23365
|
checkboxExtraStyles: checkboxExtraStyles
|
|
23317
|
-
}, /*#__PURE__*/React.createElement(CheckboxIcon, {
|
|
23366
|
+
}, hasIconOverride ? /*#__PURE__*/React.createElement(Icon, null) : /*#__PURE__*/React.createElement(CheckboxIcon, {
|
|
23318
23367
|
viewBox: "0 0 24 24",
|
|
23319
23368
|
disabled: disabled,
|
|
23320
23369
|
disabledCheckColor: themeValues.disabledCheckColor,
|
|
@@ -23612,7 +23661,7 @@ var TableRowWrapper = styled.tr.withConfig({
|
|
|
23612
23661
|
return extraStyles;
|
|
23613
23662
|
});
|
|
23614
23663
|
|
|
23615
|
-
var _excluded$
|
|
23664
|
+
var _excluded$v = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
23616
23665
|
var TableRow = function TableRow(_ref) {
|
|
23617
23666
|
var children = _ref.children,
|
|
23618
23667
|
extraStyles = _ref.extraStyles,
|
|
@@ -23621,7 +23670,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
23621
23670
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
23622
23671
|
onClick = _ref.onClick,
|
|
23623
23672
|
themeValues = _ref.themeValues,
|
|
23624
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
23673
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
23625
23674
|
return /*#__PURE__*/React.createElement(TableRowWrapper, _extends({
|
|
23626
23675
|
onClick: onClick,
|
|
23627
23676
|
hoverEffect: hoverEffect,
|
|
@@ -26455,7 +26504,7 @@ var mobileFallbackValues$1 = {
|
|
|
26455
26504
|
};
|
|
26456
26505
|
var MOBILE_BREAKPOINT$1 = 768;
|
|
26457
26506
|
|
|
26458
|
-
var _excluded$
|
|
26507
|
+
var _excluded$w = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
26459
26508
|
|
|
26460
26509
|
/*
|
|
26461
26510
|
New responsive text component for Detail elements
|
|
@@ -26505,7 +26554,7 @@ var Detail = function Detail(_ref) {
|
|
|
26505
26554
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
26506
26555
|
dataQa = _ref.dataQa,
|
|
26507
26556
|
children = _ref.children,
|
|
26508
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26557
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
26509
26558
|
return /*#__PURE__*/React.createElement(DetailText, _extends({
|
|
26510
26559
|
variant: variant,
|
|
26511
26560
|
as: as,
|
|
@@ -26562,6 +26611,15 @@ var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$l);
|
|
|
26562
26611
|
var useOutsideClickHook = function useOutsideClickHook(handler) {
|
|
26563
26612
|
var ref = useRef();
|
|
26564
26613
|
useEffect$1(function () {
|
|
26614
|
+
var handleOutsideClick = function handleOutsideClick(e) {
|
|
26615
|
+
if (ref.current && !ref.current.contains(e.target)) {
|
|
26616
|
+
handler();
|
|
26617
|
+
}
|
|
26618
|
+
};
|
|
26619
|
+
document.addEventListener("click", handleOutsideClick, true);
|
|
26620
|
+
return function () {
|
|
26621
|
+
document.removeEventListener("click", handleOutsideClick, true);
|
|
26622
|
+
};
|
|
26565
26623
|
}, [ref]);
|
|
26566
26624
|
return ref;
|
|
26567
26625
|
};
|
|
@@ -26752,7 +26810,9 @@ var Popover = function Popover(_ref) {
|
|
|
26752
26810
|
togglePopover(popoverState);
|
|
26753
26811
|
}
|
|
26754
26812
|
};
|
|
26755
|
-
var triggerRef = useOutsideClickHook()
|
|
26813
|
+
var triggerRef = useOutsideClickHook(function () {
|
|
26814
|
+
return handleTogglePopover(false);
|
|
26815
|
+
});
|
|
26756
26816
|
return /*#__PURE__*/React.createElement(Box, {
|
|
26757
26817
|
padding: "0",
|
|
26758
26818
|
extraStyles: "position: relative; ".concat(extraStyles)
|
|
@@ -27228,7 +27288,7 @@ var fallbackValues$n = {
|
|
|
27228
27288
|
formFooterPanel: formFooterPanel
|
|
27229
27289
|
};
|
|
27230
27290
|
|
|
27231
|
-
var _excluded$
|
|
27291
|
+
var _excluded$x = ["showErrors", "themeValues"],
|
|
27232
27292
|
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired", "errorFieldExtraStyles", "showFieldErrorRow", "labelTextVariant", "errorTextVariant"];
|
|
27233
27293
|
var InputField = styled.input.withConfig({
|
|
27234
27294
|
displayName: "FormInput__InputField",
|
|
@@ -27263,7 +27323,7 @@ var InputField = styled.input.withConfig({
|
|
|
27263
27323
|
var FormattedInputField = styled(function (_ref8) {
|
|
27264
27324
|
var showErrors = _ref8.showErrors,
|
|
27265
27325
|
themeValues = _ref8.themeValues,
|
|
27266
|
-
props = _objectWithoutProperties(_ref8, _excluded$
|
|
27326
|
+
props = _objectWithoutProperties(_ref8, _excluded$x);
|
|
27267
27327
|
return /*#__PURE__*/React.createElement(FormattedInput, props);
|
|
27268
27328
|
}).withConfig({
|
|
27269
27329
|
displayName: "FormInput__FormattedInputField",
|
|
@@ -27468,7 +27528,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
27468
27528
|
};
|
|
27469
27529
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$n, "default");
|
|
27470
27530
|
|
|
27471
|
-
var _excluded$
|
|
27531
|
+
var _excluded$y = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
27472
27532
|
var FormInputRow = function FormInputRow(_ref) {
|
|
27473
27533
|
var _ref$breakpoint = _ref.breakpoint,
|
|
27474
27534
|
breakpoint = _ref$breakpoint === void 0 ? "30rem" : _ref$breakpoint,
|
|
@@ -27477,7 +27537,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
27477
27537
|
largeChild = _ref.largeChild,
|
|
27478
27538
|
largeChildSize = _ref.largeChildSize,
|
|
27479
27539
|
children = _ref.children,
|
|
27480
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27540
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
27481
27541
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
27482
27542
|
padding: "0"
|
|
27483
27543
|
}, rest), /*#__PURE__*/React.createElement(Switcher, {
|
|
@@ -27488,24 +27548,24 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
27488
27548
|
}, children));
|
|
27489
27549
|
};
|
|
27490
27550
|
|
|
27491
|
-
var _excluded$
|
|
27551
|
+
var _excluded$z = ["childGap", "bottomItem", "children"];
|
|
27492
27552
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
27493
27553
|
var _ref$childGap = _ref.childGap,
|
|
27494
27554
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
27495
27555
|
bottomItem = _ref.bottomItem,
|
|
27496
27556
|
children = _ref.children,
|
|
27497
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27557
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
27498
27558
|
return /*#__PURE__*/React.createElement(Stack, _extends({
|
|
27499
27559
|
childGap: childGap,
|
|
27500
27560
|
bottomItem: bottomItem
|
|
27501
27561
|
}, rest), children);
|
|
27502
27562
|
};
|
|
27503
27563
|
|
|
27504
|
-
var _excluded$
|
|
27564
|
+
var _excluded$A = ["themeValues", "children"];
|
|
27505
27565
|
var FormContainer = function FormContainer(_ref) {
|
|
27506
27566
|
var themeValues = _ref.themeValues,
|
|
27507
27567
|
children = _ref.children,
|
|
27508
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27568
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
27509
27569
|
var _useContext = useContext(ThemeContext),
|
|
27510
27570
|
isMobile = _useContext.isMobile;
|
|
27511
27571
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
@@ -27815,7 +27875,7 @@ var fallbackValues$r = {
|
|
|
27815
27875
|
fontSize: fontSize$8
|
|
27816
27876
|
};
|
|
27817
27877
|
|
|
27818
|
-
var _excluded$
|
|
27878
|
+
var _excluded$B = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
27819
27879
|
var Heading = function Heading(_ref) {
|
|
27820
27880
|
var themeValues = _ref.themeValues,
|
|
27821
27881
|
_ref$weight = _ref.weight,
|
|
@@ -27834,7 +27894,7 @@ var Heading = function Heading(_ref) {
|
|
|
27834
27894
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
27835
27895
|
dataQa = _ref.dataQa,
|
|
27836
27896
|
children = _ref.children,
|
|
27837
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27897
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
27838
27898
|
return /*#__PURE__*/React.createElement(HeadingText, _extends({
|
|
27839
27899
|
variant: variant,
|
|
27840
27900
|
as: as,
|
|
@@ -28035,11 +28095,11 @@ var LabeledAmountV2 = function LabeledAmountV2(_ref) {
|
|
|
28035
28095
|
}, /*#__PURE__*/React.createElement("span", null, label), /*#__PURE__*/React.createElement("span", null, amount));
|
|
28036
28096
|
};
|
|
28037
28097
|
|
|
28038
|
-
var _excluded$
|
|
28098
|
+
var _excluded$C = ["version"];
|
|
28039
28099
|
var LabeledAmount = function LabeledAmount(_ref) {
|
|
28040
28100
|
var _ref$version = _ref.version,
|
|
28041
28101
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
28042
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28102
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
28043
28103
|
var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
|
|
28044
28104
|
return /*#__PURE__*/React.createElement(LabeledAmountComponent, rest);
|
|
28045
28105
|
};
|
|
@@ -28184,7 +28244,7 @@ var Loading = function Loading() {
|
|
|
28184
28244
|
})))));
|
|
28185
28245
|
};
|
|
28186
28246
|
|
|
28187
|
-
var _excluded$
|
|
28247
|
+
var _excluded$D = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
28188
28248
|
var NavFooter = function NavFooter(_ref) {
|
|
28189
28249
|
var leftContent = _ref.leftContent,
|
|
28190
28250
|
rightContent = _ref.rightContent,
|
|
@@ -28199,7 +28259,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
28199
28259
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
28200
28260
|
isMobile = _ref.isMobile,
|
|
28201
28261
|
footerWidth = _ref.footerWidth,
|
|
28202
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28262
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
28203
28263
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
28204
28264
|
padding: footerPadding,
|
|
28205
28265
|
background: backgroundColor,
|
|
@@ -28230,7 +28290,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
28230
28290
|
}, rightContent)))))));
|
|
28231
28291
|
};
|
|
28232
28292
|
|
|
28233
|
-
var _excluded$
|
|
28293
|
+
var _excluded$E = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
28234
28294
|
var NavHeader = function NavHeader(_ref) {
|
|
28235
28295
|
var leftContent = _ref.leftContent,
|
|
28236
28296
|
rightContent = _ref.rightContent,
|
|
@@ -28239,7 +28299,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
28239
28299
|
isMobile = _ref.isMobile,
|
|
28240
28300
|
backgroundColor = _ref.backgroundColor,
|
|
28241
28301
|
headerWidth = _ref.headerWidth,
|
|
28242
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28302
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
28243
28303
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
28244
28304
|
padding: "0 16px 4px",
|
|
28245
28305
|
background: backgroundColor,
|
|
@@ -39853,20 +39913,40 @@ var fallbackValues$E = {
|
|
|
39853
39913
|
};
|
|
39854
39914
|
|
|
39855
39915
|
var CardText = function CardText(_ref) {
|
|
39856
|
-
var
|
|
39916
|
+
var showQuitLink = _ref.showQuitLink,
|
|
39917
|
+
onQuitClick = _ref.onQuitClick,
|
|
39918
|
+
titleAs = _ref.titleAs,
|
|
39919
|
+
padding = _ref.padding,
|
|
39857
39920
|
text = _ref.text,
|
|
39921
|
+
_ref$textAs = _ref.textAs,
|
|
39922
|
+
textAs = _ref$textAs === void 0 ? "p" : _ref$textAs,
|
|
39858
39923
|
titleText = _ref.titleText,
|
|
39859
39924
|
_ref$titleVariant = _ref.titleVariant,
|
|
39860
39925
|
titleVariant = _ref$titleVariant === void 0 ? "small" : _ref$titleVariant,
|
|
39861
39926
|
themeValues = _ref.themeValues;
|
|
39862
39927
|
return /*#__PURE__*/React.createElement(Box, {
|
|
39863
39928
|
padding: padding
|
|
39864
|
-
}, /*#__PURE__*/React.createElement(Cover, null, /*#__PURE__*/React.createElement(Stack, null,
|
|
39865
|
-
|
|
39929
|
+
}, /*#__PURE__*/React.createElement(Cover, null, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Cluster, {
|
|
39930
|
+
justify: "space-between",
|
|
39931
|
+
align: "center",
|
|
39932
|
+
overflow: true
|
|
39933
|
+
}, titleText && /*#__PURE__*/React.createElement(Title$1, {
|
|
39934
|
+
as: titleAs,
|
|
39866
39935
|
variant: titleVariant,
|
|
39867
39936
|
color: themeValues.titleColor,
|
|
39868
39937
|
weight: themeValues.titleWeight
|
|
39869
|
-
}, titleText), /*#__PURE__*/React.createElement(
|
|
39938
|
+
}, titleText), showQuitLink && /*#__PURE__*/React.createElement(Box, {
|
|
39939
|
+
padding: "0",
|
|
39940
|
+
onClick: onQuitClick,
|
|
39941
|
+
onKeyDown: function onKeyDown(e) {
|
|
39942
|
+
return e.key === "Enter" && onQuitClick();
|
|
39943
|
+
},
|
|
39944
|
+
role: "button",
|
|
39945
|
+
tabIndex: 0,
|
|
39946
|
+
"aria-label": "Close Card: ".concat(titleText),
|
|
39947
|
+
extraStyles: "cursor: pointer;"
|
|
39948
|
+
}, /*#__PURE__*/React.createElement(IconQuitLarge, null))), /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
39949
|
+
as: textAs,
|
|
39870
39950
|
color: themeValues.textColor
|
|
39871
39951
|
}, text))));
|
|
39872
39952
|
};
|
|
@@ -39907,9 +39987,17 @@ var Card = function Card(_ref) {
|
|
|
39907
39987
|
_ref$imgObjectFit = _ref.imgObjectFit,
|
|
39908
39988
|
imgObjectFit = _ref$imgObjectFit === void 0 ? "none" : _ref$imgObjectFit,
|
|
39909
39989
|
imgAltText = _ref.imgAltText,
|
|
39990
|
+
_ref$onQuitClick = _ref.onQuitClick,
|
|
39991
|
+
onQuitClick = _ref$onQuitClick === void 0 ? noop$1 : _ref$onQuitClick,
|
|
39910
39992
|
_ref$padding = _ref.padding,
|
|
39911
39993
|
padding = _ref$padding === void 0 ? "24px" : _ref$padding,
|
|
39994
|
+
_ref$showQuitLink = _ref.showQuitLink,
|
|
39995
|
+
showQuitLink = _ref$showQuitLink === void 0 ? false : _ref$showQuitLink,
|
|
39912
39996
|
text = _ref.text,
|
|
39997
|
+
_ref$textAs = _ref.textAs,
|
|
39998
|
+
textAs = _ref$textAs === void 0 ? "p" : _ref$textAs,
|
|
39999
|
+
_ref$titleAs = _ref.titleAs,
|
|
40000
|
+
titleAs = _ref$titleAs === void 0 ? "h2" : _ref$titleAs,
|
|
39913
40001
|
titleText = _ref.titleText,
|
|
39914
40002
|
_ref$titleVariant = _ref.titleVariant,
|
|
39915
40003
|
titleVariant = _ref$titleVariant === void 0 ? "small" : _ref$titleVariant,
|
|
@@ -39966,9 +40054,13 @@ var Card = function Card(_ref) {
|
|
|
39966
40054
|
width: "100%",
|
|
39967
40055
|
extraStyles: "flex-basis: 100%;"
|
|
39968
40056
|
}, text && /*#__PURE__*/React.createElement(CardText$1, {
|
|
40057
|
+
onQuitClick: onQuitClick,
|
|
39969
40058
|
padding: padding,
|
|
40059
|
+
showQuitLink: showQuitLink,
|
|
40060
|
+
titleAs: titleAs,
|
|
39970
40061
|
titleText: titleText,
|
|
39971
40062
|
text: text,
|
|
40063
|
+
textAs: textAs,
|
|
39972
40064
|
titleVariant: titleVariant
|
|
39973
40065
|
}), children)))));
|
|
39974
40066
|
};
|
|
@@ -46623,11 +46715,11 @@ var Modal$2 = function Modal(_ref) {
|
|
|
46623
46715
|
};
|
|
46624
46716
|
var ModalControlV2 = withWindowSize(Modal$2);
|
|
46625
46717
|
|
|
46626
|
-
var _excluded$
|
|
46718
|
+
var _excluded$F = ["version"];
|
|
46627
46719
|
var Modal$3 = function Modal(_ref) {
|
|
46628
46720
|
var _ref$version = _ref.version,
|
|
46629
46721
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
46630
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46722
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
46631
46723
|
var ModalControl = version === "v1" ? Modal$1 : ModalControlV2;
|
|
46632
46724
|
return /*#__PURE__*/React.createElement(ModalControl, rest);
|
|
46633
46725
|
};
|
|
@@ -47929,7 +48021,7 @@ var fallbackValues$P = {
|
|
|
47929
48021
|
labeledAmountTotal: labeledAmountTotal
|
|
47930
48022
|
};
|
|
47931
48023
|
|
|
47932
|
-
var _excluded$
|
|
48024
|
+
var _excluded$G = ["amount"],
|
|
47933
48025
|
_excluded2$1 = ["amount"];
|
|
47934
48026
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
47935
48027
|
var lineItemElems = _ref.lineItemElems,
|
|
@@ -48172,7 +48264,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
48172
48264
|
return fee.amount > 0;
|
|
48173
48265
|
}).map(function (_ref5) {
|
|
48174
48266
|
var amount = _ref5.amount,
|
|
48175
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
48267
|
+
rest = _objectWithoutProperties(_ref5, _excluded$G);
|
|
48176
48268
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
48177
48269
|
amount: displayCurrency(amount)
|
|
48178
48270
|
});
|
|
@@ -48609,11 +48701,11 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48609
48701
|
}, errorMessage))))));
|
|
48610
48702
|
};
|
|
48611
48703
|
|
|
48612
|
-
var _excluded$
|
|
48704
|
+
var _excluded$H = ["version"];
|
|
48613
48705
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48614
48706
|
var _ref$version = _ref.version,
|
|
48615
48707
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48616
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48708
|
+
rest = _objectWithoutProperties(_ref, _excluded$H);
|
|
48617
48709
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48618
48710
|
return /*#__PURE__*/React.createElement(TermsAndConditionsControl, rest);
|
|
48619
48711
|
};
|
|
@@ -49421,7 +49513,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49421
49513
|
}, section.content))));
|
|
49422
49514
|
};
|
|
49423
49515
|
|
|
49424
|
-
var _excluded$
|
|
49516
|
+
var _excluded$I = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections", "borderOverride"];
|
|
49425
49517
|
|
|
49426
49518
|
/**
|
|
49427
49519
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
@@ -49470,7 +49562,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49470
49562
|
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
49471
49563
|
groupedSections = _ref.groupedSections,
|
|
49472
49564
|
borderOverride = _ref.borderOverride,
|
|
49473
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49565
|
+
rest = _objectWithoutProperties(_ref, _excluded$I);
|
|
49474
49566
|
var _useState = useState(null),
|
|
49475
49567
|
_useState2 = _slicedToArray(_useState, 2),
|
|
49476
49568
|
focused = _useState2[0],
|
|
@@ -50017,7 +50109,7 @@ var Timeout = function Timeout(_ref) {
|
|
|
50017
50109
|
};
|
|
50018
50110
|
var Timeout$1 = withWindowSize(Timeout);
|
|
50019
50111
|
|
|
50020
|
-
var _excluded$
|
|
50112
|
+
var _excluded$J = ["variant", "message", "toastOpen", "closeToastNotification", "extraStyles", "minWidth", "maxWidth", "height", "childGap", "backgroundColor", "role", "ariaLive", "screenReaderMessage", "showScreenReaderMessage"];
|
|
50021
50113
|
var VARIANTS = {
|
|
50022
50114
|
SUCCESS: "success",
|
|
50023
50115
|
ERROR: "error"
|
|
@@ -50046,7 +50138,7 @@ var ToastNotification = function ToastNotification(_ref) {
|
|
|
50046
50138
|
screenReaderMessage = _ref.screenReaderMessage,
|
|
50047
50139
|
_ref$showScreenReader = _ref.showScreenReaderMessage,
|
|
50048
50140
|
showScreenReaderMessage = _ref$showScreenReader === void 0 ? true : _ref$showScreenReader,
|
|
50049
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
50141
|
+
rest = _objectWithoutProperties(_ref, _excluded$J);
|
|
50050
50142
|
var screenReaderMessageRef = useRef();
|
|
50051
50143
|
var LIVEREGION_TRANSITION_DELAY = 1000;
|
|
50052
50144
|
useEffect$1(function () {
|
|
@@ -50229,7 +50321,7 @@ var PopupMenuItemContainer = styled(ButtonWithAction).withConfig({
|
|
|
50229
50321
|
return "\n background-color: ".concat(isDeleteAction ? theme.menuItemHoverBackgroundColorDelete : theme.menuItemHoverBackgroundColor, ";\n ");
|
|
50230
50322
|
});
|
|
50231
50323
|
|
|
50232
|
-
var _excluded$
|
|
50324
|
+
var _excluded$K = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
|
|
50233
50325
|
var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
50234
50326
|
var id = _ref.id,
|
|
50235
50327
|
closeMenuCallback = _ref.closeMenuCallback,
|
|
@@ -50245,7 +50337,7 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
|
50245
50337
|
hoverStyles = _ref.hoverStyles,
|
|
50246
50338
|
activeStyles = _ref.activeStyles,
|
|
50247
50339
|
extraStyles = _ref.extraStyles,
|
|
50248
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
50340
|
+
rest = _objectWithoutProperties(_ref, _excluded$K);
|
|
50249
50341
|
return /*#__PURE__*/React.createElement(PopupMenuItemContainer, _extends({
|
|
50250
50342
|
id: id,
|
|
50251
50343
|
role: "menuItem",
|
|
@@ -50428,10 +50520,7 @@ var fallbackValues$_ = {
|
|
|
50428
50520
|
var StyledFilterContainer = styled(Box).withConfig({
|
|
50429
50521
|
displayName: "MultipleSelectFilterstyled__StyledFilterContainer",
|
|
50430
50522
|
componentId: "sc-126xgc2-0"
|
|
50431
|
-
})(["position:relative;box-sizing:border-box;padding:0;"
|
|
50432
|
-
var extraStyles = _ref.extraStyles;
|
|
50433
|
-
return extraStyles;
|
|
50434
|
-
});
|
|
50523
|
+
})(["position:relative;overflow:visible;box-sizing:border-box;padding:0;"]);
|
|
50435
50524
|
var FilterContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
50436
50525
|
return /*#__PURE__*/React.createElement(StyledFilterContainer, _extends({
|
|
50437
50526
|
ref: ref
|
|
@@ -50440,7 +50529,7 @@ var FilterContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
50440
50529
|
var StyledFilterDropdown = styled(Box).withConfig({
|
|
50441
50530
|
displayName: "MultipleSelectFilterstyled__StyledFilterDropdown",
|
|
50442
50531
|
componentId: "sc-126xgc2-1"
|
|
50443
|
-
})(["position:absolute;top:calc(100% + 0.5rem);left:0;width:
|
|
50532
|
+
})(["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;"]);
|
|
50444
50533
|
var FilterDropdownContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
50445
50534
|
return /*#__PURE__*/React.createElement(StyledFilterDropdown, _extends({
|
|
50446
50535
|
ref: ref
|
|
@@ -50449,11 +50538,11 @@ var FilterDropdownContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
50449
50538
|
var FilterButton = styled(ButtonWithAction).withConfig({
|
|
50450
50539
|
displayName: "MultipleSelectFilterstyled__FilterButton",
|
|
50451
50540
|
componentId: "sc-126xgc2-2"
|
|
50452
|
-
})(["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 (
|
|
50453
|
-
var textColor =
|
|
50541
|
+
})(["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) {
|
|
50542
|
+
var textColor = _ref.textColor;
|
|
50454
50543
|
return "\n color: ".concat(textColor, ";\n ");
|
|
50455
|
-
}, function (
|
|
50456
|
-
var backgroundColor =
|
|
50544
|
+
}, function (_ref2) {
|
|
50545
|
+
var backgroundColor = _ref2.backgroundColor;
|
|
50457
50546
|
return "\n background-color: ".concat(backgroundColor, ";\n :hover,\n :active,\n :focus {\n background-color: ").concat(backgroundColor, ";\n }\n ");
|
|
50458
50547
|
});
|
|
50459
50548
|
var StyledFilterButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
@@ -50465,7 +50554,8 @@ var StyledFilterButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
50465
50554
|
var ActionLinkButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
50466
50555
|
var action = _ref.action,
|
|
50467
50556
|
text = _ref.text,
|
|
50468
|
-
dataQa = _ref.dataQa
|
|
50557
|
+
dataQa = _ref.dataQa,
|
|
50558
|
+
ariaLabel = _ref.ariaLabel;
|
|
50469
50559
|
return /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
50470
50560
|
ref: ref,
|
|
50471
50561
|
action: action,
|
|
@@ -50473,11 +50563,12 @@ var ActionLinkButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50473
50563
|
extraStyles: "\n padding: 0.2rem; \n margin: 0.5rem; \n min-height: auto; \n min-width: auto;\n ",
|
|
50474
50564
|
textExtraStyles: "font-weight: ".concat(FONT_WEIGHT_REGULAR, ";"),
|
|
50475
50565
|
text: text,
|
|
50476
|
-
dataQa: dataQa
|
|
50566
|
+
dataQa: dataQa,
|
|
50567
|
+
"aria-label": ariaLabel
|
|
50477
50568
|
});
|
|
50478
50569
|
});
|
|
50479
50570
|
|
|
50480
|
-
var _excluded$
|
|
50571
|
+
var _excluded$L = ["width", "height", "color"];
|
|
50481
50572
|
var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
50482
50573
|
var _ref$width = _ref.width,
|
|
50483
50574
|
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
@@ -50485,7 +50576,7 @@ var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
|
50485
50576
|
height = _ref$height === void 0 ? "19" : _ref$height,
|
|
50486
50577
|
_ref$color = _ref.color,
|
|
50487
50578
|
color = _ref$color === void 0 ? "#292A33" : _ref$color,
|
|
50488
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
50579
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
50489
50580
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
50490
50581
|
width: width,
|
|
50491
50582
|
height: height,
|
|
@@ -50539,7 +50630,10 @@ var FilterButton$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50539
50630
|
Icon = _ref.icon,
|
|
50540
50631
|
truncateBtnTextWidth = _ref.truncateBtnTextWidth,
|
|
50541
50632
|
filterLabel = _ref.filterLabel,
|
|
50542
|
-
selectedOptions = _ref.selectedOptions
|
|
50633
|
+
selectedOptions = _ref.selectedOptions,
|
|
50634
|
+
extraStyles = _ref.extraStyles;
|
|
50635
|
+
var btnTextFilterDescription = selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? "".concat(filterLabel ? "".concat(filterLabel, ": ") : "").concat(selectedOptions[0].name) : "".concat(filterLabel ? filterLabel : "");
|
|
50636
|
+
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") : "";
|
|
50543
50637
|
return /*#__PURE__*/React.createElement(StyledFilterButton, {
|
|
50544
50638
|
ref: ref,
|
|
50545
50639
|
variant: "tertiary",
|
|
@@ -50549,6 +50643,8 @@ var FilterButton$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50549
50643
|
"aria-controls": filterDropdownID,
|
|
50550
50644
|
backgroundColor: backgroundColor,
|
|
50551
50645
|
dataQa: "".concat(name, "-filter-button"),
|
|
50646
|
+
extraStyles: extraStyles,
|
|
50647
|
+
"aria-label": "".concat(filterLabel, " Filter: ").concat(btnTextFilterDescription, " ").concat(btnTextItemsDescription),
|
|
50552
50648
|
contentOverride: true
|
|
50553
50649
|
}, btnContentOverride ? btnContentOverride : /*#__PURE__*/React.createElement(Center, {
|
|
50554
50650
|
as: "span",
|
|
@@ -50571,10 +50667,10 @@ var FilterButton$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50571
50667
|
variant: "pS",
|
|
50572
50668
|
color: contentColor,
|
|
50573
50669
|
extraStyles: "\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n ".concat(truncateBtnTextWidth && "max-width:" + truncateBtnTextWidth, "\n ")
|
|
50574
|
-
},
|
|
50670
|
+
}, btnTextFilterDescription), /*#__PURE__*/React.createElement(Text$1, {
|
|
50575
50671
|
color: contentColor,
|
|
50576
50672
|
variant: "pS"
|
|
50577
|
-
},
|
|
50673
|
+
}, btnTextItemsDescription)), /*#__PURE__*/React.createElement(DropdownIconV2, {
|
|
50578
50674
|
color: contentColor
|
|
50579
50675
|
})));
|
|
50580
50676
|
});
|
|
@@ -50582,7 +50678,9 @@ var FilterButton$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50582
50678
|
var FilterDropdown = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
50583
50679
|
var id = _ref.id,
|
|
50584
50680
|
ariaOwns = _ref.ariaOwns,
|
|
50681
|
+
ariaControls = _ref.ariaControls,
|
|
50585
50682
|
opened = _ref.opened,
|
|
50683
|
+
extraStyles = _ref.extraStyles,
|
|
50586
50684
|
children = _ref.children;
|
|
50587
50685
|
return /*#__PURE__*/React.createElement(React.Fragment, null, opened && /*#__PURE__*/React.createElement(FilterDropdownContainer, {
|
|
50588
50686
|
ref: ref,
|
|
@@ -50590,7 +50688,9 @@ var FilterDropdown = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50590
50688
|
role: "combobox",
|
|
50591
50689
|
"aria-expanded": opened,
|
|
50592
50690
|
"aria-haspopup": "listbox",
|
|
50593
|
-
"aria-owns": ariaOwns
|
|
50691
|
+
"aria-owns": ariaOwns,
|
|
50692
|
+
"aria-controls": ariaControls,
|
|
50693
|
+
extraStyles: extraStyles
|
|
50594
50694
|
}, children));
|
|
50595
50695
|
});
|
|
50596
50696
|
|
|
@@ -50611,10 +50711,54 @@ var SearchBox = function SearchBox(_ref) {
|
|
|
50611
50711
|
fieldActions: actions.fields.searchTerm,
|
|
50612
50712
|
placeholder: placeholder,
|
|
50613
50713
|
disabled: disabled,
|
|
50614
|
-
extraStyles: "\n
|
|
50714
|
+
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 ")
|
|
50615
50715
|
}));
|
|
50616
50716
|
};
|
|
50617
50717
|
|
|
50718
|
+
var _excluded$M = ["width", "height", "color"];
|
|
50719
|
+
var CheckboxCheckmarkIcon = function CheckboxCheckmarkIcon(_ref) {
|
|
50720
|
+
var _ref$width = _ref.width,
|
|
50721
|
+
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
50722
|
+
_ref$height = _ref.height,
|
|
50723
|
+
height = _ref$height === void 0 ? "18" : _ref$height,
|
|
50724
|
+
_ref$color = _ref.color,
|
|
50725
|
+
color = _ref$color === void 0 ? "#FEFEFE" : _ref$color,
|
|
50726
|
+
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
50727
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
50728
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
50729
|
+
width: width,
|
|
50730
|
+
height: height,
|
|
50731
|
+
viewBox: "0 0 ".concat(width, " ").concat(height),
|
|
50732
|
+
fill: "none"
|
|
50733
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
50734
|
+
fillRule: "evenodd",
|
|
50735
|
+
clipRule: "evenodd",
|
|
50736
|
+
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",
|
|
50737
|
+
fill: "#FEFEFE"
|
|
50738
|
+
}), /*#__PURE__*/React.createElement("mask", {
|
|
50739
|
+
id: "mask0_3361_1486",
|
|
50740
|
+
style: {
|
|
50741
|
+
maskType: "luminance"
|
|
50742
|
+
},
|
|
50743
|
+
maskUnits: "userSpaceOnUse",
|
|
50744
|
+
x: "4",
|
|
50745
|
+
y: "5",
|
|
50746
|
+
width: "11",
|
|
50747
|
+
height: "9"
|
|
50748
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
50749
|
+
fillRule: "evenodd",
|
|
50750
|
+
clipRule: "evenodd",
|
|
50751
|
+
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",
|
|
50752
|
+
fill: "white"
|
|
50753
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
50754
|
+
mask: "url(#mask0_3361_1486)"
|
|
50755
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
50756
|
+
width: width,
|
|
50757
|
+
height: height,
|
|
50758
|
+
fill: color
|
|
50759
|
+
})));
|
|
50760
|
+
};
|
|
50761
|
+
|
|
50618
50762
|
var FilterableListItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
50619
50763
|
var index = _ref.index,
|
|
50620
50764
|
option = _ref.option,
|
|
@@ -50623,28 +50767,31 @@ var FilterableListItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50623
50767
|
disabled = _ref.disabled,
|
|
50624
50768
|
tabIndex = _ref.tabIndex,
|
|
50625
50769
|
name = _ref.name,
|
|
50770
|
+
showDivider = _ref.showDivider,
|
|
50771
|
+
extraStyles = _ref.extraStyles,
|
|
50626
50772
|
themeValues = _ref.themeValues;
|
|
50627
|
-
|
|
50628
|
-
|
|
50773
|
+
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 }");
|
|
50774
|
+
return /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
50629
50775
|
key: index,
|
|
50630
|
-
extraStyles: "\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryColor, ";\n }\n ")
|
|
50631
|
-
}, /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
50632
50776
|
ref: ref,
|
|
50633
50777
|
title: option.name,
|
|
50634
50778
|
name: option.name,
|
|
50779
|
+
role: "option",
|
|
50780
|
+
"aria-selected": checked,
|
|
50781
|
+
tabIndex: tabIndex,
|
|
50782
|
+
dataQa: "".concat(name, "-option-").concat(index),
|
|
50635
50783
|
checked: checked,
|
|
50636
50784
|
onChange: function onChange() {
|
|
50637
50785
|
return selectOption(option);
|
|
50638
50786
|
},
|
|
50639
50787
|
textExtraStyles: "font-size: 0.875rem; margin: 0;",
|
|
50640
50788
|
disabled: disabled,
|
|
50641
|
-
extraStyles: "\n
|
|
50642
|
-
checkboxMargin: "0
|
|
50643
|
-
|
|
50644
|
-
|
|
50645
|
-
|
|
50646
|
-
|
|
50647
|
-
}));
|
|
50789
|
+
extraStyles: "\n padding: 0.375rem 0.625rem; \n margin: 0;\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryColor, ";\n outline-offset: -3px;\n }\n ").concat(showDivider && dividerStyles, "\n ").concat(extraStyles, "\n "),
|
|
50790
|
+
checkboxMargin: showDivider ? "0 0 1rem" : "0",
|
|
50791
|
+
hasIconOverride: true,
|
|
50792
|
+
icon: CheckboxCheckmarkIcon,
|
|
50793
|
+
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 ")
|
|
50794
|
+
});
|
|
50648
50795
|
});
|
|
50649
50796
|
|
|
50650
50797
|
var filterItemsList = function filterItemsList(list, searchTerm) {
|
|
@@ -50809,14 +50956,12 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
50809
50956
|
handleKeyDown = _useKeyboardNavigatio.handleKeyDown;
|
|
50810
50957
|
return /*#__PURE__*/React.createElement(Box, {
|
|
50811
50958
|
id: id,
|
|
50812
|
-
role: "listbox",
|
|
50813
50959
|
padding: "0",
|
|
50814
|
-
|
|
50815
|
-
|
|
50816
|
-
|
|
50817
|
-
padding:
|
|
50818
|
-
|
|
50819
|
-
}, sortedAppliedOptions.map(function (option, index) {
|
|
50960
|
+
role: "listbox",
|
|
50961
|
+
"aria-label": "Filter options container",
|
|
50962
|
+
onKeyDown: handleKeyDown,
|
|
50963
|
+
extraStyles: "\n overflow-y: auto;\n max-height: 250px;\n display: flex;\n flex-flow: column;\n padding-bottom: 0.5rem;\n "
|
|
50964
|
+
}, (sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, sortedAppliedOptions.map(function (option, index) {
|
|
50820
50965
|
var checked = isChecked(option, selectedOptions);
|
|
50821
50966
|
var tabIndex = index === focusedIndex || index === 0 && focusedIndex === -1 ? "0" : "-1";
|
|
50822
50967
|
return /*#__PURE__*/React.createElement(FilterableListItem, {
|
|
@@ -50830,9 +50975,10 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
50830
50975
|
selectOption: handleSelectOption,
|
|
50831
50976
|
tabIndex: tabIndex,
|
|
50832
50977
|
name: name,
|
|
50833
|
-
themeValues: themeValues
|
|
50978
|
+
themeValues: themeValues,
|
|
50979
|
+
showDivider: sortedOptions.length > 0 && index === sortedAppliedOptions.length - 1
|
|
50834
50980
|
});
|
|
50835
|
-
})), sortedOptions.map(function (option, index) {
|
|
50981
|
+
})), /*#__PURE__*/React.createElement(React.Fragment, null, sortedOptions.map(function (option, index) {
|
|
50836
50982
|
var checked = isChecked(option, selectedOptions);
|
|
50837
50983
|
var isDisabled = isMaxSelectionReached(maxSelections, selectedOptions) && !checked;
|
|
50838
50984
|
var indexOffset = sortedAppliedOptions !== null && sortedAppliedOptions !== void 0 && sortedAppliedOptions.length ? sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length : 0;
|
|
@@ -50852,7 +50998,7 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
50852
50998
|
name: name,
|
|
50853
50999
|
themeValues: themeValues
|
|
50854
51000
|
});
|
|
50855
|
-
}));
|
|
51001
|
+
})));
|
|
50856
51002
|
};
|
|
50857
51003
|
var FilterableList$1 = /*#__PURE__*/React.memo(FilterableList);
|
|
50858
51004
|
|
|
@@ -50860,7 +51006,9 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50860
51006
|
var actions = _ref.actions,
|
|
50861
51007
|
autocompleteValue = _ref.autocompleteValue,
|
|
50862
51008
|
btnContentOverride = _ref.btnContentOverride,
|
|
51009
|
+
btnExtraStyles = _ref.btnExtraStyles,
|
|
50863
51010
|
disabled = _ref.disabled,
|
|
51011
|
+
dropdownExtraStyles = _ref.dropdownExtraStyles,
|
|
50864
51012
|
extraStyles = _ref.extraStyles,
|
|
50865
51013
|
fields = _ref.fields,
|
|
50866
51014
|
filterLabel = _ref.filterLabel,
|
|
@@ -50879,8 +51027,6 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50879
51027
|
placeholder = _ref$placeholder === void 0 ? "Search" : _ref$placeholder,
|
|
50880
51028
|
_ref$searchable = _ref.searchable,
|
|
50881
51029
|
searchable = _ref$searchable === void 0 ? true : _ref$searchable,
|
|
50882
|
-
selectedOptions = _ref.selectedOptions,
|
|
50883
|
-
setSelectedOptions = _ref.setSelectedOptions,
|
|
50884
51030
|
themeValues = _ref.themeValues,
|
|
50885
51031
|
_ref$truncateBtnTextW = _ref.truncateBtnTextWidth,
|
|
50886
51032
|
truncateBtnTextWidth = _ref$truncateBtnTextW === void 0 ? "15rem" : _ref$truncateBtnTextW;
|
|
@@ -50890,15 +51036,29 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50890
51036
|
setOpened = _useState2[1];
|
|
50891
51037
|
var _useState3 = useState([]),
|
|
50892
51038
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
50893
|
-
|
|
50894
|
-
|
|
50895
|
-
var
|
|
51039
|
+
selectedOptions = _useState4[0],
|
|
51040
|
+
setSelectedOptions = _useState4[1];
|
|
51041
|
+
var _useState5 = useState([]),
|
|
51042
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
51043
|
+
appliedOptions = _useState6[0],
|
|
51044
|
+
setAppliedOptions = _useState6[1];
|
|
51045
|
+
var openedRef = useRef(opened);
|
|
51046
|
+
var handleOnClose = function handleOnClose() {
|
|
51047
|
+
if (openedRef.current) {
|
|
51048
|
+
setOpened(false);
|
|
51049
|
+
actions.fields.searchTerm.set("");
|
|
51050
|
+
}
|
|
51051
|
+
};
|
|
51052
|
+
var containerRef = useOutsideClickHook(function () {
|
|
51053
|
+
return handleOnClose();
|
|
51054
|
+
});
|
|
50896
51055
|
var dropdownRef = useRef(null);
|
|
50897
51056
|
var filterButtonRef = useRef(null);
|
|
50898
51057
|
var applyFilterButtonRef = useRef(null);
|
|
50899
51058
|
var filterDropdownID = "".concat(name, "-filter-dropdown");
|
|
50900
|
-
var
|
|
51059
|
+
var listGroupID = "".concat(name, "-list-group");
|
|
50901
51060
|
useEffect$1(function () {
|
|
51061
|
+
openedRef.current = opened;
|
|
50902
51062
|
if (!opened) {
|
|
50903
51063
|
onApply(selectedOptions);
|
|
50904
51064
|
setAppliedOptions(selectedOptions);
|
|
@@ -50915,22 +51075,11 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50915
51075
|
or tabbing backward past the filter button.
|
|
50916
51076
|
*/
|
|
50917
51077
|
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)) {
|
|
50918
|
-
|
|
50919
|
-
actions.fields.searchTerm.set("");
|
|
50920
|
-
onApply(selectedOptions);
|
|
50921
|
-
}
|
|
50922
|
-
};
|
|
50923
|
-
var handleClickOutside = function handleClickOutside(event) {
|
|
50924
|
-
if (containerRef.current && !containerRef.current.contains(event.target) && dropdownRef.current && !dropdownRef.current.contains(event.target)) {
|
|
50925
|
-
setOpened(false);
|
|
50926
|
-
actions.fields.searchTerm.set("");
|
|
50927
|
-
onApply(selectedOptions);
|
|
51078
|
+
handleOnClose();
|
|
50928
51079
|
}
|
|
50929
51080
|
};
|
|
50930
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
50931
51081
|
document.addEventListener("keydown", handleKeyDown);
|
|
50932
51082
|
return function () {
|
|
50933
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
50934
51083
|
document.removeEventListener("keydown", handleKeyDown);
|
|
50935
51084
|
};
|
|
50936
51085
|
}, []);
|
|
@@ -50946,19 +51095,22 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50946
51095
|
},
|
|
50947
51096
|
opened: opened,
|
|
50948
51097
|
backgroundColor: opened ? themeValues.primaryColor : selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? themeValues.secondaryColor : WHITE,
|
|
50949
|
-
contentColor: !opened && selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? WHITE :
|
|
51098
|
+
contentColor: !opened && selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? WHITE : CHARADE_GREY,
|
|
50950
51099
|
name: name,
|
|
50951
51100
|
filterDropdownID: filterDropdownID,
|
|
50952
51101
|
hasIcon: hasIcon,
|
|
50953
51102
|
icon: Icon,
|
|
50954
51103
|
truncateBtnTextWidth: truncateBtnTextWidth,
|
|
50955
51104
|
filterLabel: filterLabel,
|
|
50956
|
-
selectedOptions: selectedOptions
|
|
51105
|
+
selectedOptions: selectedOptions,
|
|
51106
|
+
extraStyles: btnExtraStyles
|
|
50957
51107
|
}), /*#__PURE__*/React.createElement(FilterDropdown, {
|
|
50958
51108
|
id: filterDropdownID,
|
|
50959
51109
|
ref: dropdownRef,
|
|
50960
|
-
ariaOwns:
|
|
50961
|
-
|
|
51110
|
+
ariaOwns: listGroupID,
|
|
51111
|
+
ariaControls: listGroupID,
|
|
51112
|
+
opened: opened,
|
|
51113
|
+
extraStyles: dropdownExtraStyles
|
|
50962
51114
|
}, /*#__PURE__*/React.createElement(SearchBox, {
|
|
50963
51115
|
showSearchBox: searchable && (options === null || options === void 0 ? void 0 : options.length) > 8,
|
|
50964
51116
|
autocompleteValue: autocompleteValue,
|
|
@@ -50967,7 +51119,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50967
51119
|
placeholder: placeholder,
|
|
50968
51120
|
disabled: disabled
|
|
50969
51121
|
}), /*#__PURE__*/React.createElement(FilterableList$1, {
|
|
50970
|
-
id:
|
|
51122
|
+
id: listGroupID,
|
|
50971
51123
|
options: options,
|
|
50972
51124
|
appliedOptions: appliedOptions,
|
|
50973
51125
|
themeValues: themeValues,
|
|
@@ -50981,22 +51133,21 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50981
51133
|
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 ")
|
|
50982
51134
|
}, /*#__PURE__*/React.createElement(ActionLinkButton, {
|
|
50983
51135
|
action: function action() {
|
|
50984
|
-
setOpened(false);
|
|
50985
51136
|
setSelectedOptions([]);
|
|
50986
|
-
|
|
51137
|
+
handleOnClose();
|
|
50987
51138
|
onClear();
|
|
50988
51139
|
},
|
|
50989
51140
|
text: "Clear",
|
|
50990
|
-
dataQa: "".concat(name, "-clear-filters")
|
|
51141
|
+
dataQa: "".concat(name, "-clear-filters"),
|
|
51142
|
+
ariaLabel: "Clear all filters"
|
|
50991
51143
|
}), /*#__PURE__*/React.createElement(ActionLinkButton, {
|
|
50992
51144
|
ref: applyFilterButtonRef,
|
|
50993
51145
|
action: function action() {
|
|
50994
|
-
|
|
50995
|
-
actions.fields.searchTerm.set("");
|
|
50996
|
-
onApply(selectedOptions);
|
|
51146
|
+
return handleOnClose();
|
|
50997
51147
|
},
|
|
50998
51148
|
text: "Apply",
|
|
50999
|
-
dataQa: "".concat(name, "-apply-filters")
|
|
51149
|
+
dataQa: "".concat(name, "-apply-filters"),
|
|
51150
|
+
ariaLabel: "Apply all filters"
|
|
51000
51151
|
}))));
|
|
51001
51152
|
};
|
|
51002
51153
|
var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$_);
|
|
@@ -51294,5 +51445,5 @@ var index$6 = /*#__PURE__*/Object.freeze({
|
|
|
51294
51445
|
useToastNotification: useToastNotification
|
|
51295
51446
|
});
|
|
51296
51447
|
|
|
51297
|
-
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 };
|
|
51448
|
+
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 };
|
|
51298
51449
|
//# sourceMappingURL=index.esm.js.map
|