ctc-component-library 0.1.76 → 0.1.78

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,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TypographyProps } from './types';
3
- type PolymorphicProps<E extends React.ElementType> = TypographyProps & {
4
- asTag?: E;
5
- } & Omit<React.ComponentPropsWithoutRef<E>, keyof TypographyProps>;
6
- export declare const Typography: React.ForwardRefExoticComponent<Omit<PolymorphicProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<HTMLElement>>;
7
- export {};
3
+ export declare const Typography: React.ForwardRefExoticComponent<{
4
+ asTag?: string | undefined;
5
+ } & TypographyProps & {
6
+ children?: React.ReactNode;
7
+ } & React.RefAttributes<HTMLElement>>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export interface TypographyProps {
2
+ export interface TypographyProps extends React.HTMLAttributes<HTMLElement> {
3
3
  /**
4
4
  *
5
5
  * h1 - font-family: "Roca One", serif; font-weight: lighter; font-size: 56px; letter-spacing: 0,2px; line-height: 60px
@@ -30,10 +30,9 @@ export interface TypographyProps {
30
30
  *
31
31
  */
32
32
  variant: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'body1' | 'body2' | 'body3' | 'body4' | 'body5' | 'body6' | 'button1' | 'button2';
33
- className?: string;
34
33
  dataTestid?: string;
35
34
  underline?: boolean;
36
- children: React.ReactNode;
35
+ className?: string;
37
36
  customStyles?: React.CSSProperties;
38
37
  bolder?: boolean;
39
38
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ctc-component-library",
3
3
  "private": false,
4
- "version": "0.1.76",
4
+ "version": "0.1.78",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",