@thecb/components 7.9.0-beta.1 → 7.9.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 +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.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
|
|
|
@@ -25500,8 +25497,8 @@ var LineItem = function LineItem(_ref) {
|
|
|
25500
25497
|
subDescription = _ref.subDescription,
|
|
25501
25498
|
amount = _ref.amount,
|
|
25502
25499
|
themeValues = _ref.themeValues,
|
|
25503
|
-
_ref$
|
|
25504
|
-
|
|
25500
|
+
_ref$displayQuantity = _ref.displayQuantity,
|
|
25501
|
+
displayQuantity = _ref$displayQuantity === void 0 ? null : _ref$displayQuantity;
|
|
25505
25502
|
return /*#__PURE__*/React__default.createElement(Cluster, {
|
|
25506
25503
|
nowrap: true,
|
|
25507
25504
|
justify: "space-between",
|
|
@@ -25514,10 +25511,10 @@ var LineItem = function LineItem(_ref) {
|
|
|
25514
25511
|
}, description), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
25515
25512
|
variant: themeValues.paragraphVariant,
|
|
25516
25513
|
weight: "400"
|
|
25517
|
-
}, subDescription)), !!
|
|
25514
|
+
}, subDescription)), !!displayQuantity && /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
25518
25515
|
variant: themeValues.paragraphVariant,
|
|
25519
25516
|
weight: themeValues.weightTitle
|
|
25520
|
-
}, "x".concat(
|
|
25517
|
+
}, "x".concat(displayQuantity)), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
25521
25518
|
variant: themeValues.paragraphVariant,
|
|
25522
25519
|
weight: "600",
|
|
25523
25520
|
extraStyles: "margin: 0; text-align: end; min-width: fit-content; padding-left: 32px;"
|
|
@@ -46566,7 +46563,6 @@ var PrevNextPlaceholder = function PrevNextPlaceholder(_ref) {
|
|
|
46566
46563
|
|
|
46567
46564
|
var PrevNextButton = function PrevNextButton(_ref2) {
|
|
46568
46565
|
var action = _ref2.action,
|
|
46569
|
-
ariaLabel = _ref2.ariaLabel,
|
|
46570
46566
|
arrowColor = _ref2.arrowColor,
|
|
46571
46567
|
borderRadius = _ref2.borderRadius,
|
|
46572
46568
|
buttonHeight = _ref2.buttonHeight,
|
|
@@ -46576,14 +46572,12 @@ var PrevNextButton = function PrevNextButton(_ref2) {
|
|
|
46576
46572
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
46577
46573
|
padding: "0",
|
|
46578
46574
|
minHeight: buttonHeight,
|
|
46579
|
-
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46580
|
-
as: "li"
|
|
46575
|
+
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46581
46576
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46582
46577
|
action: action,
|
|
46583
46578
|
contentOverride: true,
|
|
46584
46579
|
dataQa: type,
|
|
46585
|
-
"
|
|
46586
|
-
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 ")
|
|
46587
46581
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
46588
46582
|
padding: "0",
|
|
46589
46583
|
extraStyles: type === "prev" && "transform: scaleX(-1)"
|
|
@@ -46607,30 +46601,26 @@ var getPagesPanel = function getPagesPanel(page, pagesCount) {
|
|
|
46607
46601
|
|
|
46608
46602
|
if (page > space + 1) {
|
|
46609
46603
|
pages.push({
|
|
46610
|
-
isDelimiter: true
|
|
46611
|
-
id: "first-delimiter"
|
|
46604
|
+
isDelimiter: true
|
|
46612
46605
|
});
|
|
46613
46606
|
}
|
|
46614
46607
|
|
|
46615
46608
|
for (var j = Math.max(1, page - space) + 1; j < Math.min(lastPageNumber, page + space); j++) {
|
|
46616
46609
|
pages.push({
|
|
46617
46610
|
index: j,
|
|
46618
|
-
isButton: true
|
|
46619
|
-
id: "page-".concat(j)
|
|
46611
|
+
isButton: true
|
|
46620
46612
|
});
|
|
46621
46613
|
}
|
|
46622
46614
|
|
|
46623
46615
|
if (page < lastPageNumber - space) {
|
|
46624
46616
|
pages.push({
|
|
46625
|
-
isDelimiter: true
|
|
46626
|
-
id: "last-delimiter"
|
|
46617
|
+
isDelimiter: true
|
|
46627
46618
|
});
|
|
46628
46619
|
}
|
|
46629
46620
|
|
|
46630
46621
|
pages.push({
|
|
46631
46622
|
index: lastPageNumber,
|
|
46632
|
-
isButton: true
|
|
46633
|
-
id: "page-".concat(lastPageNumber)
|
|
46623
|
+
isButton: true
|
|
46634
46624
|
});
|
|
46635
46625
|
var activePage = pages.find(function (p) {
|
|
46636
46626
|
return p.index === page;
|
|
@@ -46665,26 +46655,18 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46665
46655
|
pageNext = _ref3.pageNext,
|
|
46666
46656
|
pagePrevious = _ref3.pagePrevious,
|
|
46667
46657
|
setCurrentPage = _ref3.setCurrentPage,
|
|
46668
|
-
ariaLabel = _ref3.ariaLabel,
|
|
46669
46658
|
themeValues = _ref3.themeValues;
|
|
46670
46659
|
|
|
46671
46660
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
46672
46661
|
isMobile = _useContext.isMobile;
|
|
46673
46662
|
|
|
46674
|
-
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 ");
|
|
46675
|
-
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 ");
|
|
46676
46665
|
return /*#__PURE__*/React__default.createElement(Cluster, {
|
|
46677
46666
|
justify: "center",
|
|
46678
|
-
childGap: childGap
|
|
46679
|
-
overflow: true,
|
|
46680
|
-
as: "nav",
|
|
46681
|
-
role: "navigation",
|
|
46682
|
-
innerWrapperAs: "ul",
|
|
46683
|
-
"aria-label": ariaLabel,
|
|
46684
|
-
extraStyles: "> ul { padding: 0px; > li { list-style-type: none; } };"
|
|
46667
|
+
childGap: childGap
|
|
46685
46668
|
}, currentPage > 1 ? /*#__PURE__*/React__default.createElement(PrevNextButton, {
|
|
46686
46669
|
action: pagePrevious,
|
|
46687
|
-
ariaLabel: "Previous Page",
|
|
46688
46670
|
arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
|
|
46689
46671
|
borderRadius: borderRadius,
|
|
46690
46672
|
buttonHeight: buttonHeight,
|
|
@@ -46706,37 +46688,33 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46706
46688
|
}, "".concat(currentPage, " of ").concat(pageCount)))) : getPagesPanel(currentPage, pageCount).map(function (item, index) {
|
|
46707
46689
|
return item.isButton ? /*#__PURE__*/React__default.createElement(Box, {
|
|
46708
46690
|
padding: "0",
|
|
46709
|
-
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46710
|
-
as: "li",
|
|
46711
|
-
key: item.id
|
|
46691
|
+
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46712
46692
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46713
46693
|
variant: "ghost",
|
|
46694
|
+
key: item.index,
|
|
46714
46695
|
text: item.index,
|
|
46715
|
-
|
|
46716
|
-
|
|
46696
|
+
disabled: item.active,
|
|
46697
|
+
extraDisabledStyles: extraDisabledStyles,
|
|
46717
46698
|
action: !item.active ? function () {
|
|
46718
46699
|
return setCurrentPage({
|
|
46719
46700
|
pageNumber: item.index
|
|
46720
46701
|
});
|
|
46721
46702
|
} : noop,
|
|
46722
46703
|
textExtraStyles: "font-size: ".concat(fontSize, "; font-weight: ").concat(fontWeight, ";"),
|
|
46723
|
-
extraStyles:
|
|
46704
|
+
extraStyles: extraStyles,
|
|
46724
46705
|
dataQa: index
|
|
46725
46706
|
}, item.index)) : /*#__PURE__*/React__default.createElement(Box, {
|
|
46726
|
-
padding: "0 10px"
|
|
46727
|
-
as: "li",
|
|
46728
|
-
key: item.id
|
|
46707
|
+
padding: "0 10px"
|
|
46729
46708
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
46730
46709
|
justify: "flex-end"
|
|
46731
46710
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
46711
|
+
key: index,
|
|
46732
46712
|
variant: "pXL",
|
|
46733
46713
|
weight: fontWeight,
|
|
46734
|
-
color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor
|
|
46735
|
-
|
|
46736
|
-
}, "…")));
|
|
46714
|
+
color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor
|
|
46715
|
+
}, "...")));
|
|
46737
46716
|
}), currentPage < pageCount ? /*#__PURE__*/React__default.createElement(PrevNextButton, {
|
|
46738
46717
|
action: pageNext,
|
|
46739
|
-
ariaLabel: "Next Page",
|
|
46740
46718
|
arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
|
|
46741
46719
|
borderRadius: borderRadius,
|
|
46742
46720
|
buttonHeight: buttonHeight,
|
|
@@ -47156,101 +47134,6 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
47156
47134
|
|
|
47157
47135
|
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$L, "default");
|
|
47158
47136
|
|
|
47159
|
-
var backgroundColor$c = {
|
|
47160
|
-
"default": "#ffffff",
|
|
47161
|
-
footer: "#ffffff"
|
|
47162
|
-
};
|
|
47163
|
-
var linkColor$6 = {
|
|
47164
|
-
"default": "#3176AA",
|
|
47165
|
-
footer: "#ffffff"
|
|
47166
|
-
};
|
|
47167
|
-
var border$3 = {
|
|
47168
|
-
"default": "#cdcdcd",
|
|
47169
|
-
footer: "#cdcdcd"
|
|
47170
|
-
};
|
|
47171
|
-
var fontSize$b = {
|
|
47172
|
-
"default": "1rem",
|
|
47173
|
-
footer: "0.875rem"
|
|
47174
|
-
};
|
|
47175
|
-
var lineHeight$5 = {
|
|
47176
|
-
"default": "1.5rem",
|
|
47177
|
-
footer: "1.25rem"
|
|
47178
|
-
};
|
|
47179
|
-
var fontWeight$8 = {
|
|
47180
|
-
"default": FONT_WEIGHT_REGULAR,
|
|
47181
|
-
footer: FONT_WEIGHT_SEMIBOLD
|
|
47182
|
-
};
|
|
47183
|
-
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";
|
|
47184
|
-
var modalLinkHoverFocus$2 = {
|
|
47185
|
-
"default": standardInteractionStyles,
|
|
47186
|
-
footer: standardInteractionStyles
|
|
47187
|
-
};
|
|
47188
|
-
var fallbackValues$M = {
|
|
47189
|
-
backgroundColor: backgroundColor$c,
|
|
47190
|
-
linkColor: linkColor$6,
|
|
47191
|
-
border: border$3,
|
|
47192
|
-
fontSize: fontSize$b,
|
|
47193
|
-
lineHeight: lineHeight$5,
|
|
47194
|
-
fontWeight: fontWeight$8,
|
|
47195
|
-
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
47196
|
-
};
|
|
47197
|
-
|
|
47198
|
-
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
47199
|
-
var link = _ref.link,
|
|
47200
|
-
_ref$title = _ref.title,
|
|
47201
|
-
title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
|
|
47202
|
-
isOpen = _ref.isOpen,
|
|
47203
|
-
toggleOpen = _ref.toggleOpen,
|
|
47204
|
-
toggleAccepted = _ref.toggleAccepted,
|
|
47205
|
-
acceptText = _ref.acceptText,
|
|
47206
|
-
terms = _ref.terms,
|
|
47207
|
-
variant = _ref.variant,
|
|
47208
|
-
_ref$linkVariant = _ref.linkVariant,
|
|
47209
|
-
linkVariant = _ref$linkVariant === void 0 ? "p" : _ref$linkVariant,
|
|
47210
|
-
themeValues = _ref.themeValues;
|
|
47211
|
-
return /*#__PURE__*/React__default.createElement(Modal$1, {
|
|
47212
|
-
modalOpen: isOpen,
|
|
47213
|
-
hideModal: function hideModal() {
|
|
47214
|
-
return toggleOpen(false);
|
|
47215
|
-
},
|
|
47216
|
-
showModal: function showModal() {
|
|
47217
|
-
return toggleOpen(true);
|
|
47218
|
-
},
|
|
47219
|
-
modalHeaderText: title,
|
|
47220
|
-
modalBodyText: /*#__PURE__*/React__default.createElement(Box, {
|
|
47221
|
-
background: themeValues.backgroundColor,
|
|
47222
|
-
border: "1px solid ".concat(themeValues.border),
|
|
47223
|
-
borderRadius: "3px",
|
|
47224
|
-
extraStyles: "overflow: scroll; max-height: 20rem;"
|
|
47225
|
-
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47226
|
-
variant: "p",
|
|
47227
|
-
extraStyles: "& a { text-decoration: underline; }"
|
|
47228
|
-
}, terms)),
|
|
47229
|
-
defaultWrapper: false,
|
|
47230
|
-
onlyCloseButton: !acceptText,
|
|
47231
|
-
continueButtonText: acceptText,
|
|
47232
|
-
continueAction: function continueAction() {
|
|
47233
|
-
toggleAccepted(true);
|
|
47234
|
-
toggleOpen(false);
|
|
47235
|
-
}
|
|
47236
|
-
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47237
|
-
variant: linkVariant,
|
|
47238
|
-
onClick: function onClick() {
|
|
47239
|
-
return toggleOpen(true);
|
|
47240
|
-
},
|
|
47241
|
-
onKeyPress: function onKeyPress(e) {
|
|
47242
|
-
return e.key === "Enter" && toggleOpen(true);
|
|
47243
|
-
},
|
|
47244
|
-
tabIndex: "0",
|
|
47245
|
-
color: themeValues.linkColor,
|
|
47246
|
-
weight: themeValues.fontWeight,
|
|
47247
|
-
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
47248
|
-
extraStyles: "display: inline-block; width: fit-content; cursor: pointer"
|
|
47249
|
-
}, link));
|
|
47250
|
-
};
|
|
47251
|
-
|
|
47252
|
-
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$M, "default");
|
|
47253
|
-
|
|
47254
47137
|
var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
47255
47138
|
var _routingNumberErrors, _accountNumberErrors;
|
|
47256
47139
|
|
|
@@ -47269,10 +47152,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47269
47152
|
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
47270
47153
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
47271
47154
|
saveToWallet = _ref.saveToWallet,
|
|
47272
|
-
walletCheckboxMarked = _ref.walletCheckboxMarked
|
|
47273
|
-
termsContent = _ref.termsContent,
|
|
47274
|
-
_ref$termsTitle = _ref.termsTitle,
|
|
47275
|
-
termsTitle = _ref$termsTitle === void 0 ? "Terms & Conditions" : _ref$termsTitle;
|
|
47155
|
+
walletCheckboxMarked = _ref.walletCheckboxMarked;
|
|
47276
47156
|
|
|
47277
47157
|
if (clearOnDismount) {
|
|
47278
47158
|
React.useEffect(function () {
|
|
@@ -47292,14 +47172,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47292
47172
|
showAccount = _useState4[0],
|
|
47293
47173
|
toggleShowAccount = _useState4[1];
|
|
47294
47174
|
|
|
47295
|
-
var _useState5 = React.useState(false),
|
|
47296
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
47297
|
-
termsModalOpen = _useState6[0],
|
|
47298
|
-
setTermsModalOpen = _useState6[1];
|
|
47299
|
-
|
|
47300
|
-
var showTerms = !!termsContent;
|
|
47301
|
-
var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
|
|
47302
|
-
|
|
47303
47175
|
var nameErrors = _defineProperty({}, required.error, "Name is required");
|
|
47304
47176
|
|
|
47305
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);
|
|
@@ -47408,27 +47280,12 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47408
47280
|
onChange: toggleCheckbox,
|
|
47409
47281
|
checked: defaultMethod.value,
|
|
47410
47282
|
hidden: hideDefaultPayment
|
|
47411
|
-
}),
|
|
47412
|
-
childGap: "4px"
|
|
47413
|
-
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
47283
|
+
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
47414
47284
|
name: "bank checkbox",
|
|
47415
|
-
title: "Save checking account to wallet
|
|
47285
|
+
title: "Save checking account to wallet",
|
|
47416
47286
|
checked: walletCheckboxMarked,
|
|
47417
47287
|
onChange: saveToWallet
|
|
47418
|
-
})
|
|
47419
|
-
singleChild: true
|
|
47420
|
-
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47421
|
-
childGap: 0
|
|
47422
|
-
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47423
|
-
variant: showTermsLinkVariant
|
|
47424
|
-
}, "View\xA0"), /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
|
|
47425
|
-
link: termsTitle,
|
|
47426
|
-
linkVariant: showTermsLinkVariant,
|
|
47427
|
-
terms: termsContent,
|
|
47428
|
-
title: termsTitle,
|
|
47429
|
-
isOpen: termsModalOpen,
|
|
47430
|
-
toggleOpen: setTermsModalOpen
|
|
47431
|
-
}))))));
|
|
47288
|
+
})));
|
|
47432
47289
|
};
|
|
47433
47290
|
|
|
47434
47291
|
var formConfig$6 = {
|
|
@@ -47482,21 +47339,11 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
47482
47339
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
47483
47340
|
saveToWallet = _ref.saveToWallet,
|
|
47484
47341
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
47485
|
-
deniedCards = _ref.deniedCards
|
|
47486
|
-
termsContent = _ref.termsContent,
|
|
47487
|
-
_ref$termsTitle = _ref.termsTitle,
|
|
47488
|
-
termsTitle = _ref$termsTitle === void 0 ? "Terms & Conditions" : _ref$termsTitle;
|
|
47342
|
+
deniedCards = _ref.deniedCards;
|
|
47489
47343
|
|
|
47490
47344
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
47491
47345
|
isMobile = _useContext.isMobile;
|
|
47492
47346
|
|
|
47493
|
-
var _useState = React.useState(false),
|
|
47494
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
47495
|
-
termsModalOpen = _useState2[0],
|
|
47496
|
-
setTermsModalOpen = _useState2[1];
|
|
47497
|
-
|
|
47498
|
-
var showTerms = !!termsContent;
|
|
47499
|
-
var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
|
|
47500
47347
|
React.useEffect(function () {
|
|
47501
47348
|
if (deniedCards) {
|
|
47502
47349
|
deniedCards.map(function (card) {
|
|
@@ -47605,27 +47452,12 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
47605
47452
|
return e.key === "Enter" && handleSubmit(e);
|
|
47606
47453
|
},
|
|
47607
47454
|
autocomplete: "billing postal-code"
|
|
47608
|
-
})),
|
|
47609
|
-
childGap: "4px"
|
|
47610
|
-
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
47455
|
+
})), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
47611
47456
|
name: "credit card checkbox",
|
|
47612
|
-
title: "Save credit card to wallet
|
|
47457
|
+
title: "Save credit card to wallet",
|
|
47613
47458
|
checked: walletCheckboxMarked,
|
|
47614
47459
|
onChange: saveToWallet
|
|
47615
|
-
})
|
|
47616
|
-
singleChild: true
|
|
47617
|
-
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47618
|
-
childGap: 0
|
|
47619
|
-
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47620
|
-
variant: showTermsLinkVariant
|
|
47621
|
-
}, "View\xA0"), /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
|
|
47622
|
-
link: termsTitle,
|
|
47623
|
-
linkVariant: showTermsLinkVariant,
|
|
47624
|
-
terms: termsContent,
|
|
47625
|
-
title: termsTitle,
|
|
47626
|
-
isOpen: termsModalOpen,
|
|
47627
|
-
toggleOpen: setTermsModalOpen
|
|
47628
|
-
}))))));
|
|
47460
|
+
})));
|
|
47629
47461
|
};
|
|
47630
47462
|
|
|
47631
47463
|
var PaymentFormCard$1 = withWindowSize(PaymentFormCard);
|
|
@@ -47906,7 +47738,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
|
|
|
47906
47738
|
var bodyBackgroundColor$1 = "#eeeeee";
|
|
47907
47739
|
var borderColor$5 = "".concat(GREY_CHATEAU);
|
|
47908
47740
|
var focusStyles = "outline: none;";
|
|
47909
|
-
var fallbackValues$
|
|
47741
|
+
var fallbackValues$M = {
|
|
47910
47742
|
headingBackgroundColor: headingBackgroundColor$1,
|
|
47911
47743
|
headingDisabledColor: headingDisabledColor,
|
|
47912
47744
|
bodyBackgroundColor: bodyBackgroundColor$1,
|
|
@@ -48094,7 +47926,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48094
47926
|
})));
|
|
48095
47927
|
};
|
|
48096
47928
|
|
|
48097
|
-
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$
|
|
47929
|
+
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$M);
|
|
48098
47930
|
|
|
48099
47931
|
var RegistrationForm = function RegistrationForm(_ref) {
|
|
48100
47932
|
var _emailErrorMessages, _passwordErrorMessage;
|
|
@@ -48391,7 +48223,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
|
|
|
48391
48223
|
var activeTabBackground = "#FFFFFF";
|
|
48392
48224
|
var activeTabAccent = "#15749D";
|
|
48393
48225
|
var activeTabHover = "#B8D5E1";
|
|
48394
|
-
var fallbackValues$
|
|
48226
|
+
var fallbackValues$N = {
|
|
48395
48227
|
activeTabBackground: activeTabBackground,
|
|
48396
48228
|
activeTabAccent: activeTabAccent,
|
|
48397
48229
|
activeTabHover: activeTabHover
|
|
@@ -48470,12 +48302,12 @@ var Tabs = function Tabs(_ref) {
|
|
|
48470
48302
|
}))));
|
|
48471
48303
|
};
|
|
48472
48304
|
|
|
48473
|
-
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$
|
|
48305
|
+
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$N);
|
|
48474
48306
|
|
|
48475
48307
|
var activeTabBackground$1 = "#FFFFFF";
|
|
48476
48308
|
var activeTabAccent$1 = "#15749D";
|
|
48477
48309
|
var activeTabHover$1 = "#B8D5E1";
|
|
48478
|
-
var fallbackValues$
|
|
48310
|
+
var fallbackValues$O = {
|
|
48479
48311
|
activeTabBackground: activeTabBackground$1,
|
|
48480
48312
|
activeTabAccent: activeTabAccent$1,
|
|
48481
48313
|
activeTabHover: activeTabHover$1
|
|
@@ -48531,7 +48363,100 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
48531
48363
|
})));
|
|
48532
48364
|
};
|
|
48533
48365
|
|
|
48534
|
-
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");
|
|
48535
48460
|
|
|
48536
48461
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48537
48462
|
var onCheck = _ref.onCheck,
|
|
@@ -48539,8 +48464,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
48539
48464
|
html = _ref.html,
|
|
48540
48465
|
terms = _ref.terms,
|
|
48541
48466
|
_ref$error = _ref.error,
|
|
48542
|
-
error = _ref$error === void 0 ? false : _ref$error
|
|
48543
|
-
linkVariant = _ref.linkVariant;
|
|
48467
|
+
error = _ref$error === void 0 ? false : _ref$error;
|
|
48544
48468
|
|
|
48545
48469
|
var _useState = React.useState(false),
|
|
48546
48470
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -48561,8 +48485,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
48561
48485
|
link: "Learn More",
|
|
48562
48486
|
terms: terms,
|
|
48563
48487
|
isOpen: showTerms,
|
|
48564
|
-
toggleOpen: toggleShowTerms
|
|
48565
|
-
linkVariant: linkVariant
|
|
48488
|
+
toggleOpen: toggleShowTerms
|
|
48566
48489
|
})))));
|
|
48567
48490
|
};
|
|
48568
48491
|
|