@mui/system 7.0.0-alpha.1 → 7.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/CHANGELOG.md +73 -0
- package/Grid/createGrid.js +4 -0
- package/Grid/deleteLegacyGridProps.js +47 -0
- package/esm/Grid/createGrid.js +4 -0
- package/esm/Grid/deleteLegacyGridProps.d.ts +11 -0
- package/esm/Grid/deleteLegacyGridProps.js +41 -0
- package/esm/index.js +1 -1
- package/esm/spacing/spacing.d.ts +2 -2
- package/esm/version/index.js +2 -2
- package/index.js +1 -1
- package/modern/Grid/createGrid.js +4 -0
- package/modern/Grid/deleteLegacyGridProps.js +41 -0
- package/modern/index.js +1 -1
- package/modern/version/index.js +2 -2
- package/package.json +10 -9
- package/tsconfig.build.tsbuildinfo +1 -1
- package/version/index.js +2 -2
- package/Box/Box.d.ts +0 -72
- package/Box/boxClasses.d.ts +0 -7
- package/Box/index.d.ts +0 -4
- package/CSSProperties.d.ts +0 -7
- package/Container/Container.d.ts +0 -13
- package/Container/ContainerProps.d.ts +0 -40
- package/Container/containerClasses.d.ts +0 -22
- package/Container/createContainer.d.ts +0 -18
- package/Container/index.d.ts +0 -4
- package/DefaultPropsProvider/DefaultPropsProvider.d.ts +0 -18
- package/DefaultPropsProvider/index.d.ts +0 -1
- package/GlobalStyles/GlobalStyles.d.ts +0 -17
- package/GlobalStyles/index.d.ts +0 -2
- package/Grid/Grid.d.ts +0 -13
- package/Grid/GridProps.d.ts +0 -103
- package/Grid/createGrid.d.ts +0 -13
- package/Grid/gridClasses.d.ts +0 -20
- package/Grid/gridGenerator.d.ts +0 -42
- package/Grid/index.d.ts +0 -7
- package/Grid/traverseBreakpoints.d.ts +0 -7
- package/InitColorSchemeScript/InitColorSchemeScript.d.ts +0 -51
- package/InitColorSchemeScript/index.d.ts +0 -2
- package/RtlProvider/index.d.ts +0 -8
- package/Stack/Stack.d.ts +0 -14
- package/Stack/StackProps.d.ts +0 -53
- package/Stack/createStack.d.ts +0 -24
- package/Stack/index.d.ts +0 -5
- package/Stack/stackClasses.d.ts +0 -8
- package/ThemeProvider/ThemeProvider.d.ts +0 -24
- package/ThemeProvider/index.d.ts +0 -2
- package/borders/borders.d.ts +0 -13
- package/borders/index.d.ts +0 -2
- package/breakpoints/breakpoints.d.ts +0 -19
- package/breakpoints/index.d.ts +0 -2
- package/colorManipulator/colorManipulator.d.ts +0 -25
- package/colorManipulator/index.d.ts +0 -1
- package/compose/compose.d.ts +0 -2
- package/compose/index.d.ts +0 -1
- package/createBox/createBox.d.ts +0 -9
- package/createBox/index.d.ts +0 -1
- package/createBreakpoints/createBreakpoints.d.ts +0 -78
- package/createBreakpoints/index.d.ts +0 -3
- package/createStyled/createStyled.d.ts +0 -27
- package/createStyled/index.d.ts +0 -2
- package/createTheme/applyStyles.d.ts +0 -67
- package/createTheme/createSpacing.d.ts +0 -10
- package/createTheme/createTheme.d.ts +0 -54
- package/createTheme/index.d.ts +0 -4
- package/createTheme/shape.d.ts +0 -6
- package/cssContainerQueries/cssContainerQueries.d.ts +0 -23
- package/cssContainerQueries/index.d.ts +0 -3
- package/cssGrid/cssGrid.d.ts +0 -2
- package/cssGrid/index.d.ts +0 -2
- package/cssVars/createCssVarsProvider.d.ts +0 -129
- package/cssVars/createCssVarsTheme.d.ts +0 -15
- package/cssVars/createGetCssVar.d.ts +0 -5
- package/cssVars/cssVarsParser.d.ts +0 -64
- package/cssVars/getColorSchemeSelector.d.ts +0 -1
- package/cssVars/index.d.ts +0 -7
- package/cssVars/prepareCssVars.d.ts +0 -16
- package/cssVars/prepareTypographyVars.d.ts +0 -4
- package/cssVars/useCurrentColorScheme.d.ts +0 -54
- package/display/display.d.ts +0 -2
- package/display/index.d.ts +0 -2
- package/flexbox/flexbox.d.ts +0 -2
- package/flexbox/index.d.ts +0 -2
- package/getThemeValue/getThemeValue.d.ts +0 -1
- package/getThemeValue/index.d.ts +0 -2
- package/index.d.ts +0 -79
- package/memoTheme.d.ts +0 -12
- package/memoize/index.d.ts +0 -1
- package/memoize/memoize.d.ts +0 -1
- package/merge/index.d.ts +0 -1
- package/merge/merge.d.ts +0 -1
- package/modern/Box/Box.d.ts +0 -72
- package/modern/Box/boxClasses.d.ts +0 -7
- package/modern/Box/index.d.ts +0 -4
- package/modern/CSSProperties.d.ts +0 -7
- package/modern/Container/Container.d.ts +0 -13
- package/modern/Container/ContainerProps.d.ts +0 -40
- package/modern/Container/containerClasses.d.ts +0 -22
- package/modern/Container/createContainer.d.ts +0 -18
- package/modern/Container/index.d.ts +0 -4
- package/modern/DefaultPropsProvider/DefaultPropsProvider.d.ts +0 -18
- package/modern/DefaultPropsProvider/index.d.ts +0 -1
- package/modern/GlobalStyles/GlobalStyles.d.ts +0 -17
- package/modern/GlobalStyles/index.d.ts +0 -2
- package/modern/Grid/Grid.d.ts +0 -13
- package/modern/Grid/GridProps.d.ts +0 -103
- package/modern/Grid/createGrid.d.ts +0 -13
- package/modern/Grid/gridClasses.d.ts +0 -20
- package/modern/Grid/gridGenerator.d.ts +0 -42
- package/modern/Grid/index.d.ts +0 -7
- package/modern/Grid/traverseBreakpoints.d.ts +0 -7
- package/modern/InitColorSchemeScript/InitColorSchemeScript.d.ts +0 -51
- package/modern/InitColorSchemeScript/index.d.ts +0 -2
- package/modern/RtlProvider/index.d.ts +0 -8
- package/modern/Stack/Stack.d.ts +0 -14
- package/modern/Stack/StackProps.d.ts +0 -53
- package/modern/Stack/createStack.d.ts +0 -24
- package/modern/Stack/index.d.ts +0 -5
- package/modern/Stack/stackClasses.d.ts +0 -8
- package/modern/ThemeProvider/ThemeProvider.d.ts +0 -24
- package/modern/ThemeProvider/index.d.ts +0 -2
- package/modern/borders/borders.d.ts +0 -13
- package/modern/borders/index.d.ts +0 -2
- package/modern/breakpoints/breakpoints.d.ts +0 -19
- package/modern/breakpoints/index.d.ts +0 -2
- package/modern/colorManipulator/colorManipulator.d.ts +0 -25
- package/modern/colorManipulator/index.d.ts +0 -1
- package/modern/compose/compose.d.ts +0 -2
- package/modern/compose/index.d.ts +0 -1
- package/modern/createBox/createBox.d.ts +0 -9
- package/modern/createBox/index.d.ts +0 -1
- package/modern/createBreakpoints/createBreakpoints.d.ts +0 -78
- package/modern/createBreakpoints/index.d.ts +0 -3
- package/modern/createStyled/createStyled.d.ts +0 -27
- package/modern/createStyled/index.d.ts +0 -2
- package/modern/createTheme/applyStyles.d.ts +0 -67
- package/modern/createTheme/createSpacing.d.ts +0 -10
- package/modern/createTheme/createTheme.d.ts +0 -54
- package/modern/createTheme/index.d.ts +0 -4
- package/modern/createTheme/shape.d.ts +0 -6
- package/modern/cssContainerQueries/cssContainerQueries.d.ts +0 -23
- package/modern/cssContainerQueries/index.d.ts +0 -3
- package/modern/cssGrid/cssGrid.d.ts +0 -2
- package/modern/cssGrid/index.d.ts +0 -2
- package/modern/cssVars/createCssVarsProvider.d.ts +0 -129
- package/modern/cssVars/createCssVarsTheme.d.ts +0 -15
- package/modern/cssVars/createGetCssVar.d.ts +0 -5
- package/modern/cssVars/cssVarsParser.d.ts +0 -64
- package/modern/cssVars/getColorSchemeSelector.d.ts +0 -1
- package/modern/cssVars/index.d.ts +0 -7
- package/modern/cssVars/prepareCssVars.d.ts +0 -16
- package/modern/cssVars/prepareTypographyVars.d.ts +0 -4
- package/modern/cssVars/useCurrentColorScheme.d.ts +0 -54
- package/modern/display/display.d.ts +0 -2
- package/modern/display/index.d.ts +0 -2
- package/modern/flexbox/flexbox.d.ts +0 -2
- package/modern/flexbox/index.d.ts +0 -2
- package/modern/getThemeValue/getThemeValue.d.ts +0 -1
- package/modern/getThemeValue/index.d.ts +0 -2
- package/modern/index.d.ts +0 -79
- package/modern/memoTheme.d.ts +0 -12
- package/modern/memoize/index.d.ts +0 -1
- package/modern/memoize/memoize.d.ts +0 -1
- package/modern/merge/index.d.ts +0 -1
- package/modern/merge/merge.d.ts +0 -1
- package/modern/palette/index.d.ts +0 -2
- package/modern/palette/palette.d.ts +0 -4
- package/modern/positions/index.d.ts +0 -2
- package/modern/positions/positions.d.ts +0 -2
- package/modern/preprocessStyles.d.ts +0 -5
- package/modern/propsToClassKey/index.d.ts +0 -1
- package/modern/propsToClassKey/propsToClassKey.d.ts +0 -1
- package/modern/responsivePropType/index.d.ts +0 -1
- package/modern/responsivePropType/responsivePropType.d.ts +0 -2
- package/modern/shadows/index.d.ts +0 -1
- package/modern/shadows/shadows.d.ts +0 -2
- package/modern/sizing/index.d.ts +0 -2
- package/modern/sizing/sizing.d.ts +0 -11
- package/modern/spacing/index.d.ts +0 -2
- package/modern/spacing/spacing.d.ts +0 -18
- package/modern/style/index.d.ts +0 -2
- package/modern/style/style.d.ts +0 -19
- package/modern/styleFunctionSx/AliasesCSSProperties.d.ts +0 -269
- package/modern/styleFunctionSx/OverwriteCSSProperties.d.ts +0 -54
- package/modern/styleFunctionSx/StandardCssProperties.d.ts +0 -2
- package/modern/styleFunctionSx/defaultSxConfig.d.ts +0 -15
- package/modern/styleFunctionSx/extendSxProp.d.ts +0 -4
- package/modern/styleFunctionSx/index.d.ts +0 -9
- package/modern/styleFunctionSx/styleFunctionSx.d.ts +0 -62
- package/modern/styled/index.d.ts +0 -1
- package/modern/styled/styled.d.ts +0 -3
- package/modern/typography/index.d.ts +0 -2
- package/modern/typography/typography.d.ts +0 -11
- package/modern/useMediaQuery/index.d.ts +0 -2
- package/modern/useMediaQuery/useMediaQuery.d.ts +0 -32
- package/modern/useTheme/index.d.ts +0 -2
- package/modern/useTheme/useTheme.d.ts +0 -2
- package/modern/useThemeProps/getThemeProps.d.ts +0 -16
- package/modern/useThemeProps/index.d.ts +0 -3
- package/modern/useThemeProps/useThemeProps.d.ts +0 -14
- package/modern/useThemeWithoutDefault/index.d.ts +0 -1
- package/modern/useThemeWithoutDefault/useThemeWithoutDefault.d.ts +0 -1
- package/modern/version/index.d.ts +0 -6
- package/palette/index.d.ts +0 -2
- package/palette/palette.d.ts +0 -4
- package/positions/index.d.ts +0 -2
- package/positions/positions.d.ts +0 -2
- package/preprocessStyles.d.ts +0 -5
- package/propsToClassKey/index.d.ts +0 -1
- package/propsToClassKey/propsToClassKey.d.ts +0 -1
- package/responsivePropType/index.d.ts +0 -1
- package/responsivePropType/responsivePropType.d.ts +0 -2
- package/shadows/index.d.ts +0 -1
- package/shadows/shadows.d.ts +0 -2
- package/sizing/index.d.ts +0 -2
- package/sizing/sizing.d.ts +0 -11
- package/spacing/index.d.ts +0 -2
- package/spacing/spacing.d.ts +0 -18
- package/style/index.d.ts +0 -2
- package/style/style.d.ts +0 -19
- package/styleFunctionSx/AliasesCSSProperties.d.ts +0 -269
- package/styleFunctionSx/OverwriteCSSProperties.d.ts +0 -54
- package/styleFunctionSx/StandardCssProperties.d.ts +0 -2
- package/styleFunctionSx/defaultSxConfig.d.ts +0 -15
- package/styleFunctionSx/extendSxProp.d.ts +0 -4
- package/styleFunctionSx/index.d.ts +0 -9
- package/styleFunctionSx/styleFunctionSx.d.ts +0 -62
- package/styled/index.d.ts +0 -1
- package/styled/styled.d.ts +0 -3
- package/typography/index.d.ts +0 -2
- package/typography/typography.d.ts +0 -11
- package/useMediaQuery/index.d.ts +0 -2
- package/useMediaQuery/useMediaQuery.d.ts +0 -32
- package/useTheme/index.d.ts +0 -2
- package/useTheme/useTheme.d.ts +0 -2
- package/useThemeProps/getThemeProps.d.ts +0 -16
- package/useThemeProps/index.d.ts +0 -3
- package/useThemeProps/useThemeProps.d.ts +0 -14
- package/useThemeWithoutDefault/index.d.ts +0 -1
- package/useThemeWithoutDefault/useThemeWithoutDefault.d.ts +0 -1
- package/version/index.d.ts +0 -6
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default } from "./createCssVarsProvider.js";
|
|
2
|
-
export type { CreateCssVarsProviderResult, CssVarsProviderConfig, ColorSchemeContextValue } from "./createCssVarsProvider.js";
|
|
3
|
-
export { default as prepareCssVars } from "./prepareCssVars.js";
|
|
4
|
-
export { default as prepareTypographyVars } from "./prepareTypographyVars.js";
|
|
5
|
-
export type { ExtractTypographyTokens } from "./prepareTypographyVars.js";
|
|
6
|
-
export { default as createCssVarsTheme } from "./createCssVarsTheme.js";
|
|
7
|
-
export { createGetColorSchemeSelector } from "./getColorSchemeSelector.js";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface DefaultCssVarsTheme {
|
|
2
|
-
colorSchemes?: Record<string, any>;
|
|
3
|
-
defaultColorScheme?: string;
|
|
4
|
-
}
|
|
5
|
-
declare function prepareCssVars<T extends DefaultCssVarsTheme, ThemeVars extends Record<string, any>>(theme: T, parserConfig?: {
|
|
6
|
-
prefix?: string;
|
|
7
|
-
colorSchemeSelector?: 'media' | 'class' | 'data' | string;
|
|
8
|
-
disableCssColorScheme?: boolean;
|
|
9
|
-
shouldSkipGeneratingVar?: (objectPathKeys: Array<string>, value: string | number) => boolean;
|
|
10
|
-
getSelector?: (colorScheme: keyof T['colorSchemes'] | undefined, css: Record<string, any>) => string | Record<string, any>;
|
|
11
|
-
}): {
|
|
12
|
-
vars: ThemeVars;
|
|
13
|
-
generateThemeVars: () => ThemeVars;
|
|
14
|
-
generateStyleSheets: () => Record<string, any>[];
|
|
15
|
-
};
|
|
16
|
-
export default prepareCssVars;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
type RecordPropertyNames<T> = { [K in keyof T]: T[K] extends Function ? never : T[K] extends Record<string, any> ? K : never }[keyof T];
|
|
2
|
-
export type ExtractTypographyTokens<T> = { [K in RecordPropertyNames<T>]: string };
|
|
3
|
-
export default function prepareTypographyVars<T extends Record<string, any>>(typography: T): ExtractTypographyTokens<T>;
|
|
4
|
-
export {};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
export type Mode = 'light' | 'dark' | 'system';
|
|
2
|
-
export type SystemMode = Exclude<Mode, 'system'>;
|
|
3
|
-
export interface State<SupportedColorScheme extends string> {
|
|
4
|
-
/**
|
|
5
|
-
* User selected mode.
|
|
6
|
-
* Note: on the server, mode is always undefined
|
|
7
|
-
*/
|
|
8
|
-
mode: 'light' | 'dark' | 'system' | undefined;
|
|
9
|
-
/**
|
|
10
|
-
* Only valid if `mode: 'system'`, either 'light' | 'dark'.
|
|
11
|
-
*/
|
|
12
|
-
systemMode: 'light' | 'dark' | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* The color scheme for the light mode.
|
|
15
|
-
*/
|
|
16
|
-
lightColorScheme: SupportedColorScheme;
|
|
17
|
-
/**
|
|
18
|
-
* The color scheme for the dark mode.
|
|
19
|
-
*/
|
|
20
|
-
darkColorScheme: SupportedColorScheme;
|
|
21
|
-
}
|
|
22
|
-
export type Result<SupportedColorScheme extends string> = State<SupportedColorScheme> & {
|
|
23
|
-
/**
|
|
24
|
-
* The current application color scheme. It is always `undefined` on the server.
|
|
25
|
-
*/
|
|
26
|
-
colorScheme: SupportedColorScheme | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* `mode` is saved to internal state and localStorage
|
|
29
|
-
* If `mode` is null, it will be reset to the defaultMode
|
|
30
|
-
*/
|
|
31
|
-
setMode: (mode: Mode | null) => void;
|
|
32
|
-
/**
|
|
33
|
-
* `colorScheme` is saved to internal state and localStorage
|
|
34
|
-
* If `colorScheme` is null, it will be reset to the defaultColorScheme (light | dark)
|
|
35
|
-
*/
|
|
36
|
-
setColorScheme: (colorScheme: SupportedColorScheme | Partial<{
|
|
37
|
-
light: SupportedColorScheme | null;
|
|
38
|
-
dark: SupportedColorScheme | null;
|
|
39
|
-
}> | null) => void;
|
|
40
|
-
};
|
|
41
|
-
export declare function getSystemMode(mode: undefined | string): SystemMode | undefined;
|
|
42
|
-
export declare function getColorScheme<SupportedColorScheme extends string>(state: State<SupportedColorScheme>): SupportedColorScheme | undefined;
|
|
43
|
-
interface UseCurrentColoSchemeOptions<SupportedColorScheme extends string> {
|
|
44
|
-
defaultLightColorScheme: SupportedColorScheme;
|
|
45
|
-
defaultDarkColorScheme: SupportedColorScheme;
|
|
46
|
-
supportedColorSchemes: Array<SupportedColorScheme>;
|
|
47
|
-
defaultMode?: Mode;
|
|
48
|
-
modeStorageKey?: string;
|
|
49
|
-
colorSchemeStorageKey?: string;
|
|
50
|
-
storageWindow?: Window | null;
|
|
51
|
-
noSsr?: boolean;
|
|
52
|
-
}
|
|
53
|
-
export default function useCurrentColorScheme<SupportedColorScheme extends string>(options: UseCurrentColoSchemeOptions<SupportedColorScheme>): Result<SupportedColorScheme>;
|
|
54
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function getThemeValue(prop: string, value: any, theme: object): any;
|
package/modern/index.d.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
// disable automatic export
|
|
2
|
-
export {};
|
|
3
|
-
export * from "./borders/index.js";
|
|
4
|
-
export { default as breakpoints, handleBreakpoints, mergeBreakpointsInOrder } from "./breakpoints/index.js";
|
|
5
|
-
export { default as cssContainerQueries, type CssContainerQueries } from "./cssContainerQueries/index.js";
|
|
6
|
-
export { default as compose } from "./compose/index.js";
|
|
7
|
-
export * from "./display/index.js";
|
|
8
|
-
export * from "./flexbox/index.js";
|
|
9
|
-
export * from "./cssGrid/index.js";
|
|
10
|
-
export * from "./palette/index.js";
|
|
11
|
-
export * from "./positions/index.js";
|
|
12
|
-
export * from "./shadows/index.js";
|
|
13
|
-
export * from "./sizing/index.js";
|
|
14
|
-
export * from "./typography/index.js";
|
|
15
|
-
export { default as unstable_getThemeValue } from "./getThemeValue/index.js";
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* The `css` function accepts arrays as values for mobile-first responsive styles.
|
|
19
|
-
* Note that this extends to non-theme values also. For example `display=['none', 'block']`
|
|
20
|
-
* will also works.
|
|
21
|
-
*/
|
|
22
|
-
export type ResponsiveStyleValue<T> = T | Array<T | null> | {
|
|
23
|
-
[key: string]: T | null;
|
|
24
|
-
};
|
|
25
|
-
export { DefaultTheme } from '@mui/private-theming';
|
|
26
|
-
export { css, keyframes, StyledEngineProvider, Interpolation, CSSInterpolation, CSSObject } from '@mui/styled-engine';
|
|
27
|
-
export { default as GlobalStyles } from "./GlobalStyles/index.js";
|
|
28
|
-
export type { GlobalStylesProps } from "./GlobalStyles/index.js";
|
|
29
|
-
export * from "./style/index.js";
|
|
30
|
-
export * from "./spacing/index.js";
|
|
31
|
-
export { default as unstable_styleFunctionSx, unstable_createStyleFunctionSx, extendSxProp as unstable_extendSxProp, unstable_defaultSxConfig } from "./styleFunctionSx/index.js";
|
|
32
|
-
export * from "./styleFunctionSx/index.js";
|
|
33
|
-
|
|
34
|
-
// TODO: Remove this function in v6.
|
|
35
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
36
|
-
export function experimental_sx(): any;
|
|
37
|
-
export { default as Box } from "./Box/index.js";
|
|
38
|
-
export * from "./Box/index.js";
|
|
39
|
-
export { default as createBox } from "./createBox/index.js";
|
|
40
|
-
export * from "./createBox/index.js";
|
|
41
|
-
export { default as createStyled } from "./createStyled/index.js";
|
|
42
|
-
export * from "./createStyled/index.js";
|
|
43
|
-
export { default as styled } from "./styled/index.js";
|
|
44
|
-
export * from "./styled/index.js";
|
|
45
|
-
export { default as createTheme } from "./createTheme/index.js";
|
|
46
|
-
export * from "./createTheme/index.js";
|
|
47
|
-
export { default as createBreakpoints } from "./createBreakpoints/createBreakpoints.js";
|
|
48
|
-
export * from "./createBreakpoints/createBreakpoints.js";
|
|
49
|
-
export { default as createSpacing } from "./createTheme/createSpacing.js";
|
|
50
|
-
export { SpacingOptions, Spacing } from "./createTheme/createSpacing.js";
|
|
51
|
-
export { default as shape } from "./createTheme/shape.js";
|
|
52
|
-
export * from "./createTheme/shape.js";
|
|
53
|
-
export { default as useThemeProps, getThemeProps } from "./useThemeProps/index.js";
|
|
54
|
-
export { default as useTheme } from "./useTheme/index.js";
|
|
55
|
-
export * from "./useTheme/index.js";
|
|
56
|
-
export { default as useThemeWithoutDefault } from "./useThemeWithoutDefault/index.js";
|
|
57
|
-
export * from "./useThemeWithoutDefault/index.js";
|
|
58
|
-
export { default as useMediaQuery } from "./useMediaQuery/index.js";
|
|
59
|
-
export * from "./useMediaQuery/index.js";
|
|
60
|
-
export * from "./colorManipulator/index.js";
|
|
61
|
-
export { default as ThemeProvider } from "./ThemeProvider/index.js";
|
|
62
|
-
export * from "./ThemeProvider/index.js";
|
|
63
|
-
export { default as unstable_memoTheme } from "./memoTheme.js";
|
|
64
|
-
export { default as unstable_createCssVarsProvider, CreateCssVarsProviderResult } from "./cssVars/index.js";
|
|
65
|
-
export { default as unstable_createGetCssVar } from "./cssVars/createGetCssVar.js";
|
|
66
|
-
export { default as unstable_cssVarsParser } from "./cssVars/cssVarsParser.js";
|
|
67
|
-
export { default as unstable_prepareCssVars } from "./cssVars/prepareCssVars.js";
|
|
68
|
-
export { default as unstable_createCssVarsTheme } from "./cssVars/createCssVarsTheme.js";
|
|
69
|
-
export * from "./cssVars/index.js";
|
|
70
|
-
export { default as responsivePropType } from "./responsivePropType/index.js";
|
|
71
|
-
export { default as createContainer } from "./Container/createContainer.js";
|
|
72
|
-
export * from "./Container/createContainer.js";
|
|
73
|
-
export { default as Container } from "./Container/index.js";
|
|
74
|
-
export * from "./Container/index.js";
|
|
75
|
-
export { default as Grid } from "./Grid/index.js";
|
|
76
|
-
export * from "./Grid/index.js";
|
|
77
|
-
export { default as Stack } from "./Stack/index.js";
|
|
78
|
-
export * from "./Stack/index.js";
|
|
79
|
-
export * from "./version/index.js";
|
package/modern/memoTheme.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CSSInterpolation } from '@mui/styled-engine';
|
|
2
|
-
type ThemeStyleFunction<T> = (props: {
|
|
3
|
-
theme: T;
|
|
4
|
-
}) => CSSInterpolation;
|
|
5
|
-
/**
|
|
6
|
-
* Memoize style function on theme.
|
|
7
|
-
* Intended to be used in styled() calls that only need access to the theme.
|
|
8
|
-
*/
|
|
9
|
-
export default function unstable_memoTheme<T>(styleFn: ThemeStyleFunction<T>): (props: {
|
|
10
|
-
theme: T;
|
|
11
|
-
}) => string | number | boolean | import("@mui/styled-engine").CSSObject | import("@mui/styled-engine").ComponentSelector | import("@mui/styled-engine").Keyframes | import("@mui/styled-engine").SerializedStyles | import("@mui/styled-engine").ArrayCSSInterpolation | null;
|
|
12
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./memoize.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function memoize<ArgType = any, ReturnType = any>(fn: (arg: ArgType) => ReturnType): (arg: ArgType) => ReturnType;
|
package/modern/merge/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./merge.js";
|
package/modern/merge/merge.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function merge(acc: object, item: object): object;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./propsToClassKey.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function propsToClassKey(props: object): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./responsivePropType.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./shadows.js";
|
package/modern/sizing/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PropsFor, SimpleStyleFunction, sizing } from "../Box/index.js";
|
|
2
|
-
export const width: SimpleStyleFunction<'width'>;
|
|
3
|
-
export const maxWidth: SimpleStyleFunction<'maxWidth'>;
|
|
4
|
-
export const minWidth: SimpleStyleFunction<'minWidth'>;
|
|
5
|
-
export const height: SimpleStyleFunction<'height'>;
|
|
6
|
-
export const maxHeight: SimpleStyleFunction<'maxHeight'>;
|
|
7
|
-
export const minHeight: SimpleStyleFunction<'minHeight'>;
|
|
8
|
-
export const sizeWidth: SimpleStyleFunction<'sizeWidth'>;
|
|
9
|
-
export const sizeHeight: SimpleStyleFunction<'sizeHeight'>;
|
|
10
|
-
export const boxSizing: SimpleStyleFunction<'boxSizing'>;
|
|
11
|
-
export type SizingProps = PropsFor<typeof sizing>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SimpleStyleFunction, spacing, PropsFor } from "../Box/index.js";
|
|
2
|
-
export type SpacingValueType = string | number | null | undefined;
|
|
3
|
-
export type SpacingProps = PropsFor<typeof spacing>;
|
|
4
|
-
export function createUnarySpacing<Spacing>(theme: {
|
|
5
|
-
spacing: Spacing;
|
|
6
|
-
}): Spacing extends number ? (abs: number | string) => number | number : Spacing extends any[] ? <Index extends number>(abs: Index | string) => Spacing[Index] | string : Spacing extends (...args: unknown[]) => unknown ? Spacing :
|
|
7
|
-
// warns in Dev
|
|
8
|
-
() => undefined;
|
|
9
|
-
export function createUnaryUnit<Spacing>(theme: {
|
|
10
|
-
spacing: Spacing;
|
|
11
|
-
}, themeKey: string, defaultValue: Spacing, propName: string): Spacing extends number ? (abs: SpacingValueType) => number | number : Spacing extends any[] ? <Index extends number>(abs: Index | string) => Spacing[Index] | string : Spacing extends (...args: unknown[]) => unknown ? Spacing :
|
|
12
|
-
// warns in Dev
|
|
13
|
-
() => undefined;
|
|
14
|
-
export const margin: SimpleStyleFunction<'m' | 'mt' | 'mr' | 'mb' | 'ml' | 'mx' | 'my' | 'margin' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft' | 'marginX' | 'marginY' | 'marginInline' | 'marginInlineStart' | 'marginInlineEnd' | 'marginBlock' | 'marginBlockStart' | 'marginBlockEnd'>;
|
|
15
|
-
export type MarginProps = PropsFor<typeof margin>;
|
|
16
|
-
export const padding: SimpleStyleFunction<'p' | 'pt' | 'pr' | 'pb' | 'pl' | 'px' | 'py' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'paddingX' | 'paddingY' | 'paddingInline' | 'paddingInlineStart' | 'paddingInlineEnd' | 'paddingBlock' | 'paddingBlockStart' | 'paddingBlockEnd'>;
|
|
17
|
-
export function getValue(transformer: (prop: SpacingValueType) => SpacingValueType, propValue: SpacingValueType): SpacingValueType;
|
|
18
|
-
export type PaddingProps = PropsFor<typeof padding>;
|
package/modern/style/index.d.ts
DELETED
package/modern/style/style.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CSSObject } from '@mui/styled-engine';
|
|
2
|
-
import { StyleFunction } from "../Box/index.js";
|
|
3
|
-
export type TransformFunction = (cssValue: unknown, userValue: unknown) => number | string | React.CSSProperties | CSSObject;
|
|
4
|
-
export interface StyleOptions<PropKey> {
|
|
5
|
-
cssProperty?: PropKey | keyof React.CSSProperties | false;
|
|
6
|
-
prop: PropKey;
|
|
7
|
-
/**
|
|
8
|
-
* dot access in `Theme`
|
|
9
|
-
*/
|
|
10
|
-
themeKey?: string;
|
|
11
|
-
transform?: TransformFunction;
|
|
12
|
-
}
|
|
13
|
-
export function style<PropKey extends string, Theme extends object>(options: StyleOptions<PropKey>): StyleFunction<{ [K in PropKey]?: unknown } & {
|
|
14
|
-
theme?: Theme;
|
|
15
|
-
}> & {
|
|
16
|
-
filterProps: string[];
|
|
17
|
-
};
|
|
18
|
-
export function getPath<T>(obj: T, path: string | undefined, checkVars?: boolean): null | unknown;
|
|
19
|
-
export function getStyleValue(themeMapping: object | ((arg: any) => any), transform: TransformFunction | null, propValueFinal: unknown, userValue?: unknown): any;
|
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
import { StandardCSSProperties } from "./StandardCssProperties.js";
|
|
2
|
-
export interface AliasesCSSProperties {
|
|
3
|
-
/**
|
|
4
|
-
* The **`background-color`** CSS property sets the background color of an element.
|
|
5
|
-
*
|
|
6
|
-
* **Initial value**: `transparent`
|
|
7
|
-
*
|
|
8
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
9
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
10
|
-
* | **1** | **1** | **1** | **12** | **4** |
|
|
11
|
-
*
|
|
12
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/background-color
|
|
13
|
-
*/
|
|
14
|
-
bgcolor?: StandardCSSProperties['backgroundColor'];
|
|
15
|
-
/**
|
|
16
|
-
* The **`margin`** CSS property sets the margin on all four sides of an element. It is a shorthand for `margin-top`, `margin-right`, `margin-bottom`, and `margin-left`.
|
|
17
|
-
*
|
|
18
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
19
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
20
|
-
* | **1** | **1** | **1** | **12** | **3** |
|
|
21
|
-
*
|
|
22
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/margin
|
|
23
|
-
*/
|
|
24
|
-
m?: StandardCSSProperties['margin'];
|
|
25
|
-
/**
|
|
26
|
-
* The **`margin-top`** CSS property sets the margin on the top of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
27
|
-
*
|
|
28
|
-
* **Initial value**: `0`
|
|
29
|
-
*
|
|
30
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
31
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
32
|
-
* | **1** | **1** | **1** | **12** | **3** |
|
|
33
|
-
*
|
|
34
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/margin-top
|
|
35
|
-
*/
|
|
36
|
-
mt?: StandardCSSProperties['marginTop'];
|
|
37
|
-
/**
|
|
38
|
-
* The **`margin-right`** CSS property sets the margin on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
39
|
-
*
|
|
40
|
-
* **Initial value**: `0`
|
|
41
|
-
*
|
|
42
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
43
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
44
|
-
* | **1** | **1** | **1** | **12** | **3** |
|
|
45
|
-
*
|
|
46
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/margin-right
|
|
47
|
-
*/
|
|
48
|
-
mr?: StandardCSSProperties['marginRight'];
|
|
49
|
-
/**
|
|
50
|
-
* The **`margin-bottom`** CSS property sets the margin on the bottom of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
51
|
-
*
|
|
52
|
-
* **Initial value**: `0`
|
|
53
|
-
*
|
|
54
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
55
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
56
|
-
* | **1** | **1** | **1** | **12** | **3** |
|
|
57
|
-
*
|
|
58
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/margin-bottom
|
|
59
|
-
*/
|
|
60
|
-
mb?: StandardCSSProperties['marginBottom'];
|
|
61
|
-
/**
|
|
62
|
-
* The **`margin-left`** CSS property sets the margin on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
63
|
-
*
|
|
64
|
-
* **Initial value**: `0`
|
|
65
|
-
*
|
|
66
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
67
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
68
|
-
* | **1** | **1** | **1** | **12** | **3** |
|
|
69
|
-
*
|
|
70
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/margin-left
|
|
71
|
-
*/
|
|
72
|
-
ml?: StandardCSSProperties['marginLeft'];
|
|
73
|
-
/**
|
|
74
|
-
* The **`mx`** property is shorthand for using both **`margin-left`** and **`margin-right`** CSS properties. They set the margin on the left and right side of an element. A positive value places it
|
|
75
|
-
* farther from its neighbors, while a negative value places it closer.
|
|
76
|
-
*
|
|
77
|
-
* **Initial value**: `0`
|
|
78
|
-
*
|
|
79
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
80
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
81
|
-
* | **1** | **1** | **1** | **12** | **3** |
|
|
82
|
-
*
|
|
83
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/margin-left
|
|
84
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/margin-right
|
|
85
|
-
*/
|
|
86
|
-
mx?: StandardCSSProperties['marginLeft'];
|
|
87
|
-
/**
|
|
88
|
-
* The **`marginX`** property is shorthand for using both **`margin-left`** and **`margin-right`** CSS properties. They set the margin on the left and right side of an element. A positive value
|
|
89
|
-
* places it farther from its neighbors, while a negative value places it closer.
|
|
90
|
-
*
|
|
91
|
-
* **Initial value**: `0`
|
|
92
|
-
*
|
|
93
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
94
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
95
|
-
* | **1** | **1** | **1** | **12** | **3** |
|
|
96
|
-
*
|
|
97
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/margin-left
|
|
98
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/margin-right
|
|
99
|
-
*/
|
|
100
|
-
marginX?: StandardCSSProperties['marginLeft'];
|
|
101
|
-
/**
|
|
102
|
-
* The **`my`** property is shorthand for using both **`margin-top`** and **`margin-bottom`** CSS properties. They set the margin on the top and bottom of an element. A positive value places it
|
|
103
|
-
* farther from its neighbors, while a negative value places it closer.
|
|
104
|
-
*
|
|
105
|
-
* **Initial value**: `0`
|
|
106
|
-
*
|
|
107
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
108
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
109
|
-
* | **1** | **1** | **1** | **12** | **3** |
|
|
110
|
-
*
|
|
111
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/margin-top
|
|
112
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/margin-bottom
|
|
113
|
-
*/
|
|
114
|
-
my?: StandardCSSProperties['marginTop'];
|
|
115
|
-
/**
|
|
116
|
-
* The **`marginY`** property is shorthand for using both **`margin-top`** and **`margin-bottom`** CSS properties. They set the margin on the top and bottom of an element. A positive value places
|
|
117
|
-
* it farther from its neighbors, while a negative value places it closer.
|
|
118
|
-
*
|
|
119
|
-
* **Initial value**: `0`
|
|
120
|
-
*
|
|
121
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
122
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
123
|
-
* | **1** | **1** | **1** | **12** | **3** |
|
|
124
|
-
*
|
|
125
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/margin-top
|
|
126
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/margin-bottom
|
|
127
|
-
*/
|
|
128
|
-
marginY?: StandardCSSProperties['marginTop'];
|
|
129
|
-
/**
|
|
130
|
-
* The **`padding`** CSS property sets the padding on all four sides of an element. It is a shorthand for `padding-top`, `padding-right`, `padding-bottom`, and `padding-left`.
|
|
131
|
-
*
|
|
132
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
133
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
134
|
-
* | **1** | **1** | **1** | **12** | **4** |
|
|
135
|
-
*
|
|
136
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/padding
|
|
137
|
-
*/
|
|
138
|
-
p?: StandardCSSProperties['padding'];
|
|
139
|
-
/**
|
|
140
|
-
* The **`padding-top`** CSS property sets the height of the padding at the top of an element.
|
|
141
|
-
*
|
|
142
|
-
* **Initial value**: `0`
|
|
143
|
-
*
|
|
144
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
145
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
146
|
-
* | **1** | **1** | **1** | **12** | **4** |
|
|
147
|
-
*
|
|
148
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/padding-top
|
|
149
|
-
*/
|
|
150
|
-
pt?: StandardCSSProperties['paddingTop'];
|
|
151
|
-
/**
|
|
152
|
-
* The **`padding-right`** CSS property sets the width of the padding at the right side of an element.
|
|
153
|
-
*
|
|
154
|
-
* **Initial value**: `0`
|
|
155
|
-
*
|
|
156
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
157
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
158
|
-
* | **1** | **1** | **1** | **12** | **4** |
|
|
159
|
-
*
|
|
160
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/padding-right
|
|
161
|
-
*/
|
|
162
|
-
pr?: StandardCSSProperties['paddingRight'];
|
|
163
|
-
/**
|
|
164
|
-
* The **`padding-bottom`** CSS property sets the height of the padding on the bottom of an element.
|
|
165
|
-
*
|
|
166
|
-
* **Initial value**: `0`
|
|
167
|
-
*
|
|
168
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
169
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
170
|
-
* | **1** | **1** | **1** | **12** | **4** |
|
|
171
|
-
*
|
|
172
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/padding-bottom
|
|
173
|
-
*/
|
|
174
|
-
pb?: StandardCSSProperties['paddingBottom'];
|
|
175
|
-
/**
|
|
176
|
-
* The **`padding-left`** CSS property sets the width of the padding at the left side of an element.
|
|
177
|
-
*
|
|
178
|
-
* **Initial value**: `0`
|
|
179
|
-
*
|
|
180
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
181
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
182
|
-
* | **1** | **1** | **1** | **12** | **4** |
|
|
183
|
-
*
|
|
184
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/padding-left
|
|
185
|
-
*/
|
|
186
|
-
pl?: StandardCSSProperties['paddingLeft'];
|
|
187
|
-
/**
|
|
188
|
-
* The **`px`** property is shorthand for the CSS properties **`padding-left`** and **`padding-right`**. They set the width of the padding at the left and right side of an element.
|
|
189
|
-
*
|
|
190
|
-
* **Initial value**: `0`
|
|
191
|
-
*
|
|
192
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
193
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
194
|
-
* | **1** | **1** | **1** | **12** | **4** |
|
|
195
|
-
*
|
|
196
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/padding-left
|
|
197
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/padding-right
|
|
198
|
-
*/
|
|
199
|
-
px?: StandardCSSProperties['paddingLeft'];
|
|
200
|
-
/**
|
|
201
|
-
* The **`paddingX`** property is shorthand for the CSS properties **`padding-left`** and **`padding-right`**. They set the width of the padding at the left and right sides of an element.
|
|
202
|
-
*
|
|
203
|
-
* **Initial value**: `0`
|
|
204
|
-
*
|
|
205
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
206
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
207
|
-
* | **1** | **1** | **1** | **12** | **4** |
|
|
208
|
-
*
|
|
209
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/padding-left
|
|
210
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/padding-right
|
|
211
|
-
*/
|
|
212
|
-
paddingX?: StandardCSSProperties['paddingLeft'];
|
|
213
|
-
/**
|
|
214
|
-
* The **`py`** property is shorthand for the CSS properties **`padding-top`** and **`padding-bottom`**. They set the width of the padding at the top and bottom of an element.
|
|
215
|
-
*
|
|
216
|
-
* **Initial value**: `0`
|
|
217
|
-
*
|
|
218
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
219
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
220
|
-
* | **1** | **1** | **1** | **12** | **4** |
|
|
221
|
-
*
|
|
222
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/padding-top
|
|
223
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/padding-bottom
|
|
224
|
-
*/
|
|
225
|
-
py?: StandardCSSProperties['paddingTop'];
|
|
226
|
-
/**
|
|
227
|
-
* The **`paddingY`** property is shorthand for the CSS properties **`padding-top`** and **`padding-bottom`**. They set the width of the padding at the top and bottom of an element.
|
|
228
|
-
*
|
|
229
|
-
* **Initial value**: `0`
|
|
230
|
-
*
|
|
231
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
232
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
233
|
-
* | **1** | **1** | **1** | **12** | **4** |
|
|
234
|
-
*
|
|
235
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/padding-top
|
|
236
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/padding-bottom
|
|
237
|
-
*/
|
|
238
|
-
paddingY?: StandardCSSProperties['paddingTop'];
|
|
239
|
-
/**
|
|
240
|
-
* The **`typography`** property is shorthand for the CSS properties **`font-family`**, **`font-weight`**, **`font-size`**, **`line-height`**, **`letter-spacing`** and **`text-transform``**.
|
|
241
|
-
* It takes the values defined under `theme.typography` and spreads them on the element.
|
|
242
|
-
*
|
|
243
|
-
* **Initial value**: `0`
|
|
244
|
-
*
|
|
245
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
246
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
247
|
-
* | **2** | **1** | **1** | **12** | **5.5** |
|
|
248
|
-
*
|
|
249
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/font-family
|
|
250
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/font-weight
|
|
251
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/font-size
|
|
252
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/line-height
|
|
253
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/letter-spacing
|
|
254
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/text-transform
|
|
255
|
-
*/
|
|
256
|
-
typography?: string;
|
|
257
|
-
/**
|
|
258
|
-
* The **`displayPrint`** property sets the display value for the element when the page is printed.
|
|
259
|
-
*
|
|
260
|
-
* **Initial value**: `inline`
|
|
261
|
-
*
|
|
262
|
-
* | Chrome | Firefox | Safari | Edge | IE |
|
|
263
|
-
* | :----: | :-----: | :----: | :----: | :---: |
|
|
264
|
-
* | **1** | **1** | **1** | **12** | **4** |
|
|
265
|
-
*
|
|
266
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/display
|
|
267
|
-
*/
|
|
268
|
-
displayPrint?: StandardCSSProperties['display'];
|
|
269
|
-
}
|