@landtrustinc/design-system 1.2.51-beta.2 → 1.2.51

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.d.ts CHANGED
@@ -1502,6 +1502,11 @@ type CtaCardProps = {
1502
1502
  * Button URL/href
1503
1503
  */
1504
1504
  ctaUrl: string;
1505
+ /**
1506
+ * Whether to open the CTA link in a new tab
1507
+ * @default false
1508
+ */
1509
+ ctaOpenInNewTab?: boolean;
1505
1510
  /**
1506
1511
  * Callback fired when the CTA card is displayed/rendered
1507
1512
  * Useful for analytics tracking
package/dist/index.js CHANGED
@@ -6892,6 +6892,7 @@ var CtaCard = ({
6892
6892
  description,
6893
6893
  ctaLabel,
6894
6894
  ctaUrl,
6895
+ ctaOpenInNewTab = false,
6895
6896
  onDisplay,
6896
6897
  onCtaClick,
6897
6898
  className
@@ -6910,6 +6911,8 @@ var CtaCard = ({
6910
6911
  variant: "primary",
6911
6912
  size: "base",
6912
6913
  onClick: onCtaClick,
6914
+ target: ctaOpenInNewTab ? "_blank" : void 0,
6915
+ rel: ctaOpenInNewTab ? "noopener noreferrer" : void 0,
6913
6916
  children: ctaLabel
6914
6917
  }
6915
6918
  ) })