@thecb/components 10.12.1 → 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 (24) hide show
  1. package/dist/index.cjs.js +222 -110
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +2 -2
  4. package/dist/index.esm.js +221 -111
  5. package/dist/index.esm.js.map +1 -1
  6. package/package.json +1 -1
  7. package/src/components/atoms/checkbox/Checkbox.js +14 -8
  8. package/src/components/atoms/icons/CheckboxCheckmarkIcon.js +45 -0
  9. package/src/components/atoms/icons/PaymentStatusIcon.d.ts +1 -0
  10. package/src/components/atoms/icons/PaymentStatusIcon.js +28 -0
  11. package/src/components/atoms/icons/PersonIcon.d.ts +1 -0
  12. package/src/components/atoms/icons/PersonIcon.js +28 -0
  13. package/src/components/atoms/icons/icons.stories.js +5 -1
  14. package/src/components/atoms/icons/index.js +5 -1
  15. package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.js +22 -20
  16. package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.stories.js +2 -4
  17. package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.styled.js +2 -2
  18. package/src/components/molecules/multiple-select-filter/__private__/ActionLinkButton.js +16 -13
  19. package/src/components/molecules/multiple-select-filter/__private__/FilterButton.js +13 -9
  20. package/src/components/molecules/multiple-select-filter/__private__/FilterDropdown.js +22 -18
  21. package/src/components/molecules/multiple-select-filter/__private__/FilterableList.js +43 -41
  22. package/src/components/molecules/multiple-select-filter/__private__/FilterableListItem.js +53 -41
  23. package/src/components/molecules/multiple-select-filter/__private__/SearchBox.js +10 -7
  24. package/src/components/molecules/multiple-select-filter/index.d.ts +2 -2
package/dist/index.cjs.js CHANGED
@@ -18857,6 +18857,52 @@ var AgencyIcon = function AgencyIcon(_ref) {
18857
18857
  })));
18858
18858
  };
18859
18859
 
