@mui/material 5.2.6 → 5.3.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 (98) hide show
  1. package/Autocomplete/Autocomplete.d.ts +2 -0
  2. package/Autocomplete/Autocomplete.js +11 -7
  3. package/Avatar/Avatar.d.ts +3 -1
  4. package/Backdrop/Backdrop.js +3 -1
  5. package/Badge/Badge.d.ts +10 -10
  6. package/Badge/Badge.js +6 -7
  7. package/Button/buttonClasses.d.ts +1 -1
  8. package/CHANGELOG.md +240 -33
  9. package/FilledInput/FilledInput.js +4 -1
  10. package/FormControlLabel/FormControlLabel.js +3 -1
  11. package/Input/Input.js +4 -1
  12. package/InputBase/InputBase.js +4 -1
  13. package/InputLabel/InputLabel.js +4 -0
  14. package/ListItem/ListItem.js +3 -1
  15. package/Modal/Modal.js +3 -1
  16. package/README.md +5 -4
  17. package/Select/Select.d.ts +9 -1
  18. package/Select/Select.js +10 -1
  19. package/Select/SelectInput.d.ts +1 -0
  20. package/Select/SelectInput.js +25 -4
  21. package/Slider/Slider.d.ts +2 -0
  22. package/Slider/Slider.js +126 -53
  23. package/StepLabel/StepLabel.js +3 -1
  24. package/SvgIcon/SvgIcon.d.ts +8 -0
  25. package/SvgIcon/SvgIcon.js +28 -12
  26. package/TextField/TextField.d.ts +1 -0
  27. package/TextField/TextField.js +1 -0
  28. package/Tooltip/Tooltip.js +6 -1
  29. package/index.js +1 -1
  30. package/legacy/Autocomplete/Autocomplete.js +11 -7
  31. package/legacy/Backdrop/Backdrop.js +3 -1
  32. package/legacy/Badge/Badge.js +6 -7
  33. package/legacy/FilledInput/FilledInput.js +4 -1
  34. package/legacy/FormControlLabel/FormControlLabel.js +3 -1
  35. package/legacy/Input/Input.js +4 -1
  36. package/legacy/InputBase/InputBase.js +4 -1
  37. package/legacy/InputLabel/InputLabel.js +4 -0
  38. package/legacy/ListItem/ListItem.js +3 -1
  39. package/legacy/Modal/Modal.js +3 -1
  40. package/legacy/Select/Select.js +11 -1
  41. package/legacy/Select/SelectInput.js +29 -7
  42. package/legacy/Slider/Slider.js +127 -54
  43. package/legacy/StepLabel/StepLabel.js +3 -1
  44. package/legacy/SvgIcon/SvgIcon.js +29 -12
  45. package/legacy/TextField/TextField.js +1 -0
  46. package/legacy/Tooltip/Tooltip.js +6 -1
  47. package/legacy/index.js +1 -1
  48. package/legacy/locale/index.js +139 -128
  49. package/legacy/utils/shouldSpreadAdditionalProps.js +7 -0
  50. package/locale/index.js +54 -44
  51. package/modern/Autocomplete/Autocomplete.js +10 -6
  52. package/modern/Backdrop/Backdrop.js +3 -1
  53. package/modern/Badge/Badge.js +6 -7
  54. package/modern/FilledInput/FilledInput.js +4 -1
  55. package/modern/FormControlLabel/FormControlLabel.js +3 -1
  56. package/modern/Input/Input.js +4 -1
  57. package/modern/InputBase/InputBase.js +4 -1
  58. package/modern/InputLabel/InputLabel.js +4 -0
  59. package/modern/ListItem/ListItem.js +3 -1
  60. package/modern/Modal/Modal.js +3 -1
  61. package/modern/Select/Select.js +10 -1
  62. package/modern/Select/SelectInput.js +25 -4
  63. package/modern/Slider/Slider.js +126 -53
  64. package/modern/StepLabel/StepLabel.js +3 -1
  65. package/modern/SvgIcon/SvgIcon.js +27 -11
  66. package/modern/TextField/TextField.js +1 -0
  67. package/modern/Tooltip/Tooltip.js +6 -1
  68. package/modern/index.js +1 -1
  69. package/modern/locale/index.js +54 -44
  70. package/modern/utils/shouldSpreadAdditionalProps.js +7 -0
  71. package/node/Autocomplete/Autocomplete.js +11 -7
  72. package/node/Backdrop/Backdrop.js +3 -1
  73. package/node/Badge/Badge.js +8 -8
  74. package/node/FilledInput/FilledInput.js +4 -1
  75. package/node/FormControlLabel/FormControlLabel.js +3 -1
  76. package/node/Input/Input.js +4 -1
  77. package/node/InputBase/InputBase.js +4 -1
  78. package/node/InputLabel/InputLabel.js +4 -0
  79. package/node/ListItem/ListItem.js +3 -1
  80. package/node/Modal/Modal.js +3 -1
  81. package/node/Select/Select.js +10 -1
  82. package/node/Select/SelectInput.js +25 -4
  83. package/node/Slider/Slider.js +112 -45
  84. package/node/StepLabel/StepLabel.js +3 -1
  85. package/node/SvgIcon/SvgIcon.js +28 -12
  86. package/node/TextField/TextField.js +1 -0
  87. package/node/Tooltip/Tooltip.js +6 -1
  88. package/node/index.js +1 -1
  89. package/node/locale/index.js +54 -44
  90. package/node/utils/shouldSpreadAdditionalProps.js +15 -0
  91. package/package.json +7 -7
  92. package/styles/components.d.ts +452 -113
  93. package/styles/createTheme.d.ts +12 -6
  94. package/styles/overrides.d.ts +16 -4
  95. package/styles/useThemeProps.d.ts +2 -1
  96. package/umd/material-ui.development.js +619 -289
  97. package/umd/material-ui.production.min.js +21 -21
  98. package/utils/shouldSpreadAdditionalProps.js +7 -0
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.2.6
1
+ /** @license MUI v5.3.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -1227,9 +1227,12 @@ const fiFI = {
1227
1227
 
1228
1228
  return 'Mene edelliselle sivulle';
1229
1229
  },
1230
- labelRowsPerPage: 'Rivejä per sivu:' // labelDisplayedRows: ({ from, to, count }) =>
1231
- // `${from}–${to} / ${count !== -1 ? count : `more than ${to}`}`,
1232
-
1230
+ labelRowsPerPage: 'Rivejä per sivu:',
1231
+ labelDisplayedRows: ({
1232
+ from,
1233
+ to,
1234
+ count
1235
+ }) => `${from}–${to} / ${count !== -1 ? count : `enemmän kuin ${to}`}`
1233
1236
  }
1234
1237
  },
1235
1238
  MuiRating: {
@@ -3313,26 +3316,29 @@ const ukUA = {
3313
3316
  exports.ukUA = ukUA;
3314
3317
  const viVN = {
3315
3318
  components: {
3316
- // MuiBreadcrumbs: {
3317
- // defaultProps: {
3318
- // expandText: 'Show path',
3319
- // },
3320
- // },
3319
+ MuiBreadcrumbs: {
3320
+ defaultProps: {
3321
+ expandText: 'Mở ra'
3322
+ }
3323
+ },
3321
3324
  MuiTablePagination: {
3322
3325
  defaultProps: {
3323
- // getItemAriaLabel: (type) => {
3324
- // if (type === 'first') {
3325
- // return 'Go to first page';
3326
- // }
3327
- // if (type === 'last') {
3328
- // return 'Go to last page';
3329
- // }
3330
- // if (type === 'next') {
3331
- // return 'Go to next page';
3332
- // }
3333
- // // if (type === 'previous') {
3334
- // return 'Go to previous page';
3335
- // },
3326
+ getItemAriaLabel: type => {
3327
+ if (type === 'first') {
3328
+ return 'Tới trang đầu tiên';
3329
+ }
3330
+
3331
+ if (type === 'last') {
3332
+ return 'Tới trang cuối cùng';
3333
+ }
3334
+
3335
+ if (type === 'next') {
3336
+ return 'Tới trang tiếp theo';
3337
+ } // if (type === 'previous') {
3338
+
3339
+
3340
+ return 'Về trang trước đó';
3341
+ },
3336
3342
  labelRowsPerPage: 'Số hàng mỗi trang:',
3337
3343
  labelDisplayedRows: ({
3338
3344
  from,
@@ -3344,7 +3350,7 @@ const viVN = {
3344
3350
  MuiRating: {
3345
3351
  defaultProps: {
3346
3352
  getLabelText: value => `${value} sao`,
3347
- emptyLabelText: 'Trống'
3353
+ emptyLabelText: 'Không có dữ liệu'
3348
3354
  }
3349
3355
  },
3350
3356
  MuiAutocomplete: {
@@ -3352,7 +3358,7 @@ const viVN = {
3352
3358
  clearText: 'Xóa',
3353
3359
  closeText: 'Đóng',
3354
3360
  loadingText: 'Đang tải…',
3355
- noOptionsText: 'Không có lựa chọn',
3361
+ noOptionsText: 'Không có lựa chọn nào',
3356
3362
  openText: 'Mở'
3357
3363
  }
3358
3364
  },
@@ -3360,28 +3366,32 @@ const viVN = {
3360
3366
  defaultProps: {
3361
3367
  closeText: 'Đóng'
3362
3368
  }
3363
- } // MuiPagination: {
3364
- // defaultProps: {
3365
- // 'aria-label': 'Pagination navigation',
3366
- // getItemAriaLabel: (type, page, selected) => {
3367
- // if (type === 'page') {
3368
- // return `${selected ? '' : 'Go to '}page ${page}`;
3369
- // }
3370
- // if (type === 'first') {
3371
- // return 'Go to first page';
3372
- // }
3373
- // if (type === 'last') {
3374
- // return 'Go to last page';
3375
- // }
3376
- // if (type === 'next') {
3377
- // return 'Go to next page';
3378
- // }
3379
- // // if (type === 'previous') {
3380
- // return 'Go to previous page';
3381
- // },
3382
- // },
3383
- // },
3369
+ },
3370
+ MuiPagination: {
3371
+ defaultProps: {
3372
+ 'aria-label': 'Thanh điều khiển trang',
3373
+ getItemAriaLabel: (type, page, selected) => {
3374
+ if (type === 'page') {
3375
+ return `${selected ? '' : 'Tới '}trang ${page}`;
3376
+ }
3377
+
3378
+ if (type === 'first') {
3379
+ return 'Tới trang đầu tiên';
3380
+ }
3384
3381
 
3382
+ if (type === 'last') {
3383
+ return 'Tới trang cuối cùng';
3384
+ }
3385
+
3386
+ if (type === 'next') {
3387
+ return 'Tới trang tiếp theo';
3388
+ } // if (type === 'previous') {
3389
+
3390
+
3391
+ return 'Về trang trước đó';
3392
+ }
3393
+ }
3394
+ }
3385
3395
  }
3386
3396
  };
3387
3397
  exports.viVN = viVN;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _base = require("@mui/base");
9
+
10
+ const shouldSpreadAdditionalProps = Slot => {
11
+ return !Slot || !(0, _base.isHostComponent)(Slot);
12
+ };
13
+
14
+ var _default = shouldSpreadAdditionalProps;
15
+ exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.2.6",
3
+ "version": "5.3.1",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "Quickly build beautiful React apps. MUI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.",
@@ -30,8 +30,8 @@
30
30
  "@emotion/react": "^11.5.0",
31
31
  "@emotion/styled": "^11.3.0",
32
32
  "@types/react": "^16.8.6 || ^17.0.0",
33
- "react": "^17.0.2",
34
- "react-dom": "^17.0.2"
33
+ "react": "^17.0.0",
34
+ "react-dom": "^17.0.0"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "@types/react": {
@@ -45,11 +45,11 @@
45
45
  }
46
46
  },
47
47
  "dependencies": {
48
- "@babel/runtime": "^7.16.3",
49
- "@mui/base": "5.0.0-alpha.62",
50
- "@mui/system": "^5.2.6",
48
+ "@babel/runtime": "^7.16.7",
49
+ "@mui/base": "5.0.0-alpha.66",
50
+ "@mui/system": "^5.3.0",
51
51
  "@mui/types": "^7.1.0",
52
- "@mui/utils": "^5.2.3",
52
+ "@mui/utils": "^5.3.0",
53
53
  "@types/react-transition-group": "^4.4.4",
54
54
  "clsx": "^1.1.1",
55
55
  "csstype": "^3.0.10",