@thecb/components 10.11.0-beta.0 → 10.11.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 (35) hide show
  1. package/dist/index.cjs.js +489 -367
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +48 -1
  4. package/dist/index.esm.js +486 -367
  5. package/dist/index.esm.js.map +1 -1
  6. package/package.json +1 -1
  7. package/src/components/atoms/checkbox/Checkbox.js +103 -97
  8. package/src/components/atoms/icons/CaretArrowDown.d.ts +9 -0
  9. package/src/components/atoms/icons/CaretArrowDown.js +22 -0
  10. package/src/components/atoms/icons/CaretArrowUp.d.ts +9 -0
  11. package/src/components/atoms/icons/CaretArrowUp.js +22 -0
  12. package/src/components/atoms/icons/CarrotIcon.js +2 -0
  13. package/src/components/atoms/icons/icons.stories.js +4 -0
  14. package/src/components/atoms/icons/index.d.ts +2 -0
  15. package/src/components/atoms/icons/index.js +4 -0
  16. package/src/components/atoms/index.d.ts +1 -0
  17. package/src/components/atoms/index.js +1 -0
  18. package/src/components/atoms/layouts/Box.styled.js +34 -22
  19. package/src/components/atoms/search/Search.js +4 -2
  20. package/src/components/atoms/search/index.d.ts +1 -0
  21. package/src/components/atoms/sortable-table-heading/SortableTableHeading.js +47 -0
  22. package/src/components/atoms/sortable-table-heading/SortableTableHeading.stories.js +19 -0
  23. package/src/components/atoms/sortable-table-heading/SortableTableHeading.theme.js +9 -0
  24. package/src/components/atoms/sortable-table-heading/index.d.ts +15 -0
  25. package/src/components/atoms/sortable-table-heading/index.js +3 -0
  26. package/src/components/atoms/table/Table.stories.js +81 -0
  27. package/src/components/molecules/email-form/EmailForm.js +7 -0
  28. package/src/components/molecules/email-form/EmailForm.state.js +1 -1
  29. package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.js +48 -82
  30. package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.styled.js +57 -0
  31. package/src/components/molecules/phone-form/PhoneForm.js +7 -1
  32. package/src/components/molecules/phone-form/PhoneForm.state.js +1 -1
  33. package/src/hooks/index.js +1 -0
  34. package/src/hooks/use-conditionally-add-validator/index.js +20 -0
  35. package/src/util/themeUtils.js +24 -14
package/dist/index.cjs.js CHANGED
@@ -4864,8 +4864,8 @@ var createThemeValues = function createThemeValues(themeContext, fallbackValues,
4864
4864
  }, {});
4865
4865
  return createdTheme;
4866
4866
  };
