@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.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
|
|
|
@@ -25491,7 +25488,9 @@ var LineItem = function LineItem(_ref) {
|
|
|
25491
25488
|
var description = _ref.description,
|
|
25492
25489
|
subDescription = _ref.subDescription,
|
|
25493
25490
|
amount = _ref.amount,
|
|
25494
|
-
themeValues = _ref.themeValues
|
|
25491
|
+
themeValues = _ref.themeValues,
|
|
25492
|
+
_ref$displayQuantity = _ref.displayQuantity,
|
|
25493
|
+
displayQuantity = _ref$displayQuantity === void 0 ? null : _ref$displayQuantity;
|
|
25495
25494
|
return /*#__PURE__*/React.createElement(Cluster, {
|
|
25496
25495
|
nowrap: true,
|
|
25497
25496
|
justify: "space-between",
|
|
@@ -25504,7 +25503,10 @@ var LineItem = function LineItem(_ref) {
|
|
|
25504
25503
|
}, description), /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
25505
25504
|
variant: themeValues.paragraphVariant,
|
|
25506
25505
|
weight: "400"
|
|
25507
|
-
}, subDescription)), /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
25506
|
+
}, subDescription)), !!displayQuantity && /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
25507
|
+
variant: themeValues.paragraphVariant,
|
|
25508
|
+
weight: themeValues.weightTitle
|
|
25509
|
+
}, "x".concat(displayQuantity)), /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
25508
25510
|
variant: themeValues.paragraphVariant,
|
|
25509
25511
|
weight: "600",
|
|
25510
25512
|
extraStyles: "margin: 0; text-align: end; min-width: fit-content; padding-left: 32px;"
|
|
@@ -46553,7 +46555,6 @@ var PrevNextPlaceholder = function PrevNextPlaceholder(_ref) {
|
|
|
46553
46555
|
|
|
46554
46556
|
var PrevNextButton = function PrevNextButton(_ref2) {
|
|
46555
46557
|
var action = _ref2.action,
|
|
46556
|
-
ariaLabel = _ref2.ariaLabel,
|
|
46557
46558
|
arrowColor = _ref2.arrowColor,
|
|
46558
46559
|
borderRadius = _ref2.borderRadius,
|
|
46559
46560
|
buttonHeight = _ref2.buttonHeight,
|
|
@@ -46563,14 +46564,12 @@ var PrevNextButton = function PrevNextButton(_ref2) {
|
|
|
46563
46564
|
return /*#__PURE__*/React.createElement(Box, {
|
|
46564
46565
|
padding: "0",
|
|
46565
46566
|
minHeight: buttonHeight,
|
|
46566
|
-
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46567
|
-
as: "li"
|
|
46567
|
+
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46568
46568
|
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
46569
46569
|
action: action,
|
|
46570
46570
|
contentOverride: true,
|
|
46571
46571
|
dataQa: type,
|
|
46572
|
-
"
|
|
46573
|
-
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 ")
|
|
46574
46573
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
46575
46574
|
padding: "0",
|
|
46576
46575
|
extraStyles: type === "prev" && "transform: scaleX(-1)"
|
|
@@ -46594,30 +46593,26 @@ var getPagesPanel = function getPagesPanel(page, pagesCount) {
|
|
|
46594
46593
|
|
|
46595
46594
|
if (page > space + 1) {
|
|
46596
46595
|
pages.push({
|
|
46597
|
-
isDelimiter: true
|
|
46598
|
-
id: "first-delimiter"
|
|
46596
|
+
isDelimiter: true
|
|
46599
46597
|
});
|
|
46600
46598
|
}
|
|
46601
46599
|
|
|
46602
46600
|
for (var j = Math.max(1, page - space) + 1; j < Math.min(lastPageNumber, page + space); j++) {
|
|
46603
46601
|
pages.push({
|
|
46604
46602
|
index: j,
|
|
46605
|
-
isButton: true
|
|
46606
|
-
id: "page-".concat(j)
|
|
46603
|
+
isButton: true
|
|
46607
46604
|
});
|
|
46608
46605
|
}
|
|
46609
46606
|
|
|
46610
46607
|
if (page < lastPageNumber - space) {
|
|
46611
46608
|
pages.push({
|
|
46612
|
-
isDelimiter: true
|
|
46613
|
-
id: "last-delimiter"
|
|
46609
|
+
isDelimiter: true
|
|
46614
46610
|
});
|
|
46615
46611
|
}
|
|
46616
46612
|
|
|
46617
46613
|
pages.push({
|
|
46618
46614
|
index: lastPageNumber,
|
|
46619
|
-
isButton: true
|
|
46620
|
-
id: "page-".concat(lastPageNumber)
|
|
46615
|
+
isButton: true
|
|
46621
46616
|
});
|
|
46622
46617
|
var activePage = pages.find(function (p) {
|
|
46623
46618
|
return p.index === page;
|
|
@@ -46652,26 +46647,18 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46652
46647
|
pageNext = _ref3.pageNext,
|
|
46653
46648
|
pagePrevious = _ref3.pagePrevious,
|
|
46654
46649
|
setCurrentPage = _ref3.setCurrentPage,
|
|
46655
|
-
ariaLabel = _ref3.ariaLabel,
|
|
46656
46650
|
themeValues = _ref3.themeValues;
|
|
46657
46651
|
|
|
46658
46652
|
var _useContext = useContext(ThemeContext),
|
|
46659
46653
|
isMobile = _useContext.isMobile;
|
|
46660
46654
|
|
|
46661
|
-
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 ");
|
|
46662
|
-
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 ");
|
|
46663
46657
|
return /*#__PURE__*/React.createElement(Cluster, {
|
|
46664
46658
|
justify: "center",
|
|
46665
|
-
childGap: childGap
|
|
46666
|
-
overflow: true,
|
|
46667
|
-
as: "nav",
|
|
46668
|
-
role: "navigation",
|
|
46669
|
-
innerWrapperAs: "ul",
|
|
46670
|
-
"aria-label": ariaLabel,
|
|
46671
|
-
extraStyles: "> ul { padding: 0px; > li { list-style-type: none; } };"
|
|
46659
|
+
childGap: childGap
|
|
46672
46660
|
}, currentPage > 1 ? /*#__PURE__*/React.createElement(PrevNextButton, {
|
|
46673
46661
|
action: pagePrevious,
|
|
46674
|
-
ariaLabel: "Previous Page",
|
|
46675
46662
|
arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
|
|
46676
46663
|
borderRadius: borderRadius,
|
|
46677
46664
|
buttonHeight: buttonHeight,
|
|
@@ -46693,37 +46680,33 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46693
46680
|
}, "".concat(currentPage, " of ").concat(pageCount)))) : getPagesPanel(currentPage, pageCount).map(function (item, index) {
|
|
46694
46681
|
return item.isButton ? /*#__PURE__*/React.createElement(Box, {
|
|
46695
46682
|
padding: "0",
|
|
46696
|
-
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46697
|
-
as: "li",
|
|
46698
|
-
key: item.id
|
|
46683
|
+
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46699
46684
|
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
46700
46685
|
variant: "ghost",
|
|
46686
|
+
key: item.index,
|
|
46701
46687
|
text: item.index,
|
|
46702
|
-
|
|
46703
|
-
|
|
46688
|
+
disabled: item.active,
|
|
46689
|
+
extraDisabledStyles: extraDisabledStyles,
|
|
46704
46690
|
action: !item.active ? function () {
|
|
46705
46691
|
return setCurrentPage({
|
|
46706
46692
|
pageNumber: item.index
|
|
46707
46693
|
});
|
|
46708
46694
|
} : noop,
|
|
46709
46695
|
textExtraStyles: "font-size: ".concat(fontSize, "; font-weight: ").concat(fontWeight, ";"),
|
|
46710
|
-
extraStyles:
|
|
46696
|
+
extraStyles: extraStyles,
|
|
46711
46697
|
dataQa: index
|
|
46712
46698
|
}, item.index)) : /*#__PURE__*/React.createElement(Box, {
|
|
46713
|
-
padding: "0 10px"
|
|
46714
|
-
as: "li",
|
|
46715
|
-
key: item.id
|
|
46699
|
+
padding: "0 10px"
|
|
46716
46700
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
46717
46701
|
justify: "flex-end"
|
|
46718
46702
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
46703
|
+
key: index,
|
|
46719
46704
|
variant: "pXL",
|
|
46720
46705
|
weight: fontWeight,
|
|
46721
|
-
color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor
|
|
46722
|
-
|
|
46723
|
-
}, "…")));
|
|
46706
|
+
color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor
|
|
46707
|
+
}, "...")));
|
|
46724
46708
|
}), currentPage < pageCount ? /*#__PURE__*/React.createElement(PrevNextButton, {
|
|
46725
46709
|
action: pageNext,
|
|
46726
|
-
ariaLabel: "Next Page",
|
|
46727
46710
|
arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
|
|
46728
46711
|
borderRadius: borderRadius,
|
|
46729
46712
|
buttonHeight: buttonHeight,
|
|
@@ -47143,101 +47126,6 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
47143
47126
|
|
|
47144
47127
|
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$L, "default");
|
|
47145
47128
|
|
|
47146
|
-
var backgroundColor$c = {
|
|
47147
|
-
"default": "#ffffff",
|
|
47148
|
-
footer: "#ffffff"
|
|
47149
|
-
};
|
|
47150
|
-
var linkColor$6 = {
|
|
47151
|
-
"default": "#3176AA",
|
|
47152
|
-
footer: "#ffffff"
|
|
47153
|
-
};
|
|
47154
|
-
var border$3 = {
|
|
47155
|
-
"default": "#cdcdcd",
|
|
47156
|
-
footer: "#cdcdcd"
|
|
47157
|
-
};
|
|
47158
|
-
var fontSize$b = {
|
|
47159
|
-
"default": "1rem",
|
|
47160
|
-
footer: "0.875rem"
|
|
47161
|
-
};
|
|
47162
|
-
var lineHeight$5 = {
|
|
47163
|
-
"default": "1.5rem",
|
|
47164
|
-
footer: "1.25rem"
|
|
47165
|
-
};
|
|
47166
|
-
var fontWeight$8 = {
|
|
47167
|
-
"default": FONT_WEIGHT_REGULAR,
|
|
47168
|
-
footer: FONT_WEIGHT_SEMIBOLD
|
|
47169
|
-
};
|
|
47170
|
-
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";
|
|
47171
|
-
var modalLinkHoverFocus$2 = {
|
|
47172
|
-
"default": standardInteractionStyles,
|
|
47173
|
-
footer: standardInteractionStyles
|
|
47174
|
-
};
|
|
47175
|
-
var fallbackValues$M = {
|
|
47176
|
-
backgroundColor: backgroundColor$c,
|
|
47177
|
-
linkColor: linkColor$6,
|
|
47178
|
-
border: border$3,
|
|
47179
|
-
fontSize: fontSize$b,
|
|
47180
|
-
lineHeight: lineHeight$5,
|
|
47181
|
-
fontWeight: fontWeight$8,
|
|
47182
|
-
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
47183
|
-
};
|
|
47184
|
-
|
|
47185
|
-
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
47186
|
-
var link = _ref.link,
|
|
47187
|
-
_ref$title = _ref.title,
|
|
47188
|
-
title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
|
|
47189
|
-
isOpen = _ref.isOpen,
|
|
47190
|
-
toggleOpen = _ref.toggleOpen,
|
|
47191
|
-
toggleAccepted = _ref.toggleAccepted,
|
|
47192
|
-
acceptText = _ref.acceptText,
|
|
47193
|
-
terms = _ref.terms,
|
|
47194
|
-
variant = _ref.variant,
|
|
47195
|
-
_ref$linkVariant = _ref.linkVariant,
|
|
47196
|
-
linkVariant = _ref$linkVariant === void 0 ? "p" : _ref$linkVariant,
|
|
47197
|
-
themeValues = _ref.themeValues;
|
|
47198
|
-
return /*#__PURE__*/React.createElement(Modal$1, {
|
|
47199
|
-
modalOpen: isOpen,
|
|
47200
|
-
hideModal: function hideModal() {
|
|
47201
|
-
return toggleOpen(false);
|
|
47202
|
-
},
|
|
47203
|
-
showModal: function showModal() {
|
|
47204
|
-
return toggleOpen(true);
|
|
47205
|
-
},
|
|
47206
|
-
modalHeaderText: title,
|
|
47207
|
-
modalBodyText: /*#__PURE__*/React.createElement(Box, {
|
|
47208
|
-
background: themeValues.backgroundColor,
|
|
47209
|
-
border: "1px solid ".concat(themeValues.border),
|
|
47210
|
-
borderRadius: "3px",
|
|
47211
|
-
extraStyles: "overflow: scroll; max-height: 20rem;"
|
|
47212
|
-
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
47213
|
-
variant: "p",
|
|
47214
|
-
extraStyles: "& a { text-decoration: underline; }"
|
|
47215
|
-
}, terms)),
|
|
47216
|
-
defaultWrapper: false,
|
|
47217
|
-
onlyCloseButton: !acceptText,
|
|
47218
|
-
continueButtonText: acceptText,
|
|
47219
|
-
continueAction: function continueAction() {
|
|
47220
|
-
toggleAccepted(true);
|
|
47221
|
-
toggleOpen(false);
|
|
47222
|
-
}
|
|
47223
|
-
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
47224
|
-
variant: linkVariant,
|
|
47225
|
-
onClick: function onClick() {
|
|
47226
|
-
return toggleOpen(true);
|
|
47227
|
-
},
|
|
47228
|
-
onKeyPress: function onKeyPress(e) {
|
|
47229
|
-
return e.key === "Enter" && toggleOpen(true);
|
|
47230
|
-
},
|
|
47231
|
-
tabIndex: "0",
|
|
47232
|
-
color: themeValues.linkColor,
|
|
47233
|
-
weight: themeValues.fontWeight,
|
|
47234
|
-
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
47235
|
-
extraStyles: "display: inline-block; width: fit-content; cursor: pointer"
|
|
47236
|
-
}, link));
|
|
47237
|
-
};
|
|
47238
|
-
|
|
47239
|
-
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$M, "default");
|
|
47240
|
-
|
|
47241
47129
|
var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
47242
47130
|
var _routingNumberErrors, _accountNumberErrors;
|
|
47243
47131
|
|
|
@@ -47256,10 +47144,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47256
47144
|
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
47257
47145
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
47258
47146
|
saveToWallet = _ref.saveToWallet,
|
|
47259
|
-
walletCheckboxMarked = _ref.walletCheckboxMarked
|
|
47260
|
-
termsContent = _ref.termsContent,
|
|
47261
|
-
_ref$termsTitle = _ref.termsTitle,
|
|
47262
|
-
termsTitle = _ref$termsTitle === void 0 ? "Terms & Conditions" : _ref$termsTitle;
|
|
47147
|
+
walletCheckboxMarked = _ref.walletCheckboxMarked;
|
|
47263
47148
|
|
|
47264
47149
|
if (clearOnDismount) {
|
|
47265
47150
|
useEffect$1(function () {
|
|
@@ -47279,14 +47164,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47279
47164
|
showAccount = _useState4[0],
|
|
47280
47165
|
toggleShowAccount = _useState4[1];
|
|
47281
47166
|
|
|
47282
|
-
var _useState5 = useState(false),
|
|
47283
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
47284
|
-
termsModalOpen = _useState6[0],
|
|
47285
|
-
setTermsModalOpen = _useState6[1];
|
|
47286
|
-
|
|
47287
|
-
var showTerms = !!termsContent;
|
|
47288
|
-
var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
|
|
47289
|
-
|
|
47290
47167
|
var nameErrors = _defineProperty({}, required.error, "Name is required");
|
|
47291
47168
|
|
|
47292
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);
|
|
@@ -47395,27 +47272,12 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47395
47272
|
onChange: toggleCheckbox,
|
|
47396
47273
|
checked: defaultMethod.value,
|
|
47397
47274
|
hidden: hideDefaultPayment
|
|
47398
|
-
}),
|
|
47399
|
-
childGap: "4px"
|
|
47400
|
-
}, showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
47275
|
+
}), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
47401
47276
|
name: "bank checkbox",
|
|
47402
|
-
title: "Save checking account to wallet
|
|
47277
|
+
title: "Save checking account to wallet",
|
|
47403
47278
|
checked: walletCheckboxMarked,
|
|
47404
47279
|
onChange: saveToWallet
|
|
47405
|
-
})
|
|
47406
|
-
singleChild: true
|
|
47407
|
-
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
47408
|
-
childGap: 0
|
|
47409
|
-
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
47410
|
-
variant: showTermsLinkVariant
|
|
47411
|
-
}, "View\xA0"), /*#__PURE__*/React.createElement(TermsAndConditionsModal$1, {
|
|
47412
|
-
link: termsTitle,
|
|
47413
|
-
linkVariant: showTermsLinkVariant,
|
|
47414
|
-
terms: termsContent,
|
|
47415
|
-
title: termsTitle,
|
|
47416
|
-
isOpen: termsModalOpen,
|
|
47417
|
-
toggleOpen: setTermsModalOpen
|
|
47418
|
-
}))))));
|
|
47280
|
+
})));
|
|
47419
47281
|
};
|
|
47420
47282
|
|
|
47421
47283
|
var formConfig$6 = {
|
|
@@ -47469,21 +47331,11 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
47469
47331
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
47470
47332
|
saveToWallet = _ref.saveToWallet,
|
|
47471
47333
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
47472
|
-
deniedCards = _ref.deniedCards
|
|
47473
|
-
termsContent = _ref.termsContent,
|
|
47474
|
-
_ref$termsTitle = _ref.termsTitle,
|
|
47475
|
-
termsTitle = _ref$termsTitle === void 0 ? "Terms & Conditions" : _ref$termsTitle;
|
|
47334
|
+
deniedCards = _ref.deniedCards;
|
|
47476
47335
|
|
|
47477
47336
|
var _useContext = useContext(ThemeContext),
|
|
47478
47337
|
isMobile = _useContext.isMobile;
|
|
47479
47338
|
|
|
47480
|
-
var _useState = useState(false),
|
|
47481
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
47482
|
-
termsModalOpen = _useState2[0],
|
|
47483
|
-
setTermsModalOpen = _useState2[1];
|
|
47484
|
-
|
|
47485
|
-
var showTerms = !!termsContent;
|
|
47486
|
-
var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
|
|
47487
47339
|
useEffect$1(function () {
|
|
47488
47340
|
if (deniedCards) {
|
|
47489
47341
|
deniedCards.map(function (card) {
|
|
@@ -47592,27 +47444,12 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
47592
47444
|
return e.key === "Enter" && handleSubmit(e);
|
|
47593
47445
|
},
|
|
47594
47446
|
autocomplete: "billing postal-code"
|
|
47595
|
-
})),
|
|
47596
|
-
childGap: "4px"
|
|
47597
|
-
}, showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
47447
|
+
})), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
47598
47448
|
name: "credit card checkbox",
|
|
47599
|
-
title: "Save credit card to wallet
|
|
47449
|
+
title: "Save credit card to wallet",
|
|
47600
47450
|
checked: walletCheckboxMarked,
|
|
47601
47451
|
onChange: saveToWallet
|
|
47602
|
-
})
|
|
47603
|
-
singleChild: true
|
|
47604
|
-
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
47605
|
-
childGap: 0
|
|
47606
|
-
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
47607
|
-
variant: showTermsLinkVariant
|
|
47608
|
-
}, "View\xA0"), /*#__PURE__*/React.createElement(TermsAndConditionsModal$1, {
|
|
47609
|
-
link: termsTitle,
|
|
47610
|
-
linkVariant: showTermsLinkVariant,
|
|
47611
|
-
terms: termsContent,
|
|
47612
|
-
title: termsTitle,
|
|
47613
|
-
isOpen: termsModalOpen,
|
|
47614
|
-
toggleOpen: setTermsModalOpen
|
|
47615
|
-
}))))));
|
|
47452
|
+
})));
|
|
47616
47453
|
};
|
|
47617
47454
|
|
|
47618
47455
|
var PaymentFormCard$1 = withWindowSize(PaymentFormCard);
|
|
@@ -47893,7 +47730,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
|
|
|
47893
47730
|
var bodyBackgroundColor$1 = "#eeeeee";
|
|
47894
47731
|
var borderColor$5 = "".concat(GREY_CHATEAU);
|
|
47895
47732
|
var focusStyles = "outline: none;";
|
|
47896
|
-
var fallbackValues$
|
|
47733
|
+
var fallbackValues$M = {
|
|
47897
47734
|
headingBackgroundColor: headingBackgroundColor$1,
|
|
47898
47735
|
headingDisabledColor: headingDisabledColor,
|
|
47899
47736
|
bodyBackgroundColor: bodyBackgroundColor$1,
|
|
@@ -48081,7 +47918,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48081
47918
|
})));
|
|
48082
47919
|
};
|
|
48083
47920
|
|
|
48084
|
-
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$
|
|
47921
|
+
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$M);
|
|
48085
47922
|
|
|
48086
47923
|
var RegistrationForm = function RegistrationForm(_ref) {
|
|
48087
47924
|
var _emailErrorMessages, _passwordErrorMessage;
|
|
@@ -48378,7 +48215,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
|
|
|
48378
48215
|
var activeTabBackground = "#FFFFFF";
|
|
48379
48216
|
var activeTabAccent = "#15749D";
|
|
48380
48217
|
var activeTabHover = "#B8D5E1";
|
|
48381
|
-
var fallbackValues$
|
|
48218
|
+
var fallbackValues$N = {
|
|
48382
48219
|
activeTabBackground: activeTabBackground,
|
|
48383
48220
|
activeTabAccent: activeTabAccent,
|
|
48384
48221
|
activeTabHover: activeTabHover
|
|
@@ -48457,12 +48294,12 @@ var Tabs = function Tabs(_ref) {
|
|
|
48457
48294
|
}))));
|
|
48458
48295
|
};
|
|
48459
48296
|
|
|
48460
|
-
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$
|
|
48297
|
+
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$N);
|
|
48461
48298
|
|
|
48462
48299
|
var activeTabBackground$1 = "#FFFFFF";
|
|
48463
48300
|
var activeTabAccent$1 = "#15749D";
|
|
48464
48301
|
var activeTabHover$1 = "#B8D5E1";
|
|
48465
|
-
var fallbackValues$
|
|
48302
|
+
var fallbackValues$O = {
|
|
48466
48303
|
activeTabBackground: activeTabBackground$1,
|
|
48467
48304
|
activeTabAccent: activeTabAccent$1,
|
|
48468
48305
|
activeTabHover: activeTabHover$1
|
|
@@ -48518,7 +48355,100 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
48518
48355
|
})));
|
|
48519
48356
|
};
|
|
48520
48357
|
|
|
48521
|
-
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");
|
|
48522
48452
|
|
|
48523
48453
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48524
48454
|
var onCheck = _ref.onCheck,
|
|
@@ -48526,8 +48456,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
48526
48456
|
html = _ref.html,
|
|
48527
48457
|
terms = _ref.terms,
|
|
48528
48458
|
_ref$error = _ref.error,
|
|
48529
|
-
error = _ref$error === void 0 ? false : _ref$error
|
|
48530
|
-
linkVariant = _ref.linkVariant;
|
|
48459
|
+
error = _ref$error === void 0 ? false : _ref$error;
|
|
48531
48460
|
|
|
48532
48461
|
var _useState = useState(false),
|
|
48533
48462
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -48548,8 +48477,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
48548
48477
|
link: "Learn More",
|
|
48549
48478
|
terms: terms,
|
|
48550
48479
|
isOpen: showTerms,
|
|
48551
|
-
toggleOpen: toggleShowTerms
|
|
48552
|
-
linkVariant: linkVariant
|
|
48480
|
+
toggleOpen: toggleShowTerms
|
|
48553
48481
|
})))));
|
|
48554
48482
|
};
|
|
48555
48483
|
|