@thecb/components 10.12.1-beta.0 → 10.12.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/index.cjs.js +274 -121
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +13 -8
  4. package/dist/index.esm.js +273 -122
  5. package/dist/index.esm.js.map +1 -1
  6. package/package.json +1 -1
  7. package/src/components/atoms/card/Card.js +9 -0
  8. package/src/components/atoms/card/CardText.js +34 -11
  9. package/src/components/atoms/card/index.d.ts +7 -1
  10. package/src/components/atoms/checkbox/Checkbox.js +14 -8
  11. package/src/components/atoms/icons/CheckboxCheckmarkIcon.js +45 -0
  12. package/src/components/atoms/icons/PaymentStatusIcon.d.ts +1 -0
  13. package/src/components/atoms/icons/PaymentStatusIcon.js +28 -0
  14. package/src/components/atoms/icons/PersonIcon.d.ts +1 -0
  15. package/src/components/atoms/icons/PersonIcon.js +28 -0
  16. package/src/components/atoms/icons/icons.stories.js +5 -1
  17. package/src/components/atoms/icons/index.js +5 -1
  18. package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.js +26 -32
  19. package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.stories.js +2 -4
  20. package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.styled.js +2 -2
  21. package/src/components/molecules/multiple-select-filter/__private__/ActionLinkButton.js +16 -13
  22. package/src/components/molecules/multiple-select-filter/__private__/FilterButton.js +13 -9
  23. package/src/components/molecules/multiple-select-filter/__private__/FilterDropdown.js +22 -18
  24. package/src/components/molecules/multiple-select-filter/__private__/FilterableList.js +43 -41
  25. package/src/components/molecules/multiple-select-filter/__private__/FilterableListItem.js +53 -41
  26. package/src/components/molecules/multiple-select-filter/__private__/SearchBox.js +10 -7
  27. package/src/components/molecules/multiple-select-filter/index.d.ts +2 -2
  28. package/src/hooks/use-outside-click/index.js +4 -5
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 ? "14" : _ref$width,
18864
+ _ref$height = _ref.height,
18865
+ height = _ref$height === void 0 ? "15" : _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: "M12.25 1.8125H1.75C1.50838 1.8125 1.3125 2.00838 1.3125 2.25V12.75C1.3125 12.9916 1.50838 13.1875 1.75 13.1875H2.625V11.7778C2.625 9.89848 4.02411 8.375 5.75 8.375H8.25C9.97589 8.375 11.375 9.89848 11.375 11.7778V13.1875H12.25C12.4916 13.1875 12.6875 12.9916 12.6875 12.75V2.25C12.6875 2.00838 12.4916 1.8125 12.25 1.8125ZM1.75 14.5H2.625H11.375H12.25C13.2165 14.5 14 13.7165 14 12.75V2.25C14 1.2835 13.2165 0.5 12.25 0.5H1.75C0.783502 0.5 0 1.2835 0 2.25V12.75C0 13.7165 0.783502 14.5 1.75 14.5ZM7 7.5C8.20812 7.5 9.1875 6.52062 9.1875 5.3125C9.1875 4.10438 8.20812 3.125 7 3.125C5.79188 3.125 4.8125 4.10438 4.8125 5.3125C4.8125 6.52062 5.79188 7.5 7 7.5Z",
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$m = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
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$m);
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$n = ["variant", "themeValues", "children"];
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$n);
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$o = ["hoverColor", "activeColor", "extrastyles"];
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$o);
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$p = ["hoverColor", "activeColor", "active", "color", "extrastyles"];
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$p);
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$q = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
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$q);
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$r = ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children", "as"];
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$r);
23004
+ rest = _objectWithoutProperties(_ref, _excluded$t);
22959
23005
  return /*#__PURE__*/React__default.createElement(ParagraphText, _extends({
22960
23006
  weight: weight,
22961
23007
  color: color,
@@ -23197,7 +23243,7 @@ var ENTER = 13;
23197
23243
  var ESCAPE = 27;
23198
23244
  var SPACEBAR = 32;
23199
23245
 
23200
- var _excluded$s = ["title", "name", "checked", "onChange", "disabled", "themeValues", "hidden", "error", "checkboxMargin", "extraStyles", "textExtraStyles", "labelledById", "dataQa", "checkboxExtraStyles"];
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"
@@ -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
- rest = _objectWithoutProperties(_ref5, _excluded$s);
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],
@@ -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$t = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
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$t);
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$u = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
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$u);
26565
+ rest = _objectWithoutProperties(_ref, _excluded$w);
26517
26566
  return /*#__PURE__*/React__default.createElement(DetailText, _extends({
26518
26567
  variant: variant,
26519
26568
  as: as,
@@ -26570,6 +26619,15 @@ var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$l);
26570
26619
  var useOutsideClickHook = function useOutsideClickHook(handler) {
26571
26620
  var ref = React.useRef();
26572
26621
  React.useEffect(function () {
26622
+ var handleOutsideClick = function handleOutsideClick(e) {
26623
+ if (ref.current && !ref.current.contains(e.target)) {
26624
+ handler();
26625
+ }
26626
+ };
26627
+ document.addEventListener("click", handleOutsideClick, true);
26628
+ return function () {
26629
+ document.removeEventListener("click", handleOutsideClick, true);
26630
+ };
26573
26631
  }, [ref]);
26574
26632
  return ref;
26575
26633
  };
@@ -26760,7 +26818,9 @@ var Popover = function Popover(_ref) {
26760
26818
  togglePopover(popoverState);
26761
26819
  }
26762
26820
  };
26763
- var triggerRef = useOutsideClickHook();
26821
+ var triggerRef = useOutsideClickHook(function () {
26822
+ return handleTogglePopover(false);
26823
+ });
26764
26824
  return /*#__PURE__*/React__default.createElement(Box, {
26765
26825
  padding: "0",
26766
26826
  extraStyles: "position: relative; ".concat(extraStyles)
@@ -27236,7 +27296,7 @@ var fallbackValues$n = {
27236
27296
  formFooterPanel: formFooterPanel
27237
27297
  };
27238
27298
 
27239
- var _excluded$v = ["showErrors", "themeValues"],
27299
+ var _excluded$x = ["showErrors", "themeValues"],
27240
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"];
27241
27301
  var InputField = styled__default.input.withConfig({
27242
27302
  displayName: "FormInput__InputField",
@@ -27271,7 +27331,7 @@ var InputField = styled__default.input.withConfig({
27271
27331
  var FormattedInputField = styled__default(function (_ref8) {
27272
27332
  var showErrors = _ref8.showErrors,
27273
27333
  themeValues = _ref8.themeValues,
27274
- props = _objectWithoutProperties(_ref8, _excluded$v);
27334
+ props = _objectWithoutProperties(_ref8, _excluded$x);
27275
27335
  return /*#__PURE__*/React__default.createElement(FormattedInput, props);
27276
27336
  }).withConfig({
27277
27337
  displayName: "FormInput__FormattedInputField",
@@ -27476,7 +27536,7 @@ var FormInput = function FormInput(_ref15) {
27476
27536
  };
27477
27537
  var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$n, "default");
27478
27538
 
27479
- var _excluded$w = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
27539
+ var _excluded$y = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
27480
27540
  var FormInputRow = function FormInputRow(_ref) {
27481
27541
  var _ref$breakpoint = _ref.breakpoint,
27482
27542
  breakpoint = _ref$breakpoint === void 0 ? "30rem" : _ref$breakpoint,
@@ -27485,7 +27545,7 @@ var FormInputRow = function FormInputRow(_ref) {
27485
27545
  largeChild = _ref.largeChild,
27486
27546
  largeChildSize = _ref.largeChildSize,
27487
27547
  children = _ref.children,
27488
- rest = _objectWithoutProperties(_ref, _excluded$w);
27548
+ rest = _objectWithoutProperties(_ref, _excluded$y);
27489
27549
  return /*#__PURE__*/React__default.createElement(Box, _extends({
27490
27550
  padding: "0"
27491
27551
  }, rest), /*#__PURE__*/React__default.createElement(Switcher, {
@@ -27496,24 +27556,24 @@ var FormInputRow = function FormInputRow(_ref) {
27496
27556
  }, children));
27497
27557
  };
27498
27558
 
27499
- var _excluded$x = ["childGap", "bottomItem", "children"];
27559
+ var _excluded$z = ["childGap", "bottomItem", "children"];
27500
27560
  var FormInputColumn = function FormInputColumn(_ref) {
27501
27561
  var _ref$childGap = _ref.childGap,
27502
27562
  childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
27503
27563
  bottomItem = _ref.bottomItem,
27504
27564
  children = _ref.children,
27505
- rest = _objectWithoutProperties(_ref, _excluded$x);
27565
+ rest = _objectWithoutProperties(_ref, _excluded$z);
27506
27566
  return /*#__PURE__*/React__default.createElement(Stack, _extends({
27507
27567
  childGap: childGap,
27508
27568
  bottomItem: bottomItem
27509
27569
  }, rest), children);
27510
27570
  };
27511
27571
 
27512
- var _excluded$y = ["themeValues", "children"];
27572
+ var _excluded$A = ["themeValues", "children"];
27513
27573
  var FormContainer = function FormContainer(_ref) {
27514
27574
  var themeValues = _ref.themeValues,
27515
27575
  children = _ref.children,
27516
- rest = _objectWithoutProperties(_ref, _excluded$y);
27576
+ rest = _objectWithoutProperties(_ref, _excluded$A);
27517
27577
  var _useContext = React.useContext(styled.ThemeContext),
27518
27578
  isMobile = _useContext.isMobile;
27519
27579
  return /*#__PURE__*/React__default.createElement(Box, _extends({
@@ -27823,7 +27883,7 @@ var fallbackValues$r = {
27823
27883
  fontSize: fontSize$8
27824
27884
  };
27825
27885
 
27826
- var _excluded$z = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
27886
+ var _excluded$B = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
27827
27887
  var Heading = function Heading(_ref) {
27828
27888
  var themeValues = _ref.themeValues,
27829
27889
  _ref$weight = _ref.weight,
@@ -27842,7 +27902,7 @@ var Heading = function Heading(_ref) {
27842
27902
  as = _ref$as === void 0 ? variant : _ref$as,
27843
27903
  dataQa = _ref.dataQa,
27844
27904
  children = _ref.children,
27845
- rest = _objectWithoutProperties(_ref, _excluded$z);
27905
+ rest = _objectWithoutProperties(_ref, _excluded$B);
27846
27906
  return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
27847
27907
  variant: variant,
27848
27908
  as: as,
@@ -28043,11 +28103,11 @@ var LabeledAmountV2 = function LabeledAmountV2(_ref) {
28043
28103
  }, /*#__PURE__*/React__default.createElement("span", null, label), /*#__PURE__*/React__default.createElement("span", null, amount));
28044
28104
  };
28045
28105
 
28046
- var _excluded$A = ["version"];
28106
+ var _excluded$C = ["version"];
28047
28107
  var LabeledAmount = function LabeledAmount(_ref) {
28048
28108
  var _ref$version = _ref.version,
28049
28109
  version = _ref$version === void 0 ? "v1" : _ref$version,
28050
- rest = _objectWithoutProperties(_ref, _excluded$A);
28110
+ rest = _objectWithoutProperties(_ref, _excluded$C);
28051
28111
  var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
28052
28112
  return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
28053
28113
  };
@@ -28192,7 +28252,7 @@ var Loading = function Loading() {
28192
28252
  })))));
28193
28253
  };
28194
28254
 
28195
- var _excluded$B = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
28255
+ var _excluded$D = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
28196
28256
  var NavFooter = function NavFooter(_ref) {
28197
28257
  var leftContent = _ref.leftContent,
28198
28258
  rightContent = _ref.rightContent,
@@ -28207,7 +28267,7 @@ var NavFooter = function NavFooter(_ref) {
28207
28267
  footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
28208
28268
  isMobile = _ref.isMobile,
28209
28269
  footerWidth = _ref.footerWidth,
28210
- rest = _objectWithoutProperties(_ref, _excluded$B);
28270
+ rest = _objectWithoutProperties(_ref, _excluded$D);
28211
28271
  return /*#__PURE__*/React__default.createElement(Box, _extends({
28212
28272
  padding: footerPadding,
28213
28273
  background: backgroundColor,
@@ -28238,7 +28298,7 @@ var NavFooter = function NavFooter(_ref) {
28238
28298
  }, rightContent)))))));
28239
28299
  };
28240
28300
 
28241
- var _excluded$C = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
28301
+ var _excluded$E = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
28242
28302
  var NavHeader = function NavHeader(_ref) {
28243
28303
  var leftContent = _ref.leftContent,
28244
28304
  rightContent = _ref.rightContent,
@@ -28247,7 +28307,7 @@ var NavHeader = function NavHeader(_ref) {
28247
28307
  isMobile = _ref.isMobile,
28248
28308
  backgroundColor = _ref.backgroundColor,
28249
28309
  headerWidth = _ref.headerWidth,
28250
- rest = _objectWithoutProperties(_ref, _excluded$C);
28310
+ rest = _objectWithoutProperties(_ref, _excluded$E);
28251
28311
  return /*#__PURE__*/React__default.createElement(Box, _extends({
28252
28312
  padding: "0 16px 4px",
28253
28313
  background: backgroundColor,
@@ -39861,20 +39921,40 @@ var fallbackValues$E = {
39861
39921
  };
39862
39922
 
39863
39923
  var CardText = function CardText(_ref) {
39864
- var padding = _ref.padding,
39924
+ var showQuitLink = _ref.showQuitLink,
39925
+ onQuitClick = _ref.onQuitClick,
39926
+ titleAs = _ref.titleAs,
39927
+ padding = _ref.padding,
39865
39928
  text = _ref.text,
39929
+ _ref$textAs = _ref.textAs,
39930
+ textAs = _ref$textAs === void 0 ? "p" : _ref$textAs,
39866
39931
  titleText = _ref.titleText,
39867
39932
  _ref$titleVariant = _ref.titleVariant,
39868
39933
  titleVariant = _ref$titleVariant === void 0 ? "small" : _ref$titleVariant,
39869
39934
  themeValues = _ref.themeValues;
39870
39935
  return /*#__PURE__*/React__default.createElement(Box, {
39871
39936
  padding: padding
39872
- }, /*#__PURE__*/React__default.createElement(Cover, null, /*#__PURE__*/React__default.createElement(Stack, null, titleText && /*#__PURE__*/React__default.createElement(Title$1, {
39873
- as: "p",
39937
+ }, /*#__PURE__*/React__default.createElement(Cover, null, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Cluster, {
39938
+ justify: "space-between",
39939
+ align: "center",
39940
+ overflow: true
39941
+ }, titleText && /*#__PURE__*/React__default.createElement(Title$1, {
39942
+ as: titleAs,
39874
39943
  variant: titleVariant,
39875
39944
  color: themeValues.titleColor,
39876
39945
  weight: themeValues.titleWeight
39877
- }, titleText), /*#__PURE__*/React__default.createElement(Paragraph$1, {
39946
+ }, titleText), showQuitLink && /*#__PURE__*/React__default.createElement(Box, {
39947
+ padding: "0",
39948
+ onClick: onQuitClick,
39949
+ onKeyDown: function onKeyDown(e) {
39950
+ return e.key === "Enter" && onQuitClick();
39951
+ },
39952
+ role: "button",
39953
+ tabIndex: 0,
39954
+ "aria-label": "Close Card: ".concat(titleText),
39955
+ extraStyles: "cursor: pointer;"
39956
+ }, /*#__PURE__*/React__default.createElement(IconQuitLarge, null))), /*#__PURE__*/React__default.createElement(Paragraph$1, {
39957
+ as: textAs,
39878
39958
  color: themeValues.textColor
39879
39959
  }, text))));
39880
39960
  };
@@ -39915,9 +39995,17 @@ var Card = function Card(_ref) {
39915
39995
  _ref$imgObjectFit = _ref.imgObjectFit,
39916
39996
  imgObjectFit = _ref$imgObjectFit === void 0 ? "none" : _ref$imgObjectFit,
39917
39997
  imgAltText = _ref.imgAltText,
39998
+ _ref$onQuitClick = _ref.onQuitClick,
39999
+ onQuitClick = _ref$onQuitClick === void 0 ? noop$1 : _ref$onQuitClick,
39918
40000
  _ref$padding = _ref.padding,
39919
40001
  padding = _ref$padding === void 0 ? "24px" : _ref$padding,
40002
+ _ref$showQuitLink = _ref.showQuitLink,
40003
+ showQuitLink = _ref$showQuitLink === void 0 ? false : _ref$showQuitLink,
39920
40004
  text = _ref.text,
40005
+ _ref$textAs = _ref.textAs,
40006
+ textAs = _ref$textAs === void 0 ? "p" : _ref$textAs,
40007
+ _ref$titleAs = _ref.titleAs,
40008
+ titleAs = _ref$titleAs === void 0 ? "h2" : _ref$titleAs,
39921
40009
  titleText = _ref.titleText,
39922
40010
  _ref$titleVariant = _ref.titleVariant,
39923
40011
  titleVariant = _ref$titleVariant === void 0 ? "small" : _ref$titleVariant,
@@ -39974,9 +40062,13 @@ var Card = function Card(_ref) {
39974
40062
  width: "100%",
39975
40063
  extraStyles: "flex-basis: 100%;"
39976
40064
  }, text && /*#__PURE__*/React__default.createElement(CardText$1, {
40065
+ onQuitClick: onQuitClick,
39977
40066
  padding: padding,
40067
+ showQuitLink: showQuitLink,
40068
+ titleAs: titleAs,
39978
40069
  titleText: titleText,
39979
40070
  text: text,
40071
+ textAs: textAs,
39980
40072
  titleVariant: titleVariant
39981
40073
  }), children)))));
39982
40074
  };
@@ -46631,11 +46723,11 @@ var Modal$2 = function Modal(_ref) {
46631
46723
  };
46632
46724
  var ModalControlV2 = withWindowSize(Modal$2);
46633
46725
 
46634
- var _excluded$D = ["version"];
46726
+ var _excluded$F = ["version"];
46635
46727
  var Modal$3 = function Modal(_ref) {
46636
46728
  var _ref$version = _ref.version,
46637
46729
  version = _ref$version === void 0 ? "v1" : _ref$version,
46638
- rest = _objectWithoutProperties(_ref, _excluded$D);
46730
+ rest = _objectWithoutProperties(_ref, _excluded$F);
46639
46731
  var ModalControl = version === "v1" ? Modal$1 : ModalControlV2;
46640
46732
  return /*#__PURE__*/React__default.createElement(ModalControl, rest);
46641
46733
  };
@@ -47937,7 +48029,7 @@ var fallbackValues$P = {
47937
48029
  labeledAmountTotal: labeledAmountTotal
47938
48030
  };
47939
48031
 
47940
- var _excluded$E = ["amount"],
48032
+ var _excluded$G = ["amount"],
47941
48033
  _excluded2$1 = ["amount"];
47942
48034
  var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
47943
48035
  var lineItemElems = _ref.lineItemElems,
@@ -48180,7 +48272,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
48180
48272
  return fee.amount > 0;
48181
48273
  }).map(function (_ref5) {
48182
48274
  var amount = _ref5.amount,
48183
- rest = _objectWithoutProperties(_ref5, _excluded$E);
48275
+ rest = _objectWithoutProperties(_ref5, _excluded$G);
48184
48276
  return _objectSpread2(_objectSpread2({}, rest), {}, {
48185
48277
  amount: displayCurrency(amount)
48186
48278
  });
@@ -48617,11 +48709,11 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
48617
48709
  }, errorMessage))))));