18860
+ var _excluded$m = ["width", "height", "color"];
18861
+ var PersonIcon = function PersonIcon(_ref) {
18862
+ var _ref$width = _ref.width,
18863
+ width = _ref$width === void 0 ? "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,
@@ -27247,7 +27296,7 @@ var fallbackValues$n = {
27247
27296
  formFooterPanel: formFooterPanel
27248
27297
  };
27249
27298
 
27250
- var _excluded$v = ["showErrors", "themeValues"],
27299
+ var _excluded$x = ["showErrors", "themeValues"],
27251
27300
  _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired", "errorFieldExtraStyles", "showFieldErrorRow", "labelTextVariant", "errorTextVariant"];
27252
27301
  var InputField = styled__default.input.withConfig({
27253
27302
  displayName: "FormInput__InputField",
@@ -27282,7 +27331,7 @@ var InputField = styled__default.input.withConfig({
27282
27331
  var FormattedInputField = styled__default(function (_ref8) {
27283
27332
  var showErrors = _ref8.showErrors,
27284
27333
  themeValues = _ref8.themeValues,
27285
- props = _objectWithoutProperties(_ref8, _excluded$v);
27334
+ props = _objectWithoutProperties(_ref8, _excluded$x);
27286
27335
  return /*#__PURE__*/React__default.createElement(FormattedInput, props);
27287
27336
  }).withConfig({
27288
27337
  displayName: "FormInput__FormattedInputField",
@@ -27487,7 +27536,7 @@ var FormInput = function FormInput(_ref15) {
27487
27536
  };
27488
27537
  var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$n, "default");
27489
27538
 
27490
- var _excluded$w = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
27539
+ var _excluded$y = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
27491
27540
  var FormInputRow = function FormInputRow(_ref) {
27492
27541
  var _ref$breakpoint = _ref.breakpoint,
27493
27542
  breakpoint = _ref$breakpoint === void 0 ? "30rem" : _ref$breakpoint,
@@ -27496,7 +27545,7 @@ var FormInputRow = function FormInputRow(_ref) {
27496
27545
  largeChild = _ref.largeChild,
27497
27546
  largeChildSize = _ref.largeChildSize,
27498
27547
  children = _ref.children,
27499
- rest = _objectWithoutProperties(_ref, _excluded$w);
27548
+ rest = _objectWithoutProperties(_ref, _excluded$y);
27500
27549
  return /*#__PURE__*/React__default.createElement(Box, _extends({
27501
27550
  padding: "0"
27502
27551
  }, rest), /*#__PURE__*/React__default.createElement(Switcher, {
@@ -27507,24 +27556,24 @@ var FormInputRow = function FormInputRow(_ref) {
27507
27556
  }, children));
27508
27557
  };
27509
27558
 
27510
- var _excluded$x = ["childGap", "bottomItem", "children"];
27559
+ var _excluded$z = ["childGap", "bottomItem", "children"];
27511
27560
  var FormInputColumn = function FormInputColumn(_ref) {
27512
27561
  var _ref$childGap = _ref.childGap,
27513
27562
  childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
27514
27563
  bottomItem = _ref.bottomItem,
27515
27564
  children = _ref.children,
27516
- rest = _objectWithoutProperties(_ref, _excluded$x);
27565
+ rest = _objectWithoutProperties(_ref, _excluded$z);
27517
27566
  return /*#__PURE__*/React__default.createElement(Stack, _extends({
27518
27567
  childGap: childGap,
27519
27568
  bottomItem: bottomItem
27520
27569
  }, rest), children);
27521
27570
  };
27522
27571
 
27523
- var _excluded$y = ["themeValues", "children"];
27572
+ var _excluded$A = ["themeValues", "children"];
27524
27573
  var FormContainer = function FormContainer(_ref) {
27525
27574
  var themeValues = _ref.themeValues,
27526
27575
  children = _ref.children,
27527
- rest = _objectWithoutProperties(_ref, _excluded$y);
27576
+ rest = _objectWithoutProperties(_ref, _excluded$A);
27528
27577
  var _useContext = React.useContext(styled.ThemeContext),
27529
27578
  isMobile = _useContext.isMobile;
27530
27579
  return /*#__PURE__*/React__default.createElement(Box, _extends({
@@ -27834,7 +27883,7 @@ var fallbackValues$r = {
27834
27883
  fontSize: fontSize$8
27835
27884
  };
27836
27885
 
27837
- var _excluded$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"];
27838
27887
  var Heading = function Heading(_ref) {
27839
27888
  var themeValues = _ref.themeValues,
27840
27889
  _ref$weight = _ref.weight,
@@ -27853,7 +27902,7 @@ var Heading = function Heading(_ref) {
27853
27902
  as = _ref$as === void 0 ? variant : _ref$as,
27854
27903
  dataQa = _ref.dataQa,
27855
27904
  children = _ref.children,
27856
- rest = _objectWithoutProperties(_ref, _excluded$z);
27905
+ rest = _objectWithoutProperties(_ref, _excluded$B);
27857
27906
  return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
27858
27907
  variant: variant,
27859
27908
  as: as,
@@ -28054,11 +28103,11 @@ var LabeledAmountV2 = function LabeledAmountV2(_ref) {
28054
28103
  }, /*#__PURE__*/React__default.createElement("span", null, label), /*#__PURE__*/React__default.createElement("span", null, amount));
28055
28104
  };
28056
28105
 
28057
- var _excluded$A = ["version"];
28106
+ var _excluded$C = ["version"];
28058
28107
  var LabeledAmount = function LabeledAmount(_ref) {
28059
28108
  var _ref$version = _ref.version,
28060
28109
  version = _ref$version === void 0 ? "v1" : _ref$version,
28061
- rest = _objectWithoutProperties(_ref, _excluded$A);
28110
+ rest = _objectWithoutProperties(_ref, _excluded$C);
28062
28111
  var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
28063
28112
  return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
28064
28113
  };
@@ -28203,7 +28252,7 @@ var Loading = function Loading() {
28203
28252
  })))));
28204
28253
  };
28205
28254
 
28206
- var _excluded$B = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
28255
+ var _excluded$D = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
28207
28256
  var NavFooter = function NavFooter(_ref) {
28208
28257
  var leftContent = _ref.leftContent,
28209
28258
  rightContent = _ref.rightContent,
@@ -28218,7 +28267,7 @@ var NavFooter = function NavFooter(_ref) {
28218
28267
  footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
28219
28268
  isMobile = _ref.isMobile,
28220
28269
  footerWidth = _ref.footerWidth,
28221
- rest = _objectWithoutProperties(_ref, _excluded$B);
28270
+ rest = _objectWithoutProperties(_ref, _excluded$D);
28222
28271
  return /*#__PURE__*/React__default.createElement(Box, _extends({
28223
28272
  padding: footerPadding,
28224
28273
  background: backgroundColor,
@@ -28249,7 +28298,7 @@ var NavFooter = function NavFooter(_ref) {
28249
28298
  }, rightContent)))))));
28250
28299
  };
28251
28300
 
28252
- var _excluded$C = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
28301
+ var _excluded$E = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
28253
28302
  var NavHeader = function NavHeader(_ref) {
28254
28303
  var leftContent = _ref.leftContent,
28255
28304
  rightContent = _ref.rightContent,
@@ -28258,7 +28307,7 @@ var NavHeader = function NavHeader(_ref) {
28258
28307
  isMobile = _ref.isMobile,
28259
28308
  backgroundColor = _ref.backgroundColor,
28260
28309
  headerWidth = _ref.headerWidth,
28261
- rest = _objectWithoutProperties(_ref, _excluded$C);
28310
+ rest = _objectWithoutProperties(_ref, _excluded$E);
28262
28311
  return /*#__PURE__*/React__default.createElement(Box, _extends({
28263
28312
  padding: "0 16px 4px",
28264
28313
  background: backgroundColor,
@@ -46674,11 +46723,11 @@ var Modal$2 = function Modal(_ref) {
46674
46723
  };
46675
46724
  var ModalControlV2 = withWindowSize(Modal$2);
46676
46725
 
46677
- var _excluded$D = ["version"];
46726
+ var _excluded$F = ["version"];
46678
46727
  var Modal$3 = function Modal(_ref) {
46679
46728
  var _ref$version = _ref.version,
46680
46729
  version = _ref$version === void 0 ? "v1" : _ref$version,
46681
- rest = _objectWithoutProperties(_ref, _excluded$D);
46730
+ rest = _objectWithoutProperties(_ref, _excluded$F);
46682
46731
  var ModalControl = version === "v1" ? Modal$1 : ModalControlV2;
46683
46732
  return /*#__PURE__*/React__default.createElement(ModalControl, rest);
46684
46733
  };
@@ -47980,7 +48029,7 @@ var fallbackValues$P = {
47980
48029
  labeledAmountTotal: labeledAmountTotal
47981
48030
  };
47982
48031
 
47983
- var _excluded$E = ["amount"],
48032
+ var _excluded$G = ["amount"],
47984
48033
  _excluded2$1 = ["amount"];
47985
48034
  var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
47986
48035
  var lineItemElems = _ref.lineItemElems,
@@ -48223,7 +48272,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
48223
48272
  return fee.amount > 0;
48224
48273
  }).map(function (_ref5) {
48225
48274
  var amount = _ref5.amount,
48226
- rest = _objectWithoutProperties(_ref5, _excluded$E);
48275
+ rest = _objectWithoutProperties(_ref5, _excluded$G);
48227
48276
  return _objectSpread2(_objectSpread2({}, rest), {}, {
48228
48277
  amount: displayCurrency(amount)
48229
48278
  });
@@ -48660,11 +48709,11 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
48660
48709
  }, errorMessage))))));
48661
48710
  };
