@thecb/components 7.8.3-beta.1 → 7.8.3-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 +10 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +10 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/payment-form-ach/PaymentFormACH.js +3 -1
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +3 -1
- package/src/components/molecules/payment-form-card/index.d.ts +21 -0
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.stories.js +10 -0
package/dist/index.cjs.js
CHANGED
|
@@ -47271,6 +47271,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47271
47271
|
setTermsModalOpen = _useState6[1];
|
|
47272
47272
|
|
|
47273
47273
|
var showTerms = !!termsContent;
|
|
47274
|
+
var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
|
|
47274
47275
|
|
|
47275
47276
|
var nameErrors = _defineProperty({}, required.error, "Name is required");
|
|
47276
47277
|
|
|
@@ -47391,8 +47392,11 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47391
47392
|
singleChild: true
|
|
47392
47393
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47393
47394
|
childGap: 0
|
|
47394
|
-
}, /*#__PURE__*/React__default.createElement(Text$1,
|
|
47395
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47396
|
+
variant: showTermsLinkVariant
|
|
47397
|
+
}, "View\xA0"), /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
|
|
47395
47398
|
link: termsTitle,
|
|
47399
|
+
linkVariant: showTermsLinkVariant,
|
|
47396
47400
|
terms: termsContent,
|
|
47397
47401
|
title: termsTitle,
|
|
47398
47402
|
isOpen: termsModalOpen,
|
|
@@ -47465,6 +47469,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
47465
47469
|
setTermsModalOpen = _useState2[1];
|
|
47466
47470
|
|
|
47467
47471
|
var showTerms = !!termsContent;
|
|
47472
|
+
var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
|
|
47468
47473
|
React.useEffect(function () {
|
|
47469
47474
|
if (deniedCards) {
|
|
47470
47475
|
deniedCards.map(function (card) {
|
|
@@ -47584,8 +47589,11 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
47584
47589
|
singleChild: true
|
|
47585
47590
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47586
47591
|
childGap: 0
|
|
47587
|
-
}, /*#__PURE__*/React__default.createElement(Text$1,
|
|
47592
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47593
|
+
variant: showTermsLinkVariant
|
|
47594
|
+
}, "View\xA0"), /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
|
|
47588
47595
|
link: termsTitle,
|
|
47596
|
+
linkVariant: showTermsLinkVariant,
|
|
47589
47597
|
terms: termsContent,
|
|
47590
47598
|
title: termsTitle,
|
|
47591
47599
|
isOpen: termsModalOpen,
|