@mui/system 6.1.4 → 6.1.6

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 CHANGED
@@ -1,5 +1,105 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 6.1.6
4
+
5
+ <!-- generated comparing v6.1.5..master -->
6
+
7
+ _Oct 30, 2024_
8
+
9
+ A big thanks to the 13 contributors who made this release possible.
10
+
11
+ ### `@mui/material@6.1.6`
12
+
13
+ - [Autocomplete] Add missing `onMouseDown` type to AutocompleteRenderInputParams (#44183) @sai6855
14
+ - [Avatar] Fix AvatarGroup spacing (#44208) @aarongarciah
15
+ - [AvatarGroup] Fix spacing CSS variable (#44202) @navedqb
16
+ - [Divider] Fix CSS specificity order (#44204) @o-alexandrov
17
+ - [Slider] Fix value prop type warning (#44131) @joshkel
18
+ - Replace `useThemeProps` with `useDefaultProps` (#44193) @siriwatknp
19
+
20
+ ### `@mui/material-nextjs@6.1.6`
21
+
22
+ - Support Next 15.0.0 (#42428) @nphmuller
23
+
24
+ ### `@mui/lab@6.0.0-beta.14`
25
+
26
+ - [Tabs] Fix type of TabPanel component (#44207) @blackcow1987
27
+
28
+ ### `@mui/codemod@6.1.6`
29
+
30
+ - Fix system props default import specifier (#44170) @siriwatknp
31
+
32
+ ### `@mui/utils@6.1.6`
33
+
34
+ - Bring back useIsFocusVisible (#44256) @aarongarciah
35
+ - Bring back getReactNodeRef (#44248) @aarongarciah
36
+
37
+ ### Docs
38
+
39
+ - [material-ui][Avatar] Add AvatarGroup spacing demo (#44209) @aarongarciah
40
+ - Fix a typo in CONTRIBUTING.md (#44200) @prakhargupta1
41
+ - Mark the Hidden component as deprecated in the sidenav (#44068) @jimmycallin
42
+ - Use () when referencing functions (#44184) @oliviertassinari
43
+ - Follow types description convention (#44187) @oliviertassinari
44
+
45
+ ### Core
46
+
47
+ - Lock file maintenance (#43947)
48
+ - Run @mui/icon-material src:icons (#44097) @oliviertassinari
49
+ - [test][material-ui] Add tests for Pigment Grid and Stack (#44132) @DiegoAndai
50
+ - [test] Distinguish private with public tests API (#44188) @oliviertassinari
51
+ - [docs-infra] Add recursively the relative modules in the demos (#44150) @mnajdova
52
+
53
+ All contributors of this release in alphabetical order: @aarongarciah, @blackcow1987, @DiegoAndai, @jimmycallin, @joshkel, @mnajdova, @navedqb, @nphmuller, @o-alexandrov, @oliviertassinari, @prakhargupta1, @sai6855, @siriwatknp
54
+
55
+ ## 6.1.5
56
+
57
+ <!-- generated comparing v6.1.4..master -->
58
+
59
+ _Oct 22, 2024_
60
+
61
+ A big thanks to the 9 contributors who made this release possible.
62
+
63
+ ### `@mui/material@6.1.5`
64
+
65
+ - [Autocomplete] Fix bug with child chip button events propagating to parent (#43982) @snapwich
66
+ - [Autocomplete] Fix Autocomplete crashing if ownerState is used in styleOverrides (#43994) @sai6855
67
+ - [Checkbox] Fix disableRipple regression (#44099) @siriwatknp
68
+ - [Dialog] Add the aria-modal="true" by default (#44118) @mnajdova
69
+ - [IconButton] Fix disableRipple behavior when disableRipple is set in MuiButtonBase theme (#43714) @sai6855
70
+ - [pigment-css] Support project without enabling CSS variables (#44171) @siriwatknp
71
+ - Make the palette always return new light and dark object (#44059) @siriwatknp
72
+
73
+ ### `@mui/system@6.1.5`
74
+
75
+ - Add `defaultMode` to `InitColorSchemeScript` (#44139) @siriwatknp
76
+
77
+ ### `@mui/codemod@6.1.5`
78
+
79
+ - [Grid2] Add removal `zeroMinWidth` prop to codemod (#44178) @sai6855
80
+
81
+ ### Docs
82
+
83
+ - [material-ui][FormControlLabel] Don't use unintuitive label position on chec… (#44119) @mnajdova
84
+ - [material-ui][TextField] Dynamically modify the eye password button aria-label (#44122) @ChinoUkaegbu
85
+ - [icons] Run pnpm docs:mdicons:synonyms (#44098) @oliviertassinari
86
+ - [joy-ui] Update Overview copy to match Readme (#44136) @samuelsycamore
87
+ - Add CodeSandbox/Stackblitz to the rest of the templates (#43708) @siriwatknp
88
+ - Update Figma link to fix 301 (a7b7d9c) @oliviertassinari
89
+ - Link Toolpad from Core repo (#44111) @prakhargupta1
90
+ - Remove HighlightedCode max-width (#43731) @Janpot
91
+
92
+ ### Core
93
+
94
+ - [code-infra] Widen eslint file patterns (#44148) @Janpot
95
+ - [code-infra] Fix icon builder tests (#44143) @Janpot
96
+ - [code-infra] Fix dependabot vulnerabilities (#44124) @Janpot
97
+ - [core] Reference commits in changelog when no PR (#44115) @oliviertassinari
98
+ - [examples] Fix Pigment CSS Vite example (#44074) @oliviertassinari
99
+ - Fix fast-xml-parser vulnerability (#44121) @Janpot
100
+
101
+ All contributors of this release in alphabetical order: @ChinoUkaegbu, @Janpot, @mnajdova, @oliviertassinari, @prakhargupta1, @sai6855, @samuelsycamore, @siriwatknp, @snapwich
102
+
3
103
  ## v6.1.4
4
104
 
5
105
  <!-- generated comparing v6.1.3..master -->
@@ -310,7 +410,7 @@ A big thanks to the 11 contributors who made this release possible.
310
410
 
311
411
  ### `@mui/material@6.0.2`
312
412
 
313
- - Fix `createTheme` with just color schemes (#43518) @siriwatknp
413
+ - Fix `createTheme()` with just color schemes (#43518) @siriwatknp
314
414
  - [Menu,Popover] Fix Backdrop props descriptions (#43503) @Michael-Hutchinson
315
415
  - [MenuList] Do not react to an event with modifier key pressed (#43505) @MateuszGroth
316
416
 
@@ -1052,7 +1152,7 @@ A big thanks to the 18 contributors who made this release possible.
1052
1152
 
1053
1153
  ### Docs
1054
1154
 
1055
- - Add `theme.applyStyles` and migrate docs (#42498) @siriwatknp
1155
+ - Add `theme.applyStyles()` and migrate docs (#42498) @siriwatknp
1056
1156
  - Fix dashboard template console error (#42594) @oliviertassinari
1057
1157
  - Migrate system props to `sx` prop (#42475) @siriwatknp
1058
1158
  - [material-ui]Fix duplicated sentence (#42521) @alexfauquette
@@ -7,40 +7,44 @@ export declare const DEFAULT_COLOR_SCHEME_STORAGE_KEY = "color-scheme";
7
7
  export declare const DEFAULT_ATTRIBUTE = "data-color-scheme";
8
8
  export interface InitColorSchemeScriptProps {
9
9
  /**
10
- * The default color scheme to be used on the light mode
10
+ * The default mode when the storage is empty (user's first visit).
11
+ * @default 'system'
12
+ */
13
+ defaultMode?: 'system' | 'light' | 'dark';
14
+ /**
15
+ * The default color scheme to be used on the light mode.
11
16
  * @default 'light'
12
17
  */
13
18
  defaultLightColorScheme?: string;
14
19
  /**
15
- * The default color scheme to be used on the dark mode
20
+ * The default color scheme to be used on the dark mode.
16
21
  * * @default 'dark'
17
22
  */
18
23
  defaultDarkColorScheme?: string;
19
24
  /**
20
- * The node (provided as string) used to attach the color-scheme attribute
25
+ * The node (provided as string) used to attach the color-scheme attribute.
21
26
  * @default 'document.documentElement'
22
27
  */
23
28
  colorSchemeNode?: string;
24
29
  /**
25
- * localStorage key used to store `mode`
30
+ * localStorage key used to store `mode`.
26
31
  * @default 'mode'
27
32
  */
28
33
  modeStorageKey?: string;
29
34
  /**
30
- * localStorage key used to store `colorScheme`
35
+ * localStorage key used to store `colorScheme`.
31
36
  * @default 'color-scheme'
32
37
  */
33
38
  colorSchemeStorageKey?: string;
34
39
  /**
35
- * DOM attribute for applying color scheme
40
+ * DOM attribute for applying color scheme.
36
41
  * @default 'data-color-scheme'
37
- *
38
42
  * @example '.mode-%s' // for class based color scheme
39
43
  * @example '[data-mode-%s]' // for data-attribute without '='
40
44
  */
41
45
  attribute?: 'class' | 'data' | string;
42
46
  /**
43
- * Nonce string to pass to the inline script for CSP headers
47
+ * Nonce string to pass to the inline script for CSP headers.
44
48
  */
45
49
  nonce?: string | undefined;
46
50
  }
@@ -17,6 +17,7 @@ const DEFAULT_COLOR_SCHEME_STORAGE_KEY = exports.DEFAULT_COLOR_SCHEME_STORAGE_KE
17
17
  const DEFAULT_ATTRIBUTE = exports.DEFAULT_ATTRIBUTE = 'data-color-scheme';
18
18
  function InitColorSchemeScript(options) {
19
19
  const {
20
+ defaultMode = 'system',
20
21
  defaultLightColorScheme = 'light',
21
22
  defaultDarkColorScheme = 'dark',
22
23
  modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
@@ -59,7 +60,7 @@ function InitColorSchemeScript(options) {
59
60
  __html: `(function() {
60
61
  try {
61
62
  let colorScheme = '';
62
- const mode = localStorage.getItem('${modeStorageKey}') || 'system';
63
+ const mode = localStorage.getItem('${modeStorageKey}') || '${defaultMode}';
63
64
  const dark = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
64
65
  const light = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';
65
66
  if (mode === 'system') {
@@ -8,6 +8,7 @@ export const DEFAULT_COLOR_SCHEME_STORAGE_KEY = 'color-scheme';
8
8
  export const DEFAULT_ATTRIBUTE = 'data-color-scheme';
9
9
  export default function InitColorSchemeScript(options) {
10
10
  const {
11
+ defaultMode = 'system',
11
12
  defaultLightColorScheme = 'light',
12
13
  defaultDarkColorScheme = 'dark',
13
14
  modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
@@ -50,7 +51,7 @@ export default function InitColorSchemeScript(options) {
50
51
  __html: `(function() {
51
52
  try {
52
53
  let colorScheme = '';
53
- const mode = localStorage.getItem('${modeStorageKey}') || 'system';
54
+ const mode = localStorage.getItem('${modeStorageKey}') || '${defaultMode}';
54
55
  const dark = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
55
56
  const light = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';
56
57
  if (mode === 'system') {
@@ -1,6 +1,6 @@
1
- export const version = "6.1.4";
1
+ export const version = "6.1.6";
2
2
  export const major = Number("6");
3
3
  export const minor = Number("1");
4
- export const patch = Number("4");
4
+ export const patch = Number("6");
5
5
  export const prerelease = undefined;
6
6
  export default version;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/system v6.1.4
2
+ * @mui/system v6.1.6
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -8,6 +8,7 @@ export const DEFAULT_COLOR_SCHEME_STORAGE_KEY = 'color-scheme';
8
8
  export const DEFAULT_ATTRIBUTE = 'data-color-scheme';
9
9
  export default function InitColorSchemeScript(options) {
10
10
  const {
11
+ defaultMode = 'system',
11
12
  defaultLightColorScheme = 'light',
12
13
  defaultDarkColorScheme = 'dark',
13
14
  modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
@@ -50,7 +51,7 @@ export default function InitColorSchemeScript(options) {
50
51
  __html: `(function() {
51
52
  try {
52
53
  let colorScheme = '';
53
- const mode = localStorage.getItem('${modeStorageKey}') || 'system';
54
+ const mode = localStorage.getItem('${modeStorageKey}') || '${defaultMode}';
54
55
  const dark = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
55
56
  const light = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';
56
57
  if (mode === 'system') {
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/system v6.1.4
2
+ * @mui/system v6.1.6
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,6 +1,6 @@
1
- export const version = "6.1.4";
1
+ export const version = "6.1.6";
2
2
  export const major = Number("6");
3
3
  export const minor = Number("1");
4
- export const patch = Number("4");
4
+ export const patch = Number("6");
5
5
  export const prerelease = undefined;
6
6
  export default version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/system",
3
- "version": "6.1.4",
3
+ "version": "6.1.6",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "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.",
@@ -26,14 +26,14 @@
26
26
  "url": "https://opencollective.com/mui-org"
27
27
  },
28
28
  "dependencies": {
29
- "@babel/runtime": "^7.25.7",
29
+ "@babel/runtime": "^7.26.0",
30
30
  "clsx": "^2.1.1",
31
31
  "csstype": "^3.1.3",
32
32
  "prop-types": "^15.8.1",
33
- "@mui/styled-engine": "^6.1.4",
34
- "@mui/private-theming": "^6.1.4",
35
- "@mui/utils": "^6.1.4",
36
- "@mui/types": "^7.2.18"
33
+ "@mui/private-theming": "^6.1.6",
34
+ "@mui/utils": "^6.1.6",
35
+ "@mui/styled-engine": "^6.1.6",
36
+ "@mui/types": "^7.2.19"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@emotion/react": "^11.5.0",
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 = "6.1.4";
7
+ const version = exports.version = "6.1.6";
8
8
  const major = exports.major = Number("6");
9
9
  const minor = exports.minor = Number("1");
10
- const patch = exports.patch = Number("4");
10
+ const patch = exports.patch = Number("6");
11
11
  const prerelease = exports.prerelease = undefined;
12
12
  var _default = exports.default = version;