@mui/material 5.2.6 → 5.2.7
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/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/Avatar.d.ts +3 -1
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Badge/Badge.d.ts +10 -10
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +76 -76
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +40 -0
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/chipClasses.d.ts +80 -80
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +22 -22
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/formControlLabelClasses.d.ts +18 -18
- package/FormGroup/formGroupClasses.d.ts +10 -10
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/inputBaseClasses.d.ts +44 -44
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +17 -17
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +24 -24
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/SvgIcon.d.ts +8 -0
- package/SvgIcon/SvgIcon.js +19 -3
- package/SvgIcon/svgIconClasses.d.ts +24 -24
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/SvgIcon/SvgIcon.js +20 -3
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +139 -128
- package/locale/index.d.ts +68 -68
- package/locale/index.js +54 -44
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/SvgIcon/SvgIcon.js +19 -3
- package/modern/index.js +1 -1
- package/modern/locale/index.js +54 -44
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/SvgIcon/SvgIcon.js +19 -3
- package/node/index.js +1 -1
- package/node/locale/index.js +54 -44
- package/package.json +2 -2
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +25 -5
- package/umd/material-ui.production.min.js +12 -12
- package/useMediaQuery/useMediaQuery.d.ts +27 -27
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
package/locale/index.js
CHANGED
|
@@ -1206,9 +1206,12 @@ export const fiFI = {
|
|
|
1206
1206
|
|
|
1207
1207
|
return 'Mene edelliselle sivulle';
|
|
1208
1208
|
},
|
|
1209
|
-
labelRowsPerPage: 'Rivejä per sivu:'
|
|
1210
|
-
|
|
1211
|
-
|
|
1209
|
+
labelRowsPerPage: 'Rivejä per sivu:',
|
|
1210
|
+
labelDisplayedRows: ({
|
|
1211
|
+
from,
|
|
1212
|
+
to,
|
|
1213
|
+
count
|
|
1214
|
+
}) => `${from}–${to} / ${count !== -1 ? count : `enemmän kuin ${to}`}`
|
|
1212
1215
|
}
|
|
1213
1216
|
},
|
|
1214
1217
|
MuiRating: {
|
|
@@ -3266,26 +3269,29 @@ export const ukUA = {
|
|
|
3266
3269
|
};
|
|
3267
3270
|
export const viVN = {
|
|
3268
3271
|
components: {
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3272
|
+
MuiBreadcrumbs: {
|
|
3273
|
+
defaultProps: {
|
|
3274
|
+
expandText: 'Mở ra'
|
|
3275
|
+
}
|
|
3276
|
+
},
|
|
3274
3277
|
MuiTablePagination: {
|
|
3275
3278
|
defaultProps: {
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3279
|
+
getItemAriaLabel: type => {
|
|
3280
|
+
if (type === 'first') {
|
|
3281
|
+
return 'Tới trang đầu tiên';
|
|
3282
|
+
}
|
|
3283
|
+
|
|
3284
|
+
if (type === 'last') {
|
|
3285
|
+
return 'Tới trang cuối cùng';
|
|
3286
|
+
}
|
|
3287
|
+
|
|
3288
|
+
if (type === 'next') {
|
|
3289
|
+
return 'Tới trang tiếp theo';
|
|
3290
|
+
} // if (type === 'previous') {
|
|
3291
|
+
|
|
3292
|
+
|
|
3293
|
+
return 'Về trang trước đó';
|
|
3294
|
+
},
|
|
3289
3295
|
labelRowsPerPage: 'Số hàng mỗi trang:',
|
|
3290
3296
|
labelDisplayedRows: ({
|
|
3291
3297
|
from,
|
|
@@ -3297,7 +3303,7 @@ export const viVN = {
|
|
|
3297
3303
|
MuiRating: {
|
|
3298
3304
|
defaultProps: {
|
|
3299
3305
|
getLabelText: value => `${value} sao`,
|
|
3300
|
-
emptyLabelText: '
|
|
3306
|
+
emptyLabelText: 'Không có dữ liệu'
|
|
3301
3307
|
}
|
|
3302
3308
|
},
|
|
3303
3309
|
MuiAutocomplete: {
|
|
@@ -3305,7 +3311,7 @@ export const viVN = {
|
|
|
3305
3311
|
clearText: 'Xóa',
|
|
3306
3312
|
closeText: 'Đóng',
|
|
3307
3313
|
loadingText: 'Đang tải…',
|
|
3308
|
-
noOptionsText: 'Không có lựa chọn',
|
|
3314
|
+
noOptionsText: 'Không có lựa chọn nào',
|
|
3309
3315
|
openText: 'Mở'
|
|
3310
3316
|
}
|
|
3311
3317
|
},
|
|
@@ -3313,28 +3319,32 @@ export const viVN = {
|
|
|
3313
3319
|
defaultProps: {
|
|
3314
3320
|
closeText: 'Đóng'
|
|
3315
3321
|
}
|
|
3316
|
-
}
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
// }
|
|
3329
|
-
// if (type === 'next') {
|
|
3330
|
-
// return 'Go to next page';
|
|
3331
|
-
// }
|
|
3332
|
-
// // if (type === 'previous') {
|
|
3333
|
-
// return 'Go to previous page';
|
|
3334
|
-
// },
|
|
3335
|
-
// },
|
|
3336
|
-
// },
|
|
3322
|
+
},
|
|
3323
|
+
MuiPagination: {
|
|
3324
|
+
defaultProps: {
|
|
3325
|
+
'aria-label': 'Thanh điều khiển trang',
|
|
3326
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
3327
|
+
if (type === 'page') {
|
|
3328
|
+
return `${selected ? '' : 'Tới '}trang ${page}`;
|
|
3329
|
+
}
|
|
3330
|
+
|
|
3331
|
+
if (type === 'first') {
|
|
3332
|
+
return 'Tới trang đầu tiên';
|
|
3333
|
+
}
|
|
3337
3334
|
|
|
3335
|
+
if (type === 'last') {
|
|
3336
|
+
return 'Tới trang cuối cùng';
|
|
3337
|
+
}
|
|
3338
|
+
|
|
3339
|
+
if (type === 'next') {
|
|
3340
|
+
return 'Tới trang tiếp theo';
|
|
3341
|
+
} // if (type === 'previous') {
|
|
3342
|
+
|
|
3343
|
+
|
|
3344
|
+
return 'Về trang trước đó';
|
|
3345
|
+
}
|
|
3346
|
+
}
|
|
3347
|
+
}
|
|
3338
3348
|
}
|
|
3339
3349
|
};
|
|
3340
3350
|
export const zhCN = {
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
const _excluded = ["children", "className", "color", "component", "fontSize", "htmlColor", "titleAccess", "viewBox"];
|
|
3
|
+
const _excluded = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import clsx from 'clsx';
|
|
@@ -72,6 +72,7 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
|
72
72
|
component = 'svg',
|
|
73
73
|
fontSize = 'medium',
|
|
74
74
|
htmlColor,
|
|
75
|
+
inheritViewBox = false,
|
|
75
76
|
titleAccess,
|
|
76
77
|
viewBox = '0 0 24 24'
|
|
77
78
|
} = props,
|
|
@@ -81,21 +82,27 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
|
81
82
|
color,
|
|
82
83
|
component,
|
|
83
84
|
fontSize,
|
|
85
|
+
inheritViewBox,
|
|
84
86
|
viewBox
|
|
85
87
|
});
|
|
86
88
|
|
|
89
|
+
const more = {};
|
|
90
|
+
|
|
91
|
+
if (!inheritViewBox) {
|
|
92
|
+
more.viewBox = viewBox;
|
|
93
|
+
}
|
|
94
|
+
|
|
87
95
|
const classes = useUtilityClasses(ownerState);
|
|
88
96
|
return /*#__PURE__*/_jsxs(SvgIconRoot, _extends({
|
|
89
97
|
as: component,
|
|
90
98
|
className: clsx(classes.root, className),
|
|
91
99
|
ownerState: ownerState,
|
|
92
100
|
focusable: "false",
|
|
93
|
-
viewBox: viewBox,
|
|
94
101
|
color: htmlColor,
|
|
95
102
|
"aria-hidden": titleAccess ? undefined : true,
|
|
96
103
|
role: titleAccess ? 'img' : undefined,
|
|
97
104
|
ref: ref
|
|
98
|
-
}, other, {
|
|
105
|
+
}, more, other, {
|
|
99
106
|
children: [children, titleAccess ? /*#__PURE__*/_jsx("title", {
|
|
100
107
|
children: titleAccess
|
|
101
108
|
}) : null]
|
|
@@ -152,6 +159,15 @@ process.env.NODE_ENV !== "production" ? SvgIcon.propTypes
|
|
|
152
159
|
*/
|
|
153
160
|
htmlColor: PropTypes.string,
|
|
154
161
|
|
|
162
|
+
/**
|
|
163
|
+
* If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
|
|
164
|
+
* prop will be ignored.
|
|
165
|
+
* Useful when you want to reference a custom `component` and have `SvgIcon` pass that
|
|
166
|
+
* `component`'s viewBox to the root node.
|
|
167
|
+
* @default false
|
|
168
|
+
*/
|
|
169
|
+
inheritViewBox: PropTypes.bool,
|
|
170
|
+
|
|
155
171
|
/**
|
|
156
172
|
* The shape-rendering attribute. The behavior of the different options is described on the
|
|
157
173
|
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
|
package/modern/index.js
CHANGED
package/modern/locale/index.js
CHANGED
|
@@ -1206,9 +1206,12 @@ export const fiFI = {
|
|
|
1206
1206
|
|
|
1207
1207
|
return 'Mene edelliselle sivulle';
|
|
1208
1208
|
},
|
|
1209
|
-
labelRowsPerPage: 'Rivejä per sivu:'
|
|
1210
|
-
|
|
1211
|
-
|
|
1209
|
+
labelRowsPerPage: 'Rivejä per sivu:',
|
|
1210
|
+
labelDisplayedRows: ({
|
|
1211
|
+
from,
|
|
1212
|
+
to,
|
|
1213
|
+
count
|
|
1214
|
+
}) => `${from}–${to} / ${count !== -1 ? count : `enemmän kuin ${to}`}`
|
|
1212
1215
|
}
|
|
1213
1216
|
},
|
|
1214
1217
|
MuiRating: {
|
|
@@ -3266,26 +3269,29 @@ export const ukUA = {
|
|
|
3266
3269
|
};
|
|
3267
3270
|
export const viVN = {
|
|
3268
3271
|
components: {
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3272
|
+
MuiBreadcrumbs: {
|
|
3273
|
+
defaultProps: {
|
|
3274
|
+
expandText: 'Mở ra'
|
|
3275
|
+
}
|
|
3276
|
+
},
|
|
3274
3277
|
MuiTablePagination: {
|
|
3275
3278
|
defaultProps: {
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3279
|
+
getItemAriaLabel: type => {
|
|
3280
|
+
if (type === 'first') {
|
|
3281
|
+
return 'Tới trang đầu tiên';
|
|
3282
|
+
}
|
|
3283
|
+
|
|
3284
|
+
if (type === 'last') {
|
|
3285
|
+
return 'Tới trang cuối cùng';
|
|
3286
|
+
}
|
|
3287
|
+
|
|
3288
|
+
if (type === 'next') {
|
|
3289
|
+
return 'Tới trang tiếp theo';
|
|
3290
|
+
} // if (type === 'previous') {
|
|
3291
|
+
|
|
3292
|
+
|
|
3293
|
+
return 'Về trang trước đó';
|
|
3294
|
+
},
|
|
3289
3295
|
labelRowsPerPage: 'Số hàng mỗi trang:',
|
|
3290
3296
|
labelDisplayedRows: ({
|
|
3291
3297
|
from,
|
|
@@ -3297,7 +3303,7 @@ export const viVN = {
|
|
|
3297
3303
|
MuiRating: {
|
|
3298
3304
|
defaultProps: {
|
|
3299
3305
|
getLabelText: value => `${value} sao`,
|
|
3300
|
-
emptyLabelText: '
|
|
3306
|
+
emptyLabelText: 'Không có dữ liệu'
|
|
3301
3307
|
}
|
|
3302
3308
|
},
|
|
3303
3309
|
MuiAutocomplete: {
|
|
@@ -3305,7 +3311,7 @@ export const viVN = {
|
|
|
3305
3311
|
clearText: 'Xóa',
|
|
3306
3312
|
closeText: 'Đóng',
|
|
3307
3313
|
loadingText: 'Đang tải…',
|
|
3308
|
-
noOptionsText: 'Không có lựa chọn',
|
|
3314
|
+
noOptionsText: 'Không có lựa chọn nào',
|
|
3309
3315
|
openText: 'Mở'
|
|
3310
3316
|
}
|
|
3311
3317
|
},
|
|
@@ -3313,28 +3319,32 @@ export const viVN = {
|
|
|
3313
3319
|
defaultProps: {
|
|
3314
3320
|
closeText: 'Đóng'
|
|
3315
3321
|
}
|
|
3316
|
-
}
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
// }
|
|
3329
|
-
// if (type === 'next') {
|
|
3330
|
-
// return 'Go to next page';
|
|
3331
|
-
// }
|
|
3332
|
-
// // if (type === 'previous') {
|
|
3333
|
-
// return 'Go to previous page';
|
|
3334
|
-
// },
|
|
3335
|
-
// },
|
|
3336
|
-
// },
|
|
3322
|
+
},
|
|
3323
|
+
MuiPagination: {
|
|
3324
|
+
defaultProps: {
|
|
3325
|
+
'aria-label': 'Thanh điều khiển trang',
|
|
3326
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
3327
|
+
if (type === 'page') {
|
|
3328
|
+
return `${selected ? '' : 'Tới '}trang ${page}`;
|
|
3329
|
+
}
|
|
3330
|
+
|
|
3331
|
+
if (type === 'first') {
|
|
3332
|
+
return 'Tới trang đầu tiên';
|
|
3333
|
+
}
|
|
3337
3334
|
|
|
3335
|
+
if (type === 'last') {
|
|
3336
|
+
return 'Tới trang cuối cùng';
|
|
3337
|
+
}
|
|
3338
|
+
|
|
3339
|
+
if (type === 'next') {
|
|
3340
|
+
return 'Tới trang tiếp theo';
|
|
3341
|
+
} // if (type === 'previous') {
|
|
3342
|
+
|
|
3343
|
+
|
|
3344
|
+
return 'Về trang trước đó';
|
|
3345
|
+
}
|
|
3346
|
+
}
|
|
3347
|
+
}
|
|
3338
3348
|
}
|
|
3339
3349
|
};
|
|
3340
3350
|
export const zhCN = {
|
|
File without changes
|
package/node/SvgIcon/SvgIcon.js
CHANGED
|
@@ -29,7 +29,7 @@ var _svgIconClasses = require("./svgIconClasses");
|
|
|
29
29
|
|
|
30
30
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
31
31
|
|
|
32
|
-
const _excluded = ["children", "className", "color", "component", "fontSize", "htmlColor", "titleAccess", "viewBox"];
|
|
32
|
+
const _excluded = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
|
|
33
33
|
|
|
34
34
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
35
35
|
|
|
@@ -98,6 +98,7 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
|
98
98
|
component = 'svg',
|
|
99
99
|
fontSize = 'medium',
|
|
100
100
|
htmlColor,
|
|
101
|
+
inheritViewBox = false,
|
|
101
102
|
titleAccess,
|
|
102
103
|
viewBox = '0 0 24 24'
|
|
103
104
|
} = props,
|
|
@@ -106,20 +107,26 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
|
106
107
|
color,
|
|
107
108
|
component,
|
|
108
109
|
fontSize,
|
|
110
|
+
inheritViewBox,
|
|
109
111
|
viewBox
|
|
110
112
|
});
|
|
113
|
+
const more = {};
|
|
114
|
+
|
|
115
|
+
if (!inheritViewBox) {
|
|
116
|
+
more.viewBox = viewBox;
|
|
117
|
+
}
|
|
118
|
+
|
|
111
119
|
const classes = useUtilityClasses(ownerState);
|
|
112
120
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(SvgIconRoot, (0, _extends2.default)({
|
|
113
121
|
as: component,
|
|
114
122
|
className: (0, _clsx.default)(classes.root, className),
|
|
115
123
|
ownerState: ownerState,
|
|
116
124
|
focusable: "false",
|
|
117
|
-
viewBox: viewBox,
|
|
118
125
|
color: htmlColor,
|
|
119
126
|
"aria-hidden": titleAccess ? undefined : true,
|
|
120
127
|
role: titleAccess ? 'img' : undefined,
|
|
121
128
|
ref: ref
|
|
122
|
-
}, other, {
|
|
129
|
+
}, more, other, {
|
|
123
130
|
children: [children, titleAccess ? /*#__PURE__*/(0, _jsxRuntime.jsx)("title", {
|
|
124
131
|
children: titleAccess
|
|
125
132
|
}) : null]
|
|
@@ -176,6 +183,15 @@ process.env.NODE_ENV !== "production" ? SvgIcon.propTypes
|
|
|
176
183
|
*/
|
|
177
184
|
htmlColor: _propTypes.default.string,
|
|
178
185
|
|
|
186
|
+
/**
|
|
187
|
+
* If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
|
|
188
|
+
* prop will be ignored.
|
|
189
|
+
* Useful when you want to reference a custom `component` and have `SvgIcon` pass that
|
|
190
|
+
* `component`'s viewBox to the root node.
|
|
191
|
+
* @default false
|
|
192
|
+
*/
|
|
193
|
+
inheritViewBox: _propTypes.default.bool,
|
|
194
|
+
|
|
179
195
|
/**
|
|
180
196
|
* The shape-rendering attribute. The behavior of the different options is described on the
|
|
181
197
|
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.7",
|
|
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.",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@babel/runtime": "^7.16.3",
|
|
49
|
-
"@mui/base": "5.0.0-alpha.
|
|
49
|
+
"@mui/base": "5.0.0-alpha.63",
|
|
50
50
|
"@mui/system": "^5.2.6",
|
|
51
51
|
"@mui/types": "^7.1.0",
|
|
52
52
|
"@mui/utils": "^5.2.3",
|
package/transitions/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './transition';
|
|
1
|
+
export * from './transition';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export declare type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
|
|
4
|
-
export declare type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
|
|
5
|
-
export interface EasingProps {
|
|
6
|
-
easing: string | {
|
|
7
|
-
enter?: string;
|
|
8
|
-
exit?: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export declare type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
|
|
12
|
-
export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
|
|
13
|
-
}
|
|
1
|
+
import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export declare type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
|
|
4
|
+
export declare type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
|
|
5
|
+
export interface EasingProps {
|
|
6
|
+
easing: string | {
|
|
7
|
+
enter?: string;
|
|
8
|
+
exit?: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
|
|
12
|
+
export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
|
|
13
|
+
}
|
package/transitions/utils.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const reflow: (node: Element) => number;
|
|
3
|
-
interface ComponentProps {
|
|
4
|
-
easing: string | {
|
|
5
|
-
enter?: string;
|
|
6
|
-
exit?: string;
|
|
7
|
-
} | undefined;
|
|
8
|
-
style: React.CSSProperties | undefined;
|
|
9
|
-
timeout: number | {
|
|
10
|
-
enter?: number;
|
|
11
|
-
exit?: number;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
interface Options {
|
|
15
|
-
mode: 'enter' | 'exit';
|
|
16
|
-
}
|
|
17
|
-
interface TransitionProps {
|
|
18
|
-
duration: string | number;
|
|
19
|
-
easing: string | undefined;
|
|
20
|
-
delay: string | undefined;
|
|
21
|
-
}
|
|
22
|
-
export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
|
|
23
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const reflow: (node: Element) => number;
|
|
3
|
+
interface ComponentProps {
|
|
4
|
+
easing: string | {
|
|
5
|
+
enter?: string;
|
|
6
|
+
exit?: string;
|
|
7
|
+
} | undefined;
|
|
8
|
+
style: React.CSSProperties | undefined;
|
|
9
|
+
timeout: number | {
|
|
10
|
+
enter?: number;
|
|
11
|
+
exit?: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
interface Options {
|
|
15
|
+
mode: 'enter' | 'exit';
|
|
16
|
+
}
|
|
17
|
+
interface TransitionProps {
|
|
18
|
+
duration: string | number;
|
|
19
|
+
easing: string | undefined;
|
|
20
|
+
delay: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
|
|
23
|
+
export {};
|