@thecb/components 7.9.0-beta.1 → 7.9.0-beta.2
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 +133 -210
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.esm.js +133 -210
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/icons/{ExternalLinkIcon.js → ExternalLinkicon.js} +0 -0
- package/src/components/atoms/layouts/Cluster.d.ts +0 -1
- package/src/components/atoms/layouts/Cluster.js +0 -2
- package/src/components/atoms/line-item/LineItem.js +3 -3
- package/src/components/atoms/line-item/LineItem.stories.js +1 -1
- package/src/components/molecules/pagination/Pagination.js +20 -44
- package/src/components/molecules/pagination/index.d.ts +0 -1
- package/src/components/molecules/payment-form-ach/PaymentFormACH.js +8 -35
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +10 -37
- package/src/components/molecules/terms-and-conditions/TermsAndConditions.js +1 -3
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.js +2 -3
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.stories.js +0 -10
package/dist/index.d.ts
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -6665,7 +6665,7 @@ var ClusterInnerWrapper = styled.div.withConfig({
|
|
|
6665
6665
|
return childGap;
|
|
6666
6666
|
});
|
|
6667
6667
|
|
|
6668
|
-
var _excluded$6 = ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children"
|
|
6668
|
+
var _excluded$6 = ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children"];
|
|
6669
6669
|
/*
|
|
6670
6670
|
Cluster components suit any groups of elements that differ in
|
|
6671
6671
|
length and are liable to wrap. Buttons that appear together at the
|
|
@@ -6689,8 +6689,6 @@ var Cluster = function Cluster(_ref) {
|
|
|
6689
6689
|
flexGrow = _ref.flexGrow,
|
|
6690
6690
|
extraStyles = _ref.extraStyles,
|
|
6691
6691
|
children = _ref.children,
|
|
6692
|
-
_ref$innerWrapperAs = _ref.innerWrapperAs,
|
|
6693
|
-
innerWrapperAs = _ref$innerWrapperAs === void 0 ? "div" : _ref$innerWrapperAs,
|
|
6694
6692
|
rest = _objectWithoutProperties(_ref, _excluded$6);
|
|
6695
6693
|
|
|
6696
6694
|
return /*#__PURE__*/React.createElement(ClusterWrapper, _extends({
|
|
@@ -6706,8 +6704,7 @@ var Cluster = function Cluster(_ref) {
|
|
|
6706
6704
|
childGap: childGap,
|
|
6707
6705
|
minHeight: minHeight,
|
|
6708
6706
|
minWidth: minWidth,
|
|
6709
|
-
$nowrap: nowrap
|
|
6710
|
-
as: innerWrapperAs
|
|
6707
|
+
$nowrap: nowrap
|
|
6711
6708
|
}, safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null))));
|
|
6712
6709
|
};
|
|
6713
6710
|
|
|
@@ -25492,8 +25489,8 @@ var LineItem = function LineItem(_ref) {
|
|
|
25492
25489
|
subDescription = _ref.subDescription,
|
|
25493
25490
|
amount = _ref.amount,
|
|
25494
25491
|
themeValues = _ref.themeValues,
|
|
25495
|
-
_ref$
|
|
25496
|
-
|
|
25492
|
+
_ref$displayQuantity = _ref.displayQuantity,
|
|
25493
|
+
displayQuantity = _ref$displayQuantity === void 0 ? null : _ref$displayQuantity;
|
|
25497
25494
|
return /*#__PURE__*/React.createElement(Cluster, {
|
|
25498
25495
|
nowrap: true,
|
|
25499
25496
|
justify: "space-between",
|
|
@@ -25506,10 +25503,10 @@ var LineItem = function LineItem(_ref) {
|
|
|
25506
25503
|
}, description), /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
25507
25504
|
variant: themeValues.paragraphVariant,
|
|
25508
25505
|
weight: "400"
|
|
25509
|
-
}, subDescription)), !!
|
|
25506
|
+
}, subDescription)), !!displayQuantity && /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
25510
25507
|
variant: themeValues.paragraphVariant,
|
|
25511
25508
|
weight: themeValues.weightTitle
|
|
25512
|
-
}, "x".concat(
|
|
25509
|
+
}, "x".concat(displayQuantity)), /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
25513
25510
|
variant: themeValues.paragraphVariant,
|
|
25514
25511
|
weight: "600",
|
|
25515
25512
|
extraStyles: "margin: 0; text-align: end; min-width: fit-content; padding-left: 32px;"
|
|
@@ -46558,7 +46555,6 @@ var PrevNextPlaceholder = function PrevNextPlaceholder(_ref) {
|
|
|
46558
46555
|
|
|
46559
46556
|
var PrevNextButton = function PrevNextButton(_ref2) {
|
|
46560
46557
|
var action = _ref2.action,
|
|
46561
|
-
ariaLabel = _ref2.ariaLabel,
|
|
46562
46558
|
arrowColor = _ref2.arrowColor,
|
|
46563
46559
|
borderRadius = _ref2.borderRadius,
|
|
46564
46560
|
buttonHeight = _ref2.buttonHeight,
|
|
@@ -46568,14 +46564,12 @@ var PrevNextButton = function PrevNextButton(_ref2) {
|
|
|
46568
46564
|
return /*#__PURE__*/React.createElement(Box, {
|
|
46569
46565
|
padding: "0",
|
|
46570
46566
|
minHeight: buttonHeight,
|
|
46571
|
-
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46572
|
-
as: "li"
|
|
46567
|
+
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46573
46568
|
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
46574
46569
|
action: action,
|
|
46575
46570
|
contentOverride: true,
|
|
46576
46571
|
dataQa: type,
|
|
46577
|
-
"
|
|
46578
|
-
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 ")
|
|
46572
|
+
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 &:focus {\n outline: none\n }\n ")
|
|
46579
46573
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
46580
46574
|
padding: "0",
|
|
46581
46575
|
extraStyles: type === "prev" && "transform: scaleX(-1)"
|
|
@@ -46599,30 +46593,26 @@ var getPagesPanel = function getPagesPanel(page, pagesCount) {
|
|
|
46599
46593
|
|
|
46600
46594
|
if (page > space + 1) {
|
|
46601
46595
|
pages.push({
|
|
46602
|
-
isDelimiter: true
|
|
46603
|
-
id: "first-delimiter"
|
|
46596
|
+
isDelimiter: true
|
|
46604
46597
|
});
|
|
46605
46598
|
}
|
|
46606
46599
|
|
|
46607
46600
|
for (var j = Math.max(1, page - space) + 1; j < Math.min(lastPageNumber, page + space); j++) {
|
|
46608
46601
|
pages.push({
|
|
46609
46602
|
index: j,
|
|
46610
|
-
isButton: true
|
|
46611
|
-
id: "page-".concat(j)
|
|
46603
|
+
isButton: true
|
|
46612
46604
|
});
|
|
46613
46605
|
}
|
|
46614
46606
|
|
|
46615
46607
|
if (page < lastPageNumber - space) {
|
|
46616
46608
|
pages.push({
|
|
46617
|
-
isDelimiter: true
|
|
46618
|
-
id: "last-delimiter"
|
|
46609
|
+
isDelimiter: true
|
|
46619
46610
|
});
|
|
46620
46611
|
}
|
|
46621
46612
|
|
|
46622
46613
|
pages.push({
|
|
46623
46614
|
index: lastPageNumber,
|
|
46624
|
-
isButton: true
|
|
46625
|
-
id: "page-".concat(lastPageNumber)
|
|
46615
|
+
isButton: true
|
|
46626
46616
|
});
|
|
46627
46617
|
var activePage = pages.find(function (p) {
|
|
46628
46618
|
return p.index === page;
|
|
@@ -46657,26 +46647,18 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46657
46647
|
pageNext = _ref3.pageNext,
|
|
46658
46648
|
pagePrevious = _ref3.pagePrevious,
|
|
46659
46649
|
setCurrentPage = _ref3.setCurrentPage,
|
|
46660
|
-
ariaLabel = _ref3.ariaLabel,
|
|
46661
46650
|
themeValues = _ref3.themeValues;
|
|
46662
46651
|
|
|
46663
46652
|
var _useContext = useContext(ThemeContext),
|
|
46664
46653
|
isMobile = _useContext.isMobile;
|
|
46665
46654
|
|
|
46666
|
-
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 ");
|
|
46667
|
-
var
|
|
46655
|
+
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 &:focus {\n outline: none\n }\n ");
|
|
46656
|
+
var extraDisabledStyles = "\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 }\n ");
|
|
46668
46657
|
return /*#__PURE__*/React.createElement(Cluster, {
|
|
46669
46658
|
justify: "center",
|
|
46670
|
-
childGap: childGap
|
|
46671
|
-
overflow: true,
|
|
46672
|
-
as: "nav",
|
|
46673
|
-
role: "navigation",
|
|
46674
|
-
innerWrapperAs: "ul",
|
|
46675
|
-
"aria-label": ariaLabel,
|
|
46676
|
-
extraStyles: "> ul { padding: 0px; > li { list-style-type: none; } };"
|
|
46659
|
+
childGap: childGap
|
|
46677
46660
|
}, currentPage > 1 ? /*#__PURE__*/React.createElement(PrevNextButton, {
|
|
46678
46661
|
action: pagePrevious,
|
|
46679
|
-
ariaLabel: "Previous Page",
|
|
46680
46662
|
arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
|
|
46681
46663
|
borderRadius: borderRadius,
|
|
46682
46664
|
buttonHeight: buttonHeight,
|
|
@@ -46698,37 +46680,33 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46698
46680
|
}, "".concat(currentPage, " of ").concat(pageCount)))) : getPagesPanel(currentPage, pageCount).map(function (item, index) {
|
|
46699
46681
|
return item.isButton ? /*#__PURE__*/React.createElement(Box, {
|
|
46700
46682
|
padding: "0",
|
|
46701
|
-
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46702
|
-
as: "li",
|
|
46703
|
-
key: item.id
|
|
46683
|
+
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46704
46684
|
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
46705
46685
|
variant: "ghost",
|
|
46686
|
+
key: item.index,
|
|
46706
46687
|
text: item.index,
|
|
46707
|
-
|
|
46708
|
-
|
|
46688
|
+
disabled: item.active,
|
|
46689
|
+
extraDisabledStyles: extraDisabledStyles,
|
|
46709
46690
|
action: !item.active ? function () {
|
|
46710
46691
|
return setCurrentPage({
|
|
46711
46692
|
pageNumber: item.index
|
|
46712
46693
|
});
|
|
46713
46694
|
} : noop,
|
|
46714
46695
|
textExtraStyles: "font-size: ".concat(fontSize, "; font-weight: ").concat(fontWeight, ";"),
|
|
46715
|
-
extraStyles:
|
|
46696
|
+
extraStyles: extraStyles,
|
|
46716
46697
|
dataQa: index
|
|
46717
46698
|
}, item.index)) : /*#__PURE__*/React.createElement(Box, {
|
|
46718
|
-
padding: "0 10px"
|
|
46719
|
-
as: "li",
|
|
46720
|
-
key: item.id
|
|
46699
|
+
padding: "0 10px"
|
|
46721
46700
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
46722
46701
|
justify: "flex-end"
|
|
46723
46702
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
46703
|
+
key: index,
|
|
46724
46704
|
variant: "pXL",
|
|
46725
46705
|
weight: fontWeight,
|
|
46726
|
-
color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor
|
|
46727
|
-
|
|
46728
|
-
}, "…")));
|
|
46706
|
+
color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor
|
|
46707
|
+
}, "...")));
|
|
46729
46708
|
}), currentPage < pageCount ? /*#__PURE__*/React.createElement(PrevNextButton, {
|
|
46730
46709
|
action: pageNext,
|
|
46731
|
-
ariaLabel: "Next Page",
|
|
46732
46710
|
arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
|
|
46733
46711
|
borderRadius: borderRadius,
|
|
46734
46712
|
buttonHeight: buttonHeight,
|
|
@@ -47148,101 +47126,6 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
47148
47126
|
|
|
47149
47127
|
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$L, "default");
|
|
47150
47128
|
|
|
47151
|
-
var backgroundColor$c = {
|
|
47152
|
-
"default": "#ffffff",
|
|
47153
|
-
footer: "#ffffff"
|
|
47154
|
-
};
|
|
47155
|
-
var linkColor$6 = {
|
|
47156
|
-
"default": "#3176AA",
|
|
47157
|
-
footer: "#ffffff"
|
|
47158
|
-
};
|
|
47159
|
-
var border$3 = {
|
|
47160
|
-
"default": "#cdcdcd",
|
|
47161
|
-
footer: "#cdcdcd"
|
|
47162
|
-
};
|
|
47163
|
-
var fontSize$b = {
|
|
47164
|
-
"default": "1rem",
|
|
47165
|
-
footer: "0.875rem"
|
|
47166
|
-
};
|
|
47167
|
-
var lineHeight$5 = {
|
|
47168
|
-
"default": "1.5rem",
|
|
47169
|
-
footer: "1.25rem"
|
|
47170
|
-
};
|
|
47171
|
-
var fontWeight$8 = {
|
|
47172
|
-
"default": FONT_WEIGHT_REGULAR,
|
|
47173
|
-
footer: FONT_WEIGHT_SEMIBOLD
|
|
47174
|
-
};
|
|
47175
|
-
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";
|
|
47176
|
-
var modalLinkHoverFocus$2 = {
|
|
47177
|
-
"default": standardInteractionStyles,
|
|
47178
|
-
footer: standardInteractionStyles
|
|
47179
|
-
};
|
|
47180
|
-
var fallbackValues$M = {
|
|
47181
|
-
backgroundColor: backgroundColor$c,
|
|
47182
|
-
linkColor: linkColor$6,
|
|
47183
|
-
border: border$3,
|
|
47184
|
-
fontSize: fontSize$b,
|
|
47185
|
-
lineHeight: lineHeight$5,
|
|
47186
|
-
fontWeight: fontWeight$8,
|
|
47187
|
-
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
47188
|
-
};
|
|
47189
|
-
|
|
47190
|
-
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
47191
|
-
var link = _ref.link,
|
|
47192
|
-
_ref$title = _ref.title,
|
|
47193
|
-
title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
|
|
47194
|
-
isOpen = _ref.isOpen,
|
|
47195
|
-
toggleOpen = _ref.toggleOpen,
|
|
47196
|
-
toggleAccepted = _ref.toggleAccepted,
|
|
47197
|
-
acceptText = _ref.acceptText,
|
|
47198
|
-
terms = _ref.terms,
|
|
47199
|
-
variant = _ref.variant,
|
|
47200
|
-
_ref$linkVariant = _ref.linkVariant,
|
|
47201
|
-
linkVariant = _ref$linkVariant === void 0 ? "p" : _ref$linkVariant,
|
|
47202
|
-
themeValues = _ref.themeValues;
|
|
47203
|
-
return /*#__PURE__*/React.createElement(Modal$1, {
|
|
47204
|
-
modalOpen: isOpen,
|
|
47205
|
-
hideModal: function hideModal() {
|
|
47206
|
-
return toggleOpen(false);
|
|
47207
|
-
},
|
|
47208
|
-
showModal: function showModal() {
|
|
47209
|
-
return toggleOpen(true);
|
|
47210
|
-
},
|
|
47211
|
-
modalHeaderText: title,
|
|
47212
|
-
modalBodyText: /*#__PURE__*/React.createElement(Box, {
|
|
47213
|
-
background: themeValues.backgroundColor,
|
|
47214
|
-
border: "1px solid ".concat(themeValues.border),
|
|
47215
|
-
borderRadius: "3px",
|
|
47216
|
-
extraStyles: "overflow: scroll; max-height: 20rem;"
|
|
47217
|
-
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
47218
|
-
variant: "p",
|
|
47219
|
-
extraStyles: "& a { text-decoration: underline; }"
|
|
47220
|
-
}, terms)),
|
|
47221
|
-
defaultWrapper: false,
|
|
47222
|
-
onlyCloseButton: !acceptText,
|
|
47223
|
-
continueButtonText: acceptText,
|
|
47224
|
-
continueAction: function continueAction() {
|
|
47225
|
-
toggleAccepted(true);
|
|
47226
|
-
toggleOpen(false);
|
|
47227
|
-
}
|
|
47228
|
-
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
47229
|
-
variant: linkVariant,
|
|
47230
|
-
onClick: function onClick() {
|
|
47231
|
-
return toggleOpen(true);
|
|
47232
|
-
},
|
|
47233
|
-
onKeyPress: function onKeyPress(e) {
|
|
47234
|
-
return e.key === "Enter" && toggleOpen(true);
|
|
47235
|
-
},
|
|
47236
|
-
tabIndex: "0",
|
|
47237
|
-
color: themeValues.linkColor,
|
|
47238
|
-
weight: themeValues.fontWeight,
|
|
47239
|
-
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
47240
|
-
extraStyles: "display: inline-block; width: fit-content; cursor: pointer"
|
|
47241
|
-
}, link));
|
|
47242
|
-
};
|
|
47243
|
-
|
|
47244
|
-
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$M, "default");
|
|
47245
|
-
|
|
47246
47129
|
var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
47247
47130
|
var _routingNumberErrors, _accountNumberErrors;
|
|
47248
47131
|
|
|
@@ -47261,10 +47144,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47261
47144
|
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
47262
47145
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
47263
47146
|
saveToWallet = _ref.saveToWallet,
|
|
47264
|
-
walletCheckboxMarked = _ref.walletCheckboxMarked
|
|
47265
|
-
termsContent = _ref.termsContent,
|
|
47266
|
-
_ref$termsTitle = _ref.termsTitle,
|
|
47267
|
-
termsTitle = _ref$termsTitle === void 0 ? "Terms & Conditions" : _ref$termsTitle;
|
|
47147
|
+
walletCheckboxMarked = _ref.walletCheckboxMarked;
|
|
47268
47148
|
|
|
47269
47149
|
if (clearOnDismount) {
|
|
47270
47150
|
useEffect$1(function () {
|
|
@@ -47284,14 +47164,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47284
47164
|
showAccount = _useState4[0],
|
|
47285
47165
|
toggleShowAccount = _useState4[1];
|
|
47286
47166
|
|
|
47287
|
-
var _useState5 = useState(false),
|
|
47288
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
47289
|
-
termsModalOpen = _useState6[0],
|
|
47290
|
-
setTermsModalOpen = _useState6[1];
|
|
47291
|
-
|
|
47292
|
-
var showTerms = !!termsContent;
|
|
47293
|
-
var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
|
|
47294
|
-
|
|
47295
47167
|
var nameErrors = _defineProperty({}, required.error, "Name is required");
|
|
47296
47168
|
|
|
47297
47169
|
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);
|
|
@@ -47400,27 +47272,12 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47400
47272
|
onChange: toggleCheckbox,
|
|
47401
47273
|
checked: defaultMethod.value,
|
|
47402
47274
|
hidden: hideDefaultPayment
|
|
47403
|
-
}),
|
|
47404
|
-
childGap: "4px"
|
|
47405
|
-
}, showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
47275
|
+
}), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
47406
47276
|
name: "bank checkbox",
|
|
47407
|
-
title: "Save checking account to wallet
|
|
47277
|
+
title: "Save checking account to wallet",
|
|
47408
47278
|
checked: walletCheckboxMarked,
|
|
47409
47279
|
onChange: saveToWallet
|
|
47410
|
-
})
|
|
47411
|
-
singleChild: true
|
|
47412
|
-
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
47413
|
-
childGap: 0
|
|
47414
|
-
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
47415
|
-
variant: showTermsLinkVariant
|
|
47416
|
-
}, "View\xA0"), /*#__PURE__*/React.createElement(TermsAndConditionsModal$1, {
|
|
47417
|
-
link: termsTitle,
|
|
47418
|
-
linkVariant: showTermsLinkVariant,
|
|
47419
|
-
terms: termsContent,
|
|
47420
|
-
title: termsTitle,
|
|
47421
|
-
isOpen: termsModalOpen,
|
|
47422
|
-
toggleOpen: setTermsModalOpen
|
|
47423
|
-
}))))));
|
|
47280
|
+
})));
|
|
47424
47281
|
};
|
|
47425
47282
|
|
|
47426
47283
|
var formConfig$6 = {
|
|
@@ -47474,21 +47331,11 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
47474
47331
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
47475
47332
|
saveToWallet = _ref.saveToWallet,
|
|
47476
47333
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
47477
|
-
deniedCards = _ref.deniedCards
|
|
47478
|
-
termsContent = _ref.termsContent,
|
|
47479
|
-
_ref$termsTitle = _ref.termsTitle,
|
|
47480
|
-
termsTitle = _ref$termsTitle === void 0 ? "Terms & Conditions" : _ref$termsTitle;
|
|
47334
|
+
deniedCards = _ref.deniedCards;
|
|
47481
47335
|
|
|
47482
47336
|
var _useContext = useContext(ThemeContext),
|
|
47483
47337
|
isMobile = _useContext.isMobile;
|
|
47484
47338
|
|
|
47485
|
-
var _useState = useState(false),
|
|
47486
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
47487
|
-
termsModalOpen = _useState2[0],
|
|
47488
|
-
setTermsModalOpen = _useState2[1];
|
|
47489
|
-
|
|
47490
|
-
var showTerms = !!termsContent;
|
|
47491
|
-
var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
|
|
47492
47339
|
useEffect$1(function () {
|
|
47493
47340
|
if (deniedCards) {
|
|
47494
47341
|
deniedCards.map(function (card) {
|
|
@@ -47597,27 +47444,12 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
47597
47444
|
return e.key === "Enter" && handleSubmit(e);
|
|
47598
47445
|
},
|
|
47599
47446
|
autocomplete: "billing postal-code"
|
|
47600
|
-
})),
|
|
47601
|
-
childGap: "4px"
|
|
47602
|
-
}, showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
47447
|
+
})), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
47603
47448
|
name: "credit card checkbox",
|
|
47604
|
-
title: "Save credit card to wallet
|
|
47449
|
+
title: "Save credit card to wallet",
|
|
47605
47450
|
checked: walletCheckboxMarked,
|
|
47606
47451
|
onChange: saveToWallet
|
|
47607
|
-
})
|
|
47608
|
-
singleChild: true
|
|
47609
|
-
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
47610
|
-
childGap: 0
|
|
47611
|
-
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
47612
|
-
variant: showTermsLinkVariant
|
|
47613
|
-
}, "View\xA0"), /*#__PURE__*/React.createElement(TermsAndConditionsModal$1, {
|
|
47614
|
-
link: termsTitle,
|
|
47615
|
-
linkVariant: showTermsLinkVariant,
|
|
47616
|
-
terms: termsContent,
|
|
47617
|
-
title: termsTitle,
|
|
47618
|
-
isOpen: termsModalOpen,
|
|
47619
|
-
toggleOpen: setTermsModalOpen
|
|
47620
|
-
}))))));
|
|
47452
|
+
})));
|
|
47621
47453
|
};
|
|
47622
47454
|
|
|
47623
47455
|
var PaymentFormCard$1 = withWindowSize(PaymentFormCard);
|
|
@@ -47898,7 +47730,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
|
|
|
47898
47730
|
var bodyBackgroundColor$1 = "#eeeeee";
|
|
47899
47731
|
var borderColor$5 = "".concat(GREY_CHATEAU);
|
|
47900
47732
|
var focusStyles = "outline: none;";
|
|
47901
|
-
var fallbackValues$
|
|
47733
|
+
var fallbackValues$M = {
|
|
47902
47734
|
headingBackgroundColor: headingBackgroundColor$1,
|
|
47903
47735
|
headingDisabledColor: headingDisabledColor,
|
|
47904
47736
|
bodyBackgroundColor: bodyBackgroundColor$1,
|
|
@@ -48086,7 +47918,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48086
47918
|
})));
|
|
48087
47919
|
};
|
|
48088
47920
|
|
|
48089
|
-
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$
|
|
47921
|
+
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$M);
|
|
48090
47922
|
|
|
48091
47923
|
var RegistrationForm = function RegistrationForm(_ref) {
|
|
48092
47924
|
var _emailErrorMessages, _passwordErrorMessage;
|
|
@@ -48383,7 +48215,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
|
|
|
48383
48215
|
var activeTabBackground = "#FFFFFF";
|
|
48384
48216
|
var activeTabAccent = "#15749D";
|
|
48385
48217
|
var activeTabHover = "#B8D5E1";
|
|
48386
|
-
var fallbackValues$
|
|
48218
|
+
var fallbackValues$N = {
|
|
48387
48219
|
activeTabBackground: activeTabBackground,
|
|
48388
48220
|
activeTabAccent: activeTabAccent,
|
|
48389
48221
|
activeTabHover: activeTabHover
|
|
@@ -48462,12 +48294,12 @@ var Tabs = function Tabs(_ref) {
|
|
|
48462
48294
|
}))));
|
|
48463
48295
|
};
|
|
48464
48296
|
|
|
48465
|
-
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$
|
|
48297
|
+
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$N);
|
|
48466
48298
|
|
|
48467
48299
|
var activeTabBackground$1 = "#FFFFFF";
|
|
48468
48300
|
var activeTabAccent$1 = "#15749D";
|
|
48469
48301
|
var activeTabHover$1 = "#B8D5E1";
|
|
48470
|
-
var fallbackValues$
|
|
48302
|
+
var fallbackValues$O = {
|
|
48471
48303
|
activeTabBackground: activeTabBackground$1,
|
|
48472
48304
|
activeTabAccent: activeTabAccent$1,
|
|
48473
48305
|
activeTabHover: activeTabHover$1
|
|
@@ -48523,7 +48355,100 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
48523
48355
|
})));
|
|
48524
48356
|
};
|
|
48525
48357
|
|
|
48526
|
-
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$
|
|
48358
|
+
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$O);
|
|
48359
|
+
|
|
48360
|
+
var backgroundColor$c = {
|
|
48361
|
+
"default": "#ffffff",
|
|
48362
|
+
footer: "#ffffff"
|
|
48363
|
+
};
|
|
48364
|
+
var linkColor$6 = {
|
|
48365
|
+
"default": "#3176AA",
|
|
48366
|
+
footer: "#ffffff"
|
|
48367
|
+
};
|
|
48368
|
+
var border$3 = {
|
|
48369
|
+
"default": "#cdcdcd",
|
|
48370
|
+
footer: "#cdcdcd"
|
|
48371
|
+
};
|
|
48372
|
+
var fontSize$b = {
|
|
48373
|
+
"default": "1rem",
|
|
48374
|
+
footer: "0.875rem"
|
|
48375
|
+
};
|
|
48376
|
+
var lineHeight$5 = {
|
|
48377
|
+
"default": "1.5rem",
|
|
48378
|
+
footer: "1.25rem"
|
|
48379
|
+
};
|
|
48380
|
+
var fontWeight$8 = {
|
|
48381
|
+
"default": FONT_WEIGHT_REGULAR,
|
|
48382
|
+
footer: FONT_WEIGHT_SEMIBOLD
|
|
48383
|
+
};
|
|
48384
|
+
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";
|
|
48385
|
+
var modalLinkHoverFocus$2 = {
|
|
48386
|
+
"default": standardInteractionStyles,
|
|
48387
|
+
footer: standardInteractionStyles
|
|
48388
|
+
};
|
|
48389
|
+
var fallbackValues$P = {
|
|
48390
|
+
backgroundColor: backgroundColor$c,
|
|
48391
|
+
linkColor: linkColor$6,
|
|
48392
|
+
border: border$3,
|
|
48393
|
+
fontSize: fontSize$b,
|
|
48394
|
+
lineHeight: lineHeight$5,
|
|
48395
|
+
fontWeight: fontWeight$8,
|
|
48396
|
+
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
48397
|
+
};
|
|
48398
|
+
|
|
48399
|
+
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
48400
|
+
var link = _ref.link,
|
|
48401
|
+
_ref$title = _ref.title,
|
|
48402
|
+
title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
|
|
48403
|
+
isOpen = _ref.isOpen,
|
|
48404
|
+
toggleOpen = _ref.toggleOpen,
|
|
48405
|
+
toggleAccepted = _ref.toggleAccepted,
|
|
48406
|
+
acceptText = _ref.acceptText,
|
|
48407
|
+
terms = _ref.terms,
|
|
48408
|
+
variant = _ref.variant,
|
|
48409
|
+
themeValues = _ref.themeValues;
|
|
48410
|
+
return /*#__PURE__*/React.createElement(Modal$1, {
|
|
48411
|
+
modalOpen: isOpen,
|
|
48412
|
+
hideModal: function hideModal() {
|
|
48413
|
+
return toggleOpen(false);
|
|
48414
|
+
},
|
|
48415
|
+
showModal: function showModal() {
|
|
48416
|
+
return toggleOpen(true);
|
|
48417
|
+
},
|
|
48418
|
+
modalHeaderText: title,
|
|
48419
|
+
modalBodyText: /*#__PURE__*/React.createElement(Box, {
|
|
48420
|
+
background: themeValues.backgroundColor,
|
|
48421
|
+
border: "1px solid ".concat(themeValues.border),
|
|
48422
|
+
borderRadius: "3px",
|
|
48423
|
+
extraStyles: "overflow: scroll; max-height: 20rem;"
|
|
48424
|
+
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
48425
|
+
variant: "p",
|
|
48426
|
+
extraStyles: "& a { text-decoration: underline; }"
|
|
48427
|
+
}, terms)),
|
|
48428
|
+
defaultWrapper: false,
|
|
48429
|
+
onlyCloseButton: !acceptText,
|
|
48430
|
+
continueButtonText: acceptText,
|
|
48431
|
+
continueAction: function continueAction() {
|
|
48432
|
+
toggleAccepted(true);
|
|
48433
|
+
toggleOpen(false);
|
|
48434
|
+
}
|
|
48435
|
+
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
48436
|
+
variant: variant === "default" ? "pS" : "pXS",
|
|
48437
|
+
onClick: function onClick() {
|
|
48438
|
+
return toggleOpen(true);
|
|
48439
|
+
},
|
|
48440
|
+
onKeyPress: function onKeyPress(e) {
|
|
48441
|
+
return e.key === "Enter" && toggleOpen(true);
|
|
48442
|
+
},
|
|
48443
|
+
tabIndex: "0",
|
|
48444
|
+
color: themeValues.linkColor,
|
|
48445
|
+
weight: themeValues.fontWeight,
|
|
48446
|
+
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
48447
|
+
extraStyles: "display: inline-block; width: fit-content;"
|
|
48448
|
+
}, link));
|
|
48449
|
+
};
|
|
48450
|
+
|
|
48451
|
+
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$P, "default");
|
|
48527
48452
|
|
|
48528
48453
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48529
48454
|
var onCheck = _ref.onCheck,
|
|
@@ -48531,8 +48456,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
48531
48456
|
html = _ref.html,
|
|
48532
48457
|
terms = _ref.terms,
|
|
48533
48458
|
_ref$error = _ref.error,
|
|
48534
|
-
error = _ref$error === void 0 ? false : _ref$error
|
|
48535
|
-
linkVariant = _ref.linkVariant;
|
|
48459
|
+
error = _ref$error === void 0 ? false : _ref$error;
|
|
48536
48460
|
|
|
48537
48461
|
var _useState = useState(false),
|
|
48538
48462
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -48553,8 +48477,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
48553
48477
|
link: "Learn More",
|
|
48554
48478
|
terms: terms,
|
|
48555
48479
|
isOpen: showTerms,
|
|
48556
|
-
toggleOpen: toggleShowTerms
|
|
48557
|
-
linkVariant: linkVariant
|
|
48480
|
+
toggleOpen: toggleShowTerms
|
|
48558
48481
|
})))));
|
|
48559
48482
|
};
|
|
48560
48483
|
|