48662
48711
 
48663
- var _excluded$F = ["version"];
48712
+ var _excluded$H = ["version"];
48664
48713
  var TermsAndConditions = function TermsAndConditions(_ref) {
48665
48714
  var _ref$version = _ref.version,
48666
48715
  version = _ref$version === void 0 ? "v1" : _ref$version,
48667
- rest = _objectWithoutProperties(_ref, _excluded$F);
48716
+ rest = _objectWithoutProperties(_ref, _excluded$H);
48668
48717
  var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
48669
48718
  return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
48670
48719
  };
@@ -49472,7 +49521,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
49472
49521
  }, section.content))));
49473
49522
  };
49474
49523
 
49475
- var _excluded$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"];
49476
49525
 
49477
49526
  /**
49478
49527
  - The RadioSection component takes either a flat array (via the 'sections'
@@ -49521,7 +49570,7 @@ var RadioSection = function RadioSection(_ref) {
49521
49570
  isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
49522
49571
  groupedSections = _ref.groupedSections,
49523
49572
  borderOverride = _ref.borderOverride,
49524
- rest = _objectWithoutProperties(_ref, _excluded$G);
49573
+ rest = _objectWithoutProperties(_ref, _excluded$I);
49525
49574
  var _useState = React.useState(null),
49526
49575
  _useState2 = _slicedToArray(_useState, 2),
49527
49576
  focused = _useState2[0],
@@ -50068,7 +50117,7 @@ var Timeout = function Timeout(_ref) {
50068
50117
  };
50069
50118
  var Timeout$1 = withWindowSize(Timeout);
50070
50119
 
50071
- var _excluded$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"];
50072
50121
  var VARIANTS = {
50073
50122
  SUCCESS: "success",
50074
50123
  ERROR: "error"
@@ -50097,7 +50146,7 @@ var ToastNotification = function ToastNotification(_ref) {
50097
50146
  screenReaderMessage = _ref.screenReaderMessage,
50098
50147
  _ref$showScreenReader = _ref.showScreenReaderMessage,
50099
50148
  showScreenReaderMessage = _ref$showScreenReader === void 0 ? true : _ref$showScreenReader,
50100
- rest = _objectWithoutProperties(_ref, _excluded$H);
50149
+ rest = _objectWithoutProperties(_ref, _excluded$J);
50101
50150
  var screenReaderMessageRef = React.useRef();
50102
50151
  var LIVEREGION_TRANSITION_DELAY = 1000;
50103
50152
  React.useEffect(function () {
@@ -50280,7 +50329,7 @@ var PopupMenuItemContainer = styled__default(ButtonWithAction).withConfig({
50280
50329
  return "\n background-color: ".concat(isDeleteAction ? theme.menuItemHoverBackgroundColorDelete : theme.menuItemHoverBackgroundColor, ";\n ");
50281
50330
  });
50282
50331
 
50283
- var _excluded$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"];
50284
50333
  var PopupMenuItem = function PopupMenuItem(_ref) {
50285
50334
  var id = _ref.id,
50286
50335
  closeMenuCallback = _ref.closeMenuCallback,
@@ -50296,7 +50345,7 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
50296
50345
  hoverStyles = _ref.hoverStyles,
50297
50346
  activeStyles = _ref.activeStyles,
50298
50347
  extraStyles = _ref.extraStyles,
50299
- rest = _objectWithoutProperties(_ref, _excluded$I);
50348
+ rest = _objectWithoutProperties(_ref, _excluded$K);
50300
50349
  return /*#__PURE__*/React__default.createElement(PopupMenuItemContainer, _extends({
50301
50350
  id: id,
50302
50351
  role: "menuItem",
@@ -50479,10 +50528,7 @@ var fallbackValues$_ = {
50479
50528
  var StyledFilterContainer = styled__default(Box).withConfig({
50480
50529
  displayName: "MultipleSelectFilterstyled__StyledFilterContainer",
50481
50530
  componentId: "sc-126xgc2-0"
50482
- })(["position:relative;box-sizing:border-box;padding:0;", ""], function (_ref) {
50483
- var extraStyles = _ref.extraStyles;
50484
- return extraStyles;
50485
- });
50531
+ })(["position:relative;overflow:visible;box-sizing:border-box;padding:0;"]);
50486
50532
  var FilterContainer = /*#__PURE__*/React.forwardRef(function (props, ref) {
50487
50533
  return /*#__PURE__*/React__default.createElement(StyledFilterContainer, _extends({
50488
50534
  ref: ref
@@ -50491,7 +50537,7 @@ var FilterContainer = /*#__PURE__*/React.forwardRef(function (props, ref) {
50491
50537
  var StyledFilterDropdown = styled__default(Box).withConfig({
50492
50538
  displayName: "MultipleSelectFilterstyled__StyledFilterDropdown",
50493
50539
  componentId: "sc-126xgc2-1"
50494
- })(["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;"]);
50495
50541
  var FilterDropdownContainer = /*#__PURE__*/React.forwardRef(function (props, ref) {
50496
50542
  return /*#__PURE__*/React__default.createElement(StyledFilterDropdown, _extends({
50497
50543
  ref: ref
@@ -50500,11 +50546,11 @@ var FilterDropdownContainer = /*#__PURE__*/React.forwardRef(function (props, ref
50500
50546
  var FilterButton = styled__default(ButtonWithAction).withConfig({
50501
50547
  displayName: "MultipleSelectFilterstyled__FilterButton",
50502
50548
  componentId: "sc-126xgc2-2"
50503
- })(["min-width:auto;min-height:2.3125rem;margin:0;padding:0.5rem;border-radius:0.25rem;box-shadow:0px 1px 2px 0px rgba(41,42,51,0.1);", " ", ""], function (_ref2) {
50504
- 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;
50505
50551
  return "\n color: ".concat(textColor, ";\n ");
50506
- }, function (_ref3) {
50507
- var backgroundColor = _ref3.backgroundColor;
50552
+ }, function (_ref2) {
50553
+ var backgroundColor = _ref2.backgroundColor;
50508
50554
  return "\n background-color: ".concat(backgroundColor, ";\n :hover,\n :active,\n :focus {\n background-color: ").concat(backgroundColor, ";\n }\n ");
50509
50555
  });
50510
50556
  var StyledFilterButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -50516,7 +50562,8 @@ var StyledFilterButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
50516
50562
  var ActionLinkButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50517
50563
  var action = _ref.action,
50518
50564
  text = _ref.text,
50519
- dataQa = _ref.dataQa;
50565
+ dataQa = _ref.dataQa,
50566
+ ariaLabel = _ref.ariaLabel;
50520
50567
  return /*#__PURE__*/React__default.createElement(ButtonWithAction, {
50521
50568
  ref: ref,
50522
50569
  action: action,
@@ -50524,11 +50571,12 @@ var ActionLinkButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50524
50571
  extraStyles: "\n padding: 0.2rem; \n margin: 0.5rem; \n min-height: auto; \n min-width: auto;\n ",
50525
50572
  textExtraStyles: "font-weight: ".concat(FONT_WEIGHT_REGULAR, ";"),
50526
50573
  text: text,
50527
- dataQa: dataQa
50574
+ dataQa: dataQa,
50575
+ "aria-label": ariaLabel
50528
50576
  });
50529
50577
  });
50530
50578
 
50531
- var _excluded$J = ["width", "height", "color"];
50579
+ var _excluded$L = ["width", "height", "color"];
50532
50580
  var DropdownIconV2 = function DropdownIconV2(_ref) {
50533
50581
  var _ref$width = _ref.width,
50534
50582
  width = _ref$width === void 0 ? "18" : _ref$width,
@@ -50536,7 +50584,7 @@ var DropdownIconV2 = function DropdownIconV2(_ref) {
50536
50584
  height = _ref$height === void 0 ? "19" : _ref$height,
50537
50585
  _ref$color = _ref.color,
50538
50586
  color = _ref$color === void 0 ? "#292A33" : _ref$color,
50539
- props = _objectWithoutProperties(_ref, _excluded$J);
50587
+ props = _objectWithoutProperties(_ref, _excluded$L);
50540
50588
  return /*#__PURE__*/React__default.createElement("svg", _extends({
50541
50589
  width: width,
50542
50590
  height: height,
@@ -50590,7 +50638,10 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50590
50638
  Icon = _ref.icon,
50591
50639
  truncateBtnTextWidth = _ref.truncateBtnTextWidth,
50592
50640
  filterLabel = _ref.filterLabel,
50593
- 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") : "";
50594
50645
  return /*#__PURE__*/React__default.createElement(StyledFilterButton, {
50595
50646
  ref: ref,
50596
50647
  variant: "tertiary",
@@ -50600,6 +50651,8 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50600
50651
  "aria-controls": filterDropdownID,
50601
50652
  backgroundColor: backgroundColor,
50602
50653
  dataQa: "".concat(name, "-filter-button"),
50654
+ extraStyles: extraStyles,
50655
+ "aria-label": "".concat(filterLabel, " Filter: ").concat(btnTextFilterDescription, " ").concat(btnTextItemsDescription),
50603
50656
  contentOverride: true
50604
50657
  }, btnContentOverride ? btnContentOverride : /*#__PURE__*/React__default.createElement(Center, {
50605
50658
  as: "span",
@@ -50622,10 +50675,10 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50622
50675
  variant: "pS",
50623
50676
  color: contentColor,
50624
50677
  extraStyles: "\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n ".concat(truncateBtnTextWidth && "max-width:" + truncateBtnTextWidth, "\n ")
50625
- }, 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, {
50626
50679
  color: contentColor,
50627
50680
  variant: "pS"
50628
- }, 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, {
50629
50682
  color: contentColor
50630
50683
  })));
50631
50684
  });
@@ -50633,7 +50686,9 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50633
50686
  var FilterDropdown = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50634
50687
  var id = _ref.id,
50635
50688
  ariaOwns = _ref.ariaOwns,
50689
+ ariaControls = _ref.ariaControls,
50636
50690
  opened = _ref.opened,
50691
+ extraStyles = _ref.extraStyles,
50637
50692
  children = _ref.children;
50638
50693
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, opened && /*#__PURE__*/React__default.createElement(FilterDropdownContainer, {
50639
50694
  ref: ref,
@@ -50641,7 +50696,9 @@ var FilterDropdown = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50641
50696
  role: "combobox",
50642
50697
  "aria-expanded": opened,
50643
50698
  "aria-haspopup": "listbox",
50644
- "aria-owns": ariaOwns
50699
+ "aria-owns": ariaOwns,
50700
+ "aria-controls": ariaControls,
50701
+ extraStyles: extraStyles
50645
50702
  }, children));
50646
50703
  });
50647
50704
 
@@ -50662,10 +50719,54 @@ var SearchBox = function SearchBox(_ref) {
50662
50719
  fieldActions: actions.fields.searchTerm,
50663
50720
  placeholder: placeholder,
50664
50721
  disabled: disabled,
50665
- 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 ")
50666
50723
  }));
50667
50724
  };
50668
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
+
50669
50770
  var FilterableListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50670
50771
  var index = _ref.index,
50671
50772
  option = _ref.option,
@@ -50674,28 +50775,31 @@ var FilterableListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50674
50775
  disabled = _ref.disabled,
50675
50776
  tabIndex = _ref.tabIndex,
50676
50777
  name = _ref.name,
50778
+ showDivider = _ref.showDivider,
50779
+ extraStyles = _ref.extraStyles,
50677
50780
  themeValues = _ref.themeValues;
50678
- return /*#__PURE__*/React__default.createElement(Box, {
50679
- 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, {
50680
50783
  key: index,
50681
- extraStyles: "\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryColor, ";\n }\n ")
50682
- }, /*#__PURE__*/React__default.createElement(Checkbox$1, {
50683
50784
  ref: ref,
50684
50785
  title: option.name,
50685
50786
  name: option.name,
50787
+ role: "option",
50788
+ "aria-selected": checked,
50789
+ tabIndex: tabIndex,
50790
+ dataQa: "".concat(name, "-option-").concat(index),
50686
50791
  checked: checked,
50687
50792
  onChange: function onChange() {
50688
50793
  return selectOption(option);
50689
50794
  },
50690
50795
  textExtraStyles: "font-size: 0.875rem; margin: 0;",
50691
50796
  disabled: disabled,
50692
- extraStyles: "\n padding: 0.075rem 0.325rem; \n margin: 0;\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryColor, ";\n }\n "),
50693
- checkboxMargin: "0.3rem",
50694
- role: "option",
50695
- checkboxExtraStyles: "\n width: 1.375rem; \n height: 1.375rem;\n ".concat(checked && !disabled ? "background: " + themeValues.secondaryColor + ";" : "", "\n "),
50696
- tabIndex: tabIndex,
50697
- dataQa: "".concat(name, "-option-").concat(index)
50698
- }));
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
+ });
50699
50803
  });
50700
50804
 
50701
50805
  var filterItemsList = function filterItemsList(list, searchTerm) {
@@ -50860,14 +50964,12 @@ var FilterableList = function FilterableList(_ref) {
50860
50964
  handleKeyDown = _useKeyboardNavigatio.handleKeyDown;
50861
50965
  return /*#__PURE__*/React__default.createElement(Box, {
50862
50966
  id: id,
50863
- role: "listbox",
50864
50967
  padding: "0",
50865
- extraStyles: "\n overflow-y: auto;\n max-height: 250px;\n display: flex;\n flex-flow: column;\n ",
50866
- onKeyDown: handleKeyDown
50867
- }, (sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length) > 0 && /*#__PURE__*/React__default.createElement(Box, {
50868
- padding: "0",
50869
- extraStyles: sortedOptions.length > 0 && "border-bottom: 1px solid ".concat(GHOST_GREY)
50870
- }, 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) {
50871
50973
  var checked = isChecked(option, selectedOptions);
50872
50974
  var tabIndex = index === focusedIndex || index === 0 && focusedIndex === -1 ? "0" : "-1";
50873
50975
  return /*#__PURE__*/React__default.createElement(FilterableListItem, {
@@ -50881,9 +50983,10 @@ var FilterableList = function FilterableList(_ref) {
50881
50983
  selectOption: handleSelectOption,
50882
50984
  tabIndex: tabIndex,
50883
50985
  name: name,
50884
- themeValues: themeValues
50986
+ themeValues: themeValues,
50987
+ showDivider: sortedOptions.length > 0 && index === sortedAppliedOptions.length - 1
50885
50988
  });
50886
- })), sortedOptions.map(function (option, index) {
50989
+ })), /*#__PURE__*/React__default.createElement(React__default.Fragment, null, sortedOptions.map(function (option, index) {
50887
50990
  var checked = isChecked(option, selectedOptions);
50888
50991
  var isDisabled = isMaxSelectionReached(maxSelections, selectedOptions) && !checked;
50889
50992
  var indexOffset = sortedAppliedOptions !== null && sortedAppliedOptions !== void 0 && sortedAppliedOptions.length ? sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length : 0;
@@ -50903,7 +51006,7 @@ var FilterableList = function FilterableList(_ref) {
50903
51006
  name: name,
50904
51007
  themeValues: themeValues
50905
51008
  });
50906
- }));
51009
+ })));
50907
51010
  };
