@mui/system 7.3.8 → 7.3.9
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 +3 -3
- package/CHANGELOG.md +39 -0
- package/Container/ContainerProps.d.ts +5 -5
- package/Container/createContainer.d.ts +5 -5
- package/GlobalStyles/GlobalStyles.d.ts +2 -2
- package/Grid/GridProps.d.ts +11 -11
- package/Grid/createGrid.d.ts +4 -4
- package/Grid/deleteLegacyGridProps.d.ts +2 -2
- package/Grid/gridGenerator.d.ts +1 -1
- package/InitColorSchemeScript/InitColorSchemeScript.d.ts +7 -7
- package/RtlProvider/index.d.ts +1 -1
- package/Stack/StackProps.d.ts +5 -5
- package/Stack/createStack.d.ts +3 -3
- package/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/ThemeProvider/useLayerOrder.d.ts +1 -1
- package/breakpoints/breakpoints.d.ts +2 -2
- package/colorManipulator/colorManipulator.d.ts +1 -1
- package/createBox/createBox.d.ts +3 -3
- package/createStyled/createStyled.d.ts +13 -13
- package/createTheme/createTheme.d.ts +18 -18
- package/cssVars/createCssVarsProvider.d.ts +18 -18
- package/cssVars/createCssVarsTheme.d.ts +3 -3
- package/cssVars/cssVarsParser.d.ts +2 -2
- package/cssVars/localStorageManager.d.ts +1 -1
- package/cssVars/prepareCssVars.d.ts +8 -8
- package/cssVars/useCurrentColorScheme.d.ts +6 -6
- package/esm/Box/Box.d.ts +3 -3
- package/esm/Container/ContainerProps.d.ts +5 -5
- package/esm/Container/createContainer.d.ts +5 -5
- package/esm/GlobalStyles/GlobalStyles.d.ts +2 -2
- package/esm/Grid/GridProps.d.ts +11 -11
- package/esm/Grid/createGrid.d.ts +4 -4
- package/esm/Grid/deleteLegacyGridProps.d.ts +2 -2
- package/esm/Grid/gridGenerator.d.ts +1 -1
- package/esm/InitColorSchemeScript/InitColorSchemeScript.d.ts +7 -7
- package/esm/RtlProvider/index.d.ts +1 -1
- package/esm/Stack/StackProps.d.ts +5 -5
- package/esm/Stack/createStack.d.ts +3 -3
- package/esm/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/esm/ThemeProvider/useLayerOrder.d.ts +1 -1
- package/esm/breakpoints/breakpoints.d.ts +2 -2
- package/esm/colorManipulator/colorManipulator.d.ts +1 -1
- package/esm/createBox/createBox.d.ts +3 -3
- package/esm/createStyled/createStyled.d.ts +13 -13
- package/esm/createTheme/createTheme.d.ts +18 -18
- package/esm/cssVars/createCssVarsProvider.d.ts +18 -18
- package/esm/cssVars/createCssVarsTheme.d.ts +3 -3
- package/esm/cssVars/cssVarsParser.d.ts +2 -2
- package/esm/cssVars/localStorageManager.d.ts +1 -1
- package/esm/cssVars/prepareCssVars.d.ts +8 -8
- package/esm/cssVars/useCurrentColorScheme.d.ts +6 -6
- package/esm/index.js +1 -1
- package/esm/style/style.d.ts +4 -4
- package/esm/styleFunctionSx/AliasesCSSProperties.d.ts +21 -21
- package/esm/styleFunctionSx/OverwriteCSSProperties.d.ts +4 -4
- package/esm/styleFunctionSx/defaultSxConfig.d.ts +4 -4
- package/esm/styleFunctionSx/extendSxProp.d.ts +1 -1
- package/esm/styleFunctionSx/styleFunctionSx.d.ts +1 -1
- package/esm/useMediaQuery/useMediaQuery.d.ts +6 -6
- package/esm/useThemeProps/getThemeProps.d.ts +1 -1
- package/esm/useThemeProps/useThemeProps.d.ts +2 -2
- package/esm/version/index.js +2 -2
- package/index.js +1 -1
- package/package.json +5 -5
- package/style/style.d.ts +4 -4
- package/styleFunctionSx/AliasesCSSProperties.d.ts +21 -21
- package/styleFunctionSx/OverwriteCSSProperties.d.ts +4 -4
- package/styleFunctionSx/defaultSxConfig.d.ts +4 -4
- package/styleFunctionSx/extendSxProp.d.ts +1 -1
- package/styleFunctionSx/styleFunctionSx.d.ts +1 -1
- package/useMediaQuery/useMediaQuery.d.ts +6 -6
- package/useThemeProps/getThemeProps.d.ts +1 -1
- package/useThemeProps/useThemeProps.d.ts +2 -2
- package/version/index.js +2 -2
|
@@ -11,7 +11,7 @@ export interface OverwriteCSSProperties {
|
|
|
11
11
|
*
|
|
12
12
|
* @see https://developer.mozilla.org/docs/Web/CSS/border
|
|
13
13
|
*/
|
|
14
|
-
border?: CSS.Property.Border | number;
|
|
14
|
+
border?: CSS.Property.Border | number | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* The **`box-shadow`** CSS property adds shadow effects around an element's frame. You can set multiple effects separated by commas. A box shadow is described by X and Y offsets relative to the
|
|
17
17
|
* element for blur and spread radii, and by its color.
|
|
@@ -25,7 +25,7 @@ export interface OverwriteCSSProperties {
|
|
|
25
25
|
*
|
|
26
26
|
* @see https://developer.mozilla.org/docs/Web/CSS/box-shadow
|
|
27
27
|
*/
|
|
28
|
-
boxShadow?: CSS.Property.BoxShadow | number;
|
|
28
|
+
boxShadow?: CSS.Property.BoxShadow | number | undefined;
|
|
29
29
|
/**
|
|
30
30
|
* The **`font-weight`** CSS property specifies the weight (or boldness) of the font. The font weights available to you will depend on the `font-family` you are using. Some fonts are only
|
|
31
31
|
* available in `normal` and `bold`.
|
|
@@ -38,7 +38,7 @@ export interface OverwriteCSSProperties {
|
|
|
38
38
|
*
|
|
39
39
|
* @see https://developer.mozilla.org/docs/Web/CSS/font-weight
|
|
40
40
|
*/
|
|
41
|
-
fontWeight?: CSS.Property.FontWeight | string;
|
|
41
|
+
fontWeight?: CSS.Property.FontWeight | string | undefined;
|
|
42
42
|
/**
|
|
43
43
|
* The **`z-index`** CSS property sets the z-order of a positioned element and its descendants or flex items. Overlapping elements with a higher z-index cover those with a lower one.
|
|
44
44
|
*
|
|
@@ -50,5 +50,5 @@ export interface OverwriteCSSProperties {
|
|
|
50
50
|
*
|
|
51
51
|
* @see https://developer.mozilla.org/docs/Web/CSS/z-index
|
|
52
52
|
*/
|
|
53
|
-
zIndex?: CSS.Property.ZIndex | string;
|
|
53
|
+
zIndex?: CSS.Property.ZIndex | string | undefined;
|
|
54
54
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { StyleFunction, TransformFunction } from "../style/index.js";
|
|
2
2
|
type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<Partial<Record<PropKey, any>>>;
|
|
3
3
|
export interface SxConfigRecord {
|
|
4
|
-
cssProperty?: keyof React.CSSProperties | false;
|
|
4
|
+
cssProperty?: keyof React.CSSProperties | false | undefined;
|
|
5
5
|
/**
|
|
6
6
|
* dot access in `Theme`
|
|
7
7
|
*/
|
|
8
|
-
themeKey?: string;
|
|
9
|
-
transform?: TransformFunction;
|
|
10
|
-
style?: SimpleStyleFunction<any
|
|
8
|
+
themeKey?: string | undefined;
|
|
9
|
+
transform?: TransformFunction | undefined;
|
|
10
|
+
style?: SimpleStyleFunction<any> | undefined;
|
|
11
11
|
}
|
|
12
12
|
export type SxConfig = Record<string, SxConfigRecord>;
|
|
13
13
|
declare const defaultSxConfig: SxConfig;
|
|
@@ -53,7 +53,7 @@ export type SystemStyleObject<Theme extends object = {}> = SystemCssProperties<T
|
|
|
53
53
|
export type SxProps<Theme extends object = {}> = SystemStyleObject<Theme> | ((theme: Theme) => SystemStyleObject<Theme>) | ReadonlyArray<boolean | SystemStyleObject<Theme> | ((theme: Theme) => SystemStyleObject<Theme>)>;
|
|
54
54
|
export interface StyleFunctionSx {
|
|
55
55
|
(props: object): CSSObject;
|
|
56
|
-
filterProps?: string[];
|
|
56
|
+
filterProps?: string[] | undefined;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -4,12 +4,12 @@ export interface UseMediaQueryOptions {
|
|
|
4
4
|
* it returns a default matches during the first mount.
|
|
5
5
|
* @default false
|
|
6
6
|
*/
|
|
7
|
-
defaultMatches?: boolean;
|
|
7
|
+
defaultMatches?: boolean | undefined;
|
|
8
8
|
/**
|
|
9
9
|
* You can provide your own implementation of matchMedia.
|
|
10
10
|
* This can be used for handling an iframe content window.
|
|
11
11
|
*/
|
|
12
|
-
matchMedia?: typeof window.matchMedia;
|
|
12
|
+
matchMedia?: typeof window.matchMedia | undefined;
|
|
13
13
|
/**
|
|
14
14
|
* To perform the server-side hydration, the hook needs to render twice.
|
|
15
15
|
* A first time with `defaultMatches`, the value of the server, and a second time with the resolved value.
|
|
@@ -17,16 +17,16 @@ export interface UseMediaQueryOptions {
|
|
|
17
17
|
* You can set this option to `true` if you use the returned value **only** client-side.
|
|
18
18
|
* @default false
|
|
19
19
|
*/
|
|
20
|
-
noSsr?: boolean;
|
|
20
|
+
noSsr?: boolean | undefined;
|
|
21
21
|
/**
|
|
22
22
|
* You can provide your own implementation of `matchMedia`, it's used when rendering server-side.
|
|
23
23
|
*/
|
|
24
|
-
ssrMatchMedia?: (query: string) => {
|
|
24
|
+
ssrMatchMedia?: ((query: string) => {
|
|
25
25
|
matches: boolean;
|
|
26
|
-
};
|
|
26
|
+
}) | undefined;
|
|
27
27
|
}
|
|
28
28
|
export declare function unstable_createUseMediaQuery(params?: {
|
|
29
|
-
themeId?: string;
|
|
29
|
+
themeId?: string | undefined;
|
|
30
30
|
}): <Theme = unknown>(queryInput: string | ((theme: Theme) => string), options?: UseMediaQueryOptions) => boolean;
|
|
31
31
|
declare const useMediaQuery: <Theme = unknown>(queryInput: string | ((theme: Theme) => string), options?: UseMediaQueryOptions) => boolean;
|
|
32
32
|
export default useMediaQuery;
|
|
@@ -7,5 +7,5 @@ type ThemedProps<Theme, Name extends keyof any> = Theme extends {
|
|
|
7
7
|
export default function getThemeProps<Theme, Props, Name extends keyof any>(params: {
|
|
8
8
|
props: Props;
|
|
9
9
|
name: Name;
|
|
10
|
-
theme?: Theme;
|
|
10
|
+
theme?: Theme | undefined;
|
|
11
11
|
}): Props & ThemedProps<Theme, Name>;
|
|
@@ -9,6 +9,6 @@ export type ThemedProps<Theme, Name extends keyof any> = Theme extends {
|
|
|
9
9
|
export default function useThemeProps<Theme extends ThemeWithProps, Props, Name extends keyof any>(params: {
|
|
10
10
|
props: Props;
|
|
11
11
|
name: Name;
|
|
12
|
-
defaultTheme?: Theme;
|
|
13
|
-
themeId?: string;
|
|
12
|
+
defaultTheme?: Theme | undefined;
|
|
13
|
+
themeId?: string | undefined;
|
|
14
14
|
}): Props & ThemedProps<Theme, Name>;
|
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.3.
|
|
7
|
+
const version = exports.version = "7.3.9";
|
|
8
8
|
const major = exports.major = Number("7");
|
|
9
9
|
const minor = exports.minor = Number("3");
|
|
10
|
-
const patch = exports.patch = Number("
|
|
10
|
+
const patch = exports.patch = Number("9");
|
|
11
11
|
const prerelease = exports.prerelease = undefined;
|
|
12
12
|
var _default = exports.default = version;
|