4867
- var themeComponent = function themeComponent(component, componentThemeId, fallbackValues, defaultVariant) {
4868
- return function (_ref7) {
4867
+ var themeComponent = function themeComponent(Component, componentThemeId, fallbackValues, defaultVariant) {
4868
+ return /*#__PURE__*/React.forwardRef(function (_ref7, ref) {
4869
4869
  var _themeContext$metadat;
4870
4870
  var _ref7$variant = _ref7.variant,
4871
4871
  variant = _ref7$variant === void 0 ? defaultVariant : _ref7$variant,
@@ -4873,12 +4873,13 @@ var themeComponent = function themeComponent(component, componentThemeId, fallba
4873
4873
  var themeContext = React.useContext(styled.ThemeContext);
4874
4874
  var metadata = (_themeContext$metadat = themeContext === null || themeContext === void 0 ? void 0 : themeContext.metadata) !== null && _themeContext$metadat !== void 0 ? _themeContext$metadat : {};
4875
4875
  var themeValues = themeContext ? createThemeValues(themeContext, fallbackValues, componentThemeId, variant) : fallbackValues;
4876
- return component(_objectSpread2(_objectSpread2({}, props), {}, {
4876
+ return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
4877
4877
  themeValues: themeValues,
4878
4878
  variant: variant,
4879
- metadata: metadata
4879
+ metadata: metadata,
4880
+ ref: ref
4880
4881
  }));
4881
- };
4882
+ });
4882
4883
  };
4883
4884
 
4884
4885
  /*
@@ -6450,7 +6451,7 @@ var _excluded$2 = ["activeStyles", "focusStyles", "hoverStyles", "disabledStyles
6450
6451
  */
6451
6452
 
6452
6453
  /* eslint-disable no-unused-vars */
6453
- var BoxWrapper = styled__default(function (_ref) {
6454
+ var BoxWrapper = styled__default( /*#__PURE__*/React.forwardRef(function (_ref, ref) {
6454
6455
  var activeStyles = _ref.activeStyles,
6455
6456
  focusStyles = _ref.focusStyles,
6456
6457
  hoverStyles = _ref.hoverStyles,
@@ -6471,10 +6472,11 @@ var BoxWrapper = styled__default(function (_ref) {
6471
6472
  ariaLabel = _ref.ariaLabel,
6472
6473
  props = _objectWithoutProperties(_ref, _excluded$2);
6473
6474
  return /*#__PURE__*/React__default.createElement("div", _extends({
6475
+ ref: ref,
6474
6476
  "aria-controls": ariaControls,
6475
6477
  "aria-label": ariaLabel
6476
6478
  }, props));
6477
- }).withConfig({
6479
+ })).withConfig({
6478
6480
  displayName: "Boxstyled__BoxWrapper",
6479
6481
  componentId: "sc-1f9ij0d-0"
6480
6482
  })(["position:relative;box-sizing:border-box;padding:", ";border:", ";box-shadow:", ";background-color:", ";min-height:", ";", " min-width:", ";max-width:", ";color:", ";border-radius:", ";border-width:", ";text-align:", ";&:hover{", "}&:focus{", "}&:active{", "}&:disabled{", "}&[aria-disabled=\"true\"]{", "}& *{color:", ";}", " ", ""], function (_ref2) {
@@ -15225,6 +15227,42 @@ var StatusUnknownIcon = function StatusUnknownIcon() {
15225
15227
  }))));
15226
15228
  };
15227
15229
 
15230
+ var CaretArrowDown = function CaretArrowDown(_ref) {
15231
+ var color = _ref.color;
15232
+ return /*#__PURE__*/React__default.createElement("svg", {
15233
+ width: "10",
15234
+ height: "7",
15235
+ viewBox: "0 0 10 7",
15236
+ fill: "none",
15237
+ xmlns: "http://www.w3.org/2000/svg"
15238
+ }, /*#__PURE__*/React__default.createElement("path", {
15239
+ fillRule: "evenodd",
15240
+ clipRule: "evenodd",
15241
+ d: "M9.01563 1.11612C8.82037 0.920857 8.50379 0.920857 8.30853 1.11612L4.94977 4.47488L1.59101 1.11612C1.39575 0.920857 1.07917 0.920856 0.883904 1.11612L0.353574 1.64645C0.158312 1.84171 0.158312 2.15829 0.353574 2.35356L4.06588 6.06587L4.59621 6.5962C4.79148 6.79146 5.10806 6.79146 5.30332 6.5962L5.83365 6.06587L9.54596 2.35356C9.74122 2.15829 9.74122 1.84171 9.54596 1.64645L9.01563 1.11612Z",
15242
+ fill: color
15243
+ }));
15244
+ };
15245
+ var CaretArrowDown$1 = themeComponent(CaretArrowDown, "Icons", fallbackValues$2);
15246
+
15247
+ var CaretArrowUp = function CaretArrowUp(_ref) {
15248
+ var color = _ref.color;
15249
+ return /*#__PURE__*/React__default.createElement("svg", {
15250
+ width: "10",
15251
+ height: "7",
15252
+ viewBox: "0 0 10 7",
15253
+ fill: "none",
15254
+ xmlns: "http://www.w3.org/2000/svg"
15255
+ }, /*#__PURE__*/React__default.createElement("path", {
15256
+ fillRule: "evenodd",
15257
+ clipRule: "evenodd",
15258
+ d: "M0.883904 5.88388C1.07917 6.07914 1.39575 6.07914 1.59101 5.88388L4.94977 2.52512L8.30853 5.88388C8.50379 6.07914 8.82037 6.07914 9.01563 5.88388L9.54596 5.35355C9.74122 5.15829 9.74122 4.84171 9.54596 4.64644L5.83365 0.934134L5.30332 0.403804C5.10806 0.208542 4.79148 0.208542 4.59621 0.403804L4.06588 0.934134L0.353574 4.64644C0.158312 4.84171 0.158312 5.15829 0.353574 5.35355L0.883904 5.88388Z",
15259
+ fill: color
15260
+ }));
15261
+ };
15262
+ var CaretArrowUp$1 = themeComponent(CaretArrowUp, "Icons", fallbackValues$2);
15263
+
15264
+ // This differs from CaretArrowUp and CaretArrowDown in that it completes a triangular shape. It is used in the header on Navigate.
15265
+
15228
15266
  var CarrotIcon = function CarrotIcon(_ref) {
15229
15267
  var themeValues = _ref.themeValues;
15230
15268
  return /*#__PURE__*/React__default.createElement("svg", {
@@ -23205,7 +23243,7 @@ var StyledCheckbox = styled__default.span.withConfig({
23205
23243
  var checkboxExtraStyles = _ref4.checkboxExtraStyles;
23206
23244
  return styled.css(["", ""], checkboxExtraStyles);
23207
23245
  });
23208
- var Checkbox = function Checkbox(_ref5) {
23246
+ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
23209
23247
  var title = _ref5.title,
23210
23248
  name = _ref5.name,
23211
23249
  checked = _ref5.checked,
@@ -23240,6 +23278,7 @@ var Checkbox = function Checkbox(_ref5) {
23240
23278
  var ariaLabelledById = labelledById !== null && labelledById !== void 0 ? labelledById : titleId;
23241
23279
  var ariaLabel = ariaLabelledById ? undefined : name;
23242
23280
  return /*#__PURE__*/React__default.createElement(Box, _extends({
23281
+ ref: ref,
23243
23282
  padding: "0",
23244
23283
  tabIndex: "0",
23245
23284
  onFocus: function onFocus() {
@@ -23297,7 +23336,7 @@ var Checkbox = function Checkbox(_ref5) {
23297
23336
  color: themeValues.textColor,
23298
23337
  extraStyles: textExtraStyles ? "".concat(textExtraStyles, " ").concat(disabled && "color: #6e727e; background-color: #f7f7f7;", " ") : "margin-left: 1rem ".concat(disabled && "color: #6e727e; background-color: #f7f7f7;")
23299
23338
  }, title)));
23300
- };
23339
+ });
23301
23340
  var Checkbox$1 = themeComponent(Checkbox, "Checkbox", fallbackValues$d, "default");
23302
23341
 
23303
23342
  var listBackgroundColor = {
@@ -23493,6 +23532,181 @@ var CheckboxList = function CheckboxList(_ref2) {
23493
23532
  };
23494
23533
  var CheckboxList$1 = themeComponent(CheckboxList, "CheckboxList", fallbackValues$e, "default");
23495
23534
 
23535
+ var inactiveColor = MANATEE_GREY;
23536
+ var activeColor$4 = CHARADE_GREY;
23537
+ var fallbackValues$f = {
23538
+ inactiveColor: inactiveColor,
23539
+ activeColor: activeColor$4
23540
+ };
23541
+
23542
+ var Table_styled = styled__default.table.withConfig({
23543
+ displayName: "Tablestyled",
23544
+ componentId: "sc-mveye7-0"
23545
+ })(["width:100%;table-layout:auto;border-collapse:collapse;", ""], function (_ref) {
23546
+ var extraStyles = _ref.extraStyles;
23547
+ return extraStyles;
23548
+ });
23549
+
23550
+ var TableBody_styled = styled__default.tbody.withConfig({
23551
+ displayName: "TableBodystyled",
23552
+ componentId: "sc-wk5osr-0"
23553
+ })(["", ""], function (_ref) {
23554
+ var extraStyles = _ref.extraStyles;
23555
+ return extraStyles;
23556
+ });
23557
+
23558
+ var TableCell_styled = styled__default.td.withConfig({
23559
+ displayName: "TableCellstyled",
23560
+ componentId: "sc-iqndn8-0"
23561
+ })(["padding:", ";font-size:", " white-space:nowrap;max-width:", ";overflow:hidden;text-overflow:ellipsis;&:last-child{text-align:right;}", ";"], function (_ref) {
23562
+ var _ref$padding = _ref.padding,
23563
+ padding = _ref$padding === void 0 ? "24px" : _ref$padding;
23564
+ return padding;
23565
+ }, function (_ref2) {
23566
+ var _ref2$fontSize = _ref2.fontSize,
23567
+ fontSize = _ref2$fontSize === void 0 ? "0.875rem" : _ref2$fontSize;
23568
+ return fontSize;
23569
+ }, function (_ref3) {
23570
+ var _ref3$maxWidth = _ref3.maxWidth,
23571
+ maxWidth = _ref3$maxWidth === void 0 ? "250px" : _ref3$maxWidth;
23572
+ return maxWidth;
23573
+ }, function (_ref4) {
23574
+ var extraStyles = _ref4.extraStyles;
23575
+ return extraStyles;
23576
+ });
23577
+
23578
+ var backgroundColor$3 = ALABASTER_WHITE;
23579
+ var borderColor = GREY_CHATEAU;
23580
+ var fallbackValues$g = {
23581
+ backgroundColor: backgroundColor$3,
23582
+ borderColor: borderColor
23583
+ };
23584
+
23585
+ var StyledTableHead = styled__default.thead.withConfig({
23586
+ displayName: "TableHeadstyled",
23587
+ componentId: "sc-j8e6c1-0"
23588
+ })(["background-color:", ";border-bottom:", ";font-size:", ";"], function (_ref) {
23589
+ var backgroundColor = _ref.backgroundColor;
23590
+ return backgroundColor;
23591
+ }, function (_ref2) {
23592
+ var borderColor = _ref2.borderColor;
23593
+ return "1px solid ".concat(borderColor);
23594
+ }, function (_ref3) {
23595
+ var _ref3$fontSize = _ref3.fontSize,
23596
+ fontSize = _ref3$fontSize === void 0 ? "0.875rem" : _ref3$fontSize;
23597
+ return fontSize;
23598
+ });
23599
+
23600
+ var borderColor$1 = GREY_CHATEAU;
23601
+ var hoverBackgroundColor$1 = HOVER_LIGHT_BLUE;
23602
+ var fallbackValues$h = {
23603
+ borderColor: borderColor$1,
23604
+ hoverBackgroundColor: hoverBackgroundColor$1
23605
+ };
23606
+
23607
+ var TableRowWrapper = styled__default.tr.withConfig({
23608
+ displayName: "TableRowstyled",
23609
+ componentId: "sc-1tc0sav-0"
23610
+ })(["&:not(:last-child){border-bottom:", ";}", " ", ""], function (_ref) {
23611
+ var borderColor = _ref.borderColor;
23612
+ return "1px solid ".concat(borderColor);
23613
+ }, function (_ref2) {
23614
+ var hoverCursor = _ref2.hoverCursor,
23615
+ hoverEffect = _ref2.hoverEffect,
23616
+ hoverBackgroundColor = _ref2.hoverBackgroundColor;
23617
+ return hoverEffect && "&:hover {\n ".concat(hoverCursor && "cursor: pointer", ";\n background-color: ").concat(hoverBackgroundColor, ";\n }");
23618
+ }, function (_ref3) {
23619
+ var extraStyles = _ref3.extraStyles;
23620
+ return extraStyles;
23621
+ });
23622
+
23623
+ var _excluded$t = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
23624
+ var TableRow = function TableRow(_ref) {
23625
+ var children = _ref.children,
23626
+ extraStyles = _ref.extraStyles,
23627
+ _ref$hoverCursor = _ref.hoverCursor,
23628
+ _ref$hoverEffect = _ref.hoverEffect,
23629
+ hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
23630
+ onClick = _ref.onClick,
23631
+ themeValues = _ref.themeValues,
23632
+ props = _objectWithoutProperties(_ref, _excluded$t);
23633
+ return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
23634
+ onClick: onClick,
23635
+ hoverEffect: hoverEffect,
23636
+ extraStyles: extraStyles,
23637
+ borderColor: themeValues.borderColor,
23638
+ hoverBackgroundColor: themeValues.hoverBackgroundColor
23639
+ }, props), children);
23640
+ };
23641
+ var TableRow$1 = themeComponent(TableRow, "TableRow", fallbackValues$h);
23642
+
23643
+ var TableHead = function TableHead(_ref) {
23644
+ var children = _ref.children,
23645
+ _ref$extraStyles = _ref.extraStyles,
23646
+ extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
23647
+ themeValues = _ref.themeValues;
23648
+ return /*#__PURE__*/React__default.createElement(StyledTableHead, {
23649
+ backgroundColor: themeValues.backgroundColor,
23650
+ borderColor: themeValues.borderColor
23651
+ }, /*#__PURE__*/React__default.createElement(TableRow$1, {
23652
+ extraStyles: extraStyles,
23653
+ hoverEffect: false
23654
+ }, children));
23655
+ };
23656
+ var TableHead$1 = themeComponent(TableHead, "TableHead", fallbackValues$g);
23657
+
23658
+ var TableHeading = styled__default.th.withConfig({
23659
+ displayName: "TableHeadingstyled",
23660
+ componentId: "sc-1ggk38d-0"
23661
+ })(["padding:", ";min-width:", ";text-align:left;&:last-child{text-align:right;}", ""], function (_ref) {
23662
+ var _ref$padding = _ref.padding,
23663
+ padding = _ref$padding === void 0 ? "24px" : _ref$padding;
23664
+ return padding;
23665
+ }, function (_ref2) {
23666
+ var _ref2$minWidth = _ref2.minWidth,
23667
+ minWidth = _ref2$minWidth === void 0 ? "initial" : _ref2$minWidth;
23668
+ return minWidth;
23669
+ }, function (_ref3) {
23670
+ var extraStyles = _ref3.extraStyles;
23671
+ return extraStyles;
23672
+ });
23673
+
23674
+ var SortableTableHeading = function SortableTableHeading(_ref) {
23675
+ var ariaControlsId = _ref.ariaControlsId,
23676
+ _ref$disabled = _ref.disabled,
23677
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
23678
+ displayName = _ref.displayName,
23679
+ onSortChange = _ref.onSortChange,
23680
+ _ref$sortOrder = _ref.sortOrder,
23681
+ sortOrder = _ref$sortOrder === void 0 ? null : _ref$sortOrder,
23682
+ themeValues = _ref.themeValues,
23683
+ extraStyles = _ref.extraStyles;
23684
+ var getCaretColor = function getCaretColor(order) {
23685
+ if (sortOrder === order) {
23686
+ return themeValues.activeColor;
23687
+ }
23688
+ return themeValues.inactiveColor;
23689
+ };
23690
+ return /*#__PURE__*/React__default.createElement(TableHeading, {
23691
+ disabled: disabled,
23692
+ extraStyles: "cursor: pointer; ".concat(extraStyles),
23693
+ onClick: function onClick(event) {
23694
+ return disabled ? noop : onSortChange(event);
23695
+ },
23696
+ "aria-controls": ariaControlsId
23697
+ }, /*#__PURE__*/React__default.createElement(Cluster, {
23698
+ justify: "space-between"
23699
+ }, displayName, /*#__PURE__*/React__default.createElement(Stack, {
23700
+ justify: "center",
23701
+ childGap: "2px"
23702
+ }, /*#__PURE__*/React__default.createElement(CaretArrowUp$1, {
23703
+ color: getCaretColor("asc")
23704
+ }), /*#__PURE__*/React__default.createElement(CaretArrowDown$1, {
23705
+ color: getCaretColor("desc")
23706
+ }))));
23707
+ };
23708
+ var SortableTableHeading$1 = themeComponent(SortableTableHeading, "SortableTableHeading", fallbackValues$f);
23709
+
23496
23710
  var DropdownIcon = function DropdownIcon() {
23497
23711
  return /*#__PURE__*/React__default.createElement("svg", {
23498
23712
  version: "1.2",
@@ -24828,7 +25042,7 @@ exportTypedArrayMethod$1('at', function at(index) {
24828
25042
  var selectedColor = "".concat(MATISSE_BLUE);
24829
25043
  var hoverColor$3 = "".concat(HOVER_LIGHT_BLUE);
24830
25044
  var focusColor = "".concat(MATISSE_BLUE_DARK);
24831
- var fallbackValues$f = {
25045
+ var fallbackValues$i = {
24832
25046
  selectedColor: selectedColor,
24833
25047
  hoverColor: hoverColor$3,
24834
25048
  focusColor: focusColor
@@ -25229,7 +25443,7 @@ var Dropdown = function Dropdown(_ref13) {
25229
25443
  }, choice.text)));
25230
25444
  }))) : /*#__PURE__*/React__default.createElement(React.Fragment, null)));
25231
25445
  };
25232
- var Dropdown$1 = themeComponent(Dropdown, "Dropdown", fallbackValues$f);
25446
+ var Dropdown$1 = themeComponent(Dropdown, "Dropdown", fallbackValues$i);
25233
25447
 
25234
25448
  var SelectContainer = styled__default.div.withConfig({
25235
25449
  displayName: "FormSelectstyled__SelectContainer",
@@ -25276,7 +25490,7 @@ var labelColor = {
25276
25490
  "default": "".concat(CHARADE_GREY),
25277
25491
  disabled: "".concat(CHARADE_GREY)
25278
25492
  };
25279
- var borderColor = {
25493
+ var borderColor$2 = {
25280
25494
  "default": "".concat(GREY_CHATEAU),
25281
25495
  disabled: "".concat(GREY_CHATEAU)
25282
25496
  };
@@ -25300,13 +25514,13 @@ var hoverFocusStyles = {
25300
25514
  "default": "color: #0E506D; outline: none; text-decoration: underline; ",
25301
25515
  disabled: "color: #6D717E;"
25302
25516
  };
25303
- var fallbackValues$g = {
25517
+ var fallbackValues$j = {
25304
25518
  linkColor: linkColor$1,
25305
25519
  formBackgroundColor: formBackgroundColor,
25306
25520
  inputBackgroundColor: inputBackgroundColor,
25307
25521
  color: color$6,
25308
25522
  labelColor: labelColor,
25309
- borderColor: borderColor,
25523
+ borderColor: borderColor$2,
25310
25524
  lineHeight: lineHeight$1,
25311
25525
  fontSize: fontSize$4,
25312
25526
  errorFontSize: errorFontSize,
@@ -25412,7 +25626,7 @@ var FormSelect = function FormSelect(_ref) {
25412
25626
  extraStyles: "height: ".concat(themeValues.lineHeight, ";")
25413
25627
  })));
25414
25628
  };
25415
- var FormSelect$1 = themeComponent(FormSelect, "FormSelect", fallbackValues$g, "default");
25629
+ var FormSelect$1 = themeComponent(FormSelect, "FormSelect", fallbackValues$j, "default");
25416
25630
 
25417
25631
  var options = [{
25418
25632
  text: "Afghanistan",
@@ -26235,7 +26449,7 @@ var mobileFontSize$1 = {
26235
26449
  // 12px
26236
26450
  extraSmall: "0.71428rem" // 10px
26237
26451
  };
26238
- var fallbackValues$h = {
26452
+ var fallbackValues$k = {
26239
26453
  fontFamily: fontFamily$4,
26240
26454
  fontSize: fontSize$5
26241
26455
  };
@@ -26245,7 +26459,7 @@ var mobileFallbackValues$1 = {
26245
26459
  };
26246
26460
  var MOBILE_BREAKPOINT$1 = 768;
26247
26461
 
26248
- var _excluded$t = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
26462
+ var _excluded$u = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
26249
26463
 
26250
26464
  /*
26251
26465
  New responsive text component for Detail elements
@@ -26276,7 +26490,7 @@ var _excluded$t = ["themeValues", "weight", "color", "margin", "textAlign", "ext
26276
26490
  var isBelowBreakpoint$1 = window.innerWidth < MOBILE_BREAKPOINT$1;
26277
26491
  var isTouchDevice$2 = "ontouchstart" in window || navigator.maxTouchPoints > 1;
26278
26492
  var mobileDeviceDetected$1 = isBelowBreakpoint$1 && isTouchDevice$2;
26279
- var fallbacks$1 = mobileDeviceDetected$1 ? mobileFallbackValues$1 : fallbackValues$h;
26493
+ var fallbacks$1 = mobileDeviceDetected$1 ? mobileFallbackValues$1 : fallbackValues$k;
26280
26494
  var Detail = function Detail(_ref) {
26281
26495
  var themeValues = _ref.themeValues,
26282
26496
  _ref$weight = _ref.weight,
@@ -26295,7 +26509,7 @@ var Detail = function Detail(_ref) {
26295
26509
  as = _ref$as === void 0 ? "p" : _ref$as,
26296
26510
  dataQa = _ref.dataQa,
26297
26511
  children = _ref.children,
26298
- rest = _objectWithoutProperties(_ref, _excluded$t);
26512
+ rest = _objectWithoutProperties(_ref, _excluded$u);
26299
26513
  return /*#__PURE__*/React__default.createElement(DetailText, _extends({
26300
26514
  variant: variant,
26301
26515
  as: as,
@@ -26312,10 +26526,10 @@ var Detail = function Detail(_ref) {
26312
26526
  };
26313
26527
  var Detail$1 = themeComponent(Detail, "Detail", fallbacks$1, "regular");
26314
26528
 
26315
- var backgroundColor$3 = WHITE;
26529
+ var backgroundColor$4 = WHITE;
26316
26530
  var boxShadow = "0px 2px 14px 0px ".concat(ATHENS_GREY, ", 0px 3px 8px 0px ").concat(GHOST_GREY);
26317
- var fallbackValues$i = {
26318
- backgroundColor: backgroundColor$3,
26531
+ var fallbackValues$l = {
26532
+ backgroundColor: backgroundColor$4,
26319
26533
  boxShadow: boxShadow
26320
26534
  };
26321
26535
 
@@ -26337,7 +26551,7 @@ var DisplayBox = function DisplayBox(_ref) {
26337
26551
  dataQa: dataQa
26338
26552
  }, children));
26339
26553
  };
26340
- var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$i);
26554
+ var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$l);
26341
26555
 
26342
26556
  /*
26343
26557
  Hook that assigns a click event listener to the main document element
@@ -26432,21 +26646,34 @@ var useToastNotification = function useToastNotification() {
26432
26646
  };
26433
26647
  };
26434
26648
 
26649
+ function useConditionallyAddValidator(condition, validatorFn, addValidator, removeValidator) {
26650
+ React.useEffect(function () {
26651
+ if (condition) {
26652
+ addValidator(validatorFn());
26653
+ }
26654
+ return function () {
26655
+ // Remove validator when component unmounts
26656
+ removeValidator(validatorFn());
26657
+ };
26658
+ }, [condition, addValidator, removeValidator]);
26659
+ }
26660
+
26435
26661
 
26436
26662
 
26437
26663
  var index$5 = /*#__PURE__*/Object.freeze({
26438
26664
  __proto__: null,
26439
26665
  useOutsideClick: useOutsideClickHook,
26440
26666
  useScrollTo: useScrollTo,
26441
- useToastNotification: useToastNotification
26667
+ useToastNotification: useToastNotification,
26668
+ useConditionallyAddValidator: useConditionallyAddValidator
26442
26669
  });
26443
26670
 
26444
26671
  var hoverColor$4 = "#116285";
26445
- var activeColor$4 = "#0E506D";
26672
+ var activeColor$5 = "#0E506D";
26446
26673
  var popoverTriggerColor = "#15749D";
26447
- var fallbackValues$j = {
26674
+ var fallbackValues$m = {
26448
26675
  hoverColor: hoverColor$4,
26449
- activeColor: activeColor$4,
26676
+ activeColor: activeColor$5,
26450
26677
  popoverTriggerColor: popoverTriggerColor
26451
26678
  };
26452
26679
 
@@ -26594,7 +26821,7 @@ var Popover = function Popover(_ref) {
26594
26821
  extraStyles: "\n position: absolute;\n content: \"\";\n width: 0;\n height: 0;\n ".concat(arrowBorder(borderColor, arrowDirection, "8px"), ";\n filter: drop-shadow(2px 8px 14px black);\n bottom: ").concat(arrowBottom, ";\n right: ").concat(arrowRight, ";\n top: ").concat(arrowTop, ";\n left: ").concat(arrowLeft, ";\n ")
26595
26822
  })));
26596
26823
  };
26597
- var Popover$1 = themeComponent(Popover, "Popover", fallbackValues$j);
26824
+ var Popover$1 = themeComponent(Popover, "Popover", fallbackValues$m);
26598
26825
 
26599
26826
  var DisplayCard = function DisplayCard(_ref) {
26600
26827
  var title = _ref.title,
@@ -26963,7 +27190,7 @@ var labelColor$1 = {
26963
27190
  "default": "".concat(CHARADE_GREY),
26964
27191
  disabled: "".concat(CHARADE_GREY)
26965
27192
  };
26966
- var borderColor$1 = {
27193
+ var borderColor$3 = {
26967
27194
  "default": "".concat(STORM_GREY),
26968
27195
  disabled: "".concat(STORM_GREY)
26969
27196
  };
@@ -26990,13 +27217,13 @@ var hoverFocusStyles$1 = {
26990
27217
  var formFooterPanel = {
26991
27218
  "default": "".concat(INFO_BLUE)
26992
27219
  };
26993
- var fallbackValues$k = {
27220
+ var fallbackValues$n = {
26994
27221
  linkColor: linkColor$2,
26995
27222
  formBackgroundColor: formBackgroundColor$1,
26996
27223
  inputBackgroundColor: inputBackgroundColor$1,
26997
27224
  color: color$7,
26998
27225
  labelColor: labelColor$1,
26999
- borderColor: borderColor$1,
27226
+ borderColor: borderColor$3,
27000
27227
  lineHeight: lineHeight$2,
27001
27228
  fontSize: fontSize$6,
27002
27229
  errorFontSize: errorFontSize$1,
@@ -27005,7 +27232,7 @@ var fallbackValues$k = {
27005
27232
  formFooterPanel: formFooterPanel
27006
27233
  };
27007
27234
 
27008
- var _excluded$u = ["showErrors", "themeValues"],
27235
+ var _excluded$v = ["showErrors", "themeValues"],
27009
27236
  _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired", "errorFieldExtraStyles", "showFieldErrorRow"];
27010
27237
  var InputField = styled__default.input.withConfig({
27011
27238
  displayName: "FormInput__InputField",
@@ -27040,7 +27267,7 @@ var InputField = styled__default.input.withConfig({
27040
27267
  var FormattedInputField = styled__default(function (_ref8) {
27041
27268
  var showErrors = _ref8.showErrors,
27042
27269
  themeValues = _ref8.themeValues,
27043
- props = _objectWithoutProperties(_ref8, _excluded$u);
27270
+ props = _objectWithoutProperties(_ref8, _excluded$v);
27044
27271
  return /*#__PURE__*/React__default.createElement(FormattedInput, props);
27045
27272
  }).withConfig({
27046
27273
  displayName: "FormInput__FormattedInputField",
@@ -27239,9 +27466,9 @@ var FormInput = function FormInput(_ref15) {
27239
27466
  padding: "0 0 0 auto"
27240
27467
  }, decorator)));
27241
27468
  };
27242
- var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$k, "default");
27469
+ var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$n, "default");
27243
27470
 
27244
- var _excluded$v = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
27471
+ var _excluded$w = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
27245
27472
  var FormInputRow = function FormInputRow(_ref) {
27246
27473
  var _ref$breakpoint = _ref.breakpoint,
27247
27474
  breakpoint = _ref$breakpoint === void 0 ? "30rem" : _ref$breakpoint,
@@ -27250,7 +27477,7 @@ var FormInputRow = function FormInputRow(_ref) {
27250
27477
  largeChild = _ref.largeChild,
27251
27478
  largeChildSize = _ref.largeChildSize,
27252
27479
  children = _ref.children,
27253
- rest = _objectWithoutProperties(_ref, _excluded$v);
27480
+ rest = _objectWithoutProperties(_ref, _excluded$w);
27254
27481
  return /*#__PURE__*/React__default.createElement(Box, _extends({
27255
27482
  padding: "0"
27256
27483
  }, rest), /*#__PURE__*/React__default.createElement(Switcher, {
@@ -27261,24 +27488,24 @@ var FormInputRow = function FormInputRow(_ref) {
27261
27488
  }, children));
27262
27489
  };
27263
27490
 
27264
- var _excluded$w = ["childGap", "bottomItem", "children"];
27491
+ var _excluded$x = ["childGap", "bottomItem", "children"];
27265
27492
  var FormInputColumn = function FormInputColumn(_ref) {
27266
27493
  var _ref$childGap = _ref.childGap,
27267
27494
  childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
27268
27495
  bottomItem = _ref.bottomItem,
27269
27496
  children = _ref.children,
27270
- rest = _objectWithoutProperties(_ref, _excluded$w);
27497
+ rest = _objectWithoutProperties(_ref, _excluded$x);
27271
27498
  return /*#__PURE__*/React__default.createElement(Stack, _extends({
27272
27499
  childGap: childGap,
27273
27500
  bottomItem: bottomItem
27274
27501
  }, rest), children);
27275
27502
  };
27276
27503
 
27277
- var _excluded$x = ["themeValues", "children"];
27504
+ var _excluded$y = ["themeValues", "children"];
27278
27505
  var FormContainer = function FormContainer(_ref) {
27279
27506
  var themeValues = _ref.themeValues,
27280
27507
  children = _ref.children,
27281
- rest = _objectWithoutProperties(_ref, _excluded$x);
27508
+ rest = _objectWithoutProperties(_ref, _excluded$y);
27282
27509
  var _useContext = React.useContext(styled.ThemeContext),
27283
27510
  isMobile = _useContext.isMobile;
27284
27511
  return /*#__PURE__*/React__default.createElement(Box, _extends({
@@ -27287,7 +27514,7 @@ var FormContainer = function FormContainer(_ref) {
27287
27514
  borderRadius: "4px"
27288
27515
  }, rest), children);
27289
27516
  };
27290
- var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$k, "default");
27517
+ var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$n, "default");
27291
27518
 
27292
27519
  var FormFooterPanel = function FormFooterPanel(_ref) {
27293
27520
  var themeValues = _ref.themeValues,
@@ -27308,7 +27535,7 @@ var FormFooterPanel = function FormFooterPanel(_ref) {
27308
27535
  text: linkText
27309
27536
  })));
27310
27537
  };
27311
- var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$k, "default");
27538
+ var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$n, "default");
27312
27539
 
27313
27540
  var fontSize$7 = {
27314
27541
  "default": "1rem",
@@ -27322,7 +27549,7 @@ var color$8 = {
27322
27549
  "default": "".concat(CHARADE_GREY),
27323
27550
  radio: "".concat(MINESHAFT_GREY)
27324
27551
  };
27325
- var fallbackValues$l = {
27552
+ var fallbackValues$o = {
27326
27553
  fontSize: fontSize$7,
27327
27554
  padding: padding$1,
27328
27555
  color: color$8
@@ -27364,11 +27591,11 @@ var FormattedAddress = function FormattedAddress(_ref) {
27364
27591
  dataQa: "".concat(qaPrefix, "-3")
27365
27592
  }, city, ", ", stateProvince, " ".concat(zip), country ? " ".concat(country) : "")));
27366
27593
  };
27367
- var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$l, "default");
27594
+ var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$o, "default");
27368
27595
 
