@elliemae/ds-typography 3.13.1-rc.1 → 3.13.1

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.
@@ -0,0 +1,4 @@
1
+ export declare const DSTypographyName = "DSTypography";
2
+ export declare const DSTypographyDataTestId: {
3
+ TYPOGRAPHY_ELEMENT: string;
4
+ };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { type DSTypographyT } from './react-desc-prop-types';
3
+ declare const DSTypography: React.ComponentType<DSTypographyT.Props>;
4
+ declare const DSTypographyWithSchema: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").DocumentedReactComponent<DSTypographyT.Props>;
5
+ export { DSTypography, DSTypographyWithSchema };
@@ -0,0 +1,4 @@
1
+ import type { DSTypographyT } from '../react-desc-prop-types';
2
+ export declare const useDefaultProps: ({ variant, as: userAs }: DSTypographyT.Props) => {
3
+ as: keyof JSX.IntrinsicElements;
4
+ };
@@ -0,0 +1,9 @@
1
+ import type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-utilities';
2
+ import type { DSTypographyT } from '../react-desc-prop-types';
3
+ interface UseTypographyT {
4
+ propsWithDefault: DSTypographyT.InternalProps;
5
+ globalAttributes: GlobalAttributesT;
6
+ xstyledProps: XstyledProps;
7
+ }
8
+ export declare const useTypography: (props: DSTypographyT.Props) => UseTypographyT;
9
+ export {};
@@ -0,0 +1 @@
1
+ export { DSTypography, DSTypographyWithSchema } from './Typography';
@@ -0,0 +1,17 @@
1
+ import type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-utilities';
2
+ import type { FontSizeProps, ColorProps } from '@elliemae/ds-system';
3
+ import type { WeakValidationMap } from 'react';
4
+ export declare namespace DSTypographyT {
5
+ type Ivariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'b1' | 'b2' | 'b3' | 'b4';
6
+ interface IProps {
7
+ variant: Ivariant;
8
+ as?: keyof JSX.IntrinsicElements;
9
+ children: React.ReactNode | React.ReactNode[];
10
+ }
11
+ interface Props extends IProps, Omit<GlobalAttributesT<HTMLElement>, keyof IProps | 'color'>, XstyledProps, FontSizeProps, ColorProps {
12
+ }
13
+ interface InternalProps extends Props {
14
+ as: keyof JSX.IntrinsicElements;
15
+ }
16
+ }
17
+ export declare const DSTypographyPropTypes: WeakValidationMap<unknown>;
@@ -0,0 +1,44 @@
1
+ import type { DSTypographyT } from './react-desc-prop-types';
2
+ export declare const styleMap: {
3
+ h1: {
4
+ fontSize: string;
5
+ lineHeight: string;
6
+ };
7
+ h2: {
8
+ fontSize: string;
9
+ lineHeight: string;
10
+ };
11
+ h3: {
12
+ fontSize: string;
13
+ lineHeight: string;
14
+ };
15
+ h4: {
16
+ fontSize: string;
17
+ lineHeight: string;
18
+ };
19
+ h5: {
20
+ fontSize: string;
21
+ lineHeight: string;
22
+ };
23
+ b1: {
24
+ fontSize: string;
25
+ lineHeight: string;
26
+ };
27
+ b2: {
28
+ fontSize: string;
29
+ lineHeight: string;
30
+ };
31
+ b3: {
32
+ fontSize: string;
33
+ lineHeight: string;
34
+ };
35
+ b4: {
36
+ fontSize: string;
37
+ lineHeight: string;
38
+ };
39
+ };
40
+ type StyleIProp = DSTypographyT.InternalProps & {
41
+ children: DSTypographyT.InternalProps['children'];
42
+ };
43
+ export declare const StyledTypography: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, StyleIProp, never>;
44
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-typography",
3
- "version": "3.13.1-rc.1",
3
+ "version": "3.13.1",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Typography",
6
6
  "files": [
@@ -35,8 +35,8 @@
35
35
  "indent": 4
36
36
  },
37
37
  "dependencies": {
38
- "@elliemae/ds-system": "3.13.1-rc.1",
39
- "@elliemae/ds-utilities": "3.13.1-rc.1"
38
+ "@elliemae/ds-system": "3.13.1",
39
+ "@elliemae/ds-utilities": "3.13.1"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@testing-library/jest-dom": "~5.16.4",