48618
48710
  };
48619
48711
 
48620
- var _excluded$F = ["version"];
48712
+ var _excluded$H = ["version"];
48621
48713
  var TermsAndConditions = function TermsAndConditions(_ref) {
48622
48714
  var _ref$version = _ref.version,
48623
48715
  version = _ref$version === void 0 ? "v1" : _ref$version,
48624
- rest = _objectWithoutProperties(_ref, _excluded$F);
48716
+ rest = _objectWithoutProperties(_ref, _excluded$H);
48625
48717
  var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
48626
48718
  return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
48627
48719
  };
@@ -49429,7 +49521,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
49429
49521
  }, section.content))));
49430
49522
  };
49431
49523
 
49432
- var _excluded$G = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections", "borderOverride"];
49524
+ var _excluded$I = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections", "borderOverride"];
49433
49525
 
49434
49526
  /**
49435
49527
  - The RadioSection component takes either a flat array (via the 'sections'
@@ -49478,7 +49570,7 @@ var RadioSection = function RadioSection(_ref) {
49478
49570
  isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
49479
49571
  groupedSections = _ref.groupedSections,
49480
49572
  borderOverride = _ref.borderOverride,
49481
- rest = _objectWithoutProperties(_ref, _excluded$G);
49573
+ rest = _objectWithoutProperties(_ref, _excluded$I);
49482
49574
  var _useState = React.useState(null),
49483
49575
  _useState2 = _slicedToArray(_useState, 2),
49484
49576
  focused = _useState2[0],
@@ -50025,7 +50117,7 @@ var Timeout = function Timeout(_ref) {
50025
50117
  };
50026
50118
  var Timeout$1 = withWindowSize(Timeout);
50027
50119
 
50028
- var _excluded$H = ["variant", "message", "toastOpen", "closeToastNotification", "extraStyles", "minWidth", "maxWidth", "height", "childGap", "backgroundColor", "role", "ariaLive", "screenReaderMessage", "showScreenReaderMessage"];
50120
+ var _excluded$J = ["variant", "message", "toastOpen", "closeToastNotification", "extraStyles", "minWidth", "maxWidth", "height", "childGap", "backgroundColor", "role", "ariaLive", "screenReaderMessage", "showScreenReaderMessage"];
50029
50121
  var VARIANTS = {
50030
50122
  SUCCESS: "success",
50031
50123
  ERROR: "error"
@@ -50054,7 +50146,7 @@ var ToastNotification = function ToastNotification(_ref) {
50054
50146
  screenReaderMessage = _ref.screenReaderMessage,
50055
50147
  _ref$showScreenReader = _ref.showScreenReaderMessage,
50056
50148
  showScreenReaderMessage = _ref$showScreenReader === void 0 ? true : _ref$showScreenReader,
50057
- rest = _objectWithoutProperties(_ref, _excluded$H);
50149
+ rest = _objectWithoutProperties(_ref, _excluded$J);
50058
50150
  var screenReaderMessageRef = React.useRef();
50059
50151
  var LIVEREGION_TRANSITION_DELAY = 1000;
50060
50152
  React.useEffect(function () {
@@ -50237,7 +50329,7 @@ var PopupMenuItemContainer = styled__default(ButtonWithAction).withConfig({
50237
50329
  return "\n background-color: ".concat(isDeleteAction ? theme.menuItemHoverBackgroundColorDelete : theme.menuItemHoverBackgroundColor, ";\n ");
50238
50330
  });
50239
50331
 
50240
- var _excluded$I = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
50332
+ var _excluded$K = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
50241
50333
  var PopupMenuItem = function PopupMenuItem(_ref) {
50242
50334
  var id = _ref.id,
50243
50335
  closeMenuCallback = _ref.closeMenuCallback,
@@ -50253,7 +50345,7 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
50253
50345
  hoverStyles = _ref.hoverStyles,
50254
50346
  activeStyles = _ref.activeStyles,
50255
50347
  extraStyles = _ref.extraStyles,
50256
- rest = _objectWithoutProperties(_ref, _excluded$I);
50348
+ rest = _objectWithoutProperties(_ref, _excluded$K);
50257
50349
  return /*#__PURE__*/React__default.createElement(PopupMenuItemContainer, _extends({
50258
50350
  id: id,
50259
50351
  role: "menuItem",
@@ -50436,10 +50528,7 @@ var fallbackValues$_ = {
50436
50528
  var StyledFilterContainer = styled__default(Box).withConfig({
50437
50529
  displayName: "MultipleSelectFilterstyled__StyledFilterContainer",
50438
50530
  componentId: "sc-126xgc2-0"
50439
- })(["position:relative;box-sizing:border-box;padding:0;", ""], function (_ref) {
50440
- var extraStyles = _ref.extraStyles;
50441
- return extraStyles;
50442
- });
50531
+ })(["position:relative;overflow:visible;box-sizing:border-box;padding:0;"]);
50443
50532
  var FilterContainer = /*#__PURE__*/React.forwardRef(function (props, ref) {
50444
50533
  return /*#__PURE__*/React__default.createElement(StyledFilterContainer, _extends({
50445
50534
  ref: ref
@@ -50448,7 +50537,7 @@ var FilterContainer = /*#__PURE__*/React.forwardRef(function (props, ref) {
50448
50537
  var StyledFilterDropdown = styled__default(Box).withConfig({
50449
50538
  displayName: "MultipleSelectFilterstyled__StyledFilterDropdown",
50450
50539
  componentId: "sc-126xgc2-1"
50451
- })(["position:absolute;top:calc(100% + 0.5rem);left:0;width:100%;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;"]);
50540
+ })(["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;"]);
50452
50541
  var FilterDropdownContainer = /*#__PURE__*/React.forwardRef(function (props, ref) {
50453
50542
  return /*#__PURE__*/React__default.createElement(StyledFilterDropdown, _extends({
50454
50543
  ref: ref
@@ -50457,11 +50546,11 @@ var FilterDropdownContainer = /*#__PURE__*/React.forwardRef(function (props, ref
50457
50546
  var FilterButton = styled__default(ButtonWithAction).withConfig({
50458
50547
  displayName: "MultipleSelectFilterstyled__FilterButton",
50459
50548
  componentId: "sc-126xgc2-2"
50460
- })(["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 (_ref2) {
50461
- var textColor = _ref2.textColor;
50549
+ })(["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) {
50550
+ var textColor = _ref.textColor;
50462
50551
  return "\n color: ".concat(textColor, ";\n ");
50463
- }, function (_ref3) {
50464
- var backgroundColor = _ref3.backgroundColor;
50552
+ }, function (_ref2) {
50553
+ var backgroundColor = _ref2.backgroundColor;
50465
50554
  return "\n background-color: ".concat(backgroundColor, ";\n :hover,\n :active,\n :focus {\n background-color: ").concat(backgroundColor, ";\n }\n ");
50466
50555
  });
50467
50556
  var StyledFilterButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -50473,7 +50562,8 @@ var StyledFilterButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
50473
50562
  var ActionLinkButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50474
50563
  var action = _ref.action,
50475
50564
  text = _ref.text,
50476
- dataQa = _ref.dataQa;
50565
+ dataQa = _ref.dataQa,
50566
+ ariaLabel = _ref.ariaLabel;
50477
50567
  return /*#__PURE__*/React__default.createElement(ButtonWithAction, {
50478
50568
  ref: ref,
50479
50569
  action: action,
@@ -50481,11 +50571,12 @@ var ActionLinkButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50481
50571
  extraStyles: "\n padding: 0.2rem; \n margin: 0.5rem; \n min-height: auto; \n min-width: auto;\n ",
50482
50572
  textExtraStyles: "font-weight: ".concat(FONT_WEIGHT_REGULAR, ";"),
50483
50573
  text: text,
50484
- dataQa: dataQa
50574
+ dataQa: dataQa,
50575
+ "aria-label": ariaLabel
50485
50576
  });
50486
50577
  });
50487
50578
 
50488
- var _excluded$J = ["width", "height", "color"];
50579
+ var _excluded$L = ["width", "height", "color"];
50489
50580
  var DropdownIconV2 = function DropdownIconV2(_ref) {
50490
50581
  var _ref$width = _ref.width,
50491
50582
  width = _ref$width === void 0 ? "18" : _ref$width,
@@ -50493,7 +50584,7 @@ var DropdownIconV2 = function DropdownIconV2(_ref) {
50493
50584
  height = _ref$height === void 0 ? "19" : _ref$height,
50494
50585
  _ref$color = _ref.color,
50495
50586
  color = _ref$color === void 0 ? "#292A33" : _ref$color,
50496
- props = _objectWithoutProperties(_ref, _excluded$J);
50587
+ props = _objectWithoutProperties(_ref, _excluded$L);
50497
50588
  return /*#__PURE__*/React__default.createElement("svg", _extends({
50498
50589
  width: width,
50499
50590
  height: height,
@@ -50547,7 +50638,10 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50547
50638
  Icon = _ref.icon,
50548
50639
  truncateBtnTextWidth = _ref.truncateBtnTextWidth,
50549
50640
  filterLabel = _ref.filterLabel,
50550
- selectedOptions = _ref.selectedOptions;
50641
+ selectedOptions = _ref.selectedOptions,
50642
+ extraStyles = _ref.extraStyles;
50643
+ var btnTextFilterDescription = selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? "".concat(filterLabel ? "".concat(filterLabel, ": ") : "").concat(selectedOptions[0].name) : "".concat(filterLabel ? filterLabel : "");
50644
+ 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") : "";
50551
50645
  return /*#__PURE__*/React__default.createElement(StyledFilterButton, {
50552
50646
  ref: ref,
50553
50647
  variant: "tertiary",
@@ -50557,6 +50651,8 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50557
50651
  "aria-controls": filterDropdownID,
50558
50652
  backgroundColor: backgroundColor,
50559
50653
  dataQa: "".concat(name, "-filter-button"),
50654
+ extraStyles: extraStyles,
50655
+ "aria-label": "".concat(filterLabel, " Filter: ").concat(btnTextFilterDescription, " ").concat(btnTextItemsDescription),
50560
50656
  contentOverride: true
50561
50657
  }, btnContentOverride ? btnContentOverride : /*#__PURE__*/React__default.createElement(Center, {
50562
50658
  as: "span",
@@ -50579,10 +50675,10 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50579
50675
  variant: "pS",
50580
50676
  color: contentColor,
50581
50677
  extraStyles: "\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n ".concat(truncateBtnTextWidth && "max-width:" + truncateBtnTextWidth, "\n ")
50582
- }, selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? "".concat(filterLabel ? filterLabel + ": " : "").concat(selectedOptions[0].name) : "".concat(filterLabel ? filterLabel : "")), /*#__PURE__*/React__default.createElement(Text$1, {
50678
+ }, btnTextFilterDescription), /*#__PURE__*/React__default.createElement(Text$1, {
50583
50679
  color: contentColor,
50584
50680
  variant: "pS"
50585
- }, 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") : "")), /*#__PURE__*/React__default.createElement(DropdownIconV2, {
50681
+ }, btnTextItemsDescription)), /*#__PURE__*/React__default.createElement(DropdownIconV2, {
50586
50682
  color: contentColor
50587
50683
  })));
50588
50684
  });
@@ -50590,7 +50686,9 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50590
50686
  var FilterDropdown = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50591
50687
  var id = _ref.id,
50592
50688
  ariaOwns = _ref.ariaOwns,
50689
+ ariaControls = _ref.ariaControls,
50593
50690
  opened = _ref.opened,
50691
+ extraStyles = _ref.extraStyles,
50594
50692
  children = _ref.children;
50595
50693
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, opened && /*#__PURE__*/React__default.createElement(FilterDropdownContainer, {
50596
50694
  ref: ref,
@@ -50598,7 +50696,9 @@ var FilterDropdown = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50598
50696
  role: "combobox",
50599
50697
  "aria-expanded": opened,
50600
50698
  "aria-haspopup": "listbox",
50601
- "aria-owns": ariaOwns
50699
+ "aria-owns": ariaOwns,
50700
+ "aria-controls": ariaControls,
50701
+ extraStyles: extraStyles
50602
50702
  }, children));
50603
50703
  });
50604
50704
 
@@ -50619,10 +50719,54 @@ var SearchBox = function SearchBox(_ref) {
50619
50719
  fieldActions: actions.fields.searchTerm,
50620
50720
  placeholder: placeholder,
50621
50721
  disabled: disabled,
50622
- 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 ")
50722
+ 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 ")
50623
50723
  }));
50624
50724
  };
50625
50725
 
50726
+ var _excluded$M = ["width", "height", "color"];
50727
+ var CheckboxCheckmarkIcon = function CheckboxCheckmarkIcon(_ref) {
50728
+ var _ref$width = _ref.width,
50729
+ width = _ref$width === void 0 ? "18" : _ref$width,
50730
+ _ref$height = _ref.height,
50731
+ height = _ref$height === void 0 ? "18" : _ref$height,
50732
+ _ref$color = _ref.color,
50733
+ color = _ref$color === void 0 ? "#FEFEFE" : _ref$color,
50734
+ props = _objectWithoutProperties(_ref, _excluded$M);
50735
+ return /*#__PURE__*/React__default.createElement("svg", _extends({
50736
+ xmlns: "http://www.w3.org/2000/svg",
50737
+ width: width,
50738
+ height: height,
50739
+ viewBox: "0 0 ".concat(width, " ").concat(height),
50740
+ fill: "none"
50741
+ }, props), /*#__PURE__*/React__default.createElement("path", {
50742
+ fillRule: "evenodd",
50743
+ clipRule: "evenodd",
50744
+ 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",
50745
+ fill: "#FEFEFE"
50746
+ }), /*#__PURE__*/React__default.createElement("mask", {
50747
+ id: "mask0_3361_1486",
50748
+ style: {
50749
+ maskType: "luminance"
50750
+ },
50751
+ maskUnits: "userSpaceOnUse",
50752
+ x: "4",
50753
+ y: "5",
50754
+ width: "11",
50755
+ height: "9"
50756
+ }, /*#__PURE__*/React__default.createElement("path", {
50757
+ fillRule: "evenodd",
50758
+ clipRule: "evenodd",
50759
+ 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",
50760
+ fill: "white"
50761
+ })), /*#__PURE__*/React__default.createElement("g", {
50762
+ mask: "url(#mask0_3361_1486)"
50763
+ }, /*#__PURE__*/React__default.createElement("rect", {
50764
+ width: width,
50765
+ height: height,
50766
+ fill: color
50767
+ })));
50768
+ };
50769
+
50626
50770
  var FilterableListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50627
50771
  var index = _ref.index,
50628
50772
  option = _ref.option,
@@ -50631,28 +50775,31 @@ var FilterableListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50631
50775
  disabled = _ref.disabled,
50632
50776
  tabIndex = _ref.tabIndex,
50633
50777
  name = _ref.name,
50778
+ showDivider = _ref.showDivider,
50779
+ extraStyles = _ref.extraStyles,
50634
50780
  themeValues = _ref.themeValues;
50635
- return /*#__PURE__*/React__default.createElement(Box, {
50636
- padding: "0",
50781
+ 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 }");
50782
+ return /*#__PURE__*/React__default.createElement(Checkbox$1, {
50637
50783
  key: index,
50638
- extraStyles: "\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryColor, ";\n }\n ")
50639
- }, /*#__PURE__*/React__default.createElement(Checkbox$1, {
50640
50784
  ref: ref,
50641
50785
  title: option.name,
50642
50786
  name: option.name,
50787
+ role: "option",
50788
+ "aria-selected": checked,
50789
+ tabIndex: tabIndex,
50790
+ dataQa: "".concat(name, "-option-").concat(index),
50643
50791
  checked: checked,
50644
50792
  onChange: function onChange() {
50645
50793
  return selectOption(option);
50646
50794
  },
50647
50795
  textExtraStyles: "font-size: 0.875rem; margin: 0;",
50648
50796
  disabled: disabled,
50649
- extraStyles: "\n padding: 0.075rem 0.325rem; \n margin: 0;\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryColor, ";\n }\n "),
50650
- checkboxMargin: "0.3rem",
50651
- role: "option",
50652
- checkboxExtraStyles: "\n width: 1.375rem; \n height: 1.375rem;\n ".concat(checked && !disabled ? "background: " + themeValues.secondaryColor + ";" : "", "\n "),
50653
- tabIndex: tabIndex,
50654
- dataQa: "".concat(name, "-option-").concat(index)
50655
- }));
50797
+ extraStyles: "\n padding: 0.375rem 0.625rem; \n margin: 0;\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryColor, ";\n outline-offset: -3px;\n }\n ").concat(showDivider && dividerStyles, "\n ").concat(extraStyles, "\n "),
50798
+ checkboxMargin: showDivider ? "0 0 1rem" : "0",
50799
+ hasIconOverride: true,
50800
+ icon: CheckboxCheckmarkIcon,
50801
+ 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 ")
50802
+ });
50656
50803
  });