27369
27596
  var textColor$1 = "".concat(CHARADE_GREY);
27370
27597
  var autopayTextColor = "".concat(REGENT_GREY);
27371
- var fallbackValues$m = {
27598
+ var fallbackValues$p = {
27372
27599
  textColor: textColor$1,
27373
27600
  autopayTextColor: autopayTextColor
27374
27601
  };
@@ -27406,11 +27633,11 @@ var FormattedBankAccount = function FormattedBankAccount(_ref2) {
27406
27633
  extraStyles: "font-style: italic;"
27407
27634
  }, "Autopay Enabled")));
27408
27635
  };
27409
- var FormattedBankAccount$1 = themeComponent(FormattedBankAccount, "FormattedBankAccount", fallbackValues$m);
27636
+ var FormattedBankAccount$1 = themeComponent(FormattedBankAccount, "FormattedBankAccount", fallbackValues$p);
27410
27637
 
27411
27638
  var textColor$2 = "".concat(CHARADE_GREY);
27412
27639
  var autopayTextColor$1 = "".concat(REGENT_GREY);
27413
- var fallbackValues$n = {
27640
+ var fallbackValues$q = {
27414
27641
  textColor: textColor$2,
27415
27642
  autopayTextColor: autopayTextColor$1
27416
27643
  };
@@ -27502,7 +27729,7 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
27502
27729
  extraStyles: "font-style: italic;"
27503
27730
  }, "Autopay Enabled")));
27504
27731
  };
27505
- var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$n);
27732
+ var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$q);
27506
27733
 
27507
27734
  var Hamburger = styled__default.button.withConfig({
27508
27735
  displayName: "HamburgerButton__Hamburger",
@@ -27583,12 +27810,12 @@ var fontSize$8 = {
27583
27810
  h5: "1.375rem",
27584
27811
  h6: "1.25rem"
27585
27812
  };
27586
- var fallbackValues$o = {
27813
+ var fallbackValues$r = {
27587
27814
  fontFamily: fontFamily$5,
27588
27815
  fontSize: fontSize$8
27589
27816
  };
27590
27817
 
27591
- var _excluded$y = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
27818
+ var _excluded$z = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
27592
27819
  var Heading = function Heading(_ref) {
27593
27820
  var themeValues = _ref.themeValues,
27594
27821
  _ref$weight = _ref.weight,
@@ -27607,7 +27834,7 @@ var Heading = function Heading(_ref) {
27607
27834
  as = _ref$as === void 0 ? variant : _ref$as,
27608
27835
  dataQa = _ref.dataQa,
27609
27836
  children = _ref.children,
27610
- rest = _objectWithoutProperties(_ref, _excluded$y);
27837
+ rest = _objectWithoutProperties(_ref, _excluded$z);
27611
27838
  return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
27612
27839
  variant: variant,
27613
27840
  as: as,
@@ -27622,7 +27849,7 @@ var Heading = function Heading(_ref) {
27622
27849
  "data-qa": dataQa
27623
27850
  }, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
27624
27851
  };
27625
- var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$o, "h1");
27852
+ var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$r, "h1");
27626
27853
 
27627
27854
  var Image = styled__default.img.withConfig({
27628
27855
  displayName: "ImageBoxstyled__Image",
@@ -27757,7 +27984,7 @@ var fontWeight$4 = {
27757
27984
  // fontsize Detail regular
27758
27985
  large: "700" // fontsize Title small
27759
27986
  };
27760
- var fallbackValues$p = {
27987
+ var fallbackValues$s = {
27761
27988
  fontWeight: fontWeight$4
27762
27989
  };
27763
27990
 
@@ -27808,15 +28035,15 @@ var LabeledAmountV2 = function LabeledAmountV2(_ref) {
27808
28035
  }, /*#__PURE__*/React__default.createElement("span", null, label), /*#__PURE__*/React__default.createElement("span", null, amount));
27809
28036
  };
27810
28037
 
27811
- var _excluded$z = ["version"];
28038
+ var _excluded$A = ["version"];
27812
28039
  var LabeledAmount = function LabeledAmount(_ref) {
27813
28040
  var _ref$version = _ref.version,
27814
28041
  version = _ref$version === void 0 ? "v1" : _ref$version,
27815
- rest = _objectWithoutProperties(_ref, _excluded$z);
28042
+ rest = _objectWithoutProperties(_ref, _excluded$A);
27816
28043
  var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
27817
28044
  return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
27818
28045
  };
27819
- var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$p, "default");
28046
+ var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$s, "default");
27820
28047
 
27821
28048
  var weightTitle = {
27822
28049
  "default": "600",
@@ -27826,7 +28053,7 @@ var detailVariant = {
27826
28053
  "default": "large",
27827
28054
  small: "small"
27828
28055
  };
27829
- var fallbackValues$q = {
28056
+ var fallbackValues$t = {
27830
28057
  weightTitle: weightTitle,
27831
28058
  detailVariant: detailVariant
27832
28059
  };
@@ -27874,10 +28101,10 @@ var LineItem = function LineItem(_ref) {
27874
28101
  childGap: "0.25rem"
27875
28102
  }, visibleCustomAttrs));
27876
28103
  };
