@mui/system 7.0.2 → 7.1.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/Box/Box.d.ts +12 -31
- package/CHANGELOG.md +169 -0
- package/Grid/createGrid.js +1 -2
- package/InitColorSchemeScript/InitColorSchemeScript.js +1 -1
- package/Stack/createStack.js +1 -2
- package/borders/borders.d.ts +2 -1
- package/breakpoints/breakpoints.d.ts +1 -1
- package/compose/compose.d.ts +14 -1
- package/compose/index.d.ts +1 -1
- package/createStyled/createStyled.js +9 -4
- package/createTheme/shape.d.ts +1 -1
- package/cssGrid/cssGrid.d.ts +2 -1
- package/display/display.d.ts +2 -1
- package/esm/Box/Box.d.ts +12 -31
- package/esm/Grid/createGrid.js +1 -2
- package/esm/InitColorSchemeScript/InitColorSchemeScript.js +1 -1
- package/esm/Stack/createStack.js +1 -2
- package/esm/borders/borders.d.ts +2 -1
- package/esm/breakpoints/breakpoints.d.ts +1 -1
- package/esm/compose/compose.d.ts +14 -1
- package/esm/compose/index.d.ts +1 -1
- package/esm/createStyled/createStyled.js +9 -4
- package/esm/createTheme/shape.d.ts +1 -1
- package/esm/cssGrid/cssGrid.d.ts +2 -1
- package/esm/display/display.d.ts +2 -1
- package/esm/flexbox/flexbox.d.ts +15 -1
- package/esm/index.d.ts +10 -0
- package/esm/index.js +1 -1
- package/esm/palette/palette.d.ts +2 -1
- package/esm/positions/positions.d.ts +2 -1
- package/esm/shadows/shadows.d.ts +2 -1
- package/esm/sizing/sizing.d.ts +2 -1
- package/esm/spacing/spacing.d.ts +2 -1
- package/esm/style/style.d.ts +5 -1
- package/esm/styleFunctionSx/defaultSxConfig.d.ts +1 -2
- package/esm/typography/typography.d.ts +2 -1
- package/esm/useMediaQuery/useMediaQuery.js +3 -0
- package/esm/version/index.js +3 -3
- package/flexbox/flexbox.d.ts +15 -1
- package/index.d.ts +10 -0
- package/index.js +1 -1
- package/package.json +7 -7
- package/palette/palette.d.ts +2 -1
- package/positions/positions.d.ts +2 -1
- package/shadows/shadows.d.ts +2 -1
- package/sizing/sizing.d.ts +2 -1
- package/spacing/spacing.d.ts +2 -1
- package/style/style.d.ts +5 -1
- package/styleFunctionSx/defaultSxConfig.d.ts +1 -2
- package/typography/typography.d.ts +2 -1
- package/useMediaQuery/useMediaQuery.js +3 -0
- package/version/index.js +3 -3
- 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/deleteLegacyGridProps.d.ts +0 -11
- 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 -14
- 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 -15
- package/modern/cssGrid/index.d.ts +0 -2
- package/modern/cssVars/createCssVarsProvider.d.ts +0 -141
- 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 -8
- package/modern/cssVars/localStorageManager.d.ts +0 -34
- package/modern/cssVars/prepareCssVars.d.ts +0 -16
- package/modern/cssVars/prepareTypographyVars.d.ts +0 -4
- package/modern/cssVars/useCurrentColorScheme.d.ts +0 -56
- package/modern/display/display.d.ts +0 -3
- package/modern/display/index.d.ts +0 -2
- package/modern/flexbox/flexbox.d.ts +0 -3
- 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 -80
- 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 -5
- package/modern/positions/index.d.ts +0 -2
- package/modern/positions/positions.d.ts +0 -3
- 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 -3
- package/modern/sizing/index.d.ts +0 -2
- package/modern/sizing/sizing.d.ts +0 -12
- package/modern/spacing/index.d.ts +0 -2
- package/modern/spacing/spacing.d.ts +0 -19
- 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 -12
- 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 -11
- 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/esm/shadows/shadows.d.ts
CHANGED
package/esm/sizing/sizing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsFor, SimpleStyleFunction
|
|
1
|
+
import { PropsFor, SimpleStyleFunction } from "../style/index.js";
|
|
2
2
|
export const width: SimpleStyleFunction<'width'>;
|
|
3
3
|
export const maxWidth: SimpleStyleFunction<'maxWidth'>;
|
|
4
4
|
export const minWidth: SimpleStyleFunction<'minWidth'>;
|
|
@@ -8,5 +8,6 @@ export const minHeight: SimpleStyleFunction<'minHeight'>;
|
|
|
8
8
|
export const sizeWidth: SimpleStyleFunction<'sizeWidth'>;
|
|
9
9
|
export const sizeHeight: SimpleStyleFunction<'sizeHeight'>;
|
|
10
10
|
export const boxSizing: SimpleStyleFunction<'boxSizing'>;
|
|
11
|
+
declare const sizing: SimpleStyleFunction<'width' | 'maxWidth' | 'minWidth' | 'height' | 'maxHeight' | 'minHeight' | 'sizeWidth' | 'sizeHeight' | 'boxSizing'>;
|
|
11
12
|
export type SizingProps = PropsFor<typeof sizing>;
|
|
12
13
|
export default sizing;
|
package/esm/spacing/spacing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SimpleStyleFunction,
|
|
1
|
+
import { SimpleStyleFunction, PropsFor } from "../style/index.js";
|
|
2
2
|
export type SpacingValueType = string | number | null | undefined;
|
|
3
3
|
export type SpacingProps = PropsFor<typeof spacing>;
|
|
4
4
|
export function createUnarySpacing<Spacing>(theme: {
|
|
@@ -14,6 +14,7 @@ export function createUnaryUnit<Spacing>(theme: {
|
|
|
14
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
15
|
export type MarginProps = PropsFor<typeof margin>;
|
|
16
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
|
+
declare const spacing: SimpleStyleFunction<'m' | 'mt' | 'mr' | 'mb' | 'ml' | 'mx' | 'my' | 'p' | 'pt' | 'pr' | 'pb' | 'pl' | 'px' | 'py' | 'margin' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft' | 'marginX' | 'marginY' | 'marginInline' | 'marginInlineStart' | 'marginInlineEnd' | 'marginBlock' | 'marginBlockStart' | 'marginBlockEnd' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'paddingX' | 'paddingY' | 'paddingInline' | 'paddingInlineStart' | 'paddingInlineEnd' | 'paddingBlock' | 'paddingBlockStart' | 'paddingBlockEnd'>;
|
|
17
18
|
export function getValue(transformer: (prop: SpacingValueType) => SpacingValueType, propValue: SpacingValueType): SpacingValueType;
|
|
18
19
|
export type PaddingProps = PropsFor<typeof padding>;
|
|
19
20
|
export default spacing;
|
package/esm/style/style.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { CSSObject } from '@mui/styled-engine';
|
|
2
|
-
|
|
2
|
+
export type PropsFor<SomeStyleFunction> = SomeStyleFunction extends StyleFunction<infer Props> ? Props : never;
|
|
3
|
+
export type StyleFunction<Props> = (props: Props) => any;
|
|
4
|
+
export type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<Partial<Record<PropKey, any>>> & {
|
|
5
|
+
filterProps: string[];
|
|
6
|
+
};
|
|
3
7
|
export type TransformFunction = (cssValue: unknown, userValue: unknown) => number | string | React.CSSProperties | CSSObject;
|
|
4
8
|
export interface StyleOptions<PropKey> {
|
|
5
9
|
cssProperty?: PropKey | keyof React.CSSProperties | false;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { StyleFunction } from "../
|
|
2
|
-
import { TransformFunction } from "../style/index.js";
|
|
1
|
+
import { StyleFunction, TransformFunction } from "../style/index.js";
|
|
3
2
|
type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<Partial<Record<PropKey, any>>>;
|
|
4
3
|
export interface SxConfigRecord {
|
|
5
4
|
cssProperty?: keyof React.CSSProperties | false;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsFor, SimpleStyleFunction
|
|
1
|
+
import { PropsFor, SimpleStyleFunction } from "../style/index.js";
|
|
2
2
|
export const typographyVariant: SimpleStyleFunction<'typography'>;
|
|
3
3
|
export const fontFamily: SimpleStyleFunction<'fontFamily'>;
|
|
4
4
|
export const fontSize: SimpleStyleFunction<'fontSize'>;
|
|
@@ -8,5 +8,6 @@ export const letterSpacing: SimpleStyleFunction<'letterSpacing'>;
|
|
|
8
8
|
export const lineHeight: SimpleStyleFunction<'lineHeight'>;
|
|
9
9
|
export const textAlign: SimpleStyleFunction<'textAlign'>;
|
|
10
10
|
export const textTransform: SimpleStyleFunction<'textTransform'>;
|
|
11
|
+
declare const typography: SimpleStyleFunction<'typography' | 'fontFamily' | 'fontSize' | 'fontStyle' | 'fontWeight' | 'letterSpacing' | 'lineHeight' | 'textAlign' | 'textTransform'>;
|
|
11
12
|
export type TypographyProps = PropsFor<typeof typography>;
|
|
12
13
|
export default typography;
|
|
@@ -102,6 +102,9 @@ export function unstable_createUseMediaQuery(params = {}) {
|
|
|
102
102
|
}
|
|
103
103
|
let query = typeof queryInput === 'function' ? queryInput(theme) : queryInput;
|
|
104
104
|
query = query.replace(/^@media( ?)/m, '');
|
|
105
|
+
if (query.includes('print')) {
|
|
106
|
+
console.warn([`MUI: You have provided a \`print\` query to the \`useMediaQuery\` hook.`, 'Using the print media query to modify print styles can lead to unexpected results.', 'Consider using the `displayPrint` field in the `sx` prop instead.', 'More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print.'].join('\n'));
|
|
107
|
+
}
|
|
105
108
|
const useMediaQueryImplementation = maybeReactUseSyncExternalStore !== undefined ? useMediaQueryNew : useMediaQueryOld;
|
|
106
109
|
const match = useMediaQueryImplementation(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr);
|
|
107
110
|
if (process.env.NODE_ENV !== 'production') {
|
package/esm/version/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const version = "7.
|
|
1
|
+
export const version = "7.1.1";
|
|
2
2
|
export const major = Number("7");
|
|
3
|
-
export const minor = Number("
|
|
4
|
-
export const patch = Number("
|
|
3
|
+
export const minor = Number("1");
|
|
4
|
+
export const patch = Number("1");
|
|
5
5
|
export const prerelease = undefined;
|
|
6
6
|
export default version;
|
package/flexbox/flexbox.d.ts
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
import { PropsFor,
|
|
1
|
+
import { PropsFor, SimpleStyleFunction } from "../style/index.js";
|
|
2
|
+
export const flexBasis: SimpleStyleFunction<'flexBasis'>;
|
|
3
|
+
export const flexDirection: SimpleStyleFunction<'flexDirection'>;
|
|
4
|
+
export const flexWrap: SimpleStyleFunction<'flexWrap'>;
|
|
5
|
+
export const justifyContent: SimpleStyleFunction<'justifyContent'>;
|
|
6
|
+
export const alignItems: SimpleStyleFunction<'alignItems'>;
|
|
7
|
+
export const alignContent: SimpleStyleFunction<'alignContent'>;
|
|
8
|
+
export const order: SimpleStyleFunction<'order'>;
|
|
9
|
+
export const flex: SimpleStyleFunction<'flex'>;
|
|
10
|
+
export const flexGrow: SimpleStyleFunction<'flexGrow'>;
|
|
11
|
+
export const flexShrink: SimpleStyleFunction<'flexShrink'>;
|
|
12
|
+
export const alignSelf: SimpleStyleFunction<'alignSelf'>;
|
|
13
|
+
export const justifyItems: SimpleStyleFunction<'justifyItems'>;
|
|
14
|
+
export const justifySelf: SimpleStyleFunction<'justifySelf'>;
|
|
15
|
+
declare const flexbox: SimpleStyleFunction<'flexBasis' | 'flexDirection' | 'flexWrap' | 'justifyContent' | 'alignItems' | 'alignContent' | 'order' | 'flex' | 'flexGrow' | 'flexShrink' | 'alignSelf' | 'justifyItems' | 'justifySelf'>;
|
|
2
16
|
export type FlexboxProps = PropsFor<typeof flexbox>;
|
|
3
17
|
export default flexbox;
|
package/index.d.ts
CHANGED
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
// disable automatic export
|
|
2
2
|
export {};
|
|
3
3
|
export * from "./borders/index.js";
|
|
4
|
+
export { default as borders } from "./borders/index.js";
|
|
4
5
|
export { default as breakpoints, handleBreakpoints, mergeBreakpointsInOrder } from "./breakpoints/index.js";
|
|
5
6
|
export { default as cssContainerQueries, type CssContainerQueries } from "./cssContainerQueries/index.js";
|
|
6
7
|
export { default as compose } from "./compose/index.js";
|
|
7
8
|
export * from "./display/index.js";
|
|
9
|
+
export { default as display } from "./display/index.js";
|
|
8
10
|
export * from "./flexbox/index.js";
|
|
11
|
+
export { default as flexbox } from "./flexbox/index.js";
|
|
9
12
|
export * from "./cssGrid/index.js";
|
|
13
|
+
export { default as grid } from "./cssGrid/index.js";
|
|
10
14
|
export * from "./palette/index.js";
|
|
15
|
+
export { default as palette } from "./palette/index.js";
|
|
11
16
|
export * from "./positions/index.js";
|
|
17
|
+
export { default as positions } from "./positions/index.js";
|
|
12
18
|
export * from "./shadows/index.js";
|
|
19
|
+
export { default as shadows } from "./shadows/index.js";
|
|
13
20
|
export * from "./sizing/index.js";
|
|
21
|
+
export { default as sizing } from "./sizing/index.js";
|
|
14
22
|
export * from "./typography/index.js";
|
|
23
|
+
export { default as typography } from "./typography/index.js";
|
|
15
24
|
export { default as unstable_getThemeValue } from "./getThemeValue/index.js";
|
|
16
25
|
|
|
17
26
|
/**
|
|
@@ -29,6 +38,7 @@ export type { GlobalStylesProps } from "./GlobalStyles/index.js";
|
|
|
29
38
|
export * from "./style/index.js";
|
|
30
39
|
export { default as style } from "./style/index.js";
|
|
31
40
|
export * from "./spacing/index.js";
|
|
41
|
+
export { default as spacing } from "./spacing/index.js";
|
|
32
42
|
export { default as unstable_styleFunctionSx, unstable_createStyleFunctionSx, extendSxProp as unstable_extendSxProp, unstable_defaultSxConfig } from "./styleFunctionSx/index.js";
|
|
33
43
|
export * from "./styleFunctionSx/index.js";
|
|
34
44
|
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/system",
|
|
3
|
-
"version": "7.
|
|
4
|
-
"private": false,
|
|
3
|
+
"version": "7.1.1",
|
|
5
4
|
"author": "MUI Team",
|
|
6
5
|
"description": "MUI System is a set of CSS utilities to help you build custom designs more efficiently. It makes it possible to rapidly lay out custom designs.",
|
|
7
6
|
"main": "./index.js",
|
|
@@ -26,14 +25,14 @@
|
|
|
26
25
|
"url": "https://opencollective.com/mui-org"
|
|
27
26
|
},
|
|
28
27
|
"dependencies": {
|
|
29
|
-
"@babel/runtime": "^7.27.
|
|
28
|
+
"@babel/runtime": "^7.27.1",
|
|
30
29
|
"clsx": "^2.1.1",
|
|
31
30
|
"csstype": "^3.1.3",
|
|
32
31
|
"prop-types": "^15.8.1",
|
|
33
|
-
"@mui/private-theming": "^7.
|
|
34
|
-
"@mui/
|
|
35
|
-
"@mui/
|
|
36
|
-
"@mui/utils": "^7.
|
|
32
|
+
"@mui/private-theming": "^7.1.1",
|
|
33
|
+
"@mui/types": "^7.4.3",
|
|
34
|
+
"@mui/styled-engine": "^7.1.1",
|
|
35
|
+
"@mui/utils": "^7.1.1"
|
|
37
36
|
},
|
|
38
37
|
"peerDependencies": {
|
|
39
38
|
"@emotion/react": "^11.5.0",
|
|
@@ -60,6 +59,7 @@
|
|
|
60
59
|
"engines": {
|
|
61
60
|
"node": ">=14.0.0"
|
|
62
61
|
},
|
|
62
|
+
"private": false,
|
|
63
63
|
"module": "./esm/index.js",
|
|
64
64
|
"exports": {
|
|
65
65
|
"./package.json": "./package.json",
|
package/palette/palette.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { PropsFor, SimpleStyleFunction
|
|
1
|
+
import { PropsFor, SimpleStyleFunction } from "../style/index.js";
|
|
2
2
|
export const color: SimpleStyleFunction<'color'>;
|
|
3
3
|
export const bgcolor: SimpleStyleFunction<'bgcolor'>;
|
|
4
|
+
declare const palette: SimpleStyleFunction<'bgcolor' | 'color'>;
|
|
4
5
|
export type PaletteProps = PropsFor<typeof palette>;
|
|
5
6
|
export default palette;
|
package/positions/positions.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { PropsFor,
|
|
1
|
+
import { PropsFor, SimpleStyleFunction } from "../style/index.js";
|
|
2
|
+
declare const positions: SimpleStyleFunction<'zIndex' | 'position' | 'top' | 'right' | 'bottom' | 'left'>;
|
|
2
3
|
export type PositionsProps = PropsFor<typeof positions>;
|
|
3
4
|
export default positions;
|
package/shadows/shadows.d.ts
CHANGED
package/sizing/sizing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsFor, SimpleStyleFunction
|
|
1
|
+
import { PropsFor, SimpleStyleFunction } from "../style/index.js";
|
|
2
2
|
export const width: SimpleStyleFunction<'width'>;
|
|
3
3
|
export const maxWidth: SimpleStyleFunction<'maxWidth'>;
|
|
4
4
|
export const minWidth: SimpleStyleFunction<'minWidth'>;
|
|
@@ -8,5 +8,6 @@ export const minHeight: SimpleStyleFunction<'minHeight'>;
|
|
|
8
8
|
export const sizeWidth: SimpleStyleFunction<'sizeWidth'>;
|
|
9
9
|
export const sizeHeight: SimpleStyleFunction<'sizeHeight'>;
|
|
10
10
|
export const boxSizing: SimpleStyleFunction<'boxSizing'>;
|
|
11
|
+
declare const sizing: SimpleStyleFunction<'width' | 'maxWidth' | 'minWidth' | 'height' | 'maxHeight' | 'minHeight' | 'sizeWidth' | 'sizeHeight' | 'boxSizing'>;
|
|
11
12
|
export type SizingProps = PropsFor<typeof sizing>;
|
|
12
13
|
export default sizing;
|
package/spacing/spacing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SimpleStyleFunction,
|
|
1
|
+
import { SimpleStyleFunction, PropsFor } from "../style/index.js";
|
|
2
2
|
export type SpacingValueType = string | number | null | undefined;
|
|
3
3
|
export type SpacingProps = PropsFor<typeof spacing>;
|
|
4
4
|
export function createUnarySpacing<Spacing>(theme: {
|
|
@@ -14,6 +14,7 @@ export function createUnaryUnit<Spacing>(theme: {
|
|
|
14
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
15
|
export type MarginProps = PropsFor<typeof margin>;
|
|
16
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
|
+
declare const spacing: SimpleStyleFunction<'m' | 'mt' | 'mr' | 'mb' | 'ml' | 'mx' | 'my' | 'p' | 'pt' | 'pr' | 'pb' | 'pl' | 'px' | 'py' | 'margin' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft' | 'marginX' | 'marginY' | 'marginInline' | 'marginInlineStart' | 'marginInlineEnd' | 'marginBlock' | 'marginBlockStart' | 'marginBlockEnd' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'paddingX' | 'paddingY' | 'paddingInline' | 'paddingInlineStart' | 'paddingInlineEnd' | 'paddingBlock' | 'paddingBlockStart' | 'paddingBlockEnd'>;
|
|
17
18
|
export function getValue(transformer: (prop: SpacingValueType) => SpacingValueType, propValue: SpacingValueType): SpacingValueType;
|
|
18
19
|
export type PaddingProps = PropsFor<typeof padding>;
|
|
19
20
|
export default spacing;
|
package/style/style.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { CSSObject } from '@mui/styled-engine';
|
|
2
|
-
|
|
2
|
+
export type PropsFor<SomeStyleFunction> = SomeStyleFunction extends StyleFunction<infer Props> ? Props : never;
|
|
3
|
+
export type StyleFunction<Props> = (props: Props) => any;
|
|
4
|
+
export type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<Partial<Record<PropKey, any>>> & {
|
|
5
|
+
filterProps: string[];
|
|
6
|
+
};
|
|
3
7
|
export type TransformFunction = (cssValue: unknown, userValue: unknown) => number | string | React.CSSProperties | CSSObject;
|
|
4
8
|
export interface StyleOptions<PropKey> {
|
|
5
9
|
cssProperty?: PropKey | keyof React.CSSProperties | false;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { StyleFunction } from "../
|
|
2
|
-
import { TransformFunction } from "../style/index.js";
|
|
1
|
+
import { StyleFunction, TransformFunction } from "../style/index.js";
|
|
3
2
|
type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<Partial<Record<PropKey, any>>>;
|
|
4
3
|
export interface SxConfigRecord {
|
|
5
4
|
cssProperty?: keyof React.CSSProperties | false;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsFor, SimpleStyleFunction
|
|
1
|
+
import { PropsFor, SimpleStyleFunction } from "../style/index.js";
|
|
2
2
|
export const typographyVariant: SimpleStyleFunction<'typography'>;
|
|
3
3
|
export const fontFamily: SimpleStyleFunction<'fontFamily'>;
|
|
4
4
|
export const fontSize: SimpleStyleFunction<'fontSize'>;
|
|
@@ -8,5 +8,6 @@ export const letterSpacing: SimpleStyleFunction<'letterSpacing'>;
|
|
|
8
8
|
export const lineHeight: SimpleStyleFunction<'lineHeight'>;
|
|
9
9
|
export const textAlign: SimpleStyleFunction<'textAlign'>;
|
|
10
10
|
export const textTransform: SimpleStyleFunction<'textTransform'>;
|
|
11
|
+
declare const typography: SimpleStyleFunction<'typography' | 'fontFamily' | 'fontSize' | 'fontStyle' | 'fontWeight' | 'letterSpacing' | 'lineHeight' | 'textAlign' | 'textTransform'>;
|
|
11
12
|
export type TypographyProps = PropsFor<typeof typography>;
|
|
12
13
|
export default typography;
|
|
@@ -110,6 +110,9 @@ function unstable_createUseMediaQuery(params = {}) {
|
|
|
110
110
|
}
|
|
111
111
|
let query = typeof queryInput === 'function' ? queryInput(theme) : queryInput;
|
|
112
112
|
query = query.replace(/^@media( ?)/m, '');
|
|
113
|
+
if (query.includes('print')) {
|
|
114
|
+
console.warn([`MUI: You have provided a \`print\` query to the \`useMediaQuery\` hook.`, 'Using the print media query to modify print styles can lead to unexpected results.', 'Consider using the `displayPrint` field in the `sx` prop instead.', 'More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print.'].join('\n'));
|
|
115
|
+
}
|
|
113
116
|
const useMediaQueryImplementation = maybeReactUseSyncExternalStore !== undefined ? useMediaQueryNew : useMediaQueryOld;
|
|
114
117
|
const match = useMediaQueryImplementation(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr);
|
|
115
118
|
if (process.env.NODE_ENV !== 'production') {
|
package/version/index.js
CHANGED
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.prerelease = exports.patch = exports.minor = exports.major = exports.default = void 0;
|
|
7
|
-
const version = exports.version = "7.
|
|
7
|
+
const version = exports.version = "7.1.1";
|
|
8
8
|
const major = exports.major = Number("7");
|
|
9
|
-
const minor = exports.minor = Number("
|
|
10
|
-
const patch = exports.patch = Number("
|
|
9
|
+
const minor = exports.minor = Number("1");
|
|
10
|
+
const patch = exports.patch = Number("1");
|
|
11
11
|
const prerelease = exports.prerelease = undefined;
|
|
12
12
|
var _default = exports.default = version;
|
package/modern/Box/Box.d.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { OverridableComponent, OverrideProps } from '@mui/types';
|
|
3
|
-
import { Theme as SystemTheme } from "../createTheme/index.js";
|
|
4
|
-
import { SxProps, AllSystemCSSProperties, ResponsiveStyleValue, OverwriteCSSProperties, AliasesCSSProperties } from "../styleFunctionSx/index.js";
|
|
5
|
-
export type PropsFor<SomeStyleFunction> = SomeStyleFunction extends StyleFunction<infer Props> ? Props : never;
|
|
6
|
-
export type StyleFunction<Props> = (props: Props) => any;
|
|
7
|
-
export type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<Partial<Record<PropKey, any>>> & {
|
|
8
|
-
filterProps: string[];
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// borders.js
|
|
12
|
-
export declare const borders: SimpleStyleFunction<'border' | 'borderTop' | 'borderRight' | 'borderBottom' | 'borderLeft' | 'borderColor' | 'borderRadius'>;
|
|
13
|
-
export declare const display: SimpleStyleFunction<'display' | 'displayPrint' | 'overflow' | 'textOverflow' | 'visibility' | 'whiteSpace'>;
|
|
14
|
-
export declare const flexbox: SimpleStyleFunction<'flexBasis' | 'flexDirection' | 'flexWrap' | 'justifyContent' | 'alignItems' | 'alignContent' | 'order' | 'flex' | 'flexGrow' | 'flexShrink' | 'alignSelf' | 'justifyItems' | 'justifySelf'>;
|
|
15
|
-
export declare const grid: SimpleStyleFunction<'gap' | 'columnGap' | 'rowGap' | 'gridColumn' | 'gridRow' | 'gridAutoFlow' | 'gridAutoColumns' | 'gridAutoRows' | 'gridTemplateColumns' | 'gridTemplateRows' | 'gridTemplateAreas' | 'gridArea'>;
|
|
16
|
-
export declare const palette: SimpleStyleFunction<'bgcolor' | 'color'>;
|
|
17
|
-
export declare const positions: SimpleStyleFunction<'zIndex' | 'position' | 'top' | 'right' | 'bottom' | 'left'>;
|
|
18
|
-
export declare const shadows: SimpleStyleFunction<'boxShadow'>;
|
|
19
|
-
export declare const sizing: SimpleStyleFunction<'width' | 'maxWidth' | 'minWidth' | 'height' | 'maxHeight' | 'minHeight' | 'sizeWidth' | 'sizeHeight' | 'boxSizing'>;
|
|
20
|
-
export declare const spacing: SimpleStyleFunction<'m' | 'mt' | 'mr' | 'mb' | 'ml' | 'mx' | 'my' | 'p' | 'pt' | 'pr' | 'pb' | 'pl' | 'px' | 'py' | 'margin' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft' | 'marginX' | 'marginY' | 'marginInline' | 'marginInlineStart' | 'marginInlineEnd' | 'marginBlock' | 'marginBlockStart' | 'marginBlockEnd' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'paddingX' | 'paddingY' | 'paddingInline' | 'paddingInlineStart' | 'paddingInlineEnd' | 'paddingBlock' | 'paddingBlockStart' | 'paddingBlockEnd'>;
|
|
21
|
-
export declare const typography: SimpleStyleFunction<'typography' | 'fontFamily' | 'fontSize' | 'fontStyle' | 'fontWeight' | 'letterSpacing' | 'lineHeight' | 'textAlign' | 'textTransform'>;
|
|
22
|
-
|
|
23
|
-
// compose.js
|
|
24
|
-
/**
|
|
25
|
-
* given a list of StyleFunction return the intersection of the props each individual
|
|
26
|
-
* StyleFunction requires.
|
|
27
|
-
*
|
|
28
|
-
* If `firstFn` requires { color: string } and `secondFn` requires { spacing: number }
|
|
29
|
-
* their composed function requires { color: string, spacing: number }
|
|
30
|
-
*/
|
|
31
|
-
type ComposedArg<T> = T extends Array<(arg: infer P) => any> ? P : never;
|
|
32
|
-
type ComposedOwnerState<T> = ComposedArg<T>;
|
|
33
|
-
export type ComposedStyleFunction<T extends Array<StyleFunction<any>>> = StyleFunction<ComposedOwnerState<T>> & {
|
|
34
|
-
filterProps: string[];
|
|
35
|
-
};
|
|
36
|
-
export interface CustomSystemProps extends AliasesCSSProperties, OverwriteCSSProperties {}
|
|
37
|
-
export type SimpleSystemKeys = keyof PropsFor<ComposedStyleFunction<[typeof borders, typeof display, typeof flexbox, typeof grid, typeof palette, typeof positions, typeof shadows, typeof sizing, typeof spacing, typeof typography]>>;
|
|
38
|
-
|
|
39
|
-
// The SimpleSystemKeys are subset of the AllSystemCSSProperties, so this should be ok
|
|
40
|
-
// This is needed as these are used as keys inside AllSystemCSSProperties
|
|
41
|
-
type StandardSystemKeys = Extract<SimpleSystemKeys, keyof AllSystemCSSProperties>;
|
|
42
|
-
export type SystemProps<Theme extends object = {}> = { [K in StandardSystemKeys]?: ResponsiveStyleValue<AllSystemCSSProperties[K]> | ((theme: Theme) => ResponsiveStyleValue<AllSystemCSSProperties[K]>) };
|
|
43
|
-
export interface BoxOwnProps<Theme extends object = SystemTheme> extends SystemProps<Theme> {
|
|
44
|
-
children?: React.ReactNode;
|
|
45
|
-
ref?: React.Ref<unknown>;
|
|
46
|
-
/**
|
|
47
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
48
|
-
*/
|
|
49
|
-
sx?: SxProps<Theme>;
|
|
50
|
-
}
|
|
51
|
-
export interface BoxTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'div', Theme extends object = SystemTheme> {
|
|
52
|
-
props: AdditionalProps & BoxOwnProps<Theme>;
|
|
53
|
-
defaultComponent: RootComponent;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* Demos:
|
|
59
|
-
*
|
|
60
|
-
* - [Box (Joy UI)](https://mui.com/joy-ui/react-box/)
|
|
61
|
-
* - [Box (Material UI)](https://mui.com/material-ui/react-box/)
|
|
62
|
-
* - [Box (MUI System)](https://mui.com/system/react-box/)
|
|
63
|
-
*
|
|
64
|
-
* API:
|
|
65
|
-
*
|
|
66
|
-
* - [Box API](https://mui.com/system/api/box/)
|
|
67
|
-
*/
|
|
68
|
-
declare const Box: OverridableComponent<BoxTypeMap>;
|
|
69
|
-
export type BoxProps<RootComponent extends React.ElementType = BoxTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<BoxTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
|
70
|
-
component?: React.ElementType;
|
|
71
|
-
};
|
|
72
|
-
export default Box;
|
package/modern/Box/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as CSS from 'csstype';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* All non-vendor-prefixed CSS properties. (Also allows `number` in order to support CSS-in-JS libs,
|
|
5
|
-
* since they are converted to `px`.)
|
|
6
|
-
*/
|
|
7
|
-
export interface CSSProperties extends CSS.StandardProperties<number | string>, CSS.SvgProperties<number | string> {}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* Demos:
|
|
4
|
-
*
|
|
5
|
-
* - [Container (Material UI)](https://mui.com/material-ui/react-container/)
|
|
6
|
-
* - [Container (MUI System)](https://mui.com/system/react-container/)
|
|
7
|
-
*
|
|
8
|
-
* API:
|
|
9
|
-
*
|
|
10
|
-
* - [Container API](https://mui.com/system/api/container/)
|
|
11
|
-
*/
|
|
12
|
-
declare const Container: import("@mui/types").OverridableComponent<import("./ContainerProps.js").ContainerTypeMap<{}, "div">>;
|
|
13
|
-
export default Container;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { OverrideProps } from '@mui/types';
|
|
3
|
-
import { SxProps } from "../styleFunctionSx/index.js";
|
|
4
|
-
import { Theme, Breakpoint } from "../createTheme/index.js";
|
|
5
|
-
import { ContainerClasses } from "./containerClasses.js";
|
|
6
|
-
export interface ContainerTypeMap<AdditionalProps = {}, DefaultComponent extends React.ElementType = 'div'> {
|
|
7
|
-
props: AdditionalProps & {
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* Override or extend the styles applied to the component.
|
|
11
|
-
*/
|
|
12
|
-
classes?: Partial<ContainerClasses>;
|
|
13
|
-
/**
|
|
14
|
-
* If `true`, the left and right padding is removed.
|
|
15
|
-
* @default false
|
|
16
|
-
*/
|
|
17
|
-
disableGutters?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Set the max-width to match the min-width of the current breakpoint.
|
|
20
|
-
* This is useful if you'd prefer to design for a fixed set of sizes
|
|
21
|
-
* instead of trying to accommodate a fully fluid viewport.
|
|
22
|
-
* It's fluid by default.
|
|
23
|
-
* @default false
|
|
24
|
-
*/
|
|
25
|
-
fixed?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Determine the max-width of the container.
|
|
28
|
-
* The container width grows with the size of the screen.
|
|
29
|
-
* Set to `false` to disable `maxWidth`.
|
|
30
|
-
* @default 'lg'
|
|
31
|
-
*/
|
|
32
|
-
maxWidth?: Breakpoint | false;
|
|
33
|
-
/**
|
|
34
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
35
|
-
*/
|
|
36
|
-
sx?: SxProps<Theme>;
|
|
37
|
-
};
|
|
38
|
-
defaultComponent: DefaultComponent;
|
|
39
|
-
}
|
|
40
|
-
export type ContainerProps<RootComponent extends React.ElementType = ContainerTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<ContainerTypeMap<AdditionalProps, RootComponent>, RootComponent>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface ContainerClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `disableGutters={true}`. */
|
|
5
|
-
disableGutters: string;
|
|
6
|
-
/** Styles applied to the root element if `fixed={true}`. */
|
|
7
|
-
fixed: string;
|
|
8
|
-
/** Styles applied to the root element if `maxWidth="xs"`. */
|
|
9
|
-
maxWidthXs: string;
|
|
10
|
-
/** Styles applied to the root element if `maxWidth="sm"`. */
|
|
11
|
-
maxWidthSm: string;
|
|
12
|
-
/** Styles applied to the root element if `maxWidth="md"`. */
|
|
13
|
-
maxWidthMd: string;
|
|
14
|
-
/** Styles applied to the root element if `maxWidth="lg"`. */
|
|
15
|
-
maxWidthLg: string;
|
|
16
|
-
/** Styles applied to the root element if `maxWidth="xl"`. */
|
|
17
|
-
maxWidthXl: string;
|
|
18
|
-
}
|
|
19
|
-
export type ContainerClassKey = keyof ContainerClasses;
|
|
20
|
-
export declare function getContainerUtilityClass(slot: string): string;
|
|
21
|
-
declare const containerClasses: ContainerClasses;
|
|
22
|
-
export default containerClasses;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Interpolation, MUIStyledComponent as StyledComponent } from '@mui/styled-engine';
|
|
3
|
-
import { OverridableComponent } from '@mui/types';
|
|
4
|
-
import { ContainerProps, ContainerTypeMap } from "./ContainerProps.js";
|
|
5
|
-
import { Theme as DefaultTheme } from "../createTheme/index.js";
|
|
6
|
-
interface StyleFnProps<Theme> extends ContainerProps {
|
|
7
|
-
theme: Theme;
|
|
8
|
-
ownerState: ContainerProps;
|
|
9
|
-
}
|
|
10
|
-
type RequiredThemeStructure = Pick<DefaultTheme, 'breakpoints' | 'spacing'>;
|
|
11
|
-
export default function createContainer<Theme extends RequiredThemeStructure = DefaultTheme>(options?: {
|
|
12
|
-
createStyledComponent?: (...styles: Array<Interpolation<StyleFnProps<Theme>>>) => StyledComponent<ContainerProps>;
|
|
13
|
-
useThemeProps?: (inProps: ContainerProps) => ContainerProps & {
|
|
14
|
-
component?: React.ElementType;
|
|
15
|
-
};
|
|
16
|
-
componentName?: string;
|
|
17
|
-
}): OverridableComponent<ContainerTypeMap<{}, "div">>;
|
|
18
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare function DefaultPropsProvider({
|
|
3
|
-
value,
|
|
4
|
-
children
|
|
5
|
-
}: React.PropsWithChildren<{
|
|
6
|
-
value: Record<string, any> | undefined;
|
|
7
|
-
}>): React.JSX.Element;
|
|
8
|
-
declare namespace DefaultPropsProvider {
|
|
9
|
-
var propTypes: any;
|
|
10
|
-
}
|
|
11
|
-
export declare function useDefaultProps<Props>({
|
|
12
|
-
props,
|
|
13
|
-
name
|
|
14
|
-
}: {
|
|
15
|
-
props: Props;
|
|
16
|
-
name: string;
|
|
17
|
-
}): Props;
|
|
18
|
-
export default DefaultPropsProvider;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, useDefaultProps } from "./DefaultPropsProvider.js";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Interpolation } from '@mui/styled-engine';
|
|
3
|
-
import { Theme as SystemTheme } from "../createTheme/index.js";
|
|
4
|
-
export interface GlobalStylesProps<Theme = SystemTheme> {
|
|
5
|
-
styles: Interpolation<Theme>;
|
|
6
|
-
defaultTheme?: object;
|
|
7
|
-
themeId?: string;
|
|
8
|
-
}
|
|
9
|
-
declare function GlobalStyles<Theme = SystemTheme>({
|
|
10
|
-
styles,
|
|
11
|
-
themeId,
|
|
12
|
-
defaultTheme
|
|
13
|
-
}: GlobalStylesProps<Theme>): React.JSX.Element;
|
|
14
|
-
declare namespace GlobalStyles {
|
|
15
|
-
var propTypes: any;
|
|
16
|
-
}
|
|
17
|
-
export default GlobalStyles;
|
package/modern/Grid/Grid.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* Demos:
|
|
4
|
-
*
|
|
5
|
-
* - [Grid (Joy UI)](https://mui.com/joy-ui/react-grid/)
|
|
6
|
-
* - [Grid (Material UI)](https://mui.com/material-ui/react-grid/)
|
|
7
|
-
*
|
|
8
|
-
* API:
|
|
9
|
-
*
|
|
10
|
-
* - [Grid API](https://mui.com/system/api/grid/)
|
|
11
|
-
*/
|
|
12
|
-
declare const Grid: import("@mui/types").OverridableComponent<import("./GridProps.js").GridTypeMap<{}, "div">>;
|
|
13
|
-
export default Grid;
|