50657
50804
 
50658
50805
  var filterItemsList = function filterItemsList(list, searchTerm) {
@@ -50817,14 +50964,12 @@ var FilterableList = function FilterableList(_ref) {
50817
50964
  handleKeyDown = _useKeyboardNavigatio.handleKeyDown;
50818
50965
  return /*#__PURE__*/React__default.createElement(Box, {
50819
50966
  id: id,
50820
- role: "listbox",
50821
50967
  padding: "0",
50822
- extraStyles: "\n overflow-y: auto;\n max-height: 250px;\n display: flex;\n flex-flow: column;\n ",
50823
- onKeyDown: handleKeyDown
50824
- }, (sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length) > 0 && /*#__PURE__*/React__default.createElement(Box, {
50825
- padding: "0",
50826
- extraStyles: sortedOptions.length > 0 && "border-bottom: 1px solid ".concat(GHOST_GREY)
50827
- }, sortedAppliedOptions.map(function (option, index) {
50968
+ role: "listbox",
50969
+ "aria-label": "Filter options container",
50970
+ onKeyDown: handleKeyDown,
50971
+ extraStyles: "\n overflow-y: auto;\n max-height: 250px;\n display: flex;\n flex-flow: column;\n padding-bottom: 0.5rem;\n "
50972
+ }, (sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length) > 0 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, sortedAppliedOptions.map(function (option, index) {
50828
50973
  var checked = isChecked(option, selectedOptions);
50829
50974
  var tabIndex = index === focusedIndex || index === 0 && focusedIndex === -1 ? "0" : "-1";
50830
50975
  return /*#__PURE__*/React__default.createElement(FilterableListItem, {
@@ -50838,9 +50983,10 @@ var FilterableList = function FilterableList(_ref) {
50838
50983
  selectOption: handleSelectOption,
50839
50984
  tabIndex: tabIndex,
50840
50985
  name: name,
50841
- themeValues: themeValues
50986
+ themeValues: themeValues,
50987
+ showDivider: sortedOptions.length > 0 && index === sortedAppliedOptions.length - 1
50842
50988
  });
50843
- })), sortedOptions.map(function (option, index) {
50989
+ })), /*#__PURE__*/React__default.createElement(React__default.Fragment, null, sortedOptions.map(function (option, index) {
50844
50990
  var checked = isChecked(option, selectedOptions);
50845
50991
  var isDisabled = isMaxSelectionReached(maxSelections, selectedOptions) && !checked;
50846
50992
  var indexOffset = sortedAppliedOptions !== null && sortedAppliedOptions !== void 0 && sortedAppliedOptions.length ? sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length : 0;
@@ -50860,7 +51006,7 @@ var FilterableList = function FilterableList(_ref) {
50860
51006
  name: name,
50861
51007
  themeValues: themeValues
50862
51008
  });
50863
- }));
51009
+ })));
50864
51010
  };