27877
- var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$q, "default");
28104
+ var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$t, "default");
27878
28105
 
27879
28106
  var color$9 = "#15749D";
27880
- var fallbackValues$r = {
28107
+ var fallbackValues$u = {
27881
28108
  color: color$9
27882
28109
  };
27883
28110
 
@@ -27941,7 +28168,7 @@ var Spinner$1 = function Spinner(_ref6) {
27941
28168
  strokeWidth: strokeWidth
27942
28169
  })));
27943
28170
  };
27944
- var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$r);
28171
+ var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$u);
27945
28172
 
27946
28173
  var Loading = function Loading() {
27947
28174
  return /*#__PURE__*/React__default.createElement(Box, {
@@ -27957,7 +28184,7 @@ var Loading = function Loading() {
27957
28184
  })))));
27958
28185
  };
27959
28186
 
27960
- var _excluded$A = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
28187
+ var _excluded$B = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
27961
28188
  var NavFooter = function NavFooter(_ref) {
27962
28189
  var leftContent = _ref.leftContent,
27963
28190
  rightContent = _ref.rightContent,
@@ -27972,7 +28199,7 @@ var NavFooter = function NavFooter(_ref) {
27972
28199
  footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
27973
28200
  isMobile = _ref.isMobile,
27974
28201
  footerWidth = _ref.footerWidth,
27975
- rest = _objectWithoutProperties(_ref, _excluded$A);
28202
+ rest = _objectWithoutProperties(_ref, _excluded$B);
27976
28203
  return /*#__PURE__*/React__default.createElement(Box, _extends({
27977
28204
  padding: footerPadding,
27978
28205
  background: backgroundColor,
@@ -28003,7 +28230,7 @@ var NavFooter = function NavFooter(_ref) {
28003
28230
  }, rightContent)))))));
28004
28231
  };
28005
28232
 
28006
- var _excluded$B = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
28233
+ var _excluded$C = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
28007
28234
  var NavHeader = function NavHeader(_ref) {
28008
28235
  var leftContent = _ref.leftContent,
28009
28236
  rightContent = _ref.rightContent,
@@ -28012,7 +28239,7 @@ var NavHeader = function NavHeader(_ref) {
28012
28239
  isMobile = _ref.isMobile,
28013
28240
  backgroundColor = _ref.backgroundColor,
28014
28241
  headerWidth = _ref.headerWidth,
28015
- rest = _objectWithoutProperties(_ref, _excluded$B);
28242
+ rest = _objectWithoutProperties(_ref, _excluded$C);
28016
28243
  return /*#__PURE__*/React__default.createElement(Box, _extends({
28017
28244
  padding: "0 16px 4px",
28018
28245
  background: backgroundColor,
@@ -28201,7 +28428,7 @@ var height$1 = {
28201
28428
  "default": "3rem",
28202
28429
  large: "192px"
28203
28430
  };
28204
- var fallbackValues$s = {
28431
+ var fallbackValues$v = {
28205
28432
  color: color$a,
28206
28433
  height: height$1
28207
28434
  };
@@ -28343,13 +28570,13 @@ var Placeholder = function Placeholder(_ref4) {
28343
28570
  extraStyles: "padding: 0 0 0 8px; text-align: center;"
28344
28571
  }, text)))))))))));
28345
28572
  };
28346
- var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$s, "default");
28573
+ var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$v, "default");
28347
28574
 
28348
- var backgroundColor$4 = {
28575
+ var backgroundColor$5 = {
28349
28576
  "default": "".concat(WHITE)
28350
28577
  };
28351
- var fallbackValues$t = {
28352
- backgroundColor: backgroundColor$4
28578
+ var fallbackValues$w = {
28579
+ backgroundColor: backgroundColor$5
28353
28580
  };
28354
28581
 
28355
28582
  var ProcessingFee = function ProcessingFee(_ref) {
@@ -28375,13 +28602,13 @@ var ProcessingFee = function ProcessingFee(_ref) {
28375
28602
  showQuitLink: false
28376
28603
  }));
28377
28604
  };
28378
- var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$t, "default");
28605
+ var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$w, "default");
28379
28606
 
28380
- var activeColor$5 = MATISSE_BLUE;
28607
+ var activeColor$6 = MATISSE_BLUE;
28381
28608
  var inactiveBorderColor = GREY_CHATEAU;
28382
- var fallbackValues$u = {
28609
+ var fallbackValues$x = {
28383
28610
  inactiveBorderColor: inactiveBorderColor,
28384
- activeColor: activeColor$5
28611
+ activeColor: activeColor$6
28385
28612
  };
28386
28613
 
28387
28614
  var HiddenRadioInput = styled__default.input.withConfig({
@@ -28462,13 +28689,13 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
28462
28689
  inactiveBorderColor: themeValues.inactiveBorderColor
28463
28690
  }), labelText));
28464
28691
  };
28465
- var RadioButtonWithLabel$1 = themeComponent(RadioButtonWithLabel, "RadioButtonWithLabel", fallbackValues$u);
28692
+ var RadioButtonWithLabel$1 = themeComponent(RadioButtonWithLabel, "RadioButtonWithLabel", fallbackValues$x);
28466
28693
 
28467
- var activeColor$6 = "".concat(MATISSE_BLUE);
28468
- var inactiveColor = "".concat(STORM_GREY);
28469
- var fallbackValues$v = {
28470
- activeColor: activeColor$6,
28471
- inactiveColor: inactiveColor
28694
+ var activeColor$7 = "".concat(MATISSE_BLUE);
28695
+ var inactiveColor$1 = "".concat(STORM_GREY);
28696
+ var fallbackValues$y = {
28697
+ activeColor: activeColor$7,
28698
+ inactiveColor: inactiveColor$1
28472
28699
  };
28473
28700
 
28474
28701
  var HiddenRadioButton = styled__default.input.withConfig({
@@ -28571,11 +28798,11 @@ var RadioButton$1 = function RadioButton(_ref2) {
28571
28798
  borderRadius: "8px"
28572
28799
  })));
28573
28800
  };
28574
- var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$v);
28801
+ var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$y);
28575
28802
 
28576
28803
  var searchIconColor = WHITE;
28577
28804
  var searchIconBackgroundColor = MATISSE_BLUE;
28578
- var fallbackValues$w = {
28805
+ var fallbackValues$z = {
28579
28806
  searchIconColor: searchIconColor,
28580
28807
  searchIconBackgroundColor: searchIconBackgroundColor
28581
28808
  };
@@ -28599,6 +28826,8 @@ var Search = function Search(_ref) {
28599
28826
  var field = _ref.field,
28600
28827
  fieldActions = _ref.fieldActions,
28601
28828
  dataset = _ref.dataset,
28829
+ _ref$disableFilter = _ref.disableFilter,
28830
+ disableFilter = _ref$disableFilter === void 0 ? false : _ref$disableFilter,
28602
28831
  valuesToSearchFor = _ref.valuesToSearchFor,
28603
28832
  onSearchCallback = _ref.onSearchCallback,
28604
28833
  onClearCallback = _ref.onClearCallback,
@@ -28623,7 +28852,7 @@ var Search = function Search(_ref) {
28623
28852
  });
28624
28853
  };
28625
28854
  var handleSubmit = function handleSubmit() {
28626
- return onSearchCallback(getFilteredDataset());
28855
+ return disableFilter ? onSearchCallback() : onSearchCallback(getFilteredDataset());
28627
28856
  };
28628
28857
  return /*#__PURE__*/React__default.createElement(Cluster, {
28629
28858
  extraStyles: "overflow: visible; width: ".concat(width, "; ").concat(extraStyles)
@@ -28671,12 +28900,12 @@ var Search = function Search(_ref) {
28671
28900
  size: 24
28672
28901
  })));
28673
28902
  };
28674
- var Search$1 = themeComponent(Search, "Search", fallbackValues$w);
28903
+ var Search$1 = themeComponent(Search, "Search", fallbackValues$z);
28675
28904
 
28676
28905
  var border$2 = {
28677
28906
  "default": "1px solid #caced8"
28678
28907
  };
28679
- var fallbackValues$x = {
28908
+ var fallbackValues$A = {
28680
28909
  border: border$2
28681
28910
  };
28682
28911
 
@@ -28749,16 +28978,16 @@ var SearchableSelect = function SearchableSelect(_ref) {
28749
28978
  });
28750
28979
  }))));
28751
28980
  };
28752
- var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$x, "default");
28981
+ var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$A, "default");
28753
28982
 
28754
- var borderColor$2 = {
28983
+ var borderColor$4 = {
28755
28984
  "default": "".concat(GREY_CHATEAU)
28756
28985
  };
28757
28986
  var borderSize = {
28758
28987
  "default": "1px"
28759
28988
  };
28760
- var fallbackValues$y = {
28761
- borderColor: borderColor$2,
28989
+ var fallbackValues$B = {
28990
+ borderColor: borderColor$4,
28762
28991
  borderSize: borderSize
28763
28992
  };
28764
28993
 
@@ -28775,7 +29004,7 @@ var SolidDivider = function SolidDivider(_ref) {
28775
29004
  borderWidthOverride: "0px 0px ".concat(borderSize || themeValues.borderSize, " 0px")
28776
29005
  });
28777
29006
  };
28778
- var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$y, "default");
29007
+ var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$B, "default");
28779
29008
 
28780
29009
  var placeHolderOptionUS = {
28781
29010
  text: "Please select state",
@@ -39361,7 +39590,7 @@ var white = "".concat(WHITE);
39361
39590
  var labelStyles = "\n display: flex;\n justify-content: flex-start;\n align-items: center;\n";
39362
39591
  var rightLabelStyles = "\n ".concat(labelStyles, "\n flex-direction: row;\n");
39363
39592
  var leftLabelStyles = "\n ".concat(labelStyles, "\n flex-direction: row-reverse;\n");
39364
- var fallbackValues$z = {
39593
+ var fallbackValues$C = {
39365
39594
  onBackground: onBackground,
39366
39595
  disabledBackground: disabledBackground,
39367
39596
  disabledBackgroundLight: disabledBackgroundLight,
@@ -39538,7 +39767,7 @@ var ToggleSwitch = function ToggleSwitch(_ref10) {
39538
39767
  padding: "0"
39539
39768
  }, label))));
39540
39769
  };
39541
- var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$z);
39770
+ var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$C);
39542
39771
 
39543
39772
  var background$2 = "".concat(ATHENS_GREY);
39544
39773
  var white$1 = "".concat(WHITE);
@@ -39580,12 +39809,12 @@ var TypeaheadInput = function TypeaheadInput(_ref) {
39580
39809
  }));
39581
39810
  };
39582
39811
 
39583
- var backgroundColor$5 = WHITE;
39812
+ var backgroundColor$6 = WHITE;
39584
39813
  var imageBackgroundColor = INFO_BLUE;
39585
39814
  var headerBackgroundColor = STORM_GREY;
39586
39815
  var headerColor = WHITE;
39587
- var fallbackValues$A = {
39588
- backgroundColor: backgroundColor$5,
39816
+ var fallbackValues$D = {
39817
+ backgroundColor: backgroundColor$6,
39589
39818
  imageBackgroundColor: imageBackgroundColor,
39590
39819
  headerBackgroundColor: headerBackgroundColor,
39591
39820
  headerColor: headerColor
@@ -39608,7 +39837,7 @@ var CardImage = styled__default.img.withConfig({
39608
39837
  var titleColor = BRIGHT_GREY;
39609
39838
  var titleWeight = FONT_WEIGHT_BOLD;
39610
39839
  var textColor$3 = BRIGHT_GREY;
39611
- var fallbackValues$B = {
39840
+ var fallbackValues$E = {
39612
39841
  titleColor: titleColor,
39613
39842
  titleWeight: titleWeight,
39614
39843
  textColor: textColor$3
@@ -39632,7 +39861,7 @@ var CardText = function CardText(_ref) {
39632
39861
  color: themeValues.textColor
39633
39862
  }, text))));
39634
39863
  };
39635
- var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$B);
39864
+ var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$E);
39636
39865
 
