@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.
Files changed (150) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/alertClasses.d.ts +44 -44
  6. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  7. package/AppBar/appBarClasses.d.ts +28 -28
  8. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  9. package/Avatar/Avatar.d.ts +3 -1
  10. package/Avatar/avatarClasses.d.ts +20 -20
  11. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  12. package/Badge/Badge.d.ts +10 -10
  13. package/BottomNavigation/BottomNavigation.js +0 -0
  14. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  15. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  16. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  17. package/Button/buttonClasses.d.ts +76 -76
  18. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  19. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  20. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  21. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  22. package/CHANGELOG.md +40 -0
  23. package/Card/cardClasses.d.ts +8 -8
  24. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  25. package/CardActions/cardActionsClasses.d.ts +10 -10
  26. package/CardContent/cardContentClasses.d.ts +8 -8
  27. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  28. package/CardMedia/cardMediaClasses.d.ts +12 -12
  29. package/Checkbox/checkboxClasses.d.ts +18 -18
  30. package/Chip/chipClasses.d.ts +80 -80
  31. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  32. package/ClickAwayListener/index.d.ts +2 -2
  33. package/Collapse/collapseClasses.d.ts +18 -18
  34. package/Container/containerClasses.d.ts +22 -22
  35. package/Dialog/DialogContext.d.ts +6 -6
  36. package/Dialog/dialogClasses.d.ts +36 -36
  37. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  38. package/DialogContent/dialogContentClasses.d.ts +10 -10
  39. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  40. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  41. package/Divider/dividerClasses.d.ts +34 -34
  42. package/Drawer/drawerClasses.d.ts +30 -30
  43. package/Fab/fabClasses.d.ts +26 -26
  44. package/FilledInput/filledInputClasses.d.ts +40 -40
  45. package/FormControl/formControlClasses.d.ts +14 -14
  46. package/FormControlLabel/formControlLabelClasses.d.ts +18 -18
  47. package/FormGroup/formGroupClasses.d.ts +10 -10
  48. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  49. package/FormLabel/formLabelClasses.d.ts +22 -22
  50. package/Grid/gridClasses.d.ts +48 -48
  51. package/Icon/iconClasses.d.ts +24 -24
  52. package/IconButton/iconButtonClasses.d.ts +26 -26
  53. package/ImageList/imageListClasses.d.ts +16 -16
  54. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  55. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  56. package/Input/inputClasses.d.ts +34 -34
  57. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  58. package/InputBase/inputBaseClasses.d.ts +44 -44
  59. package/InputLabel/inputLabelClasses.d.ts +32 -32
  60. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  61. package/Link/linkClasses.d.ts +18 -18
  62. package/List/listClasses.d.ts +14 -14
  63. package/ListItem/listItemClasses.d.ts +30 -30
  64. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  65. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  66. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  67. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  68. package/ListItemText/listItemTextClasses.d.ts +18 -18
  69. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  70. package/Menu/menuClasses.d.ts +12 -12
  71. package/MenuItem/menuItemClasses.d.ts +20 -20
  72. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  73. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  74. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  75. package/Pagination/paginationClasses.d.ts +14 -14
  76. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  77. package/Paper/paperClasses.d.ts +39 -39
  78. package/Popover/popoverClasses.d.ts +10 -10
  79. package/Popper/Popper.d.ts +17 -17
  80. package/Radio/radioClasses.d.ts +16 -16
  81. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  82. package/RadioGroup/useRadioGroup.d.ts +4 -4
  83. package/Rating/ratingClasses.d.ts +40 -40
  84. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  85. package/Select/selectClasses.d.ts +30 -30
  86. package/Skeleton/skeletonClasses.d.ts +24 -24
  87. package/Snackbar/snackbarClasses.d.ts +20 -20
  88. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  89. package/SpeedDial/speedDialClasses.d.ts +22 -22
  90. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  91. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  92. package/Step/stepClasses.d.ts +16 -16
  93. package/StepButton/stepButtonClasses.d.ts +14 -14
  94. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  95. package/StepContent/stepContentClasses.d.ts +12 -12
  96. package/StepIcon/stepIconClasses.d.ts +16 -16
  97. package/StepLabel/stepLabelClasses.d.ts +28 -28
  98. package/Stepper/stepperClasses.d.ts +14 -14
  99. package/SvgIcon/SvgIcon.d.ts +8 -0
  100. package/SvgIcon/SvgIcon.js +19 -3
  101. package/SvgIcon/svgIconClasses.d.ts +24 -24
  102. package/Switch/switchClasses.d.ts +32 -32
  103. package/Tab/tabClasses.d.ts +26 -26
  104. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  105. package/Table/tableClasses.d.ts +10 -10
  106. package/TableBody/tableBodyClasses.d.ts +8 -8
  107. package/TableCell/tableCellClasses.d.ts +32 -32
  108. package/TableContainer/tableContainerClasses.d.ts +8 -8
  109. package/TableFooter/tableFooterClasses.d.ts +8 -8
  110. package/TableHead/tableHeadClasses.d.ts +8 -8
  111. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  112. package/TableRow/tableRowClasses.d.ts +16 -16
  113. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  114. package/Tabs/tabsClasses.d.ts +32 -32
  115. package/TextField/textFieldClasses.d.ts +8 -8
  116. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  117. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  118. package/Toolbar/toolbarClasses.d.ts +14 -14
  119. package/Tooltip/tooltipClasses.d.ts +30 -30
  120. package/Typography/typographyClasses.d.ts +50 -50
  121. package/darkScrollbar/index.d.ts +28 -28
  122. package/index.js +1 -1
  123. package/internal/switchBaseClasses.d.ts +12 -12
  124. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  125. package/legacy/SvgIcon/SvgIcon.js +20 -3
  126. package/legacy/index.js +1 -1
  127. package/legacy/locale/index.js +139 -128
  128. package/locale/index.d.ts +68 -68
  129. package/locale/index.js +54 -44
  130. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  131. package/modern/SvgIcon/SvgIcon.js +19 -3
  132. package/modern/index.js +1 -1
  133. package/modern/locale/index.js +54 -44
  134. package/node/BottomNavigation/BottomNavigation.js +0 -0
  135. package/node/SvgIcon/SvgIcon.js +19 -3
  136. package/node/index.js +1 -1
  137. package/node/locale/index.js +54 -44
  138. package/package.json +2 -2
  139. package/transitions/index.d.ts +1 -1
  140. package/transitions/transition.d.ts +13 -13
  141. package/transitions/utils.d.ts +23 -23
  142. package/umd/material-ui.development.js +25 -5
  143. package/umd/material-ui.production.min.js +12 -12
  144. package/useMediaQuery/useMediaQuery.d.ts +27 -27
  145. package/useTouchRipple/index.d.ts +1 -1
  146. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  147. package/utils/getScrollbarSize.d.ts +2 -2
  148. package/utils/ownerDocument.d.ts +2 -2
  149. package/utils/ownerWindow.d.ts +2 -2
  150. 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:' // labelDisplayedRows: ({ from, to, count }) =>
