@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
@@ -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).
@@ -296,6 +296,7 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes
296
296
 
297
297
  /**
298
298
  * Props applied to the [`InputLabel`](/api/input-label/) element.
299
+ * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
299
300
  */
300
301
  InputLabelProps: PropTypes.object,
301
302
 
@@ -673,7 +673,12 @@ process.env.NODE_ENV !== "production" ? Tooltip.propTypes
673
673
  * and `componentsProps.transition` prop values win over `TransitionProps` if both are applied.
674
674
  * @default {}
675
675
  */
676
- componentsProps: PropTypes.object,
676
+ componentsProps: PropTypes.shape({
677
+ arrow: PropTypes.object,
678
+ popper: PropTypes.object,
679
+ tooltip: PropTypes.object,
680
+ transition: PropTypes.object
681
+ }),
677
682
 
678
683
  /**
679
684
  * Set to `true` if the `title` acts as an accessible description.
package/modern/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.
@@ -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 = {
@@ -742,7 +742,9 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
742
742
  * The props used for each slot inside.
743
743
  * @default {}
744
744
  */
745
- componentsProps: _propTypes.default.object,
745
+ componentsProps: _propTypes.default.shape({
746
+ clearIndicator: _propTypes.default.object
747
+ }),
746
748
 
747
749
  /**
748
750
  * The default value. Use when the component is not controlled.
@@ -148,7 +148,9 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes
148
148
  * The props used for each slot inside the Backdrop.
149
149
  * @default {}
150
150
  */
151
- componentsProps: _propTypes.default.object,
151
+ componentsProps: _propTypes.default.shape({
152
+ root: _propTypes.default.object
153
+ }),
152
154
 
153
155
  /**
154
156
  * If `true`, the backdrop is invisible.
@@ -31,13 +31,14 @@ var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
31
31
 
32
32
  var _jsxRuntime = require("react/jsx-runtime");
33
33
 
34
- const _excluded = ["component", "components", "componentsProps", "color", "invisible", "badgeContent", "showZero", "variant"];
34
+ const _excluded = ["anchorOrigin", "component", "components", "componentsProps", "overlap", "color", "invisible", "badgeContent", "showZero", "variant"];
35
35
 
36
36
  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); }
37
37
 
38
38
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
39
39
 
40
- const badgeClasses = (0, _extends2.default)({}, _BadgeUnstyled.badgeUnstyledClasses, (0, _base.generateUtilityClasses)('MuiBadge', ['colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning']));
40
+ const badgeClasses = (0, _extends2.default)({}, _BadgeUnstyled.badgeUnstyledClasses, (0, _base.generateUtilityClasses)('MuiBadge', ['colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'overlapRectangular', 'overlapCircular', // TODO: v6 remove the overlap value from these class keys
41
+ 'anchorOriginTopLeftCircular', 'anchorOriginTopLeftRectangular', 'anchorOriginTopRightCircular', 'anchorOriginTopRightRectangular', 'anchorOriginBottomLeftCircular', 'anchorOriginBottomLeftRectangular', 'anchorOriginBottomRightCircular', 'anchorOriginBottomRightRectangular']));
41
42
  exports.badgeClasses = badgeClasses;
42
43
  const RADIUS_STANDARD = 10;
43
44
  const RADIUS_DOT = 4;
@@ -45,10 +46,12 @@ const RADIUS_DOT = 4;
45
46
  const extendUtilityClasses = ownerState => {
46
47
  const {
47
48
  color,
49
+ anchorOrigin,
50
+ overlap,
48
51
  classes = {}
49
52
  } = ownerState;
50
53
  return (0, _extends2.default)({}, classes, {
51
- badge: (0, _clsx.default)(classes.badge, color !== 'default' && [(0, _BadgeUnstyled.getBadgeUtilityClass)(`color${(0, _capitalize.default)(color)}`), classes[`color${(0, _capitalize.default)(color)}`]])
54
+ badge: (0, _clsx.default)(classes.badge, (0, _BadgeUnstyled.getBadgeUtilityClass)(`anchorOrigin${(0, _capitalize.default)(anchorOrigin.vertical)}${(0, _capitalize.default)(anchorOrigin.horizontal)}${(0, _capitalize.default)(overlap)}`), (0, _BadgeUnstyled.getBadgeUtilityClass)(`overlap${(0, _capitalize.default)(overlap)}`), color !== 'default' && [(0, _BadgeUnstyled.getBadgeUtilityClass)(`color${(0, _capitalize.default)(color)}`), classes[`color${(0, _capitalize.default)(color)}`]])
52
55
  });
53
56
  };
54
57
 
@@ -189,9 +192,14 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
189
192
  name: 'MuiBadge'
190
193
  });
191
194
  const {
195
+ anchorOrigin: anchorOriginProp = {
196
+ vertical: 'top',
197
+ horizontal: 'right'
198
+ },
192
199
  component = 'span',
193
200
  components = {},
194
201
  componentsProps = {},
202
+ overlap: overlapProp = 'rectangular',
195
203
  color: colorProp = 'default',
196
204
  invisible: invisibleProp,
197
205
  badgeContent: badgeContentProp,
@@ -200,7 +208,9 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
200
208
  } = props,
201
209
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
202
210
  const prevProps = (0, _utils.usePreviousProps)({
203
- color: colorProp
211
+ anchorOrigin: anchorOriginProp,
212
+ color: colorProp,
213
+ overlap: overlapProp
204
214
  });
205
215
  let invisible = invisibleProp;
206
216
 
@@ -209,14 +219,19 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
209
219
  }
210
220
 
211
221
  const {
212
- color = colorProp
222
+ color = colorProp,
223
+ overlap = overlapProp,
224
+ anchorOrigin = anchorOriginProp
213
225
  } = invisible ? prevProps : props;
214
226
  const ownerState = (0, _extends2.default)({}, props, {
227
+ anchorOrigin,
215
228
  invisible,
216
- color
229
+ color,
230
+ overlap
217
231
  });
218
232
  const classes = extendUtilityClasses(ownerState);
219
233
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_BadgeUnstyled.default, (0, _extends2.default)({
234
+ anchorOrigin: anchorOrigin,
220
235
  invisible: invisibleProp,
221
236
  badgeContent: badgeContentProp,
222
237
  showZero: showZero,
@@ -230,12 +245,14 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
230
245
  root: (0, _extends2.default)({}, componentsProps.root, shouldSpreadAdditionalProps(components.Root) && {
231
246
  as: component,
232
247
  ownerState: (0, _extends2.default)({}, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.ownerState, {
233
- color
248
+ color,
249
+ overlap
234
250
  })
235
251
  }),
236
252
  badge: (0, _extends2.default)({}, componentsProps.badge, shouldSpreadAdditionalProps(components.Badge) && {
237
253
  ownerState: (0, _extends2.default)({}, (_componentsProps$badg = componentsProps.badge) == null ? void 0 : _componentsProps$badg.ownerState, {
238
- color
254
+ color,
255
+ overlap
239
256
  })
240
257
  })
241
258
  },
@@ -306,7 +323,10 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes
306
323
  * The props used for each slot inside the Badge.
307
324
  * @default {}
308
325
  */