39637
39866
  var CardHeader = function CardHeader(_ref) {
39638
39867
  var backgroundColor = _ref.backgroundColor,
@@ -39734,14 +39963,14 @@ var Card = function Card(_ref) {
39734
39963
  titleVariant: titleVariant
39735
39964
  }), children)))));
39736
39965
  };
39737
- var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$A);
39966
+ var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$D);
39738
39967
 
39739
39968
  var fontFamily$6 = "Public Sans, sans-serif";
39740
- var activeColor$7 = MATISSE_BLUE;
39969
+ var activeColor$8 = MATISSE_BLUE;
39741
39970
  var linkColor$3 = CHARADE_GREY;
39742
- var fallbackValues$C = {
39971
+ var fallbackValues$F = {
39743
39972
  fontFamily: fontFamily$6,
39744
- activeColor: activeColor$7,
39973
+ activeColor: activeColor$8,
39745
39974
  linkColor: linkColor$3
39746
39975
  };
39747
39976
 
@@ -39768,7 +39997,7 @@ var NavTab = function NavTab(_ref) {
39768
39997
  extraStyles: "\n border-bottom: 3px solid transparent;\n font-family: ".concat(themeValues.fontFamily, ";\n text-decoration: none;\n ").concat(isActive && !isMobile ? border : "none", ";\n &:hover {\n text-decoration: none;\n color: ").concat(themeValues.activeColor, ";\n ").concat(isMobile ? "" : "".concat(border), "\n };\n padding: 1.25rem 0;\n ")
39769
39998
  }, label));
39770
39999
  };
39771
- var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$C);
40000
+ var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$F);
39772
40001
 
39773
40002
  var NavTabs = function NavTabs(_ref) {
39774
40003
  var tabsConfig = _ref.tabsConfig,
@@ -39866,12 +40095,12 @@ var borderRadius = {
39866
40095
  largeTitle: "0.25rem",
39867
40096
  small: "0.25rem"
39868
40097
  };
39869
- var backgroundColor$6 = {
40098
+ var backgroundColor$7 = {
39870
40099
  "default": WHITE,
39871
40100
  largeTitle: WHITE,
39872
40101
  small: WHITE
39873
40102
  };
39874
- var fallbackValues$D = {
40103
+ var fallbackValues$G = {
39875
40104
  fontSize: fontSize$9,
39876
40105
  fontWeight: fontWeight$5,
39877
40106
  fontColor: fontColor,
@@ -39881,7 +40110,7 @@ var fallbackValues$D = {
39881
40110
  titleSpacing: titleSpacing,
39882
40111
  boxShadow: boxShadow$1,
39883
40112
  borderRadius: borderRadius,
39884
- backgroundColor: backgroundColor$6
40113
+ backgroundColor: backgroundColor$7
39885
40114
  };
39886
40115
 
39887
40116
  /*
@@ -39951,7 +40180,7 @@ var Module = function Module(_ref) {
39951
40180
  boxShadow: themeValues.boxShadow
39952
40181
  }, children)));
39953
40182
  };
39954
- var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$D, "default"));
40183
+ var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$G, "default"));
39955
40184
 
39956
40185
  var WalletName = function WalletName(_ref) {
39957
40186
  var mainText = _ref.mainText,
@@ -40018,138 +40247,6 @@ var WalletName = function WalletName(_ref) {
40018
40247
  })));
40019
40248
  };
40020
40249
 
40021
- var Table_styled = styled__default.table.withConfig({
40022
- displayName: "Tablestyled",
40023
- componentId: "sc-mveye7-0"
40024
- })(["width:100%;table-layout:auto;border-collapse:collapse;", ""], function (_ref) {
40025
- var extraStyles = _ref.extraStyles;
40026
- return extraStyles;
40027
- });
40028
-
40029
- var TableBody_styled = styled__default.tbody.withConfig({
40030
- displayName: "TableBodystyled",
40031
- componentId: "sc-wk5osr-0"
40032
- })(["", ""], function (_ref) {
40033
- var extraStyles = _ref.extraStyles;
40034
- return extraStyles;
40035
- });
40036
-
40037
- var TableCell_styled = styled__default.td.withConfig({
40038
- displayName: "TableCellstyled",
40039
- componentId: "sc-iqndn8-0"
40040
- })(["padding:", ";font-size:", " white-space:nowrap;max-width:", ";overflow:hidden;text-overflow:ellipsis;&:last-child{text-align:right;}", ";"], function (_ref) {
40041
- var _ref$padding = _ref.padding,
40042
- padding = _ref$padding === void 0 ? "24px" : _ref$padding;
40043
- return padding;
40044
- }, function (_ref2) {
40045
- var _ref2$fontSize = _ref2.fontSize,
40046
- fontSize = _ref2$fontSize === void 0 ? "0.875rem" : _ref2$fontSize;
40047
- return fontSize;
40048
- }, function (_ref3) {
40049
- var _ref3$maxWidth = _ref3.maxWidth,
40050
- maxWidth = _ref3$maxWidth === void 0 ? "250px" : _ref3$maxWidth;
40051
- return maxWidth;
40052
- }, function (_ref4) {
40053
- var extraStyles = _ref4.extraStyles;
40054
- return extraStyles;
40055
- });
40056
-
40057
- var backgroundColor$7 = ALABASTER_WHITE;
40058
- var borderColor$3 = GREY_CHATEAU;
40059
- var fallbackValues$E = {
40060
- backgroundColor: backgroundColor$7,
40061
- borderColor: borderColor$3
40062
- };
40063
-
40064
- var StyledTableHead = styled__default.thead.withConfig({
40065
- displayName: "TableHeadstyled",
40066
- componentId: "sc-j8e6c1-0"
40067
- })(["background-color:", ";border-bottom:", ";font-size:", ";"], function (_ref) {
40068
- var backgroundColor = _ref.backgroundColor;
40069
- return backgroundColor;
40070
- }, function (_ref2) {
40071
- var borderColor = _ref2.borderColor;
40072
- return "1px solid ".concat(borderColor);
40073
- }, function (_ref3) {
40074
- var _ref3$fontSize = _ref3.fontSize,
40075
- fontSize = _ref3$fontSize === void 0 ? "0.875rem" : _ref3$fontSize;
40076
- return fontSize;
40077
- });
40078
-
40079
- var borderColor$4 = GREY_CHATEAU;
40080
- var hoverBackgroundColor$1 = HOVER_LIGHT_BLUE;
40081
- var fallbackValues$F = {
40082
- borderColor: borderColor$4,
40083
- hoverBackgroundColor: hoverBackgroundColor$1
40084
- };
40085
-
40086
- var TableRowWrapper = styled__default.tr.withConfig({
40087
- displayName: "TableRowstyled",
40088
- componentId: "sc-1tc0sav-0"
40089
- })(["&:not(:last-child){border-bottom:", ";}", " ", ""], function (_ref) {
40090
- var borderColor = _ref.borderColor;
40091
- return "1px solid ".concat(borderColor);
40092
- }, function (_ref2) {
40093
- var hoverCursor = _ref2.hoverCursor,
40094
- hoverEffect = _ref2.hoverEffect,
40095
- hoverBackgroundColor = _ref2.hoverBackgroundColor;
40096
- return hoverEffect && "&:hover {\n ".concat(hoverCursor && "cursor: pointer", ";\n background-color: ").concat(hoverBackgroundColor, ";\n }");
40097
- }, function (_ref3) {
40098
- var extraStyles = _ref3.extraStyles;
40099
- return extraStyles;
40100
- });
40101
-
40102
- var _excluded$C = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
40103
- var TableRow = function TableRow(_ref) {
40104
- var children = _ref.children,
40105
- extraStyles = _ref.extraStyles,
40106
- _ref$hoverCursor = _ref.hoverCursor,
40107
- _ref$hoverEffect = _ref.hoverEffect,
40108
- hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
40109
- onClick = _ref.onClick,
40110
- themeValues = _ref.themeValues,
40111
- props = _objectWithoutProperties(_ref, _excluded$C);
40112
- return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
40113
- onClick: onClick,
40114
- hoverEffect: hoverEffect,
40115
- extraStyles: extraStyles,
40116
- borderColor: themeValues.borderColor,
40117
- hoverBackgroundColor: themeValues.hoverBackgroundColor
40118
- }, props), children);
40119
- };
40120
- var TableRow$1 = themeComponent(TableRow, "TableRow", fallbackValues$F);
40121
-
40122
- var TableHead = function TableHead(_ref) {
40123
- var children = _ref.children,
40124
- _ref$extraStyles = _ref.extraStyles,
40125
- extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
40126
- themeValues = _ref.themeValues;
40127
- return /*#__PURE__*/React__default.createElement(StyledTableHead, {
40128
- backgroundColor: themeValues.backgroundColor,
40129
- borderColor: themeValues.borderColor
40130
- }, /*#__PURE__*/React__default.createElement(TableRow$1, {
40131
- extraStyles: extraStyles,
40132
- hoverEffect: false
40133
- }, children));
40134
- };
40135
- var TableHead$1 = themeComponent(TableHead, "TableHead", fallbackValues$E);
40136
-
40137
- var TableHeading_styled = styled__default.th.withConfig({
40138
- displayName: "TableHeadingstyled",
40139
- componentId: "sc-1ggk38d-0"
40140
- })(["padding:", ";min-width:", ";text-align:left;&:last-child{text-align:right;}", ""], function (_ref) {
40141
- var _ref$padding = _ref.padding,
40142
- padding = _ref$padding === void 0 ? "24px" : _ref$padding;
40143
- return padding;
40144
- }, function (_ref2) {
40145
- var _ref2$minWidth = _ref2.minWidth,
40146
- minWidth = _ref2$minWidth === void 0 ? "initial" : _ref2$minWidth;
40147
- return minWidth;
40148
- }, function (_ref3) {
40149
- var extraStyles = _ref3.extraStyles;
40150
- return extraStyles;
40151
- });
40152
-
40153
40250
  const validatorToPredicate =
40154
40251
  (validatorFn, emptyCase) =>
40155
40252
  (value, ...rest) =>
@@ -40967,7 +41064,7 @@ AddressForm.mapStateToProps = mapStateToProps$1;
40967
41064
  AddressForm.mapDispatchToProps = mapDispatchToProps;
40968
41065
 
40969
41066
  var backgroundColor$8 = "#ebeffb";
40970
- var fallbackValues$G = {
41067
+ var fallbackValues$H = {
40971
41068
  backgroundColor: backgroundColor$8
40972
41069
  };
40973
41070
 
@@ -41016,7 +41113,7 @@ var Banner = function Banner(_ref) {
41016
41113
  extraStyles: isMobile && "> svg { width: 176px; }"
41017
41114
  }, /*#__PURE__*/React__default.createElement(Image, null))));
41018
41115
  };
41019
- var Banner$1 = themeComponent(Banner, "Banner", fallbackValues$G);
41116
+ var Banner$1 = themeComponent(Banner, "Banner", fallbackValues$H);
41020
41117
 
41021
41118
  var ChangePasswordForm = function ChangePasswordForm(_ref) {
41022
41119
  var clearOnDismount = _ref.clearOnDismount,
@@ -41150,7 +41247,7 @@ ChangePasswordForm.mapDispatchToProps = mapDispatchToProps$1;
41150
41247
  var titleColor$1 = "#292A33";
41151
41248
  var headingBackgroundColor = "transparent";
41152
41249
  var bodyBackgroundColor = "transparent";
41153
- var fallbackValues$H = {
41250
+ var fallbackValues$I = {
41154
41251
  titleColor: titleColor$1,
41155
41252
  headingBackgroundColor: headingBackgroundColor,
41156
41253
  bodyBackgroundColor: bodyBackgroundColor
@@ -41275,7 +41372,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
41275
41372
  "aria-labelledby": "".concat(id, "-button")
41276
41373
  }, children))));
41277
41374
  };
41278
- var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$H);
41375
+ var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$I);
41279
41376
 
41280
41377
  var ClipboardIcon = function ClipboardIcon(_ref) {
41281
41378
  var themeValues = _ref.themeValues;
@@ -41809,6 +41906,7 @@ var EmailForm = function EmailForm(_ref) {
41809
41906
  };
41810
41907
  }, []);
41811
41908
  }
41909
+ useConditionallyAddValidator(isRequired, required, actions.fields.email.addValidator, actions.fields.email.removeValidator);
41812
41910
  var emailFieldErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "Invalid email address");