50865
51011
  var FilterableList$1 = /*#__PURE__*/React__default.memo(FilterableList);
50866
51012
 
@@ -50868,7 +51014,9 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
50868
51014
  var actions = _ref.actions,
50869
51015
  autocompleteValue = _ref.autocompleteValue,
50870
51016
  btnContentOverride = _ref.btnContentOverride,
51017
+ btnExtraStyles = _ref.btnExtraStyles,
50871
51018
  disabled = _ref.disabled,
51019
+ dropdownExtraStyles = _ref.dropdownExtraStyles,
50872
51020
  extraStyles = _ref.extraStyles,
50873
51021
  fields = _ref.fields,
50874
51022
  filterLabel = _ref.filterLabel,
@@ -50887,8 +51035,6 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
50887
51035
  placeholder = _ref$placeholder === void 0 ? "Search" : _ref$placeholder,
50888
51036
  _ref$searchable = _ref.searchable,
50889
51037
  searchable = _ref$searchable === void 0 ? true : _ref$searchable,
50890
- selectedOptions = _ref.selectedOptions,
50891
- setSelectedOptions = _ref.setSelectedOptions,
50892
51038
  themeValues = _ref.themeValues,
50893
51039
  _ref$truncateBtnTextW = _ref.truncateBtnTextWidth,
