@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.
- package/Autocomplete/Autocomplete.d.ts +2 -0
- package/Autocomplete/Autocomplete.js +11 -7
- package/Avatar/Avatar.d.ts +3 -1
- package/Backdrop/Backdrop.js +3 -1
- package/Badge/Badge.d.ts +10 -10
- package/Badge/Badge.js +6 -7
- package/Button/buttonClasses.d.ts +1 -1
- package/CHANGELOG.md +240 -33
- package/FilledInput/FilledInput.js +4 -1
- package/FormControlLabel/FormControlLabel.js +3 -1
- package/Input/Input.js +4 -1
- package/InputBase/InputBase.js +4 -1
- package/InputLabel/InputLabel.js +4 -0
- package/ListItem/ListItem.js +3 -1
- package/Modal/Modal.js +3 -1
- package/README.md +5 -4
- package/Select/Select.d.ts +9 -1
- package/Select/Select.js +10 -1
- package/Select/SelectInput.d.ts +1 -0
- package/Select/SelectInput.js +25 -4
- package/Slider/Slider.d.ts +2 -0
- package/Slider/Slider.js +126 -53
- package/StepLabel/StepLabel.js +3 -1
- package/SvgIcon/SvgIcon.d.ts +8 -0
- package/SvgIcon/SvgIcon.js +28 -12
- package/TextField/TextField.d.ts +1 -0
- package/TextField/TextField.js +1 -0
- package/Tooltip/Tooltip.js +6 -1
- package/index.js +1 -1
- package/legacy/Autocomplete/Autocomplete.js +11 -7
- package/legacy/Backdrop/Backdrop.js +3 -1
- package/legacy/Badge/Badge.js +6 -7
- package/legacy/FilledInput/FilledInput.js +4 -1
- package/legacy/FormControlLabel/FormControlLabel.js +3 -1
- package/legacy/Input/Input.js +4 -1
- package/legacy/InputBase/InputBase.js +4 -1
- package/legacy/InputLabel/InputLabel.js +4 -0
- package/legacy/ListItem/ListItem.js +3 -1
- package/legacy/Modal/Modal.js +3 -1
- package/legacy/Select/Select.js +11 -1
- package/legacy/Select/SelectInput.js +29 -7
- package/legacy/Slider/Slider.js +127 -54
- package/legacy/StepLabel/StepLabel.js +3 -1
- package/legacy/SvgIcon/SvgIcon.js +29 -12
- package/legacy/TextField/TextField.js +1 -0
- package/legacy/Tooltip/Tooltip.js +6 -1
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +139 -128
- package/legacy/utils/shouldSpreadAdditionalProps.js +7 -0
- package/locale/index.js +54 -44
- package/modern/Autocomplete/Autocomplete.js +10 -6
- package/modern/Backdrop/Backdrop.js +3 -1
- package/modern/Badge/Badge.js +6 -7
- package/modern/FilledInput/FilledInput.js +4 -1
- package/modern/FormControlLabel/FormControlLabel.js +3 -1
- package/modern/Input/Input.js +4 -1
- package/modern/InputBase/InputBase.js +4 -1
- package/modern/InputLabel/InputLabel.js +4 -0
- package/modern/ListItem/ListItem.js +3 -1
- package/modern/Modal/Modal.js +3 -1
- package/modern/Select/Select.js +10 -1
- package/modern/Select/SelectInput.js +25 -4
- package/modern/Slider/Slider.js +126 -53
- package/modern/StepLabel/StepLabel.js +3 -1
- package/modern/SvgIcon/SvgIcon.js +27 -11
- package/modern/TextField/TextField.js +1 -0
- package/modern/Tooltip/Tooltip.js +6 -1
- package/modern/index.js +1 -1
- package/modern/locale/index.js +54 -44
- package/modern/utils/shouldSpreadAdditionalProps.js +7 -0
- package/node/Autocomplete/Autocomplete.js +11 -7
- package/node/Backdrop/Backdrop.js +3 -1
- package/node/Badge/Badge.js +8 -8
- package/node/FilledInput/FilledInput.js +4 -1
- package/node/FormControlLabel/FormControlLabel.js +3 -1
- package/node/Input/Input.js +4 -1
- package/node/InputBase/InputBase.js +4 -1
- package/node/InputLabel/InputLabel.js +4 -0
- package/node/ListItem/ListItem.js +3 -1
- package/node/Modal/Modal.js +3 -1
- package/node/Select/Select.js +10 -1
- package/node/Select/SelectInput.js +25 -4
- package/node/Slider/Slider.js +112 -45
- package/node/StepLabel/StepLabel.js +3 -1
- package/node/SvgIcon/SvgIcon.js +28 -12
- package/node/TextField/TextField.js +1 -0
- package/node/Tooltip/Tooltip.js +6 -1
- package/node/index.js +1 -1
- package/node/locale/index.js +54 -44
- package/node/utils/shouldSpreadAdditionalProps.js +15 -0
- package/package.json +7 -7
- package/styles/components.d.ts +452 -113
- package/styles/createTheme.d.ts +12 -6
- package/styles/overrides.d.ts +16 -4
- package/styles/useThemeProps.d.ts +2 -1
- package/umd/material-ui.development.js +619 -289
- package/umd/material-ui.production.min.js +21 -21
- package/utils/shouldSpreadAdditionalProps.js +7 -0
package/node/index.js
CHANGED
package/node/locale/index.js
CHANGED
|
@@ -1227,9 +1227,12 @@ const fiFI = {
|
|
|
1227
1227
|
|
|
1228
1228
|
return 'Mene edelliselle sivulle';
|
|
1229
1229
|
},
|
|
1230
|
-
labelRowsPerPage: 'Rivejä per sivu:'
|
|
1231
|
-
|
|
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
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3319
|
+
MuiBreadcrumbs: {
|
|
3320
|
+
defaultProps: {
|
|
3321
|
+
expandText: 'Mở ra'
|
|
3322
|
+
}
|
|
3323
|
+
},
|
|
3321
3324
|
MuiTablePagination: {
|
|
3322
3325
|
defaultProps: {
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
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: '
|
|
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
|
-
}
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
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.
|
|
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.
|
|
34
|
-
"react-dom": "^17.0.
|
|
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.
|
|
49
|
-
"@mui/base": "5.0.0-alpha.
|
|
50
|
-
"@mui/system": "^5.
|
|
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.
|
|
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",
|