@uoguelph/react-components 1.6.0-rc.5 → 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.
- package/dist/components/card/card-image.d.ts +2 -2
- package/dist/components/hero/hero.d.ts +2 -2
- package/dist/components/image-overlay/image-overlay.d.ts +4 -4
- package/dist/components/statistics/statistics-item-image.d.ts +2 -2
- package/dist/components/story/story-background-image.d.ts +2 -2
- package/dist/components/story/story-foreground-image.d.ts +2 -2
- package/dist/modal.js +1 -1
- package/package.json +2 -2
|
@@ -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?:
|
|
16
|
+
width?: `${number}` | number;
|
|
17
17
|
/** The height of the image in pixels */
|
|
18
|
-
height?:
|
|
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
|
|
16
|
-
width?: number;
|
|
17
|
-
/** The image
|
|
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?:
|
|
16
|
+
width?: `${number}` | number;
|
|
17
17
|
/** The height of the image in pixels */
|
|
18
|
-
height?:
|
|
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?:
|
|
16
|
+
width?: `${number}` | number;
|
|
17
17
|
/** The height of the image in pixels */
|
|
18
|
-
height?:
|
|
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?:
|
|
16
|
+
width?: `${number}` | number;
|
|
17
17
|
/** The height of the image in pixels */
|
|
18
|
-
height?:
|
|
18
|
+
height?: `${number}` | number;
|
|
19
19
|
/** Additional classes to apply to the component. */
|
|
20
20
|
className?: string;
|
|
21
21
|
} & ComponentPropsWithoutRef<T>;
|
package/dist/modal.js
CHANGED
|
@@ -13,7 +13,7 @@ function N({ open: r, onClose: o = () => {
|
|
|
13
13
|
wrapper: "fixed inset-0 flex w-screen justify-center md:p-6",
|
|
14
14
|
panelWrapper: "relative flex w-full flex-col items-center",
|
|
15
15
|
panel: "relative",
|
|
16
|
-
closeButton: "-top-3.5 -right-3.5 flex h-9 w-full items-center justify-center gap-1 border
|
|
16
|
+
closeButton: "-top-3.5 -right-3.5 flex h-9 w-full items-center justify-center gap-1 border border-white/40 bg-grey-dark-bg text-xl text-white transition-colors hover:bg-red md:absolute md:w-9 md:rounded-full"
|
|
17
17
|
},
|
|
18
18
|
variants: {
|
|
19
19
|
centered: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uoguelph/react-components",
|
|
3
|
-
"version": "1.6.0-rc.
|
|
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": "
|
|
81
|
+
"gitHead": "5175082e5ba9bc5268a85820e6b6c60a25ec79be"
|
|
82
82
|
}
|