@dfds-ui/typography 2.0.29-alpha.87e7918e → 2.0.29-alpha.9a0ea182
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/Text.d.ts +1 -1
- package/Typography.d.ts +2 -2
- package/cjs/Text.d.ts +1 -1
- package/cjs/Typography.d.ts +2 -2
- package/cjs/styles.d.ts +16 -16
- package/package.json +4 -4
- package/styles.d.ts +16 -16
package/Text.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementType, FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { typography } from './styles';
|
|
3
|
-
|
|
3
|
+
type StyledAs = keyof typeof typography;
|
|
4
4
|
declare const Text: FunctionComponent<{
|
|
5
5
|
as?: ElementType;
|
|
6
6
|
styledAs?: StyledAs;
|
package/Typography.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ElementType, ReactNode } from 'react';
|
|
1
|
+
import React, { ElementType, ReactNode } from 'react';
|
|
2
2
|
export interface TypographyProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
as?: ElementType;
|
|
6
6
|
}
|
|
7
|
-
export declare const Typography: ({ className, as, ...rest }: TypographyProps) => JSX.Element;
|
|
7
|
+
export declare const Typography: ({ className, as, ...rest }: TypographyProps) => React.JSX.Element;
|
|
8
8
|
export default Typography;
|
package/cjs/Text.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementType, FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { typography } from './styles';
|
|
3
|
-
|
|
3
|
+
type StyledAs = keyof typeof typography;
|
|
4
4
|
declare const Text: FunctionComponent<{
|
|
5
5
|
as?: ElementType;
|
|
6
6
|
styledAs?: StyledAs;
|
package/cjs/Typography.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ElementType, ReactNode } from 'react';
|
|
1
|
+
import React, { ElementType, ReactNode } from 'react';
|
|
2
2
|
export interface TypographyProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
as?: ElementType;
|
|
6
6
|
}
|
|
7
|
-
export declare const Typography: ({ className, as, ...rest }: TypographyProps) => JSX.Element;
|
|
7
|
+
export declare const Typography: ({ className, as, ...rest }: TypographyProps) => React.JSX.Element;
|
|
8
8
|
export default Typography;
|
package/cjs/styles.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export declare const typography: {
|
|
2
|
-
heroHeadline: import("@emotion/
|
|
3
|
-
sectionHeadline: import("@emotion/
|
|
4
|
-
subHeadline: import("@emotion/
|
|
5
|
-
smallHeadline: import("@emotion/
|
|
6
|
-
body: import("@emotion/
|
|
7
|
-
bodyBold: import("@emotion/
|
|
8
|
-
bodyInterface: import("@emotion/
|
|
9
|
-
bodyInterfaceBold: import("@emotion/
|
|
10
|
-
bodyInterfaceSmall: import("@emotion/
|
|
11
|
-
bodyInterfaceSmallBold: import("@emotion/
|
|
12
|
-
label: import("@emotion/
|
|
13
|
-
labelBold: import("@emotion/
|
|
14
|
-
labelSmall: import("@emotion/
|
|
15
|
-
action: import("@emotion/
|
|
16
|
-
actionBold: import("@emotion/
|
|
17
|
-
caption: import("@emotion/
|
|
2
|
+
heroHeadline: import("@emotion/react").SerializedStyles;
|
|
3
|
+
sectionHeadline: import("@emotion/react").SerializedStyles;
|
|
4
|
+
subHeadline: import("@emotion/react").SerializedStyles;
|
|
5
|
+
smallHeadline: import("@emotion/react").SerializedStyles;
|
|
6
|
+
body: import("@emotion/react").SerializedStyles;
|
|
7
|
+
bodyBold: import("@emotion/react").SerializedStyles;
|
|
8
|
+
bodyInterface: import("@emotion/react").SerializedStyles;
|
|
9
|
+
bodyInterfaceBold: import("@emotion/react").SerializedStyles;
|
|
10
|
+
bodyInterfaceSmall: import("@emotion/react").SerializedStyles;
|
|
11
|
+
bodyInterfaceSmallBold: import("@emotion/react").SerializedStyles;
|
|
12
|
+
label: import("@emotion/react").SerializedStyles;
|
|
13
|
+
labelBold: import("@emotion/react").SerializedStyles;
|
|
14
|
+
labelSmall: import("@emotion/react").SerializedStyles;
|
|
15
|
+
action: import("@emotion/react").SerializedStyles;
|
|
16
|
+
actionBold: import("@emotion/react").SerializedStyles;
|
|
17
|
+
caption: import("@emotion/react").SerializedStyles;
|
|
18
18
|
};
|
|
19
19
|
export default typography;
|
package/package.json
CHANGED
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
"description": "Typography",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "2.0.29-alpha.
|
|
6
|
+
"version": "2.0.29-alpha.9a0ea182",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"main": "./cjs/index.js",
|
|
9
9
|
"module": "./index.js",
|
|
10
10
|
"typings": "./index.d.ts",
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@emotion/react": "11.
|
|
12
|
+
"@emotion/react": "11.14.0",
|
|
13
13
|
"react": ">= 17.0.2"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@dfds-ui/theme": "2.0.29-alpha.
|
|
16
|
+
"@dfds-ui/theme": "2.0.29-alpha.9a0ea182"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "9a0ea1821df447249363a38ea548ce565163e1c3",
|
|
19
19
|
"esnext": "",
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "public"
|
package/styles.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export declare const typography: {
|
|
2
|
-
heroHeadline: import("@emotion/
|
|
3
|
-
sectionHeadline: import("@emotion/
|
|
4
|
-
subHeadline: import("@emotion/
|
|
5
|
-
smallHeadline: import("@emotion/
|
|
6
|
-
body: import("@emotion/
|
|
7
|
-
bodyBold: import("@emotion/
|
|
8
|
-
bodyInterface: import("@emotion/
|
|
9
|
-
bodyInterfaceBold: import("@emotion/
|
|
10
|
-
bodyInterfaceSmall: import("@emotion/
|
|
11
|
-
bodyInterfaceSmallBold: import("@emotion/
|
|
12
|
-
label: import("@emotion/
|
|
13
|
-
labelBold: import("@emotion/
|
|
14
|
-
labelSmall: import("@emotion/
|
|
15
|
-
action: import("@emotion/
|
|
16
|
-
actionBold: import("@emotion/
|
|
17
|
-
caption: import("@emotion/
|
|
2
|
+
heroHeadline: import("@emotion/react").SerializedStyles;
|
|
3
|
+
sectionHeadline: import("@emotion/react").SerializedStyles;
|
|
4
|
+
subHeadline: import("@emotion/react").SerializedStyles;
|
|
5
|
+
smallHeadline: import("@emotion/react").SerializedStyles;
|
|
6
|
+
body: import("@emotion/react").SerializedStyles;
|
|
7
|
+
bodyBold: import("@emotion/react").SerializedStyles;
|
|
8
|
+
bodyInterface: import("@emotion/react").SerializedStyles;
|
|
9
|
+
bodyInterfaceBold: import("@emotion/react").SerializedStyles;
|
|
10
|
+
bodyInterfaceSmall: import("@emotion/react").SerializedStyles;
|
|
11
|
+
bodyInterfaceSmallBold: import("@emotion/react").SerializedStyles;
|
|
12
|
+
label: import("@emotion/react").SerializedStyles;
|
|
13
|
+
labelBold: import("@emotion/react").SerializedStyles;
|
|
14
|
+
labelSmall: import("@emotion/react").SerializedStyles;
|
|
15
|
+
action: import("@emotion/react").SerializedStyles;
|
|
16
|
+
actionBold: import("@emotion/react").SerializedStyles;
|
|
17
|
+
caption: import("@emotion/react").SerializedStyles;
|
|
18
18
|
};
|
|
19
19
|
export default typography;
|