@thecb/components 7.10.0-beta.0 → 7.10.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 +353 -257
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +353 -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 +22 -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,26 @@ 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
|
+
themeValues = _ref.themeValues;
|
|
14747
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
14748
|
+
"aria-label": ariaLabel,
|
|
14749
|
+
width: "24px",
|
|
14750
|
+
height: "24px",
|
|
14751
|
+
fill: "none",
|
|
14752
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
14753
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
14754
|
+
fillRule: "evenodd",
|
|
14755
|
+
clipRule: "evenodd",
|
|
14756
|
+
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",
|
|
14757
|
+
fill: themeValues.subIconColor
|
|
14758
|
+
}));
|
|
14759
|
+
};
|
|
14760
|
+
|
|
14761
|
+
var PencilIcon$1 = themeComponent(PencilIcon, "Icons", fallbackValues$2, "info");
|
|
14762
|
+
|
|
14737
14763
|
var PendingIcon = function PendingIcon() {
|
|
14738
14764
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
14739
14765
|
width: "32px",
|
|
@@ -25494,7 +25520,9 @@ var LineItem = function LineItem(_ref) {
|
|
|
25494
25520
|
var description = _ref.description,
|
|
25495
25521
|
subDescription = _ref.subDescription,
|
|
25496
25522
|
amount = _ref.amount,
|
|
25497
|
-
themeValues = _ref.themeValues
|
|
25523
|
+
themeValues = _ref.themeValues,
|
|
25524
|
+
_ref$displayQuantity = _ref.displayQuantity,
|
|
25525
|
+
displayQuantity = _ref$displayQuantity === void 0 ? null : _ref$displayQuantity;
|
|
25498
25526
|
return /*#__PURE__*/React__default.createElement(Cluster, {
|
|
25499
25527
|
nowrap: true,
|
|
25500
25528
|
justify: "space-between",
|
|
@@ -25507,7 +25535,10 @@ var LineItem = function LineItem(_ref) {
|
|
|
25507
25535
|
}, description), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
25508
25536
|
variant: themeValues.paragraphVariant,
|
|
25509
25537
|
weight: "400"
|
|
25510
|
-
}, subDescription)), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
25538
|
+
}, subDescription)), !!displayQuantity && /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
25539
|
+
variant: themeValues.paragraphVariant,
|
|
25540
|
+
weight: themeValues.weightTitle
|
|
25541
|
+
}, "x".concat(displayQuantity)), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
25511
25542
|
variant: themeValues.paragraphVariant,
|
|
25512
25543
|
weight: "600",
|
|
25513
25544
|
extraStyles: "margin: 0; text-align: end; min-width: fit-content; padding-left: 32px;"
|
|
@@ -45666,19 +45697,25 @@ var menu = posed.div({
|
|
|
45666
45697
|
var ImposterMenu = styled__default(menu).withConfig({
|
|
45667
45698
|
displayName: "NavMenuMobile__ImposterMenu",
|
|
45668
45699
|
componentId: "sc-1pf0qp7-0"
|
|
45669
|
-
})(["position:fixed;top:
|
|
45700
|
+
})(["position:fixed;top:", ";"], function (_ref) {
|
|
45701
|
+
var headerSize = _ref.headerSize;
|
|
45702
|
+
return headerSize;
|
|
45703
|
+
});
|
|
45670
45704
|
|
|
45671
|
-
var NavMenuMobile = function NavMenuMobile(
|
|
45672
|
-
var id =
|
|
45673
|
-
|
|
45674
|
-
menuContent =
|
|
45675
|
-
|
|
45676
|
-
visible =
|
|
45677
|
-
|
|
45705
|
+
var NavMenuMobile = function NavMenuMobile(_ref2) {
|
|
45706
|
+
var id = _ref2.id,
|
|
45707
|
+
_ref2$menuContent = _ref2.menuContent,
|
|
45708
|
+
menuContent = _ref2$menuContent === void 0 ? [] : _ref2$menuContent,
|
|
45709
|
+
_ref2$visible = _ref2.visible,
|
|
45710
|
+
visible = _ref2$visible === void 0 ? false : _ref2$visible,
|
|
45711
|
+
_ref2$headerSize = _ref2.headerSize,
|
|
45712
|
+
headerSize = _ref2$headerSize === void 0 ? "72px" : _ref2$headerSize,
|
|
45713
|
+
themeValues = _ref2.themeValues;
|
|
45678
45714
|
return /*#__PURE__*/React__default.createElement(ImposterMenu, {
|
|
45679
45715
|
id: id,
|
|
45680
45716
|
initialPose: "invisible",
|
|
45681
|
-
pose: visible ? "visible" : "invisible"
|
|
45717
|
+
pose: visible ? "visible" : "invisible",
|
|
45718
|
+
headerSize: headerSize
|
|
45682
45719
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
45683
45720
|
width: "100vw",
|
|
45684
45721
|
padding: "1rem 0.5rem",
|
|
@@ -46556,6 +46593,7 @@ var PrevNextPlaceholder = function PrevNextPlaceholder(_ref) {
|
|
|
46556
46593
|
|
|
46557
46594
|
var PrevNextButton = function PrevNextButton(_ref2) {
|
|
46558
46595
|
var action = _ref2.action,
|
|
46596
|
+
ariaLabel = _ref2.ariaLabel,
|
|
46559
46597
|
arrowColor = _ref2.arrowColor,
|
|
46560
46598
|
borderRadius = _ref2.borderRadius,
|
|
46561
46599
|
buttonHeight = _ref2.buttonHeight,
|
|
@@ -46565,12 +46603,14 @@ var PrevNextButton = function PrevNextButton(_ref2) {
|
|
|
46565
46603
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
46566
46604
|
padding: "0",
|
|
46567
46605
|
minHeight: buttonHeight,
|
|
46568
|
-
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46606
|
+
extraStyles: "max-height: ".concat(buttonHeight, ";"),
|
|
46607
|
+
as: "li"
|
|
46569
46608
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46570
46609
|
action: action,
|
|
46571
46610
|
contentOverride: true,
|
|
46572
46611
|
dataQa: type,
|
|
46573
|
-
|
|
46612
|
+
"aria-label": ariaLabel,
|
|
46613
|
+
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
46614
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
46575
46615
|
padding: "0",
|
|
46576
46616
|
extraStyles: type === "prev" && "transform: scaleX(-1)"
|
|
@@ -46594,26 +46634,30 @@ var getPagesPanel = function getPagesPanel(page, pagesCount) {
|
|
|
46594
46634
|
|
|
46595
46635
|
if (page > space + 1) {
|
|
46596
46636
|
pages.push({
|
|
46597
|
-
isDelimiter: true
|
|
46637
|
+
isDelimiter: true,
|
|
46638
|
+
id: "first-delimiter"
|
|
46598
46639
|
});
|
|
46599
46640
|
}
|
|
46600
46641
|
|
|
46601
46642
|
for (var j = Math.max(1, page - space) + 1; j < Math.min(lastPageNumber, page + space); j++) {
|
|
46602
46643
|
pages.push({
|
|
46603
46644
|
index: j,
|
|
46604
|
-
isButton: true
|
|
46645
|
+
isButton: true,
|
|
46646
|
+
id: "page-".concat(j)
|
|
46605
46647
|
});
|
|
46606
46648
|
}
|
|
46607
46649
|
|
|
46608
46650
|
if (page < lastPageNumber - space) {
|
|
46609
46651
|
pages.push({
|
|
46610
|
-
isDelimiter: true
|
|
46652
|
+
isDelimiter: true,
|
|
46653
|
+
id: "last-delimiter"
|
|
46611
46654
|
});
|
|
46612
46655
|
}
|
|
46613
46656
|
|
|
46614
46657
|
pages.push({
|
|
46615
46658
|
index: lastPageNumber,
|
|
46616
|
-
isButton: true
|
|
46659
|
+
isButton: true,
|
|
46660
|
+
id: "page-".concat(lastPageNumber)
|
|
46617
46661
|
});
|
|
46618
46662
|
var activePage = pages.find(function (p) {
|
|
46619
46663
|
return p.index === page;
|
|
@@ -46648,18 +46692,26 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46648
46692
|
pageNext = _ref3.pageNext,
|
|
46649
46693
|
pagePrevious = _ref3.pagePrevious,
|
|
46650
46694
|
setCurrentPage = _ref3.setCurrentPage,
|
|
46695
|
+
ariaLabel = _ref3.ariaLabel,
|
|
46651
46696
|
themeValues = _ref3.themeValues;
|
|
46652
46697
|
|
|
46653
46698
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
46654
46699
|
isMobile = _useContext.isMobile;
|
|
46655
46700
|
|
|
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
|
|
46701
|
+
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 ");
|
|
46702
|
+
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
46703
|
return /*#__PURE__*/React__default.createElement(Cluster, {
|
|
46659
46704
|
justify: "center",
|
|
46660
|
-
childGap: childGap
|
|
46705
|
+
childGap: childGap,
|
|
46706
|
+
overflow: true,
|
|
46707
|
+
as: "nav",
|
|
46708
|
+
role: "navigation",
|
|
46709
|
+
innerWrapperAs: "ul",
|
|
46710
|
+
"aria-label": ariaLabel,
|
|
46711
|
+
extraStyles: "> ul { padding: 0px; > li { list-style-type: none; } };"
|
|
46661
46712
|
}, currentPage > 1 ? /*#__PURE__*/React__default.createElement(PrevNextButton, {
|
|
46662
46713
|
action: pagePrevious,
|
|
46714
|
+
ariaLabel: "Previous Page",
|
|
46663
46715
|
arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
|
|
46664
46716
|
borderRadius: borderRadius,
|
|
46665
46717
|
buttonHeight: buttonHeight,
|
|
@@ -46681,33 +46733,37 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46681
46733
|
}, "".concat(currentPage, " of ").concat(pageCount)))) : getPagesPanel(currentPage, pageCount).map(function (item, index) {
|
|
46682
46734
|
return item.isButton ? /*#__PURE__*/React__default.createElement(Box, {
|
|
46683
46735
|
padding: "0",
|
|
46684
|
-
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46736
|
+
extraStyles: "max-height: ".concat(buttonHeight, ";"),
|
|
46737
|
+
as: "li",
|
|
46738
|
+
key: item.id
|
|
46685
46739
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46686
46740
|
variant: "ghost",
|
|
46687
|
-
key: item.index,
|
|
46688
46741
|
text: item.index,
|
|
46689
|
-
|
|
46690
|
-
|
|
46742
|
+
"aria-current": item.active ? "page" : undefined,
|
|
46743
|
+
"aria-label": "".concat(item.index == pageCount ? "Last Page, " : "", "page ").concat(item.index),
|
|
46691
46744
|
action: !item.active ? function () {
|
|
46692
46745
|
return setCurrentPage({
|
|
46693
46746
|
pageNumber: item.index
|
|
46694
46747
|
});
|
|
46695
46748
|
} : noop,
|
|
46696
46749
|
textExtraStyles: "font-size: ".concat(fontSize, "; font-weight: ").concat(fontWeight, ";"),
|
|
46697
|
-
extraStyles: extraStyles,
|
|
46750
|
+
extraStyles: "".concat(extraStyles).concat(item.active ? currentPageStyles : ""),
|
|
46698
46751
|
dataQa: index
|
|
46699
46752
|
}, item.index)) : /*#__PURE__*/React__default.createElement(Box, {
|
|
46700
|
-
padding: "0 10px"
|
|
46753
|
+
padding: "0 10px",
|
|
46754
|
+
as: "li",
|
|
46755
|
+
key: item.id
|
|
46701
46756
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
46702
46757
|
justify: "flex-end"
|
|
46703
46758
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
46704
|
-
key: index,
|
|
46705
46759
|
variant: "pXL",
|
|
46706
46760
|
weight: fontWeight,
|
|
46707
|
-
color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor
|
|
46708
|
-
|
|
46761
|
+
color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor,
|
|
46762
|
+
role: "presentation"
|
|
46763
|
+
}, "…")));
|
|
46709
46764
|
}), currentPage < pageCount ? /*#__PURE__*/React__default.createElement(PrevNextButton, {
|
|
46710
46765
|
action: pageNext,
|
|
46766
|
+
ariaLabel: "Next Page",
|
|
46711
46767
|
arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
|
|
46712
46768
|
borderRadius: borderRadius,
|
|
46713
46769
|
buttonHeight: buttonHeight,
|
|
@@ -47127,6 +47183,101 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
47127
47183
|
|
|
47128
47184
|
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$L, "default");
|
|
47129
47185
|
|
|
47186
|
+
var backgroundColor$c = {
|
|
47187
|
+
"default": "#ffffff",
|
|
47188
|
+
footer: "#ffffff"
|
|
47189
|
+
};
|
|
47190
|
+
var linkColor$6 = {
|
|
47191
|
+
"default": "#3176AA",
|
|
47192
|
+
footer: "#ffffff"
|
|
47193
|
+
};
|
|
47194
|
+
var border$3 = {
|
|
47195
|
+
"default": "#cdcdcd",
|
|
47196
|
+
footer: "#cdcdcd"
|
|
47197
|
+
};
|
|
47198
|
+
var fontSize$b = {
|
|
47199
|
+
"default": "1rem",
|
|
47200
|
+
footer: "0.875rem"
|
|
47201
|
+
};
|
|
47202
|
+
var lineHeight$5 = {
|
|
47203
|
+
"default": "1.5rem",
|
|
47204
|
+
footer: "1.25rem"
|
|
47205
|
+
};
|
|
47206
|
+
var fontWeight$8 = {
|
|
47207
|
+
"default": FONT_WEIGHT_REGULAR,
|
|
47208
|
+
footer: FONT_WEIGHT_SEMIBOLD
|
|
47209
|
+
};
|
|
47210
|
+
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";
|
|
47211
|
+
var modalLinkHoverFocus$2 = {
|
|
47212
|
+
"default": standardInteractionStyles,
|
|
47213
|
+
footer: standardInteractionStyles
|
|
47214
|
+
};
|
|
47215
|
+
var fallbackValues$M = {
|
|
47216
|
+
backgroundColor: backgroundColor$c,
|
|
47217
|
+
linkColor: linkColor$6,
|
|
47218
|
+
border: border$3,
|
|
47219
|
+
fontSize: fontSize$b,
|
|
47220
|
+
lineHeight: lineHeight$5,
|
|
47221
|
+
fontWeight: fontWeight$8,
|
|
47222
|
+
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
47223
|
+
};
|
|
47224
|
+
|
|
47225
|
+
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
47226
|
+
var link = _ref.link,
|
|
47227
|
+
_ref$title = _ref.title,
|
|
47228
|
+
title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
|
|
47229
|
+
isOpen = _ref.isOpen,
|
|
47230
|
+
toggleOpen = _ref.toggleOpen,
|
|
47231
|
+
toggleAccepted = _ref.toggleAccepted,
|
|
47232
|
+
acceptText = _ref.acceptText,
|
|
47233
|
+
terms = _ref.terms,
|
|
47234
|
+
variant = _ref.variant,
|
|
47235
|
+
_ref$linkVariant = _ref.linkVariant,
|
|
47236
|
+
linkVariant = _ref$linkVariant === void 0 ? "p" : _ref$linkVariant,
|
|
47237
|
+
themeValues = _ref.themeValues;
|
|
47238
|
+
return /*#__PURE__*/React__default.createElement(Modal$1, {
|
|
47239
|
+
modalOpen: isOpen,
|
|
47240
|
+
hideModal: function hideModal() {
|
|
47241
|
+
return toggleOpen(false);
|
|
47242
|
+
},
|
|
47243
|
+
showModal: function showModal() {
|
|
47244
|
+
return toggleOpen(true);
|
|
47245
|
+
},
|
|
47246
|
+
modalHeaderText: title,
|
|
47247
|
+
modalBodyText: /*#__PURE__*/React__default.createElement(Box, {
|
|
47248
|
+
background: themeValues.backgroundColor,
|
|
47249
|
+
border: "1px solid ".concat(themeValues.border),
|
|
47250
|
+
borderRadius: "3px",
|
|
47251
|
+
extraStyles: "overflow: scroll; max-height: 20rem;"
|
|
47252
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47253
|
+
variant: "p",
|
|
47254
|
+
extraStyles: "& a { text-decoration: underline; }"
|
|
47255
|
+
}, terms)),
|
|
47256
|
+
defaultWrapper: false,
|
|
47257
|
+
onlyCloseButton: !acceptText,
|
|
47258
|
+
continueButtonText: acceptText,
|
|
47259
|
+
continueAction: function continueAction() {
|
|
47260
|
+
toggleAccepted(true);
|
|
47261
|
+
toggleOpen(false);
|
|
47262
|
+
}
|
|
47263
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47264
|
+
variant: linkVariant,
|
|
47265
|
+
onClick: function onClick() {
|
|
47266
|
+
return toggleOpen(true);
|
|
47267
|
+
},
|
|
47268
|
+
onKeyPress: function onKeyPress(e) {
|
|
47269
|
+
return e.key === "Enter" && toggleOpen(true);
|
|
47270
|
+
},
|
|
47271
|
+
tabIndex: "0",
|
|
47272
|
+
color: themeValues.linkColor,
|
|
47273
|
+
weight: themeValues.fontWeight,
|
|
47274
|
+
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
47275
|
+
extraStyles: "display: inline-block; width: fit-content; cursor: pointer"
|
|
47276
|
+
}, link));
|
|
47277
|
+
};
|
|
47278
|
+
|
|
47279
|
+
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$M, "default");
|
|
47280
|
+
|
|
47130
47281
|
var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
47131
47282
|
var _routingNumberErrors, _accountNumberErrors;
|
|
47132
47283
|
|
|
@@ -47145,7 +47296,10 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47145
47296
|
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
47146
47297
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
47147
47298
|
saveToWallet = _ref.saveToWallet,
|
|
47148
|
-
walletCheckboxMarked = _ref.walletCheckboxMarked
|
|
47299
|
+
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
47300
|
+
termsContent = _ref.termsContent,
|
|
47301
|
+
_ref$termsTitle = _ref.termsTitle,
|
|
47302
|
+
termsTitle = _ref$termsTitle === void 0 ? "Terms & Conditions" : _ref$termsTitle;
|
|
47149
47303
|
|
|
47150
47304
|
if (clearOnDismount) {
|
|
47151
47305
|
React.useEffect(function () {
|
|
@@ -47165,6 +47319,14 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47165
47319
|
showAccount = _useState4[0],
|
|
47166
47320
|
toggleShowAccount = _useState4[1];
|
|
47167
47321
|
|
|
47322
|
+
var _useState5 = React.useState(false),
|
|
47323
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
47324
|
+
termsModalOpen = _useState6[0],
|
|
47325
|
+
setTermsModalOpen = _useState6[1];
|
|
47326
|
+
|
|
47327
|
+
var showTerms = !!termsContent;
|
|
47328
|
+
var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
|
|
47329
|
+
|
|
47168
47330
|
var nameErrors = _defineProperty({}, required.error, "Name is required");
|
|
47169
47331
|
|
|
47170
47332
|
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 +47435,27 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47273
47435
|
onChange: toggleCheckbox,
|
|
47274
47436
|
checked: defaultMethod.value,
|
|
47275
47437
|
hidden: hideDefaultPayment
|
|
47276
|
-
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(
|
|
47438
|
+
}), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47439
|
+
childGap: "4px"
|
|
47440
|
+
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
47277
47441
|
name: "bank checkbox",
|
|
47278
|
-
title: "Save checking account to wallet",
|
|
47442
|
+
title: "Save checking account to wallet.",
|
|
47279
47443
|
checked: walletCheckboxMarked,
|
|
47280
47444
|
onChange: saveToWallet
|
|
47281
|
-
})
|
|
47445
|
+
}), showTerms && /*#__PURE__*/React__default.createElement(Cover, {
|
|
47446
|
+
singleChild: true
|
|
47447
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47448
|
+
childGap: 0
|
|
47449
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47450
|
+
variant: showTermsLinkVariant
|
|
47451
|
+
}, "View\xA0"), /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
|
|
47452
|
+
link: termsTitle,
|
|
47453
|
+
linkVariant: showTermsLinkVariant,
|
|
47454
|
+
terms: termsContent,
|
|
47455
|
+
title: termsTitle,
|
|
47456
|
+
isOpen: termsModalOpen,
|
|
47457
|
+
toggleOpen: setTermsModalOpen
|
|
47458
|
+
}))))));
|
|
47282
47459
|
};
|
|
47283
47460
|
|
|
47284
47461
|
var formConfig$6 = {
|
|
@@ -47332,11 +47509,21 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
47332
47509
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
47333
47510
|
saveToWallet = _ref.saveToWallet,
|
|
47334
47511
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
47335
|
-
deniedCards = _ref.deniedCards
|
|
47512
|
+
deniedCards = _ref.deniedCards,
|
|
47513
|
+
termsContent = _ref.termsContent,
|
|
47514
|
+
_ref$termsTitle = _ref.termsTitle,
|
|
47515
|
+
termsTitle = _ref$termsTitle === void 0 ? "Terms & Conditions" : _ref$termsTitle;
|
|
47336
47516
|
|
|
47337
47517
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
47338
47518
|
isMobile = _useContext.isMobile;
|
|
47339
47519
|
|
|
47520
|
+
var _useState = React.useState(false),
|
|
47521
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
47522
|
+
termsModalOpen = _useState2[0],
|
|
47523
|
+
setTermsModalOpen = _useState2[1];
|
|
47524
|
+
|
|
47525
|
+
var showTerms = !!termsContent;
|
|
47526
|
+
var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
|
|
47340
47527
|
React.useEffect(function () {
|
|
47341
47528
|
if (deniedCards) {
|
|
47342
47529
|
deniedCards.map(function (card) {
|
|
@@ -47445,12 +47632,27 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
47445
47632
|
return e.key === "Enter" && handleSubmit(e);
|
|
47446
47633
|
},
|
|
47447
47634
|
autocomplete: "billing postal-code"
|
|
47448
|
-
})), showWalletCheckbox && /*#__PURE__*/React__default.createElement(
|
|
47635
|
+
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47636
|
+
childGap: "4px"
|
|
47637
|
+
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
47449
47638
|
name: "credit card checkbox",
|
|
47450
|
-
title: "Save credit card to wallet",
|
|
47639
|
+
title: "Save credit card to wallet.",
|
|
47451
47640
|
checked: walletCheckboxMarked,
|
|
47452
47641
|
onChange: saveToWallet
|
|
47453
|
-
})
|
|
47642
|
+
}), showTerms && /*#__PURE__*/React__default.createElement(Cover, {
|
|
47643
|
+
singleChild: true
|
|
47644
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47645
|
+
childGap: 0
|
|
47646
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47647
|
+
variant: showTermsLinkVariant
|
|
47648
|
+
}, "View\xA0"), /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
|
|
47649
|
+
link: termsTitle,
|
|
47650
|
+
linkVariant: showTermsLinkVariant,
|
|
47651
|
+
terms: termsContent,
|
|
47652
|
+
title: termsTitle,
|
|
47653
|
+
isOpen: termsModalOpen,
|
|
47654
|
+
toggleOpen: setTermsModalOpen
|
|
47655
|
+
}))))));
|
|
47454
47656
|
};
|
|
47455
47657
|
|
|
47456
47658
|
var PaymentFormCard$1 = withWindowSize(PaymentFormCard);
|
|
@@ -47731,7 +47933,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
|
|
|
47731
47933
|
var bodyBackgroundColor$1 = "#eeeeee";
|
|
47732
47934
|
var borderColor$5 = "".concat(GREY_CHATEAU);
|
|
47733
47935
|
var focusStyles = "outline: none;";
|
|
47734
|
-
var fallbackValues$
|
|
47936
|
+
var fallbackValues$N = {
|
|
47735
47937
|
headingBackgroundColor: headingBackgroundColor$1,
|
|
47736
47938
|
headingDisabledColor: headingDisabledColor,
|
|
47737
47939
|
bodyBackgroundColor: bodyBackgroundColor$1,
|
|
@@ -47919,7 +48121,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
47919
48121
|
})));
|
|
47920
48122
|
};
|
|
47921
48123
|
|
|
47922
|
-
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$
|
|
48124
|
+
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$N);
|
|
47923
48125
|
|
|
47924
48126
|
var RegistrationForm = function RegistrationForm(_ref) {
|
|
47925
48127
|
var _emailErrorMessages, _passwordErrorMessage;
|
|
@@ -48216,7 +48418,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
|
|
|
48216
48418
|
var activeTabBackground = "#FFFFFF";
|
|
48217
48419
|
var activeTabAccent = "#15749D";
|
|
48218
48420
|
var activeTabHover = "#B8D5E1";
|
|
48219
|
-
var fallbackValues$
|
|
48421
|
+
var fallbackValues$O = {
|
|
48220
48422
|
activeTabBackground: activeTabBackground,
|
|
48221
48423
|
activeTabAccent: activeTabAccent,
|
|
48222
48424
|
activeTabHover: activeTabHover
|
|
@@ -48295,12 +48497,12 @@ var Tabs = function Tabs(_ref) {
|
|
|
48295
48497
|
}))));
|
|
48296
48498
|
};
|
|
48297
48499
|
|
|
48298
|
-
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$
|
|
48500
|
+
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$O);
|
|
48299
48501
|
|
|
48300
48502
|
var activeTabBackground$1 = "#FFFFFF";
|
|
48301
48503
|
var activeTabAccent$1 = "#15749D";
|
|
48302
48504
|
var activeTabHover$1 = "#B8D5E1";
|
|
48303
|
-
var fallbackValues$
|
|
48505
|
+
var fallbackValues$P = {
|
|
48304
48506
|
activeTabBackground: activeTabBackground$1,
|
|
48305
48507
|
activeTabAccent: activeTabAccent$1,
|
|
48306
48508
|
activeTabHover: activeTabHover$1
|
|
@@ -48356,100 +48558,7 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
48356
48558
|
})));
|
|
48357
48559
|
};
|
|
48358
48560
|
|
|
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");
|
|
48561
|
+
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$P);
|
|
48453
48562
|
|
|
48454
48563
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48455
48564
|
var onCheck = _ref.onCheck,
|
|
@@ -48457,7 +48566,8 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
48457
48566
|
html = _ref.html,
|
|
48458
48567
|
terms = _ref.terms,
|
|
48459
48568
|
_ref$error = _ref.error,
|
|
48460
|
-
error = _ref$error === void 0 ? false : _ref$error
|
|
48569
|
+
error = _ref$error === void 0 ? false : _ref$error,
|
|
48570
|
+
linkVariant = _ref.linkVariant;
|
|
48461
48571
|
|
|
48462
48572
|
var _useState = React.useState(false),
|
|
48463
48573
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -48478,7 +48588,8 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
48478
48588
|
link: "Learn More",
|
|
48479
48589
|
terms: terms,
|
|
48480
48590
|
isOpen: showTerms,
|
|
48481
|
-
toggleOpen: toggleShowTerms
|
|
48591
|
+
toggleOpen: toggleShowTerms,
|
|
48592
|
+
linkVariant: linkVariant
|
|
48482
48593
|
})))));
|
|
48483
48594
|
};
|
|
48484
48595
|
|
|
@@ -48582,9 +48693,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
|
|
|
48582
48693
|
workflowActionName = _ref$workflowActionNa === void 0 ? "Search" : _ref$workflowActionNa,
|
|
48583
48694
|
slug = _ref.slug,
|
|
48584
48695
|
_ref$buttonVariant = _ref.buttonVariant,
|
|
48585
|
-
buttonVariant = _ref$buttonVariant === void 0 ? "primary" : _ref$buttonVariant
|
|
48586
|
-
selectWorkflowAction = _ref.selectWorkflowAction,
|
|
48587
|
-
navigate = _ref.navigate;
|
|
48696
|
+
buttonVariant = _ref$buttonVariant === void 0 ? "primary" : _ref$buttonVariant;
|
|
48588
48697
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
48589
48698
|
background: WHITE,
|
|
48590
48699
|
boxShadow: "0px 0px 5px 0px ".concat(GHOST_GREY),
|
|
@@ -48612,21 +48721,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
|
|
|
48612
48721
|
background: ATHENS_GREY,
|
|
48613
48722
|
borderColor: GRECIAN_GREY,
|
|
48614
48723
|
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, {
|
|
48724
|
+
}, /*#__PURE__*/React__default.createElement(ButtonWithLink, {
|
|
48630
48725
|
variant: buttonVariant,
|
|
48631
48726
|
primary: buttonVariant == "primary",
|
|
48632
48727
|
primaryBG: MATISSE_BLUE,
|
|
@@ -49026,6 +49121,7 @@ exports.PaymentMethodAddIcon = PaymentMethodAddIcon$1;
|
|
|
49026
49121
|
exports.PaymentMethodIcon = PaymentMethodIcon$1;
|
|
49027
49122
|
exports.PaymentSearchIcon = PaymentSearchIcon;
|
|
49028
49123
|
exports.PaymentsIconSmall = PaymentsIconSmall$1;
|
|
49124
|
+
exports.PencilIcon = PencilIcon$1;
|
|
49029
49125
|
exports.PendingIcon = PendingIcon;
|
|
49030
49126
|
exports.PeriscopeDashboardIframe = PeriscopeDashboardIframe;
|
|
49031
49127
|
exports.PeriscopeFailedIcon = PeriscopeFailedIcon;
|