41813
41911
  return /*#__PURE__*/React__default.createElement(FormContainer$1, {
41814
41912
  variant: variant,
@@ -41840,7 +41938,7 @@ var EmailForm = function EmailForm(_ref) {
41840
41938
 
41841
41939
  var formConfig$3 = {
41842
41940
  email: {
41843
- validators: [required(), isProbablyEmail()]
41941
+ validators: [isProbablyEmail()] // 'required' validator is conditionally added based on `isRequired` prop
41844
41942
  }
41845
41943
  };
41846
41944
  var _createFormState$3 = createFormState(formConfig$3),
@@ -41854,7 +41952,7 @@ EmailForm.mapDispatchToProps = mapDispatchToProps$3;
41854
41952
 
41855
41953
  var footerBackgroundColor = BRIGHT_GREY;
41856
41954
  var subfooterBackgroundColor = STORM_GREY;
41857
- var fallbackValues$I = {
41955
+ var fallbackValues$J = {
41858
41956
  footerBackgroundColor: footerBackgroundColor,
41859
41957
  subfooterBackgroundColor: subfooterBackgroundColor
41860
41958
  };
@@ -41885,7 +41983,7 @@ var FooterWithSubfooter = function FooterWithSubfooter(_ref) {
41885
41983
  rightContent: rightSubfooterContent
41886
41984
  }));
41887
41985
  };
41888
- var FooterWithSubfooter$1 = themeComponent(FooterWithSubfooter, "FooterWithSubfooter", fallbackValues$I);
41986
+ var FooterWithSubfooter$1 = themeComponent(FooterWithSubfooter, "FooterWithSubfooter", fallbackValues$J);
41889
41987
 
41890
41988
  var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
41891
41989
  var fields = _ref.fields,
@@ -41932,7 +42030,7 @@ ForgotPasswordForm.mapDispatchToProps = mapDispatchToProps$4;
41932
42030
 
41933
42031
  var textColor$4 = "#ffffff";
41934
42032
  var backgroundColor$9 = "#182848";
41935
- var fallbackValues$J = {
42033
+ var fallbackValues$K = {
41936
42034
  textColor: textColor$4,
41937
42035
  backgroundColor: backgroundColor$9
41938
42036
  };
@@ -41991,7 +42089,7 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
41991
42089
  }, t));
41992
42090
  }), repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesAfter))));
41993
42091
  };
41994
- var HighlightTabRow$1 = themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$J);
42092
+ var HighlightTabRow$1 = themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$K);
41995
42093
 
41996
42094
  var AccountBillIcon = function AccountBillIcon(_ref) {
41997
42095
  var color = _ref.color;
@@ -42407,7 +42505,7 @@ var activeBackgroundColor$1 = CORNFLOWER_BLUE;
42407
42505
  var backgroundColor$a = LINK_WATER;
42408
42506
  var borderColor$5 = MOON_RAKER;
42409
42507
  var color$b = ROYAL_BLUE_VIVID;
42410
- var fallbackValues$K = {
42508
+ var fallbackValues$L = {
42411
42509
  disabledBackgroundColor: disabledBackgroundColor$1,
42412
42510
  disabledBorderColor: disabledBorderColor$1,
42413
42511
  disabledColor: disabledColor$1,
@@ -42528,7 +42626,7 @@ var LinkCard = function LinkCard(_ref) {
42528
42626
  extraStyles: "margin-right: auto;"
42529
42627
  }), showRight && !!rightContent && rightContent))));
42530
42628
  };
42531
- var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$K, "primary");
42629
+ var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$L, "primary");
42532
42630
 
42533
42631
  var LoginForm = function LoginForm(_ref) {
42534
42632
  var clearOnDismount = _ref.clearOnDismount,
@@ -46533,7 +46631,7 @@ var shadowColor = {
46533
46631
  profile: "#292A33",
46534
46632
  cms: "#292A33"
46535
46633
  };
46536
- var fallbackValues$L = {
46634
+ var fallbackValues$M = {
46537
46635
  backgroundColor: backgroundColor$b,
46538
46636
  shadowColor: shadowColor
46539
46637
  };
@@ -46573,7 +46671,7 @@ var NavMenuDesktop = function NavMenuDesktop(_ref) {
46573
46671
  onBlur: onBlur
46574
46672
  }, menuContent));
46575
46673
  };
46576
- var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$L, "profile");
46674
+ var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$M, "profile");
46577
46675
 
46578
46676
  var menu = posed.div({
46579
46677
  invisible: {
@@ -46633,7 +46731,7 @@ var NavMenuMobile = function NavMenuMobile(_ref2) {
46633
46731
  background: themeValues.backgroundColor
46634
46732
  }, menuContent));
46635
46733
  };
46636
- var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$L, "profile");
46734
+ var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$M, "profile");
46637
46735
 
46638
46736
  var IconsModule = function IconsModule(_ref) {
46639
46737
  var icon = _ref.icon,
@@ -47160,7 +47258,7 @@ var InactiveTitleModule = function InactiveTitleModule(_ref) {
47160
47258
  };
47161
47259
 
47162
47260
  var iconColor = ROYAL_BLUE_VIVID;
47163
- var fallbackValues$M = {
47261
+ var fallbackValues$N = {
47164
47262
  iconColor: iconColor
47165
47263
  };
47166
47264
 
@@ -47382,7 +47480,7 @@ var Obligation = function Obligation(_ref) {
47382
47480
  }))));
47383
47481
  return inactive ? inactiveObligation : activeObligation;
47384
47482
  };
47385
- var Obligation$1 = themeComponent(Obligation, "Obligation", fallbackValues$M);
47483
+ var Obligation$1 = themeComponent(Obligation, "Obligation", fallbackValues$N);
47386
47484
 
47387
47485
  var PartialAmountField = function PartialAmountField(_ref) {
47388
47486
  var lineItem = _ref.lineItem,
@@ -47519,9 +47617,9 @@ var arrowColor = WHITE;
47519
47617
  var numberColor = MATISSE_BLUE;
47520
47618
  var hoverBackgroundColor$2 = ALABASTER_WHITE;
47521
47619
  var activeBackgroundColor$2 = WHITE;
47522
- var activeColor$8 = MATISSE_BLUE;
47523
- var fallbackValues$N = {
47524
- activeColor: activeColor$8,
47620
+ var activeColor$9 = MATISSE_BLUE;
47621
+ var fallbackValues$O = {
47622
+ activeColor: activeColor$9,
47525
47623
  activeBackgroundColor: activeBackgroundColor$2,
47526
47624
  arrowColor: arrowColor,
47527
47625
  hoverBackgroundColor: hoverBackgroundColor$2,
@@ -47714,7 +47812,7 @@ var Pagination = function Pagination(_ref3) {
47714
47812
  buttonWidth: buttonWidth
47715
47813
  }));
47716
47814
  };
47717
- var Pagination$1 = themeComponent(Pagination, "Pagination", fallbackValues$N);
47815
+ var Pagination$1 = themeComponent(Pagination, "Pagination", fallbackValues$O);
47718
47816
 
47719
47817
  var PaymentButtonBar = function PaymentButtonBar(_ref) {
47720
47818
  var _ref$isForwardButtonD = _ref.isForwardButtonDisabled,
@@ -47815,7 +47913,7 @@ var labeledAmountTotal = {
47815
47913
  "default": "large",
47816
47914
  small: "small"
47817
47915
  };
47818
- var fallbackValues$O = {
47916
+ var fallbackValues$P = {
47819
47917
  backgroundColor: backgroundColor$c,
47820
47918
  lineItem: lineItem,
47821
47919
  labeledAmountSubtotal: labeledAmountSubtotal,
@@ -48184,7 +48282,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
48184
48282
  isError: isError
48185
48283
  });
48186
48284
  };
48187
- var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$O, "default");
48285
+ var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$P, "default");
48188
48286
 
48189
48287
  var linkColor$4 = {
48190
48288
  "default": "#3176AA"
@@ -48204,7 +48302,7 @@ var modalLinkHoverFocus = {
48204
48302
  var linkTextDecoration = {
48205
48303
  "default": LINK_TEXT_DECORATION
48206
48304
  };
48207
- var fallbackValues$P = {
48305
+ var fallbackValues$Q = {
48208
48306
  linkColor: linkColor$4,
48209
48307
  fontSize: fontSize$a,
48210
48308
  lineHeight: lineHeight$4,
@@ -48268,7 +48366,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
48268
48366
  }, link)
48269
48367
  }));
48270
48368
  };
48271
- var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$P, "default");
48369
+ var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$Q, "default");
48272
48370
 
48273
48371
  var backgroundColor$d = {
48274
48372
  "default": "#ffffff",
@@ -48303,7 +48401,7 @@ var modalLinkTextDecoration = {
48303
48401
  "default": LINK_TEXT_DECORATION,
48304
48402
  footer: "none"
48305
48403
  };
48306
- var fallbackValues$Q = {
48404
+ var fallbackValues$R = {
48307
48405
  backgroundColor: backgroundColor$d,
48308
48406
  linkColor: linkColor$5,
48309
48407
  border: border$3,
@@ -48375,7 +48473,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
48375
48473
  className: "modal-trigger"
48376
48474
  }, link));
48377
48475
  };
48378
- var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$Q, "default");
48476
+ var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$R, "default");
48379
48477
 
48380
48478
  var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
48381
48479
  var onCheck = _ref.onCheck,
@@ -49044,6 +49142,7 @@ var PhoneForm = function PhoneForm(_ref) {
49044
49142
  };
49045
49143
  }, []);
49046
49144
  }
49145
+ useConditionallyAddValidator(isRequired, required, actions.fields.phone.addValidator, actions.fields.phone.removeValidator);
49047
49146
  var phoneErrorMessage = _defineProperty(_defineProperty({}, required.error, "Phone number is required"), hasLength.error, "Phone number must be 10 digits");
49048
49147
  return /*#__PURE__*/React__default.createElement(FormContainer$1, {
49049
49148
  variant: variant,
@@ -49073,7 +49172,8 @@ var PhoneForm = function PhoneForm(_ref) {
49073
49172
 
49074
49173
  var formConfig$8 = {
49075
49174
  phone: {
49076
- validators: [required(), hasLength(10, 10)],
49175
+ validators: [hasLength(10, 10)],
49176
+ // 'required' validator is conditionally added based on `isRequired` prop
49077
49177
  constraints: [onlyIntegers(), hasLength(0, 10)]
49078
49178
  }
49079
49179
  };
@@ -49139,7 +49239,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
49139
49239
  var bodyBackgroundColor$1 = "#eeeeee";
49140
49240
  var borderColor$6 = "".concat(GHOST_GREY);
49141
49241
  var focusStyles = "outline: none;";
49142
- var fallbackValues$R = {
49242
+ var fallbackValues$S = {
49143
49243
  headingBackgroundColor: headingBackgroundColor$1,
49144
49244
  headingDisabledColor: headingDisabledColor,
49145
49245
  bodyBackgroundColor: bodyBackgroundColor$1,
@@ -49442,7 +49542,7 @@ var RadioSection = function RadioSection(_ref) {
49442
49542
  });
49443
49543
  })));
49444
49544
  };
49445
- var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$R);
49545
+ var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$S);
49446
49546
 
49447
49547
  var RegistrationForm = function RegistrationForm(_ref) {
49448
49548
  var clearOnDismount = _ref.clearOnDismount,
@@ -49562,13 +49662,13 @@ RegistrationForm.mapDispatchToProps = mapDispatchToProps$9;
49562
49662
 
49563
49663
  var GRECIAN_GREY$1 = GRECIAN_GREY;
49564
49664
  var bannerBackgroundColor = GRECIAN_GREY$1;
49565
- var fallbackValues$S = {
49665
+ var fallbackValues$T = {
49566
49666
  bannerBackgroundColor: bannerBackgroundColor
49567
49667
  };
49568
49668
 
49569
49669
  var ResetConfirmationForm = function ResetConfirmationForm() {
49570
49670
  var themeContext = React.useContext(styled.ThemeContext);
49571
- var themeValues = createThemeValues(themeContext, fallbackValues$S, "ResetConfirmationForm");
49671
+ var themeValues = createThemeValues(themeContext, fallbackValues$T, "ResetConfirmationForm");
49572
49672
  var isMobile = themeContext.isMobile;
49573
49673
  return /*#__PURE__*/React__default.createElement(Box, {
49574
49674
  padding: "0",
@@ -49683,13 +49783,13 @@ ResetPasswordForm.mapDispatchToProps = mapDispatchToProps$a;
49683
49783
 
49684
49784
  var GRECIAN_GREY$2 = GRECIAN_GREY;
49685
49785
  var bannerBackgroundColor$1 = GRECIAN_GREY$2;
49686
- var fallbackValues$T = {
49786
+ var fallbackValues$U = {
49687
49787
  bannerBackgroundColor: bannerBackgroundColor$1
49688
49788
  };
49689
49789
 
49690
49790
  var ResetPasswordSuccess = function ResetPasswordSuccess() {
49691
49791
  var themeContext = React.useContext(styled.ThemeContext);
49692
- var themeValues = createThemeValues(themeContext, fallbackValues$T, "ResetPasswordSuccess");
49792
+ var themeValues = createThemeValues(themeContext, fallbackValues$U, "ResetPasswordSuccess");
49693
49793
  var isMobile = themeContext.isMobile;
49694
49794
  return /*#__PURE__*/React__default.createElement(Box, {
49695
49795
  padding: "0",
@@ -49738,7 +49838,7 @@ var ResetPasswordSuccess$1 = withWindowSize(ResetPasswordSuccess);
49738
49838
  var activeTabBackground = "#FFFFFF";
49739
49839
  var activeTabAccent = "#15749D";
49740
49840
  var activeTabHover = "#B8D5E1";
49741
- var fallbackValues$U = {
49841
+ var fallbackValues$V = {
49742
49842
  activeTabBackground: activeTabBackground,
49743
49843
  activeTabAccent: activeTabAccent,
49744
49844
  activeTabHover: activeTabHover
@@ -49806,12 +49906,12 @@ var Tabs = function Tabs(_ref) {
49806
49906
  }, tab.content);
49807
49907
  }))));
49808
49908
  };
49809
- var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$U);
49909
+ var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$V);
49810
49910
 
49811
49911
  var activeTabBackground$1 = "#FFFFFF";
49812
49912
  var activeTabAccent$1 = "#15749D";
49813
49913
  var activeTabHover$1 = "#B8D5E1";
49814
- var fallbackValues$V = {
49914
+ var fallbackValues$W = {
49815
49915
  activeTabBackground: activeTabBackground$1,
49816
49916
  activeTabAccent: activeTabAccent$1,
49817
49917
  activeTabHover: activeTabHover$1
@@ -49866,7 +49966,7 @@ var TabSidebar = function TabSidebar(_ref) {
49866
49966
  }, text)))));