50908
51011
  var FilterableList$1 = /*#__PURE__*/React__default.memo(FilterableList);
50909
51012
 
@@ -50911,7 +51014,9 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
50911
51014
  var actions = _ref.actions,
50912
51015
  autocompleteValue = _ref.autocompleteValue,
50913
51016
  btnContentOverride = _ref.btnContentOverride,
51017
+ btnExtraStyles = _ref.btnExtraStyles,
50914
51018
  disabled = _ref.disabled,
51019
+ dropdownExtraStyles = _ref.dropdownExtraStyles,
50915
51020
  extraStyles = _ref.extraStyles,
50916
51021
  fields = _ref.fields,
50917
51022
  filterLabel = _ref.filterLabel,
@@ -50930,8 +51035,6 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
50930
51035
  placeholder = _ref$placeholder === void 0 ? "Search" : _ref$placeholder,
50931
51036
  _ref$searchable = _ref.searchable,
50932
51037
  searchable = _ref$searchable === void 0 ? true : _ref$searchable,
50933
- selectedOptions = _ref.selectedOptions,
50934
- setSelectedOptions = _ref.setSelectedOptions,
50935
51038
  themeValues = _ref.themeValues,
50936
51039
  _ref$truncateBtnTextW = _ref.truncateBtnTextWidth,
