@goodhood-web/ui 2.0.0-development.2 → 2.0.0-development.3

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,3 +1,3 @@
1
1
  import { TypographyProps } from './Typography.types';
2
- declare function Typography({ as, children, className, type }: TypographyProps): import("react/jsx-runtime").JSX.Element;
2
+ declare function Typography({ as, children, className, fontSet, type, }: TypographyProps): import("react/jsx-runtime").JSX.Element;
3
3
  export default Typography;
@@ -1,8 +1,19 @@
1
1
  import { JSX, ReactNode } from 'react';
2
- export type TypographyType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h7' | 'h8' | 'body-large' | 'body-regular' | 'body-semibold' | 'body-italic' | 'body-text-link' | 'detail-medium' | 'detail-bold' | 'detail-upper-case' | 'detail-regular';
3
- export interface TypographyProps {
2
+ export type TypographyTypeLanding = 'claim' | 'claim-uppercase' | 'h1' | 'h1-uppercase' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'overline';
3
+ export type TypographyTypeProduct = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h7' | 'h8' | 'body-large' | 'body-regular' | 'body-semibold' | 'body-italic' | 'body-text-link' | 'detail-medium' | 'detail-bold' | 'detail-upper-case' | 'detail-regular';
4
+ export interface TypographyBaseProps {
4
5
  as?: Extract<keyof JSX.IntrinsicElements, 'span' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'>;
5
6
  children: ReactNode;
6
7
  className?: string;
7
- type: TypographyType;
8
+ fontSet?: 'product' | 'landing';
8
9
  }
10
+ interface TypographyProduct extends TypographyBaseProps {
11
+ fontSet?: 'product';
12
+ type: TypographyTypeProduct;
13
+ }
14
+ interface TypographyLanding extends TypographyBaseProps {
15
+ fontSet: 'landing';
16
+ type: TypographyTypeLanding;
17
+ }
18
+ export type TypographyProps = TypographyProduct | TypographyLanding;
19
+ export {};
@@ -1,12 +1,12 @@
1
1
  import { ReactElement, ReactNode } from 'react';
2
2
  import { IconButtonProps } from '../../../Atoms/Buttons/IconButton/IconButton.types';
3
3
  import { IconProps } from '../../../Base/Icon/Icon.types';
4
- import { TypographyProps } from '../../../Base/Typography/Typography.types';
4
+ import { TypographyProps, TypographyTypeProduct } from '../../../Base/Typography/Typography.types';
5
5
  export type CardHeaderProps = {
6
6
  as?: Exclude<TypographyProps['as'], 'h1' | 'p' | 'span'>;
7
7
  className?: string;
8
8
  headline: string;
9
9
  leftElement?: ReactElement<IconProps | IconButtonProps>;
10
10
  rightElement?: ReactElement<IconButtonProps> | ReactNode;
11
- type?: Exclude<TypographyProps['type'], 'h1'>;
11
+ type?: Exclude<TypographyTypeProduct, 'h1'>;
12
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "2.0.0-development.2",
3
+ "version": "2.0.0-development.3",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",