@mui/material 5.2.4 → 5.2.8

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 (81) hide show
  1. package/Autocomplete/Autocomplete.js +3 -1
  2. package/Avatar/Avatar.d.ts +3 -1
  3. package/Backdrop/Backdrop.js +3 -1
  4. package/Badge/Badge.d.ts +25 -0
  5. package/Badge/Badge.js +29 -9
  6. package/ButtonGroup/ButtonGroupContext.d.ts +1 -1
  7. package/CHANGELOG.md +230 -32
  8. package/FilledInput/FilledInput.js +4 -1
  9. package/FormControlLabel/FormControlLabel.js +3 -1
  10. package/Input/Input.js +4 -1
  11. package/InputBase/InputBase.js +4 -1
  12. package/InputLabel/InputLabel.js +4 -0
  13. package/ListItem/ListItem.js +3 -1
  14. package/Modal/Modal.js +3 -1
  15. package/README.md +17 -28
  16. package/Slider/Slider.d.ts +2 -0
  17. package/Slider/Slider.js +21 -3
  18. package/StepLabel/StepLabel.js +3 -1
  19. package/SvgIcon/SvgIcon.d.ts +8 -0
  20. package/SvgIcon/SvgIcon.js +19 -3
  21. package/Tabs/Tabs.d.ts +1 -1
  22. package/TextField/TextField.d.ts +1 -0
  23. package/TextField/TextField.js +1 -0
  24. package/Tooltip/Tooltip.js +6 -1
  25. package/index.js +1 -1
  26. package/legacy/Autocomplete/Autocomplete.js +3 -1
  27. package/legacy/Backdrop/Backdrop.js +3 -1
  28. package/legacy/Badge/Badge.js +34 -10
  29. package/legacy/FilledInput/FilledInput.js +4 -1
  30. package/legacy/FormControlLabel/FormControlLabel.js +3 -1
  31. package/legacy/Input/Input.js +4 -1
  32. package/legacy/InputBase/InputBase.js +4 -1
  33. package/legacy/InputLabel/InputLabel.js +4 -0
  34. package/legacy/ListItem/ListItem.js +3 -1
  35. package/legacy/Modal/Modal.js +3 -1
  36. package/legacy/Slider/Slider.js +21 -3
  37. package/legacy/StepLabel/StepLabel.js +3 -1
  38. package/legacy/SvgIcon/SvgIcon.js +20 -3
  39. package/legacy/TextField/TextField.js +1 -0
  40. package/legacy/Tooltip/Tooltip.js +6 -1
  41. package/legacy/index.js +1 -1
  42. package/legacy/locale/index.js +319 -142
  43. package/locale/index.d.ts +2 -0
  44. package/locale/index.js +220 -50
  45. package/modern/Autocomplete/Autocomplete.js +3 -1
  46. package/modern/Backdrop/Backdrop.js +3 -1
  47. package/modern/Badge/Badge.js +29 -9
  48. package/modern/FilledInput/FilledInput.js +4 -1
  49. package/modern/FormControlLabel/FormControlLabel.js +3 -1
  50. package/modern/Input/Input.js +4 -1
  51. package/modern/InputBase/InputBase.js +4 -1
  52. package/modern/InputLabel/InputLabel.js +4 -0
  53. package/modern/ListItem/ListItem.js +3 -1
  54. package/modern/Modal/Modal.js +3 -1
  55. package/modern/Slider/Slider.js +21 -3
  56. package/modern/StepLabel/StepLabel.js +3 -1
  57. package/modern/SvgIcon/SvgIcon.js +19 -3
  58. package/modern/TextField/TextField.js +1 -0
  59. package/modern/Tooltip/Tooltip.js +6 -1
  60. package/modern/index.js +1 -1
  61. package/modern/locale/index.js +220 -50
  62. package/node/Autocomplete/Autocomplete.js +3 -1
  63. package/node/Backdrop/Backdrop.js +3 -1
  64. package/node/Badge/Badge.js +29 -9
  65. package/node/FilledInput/FilledInput.js +4 -1
  66. package/node/FormControlLabel/FormControlLabel.js +3 -1
  67. package/node/Input/Input.js +4 -1
  68. package/node/InputBase/InputBase.js +4 -1
  69. package/node/InputLabel/InputLabel.js +4 -0
  70. package/node/ListItem/ListItem.js +3 -1
  71. package/node/Modal/Modal.js +3 -1
  72. package/node/Slider/Slider.js +21 -3
  73. package/node/StepLabel/StepLabel.js +3 -1
  74. package/node/SvgIcon/SvgIcon.js +19 -3
  75. package/node/TextField/TextField.js +1 -0
  76. package/node/Tooltip/Tooltip.js +6 -1
  77. package/node/index.js +1 -1
  78. package/node/locale/index.js +223 -51
  79. package/package.json +3 -3
  80. package/umd/material-ui.development.js +251 -89
  81. package/umd/material-ui.production.min.js +21 -21
