@mui/system 7.3.7 → 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.
Files changed (76) hide show
  1. package/Box/Box.d.ts +3 -3
  2. package/CHANGELOG.md +101 -0
  3. package/Container/ContainerProps.d.ts +5 -5
  4. package/Container/createContainer.d.ts +5 -5
  5. package/GlobalStyles/GlobalStyles.d.ts +2 -2
  6. package/Grid/GridProps.d.ts +11 -11
  7. package/Grid/createGrid.d.ts +4 -4
  8. package/Grid/deleteLegacyGridProps.d.ts +2 -2
  9. package/Grid/gridGenerator.d.ts +1 -1
  10. package/InitColorSchemeScript/InitColorSchemeScript.d.ts +7 -7
  11. package/RtlProvider/index.d.ts +1 -1
  12. package/Stack/StackProps.d.ts +5 -5
  13. package/Stack/createStack.d.ts +3 -3
  14. package/ThemeProvider/ThemeProvider.d.ts +1 -1
  15. package/ThemeProvider/useLayerOrder.d.ts +1 -1
  16. package/breakpoints/breakpoints.d.ts +2 -2
  17. package/colorManipulator/colorManipulator.d.ts +1 -1
  18. package/createBox/createBox.d.ts +3 -3
  19. package/createStyled/createStyled.d.ts +13 -13
  20. package/createTheme/createTheme.d.ts +18 -18
  21. package/cssContainerQueries/cssContainerQueries.js +1 -3
  22. package/cssVars/createCssVarsProvider.d.ts +18 -18
  23. package/cssVars/createCssVarsTheme.d.ts +3 -3
  24. package/cssVars/cssVarsParser.d.ts +2 -2
  25. package/cssVars/localStorageManager.d.ts +1 -1
  26. package/cssVars/prepareCssVars.d.ts +8 -8
  27. package/cssVars/useCurrentColorScheme.d.ts +6 -6
  28. package/esm/Box/Box.d.ts +3 -3
  29. package/esm/Container/ContainerProps.d.ts +5 -5
  30. package/esm/Container/createContainer.d.ts +5 -5
  31. package/esm/GlobalStyles/GlobalStyles.d.ts +2 -2
  32. package/esm/Grid/GridProps.d.ts +11 -11
  33. package/esm/Grid/createGrid.d.ts +4 -4
  34. package/esm/Grid/deleteLegacyGridProps.d.ts +2 -2
  35. package/esm/Grid/gridGenerator.d.ts +1 -1
  36. package/esm/InitColorSchemeScript/InitColorSchemeScript.d.ts +7 -7
  37. package/esm/RtlProvider/index.d.ts +1 -1
  38. package/esm/Stack/StackProps.d.ts +5 -5
  39. package/esm/Stack/createStack.d.ts +3 -3
  40. package/esm/ThemeProvider/ThemeProvider.d.ts +1 -1
  41. package/esm/ThemeProvider/useLayerOrder.d.ts +1 -1
  42. package/esm/breakpoints/breakpoints.d.ts +2 -2
  43. package/esm/colorManipulator/colorManipulator.d.ts +1 -1
  44. package/esm/createBox/createBox.d.ts +3 -3
  45. package/esm/createStyled/createStyled.d.ts +13 -13
  46. package/esm/createTheme/createTheme.d.ts +18 -18
  47. package/esm/cssContainerQueries/cssContainerQueries.js +1 -2
  48. package/esm/cssVars/createCssVarsProvider.d.ts +18 -18
  49. package/esm/cssVars/createCssVarsTheme.d.ts +3 -3
  50. package/esm/cssVars/cssVarsParser.d.ts +2 -2
  51. package/esm/cssVars/localStorageManager.d.ts +1 -1
  52. package/esm/cssVars/prepareCssVars.d.ts +8 -8
  53. package/esm/cssVars/useCurrentColorScheme.d.ts +6 -6
  54. package/esm/index.js +1 -1
  55. package/esm/style/style.d.ts +4 -4
  56. package/esm/styleFunctionSx/AliasesCSSProperties.d.ts +21 -21
  57. package/esm/styleFunctionSx/OverwriteCSSProperties.d.ts +4 -4
  58. package/esm/styleFunctionSx/defaultSxConfig.d.ts +4 -4
  59. package/esm/styleFunctionSx/extendSxProp.d.ts +1 -1
  60. package/esm/styleFunctionSx/styleFunctionSx.d.ts +1 -1
  61. package/esm/useMediaQuery/useMediaQuery.d.ts +6 -6
  62. package/esm/useThemeProps/getThemeProps.d.ts +1 -1
  63. package/esm/useThemeProps/useThemeProps.d.ts +2 -2
  64. package/esm/version/index.js +2 -2
  65. package/index.js +1 -1
  66. package/package.json +6 -6
  67. package/style/style.d.ts +4 -4
  68. package/styleFunctionSx/AliasesCSSProperties.d.ts +21 -21
  69. package/styleFunctionSx/OverwriteCSSProperties.d.ts +4 -4
  70. package/styleFunctionSx/defaultSxConfig.d.ts +4 -4
  71. package/styleFunctionSx/extendSxProp.d.ts +1 -1
  72. package/styleFunctionSx/styleFunctionSx.d.ts +1 -1
  73. package/useMediaQuery/useMediaQuery.d.ts +6 -6
  74. package/useThemeProps/getThemeProps.d.ts +1 -1
  75. package/useThemeProps/useThemeProps.d.ts +2 -2
  76. package/version/index.js +2 -2
