@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
package/locale/index.d.ts CHANGED
@@ -29,6 +29,7 @@ export declare const bnBD: Localization;
29
29
  export declare const bgBG: Localization;
30
30
  export declare const caES: Localization;
31
31
  export declare const csCZ: Localization;
32
+ export declare const daDK: Localization;
32
33
  export declare const deDE: Localization;
33
34
  export declare const elGR: Localization;
34
35
  export declare const enUS: Localization;
@@ -48,6 +49,7 @@ export declare const jaJP: Localization;
48
49
  export declare const khKH: Localization;
49
50
  export declare const koKR: Localization;
50
51
  export declare const kzKZ: Localization;
52
+ export declare const nbNO: Localization;
51
53
  export declare const nlNL: Localization;
52
54
  export declare const plPL: Localization;
53
55
  export declare const ptBR: Localization;
package/locale/index.js CHANGED
@@ -641,6 +641,86 @@ export const csCZ = {
641
641
  }
642
642
  }
643
643
  };
644
+ export const daDK = {
645
+ components: {
646
+ MuiBreadcrumbs: {
647
+ defaultProps: {
648
+ expandText: 'Vis sti'
649
+ }
650
+ },
651
+ MuiTablePagination: {
652
+ defaultProps: {
653
+ getItemAriaLabel: type => {
654
+ if (type === 'first') {
655
+ return 'Gå til den første side';
656
+ }
657
+
658
+ if (type === 'last') {
659
+ return 'Gå til den sidste side';
660
+ }
661
+
662
+ if (type === 'next') {
663
+ return 'Gå til den næste side';
664
+ } // if (type === 'previous') {
665
+
666
+
667
+ return 'Gå til den forrige side';
668
+ },
669
+ labelRowsPerPage: 'Rækker pr side:',
670
+ labelDisplayedRows: ({
671
+ from,
672
+ to,
673
+ count
674
+ }) => `${from}-${to} af ${count !== -1 ? count : `mere end ${to}`}`
675
+ }
676
+ },
677
+ MuiRating: {
678
+ defaultProps: {
679
+ getLabelText: value => `${value} Stjern${value !== 1 ? 'er' : ''}`,
680
+ emptyLabelText: 'Tom'
681
+ }
682
+ },
683
+ MuiAutocomplete: {
684
+ defaultProps: {
685
+ clearText: 'Slet',
686
+ closeText: 'Luk',
687
+ loadingText: 'Indlæser…',
688
+ noOptionsText: 'Ingen muligheder',
689
+ openText: 'Åben'
690
+ }
691
+ },
692
+ MuiAlert: {
693
+ defaultProps: {
694
+ closeText: 'Luk'
695
+ }
696
+ },
697
+ MuiPagination: {
698
+ defaultProps: {
699
+ 'aria-label': 'Sideinddelings navigation',
700
+ getItemAriaLabel: (type, page, selected) => {
701
+ if (type === 'page') {
702
+ return `${selected ? '' : 'Go to '}page ${page}`;
703
+ }
704
+
705
+ if (type === 'first') {
706
+ return 'Gå til den første side';
707
+ }
708
+
709
+ if (type === 'last') {
710
+ return 'Gå til den sidste side';
711
+ }
712
+
713
+ if (type === 'next') {
714
+ return 'Gå til den næste side';
715
+ } // if (type === 'previous') {
716
+
717
+
718
+ return 'Gå til den forrige side';
719
+ }
720
+ }
721
+ }
722
+ }
723
+ };
644
724
  export const deDE = {
645
725
  components: {
646
726
  MuiBreadcrumbs: {
@@ -808,7 +888,7 @@ export const enUS = {
808
888
  MuiBreadcrumbs: { defaultProps: {
809
889
  expandText: 'Show path',
810
890
  }},
811
- MuiTablePagination: { defaultProps: {
891
+ MuiTablePagination: { defaultProps: {
812
892
  getItemAriaLabel: (type) => {
813
893
  if (type === 'first') {
814
894
  return 'Go to first page';
@@ -826,21 +906,21 @@ export const enUS = {
826
906
  labelDisplayedRows: ({ from, to, count }) =>
827
907
  `${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`,
828
908
  }},
829
- MuiRating: { defaultProps: {
909
+ MuiRating: { defaultProps: {
830
910
  getLabelText: value => `${value} Star${value !== 1 ? 's' : ''}`,
831
911
  emptyLabelText: 'Empty',
832
912
  }},
833
- MuiAutocomplete: { defaultProps: {
913
+ MuiAutocomplete: { defaultProps: {
834
914
  clearText: 'Clear',
835
915
  closeText: 'Close',
836
916
  loadingText: 'Loading…',
837
917
  noOptionsText: 'No options',
838
918
  openText: 'Open',
839
919
  }},
840
- MuiAlert: { defaultProps: {
920
+ MuiAlert: { defaultProps: {
841
921
  closeText: 'Close',
842
922
  }},
843
- MuiPagination: { defaultProps: {
923
+ MuiPagination: { defaultProps: {
844
924
  'aria-label': 'Pagination navigation',
845
925
  getItemAriaLabel: (type, page, selected) => {
846
926
  if (type === 'page') {
@@ -858,7 +938,7 @@ export const enUS = {
858
938
  // if (type === 'previous') {
859
939
  return 'Go to previous page';
860
940
  },
861
- },
941
+ }},
862
942
  },
863
943
  */
864
944
  };
@@ -1126,9 +1206,12 @@ export const fiFI = {
1126
1206
 
1127
1207
  return 'Mene edelliselle sivulle';
1128
1208
  },
1129
- labelRowsPerPage: 'Rivejä per sivu:' // labelDisplayedRows: ({ from, to, count }) =>
1130
- // `${from}–${to} / ${count !== -1 ? count : `more than ${to}`}`,
1131
-
1209
+ labelRowsPerPage: 'Rivejä per sivu:',
1210
+ labelDisplayedRows: ({
1211
+ from,
1212
+ to,
1213
+ count
1214
+ }) => `${from}–${to} / ${count !== -1 ? count : `enemmän kuin ${to}`}`
1132
1215
  }
1133
1216
  },
1134
1217
  MuiRating: {
@@ -2106,6 +2189,86 @@ export const kzKZ = {
2106
2189
  }
2107
2190
  }
2108
2191
  };
2192
+ export const nbNO = {
2193
+ components: {
2194
+ MuiBreadcrumbs: {
2195
+ defaultProps: {
2196
+ expandText: 'Vis sti'
2197
+ }
2198
+ },
2199
+ MuiTablePagination: {
2200
+ defaultProps: {
2201
+ getItemAriaLabel: type => {
2202
+ if (type === 'first') {
2203
+ return 'Gå til første side';
2204
+ }
2205
+
2206
+ if (type === 'last') {
2207
+ return 'Gå til siste side';
2208
+ }
2209
+
2210
+ if (type === 'next') {
2211
+ return 'Gå til neste side';
2212
+ } // if (type === 'previous') {
2213
+
2214
+
2215
+ return 'Gå til forrige side';
2216
+ },
2217
+ labelRowsPerPage: 'Rader per side:',
2218
+ labelDisplayedRows: ({
2219
+ from,
2220
+ to,
2221
+ count
2222
+ }) => `${from}–${to} av ${count !== -1 ? count : `mer enn ${to}`}`
2223
+ }
2224
+ },
2225
+ MuiRating: {
2226
+ defaultProps: {
2227
+ getLabelText: value => `${value} Stjerne${value !== 1 ? 'r' : ''}`,
2228
+ emptyLabelText: 'Tom'
2229
+ }
2230
+ },
2231
+ MuiAutocomplete: {
2232
+ defaultProps: {
2233
+ clearText: 'Tøm',
2234
+ closeText: 'Lukk',
2235
+ loadingText: 'Laster inn…',
2236
+ noOptionsText: 'Ingen alternativer',
2237
+ openText: 'Åpne'
2238
+ }
2239
+ },
2240
+ MuiAlert: {
2241
+ defaultProps: {
2242
+ closeText: 'Lukk'
2243
+ }
2244
+ },
2245
+ MuiPagination: {
2246
+ defaultProps: {
2247
+ 'aria-label': 'Paginering navigasjon',
2248
+ getItemAriaLabel: (type, page, selected) => {
2249
+ if (type === 'page') {
2250
+ return `${selected ? '' : 'Gå til '}side ${page}`;
2251
+ }
2252
+
2253
+ if (type === 'first') {
2254
+ return 'Gå til første side';
2255
+ }
2256
+
2257
+ if (type === 'last') {
2258
+ return 'Gå til siste side';
2259
+ }
2260
+
2261
+ if (type === 'next') {
2262
+ return 'Gå til neste side';
2263
+ } // if (type === 'previous') {
2264
+
2265
+
2266
+ return 'Gå til forrige side';
2267
+ }
2268
+ }
2269
+ }
2270
+ }
2271
+ };
2109
2272
  export const nlNL = {
2110
2273
  components: {
2111
2274
  MuiBreadcrumbs: {
@@ -3106,26 +3269,29 @@ export const ukUA = {
3106
3269
  };
3107
3270
  export const viVN = {
3108
3271
  components: {
3109
- // MuiBreadcrumbs: {
3110
- // defaultProps: {
3111
- // expandText: 'Show path',
3112
- // },
3113
- // },
3272
+ MuiBreadcrumbs: {
3273
+ defaultProps: {
3274
+ expandText: 'Mở ra'
3275
+ }
3276
+ },
3114
3277
  MuiTablePagination: {
3115
3278
  defaultProps: {
3116
- // getItemAriaLabel: (type) => {
3117
- // if (type === 'first') {
3118
- // return 'Go to first page';
3119
- // }
3120
- // if (type === 'last') {
3121
- // return 'Go to last page';
3122
- // }
3123
- // if (type === 'next') {
3124
- // return 'Go to next page';
3125
- // }
3126
- // // if (type === 'previous') {
3127
- // return 'Go to previous page';
3128
- // },
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
+ },
3129
3295
  labelRowsPerPage: 'Số hàng mỗi trang:',
3130
3296
  labelDisplayedRows: ({
3131
3297
  from,
@@ -3137,7 +3303,7 @@ export const viVN = {
3137
3303
  MuiRating: {
3138
3304
  defaultProps: {
3139
3305
  getLabelText: value => `${value} sao`,
3140
- emptyLabelText: 'Trống'
3306
+ emptyLabelText: 'Không có dữ liệu'
3141
3307
  }
3142
3308
  },
3143
3309
  MuiAutocomplete: {
@@ -3145,7 +3311,7 @@ export const viVN = {
3145
3311
  clearText: 'Xóa',
3146
3312
  closeText: 'Đóng',
3147
3313
  loadingText: 'Đang tải…',
3148
- noOptionsText: 'Không có lựa chọn',
3314
+ noOptionsText: 'Không có lựa chọn nào',
3149
3315
  openText: 'Mở'
3150
3316
  }
3151
3317
  },
@@ -3153,28 +3319,32 @@ export const viVN = {
3153
3319
  defaultProps: {
3154
3320
  closeText: 'Đóng'
3155
3321
  }
3156
- } // MuiPagination: {
3157
- // defaultProps: {
3158
- // 'aria-label': 'Pagination navigation',
3159
- // getItemAriaLabel: (type, page, selected) => {
3160
- // if (type === 'page') {
3161
- // return `${selected ? '' : 'Go to '}page ${page}`;
3162
- // }
3163
- // if (type === 'first') {
3164
- // return 'Go to first page';
3165
- // }
3166
- // if (type === 'last') {
3167
- // return 'Go to last page';
3168
- // }
3169
- // if (type === 'next') {
3170
- // return 'Go to next page';
3171
- // }
3172
- // // if (type === 'previous') {
3173
- // return 'Go to previous page';
3174
- // },
3175
- // },
3176
- // },
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
+ }
3177
3330
 
3331
+ if (type === 'first') {
3332
+ return 'Tới trang đầu tiên';
3333
+ }
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
+ }
3178
3348
  }
3179
3349
  };
3180
3350
  export const zhCN = {
@@ -699,7 +699,9 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
699
699
  * The props used for each slot inside.
700
700
  * @default {}
701
701
  */
702
- componentsProps: PropTypes.object,
702
+ componentsProps: PropTypes.shape({
703
+ clearIndicator: PropTypes.object
704
+ }),
703
705
 
704
706
  /**
705
707
  * The default value. Use when the component is not controlled.
@@ -124,7 +124,9 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes
124
124
  * The props used for each slot inside the Backdrop.
125
125
  * @default {}
126
126
  */
127
- componentsProps: PropTypes.object,
127
+ componentsProps: PropTypes.shape({
128
+ root: PropTypes.object
129
+ }),
128
130
 
129
131
  /**
130
132
  * If `true`, the backdrop is invisible.
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
- const _excluded = ["component", "components", "componentsProps", "color", "invisible", "badgeContent", "showZero", "variant"];
3
+ const _excluded = ["anchorOrigin", "component", "components", "componentsProps", "overlap", "color", "invisible", "badgeContent", "showZero", "variant"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
@@ -11,17 +11,20 @@ import styled from '../styles/styled';
11
11
  import useThemeProps from '../styles/useThemeProps';
12
12
  import capitalize from '../utils/capitalize';
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
- export const badgeClasses = _extends({}, badgeUnstyledClasses, generateUtilityClasses('MuiBadge', ['colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning']));
14
+ export const badgeClasses = _extends({}, badgeUnstyledClasses, generateUtilityClasses('MuiBadge', ['colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'overlapRectangular', 'overlapCircular', // TODO: v6 remove the overlap value from these class keys
15
+ 'anchorOriginTopLeftCircular', 'anchorOriginTopLeftRectangular', 'anchorOriginTopRightCircular', 'anchorOriginTopRightRectangular', 'anchorOriginBottomLeftCircular', 'anchorOriginBottomLeftRectangular', 'anchorOriginBottomRightCircular', 'anchorOriginBottomRightRectangular']));
15
16
  const RADIUS_STANDARD = 10;
16
17
  const RADIUS_DOT = 4;
17
18
 
18
19
  const extendUtilityClasses = ownerState => {
19
20
  const {
20
21
  color,
22
+ anchorOrigin,
23
+ overlap,
21
24
  classes = {}
22
25
  } = ownerState;
23
26
  return _extends({}, classes, {
24
- badge: clsx(classes.badge, color !== 'default' && [getBadgeUtilityClass(`color${capitalize(color)}`), classes[`color${capitalize(color)}`]])
27
+ badge: clsx(classes.badge, getBadgeUtilityClass(`anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}${capitalize(overlap)}`), getBadgeUtilityClass(`overlap${capitalize(overlap)}`), color !== 'default' && [getBadgeUtilityClass(`color${capitalize(color)}`), classes[`color${capitalize(color)}`]])
25
28
  });
26
29
  };
27
30
 
@@ -161,9 +164,14 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
161
164
  });
162
165
 
163
166
  const {
167
+ anchorOrigin: anchorOriginProp = {
168
+ vertical: 'top',
169
+ horizontal: 'right'
170
+ },
164
171
  component = 'span',
165
172
  components = {},
166
173
  componentsProps = {},
174
+ overlap: overlapProp = 'rectangular',
167
175
  color: colorProp = 'default',
168
176
  invisible: invisibleProp,
169
177
  badgeContent: badgeContentProp,
@@ -173,7 +181,9 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
173
181
  other = _objectWithoutPropertiesLoose(props, _excluded);
174
182
 
175
183
  const prevProps = usePreviousProps({
176
- color: colorProp
184
+ anchorOrigin: anchorOriginProp,
185
+ color: colorProp,
186
+ overlap: overlapProp
177
187
  });
178
188
  let invisible = invisibleProp;
179
189
 
@@ -182,16 +192,21 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
182
192
  }
183
193
 
184
194
  const {
185
- color = colorProp
195
+ color = colorProp,
196
+ overlap = overlapProp,
197
+ anchorOrigin = anchorOriginProp
186
198
  } = invisible ? prevProps : props;
187
199
 
188
200
  const ownerState = _extends({}, props, {
201
+ anchorOrigin,
189
202
  invisible,
190
- color
203
+ color,
204
+ overlap
191
205
  });
192
206
 
193
207
  const classes = extendUtilityClasses(ownerState);
194
208
  return /*#__PURE__*/_jsx(BadgeUnstyled, _extends({
209
+ anchorOrigin: anchorOrigin,
195
210
  invisible: invisibleProp,
196
211
  badgeContent: badgeContentProp,
197
212
  showZero: showZero,
@@ -205,12 +220,14 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
205
220
  root: _extends({}, componentsProps.root, shouldSpreadAdditionalProps(components.Root) && {
206
221
  as: component,
207
222
  ownerState: _extends({}, componentsProps.root?.ownerState, {
208
- color
223
+ color,
224
+ overlap
209
225
  })
210
226
  }),
211
227
  badge: _extends({}, componentsProps.badge, shouldSpreadAdditionalProps(components.Badge) && {
212
228
  ownerState: _extends({}, componentsProps.badge?.ownerState, {
213
- color
229
+ color,
230
+ overlap
214
231
  })
215
232
  })
216
233
  },
@@ -281,7 +298,10 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes
281
298
  * The props used for each slot inside the Badge.
282
299
  * @default {}
283
300
  */
284
- componentsProps: PropTypes.object,
301
+ componentsProps: PropTypes.shape({
302
+ badge: PropTypes.object,
303
+ root: PropTypes.object
304
+ }),
285
305
 
286
306
  /**
287
307
  * If `true`, the badge is invisible.
@@ -257,7 +257,10 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes
257
257
  * The props used for each slot inside the Input.
258
258
  * @default {}
259
259
  */
260
- componentsProps: PropTypes.object,
260
+ componentsProps: PropTypes.shape({
261
+ input: PropTypes.object,
262
+ root: PropTypes.object
263
+ }),
261
264
 
262
265
  /**
263
266
  * The default value. Use when the component is not controlled.
@@ -162,7 +162,9 @@ process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes
162
162
  * The props used for each slot inside.
163
163
  * @default {}
164
164
  */
165
- componentsProps: PropTypes.object,
165
+ componentsProps: PropTypes.shape({
166
+ typography: PropTypes.object
167
+ }),
166
168
 
167
169
  /**
168
170
  * A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.
@@ -192,7 +192,10 @@ process.env.NODE_ENV !== "production" ? Input.propTypes
192
192
  * The props used for each slot inside the Input.
193
193
  * @default {}
194
194
  */
195
- componentsProps: PropTypes.object,
195
+ componentsProps: PropTypes.shape({
196
+ input: PropTypes.object,
197
+ root: PropTypes.object
198
+ }),
196
199
 
197
200
  /**
198
201
  * The default value. Use when the component is not controlled.
@@ -552,7 +552,10 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes
552
552
  * The props used for each slot inside the Input.
553
553
  * @default {}
554
554
  */
555
- componentsProps: PropTypes.object,
555
+ componentsProps: PropTypes.shape({
556
+ input: PropTypes.object,
557
+ root: PropTypes.object
558
+ }),
556
559
 
557
560
  /**
558
561
  * The default value. Use when the component is not controlled.
@@ -82,6 +82,8 @@ const InputLabelRoot = styled(FormLabel, {
82
82
  }, ownerState.size === 'small' && {
83
83
  transform: 'translate(12px, 13px) scale(1)'
84
84
  }, ownerState.shrink && _extends({
85
+ userSelect: 'none',
86
+ pointerEvents: 'auto',
85
87
  transform: 'translate(12px, 7px) scale(0.75)',
86
88
  maxWidth: 'calc(133% - 24px)'
87
89
  }, ownerState.size === 'small' && {
@@ -95,6 +97,8 @@ const InputLabelRoot = styled(FormLabel, {
95
97
  }, ownerState.size === 'small' && {
96
98
  transform: 'translate(14px, 9px) scale(1)'
97
99
  }, ownerState.shrink && {
100
+ userSelect: 'none',
101
+ pointerEvents: 'auto',
98
102
  maxWidth: 'calc(133% - 24px)',
99
103
  transform: 'translate(14px, -9px) scale(0.75)'
100
104
  })));
@@ -346,7 +346,9 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes
346
346
  * The props used for each slot inside the Input.
347
347
  * @default {}
348
348
  */
349
- componentsProps: PropTypes.object,
349
+ componentsProps: PropTypes.shape({
350
+ root: PropTypes.object
351
+ }),
350
352
 
351
353
  /**
352
354
  * The container component used when a `ListItemSecondaryAction` is the last child.
@@ -177,7 +177,9 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes
177
177
  * The props used for each slot inside the Modal.
178
178
  * @default {}
179
179
  */
180
- componentsProps: PropTypes.object,
180
+ componentsProps: PropTypes.shape({
181
+ root: PropTypes.object
182
+ }),
181
183
 
182
184
  /**
183
185
  * An HTML element or function that returns one.
@@ -370,9 +370,9 @@ const shouldSpreadOwnerState = Component => {
370
370
  return !Component || !isHostComponent(Component);
371
371
  };
372
372
 
373
- const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
373
+ const Slider = /*#__PURE__*/React.forwardRef(function Slider(sliderProps, ref) {
374
374
  const props = useThemeProps({
375
- props: inputProps,
375
+ props: sliderProps,
376
376
  name: 'MuiSlider'
377
377
  });
378
378
  const theme = useTheme();
@@ -496,6 +496,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
496
496
  * @default {}
497
497
  */
498
498
  components: PropTypes.shape({
499
+ Input: PropTypes.elementType,
499
500
  Mark: PropTypes.elementType,
500
501
  MarkLabel: PropTypes.elementType,
501
502
  Rail: PropTypes.elementType,
@@ -509,7 +510,24 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
509
510
  * The props used for each slot inside the Slider.
510
511
  * @default {}
511
512
  */
512
- componentsProps: PropTypes.object,
513
+ componentsProps: PropTypes.shape({
514
+ input: PropTypes.object,
515
+ mark: PropTypes.object,
516
+ markLabel: PropTypes.object,
517
+ rail: PropTypes.object,
518
+ root: PropTypes.object,
519
+ thumb: PropTypes.object,
520
+ track: PropTypes.object,
521
+ valueLabel: PropTypes.shape({
522
+ className: PropTypes.string,
523
+ components: PropTypes.shape({
524
+ Root: PropTypes.elementType
525
+ }),
526
+ style: PropTypes.object,
527
+ value: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number]),
528
+ valueLabelDisplay: PropTypes.oneOf(['auto', 'off', 'on'])
529
+ })
530
+ }),
513
531
 
514
532
  /**
515
533
  * The default value. Use when the component is not controlled.
@@ -205,7 +205,9 @@ process.env.NODE_ENV !== "production" ? StepLabel.propTypes
205
205
  * The props used for each slot inside.
206
206
  * @default {}
207
207
  */
208
- componentsProps: PropTypes.object,
208
+ componentsProps: PropTypes.shape({
209
+ label: PropTypes.object
210
+ }),
209
211
 
210
212
  /**
211
213
  * If `true`, the step is marked as failed.