@uoguelph/react-components 1.2.6 → 1.2.7-rc.0

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.
@@ -1,8 +1,6 @@
1
1
  import { ComponentPropsWithoutRef, ElementType, PropsWithChildren } from 'react';
2
2
  export declare const defaultBreadcrumbElement = "a";
3
- export type BreadcrumbElementType = ElementType<{
4
- href?: string;
5
- }, 'a'>;
3
+ export type BreadcrumbElementType = ElementType;
6
4
  export type BreadcrumbProps<T extends BreadcrumbElementType = typeof defaultBreadcrumbElement> = PropsWithChildren<{
7
5
  /**
8
6
  * The element to render the breadcrumb as
@@ -1,8 +1,6 @@
1
1
  import { ComponentPropsWithoutRef, ElementType, PropsWithChildren } from 'react';
2
2
  declare const defaultElement = "button";
3
- type ButtonElementType = ElementType<{
4
- href?: string;
5
- }, 'a'> | 'button';
3
+ type ButtonElementType = ElementType | 'button';
6
4
  type ButtonPropsAs<T extends ButtonElementType> = {
7
5
  as?: T;
8
6
  };
@@ -4,9 +4,7 @@ import { CardFooter } from './card-footer';
4
4
  import { CardImage } from './card-image';
5
5
  import { CardTitle } from './card-title';
6
6
  declare const defaultElement = "div";
7
- type CardElementType = ElementType<{
8
- href?: string;
9
- }, 'a'> | 'div' | 'article';
7
+ type CardElementType = ElementType | 'div' | 'article';
10
8
  export type CardProps<T extends CardElementType = typeof defaultElement> = PropsWithChildren<{
11
9
  /** The element to render the card as */
12
10
  as?: T;
@@ -1,7 +1,5 @@
1
1
  import { ElementType, PropsWithChildren } from 'react';
2
- export type HeroLinkElementType = ElementType<{
3
- href?: string;
4
- }, 'a'>;
2
+ export type HeroLinkElementType = ElementType;
5
3
  export type HeroLinkProps<T extends HeroLinkElementType = 'a'> = PropsWithChildren<{
6
4
  /**
7
5
  * The element type to render the link as
@@ -1,8 +1,6 @@
1
1
  import { ComponentPropsWithoutRef, ElementType, PropsWithChildren } from 'react';
2
2
  declare const defaultElement = "a";
3
- type LinkElementType = ElementType<{
4
- href?: string;
5
- }, 'a'>;
3
+ type LinkElementType = ElementType;
6
4
  type LinkPropsAs<T extends LinkElementType> = {
7
5
  as?: T;
8
6
  };
@@ -1,9 +1,7 @@
1
1
  import { ElementType, PropsWithChildren } from 'react';
2
2
  import { LinkCarouselId } from './link-carousel-context';
3
3
  declare const defaultElement = "a";
4
- export type LinkCarouselLinkElementType = ElementType<{
5
- href?: string;
6
- }, 'a'>;
4
+ export type LinkCarouselLinkElementType = ElementType;
7
5
  export type LinkCarouselLinkProps<T extends LinkCarouselLinkElementType = typeof defaultElement> = PropsWithChildren<{
8
6
  /**
9
7
  * The element-type to render as.
@@ -1,8 +1,6 @@
1
1
  import { ComponentPropsWithoutRef, ElementType, PropsWithChildren } from 'react';
2
2
  declare const defaultElement = "a";
3
- type NavigationLinkElementType = ElementType<{
4
- href?: string;
5
- }, 'a'>;
3
+ type NavigationLinkElementType = ElementType;
6
4
  export type NavigationLinkProps<T extends NavigationLinkElementType = typeof defaultElement> = PropsWithChildren<{
7
5
  /** The element to render the link as */
8
6
  as?: T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uoguelph/react-components",
3
- "version": "1.2.6",
3
+ "version": "1.2.7-rc.0",
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": "37abd365fd2b2478bc5b40b357589594771598c4"
87
+ "gitHead": "017d17d201f812a2b86f2c186378af9e6a079fcb"
88
88
  }