@@ -11,7 +11,7 @@ export interface AliasesCSSProperties {
11
11
  *
12
12
  * @see https://developer.mozilla.org/docs/Web/CSS/background-color
13
13
  */
14
- bgcolor?: StandardCSSProperties['backgroundColor'];
14
+ bgcolor?: StandardCSSProperties['backgroundColor'] | undefined;
15
15
  /**
16
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
17
  *
@@ -21,7 +21,7 @@ export interface AliasesCSSProperties {
21
21
  *
22
22
  * @see https://developer.mozilla.org/docs/Web/CSS/margin
23
23
  */
24
- m?: StandardCSSProperties['margin'];
24
+ m?: StandardCSSProperties['margin'] | undefined;
25
25
  /**
26
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
27
  *
@@ -33,7 +33,7 @@ export interface AliasesCSSProperties {
33
33
  *
34
34
  * @see https://developer.mozilla.org/docs/Web/CSS/margin-top
35
35
  */
36
- mt?: StandardCSSProperties['marginTop'];
36
+ mt?: StandardCSSProperties['marginTop'] | undefined;
37
37
  /**
38
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
39
  *
@@ -45,7 +45,7 @@ export interface AliasesCSSProperties {
45
45
  *
46
46
  * @see https://developer.mozilla.org/docs/Web/CSS/margin-right
47
47
  */
48
- mr?: StandardCSSProperties['marginRight'];
48
+ mr?: StandardCSSProperties['marginRight'] | undefined;
49
49
  /**
50
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
51
  *
@@ -57,7 +57,7 @@ export interface AliasesCSSProperties {
57
57
  *
58
58
  * @see https://developer.mozilla.org/docs/Web/CSS/margin-bottom
59
59
  */
60
- mb?: StandardCSSProperties['marginBottom'];
60
+ mb?: StandardCSSProperties['marginBottom'] | undefined;
61
61
  /**
62
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
63
  *
@@ -69,7 +69,7 @@ export interface AliasesCSSProperties {
69
69
  *
70
70
  * @see https://developer.mozilla.org/docs/Web/CSS/margin-left
71
71
  */
72
- ml?: StandardCSSProperties['marginLeft'];
72
+ ml?: StandardCSSProperties['marginLeft'] | undefined;
73
73
  /**
74
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
75
  * farther from its neighbors, while a negative value places it closer.
@@ -83,7 +83,7 @@ export interface AliasesCSSProperties {
83
83
  * @see https://developer.mozilla.org/docs/Web/CSS/margin-left
84
84
  * @see https://developer.mozilla.org/docs/Web/CSS/margin-right
85
85
  */
86
- mx?: StandardCSSProperties['marginLeft'];
86
+ mx?: StandardCSSProperties['marginLeft'] | undefined;
87
87
  /**
88
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
89
  * places it farther from its neighbors, while a negative value places it closer.
@@ -97,7 +97,7 @@ export interface AliasesCSSProperties {
97
97
  * @see https://developer.mozilla.org/docs/Web/CSS/margin-left
98
98
  * @see https://developer.mozilla.org/docs/Web/CSS/margin-right
99
99
  */
100
- marginX?: StandardCSSProperties['marginLeft'];
100
+ marginX?: StandardCSSProperties['marginLeft'] | undefined;
101
101
  /**
102
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
103
  * farther from its neighbors, while a negative value places it closer.
@@ -111,7 +111,7 @@ export interface AliasesCSSProperties {
111
111
  * @see https://developer.mozilla.org/docs/Web/CSS/margin-top
112
112
  * @see https://developer.mozilla.org/docs/Web/CSS/margin-bottom
113
113
  */
114
- my?: StandardCSSProperties['marginTop'];
114
+ my?: StandardCSSProperties['marginTop'] | undefined;
115
115
  /**
116
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
117
  * it farther from its neighbors, while a negative value places it closer.
@@ -125,7 +125,7 @@ export interface AliasesCSSProperties {
125
125
  * @see https://developer.mozilla.org/docs/Web/CSS/margin-top
126
126
  * @see https://developer.mozilla.org/docs/Web/CSS/margin-bottom
127
127
  */
128
- marginY?: StandardCSSProperties['marginTop'];
128
+ marginY?: StandardCSSProperties['marginTop'] | undefined;
129
129
  /**
130
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
131
  *
@@ -135,7 +135,7 @@ export interface AliasesCSSProperties {
135
135
  *
136
136
  * @see https://developer.mozilla.org/docs/Web/CSS/padding
137
137
  */
138
- p?: StandardCSSProperties['padding'];
138
+ p?: StandardCSSProperties['padding'] | undefined;
139
139
  /**
140
140
  * The **`padding-top`** CSS property sets the height of the padding at the top of an element.
141
141
  *
@@ -147,7 +147,7 @@ export interface AliasesCSSProperties {
147
147
  *
148
148
  * @see https://developer.mozilla.org/docs/Web/CSS/padding-top
149
149
  */
150
- pt?: StandardCSSProperties['paddingTop'];
150
+ pt?: StandardCSSProperties['paddingTop'] | undefined;
151
151
  /**
152
152
  * The **`padding-right`** CSS property sets the width of the padding at the right side of an element.
153
153
  *
@@ -159,7 +159,7 @@ export interface AliasesCSSProperties {
159
159
  *
160
160
  * @see https://developer.mozilla.org/docs/Web/CSS/padding-right
161
161
  */
162
- pr?: StandardCSSProperties['paddingRight'];
162
+ pr?: StandardCSSProperties['paddingRight'] | undefined;
163
163
  /**
164
164
  * The **`padding-bottom`** CSS property sets the height of the padding on the bottom of an element.
165
165
  *
@@ -171,7 +171,7 @@ export interface AliasesCSSProperties {
171
171
  *
172
172
  * @see https://developer.mozilla.org/docs/Web/CSS/padding-bottom
173
173
  */
174
- pb?: StandardCSSProperties['paddingBottom'];
174
+ pb?: StandardCSSProperties['paddingBottom'] | undefined;
175
175
  /**
176
176
  * The **`padding-left`** CSS property sets the width of the padding at the left side of an element.
177
177
  *
@@ -183,7 +183,7 @@ export interface AliasesCSSProperties {
183
183
  *
184
184
  * @see https://developer.mozilla.org/docs/Web/CSS/padding-left
185
185
  */
186
- pl?: StandardCSSProperties['paddingLeft'];
186
+ pl?: StandardCSSProperties['paddingLeft'] | undefined;
187
187
  /**
188
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
189
  *
@@ -196,7 +196,7 @@ export interface AliasesCSSProperties {
196
196
  * @see https://developer.mozilla.org/docs/Web/CSS/padding-left
197
197
  * @see https://developer.mozilla.org/docs/Web/CSS/padding-right
198
198
  */
199
- px?: StandardCSSProperties['paddingLeft'];
199
+ px?: StandardCSSProperties['paddingLeft'] | undefined;
200
200
  /**
201
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
202
  *
@@ -209,7 +209,7 @@ export interface AliasesCSSProperties {
209
209
  * @see https://developer.mozilla.org/docs/Web/CSS/padding-left
210
210
  * @see https://developer.mozilla.org/docs/Web/CSS/padding-right
211
211
  */
212
- paddingX?: StandardCSSProperties['paddingLeft'];
212
+ paddingX?: StandardCSSProperties['paddingLeft'] | undefined;
213
213
  /**
214
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
215
  *
@@ -222,7 +222,7 @@ export interface AliasesCSSProperties {
222
222
  * @see https://developer.mozilla.org/docs/Web/CSS/padding-top
223
223
  * @see https://developer.mozilla.org/docs/Web/CSS/padding-bottom
224
224
  */
225
- py?: StandardCSSProperties['paddingTop'];
225
+ py?: StandardCSSProperties['paddingTop'] | undefined;
226
226
  /**
227
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
228
  *
@@ -235,7 +235,7 @@ export interface AliasesCSSProperties {
235
235
  * @see https://developer.mozilla.org/docs/Web/CSS/padding-top
236
236
  * @see https://developer.mozilla.org/docs/Web/CSS/padding-bottom
237
237
  */
238
- paddingY?: StandardCSSProperties['paddingTop'];
238
+ paddingY?: StandardCSSProperties['paddingTop'] | undefined;
239
239
  /**
240
240
  * The **`typography`** property is shorthand for the CSS properties **`font-family`**, **`font-weight`**, **`font-size`**, **`line-height`**, **`letter-spacing`** and **`text-transform``**.
241
241
  * It takes the values defined under `theme.typography` and spreads them on the element.
@@ -253,7 +253,7 @@ export interface AliasesCSSProperties {
253
253
  * @see https://developer.mozilla.org/docs/Web/CSS/letter-spacing
254
254
  * @see https://developer.mozilla.org/docs/Web/CSS/text-transform
255
255
  */
256
- typography?: string;
256
+ typography?: string | undefined;
257
257
  /**
258
258
  * The **`displayPrint`** property sets the display value for the element when the page is printed.
259
259
  *
@@ -265,5 +265,5 @@ export interface AliasesCSSProperties {
265
265
  *
266
266
  * @see https://developer.mozilla.org/docs/Web/CSS/display
267
267
  */
268
- displayPrint?: StandardCSSProperties['display'];
268
+ displayPrint?: StandardCSSProperties['display'] | undefined;
269
269
  }
@@ -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;
@@ -1,4 +1,4 @@
1
1
  import { SxProps } from "./styleFunctionSx.js";
2
2
  export default function extendSxProp<Props extends {
3
- sx?: SxProps<any>;
3
+ sx?: SxProps<any> | undefined;
4
4
  } = {}>(props: Props): Props;
@@ -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";
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("7");
10
+ const patch = exports.patch = Number("9");
11
11
  const prerelease = exports.prerelease = undefined;
12
12
  var _default = exports.default = version;