@mui/material 5.14.20 → 5.15.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.
Files changed (106) hide show
  1. package/AccordionActions/AccordionActions.js +1 -1
  2. package/Autocomplete/Autocomplete.js +4 -5
  3. package/ButtonBase/ButtonBase.js +1 -2
  4. package/ButtonGroup/index.d.ts +2 -0
  5. package/ButtonGroup/index.js +3 -1
  6. package/CHANGELOG.md +102 -2
  7. package/CardActions/CardActions.js +1 -1
  8. package/CircularProgress/CircularProgress.js +0 -1
  9. package/FilledInput/FilledInput.js +0 -2
  10. package/Input/Input.js +0 -2
  11. package/InputBase/InputBase.js +0 -2
  12. package/InputLabel/InputLabel.js +1 -5
  13. package/Link/Link.js +0 -1
  14. package/NativeSelect/NativeSelectInput.js +0 -2
  15. package/Select/SelectInput.js +1 -3
  16. package/TablePagination/TablePagination.d.ts +8 -0
  17. package/TablePagination/TablePagination.js +27 -6
  18. package/TablePagination/TablePaginationActions.d.ts +49 -0
  19. package/TablePagination/TablePaginationActions.js +54 -19
  20. package/Tabs/Tabs.js +0 -1
  21. package/colors/amber.d.ts +0 -1
  22. package/colors/blue.d.ts +0 -1
  23. package/colors/blueGrey.d.ts +0 -1
  24. package/colors/brown.d.ts +0 -1
  25. package/colors/common.d.ts +0 -1
  26. package/colors/cyan.d.ts +0 -1
  27. package/colors/deepOrange.d.ts +0 -1
  28. package/colors/deepPurple.d.ts +0 -1
  29. package/colors/green.d.ts +0 -1
  30. package/colors/grey.d.ts +0 -1
  31. package/colors/indigo.d.ts +0 -1
  32. package/colors/lightBlue.d.ts +0 -1
  33. package/colors/lightGreen.d.ts +0 -1
  34. package/colors/lime.d.ts +0 -1
  35. package/colors/orange.d.ts +0 -1
  36. package/colors/pink.d.ts +0 -1
  37. package/colors/purple.d.ts +0 -1
  38. package/colors/red.d.ts +0 -1
  39. package/colors/teal.d.ts +0 -1
  40. package/colors/yellow.d.ts +0 -1
  41. package/index.js +1 -1
  42. package/legacy/AccordionActions/AccordionActions.js +1 -1
  43. package/legacy/Autocomplete/Autocomplete.js +4 -5
  44. package/legacy/ButtonBase/ButtonBase.js +1 -1
  45. package/legacy/ButtonGroup/index.js +3 -1
  46. package/legacy/CardActions/CardActions.js +1 -1
  47. package/legacy/CircularProgress/CircularProgress.js +0 -1
  48. package/legacy/InputLabel/InputLabel.js +1 -5
  49. package/legacy/NativeSelect/NativeSelectInput.js +0 -2
  50. package/legacy/Select/SelectInput.js +1 -3
  51. package/legacy/TablePagination/TablePagination.js +29 -6
  52. package/legacy/TablePagination/TablePaginationActions.js +56 -19
  53. package/legacy/Tabs/Tabs.js +0 -1
  54. package/legacy/index.js +1 -1
  55. package/legacy/locale/index.js +0 -11
  56. package/legacy/styles/experimental_extendTheme.js +12 -6
  57. package/legacy/useTouchRipple/useTouchRipple.js +1 -1
  58. package/locale/index.js +0 -11
  59. package/modern/AccordionActions/AccordionActions.js +1 -1
  60. package/modern/Autocomplete/Autocomplete.js +4 -5
  61. package/modern/ButtonBase/ButtonBase.js +1 -2
  62. package/modern/ButtonGroup/index.js +3 -1
  63. package/modern/CardActions/CardActions.js +1 -1
  64. package/modern/CircularProgress/CircularProgress.js +0 -1
  65. package/modern/FilledInput/FilledInput.js +0 -2
  66. package/modern/Input/Input.js +0 -2
  67. package/modern/InputBase/InputBase.js +0 -2
  68. package/modern/InputLabel/InputLabel.js +1 -5
  69. package/modern/Link/Link.js +0 -1
  70. package/modern/NativeSelect/NativeSelectInput.js +0 -2
  71. package/modern/Select/SelectInput.js +1 -3
  72. package/modern/TablePagination/TablePagination.js +27 -6
  73. package/modern/TablePagination/TablePaginationActions.js +53 -18
  74. package/modern/Tabs/Tabs.js +0 -1
  75. package/modern/index.js +1 -1
  76. package/modern/locale/index.js +0 -11
  77. package/modern/styles/experimental_extendTheme.js +12 -6
  78. package/modern/useTouchRipple/useTouchRipple.js +1 -1
  79. package/node/AccordionActions/AccordionActions.js +1 -1
  80. package/node/Autocomplete/Autocomplete.js +4 -5
  81. package/node/ButtonBase/ButtonBase.js +1 -2
  82. package/node/ButtonGroup/index.js +17 -1
  83. package/node/CardActions/CardActions.js +1 -1
  84. package/node/CircularProgress/CircularProgress.js +0 -1
  85. package/node/FilledInput/FilledInput.js +0 -2
  86. package/node/Input/Input.js +0 -2
  87. package/node/InputBase/InputBase.js +0 -2
  88. package/node/InputLabel/InputLabel.js +1 -5
  89. package/node/Link/Link.js +0 -1
  90. package/node/NativeSelect/NativeSelectInput.js +0 -2
  91. package/node/Select/SelectInput.js +1 -3
  92. package/node/TablePagination/TablePagination.js +27 -6
  93. package/node/TablePagination/TablePaginationActions.js +54 -19
  94. package/node/Tabs/Tabs.js +0 -1
  95. package/node/index.js +1 -1
  96. package/node/locale/index.js +0 -11
  97. package/node/styles/experimental_extendTheme.js +11 -5
  98. package/node/styles/index.js +1 -0
  99. package/node/useTouchRipple/useTouchRipple.js +1 -1
  100. package/package.json +8 -8
  101. package/styles/components.d.ts +115 -115
  102. package/styles/experimental_extendTheme.js +12 -6
  103. package/styles/variants.d.ts +1 -2
  104. package/umd/material-ui.development.js +111 -73
  105. package/umd/material-ui.production.min.js +20 -20
  106. package/useTouchRipple/useTouchRipple.js +1 -1
