odaptos_design_system 1.4.65 → 1.4.66

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.
@@ -10,7 +10,8 @@ interface TextWithLinkProps extends HTMLAttributes<HTMLParagraphElement> {
10
10
  className?: string;
11
11
  textLink: string;
12
12
  link: string;
13
+ isExternalLink?: boolean;
13
14
  }
14
15
  /** This text should be use to display basic text */
15
- export declare const TextWithLink: ({ text, color, size, weight, italic, textDecoration, className, textLink, link, ...props }: TextWithLinkProps) => React.JSX.Element;
16
+ export declare const TextWithLink: ({ text, color, size, weight, italic, textDecoration, className, textLink, link, isExternalLink, ...props }: TextWithLinkProps) => React.JSX.Element;
16
17
  export {};
@@ -7844,6 +7844,7 @@ const TextWithLink = ({
7844
7844
  className,
7845
7845
  textLink,
7846
7846
  link,
7847
+ isExternalLink = true,
7847
7848
  ...props
7848
7849
  }) => {
7849
7850
  const getTextSize = () => {
@@ -7860,7 +7861,11 @@ const TextWithLink = ({
7860
7861
  color: color
7861
7862
  },
7862
7863
  className: `${styles$m.text_with_link} ${italic && styles$m.text_with_link_italic} ${getTextWeight()} ${getTextDecoration()} ${className} ${getTextSize()}`
7863
- }), text, /*#__PURE__*/React__default.createElement("a", {
7864
+ }), text, isExternalLink ? /*#__PURE__*/React__default.createElement("a", {
7865
+ href: link,
7866
+ target: "_blank",
7867
+ rel: "noreferrer"
7868
+ }, textLink) : /*#__PURE__*/React__default.createElement("a", {
7864
7869
  href: link
7865
7870
  }, textLink));
7866
7871
  };