49867
49967
  })));
49868
49968
  };
49869
- var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$V);
49969
+ var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$W);
49870
49970
 
49871
49971
  var Timeout = function Timeout(_ref) {
49872
49972
  var onLogout = _ref.onLogout;
@@ -49987,7 +50087,7 @@ var fontColor$1 = WHITE;
49987
50087
  var textAlign$1 = "left";
49988
50088
  var headerBackgroundColor$1 = BRIGHT_GREY;
49989
50089
  var imageBackgroundColor$1 = MATISSE_BLUE;
49990
- var fallbackValues$W = {
50090
+ var fallbackValues$X = {
49991
50091
  fontWeight: fontWeight$8,
49992
50092
  fontColor: fontColor$1,
49993
50093
  textAlign: textAlign$1,
@@ -50032,7 +50132,7 @@ var WelcomeModule = function WelcomeModule(_ref) {
50032
50132
  src: welcomeImage
50033
50133
  })))));
50034
50134
  };
50035
- var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$W));
50135
+ var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$X));
50036
50136
 
50037
50137
  var WorkflowTile = function WorkflowTile(_ref) {
50038
50138
  var _ref$workflowName = _ref.workflowName,
@@ -50092,7 +50192,7 @@ var menuItemColorDelete = RAZZMATAZZ_RED;
50092
50192
  var menuItemHoverBackgroundColor = CORNFLOWER_BLUE;
50093
50193
  var menuItemHoverBackgroundColorDelete = BLUSH_RED;
50094
50194
  var menuItemHoverColor = ROYAL_BLUE_VIVID;
50095
- var fallbackValues$X = {
50195
+ var fallbackValues$Y = {
50096
50196
  menuItemBackgroundColor: menuItemBackgroundColor,
50097
50197
  menuItemColor: menuItemColor,
50098
50198
  menuItemColorDelete: menuItemColorDelete,
@@ -50159,15 +50259,15 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
50159
50259
  extraStyles: textExtraStyles
50160
50260
  }, text)));
50161
50261
  };
50162
- var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues$X);
50262
+ var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues$Y);
50163
50263
 
50164
50264
  var hoverColor$5 = "#116285";
50165
- var activeColor$9 = "#0E506D";
50265
+ var activeColor$a = "#0E506D";
50166
50266
  var menuTriggerColor = "#15749D";
50167
50267
  var backgroundColor$e = "white";
50168
- var fallbackValues$Y = {
50268
+ var fallbackValues$Z = {
50169
50269
  hoverColor: hoverColor$5,
50170
- activeColor: activeColor$9,
50270
+ activeColor: activeColor$a,
50171
50271
  menuTriggerColor: menuTriggerColor,
50172
50272
  backgroundColor: backgroundColor$e
50173
50273
  };
@@ -50301,11 +50401,11 @@ var PopupMenu = function PopupMenu(_ref) {
50301
50401
  }, item));
50302
50402
  })));
50303
50403
  };
50304
- var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$Y);
50404
+ var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$Z);
50305
50405
 
50306
50406
  var primaryColor$1 = INFO_BLUE;
50307
50407
  var secondaryColor = MATISSE_BLUE;
50308
- var fallbackValues$Z = {
50408
+ var fallbackValues$_ = {
50309
50409
  primaryColor: primaryColor$1,
50310
50410
  secondaryColor: secondaryColor
50311
50411
  };
@@ -50358,20 +50458,30 @@ var DropdownIconV2 = function DropdownIconV2(_ref) {
50358
50458
  }))));
50359
50459
  };
50360
50460
 