50937
51040
  truncateBtnTextWidth = _ref$truncateBtnTextW === void 0 ? "15rem" : _ref$truncateBtnTextW;
@@ -50941,22 +51044,29 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
50941
51044
  setOpened = _useState2[1];
50942
51045
  var _useState3 = React.useState([]),
50943
51046
  _useState4 = _slicedToArray(_useState3, 2),
50944
- appliedOptions = _useState4[0],
50945
- setAppliedOptions = _useState4[1];
50946
- var handleClickOutsideContainer = function handleClickOutsideContainer() {
50947
- setOpened(false);
50948
- actions.fields.searchTerm.set("");
50949
- onApply(selectedOptions);
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
+ }
50950
51059
  };
50951
51060
  var containerRef = useOutsideClickHook(function () {
50952
- return handleClickOutsideContainer();
51061
+ return handleOnClose();
50953
51062
  });
50954
51063
  var dropdownRef = React.useRef(null);
50955
51064
  var filterButtonRef = React.useRef(null);
50956
51065
  var applyFilterButtonRef = React.useRef(null);
50957
51066
  var filterDropdownID = "".concat(name, "-filter-dropdown");
50958
- var checkboxListID = "".concat(name, "-checkbox-list");
51067
+ var listGroupID = "".concat(name, "-list-group");
50959
51068
  React.useEffect(function () {
51069
+ openedRef.current = opened;
50960
51070
  if (!opened) {
50961
51071
  onApply(selectedOptions);
50962
51072
  setAppliedOptions(selectedOptions);
@@ -50973,9 +51083,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
50973
51083
  or tabbing backward past the filter button.
50974
51084
  */
50975
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)) {
50976
- setOpened(false);
50977
- actions.fields.searchTerm.set("");
50978
- onApply(selectedOptions);
51086
+ handleOnClose();
50979
51087
  }
50980
51088
  };
