@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.
- package/AccordionActions/AccordionActions.js +1 -1
- package/Autocomplete/Autocomplete.js +4 -5
- package/ButtonBase/ButtonBase.js +1 -2
- package/ButtonGroup/index.d.ts +2 -0
- package/ButtonGroup/index.js +3 -1
- package/CHANGELOG.md +102 -2
- package/CardActions/CardActions.js +1 -1
- package/CircularProgress/CircularProgress.js +0 -1
- package/FilledInput/FilledInput.js +0 -2
- package/Input/Input.js +0 -2
- package/InputBase/InputBase.js +0 -2
- package/InputLabel/InputLabel.js +1 -5
- package/Link/Link.js +0 -1
- package/NativeSelect/NativeSelectInput.js +0 -2
- package/Select/SelectInput.js +1 -3
- package/TablePagination/TablePagination.d.ts +8 -0
- package/TablePagination/TablePagination.js +27 -6
- package/TablePagination/TablePaginationActions.d.ts +49 -0
- package/TablePagination/TablePaginationActions.js +54 -19
- package/Tabs/Tabs.js +0 -1
- package/colors/amber.d.ts +0 -1
- package/colors/blue.d.ts +0 -1
- package/colors/blueGrey.d.ts +0 -1
- package/colors/brown.d.ts +0 -1
- package/colors/common.d.ts +0 -1
- package/colors/cyan.d.ts +0 -1
- package/colors/deepOrange.d.ts +0 -1
- package/colors/deepPurple.d.ts +0 -1
- package/colors/green.d.ts +0 -1
- package/colors/grey.d.ts +0 -1
- package/colors/indigo.d.ts +0 -1
- package/colors/lightBlue.d.ts +0 -1
- package/colors/lightGreen.d.ts +0 -1
- package/colors/lime.d.ts +0 -1
- package/colors/orange.d.ts +0 -1
- package/colors/pink.d.ts +0 -1
- package/colors/purple.d.ts +0 -1
- package/colors/red.d.ts +0 -1
- package/colors/teal.d.ts +0 -1
- package/colors/yellow.d.ts +0 -1
- package/index.js +1 -1
- package/legacy/AccordionActions/AccordionActions.js +1 -1
- package/legacy/Autocomplete/Autocomplete.js +4 -5
- package/legacy/ButtonBase/ButtonBase.js +1 -1
- package/legacy/ButtonGroup/index.js +3 -1
- package/legacy/CardActions/CardActions.js +1 -1
- package/legacy/CircularProgress/CircularProgress.js +0 -1
- package/legacy/InputLabel/InputLabel.js +1 -5
- package/legacy/NativeSelect/NativeSelectInput.js +0 -2
- package/legacy/Select/SelectInput.js +1 -3
- package/legacy/TablePagination/TablePagination.js +29 -6
- package/legacy/TablePagination/TablePaginationActions.js +56 -19
- package/legacy/Tabs/Tabs.js +0 -1
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +0 -11
- package/legacy/styles/experimental_extendTheme.js +12 -6
- package/legacy/useTouchRipple/useTouchRipple.js +1 -1
- package/locale/index.js +0 -11
- package/modern/AccordionActions/AccordionActions.js +1 -1
- package/modern/Autocomplete/Autocomplete.js +4 -5
- package/modern/ButtonBase/ButtonBase.js +1 -2
- package/modern/ButtonGroup/index.js +3 -1
- package/modern/CardActions/CardActions.js +1 -1
- package/modern/CircularProgress/CircularProgress.js +0 -1
- package/modern/FilledInput/FilledInput.js +0 -2
- package/modern/Input/Input.js +0 -2
- package/modern/InputBase/InputBase.js +0 -2
- package/modern/InputLabel/InputLabel.js +1 -5
- package/modern/Link/Link.js +0 -1
- package/modern/NativeSelect/NativeSelectInput.js +0 -2
- package/modern/Select/SelectInput.js +1 -3
- package/modern/TablePagination/TablePagination.js +27 -6
- package/modern/TablePagination/TablePaginationActions.js +53 -18
- package/modern/Tabs/Tabs.js +0 -1
- package/modern/index.js +1 -1
- package/modern/locale/index.js +0 -11
- package/modern/styles/experimental_extendTheme.js +12 -6
- package/modern/useTouchRipple/useTouchRipple.js +1 -1
- package/node/AccordionActions/AccordionActions.js +1 -1
- package/node/Autocomplete/Autocomplete.js +4 -5
- package/node/ButtonBase/ButtonBase.js +1 -2
- package/node/ButtonGroup/index.js +17 -1
- package/node/CardActions/CardActions.js +1 -1
- package/node/CircularProgress/CircularProgress.js +0 -1
- package/node/FilledInput/FilledInput.js +0 -2
- package/node/Input/Input.js +0 -2
- package/node/InputBase/InputBase.js +0 -2
- package/node/InputLabel/InputLabel.js +1 -5
- package/node/Link/Link.js +0 -1
- package/node/NativeSelect/NativeSelectInput.js +0 -2
- package/node/Select/SelectInput.js +1 -3
- package/node/TablePagination/TablePagination.js +27 -6
- package/node/TablePagination/TablePaginationActions.js +54 -19
- package/node/Tabs/Tabs.js +0 -1
- package/node/index.js +1 -1
- package/node/locale/index.js +0 -11
- package/node/styles/experimental_extendTheme.js +11 -5
- package/node/styles/index.js +1 -0
- package/node/useTouchRipple/useTouchRipple.js +1 -1
- package/package.json +8 -8
- package/styles/components.d.ts +115 -115
- package/styles/experimental_extendTheme.js +12 -6
- package/styles/variants.d.ts +1 -2
- package/umd/material-ui.development.js +111 -73
- package/umd/material-ui.production.min.js +20 -20
- package/useTouchRipple/useTouchRipple.js +1 -1
package/node/locale/index.js
CHANGED
|
@@ -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
|
package/node/styles/index.js
CHANGED
|
@@ -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/
|
|
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.
|
|
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.
|
|
31
|
-
"@mui/base": "5.0.0-beta.
|
|
32
|
-
"@mui/core-downloads-tracker": "^5.
|
|
33
|
-
"@mui/system": "^5.
|
|
34
|
-
"@mui/types": "^7.2.
|
|
35
|
-
"@mui/utils": "^5.
|
|
36
|
-
"@types/react-transition-group": "^4.4.
|
|
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",
|