@thecb/components 7.10.0-beta.0 → 7.10.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +350 -257
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +350 -258
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/button-with-action/ButtonWithAction.theme.js +101 -96
- package/src/components/atoms/icons/PencilIcon.js +20 -0
- package/src/components/atoms/icons/icons.stories.js +2 -0
- package/src/components/atoms/icons/index.js +2 -0
- package/src/components/atoms/layouts/Box.styled.js +2 -2
- package/src/components/atoms/layouts/Cluster.d.ts +1 -0
- package/src/components/atoms/layouts/Cluster.js +2 -0
- package/src/components/atoms/line-item/LineItem.js +15 -1
- package/src/components/atoms/line-item/LineItem.stories.js +9 -0
- package/src/components/molecules/nav-menu/NavMenuMobile.js +3 -1
- package/src/components/molecules/pagination/Pagination.js +44 -20
- package/src/components/molecules/pagination/index.d.ts +1 -0
- package/src/components/molecules/payment-form-ach/PaymentFormACH.js +35 -8
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +37 -10
- package/src/components/molecules/terms-and-conditions/TermsAndConditions.js +3 -1
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.js +3 -2
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.stories.js +10 -0
- package/src/components/molecules/workflow-tile/WorkflowTile.js +14 -35
- package/src/constants/colors.js +6 -0
- package/src/.DS_Store +0 -0
- package/src/components/atoms/.DS_Store +0 -0
- /package/src/components/atoms/icons/{ExternalLinkicon.js → ExternalLinkIcon.js} +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -5015,7 +5015,9 @@ var INFO_BLUE = "#E4F4FD";
|
|
|
5015
5015
|
var HOVER_LIGHT_BLUE = "#EFFAFF";
|
|
5016
5016
|
var MATISSE_BLUE = "#15749D";
|
|
5017
5017
|
var ROYAL_BLUE = "#3181E3";
|
|
5018
|
-
var ASTRAL_BLUE = "#3176AA";
|
|
5018
|
+
var ASTRAL_BLUE = "#3176AA";
|
|
5019
|
+
var SAPPHIRE_BLUE = "#116285";
|
|
5020
|
+
var PEACOCK_BLUE = "#0E506D"; // GREEN
|
|
5019
5021
|
|
|
5020
5022
|
var FOREST_GREEN = "#19b03F";
|
|
5021
5023
|
var MEADOW_GREEN = "#16C98D";
|
|
@@ -5038,6 +5040,7 @@ var RED = "#FF0000";
|
|
|
5038
5040
|
var CRIMSON_RED = "#ED1C24";
|
|
5039
5041
|
var THUNDERBIRD_RED = "#C3191F";
|
|
5040
5042
|
var RAZZMATAZZ_RED = "#D11053";
|
|
5043
|
+
var RASPBERRY = "#ED125F";
|
|
5041
5044
|
var FANTASY_RED = "#FCF4F4";
|
|
5042
5045
|
var COSMOS_RED = "#FFD0D3";
|
|
5043
5046
|
var BLUSH_RED = "#FFF0F5"; // Second level color constants
|
|
@@ -5122,6 +5125,8 @@ var colors = /*#__PURE__*/Object.freeze({
|
|
|
5122
5125
|
MATISSE_BLUE: MATISSE_BLUE,
|
|
5123
5126
|
ROYAL_BLUE: ROYAL_BLUE,
|
|
5124
5127
|
ASTRAL_BLUE: ASTRAL_BLUE,
|
|
5128
|
+
SAPPHIRE_BLUE: SAPPHIRE_BLUE,
|
|
5129
|
+
PEACOCK_BLUE: PEACOCK_BLUE,
|
|
5125
5130
|
FOREST_GREEN: FOREST_GREEN,
|
|
5126
5131
|
MEADOW_GREEN: MEADOW_GREEN,
|
|
5127
5132
|
POLAR_GREEN: POLAR_GREEN,
|
|
@@ -5143,6 +5148,7 @@ var colors = /*#__PURE__*/Object.freeze({
|
|
|
5143
5148
|
FANTASY_RED: FANTASY_RED,
|
|
5144
5149
|
COSMOS_RED: COSMOS_RED,
|
|
5145
5150
|
BLUSH_RED: BLUSH_RED,
|
|
5151
|
+
RASPBERRY: RASPBERRY,
|
|
5146
5152
|
ALERT_COLORS: ALERT_COLORS,
|
|
5147
5153
|
ERROR_COLOR: ERROR_COLOR
|
|
5148
5154
|
});
|
|
@@ -6466,8 +6472,9 @@ var BoxWrapper = styled__default(function (_ref) {
|
|
|
6466
6472
|
return textAlign;
|
|
6467
6473
|
}, function (_ref14) {
|
|
6468
6474
|
var hoverStyles = _ref14.hoverStyles,
|
|
6469
|
-
as = _ref14.as
|
|
6470
|
-
|
|
6475
|
+
as = _ref14.as,
|
|
6476
|
+
disabled = _ref14.disabled;
|
|
6477
|
+
return styled.css(["", " ", ""], hoverStyles, as === "button" && !disabled ? "> * > span {\n ".concat(hoverStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6471
6478
|
}, function (_ref15) {
|
|
6472
6479
|
var as = _ref15.as;
|
|
6473
6480
|
return styled.css(["outline:3px solid ", ";outline-offset:2px;", ""], ROYAL_BLUE, as === "button" && "\n > * > span {\n border: none;\n outline: none;\n box-shadow: none;\n }");
|
|
@@ -6667,7 +6674,7 @@ var ClusterInnerWrapper = styled__default.div.withConfig({
|
|
|
6667
6674
|
return childGap;
|
|
6668
6675
|
});
|
|
6669
6676
|
|
|
6670
|
-
var _excluded$6 = ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children"];
|
|
6677
|
+
var _excluded$6 = ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children", "innerWrapperAs"];
|
|
6671
6678
|
/*
|
|
6672
6679
|
Cluster components suit any groups of elements that differ in
|
|
6673
6680
|
length and are liable to wrap. Buttons that appear together at the
|
|
@@ -6691,6 +6698,8 @@ var Cluster = function Cluster(_ref) {
|
|
|
6691
6698
|
flexGrow = _ref.flexGrow,
|
|
6692
6699
|
extraStyles = _ref.extraStyles,
|
|
6693
6700
|
children = _ref.children,
|
|
6701
|
+
_ref$innerWrapperAs = _ref.innerWrapperAs,
|
|
6702
|
+
innerWrapperAs = _ref$innerWrapperAs === void 0 ? "div" : _ref$innerWrapperAs,
|
|
6694
6703
|
rest = _objectWithoutProperties(_ref, _excluded$6);
|
|
6695
6704
|
|
|
6696
6705
|
return /*#__PURE__*/React__default.createElement(ClusterWrapper, _extends({
|
|
@@ -6706,7 +6715,8 @@ var Cluster = function Cluster(_ref) {
|
|
|
6706
6715
|
childGap: childGap,
|
|
6707
6716
|
minHeight: minHeight,
|
|
6708
6717
|
minWidth: minWidth,
|
|
6709
|
-
$nowrap: nowrap
|
|
6718
|
+
$nowrap: nowrap,
|
|
6719
|
+
as: innerWrapperAs
|
|
6710
6720
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null))));
|
|
6711
6721
|
};
|
|
6712
6722
|
|
|
@@ -12543,10 +12553,6 @@ var Reel = function Reel(_ref) {
|
|
|
12543
12553
|
}), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
12544
12554
|
};
|
|
12545
12555
|
|
|
12546
|
-
/*
|
|
12547
|
-
For now I'm using string values, eventually shared components library will have its own constants file
|
|
12548
|
-
for colors/values that should be used here instead
|
|
12549
|
-
*/
|
|
12550
12556
|
var padding = {
|
|
12551
12557
|
primary: "0.75rem 1.5rem",
|
|
12552
12558
|
secondary: "0.75rem 1.5rem",
|
|
@@ -12562,18 +12568,18 @@ var padding = {
|
|
|
12562
12568
|
whitePrimary: "1.125rem 0.75rem"
|
|
12563
12569
|
};
|
|
12564
12570
|
var color$1 = {
|
|
12565
|
-
primary:
|
|
12566
|
-
secondary:
|
|
12567
|
-
back:
|
|
12568
|
-
smallPrimary:
|
|
12569
|
-
smallSecondary:
|
|
12570
|
-
smallGhost:
|
|
12571
|
-
ghost:
|
|
12572
|
-
tertiary:
|
|
12573
|
-
danger:
|
|
12574
|
-
dangerSecondary:
|
|
12575
|
-
whiteSecondary:
|
|
12576
|
-
whitePrimary:
|
|
12571
|
+
primary: WHITE,
|
|
12572
|
+
secondary: MATISSE_BLUE,
|
|
12573
|
+
back: MATISSE_BLUE,
|
|
12574
|
+
smallPrimary: WHITE,
|
|
12575
|
+
smallSecondary: MATISSE_BLUE,
|
|
12576
|
+
smallGhost: MATISSE_BLUE,
|
|
12577
|
+
ghost: MATISSE_BLUE,
|
|
12578
|
+
tertiary: MATISSE_BLUE,
|
|
12579
|
+
danger: WHITE,
|
|
12580
|
+
dangerSecondary: ERROR_COLOR,
|
|
12581
|
+
whiteSecondary: WHITE,
|
|
12582
|
+
whitePrimary: WHITE
|
|
12577
12583
|
};
|
|
12578
12584
|
var fontSizeVariant = {
|
|
12579
12585
|
primary: "pS",
|
|
@@ -12632,116 +12638,116 @@ var minWidth = {
|
|
|
12632
12638
|
whitePrimary: "130px"
|
|
12633
12639
|
};
|
|
12634
12640
|
var backgroundColor = {
|
|
12635
|
-
primary:
|
|
12636
|
-
secondary:
|
|
12637
|
-
back:
|
|
12638
|
-
smallPrimary:
|
|
12639
|
-
smallSecondary:
|
|
12640
|
-
smallGhost:
|
|
12641
|
-
ghost:
|
|
12642
|
-
tertiary:
|
|
12643
|
-
danger:
|
|
12644
|
-
dangerSecondary:
|
|
12645
|
-
whiteSecondary:
|
|
12646
|
-
whitePrimary:
|
|
12641
|
+
primary: MATISSE_BLUE,
|
|
12642
|
+
secondary: TRANSPARENT,
|
|
12643
|
+
back: TRANSPARENT,
|
|
12644
|
+
smallPrimary: MATISSE_BLUE,
|
|
12645
|
+
smallSecondary: TRANSPARENT,
|
|
12646
|
+
smallGhost: TRANSPARENT,
|
|
12647
|
+
ghost: TRANSPARENT,
|
|
12648
|
+
tertiary: TRANSPARENT,
|
|
12649
|
+
danger: RASPBERRY,
|
|
12650
|
+
dangerSecondary: TRANSPARENT,
|
|
12651
|
+
whiteSecondary: TRANSPARENT,
|
|
12652
|
+
whitePrimary: TRANSPARENT
|
|
12647
12653
|
};
|
|
12648
12654
|
var border = {
|
|
12649
|
-
primary: "2px solid
|
|
12650
|
-
secondary: "2px solid
|
|
12651
|
-
back: "2px solid
|
|
12652
|
-
smallPrimary: "2px solid
|
|
12653
|
-
smallSecondary: "2px solid
|
|
12655
|
+
primary: "2px solid " + MATISSE_BLUE,
|
|
12656
|
+
secondary: "2px solid " + MATISSE_BLUE,
|
|
12657
|
+
back: "2px solid " + MATISSE_BLUE,
|
|
12658
|
+
smallPrimary: "2px solid " + MATISSE_BLUE,
|
|
12659
|
+
smallSecondary: "2px solid " + MATISSE_BLUE,
|
|
12654
12660
|
smallGhost: "none",
|
|
12655
12661
|
ghost: "none",
|
|
12656
12662
|
tertiary: "none",
|
|
12657
|
-
danger: "2px solid
|
|
12658
|
-
dangerSecondary: "2px solid
|
|
12659
|
-
whiteSecondary: "2px solid
|
|
12660
|
-
whitePrimary: "2px solid
|
|
12663
|
+
danger: "2px solid " + RASPBERRY,
|
|
12664
|
+
dangerSecondary: "2px solid " + ERROR_COLOR,
|
|
12665
|
+
whiteSecondary: "2px solid " + WHITE,
|
|
12666
|
+
whitePrimary: "2px solid " + TRANSPARENT
|
|
12661
12667
|
};
|
|
12662
12668
|
var hoverBackgroundColor = {
|
|
12663
|
-
primary:
|
|
12669
|
+
primary: SAPPHIRE_BLUE,
|
|
12664
12670
|
secondary: "#DBEAF0",
|
|
12665
|
-
back:
|
|
12666
|
-
smallPrimary:
|
|
12671
|
+
back: TRANSPARENT,
|
|
12672
|
+
smallPrimary: SAPPHIRE_BLUE,
|
|
12667
12673
|
smallSecondary: "#DBEAF0",
|
|
12668
|
-
smallGhost:
|
|
12669
|
-
ghost:
|
|
12670
|
-
tertiary:
|
|
12674
|
+
smallGhost: TRANSPARENT,
|
|
12675
|
+
ghost: TRANSPARENT,
|
|
12676
|
+
tertiary: TRANSPARENT,
|
|
12671
12677
|
danger: "#BA002C",
|
|
12672
|
-
dangerSecondary: "
|
|
12673
|
-
whiteSecondary:
|
|
12674
|
-
whitePrimary:
|
|
12678
|
+
dangerSecondary: "#FAE7EE",
|
|
12679
|
+
whiteSecondary: TRANSPARENT,
|
|
12680
|
+
whitePrimary: TRANSPARENT
|
|
12675
12681
|
};
|
|
12676
12682
|
var hoverBorderColor = {
|
|
12677
|
-
primary:
|
|
12678
|
-
secondary:
|
|
12683
|
+
primary: SAPPHIRE_BLUE,
|
|
12684
|
+
secondary: MATISSE_BLUE,
|
|
12679
12685
|
back: "#DCEAF1",
|
|
12680
|
-
smallPrimary:
|
|
12681
|
-
smallSecondary:
|
|
12682
|
-
smallGhost:
|
|
12683
|
-
ghost:
|
|
12684
|
-
tertiary:
|
|
12686
|
+
smallPrimary: SAPPHIRE_BLUE,
|
|
12687
|
+
smallSecondary: MATISSE_BLUE,
|
|
12688
|
+
smallGhost: TRANSPARENT,
|
|
12689
|
+
ghost: TRANSPARENT,
|
|
12690
|
+
tertiary: TRANSPARENT,
|
|
12685
12691
|
danger: "#BA002C",
|
|
12686
12692
|
dangerSecondary: "#B10541",
|
|
12687
|
-
whiteSecondary: "2px solid
|
|
12688
|
-
whitePrimary: "2px solid
|
|
12693
|
+
whiteSecondary: "2px solid " + TRANSPARENT,
|
|
12694
|
+
whitePrimary: "2px solid " + TRANSPARENT
|
|
12689
12695
|
};
|
|
12690
12696
|
var hoverColor = {
|
|
12691
|
-
primary:
|
|
12692
|
-
secondary:
|
|
12693
|
-
back:
|
|
12694
|
-
smallPrimary:
|
|
12695
|
-
smallSecondary:
|
|
12696
|
-
smallGhost:
|
|
12697
|
-
ghost:
|
|
12698
|
-
tertiary:
|
|
12699
|
-
danger:
|
|
12697
|
+
primary: WHITE,
|
|
12698
|
+
secondary: SAPPHIRE_BLUE,
|
|
12699
|
+
back: SAPPHIRE_BLUE,
|
|
12700
|
+
smallPrimary: WHITE,
|
|
12701
|
+
smallSecondary: SAPPHIRE_BLUE,
|
|
12702
|
+
smallGhost: SAPPHIRE_BLUE,
|
|
12703
|
+
ghost: SAPPHIRE_BLUE,
|
|
12704
|
+
tertiary: SAPPHIRE_BLUE,
|
|
12705
|
+
danger: WHITE,
|
|
12700
12706
|
dangerSecondary: "#B10541",
|
|
12701
|
-
whiteSecondary:
|
|
12702
|
-
whitePrimary:
|
|
12707
|
+
whiteSecondary: WHITE,
|
|
12708
|
+
whitePrimary: WHITE
|
|
12703
12709
|
};
|
|
12704
12710
|
var activeBackgroundColor = {
|
|
12705
|
-
primary:
|
|
12711
|
+
primary: PEACOCK_BLUE,
|
|
12706
12712
|
secondary: "#B8D5E1",
|
|
12707
|
-
back:
|
|
12708
|
-
smallPrimary:
|
|
12713
|
+
back: TRANSPARENT,
|
|
12714
|
+
smallPrimary: PEACOCK_BLUE,
|
|
12709
12715
|
smallSecondary: "#B8D5E1",
|
|
12710
|
-
smallGhost:
|
|
12711
|
-
ghost:
|
|
12712
|
-
tertiary:
|
|
12716
|
+
smallGhost: TRANSPARENT,
|
|
12717
|
+
ghost: TRANSPARENT,
|
|
12718
|
+
tertiary: TRANSPARENT,
|
|
12713
12719
|
danger: "#870000",
|
|
12714
|
-
dangerSecondary: "
|
|
12715
|
-
whiteSecondary:
|
|
12716
|
-
whitePrimary:
|
|
12720
|
+
dangerSecondary: "#FAE7EE",
|
|
12721
|
+
whiteSecondary: TRANSPARENT,
|
|
12722
|
+
whitePrimary: TRANSPARENT
|
|
12717
12723
|
};
|
|
12718
12724
|
var activeBorderColor = {
|
|
12719
|
-
primary:
|
|
12720
|
-
secondary:
|
|
12721
|
-
back:
|
|
12722
|
-
smallPrimary:
|
|
12723
|
-
smallSecondary:
|
|
12724
|
-
smallGhost:
|
|
12725
|
-
ghost:
|
|
12726
|
-
tertiary:
|
|
12725
|
+
primary: PEACOCK_BLUE,
|
|
12726
|
+
secondary: MATISSE_BLUE,
|
|
12727
|
+
back: PEACOCK_BLUE,
|
|
12728
|
+
smallPrimary: PEACOCK_BLUE,
|
|
12729
|
+
smallSecondary: MATISSE_BLUE,
|
|
12730
|
+
smallGhost: TRANSPARENT,
|
|
12731
|
+
ghost: TRANSPARENT,
|
|
12732
|
+
tertiary: TRANSPARENT,
|
|
12727
12733
|
danger: "#870000",
|
|
12728
12734
|
dangerSecondary: "#910029",
|
|
12729
|
-
whiteSecondary: "2px solid
|
|
12730
|
-
whitePrimary: "2px solid
|
|
12735
|
+
whiteSecondary: "2px solid " + TRANSPARENT,
|
|
12736
|
+
whitePrimary: "2px solid " + TRANSPARENT
|
|
12731
12737
|
};
|
|
12732
12738
|
var activeColor = {
|
|
12733
|
-
primary:
|
|
12734
|
-
secondary:
|
|
12735
|
-
back:
|
|
12736
|
-
smallPrimary:
|
|
12737
|
-
smallSecondary:
|
|
12738
|
-
smallGhost:
|
|
12739
|
-
ghost:
|
|
12740
|
-
tertiary:
|
|
12741
|
-
danger:
|
|
12739
|
+
primary: WHITE,
|
|
12740
|
+
secondary: MATISSE_BLUE,
|
|
12741
|
+
back: PEACOCK_BLUE,
|
|
12742
|
+
smallPrimary: WHITE,
|
|
12743
|
+
smallSecondary: PEACOCK_BLUE,
|
|
12744
|
+
smallGhost: PEACOCK_BLUE,
|
|
12745
|
+
ghost: PEACOCK_BLUE,
|
|
12746
|
+
tertiary: PEACOCK_BLUE,
|
|
12747
|
+
danger: WHITE,
|
|
12742
12748
|
dangerSecondary: "#910029",
|
|
12743
|
-
whiteSecondary:
|
|
12744
|
-
whitePrimary:
|
|
12749
|
+
whiteSecondary: WHITE,
|
|
12750
|
+
whitePrimary: WHITE
|
|
12745
12751
|
};
|
|
12746
12752
|
var fallbackValues$1 = {
|
|
12747
12753
|
padding: padding,
|
|
@@ -14734,6 +14740,23 @@ var FailedIcon = function FailedIcon() {
|
|
|
14734
14740
|
}))));
|
|
14735
14741
|
};
|
|
14736
14742
|
|
|
14743
|
+
var PencilIcon = function PencilIcon(_ref) {
|
|
14744
|
+
var _ref$ariaLabel = _ref.ariaLabel,
|
|
14745
|
+
ariaLabel = _ref$ariaLabel === void 0 ? "Edit" : _ref$ariaLabel;
|
|
14746
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
14747
|
+
"aria-label": ariaLabel,
|
|
14748
|
+
width: "24px",
|
|
14749
|
+
height: "24px",
|
|
14750
|
+
fill: "none",
|
|
14751
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
14752
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
14753
|
+
fillRule: "evenodd",
|
|
14754
|
+
clipRule: "evenodd",
|
|
14755
|
+
d: "M19.74 6.84a.885.885 0 0 1 0 1.253l-1.626 1.626-3.333-3.333 1.626-1.626a.885.885 0 0 1 1.253 0l2.08 2.08ZM4 20.5v-3.333l9.83-9.83 3.333 3.333-9.83 9.83H4Z",
|
|
14756
|
+
fill: "#15749D"
|
|
14757
|
+
}));
|
|
14758
|
+
};
|
|
14759
|
+
|
|
14737
14760
|
var PendingIcon = function PendingIcon() {
|
|
14738
14761
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
14739
14762
|
width: "32px",
|
|
@@ -25494,7 +25517,9 @@ var LineItem = function LineItem(_ref) {
|
|
|
25494
25517
|
var description = _ref.description,
|
|
25495
25518
|
subDescription = _ref.subDescription,
|
|
25496
25519
|
amount = _ref.amount,
|
|
25497
|
-
themeValues = _ref.themeValues
|
|
25520
|
+
themeValues = _ref.themeValues,
|
|
25521
|
+
_ref$displayQuantity = _ref.displayQuantity,
|
|
25522
|
+
displayQuantity = _ref$displayQuantity === void 0 ? null : _ref$displayQuantity;
|
|
25498
25523
|
return /*#__PURE__*/React__default.createElement(Cluster, {
|
|
25499
25524
|
nowrap: true,
|
|
25500
25525
|
justify: "space-between",
|
|
@@ -25507,7 +25532,10 @@ var LineItem = function LineItem(_ref) {
|
|
|
25507
25532
|
}, description), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
25508
25533
|
variant: themeValues.paragraphVariant,
|
|
25509
25534
|
weight: "400"
|
|
25510
|
-
}, subDescription)), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
25535
|
+
}, subDescription)), !!displayQuantity && /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
25536
|
+
variant: themeValues.paragraphVariant,
|
|
25537
|
+
weight: themeValues.weightTitle
|
|
25538
|
+
}, "x".concat(displayQuantity)), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
25511
25539
|
variant: themeValues.paragraphVariant,
|
|
25512
25540
|
weight: "600",
|
|
25513
25541
|
extraStyles: "margin: 0; text-align: end; min-width: fit-content; padding-left: 32px;"
|
|
@@ -45666,19 +45694,25 @@ var menu = posed.div({
|
|
|
45666
45694
|
var ImposterMenu = styled__default(menu).withConfig({
|
|
45667
45695
|
displayName: "NavMenuMobile__ImposterMenu",
|
|
45668
45696
|
componentId: "sc-1pf0qp7-0"
|
|
45669
|
-
})(["position:fixed;top:
|
|
45697
|
+
})(["position:fixed;top:", ";"], function (_ref) {
|
|
45698
|
+
var headerSize = _ref.headerSize;
|
|
45699
|
+
return headerSize;
|
|
45700
|
+
});
|
|
45670
45701
|
|
|
45671
|
-
var NavMenuMobile = function NavMenuMobile(
|
|
45672
|
-
var id =
|
|
45673
|
-
|
|
45674
|
-
menuContent =
|
|
45675
|
-
|
|
45676
|
-
visible =
|
|
45677
|
-
|
|
45702
|
+
var NavMenuMobile = function NavMenuMobile(_ref2) {
|
|
45703
|
+
var id = _ref2.id,
|
|
45704
|
+
_ref2$menuContent = _ref2.menuContent,
|
|
45705
|
+
menuContent = _ref2$menuContent === void 0 ? [] : _ref2$menuContent,
|
|
45706
|
+
_ref2$visible = _ref2.visible,
|
|
45707
|
+
visible = _ref2$visible === void 0 ? false : _ref2$visible,
|
|
45708
|
+
_ref2$headerSize = _ref2.headerSize,
|
|
45709
|
+
headerSize = _ref2$headerSize === void 0 ? "72px" : _ref2$headerSize,
|
|
45710
|
+
themeValues = _ref2.themeValues;
|
|
45678
45711
|
return /*#__PURE__*/React__default.createElement(ImposterMenu, {
|
|
45679
45712
|
id: id,
|
|
45680
45713
|
initialPose: "invisible",
|
|
45681
|
-
pose: visible ? "visible" : "invisible"
|
|
45714
|
+
pose: visible ? "visible" : "invisible",
|
|
45715
|
+
headerSize: headerSize
|
|
45682
45716
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
45683
45717
|
width: "100vw",
|
|
45684
45718
|
padding: "1rem 0.5rem",
|
|
@@ -46556,6 +46590,7 @@ var PrevNextPlaceholder = function PrevNextPlaceholder(_ref) {
|
|
|
46556
46590
|
|
|
46557
46591
|
var PrevNextButton = function PrevNextButton(_ref2) {
|
|
46558
46592
|
var action = _ref2.action,
|
|
46593
|
+
ariaLabel = _ref2.ariaLabel,
|
|
46559
46594
|
arrowColor = _ref2.arrowColor,
|
|
46560
46595
|
borderRadius = _ref2.borderRadius,
|
|
46561
46596
|
buttonHeight = _ref2.buttonHeight,
|
|
@@ -46565,12 +46600,14 @@ var PrevNextButton = function PrevNextButton(_ref2) {
|
|
|
46565
46600
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
46566
46601
|
padding: "0",
|
|
46567
46602
|
minHeight: buttonHeight,
|
|
46568
|
-
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46603
|
+
extraStyles: "max-height: ".concat(buttonHeight, ";"),
|
|
46604
|
+
as: "li"
|
|
46569
46605
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46570
46606
|
action: action,
|
|
46571
46607
|
contentOverride: true,
|
|
46572
46608
|
dataQa: type,
|
|
46573
|
-
|
|
46609
|
+
"aria-label": ariaLabel,
|
|
46610
|
+
extraStyles: "\n background-color: ".concat(numberColor, ";\n border-color: ").concat(numberColor, ";\n border-radius: ").concat(borderRadius, ";\n margin: 0;\n max-height: ").concat(buttonHeight, ";\n min-height: 100%;\n min-width: ").concat(buttonWidth, ";\n padding: 0;\n ")
|
|
46574
46611
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
46575
46612
|
padding: "0",
|
|
46576
46613
|
extraStyles: type === "prev" && "transform: scaleX(-1)"
|
|
@@ -46594,26 +46631,30 @@ var getPagesPanel = function getPagesPanel(page, pagesCount) {
|
|
|
46594
46631
|
|
|
46595
46632
|
if (page > space + 1) {
|
|
46596
46633
|
pages.push({
|
|
46597
|
-
isDelimiter: true
|
|
46634
|
+
isDelimiter: true,
|
|
46635
|
+
id: "first-delimiter"
|
|
46598
46636
|
});
|
|
46599
46637
|
}
|
|
46600
46638
|
|
|
46601
46639
|
for (var j = Math.max(1, page - space) + 1; j < Math.min(lastPageNumber, page + space); j++) {
|
|
46602
46640
|
pages.push({
|
|
46603
46641
|
index: j,
|
|
46604
|
-
isButton: true
|
|
46642
|
+
isButton: true,
|
|
46643
|
+
id: "page-".concat(j)
|
|
46605
46644
|
});
|
|
46606
46645
|
}
|
|
46607
46646
|
|
|
46608
46647
|
if (page < lastPageNumber - space) {
|
|
46609
46648
|
pages.push({
|
|
46610
|
-
isDelimiter: true
|
|
46649
|
+
isDelimiter: true,
|
|
46650
|
+
id: "last-delimiter"
|
|
46611
46651
|
});
|
|
46612
46652
|
}
|
|
46613
46653
|
|
|
46614
46654
|
pages.push({
|
|
46615
46655
|
index: lastPageNumber,
|
|
46616
|
-
isButton: true
|
|
46656
|
+
isButton: true,
|
|
46657
|
+
id: "page-".concat(lastPageNumber)
|
|
46617
46658
|
});
|
|
46618
46659
|
var activePage = pages.find(function (p) {
|
|
46619
46660
|
return p.index === page;
|
|
@@ -46648,18 +46689,26 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46648
46689
|
pageNext = _ref3.pageNext,
|
|
46649
46690
|
pagePrevious = _ref3.pagePrevious,
|
|
46650
46691
|
setCurrentPage = _ref3.setCurrentPage,
|
|
46692
|
+
ariaLabel = _ref3.ariaLabel,
|
|
46651
46693
|
themeValues = _ref3.themeValues;
|
|
46652
46694
|
|
|
46653
46695
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
46654
46696
|
isMobile = _useContext.isMobile;
|
|
46655
46697
|
|
|
46656
|
-
var extraStyles = "\n min-width: ".concat(buttonWidth, "; min-height: 100%; padding: 0;\n border-radius: ").concat(borderRadius, ";\n &:hover, &:focus {\n text-decoration: none;\n > * > span {\n text-decoration: none;\n }\n }\n > * > span {\n color: ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor, "\n }\n margin: 0;\n &:hover {\n background-color: ").concat(themeValues.hoverBackgroundColor, "\n }\n
|
|
46657
|
-
var
|
|
46698
|
+
var extraStyles = "\n min-width: ".concat(buttonWidth, "; min-height: 100%; padding: 0;\n border-radius: ").concat(borderRadius, ";\n &:hover, &:focus {\n text-decoration: none;\n > * > span {\n text-decoration: none;\n }\n }\n > * > span {\n color: ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor, "\n }\n margin: 0;\n &:hover {\n background-color: ").concat(themeValues.hoverBackgroundColor, "\n }\n ");
|
|
46699
|
+
var currentPageStyles = "\n border: ".concat(activeBorderWidth, " solid ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor, ";\n color: ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.activeColor, ";\n background-color: ").concat(themeValues.activeBackgroundColor, ";\n &:focus {\n box-shadow: none;\n }\n &:hover {\n background-color: initial;\n border: ").concat(activeBorderWidth, " solid ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor, ";\n background-color: ").concat(themeValues.activeBackgroundColor, ";\n }\n ");
|
|
46658
46700
|
return /*#__PURE__*/React__default.createElement(Cluster, {
|
|
46659
46701
|
justify: "center",
|
|
46660
|
-
childGap: childGap
|
|
46702
|
+
childGap: childGap,
|
|
46703
|
+
overflow: true,
|
|
46704
|
+
as: "nav",
|
|
46705
|
+
role: "navigation",
|
|
46706
|
+
innerWrapperAs: "ul",
|
|
46707
|
+
"aria-label": ariaLabel,
|
|
46708
|
+
extraStyles: "> ul { padding: 0px; > li { list-style-type: none; } };"
|
|
46661
46709
|
}, currentPage > 1 ? /*#__PURE__*/React__default.createElement(PrevNextButton, {
|
|
46662
46710
|
action: pagePrevious,
|
|
46711
|
+
ariaLabel: "Previous Page",
|
|
46663
46712
|
arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
|
|
46664
46713
|
borderRadius: borderRadius,
|
|
46665
46714
|
buttonHeight: buttonHeight,
|
|
@@ -46681,33 +46730,37 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46681
46730
|
}, "".concat(currentPage, " of ").concat(pageCount)))) : getPagesPanel(currentPage, pageCount).map(function (item, index) {
|
|
46682
46731
|
return item.isButton ? /*#__PURE__*/React__default.createElement(Box, {
|
|
46683
46732
|
padding: "0",
|
|
46684
|
-
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46733
|
+
extraStyles: "max-height: ".concat(buttonHeight, ";"),
|
|
46734
|
+
as: "li",
|
|
46735
|
+
key: item.id
|
|
46685
46736
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46686
46737
|
variant: "ghost",
|
|
46687
|
-
key: item.index,
|
|
46688
46738
|
text: item.index,
|
|
46689
|
-
|
|
46690
|
-
|
|
46739
|
+
"aria-current": item.active ? "page" : undefined,
|
|
46740
|
+
"aria-label": "".concat(item.index == pageCount ? "Last Page, " : "", "page ").concat(item.index),
|
|
46691
46741
|
action: !item.active ? function () {
|
|
46692
46742
|
return setCurrentPage({
|
|
46693
46743
|
pageNumber: item.index
|
|
46694
46744
|
});
|
|
46695
46745
|
} : noop,
|
|
46696
46746
|
textExtraStyles: "font-size: ".concat(fontSize, "; font-weight: ").concat(fontWeight, ";"),
|
|
46697
|
-
extraStyles: extraStyles,
|
|
46747
|
+
extraStyles: "".concat(extraStyles).concat(item.active ? currentPageStyles : ""),
|
|
46698
46748
|
dataQa: index
|
|
46699
46749
|
}, item.index)) : /*#__PURE__*/React__default.createElement(Box, {
|
|
46700
|
-
padding: "0 10px"
|
|
46750
|
+
padding: "0 10px",
|
|
46751
|
+
as: "li",
|
|
46752
|
+
key: item.id
|
|
46701
46753
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
46702
46754
|
justify: "flex-end"
|
|
46703
46755
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
46704
|
-
key: index,
|
|
46705
46756
|
variant: "pXL",
|
|
46706
46757
|
weight: fontWeight,
|
|
46707
|
-
color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor
|
|
46708
|
-
|
|
46758
|
+
color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor,
|
|
46759
|
+
role: "presentation"
|
|
46760
|
+
}, "…")));
|
|
46709
46761
|
}), currentPage < pageCount ? /*#__PURE__*/React__default.createElement(PrevNextButton, {
|
|
46710
46762
|
action: pageNext,
|
|
46763
|
+
ariaLabel: "Next Page",
|
|
46711
46764
|
arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
|
|
46712
46765
|
borderRadius: borderRadius,
|
|
46713
46766
|
buttonHeight: buttonHeight,
|
|
@@ -47127,6 +47180,101 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
47127
47180
|
|
|
47128
47181
|
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$L, "default");
|
|
47129
47182
|
|
|
47183
|
+
var backgroundColor$c = {
|
|
47184
|
+
"default": "#ffffff",
|
|
47185
|
+
footer: "#ffffff"
|
|
47186
|
+
};
|
|
47187
|
+
var linkColor$6 = {
|
|
47188
|
+
"default": "#3176AA",
|
|
47189
|
+
footer: "#ffffff"
|
|
47190
|
+
};
|
|
47191
|
+
var border$3 = {
|
|
47192
|
+
"default": "#cdcdcd",
|
|
47193
|
+
footer: "#cdcdcd"
|
|
47194
|
+
};
|
|
47195
|
+
var fontSize$b = {
|
|
47196
|
+
"default": "1rem",
|
|
47197
|
+
footer: "0.875rem"
|
|
47198
|
+
};
|
|
47199
|
+
var lineHeight$5 = {
|
|
47200
|
+
"default": "1.5rem",
|
|
47201
|
+
footer: "1.25rem"
|
|
47202
|
+
};
|
|
47203
|
+
var fontWeight$8 = {
|
|
47204
|
+
"default": FONT_WEIGHT_REGULAR,
|
|
47205
|
+
footer: FONT_WEIGHT_SEMIBOLD
|
|
47206
|
+
};
|
|
47207
|
+
var standardInteractionStyles = "\n &:hover {\n outline: none; \n text-decoration: underline;\n }\n &:focus {\n outline: 3px solid #3181E3;\n outline-offset: 2px;\n }\n";
|
|
47208
|
+
var modalLinkHoverFocus$2 = {
|
|
47209
|
+
"default": standardInteractionStyles,
|
|
47210
|
+
footer: standardInteractionStyles
|
|
47211
|
+
};
|
|
47212
|
+
var fallbackValues$M = {
|
|
47213
|
+
backgroundColor: backgroundColor$c,
|
|
47214
|
+
linkColor: linkColor$6,
|
|
47215
|
+
border: border$3,
|
|
47216
|
+
fontSize: fontSize$b,
|
|
47217
|
+
lineHeight: lineHeight$5,
|
|
47218
|
+
fontWeight: fontWeight$8,
|
|
47219
|
+
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
47220
|
+
};
|
|
47221
|
+
|
|
47222
|
+
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
47223
|
+
var link = _ref.link,
|
|
47224
|
+
_ref$title = _ref.title,
|
|
47225
|
+
title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
|
|
47226
|
+
isOpen = _ref.isOpen,
|
|
47227
|
+
toggleOpen = _ref.toggleOpen,
|
|
47228
|
+
toggleAccepted = _ref.toggleAccepted,
|
|
47229
|
+
acceptText = _ref.acceptText,
|
|
47230
|
+
terms = _ref.terms,
|
|
47231
|
+
variant = _ref.variant,
|
|
47232
|
+
_ref$linkVariant = _ref.linkVariant,
|
|
47233
|
+
linkVariant = _ref$linkVariant === void 0 ? "p" : _ref$linkVariant,
|
|
47234
|
+
themeValues = _ref.themeValues;
|
|
47235
|
+
return /*#__PURE__*/React__default.createElement(Modal$1, {
|
|
47236
|
+
modalOpen: isOpen,
|
|
47237
|
+
hideModal: function hideModal() {
|
|
47238
|
+
return toggleOpen(false);
|
|
47239
|
+
},
|
|
47240
|
+
showModal: function showModal() {
|
|
47241
|
+
return toggleOpen(true);
|
|
47242
|
+
},
|
|
47243
|
+
modalHeaderText: title,
|
|
47244
|
+
modalBodyText: /*#__PURE__*/React__default.createElement(Box, {
|
|
47245
|
+
background: themeValues.backgroundColor,
|
|
47246
|
+
border: "1px solid ".concat(themeValues.border),
|
|
47247
|
+
borderRadius: "3px",
|
|
47248
|
+
extraStyles: "overflow: scroll; max-height: 20rem;"
|
|
47249
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47250
|
+
variant: "p",
|
|
47251
|
+
extraStyles: "& a { text-decoration: underline; }"
|
|
47252
|
+
}, terms)),
|
|
47253
|
+
defaultWrapper: false,
|
|
47254
|
+
onlyCloseButton: !acceptText,
|
|
47255
|
+
continueButtonText: acceptText,
|
|
47256
|
+
continueAction: function continueAction() {
|
|
47257
|
+
toggleAccepted(true);
|
|
47258
|
+
toggleOpen(false);
|
|
47259
|
+
}
|
|
47260
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47261
|
+
variant: linkVariant,
|
|
47262
|
+
onClick: function onClick() {
|
|
47263
|
+
return toggleOpen(true);
|
|
47264
|
+
},
|
|
47265
|
+
onKeyPress: function onKeyPress(e) {
|
|
47266
|
+
return e.key === "Enter" && toggleOpen(true);
|
|
47267
|
+
},
|
|
47268
|
+
tabIndex: "0",
|
|
47269
|
+
color: themeValues.linkColor,
|
|
47270
|
+
weight: themeValues.fontWeight,
|
|
47271
|
+
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
47272
|
+
extraStyles: "display: inline-block; width: fit-content; cursor: pointer"
|
|
47273
|
+
}, link));
|
|
47274
|
+
};
|
|
47275
|
+
|
|
47276
|
+
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$M, "default");
|
|
47277
|
+
|
|
47130
47278
|
var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
47131
47279
|
var _routingNumberErrors, _accountNumberErrors;
|
|
47132
47280
|
|
|
@@ -47145,7 +47293,10 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47145
47293
|
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
47146
47294
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
47147
47295
|
saveToWallet = _ref.saveToWallet,
|
|
47148
|
-
walletCheckboxMarked = _ref.walletCheckboxMarked
|
|
47296
|
+
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
47297
|
+
termsContent = _ref.termsContent,
|
|
47298
|
+
_ref$termsTitle = _ref.termsTitle,
|
|
47299
|
+
termsTitle = _ref$termsTitle === void 0 ? "Terms & Conditions" : _ref$termsTitle;
|
|
47149
47300
|
|
|
47150
47301
|
if (clearOnDismount) {
|
|
47151
47302
|
React.useEffect(function () {
|
|
@@ -47165,6 +47316,14 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47165
47316
|
showAccount = _useState4[0],
|
|
47166
47317
|
toggleShowAccount = _useState4[1];
|
|
47167
47318
|
|
|
47319
|
+
var _useState5 = React.useState(false),
|
|
47320
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
47321
|
+
termsModalOpen = _useState6[0],
|
|
47322
|
+
setTermsModalOpen = _useState6[1];
|
|
47323
|
+
|
|
47324
|
+
var showTerms = !!termsContent;
|
|
47325
|
+
var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
|
|
47326
|
+
|
|
47168
47327
|
var nameErrors = _defineProperty({}, required.error, "Name is required");
|
|
47169
47328
|
|
|
47170
47329
|
var routingNumberErrors = (_routingNumberErrors = {}, _defineProperty(_routingNumberErrors, required.error, "Routing number is required"), _defineProperty(_routingNumberErrors, hasLength.error, "Routing number must be 9 digits"), _defineProperty(_routingNumberErrors, isRoutingNumber.error, "Invalid routing number"), _routingNumberErrors);
|
|
@@ -47273,12 +47432,27 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47273
47432
|
onChange: toggleCheckbox,
|
|
47274
47433
|
checked: defaultMethod.value,
|
|
47275
47434
|
hidden: hideDefaultPayment
|
|
47276
|
-
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(
|
|
47435
|
+
}), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47436
|
+
childGap: "4px"
|
|
47437
|
+
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
47277
47438
|
name: "bank checkbox",
|
|
47278
|
-
title: "Save checking account to wallet",
|
|
47439
|
+
title: "Save checking account to wallet.",
|
|
47279
47440
|
checked: walletCheckboxMarked,
|
|
47280
47441
|
onChange: saveToWallet
|
|
47281
|
-
})
|
|
47442
|
+
}), showTerms && /*#__PURE__*/React__default.createElement(Cover, {
|
|
47443
|
+
singleChild: true
|
|
47444
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47445
|
+
childGap: 0
|
|
47446
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47447
|
+
variant: showTermsLinkVariant
|
|
47448
|
+
}, "View\xA0"), /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
|
|
47449
|
+
link: termsTitle,
|
|
47450
|
+
linkVariant: showTermsLinkVariant,
|
|
47451
|
+
terms: termsContent,
|
|
47452
|
+
title: termsTitle,
|
|
47453
|
+
isOpen: termsModalOpen,
|
|
47454
|
+
toggleOpen: setTermsModalOpen
|
|
47455
|
+
}))))));
|
|
47282
47456
|
};
|
|
47283
47457
|
|
|
47284
47458
|
var formConfig$6 = {
|
|
@@ -47332,11 +47506,21 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
47332
47506
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
47333
47507
|
saveToWallet = _ref.saveToWallet,
|
|
47334
47508
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
47335
|
-
deniedCards = _ref.deniedCards
|
|
47509
|
+
deniedCards = _ref.deniedCards,
|
|
47510
|
+
termsContent = _ref.termsContent,
|
|
47511
|
+
_ref$termsTitle = _ref.termsTitle,
|
|
47512
|
+
termsTitle = _ref$termsTitle === void 0 ? "Terms & Conditions" : _ref$termsTitle;
|
|
47336
47513
|
|
|
47337
47514
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
47338
47515
|
isMobile = _useContext.isMobile;
|
|
47339
47516
|
|
|
47517
|
+
var _useState = React.useState(false),
|
|
47518
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
47519
|
+
termsModalOpen = _useState2[0],
|
|
47520
|
+
setTermsModalOpen = _useState2[1];
|
|
47521
|
+
|
|
47522
|
+
var showTerms = !!termsContent;
|
|
47523
|
+
var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
|
|
47340
47524
|
React.useEffect(function () {
|
|
47341
47525
|
if (deniedCards) {
|
|
47342
47526
|
deniedCards.map(function (card) {
|
|
@@ -47445,12 +47629,27 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
47445
47629
|
return e.key === "Enter" && handleSubmit(e);
|
|
47446
47630
|
},
|
|
47447
47631
|
autocomplete: "billing postal-code"
|
|
47448
|
-
})), showWalletCheckbox && /*#__PURE__*/React__default.createElement(
|
|
47632
|
+
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47633
|
+
childGap: "4px"
|
|
47634
|
+
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
47449
47635
|
name: "credit card checkbox",
|
|
47450
|
-
title: "Save credit card to wallet",
|
|
47636
|
+
title: "Save credit card to wallet.",
|
|
47451
47637
|
checked: walletCheckboxMarked,
|
|
47452
47638
|
onChange: saveToWallet
|
|
47453
|
-
})
|
|
47639
|
+
}), showTerms && /*#__PURE__*/React__default.createElement(Cover, {
|
|
47640
|
+
singleChild: true
|
|
47641
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47642
|
+
childGap: 0
|
|
47643
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47644
|
+
variant: showTermsLinkVariant
|
|
47645
|
+
}, "View\xA0"), /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
|
|
47646
|
+
link: termsTitle,
|
|
47647
|
+
linkVariant: showTermsLinkVariant,
|
|
47648
|
+
terms: termsContent,
|
|
47649
|
+
title: termsTitle,
|
|
47650
|
+
isOpen: termsModalOpen,
|
|
47651
|
+
toggleOpen: setTermsModalOpen
|
|
47652
|
+
}))))));
|
|
47454
47653
|
};
|
|
47455
47654
|
|
|
47456
47655
|
var PaymentFormCard$1 = withWindowSize(PaymentFormCard);
|
|
@@ -47731,7 +47930,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
|
|
|
47731
47930
|
var bodyBackgroundColor$1 = "#eeeeee";
|
|
47732
47931
|
var borderColor$5 = "".concat(GREY_CHATEAU);
|
|
47733
47932
|
var focusStyles = "outline: none;";
|
|
47734
|
-
var fallbackValues$
|
|
47933
|
+
var fallbackValues$N = {
|
|
47735
47934
|
headingBackgroundColor: headingBackgroundColor$1,
|
|
47736
47935
|
headingDisabledColor: headingDisabledColor,
|
|
47737
47936
|
bodyBackgroundColor: bodyBackgroundColor$1,
|
|
@@ -47919,7 +48118,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
47919
48118
|
})));
|
|
47920
48119
|
};
|
|
47921
48120
|
|
|
47922
|
-
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$
|
|
48121
|
+
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$N);
|
|
47923
48122
|
|
|
47924
48123
|
var RegistrationForm = function RegistrationForm(_ref) {
|
|
47925
48124
|
var _emailErrorMessages, _passwordErrorMessage;
|
|
@@ -48216,7 +48415,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
|
|
|
48216
48415
|
var activeTabBackground = "#FFFFFF";
|
|
48217
48416
|
var activeTabAccent = "#15749D";
|
|
48218
48417
|
var activeTabHover = "#B8D5E1";
|
|
48219
|
-
var fallbackValues$
|
|
48418
|
+
var fallbackValues$O = {
|
|
48220
48419
|
activeTabBackground: activeTabBackground,
|
|
48221
48420
|
activeTabAccent: activeTabAccent,
|
|
48222
48421
|
activeTabHover: activeTabHover
|
|
@@ -48295,12 +48494,12 @@ var Tabs = function Tabs(_ref) {
|
|
|
48295
48494
|
}))));
|
|
48296
48495
|
};
|
|
48297
48496
|
|
|
48298
|
-
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$
|
|
48497
|
+
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$O);
|
|
48299
48498
|
|
|
48300
48499
|
var activeTabBackground$1 = "#FFFFFF";
|
|
48301
48500
|
var activeTabAccent$1 = "#15749D";
|
|
48302
48501
|
var activeTabHover$1 = "#B8D5E1";
|
|
48303
|
-
var fallbackValues$
|
|
48502
|
+
var fallbackValues$P = {
|
|
48304
48503
|
activeTabBackground: activeTabBackground$1,
|
|
48305
48504
|
activeTabAccent: activeTabAccent$1,
|
|
48306
48505
|
activeTabHover: activeTabHover$1
|
|
@@ -48356,100 +48555,7 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
48356
48555
|
})));
|
|
48357
48556
|
};
|
|
48358
48557
|
|
|
48359
|
-
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$
|
|
48360
|
-
|
|
48361
|
-
var backgroundColor$c = {
|
|
48362
|
-
"default": "#ffffff",
|
|
48363
|
-
footer: "#ffffff"
|
|
48364
|
-
};
|
|
48365
|
-
var linkColor$6 = {
|
|
48366
|
-
"default": "#3176AA",
|
|
48367
|
-
footer: "#ffffff"
|
|
48368
|
-
};
|
|
48369
|
-
var border$3 = {
|
|
48370
|
-
"default": "#cdcdcd",
|
|
48371
|
-
footer: "#cdcdcd"
|
|
48372
|
-
};
|
|
48373
|
-
var fontSize$b = {
|
|
48374
|
-
"default": "1rem",
|
|
48375
|
-
footer: "0.875rem"
|
|
48376
|
-
};
|
|
48377
|
-
var lineHeight$5 = {
|
|
48378
|
-
"default": "1.5rem",
|
|
48379
|
-
footer: "1.25rem"
|
|
48380
|
-
};
|
|
48381
|
-
var fontWeight$8 = {
|
|
48382
|
-
"default": FONT_WEIGHT_REGULAR,
|
|
48383
|
-
footer: FONT_WEIGHT_SEMIBOLD
|
|
48384
|
-
};
|
|
48385
|
-
var standardInteractionStyles = "\n &:hover {\n outline: none; \n text-decoration: underline;\n }\n &:focus {\n outline: 3px solid #3181E3;\n outline-offset: 2px;\n }\n";
|
|
48386
|
-
var modalLinkHoverFocus$2 = {
|
|
48387
|
-
"default": standardInteractionStyles,
|
|
48388
|
-
footer: standardInteractionStyles
|
|
48389
|
-
};
|
|
48390
|
-
var fallbackValues$P = {
|
|
48391
|
-
backgroundColor: backgroundColor$c,
|
|
48392
|
-
linkColor: linkColor$6,
|
|
48393
|
-
border: border$3,
|
|
48394
|
-
fontSize: fontSize$b,
|
|
48395
|
-
lineHeight: lineHeight$5,
|
|
48396
|
-
fontWeight: fontWeight$8,
|
|
48397
|
-
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
48398
|
-
};
|
|
48399
|
-
|
|
48400
|
-
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
48401
|
-
var link = _ref.link,
|
|
48402
|
-
_ref$title = _ref.title,
|
|
48403
|
-
title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
|
|
48404
|
-
isOpen = _ref.isOpen,
|
|
48405
|
-
toggleOpen = _ref.toggleOpen,
|
|
48406
|
-
toggleAccepted = _ref.toggleAccepted,
|
|
48407
|
-
acceptText = _ref.acceptText,
|
|
48408
|
-
terms = _ref.terms,
|
|
48409
|
-
variant = _ref.variant,
|
|
48410
|
-
themeValues = _ref.themeValues;
|
|
48411
|
-
return /*#__PURE__*/React__default.createElement(Modal$1, {
|
|
48412
|
-
modalOpen: isOpen,
|
|
48413
|
-
hideModal: function hideModal() {
|
|
48414
|
-
return toggleOpen(false);
|
|
48415
|
-
},
|
|
48416
|
-
showModal: function showModal() {
|
|
48417
|
-
return toggleOpen(true);
|
|
48418
|
-
},
|
|
48419
|
-
modalHeaderText: title,
|
|
48420
|
-
modalBodyText: /*#__PURE__*/React__default.createElement(Box, {
|
|
48421
|
-
background: themeValues.backgroundColor,
|
|
48422
|
-
border: "1px solid ".concat(themeValues.border),
|
|
48423
|
-
borderRadius: "3px",
|
|
48424
|
-
extraStyles: "overflow: scroll; max-height: 20rem;"
|
|
48425
|
-
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48426
|
-
variant: "p",
|
|
48427
|
-
extraStyles: "& a { text-decoration: underline; }"
|
|
48428
|
-
}, terms)),
|
|
48429
|
-
defaultWrapper: false,
|
|
48430
|
-
onlyCloseButton: !acceptText,
|
|
48431
|
-
continueButtonText: acceptText,
|
|
48432
|
-
continueAction: function continueAction() {
|
|
48433
|
-
toggleAccepted(true);
|
|
48434
|
-
toggleOpen(false);
|
|
48435
|
-
}
|
|
48436
|
-
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48437
|
-
variant: variant === "default" ? "pS" : "pXS",
|
|
48438
|
-
onClick: function onClick() {
|
|
48439
|
-
return toggleOpen(true);
|
|
48440
|
-
},
|
|
48441
|
-
onKeyPress: function onKeyPress(e) {
|
|
48442
|
-
return e.key === "Enter" && toggleOpen(true);
|
|
48443
|
-
},
|
|
48444
|
-
tabIndex: "0",
|
|
48445
|
-
color: themeValues.linkColor,
|
|
48446
|
-
weight: themeValues.fontWeight,
|
|
48447
|
-
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
48448
|
-
extraStyles: "display: inline-block; width: fit-content;"
|
|
48449
|
-
}, link));
|
|
48450
|
-
};
|
|
48451
|
-
|
|
48452
|
-
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$P, "default");
|
|
48558
|
+
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$P);
|
|
48453
48559
|
|
|
48454
48560
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48455
48561
|
var onCheck = _ref.onCheck,
|
|
@@ -48457,7 +48563,8 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
48457
48563
|
html = _ref.html,
|
|
48458
48564
|
terms = _ref.terms,
|
|
48459
48565
|
_ref$error = _ref.error,
|
|
48460
|
-
error = _ref$error === void 0 ? false : _ref$error
|
|
48566
|
+
error = _ref$error === void 0 ? false : _ref$error,
|
|
48567
|
+
linkVariant = _ref.linkVariant;
|
|
48461
48568
|
|
|
48462
48569
|
var _useState = React.useState(false),
|
|
48463
48570
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -48478,7 +48585,8 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
48478
48585
|
link: "Learn More",
|
|
48479
48586
|
terms: terms,
|
|
48480
48587
|
isOpen: showTerms,
|
|
48481
|
-
toggleOpen: toggleShowTerms
|
|
48588
|
+
toggleOpen: toggleShowTerms,
|
|
48589
|
+
linkVariant: linkVariant
|
|
48482
48590
|
})))));
|
|
48483
48591
|
};
|
|
48484
48592
|
|
|
@@ -48582,9 +48690,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
|
|
|
48582
48690
|
workflowActionName = _ref$workflowActionNa === void 0 ? "Search" : _ref$workflowActionNa,
|
|
48583
48691
|
slug = _ref.slug,
|
|
48584
48692
|
_ref$buttonVariant = _ref.buttonVariant,
|
|
48585
|
-
buttonVariant = _ref$buttonVariant === void 0 ? "primary" : _ref$buttonVariant
|
|
48586
|
-
selectWorkflowAction = _ref.selectWorkflowAction,
|
|
48587
|
-
navigate = _ref.navigate;
|
|
48693
|
+
buttonVariant = _ref$buttonVariant === void 0 ? "primary" : _ref$buttonVariant;
|
|
48588
48694
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
48589
48695
|
background: WHITE,
|
|
48590
48696
|
boxShadow: "0px 0px 5px 0px ".concat(GHOST_GREY),
|
|
@@ -48612,21 +48718,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
|
|
|
48612
48718
|
background: ATHENS_GREY,
|
|
48613
48719
|
borderColor: GRECIAN_GREY,
|
|
48614
48720
|
borderWidthOverride: "2px 0 0 0"
|
|
48615
|
-
},
|
|
48616
|
-
variant: buttonVariant,
|
|
48617
|
-
primary: buttonVariant == "primary",
|
|
48618
|
-
primaryBG: MATISSE_BLUE,
|
|
48619
|
-
fontWeight: FONT_WEIGHT_SEMIBOLD,
|
|
48620
|
-
fontSize: "1.125rem",
|
|
48621
|
-
text: workflowActionName,
|
|
48622
|
-
minWidth: "100%",
|
|
48623
|
-
extraStyles: "width: 100%; margin: 0; text-align: center;",
|
|
48624
|
-
dataQa: slug,
|
|
48625
|
-
action: function action() {
|
|
48626
|
-
selectWorkflowAction(slug);
|
|
48627
|
-
navigate("/service/".concat(slug));
|
|
48628
|
-
}
|
|
48629
|
-
}) : /*#__PURE__*/React__default.createElement(ButtonWithLink, {
|
|
48721
|
+
}, /*#__PURE__*/React__default.createElement(ButtonWithLink, {
|
|
48630
48722
|
variant: buttonVariant,
|
|
48631
48723
|
primary: buttonVariant == "primary",
|
|
48632
48724
|
primaryBG: MATISSE_BLUE,
|
|
@@ -49026,6 +49118,7 @@ exports.PaymentMethodAddIcon = PaymentMethodAddIcon$1;
|
|
|
49026
49118
|
exports.PaymentMethodIcon = PaymentMethodIcon$1;
|
|
49027
49119
|
exports.PaymentSearchIcon = PaymentSearchIcon;
|
|
49028
49120
|
exports.PaymentsIconSmall = PaymentsIconSmall$1;
|
|
49121
|
+
exports.PencilIcon = PencilIcon;
|
|
49029
49122
|
exports.PendingIcon = PendingIcon;
|
|
49030
49123
|
exports.PeriscopeDashboardIframe = PeriscopeDashboardIframe;
|
|
49031
49124
|
exports.PeriscopeFailedIcon = PeriscopeFailedIcon;
|