309
- componentsProps: _propTypes.default.object,
326
+ componentsProps: _propTypes.default.shape({
327
+ badge: _propTypes.default.object,
328
+ root: _propTypes.default.object
329
+ }),
310
330
 
311
331
  /**
312
332
  * If `true`, the badge is invisible.
@@ -279,7 +279,10 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes
279
279
  * The props used for each slot inside the Input.
280
280
  * @default {}
281
281
  */
282
- componentsProps: _propTypes.default.object,
282
+ componentsProps: _propTypes.default.shape({
283
+ input: _propTypes.default.object,
284
+ root: _propTypes.default.object
285
+ }),
283
286
 
284
287
  /**
285
288
  * The default value. Use when the component is not controlled.
@@ -185,7 +185,9 @@ process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes
185
185
  * The props used for each slot inside.
186
186
  * @default {}
187
187
  */
188
- componentsProps: _propTypes.default.object,
188
+ componentsProps: _propTypes.default.shape({
189
+ typography: _propTypes.default.object
190
+ }),
189
191
 
190
192
  /**
191
193
  * A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.
@@ -215,7 +215,10 @@ process.env.NODE_ENV !== "production" ? Input.propTypes
215
215
  * The props used for each slot inside the Input.
216
216
  * @default {}
217
217
  */
218
- componentsProps: _propTypes.default.object,
218
+ componentsProps: _propTypes.default.shape({
219
+ input: _propTypes.default.object,
220
+ root: _propTypes.default.object
221
+ }),
219
222
 
220
223
  /**
221
224
  * The default value. Use when the component is not controlled.
@@ -584,7 +584,10 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes
584
584
  * The props used for each slot inside the Input.
585
585
  * @default {}
586
586
  */
587
- componentsProps: _propTypes.default.object,
587
+ componentsProps: _propTypes.default.shape({
588
+ input: _propTypes.default.object,
589
+ root: _propTypes.default.object
590
+ }),
588
591
 
589
592
  /**
590
593
  * The default value. Use when the component is not controlled.
@@ -107,6 +107,8 @@ const InputLabelRoot = (0, _styled.default)(_FormLabel.default, {
107
107
  }, ownerState.size === 'small' && {
108
108
  transform: 'translate(12px, 13px) scale(1)'
109
109
  }, ownerState.shrink && (0, _extends2.default)({
110
+ userSelect: 'none',
111
+ pointerEvents: 'auto',
110
112
  transform: 'translate(12px, 7px) scale(0.75)',
111
113
  maxWidth: 'calc(133% - 24px)'
112
114
  }, ownerState.size === 'small' && {
@@ -120,6 +122,8 @@ const InputLabelRoot = (0, _styled.default)(_FormLabel.default, {
120
122
  }, ownerState.size === 'small' && {
121
123
  transform: 'translate(14px, 9px) scale(1)'
122
124
  }, ownerState.shrink && {
125
+ userSelect: 'none',
126
+ pointerEvents: 'auto',
123
127
  maxWidth: 'calc(133% - 24px)',
124
128
  transform: 'translate(14px, -9px) scale(0.75)'
125
129
  })));
@@ -375,7 +375,9 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes
375
375
  * The props used for each slot inside the Input.
376
376
  * @default {}
377
377
  */
378
- componentsProps: _propTypes.default.object,
378
+ componentsProps: _propTypes.default.shape({
379
+ root: _propTypes.default.object
380
+ }),
379
381
 
380
382
  /**
381
383
  * The container component used when a `ListItemSecondaryAction` is the last child.
@@ -201,7 +201,9 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes
201
201
  * The props used for each slot inside the Modal.
202
202
  * @default {}
203
203
  */
204
- componentsProps: _propTypes.default.object,
204
+ componentsProps: _propTypes.default.shape({
205
+ root: _propTypes.default.object
206
+ }),
205
207
 
206
208
  /**
207
209
  * An HTML element or function that returns one.