50981
51089
  document.addEventListener("keydown", handleKeyDown);
@@ -51002,12 +51110,15 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
51002
51110
  icon: Icon,
51003
51111
  truncateBtnTextWidth: truncateBtnTextWidth,
51004
51112
  filterLabel: filterLabel,
51005
- selectedOptions: selectedOptions
51113
+ selectedOptions: selectedOptions,
51114
+ extraStyles: btnExtraStyles
51006
51115
  }), /*#__PURE__*/React__default.createElement(FilterDropdown, {
51007
51116
  id: filterDropdownID,
51008
51117
  ref: dropdownRef,
51009
- ariaOwns: checkboxListID,
51010
- opened: opened
51118
+ ariaOwns: listGroupID,
51119
+ ariaControls: listGroupID,
51120
+ opened: opened,
51121
+ extraStyles: dropdownExtraStyles
51011
51122
  }, /*#__PURE__*/React__default.createElement(SearchBox, {
51012
51123
  showSearchBox: searchable && (options === null || options === void 0 ? void 0 : options.length) > 8,
51013
51124
  autocompleteValue: autocompleteValue,
@@ -51016,7 +51127,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
51016
51127
  placeholder: placeholder,
51017
51128
  disabled: disabled
51018
51129
  }), /*#__PURE__*/React__default.createElement(FilterableList$1, {
51019
- id: checkboxListID,
51130
+ id: listGroupID,
51020
51131
  options: options,
51021
51132
  appliedOptions: appliedOptions,
51022
51133
  themeValues: themeValues,
@@ -51030,22 +51141,21 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
51030
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 ")
51031
51142
  }, /*#__PURE__*/React__default.createElement(ActionLinkButton, {
51032
51143
  action: function action() {
51033
- setOpened(false);
51034
51144
  setSelectedOptions([]);
51035
- actions.fields.searchTerm.set("");
51145
+ handleOnClose();
51036
51146
  onClear();
51037
51147
  },
51038
51148
  text: "Clear",
51039
- dataQa: "".concat(name, "-clear-filters")
51149
+ dataQa: "".concat(name, "-clear-filters"),
51150
+ ariaLabel: "Clear all filters"
51040
51151
  }), /*#__PURE__*/React__default.createElement(ActionLinkButton, {
51041
51152
  ref: applyFilterButtonRef,
51042
51153
  action: function action() {
51043
- setOpened(false);
51044
- actions.fields.searchTerm.set("");
51045
- onApply(selectedOptions);
51154
+ return handleOnClose();
51046
51155
  },
51047
51156
  text: "Apply",
51048
- dataQa: "".concat(name, "-apply-filters")
51157
+ dataQa: "".concat(name, "-apply-filters"),
51158
+ ariaLabel: "Apply all filters"
51049
51159
  }))));
51050
51160
  };
51051
51161
  var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$_);
@@ -51482,11 +51592,13 @@ exports.PaymentFormCard = PaymentFormCard$1;
51482
51592
  exports.PaymentMethodAddIcon = PaymentMethodAddIcon$1;
51483
51593
  exports.PaymentMethodIcon = PaymentMethodIcon$1;
51484
51594
  exports.PaymentSearchIcon = PaymentSearchIcon;
51595
+ exports.PaymentStatusIcon = PaymentStatusIcon;
51485
51596
  exports.PaymentsIconSmall = PaymentsIconSmall$1;
51486
51597
  exports.PencilIcon = PencilIcon$1;
51487
51598
  exports.PendingIcon = PendingIcon;
51488
51599
  exports.PeriscopeDashboardIframe = PeriscopeDashboardIframe;
51489
51600
  exports.PeriscopeFailedIcon = PeriscopeFailedIcon;
51601
+ exports.PersonIcon = PersonIcon;
51490
51602
  exports.PhoneForm = PhoneForm;
51491
51603
  exports.Placeholder = Placeholder$1;
51492
51604
  exports.PlusCircleIcon = PlusCircleIcon;