50894
51040
  truncateBtnTextWidth = _ref$truncateBtnTextW === void 0 ? "15rem" : _ref$truncateBtnTextW;
@@ -50898,15 +51044,29 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
50898
51044
  setOpened = _useState2[1];
50899
51045
  var _useState3 = React.useState([]),
50900
51046
  _useState4 = _slicedToArray(_useState3, 2),
50901
- appliedOptions = _useState4[0],
50902
- setAppliedOptions = _useState4[1];
50903
- var containerRef = React.useRef(null);
51047
+ selectedOptions = _useState4[0],
51048
+ setSelectedOptions = _useState4[1];
51049
+ var _useState5 = React.useState([]),
51050
+ _useState6 = _slicedToArray(_useState5, 2),
51051
+ appliedOptions = _useState6[0],
51052
+ setAppliedOptions = _useState6[1];
51053
+ var openedRef = React.useRef(opened);
51054
+ var handleOnClose = function handleOnClose() {
51055
+ if (openedRef.current) {
51056
+ setOpened(false);
51057
+ actions.fields.searchTerm.set("");
51058
+ }
51059
+ };
51060
+ var containerRef = useOutsideClickHook(function () {
51061
+ return handleOnClose();
51062
+ });
50904
51063
  var dropdownRef = React.useRef(null);
