@thecb/components 10.12.1 → 10.12.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +252 -124
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +251 -125
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- 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
|
@@ -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 ? "20" : _ref$width,
|
|
18856
|
+
_ref$height = _ref.height,
|
|
18857
|
+
height = _ref$height === void 0 ? "21" : _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: "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",
|
|
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,
|
|
@@ -23151,7 +23197,7 @@ var errorStyles = {
|
|
|
23151
23197
|
"default": "border: 1px solid ".concat(RED, ";")
|
|
23152
23198
|
};
|
|
23153
23199
|
var focusedStyles = {
|
|
23154
|
-
"default": "
|
|
23200
|
+
"default": "\n outline: 3px solid ".concat(ROYAL_BLUE, "; \n outline-offset: 3px;\n ")
|
|
23155
23201
|
};
|
|
23156
23202
|
var disabledCheckedStyles = {
|
|
23157
23203
|
"default": "\n background: #6d717e;\n border: 1px solid #6d717e;\n"
|
|
@@ -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"
|
|
@@ -23197,7 +23243,7 @@ var CheckboxContainer = styled.span.withConfig({
|
|
|
23197
23243
|
var CheckboxLabelContainer = styled.label.withConfig({
|
|
23198
23244
|
displayName: "Checkbox__CheckboxLabelContainer",
|
|
23199
23245
|
componentId: "sc-36kqbv-1"
|
|
23200
|
-
})(["display:flex;align-items:center;column-gap:1rem;"]);
|
|
23246
|
+
})(["display:flex;align-items:center;column-gap:1rem;cursor:pointer;"]);
|
|
23201
23247
|
var CheckboxIcon = styled.svg.withConfig({
|
|
23202
23248
|
displayName: "Checkbox__CheckboxIcon",
|
|
23203
23249
|
componentId: "sc-36kqbv-2"
|
|
@@ -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],
|
|
@@ -23284,7 +23333,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref5, ref) {
|
|
|
23284
23333
|
},
|
|
23285
23334
|
hiddenStyles: hidden,
|
|
23286
23335
|
background: themeValues.backgroundColor,
|
|
23287
|
-
extraStyles: "outline:
|
|
23336
|
+
extraStyles: "\n :focus {\n outline: 0;\n }\n ".concat(extraStyles, "; \n margin: ").concat(checkboxMargin, ";\n ")
|
|
23288
23337
|
}, rest), /*#__PURE__*/React.createElement(CheckboxLabelContainer, {
|
|
23289
23338
|
"data-qa": dataQa
|
|
23290
23339
|
}, /*#__PURE__*/React.createElement(CheckboxContainer, {
|
|
@@ -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,
|
|
@@ -27239,7 +27288,7 @@ var fallbackValues$n = {
|
|
|
27239
27288
|
formFooterPanel: formFooterPanel
|
|
27240
27289
|
};
|
|
27241
27290
|
|
|
27242
|
-
var _excluded$
|
|
27291
|
+
var _excluded$x = ["showErrors", "themeValues"],
|
|
27243
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"];
|
|
27244
27293
|
var InputField = styled.input.withConfig({
|
|
27245
27294
|
displayName: "FormInput__InputField",
|
|
@@ -27274,7 +27323,7 @@ var InputField = styled.input.withConfig({
|
|
|
27274
27323
|
var FormattedInputField = styled(function (_ref8) {
|
|
27275
27324
|
var showErrors = _ref8.showErrors,
|
|
27276
27325
|
themeValues = _ref8.themeValues,
|
|
27277
|
-
props = _objectWithoutProperties(_ref8, _excluded$
|
|
27326
|
+
props = _objectWithoutProperties(_ref8, _excluded$x);
|
|
27278
27327
|
return /*#__PURE__*/React.createElement(FormattedInput, props);
|
|
27279
27328
|
}).withConfig({
|
|
27280
27329
|
displayName: "FormInput__FormattedInputField",
|
|
@@ -27479,7 +27528,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
27479
27528
|
};
|
|
27480
27529
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$n, "default");
|
|
27481
27530
|
|
|
27482
|
-
var _excluded$
|
|
27531
|
+
var _excluded$y = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
27483
27532
|
var FormInputRow = function FormInputRow(_ref) {
|
|
27484
27533
|
var _ref$breakpoint = _ref.breakpoint,
|
|
27485
27534
|
breakpoint = _ref$breakpoint === void 0 ? "30rem" : _ref$breakpoint,
|
|
@@ -27488,7 +27537,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
27488
27537
|
largeChild = _ref.largeChild,
|
|
27489
27538
|
largeChildSize = _ref.largeChildSize,
|
|
27490
27539
|
children = _ref.children,
|
|
27491
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27540
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
27492
27541
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
27493
27542
|
padding: "0"
|
|
27494
27543
|
}, rest), /*#__PURE__*/React.createElement(Switcher, {
|
|
@@ -27499,24 +27548,24 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
27499
27548
|
}, children));
|
|
27500
27549
|
};
|
|
27501
27550
|
|
|
27502
|
-
var _excluded$
|
|
27551
|
+
var _excluded$z = ["childGap", "bottomItem", "children"];
|
|
27503
27552
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
27504
27553
|
var _ref$childGap = _ref.childGap,
|
|
27505
27554
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
27506
27555
|
bottomItem = _ref.bottomItem,
|
|
27507
27556
|
children = _ref.children,
|
|
27508
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27557
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
27509
27558
|
return /*#__PURE__*/React.createElement(Stack, _extends({
|
|
27510
27559
|
childGap: childGap,
|
|
27511
27560
|
bottomItem: bottomItem
|
|
27512
27561
|
}, rest), children);
|
|
27513
27562
|
};
|
|
27514
27563
|
|
|
27515
|
-
var _excluded$
|
|
27564
|
+
var _excluded$A = ["themeValues", "children"];
|
|
27516
27565
|
var FormContainer = function FormContainer(_ref) {
|
|
27517
27566
|
var themeValues = _ref.themeValues,
|
|
27518
27567
|
children = _ref.children,
|
|
27519
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27568
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
27520
27569
|
var _useContext = useContext(ThemeContext),
|
|
27521
27570
|
isMobile = _useContext.isMobile;
|
|
27522
27571
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
@@ -27826,7 +27875,7 @@ var fallbackValues$r = {
|
|
|
27826
27875
|
fontSize: fontSize$8
|
|
27827
27876
|
};
|
|
27828
27877
|
|
|
27829
|
-
var _excluded$
|
|
27878
|
+
var _excluded$B = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
27830
27879
|
var Heading = function Heading(_ref) {
|
|
27831
27880
|
var themeValues = _ref.themeValues,
|
|
27832
27881
|
_ref$weight = _ref.weight,
|
|
@@ -27845,7 +27894,7 @@ var Heading = function Heading(_ref) {
|
|
|
27845
27894
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
27846
27895
|
dataQa = _ref.dataQa,
|
|
27847
27896
|
children = _ref.children,
|
|
27848
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27897
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
27849
27898
|
return /*#__PURE__*/React.createElement(HeadingText, _extends({
|
|
27850
27899
|
variant: variant,
|
|
27851
27900
|
as: as,
|
|
@@ -28046,11 +28095,11 @@ var LabeledAmountV2 = function LabeledAmountV2(_ref) {
|
|
|
28046
28095
|
}, /*#__PURE__*/React.createElement("span", null, label), /*#__PURE__*/React.createElement("span", null, amount));
|
|
28047
28096
|
};
|
|
28048
28097
|
|
|
28049
|
-
var _excluded$
|
|
28098
|
+
var _excluded$C = ["version"];
|
|
28050
28099
|
var LabeledAmount = function LabeledAmount(_ref) {
|
|
28051
28100
|
var _ref$version = _ref.version,
|
|
28052
28101
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
28053
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28102
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
28054
28103
|
var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
|
|
28055
28104
|
return /*#__PURE__*/React.createElement(LabeledAmountComponent, rest);
|
|
28056
28105
|
};
|
|
@@ -28195,7 +28244,7 @@ var Loading = function Loading() {
|
|
|
28195
28244
|
})))));
|
|
28196
28245
|
};
|
|
28197
28246
|
|
|
28198
|
-
var _excluded$
|
|
28247
|
+
var _excluded$D = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
28199
28248
|
var NavFooter = function NavFooter(_ref) {
|
|
28200
28249
|
var leftContent = _ref.leftContent,
|
|
28201
28250
|
rightContent = _ref.rightContent,
|
|
@@ -28210,7 +28259,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
28210
28259
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
28211
28260
|
isMobile = _ref.isMobile,
|
|
28212
28261
|
footerWidth = _ref.footerWidth,
|
|
28213
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28262
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
28214
28263
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
28215
28264
|
padding: footerPadding,
|
|
28216
28265
|
background: backgroundColor,
|
|
@@ -28241,7 +28290,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
28241
28290
|
}, rightContent)))))));
|
|
28242
28291
|
};
|
|
28243
28292
|
|
|
28244
|
-
var _excluded$
|
|
28293
|
+
var _excluded$E = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
28245
28294
|
var NavHeader = function NavHeader(_ref) {
|
|
28246
28295
|
var leftContent = _ref.leftContent,
|
|
28247
28296
|
rightContent = _ref.rightContent,
|
|
@@ -28250,7 +28299,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
28250
28299
|
isMobile = _ref.isMobile,
|
|
28251
28300
|
backgroundColor = _ref.backgroundColor,
|
|
28252
28301
|
headerWidth = _ref.headerWidth,
|
|
28253
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28302
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
28254
28303
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
28255
28304
|
padding: "0 16px 4px",
|
|
28256
28305
|
background: backgroundColor,
|
|
@@ -46666,11 +46715,11 @@ var Modal$2 = function Modal(_ref) {
|
|
|
46666
46715
|
};
|
|
46667
46716
|
var ModalControlV2 = withWindowSize(Modal$2);
|
|
46668
46717
|
|
|
46669
|
-
var _excluded$
|
|
46718
|
+
var _excluded$F = ["version"];
|
|
46670
46719
|
var Modal$3 = function Modal(_ref) {
|
|
46671
46720
|
var _ref$version = _ref.version,
|
|
46672
46721
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
46673
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46722
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
46674
46723
|
var ModalControl = version === "v1" ? Modal$1 : ModalControlV2;
|
|
46675
46724
|
return /*#__PURE__*/React.createElement(ModalControl, rest);
|
|
46676
46725
|
};
|
|
@@ -47972,7 +48021,7 @@ var fallbackValues$P = {
|
|
|
47972
48021
|
labeledAmountTotal: labeledAmountTotal
|
|
47973
48022
|
};
|
|
47974
48023
|
|
|
47975
|
-
var _excluded$
|
|
48024
|
+
var _excluded$G = ["amount"],
|
|
47976
48025
|
_excluded2$1 = ["amount"];
|
|
47977
48026
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
47978
48027
|
var lineItemElems = _ref.lineItemElems,
|
|
@@ -48215,7 +48264,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
48215
48264
|
return fee.amount > 0;
|
|
48216
48265
|
}).map(function (_ref5) {
|
|
48217
48266
|
var amount = _ref5.amount,
|
|
48218
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
48267
|
+
rest = _objectWithoutProperties(_ref5, _excluded$G);
|
|
48219
48268
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
48220
48269
|
amount: displayCurrency(amount)
|
|
48221
48270
|
});
|
|
@@ -48652,11 +48701,11 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48652
48701
|
}, errorMessage))))));
|
|
48653
48702
|
};
|
|
48654
48703
|
|
|
48655
|
-
var _excluded$
|
|
48704
|
+
var _excluded$H = ["version"];
|
|
48656
48705
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48657
48706
|
var _ref$version = _ref.version,
|
|
48658
48707
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48659
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48708
|
+
rest = _objectWithoutProperties(_ref, _excluded$H);
|
|
48660
48709
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48661
48710
|
return /*#__PURE__*/React.createElement(TermsAndConditionsControl, rest);
|
|
48662
48711
|
};
|
|
@@ -49464,7 +49513,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49464
49513
|
}, section.content))));
|
|
49465
49514
|
};
|
|
49466
49515
|
|
|
49467
|
-
var _excluded$
|
|
49516
|
+
var _excluded$I = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections", "borderOverride"];
|
|
49468
49517
|
|
|
49469
49518
|
/**
|
|
49470
49519
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
@@ -49513,7 +49562,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49513
49562
|
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
49514
49563
|
groupedSections = _ref.groupedSections,
|
|
49515
49564
|
borderOverride = _ref.borderOverride,
|
|
49516
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49565
|
+
rest = _objectWithoutProperties(_ref, _excluded$I);
|
|
49517
49566
|
var _useState = useState(null),
|
|
49518
49567
|
_useState2 = _slicedToArray(_useState, 2),
|
|
49519
49568
|
focused = _useState2[0],
|
|
@@ -50060,7 +50109,7 @@ var Timeout = function Timeout(_ref) {
|
|
|
50060
50109
|
};
|
|
50061
50110
|
var Timeout$1 = withWindowSize(Timeout);
|
|
50062
50111
|
|
|
50063
|
-
var _excluded$
|
|
50112
|
+
var _excluded$J = ["variant", "message", "toastOpen", "closeToastNotification", "extraStyles", "minWidth", "maxWidth", "height", "childGap", "backgroundColor", "role", "ariaLive", "screenReaderMessage", "showScreenReaderMessage"];
|
|
50064
50113
|
var VARIANTS = {
|
|
50065
50114
|
SUCCESS: "success",
|
|
50066
50115
|
ERROR: "error"
|
|
@@ -50089,7 +50138,7 @@ var ToastNotification = function ToastNotification(_ref) {
|
|
|
50089
50138
|
screenReaderMessage = _ref.screenReaderMessage,
|
|
50090
50139
|
_ref$showScreenReader = _ref.showScreenReaderMessage,
|
|
50091
50140
|
showScreenReaderMessage = _ref$showScreenReader === void 0 ? true : _ref$showScreenReader,
|
|
50092
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
50141
|
+
rest = _objectWithoutProperties(_ref, _excluded$J);
|
|
50093
50142
|
var screenReaderMessageRef = useRef();
|
|
50094
50143
|
var LIVEREGION_TRANSITION_DELAY = 1000;
|
|
50095
50144
|
useEffect$1(function () {
|
|
@@ -50272,7 +50321,7 @@ var PopupMenuItemContainer = styled(ButtonWithAction).withConfig({
|
|
|
50272
50321
|
return "\n background-color: ".concat(isDeleteAction ? theme.menuItemHoverBackgroundColorDelete : theme.menuItemHoverBackgroundColor, ";\n ");
|
|
50273
50322
|
});
|
|
50274
50323
|
|
|
50275
|
-
var _excluded$
|
|
50324
|
+
var _excluded$K = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
|
|
50276
50325
|
var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
50277
50326
|
var id = _ref.id,
|
|
50278
50327
|
closeMenuCallback = _ref.closeMenuCallback,
|
|
@@ -50288,7 +50337,7 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
|
50288
50337
|
hoverStyles = _ref.hoverStyles,
|
|
50289
50338
|
activeStyles = _ref.activeStyles,
|
|
50290
50339
|
extraStyles = _ref.extraStyles,
|
|
50291
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
50340
|
+
rest = _objectWithoutProperties(_ref, _excluded$K);
|
|
50292
50341
|
return /*#__PURE__*/React.createElement(PopupMenuItemContainer, _extends({
|
|
50293
50342
|
id: id,
|
|
50294
50343
|
role: "menuItem",
|
|
@@ -50461,20 +50510,21 @@ var PopupMenu = function PopupMenu(_ref) {
|
|
|
50461
50510
|
};
|
|
50462
50511
|
var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$Z);
|
|
50463
50512
|
|
|
50464
|
-
var primaryColor$1 =
|
|
50513
|
+
var primaryColor$1 = WHITE;
|
|
50514
|
+
var primaryHoverColor = INFO_BLUE;
|
|
50465
50515
|
var secondaryColor = MATISSE_BLUE;
|
|
50516
|
+
var secondaryHoverColor = "#115D7E";
|
|
50466
50517
|
var fallbackValues$_ = {
|
|
50467
50518
|
primaryColor: primaryColor$1,
|
|
50468
|
-
|
|
50519
|
+
primaryHoverColor: primaryHoverColor,
|
|
50520
|
+
secondaryColor: secondaryColor,
|
|
50521
|
+
secondaryHoverColor: secondaryHoverColor
|
|
50469
50522
|
};
|
|
50470
50523
|
|
|
50471
50524
|
var StyledFilterContainer = styled(Box).withConfig({
|
|
50472
50525
|
displayName: "MultipleSelectFilterstyled__StyledFilterContainer",
|
|
50473
50526
|
componentId: "sc-126xgc2-0"
|
|
50474
|
-
})(["position:relative;box-sizing:border-box;padding:0;"
|
|
50475
|
-
var extraStyles = _ref.extraStyles;
|
|
50476
|
-
return extraStyles;
|
|
50477
|
-
});
|
|
50527
|
+
})(["position:relative;overflow:visible;box-sizing:border-box;padding:0;"]);
|
|
50478
50528
|
var FilterContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
50479
50529
|
return /*#__PURE__*/React.createElement(StyledFilterContainer, _extends({
|
|
50480
50530
|
ref: ref
|
|
@@ -50483,7 +50533,7 @@ var FilterContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
50483
50533
|
var StyledFilterDropdown = styled(Box).withConfig({
|
|
50484
50534
|
displayName: "MultipleSelectFilterstyled__StyledFilterDropdown",
|
|
50485
50535
|
componentId: "sc-126xgc2-1"
|
|
50486
|
-
})(["position:absolute;top:calc(100% + 0.5rem);left:0;width:
|
|
50536
|
+
})(["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;"]);
|
|
50487
50537
|
var FilterDropdownContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
50488
50538
|
return /*#__PURE__*/React.createElement(StyledFilterDropdown, _extends({
|
|
50489
50539
|
ref: ref
|
|
@@ -50492,12 +50542,16 @@ var FilterDropdownContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
50492
50542
|
var FilterButton = styled(ButtonWithAction).withConfig({
|
|
50493
50543
|
displayName: "MultipleSelectFilterstyled__FilterButton",
|
|
50494
50544
|
componentId: "sc-126xgc2-2"
|
|
50495
|
-
})(["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 (
|
|
50496
|
-
var
|
|
50497
|
-
|
|
50498
|
-
|
|
50499
|
-
|
|
50500
|
-
|
|
50545
|
+
})(["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) {
|
|
50546
|
+
var opened = _ref.opened,
|
|
50547
|
+
textColor = _ref.textColor,
|
|
50548
|
+
textHoverColor = _ref.textHoverColor;
|
|
50549
|
+
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 ");
|
|
50550
|
+
}, function (_ref2) {
|
|
50551
|
+
var opened = _ref2.opened,
|
|
50552
|
+
backgroundColor = _ref2.backgroundColor,
|
|
50553
|
+
backgroundHoverColor = _ref2.backgroundHoverColor;
|
|
50554
|
+
return "\n background-color: ".concat(opened ? backgroundHoverColor : backgroundColor, "; \n :hover,\n :active,\n :focus {\n background-color: ").concat(backgroundHoverColor, ";\n }\n ");
|
|
50501
50555
|
});
|
|
50502
50556
|
var StyledFilterButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
50503
50557
|
return /*#__PURE__*/React.createElement(FilterButton, _extends({
|
|
@@ -50508,7 +50562,8 @@ var StyledFilterButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
50508
50562
|
var ActionLinkButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
50509
50563
|
var action = _ref.action,
|
|
50510
50564
|
text = _ref.text,
|
|
50511
|
-
dataQa = _ref.dataQa
|
|
50565
|
+
dataQa = _ref.dataQa,
|
|
50566
|
+
ariaLabel = _ref.ariaLabel;
|
|
50512
50567
|
return /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
50513
50568
|
ref: ref,
|
|
50514
50569
|
action: action,
|
|
@@ -50516,11 +50571,12 @@ var ActionLinkButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50516
50571
|
extraStyles: "\n padding: 0.2rem; \n margin: 0.5rem; \n min-height: auto; \n min-width: auto;\n ",
|
|
50517
50572
|
textExtraStyles: "font-weight: ".concat(FONT_WEIGHT_REGULAR, ";"),
|
|
50518
50573
|
text: text,
|
|
50519
|
-
dataQa: dataQa
|
|
50574
|
+
dataQa: dataQa,
|
|
50575
|
+
"aria-label": ariaLabel
|
|
50520
50576
|
});
|
|
50521
50577
|
});
|
|
50522
50578
|
|
|
50523
|
-
var _excluded$
|
|
50579
|
+
var _excluded$L = ["width", "height", "color"];
|
|
50524
50580
|
var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
50525
50581
|
var _ref$width = _ref.width,
|
|
50526
50582
|
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
@@ -50528,7 +50584,7 @@ var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
|
50528
50584
|
height = _ref$height === void 0 ? "19" : _ref$height,
|
|
50529
50585
|
_ref$color = _ref.color,
|
|
50530
50586
|
color = _ref$color === void 0 ? "#292A33" : _ref$color,
|
|
50531
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
50587
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
50532
50588
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
50533
50589
|
width: width,
|
|
50534
50590
|
height: height,
|
|
@@ -50574,7 +50630,9 @@ var FilterButton$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50574
50630
|
action = _ref$action === void 0 ? noop$1 : _ref$action,
|
|
50575
50631
|
opened = _ref.opened,
|
|
50576
50632
|
backgroundColor = _ref.backgroundColor,
|
|
50577
|
-
|
|
50633
|
+
backgroundHoverColor = _ref.backgroundHoverColor,
|
|
50634
|
+
textColor = _ref.textColor,
|
|
50635
|
+
textHoverColor = _ref.textHoverColor,
|
|
50578
50636
|
name = _ref.name,
|
|
50579
50637
|
filterDropdownID = _ref.filterDropdownID,
|
|
50580
50638
|
_ref$hasIcon = _ref.hasIcon,
|
|
@@ -50582,7 +50640,10 @@ var FilterButton$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50582
50640
|
Icon = _ref.icon,
|
|
50583
50641
|
truncateBtnTextWidth = _ref.truncateBtnTextWidth,
|
|
50584
50642
|
filterLabel = _ref.filterLabel,
|
|
50585
|
-
selectedOptions = _ref.selectedOptions
|
|
50643
|
+
selectedOptions = _ref.selectedOptions,
|
|
50644
|
+
extraStyles = _ref.extraStyles;
|
|
50645
|
+
var btnTextFilterDescription = selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? "".concat(filterLabel ? "".concat(filterLabel, ": ") : "").concat(selectedOptions[0].name) : "".concat(filterLabel ? filterLabel : "");
|
|
50646
|
+
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") : "";
|
|
50586
50647
|
return /*#__PURE__*/React.createElement(StyledFilterButton, {
|
|
50587
50648
|
ref: ref,
|
|
50588
50649
|
variant: "tertiary",
|
|
@@ -50591,7 +50652,13 @@ var FilterButton$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50591
50652
|
"aria-expanded": opened,
|
|
50592
50653
|
"aria-controls": filterDropdownID,
|
|
50593
50654
|
backgroundColor: backgroundColor,
|
|
50655
|
+
backgroundHoverColor: backgroundHoverColor,
|
|
50656
|
+
textColor: textColor,
|
|
50657
|
+
textHoverColor: textHoverColor,
|
|
50658
|
+
opened: opened,
|
|
50594
50659
|
dataQa: "".concat(name, "-filter-button"),
|
|
50660
|
+
extraStyles: extraStyles,
|
|
50661
|
+
"aria-label": "".concat(filterLabel, " Filter: ").concat(btnTextFilterDescription, " ").concat(btnTextItemsDescription),
|
|
50595
50662
|
contentOverride: true
|
|
50596
50663
|
}, btnContentOverride ? btnContentOverride : /*#__PURE__*/React.createElement(Center, {
|
|
50597
50664
|
as: "span",
|
|
@@ -50601,7 +50668,7 @@ var FilterButton$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50601
50668
|
},
|
|
50602
50669
|
intrinsic: true
|
|
50603
50670
|
}, hasIcon && /*#__PURE__*/React.createElement(Icon, {
|
|
50604
|
-
color:
|
|
50671
|
+
color: opened ? textHoverColor : textColor
|
|
50605
50672
|
}), /*#__PURE__*/React.createElement(Center, {
|
|
50606
50673
|
as: "span",
|
|
50607
50674
|
style: {
|
|
@@ -50612,20 +50679,22 @@ var FilterButton$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50612
50679
|
intrinsic: true
|
|
50613
50680
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
50614
50681
|
variant: "pS",
|
|
50615
|
-
color:
|
|
50682
|
+
color: opened ? textHoverColor : textColor,
|
|
50616
50683
|
extraStyles: "\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n ".concat(truncateBtnTextWidth && "max-width:" + truncateBtnTextWidth, "\n ")
|
|
50617
|
-
},
|
|
50618
|
-
color:
|
|
50684
|
+
}, btnTextFilterDescription), /*#__PURE__*/React.createElement(Text$1, {
|
|
50685
|
+
color: opened ? textHoverColor : textColor,
|
|
50619
50686
|
variant: "pS"
|
|
50620
|
-
},
|
|
50621
|
-
color:
|
|
50687
|
+
}, btnTextItemsDescription)), /*#__PURE__*/React.createElement(DropdownIconV2, {
|
|
50688
|
+
color: opened ? textHoverColor : textColor
|
|
50622
50689
|
})));
|
|
50623
50690
|
});
|
|
50624
50691
|
|
|
50625
50692
|
var FilterDropdown = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
50626
50693
|
var id = _ref.id,
|
|
50627
50694
|
ariaOwns = _ref.ariaOwns,
|
|
50695
|
+
ariaControls = _ref.ariaControls,
|
|
50628
50696
|
opened = _ref.opened,
|
|
50697
|
+
extraStyles = _ref.extraStyles,
|
|
50629
50698
|
children = _ref.children;
|
|
50630
50699
|
return /*#__PURE__*/React.createElement(React.Fragment, null, opened && /*#__PURE__*/React.createElement(FilterDropdownContainer, {
|
|
50631
50700
|
ref: ref,
|
|
@@ -50633,7 +50702,9 @@ var FilterDropdown = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50633
50702
|
role: "combobox",
|
|
50634
50703
|
"aria-expanded": opened,
|
|
50635
50704
|
"aria-haspopup": "listbox",
|
|
50636
|
-
"aria-owns": ariaOwns
|
|
50705
|
+
"aria-owns": ariaOwns,
|
|
50706
|
+
"aria-controls": ariaControls,
|
|
50707
|
+
extraStyles: extraStyles
|
|
50637
50708
|
}, children));
|
|
50638
50709
|
});
|
|
50639
50710
|
|
|
@@ -50654,10 +50725,54 @@ var SearchBox = function SearchBox(_ref) {
|
|
|
50654
50725
|
fieldActions: actions.fields.searchTerm,
|
|
50655
50726
|
placeholder: placeholder,
|
|
50656
50727
|
disabled: disabled,
|
|
50657
|
-
extraStyles: "\n
|
|
50728
|
+
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 ")
|
|
50658
50729
|
}));
|
|
50659
50730
|
};
|
|
50660
50731
|
|
|
50732
|
+
var _excluded$M = ["width", "height", "color"];
|
|
50733
|
+
var CheckboxCheckmarkIcon = function CheckboxCheckmarkIcon(_ref) {
|
|
50734
|
+
var _ref$width = _ref.width,
|
|
50735
|
+
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
50736
|
+
_ref$height = _ref.height,
|
|
50737
|
+
height = _ref$height === void 0 ? "18" : _ref$height,
|
|
50738
|
+
_ref$color = _ref.color,
|
|
50739
|
+
color = _ref$color === void 0 ? "#FEFEFE" : _ref$color,
|
|
50740
|
+
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
50741
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
50742
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
50743
|
+
width: width,
|
|
50744
|
+
height: height,
|
|
50745
|
+
viewBox: "0 0 ".concat(width, " ").concat(height),
|
|
50746
|
+
fill: "none"
|
|
50747
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
50748
|
+
fillRule: "evenodd",
|
|
50749
|
+
clipRule: "evenodd",
|
|
50750
|
+
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",
|
|
50751
|
+
fill: "#FEFEFE"
|
|
50752
|
+
}), /*#__PURE__*/React.createElement("mask", {
|
|
50753
|
+
id: "mask0_3361_1486",
|
|
50754
|
+
style: {
|
|
50755
|
+
maskType: "luminance"
|
|
50756
|
+
},
|
|
50757
|
+
maskUnits: "userSpaceOnUse",
|
|
50758
|
+
x: "4",
|
|
50759
|
+
y: "5",
|
|
50760
|
+
width: "11",
|
|
50761
|
+
height: "9"
|
|
50762
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
50763
|
+
fillRule: "evenodd",
|
|
50764
|
+
clipRule: "evenodd",
|
|
50765
|
+
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",
|
|
50766
|
+
fill: "white"
|
|
50767
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
50768
|
+
mask: "url(#mask0_3361_1486)"
|
|
50769
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
50770
|
+
width: width,
|
|
50771
|
+
height: height,
|
|
50772
|
+
fill: color
|
|
50773
|
+
})));
|
|
50774
|
+
};
|
|
50775
|
+
|
|
50661
50776
|
var FilterableListItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
50662
50777
|
var index = _ref.index,
|
|
50663
50778
|
option = _ref.option,
|
|
@@ -50666,28 +50781,31 @@ var FilterableListItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50666
50781
|
disabled = _ref.disabled,
|
|
50667
50782
|
tabIndex = _ref.tabIndex,
|
|
50668
50783
|
name = _ref.name,
|
|
50784
|
+
showDivider = _ref.showDivider,
|
|
50785
|
+
extraStyles = _ref.extraStyles,
|
|
50669
50786
|
themeValues = _ref.themeValues;
|
|
50670
|
-
|
|
50671
|
-
|
|
50787
|
+
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 }");
|
|
50788
|
+
return /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
50672
50789
|
key: index,
|
|
50673
|
-
extraStyles: "\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryColor, ";\n }\n ")
|
|
50674
|
-
}, /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
50675
50790
|
ref: ref,
|
|
50676
50791
|
title: option.name,
|
|
50677
50792
|
name: option.name,
|
|
50793
|
+
role: "option",
|
|
50794
|
+
"aria-selected": checked,
|
|
50795
|
+
tabIndex: tabIndex,
|
|
50796
|
+
dataQa: "".concat(name, "-option-").concat(index),
|
|
50678
50797
|
checked: checked,
|
|
50679
50798
|
onChange: function onChange() {
|
|
50680
50799
|
return selectOption(option);
|
|
50681
50800
|
},
|
|
50682
50801
|
textExtraStyles: "font-size: 0.875rem; margin: 0;",
|
|
50683
50802
|
disabled: disabled,
|
|
50684
|
-
extraStyles: "\n
|
|
50685
|
-
checkboxMargin: "0
|
|
50686
|
-
|
|
50687
|
-
|
|
50688
|
-
|
|
50689
|
-
|
|
50690
|
-
}));
|
|
50803
|
+
extraStyles: "\n padding: 0.375rem 0.625rem; \n margin: 0;\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryColor, ";\n }\n ").concat(showDivider && dividerStyles, "\n ").concat(extraStyles, "\n "),
|
|
50804
|
+
checkboxMargin: showDivider ? "0 0 1rem" : "0",
|
|
50805
|
+
hasIconOverride: true,
|
|
50806
|
+
icon: CheckboxCheckmarkIcon,
|
|
50807
|
+
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 ")
|
|
50808
|
+
});
|
|
50691
50809
|
});
|
|
50692
50810
|
|
|
50693
50811
|
var filterItemsList = function filterItemsList(list, searchTerm) {
|
|
@@ -50852,14 +50970,12 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
50852
50970
|
handleKeyDown = _useKeyboardNavigatio.handleKeyDown;
|
|
50853
50971
|
return /*#__PURE__*/React.createElement(Box, {
|
|
50854
50972
|
id: id,
|
|
50855
|
-
role: "listbox",
|
|
50856
50973
|
padding: "0",
|
|
50857
|
-
|
|
50858
|
-
|
|
50859
|
-
|
|
50860
|
-
padding:
|
|
50861
|
-
|
|
50862
|
-
}, sortedAppliedOptions.map(function (option, index) {
|
|
50974
|
+
role: "listbox",
|
|
50975
|
+
"aria-label": "Filter options container",
|
|
50976
|
+
onKeyDown: handleKeyDown,
|
|
50977
|
+
extraStyles: "\n overflow-y: auto;\n max-height: 250px;\n display: flex;\n flex-flow: column;\n padding-bottom: 0.5rem;\n "
|
|
50978
|
+
}, (sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, sortedAppliedOptions.map(function (option, index) {
|
|
50863
50979
|
var checked = isChecked(option, selectedOptions);
|
|
50864
50980
|
var tabIndex = index === focusedIndex || index === 0 && focusedIndex === -1 ? "0" : "-1";
|
|
50865
50981
|
return /*#__PURE__*/React.createElement(FilterableListItem, {
|
|
@@ -50873,9 +50989,10 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
50873
50989
|
selectOption: handleSelectOption,
|
|
50874
50990
|
tabIndex: tabIndex,
|
|
50875
50991
|
name: name,
|
|
50876
|
-
themeValues: themeValues
|
|
50992
|
+
themeValues: themeValues,
|
|
50993
|
+
showDivider: sortedOptions.length > 0 && index === sortedAppliedOptions.length - 1
|
|
50877
50994
|
});
|
|
50878
|
-
})), sortedOptions.map(function (option, index) {
|
|
50995
|
+
})), /*#__PURE__*/React.createElement(React.Fragment, null, sortedOptions.map(function (option, index) {
|
|
50879
50996
|
var checked = isChecked(option, selectedOptions);
|
|
50880
50997
|
var isDisabled = isMaxSelectionReached(maxSelections, selectedOptions) && !checked;
|
|
50881
50998
|
var indexOffset = sortedAppliedOptions !== null && sortedAppliedOptions !== void 0 && sortedAppliedOptions.length ? sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length : 0;
|
|
@@ -50895,7 +51012,7 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
50895
51012
|
name: name,
|
|
50896
51013
|
themeValues: themeValues
|
|
50897
51014
|
});
|
|
50898
|
-
}));
|
|
51015
|
+
})));
|
|
50899
51016
|
};
|
|
50900
51017
|
var FilterableList$1 = /*#__PURE__*/React.memo(FilterableList);
|
|
50901
51018
|
|
|
@@ -50903,7 +51020,9 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50903
51020
|
var actions = _ref.actions,
|
|
50904
51021
|
autocompleteValue = _ref.autocompleteValue,
|
|
50905
51022
|
btnContentOverride = _ref.btnContentOverride,
|
|
51023
|
+
btnExtraStyles = _ref.btnExtraStyles,
|
|
50906
51024
|
disabled = _ref.disabled,
|
|
51025
|
+
dropdownExtraStyles = _ref.dropdownExtraStyles,
|
|
50907
51026
|
extraStyles = _ref.extraStyles,
|
|
50908
51027
|
fields = _ref.fields,
|
|
50909
51028
|
filterLabel = _ref.filterLabel,
|
|
@@ -50922,8 +51041,6 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50922
51041
|
placeholder = _ref$placeholder === void 0 ? "Search" : _ref$placeholder,
|
|
50923
51042
|
_ref$searchable = _ref.searchable,
|
|
50924
51043
|
searchable = _ref$searchable === void 0 ? true : _ref$searchable,
|
|
50925
|
-
selectedOptions = _ref.selectedOptions,
|
|
50926
|
-
setSelectedOptions = _ref.setSelectedOptions,
|
|
50927
51044
|
themeValues = _ref.themeValues,
|
|
50928
51045
|
_ref$truncateBtnTextW = _ref.truncateBtnTextWidth,
|
|
50929
51046
|
truncateBtnTextWidth = _ref$truncateBtnTextW === void 0 ? "15rem" : _ref$truncateBtnTextW;
|
|
@@ -50933,22 +51050,29 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50933
51050
|
setOpened = _useState2[1];
|
|
50934
51051
|
var _useState3 = useState([]),
|
|
50935
51052
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
50936
|
-
|
|
50937
|
-
|
|
50938
|
-
var
|
|
50939
|
-
|
|
50940
|
-
|
|
50941
|
-
|
|
51053
|
+
selectedOptions = _useState4[0],
|
|
51054
|
+
setSelectedOptions = _useState4[1];
|
|
51055
|
+
var _useState5 = useState([]),
|
|
51056
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
51057
|
+
appliedOptions = _useState6[0],
|
|
51058
|
+
setAppliedOptions = _useState6[1];
|
|
51059
|
+
var openedRef = useRef(opened);
|
|
51060
|
+
var handleOnClose = function handleOnClose() {
|
|
51061
|
+
if (openedRef.current) {
|
|
51062
|
+
setOpened(false);
|
|
51063
|
+
actions.fields.searchTerm.set("");
|
|
51064
|
+
}
|
|
50942
51065
|
};
|
|
50943
51066
|
var containerRef = useOutsideClickHook(function () {
|
|
50944
|
-
return
|
|
51067
|
+
return handleOnClose();
|
|
50945
51068
|
});
|
|
50946
51069
|
var dropdownRef = useRef(null);
|
|
50947
51070
|
var filterButtonRef = useRef(null);
|
|
50948
51071
|
var applyFilterButtonRef = useRef(null);
|
|
50949
51072
|
var filterDropdownID = "".concat(name, "-filter-dropdown");
|
|
50950
|
-
var
|
|
51073
|
+
var listGroupID = "".concat(name, "-list-group");
|
|
50951
51074
|
useEffect$1(function () {
|
|
51075
|
+
openedRef.current = opened;
|
|
50952
51076
|
if (!opened) {
|
|
50953
51077
|
onApply(selectedOptions);
|
|
50954
51078
|
setAppliedOptions(selectedOptions);
|
|
@@ -50965,9 +51089,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50965
51089
|
or tabbing backward past the filter button.
|
|
50966
51090
|
*/
|
|
50967
51091
|
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)) {
|
|
50968
|
-
|
|
50969
|
-
actions.fields.searchTerm.set("");
|
|
50970
|
-
onApply(selectedOptions);
|
|
51092
|
+
handleOnClose();
|
|
50971
51093
|
}
|
|
50972
51094
|
};
|
|
50973
51095
|
document.addEventListener("keydown", handleKeyDown);
|
|
@@ -50986,20 +51108,25 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50986
51108
|
setOpened(!opened);
|
|
50987
51109
|
},
|
|
50988
51110
|
opened: opened,
|
|
50989
|
-
|
|
50990
|
-
|
|
51111
|
+
backgroundHoverColor: appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length ? themeValues.secondaryHoverColor : themeValues.primaryHoverColor,
|
|
51112
|
+
backgroundColor: appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length ? themeValues.secondaryColor : themeValues.primaryColor,
|
|
51113
|
+
textColor: appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length ? WHITE : CHARADE_GREY,
|
|
51114
|
+
textHoverColor: opened && !(appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length) ? CHARADE_GREY : WHITE,
|
|
50991
51115
|
name: name,
|
|
50992
51116
|
filterDropdownID: filterDropdownID,
|
|
50993
51117
|
hasIcon: hasIcon,
|
|
50994
51118
|
icon: Icon,
|
|
50995
51119
|
truncateBtnTextWidth: truncateBtnTextWidth,
|
|
50996
51120
|
filterLabel: filterLabel,
|
|
50997
|
-
selectedOptions: selectedOptions
|
|
51121
|
+
selectedOptions: selectedOptions,
|
|
51122
|
+
extraStyles: btnExtraStyles
|
|
50998
51123
|
}), /*#__PURE__*/React.createElement(FilterDropdown, {
|
|
50999
51124
|
id: filterDropdownID,
|
|
51000
51125
|
ref: dropdownRef,
|
|
51001
|
-
ariaOwns:
|
|
51002
|
-
|
|
51126
|
+
ariaOwns: listGroupID,
|
|
51127
|
+
ariaControls: listGroupID,
|
|
51128
|
+
opened: opened,
|
|
51129
|
+
extraStyles: dropdownExtraStyles
|
|
51003
51130
|
}, /*#__PURE__*/React.createElement(SearchBox, {
|
|
51004
51131
|
showSearchBox: searchable && (options === null || options === void 0 ? void 0 : options.length) > 8,
|
|
51005
51132
|
autocompleteValue: autocompleteValue,
|
|
@@ -51008,7 +51135,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
51008
51135
|
placeholder: placeholder,
|
|
51009
51136
|
disabled: disabled
|
|
51010
51137
|
}), /*#__PURE__*/React.createElement(FilterableList$1, {
|
|
51011
|
-
id:
|
|
51138
|
+
id: listGroupID,
|
|
51012
51139
|
options: options,
|
|
51013
51140
|
appliedOptions: appliedOptions,
|
|
51014
51141
|
themeValues: themeValues,
|
|
@@ -51022,22 +51149,21 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
51022
51149
|
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 ")
|
|
51023
51150
|
}, /*#__PURE__*/React.createElement(ActionLinkButton, {
|
|
51024
51151
|
action: function action() {
|
|
51025
|
-
setOpened(false);
|
|
51026
51152
|
setSelectedOptions([]);
|
|
51027
|
-
|
|
51153
|
+
handleOnClose();
|
|
51028
51154
|
onClear();
|
|
51029
51155
|
},
|
|
51030
51156
|
text: "Clear",
|
|
51031
|
-
dataQa: "".concat(name, "-clear-filters")
|
|
51157
|
+
dataQa: "".concat(name, "-clear-filters"),
|
|
51158
|
+
ariaLabel: "Clear all filters"
|
|
51032
51159
|
}), /*#__PURE__*/React.createElement(ActionLinkButton, {
|
|
51033
51160
|
ref: applyFilterButtonRef,
|
|
51034
51161
|
action: function action() {
|
|
51035
|
-
|
|
51036
|
-
actions.fields.searchTerm.set("");
|
|
51037
|
-
onApply(selectedOptions);
|
|
51162
|
+
return handleOnClose();
|
|
51038
51163
|
},
|
|
51039
51164
|
text: "Apply",
|
|
51040
|
-
dataQa: "".concat(name, "-apply-filters")
|
|
51165
|
+
dataQa: "".concat(name, "-apply-filters"),
|
|
51166
|
+
ariaLabel: "Apply all filters"
|
|
51041
51167
|
}))));
|
|
51042
51168
|
};
|
|
51043
51169
|
var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$_);
|
|
@@ -51335,5 +51461,5 @@ var index$6 = /*#__PURE__*/Object.freeze({
|
|
|
51335
51461
|
useToastNotification: useToastNotification
|
|
51336
51462
|
});
|
|
51337
51463
|
|
|
51338
|
-
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 };
|
|
51464
|
+
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 };
|
|
51339
51465
|
//# sourceMappingURL=index.esm.js.map
|