@up42/up-components 1.13.2 → 2.0.0-beta.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.
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/types/components/Typography/Typography.d.ts +0 -9
- package/dist/cjs/types/components/Typography/Typography.overrides.d.ts +1 -29
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/components/Typography/Typography.d.ts +0 -9
- package/dist/esm/types/components/Typography/Typography.overrides.d.ts +1 -29
- package/dist/index.d.ts +0 -9
- package/package.json +2 -2
- package/dist/cjs/types/components/Typography/Typography-legacy.overrides.d.ts +0 -11
- package/dist/esm/types/components/Typography/Typography-legacy.overrides.d.ts +0 -11
|
@@ -5,15 +5,6 @@ export declare type TypographyProps = MUITypographyProps & {
|
|
|
5
5
|
variant?: MUITypographyProps['variant'] | 'heading' | 'headingSmall' | 'headingXSmall' | 'body' | 'label' | 'note';
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
8
|
-
* Douglas `variant` prop migration helper:
|
|
9
|
-
* - `h1` -> `heading`
|
|
10
|
-
* - `h2` -> `headingSmall`
|
|
11
|
-
* - `h3` -> `headingXSmall`
|
|
12
|
-
* - `body1` -> `body`
|
|
13
|
-
* - `caption` ->`note`
|
|
14
|
-
* - `overline` -> `label`
|
|
15
|
-
* - (no variant) -> `body`
|
|
16
|
-
*
|
|
17
8
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-typography--docs
|
|
18
9
|
*/
|
|
19
10
|
export declare const Typography: React.ForwardRefExoticComponent<Pick<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
|
|
@@ -41,32 +41,4 @@ declare module '@mui/material/Typography' {
|
|
|
41
41
|
}
|
|
42
42
|
export declare const MuiTypography: OverridesStyleRules;
|
|
43
43
|
export declare const typographyTheme: TypographyOptions;
|
|
44
|
-
export declare const typographyOverrides:
|
|
45
|
-
heading?: import("react").CSSProperties | undefined;
|
|
46
|
-
headingSmall?: import("react").CSSProperties | undefined;
|
|
47
|
-
headingXSmall?: import("react").CSSProperties | undefined;
|
|
48
|
-
body?: import("react").CSSProperties | undefined;
|
|
49
|
-
label?: import("react").CSSProperties | undefined;
|
|
50
|
-
note?: import("react").CSSProperties | undefined;
|
|
51
|
-
button?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
|
|
52
|
-
caption?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
|
|
53
|
-
h1?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
|
|
54
|
-
h2?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
|
|
55
|
-
h3?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
|
|
56
|
-
h4?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
|
|
57
|
-
h5?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
|
|
58
|
-
h6?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
|
|
59
|
-
overline?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
|
|
60
|
-
subtitle1?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
|
|
61
|
-
subtitle2?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
|
|
62
|
-
body1?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
|
|
63
|
-
body2?: import("@mui/material/styles/createTypography").TypographyStyleOptions | undefined;
|
|
64
|
-
allVariants?: import("react").CSSProperties | undefined;
|
|
65
|
-
fontFamily?: import("csstype").Property.FontFamily | undefined;
|
|
66
|
-
fontSize?: number | undefined;
|
|
67
|
-
fontWeightLight?: import("csstype").Property.FontWeight | undefined;
|
|
68
|
-
fontWeightRegular?: import("csstype").Property.FontWeight | undefined;
|
|
69
|
-
fontWeightMedium?: import("csstype").Property.FontWeight | undefined;
|
|
70
|
-
fontWeightBold?: import("csstype").Property.FontWeight | undefined;
|
|
71
|
-
htmlFontSize?: number | undefined;
|
|
72
|
-
};
|
|
44
|
+
export declare const typographyOverrides: TypographyOptions;
|
package/dist/index.d.ts
CHANGED
|
@@ -90,15 +90,6 @@ declare type TypographyProps = TypographyProps$1 & {
|
|
|
90
90
|
variant?: TypographyProps$1['variant'] | 'heading' | 'headingSmall' | 'headingXSmall' | 'body' | 'label' | 'note';
|
|
91
91
|
};
|
|
92
92
|
/**
|
|
93
|
-
* Douglas `variant` prop migration helper:
|
|
94
|
-
* - `h1` -> `heading`
|
|
95
|
-
* - `h2` -> `headingSmall`
|
|
96
|
-
* - `h3` -> `headingXSmall`
|
|
97
|
-
* - `body1` -> `body`
|
|
98
|
-
* - `caption` ->`note`
|
|
99
|
-
* - `overline` -> `label`
|
|
100
|
-
* - (no variant) -> `body`
|
|
101
|
-
*
|
|
102
93
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-typography--docs
|
|
103
94
|
*/
|
|
104
95
|
declare const Typography: React__default.ForwardRefExoticComponent<Pick<_mui_system.SystemProps<_mui_material.Theme> & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@up42/up-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.0",
|
|
4
4
|
"description": "UP42 Component Library",
|
|
5
5
|
"author": "Axel Fuhrmann axel.fuhrmann@up42.com",
|
|
6
6
|
"license": "ISC",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"format": "prettier --write ./**/*.mdx"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@up42/design-system-tokens": "^
|
|
31
|
+
"@up42/design-system-tokens": "^6.0.0-beta.0",
|
|
32
32
|
"dayjs": "^1.11.7",
|
|
33
33
|
"prismjs": "^1.29.0"
|
|
34
34
|
},
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TypographyOptions } from '@mui/material/styles/createTypography';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated in favor of Douglas typography conventions
|
|
4
|
-
* @see https://up-components.up42.com/?path=/docs/tokens-typography--docs
|
|
5
|
-
*
|
|
6
|
-
* This theme relies on deprecated tokens and overrides MUI default styles.
|
|
7
|
-
* It should be removed once these tokens are fully deprecated.
|
|
8
|
-
*
|
|
9
|
-
* The updated theme adheres to a new convention, avoiding overrides of MUI default styles.
|
|
10
|
-
*/
|
|
11
|
-
export declare const legacyTypography: TypographyOptions;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TypographyOptions } from '@mui/material/styles/createTypography';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated in favor of Douglas typography conventions
|
|
4
|
-
* @see https://up-components.up42.com/?path=/docs/tokens-typography--docs
|
|
5
|
-
*
|
|
6
|
-
* This theme relies on deprecated tokens and overrides MUI default styles.
|
|
7
|
-
* It should be removed once these tokens are fully deprecated.
|
|
8
|
-
*
|
|
9
|
-
* The updated theme adheres to a new convention, avoiding overrides of MUI default styles.
|
|
10
|
-
*/
|
|
11
|
-
export declare const legacyTypography: TypographyOptions;
|