@axos-web-dev/shared-components 1.0.65 → 1.0.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.
@@ -3,13 +3,13 @@ import { PropsWithChildren } from 'react';
3
3
  export interface ImageLinkProps extends PropsWithChildren {
4
4
  id: string;
5
5
  internalName: string;
6
- title?: string;
7
6
  targetUrl?: string;
8
7
  image: {
9
8
  url: string;
10
9
  width?: string | number;
11
10
  heigth?: string | number;
11
+ altText?: string;
12
12
  };
13
13
  }
14
- declare const ImageLink: ({ id, image, title, targetUrl, children, }: ImageLinkProps) => import("react/jsx-runtime").JSX.Element;
14
+ declare const ImageLink: ({ id, image, targetUrl, children }: ImageLinkProps) => import("react/jsx-runtime").JSX.Element;
15
15
  export default ImageLink;
@@ -120,18 +120,12 @@ import "next/script.js";
120
120
  /* empty css */
121
121
  import "../HeroBanner/LargeBanner.css.js";
122
122
  import "../HeroBanner/SelectionBanner.css.js";
123
- const ImageLink = ({
124
- id,
125
- image,
126
- title,
127
- targetUrl,
128
- children
129
- }) => {
123
+ const ImageLink = ({ id, image, targetUrl, children }) => {
130
124
  const withTargeturl = targetUrl !== void 0 ? /* @__PURE__ */ jsx(Hyperlink, { targetUrl, children: /* @__PURE__ */ jsx(
131
125
  "img",
132
126
  {
133
127
  src: image.url,
134
- alt: title,
128
+ alt: image.altText,
135
129
  height: image.heigth,
136
130
  width: image.width
137
131
  }
@@ -139,7 +133,7 @@ const ImageLink = ({
139
133
  "img",
140
134
  {
141
135
  src: image.url,
142
- alt: title,
136
+ alt: image.altText,
143
137
  height: image.heigth,
144
138
  width: image.width
145
139
  }
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": "1.0.65",
4
+ "version": "1.0.66",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",