50361
- var StyledContainer = styled__default.div.withConfig({
50362
- displayName: "MultipleSelectFilter__StyledContainer",
50363
- componentId: "sc-1wom9fl-0"
50461
+ var StyledFilterContainer = styled__default(Box).withConfig({
50462
+ displayName: "MultipleSelectFilterstyled__StyledFilterContainer",
50463
+ componentId: "sc-126xgc2-0"
50364
50464
  })(["position:relative;box-sizing:border-box;padding:0;", ""], function (_ref) {
50365
50465
  var extraStyles = _ref.extraStyles;
50366
50466
  return extraStyles;
50367
50467
  });
50368
- var StyledFilterDropdown = styled__default.div.withConfig({
50369
- displayName: "MultipleSelectFilter__StyledFilterDropdown",
50370
- componentId: "sc-1wom9fl-1"
50468
+ var FilterContainer = /*#__PURE__*/React.forwardRef(function (props, ref) {
50469
+ return /*#__PURE__*/React__default.createElement(StyledFilterContainer, _extends({
50470
+ ref: ref
50471
+ }, props));
50472
+ });
50473
+ var StyledFilterDropdown = styled__default(Box).withConfig({
50474
+ displayName: "MultipleSelectFilterstyled__StyledFilterDropdown",
50475
+ componentId: "sc-126xgc2-1"
50371
50476
  })(["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;"]);
50477
+ var FilterDropdown = /*#__PURE__*/React.forwardRef(function (props, ref) {
50478
+ return /*#__PURE__*/React__default.createElement(StyledFilterDropdown, _extends({
50479
+ ref: ref
50480
+ }, props));
50481
+ });
50372
50482
  var StyledFilterButton = styled__default(ButtonWithAction).withConfig({
50373
- displayName: "MultipleSelectFilter__StyledFilterButton",
50374
- componentId: "sc-1wom9fl-2"
50483
+ displayName: "MultipleSelectFilterstyled__StyledFilterButton",
50484
+ componentId: "sc-126xgc2-2"
50375
50485
  })(["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) {
50376
50486
  var textColor = _ref2.textColor;
50377
50487
  return "\n color: ".concat(textColor, ";\n ");
@@ -50379,23 +50489,34 @@ var StyledFilterButton = styled__default(ButtonWithAction).withConfig({
50379
50489
  var backgroundColor = _ref3.backgroundColor;
50380
50490
  return "\n background-color: ".concat(backgroundColor, ";\n :hover,\n :active,\n :focus {\n background-color: ").concat(backgroundColor, ";\n }\n ");
50381
50491
  });
50382
- var ScrollableOptionsList = function ScrollableOptionsList(_ref4) {
50383
- var id = _ref4.id,
50384
- optionsList = _ref4.optionsList,
50385
- selectedOptions = _ref4.selectedOptions,
50386
- themeValues = _ref4.themeValues,
50387
- selectOption = _ref4.selectOption,
50388
- maxSelections = _ref4.maxSelections,
50389
- name = _ref4.name;
50492
+ var FilterButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
50493
+ return /*#__PURE__*/React__default.createElement(StyledFilterButton, _extends({
50494
+ ref: ref
50495
+ }, props));
50496
+ });
50497
+
50498
+ var ScrollableOptionsList = function ScrollableOptionsList(_ref) {
50499
+ var id = _ref.id,
50500
+ optionsList = _ref.optionsList,
50501
+ selectedOptions = _ref.selectedOptions,
50502
+ themeValues = _ref.themeValues,
50503
+ selectOption = _ref.selectOption,
50504
+ maxSelections = _ref.maxSelections,
50505
+ name = _ref.name;
50390
50506
  var _useState = React.useState(-1),
50391
50507
  _useState2 = _slicedToArray(_useState, 2),
50392
50508
  focusedIndex = _useState2[0],
50393
50509
  setFocusedIndex = _useState2[1];
50510
+ var checkboxRefs = React.useRef([]);
50394
50511
  var isMaxSelectionReached = maxSelections && maxSelections === (selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.length);
50512
+ var isChecked = function isChecked(option) {
50513
+ return selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.some(function (selectedOption) {
50514
+ return (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.name) === (option === null || option === void 0 ? void 0 : option.name);
50515
+ });
50516
+ };
50395
50517
  React.useEffect(function () {
50396
- var activeOption = document.getElementById("".concat(name, "-option-").concat(focusedIndex));
50397
- if (focusedIndex !== -1 && optionsList !== null && optionsList !== void 0 && optionsList.length && activeOption) {
50398
- activeOption.focus(); // move focus to the active option
50518
+ if (focusedIndex !== -1 && checkboxRefs.current && checkboxRefs.current[focusedIndex]) {
50519
+ checkboxRefs.current[focusedIndex].focus(); // move focus to the active option
50399
50520
  }
50400
50521
  }, [focusedIndex]);
50401
50522
  var handleKeyDown = function handleKeyDown(event) {
@@ -50410,15 +50531,11 @@ var ScrollableOptionsList = function ScrollableOptionsList(_ref4) {
50410
50531
  return prevIndex > 0 ? prevIndex - 1 : optionsList.length - 1;
50411
50532
  });
50412
50533
  } else if (event.key === " ") {
50413
- // Select option on spacebar press if the maximum selection hasn't been reached.
50414
50534
  event.preventDefault();
50415
- if (!isMaxSelectionReached || selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.some(function (item) {
50416
- var _event$target;
50417
- return (item === null || item === void 0 ? void 0 : item.name) === ((_event$target = event.target) === null || _event$target === void 0 || (_event$target = _event$target.textContent) === null || _event$target === void 0 ? void 0 : _event$target.trim());
50418
- })) {
50419
- var optionIDArr = event.target.id.split("-");
50420
- var index = +optionIDArr[optionIDArr.length - 1];
50421
- selectOption(optionsList[index]);
50535
+ // Select option on spacebar press if the maximum selection hasn't been reached.
50536
+ var validFocusedIndex = focusedIndex < 0 ? 0 : focusedIndex;
50537
+ if (!isMaxSelectionReached || focusedIndex !== -1 && isChecked(optionsList[validFocusedIndex])) {
50538
+ selectOption(optionsList[validFocusedIndex]);
50422
50539
  }
50423
50540
  } else if (event.key === "Tab") {
50424
50541
  // Reset focus when tabbing out of the list.
@@ -50434,20 +50551,20 @@ var ScrollableOptionsList = function ScrollableOptionsList(_ref4) {
50434
50551
  extraStyles: "\n overflow-y: auto; \n max-height: 250px; \n display: flex; \n flex-flow: column;\n ",
50435
50552
  onKeyDown: handleKeyDown
50436
50553
  }, optionsList.map(function (option, index) {
50437
- var isChecked = selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.some(function (item) {
50438
- return (item === null || item === void 0 ? void 0 : item.name) === (option === null || option === void 0 ? void 0 : option.name);
50439
- });
50440
- var isDisabled = isMaxSelectionReached && !isChecked;
50554
+ var checked = isChecked(option);
50555
+ var isDisabled = isMaxSelectionReached && !checked;
50441
50556
  var tabIndex = index === focusedIndex || index === 0 && focusedIndex === -1 ? "0" : "-1";
50442
50557
  return /*#__PURE__*/React__default.createElement(Box, {
50443
50558
  padding: "0",
50444
50559
  key: index,
50445
50560
  extraStyles: "\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryColor, ";\n }\n ")
50446
50561
  }, /*#__PURE__*/React__default.createElement(Checkbox$1, {
50447
- id: "".concat(name, "-option-").concat(index),
50562
+ ref: function ref(el) {
50563
+ return checkboxRefs.current[index] = el;
50564
+ },
50448
50565
  title: option.name,
50449
50566
  name: option.name,
50450
- checked: isChecked,
50567
+ checked: checked,
50451
50568
  onChange: function onChange() {
50452
50569
  return isDisabled ? noop : selectOption(option);
50453
50570
  },
@@ -50456,39 +50573,40 @@ var ScrollableOptionsList = function ScrollableOptionsList(_ref4) {
50456
50573
  extraStyles: "\n padding: 0.075rem 0.325rem; \n margin: 0;\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryColor, ";\n }\n "),
50457
50574
  checkboxMargin: "0.3rem",
50458
50575
  role: "option",
50459
- checkboxExtraStyles: "\n width: 1.375rem; \n height: 1.375rem; \n ".concat(isChecked && !isDisabled ? "background: " + themeValues.secondaryColor + ";" : ""),
50460
- tabIndex: tabIndex
50576
+ checkboxExtraStyles: "\n width: 1.375rem; \n height: 1.375rem; \n ".concat(checked && !isDisabled ? "background: " + themeValues.secondaryColor + ";" : ""),
50577
+ tabIndex: tabIndex,
50578
+ dataQa: "".concat(name, "-option-").concat(index)
50461
50579
  }));
50462
50580
  }));
50463
50581
  };
50464
- var MultipleSelectFilter = function MultipleSelectFilter(_ref5) {
50465
- var actions = _ref5.actions,
50466
- autocompleteValue = _ref5.autocompleteValue,
50467
- btnContentOverride = _ref5.btnContentOverride,
50468
- disabled = _ref5.disabled,
50469
- extraStyles = _ref5.extraStyles,
50470
- fields = _ref5.fields,
50471
- filterLabel = _ref5.filterLabel,
50472
- _ref5$hasIcon = _ref5.hasIcon,
50473
- hasIcon = _ref5$hasIcon === void 0 ? false : _ref5$hasIcon,
50474
- Icon = _ref5.icon,
50475
- maxSelections = _ref5.maxSelections,
50476
- _ref5$name = _ref5.name,
50477
- name = _ref5$name === void 0 ? "MultipleSelectFilter" : _ref5$name,
50478
- _ref5$onApply = _ref5.onApply,
50479
- onApply = _ref5$onApply === void 0 ? noop : _ref5$onApply,
50480
- _ref5$onClear = _ref5.onClear,
50481
- onClear = _ref5$onClear === void 0 ? noop : _ref5$onClear,
50482
- options = _ref5.options,
50483
- _ref5$placeholder = _ref5.placeholder,
50484
- placeholder = _ref5$placeholder === void 0 ? "Search" : _ref5$placeholder,
50485
- _ref5$searchable = _ref5.searchable,
50486
- searchable = _ref5$searchable === void 0 ? true : _ref5$searchable,
50487
- selectedOptions = _ref5.selectedOptions,
50488
- setSelectedOptions = _ref5.setSelectedOptions,
50489
- themeValues = _ref5.themeValues,
50490
- _ref5$truncateBtnText = _ref5.truncateBtnTextWidth,
50491
- truncateBtnTextWidth = _ref5$truncateBtnText === void 0 ? "15rem" : _ref5$truncateBtnText;
50582
+ var MultipleSelectFilter = function MultipleSelectFilter(_ref2) {
50583
+ var actions = _ref2.actions,
50584
+ autocompleteValue = _ref2.autocompleteValue,
50585
+ btnContentOverride = _ref2.btnContentOverride,
50586
+ disabled = _ref2.disabled,
50587
+ extraStyles = _ref2.extraStyles,
50588
+ fields = _ref2.fields,
50589
+ filterLabel = _ref2.filterLabel,
50590
+ _ref2$hasIcon = _ref2.hasIcon,
50591
+ hasIcon = _ref2$hasIcon === void 0 ? false : _ref2$hasIcon,
50592
+ Icon = _ref2.icon,
50593
+ maxSelections = _ref2.maxSelections,
50594
+ _ref2$name = _ref2.name,
50595
+ name = _ref2$name === void 0 ? "MultipleSelectFilter" : _ref2$name,
50596
+ _ref2$onApply = _ref2.onApply,
50597
+ onApply = _ref2$onApply === void 0 ? noop : _ref2$onApply,
50598
+ _ref2$onClear = _ref2.onClear,
50599
+ onClear = _ref2$onClear === void 0 ? noop : _ref2$onClear,
50600
+ options = _ref2.options,
50601
+ _ref2$placeholder = _ref2.placeholder,
50602
+ placeholder = _ref2$placeholder === void 0 ? "Search" : _ref2$placeholder,
50603
+ _ref2$searchable = _ref2.searchable,
50604
+ searchable = _ref2$searchable === void 0 ? true : _ref2$searchable,
50605
+ selectedOptions = _ref2.selectedOptions,
50606
+ setSelectedOptions = _ref2.setSelectedOptions,
50607
+ themeValues = _ref2.themeValues,
50608
+ _ref2$truncateBtnText = _ref2.truncateBtnTextWidth,
50609
+ truncateBtnTextWidth = _ref2$truncateBtnText === void 0 ? "15rem" : _ref2$truncateBtnText;
50492
50610
  var _useState3 = React.useState([]),
50493
50611
  _useState4 = _slicedToArray(_useState3, 2),
50494
50612
  itemList = _useState4[0],
@@ -50499,14 +50617,13 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref5) {
50499
50617
  setOpened = _useState6[1];
50500
50618
  var containerRef = React.useRef(null);
50501
50619
  var dropdownRef = React.useRef(null);
50502
- var filterButtonID = "".concat(name, "-filter-button");
50620
+ var filterButtonRef = React.useRef(null);
50621
+ var applyFilterButtonRef = React.useRef(null);
50503
50622
  var filterDropdownID = "".concat(name, "-filter-dropdown");
50504
50623
  var checkboxListID = "".concat(name, "-checkbox-list");
50505
- var applyFilterButtonID = "".concat(name, "-apply-filters");
50506
- var clearFilterButtonID = "".concat(name, "-clear-filters");
50507
50624
  var backgroundColor = opened ? themeValues.primaryColor : selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? themeValues.secondaryColor : WHITE;
50508
50625
  var contentColor = !opened && selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? WHITE : "#292A33";
50509
- var completeOptionsList = itemList.sort(function (a, b) {
50626
+ var completeOptionsList = itemList.slice().sort(function (a, b) {
50510
50627
  return a.name.toLowerCase().localeCompare(b.name.toLowerCase());
50511
50628
  });
50512
50629
  var selectValues = function selectValues(items) {
@@ -50550,7 +50667,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref5) {
50550
50667
  or if we are tabbing forward away from the last button (apply button)
50551
50668
  or tabbing backward past the filter button.
50552
50669
  */
50553
- if (event.key === "Escape" || event.key === "Tab" && !event.shiftKey && event.target && event.target.id === applyFilterButtonID || event.key === "Tab" && event.shiftKey && event.target && event.target.id === filterButtonID) {
50670
+ 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)) {
50554
50671
  setOpened(false);
50555
50672
  actions.fields.searchTerm.set("");
50556
50673
  onApply(selectedOptions);
@@ -50570,11 +50687,11 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref5) {
50570
50687
  document.removeEventListener("keydown", handleKeyDown);
50571
50688
  };
50572
50689
  }, []);
50573
- return /*#__PURE__*/React__default.createElement(StyledContainer, {
50690
+ return /*#__PURE__*/React__default.createElement(FilterContainer, {
50574
50691
  ref: containerRef,
50575
50692
  extraStyles: "".concat(extraStyles)
50576
- }, /*#__PURE__*/React__default.createElement(StyledFilterButton, {
50577
- id: filterButtonID,
50693
+ }, /*#__PURE__*/React__default.createElement(FilterButton, {
50694
+ ref: filterButtonRef,
50578
50695
  variant: "tertiary",
50579
50696
  action: function action() {
50580
50697
  actions.fields.searchTerm.set("");
@@ -50584,6 +50701,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref5) {
50584
50701
  "aria-expanded": opened,
50585
50702
  "aria-controls": filterDropdownID,
50586
50703
  backgroundColor: backgroundColor,
50704
+ dataQa: "".concat(name, "-filter-button"),
50587
50705
  contentOverride: true
50588
50706
  }, btnContentOverride ? btnContentOverride : /*#__PURE__*/React__default.createElement(Center, {
50589
50707
  as: "span",
@@ -50611,7 +50729,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref5) {
50611
50729
  variant: "pS"
50612
50730
  }, 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, {
50613
50731
  color: contentColor
50614
- }))), /*#__PURE__*/React__default.createElement(StyledFilterDropdown, {
50732
+ }))), /*#__PURE__*/React__default.createElement(FilterDropdown, {
50615
50733
  id: filterDropdownID,
50616
50734
  ref: dropdownRef,
50617
50735
  hidden: !opened,
@@ -50649,27 +50767,28 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref5) {
50649
50767
  onClear();
50650
50768
  },
50651
50769
  variant: "tertiary",
50652
- id: clearFilterButtonID,
50653
50770
  extraStyles: "\n padding: 0.2rem; \n margin: 0.5rem; \n min-height: auto; \n min-width: auto;\n ",
50654
50771
  textExtraStyles: "font-weight: ".concat(FONT_WEIGHT_REGULAR, ";"),
50655
- text: "Clear"
50772
+ text: "Clear",
50773
+ dataQa: "".concat(name, "-clear-filters")
50656
50774
  }), /*#__PURE__*/React__default.createElement(ButtonWithAction, {
50775
+ ref: applyFilterButtonRef,
50657
50776
  action: function action() {
50658
50777
  setOpened(false);
50659
50778
  actions.fields.searchTerm.set("");
50660
50779
  onApply(selectedOptions);
50661
50780
  },
50662
50781
  variant: "tertiary",
50663
- id: applyFilterButtonID,
50664
50782
  extraStyles: "\n padding: 0.2rem; \n margin: 0.5rem; \n min-height: auto; \n min-width: auto;\n ",
50665
50783
  textExtraStyles: "font-weight: ".concat(FONT_WEIGHT_REGULAR, ";"),
50666
- text: "Apply"
50784
+ text: "Apply",
50785
+ dataQa: "".concat(name, "-apply-filters")
50667
50786
  }))));
50668
50787
  };
50669
- var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$Z);
50788
+ var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$_);
50670
50789
 
50671
50790
  var pageBackground = "#FBFCFD";
50672
- var fallbackValues$_ = {
50791
+ var fallbackValues$$ = {
50673
50792
  pageBackground: pageBackground
50674
50793
  };
50675
50794
 
@@ -50717,7 +50836,7 @@ var CenterSingle = function CenterSingle(_ref) {
50717
50836
  padding: "0"
50718
50837
  })));
50719
50838
  };
50720
- var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$_));
50839
+ var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$$));
50721
50840
 
50722
50841
  var CenterStack = function CenterStack(_ref) {
50723
50842
  var header = _ref.header,
@@ -50760,7 +50879,7 @@ var CenterStack = function CenterStack(_ref) {
50760
50879
  padding: "0"
50761
50880
  })));
50762
50881
  };
50763
- var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$_));
50882
+ var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$$));
50764
50883
 
50765
50884
  var CenterSingle$2 = function CenterSingle(_ref) {
50766
50885
  var header = _ref.header,
@@ -50806,7 +50925,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
50806
50925
  padding: "0"
50807
50926
  })));
50808
50927
  };
50809
- var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$_));
50928
+ var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$$));
50810
50929
 
50811
50930
  var SidebarSingleContent = function SidebarSingleContent(_ref) {
50812
50931
  var header = _ref.header,
@@ -50859,7 +50978,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
50859
50978
  padding: "0"
50860
50979
  })));
50861
50980
  };
50862
- var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$_));
50981
+ var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$$));
50863
50982
 
50864
50983
  var SidebarStackContent = function SidebarStackContent(_ref) {
50865
50984
  var header = _ref.header,
@@ -50929,7 +51048,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
50929
51048
  key: "footer-box"
50930
51049
  })));
50931
51050
  };
50932
- var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$_));
51051
+ var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$$));
50933
51052
 
50934
51053
  var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
50935
51054
  var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
@@ -50991,6 +51110,8 @@ exports.ButtonWithAction = ButtonWithAction;
50991
51110
  exports.ButtonWithLink = ButtonWithLink;
50992
51111
  exports.CalendarIcon = CalendarIcon;
50993
51112
  exports.Card = Card$1;
51113
+ exports.CaretArrowDown = CaretArrowDown$1;
51114
+ exports.CaretArrowUp = CaretArrowUp$1;
50994
51115
  exports.CarrotIcon = CarrotIcon$1;
50995
51116
  exports.CashIcon = CashIcon;
50996
51117
  exports.Center = Center;
@@ -51143,6 +51264,7 @@ exports.Sidebar = Sidebar;
51143
51264
  exports.SidebarSingleContent = SidebarSingleContent$1;
51144
51265
  exports.SidebarStackContent = SidebarStackContent$1;
51145
51266
  exports.SolidDivider = SolidDivider$1;
51267
+ exports.SortableTableHeading = SortableTableHeading$1;
51146
51268
  exports.Spinner = Spinner$2;
51147
51269
  exports.Stack = Stack;
51148
51270
  exports.StandardCheckoutImage = StandardCheckoutImage;
@@ -51157,7 +51279,7 @@ exports.Table = Table_styled;
51157
51279
  exports.TableBody = TableBody_styled;
51158
51280
  exports.TableCell = TableCell_styled;
51159
51281
  exports.TableHead = TableHead$1;
51160
- exports.TableHeading = TableHeading_styled;
51282
+ exports.TableHeading = TableHeading;
51161
51283
  exports.TableListItem = TableListItem;
51162
51284
  exports.TableRow = TableRow$1;
51163
51285
  exports.Tabs = Tabs$1;