@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.cjs.js
CHANGED
|
@@ -18857,6 +18857,52 @@ var AgencyIcon = function AgencyIcon(_ref) {
|
|
|
18857
18857
|
})));
|
|
18858
18858
|
};
|
|
18859
18859
|
|
|
18860
|
+
var _excluded$m = ["width", "height", "color"];
|
|
18861
|
+
var PersonIcon = function PersonIcon(_ref) {
|
|
18862
|
+
var _ref$width = _ref.width,
|
|
18863
|
+
width = _ref$width === void 0 ? "20" : _ref$width,
|
|
18864
|
+
_ref$height = _ref.height,
|
|
18865
|
+
height = _ref$height === void 0 ? "21" : _ref$height,
|
|
18866
|
+
_ref$color = _ref.color,
|
|
18867
|
+
color = _ref$color === void 0 ? CHARADE_GREY : _ref$color,
|
|
18868
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
18869
|
+
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
18870
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18871
|
+
width: width,
|
|
18872
|
+
height: height,
|
|
18873
|
+
viewBox: "0 0 ".concat(width, " ").concat(height),
|
|
18874
|
+
fill: "none"
|
|
18875
|
+
}, props), /*#__PURE__*/React__default.createElement("path", {
|
|
18876
|
+
fillRule: "evenodd",
|
|
18877
|
+
clipRule: "evenodd",
|
|
18878
|
+
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",
|
|
18879
|
+
fill: color
|
|
18880
|
+
}));
|
|
18881
|
+
};
|
|
18882
|
+
|
|
18883
|
+
var _excluded$n = ["width", "height", "color"];
|
|
18884
|
+
var PaymentStatusIcon = function PaymentStatusIcon(_ref) {
|
|
18885
|
+
var _ref$width = _ref.width,
|
|
18886
|
+
width = _ref$width === void 0 ? "20" : _ref$width,
|
|
18887
|
+
_ref$height = _ref.height,
|
|
18888
|
+
height = _ref$height === void 0 ? "21" : _ref$height,
|
|
18889
|
+
_ref$color = _ref.color,
|
|
18890
|
+
color = _ref$color === void 0 ? CHARADE_GREY : _ref$color,
|
|
18891
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
18892
|
+
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
18893
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18894
|
+
width: width,
|
|
18895
|
+
height: height,
|
|
18896
|
+
viewBox: "0 0 ".concat(width, " ").concat(height),
|
|
18897
|
+
fill: "none"
|
|
18898
|
+
}, props), /*#__PURE__*/React__default.createElement("path", {
|
|
18899
|
+
fillRule: "evenodd",
|
|
18900
|
+
clipRule: "evenodd",
|
|
18901
|
+
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",
|
|
18902
|
+
fill: color
|
|
18903
|
+
}));
|
|
18904
|
+
};
|
|
18905
|
+
|
|
18860
18906
|
var color$2 = "#15749D";
|
|
18861
18907
|
var hoverColor$1 = "#116285";
|
|
18862
18908
|
var activeColor$1 = "#0E506D";
|
|
@@ -19510,7 +19556,7 @@ var mobileFallbackValues = {
|
|
|
19510
19556
|
};
|
|
19511
19557
|
var MOBILE_BREAKPOINT = 768;
|
|
19512
19558
|
|
|
19513
|
-
var _excluded$
|
|
19559
|
+
var _excluded$o = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
19514
19560
|
|
|
19515
19561
|
/*
|
|
19516
19562
|
New responsive text component for Title elements
|
|
@@ -19557,7 +19603,7 @@ var Title = function Title(_ref) {
|
|
|
19557
19603
|
as = _ref$as === void 0 ? "h1" : _ref$as,
|
|
19558
19604
|
dataQa = _ref.dataQa,
|
|
19559
19605
|
children = _ref.children,
|
|
19560
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
19606
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
19561
19607
|
return /*#__PURE__*/React__default.createElement(TitleText, _extends({
|
|
19562
19608
|
variant: variant,
|
|
19563
19609
|
as: as,
|
|
@@ -20985,12 +21031,12 @@ var fallbackValues$8 = {
|
|
|
20985
21031
|
linkColor: linkColor
|
|
20986
21032
|
};
|
|
20987
21033
|
|
|
20988
|
-
var _excluded$
|
|
21034
|
+
var _excluded$p = ["variant", "themeValues", "children"];
|
|
20989
21035
|
var BoxWithShadow = function BoxWithShadow(_ref) {
|
|
20990
21036
|
var variant = _ref.variant,
|
|
20991
21037
|
themeValues = _ref.themeValues,
|
|
20992
21038
|
children = _ref.children,
|
|
20993
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
21039
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
20994
21040
|
var shadowRegistry = {
|
|
20995
21041
|
baseStandard: "0px 3px 7px 2px ".concat(rgba$1(BLACK, 0.1), ", 0px 1px 2px 1px ").concat(rgba$1(BLACK, 0.1), ";"),
|
|
20996
21042
|
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), ";"),
|
|
@@ -21050,7 +21096,7 @@ var fallbackValues$a = {
|
|
|
21050
21096
|
externalLinkColor: externalLinkColor
|
|
21051
21097
|
};
|
|
21052
21098
|
|
|
21053
|
-
var _excluded$
|
|
21099
|
+
var _excluded$q = ["hoverColor", "activeColor", "extrastyles"];
|
|
21054
21100
|
var ROYAL_BLUE$1 = ROYAL_BLUE;
|
|
21055
21101
|
var LINK_TEXT_DECORATION$3 = LINK_TEXT_DECORATION;
|
|
21056
21102
|
|
|
@@ -21064,7 +21110,7 @@ var StyledExternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
21064
21110
|
var hoverColor = _ref.hoverColor,
|
|
21065
21111
|
activeColor = _ref.activeColor,
|
|
21066
21112
|
extrastyles = _ref.extrastyles,
|
|
21067
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
21113
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
21068
21114
|
return /*#__PURE__*/React__default.createElement("a", _extends({}, props, {
|
|
21069
21115
|
ref: ref
|
|
21070
21116
|
}));
|
|
@@ -21139,7 +21185,7 @@ var ExternalLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
21139
21185
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
21140
21186
|
});
|
|
21141
21187
|
|
|
21142
|
-
var _excluded$
|
|
21188
|
+
var _excluded$r = ["hoverColor", "activeColor", "active", "color", "extrastyles"];
|
|
21143
21189
|
var ROYAL_BLUE$2 = ROYAL_BLUE;
|
|
21144
21190
|
var LINK_TEXT_DECORATION$4 = LINK_TEXT_DECORATION;
|
|
21145
21191
|
|
|
@@ -21155,7 +21201,7 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
21155
21201
|
active = _ref.active,
|
|
21156
21202
|
color = _ref.color,
|
|
21157
21203
|
extrastyles = _ref.extrastyles,
|
|
21158
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
21204
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
21159
21205
|
return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, _extends({}, props, {
|
|
21160
21206
|
ref: ref
|
|
21161
21207
|
}));
|
|
@@ -22838,7 +22884,7 @@ _curry2(function test(pattern, str) {
|
|
|
22838
22884
|
return _cloneRegExp(pattern).test(str);
|
|
22839
22885
|
});
|
|
22840
22886
|
|
|
22841
|
-
var _excluded$
|
|
22887
|
+
var _excluded$s = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
|
|
22842
22888
|
var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
22843
22889
|
var _ref$url = _ref.url,
|
|
22844
22890
|
url = _ref$url === void 0 ? "/" : _ref$url,
|
|
@@ -22853,7 +22899,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
22853
22899
|
_ref$newTab = _ref.newTab,
|
|
22854
22900
|
newTab = _ref$newTab === void 0 ? false : _ref$newTab,
|
|
22855
22901
|
dataQa = _ref.dataQa,
|
|
22856
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
22902
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$s);
|
|
22857
22903
|
var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
|
|
22858
22904
|
var children = _ref2.children,
|
|
22859
22905
|
url = _ref2.url,
|
|
@@ -22941,7 +22987,7 @@ var ParagraphText = styled__default.p.withConfig({
|
|
|
22941
22987
|
return extraStyles;
|
|
22942
22988
|
});
|
|
22943
22989
|
|
|
22944
|
-
var _excluded$
|
|
22990
|
+
var _excluded$t = ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children", "as"];
|
|
22945
22991
|
var Paragraph = function Paragraph(_ref) {
|
|
22946
22992
|
var themeValues = _ref.themeValues,
|
|
22947
22993
|
_ref$weight = _ref.weight,
|
|
@@ -22955,7 +23001,7 @@ var Paragraph = function Paragraph(_ref) {
|
|
|
22955
23001
|
dataQa = _ref.dataQa,
|
|
22956
23002
|
children = _ref.children,
|
|
22957
23003
|
as = _ref.as,
|
|
22958
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
23004
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
22959
23005
|
return /*#__PURE__*/React__default.createElement(ParagraphText, _extends({
|
|
22960
23006
|
weight: weight,
|
|
22961
23007
|
color: color,
|
|
@@ -23159,7 +23205,7 @@ var errorStyles = {
|
|
|
23159
23205
|
"default": "border: 1px solid ".concat(RED, ";")
|
|
23160
23206
|
};
|
|
23161
23207
|
var focusedStyles = {
|
|
23162
|
-
"default": "
|
|
23208
|
+
"default": "\n outline: 3px solid ".concat(ROYAL_BLUE, "; \n outline-offset: 3px;\n ")
|
|
23163
23209
|
};
|
|
23164
23210
|
var disabledCheckedStyles = {
|
|
23165
23211
|
"default": "\n background: #6d717e;\n border: 1px solid #6d717e;\n"
|
|
@@ -23197,7 +23243,7 @@ var ENTER = 13;
|
|
|
23197
23243
|
var ESCAPE = 27;
|
|
23198
23244
|
var SPACEBAR = 32;
|
|
23199
23245
|
|
|
23200
|
-
var _excluded$
|
|
23246
|
+
var _excluded$u = ["title", "name", "checked", "onChange", "disabled", "themeValues", "hidden", "error", "checkboxMargin", "extraStyles", "textExtraStyles", "labelledById", "dataQa", "checkboxExtraStyles", "hasIconOverride", "icon"];
|
|
23201
23247
|
var CheckboxContainer = styled__default.span.withConfig({
|
|
23202
23248
|
displayName: "Checkbox__CheckboxContainer",
|
|
23203
23249
|
componentId: "sc-36kqbv-0"
|
|
@@ -23205,7 +23251,7 @@ var CheckboxContainer = styled__default.span.withConfig({
|
|
|
23205
23251
|
var CheckboxLabelContainer = styled__default.label.withConfig({
|
|
23206
23252
|
displayName: "Checkbox__CheckboxLabelContainer",
|
|
23207
23253
|
componentId: "sc-36kqbv-1"
|
|
23208
|
-
})(["display:flex;align-items:center;column-gap:1rem;"]);
|
|
23254
|
+
})(["display:flex;align-items:center;column-gap:1rem;cursor:pointer;"]);
|
|
23209
23255
|
var CheckboxIcon = styled__default.svg.withConfig({
|
|
23210
23256
|
displayName: "Checkbox__CheckboxIcon",
|
|
23211
23257
|
componentId: "sc-36kqbv-2"
|
|
@@ -23264,7 +23310,10 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
|
|
|
23264
23310
|
_ref5$dataQa = _ref5.dataQa,
|
|
23265
23311
|
dataQa = _ref5$dataQa === void 0 ? null : _ref5$dataQa,
|
|
23266
23312
|
checkboxExtraStyles = _ref5.checkboxExtraStyles,
|
|
23267
|
-
|
|
23313
|
+
_ref5$hasIconOverride = _ref5.hasIconOverride,
|
|
23314
|
+
hasIconOverride = _ref5$hasIconOverride === void 0 ? false : _ref5$hasIconOverride,
|
|
23315
|
+
Icon = _ref5.icon,
|
|
23316
|
+
rest = _objectWithoutProperties(_ref5, _excluded$u);
|
|
23268
23317
|
var _useState = React.useState(false),
|
|
23269
23318
|
_useState2 = _slicedToArray(_useState, 2),
|
|
23270
23319
|
focused = _useState2[0],
|
|
@@ -23292,7 +23341,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
|
|
|
23292
23341
|
},
|
|
23293
23342
|
hiddenStyles: hidden,
|
|
23294
23343
|
background: themeValues.backgroundColor,
|
|
23295
|
-
extraStyles: "outline:
|
|
23344
|
+
extraStyles: "\n :focus {\n outline: 0;\n }\n ".concat(extraStyles, "; \n margin: ").concat(checkboxMargin, ";\n ")
|
|
23296
23345
|
}, rest), /*#__PURE__*/React__default.createElement(CheckboxLabelContainer, {
|
|
23297
23346
|
"data-qa": dataQa
|
|
23298
23347
|
}, /*#__PURE__*/React__default.createElement(CheckboxContainer, {
|
|
@@ -23322,7 +23371,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
|
|
|
23322
23371
|
disabledCheckedStyles: themeValues.disabledCheckedStyles,
|
|
23323
23372
|
focusedStyles: themeValues.focusedStyles,
|
|
23324
23373
|
checkboxExtraStyles: checkboxExtraStyles
|
|
23325
|
-
}, /*#__PURE__*/React__default.createElement(CheckboxIcon, {
|
|
23374
|
+
}, hasIconOverride ? /*#__PURE__*/React__default.createElement(Icon, null) : /*#__PURE__*/React__default.createElement(CheckboxIcon, {
|
|
23326
23375
|
viewBox: "0 0 24 24",
|
|
23327
23376
|
disabled: disabled,
|
|
23328
23377
|
disabledCheckColor: themeValues.disabledCheckColor,
|
|
@@ -23620,7 +23669,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
|
|
|
23620
23669
|
return extraStyles;
|
|
23621
23670
|
});
|
|
23622
23671
|
|
|
23623
|
-
var _excluded$
|
|
23672
|
+
var _excluded$v = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
23624
23673
|
var TableRow = function TableRow(_ref) {
|
|
23625
23674
|
var children = _ref.children,
|
|
23626
23675
|
extraStyles = _ref.extraStyles,
|
|
@@ -23629,7 +23678,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
23629
23678
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
23630
23679
|
onClick = _ref.onClick,
|
|
23631
23680
|
themeValues = _ref.themeValues,
|
|
23632
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
23681
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
23633
23682
|
return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
|
|
23634
23683
|
onClick: onClick,
|
|
23635
23684
|
hoverEffect: hoverEffect,
|
|
@@ -26463,7 +26512,7 @@ var mobileFallbackValues$1 = {
|
|
|
26463
26512
|
};
|
|
26464
26513
|
var MOBILE_BREAKPOINT$1 = 768;
|
|
26465
26514
|
|
|
26466
|
-
var _excluded$
|
|
26515
|
+
var _excluded$w = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
26467
26516
|
|
|
26468
26517
|
/*
|
|
26469
26518
|
New responsive text component for Detail elements
|
|
@@ -26513,7 +26562,7 @@ var Detail = function Detail(_ref) {
|
|
|
26513
26562
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
26514
26563
|
dataQa = _ref.dataQa,
|
|
26515
26564
|
children = _ref.children,
|
|
26516
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26565
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
26517
26566
|
return /*#__PURE__*/React__default.createElement(DetailText, _extends({
|
|
26518
26567
|
variant: variant,
|
|
26519
26568
|
as: as,
|
|
@@ -27247,7 +27296,7 @@ var fallbackValues$n = {
|
|
|
27247
27296
|
formFooterPanel: formFooterPanel
|
|
27248
27297
|
};
|
|
27249
27298
|
|
|
27250
|
-
var _excluded$
|
|
27299
|
+
var _excluded$x = ["showErrors", "themeValues"],
|
|
27251
27300
|
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired", "errorFieldExtraStyles", "showFieldErrorRow", "labelTextVariant", "errorTextVariant"];
|
|
27252
27301
|
var InputField = styled__default.input.withConfig({
|
|
27253
27302
|
displayName: "FormInput__InputField",
|
|
@@ -27282,7 +27331,7 @@ var InputField = styled__default.input.withConfig({
|
|
|
27282
27331
|
var FormattedInputField = styled__default(function (_ref8) {
|
|
27283
27332
|
var showErrors = _ref8.showErrors,
|
|
27284
27333
|
themeValues = _ref8.themeValues,
|
|
27285
|
-
props = _objectWithoutProperties(_ref8, _excluded$
|
|
27334
|
+
props = _objectWithoutProperties(_ref8, _excluded$x);
|
|
27286
27335
|
return /*#__PURE__*/React__default.createElement(FormattedInput, props);
|
|
27287
27336
|
}).withConfig({
|
|
27288
27337
|
displayName: "FormInput__FormattedInputField",
|
|
@@ -27487,7 +27536,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
27487
27536
|
};
|
|
27488
27537
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$n, "default");
|
|
27489
27538
|
|
|
27490
|
-
var _excluded$
|
|
27539
|
+
var _excluded$y = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
27491
27540
|
var FormInputRow = function FormInputRow(_ref) {
|
|
27492
27541
|
var _ref$breakpoint = _ref.breakpoint,
|
|
27493
27542
|
breakpoint = _ref$breakpoint === void 0 ? "30rem" : _ref$breakpoint,
|
|
@@ -27496,7 +27545,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
27496
27545
|
largeChild = _ref.largeChild,
|
|
27497
27546
|
largeChildSize = _ref.largeChildSize,
|
|
27498
27547
|
children = _ref.children,
|
|
27499
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27548
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
27500
27549
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
27501
27550
|
padding: "0"
|
|
27502
27551
|
}, rest), /*#__PURE__*/React__default.createElement(Switcher, {
|
|
@@ -27507,24 +27556,24 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
27507
27556
|
}, children));
|
|
27508
27557
|
};
|
|
27509
27558
|
|
|
27510
|
-
var _excluded$
|
|
27559
|
+
var _excluded$z = ["childGap", "bottomItem", "children"];
|
|
27511
27560
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
27512
27561
|
var _ref$childGap = _ref.childGap,
|
|
27513
27562
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
27514
27563
|
bottomItem = _ref.bottomItem,
|
|
27515
27564
|
children = _ref.children,
|
|
27516
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27565
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
27517
27566
|
return /*#__PURE__*/React__default.createElement(Stack, _extends({
|
|
27518
27567
|
childGap: childGap,
|
|
27519
27568
|
bottomItem: bottomItem
|
|
27520
27569
|
}, rest), children);
|
|
27521
27570
|
};
|
|
27522
27571
|
|
|
27523
|
-
var _excluded$
|
|
27572
|
+
var _excluded$A = ["themeValues", "children"];
|
|
27524
27573
|
var FormContainer = function FormContainer(_ref) {
|
|
27525
27574
|
var themeValues = _ref.themeValues,
|
|
27526
27575
|
children = _ref.children,
|
|
27527
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27576
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
27528
27577
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
27529
27578
|
isMobile = _useContext.isMobile;
|
|
27530
27579
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
@@ -27834,7 +27883,7 @@ var fallbackValues$r = {
|
|
|
27834
27883
|
fontSize: fontSize$8
|
|
27835
27884
|
};
|
|
27836
27885
|
|
|
27837
|
-
var _excluded$
|
|
27886
|
+
var _excluded$B = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
27838
27887
|
var Heading = function Heading(_ref) {
|
|
27839
27888
|
var themeValues = _ref.themeValues,
|
|
27840
27889
|
_ref$weight = _ref.weight,
|
|
@@ -27853,7 +27902,7 @@ var Heading = function Heading(_ref) {
|
|
|
27853
27902
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
27854
27903
|
dataQa = _ref.dataQa,
|
|
27855
27904
|
children = _ref.children,
|
|
27856
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27905
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
27857
27906
|
return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
|
|
27858
27907
|
variant: variant,
|
|
27859
27908
|
as: as,
|
|
@@ -28054,11 +28103,11 @@ var LabeledAmountV2 = function LabeledAmountV2(_ref) {
|
|
|
28054
28103
|
}, /*#__PURE__*/React__default.createElement("span", null, label), /*#__PURE__*/React__default.createElement("span", null, amount));
|
|
28055
28104
|
};
|
|
28056
28105
|
|
|
28057
|
-
var _excluded$
|
|
28106
|
+
var _excluded$C = ["version"];
|
|
28058
28107
|
var LabeledAmount = function LabeledAmount(_ref) {
|
|
28059
28108
|
var _ref$version = _ref.version,
|
|
28060
28109
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
28061
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28110
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
28062
28111
|
var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
|
|
28063
28112
|
return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
|
|
28064
28113
|
};
|
|
@@ -28203,7 +28252,7 @@ var Loading = function Loading() {
|
|
|
28203
28252
|
})))));
|
|
28204
28253
|
};
|
|
28205
28254
|
|
|
28206
|
-
var _excluded$
|
|
28255
|
+
var _excluded$D = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
28207
28256
|
var NavFooter = function NavFooter(_ref) {
|
|
28208
28257
|
var leftContent = _ref.leftContent,
|
|
28209
28258
|
rightContent = _ref.rightContent,
|
|
@@ -28218,7 +28267,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
28218
28267
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
28219
28268
|
isMobile = _ref.isMobile,
|
|
28220
28269
|
footerWidth = _ref.footerWidth,
|
|
28221
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28270
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
28222
28271
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
28223
28272
|
padding: footerPadding,
|
|
28224
28273
|
background: backgroundColor,
|
|
@@ -28249,7 +28298,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
28249
28298
|
}, rightContent)))))));
|
|
28250
28299
|
};
|
|
28251
28300
|
|
|
28252
|
-
var _excluded$
|
|
28301
|
+
var _excluded$E = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
28253
28302
|
var NavHeader = function NavHeader(_ref) {
|
|
28254
28303
|
var leftContent = _ref.leftContent,
|
|
28255
28304
|
rightContent = _ref.rightContent,
|
|
@@ -28258,7 +28307,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
28258
28307
|
isMobile = _ref.isMobile,
|
|
28259
28308
|
backgroundColor = _ref.backgroundColor,
|
|
28260
28309
|
headerWidth = _ref.headerWidth,
|
|
28261
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28310
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
28262
28311
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
28263
28312
|
padding: "0 16px 4px",
|
|
28264
28313
|
background: backgroundColor,
|
|
@@ -46674,11 +46723,11 @@ var Modal$2 = function Modal(_ref) {
|
|
|
46674
46723
|
};
|
|
46675
46724
|
var ModalControlV2 = withWindowSize(Modal$2);
|
|
46676
46725
|
|
|
46677
|
-
var _excluded$
|
|
46726
|
+
var _excluded$F = ["version"];
|
|
46678
46727
|
var Modal$3 = function Modal(_ref) {
|
|
46679
46728
|
var _ref$version = _ref.version,
|
|
46680
46729
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
46681
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46730
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
46682
46731
|
var ModalControl = version === "v1" ? Modal$1 : ModalControlV2;
|
|
46683
46732
|
return /*#__PURE__*/React__default.createElement(ModalControl, rest);
|
|
46684
46733
|
};
|
|
@@ -47980,7 +48029,7 @@ var fallbackValues$P = {
|
|
|
47980
48029
|
labeledAmountTotal: labeledAmountTotal
|
|
47981
48030
|
};
|
|
47982
48031
|
|
|
47983
|
-
var _excluded$
|
|
48032
|
+
var _excluded$G = ["amount"],
|
|
47984
48033
|
_excluded2$1 = ["amount"];
|
|
47985
48034
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
47986
48035
|
var lineItemElems = _ref.lineItemElems,
|
|
@@ -48223,7 +48272,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
48223
48272
|
return fee.amount > 0;
|
|
48224
48273
|
}).map(function (_ref5) {
|
|
48225
48274
|
var amount = _ref5.amount,
|
|
48226
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
48275
|
+
rest = _objectWithoutProperties(_ref5, _excluded$G);
|
|
48227
48276
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
48228
48277
|
amount: displayCurrency(amount)
|
|
48229
48278
|
});
|
|
@@ -48660,11 +48709,11 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48660
48709
|
}, errorMessage))))));
|
|
48661
48710
|
};
|
|
48662
48711
|
|
|
48663
|
-
var _excluded$
|
|
48712
|
+
var _excluded$H = ["version"];
|
|
48664
48713
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48665
48714
|
var _ref$version = _ref.version,
|
|
48666
48715
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48667
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48716
|
+
rest = _objectWithoutProperties(_ref, _excluded$H);
|
|
48668
48717
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48669
48718
|
return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
|
|
48670
48719
|
};
|
|
@@ -49472,7 +49521,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49472
49521
|
}, section.content))));
|
|
49473
49522
|
};
|
|
49474
49523
|
|
|
49475
|
-
var _excluded$
|
|
49524
|
+
var _excluded$I = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections", "borderOverride"];
|
|
49476
49525
|
|
|
49477
49526
|
/**
|
|
49478
49527
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
@@ -49521,7 +49570,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49521
49570
|
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
49522
49571
|
groupedSections = _ref.groupedSections,
|
|
49523
49572
|
borderOverride = _ref.borderOverride,
|
|
49524
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49573
|
+
rest = _objectWithoutProperties(_ref, _excluded$I);
|
|
49525
49574
|
var _useState = React.useState(null),
|
|
49526
49575
|
_useState2 = _slicedToArray(_useState, 2),
|
|
49527
49576
|
focused = _useState2[0],
|
|
@@ -50068,7 +50117,7 @@ var Timeout = function Timeout(_ref) {
|
|
|
50068
50117
|
};
|
|
50069
50118
|
var Timeout$1 = withWindowSize(Timeout);
|
|
50070
50119
|
|
|
50071
|
-
var _excluded$
|
|
50120
|
+
var _excluded$J = ["variant", "message", "toastOpen", "closeToastNotification", "extraStyles", "minWidth", "maxWidth", "height", "childGap", "backgroundColor", "role", "ariaLive", "screenReaderMessage", "showScreenReaderMessage"];
|
|
50072
50121
|
var VARIANTS = {
|
|
50073
50122
|
SUCCESS: "success",
|
|
50074
50123
|
ERROR: "error"
|
|
@@ -50097,7 +50146,7 @@ var ToastNotification = function ToastNotification(_ref) {
|
|
|
50097
50146
|
screenReaderMessage = _ref.screenReaderMessage,
|
|
50098
50147
|
_ref$showScreenReader = _ref.showScreenReaderMessage,
|
|
50099
50148
|
showScreenReaderMessage = _ref$showScreenReader === void 0 ? true : _ref$showScreenReader,
|
|
50100
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
50149
|
+
rest = _objectWithoutProperties(_ref, _excluded$J);
|
|
50101
50150
|
var screenReaderMessageRef = React.useRef();
|
|
50102
50151
|
var LIVEREGION_TRANSITION_DELAY = 1000;
|
|
50103
50152
|
React.useEffect(function () {
|
|
@@ -50280,7 +50329,7 @@ var PopupMenuItemContainer = styled__default(ButtonWithAction).withConfig({
|
|
|
50280
50329
|
return "\n background-color: ".concat(isDeleteAction ? theme.menuItemHoverBackgroundColorDelete : theme.menuItemHoverBackgroundColor, ";\n ");
|
|
50281
50330
|
});
|
|
50282
50331
|
|
|
50283
|
-
var _excluded$
|
|
50332
|
+
var _excluded$K = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
|
|
50284
50333
|
var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
50285
50334
|
var id = _ref.id,
|
|
50286
50335
|
closeMenuCallback = _ref.closeMenuCallback,
|
|
@@ -50296,7 +50345,7 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
|
50296
50345
|
hoverStyles = _ref.hoverStyles,
|
|
50297
50346
|
activeStyles = _ref.activeStyles,
|
|
50298
50347
|
extraStyles = _ref.extraStyles,
|
|
50299
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
50348
|
+
rest = _objectWithoutProperties(_ref, _excluded$K);
|
|
50300
50349
|
return /*#__PURE__*/React__default.createElement(PopupMenuItemContainer, _extends({
|
|
50301
50350
|
id: id,
|
|
50302
50351
|
role: "menuItem",
|
|
@@ -50469,20 +50518,21 @@ var PopupMenu = function PopupMenu(_ref) {
|
|
|
50469
50518
|
};
|
|
50470
50519
|
var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$Z);
|
|
50471
50520
|
|
|
50472
|
-
var primaryColor$1 =
|
|
50521
|
+
var primaryColor$1 = WHITE;
|
|
50522
|
+
var primaryHoverColor = INFO_BLUE;
|
|
50473
50523
|
var secondaryColor = MATISSE_BLUE;
|
|
50524
|
+
var secondaryHoverColor = "#115D7E";
|
|
50474
50525
|
var fallbackValues$_ = {
|
|
50475
50526
|
primaryColor: primaryColor$1,
|
|
50476
|
-
|
|
50527
|
+
primaryHoverColor: primaryHoverColor,
|
|
50528
|
+
secondaryColor: secondaryColor,
|
|
50529
|
+
secondaryHoverColor: secondaryHoverColor
|
|
50477
50530
|
};
|
|
50478
50531
|
|
|
50479
50532
|
var StyledFilterContainer = styled__default(Box).withConfig({
|
|
50480
50533
|
displayName: "MultipleSelectFilterstyled__StyledFilterContainer",
|
|
50481
50534
|
componentId: "sc-126xgc2-0"
|
|
50482
|
-
})(["position:relative;box-sizing:border-box;padding:0;"
|
|
50483
|
-
var extraStyles = _ref.extraStyles;
|
|
50484
|
-
return extraStyles;
|
|
50485
|
-
});
|
|
50535
|
+
})(["position:relative;overflow:visible;box-sizing:border-box;padding:0;"]);
|
|
50486
50536
|
var FilterContainer = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
50487
50537
|
return /*#__PURE__*/React__default.createElement(StyledFilterContainer, _extends({
|
|
50488
50538
|
ref: ref
|
|
@@ -50491,7 +50541,7 @@ var FilterContainer = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
50491
50541
|
var StyledFilterDropdown = styled__default(Box).withConfig({
|
|
50492
50542
|
displayName: "MultipleSelectFilterstyled__StyledFilterDropdown",
|
|
50493
50543
|
componentId: "sc-126xgc2-1"
|
|
50494
|
-
})(["position:absolute;top:calc(100% + 0.5rem);left:0;width:
|
|
50544
|
+
})(["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;"]);
|
|
50495
50545
|
var FilterDropdownContainer = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
50496
50546
|
return /*#__PURE__*/React__default.createElement(StyledFilterDropdown, _extends({
|
|
50497
50547
|
ref: ref
|
|
@@ -50500,12 +50550,16 @@ var FilterDropdownContainer = /*#__PURE__*/React.forwardRef(function (props, ref
|
|
|
50500
50550
|
var FilterButton = styled__default(ButtonWithAction).withConfig({
|
|
50501
50551
|
displayName: "MultipleSelectFilterstyled__FilterButton",
|
|
50502
50552
|
componentId: "sc-126xgc2-2"
|
|
50503
|
-
})(["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 (
|
|
50504
|
-
var
|
|
50505
|
-
|
|
50506
|
-
|
|
50507
|
-
|
|
50508
|
-
|
|
50553
|
+
})(["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) {
|
|
50554
|
+
var opened = _ref.opened,
|
|
50555
|
+
textColor = _ref.textColor,
|
|
50556
|
+
textHoverColor = _ref.textHoverColor;
|
|
50557
|
+
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 ");
|
|
50558
|
+
}, function (_ref2) {
|
|
50559
|
+
var opened = _ref2.opened,
|
|
50560
|
+
backgroundColor = _ref2.backgroundColor,
|
|
50561
|
+
backgroundHoverColor = _ref2.backgroundHoverColor;
|
|
50562
|
+
return "\n background-color: ".concat(opened ? backgroundHoverColor : backgroundColor, "; \n :hover,\n :active,\n :focus {\n background-color: ").concat(backgroundHoverColor, ";\n }\n ");
|
|
50509
50563
|
});
|
|
50510
50564
|
var StyledFilterButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
50511
50565
|
return /*#__PURE__*/React__default.createElement(FilterButton, _extends({
|
|
@@ -50516,7 +50570,8 @@ var StyledFilterButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
50516
50570
|
var ActionLinkButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
50517
50571
|
var action = _ref.action,
|
|
50518
50572
|
text = _ref.text,
|
|
50519
|
-
dataQa = _ref.dataQa
|
|
50573
|
+
dataQa = _ref.dataQa,
|
|
50574
|
+
ariaLabel = _ref.ariaLabel;
|
|
50520
50575
|
return /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
50521
50576
|
ref: ref,
|
|
50522
50577
|
action: action,
|
|
@@ -50524,11 +50579,12 @@ var ActionLinkButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50524
50579
|
extraStyles: "\n padding: 0.2rem; \n margin: 0.5rem; \n min-height: auto; \n min-width: auto;\n ",
|
|
50525
50580
|
textExtraStyles: "font-weight: ".concat(FONT_WEIGHT_REGULAR, ";"),
|
|
50526
50581
|
text: text,
|
|
50527
|
-
dataQa: dataQa
|
|
50582
|
+
dataQa: dataQa,
|
|
50583
|
+
"aria-label": ariaLabel
|
|
50528
50584
|
});
|
|
50529
50585
|
});
|
|
50530
50586
|
|
|
50531
|
-
var _excluded$
|
|
50587
|
+
var _excluded$L = ["width", "height", "color"];
|
|
50532
50588
|
var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
50533
50589
|
var _ref$width = _ref.width,
|
|
50534
50590
|
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
@@ -50536,7 +50592,7 @@ var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
|
50536
50592
|
height = _ref$height === void 0 ? "19" : _ref$height,
|
|
50537
50593
|
_ref$color = _ref.color,
|
|
50538
50594
|
color = _ref$color === void 0 ? "#292A33" : _ref$color,
|
|
50539
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
50595
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
50540
50596
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
50541
50597
|
width: width,
|
|
50542
50598
|
height: height,
|
|
@@ -50582,7 +50638,9 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50582
50638
|
action = _ref$action === void 0 ? noop$1 : _ref$action,
|
|
50583
50639
|
opened = _ref.opened,
|
|
50584
50640
|
backgroundColor = _ref.backgroundColor,
|
|
50585
|
-
|
|
50641
|
+
backgroundHoverColor = _ref.backgroundHoverColor,
|
|
50642
|
+
textColor = _ref.textColor,
|
|
50643
|
+
textHoverColor = _ref.textHoverColor,
|
|
50586
50644
|
name = _ref.name,
|
|
50587
50645
|
filterDropdownID = _ref.filterDropdownID,
|
|
50588
50646
|
_ref$hasIcon = _ref.hasIcon,
|
|
@@ -50590,7 +50648,10 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50590
50648
|
Icon = _ref.icon,
|
|
50591
50649
|
truncateBtnTextWidth = _ref.truncateBtnTextWidth,
|
|
50592
50650
|
filterLabel = _ref.filterLabel,
|
|
50593
|
-
selectedOptions = _ref.selectedOptions
|
|
50651
|
+
selectedOptions = _ref.selectedOptions,
|
|
50652
|
+
extraStyles = _ref.extraStyles;
|
|
50653
|
+
var btnTextFilterDescription = selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? "".concat(filterLabel ? "".concat(filterLabel, ": ") : "").concat(selectedOptions[0].name) : "".concat(filterLabel ? filterLabel : "");
|
|
50654
|
+
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") : "";
|
|
50594
50655
|
return /*#__PURE__*/React__default.createElement(StyledFilterButton, {
|
|
50595
50656
|
ref: ref,
|
|
50596
50657
|
variant: "tertiary",
|
|
@@ -50599,7 +50660,13 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50599
50660
|
"aria-expanded": opened,
|
|
50600
50661
|
"aria-controls": filterDropdownID,
|
|
50601
50662
|
backgroundColor: backgroundColor,
|
|
50663
|
+
backgroundHoverColor: backgroundHoverColor,
|
|
50664
|
+
textColor: textColor,
|
|
50665
|
+
textHoverColor: textHoverColor,
|
|
50666
|
+
opened: opened,
|
|
50602
50667
|
dataQa: "".concat(name, "-filter-button"),
|
|
50668
|
+
extraStyles: extraStyles,
|
|
50669
|
+
"aria-label": "".concat(filterLabel, " Filter: ").concat(btnTextFilterDescription, " ").concat(btnTextItemsDescription),
|
|
50603
50670
|
contentOverride: true
|
|
50604
50671
|
}, btnContentOverride ? btnContentOverride : /*#__PURE__*/React__default.createElement(Center, {
|
|
50605
50672
|
as: "span",
|
|
@@ -50609,7 +50676,7 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50609
50676
|
},
|
|
50610
50677
|
intrinsic: true
|
|
50611
50678
|
}, hasIcon && /*#__PURE__*/React__default.createElement(Icon, {
|
|
50612
|
-
color:
|
|
50679
|
+
color: opened ? textHoverColor : textColor
|
|
50613
50680
|
}), /*#__PURE__*/React__default.createElement(Center, {
|
|
50614
50681
|
as: "span",
|
|
50615
50682
|
style: {
|
|
@@ -50620,20 +50687,22 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50620
50687
|
intrinsic: true
|
|
50621
50688
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
50622
50689
|
variant: "pS",
|
|
50623
|
-
color:
|
|
50690
|
+
color: opened ? textHoverColor : textColor,
|
|
50624
50691
|
extraStyles: "\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n ".concat(truncateBtnTextWidth && "max-width:" + truncateBtnTextWidth, "\n ")
|
|
50625
|
-
},
|
|
50626
|
-
color:
|
|
50692
|
+
}, btnTextFilterDescription), /*#__PURE__*/React__default.createElement(Text$1, {
|
|
50693
|
+
color: opened ? textHoverColor : textColor,
|
|
50627
50694
|
variant: "pS"
|
|
50628
|
-
},
|
|
50629
|
-
color:
|
|
50695
|
+
}, btnTextItemsDescription)), /*#__PURE__*/React__default.createElement(DropdownIconV2, {
|
|
50696
|
+
color: opened ? textHoverColor : textColor
|
|
50630
50697
|
})));
|
|
50631
50698
|
});
|
|
50632
50699
|
|
|
50633
50700
|
var FilterDropdown = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
50634
50701
|
var id = _ref.id,
|
|
50635
50702
|
ariaOwns = _ref.ariaOwns,
|
|
50703
|
+
ariaControls = _ref.ariaControls,
|
|
50636
50704
|
opened = _ref.opened,
|
|
50705
|
+
extraStyles = _ref.extraStyles,
|
|
50637
50706
|
children = _ref.children;
|
|
50638
50707
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, opened && /*#__PURE__*/React__default.createElement(FilterDropdownContainer, {
|
|
50639
50708
|
ref: ref,
|
|
@@ -50641,7 +50710,9 @@ var FilterDropdown = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50641
50710
|
role: "combobox",
|
|
50642
50711
|
"aria-expanded": opened,
|
|
50643
50712
|
"aria-haspopup": "listbox",
|
|
50644
|
-
"aria-owns": ariaOwns
|
|
50713
|
+
"aria-owns": ariaOwns,
|
|
50714
|
+
"aria-controls": ariaControls,
|
|
50715
|
+
extraStyles: extraStyles
|
|
50645
50716
|
}, children));
|
|
50646
50717
|
});
|
|
50647
50718
|
|
|
@@ -50662,10 +50733,54 @@ var SearchBox = function SearchBox(_ref) {
|
|
|
50662
50733
|
fieldActions: actions.fields.searchTerm,
|
|
50663
50734
|
placeholder: placeholder,
|
|
50664
50735
|
disabled: disabled,
|
|
50665
|
-
extraStyles: "\n
|
|
50736
|
+
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 ")
|
|
50666
50737
|
}));
|
|
50667
50738
|
};
|
|
50668
50739
|
|
|
50740
|
+
var _excluded$M = ["width", "height", "color"];
|
|
50741
|
+
var CheckboxCheckmarkIcon = function CheckboxCheckmarkIcon(_ref) {
|
|
50742
|
+
var _ref$width = _ref.width,
|
|
50743
|
+
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
50744
|
+
_ref$height = _ref.height,
|
|
50745
|
+
height = _ref$height === void 0 ? "18" : _ref$height,
|
|
50746
|
+
_ref$color = _ref.color,
|
|
50747
|
+
color = _ref$color === void 0 ? "#FEFEFE" : _ref$color,
|
|
50748
|
+
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
50749
|
+
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
50750
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
50751
|
+
width: width,
|
|
50752
|
+
height: height,
|
|
50753
|
+
viewBox: "0 0 ".concat(width, " ").concat(height),
|
|
50754
|
+
fill: "none"
|
|
50755
|
+
}, props), /*#__PURE__*/React__default.createElement("path", {
|
|
50756
|
+
fillRule: "evenodd",
|
|
50757
|
+
clipRule: "evenodd",
|
|
50758
|
+
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",
|
|
50759
|
+
fill: "#FEFEFE"
|
|
50760
|
+
}), /*#__PURE__*/React__default.createElement("mask", {
|
|
50761
|
+
id: "mask0_3361_1486",
|
|
50762
|
+
style: {
|
|
50763
|
+
maskType: "luminance"
|
|
50764
|
+
},
|
|
50765
|
+
maskUnits: "userSpaceOnUse",
|
|
50766
|
+
x: "4",
|
|
50767
|
+
y: "5",
|
|
50768
|
+
width: "11",
|
|
50769
|
+
height: "9"
|
|
50770
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
50771
|
+
fillRule: "evenodd",
|
|
50772
|
+
clipRule: "evenodd",
|
|
50773
|
+
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",
|
|
50774
|
+
fill: "white"
|
|
50775
|
+
})), /*#__PURE__*/React__default.createElement("g", {
|
|
50776
|
+
mask: "url(#mask0_3361_1486)"
|
|
50777
|
+
}, /*#__PURE__*/React__default.createElement("rect", {
|
|
50778
|
+
width: width,
|
|
50779
|
+
height: height,
|
|
50780
|
+
fill: color
|
|
50781
|
+
})));
|
|
50782
|
+
};
|
|
50783
|
+
|
|
50669
50784
|
var FilterableListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
50670
50785
|
var index = _ref.index,
|
|
50671
50786
|
option = _ref.option,
|
|
@@ -50674,28 +50789,31 @@ var FilterableListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50674
50789
|
disabled = _ref.disabled,
|
|
50675
50790
|
tabIndex = _ref.tabIndex,
|
|
50676
50791
|
name = _ref.name,
|
|
50792
|
+
showDivider = _ref.showDivider,
|
|
50793
|
+
extraStyles = _ref.extraStyles,
|
|
50677
50794
|
themeValues = _ref.themeValues;
|
|
50678
|
-
|
|
50679
|
-
|
|
50795
|
+
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 }");
|
|
50796
|
+
return /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
50680
50797
|
key: index,
|
|
50681
|
-
extraStyles: "\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryColor, ";\n }\n ")
|
|
50682
|
-
}, /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
50683
50798
|
ref: ref,
|
|
50684
50799
|
title: option.name,
|
|
50685
50800
|
name: option.name,
|
|
50801
|
+
role: "option",
|
|
50802
|
+
"aria-selected": checked,
|
|
50803
|
+
tabIndex: tabIndex,
|
|
50804
|
+
dataQa: "".concat(name, "-option-").concat(index),
|
|
50686
50805
|
checked: checked,
|
|
50687
50806
|
onChange: function onChange() {
|
|
50688
50807
|
return selectOption(option);
|
|
50689
50808
|
},
|
|
50690
50809
|
textExtraStyles: "font-size: 0.875rem; margin: 0;",
|
|
50691
50810
|
disabled: disabled,
|
|
50692
|
-
extraStyles: "\n
|
|
50693
|
-
checkboxMargin: "0
|
|
50694
|
-
|
|
50695
|
-
|
|
50696
|
-
|
|
50697
|
-
|
|
50698
|
-
}));
|
|
50811
|
+
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 "),
|
|
50812
|
+
checkboxMargin: showDivider ? "0 0 1rem" : "0",
|
|
50813
|
+
hasIconOverride: true,
|
|
50814
|
+
icon: CheckboxCheckmarkIcon,
|
|
50815
|
+
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 ")
|
|
50816
|
+
});
|
|
50699
50817
|
});
|
|
50700
50818
|
|
|
50701
50819
|
var filterItemsList = function filterItemsList(list, searchTerm) {
|
|
@@ -50860,14 +50978,12 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
50860
50978
|
handleKeyDown = _useKeyboardNavigatio.handleKeyDown;
|
|
50861
50979
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
50862
50980
|
id: id,
|
|
50863
|
-
role: "listbox",
|
|
50864
50981
|
padding: "0",
|
|
50865
|
-
|
|
50866
|
-
|
|
50867
|
-
|
|
50868
|
-
padding:
|
|
50869
|
-
|
|
50870
|
-
}, sortedAppliedOptions.map(function (option, index) {
|
|
50982
|
+
role: "listbox",
|
|
50983
|
+
"aria-label": "Filter options container",
|
|
50984
|
+
onKeyDown: handleKeyDown,
|
|
50985
|
+
extraStyles: "\n overflow-y: auto;\n max-height: 250px;\n display: flex;\n flex-flow: column;\n padding-bottom: 0.5rem;\n "
|
|
50986
|
+
}, (sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length) > 0 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, sortedAppliedOptions.map(function (option, index) {
|
|
50871
50987
|
var checked = isChecked(option, selectedOptions);
|
|
50872
50988
|
var tabIndex = index === focusedIndex || index === 0 && focusedIndex === -1 ? "0" : "-1";
|
|
50873
50989
|
return /*#__PURE__*/React__default.createElement(FilterableListItem, {
|
|
@@ -50881,9 +50997,10 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
50881
50997
|
selectOption: handleSelectOption,
|
|
50882
50998
|
tabIndex: tabIndex,
|
|
50883
50999
|
name: name,
|
|
50884
|
-
themeValues: themeValues
|
|
51000
|
+
themeValues: themeValues,
|
|
51001
|
+
showDivider: sortedOptions.length > 0 && index === sortedAppliedOptions.length - 1
|
|
50885
51002
|
});
|
|
50886
|
-
})), sortedOptions.map(function (option, index) {
|
|
51003
|
+
})), /*#__PURE__*/React__default.createElement(React__default.Fragment, null, sortedOptions.map(function (option, index) {
|
|
50887
51004
|
var checked = isChecked(option, selectedOptions);
|
|
50888
51005
|
var isDisabled = isMaxSelectionReached(maxSelections, selectedOptions) && !checked;
|
|
50889
51006
|
var indexOffset = sortedAppliedOptions !== null && sortedAppliedOptions !== void 0 && sortedAppliedOptions.length ? sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length : 0;
|
|
@@ -50903,7 +51020,7 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
50903
51020
|
name: name,
|
|
50904
51021
|
themeValues: themeValues
|
|
50905
51022
|
});
|
|
50906
|
-
}));
|
|
51023
|
+
})));
|
|
50907
51024
|
};
|
|
50908
51025
|
var FilterableList$1 = /*#__PURE__*/React__default.memo(FilterableList);
|
|
50909
51026
|
|
|
@@ -50911,7 +51028,9 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50911
51028
|
var actions = _ref.actions,
|
|
50912
51029
|
autocompleteValue = _ref.autocompleteValue,
|
|
50913
51030
|
btnContentOverride = _ref.btnContentOverride,
|
|
51031
|
+
btnExtraStyles = _ref.btnExtraStyles,
|
|
50914
51032
|
disabled = _ref.disabled,
|
|
51033
|
+
dropdownExtraStyles = _ref.dropdownExtraStyles,
|
|
50915
51034
|
extraStyles = _ref.extraStyles,
|
|
50916
51035
|
fields = _ref.fields,
|
|
50917
51036
|
filterLabel = _ref.filterLabel,
|
|
@@ -50930,8 +51049,6 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50930
51049
|
placeholder = _ref$placeholder === void 0 ? "Search" : _ref$placeholder,
|
|
50931
51050
|
_ref$searchable = _ref.searchable,
|
|
50932
51051
|
searchable = _ref$searchable === void 0 ? true : _ref$searchable,
|
|
50933
|
-
selectedOptions = _ref.selectedOptions,
|
|
50934
|
-
setSelectedOptions = _ref.setSelectedOptions,
|
|
50935
51052
|
themeValues = _ref.themeValues,
|
|
50936
51053
|
_ref$truncateBtnTextW = _ref.truncateBtnTextWidth,
|
|
50937
51054
|
truncateBtnTextWidth = _ref$truncateBtnTextW === void 0 ? "15rem" : _ref$truncateBtnTextW;
|
|
@@ -50941,22 +51058,29 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50941
51058
|
setOpened = _useState2[1];
|
|
50942
51059
|
var _useState3 = React.useState([]),
|
|
50943
51060
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
50944
|
-
|
|
50945
|
-
|
|
50946
|
-
var
|
|
50947
|
-
|
|
50948
|
-
|
|
50949
|
-
|
|
51061
|
+
selectedOptions = _useState4[0],
|
|
51062
|
+
setSelectedOptions = _useState4[1];
|
|
51063
|
+
var _useState5 = React.useState([]),
|
|
51064
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
51065
|
+
appliedOptions = _useState6[0],
|
|
51066
|
+
setAppliedOptions = _useState6[1];
|
|
51067
|
+
var openedRef = React.useRef(opened);
|
|
51068
|
+
var handleOnClose = function handleOnClose() {
|
|
51069
|
+
if (openedRef.current) {
|
|
51070
|
+
setOpened(false);
|
|
51071
|
+
actions.fields.searchTerm.set("");
|
|
51072
|
+
}
|
|
50950
51073
|
};
|
|
50951
51074
|
var containerRef = useOutsideClickHook(function () {
|
|
50952
|
-
return
|
|
51075
|
+
return handleOnClose();
|
|
50953
51076
|
});
|
|
50954
51077
|
var dropdownRef = React.useRef(null);
|
|
50955
51078
|
var filterButtonRef = React.useRef(null);
|
|
50956
51079
|
var applyFilterButtonRef = React.useRef(null);
|
|
50957
51080
|
var filterDropdownID = "".concat(name, "-filter-dropdown");
|
|
50958
|
-
var
|
|
51081
|
+
var listGroupID = "".concat(name, "-list-group");
|
|
50959
51082
|
React.useEffect(function () {
|
|
51083
|
+
openedRef.current = opened;
|
|
50960
51084
|
if (!opened) {
|
|
50961
51085
|
onApply(selectedOptions);
|
|
50962
51086
|
setAppliedOptions(selectedOptions);
|
|
@@ -50973,9 +51097,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50973
51097
|
or tabbing backward past the filter button.
|
|
50974
51098
|
*/
|
|
50975
51099
|
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)) {
|
|
50976
|
-
|
|
50977
|
-
actions.fields.searchTerm.set("");
|
|
50978
|
-
onApply(selectedOptions);
|
|
51100
|
+
handleOnClose();
|
|
50979
51101
|
}
|
|
50980
51102
|
};
|
|
50981
51103
|
document.addEventListener("keydown", handleKeyDown);
|
|
@@ -50994,20 +51116,25 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50994
51116
|
setOpened(!opened);
|
|
50995
51117
|
},
|
|
50996
51118
|
opened: opened,
|
|
50997
|
-
|
|
50998
|
-
|
|
51119
|
+
backgroundHoverColor: appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length ? themeValues.secondaryHoverColor : themeValues.primaryHoverColor,
|
|
51120
|
+
backgroundColor: appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length ? themeValues.secondaryColor : themeValues.primaryColor,
|
|
51121
|
+
textColor: appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length ? WHITE : CHARADE_GREY,
|
|
51122
|
+
textHoverColor: opened && !(appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length) ? CHARADE_GREY : WHITE,
|
|
50999
51123
|
name: name,
|
|
51000
51124
|
filterDropdownID: filterDropdownID,
|
|
51001
51125
|
hasIcon: hasIcon,
|
|
51002
51126
|
icon: Icon,
|
|
51003
51127
|
truncateBtnTextWidth: truncateBtnTextWidth,
|
|
51004
51128
|
filterLabel: filterLabel,
|
|
51005
|
-
selectedOptions: selectedOptions
|
|
51129
|
+
selectedOptions: selectedOptions,
|
|
51130
|
+
extraStyles: btnExtraStyles
|
|
51006
51131
|
}), /*#__PURE__*/React__default.createElement(FilterDropdown, {
|
|
51007
51132
|
id: filterDropdownID,
|
|
51008
51133
|
ref: dropdownRef,
|
|
51009
|
-
ariaOwns:
|
|
51010
|
-
|
|
51134
|
+
ariaOwns: listGroupID,
|
|
51135
|
+
ariaControls: listGroupID,
|
|
51136
|
+
opened: opened,
|
|
51137
|
+
extraStyles: dropdownExtraStyles
|
|
51011
51138
|
}, /*#__PURE__*/React__default.createElement(SearchBox, {
|
|
51012
51139
|
showSearchBox: searchable && (options === null || options === void 0 ? void 0 : options.length) > 8,
|
|
51013
51140
|
autocompleteValue: autocompleteValue,
|
|
@@ -51016,7 +51143,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
51016
51143
|
placeholder: placeholder,
|
|
51017
51144
|
disabled: disabled
|
|
51018
51145
|
}), /*#__PURE__*/React__default.createElement(FilterableList$1, {
|
|
51019
|
-
id:
|
|
51146
|
+
id: listGroupID,
|
|
51020
51147
|
options: options,
|
|
51021
51148
|
appliedOptions: appliedOptions,
|
|
51022
51149
|
themeValues: themeValues,
|
|
@@ -51030,22 +51157,21 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
51030
51157
|
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 ")
|
|
51031
51158
|
}, /*#__PURE__*/React__default.createElement(ActionLinkButton, {
|
|
51032
51159
|
action: function action() {
|
|
51033
|
-
setOpened(false);
|
|
51034
51160
|
setSelectedOptions([]);
|
|
51035
|
-
|
|
51161
|
+
handleOnClose();
|
|
51036
51162
|
onClear();
|
|
51037
51163
|
},
|
|
51038
51164
|
text: "Clear",
|
|
51039
|
-
dataQa: "".concat(name, "-clear-filters")
|
|
51165
|
+
dataQa: "".concat(name, "-clear-filters"),
|
|
51166
|
+
ariaLabel: "Clear all filters"
|
|
51040
51167
|
}), /*#__PURE__*/React__default.createElement(ActionLinkButton, {
|
|
51041
51168
|
ref: applyFilterButtonRef,
|
|
51042
51169
|
action: function action() {
|
|
51043
|
-
|
|
51044
|
-
actions.fields.searchTerm.set("");
|
|
51045
|
-
onApply(selectedOptions);
|
|
51170
|
+
return handleOnClose();
|
|
51046
51171
|
},
|
|
51047
51172
|
text: "Apply",
|
|
51048
|
-
dataQa: "".concat(name, "-apply-filters")
|
|
51173
|
+
dataQa: "".concat(name, "-apply-filters"),
|
|
51174
|
+
ariaLabel: "Apply all filters"
|
|
51049
51175
|
}))));
|
|
51050
51176
|
};
|
|
51051
51177
|
var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$_);
|
|
@@ -51482,11 +51608,13 @@ exports.PaymentFormCard = PaymentFormCard$1;
|
|
|
51482
51608
|
exports.PaymentMethodAddIcon = PaymentMethodAddIcon$1;
|
|
51483
51609
|
exports.PaymentMethodIcon = PaymentMethodIcon$1;
|
|
51484
51610
|
exports.PaymentSearchIcon = PaymentSearchIcon;
|
|
51611
|
+
exports.PaymentStatusIcon = PaymentStatusIcon;
|
|
51485
51612
|
exports.PaymentsIconSmall = PaymentsIconSmall$1;
|
|
51486
51613
|
exports.PencilIcon = PencilIcon$1;
|
|
51487
51614
|
exports.PendingIcon = PendingIcon;
|
|
51488
51615
|
exports.PeriscopeDashboardIframe = PeriscopeDashboardIframe;
|
|
51489
51616
|
exports.PeriscopeFailedIcon = PeriscopeFailedIcon;
|
|
51617
|
+
exports.PersonIcon = PersonIcon;
|
|
51490
51618
|
exports.PhoneForm = PhoneForm;
|
|
51491
51619
|
exports.Placeholder = Placeholder$1;
|
|
51492
51620
|
exports.PlusCircleIcon = PlusCircleIcon;
|