@thecb/components 10.4.7-beta.0 → 10.5.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -4908,27 +4908,35 @@ var themeUtils = /*#__PURE__*/Object.freeze({
4908
4908
 
4909
4909
  /* These are constants used by nav frontend components */
4910
4910
 
4911
- var HEADER_HEIGHT = "104px";
4912
- var FOOTER_HEIGHT = "100px";
4913
- var SPACER_HEIGHT = "65px";
4914
- var JUMBO_HEIGHT = "300px";
4915
- var COMPACT_JUMBO_HEIGHT = "65px";
4911
+ var BORDER_THIN = "1px";
4912
+ var CORNER_STANDARD = "4px";
4916
4913
  var FONT_WEIGHT_REGULAR = "400";
4917
- var FONT_WEIGHT_BOLD = "700";
4918
4914
  var FONT_WEIGHT_SEMIBOLD = "600";
4915
+ var FONT_WEIGHT_BOLD = "700";
4916
+ var FOOTER_HEIGHT = "100px";
4917
+ var HEADER_HEIGHT = "104px";
4918
+ var COMPACT_JUMBO_HEIGHT = "65px";
4919
+ var JUMBO_HEIGHT = "300px";
4920
+ var SPACER_HEIGHT = "65px";
4919
4921
  var LINK_TEXT_DECORATION = "underline solid 1px";
4922
+ var SPACING_XS = "1.0rem";
4923
+ var SPACING_NORMAL = "1.5rem";
4920
4924
 
4921
4925
  var style_constants = /*#__PURE__*/Object.freeze({
4922
4926
  __proto__: null,
4923
- HEADER_HEIGHT: HEADER_HEIGHT,
4924
- FOOTER_HEIGHT: FOOTER_HEIGHT,
4925
- SPACER_HEIGHT: SPACER_HEIGHT,
4926
- JUMBO_HEIGHT: JUMBO_HEIGHT,
4927
- COMPACT_JUMBO_HEIGHT: COMPACT_JUMBO_HEIGHT,
4927
+ BORDER_THIN: BORDER_THIN,
4928
+ CORNER_STANDARD: CORNER_STANDARD,
4928
4929
  FONT_WEIGHT_REGULAR: FONT_WEIGHT_REGULAR,
4929
- FONT_WEIGHT_BOLD: FONT_WEIGHT_BOLD,
4930
4930
  FONT_WEIGHT_SEMIBOLD: FONT_WEIGHT_SEMIBOLD,
4931
- LINK_TEXT_DECORATION: LINK_TEXT_DECORATION
4931
+ FONT_WEIGHT_BOLD: FONT_WEIGHT_BOLD,
4932
+ FOOTER_HEIGHT: FOOTER_HEIGHT,
4933
+ HEADER_HEIGHT: HEADER_HEIGHT,
4934
+ COMPACT_JUMBO_HEIGHT: COMPACT_JUMBO_HEIGHT,
4935
+ JUMBO_HEIGHT: JUMBO_HEIGHT,
4936
+ SPACER_HEIGHT: SPACER_HEIGHT,
4937
+ LINK_TEXT_DECORATION: LINK_TEXT_DECORATION,
4938
+ SPACING_XS: SPACING_XS,
4939
+ SPACING_NORMAL: SPACING_NORMAL
4932
4940
  });
4933
4941
 
4934
4942
  /*
@@ -38771,17 +38779,17 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38771
38779
  };
38772
38780
 
38773
38781
  var onBackground = "".concat(MATISSE_BLUE);
38774
- var disabledBackground = "".concat(MANATEE_GREY);
38775
- var disabledBackgroundLight = "".concat(ATHENS_GREY);
38782
+ var disabledBackground = "".concat(IRON_GREY);
38776
38783
  var white = "".concat(WHITE);
38784
+ var offBackground = "".concat(REGENT_GREY);
38777
38785
  var labelStyles = "\n display: flex;\n justify-content: flex-start;\n align-items: center;\n";
38778
38786
  var rightLabelStyles = "\n ".concat(labelStyles, "\n flex-direction: row;\n");
38779
38787
  var leftLabelStyles = "\n ".concat(labelStyles, "\n flex-direction: row-reverse;\n");
38780
38788
  var fallbackValues$y = {
38781
38789
  onBackground: onBackground,
38782
38790
  disabledBackground: disabledBackground,
38783
- disabledBackgroundLight: disabledBackgroundLight,
38784
38791
  white: white,
38792
+ offBackground: offBackground,
38785
38793
  rightLabelStyles: rightLabelStyles,
38786
38794
  leftLabelStyles: leftLabelStyles
38787
38795
  };
@@ -38799,7 +38807,7 @@ var HiddenToggleSwitchBox = styled__default.input.withConfig({
38799
38807
  var VisibleSwitchComponent = styled__default.label.withConfig({
38800
38808
  displayName: "ToggleSwitch__VisibleSwitchComponent",
38801
38809
  componentId: "sc-1t51u6v-1"
38802
- })(["width:44px;height:24px;border-radius:12px;border:none;position:relative;box-sizing:border-box;cursor:", ";display:inline-block;&:hover{box-shadow:", ";}&:focus{box-shadow:0px 2px 5px 0px rgba(0,0,0,0.5);}", ""], function (_ref3) {
38810
+ })(["width:48px;height:24px;border-radius:48px;border:none;position:relative;box-sizing:border-box;cursor:", ";display:inline-block;&:hover{box-shadow:", ";}&:focus{box-shadow:0px 2px 5px 0px rgba(0,0,0,0.5);}", ""], function (_ref3) {
38803
38811
  var disabled = _ref3.disabled;
38804
38812
  return disabled ? "auto" : "pointer";
38805
38813
  }, function (_ref4) {
@@ -38809,10 +38817,14 @@ var VisibleSwitchComponent = styled__default.label.withConfig({
38809
38817
  var isMobile = _ref5.isMobile;
38810
38818
  return isMobile ? "transform: scale(0.75)" : "";
38811
38819
  });
38812
- var ToggleSwitchRingComponent = styled__default.div.withConfig({
38813
- displayName: "ToggleSwitch__ToggleSwitchRingComponent",
38820
+ var ToggleSwitchMiddleRingComponent = styled__default.div.withConfig({
38821
+ displayName: "ToggleSwitch__ToggleSwitchMiddleRingComponent",
38814
38822
  componentId: "sc-1t51u6v-2"
38815
- })(["position:absolute;width:16px;height:16px;border:none;border-radius:50%;box-sizing:border-box;"]);
38823
+ })(["position:absolute;width:20px;height:20px;border:none;border-radius:50%;box-sizing:border-box;"]);
38824
+ var ToggleSwitchInnerRingComponent = styled__default.div.withConfig({
38825
+ displayName: "ToggleSwitch__ToggleSwitchInnerRingComponent",
38826
+ componentId: "sc-1t51u6v-3"
38827
+ })(["position:absolute;width:14px;height:14px;top:3px;left:3px;right:3px;bottom:3px;border-radius:50%;box-sizing:border-box;"]);
38816
38828
  var ToggleSwitch = function ToggleSwitch(_ref6) {
38817
38829
  var _ref6$isOn = _ref6.isOn,
38818
38830
  isOn = _ref6$isOn === void 0 ? false : _ref6$isOn,
@@ -38829,30 +38841,52 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
38829
38841
  themeValues = _ref6.themeValues,
38830
38842
  isMobile = _ref6.isMobile,
38831
38843
  dataQa = _ref6.dataQa;
38832
- var ToggleSwitchRing = posed(ToggleSwitchRingComponent)({
38844
+ var ToggleSwitchInnerRing = posed(ToggleSwitchInnerRingComponent)({
38845
+ off: {
38846
+ backgroundColor: themeValues.offBackground,
38847
+ transition: {
38848
+ ease: "easeOut"
38849
+ }
38850
+ },
38851
+ on: {
38852
+ backgroundColor: themeValues.onBackground,
38853
+ transition: {
38854
+ ease: "easeIn"
38855
+ }
38856
+ },
38857
+ disabled: {
38858
+ backgroundColor: themeValues.disabledBackground
38859
+ }
38860
+ });
38861
+ var ToggleSwitchMiddleRing = posed(ToggleSwitchMiddleRingComponent)({
38833
38862
  off: {
38834
- backgroundColor: disabled ? themeValues.disabledBackground : themeValues.onBackground,
38835
- left: "4px",
38836
- top: "3px",
38837
- bottom: "3px",
38838
- right: "20px",
38863
+ backgroundColor: themeValues.white,
38864
+ left: "2px",
38865
+ top: "2px",
38866
+ bottom: "2px",
38867
+ right: "24px",
38839
38868
  transition: {
38840
38869
  ease: "backIn"
38841
38870
  }
38842
38871
  },
38843
38872
  on: {
38844
38873
  backgroundColor: themeValues.white,
38845
- right: "8px",
38846
- top: "3px",
38847
- bottom: "4px",
38848
- left: "23px",
38874
+ right: "1px",
38875
+ top: "2px",
38876
+ bottom: "2px",
38877
+ left: "25px",
38849
38878
  transition: {
38850
38879
  ease: "backIn"
38851
38880
  }
38881
+ },
38882
+ disabled: {
38883
+ backgroundColor: themeValues.white,
38884
+ left: "2px",
38885
+ top: "2px",
38886
+ bottom: "2px",
38887
+ right: "24px"
38852
38888
  }
38853
38889
  });
38854
-
38855
- // to do: for disabled, background color should not be white (should be lighter disabled background)
38856
38890
  var VisibleSwitch = posed(VisibleSwitchComponent)({
38857
38891
  focusable: true,
38858
38892
  hoverable: true,
@@ -38865,20 +38899,19 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
38865
38899
  boxShadow: "0px 2px 5px 0px rgba(0,0,0,0.5)"
38866
38900
  },
38867
38901
  off: {
38868
- border: "1px solid",
38869
- backgroundColor: disabled ? themeValues.disabledBackgroundLight : themeValues.white,
38870
- borderColor: disabled ? themeValues.disabledBackground : themeValues.onBackground,
38902
+ backgroundColor: themeValues.offBackground,
38871
38903
  transition: {
38872
38904
  ease: "easeOut"
38873
38905
  }
38874
38906
  },
38875
38907
  on: {
38876
- border: "1px solid",
38877
- backgroundColor: disabled ? themeValues.disabledBackground : themeValues.onBackground,
38878
- borderColor: disabled ? themeValues.disabledBackground : themeValues.onBackground,
38908
+ backgroundColor: themeValues.onBackground,
38879
38909
  transition: {
38880
38910
  ease: "easeIn"
38881
38911
  }
38912
+ },
38913
+ disabled: {
38914
+ backgroundColor: themeValues.disabledBackground
38882
38915
  }
38883
38916
  });
38884
38917
  var handleKeyDown = function handleKeyDown(e) {
@@ -38913,11 +38946,11 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
38913
38946
  htmlFor: "#toggle-".concat(name),
38914
38947
  onClick: disabled ? noop : onToggle,
38915
38948
  onKeyDown: disabled ? noop : handleKeyDown,
38916
- pose: isOn ? "on" : "off",
38949
+ pose: disabled ? "disabled" : isOn ? "on" : "off",
38917
38950
  tabIndex: disabled ? -1 : 0,
38918
38951
  disabled: disabled,
38919
38952
  isMobile: isMobile
38920
- }, /*#__PURE__*/React__default.createElement(ToggleSwitchRing, null)))), label && /*#__PURE__*/React__default.createElement(Heading$1, {
38953
+ }, /*#__PURE__*/React__default.createElement(ToggleSwitchMiddleRing, null, /*#__PURE__*/React__default.createElement(ToggleSwitchInnerRing, null))))), label && /*#__PURE__*/React__default.createElement(Heading$1, {
38921
38954
  variant: "h4",
38922
38955
  weight: FONT_WEIGHT_SEMIBOLD,
38923
38956
  extraStyles: "margin: 0 0.5rem; position: relative; bottom: 1px; display: inline-block;",
@@ -46403,6 +46436,244 @@ var Modal$1 = function Modal(_ref) {
46403
46436
  }))))))))), children);
