@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.esm.js CHANGED
@@ -47263,6 +47263,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47263
47263
  setTermsModalOpen = _useState6[1];
47264
47264
 
47265
47265
  var showTerms = !!termsContent;
47266
+ var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
47266
47267
 
47267
47268
  var nameErrors = _defineProperty({}, required.error, "Name is required");
47268
47269
 
@@ -47383,8 +47384,11 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47383
47384
  singleChild: true
47384
47385
  }, /*#__PURE__*/React.createElement(Cluster, {
47385
47386
  childGap: 0
47386
- }, /*#__PURE__*/React.createElement(Text$1, null, "View\xA0"), /*#__PURE__*/React.createElement(TermsAndConditionsModal$1, {
47387
+ }, /*#__PURE__*/React.createElement(Text$1, {
47388
+ variant: showTermsLinkVariant
47389
+ }, "View\xA0"), /*#__PURE__*/React.createElement(TermsAndConditionsModal$1, {
47387
47390
  link: termsTitle,
47391
+ linkVariant: showTermsLinkVariant,
47388
47392
  terms: termsContent,
47389
47393
  title: termsTitle,
47390
47394
  isOpen: termsModalOpen,
@@ -47457,6 +47461,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
47457
47461
  setTermsModalOpen = _useState2[1];
47458
47462
 
47459
47463
  var showTerms = !!termsContent;
47464
+ var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
47460
47465
  useEffect$1(function () {
47461
47466
  if (deniedCards) {
47462
47467
  deniedCards.map(function (card) {
@@ -47576,8 +47581,11 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
47576
47581
  singleChild: true
47577
47582
  }, /*#__PURE__*/React.createElement(Cluster, {
47578
47583
  childGap: 0
47579
- }, /*#__PURE__*/React.createElement(Text$1, null, "View\xA0"), /*#__PURE__*/React.createElement(TermsAndConditionsModal$1, {
47584
+ }, /*#__PURE__*/React.createElement(Text$1, {
47585
+ variant: showTermsLinkVariant
47586
+ }, "View\xA0"), /*#__PURE__*/React.createElement(TermsAndConditionsModal$1, {
47580
47587
  link: termsTitle,
47588
+ linkVariant: showTermsLinkVariant,
47581
47589
  terms: termsContent,
47582
47590
  title: termsTitle,
47583
47591
  isOpen: termsModalOpen,