@thecb/components 10.12.5-beta.0 → 10.12.5-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 +258 -127
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +257 -128
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/card/CardText.js +9 -3
- package/src/components/atoms/checkbox/Checkbox.js +22 -9
- package/src/components/atoms/checkbox/Checkbox.stories.js +17 -13
- package/src/components/atoms/checkbox/Checkbox.theme.js +6 -2
- package/src/components/atoms/icons/CheckboxCheckmarkIcon.js +45 -0
- package/src/components/atoms/icons/PaymentStatusIcon.d.ts +1 -0
- package/src/components/atoms/icons/PaymentStatusIcon.js +28 -0
- package/src/components/atoms/icons/PersonIcon.d.ts +1 -0
- package/src/components/atoms/icons/PersonIcon.js +28 -0
- package/src/components/atoms/icons/icons.stories.js +5 -1
- package/src/components/atoms/icons/index.js +5 -1
- package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.js +33 -25
- package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.stories.js +2 -4
- package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.styled.js +15 -7
- package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.theme.js +7 -3
- package/src/components/molecules/multiple-select-filter/__private__/ActionLinkButton.js +16 -13
- package/src/components/molecules/multiple-select-filter/__private__/FilterButton.js +24 -14
- package/src/components/molecules/multiple-select-filter/__private__/FilterDropdown.js +22 -18
- package/src/components/molecules/multiple-select-filter/__private__/FilterableList.js +43 -41
- package/src/components/molecules/multiple-select-filter/__private__/FilterableListItem.js +52 -41
- package/src/components/molecules/multiple-select-filter/__private__/SearchBox.js +10 -7
- package/src/components/molecules/multiple-select-filter/index.d.ts +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -18597,6 +18597,52 @@ var AgencyIcon = function AgencyIcon(_ref) {
|
|
|
18597
18597
|
})));
|
|
18598
18598
|
};
|
|
18599
18599
|
|
|
18600
|
+
var _excluded$m = ["width", "height", "color"];
|
|
18601
|
+
var PersonIcon = function PersonIcon(_ref) {
|
|
18602
|
+
var _ref$width = _ref.width,
|
|
18603
|
+
width = _ref$width === void 0 ? "20" : _ref$width,
|
|
18604
|
+
_ref$height = _ref.height,
|
|
18605
|
+
height = _ref$height === void 0 ? "21" : _ref$height,
|
|
18606
|
+
_ref$color = _ref.color,
|
|
18607
|
+
color = _ref$color === void 0 ? CHARADE_GREY : _ref$color,
|
|
18608
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
18609
|
+
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
18610
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18611
|
+
width: width,
|
|
18612
|
+
height: height,
|
|
18613
|
+
viewBox: "0 0 ".concat(width, " ").concat(height),
|
|
18614
|
+
fill: "none"
|
|
18615
|
+
}, props), /*#__PURE__*/React__default.createElement("path", {
|
|
18616
|
+
fillRule: "evenodd",
|
|
18617
|
+
clipRule: "evenodd",
|
|
18618
|
+
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",
|
|
18619
|
+
fill: color
|
|
18620
|
+
}));
|
|
18621
|
+
};
|
|
18622
|
+
|
|
18623
|
+
var _excluded$n = ["width", "height", "color"];
|
|
18624
|
+
var PaymentStatusIcon = function PaymentStatusIcon(_ref) {
|
|
18625
|
+
var _ref$width = _ref.width,
|
|
18626
|
+
width = _ref$width === void 0 ? "20" : _ref$width,
|
|
18627
|
+
_ref$height = _ref.height,
|
|
18628
|
+
height = _ref$height === void 0 ? "21" : _ref$height,
|
|
18629
|
+
_ref$color = _ref.color,
|
|
18630
|
+
color = _ref$color === void 0 ? CHARADE_GREY : _ref$color,
|
|
18631
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
18632
|
+
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
18633
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18634
|
+
width: width,
|
|
18635
|
+
height: height,
|
|
18636
|
+
viewBox: "0 0 ".concat(width, " ").concat(height),
|
|
18637
|
+
fill: "none"
|
|
18638
|
+
}, props), /*#__PURE__*/React__default.createElement("path", {
|
|
18639
|
+
fillRule: "evenodd",
|
|
18640
|
+
clipRule: "evenodd",
|
|
18641
|
+
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",
|
|
18642
|
+
fill: color
|
|
18643
|
+
}));
|
|
18644
|
+
};
|
|
18645
|
+
|
|
18600
18646
|
var color$2 = "#15749D";
|
|
18601
18647
|
var hoverColor$1 = "#116285";
|
|
18602
18648
|
var activeColor$1 = "#0E506D";
|
|
@@ -19250,7 +19296,7 @@ var mobileFallbackValues = {
|
|
|
19250
19296
|
};
|
|
19251
19297
|
var MOBILE_BREAKPOINT = 768;
|
|
19252
19298
|
|
|
19253
|
-
var _excluded$
|
|
19299
|
+
var _excluded$o = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
19254
19300
|
|
|
19255
19301
|
/*
|
|
19256
19302
|
New responsive text component for Title elements
|
|
@@ -19297,7 +19343,7 @@ var Title = function Title(_ref) {
|
|
|
19297
19343
|
as = _ref$as === void 0 ? "h1" : _ref$as,
|
|
19298
19344
|
dataQa = _ref.dataQa,
|
|
19299
19345
|
children = _ref.children,
|
|
19300
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
19346
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
19301
19347
|
return /*#__PURE__*/React__default.createElement(TitleText, _extends({
|
|
19302
19348
|
variant: variant,
|
|
19303
19349
|
as: as,
|
|
@@ -20725,12 +20771,12 @@ var fallbackValues$8 = {
|
|
|
20725
20771
|
linkColor: linkColor
|
|
20726
20772
|
};
|
|
20727
20773
|
|
|
20728
|
-
var _excluded$
|
|
20774
|
+
var _excluded$p = ["variant", "themeValues", "children"];
|
|
20729
20775
|
var BoxWithShadow = function BoxWithShadow(_ref) {
|
|
20730
20776
|
var variant = _ref.variant,
|
|
20731
20777
|
themeValues = _ref.themeValues,
|
|
20732
20778
|
children = _ref.children,
|
|
20733
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20779
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
20734
20780
|
var shadowRegistry = {
|
|
20735
20781
|
baseStandard: "0px 3px 7px 2px ".concat(rgba$1(BLACK, 0.1), ", 0px 1px 2px 1px ").concat(rgba$1(BLACK, 0.1), ";"),
|
|
20736
20782
|
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), ";"),
|
|
@@ -20790,7 +20836,7 @@ var fallbackValues$a = {
|
|
|
20790
20836
|
externalLinkColor: externalLinkColor
|
|
20791
20837
|
};
|
|
20792
20838
|
|
|
20793
|
-
var _excluded$
|
|
20839
|
+
var _excluded$q = ["hoverColor", "activeColor", "extrastyles"];
|
|
20794
20840
|
var ROYAL_BLUE$1 = ROYAL_BLUE;
|
|
20795
20841
|
var LINK_TEXT_DECORATION$3 = LINK_TEXT_DECORATION;
|
|
20796
20842
|
|
|
@@ -20804,7 +20850,7 @@ var StyledExternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
20804
20850
|
var hoverColor = _ref.hoverColor,
|
|
20805
20851
|
activeColor = _ref.activeColor,
|
|
20806
20852
|
extrastyles = _ref.extrastyles,
|
|
20807
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20853
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
20808
20854
|
return /*#__PURE__*/React__default.createElement("a", _extends({}, props, {
|
|
20809
20855
|
ref: ref
|
|
20810
20856
|
}));
|
|
@@ -20879,7 +20925,7 @@ var ExternalLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
20879
20925
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
20880
20926
|
});
|
|
20881
20927
|
|
|
20882
|
-
var _excluded$
|
|
20928
|
+
var _excluded$r = ["hoverColor", "activeColor", "active", "color", "extrastyles"];
|
|
20883
20929
|
var ROYAL_BLUE$2 = ROYAL_BLUE;
|
|
20884
20930
|
var LINK_TEXT_DECORATION$4 = LINK_TEXT_DECORATION;
|
|
20885
20931
|
|
|
@@ -20895,7 +20941,7 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
20895
20941
|
active = _ref.active,
|
|
20896
20942
|
color = _ref.color,
|
|
20897
20943
|
extrastyles = _ref.extrastyles,
|
|
20898
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20944
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
20899
20945
|
return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, _extends({}, props, {
|
|
20900
20946
|
ref: ref
|
|
20901
20947
|
}));
|
|
@@ -22578,7 +22624,7 @@ _curry2(function test(pattern, str) {
|
|
|
22578
22624
|
return _cloneRegExp(pattern).test(str);
|
|
22579
22625
|
});
|
|
22580
22626
|
|
|
22581
|
-
var _excluded$
|
|
22627
|
+
var _excluded$s = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
|
|
22582
22628
|
var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
22583
22629
|
var _ref$url = _ref.url,
|
|
22584
22630
|
url = _ref$url === void 0 ? "/" : _ref$url,
|
|
@@ -22593,7 +22639,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
22593
22639
|
_ref$newTab = _ref.newTab,
|
|
22594
22640
|
newTab = _ref$newTab === void 0 ? false : _ref$newTab,
|
|
22595
22641
|
dataQa = _ref.dataQa,
|
|
22596
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
22642
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$s);
|
|
22597
22643
|
var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
|
|
22598
22644
|
var children = _ref2.children,
|
|
22599
22645
|
url = _ref2.url,
|
|
@@ -22681,7 +22727,7 @@ var ParagraphText = styled__default.p.withConfig({
|
|
|
22681
22727
|
return extraStyles;
|
|
22682
22728
|
});
|
|
22683
22729
|
|
|
22684
|
-
var _excluded$
|
|
22730
|
+
var _excluded$t = ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children", "as"];
|
|
22685
22731
|
var Paragraph = function Paragraph(_ref) {
|
|
22686
22732
|
var themeValues = _ref.themeValues,
|
|
22687
22733
|
_ref$weight = _ref.weight,
|
|
@@ -22695,7 +22741,7 @@ var Paragraph = function Paragraph(_ref) {
|
|
|
22695
22741
|
dataQa = _ref.dataQa,
|
|
22696
22742
|
children = _ref.children,
|
|
22697
22743
|
as = _ref.as,
|
|
22698
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22744
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
22699
22745
|
return /*#__PURE__*/React__default.createElement(ParagraphText, _extends({
|
|
22700
22746
|
weight: weight,
|
|
22701
22747
|
color: color,
|
|
@@ -22899,7 +22945,7 @@ var errorStyles = {
|
|
|
22899
22945
|
"default": "border: 1px solid ".concat(RED, ";")
|
|
22900
22946
|
};
|
|
22901
22947
|
var focusedStyles = {
|
|
22902
|
-
"default": "
|
|
22948
|
+
"default": "\n outline: 3px solid ".concat(ROYAL_BLUE, "; \n outline-offset: 3px;\n ")
|
|
22903
22949
|
};
|
|
22904
22950
|
var disabledCheckedStyles = {
|
|
22905
22951
|
"default": "\n background: #6d717e;\n border: 1px solid #6d717e;\n"
|
|
@@ -22937,7 +22983,7 @@ var ENTER = 13;
|
|
|
22937
22983
|
var ESCAPE = 27;
|
|
22938
22984
|
var SPACEBAR = 32;
|
|
22939
22985
|
|
|
22940
|
-
var _excluded$
|
|
22986
|
+
var _excluded$u = ["title", "name", "checked", "onChange", "disabled", "themeValues", "hidden", "error", "checkboxMargin", "extraStyles", "textExtraStyles", "labelledById", "dataQa", "checkboxExtraStyles", "hasIconOverride", "icon"];
|
|
22941
22987
|
var CheckboxContainer = styled__default.span.withConfig({
|
|
22942
22988
|
displayName: "Checkbox__CheckboxContainer",
|
|
22943
22989
|
componentId: "sc-36kqbv-0"
|
|
@@ -22945,7 +22991,7 @@ var CheckboxContainer = styled__default.span.withConfig({
|
|
|
22945
22991
|
var CheckboxLabelContainer = styled__default.label.withConfig({
|
|
22946
22992
|
displayName: "Checkbox__CheckboxLabelContainer",
|
|
22947
22993
|
componentId: "sc-36kqbv-1"
|
|
22948
|
-
})(["display:flex;align-items:center;column-gap:1rem;"]);
|
|
22994
|
+
})(["display:flex;align-items:center;column-gap:1rem;cursor:pointer;"]);
|
|
22949
22995
|
var CheckboxIcon = styled__default.svg.withConfig({
|
|
22950
22996
|
displayName: "Checkbox__CheckboxIcon",
|
|
22951
22997
|
componentId: "sc-36kqbv-2"
|
|
@@ -23004,7 +23050,10 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
|
|
|
23004
23050
|
_ref5$dataQa = _ref5.dataQa,
|
|
23005
23051
|
dataQa = _ref5$dataQa === void 0 ? null : _ref5$dataQa,
|
|
23006
23052
|
checkboxExtraStyles = _ref5.checkboxExtraStyles,
|
|
23007
|
-
|
|
23053
|
+
_ref5$hasIconOverride = _ref5.hasIconOverride,
|
|
23054
|
+
hasIconOverride = _ref5$hasIconOverride === void 0 ? false : _ref5$hasIconOverride,
|
|
23055
|
+
Icon = _ref5.icon,
|
|
23056
|
+
rest = _objectWithoutProperties(_ref5, _excluded$u);
|
|
23008
23057
|
var _useState = React.useState(false),
|
|
23009
23058
|
_useState2 = _slicedToArray(_useState, 2),
|
|
23010
23059
|
focused = _useState2[0],
|
|
@@ -23032,7 +23081,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
|
|
|
23032
23081
|
},
|
|
23033
23082
|
hiddenStyles: hidden,
|
|
23034
23083
|
background: themeValues.backgroundColor,
|
|
23035
|
-
extraStyles: "outline:
|
|
23084
|
+
extraStyles: "\n :focus {\n outline: 0;\n }\n ".concat(extraStyles, "; \n margin: ").concat(checkboxMargin, ";\n ")
|
|
23036
23085
|
}, rest), /*#__PURE__*/React__default.createElement(CheckboxLabelContainer, {
|
|
23037
23086
|
"data-qa": dataQa
|
|
23038
23087
|
}, /*#__PURE__*/React__default.createElement(CheckboxContainer, {
|
|
@@ -23062,7 +23111,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
|
|
|
23062
23111
|
disabledCheckedStyles: themeValues.disabledCheckedStyles,
|
|
23063
23112
|
focusedStyles: themeValues.focusedStyles,
|
|
23064
23113
|
checkboxExtraStyles: checkboxExtraStyles
|
|
23065
|
-
}, /*#__PURE__*/React__default.createElement(CheckboxIcon, {
|
|
23114
|
+
}, hasIconOverride ? /*#__PURE__*/React__default.createElement(Icon, null) : /*#__PURE__*/React__default.createElement(CheckboxIcon, {
|
|
23066
23115
|
viewBox: "0 0 24 24",
|
|
23067
23116
|
disabled: disabled,
|
|
23068
23117
|
disabledCheckColor: themeValues.disabledCheckColor,
|
|
@@ -23360,7 +23409,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
|
|
|
23360
23409
|
return extraStyles;
|
|
23361
23410
|
});
|
|
23362
23411
|
|
|
23363
|
-
var _excluded$
|
|
23412
|
+
var _excluded$v = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
23364
23413
|
var TableRow = function TableRow(_ref) {
|
|
23365
23414
|
var children = _ref.children,
|
|
23366
23415
|
extraStyles = _ref.extraStyles,
|
|
@@ -23369,7 +23418,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
23369
23418
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
23370
23419
|
onClick = _ref.onClick,
|
|
23371
23420
|
themeValues = _ref.themeValues,
|
|
23372
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
23421
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
23373
23422
|
return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
|
|
23374
23423
|
onClick: onClick,
|
|
23375
23424
|
hoverEffect: hoverEffect,
|
|
@@ -26203,7 +26252,7 @@ var mobileFallbackValues$1 = {
|
|
|
26203
26252
|
};
|
|
26204
26253
|
var MOBILE_BREAKPOINT$1 = 768;
|
|
26205
26254
|
|
|
26206
|
-
var _excluded$
|
|
26255
|
+
var _excluded$w = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
26207
26256
|
|
|
26208
26257
|
/*
|
|
26209
26258
|
New responsive text component for Detail elements
|
|
@@ -26253,7 +26302,7 @@ var Detail = function Detail(_ref) {
|
|
|
26253
26302
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
26254
26303
|
dataQa = _ref.dataQa,
|
|
26255
26304
|
children = _ref.children,
|
|
26256
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26305
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
26257
26306
|
return /*#__PURE__*/React__default.createElement(DetailText, _extends({
|
|
26258
26307
|
variant: variant,
|
|
26259
26308
|
as: as,
|
|
@@ -26991,7 +27040,7 @@ var fallbackValues$n = {
|
|
|
26991
27040
|
formFooterPanel: formFooterPanel
|
|
26992
27041
|
};
|
|
26993
27042
|
|
|
26994
|
-
var _excluded$
|
|
27043
|
+
var _excluded$x = ["showErrors", "themeValues"],
|
|
26995
27044
|
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired", "errorFieldExtraStyles", "showFieldErrorRow", "labelTextVariant", "errorTextVariant"];
|
|
26996
27045
|
var InputField = styled__default.input.withConfig({
|
|
26997
27046
|
displayName: "FormInput__InputField",
|
|
@@ -27026,7 +27075,7 @@ var InputField = styled__default.input.withConfig({
|
|
|
27026
27075
|
var FormattedInputField = styled__default(function (_ref8) {
|
|
27027
27076
|
var showErrors = _ref8.showErrors,
|
|
27028
27077
|
themeValues = _ref8.themeValues,
|
|
27029
|
-
props = _objectWithoutProperties(_ref8, _excluded$
|
|
27078
|
+
props = _objectWithoutProperties(_ref8, _excluded$x);
|
|
27030
27079
|
return /*#__PURE__*/React__default.createElement(FormattedInput, props);
|
|
27031
27080
|
}).withConfig({
|
|
27032
27081
|
displayName: "FormInput__FormattedInputField",
|
|
@@ -27231,7 +27280,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
27231
27280
|
};
|
|
27232
27281
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$n, "default");
|
|
27233
27282
|
|
|
27234
|
-
var _excluded$
|
|
27283
|
+
var _excluded$y = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
27235
27284
|
var FormInputRow = function FormInputRow(_ref) {
|
|
27236
27285
|
var _ref$breakpoint = _ref.breakpoint,
|
|
27237
27286
|
breakpoint = _ref$breakpoint === void 0 ? "30rem" : _ref$breakpoint,
|
|
@@ -27240,7 +27289,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
27240
27289
|
largeChild = _ref.largeChild,
|
|
27241
27290
|
largeChildSize = _ref.largeChildSize,
|
|
27242
27291
|
children = _ref.children,
|
|
27243
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27292
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
27244
27293
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
27245
27294
|
padding: "0"
|
|
27246
27295
|
}, rest), /*#__PURE__*/React__default.createElement(Switcher, {
|
|
@@ -27251,24 +27300,24 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
27251
27300
|
}, children));
|
|
27252
27301
|
};
|
|
27253
27302
|
|
|
27254
|
-
var _excluded$
|
|
27303
|
+
var _excluded$z = ["childGap", "bottomItem", "children"];
|
|
27255
27304
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
27256
27305
|
var _ref$childGap = _ref.childGap,
|
|
27257
27306
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
27258
27307
|
bottomItem = _ref.bottomItem,
|
|
27259
27308
|
children = _ref.children,
|
|
27260
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27309
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
27261
27310
|
return /*#__PURE__*/React__default.createElement(Stack, _extends({
|
|
27262
27311
|
childGap: childGap,
|
|
27263
27312
|
bottomItem: bottomItem
|
|
27264
27313
|
}, rest), children);
|
|
27265
27314
|
};
|
|
27266
27315
|
|
|
27267
|
-
var _excluded$
|
|
27316
|
+
var _excluded$A = ["themeValues", "children"];
|
|
27268
27317
|
var FormContainer = function FormContainer(_ref) {
|
|
27269
27318
|
var themeValues = _ref.themeValues,
|
|
27270
27319
|
children = _ref.children,
|
|
27271
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27320
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
27272
27321
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
27273
27322
|
isMobile = _useContext.isMobile;
|
|
27274
27323
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
@@ -27578,7 +27627,7 @@ var fallbackValues$r = {
|
|
|
27578
27627
|
fontSize: fontSize$8
|
|
27579
27628
|
};
|
|
27580
27629
|
|
|
27581
|
-
var _excluded$
|
|
27630
|
+
var _excluded$B = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
27582
27631
|
var Heading = function Heading(_ref) {
|
|
27583
27632
|
var themeValues = _ref.themeValues,
|
|
27584
27633
|
_ref$weight = _ref.weight,
|
|
@@ -27597,7 +27646,7 @@ var Heading = function Heading(_ref) {
|
|
|
27597
27646
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
27598
27647
|
dataQa = _ref.dataQa,
|
|
27599
27648
|
children = _ref.children,
|
|
27600
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27649
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
27601
27650
|
return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
|
|
27602
27651
|
variant: variant,
|
|
27603
27652
|
as: as,
|
|
@@ -27798,11 +27847,11 @@ var LabeledAmountV2 = function LabeledAmountV2(_ref) {
|
|
|
27798
27847
|
}, /*#__PURE__*/React__default.createElement("span", null, label), /*#__PURE__*/React__default.createElement("span", null, amount));
|
|
27799
27848
|
};
|
|
27800
27849
|
|
|
27801
|
-
var _excluded$
|
|
27850
|
+
var _excluded$C = ["version"];
|
|
27802
27851
|
var LabeledAmount = function LabeledAmount(_ref) {
|
|
27803
27852
|
var _ref$version = _ref.version,
|
|
27804
27853
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
27805
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27854
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
27806
27855
|
var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
|
|
27807
27856
|
return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
|
|
27808
27857
|
};
|
|
@@ -27947,7 +27996,7 @@ var Loading = function Loading() {
|
|
|
27947
27996
|
})))));
|
|
27948
27997
|
};
|
|
27949
27998
|
|
|
27950
|
-
var _excluded$
|
|
27999
|
+
var _excluded$D = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
27951
28000
|
var NavFooter = function NavFooter(_ref) {
|
|
27952
28001
|
var leftContent = _ref.leftContent,
|
|
27953
28002
|
rightContent = _ref.rightContent,
|
|
@@ -27962,7 +28011,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
27962
28011
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
27963
28012
|
isMobile = _ref.isMobile,
|
|
27964
28013
|
footerWidth = _ref.footerWidth,
|
|
27965
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28014
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
27966
28015
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
27967
28016
|
padding: footerPadding,
|
|
27968
28017
|
background: backgroundColor,
|
|
@@ -27993,7 +28042,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
27993
28042
|
}, rightContent)))))));
|
|
27994
28043
|
};
|
|
27995
28044
|
|
|
27996
|
-
var _excluded$
|
|
28045
|
+
var _excluded$E = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
27997
28046
|
var NavHeader = function NavHeader(_ref) {
|
|
27998
28047
|
var leftContent = _ref.leftContent,
|
|
27999
28048
|
rightContent = _ref.rightContent,
|
|
@@ -28002,7 +28051,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
28002
28051
|
isMobile = _ref.isMobile,
|
|
28003
28052
|
backgroundColor = _ref.backgroundColor,
|
|
28004
28053
|
headerWidth = _ref.headerWidth,
|
|
28005
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28054
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
28006
28055
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
28007
28056
|
padding: "0 16px 4px",
|
|
28008
28057
|
background: backgroundColor,
|
|
@@ -39631,8 +39680,11 @@ var CardText = function CardText(_ref) {
|
|
|
39631
39680
|
themeValues = _ref.themeValues;
|
|
39632
39681
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
39633
39682
|
padding: padding
|
|
39634
|
-
}, /*#__PURE__*/React__default.createElement(Cover, null, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(
|
|
39635
|
-
|
|
39683
|
+
}, /*#__PURE__*/React__default.createElement(Cover, null, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
39684
|
+
justify: "space-between",
|
|
39685
|
+
align: "center",
|
|
39686
|
+
overflow: true,
|
|
39687
|
+
nowrap: true
|
|
39636
39688
|
}, titleText && /*#__PURE__*/React__default.createElement(Title$1, {
|
|
39637
39689
|
as: titleAs,
|
|
39638
39690
|
variant: titleVariant,
|
|
@@ -39647,7 +39699,7 @@ var CardText = function CardText(_ref) {
|
|
|
39647
39699
|
role: "button",
|
|
39648
39700
|
tabIndex: 0,
|
|
39649
39701
|
"aria-label": "Close Card: ".concat(titleText),
|
|
39650
|
-
extraStyles: "
|
|
39702
|
+
extraStyles: "cursor: pointer;"
|
|
39651
39703
|
}, /*#__PURE__*/React__default.createElement(IconQuitLarge, null))), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
39652
39704
|
as: textAs,
|
|
39653
39705
|
color: themeValues.textColor
|
|
@@ -46420,11 +46472,11 @@ var Modal$2 = function Modal(_ref) {
|
|
|
46420
46472
|
};
|
|
46421
46473
|
var ModalControlV2 = withWindowSize(Modal$2);
|
|
46422
46474
|
|
|
46423
|
-
var _excluded$
|
|
46475
|
+
var _excluded$F = ["version"];
|
|
46424
46476
|
var Modal$3 = function Modal(_ref) {
|
|
46425
46477
|
var _ref$version = _ref.version,
|
|
46426
46478
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
46427
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46479
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
46428
46480
|
var ModalControl = version === "v1" ? Modal$1 : ModalControlV2;
|
|
46429
46481
|
return /*#__PURE__*/React__default.createElement(ModalControl, rest);
|
|
46430
46482
|
};
|
|
@@ -47726,7 +47778,7 @@ var fallbackValues$P = {
|
|
|
47726
47778
|
labeledAmountTotal: labeledAmountTotal
|
|
47727
47779
|
};
|
|
47728
47780
|
|
|
47729
|
-
var _excluded$
|
|
47781
|
+
var _excluded$G = ["amount"],
|
|
47730
47782
|
_excluded2$1 = ["amount"];
|
|
47731
47783
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
47732
47784
|
var lineItemElems = _ref.lineItemElems,
|
|
@@ -47969,7 +48021,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47969
48021
|
return fee.amount > 0;
|
|
47970
48022
|
}).map(function (_ref5) {
|
|
47971
48023
|
var amount = _ref5.amount,
|
|
47972
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
48024
|
+
rest = _objectWithoutProperties(_ref5, _excluded$G);
|
|
47973
48025
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
47974
48026
|
amount: displayCurrency(amount)
|
|
47975
48027
|
});
|
|
@@ -48406,11 +48458,11 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48406
48458
|
}, errorMessage))))));
|
|
48407
48459
|
};
|
|
48408
48460
|
|
|
48409
|
-
var _excluded$
|
|
48461
|
+
var _excluded$H = ["version"];
|
|
48410
48462
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48411
48463
|
var _ref$version = _ref.version,
|
|
48412
48464
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48413
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48465
|
+
rest = _objectWithoutProperties(_ref, _excluded$H);
|
|
48414
48466
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48415
48467
|
return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
|
|
48416
48468
|
};
|
|
@@ -49218,7 +49270,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49218
49270
|
}, section.content))));
|
|
49219
49271
|
};
|
|
49220
49272
|
|
|
49221
|
-
var _excluded$
|
|
49273
|
+
var _excluded$I = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections", "borderOverride"];
|
|
49222
49274
|
|
|
49223
49275
|
/**
|
|
49224
49276
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
@@ -49267,7 +49319,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49267
49319
|
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
49268
49320
|
groupedSections = _ref.groupedSections,
|
|
49269
49321
|
borderOverride = _ref.borderOverride,
|
|
49270
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49322
|
+
rest = _objectWithoutProperties(_ref, _excluded$I);
|
|
49271
49323
|
var _useState = React.useState(null),
|
|
49272
49324
|
_useState2 = _slicedToArray(_useState, 2),
|
|
49273
49325
|
focused = _useState2[0],
|
|
@@ -49814,7 +49866,7 @@ var Timeout = function Timeout(_ref) {
|
|
|
49814
49866
|
};
|
|
49815
49867
|
var Timeout$1 = withWindowSize(Timeout);
|
|
49816
49868
|
|
|
49817
|
-
var _excluded$
|
|
49869
|
+
var _excluded$J = ["variant", "message", "toastOpen", "closeToastNotification", "extraStyles", "minWidth", "maxWidth", "height", "childGap", "backgroundColor", "role", "ariaLive", "screenReaderMessage", "showScreenReaderMessage"];
|
|
49818
49870
|
var VARIANTS = {
|
|
49819
49871
|
SUCCESS: "success",
|
|
49820
49872
|
ERROR: "error"
|
|
@@ -49843,7 +49895,7 @@ var ToastNotification = function ToastNotification(_ref) {
|
|
|
49843
49895
|
screenReaderMessage = _ref.screenReaderMessage,
|
|
49844
49896
|
_ref$showScreenReader = _ref.showScreenReaderMessage,
|
|
49845
49897
|
showScreenReaderMessage = _ref$showScreenReader === void 0 ? true : _ref$showScreenReader,
|
|
49846
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49898
|
+
rest = _objectWithoutProperties(_ref, _excluded$J);
|
|
49847
49899
|
var screenReaderMessageRef = React.useRef();
|
|
49848
49900
|
var LIVEREGION_TRANSITION_DELAY = 1000;
|
|
49849
49901
|
React.useEffect(function () {
|
|
@@ -50026,7 +50078,7 @@ var PopupMenuItemContainer = styled__default(ButtonWithAction).withConfig({
|
|
|
50026
50078
|
return "\n background-color: ".concat(isDeleteAction ? theme.menuItemHoverBackgroundColorDelete : theme.menuItemHoverBackgroundColor, ";\n ");
|
|
50027
50079
|
});
|
|
50028
50080
|
|
|
50029
|
-
var _excluded$
|
|
50081
|
+
var _excluded$K = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
|
|
50030
50082
|
var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
50031
50083
|
var id = _ref.id,
|
|
50032
50084
|
closeMenuCallback = _ref.closeMenuCallback,
|
|
@@ -50042,7 +50094,7 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
|
50042
50094
|
hoverStyles = _ref.hoverStyles,
|
|
50043
50095
|
activeStyles = _ref.activeStyles,
|
|
50044
50096
|
extraStyles = _ref.extraStyles,
|
|
50045
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
50097
|
+
rest = _objectWithoutProperties(_ref, _excluded$K);
|
|
50046
50098
|
return /*#__PURE__*/React__default.createElement(PopupMenuItemContainer, _extends({
|
|
50047
50099
|
id: id,
|
|
50048
50100
|
role: "menuItem",
|
|
@@ -50215,20 +50267,21 @@ var PopupMenu = function PopupMenu(_ref) {
|
|
|
50215
50267
|
};
|
|
50216
50268
|
var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$Z);
|
|
50217
50269
|
|
|
50218
|
-
var primaryColor$1 =
|
|
50270
|
+
var primaryColor$1 = WHITE;
|
|
50271
|
+
var primaryHoverColor = INFO_BLUE;
|
|
50219
50272
|
var secondaryColor = MATISSE_BLUE;
|
|
50273
|
+
var secondaryHoverColor = "#115D7E";
|
|
50220
50274
|
var fallbackValues$_ = {
|
|
50221
50275
|
primaryColor: primaryColor$1,
|
|
50222
|
-
|
|
50276
|
+
primaryHoverColor: primaryHoverColor,
|
|
50277
|
+
secondaryColor: secondaryColor,
|
|
50278
|
+
secondaryHoverColor: secondaryHoverColor
|
|
50223
50279
|
};
|
|
50224
50280
|
|
|
50225
50281
|
var StyledFilterContainer = styled__default(Box).withConfig({
|
|
50226
50282
|
displayName: "MultipleSelectFilterstyled__StyledFilterContainer",
|
|
50227
50283
|
componentId: "sc-126xgc2-0"
|
|
50228
|
-
})(["position:relative;box-sizing:border-box;padding:0;"
|
|
50229
|
-
var extraStyles = _ref.extraStyles;
|
|
50230
|
-
return extraStyles;
|
|
50231
|
-
});
|
|
50284
|
+
})(["position:relative;overflow:visible;box-sizing:border-box;padding:0;"]);
|
|
50232
50285
|
var FilterContainer = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
50233
50286
|
return /*#__PURE__*/React__default.createElement(StyledFilterContainer, _extends({
|
|
50234
50287
|
ref: ref
|
|
@@ -50237,7 +50290,7 @@ var FilterContainer = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
50237
50290
|
var StyledFilterDropdown = styled__default(Box).withConfig({
|
|
50238
50291
|
displayName: "MultipleSelectFilterstyled__StyledFilterDropdown",
|
|
50239
50292
|
componentId: "sc-126xgc2-1"
|
|
50240
|
-
})(["position:absolute;top:calc(100% + 0.5rem);left:0;width:
|
|
50293
|
+
})(["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;"]);
|
|
50241
50294
|
var FilterDropdownContainer = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
50242
50295
|
return /*#__PURE__*/React__default.createElement(StyledFilterDropdown, _extends({
|
|
50243
50296
|
ref: ref
|
|
@@ -50246,12 +50299,16 @@ var FilterDropdownContainer = /*#__PURE__*/React.forwardRef(function (props, ref
|
|
|
50246
50299
|
var FilterButton = styled__default(ButtonWithAction).withConfig({
|
|
50247
50300
|
displayName: "MultipleSelectFilterstyled__FilterButton",
|
|
50248
50301
|
componentId: "sc-126xgc2-2"
|
|
50249
|
-
})(["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 (
|
|
50250
|
-
var
|
|
50251
|
-
|
|
50252
|
-
|
|
50253
|
-
|
|
50254
|
-
|
|
50302
|
+
})(["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) {
|
|
50303
|
+
var opened = _ref.opened,
|
|
50304
|
+
textColor = _ref.textColor,
|
|
50305
|
+
textHoverColor = _ref.textHoverColor;
|
|
50306
|
+
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 ");
|
|
50307
|
+
}, function (_ref2) {
|
|
50308
|
+
var opened = _ref2.opened,
|
|
50309
|
+
backgroundColor = _ref2.backgroundColor,
|
|
50310
|
+
backgroundHoverColor = _ref2.backgroundHoverColor;
|
|
50311
|
+
return "\n background-color: ".concat(opened ? backgroundHoverColor : backgroundColor, "; \n :hover,\n :active,\n :focus {\n background-color: ").concat(backgroundHoverColor, ";\n }\n ");
|
|
50255
50312
|
});
|
|
50256
50313
|
var StyledFilterButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
50257
50314
|
return /*#__PURE__*/React__default.createElement(FilterButton, _extends({
|
|
@@ -50262,7 +50319,8 @@ var StyledFilterButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
50262
50319
|
var ActionLinkButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
50263
50320
|
var action = _ref.action,
|
|
50264
50321
|
text = _ref.text,
|
|
50265
|
-
dataQa = _ref.dataQa
|
|
50322
|
+
dataQa = _ref.dataQa,
|
|
50323
|
+
ariaLabel = _ref.ariaLabel;
|
|
50266
50324
|
return /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
50267
50325
|
ref: ref,
|
|
50268
50326
|
action: action,
|
|
@@ -50270,11 +50328,12 @@ var ActionLinkButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50270
50328
|
extraStyles: "\n padding: 0.2rem; \n margin: 0.5rem; \n min-height: auto; \n min-width: auto;\n ",
|
|
50271
50329
|
textExtraStyles: "font-weight: ".concat(FONT_WEIGHT_REGULAR, ";"),
|
|
50272
50330
|
text: text,
|
|
50273
|
-
dataQa: dataQa
|
|
50331
|
+
dataQa: dataQa,
|
|
50332
|
+
"aria-label": ariaLabel
|
|
50274
50333
|
});
|
|
50275
50334
|
});
|
|
50276
50335
|
|
|
50277
|
-
var _excluded$
|
|
50336
|
+
var _excluded$L = ["width", "height", "color"];
|
|
50278
50337
|
var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
50279
50338
|
var _ref$width = _ref.width,
|
|
50280
50339
|
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
@@ -50282,7 +50341,7 @@ var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
|
50282
50341
|
height = _ref$height === void 0 ? "19" : _ref$height,
|
|
50283
50342
|
_ref$color = _ref.color,
|
|
50284
50343
|
color = _ref$color === void 0 ? "#292A33" : _ref$color,
|
|
50285
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
50344
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
50286
50345
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
50287
50346
|
width: width,
|
|
50288
50347
|
height: height,
|
|
@@ -50328,7 +50387,9 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50328
50387
|
action = _ref$action === void 0 ? noop$1 : _ref$action,
|
|
50329
50388
|
opened = _ref.opened,
|
|
50330
50389
|
backgroundColor = _ref.backgroundColor,
|
|
50331
|
-
|
|
50390
|
+
backgroundHoverColor = _ref.backgroundHoverColor,
|
|
50391
|
+
textColor = _ref.textColor,
|
|
50392
|
+
textHoverColor = _ref.textHoverColor,
|
|
50332
50393
|
name = _ref.name,
|
|
50333
50394
|
filterDropdownID = _ref.filterDropdownID,
|
|
50334
50395
|
_ref$hasIcon = _ref.hasIcon,
|
|
@@ -50336,7 +50397,10 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50336
50397
|
Icon = _ref.icon,
|
|
50337
50398
|
truncateBtnTextWidth = _ref.truncateBtnTextWidth,
|
|
50338
50399
|
filterLabel = _ref.filterLabel,
|
|
50339
|
-
selectedOptions = _ref.selectedOptions
|
|
50400
|
+
selectedOptions = _ref.selectedOptions,
|
|
50401
|
+
extraStyles = _ref.extraStyles;
|
|
50402
|
+
var btnTextFilterDescription = selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? "".concat(filterLabel ? "".concat(filterLabel, ": ") : "").concat(selectedOptions[0].name) : "".concat(filterLabel ? filterLabel : "");
|
|
50403
|
+
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") : "";
|
|
50340
50404
|
return /*#__PURE__*/React__default.createElement(StyledFilterButton, {
|
|
50341
50405
|
ref: ref,
|
|
50342
50406
|
variant: "tertiary",
|
|
@@ -50345,7 +50409,13 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50345
50409
|
"aria-expanded": opened,
|
|
50346
50410
|
"aria-controls": filterDropdownID,
|
|
50347
50411
|
backgroundColor: backgroundColor,
|
|
50412
|
+
backgroundHoverColor: backgroundHoverColor,
|
|
50413
|
+
textColor: textColor,
|
|
50414
|
+
textHoverColor: textHoverColor,
|
|
50415
|
+
opened: opened,
|
|
50348
50416
|
dataQa: "".concat(name, "-filter-button"),
|
|
50417
|
+
extraStyles: extraStyles,
|
|
50418
|
+
"aria-label": "".concat(filterLabel, " Filter: ").concat(btnTextFilterDescription, " ").concat(btnTextItemsDescription),
|
|
50349
50419
|
contentOverride: true
|
|
50350
50420
|
}, btnContentOverride ? btnContentOverride : /*#__PURE__*/React__default.createElement(Center, {
|
|
50351
50421
|
as: "span",
|
|
@@ -50355,7 +50425,7 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50355
50425
|
},
|
|
50356
50426
|
intrinsic: true
|
|
50357
50427
|
}, hasIcon && /*#__PURE__*/React__default.createElement(Icon, {
|
|
50358
|
-
color:
|
|
50428
|
+
color: opened ? textHoverColor : textColor
|
|
50359
50429
|
}), /*#__PURE__*/React__default.createElement(Center, {
|
|
50360
50430
|
as: "span",
|
|
50361
50431
|
style: {
|
|
@@ -50366,20 +50436,22 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50366
50436
|
intrinsic: true
|
|
50367
50437
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
50368
50438
|
variant: "pS",
|
|
50369
|
-
color:
|
|
50439
|
+
color: opened ? textHoverColor : textColor,
|
|
50370
50440
|
extraStyles: "\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n ".concat(truncateBtnTextWidth && "max-width:" + truncateBtnTextWidth, "\n ")
|
|
50371
|
-
},
|
|
50372
|
-
color:
|
|
50441
|
+
}, btnTextFilterDescription), /*#__PURE__*/React__default.createElement(Text$1, {
|
|
50442
|
+
color: opened ? textHoverColor : textColor,
|
|
50373
50443
|
variant: "pS"
|
|
50374
|
-
},
|
|
50375
|
-
color:
|
|
50444
|
+
}, btnTextItemsDescription)), /*#__PURE__*/React__default.createElement(DropdownIconV2, {
|
|
50445
|
+
color: opened ? textHoverColor : textColor
|
|
50376
50446
|
})));
|
|
50377
50447
|
});
|
|
50378
50448
|
|
|
50379
50449
|
var FilterDropdown = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
50380
50450
|
var id = _ref.id,
|
|
50381
50451
|
ariaOwns = _ref.ariaOwns,
|
|
50452
|
+
ariaControls = _ref.ariaControls,
|
|
50382
50453
|
opened = _ref.opened,
|
|
50454
|
+
extraStyles = _ref.extraStyles,
|
|
50383
50455
|
children = _ref.children;
|
|
50384
50456
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, opened && /*#__PURE__*/React__default.createElement(FilterDropdownContainer, {
|
|
50385
50457
|
ref: ref,
|
|
@@ -50387,7 +50459,9 @@ var FilterDropdown = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50387
50459
|
role: "combobox",
|
|
50388
50460
|
"aria-expanded": opened,
|
|
50389
50461
|
"aria-haspopup": "listbox",
|
|
50390
|
-
"aria-owns": ariaOwns
|
|
50462
|
+
"aria-owns": ariaOwns,
|
|
50463
|
+
"aria-controls": ariaControls,
|
|
50464
|
+
extraStyles: extraStyles
|
|
50391
50465
|
}, children));
|
|
50392
50466
|
});
|
|
50393
50467
|
|
|
@@ -50408,10 +50482,54 @@ var SearchBox = function SearchBox(_ref) {
|
|
|
50408
50482
|
fieldActions: actions.fields.searchTerm,
|
|
50409
50483
|
placeholder: placeholder,
|
|
50410
50484
|
disabled: disabled,
|
|
50411
|
-
extraStyles: "\n
|
|
50485
|
+
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 ")
|
|
50412
50486
|
}));
|
|
50413
50487
|
};
|
|
50414
50488
|
|
|
50489
|
+
var _excluded$M = ["width", "height", "color"];
|
|
50490
|
+
var CheckboxCheckmarkIcon = function CheckboxCheckmarkIcon(_ref) {
|
|
50491
|
+
var _ref$width = _ref.width,
|
|
50492
|
+
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
50493
|
+
_ref$height = _ref.height,
|
|
50494
|
+
height = _ref$height === void 0 ? "18" : _ref$height,
|
|
50495
|
+
_ref$color = _ref.color,
|
|
50496
|
+
color = _ref$color === void 0 ? "#FEFEFE" : _ref$color,
|
|
50497
|
+
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
50498
|
+
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
50499
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
50500
|
+
width: width,
|
|
50501
|
+
height: height,
|
|
50502
|
+
viewBox: "0 0 ".concat(width, " ").concat(height),
|
|
50503
|
+
fill: "none"
|
|
50504
|
+
}, props), /*#__PURE__*/React__default.createElement("path", {
|
|
50505
|
+
fillRule: "evenodd",
|
|
50506
|
+
clipRule: "evenodd",
|
|
50507
|
+
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",
|
|
50508
|
+
fill: "#FEFEFE"
|
|
50509
|
+
}), /*#__PURE__*/React__default.createElement("mask", {
|
|
50510
|
+
id: "mask0_3361_1486",
|
|
50511
|
+
style: {
|
|
50512
|
+
maskType: "luminance"
|
|
50513
|
+
},
|
|
50514
|
+
maskUnits: "userSpaceOnUse",
|
|
50515
|
+
x: "4",
|
|
50516
|
+
y: "5",
|
|
50517
|
+
width: "11",
|
|
50518
|
+
height: "9"
|
|
50519
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
50520
|
+
fillRule: "evenodd",
|
|
50521
|
+
clipRule: "evenodd",
|
|
50522
|
+
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",
|
|
50523
|
+
fill: "white"
|
|
50524
|
+
})), /*#__PURE__*/React__default.createElement("g", {
|
|
50525
|
+
mask: "url(#mask0_3361_1486)"
|
|
50526
|
+
}, /*#__PURE__*/React__default.createElement("rect", {
|
|
50527
|
+
width: width,
|
|
50528
|
+
height: height,
|
|
50529
|
+
fill: color
|
|
50530
|
+
})));
|
|
50531
|
+
};
|
|
50532
|
+
|
|
50415
50533
|
var FilterableListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
50416
50534
|
var index = _ref.index,
|
|
50417
50535
|
option = _ref.option,
|
|
@@ -50420,28 +50538,31 @@ var FilterableListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50420
50538
|
disabled = _ref.disabled,
|
|
50421
50539
|
tabIndex = _ref.tabIndex,
|
|
50422
50540
|
name = _ref.name,
|
|
50541
|
+
showDivider = _ref.showDivider,
|
|
50542
|
+
extraStyles = _ref.extraStyles,
|
|
50423
50543
|
themeValues = _ref.themeValues;
|
|
50424
|
-
|
|
50425
|
-
|
|
50544
|
+
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 }");
|
|
50545
|
+
return /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
50426
50546
|
key: index,
|
|
50427
|
-
extraStyles: "\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryColor, ";\n }\n ")
|
|
50428
|
-
}, /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
50429
50547
|
ref: ref,
|
|
50430
50548
|
title: option.name,
|
|
50431
50549
|
name: option.name,
|
|
50550
|
+
role: "option",
|
|
50551
|
+
"aria-selected": checked,
|
|
50552
|
+
tabIndex: tabIndex,
|
|
50553
|
+
dataQa: "".concat(name, "-option-").concat(index),
|
|
50432
50554
|
checked: checked,
|
|
50433
50555
|
onChange: function onChange() {
|
|
50434
50556
|
return selectOption(option);
|
|
50435
50557
|
},
|
|
50436
50558
|
textExtraStyles: "font-size: 0.875rem; margin: 0;",
|
|
50437
50559
|
disabled: disabled,
|
|
50438
|
-
extraStyles: "\n
|
|
50439
|
-
checkboxMargin: "0
|
|
50440
|
-
|
|
50441
|
-
|
|
50442
|
-
|
|
50443
|
-
|
|
50444
|
-
}));
|
|
50560
|
+
extraStyles: "\n padding: 0.375rem 0.625rem; \n margin: 0;\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryHoverColor, ";\n }\n ").concat(showDivider && dividerStyles, "\n ").concat(extraStyles, "\n "),
|
|
50561
|
+
checkboxMargin: showDivider ? "0 0 1rem" : "0",
|
|
50562
|
+
hasIconOverride: true,
|
|
50563
|
+
icon: CheckboxCheckmarkIcon,
|
|
50564
|
+
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 ")
|
|
50565
|
+
});
|
|
50445
50566
|
});
|
|
50446
50567
|
|
|
50447
50568
|
var filterItemsList = function filterItemsList(list, searchTerm) {
|
|
@@ -50606,14 +50727,12 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
50606
50727
|
handleKeyDown = _useKeyboardNavigatio.handleKeyDown;
|
|
50607
50728
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
50608
50729
|
id: id,
|
|
50609
|
-
role: "listbox",
|
|
50610
|
-
padding: "0",
|
|
50611
|
-
extraStyles: "\n overflow-y: auto;\n max-height: 250px;\n display: flex;\n flex-flow: column;\n ",
|
|
50612
|
-
onKeyDown: handleKeyDown
|
|
50613
|
-
}, (sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length) > 0 && /*#__PURE__*/React__default.createElement(Box, {
|
|
50614
50730
|
padding: "0",
|
|
50615
|
-
|
|
50616
|
-
|
|
50731
|
+
role: "listbox",
|
|
50732
|
+
"aria-label": "Filter options container",
|
|
50733
|
+
onKeyDown: handleKeyDown,
|
|
50734
|
+
extraStyles: "\n overflow-y: auto;\n max-height: 250px;\n display: flex;\n flex-flow: column;\n padding-bottom: 0.5rem;\n "
|
|
50735
|
+
}, (sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length) > 0 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, sortedAppliedOptions.map(function (option, index) {
|
|
50617
50736
|
var checked = isChecked(option, selectedOptions);
|
|
50618
50737
|
var tabIndex = index === focusedIndex || index === 0 && focusedIndex === -1 ? "0" : "-1";
|
|
50619
50738
|
return /*#__PURE__*/React__default.createElement(FilterableListItem, {
|
|
@@ -50627,9 +50746,10 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
50627
50746
|
selectOption: handleSelectOption,
|
|
50628
50747
|
tabIndex: tabIndex,
|
|
50629
50748
|
name: name,
|
|
50630
|
-
themeValues: themeValues
|
|
50749
|
+
themeValues: themeValues,
|
|
50750
|
+
showDivider: sortedOptions.length > 0 && index === sortedAppliedOptions.length - 1
|
|
50631
50751
|
});
|
|
50632
|
-
})), sortedOptions.map(function (option, index) {
|
|
50752
|
+
})), /*#__PURE__*/React__default.createElement(React__default.Fragment, null, sortedOptions.map(function (option, index) {
|
|
50633
50753
|
var checked = isChecked(option, selectedOptions);
|
|
50634
50754
|
var isDisabled = isMaxSelectionReached(maxSelections, selectedOptions) && !checked;
|
|
50635
50755
|
var indexOffset = sortedAppliedOptions !== null && sortedAppliedOptions !== void 0 && sortedAppliedOptions.length ? sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length : 0;
|
|
@@ -50649,7 +50769,7 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
50649
50769
|
name: name,
|
|
50650
50770
|
themeValues: themeValues
|
|
50651
50771
|
});
|
|
50652
|
-
}));
|
|
50772
|
+
})));
|
|
50653
50773
|
};
|
|
50654
50774
|
var FilterableList$1 = /*#__PURE__*/React__default.memo(FilterableList);
|
|
50655
50775
|
|
|
@@ -50657,7 +50777,9 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50657
50777
|
var actions = _ref.actions,
|
|
50658
50778
|
autocompleteValue = _ref.autocompleteValue,
|
|
50659
50779
|
btnContentOverride = _ref.btnContentOverride,
|
|
50780
|
+
btnExtraStyles = _ref.btnExtraStyles,
|
|
50660
50781
|
disabled = _ref.disabled,
|
|
50782
|
+
dropdownExtraStyles = _ref.dropdownExtraStyles,
|
|
50661
50783
|
extraStyles = _ref.extraStyles,
|
|
50662
50784
|
fields = _ref.fields,
|
|
50663
50785
|
filterLabel = _ref.filterLabel,
|
|
@@ -50676,8 +50798,6 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50676
50798
|
placeholder = _ref$placeholder === void 0 ? "Search" : _ref$placeholder,
|
|
50677
50799
|
_ref$searchable = _ref.searchable,
|
|
50678
50800
|
searchable = _ref$searchable === void 0 ? true : _ref$searchable,
|
|
50679
|
-
selectedOptions = _ref.selectedOptions,
|
|
50680
|
-
setSelectedOptions = _ref.setSelectedOptions,
|
|
50681
50801
|
themeValues = _ref.themeValues,
|
|
50682
50802
|
_ref$truncateBtnTextW = _ref.truncateBtnTextWidth,
|
|
50683
50803
|
truncateBtnTextWidth = _ref$truncateBtnTextW === void 0 ? "15rem" : _ref$truncateBtnTextW;
|
|
@@ -50687,22 +50807,29 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50687
50807
|
setOpened = _useState2[1];
|
|
50688
50808
|
var _useState3 = React.useState([]),
|
|
50689
50809
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
50690
|
-
|
|
50691
|
-
|
|
50692
|
-
var
|
|
50693
|
-
|
|
50694
|
-
|
|
50695
|
-
|
|
50810
|
+
selectedOptions = _useState4[0],
|
|
50811
|
+
setSelectedOptions = _useState4[1];
|
|
50812
|
+
var _useState5 = React.useState([]),
|
|
50813
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
50814
|
+
appliedOptions = _useState6[0],
|
|
50815
|
+
setAppliedOptions = _useState6[1];
|
|
50816
|
+
var openedRef = React.useRef(opened);
|
|
50817
|
+
var handleOnClose = function handleOnClose() {
|
|
50818
|
+
if (openedRef.current) {
|
|
50819
|
+
setOpened(false);
|
|
50820
|
+
actions.fields.searchTerm.set("");
|
|
50821
|
+
}
|
|
50696
50822
|
};
|
|
50697
50823
|
var containerRef = useOutsideClickHook(function () {
|
|
50698
|
-
return
|
|
50824
|
+
return handleOnClose();
|
|
50699
50825
|
});
|
|
50700
50826
|
var dropdownRef = React.useRef(null);
|
|
50701
50827
|
var filterButtonRef = React.useRef(null);
|
|
50702
50828
|
var applyFilterButtonRef = React.useRef(null);
|
|
50703
50829
|
var filterDropdownID = "".concat(name, "-filter-dropdown");
|
|
50704
|
-
var
|
|
50830
|
+
var listGroupID = "".concat(name, "-list-group");
|
|
50705
50831
|
React.useEffect(function () {
|
|
50832
|
+
openedRef.current = opened;
|
|
50706
50833
|
if (!opened) {
|
|
50707
50834
|
onApply(selectedOptions);
|
|
50708
50835
|
setAppliedOptions(selectedOptions);
|
|
@@ -50719,9 +50846,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50719
50846
|
or tabbing backward past the filter button.
|
|
50720
50847
|
*/
|
|
50721
50848
|
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)) {
|
|
50722
|
-
|
|
50723
|
-
actions.fields.searchTerm.set("");
|
|
50724
|
-
onApply(selectedOptions);
|
|
50849
|
+
handleOnClose();
|
|
50725
50850
|
}
|
|
50726
50851
|
};
|
|
50727
50852
|
document.addEventListener("keydown", handleKeyDown);
|
|
@@ -50740,20 +50865,25 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50740
50865
|
setOpened(!opened);
|
|
50741
50866
|
},
|
|
50742
50867
|
opened: opened,
|
|
50743
|
-
|
|
50744
|
-
|
|
50868
|
+
backgroundHoverColor: appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length ? themeValues.secondaryHoverColor : themeValues.primaryHoverColor,
|
|
50869
|
+
backgroundColor: appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length ? themeValues.secondaryColor : themeValues.primaryColor,
|
|
50870
|
+
textColor: appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length ? WHITE : CHARADE_GREY,
|
|
50871
|
+
textHoverColor: opened && !(appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length) ? CHARADE_GREY : WHITE,
|
|
50745
50872
|
name: name,
|
|
50746
50873
|
filterDropdownID: filterDropdownID,
|
|
50747
50874
|
hasIcon: hasIcon,
|
|
50748
50875
|
icon: Icon,
|
|
50749
50876
|
truncateBtnTextWidth: truncateBtnTextWidth,
|
|
50750
50877
|
filterLabel: filterLabel,
|
|
50751
|
-
selectedOptions: selectedOptions
|
|
50878
|
+
selectedOptions: selectedOptions,
|
|
50879
|
+
extraStyles: btnExtraStyles
|
|
50752
50880
|
}), /*#__PURE__*/React__default.createElement(FilterDropdown, {
|
|
50753
50881
|
id: filterDropdownID,
|
|
50754
50882
|
ref: dropdownRef,
|
|
50755
|
-
ariaOwns:
|
|
50756
|
-
|
|
50883
|
+
ariaOwns: listGroupID,
|
|
50884
|
+
ariaControls: listGroupID,
|
|
50885
|
+
opened: opened,
|
|
50886
|
+
extraStyles: dropdownExtraStyles
|
|
50757
50887
|
}, /*#__PURE__*/React__default.createElement(SearchBox, {
|
|
50758
50888
|
showSearchBox: searchable && (options === null || options === void 0 ? void 0 : options.length) > 8,
|
|
50759
50889
|
autocompleteValue: autocompleteValue,
|
|
@@ -50762,7 +50892,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50762
50892
|
placeholder: placeholder,
|
|
50763
50893
|
disabled: disabled
|
|
50764
50894
|
}), /*#__PURE__*/React__default.createElement(FilterableList$1, {
|
|
50765
|
-
id:
|
|
50895
|
+
id: listGroupID,
|
|
50766
50896
|
options: options,
|
|
50767
50897
|
appliedOptions: appliedOptions,
|
|
50768
50898
|
themeValues: themeValues,
|
|
@@ -50776,22 +50906,21 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50776
50906
|
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 ")
|
|
50777
50907
|
}, /*#__PURE__*/React__default.createElement(ActionLinkButton, {
|
|
50778
50908
|
action: function action() {
|
|
50779
|
-
setOpened(false);
|
|
50780
50909
|
setSelectedOptions([]);
|
|
50781
|
-
|
|
50910
|
+
handleOnClose();
|
|
50782
50911
|
onClear();
|
|
50783
50912
|
},
|
|
50784
50913
|
text: "Clear",
|
|
50785
|
-
dataQa: "".concat(name, "-clear-filters")
|
|
50914
|
+
dataQa: "".concat(name, "-clear-filters"),
|
|
50915
|
+
ariaLabel: "Clear all filters"
|
|
50786
50916
|
}), /*#__PURE__*/React__default.createElement(ActionLinkButton, {
|
|
50787
50917
|
ref: applyFilterButtonRef,
|
|
50788
50918
|
action: function action() {
|
|
50789
|
-
|
|
50790
|
-
actions.fields.searchTerm.set("");
|
|
50791
|
-
onApply(selectedOptions);
|
|
50919
|
+
return handleOnClose();
|
|
50792
50920
|
},
|
|
50793
50921
|
text: "Apply",
|
|
50794
|
-
dataQa: "".concat(name, "-apply-filters")
|
|
50922
|
+
dataQa: "".concat(name, "-apply-filters"),
|
|
50923
|
+
ariaLabel: "Apply all filters"
|
|
50795
50924
|
}))));
|
|
50796
50925
|
};
|
|
50797
50926
|
var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$_);
|
|
@@ -51228,11 +51357,13 @@ exports.PaymentFormCard = PaymentFormCard$1;
|
|
|
51228
51357
|
exports.PaymentMethodAddIcon = PaymentMethodAddIcon$1;
|
|
51229
51358
|
exports.PaymentMethodIcon = PaymentMethodIcon$1;
|
|
51230
51359
|
exports.PaymentSearchIcon = PaymentSearchIcon;
|
|
51360
|
+
exports.PaymentStatusIcon = PaymentStatusIcon;
|
|
51231
51361
|
exports.PaymentsIconSmall = PaymentsIconSmall$1;
|
|
51232
51362
|
exports.PencilIcon = PencilIcon$1;
|
|
51233
51363
|
exports.PendingIcon = PendingIcon;
|
|
51234
51364
|
exports.PeriscopeDashboardIframe = PeriscopeDashboardIframe;
|
|
51235
51365
|
exports.PeriscopeFailedIcon = PeriscopeFailedIcon;
|
|
51366
|
+
exports.PersonIcon = PersonIcon;
|
|
51236
51367
|
exports.PhoneForm = PhoneForm;
|
|
51237
51368
|
exports.Placeholder = Placeholder$1;
|
|
51238
51369
|
exports.PlusCircleIcon = PlusCircleIcon;
|