50905
51064
  var filterButtonRef = React.useRef(null);
50906
51065
  var applyFilterButtonRef = React.useRef(null);
50907
51066
  var filterDropdownID = "".concat(name, "-filter-dropdown");
50908
- var checkboxListID = "".concat(name, "-checkbox-list");
51067
+ var listGroupID = "".concat(name, "-list-group");
50909
51068
  React.useEffect(function () {
51069
+ openedRef.current = opened;
50910
51070
  if (!opened) {
50911
51071
  onApply(selectedOptions);
50912
51072
  setAppliedOptions(selectedOptions);
@@ -50923,22 +51083,11 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
50923
51083
  or tabbing backward past the filter button.
50924
51084
  */
50925
51085
  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)) {
50926
- setOpened(false);
50927
- actions.fields.searchTerm.set("");
50928
- onApply(selectedOptions);
50929
- }
50930
- };
50931
- var handleClickOutside = function handleClickOutside(event) {
50932
- if (containerRef.current && !containerRef.current.contains(event.target) && dropdownRef.current && !dropdownRef.current.contains(event.target)) {
50933
- setOpened(false);
50934
- actions.fields.searchTerm.set("");
50935
- onApply(selectedOptions);
51086
+ handleOnClose();
50936
51087
  }
50937
51088
  };