@@ -406,11 +406,11 @@ const shouldSpreadOwnerState = Component => {
406
406
  return !Component || !(0, _base.isHostComponent)(Component);
407
407
  };
408
408
 
409
- const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
409
+ const Slider = /*#__PURE__*/React.forwardRef(function Slider(sliderProps, ref) {
410
410
  var _componentsProps$root, _componentsProps$thum, _componentsProps$trac, _componentsProps$valu;
411
411
 
412
412
  const props = (0, _useThemeProps.default)({
413
- props: inputProps,
413
+ props: sliderProps,
414
414
  name: 'MuiSlider'
415
415
  });
416
416
  const theme = (0, _useTheme.default)();
@@ -531,6 +531,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
531
531
  * @default {}
532
532
  */
533
533
  components: _propTypes.default.shape({
534
+ Input: _propTypes.default.elementType,
534
535
  Mark: _propTypes.default.elementType,
535
536
  MarkLabel: _propTypes.default.elementType,
536
537
  Rail: _propTypes.default.elementType,
@@ -544,7 +545,24 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
544
545
  * The props used for each slot inside the Slider.
545
546
  * @default {}
546
547
  */
547
- componentsProps: _propTypes.default.object,
548
+ componentsProps: _propTypes.default.shape({
549
+ input: _propTypes.default.object,
550
+ mark: _propTypes.default.object,
551
+ markLabel: _propTypes.default.object,
552
+ rail: _propTypes.default.object,
553
+ root: _propTypes.default.object,
554
+ thumb: _propTypes.default.object,
555
+ track: _propTypes.default.object,
556
+ valueLabel: _propTypes.default.shape({
557
+ className: _propTypes.default.string,
558
+ components: _propTypes.default.shape({
559
+ Root: _propTypes.default.elementType
560
+ }),
561
+ style: _propTypes.default.object,
562
+ value: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.number), _propTypes.default.number]),
563
+ valueLabelDisplay: _propTypes.default.oneOf(['auto', 'off', 'on'])
564
+ })
565
+ }),
548
566
 
549
567
  /**
550
568
  * The default value. Use when the component is not controlled.
@@ -227,7 +227,9 @@ process.env.NODE_ENV !== "production" ? StepLabel.propTypes
227
227
  * The props used for each slot inside.
228
228
  * @default {}
229
229
  */
230
- componentsProps: _propTypes.default.object,
230
+ componentsProps: _propTypes.default.shape({
231
+ label: _propTypes.default.object
232
+ }),
231
233
 
232
234
  /**
233
235
  * If `true`, the step is marked as failed.
@@ -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).
@@ -322,6 +322,7 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes
322
322
 
323
323
  /**
324
324
  * Props applied to the [`InputLabel`](/api/input-label/) element.
325
+ * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
325
326
  */
326
327
  InputLabelProps: _propTypes.default.object,
327
328
 
@@ -712,7 +712,12 @@ process.env.NODE_ENV !== "production" ? Tooltip.propTypes
712
712
  * and `componentsProps.transition` prop values win over `TransitionProps` if both are applied.
713
713
  * @default {}
714
714
  */
715
- componentsProps: _propTypes.default.object,
715
+ componentsProps: _propTypes.default.shape({
716
+ arrow: _propTypes.default.object,
717
+ popper: _propTypes.default.object,
718
+ tooltip: _propTypes.default.object,
719
+ transition: _propTypes.default.object
720
+ }),
716
721
 
717
722
  /**
718
723
  * Set to `true` if the `title` acts as an accessible description.
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.2.4
1
+ /** @license MUI v5.2.8
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.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.zhTW = exports.zhHK = exports.zhCN = exports.viVN = exports.ukUA = exports.trTR = exports.thTH = exports.svSE = exports.skSK = exports.siLK = exports.ruRU = exports.roRO = exports.ptPT = exports.ptBR = exports.plPL = exports.nlNL = exports.kzKZ = exports.koKR = exports.khKH = exports.jaJP = exports.itIT = exports.isIS = exports.idID = exports.hyAM = exports.huHU = exports.hiIN = exports.heIL = exports.frFR = exports.fiFI = exports.faIR = exports.etEE = exports.esES = exports.enUS = exports.elGR = exports.deDE = exports.csCZ = exports.caES = exports.bnBD = exports.bgBG = exports.azAZ = exports.arSD = exports.arEG = exports.amET = void 0;
6
+ exports.zhTW = exports.zhHK = exports.zhCN = exports.viVN = exports.ukUA = exports.trTR = exports.thTH = exports.svSE = exports.skSK = exports.siLK = exports.ruRU = exports.roRO = exports.ptPT = exports.ptBR = exports.plPL = exports.nlNL = exports.nbNO = exports.kzKZ = exports.koKR = exports.khKH = exports.jaJP = exports.itIT = exports.isIS = exports.idID = exports.hyAM = exports.huHU = exports.hiIN = exports.heIL = exports.frFR = exports.fiFI = exports.faIR = exports.etEE = exports.esES = exports.enUS = exports.elGR = exports.deDE = exports.daDK = exports.csCZ = exports.caES = exports.bnBD = exports.bgBG = exports.azAZ = exports.arSD = exports.arEG = exports.amET = void 0;
7
7
  const amET = {
8
8
  components: {
9
9
  MuiBreadcrumbs: {
@@ -655,6 +655,87 @@ const csCZ = {
655
655
  }
656
656
  };
657
657
  exports.csCZ = csCZ;
658
+ const daDK = {
659
+ components: {
660
+ MuiBreadcrumbs: {
661
+ defaultProps: {
662
+ expandText: 'Vis sti'
663
+ }
664
+ },
665
+ MuiTablePagination: {
666
+ defaultProps: {
667
+ getItemAriaLabel: type => {
668
+ if (type === 'first') {
669
+ return 'Gå til den første side';
670
+ }
671
+
672
+ if (type === 'last') {
673
+ return 'Gå til den sidste side';
674
+ }
675
+
676
+ if (type === 'next') {
677
+ return 'Gå til den næste side';
678
+ } // if (type === 'previous') {
679
+
680
+
681
+ return 'Gå til den forrige side';
682
+ },
683
+ labelRowsPerPage: 'Rækker pr side:',
684
+ labelDisplayedRows: ({
685
+ from,
686
+ to,
687
+ count
688
+ }) => `${from}-${to} af ${count !== -1 ? count : `mere end ${to}`}`
689
+ }
690
+ },
691
+ MuiRating: {
692
+ defaultProps: {
693
+ getLabelText: value => `${value} Stjern${value !== 1 ? 'er' : ''}`,
694
+ emptyLabelText: 'Tom'
695
+ }
696
+ },
697
+ MuiAutocomplete: {
698
+ defaultProps: {
699
+ clearText: 'Slet',
700
+ closeText: 'Luk',
701
+ loadingText: 'Indlæser…',
702
+ noOptionsText: 'Ingen muligheder',
703
+ openText: 'Åben'
704
+ }
705
+ },
706
+ MuiAlert: {
707
+ defaultProps: {
708
+ closeText: 'Luk'
709
+ }
710
+ },
711
+ MuiPagination: {
712
+ defaultProps: {
713
+ 'aria-label': 'Sideinddelings navigation',
714
+ getItemAriaLabel: (type, page, selected) => {
715
+ if (type === 'page') {
716
+ return `${selected ? '' : 'Go to '}page ${page}`;
717
+ }
718
+
719
+ if (type === 'first') {
720
+ return 'Gå til den første side';
721
+ }
722
+
723
+ if (type === 'last') {
724
+ return 'Gå til den sidste side';
725
+ }
726
+
727
+ if (type === 'next') {
728
+ return 'Gå til den næste side';
729
+ } // if (type === 'previous') {
730
+
731
+
732
+ return 'Gå til den forrige side';
733
+ }
734
+ }
735
+ }
736
+ }
737
+ };
738
+ exports.daDK = daDK;
658
739
  const deDE = {
659
740
  components: {
660
741
  MuiBreadcrumbs: {
@@ -824,7 +905,7 @@ const enUS = {
824
905
  MuiBreadcrumbs: { defaultProps: {
825
906
  expandText: 'Show path',
826
907
  }},
827
- MuiTablePagination: { defaultProps: {
908
+ MuiTablePagination: { defaultProps: {
828
909
  getItemAriaLabel: (type) => {
829
910
  if (type === 'first') {
830
911
  return 'Go to first page';
@@ -842,21 +923,21 @@ const enUS = {
842
923
  labelDisplayedRows: ({ from, to, count }) =>
843
924
  `${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`,
844
925
  }},
845
- MuiRating: { defaultProps: {
926
+ MuiRating: { defaultProps: {
846
927
  getLabelText: value => `${value} Star${value !== 1 ? 's' : ''}`,
847
928
  emptyLabelText: 'Empty',
848
929
  }},
849
- MuiAutocomplete: { defaultProps: {
930
+ MuiAutocomplete: { defaultProps: {
850
931
  clearText: 'Clear',
851
932
  closeText: 'Close',
852
933
  loadingText: 'Loading…',
853
934
  noOptionsText: 'No options',
854
935
  openText: 'Open',
855
936
  }},
856
- MuiAlert: { defaultProps: {
937
+ MuiAlert: { defaultProps: {
857
938
  closeText: 'Close',
858
939
  }},
859
- MuiPagination: { defaultProps: {
940
+ MuiPagination: { defaultProps: {
860
941
  'aria-label': 'Pagination navigation',
861
942
  getItemAriaLabel: (type, page, selected) => {
862
943
  if (type === 'page') {
@@ -874,7 +955,7 @@ const enUS = {
874
955
  // if (type === 'previous') {
875
956
  return 'Go to previous page';
876
957
  },
877
- },
958
+ }},
878
959
  },
879
960
  */
880
961
  };
