@axos-web-dev/shared-components 0.0.219 → 0.0.220

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.
@@ -24,4 +24,5 @@ export interface HyperlinkProps extends PropsWithChildren {
24
24
  variant?: string;
25
25
  role?: string;
26
26
  newTab?: boolean;
27
+ noFollow?: boolean;
27
28
  }
@@ -120,7 +120,8 @@ const Hyperlink = ({
120
120
  ariaLabel,
121
121
  variant = "default",
122
122
  role,
123
- newTab
123
+ newTab,
124
+ noFollow
124
125
  }) => {
125
126
  const hyperlink_variant = variant.toLowerCase();
126
127
  const { setTargetLinkUrl, setOpenModal } = useGlobalContext();
@@ -148,6 +149,7 @@ const Hyperlink = ({
148
149
  onClick,
149
150
  "aria-label": ariaLabel,
150
151
  target: newTab ? "_blank" : "_self",
152
+ ...noFollow && { rel: "nofollow" },
151
153
  children
152
154
  }
153
155
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@axos-web-dev/shared-components",
3
3
  "description": "Axos shared components library for web.",
4
- "version": "0.0.219",
4
+ "version": "0.0.220",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",