50938
- document.addEventListener("mousedown", handleClickOutside);
50939
51089
  document.addEventListener("keydown", handleKeyDown);
50940
51090
  return function () {
50941
- document.addEventListener("mousedown", handleClickOutside);
50942
51091
  document.removeEventListener("keydown", handleKeyDown);
50943
51092
  };
50944
51093
  }, []);
@@ -50954,19 +51103,22 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
50954
51103
  },
50955
51104
  opened: opened,
50956
51105
  backgroundColor: opened ? themeValues.primaryColor : selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? themeValues.secondaryColor : WHITE,
50957
- contentColor: !opened && selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? WHITE : "#292A33",
51106
+ contentColor: !opened && selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? WHITE : CHARADE_GREY,
50958
51107
  name: name,
50959
51108
  filterDropdownID: filterDropdownID,
50960
51109
  hasIcon: hasIcon,
50961
51110
  icon: Icon,
50962
51111
  truncateBtnTextWidth: truncateBtnTextWidth,
50963
51112
  filterLabel: filterLabel,
50964
- selectedOptions: selectedOptions
51113
+ selectedOptions: selectedOptions,
51114
+ extraStyles: btnExtraStyles
50965
51115
  }), /*#__PURE__*/React__default.createElement(FilterDropdown, {
50966
51116
  id: filterDropdownID,
50967
51117
  ref: dropdownRef,
50968
- ariaOwns: checkboxListID,
50969
- opened: opened
51118
+ ariaOwns: listGroupID,
51119
+ ariaControls: listGroupID,
51120
+ opened: opened,
51121
+ extraStyles: dropdownExtraStyles
50970
51122
  }, /*#__PURE__*/React__default.createElement(SearchBox, {
50971
51123
  showSearchBox: searchable && (options === null || options === void 0 ? void 0 : options.length) > 8,
50972
51124
  autocompleteValue: autocompleteValue,
@@ -50975,7 +51127,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
50975
51127
  placeholder: placeholder,
50976
51128
  disabled: disabled
50977
51129
  }), /*#__PURE__*/React__default.createElement(FilterableList$1, {
50978
- id: checkboxListID,
51130
+ id: listGroupID,
50979
51131
  options: options,
50980
51132
  appliedOptions: appliedOptions,
50981
51133
  themeValues: themeValues,
@@ -50989,22 +51141,21 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
50989
51141
  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 ")
50990
51142
  }, /*#__PURE__*/React__default.createElement(ActionLinkButton, {
50991
51143
  action: function action() {
50992
- setOpened(false);
50993
51144
  setSelectedOptions([]);
50994
- actions.fields.searchTerm.set("");
51145
+ handleOnClose();
50995
51146
  onClear();
50996
51147
  },
50997
51148
  text: "Clear",
50998
- dataQa: "".concat(name, "-clear-filters")
51149
+ dataQa: "".concat(name, "-clear-filters"),
51150
+ ariaLabel: "Clear all filters"
50999
51151
  }), /*#__PURE__*/React__default.createElement(ActionLinkButton, {
51000
51152
  ref: applyFilterButtonRef,
51001
51153
  action: function action() {
51002
- setOpened(false);
51003
- actions.fields.searchTerm.set("");
51004
- onApply(selectedOptions);
51154
+ return handleOnClose();
51005
51155
  },
51006
51156
  text: "Apply",
51007
- dataQa: "".concat(name, "-apply-filters")
51157
+ dataQa: "".concat(name, "-apply-filters"),
51158
+ ariaLabel: "Apply all filters"
51008
51159
  }))));
51009
51160
  };
51010
51161
  var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$_);
@@ -51441,11 +51592,13 @@ exports.PaymentFormCard = PaymentFormCard$1;
51441
51592
  exports.PaymentMethodAddIcon = PaymentMethodAddIcon$1;
51442
51593
  exports.PaymentMethodIcon = PaymentMethodIcon$1;
51443
51594
  exports.PaymentSearchIcon = PaymentSearchIcon;
51595
+ exports.PaymentStatusIcon = PaymentStatusIcon;
51444
51596
  exports.PaymentsIconSmall = PaymentsIconSmall$1;
51445
51597
  exports.PencilIcon = PencilIcon$1;
51446
51598
  exports.PendingIcon = PendingIcon;
51447
51599
  exports.PeriscopeDashboardIframe = PeriscopeDashboardIframe;
51448
51600
  exports.PeriscopeFailedIcon = PeriscopeFailedIcon;
51601
+ exports.PersonIcon = PersonIcon;
51449
51602
  exports.PhoneForm = PhoneForm;
51450
51603
  exports.Placeholder = Placeholder$1;
51451
51604
  exports.PlusCircleIcon = PlusCircleIcon;