@@ -323,7 +323,6 @@ const azAZ = exports.azAZ = {
323
323
  // `${from}–${to} dən ${count !== -1 ? count : `more than ${to}`}`,
324
324
  }
325
325
  },
326
-
327
326
  MuiRating: {
328
327
  defaultProps: {
329
328
  getLabelText: value => {
@@ -559,7 +558,6 @@ const bgBG = exports.bgBG = {
559
558
  // `${from}–${to} от ${count !== -1 ? count : `more than ${to}`}`,
560
559
  }
561
560
  },
562
-
563
561
  MuiRating: {
564
562
  defaultProps: {
565
563
  getLabelText: value => `${value} Звезд${value !== 1 ? 'и' : 'а'}`,
@@ -630,7 +628,6 @@ const caES = exports.caES = {
630
628
  // `${from}–${to} de ${count !== -1 ? count : `more than ${to}`}`,
631
629
  }
632
630
  },
633
-
634
631
  MuiRating: {
635
632
  defaultProps: {
636
633
  getLabelText: value => `${value} ${value !== 1 ? 'Estrelles' : 'Estrella'}`,
@@ -674,7 +671,6 @@ const caES = exports.caES = {
674
671
  // },
675
672
  }
676
673
  };
677
-
678
674
  const csCZ = exports.csCZ = {
679
675
  components: {
680
676
  MuiBreadcrumbs: {
@@ -1664,7 +1660,6 @@ const huHU = exports.huHU = {
1664
1660
  // `${from}–${to} / ${count !== -1 ? count : `more than ${to}`}`,
1665
1661
  }
1666
1662
  },
1667
-
1668
1663
  MuiRating: {
1669
1664
  defaultProps: {
1670
1665
  getLabelText: value => `${value} Csillag`,
@@ -1735,7 +1730,6 @@ const hyAM = exports.hyAM = {
1735
1730
  // `${from}–${to} / ${count !== -1 ? count : `more than ${to}`}`,
1736
1731
  }
1737
1732
  },
1738
-
1739
1733
  MuiRating: {
1740
1734
  defaultProps: {
1741
1735
  getLabelText: value => `${value} Աստղ`,
@@ -1779,7 +1773,6 @@ const hyAM = exports.hyAM = {
1779
1773
  // },
1780
1774
  }
1781
1775
  };
1782
-
1783
1776
  const idID = exports.idID = {
1784
1777
  components: {
1785
1778
  // MuiBreadcrumbs: {
@@ -1807,14 +1800,12 @@ const idID = exports.idID = {
1807
1800
  // `${from}–${to} dari ${count !== -1 ? count : `more than ${to}`}`,
1808
1801
  }
1809
1802
  },
1810
-
1811
1803
  MuiRating: {
1812
1804
  defaultProps: {
1813
1805
  getLabelText: value => `${value} Bintang`
1814
1806
  // emptyLabelText: 'Empty',
1815
1807
  }
1816
1808
  },
1817
-
1818
1809
  MuiAutocomplete: {
1819
1810
  defaultProps: {
1820
1811
  clearText: 'Hapus',
@@ -1852,7 +1843,6 @@ const idID = exports.idID = {
1852
1843
  // },
1853
1844
  }
1854
1845
  };
1855
-
1856
1846
  const isIS = exports.isIS = {
1857
1847
  components: {
1858
1848
  MuiBreadcrumbs: {
@@ -3226,7 +3216,6 @@ const roRO = exports.roRO = {
3226
3216
  // `${from}–${to} din ${count !== -1 ? count : `more than ${to}`}`,
3227
3217
  }
3228
3218
  },
3229
-
3230
3219
  MuiRating: {
3231
3220
  defaultProps: {
3232
3221
  getLabelText: value => `${value} St${value !== 1 ? 'ele' : 'ea'}`,
@@ -34,11 +34,17 @@ function setColor(obj, key, defaultValue) {
34
34
  obj[key] = defaultValue;
35
35
  }
36
36
  }
37
+ function toRgb(color) {
38
+ if (!color || !color.startsWith('hsl')) {
39
+ return color;
40
+ }
41
+ return (0, _system.hslToRgb)(color);
42
+ }
37
43
  function setColorChannel(obj, key) {
38
44
  if (!(`${key}Channel` in obj)) {
39
45
  // custom channel token is not provided, generate one.
40
46
  // if channel token can't be generated, show a warning.
41
- obj[`${key}Channel`] = (0, _system.private_safeColorChannel)(obj[key], `MUI: Can't create \`palette.${key}Channel\` because \`palette.${key}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` + '\n' + `To suppress this warning, you need to explicitly provide the \`palette.${key}Channel\` as a string (in rgb format, e.g. "12 12 12") or undefined if you want to remove the channel token.`);
47
+ obj[`${key}Channel`] = (0, _system.private_safeColorChannel)(toRgb(obj[key]), `MUI: Can't create \`palette.${key}Channel\` because \`palette.${key}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` + '\n' + `To suppress this warning, you need to explicitly provide the \`palette.${key}Channel\` as a string (in rgb format, e.g. "12 12 12") or undefined if you want to remove the channel token.`);
42
48
  }
43
49
  }
44
50
  const silent = fn => {
@@ -257,16 +263,16 @@ function extendTheme(options = {}, ...args) {
257
263
  if (colors && typeof colors === 'object') {
258
264
  // Silent the error for custom palettes.
259
265
  if (colors.main) {
260
- setColor(palette[color], 'mainChannel', (0, _system.private_safeColorChannel)(colors.main));
266
+ setColor(palette[color], 'mainChannel', (0, _system.private_safeColorChannel)(toRgb(colors.main)));
261
267
  }
262
268
  if (colors.light) {
263
- setColor(palette[color], 'lightChannel', (0, _system.private_safeColorChannel)(colors.light));
269
+ setColor(palette[color], 'lightChannel', (0, _system.private_safeColorChannel)(toRgb(colors.light)));
264
270
  }
265
271
  if (colors.dark) {
266
- setColor(palette[color], 'darkChannel', (0, _system.private_safeColorChannel)(colors.dark));
272
+ setColor(palette[color], 'darkChannel', (0, _system.private_safeColorChannel)(toRgb(colors.dark)));
267
273
  }
268
274
  if (colors.contrastText) {
269
- setColor(palette[color], 'contrastTextChannel', (0, _system.private_safeColorChannel)(colors.contrastText));
275
+ setColor(palette[color], 'contrastTextChannel', (0, _system.private_safeColorChannel)(toRgb(colors.contrastText)));
270
276
  }
271
277
  if (color === 'text') {
272
278
  // Text colors: text.primary, text.secondary
@@ -319,4 +319,5 @@ function experimental_sx() {
319
319
 
320
320
  // The legacy utilities from @mui/styles
321
321
  // These are just empty functions that throws when invoked
322
+
322
323
  // Private methods for creating parts of the theme
@@ -44,7 +44,7 @@ const useTouchRipple = props => {
44
44
  });
45
45
  const handleKeyUp = (0, _utils.useEventCallback)(event => {
46
46
  // calling preventDefault in keyUp on a <button> will not dispatch a click event if Space is pressed
47
- // https://codesandbox.io/s/button-keyup-preventdefault-dn7f0
47
+ // https://codesandbox.io/p/sandbox/button-keyup-preventdefault-dn7f0
48
48
  if (!disableFocusRipple && event.key === ' ' && rippleRef.current && focusVisible && !event.defaultPrevented) {
49
49
  keydownRef.current = false;
50
50
  rippleRef.current.stop(event, () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.14.20",
3
+ "version": "5.15.1",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "React components that implement Google's Material Design.",
@@ -27,13 +27,13 @@
27
27
  "url": "https://opencollective.com/mui-org"
28
28
  },
29
29
  "dependencies": {
30
- "@babel/runtime": "^7.23.4",
31
- "@mui/base": "5.0.0-beta.26",
32
- "@mui/core-downloads-tracker": "^5.14.20",
33
- "@mui/system": "^5.14.20",
34
- "@mui/types": "^7.2.10",
35
- "@mui/utils": "^5.14.20",
36
- "@types/react-transition-group": "^4.4.9",
30
+ "@babel/runtime": "^7.23.5",
31
+ "@mui/base": "5.0.0-beta.28",
32
+ "@mui/core-downloads-tracker": "^5.15.1",
33
+ "@mui/system": "^5.15.1",
34
+ "@mui/types": "^7.2.11",
35
+ "@mui/utils": "^5.15.1",
36
+ "@types/react-transition-group": "^4.4.10",
37
37
  "clsx": "^2.0.0",
38
38
  "csstype": "^3.1.2",
39
39
  "prop-types": "^15.8.1",