@ringcentral/juno 2.36.0 → 2.36.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.
- package/es6/foundation/theme/DefaultTheme.js +0 -0
- package/foundation/theme/DefaultTheme.d.ts +3 -0
- package/foundation/theme/DefaultTheme.js +2 -0
- package/foundation/theme/index.d.ts +1 -0
- package/foundation/theme/theme.type.d.ts +1 -3
- package/foundation/theme/typography.type.d.ts +10 -5
- package/package.json +1 -1
|
File without changes
|
|
@@ -57,9 +57,7 @@ import radius from './assets/radius.json';
|
|
|
57
57
|
import shape from './assets/shape.json';
|
|
58
58
|
import zIndex from './assets/zIndex.json';
|
|
59
59
|
import { RcTypographyType } from './typography.type';
|
|
60
|
-
|
|
61
|
-
export interface DefaultTheme {
|
|
62
|
-
}
|
|
60
|
+
import { DefaultTheme } from './DefaultTheme';
|
|
63
61
|
/** inner for make `(DefaultTheme & ForExtendTheme)['palette']` work with ts */
|
|
64
62
|
declare type ForExtendTheme = {
|
|
65
63
|
palette: {};
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { Theme as MuiTheme } from '@material-ui/core/styles';
|
|
2
2
|
import typography from './assets/typography.json';
|
|
3
|
+
import { DefaultTheme } from './DefaultTheme';
|
|
3
4
|
declare type RcTypographyPickFields = 'fontFamily' | 'codeFontFamily' | 'fontSize' | 'htmlFontSize' | 'fontWeightLight' | 'fontWeightRegular' | 'fontWeightMedium' | 'fontWeightBold';
|
|
4
|
-
export declare type RcTypographyKeys = 'display4' | 'display3' | 'display2' | 'display1' | 'headline2' | 'headline1' | 'title2' | 'title1' | 'subheading2' | 'subheading1' | 'body2' | 'body1' | 'caption2' | 'caption1' | 'inherit';
|
|
5
|
+
export declare type RcTypographyKeys = 'display4' | 'display3' | 'display2' | 'display1' | 'headline2' | 'headline1' | 'title2' | 'title1' | 'subheading2' | 'subheading1' | 'body2' | 'body1' | 'caption2' | 'caption1' | 'inherit' | keyof ExtensionTypography;
|
|
5
6
|
export declare type RcTypographyAddition = Pick<typeof typography, RcTypographyPickFields>;
|
|
6
|
-
export declare type
|
|
7
|
+
export declare type RcTypographyDetail = {
|
|
7
8
|
fontSize: string | number;
|
|
8
|
-
fontWeight: number
|
|
9
|
+
fontWeight: number;
|
|
9
10
|
lineHeight: string | number;
|
|
10
|
-
}
|
|
11
|
-
export declare type
|
|
11
|
+
};
|
|
12
|
+
export declare type RcTypographies = Record<RcTypographyKeys, RcTypographyDetail>;
|
|
13
|
+
declare type ExtensionTypography = (DefaultTheme & {
|
|
14
|
+
typography: {};
|
|
15
|
+
})['typography'];
|
|
16
|
+
export declare type RcTypographyType = RcTypographyAddition & ExtensionTypography & RcTypographies & MuiTheme['typography'];
|
|
12
17
|
export {};
|