1210
- // `${from}–${to} / ${count !== -1 ? count : `more than ${to}`}`,
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
- // MuiBreadcrumbs: {
3270
- // defaultProps: {
3271
- // expandText: 'Show path',
3272
- // },
3273
- // },
3272
+ MuiBreadcrumbs: {
3273
+ defaultProps: {
3274
+ expandText: 'Mở ra'
3275
+ }
3276
+ },
3274
3277
  MuiTablePagination: {
3275
3278
  defaultProps: {
3276
- // getItemAriaLabel: (type) => {
3277
- // if (type === 'first') {
3278
- // return 'Go to first page';
3279
- // }
3280
- // if (type === 'last') {
3281
- // return 'Go to last page';
3282
- // }
3283
- // if (type === 'next') {
3284
- // return 'Go to next page';
3285
- // }
3286
- // // if (type === 'previous') {
3287
- // return 'Go to previous page';
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: 'Trống'
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
- } // MuiPagination: {
3317
- // defaultProps: {
3318
- // 'aria-label': 'Pagination navigation',
3319
- // getItemAriaLabel: (type, page, selected) => {
3320
- // if (type === 'page') {
3321
- // return `${selected ? '' : 'Go to '}page ${page}`;
3322
- // }
3323
- // if (type === 'first') {
3324
- // return 'Go to first page';
3325
- // }
3326
- // if (type === 'last') {
3327
- // return 'Go to last page';
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
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.2.6
1
+ /** @license MUI v5.2.7
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.
@@ -1206,9 +1206,12 @@ export const fiFI = {
1206
1206
 
1207
1207
  return 'Mene edelliselle sivulle';
1208
1208
  },
1209
- labelRowsPerPage: 'Rivejä per sivu:' // labelDisplayedRows: ({ from, to, count }) =>
1210
- // `${from}–${to} / ${count !== -1 ? count : `more than ${to}`}`,
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
- // MuiBreadcrumbs: {
3270
- // defaultProps: {
3271
- // expandText: 'Show path',
3272
- // },
3273
- // },
3272
+ MuiBreadcrumbs: {
3273
+ defaultProps: {
3274
+ expandText: 'Mở ra'
3275
+ }
3276
+ },
3274
3277
  MuiTablePagination: {
3275
3278
  defaultProps: {
3276
- // getItemAriaLabel: (type) => {
3277
- // if (type === 'first') {
3278
- // return 'Go to first page';
3279
- // }
3280
- // if (type === 'last') {
3281
- // return 'Go to last page';
3282
- // }
3283
- // if (type === 'next') {
3284
- // return 'Go to next page';
3285
- // }
3286
- // // if (type === 'previous') {
3287
- // return 'Go to previous page';
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: 'Trống'
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
- } // MuiPagination: {
3317
- // defaultProps: {
3318
- // 'aria-label': 'Pagination navigation',
3319
- // getItemAriaLabel: (type, page, selected) => {
3320
- // if (type === 'page') {
3321
- // return `${selected ? '' : 'Go to '}page ${page}`;
3322
- // }
3323
- // if (type === 'first') {
3324
- // return 'Go to first page';
3325
- // }
3326
- // if (type === 'last') {
3327
- // return 'Go to last page';
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
@@ -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
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.2.6
1
+ /** @license MUI v5.2.7
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.2.6",
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.62",
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",
@@ -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
+ }
@@ -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 {};