@thecb/components 7.8.4 → 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 +136 -208
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.esm.js +136 -208
- 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 +15 -1
- package/src/components/atoms/line-item/LineItem.stories.js +9 -0
- 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.cjs.js
CHANGED
|
@@ -6673,7 +6673,7 @@ var ClusterInnerWrapper = styled__default.div.withConfig({
|
|
|
6673
6673
|
return childGap;
|
|
6674
6674
|
});
|
|
6675
6675
|
|
|
6676
|
-
var _excluded$6 = ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children"
|
|
6676
|
+
var _excluded$6 = ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children"];
|
|
6677
6677
|
/*
|
|
6678
6678
|
Cluster components suit any groups of elements that differ in
|
|
6679
6679
|
length and are liable to wrap. Buttons that appear together at the
|
|
@@ -6697,8 +6697,6 @@ var Cluster = function Cluster(_ref) {
|
|
|
6697
6697
|
flexGrow = _ref.flexGrow,
|
|
6698
6698
|
extraStyles = _ref.extraStyles,
|
|
6699
6699
|
children = _ref.children,
|
|
6700
|
-
_ref$innerWrapperAs = _ref.innerWrapperAs,
|
|
6701
|
-
innerWrapperAs = _ref$innerWrapperAs === void 0 ? "div" : _ref$innerWrapperAs,
|
|
6702
6700
|
rest = _objectWithoutProperties(_ref, _excluded$6);
|
|
6703
6701
|
|
|
6704
6702
|
return /*#__PURE__*/React__default.createElement(ClusterWrapper, _extends({
|
|
@@ -6714,8 +6712,7 @@ var Cluster = function Cluster(_ref) {
|
|
|
6714
6712
|
childGap: childGap,
|
|
6715
6713
|
minHeight: minHeight,
|
|
6716
6714
|
minWidth: minWidth,
|
|
6717
|
-
$nowrap: nowrap
|
|
6718
|
-
as: innerWrapperAs
|
|
6715
|
+
$nowrap: nowrap
|
|
6719
6716
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null))));
|
|
6720
6717
|
};
|
|
6721
6718
|
|
|
@@ -25499,7 +25496,9 @@ var LineItem = function LineItem(_ref) {
|
|
|
25499
25496
|
var description = _ref.description,
|
|
25500
25497
|
subDescription = _ref.subDescription,
|
|
25501
25498
|
amount = _ref.amount,
|
|
25502
|
-
themeValues = _ref.themeValues
|
|
25499
|
+
themeValues = _ref.themeValues,
|
|
25500
|
+
_ref$displayQuantity = _ref.displayQuantity,
|
|
25501
|
+
displayQuantity = _ref$displayQuantity === void 0 ? null : _ref$displayQuantity;
|
|
25503
25502
|
return /*#__PURE__*/React__default.createElement(Cluster, {
|
|
25504
25503
|
nowrap: true,
|
|
25505
25504
|
justify: "space-between",
|
|
@@ -25512,7 +25511,10 @@ var LineItem = function LineItem(_ref) {
|
|
|
25512
25511
|
}, description), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
25513
25512
|
variant: themeValues.paragraphVariant,
|
|
25514
25513
|
weight: "400"
|
|
25515
|
-
}, subDescription)), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
25514
|
+
}, subDescription)), !!displayQuantity && /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
25515
|
+
variant: themeValues.paragraphVariant,
|
|
25516
|
+
weight: themeValues.weightTitle
|
|
25517
|
+
}, "x".concat(displayQuantity)), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
25516
25518
|
variant: themeValues.paragraphVariant,
|
|
25517
25519
|
weight: "600",
|
|
25518
25520
|
extraStyles: "margin: 0; text-align: end; min-width: fit-content; padding-left: 32px;"
|
|
@@ -46561,7 +46563,6 @@ var PrevNextPlaceholder = function PrevNextPlaceholder(_ref) {
|
|
|
46561
46563
|
|
|
46562
46564
|
var PrevNextButton = function PrevNextButton(_ref2) {
|
|
46563
46565
|
var action = _ref2.action,
|
|
46564
|
-
ariaLabel = _ref2.ariaLabel,
|
|
46565
46566
|
arrowColor = _ref2.arrowColor,
|
|
46566
46567
|
borderRadius = _ref2.borderRadius,
|
|
46567
46568
|
buttonHeight = _ref2.buttonHeight,
|
|
@@ -46571,14 +46572,12 @@ var PrevNextButton = function PrevNextButton(_ref2) {
|
|
|
46571
46572
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
46572
46573
|
padding: "0",
|
|
46573
46574
|
minHeight: buttonHeight,
|
|
46574
|
-
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46575
|
-
as: "li"
|
|
46575
|
+
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46576
46576
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46577
46577
|
action: action,
|
|
46578
46578
|
contentOverride: true,
|
|
46579
46579
|
dataQa: type,
|
|
46580
|
-
"
|
|
46581
|
-
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 ")
|
|
46580
|
+
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 ")
|
|
46582
46581
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
46583
46582
|
padding: "0",
|
|
46584
46583
|
extraStyles: type === "prev" && "transform: scaleX(-1)"
|
|
@@ -46602,30 +46601,26 @@ var getPagesPanel = function getPagesPanel(page, pagesCount) {
|
|
|
46602
46601
|
|
|
46603
46602
|
if (page > space + 1) {
|
|
46604
46603
|
pages.push({
|
|
46605
|
-
isDelimiter: true
|
|
46606
|
-
id: "first-delimiter"
|
|
46604
|
+
isDelimiter: true
|
|
46607
46605
|
});
|
|
46608
46606
|
}
|
|
46609
46607
|
|
|
46610
46608
|
for (var j = Math.max(1, page - space) + 1; j < Math.min(lastPageNumber, page + space); j++) {
|
|
46611
46609
|
pages.push({
|
|
46612
46610
|
index: j,
|
|
46613
|
-
isButton: true
|
|
46614
|
-
id: "page-".concat(j)
|
|
46611
|
+
isButton: true
|
|
46615
46612
|
});
|
|
46616
46613
|
}
|
|
46617
46614
|
|
|
46618
46615
|
if (page < lastPageNumber - space) {
|
|
46619
46616
|
pages.push({
|
|
46620
|
-
isDelimiter: true
|
|
46621
|
-
id: "last-delimiter"
|
|
46617
|
+
isDelimiter: true
|
|
46622
46618
|
});
|
|
46623
46619
|
}
|
|
46624
46620
|
|
|
46625
46621
|
pages.push({
|
|
46626
46622
|
index: lastPageNumber,
|
|
46627
|
-
isButton: true
|
|
46628
|
-
id: "page-".concat(lastPageNumber)
|
|
46623
|
+
isButton: true
|
|
46629
46624
|
});
|
|
46630
46625
|
var activePage = pages.find(function (p) {
|
|
46631
46626
|
return p.index === page;
|
|
@@ -46660,26 +46655,18 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46660
46655
|
pageNext = _ref3.pageNext,
|
|
46661
46656
|
pagePrevious = _ref3.pagePrevious,
|
|
46662
46657
|
setCurrentPage = _ref3.setCurrentPage,
|
|
46663
|
-
ariaLabel = _ref3.ariaLabel,
|
|
46664
46658
|
themeValues = _ref3.themeValues;
|
|
46665
46659
|
|
|
46666
46660
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
46667
46661
|
isMobile = _useContext.isMobile;
|
|
46668
46662
|
|
|
46669
|
-
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 ");
|
|
46670
|
-
var
|
|
46663
|
+
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 ");
|
|
46664
|
+
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 ");
|
|
46671
46665
|
return /*#__PURE__*/React__default.createElement(Cluster, {
|
|
46672
46666
|
justify: "center",
|
|
46673
|
-
childGap: childGap
|
|
46674
|
-
overflow: true,
|
|
46675
|
-
as: "nav",
|
|
46676
|
-
role: "navigation",
|
|
46677
|
-
innerWrapperAs: "ul",
|
|
46678
|
-
"aria-label": ariaLabel,
|
|
46679
|
-
extraStyles: "> ul { padding: 0px; > li { list-style-type: none; } };"
|
|
46667
|
+
childGap: childGap
|
|
46680
46668
|
}, currentPage > 1 ? /*#__PURE__*/React__default.createElement(PrevNextButton, {
|
|
46681
46669
|
action: pagePrevious,
|
|
46682
|
-
ariaLabel: "Previous Page",
|
|
46683
46670
|
arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
|
|
46684
46671
|
borderRadius: borderRadius,
|
|
46685
46672
|
buttonHeight: buttonHeight,
|
|
@@ -46701,37 +46688,33 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46701
46688
|
}, "".concat(currentPage, " of ").concat(pageCount)))) : getPagesPanel(currentPage, pageCount).map(function (item, index) {
|
|
46702
46689
|
return item.isButton ? /*#__PURE__*/React__default.createElement(Box, {
|
|
46703
46690
|
padding: "0",
|
|
46704
|
-
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46705
|
-
as: "li",
|
|
46706
|
-
key: item.id
|
|
46691
|
+
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46707
46692
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46708
46693
|
variant: "ghost",
|
|
46694
|
+
key: item.index,
|
|
46709
46695
|
text: item.index,
|
|
46710
|
-
|
|
46711
|
-
|
|
46696
|
+
disabled: item.active,
|
|
46697
|
+
extraDisabledStyles: extraDisabledStyles,
|
|
46712
46698
|
action: !item.active ? function () {
|
|
46713
46699
|
return setCurrentPage({
|
|
46714
46700
|
pageNumber: item.index
|
|
46715
46701
|
});
|
|
46716
46702
|
} : noop,
|
|
46717
46703
|
textExtraStyles: "font-size: ".concat(fontSize, "; font-weight: ").concat(fontWeight, ";"),
|
|
46718
|
-
extraStyles:
|
|
46704
|
+
extraStyles: extraStyles,
|
|
46719
46705
|
dataQa: index
|
|
46720
46706
|
}, item.index)) : /*#__PURE__*/React__default.createElement(Box, {
|
|
46721
|
-
padding: "0 10px"
|
|
46722
|
-
as: "li",
|
|
46723
|
-
key: item.id
|
|
46707
|
+
padding: "0 10px"
|
|
46724
46708
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
46725
46709
|
justify: "flex-end"
|
|
46726
46710
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
46711
|
+
key: index,
|
|
46727
46712
|
variant: "pXL",
|
|
46728
46713
|
weight: fontWeight,
|
|
46729
|
-
color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor
|
|
46730
|
-
|
|
46731
|
-
}, "…")));
|
|
46714
|
+
color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor
|
|
46715
|
+
}, "...")));
|
|
46732
46716
|
}), currentPage < pageCount ? /*#__PURE__*/React__default.createElement(PrevNextButton, {
|
|
46733
46717
|
action: pageNext,
|
|
46734
|
-
ariaLabel: "Next Page",
|
|
46735
46718
|
arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
|
|
46736
46719
|
borderRadius: borderRadius,
|
|
46737
46720
|
buttonHeight: buttonHeight,
|
|
@@ -47151,101 +47134,6 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
47151
47134
|
|
|
47152
47135
|
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$L, "default");
|
|
47153
47136
|
|
|
47154
|
-
var backgroundColor$c = {
|
|
47155
|
-
"default": "#ffffff",
|
|
47156
|
-
footer: "#ffffff"
|
|
47157
|
-
};
|
|
47158
|
-
var linkColor$6 = {
|
|
47159
|
-
"default": "#3176AA",
|
|
47160
|
-
footer: "#ffffff"
|
|
47161
|
-
};
|
|
47162
|
-
var border$3 = {
|
|
47163
|
-
"default": "#cdcdcd",
|
|
47164
|
-
footer: "#cdcdcd"
|
|
47165
|
-
};
|
|
47166
|
-
var fontSize$b = {
|
|
47167
|
-
"default": "1rem",
|
|
47168
|
-
footer: "0.875rem"
|
|
47169
|
-
};
|
|
47170
|
-
var lineHeight$5 = {
|
|
47171
|
-
"default": "1.5rem",
|
|
47172
|
-
footer: "1.25rem"
|
|
47173
|
-
};
|
|
47174
|
-
var fontWeight$8 = {
|
|
47175
|
-
"default": FONT_WEIGHT_REGULAR,
|
|
47176
|
-
footer: FONT_WEIGHT_SEMIBOLD
|
|
47177
|
-
};
|
|
47178
|
-
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";
|
|
47179
|
-
var modalLinkHoverFocus$2 = {
|
|
47180
|
-
"default": standardInteractionStyles,
|
|
47181
|
-
footer: standardInteractionStyles
|
|
47182
|
-
};
|
|
47183
|
-
var fallbackValues$M = {
|
|
47184
|
-
backgroundColor: backgroundColor$c,
|
|
47185
|
-
linkColor: linkColor$6,
|
|
47186
|
-
border: border$3,
|
|
47187
|
-
fontSize: fontSize$b,
|
|
47188
|
-
lineHeight: lineHeight$5,
|
|
47189
|
-
fontWeight: fontWeight$8,
|
|
47190
|
-
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
47191
|
-
};
|
|
47192
|
-
|
|
47193
|
-
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
47194
|
-
var link = _ref.link,
|
|
47195
|
-
_ref$title = _ref.title,
|
|
47196
|
-
title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
|
|
47197
|
-
isOpen = _ref.isOpen,
|
|
47198
|
-
toggleOpen = _ref.toggleOpen,
|
|
47199
|
-
toggleAccepted = _ref.toggleAccepted,
|
|
47200
|
-
acceptText = _ref.acceptText,
|
|
47201
|
-
terms = _ref.terms,
|
|
47202
|
-
variant = _ref.variant,
|
|
47203
|
-
_ref$linkVariant = _ref.linkVariant,
|
|
47204
|
-
linkVariant = _ref$linkVariant === void 0 ? "p" : _ref$linkVariant,
|
|
47205
|
-
themeValues = _ref.themeValues;
|
|
47206
|
-
return /*#__PURE__*/React__default.createElement(Modal$1, {
|
|
47207
|
-
modalOpen: isOpen,
|
|
47208
|
-
hideModal: function hideModal() {
|
|
47209
|
-
return toggleOpen(false);
|
|
47210
|
-
},
|
|
47211
|
-
showModal: function showModal() {
|
|
47212
|
-
return toggleOpen(true);
|
|
47213
|
-
},
|
|
47214
|
-
modalHeaderText: title,
|
|
47215
|
-
modalBodyText: /*#__PURE__*/React__default.createElement(Box, {
|
|
47216
|
-
background: themeValues.backgroundColor,
|
|
47217
|
-
border: "1px solid ".concat(themeValues.border),
|
|
47218
|
-
borderRadius: "3px",
|
|
47219
|
-
extraStyles: "overflow: scroll; max-height: 20rem;"
|
|
47220
|
-
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47221
|
-
variant: "p",
|
|
47222
|
-
extraStyles: "& a { text-decoration: underline; }"
|
|
47223
|
-
}, terms)),
|
|
47224
|
-
defaultWrapper: false,
|
|
47225
|
-
onlyCloseButton: !acceptText,
|
|
47226
|
-
continueButtonText: acceptText,
|
|
47227
|
-
continueAction: function continueAction() {
|
|
47228
|
-
toggleAccepted(true);
|
|
47229
|
-
toggleOpen(false);
|
|
47230
|
-
}
|
|
47231
|
-
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47232
|
-
variant: linkVariant,
|
|
47233
|
-
onClick: function onClick() {
|
|
47234
|
-
return toggleOpen(true);
|
|
47235
|
-
},
|
|
47236
|
-
onKeyPress: function onKeyPress(e) {
|
|
47237
|
-
return e.key === "Enter" && toggleOpen(true);
|
|
47238
|
-
},
|
|
47239
|
-
tabIndex: "0",
|
|
47240
|
-
color: themeValues.linkColor,
|
|
47241
|
-
weight: themeValues.fontWeight,
|
|
47242
|
-
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
47243
|
-
extraStyles: "display: inline-block; width: fit-content; cursor: pointer"
|
|
47244
|
-
}, link));
|
|
47245
|
-
};
|
|
47246
|
-
|
|
47247
|
-
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$M, "default");
|
|
47248
|
-
|
|
47249
47137
|
var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
47250
47138
|
var _routingNumberErrors, _accountNumberErrors;
|
|
47251
47139
|
|
|
@@ -47264,10 +47152,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47264
47152
|
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
47265
47153
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
47266
47154
|
saveToWallet = _ref.saveToWallet,
|
|
47267
|
-
walletCheckboxMarked = _ref.walletCheckboxMarked
|
|
47268
|
-
termsContent = _ref.termsContent,
|
|
47269
|
-
_ref$termsTitle = _ref.termsTitle,
|
|
47270
|
-
termsTitle = _ref$termsTitle === void 0 ? "Terms & Conditions" : _ref$termsTitle;
|
|
47155
|
+
walletCheckboxMarked = _ref.walletCheckboxMarked;
|
|
47271
47156
|
|
|
47272
47157
|
if (clearOnDismount) {
|
|
47273
47158
|
React.useEffect(function () {
|
|
@@ -47287,14 +47172,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47287
47172
|
showAccount = _useState4[0],
|
|
47288
47173
|
toggleShowAccount = _useState4[1];
|
|
47289
47174
|
|
|
47290
|
-
var _useState5 = React.useState(false),
|
|
47291
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
47292
|
-
termsModalOpen = _useState6[0],
|
|
47293
|
-
setTermsModalOpen = _useState6[1];
|
|
47294
|
-
|
|
47295
|
-
var showTerms = !!termsContent;
|
|
47296
|
-
var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
|
|
47297
|
-
|
|
47298
47175
|
var nameErrors = _defineProperty({}, required.error, "Name is required");
|
|
47299
47176
|
|
|
47300
47177
|
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);
|
|
@@ -47403,27 +47280,12 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47403
47280
|
onChange: toggleCheckbox,
|
|
47404
47281
|
checked: defaultMethod.value,
|
|
47405
47282
|
hidden: hideDefaultPayment
|
|
47406
|
-
}),
|
|
47407
|
-
childGap: "4px"
|
|
47408
|
-
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
47283
|
+
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
47409
47284
|
name: "bank checkbox",
|
|
47410
|
-
title: "Save checking account to wallet
|
|
47285
|
+
title: "Save checking account to wallet",
|
|
47411
47286
|
checked: walletCheckboxMarked,
|
|
47412
47287
|
onChange: saveToWallet
|
|
47413
|
-
})
|
|
47414
|
-
singleChild: true
|
|
47415
|
-
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47416
|
-
childGap: 0
|
|
47417
|
-
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47418
|
-
variant: showTermsLinkVariant
|
|
47419
|
-
}, "View\xA0"), /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
|
|
47420
|
-
link: termsTitle,
|
|
47421
|
-
linkVariant: showTermsLinkVariant,
|
|
47422
|
-
terms: termsContent,
|
|
47423
|
-
title: termsTitle,
|
|
47424
|
-
isOpen: termsModalOpen,
|
|
47425
|
-
toggleOpen: setTermsModalOpen
|
|
47426
|
-
}))))));
|
|
47288
|
+
})));
|
|
47427
47289
|
};
|
|
47428
47290
|
|
|
47429
47291
|
var formConfig$6 = {
|
|
@@ -47477,21 +47339,11 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
47477
47339
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
47478
47340
|
saveToWallet = _ref.saveToWallet,
|
|
47479
47341
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
47480
|
-
deniedCards = _ref.deniedCards
|
|
47481
|
-
termsContent = _ref.termsContent,
|
|
47482
|
-
_ref$termsTitle = _ref.termsTitle,
|
|
47483
|
-
termsTitle = _ref$termsTitle === void 0 ? "Terms & Conditions" : _ref$termsTitle;
|
|
47342
|
+
deniedCards = _ref.deniedCards;
|
|
47484
47343
|
|
|
47485
47344
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
47486
47345
|
isMobile = _useContext.isMobile;
|
|
47487
47346
|
|
|
47488
|
-
var _useState = React.useState(false),
|
|
47489
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
47490
|
-
termsModalOpen = _useState2[0],
|
|
47491
|
-
setTermsModalOpen = _useState2[1];
|
|
47492
|
-
|
|
47493
|
-
var showTerms = !!termsContent;
|
|
47494
|
-
var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
|
|
47495
47347
|
React.useEffect(function () {
|
|
47496
47348
|
if (deniedCards) {
|
|
47497
47349
|
deniedCards.map(function (card) {
|
|
@@ -47600,27 +47452,12 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
47600
47452
|
return e.key === "Enter" && handleSubmit(e);
|
|
47601
47453
|
},
|
|
47602
47454
|
autocomplete: "billing postal-code"
|
|
47603
|
-
})),
|
|
47604
|
-
childGap: "4px"
|
|
47605
|
-
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
47455
|
+
})), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
47606
47456
|
name: "credit card checkbox",
|
|
47607
|
-
title: "Save credit card to wallet
|
|
47457
|
+
title: "Save credit card to wallet",
|
|
47608
47458
|
checked: walletCheckboxMarked,
|
|
47609
47459
|
onChange: saveToWallet
|
|
47610
|
-
})
|
|
47611
|
-
singleChild: true
|
|
47612
|
-
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47613
|
-
childGap: 0
|
|
47614
|
-
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47615
|
-
variant: showTermsLinkVariant
|
|
47616
|
-
}, "View\xA0"), /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
|
|
47617
|
-
link: termsTitle,
|
|
47618
|
-
linkVariant: showTermsLinkVariant,
|
|
47619
|
-
terms: termsContent,
|
|
47620
|
-
title: termsTitle,
|
|
47621
|
-
isOpen: termsModalOpen,
|
|
47622
|
-
toggleOpen: setTermsModalOpen
|
|
47623
|
-
}))))));
|
|
47460
|
+
})));
|
|
47624
47461
|
};
|
|
47625
47462
|
|
|
47626
47463
|
var PaymentFormCard$1 = withWindowSize(PaymentFormCard);
|
|
@@ -47901,7 +47738,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
|
|
|
47901
47738
|
var bodyBackgroundColor$1 = "#eeeeee";
|
|
47902
47739
|
var borderColor$5 = "".concat(GREY_CHATEAU);
|
|
47903
47740
|
var focusStyles = "outline: none;";
|
|
47904
|
-
var fallbackValues$
|
|
47741
|
+
var fallbackValues$M = {
|
|
47905
47742
|
headingBackgroundColor: headingBackgroundColor$1,
|
|
47906
47743
|
headingDisabledColor: headingDisabledColor,
|
|
47907
47744
|
bodyBackgroundColor: bodyBackgroundColor$1,
|
|
@@ -48089,7 +47926,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48089
47926
|
})));
|
|
48090
47927
|
};
|
|
48091
47928
|
|
|
48092
|
-
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$
|
|
47929
|
+
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$M);
|
|
48093
47930
|
|
|
48094
47931
|
var RegistrationForm = function RegistrationForm(_ref) {
|
|
48095
47932
|
var _emailErrorMessages, _passwordErrorMessage;
|
|
@@ -48386,7 +48223,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
|
|
|
48386
48223
|
var activeTabBackground = "#FFFFFF";
|
|
48387
48224
|
var activeTabAccent = "#15749D";
|
|
48388
48225
|
var activeTabHover = "#B8D5E1";
|
|
48389
|
-
var fallbackValues$
|
|
48226
|
+
var fallbackValues$N = {
|
|
48390
48227
|
activeTabBackground: activeTabBackground,
|
|
48391
48228
|
activeTabAccent: activeTabAccent,
|
|
48392
48229
|
activeTabHover: activeTabHover
|
|
@@ -48465,12 +48302,12 @@ var Tabs = function Tabs(_ref) {
|
|
|
48465
48302
|
}))));
|
|
48466
48303
|
};
|
|
48467
48304
|
|
|
48468
|
-
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$
|
|
48305
|
+
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$N);
|
|
48469
48306
|
|
|
48470
48307
|
var activeTabBackground$1 = "#FFFFFF";
|
|
48471
48308
|
var activeTabAccent$1 = "#15749D";
|
|
48472
48309
|
var activeTabHover$1 = "#B8D5E1";
|
|
48473
|
-
var fallbackValues$
|
|
48310
|
+
var fallbackValues$O = {
|
|
48474
48311
|
activeTabBackground: activeTabBackground$1,
|
|
48475
48312
|
activeTabAccent: activeTabAccent$1,
|
|
48476
48313
|
activeTabHover: activeTabHover$1
|
|
@@ -48526,7 +48363,100 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
48526
48363
|
})));
|
|
48527
48364
|
};
|
|
48528
48365
|
|
|
48529
|
-
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$
|
|
48366
|
+
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$O);
|
|
48367
|
+
|
|
48368
|
+
var backgroundColor$c = {
|
|
48369
|
+
"default": "#ffffff",
|
|
48370
|
+
footer: "#ffffff"
|
|
48371
|
+
};
|
|
48372
|
+
var linkColor$6 = {
|
|
48373
|
+
"default": "#3176AA",
|
|
48374
|
+
footer: "#ffffff"
|
|
48375
|
+
};
|
|
48376
|
+
var border$3 = {
|
|
48377
|
+
"default": "#cdcdcd",
|
|
48378
|
+
footer: "#cdcdcd"
|
|
48379
|
+
};
|
|
48380
|
+
var fontSize$b = {
|
|
48381
|
+
"default": "1rem",
|
|
48382
|
+
footer: "0.875rem"
|
|
48383
|
+
};
|
|
48384
|
+
var lineHeight$5 = {
|
|
48385
|
+
"default": "1.5rem",
|
|
48386
|
+
footer: "1.25rem"
|
|
48387
|
+
};
|
|
48388
|
+
var fontWeight$8 = {
|
|
48389
|
+
"default": FONT_WEIGHT_REGULAR,
|
|
48390
|
+
footer: FONT_WEIGHT_SEMIBOLD
|
|
48391
|
+
};
|
|
48392
|
+
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";
|
|
48393
|
+
var modalLinkHoverFocus$2 = {
|
|
48394
|
+
"default": standardInteractionStyles,
|
|
48395
|
+
footer: standardInteractionStyles
|
|
48396
|
+
};
|
|
48397
|
+
var fallbackValues$P = {
|
|
48398
|
+
backgroundColor: backgroundColor$c,
|
|
48399
|
+
linkColor: linkColor$6,
|
|
48400
|
+
border: border$3,
|
|
48401
|
+
fontSize: fontSize$b,
|
|
48402
|
+
lineHeight: lineHeight$5,
|
|
48403
|
+
fontWeight: fontWeight$8,
|
|
48404
|
+
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
48405
|
+
};
|
|
48406
|
+
|
|
48407
|
+
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
48408
|
+
var link = _ref.link,
|
|
48409
|
+
_ref$title = _ref.title,
|
|
48410
|
+
title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
|
|
48411
|
+
isOpen = _ref.isOpen,
|
|
48412
|
+
toggleOpen = _ref.toggleOpen,
|
|
48413
|
+
toggleAccepted = _ref.toggleAccepted,
|
|
48414
|
+
acceptText = _ref.acceptText,
|
|
48415
|
+
terms = _ref.terms,
|
|
48416
|
+
variant = _ref.variant,
|
|
48417
|
+
themeValues = _ref.themeValues;
|
|
48418
|
+
return /*#__PURE__*/React__default.createElement(Modal$1, {
|
|
48419
|
+
modalOpen: isOpen,
|
|
48420
|
+
hideModal: function hideModal() {
|
|
48421
|
+
return toggleOpen(false);
|
|
48422
|
+
},
|
|
48423
|
+
showModal: function showModal() {
|
|
48424
|
+
return toggleOpen(true);
|
|
48425
|
+
},
|
|
48426
|
+
modalHeaderText: title,
|
|
48427
|
+
modalBodyText: /*#__PURE__*/React__default.createElement(Box, {
|
|
48428
|
+
background: themeValues.backgroundColor,
|
|
48429
|
+
border: "1px solid ".concat(themeValues.border),
|
|
48430
|
+
borderRadius: "3px",
|
|
48431
|
+
extraStyles: "overflow: scroll; max-height: 20rem;"
|
|
48432
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48433
|
+
variant: "p",
|
|
48434
|
+
extraStyles: "& a { text-decoration: underline; }"
|
|
48435
|
+
}, terms)),
|
|
48436
|
+
defaultWrapper: false,
|
|
48437
|
+
onlyCloseButton: !acceptText,
|
|
48438
|
+
continueButtonText: acceptText,
|
|
48439
|
+
continueAction: function continueAction() {
|
|
48440
|
+
toggleAccepted(true);
|
|
48441
|
+
toggleOpen(false);
|
|
48442
|
+
}
|
|
48443
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48444
|
+
variant: variant === "default" ? "pS" : "pXS",
|
|
48445
|
+
onClick: function onClick() {
|
|
48446
|
+
return toggleOpen(true);
|
|
48447
|
+
},
|
|
48448
|
+
onKeyPress: function onKeyPress(e) {
|
|
48449
|
+
return e.key === "Enter" && toggleOpen(true);
|
|
48450
|
+
},
|
|
48451
|
+
tabIndex: "0",
|
|
48452
|
+
color: themeValues.linkColor,
|
|
48453
|
+
weight: themeValues.fontWeight,
|
|
48454
|
+
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
48455
|
+
extraStyles: "display: inline-block; width: fit-content;"
|
|
48456
|
+
}, link));
|
|
48457
|
+
};
|
|
48458
|
+
|
|
48459
|
+
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$P, "default");
|
|
48530
48460
|
|
|
48531
48461
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48532
48462
|
var onCheck = _ref.onCheck,
|
|
@@ -48534,8 +48464,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
48534
48464
|
html = _ref.html,
|
|
48535
48465
|
terms = _ref.terms,
|
|
48536
48466
|
_ref$error = _ref.error,
|
|
48537
|
-
error = _ref$error === void 0 ? false : _ref$error
|
|
48538
|
-
linkVariant = _ref.linkVariant;
|
|
48467
|
+
error = _ref$error === void 0 ? false : _ref$error;
|
|
48539
48468
|
|
|
48540
48469
|
var _useState = React.useState(false),
|
|
48541
48470
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -48556,8 +48485,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
48556
48485
|
link: "Learn More",
|
|
48557
48486
|
terms: terms,
|
|
48558
48487
|
isOpen: showTerms,
|
|
48559
|
-
toggleOpen: toggleShowTerms
|
|
48560
|
-
linkVariant: linkVariant
|
|
48488
|
+
toggleOpen: toggleShowTerms
|
|
48561
48489
|
})))));
|
|
48562
48490
|
};
|
|
48563
48491
|
|