46404
46437
  };
46405
46438
 
46439
+ /*
46440
+ Default Modal molecule
46441
+ Uses react-aria-modal behind the scenes for a11y purposes
46442
+ Styling accomplished with our atoms / layout primitives
46443
+
46444
+ Cancel button will (for now) always use hideModal as its action
46445
+ Continue button takes an action, if you want to navigate to
46446
+ a different route (as with a link) connect() and use "push" from @thecb/connected-react-router
46447
+ */
46448
+
46449
+ var getApplicationNode$1 = function getApplicationNode() {
46450
+ return document.getElementById("root");
46451
+ };
46452
+ var Modal$2 = function Modal(_ref) {
46453
+ var _ref$blurUnderlay = _ref.blurUnderlay,
46454
+ blurUnderlay = _ref$blurUnderlay === void 0 ? true : _ref$blurUnderlay,
46455
+ buttonExtraStyles = _ref.buttonExtraStyles,
46456
+ cancelAction = _ref.cancelAction,
46457
+ _ref$cancelButtonText = _ref.cancelButtonText,
46458
+ cancelButtonText = _ref$cancelButtonText === void 0 ? "Cancel" : _ref$cancelButtonText,
46459
+ children = _ref.children,
46460
+ _ref$closeButtonText = _ref.closeButtonText,
46461
+ closeButtonText = _ref$closeButtonText === void 0 ? "Close" : _ref$closeButtonText,
46462
+ continueAction = _ref.continueAction,
46463
+ _ref$continueButtonTe = _ref.continueButtonText,
46464
+ continueButtonText = _ref$continueButtonTe === void 0 ? "Continue" : _ref$continueButtonTe,
46465
+ customWidth = _ref.customWidth,
46466
+ _ref$dataQa = _ref.dataQa,
46467
+ dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
46468
+ _ref$defaultWrapper = _ref.defaultWrapper,
46469
+ defaultWrapper = _ref$defaultWrapper === void 0 ? true : _ref$defaultWrapper,
46470
+ hideModal = _ref.hideModal,
46471
+ _ref$initialFocusSele = _ref.initialFocusSelector,
46472
+ initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele,
46473
+ _ref$isContinueAction = _ref.isContinueActionDisabled,
46474
+ isContinueActionDisabled = _ref$isContinueAction === void 0 ? false : _ref$isContinueAction,
46475
+ isLoading = _ref.isLoading,
46476
+ maxHeight = _ref.maxHeight,
46477
+ _ref$modalBodyBg = _ref.modalBodyBg,
46478
+ modalBodyBg = _ref$modalBodyBg === void 0 ? ATHENS_GREY : _ref$modalBodyBg,
46479
+ modalBodyText = _ref.modalBodyText,
46480
+ _ref$modalHeaderBg = _ref.modalHeaderBg,
46481
+ modalHeaderBg = _ref$modalHeaderBg === void 0 ? WHITE : _ref$modalHeaderBg,
46482
+ modalHeaderText = _ref.modalHeaderText,
46483
+ modalOpen = _ref.modalOpen,
46484
+ _ref$noButtons = _ref.noButtons,
46485
+ noButtons = _ref$noButtons === void 0 ? false : _ref$noButtons,
46486
+ _ref$onExit = _ref.onExit,
46487
+ onExit = _ref$onExit === void 0 ? hideModal : _ref$onExit,
46488
+ _ref$onlyCloseButton = _ref.onlyCloseButton,
46489
+ onlyCloseButton = _ref$onlyCloseButton === void 0 ? false : _ref$onlyCloseButton,
46490
+ _ref$onlyContinueButt = _ref.onlyContinueButton,
46491
+ onlyContinueButton = _ref$onlyContinueButt === void 0 ? false : _ref$onlyContinueButt,
46492
+ _ref$underlayClickExi = _ref.underlayClickExits,
46493
+ underlayClickExits = _ref$underlayClickExi === void 0 ? true : _ref$underlayClickExi,
46494
+ _ref$useDangerButton = _ref.useDangerButton,
46495
+ useDangerButton = _ref$useDangerButton === void 0 ? false : _ref$useDangerButton;
46496
+ var _useContext = React.useContext(styled.ThemeContext),
46497
+ isMobile = _useContext.isMobile;
46498
+ var modalContainerRef = React.useRef(null);
46499
+ var AllButtons = function AllButtons() {
46500
+ return isMobile ? /*#__PURE__*/React__default.createElement(Stack, {
46501
+ childGap: "1rem",
46502
+ direction: "row"
46503
+ }, /*#__PURE__*/React__default.createElement(Box, {
46504
+ width: "100%",
46505
+ padding: "0"
46506
+ }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
46507
+ variant: "secondary",
46508
+ action: cancelAction ? cancelAction : hideModal,
46509
+ text: cancelButtonText,
46510
+ dataQa: cancelButtonText,
46511
+ extraStyles: buttonExtraStyles,
46512
+ borderRadius: CORNER_STANDARD,
46513
+ className: "modal-cancel-button",
46514
+ role: "button",
46515
+ name: cancelButtonText
46516
+ })), /*#__PURE__*/React__default.createElement(Box, {
46517
+ width: "100%",
46518
+ padding: "0"
46519
+ }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
46520
+ variant: useDangerButton ? "danger" : "primary",
46521
+ action: continueAction,
46522
+ text: continueButtonText,
46523
+ dataQa: continueButtonText,
46524
+ isLoading: isLoading,
46525
+ disabled: isContinueActionDisabled,
46526
+ extraStyles: buttonExtraStyles,
46527
+ borderRadius: CORNER_STANDARD,
46528
+ className: "modal-continue-button",
46529
+ role: "button",
46530
+ name: continueButtonText
46531
+ }))) : /*#__PURE__*/React__default.createElement(Stack, {
46532
+ childGap: "1rem",
46533
+ direction: "row",
46534
+ justify: "flex-end"
46535
+ }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
46536
+ variant: "secondary",
46537
+ action: cancelAction ? cancelAction : hideModal,
46538
+ text: cancelButtonText,
46539
+ dataQa: cancelButtonText,
46540
+ extraStyles: buttonExtraStyles,
46541
+ borderRadius: CORNER_STANDARD,
46542
+ className: "modal-cancel-button",
46543
+ role: "button",
46544
+ name: cancelButtonText
46545
+ }), /*#__PURE__*/React__default.createElement(ButtonWithAction, {
46546
+ variant: useDangerButton ? "danger" : "primary",
46547
+ action: continueAction,
46548
+ text: continueButtonText,
46549
+ dataQa: continueButtonText,
46550
+ isLoading: isLoading,
46551
+ disabled: isContinueActionDisabled,
46552
+ extraStyles: buttonExtraStyles,
46553
+ borderRadius: CORNER_STANDARD,
46554
+ className: "modal-continue-button",
46555
+ role: "button",
46556
+ name: continueButtonText
46557
+ }));
46558
+ };
46559
+ var CloseButton = function CloseButton() {
46560
+ return /*#__PURE__*/React__default.createElement(ButtonWithAction, {
46561
+ action: hideModal,
46562
+ variant: "primary",
46563
+ text: closeButtonText,
46564
+ dataQa: closeButtonText,
46565
+ extraStyles: buttonExtraStyles,
46566
+ borderRadius: CORNER_STANDARD,
46567
+ className: "modal-close-button",
46568
+ role: "button",
46569
+ name: closeButtonText
46570
+ });
46571
+ };
46572
+ var ContinueButton = function ContinueButton() {
46573
+ return /*#__PURE__*/React__default.createElement(ButtonWithAction, {
46574
+ variant: useDangerButton ? "danger" : "primary",
46575
+ action: continueAction,
46576
+ text: continueButtonText,
46577
+ dataQa: continueButtonText,
46578
+ isLoading: isLoading,
46579
+ disabled: isContinueActionDisabled,
46580
+ extraStyles: buttonExtraStyles,
46581
+ borderRadius: CORNER_STANDARD,
46582
+ className: "modal-continue-button",
46583
+ role: "button",
46584
+ name: continueButtonText
46585
+ });
46586
+ };
46587
+ var MaybeButtons = /*#__PURE__*/React.forwardRef(function () {
46588
+ return /*#__PURE__*/React__default.createElement(React.Fragment, null);
46589
+ });
46590
+ if (!noButtons) {
46591
+ if (onlyContinueButton) {
46592
+ MaybeButtons = ContinueButton;
46593
+ } else if (onlyCloseButton) {
46594
+ MaybeButtons = CloseButton;
46595
+ } else {
46596
+ MaybeButtons = AllButtons;
46597
+ }
46598
+ }
46599
+ return /*#__PURE__*/React__default.createElement("div", {
46600
+ ref: modalContainerRef,
46601
+ "data-qa": dataQa
46602
+ }, modalOpen && /*#__PURE__*/React__default.createElement(reactAriaModal
46603
+ // fallback to resolve Jest unit test errors when tabbable doesn't exist in jsdom https://github.com/focus-trap/focus-trap-react/issues/91
46604
+ , {
46605
+ focusTrapOptions: {
46606
+ fallbackFocus: modalContainerRef === null || modalContainerRef === void 0 ? void 0 : modalContainerRef.current
46607
+ },
46608
+ onExit: onExit,
46609
+ getApplicationNode: getApplicationNode$1,
46610
+ titleText: modalHeaderText,
46611
+ underlayStyle: {
46612
+ display: "flex",
46613
+ flexDirection: "column",
46614
+ justifyContent: "center",
46615
+ alignItems: "center",
46616
+ background: "rgba(41, 42, 51, 0.45)",
46617
+ backdropFilter: blurUnderlay ? "blur(4px)" : "none",
46618
+ WebkitBackdropFilter: blurUnderlay ? "blur(4px)" : "none"
46619
+ },
46620
+ dialogStyle: {
46621
+ borderRadius: CORNER_STANDARD,
46622
+ width: customWidth || "615px",
46623
+ overflow: "auto"
46624
+ },
46625
+ underlayClickExits: underlayClickExits,
46626
+ "aria-modal": true,
46627
+ initialFocus: initialFocusSelector,
46628
+ focusDialog: !initialFocusSelector // Focus the dialogue box itself if no selector for initial focus was provided
46629
+ }, /*#__PURE__*/React__default.createElement(Box, {
46630
+ padding: "0",
46631
+ boxShadow: "inset 0px -2px 0px 0px rgb(0, 80, 149)"
46632
+ }, /*#__PURE__*/React__default.createElement(Box, {
46633
+ background: modalHeaderBg,
46634
+ borderColor: SILVER_GREY,
46635
+ borderWidthOverride: "0 0 ".concat(BORDER_THIN, " 0"),
46636
+ padding: "".concat(SPACING_XS, " ").concat(SPACING_NORMAL)
46637
+ }, /*#__PURE__*/React__default.createElement(Cluster, {
46638
+ justify: "flex-start",
46639
+ align: "center"
46640
+ }, /*#__PURE__*/React__default.createElement(Title$1, {
46641
+ as: "h2",
46642
+ weight: FONT_WEIGHT_SEMIBOLD,
46643
+ fontSize: "1.25rem"
46644
+ }, modalHeaderText))), /*#__PURE__*/React__default.createElement(Box, {
46645
+ background: modalBodyBg,
46646
+ padding: "0"
46647
+ }, /*#__PURE__*/React__default.createElement(Stack, {
46648
+ childGap: SPACING_NORMAL
46649
+ }, /*#__PURE__*/React__default.createElement(Box, {
46650
+ padding: SPACING_NORMAL,
46651
+ borderWidthOverride: !noButtons && "0 0 ".concat(BORDER_THIN, " 0"),
46652
+ borderColor: !noButtons && SILVER_GREY,
46653
+ extraStyles: maxHeight ? "max-height: ".concat(maxHeight, "; overflow: auto;") : ""
46654
+ }, defaultWrapper ? /*#__PURE__*/React__default.createElement(Paragraph$1, {
46655
+ variant: "p"
46656
+ }, modalBodyText) : /*#__PURE__*/React__default.createElement(Box, {
46657
+ padding: maxHeight ? "0 0 ".concat(SPACING_XS, " 0") : "0"
46658
+ }, modalBodyText)), noButtons ? /*#__PURE__*/React__default.createElement(MaybeButtons, null) : /*#__PURE__*/React__default.createElement(Box, {
46659
+ padding: "0 ".concat(SPACING_NORMAL, " ").concat(SPACING_NORMAL)
46660
+ }, /*#__PURE__*/React__default.createElement(Stack, {
46661
+ direction: "row",
46662
+ justify: "flex-end",
46663
+ align: "center",
46664
+ childGap: "0rem"
46665
+ }, /*#__PURE__*/React__default.createElement(MaybeButtons, null))))))), children);
46666
+ };
46667
+
46668
+ var _excluded$A = ["version"];
46669
+ var Modal$3 = function Modal(_ref) {
46670
+ var _ref$version = _ref.version,
46671
+ version = _ref$version === void 0 ? "v1" : _ref$version,
46672
+ rest = _objectWithoutProperties(_ref, _excluded$A);
46673
+ var ModalControl = version === "v1" ? Modal$1 : Modal$2;
46674
+ return /*#__PURE__*/React__default.createElement(ModalControl, rest);
46675
+ };
46676
+
46406
46677
  var fontSize$9 = {
46407
46678
  "default": "1.375rem",
46408
46679
  largeTitle: "1.75rem",
@@ -46810,7 +47081,7 @@ var AutopayModal = function AutopayModal(_ref) {
46810
47081
  }
46811
47082
  }
