@uoguelph/react-components 1.2.5 → 1.2.6

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/LICENSE.md ADDED
@@ -0,0 +1,13 @@
1
+ * Copyright (c) 2025 University of Guelph <websites@uoguelph.ca>
2
+ *
3
+ * Permission to use, copy, modify, and distribute this software for any
4
+ * purpose with or without fee is hereby granted, provided that the above
5
+ * copyright notice and this permission notice appear in all copies.
6
+ *
7
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -1,11 +1,6 @@
1
1
  import { ComponentPropsWithoutRef, ElementType } from 'react';
2
2
  declare const defaultCardImageElement = "img";
3
- type CardImageElementType = ElementType<{
4
- src: string;
5
- alt: string;
6
- width?: string;
7
- height?: string;
8
- }, 'img'>;
3
+ type CardImageElementType = ElementType;
9
4
  export type CardImageProps<T extends CardImageElementType = typeof defaultCardImageElement> = {
10
5
  /**
11
6
  * The element to render the image as
@@ -5,13 +5,7 @@ import { HeroLink } from './hero-link';
5
5
  import { HeroTitle } from './hero-title';
6
6
  import { HeroVideo } from './hero-video';
7
7
  declare const defaultElement = "img";
8
- type HeroElementType = ElementType<{
9
- src: string;
10
- alt: string;
11
- height?: number;
12
- width?: number;
13
- className?: string;
14
- }, 'img'>;
8
+ type HeroElementType = ElementType;
15
9
  export type HeroProps<T extends HeroElementType = typeof defaultElement> = PropsWithChildren<{
16
10
  /**
17
11
  * The element type to render the hero image as
@@ -1,12 +1,6 @@
1
1
  import { ComponentPropsWithoutRef, ElementType, PropsWithChildren } from 'react';
2
2
  declare const defaultElement = "img";
3
- type ImageOverlayElementType = ElementType<{
4
- src: string;
5
- alt: string;
6
- height?: number;
7
- width?: number;
8
- className?: string;
9
- }, 'img'>;
3
+ type ImageOverlayElementType = ElementType;
10
4
  export type ImageOverlayProps<T extends ImageOverlayElementType = typeof defaultElement> = PropsWithChildren<{
11
5
  /**
12
6
  * The element type to render as.
@@ -1,12 +1,6 @@
1
1
  import { ComponentPropsWithoutRef, ElementType, PropsWithChildren } from 'react';
2
- import { EmbeddedVideo } from '../embedded-video/embedded-video';
3
2
  declare const defaultElement = "img";
4
- type MediaCaptionElementType = ElementType<{
5
- src: string;
6
- alt?: string;
7
- height?: number;
8
- width?: number;
9
- }, 'img'> | typeof EmbeddedVideo;
3
+ type MediaCaptionElementType = ElementType;
10
4
  type MediaCaptionPropsAs<T extends MediaCaptionElementType> = {
11
5
  as?: T;
12
6
  };
@@ -1,11 +1,6 @@
1
1
  import { ComponentPropsWithoutRef, ElementType } from 'react';
2
2
  declare const defaultElement = "img";
3
- type StatisticsItemImageElementType = ElementType<{
4
- src: string;
5
- alt: string;
6
- width?: string;
7
- height?: string;
8
- }, 'img'>;
3
+ type StatisticsItemImageElementType = ElementType;
9
4
  export type StatisticsItemImageProps<T extends StatisticsItemImageElementType = typeof defaultElement> = {
10
5
  /**
11
6
  * The element to render the image as
@@ -1,11 +1,6 @@
1
1
  import { ComponentPropsWithoutRef, ElementType } from 'react';
2
2
  declare const defaultElement = "img";
3
- type StoryBackgroundImageElementType = ElementType<{
4
- src: string;
5
- alt: string;
6
- width?: string;
7
- height?: string;
8
- }, 'img'>;
3
+ type StoryBackgroundImageElementType = ElementType;
9
4
  export type StoryBackgroundImageProps<T extends StoryBackgroundImageElementType = typeof defaultElement> = {
10
5
  /**
11
6
  * The element to render the image as
@@ -1,11 +1,6 @@
1
1
  import { ComponentPropsWithoutRef, ElementType } from 'react';
2
2
  declare const defaultElement = "img";
3
- type StoryForegroundImageElementType = ElementType<{
4
- src: string;
5
- alt: string;
6
- width?: string;
7
- height?: string;
8
- }, 'img'>;
3
+ type StoryForegroundImageElementType = ElementType;
9
4
  export type StoryForegroundImageProps<T extends StoryForegroundImageElementType = typeof defaultElement> = {
10
5
  /**
11
6
  * The element to render the image as
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uoguelph/react-components",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "University of Guelph React Components Library",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -84,5 +84,5 @@
84
84
  "bugs": {
85
85
  "url": "https://github.com/ccswbs/uofg-components/issues"
86
86
  },
87
- "gitHead": "f688888837675197db25465924a86e3e788498ea"
87
+ "gitHead": "37abd365fd2b2478bc5b40b357589594771598c4"
88
88
  }