@uoguelph/react-components 1.6.0-rc.6 → 1.6.0-rc.7

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.
@@ -13,9 +13,9 @@ export type CardImageProps<T extends CardImageElementType = typeof defaultCardIm
13
13
  /** An accessible description of the image, used primarily for screen readers */
14
14
  alt: string;
15
15
  /** The width of the image in pixels */
16
- width?: string;
16
+ width?: `${number}` | number;
17
17
  /** The height of the image in pixels */
18
- height?: string;
18
+ height?: `${number}` | number;
19
19
  /** Additional classes to apply to the image */
20
20
  className?: string;
21
21
  } & ComponentPropsWithoutRef<T>;
@@ -24,9 +24,9 @@ export type HeroProps<T extends HeroElementType = typeof defaultElement> = Props
24
24
  /** The alt text for the image */
25
25
  alt: string;
26
26
  /** The width of the image in pixels */
27
- width?: number;
27
+ width?: `${number}` | number;
28
28
  /** The height of the image in pixels */
29
- height?: number;
29
+ height?: `${number}` | number;
30
30
  /**
31
31
  * The alignment of the hero content, only applies to the spotlight variant
32
32
  *
@@ -12,10 +12,10 @@ export type ImageOverlayProps<T extends ImageOverlayElementType = typeof default
12
12
  src: string;
13
13
  /** The image alt text. */
14
14
  alt: string;
15
- /** The image width in pixels. */
16
- width?: number;
17
- /** The image height in pixels. */
18
- height?: number;
15
+ /** The width of the image in pixels */
16
+ width?: `${number}` | number;
17
+ /** The height of the image in pixels */
18
+ height?: `${number}` | number;
19
19
  /** Additional classes to apply to the image. */
20
20
  className?: string;
21
21
  /**
@@ -13,9 +13,9 @@ export type StatisticsItemImageProps<T extends StatisticsItemImageElementType =
13
13
  /** An accessible description of the image, used primarily for screen readers */
14
14
  alt: string;
15
15
  /** The width of the image in pixels */
16
- width?: string;
16
+ width?: `${number}` | number;
17
17
  /** The height of the image in pixels */
18
- height?: string;
18
+ height?: `${number}` | number;
19
19
  /** Additional classes to apply to the image */
20
20
  className?: string;
21
21
  } & ComponentPropsWithoutRef<T>;
@@ -13,9 +13,9 @@ export type StoryBackgroundImageProps<T extends StoryBackgroundImageElementType
13
13
  /** An accessible description of the image, used primarily for screen readers */
14
14
  alt: string;
15
15
  /** The width of the image in pixels */
16
- width?: string;
16
+ width?: `${number}` | number;
17
17
  /** The height of the image in pixels */
18
- height?: string;
18
+ height?: `${number}` | number;
19
19
  /** Additional classes to apply to the component. */
20
20
  className?: string;
21
21
  } & ComponentPropsWithoutRef<T>;
@@ -13,9 +13,9 @@ export type StoryForegroundImageProps<T extends StoryForegroundImageElementType
13
13
  /** An accessible description of the image, used primarily for screen readers */
14
14
  alt: string;
15
15
  /** The width of the image in pixels */
16
- width?: string;
16
+ width?: `${number}` | number;
17
17
  /** The height of the image in pixels */
18
- height?: string;
18
+ height?: `${number}` | number;
19
19
  /** Additional classes to apply to the component. */
20
20
  className?: string;
21
21
  } & ComponentPropsWithoutRef<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uoguelph/react-components",
3
- "version": "1.6.0-rc.6",
3
+ "version": "1.6.0-rc.7",
4
4
  "description": "University of Guelph React Components Library",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -78,5 +78,5 @@
78
78
  "bugs": {
79
79
  "url": "https://github.com/ccswbs/uofg-components/issues"
80
80
  },
81
- "gitHead": "c2ab871bf9ac3a1133a8e0111e5a50d25dc43f9e"
81
+ "gitHead": "5175082e5ba9bc5268a85820e6b6c60a25ec79be"
82
82
  }