@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.
File without changes
@@ -0,0 +1,3 @@
1
+ /** that theme provide user to custom with */
2
+ export interface DefaultTheme {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,3 +7,4 @@ export * from './paletteProp.type';
7
7
  export * from './theme.type';
8
8
  export * from './typography.type';
9
9
  export * from './useThemeProps';
10
+ export * from './DefaultTheme';
@@ -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
- /** that theme provide user to custom with */
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 RcTypographies = Record<RcTypographyKeys, {
7
+ export declare type RcTypographyDetail = {
7
8
  fontSize: string | number;
8
- fontWeight: number | number;
9
+ fontWeight: number;
9
10
  lineHeight: string | number;
10
- }>;
11
- export declare type RcTypographyType = RcTypographyAddition & RcTypographies & MuiTheme['typography'];
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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ringcentral/juno",
3
- "version": "2.36.0",
3
+ "version": "2.36.1",
4
4
  "author": "RingCentral",
5
5
  "license": "MIT",
6
6
  "main": "./index.js",