@@ -1146,9 +1227,12 @@ const fiFI = {
1146
1227
 
1147
1228
  return 'Mene edelliselle sivulle';
1148
1229
  },
1149
- labelRowsPerPage: 'Rivejä per sivu:' // labelDisplayedRows: ({ from, to, count }) =>
1150
- // `${from}–${to} / ${count !== -1 ? count : `more than ${to}`}`,
1151
-
1230
+ labelRowsPerPage: 'Rivejä per sivu:',
1231
+ labelDisplayedRows: ({
1232
+ from,
1233
+ to,
1234
+ count
1235
+ }) => `${from}–${to} / ${count !== -1 ? count : `enemmän kuin ${to}`}`
1152
1236
  }
1153
1237
  },
1154
1238
  MuiRating: {
@@ -2139,6 +2223,87 @@ const kzKZ = {
2139
2223
  }
2140
2224
  };
2141
2225
  exports.kzKZ = kzKZ;
2226
+ const nbNO = {
2227
+ components: {
2228
+ MuiBreadcrumbs: {
2229
+ defaultProps: {
2230
+ expandText: 'Vis sti'
2231
+ }
2232
+ },
2233
+ MuiTablePagination: {
2234
+ defaultProps: {
2235
+ getItemAriaLabel: type => {
2236
+ if (type === 'first') {
2237
+ return 'Gå til første side';
2238
+ }
2239
+
2240
+ if (type === 'last') {
2241
+ return 'Gå til siste side';
2242
+ }
2243
+
2244
+ if (type === 'next') {
2245
+ return 'Gå til neste side';
2246
+ } // if (type === 'previous') {
2247
+
2248
+
2249
+ return 'Gå til forrige side';
2250
+ },
2251
+ labelRowsPerPage: 'Rader per side:',
2252
+ labelDisplayedRows: ({
2253
+ from,
2254
+ to,
2255
+ count
2256
+ }) => `${from}–${to} av ${count !== -1 ? count : `mer enn ${to}`}`
2257
+ }
2258
+ },
2259
+ MuiRating: {
2260
+ defaultProps: {
2261
+ getLabelText: value => `${value} Stjerne${value !== 1 ? 'r' : ''}`,
2262
+ emptyLabelText: 'Tom'
2263
+ }
2264
+ },
2265
+ MuiAutocomplete: {
2266
+ defaultProps: {
2267
+ clearText: 'Tøm',
2268
+ closeText: 'Lukk',
2269
+ loadingText: 'Laster inn…',
2270
+ noOptionsText: 'Ingen alternativer',
2271
+ openText: 'Åpne'
2272
+ }
2273
+ },
2274
+ MuiAlert: {
2275
+ defaultProps: {
2276
+ closeText: 'Lukk'
2277
+ }
2278
+ },
2279
+ MuiPagination: {
2280
+ defaultProps: {
2281
+ 'aria-label': 'Paginering navigasjon',
2282
+ getItemAriaLabel: (type, page, selected) => {
2283
+ if (type === 'page') {
2284
+ return `${selected ? '' : 'Gå til '}side ${page}`;
2285
+ }
2286
+
2287
+ if (type === 'first') {
2288
+ return 'Gå til første side';
2289
+ }
2290
+
2291
+ if (type === 'last') {
2292
+ return 'Gå til siste side';
2293
+ }
2294
+
2295
+ if (type === 'next') {
2296
+ return 'Gå til neste side';
2297
+ } // if (type === 'previous') {
2298
+
2299
+
2300
+ return 'Gå til forrige side';
2301
+ }
2302
+ }
2303
+ }
2304
+ }
2305
+ };
2306
+ exports.nbNO = nbNO;
2142
2307
  const nlNL = {
2143
2308
  components: {
2144
2309
  MuiBreadcrumbs: {
@@ -3151,26 +3316,29 @@ const ukUA = {
3151
3316
  exports.ukUA = ukUA;
3152
3317
  const viVN = {
3153
3318
  components: {
3154
- // MuiBreadcrumbs: {
3155
- // defaultProps: {
3156
- // expandText: 'Show path',
3157
- // },
3158
- // },
3319
+ MuiBreadcrumbs: {
3320
+ defaultProps: {
3321
+ expandText: 'Mở ra'
3322
+ }
3323
+ },
3159
3324
  MuiTablePagination: {
3160
3325
  defaultProps: {
3161
- // getItemAriaLabel: (type) => {
3162
- // if (type === 'first') {
3163
- // return 'Go to first page';
3164
- // }
3165
- // if (type === 'last') {
3166
- // return 'Go to last page';
3167
- // }
3168
- // if (type === 'next') {
3169
- // return 'Go to next page';
3170
- // }
3171
- // // if (type === 'previous') {
3172
- // return 'Go to previous page';
3173
- // },
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
+ },
3174
3342
  labelRowsPerPage: 'Số hàng mỗi trang:',
3175
3343
  labelDisplayedRows: ({
3176
3344
  from,
@@ -3182,7 +3350,7 @@ const viVN = {
3182
3350
  MuiRating: {
3183
3351
  defaultProps: {
3184
3352
  getLabelText: value => `${value} sao`,
3185
- emptyLabelText: 'Trống'
3353
+ emptyLabelText: 'Không có dữ liệu'
3186
3354
  }
3187
3355
  },
3188
3356
  MuiAutocomplete: {
@@ -3190,7 +3358,7 @@ const viVN = {
3190
3358
  clearText: 'Xóa',
3191
3359
  closeText: 'Đóng',
3192
3360
  loadingText: 'Đang tải…',
3193
- noOptionsText: 'Không có lựa chọn',
3361
+ noOptionsText: 'Không có lựa chọn nào',
3194
3362
  openText: 'Mở'
3195
3363
  }
3196
3364
  },
@@ -3198,28 +3366,32 @@ const viVN = {
3198
3366
  defaultProps: {
3199
3367
  closeText: 'Đóng'
3200
3368
  }
3201
- } // MuiPagination: {
3202
- // defaultProps: {
3203
- // 'aria-label': 'Pagination navigation',
3204
- // getItemAriaLabel: (type, page, selected) => {
3205
- // if (type === 'page') {
3206
- // return `${selected ? '' : 'Go to '}page ${page}`;
3207
- // }
3208
- // if (type === 'first') {
3209
- // return 'Go to first page';
3210
- // }
3211
- // if (type === 'last') {
3212
- // return 'Go to last page';
3213
- // }
3214
- // if (type === 'next') {
3215
- // return 'Go to next page';
3216
- // }
3217
- // // if (type === 'previous') {
3218
- // return 'Go to previous page';
3219
- // },
3220
- // },
3221
- // },
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
+ }
3222
3377
 
3378
+ if (type === 'first') {
3379
+ return 'Tới trang đầu tiên';
3380
+ }
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
+ }
3223
3395
  }
3224
3396
  };
3225
3397
  exports.viVN = viVN;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.2.4",
3
+ "version": "5.2.8",
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,8 +46,8 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.16.3",
49
- "@mui/base": "5.0.0-alpha.60",
50
- "@mui/system": "^5.2.4",
49
+ "@mui/base": "5.0.0-alpha.64",
50
+ "@mui/system": "^5.2.8",
51
51
  "@mui/types": "^7.1.0",
52
52
  "@mui/utils": "^5.2.3",
53
53
  "@types/react-transition-group": "^4.4.4",