46812
47083
  };
46813
- return /*#__PURE__*/React__default.createElement(Modal$1, _extends({
47084
+ return /*#__PURE__*/React__default.createElement(Modal$3, _extends({
46814
47085
  showModal: function showModal() {
46815
47086
  return toggleModal(true);
46816
47087
  },
@@ -47049,7 +47320,7 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
47049
47320
  return formattedAccount === agencyName ? agencyName : acc + formattedAccount;
47050
47321
  }, "".concat(agencyName, " - ")) : "";
47051
47322
  var identifier = accountType === "Account" && obligations.length > 1 ? "accounts" : accountType === "Property" && obligations.length > 1 ? "properties" : accountType.toLowerCase();
47052
- return /*#__PURE__*/React__default.createElement(Modal$1, {
47323
+ return /*#__PURE__*/React__default.createElement(Modal$3, {
47053
47324
  showModal: function showModal() {
47054
47325
  return setModalIsOpen(true);
47055
47326
  },
@@ -47808,7 +48079,7 @@ var fallbackValues$N = {
47808
48079
  labeledAmountTotal: labeledAmountTotal
47809
48080
  };
47810
48081
 
47811
- var _excluded$A = ["amount"],
48082
+ var _excluded$B = ["amount"],
47812
48083
  _excluded2$1 = ["amount"];
47813
48084
  var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
47814
48085
  var lineItemElems = _ref.lineItemElems,
@@ -48053,7 +48324,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
48053
48324
  return fee.amount > 0;
48054
48325
  }).map(function (_ref5) {
48055
48326
  var amount = _ref5.amount,
48056
- rest = _objectWithoutProperties(_ref5, _excluded$A);
48327
+ rest = _objectWithoutProperties(_ref5, _excluded$B);
48057
48328
  return _objectSpread2(_objectSpread2({}, rest), {}, {
48058
48329
  amount: displayCurrency(amount)
48059
48330
  });
@@ -48213,7 +48484,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
48213
48484
  themeValues = _ref.themeValues,
48214
48485
  _ref$dataQa = _ref.dataQa,
48215
48486
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
48216
- return /*#__PURE__*/React__default.createElement(Modal$1, {
48487
+ return /*#__PURE__*/React__default.createElement(Modal$3, {
48217
48488
  modalOpen: isOpen,
48218
48489
  hideModal: function hideModal() {
48219
48490
  return toggleOpen(false);
@@ -48317,7 +48588,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
48317
48588
  themeValues = _ref.themeValues,
48318
48589
  _ref$initialFocusSele = _ref.initialFocusSelector,
48319
48590
  initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele;
48320
- return /*#__PURE__*/React__default.createElement(Modal$1, {
48591
+ return /*#__PURE__*/React__default.createElement(Modal$3, {
48321
48592
  modalOpen: isOpen,
48322
48593
  hideModal: function hideModal() {
48323
48594
  return toggleOpen(false);
@@ -48490,11 +48761,11 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
48490
48761
  }, errorMessage))))));
48491
48762
  };
48492
48763
 
48493
- var _excluded$B = ["version"];
48764
+ var _excluded$C = ["version"];
48494
48765
  var TermsAndConditions = function TermsAndConditions(_ref) {
48495
48766
  var _ref$version = _ref.version,
48496
48767
  version = _ref$version === void 0 ? "v1" : _ref$version,
48497
- rest = _objectWithoutProperties(_ref, _excluded$B);
48768
+ rest = _objectWithoutProperties(_ref, _excluded$C);
48498
48769
  var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
48499
48770
  return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
48500
48771
  };
@@ -49293,7 +49564,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
49293
49564
  }, section.content))));
49294
49565
  };
49295
49566
 
49296
- var _excluded$C = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections"];
49567
+ var _excluded$D = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections"];
49297
49568
 
49298
49569
  /**
49299
49570
  - The RadioSection component takes either a flat array (via the 'sections'
@@ -49341,7 +49612,7 @@ var RadioSection = function RadioSection(_ref) {
49341
49612
  _ref$isSectionRequire = _ref.isSectionRequired,
49342
49613
  isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
49343
49614
  groupedSections = _ref.groupedSections,
49344
- rest = _objectWithoutProperties(_ref, _excluded$C);
49615
+ rest = _objectWithoutProperties(_ref, _excluded$D);
49345
49616
  var _useState = React.useState(null),
49346
49617
  _useState2 = _slicedToArray(_useState, 2),
49347
49618
  focused = _useState2[0],
@@ -50050,7 +50321,7 @@ var PopupMenuItemContainer = styled__default(ButtonWithAction).withConfig({
50050
50321
  return "\n background-color: ".concat(isDeleteAction ? theme.menuItemHoverBackgroundColorDelete : theme.menuItemHoverBackgroundColor, ";\n ");
50051
50322
  });
50052
50323
 
50053
- var _excluded$D = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
50324
+ var _excluded$E = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
50054
50325
  var PopupMenuItem = function PopupMenuItem(_ref) {
50055
50326
  var id = _ref.id,
50056
50327
  closeMenuCallback = _ref.closeMenuCallback,
@@ -50066,7 +50337,7 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
50066
50337
  hoverStyles = _ref.hoverStyles,
50067
50338
  activeStyles = _ref.activeStyles,
50068
50339
  extraStyles = _ref.extraStyles,
50069
- rest = _objectWithoutProperties(_ref, _excluded$D);
50340
+ rest = _objectWithoutProperties(_ref, _excluded$E);
50070
50341
  return /*#__PURE__*/React__default.createElement(PopupMenuItemContainer, _extends({
50071
50342
  id: id,
50072
50343
  role: "menuItem",
@@ -50638,7 +50909,7 @@ exports.LinkCard = LinkCard$1;
50638
50909
  exports.Loading = Loading;
50639
50910
  exports.LoadingLine = LoadingLine;
50640
50911
  exports.LoginForm = LoginForm;
50641
- exports.Modal = Modal$1;
50912
+ exports.Modal = Modal$3;
50642
50913
  exports.Module = Module$1;
50643
50914
  exports.Motion = Motion;
50644
50915
  exports.MultiCartIcon = MultiCartIcon;