@mui/material 5.14.20 → 5.15.1

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 (106) hide show
  1. package/AccordionActions/AccordionActions.js +1 -1
  2. package/Autocomplete/Autocomplete.js +4 -5
  3. package/ButtonBase/ButtonBase.js +1 -2
  4. package/ButtonGroup/index.d.ts +2 -0
  5. package/ButtonGroup/index.js +3 -1
  6. package/CHANGELOG.md +102 -2
  7. package/CardActions/CardActions.js +1 -1
  8. package/CircularProgress/CircularProgress.js +0 -1
  9. package/FilledInput/FilledInput.js +0 -2
  10. package/Input/Input.js +0 -2
  11. package/InputBase/InputBase.js +0 -2
  12. package/InputLabel/InputLabel.js +1 -5
  13. package/Link/Link.js +0 -1
  14. package/NativeSelect/NativeSelectInput.js +0 -2
  15. package/Select/SelectInput.js +1 -3
  16. package/TablePagination/TablePagination.d.ts +8 -0
  17. package/TablePagination/TablePagination.js +27 -6
  18. package/TablePagination/TablePaginationActions.d.ts +49 -0
  19. package/TablePagination/TablePaginationActions.js +54 -19
  20. package/Tabs/Tabs.js +0 -1
  21. package/colors/amber.d.ts +0 -1
  22. package/colors/blue.d.ts +0 -1
  23. package/colors/blueGrey.d.ts +0 -1
  24. package/colors/brown.d.ts +0 -1
  25. package/colors/common.d.ts +0 -1
  26. package/colors/cyan.d.ts +0 -1
  27. package/colors/deepOrange.d.ts +0 -1
  28. package/colors/deepPurple.d.ts +0 -1
  29. package/colors/green.d.ts +0 -1
  30. package/colors/grey.d.ts +0 -1
  31. package/colors/indigo.d.ts +0 -1
  32. package/colors/lightBlue.d.ts +0 -1
  33. package/colors/lightGreen.d.ts +0 -1
  34. package/colors/lime.d.ts +0 -1
  35. package/colors/orange.d.ts +0 -1
  36. package/colors/pink.d.ts +0 -1
  37. package/colors/purple.d.ts +0 -1
  38. package/colors/red.d.ts +0 -1
  39. package/colors/teal.d.ts +0 -1
  40. package/colors/yellow.d.ts +0 -1
  41. package/index.js +1 -1
  42. package/legacy/AccordionActions/AccordionActions.js +1 -1
  43. package/legacy/Autocomplete/Autocomplete.js +4 -5
  44. package/legacy/ButtonBase/ButtonBase.js +1 -1
  45. package/legacy/ButtonGroup/index.js +3 -1
  46. package/legacy/CardActions/CardActions.js +1 -1
  47. package/legacy/CircularProgress/CircularProgress.js +0 -1
  48. package/legacy/InputLabel/InputLabel.js +1 -5
  49. package/legacy/NativeSelect/NativeSelectInput.js +0 -2
  50. package/legacy/Select/SelectInput.js +1 -3
  51. package/legacy/TablePagination/TablePagination.js +29 -6
  52. package/legacy/TablePagination/TablePaginationActions.js +56 -19
  53. package/legacy/Tabs/Tabs.js +0 -1
  54. package/legacy/index.js +1 -1
  55. package/legacy/locale/index.js +0 -11
  56. package/legacy/styles/experimental_extendTheme.js +12 -6
  57. package/legacy/useTouchRipple/useTouchRipple.js +1 -1
  58. package/locale/index.js +0 -11
  59. package/modern/AccordionActions/AccordionActions.js +1 -1
  60. package/modern/Autocomplete/Autocomplete.js +4 -5
  61. package/modern/ButtonBase/ButtonBase.js +1 -2
  62. package/modern/ButtonGroup/index.js +3 -1
  63. package/modern/CardActions/CardActions.js +1 -1
  64. package/modern/CircularProgress/CircularProgress.js +0 -1
  65. package/modern/FilledInput/FilledInput.js +0 -2
  66. package/modern/Input/Input.js +0 -2
  67. package/modern/InputBase/InputBase.js +0 -2
  68. package/modern/InputLabel/InputLabel.js +1 -5
  69. package/modern/Link/Link.js +0 -1
  70. package/modern/NativeSelect/NativeSelectInput.js +0 -2
  71. package/modern/Select/SelectInput.js +1 -3
  72. package/modern/TablePagination/TablePagination.js +27 -6
  73. package/modern/TablePagination/TablePaginationActions.js +53 -18
  74. package/modern/Tabs/Tabs.js +0 -1
  75. package/modern/index.js +1 -1
  76. package/modern/locale/index.js +0 -11
  77. package/modern/styles/experimental_extendTheme.js +12 -6
  78. package/modern/useTouchRipple/useTouchRipple.js +1 -1
  79. package/node/AccordionActions/AccordionActions.js +1 -1
  80. package/node/Autocomplete/Autocomplete.js +4 -5
  81. package/node/ButtonBase/ButtonBase.js +1 -2
  82. package/node/ButtonGroup/index.js +17 -1
  83. package/node/CardActions/CardActions.js +1 -1
  84. package/node/CircularProgress/CircularProgress.js +0 -1
  85. package/node/FilledInput/FilledInput.js +0 -2
  86. package/node/Input/Input.js +0 -2
  87. package/node/InputBase/InputBase.js +0 -2
  88. package/node/InputLabel/InputLabel.js +1 -5
  89. package/node/Link/Link.js +0 -1
  90. package/node/NativeSelect/NativeSelectInput.js +0 -2
  91. package/node/Select/SelectInput.js +1 -3
  92. package/node/TablePagination/TablePagination.js +27 -6
  93. package/node/TablePagination/TablePaginationActions.js +54 -19
  94. package/node/Tabs/Tabs.js +0 -1
  95. package/node/index.js +1 -1
  96. package/node/locale/index.js +0 -11
  97. package/node/styles/experimental_extendTheme.js +11 -5
  98. package/node/styles/index.js +1 -0
  99. package/node/useTouchRipple/useTouchRipple.js +1 -1
  100. package/package.json +8 -8
  101. package/styles/components.d.ts +115 -115
  102. package/styles/experimental_extendTheme.js +12 -6
  103. package/styles/variants.d.ts +1 -2
  104. package/umd/material-ui.development.js +111 -73
  105. package/umd/material-ui.production.min.js +20 -20
  106. package/useTouchRipple/useTouchRipple.js +1 -1
@@ -317,7 +317,6 @@ export const azAZ = {
317
317
  // `${from}–${to} dən ${count !== -1 ? count : `more than ${to}`}`,
318
318
  }
319
319
  },
320
-
321
320
  MuiRating: {
322
321
  defaultProps: {
323
322
  getLabelText: value => {
@@ -553,7 +552,6 @@ export const bgBG = {
553
552
  // `${from}–${to} от ${count !== -1 ? count : `more than ${to}`}`,
554
553
  }
555
554
  },
556
-
557
555
  MuiRating: {
558
556
  defaultProps: {
559
557
  getLabelText: value => `${value} Звезд${value !== 1 ? 'и' : 'а'}`,
@@ -624,7 +622,6 @@ export const caES = {
624
622
  // `${from}–${to} de ${count !== -1 ? count : `more than ${to}`}`,
625
623
  }
626
624
  },
627
-
628
625
  MuiRating: {
629
626
  defaultProps: {
630
627
  getLabelText: value => `${value} ${value !== 1 ? 'Estrelles' : 'Estrella'}`,
@@ -668,7 +665,6 @@ export const caES = {
668
665
  // },
669
666
  }
670
667
  };
671
-
672
668
  export const csCZ = {
673
669
  components: {
674
670
  MuiBreadcrumbs: {
@@ -1658,7 +1654,6 @@ export const huHU = {
1658
1654
  // `${from}–${to} / ${count !== -1 ? count : `more than ${to}`}`,
1659
1655
  }
1660
1656
  },
1661
-
1662
1657
  MuiRating: {
1663
1658
  defaultProps: {
1664
1659
  getLabelText: value => `${value} Csillag`,
@@ -1729,7 +1724,6 @@ export const hyAM = {
1729
1724
  // `${from}–${to} / ${count !== -1 ? count : `more than ${to}`}`,
1730
1725
  }
1731
1726
  },
1732
-
1733
1727
  MuiRating: {
1734
1728
  defaultProps: {
1735
1729
  getLabelText: value => `${value} Աստղ`,
@@ -1773,7 +1767,6 @@ export const hyAM = {
1773
1767
  // },
1774
1768
  }
1775
1769
  };
1776
-
1777
1770
  export const idID = {
1778
1771
  components: {
1779
1772
  // MuiBreadcrumbs: {
@@ -1801,14 +1794,12 @@ export const idID = {
1801
1794
  // `${from}–${to} dari ${count !== -1 ? count : `more than ${to}`}`,
1802
1795
  }
1803
1796
  },
1804
-
1805
1797
  MuiRating: {
1806
1798
  defaultProps: {
1807
1799
  getLabelText: value => `${value} Bintang`
1808
1800
  // emptyLabelText: 'Empty',
1809
1801
  }
1810
1802
  },
1811
-
1812
1803
  MuiAutocomplete: {
1813
1804
  defaultProps: {
1814
1805
  clearText: 'Hapus',
@@ -1846,7 +1837,6 @@ export const idID = {
1846
1837
  // },
1847
1838
  }
1848
1839
  };
1849
-
1850
1840
  export const isIS = {
1851
1841
  components: {
1852
1842
  MuiBreadcrumbs: {
@@ -3220,7 +3210,6 @@ export const roRO = {
3220
3210
  // `${from}–${to} din ${count !== -1 ? count : `more than ${to}`}`,
3221
3211
  }
3222
3212
  },
3223
-
3224
3213
  MuiRating: {
3225
3214
  defaultProps: {
3226
3215
  getLabelText: value => `${value} St${value !== 1 ? 'ele' : 'ea'}`,
@@ -3,7 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
3
3
  const _excluded = ["colorSchemes", "cssVarPrefix", "shouldSkipGeneratingVar"],
4
4
  _excluded2 = ["palette"];
5
5
  import { deepmerge } from '@mui/utils';
6
- import { private_safeColorChannel as safeColorChannel, private_safeAlpha as safeAlpha, private_safeDarken as safeDarken, private_safeLighten as safeLighten, private_safeEmphasize as safeEmphasize, unstable_createGetCssVar as systemCreateGetCssVar, unstable_defaultSxConfig as defaultSxConfig, unstable_styleFunctionSx as styleFunctionSx, unstable_prepareCssVars as prepareCssVars } from '@mui/system';
6
+ import { private_safeColorChannel as safeColorChannel, private_safeAlpha as safeAlpha, private_safeDarken as safeDarken, private_safeLighten as safeLighten, private_safeEmphasize as safeEmphasize, unstable_createGetCssVar as systemCreateGetCssVar, unstable_defaultSxConfig as defaultSxConfig, unstable_styleFunctionSx as styleFunctionSx, unstable_prepareCssVars as prepareCssVars, hslToRgb } from '@mui/system';
7
7
  import defaultShouldSkipGeneratingVar from './shouldSkipGeneratingVar';
8
8
  import createThemeWithoutVars from './createTheme';
9
9
  import getOverlayAlpha from './getOverlayAlpha';
@@ -26,11 +26,17 @@ function setColor(obj, key, defaultValue) {
26
26
  obj[key] = defaultValue;
27
27
  }
28
28
  }
29
+ function toRgb(color) {
30
+ if (!color || !color.startsWith('hsl')) {
31
+ return color;
32
+ }
33
+ return hslToRgb(color);
34
+ }
29
35
  function setColorChannel(obj, key) {
30
36
  if (!(`${key}Channel` in obj)) {
31
37
  // custom channel token is not provided, generate one.
32
38
  // if channel token can't be generated, show a warning.
33
- obj[`${key}Channel`] = safeColorChannel(obj[key], `MUI: Can't create \`palette.${key}Channel\` because \`palette.${key}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` + '\n' + `To suppress this warning, you need to explicitly provide the \`palette.${key}Channel\` as a string (in rgb format, e.g. "12 12 12") or undefined if you want to remove the channel token.`);
39
+ obj[`${key}Channel`] = safeColorChannel(toRgb(obj[key]), `MUI: Can't create \`palette.${key}Channel\` because \`palette.${key}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` + '\n' + `To suppress this warning, you need to explicitly provide the \`palette.${key}Channel\` as a string (in rgb format, e.g. "12 12 12") or undefined if you want to remove the channel token.`);
34
40
  }
35
41
  }
36
42
  const silent = fn => {
@@ -247,16 +253,16 @@ export default function extendTheme(options = {}, ...args) {
247
253
  if (colors && typeof colors === 'object') {
248
254
  // Silent the error for custom palettes.
249
255
  if (colors.main) {
250
- setColor(palette[color], 'mainChannel', safeColorChannel(colors.main));
256
+ setColor(palette[color], 'mainChannel', safeColorChannel(toRgb(colors.main)));
251
257
  }
252
258
  if (colors.light) {
253
- setColor(palette[color], 'lightChannel', safeColorChannel(colors.light));
259
+ setColor(palette[color], 'lightChannel', safeColorChannel(toRgb(colors.light)));
254
260
  }
255
261
  if (colors.dark) {
256
- setColor(palette[color], 'darkChannel', safeColorChannel(colors.dark));
262
+ setColor(palette[color], 'darkChannel', safeColorChannel(toRgb(colors.dark)));
257
263
  }
258
264
  if (colors.contrastText) {
259
- setColor(palette[color], 'contrastTextChannel', safeColorChannel(colors.contrastText));
265
+ setColor(palette[color], 'contrastTextChannel', safeColorChannel(toRgb(colors.contrastText)));
260
266
  }
261
267
  if (color === 'text') {
262
268
  // Text colors: text.primary, text.secondary
@@ -35,7 +35,7 @@ const useTouchRipple = props => {
35
35
  });
36
36
  const handleKeyUp = useEventCallback(event => {
37
37
  // calling preventDefault in keyUp on a <button> will not dispatch a click event if Space is pressed
38
- // https://codesandbox.io/s/button-keyup-preventdefault-dn7f0
38
+ // https://codesandbox.io/p/sandbox/button-keyup-preventdefault-dn7f0
39
39
  if (!disableFocusRipple && event.key === ' ' && rippleRef.current && focusVisible && !event.defaultPrevented) {
40
40
  keydownRef.current = false;
41
41
  rippleRef.current.stop(event, () => {
@@ -46,7 +46,7 @@ const AccordionActionsRoot = (0, _styled.default)('div', {
46
46
  padding: 8,
47
47
  justifyContent: 'flex-end'
48
48
  }, !ownerState.disableSpacing && {
49
- '& > :not(:first-of-type)': {
49
+ '& > :not(style) ~ :not(style)': {
50
50
  marginLeft: 8
51
51
  }
52
52
  }));
@@ -229,7 +229,6 @@ const AutocompleteEndAdornment = (0, _styled.default)('div', {
229
229
  right: 0,
230
230
  top: 'calc(50% - 14px)' // Center vertically
231
231
  });
232
-
233
232
  const AutocompleteClearIndicator = (0, _styled.default)(_IconButton.default, {
234
233
  name: 'MuiAutocomplete',
235
234
  slot: 'ClearIndicator',
@@ -673,7 +672,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
673
672
  // | To update them edit the d.ts file and run "yarn proptypes" |
674
673
  // ----------------------------------------------------------------------
675
674
  /**
676
- * If `true`, the portion of the selected suggestion that has not been typed by the user,
675
+ * If `true`, the portion of the selected suggestion that the user hasn't typed,
677
676
  * known as the completion string, appears inline after the input cursor in the textbox.
678
677
  * The inline completion string is visually highlighted and has a selected state.
679
678
  * @default false
@@ -689,7 +688,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
689
688
  * when the Autocomplete loses focus unless the user chooses
690
689
  * a different option or changes the character string in the input.
691
690
  *
692
- * When using `freeSolo` mode, the typed value will be the input value
691
+ * When using the `freeSolo` mode, the typed value will be the input value
693
692
  * if the Autocomplete loses focus without highlighting an option.
694
693
  * @default false
695
694
  */
@@ -724,8 +723,8 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
724
723
  /**
725
724
  * If `true`, the input's text is cleared on blur if no value is selected.
726
725
  *
727
- * Set to `true` if you want to help the user enter a new value.
728
- * Set to `false` if you want to help the user resume their search.
726
+ * Set it to `true` if you want to help the user enter a new value.
727
+ * Set it to `false` if you want to help the user resume their search.
729
728
  * @default !props.freeSolo
730
729
  */
731
730
  clearOnBlur: _propTypes.default.bool,
@@ -74,7 +74,6 @@ const ButtonBaseRoot = exports.ButtonBaseRoot = (0, _styled.default)('button', {
74
74
  '&::-moz-focus-inner': {
75
75
  borderStyle: 'none' // Remove Firefox dotted outline.
76
76
  },
77
-
78
77
  [`&.${_buttonBaseClasses.default.disabled}`]: {
79
78
  pointerEvents: 'none',
80
79
  // Disable link interactions
@@ -241,7 +240,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
241
240
  });
242
241
  const handleKeyUp = (0, _useEventCallback.default)(event => {
243
242
  // calling preventDefault in keyUp on a <button> will not dispatch a click event if Space is pressed
244
- // https://codesandbox.io/s/button-keyup-preventdefault-dn7f0
243
+ // https://codesandbox.io/p/sandbox/button-keyup-preventdefault-dn7f0
245
244
  if (focusRipple && event.key === ' ' && rippleRef.current && focusVisible && !event.defaultPrevented) {
246
245
  keydownRef.current = false;
247
246
  rippleRef.current.stop(event, () => {
@@ -6,8 +6,22 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  var _exportNames = {
9
- buttonGroupClasses: true
9
+ buttonGroupClasses: true,
10
+ ButtonGroupContext: true,
11
+ ButtonGroupButtonContext: true
10
12
  };
13
+ Object.defineProperty(exports, "ButtonGroupButtonContext", {
14
+ enumerable: true,
15
+ get: function () {
16
+ return _ButtonGroupButtonContext.default;
17
+ }
18
+ });
19
+ Object.defineProperty(exports, "ButtonGroupContext", {
20
+ enumerable: true,
21
+ get: function () {
22
+ return _ButtonGroupContext.default;
23
+ }
24
+ });
11
25
  Object.defineProperty(exports, "buttonGroupClasses", {
12
26
  enumerable: true,
13
27
  get: function () {
@@ -33,5 +47,7 @@ Object.keys(_buttonGroupClasses).forEach(function (key) {
33
47
  }
34
48
  });
35
49
  });
50
+ var _ButtonGroupContext = _interopRequireDefault(require("./ButtonGroupContext"));
51
+ var _ButtonGroupButtonContext = _interopRequireDefault(require("./ButtonGroupButtonContext"));
36
52
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
37
53
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -45,7 +45,7 @@ const CardActionsRoot = (0, _styled.default)('div', {
45
45
  alignItems: 'center',
46
46
  padding: 8
47
47
  }, !ownerState.disableSpacing && {
48
- '& > :not(:first-of-type)': {
48
+ '& > :not(style) ~ :not(style)': {
49
49
  marginLeft: 8
50
50
  }
51
51
  }));
@@ -92,7 +92,6 @@ const CircularProgressSVG = (0, _styled.default)('svg', {
92
92
  })({
93
93
  display: 'block' // Keeps the progress centered
94
94
  });
95
-
96
95
  const CircularProgressCircle = (0, _styled.default)('circle', {
97
96
  name: 'MuiCircularProgress',
98
97
  slot: 'Circle',
@@ -91,7 +91,6 @@ const FilledInputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
91
91
  }),
92
92
  pointerEvents: 'none' // Transparent to the hover style.
93
93
  },
94
-
95
94
  [`&.${_filledInputClasses.default.focused}:after`]: {
96
95
  // translateX(0) is a workaround for Safari transform scale bug
97
96
  // See https://github.com/mui/material-ui/issues/31766
@@ -115,7 +114,6 @@ const FilledInputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
115
114
  }),
116
115
  pointerEvents: 'none' // Transparent to the hover style.
117
116
  },
118
-
119
117
  [`&:hover:not(.${_filledInputClasses.default.disabled}, .${_filledInputClasses.default.error}):before`]: {
120
118
  borderBottom: `1px solid ${(theme.vars || theme).palette.text.primary}`
121
119
  },
@@ -74,7 +74,6 @@ const InputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
74
74
  }),
75
75
  pointerEvents: 'none' // Transparent to the hover style.
76
76
  },
77
-
78
77
  [`&.${_inputClasses.default.focused}:after`]: {
79
78
  // translateX(0) is a workaround for Safari transform scale bug
80
79
  // See https://github.com/mui/material-ui/issues/31766
@@ -98,7 +97,6 @@ const InputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
98
97
  }),
99
98
  pointerEvents: 'none' // Transparent to the hover style.
100
99
  },
101
-
102
100
  [`&:hover:not(.${_inputClasses.default.disabled}, .${_inputClasses.default.error}):before`]: {
103
101
  borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,
104
102
  // Reset on touch devices, it doesn't add specificity
@@ -175,13 +175,11 @@ const InputBaseComponent = exports.InputBaseComponent = (0, _styled.default)('in
175
175
  // IE11
176
176
  '&:focus::-ms-input-placeholder': placeholderVisible // Edge
177
177
  },
178
-
179
178
  [`&.${_inputBaseClasses.default.disabled}`]: {
180
179
  opacity: 1,
181
180
  // Reset iOS opacity
182
181
  WebkitTextFillColor: (theme.vars || theme).palette.text.disabled // Fix opacity Safari bug
183
182
  },
184
-
185
183
  '&:-webkit-autofill': {
186
184
  animationDuration: '5000s',
187
185
  animationName: 'mui-auto-fill'
@@ -113,11 +113,7 @@ const InputLabelRoot = (0, _styled.default)(_FormLabel.default, {
113
113
  // but it feels a better when it bleeds a bit on the left, so 32px.
114
114
  maxWidth: 'calc(133% - 32px)',
115
115
  transform: 'translate(14px, -9px) scale(0.75)'
116
- }), ownerState.variant === 'standard' && {
117
- '&:not(label) + div': {
118
- marginTop: 16
119
- }
120
- }));
116
+ })));
121
117
  const InputLabel = /*#__PURE__*/React.forwardRef(function InputLabel(inProps, ref) {
122
118
  const props = (0, _useThemeProps.default)({
123
119
  name: 'MuiInputLabel',
package/node/Link/Link.js CHANGED
@@ -91,7 +91,6 @@ const LinkRoot = (0, _styled.default)(_Typography.default, {
91
91
  '&::-moz-focus-inner': {
92
92
  borderStyle: 'none' // Remove Firefox dotted outline.
93
93
  },
94
-
95
94
  [`&.${_linkClasses.default.focusVisible}`]: {
96
95
  outline: 'auto'
97
96
  }
@@ -56,7 +56,6 @@ const nativeSelectSelectStyles = ({
56
56
  }, {
57
57
  borderRadius: 0 // Reset Chrome style
58
58
  }),
59
-
60
59
  // Remove IE11 arrow
61
60
  '&::-ms-expand': {
62
61
  display: 'none'
@@ -84,7 +83,6 @@ const nativeSelectSelectStyles = ({
84
83
  '&:focus': {
85
84
  borderRadius: (theme.vars || theme).shape.borderRadius // Reset the reset for Chrome style
86
85
  },
87
-
88
86
  '&&&': {
89
87
  paddingRight: 32
90
88
  }
@@ -392,7 +392,6 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
392
392
  'data-value': child.props.value // Instead, we provide it as a data attribute.
393
393
  });
394
394
  });
395
-
396
395
  if (process.env.NODE_ENV !== 'production') {
397
396
  // eslint-disable-next-line react-hooks/rules-of-hooks
398
397
  React.useEffect(() => {
@@ -441,7 +440,6 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
441
440
  const classes = useUtilityClasses(ownerState);
442
441
  const paperProps = (0, _extends2.default)({}, MenuProps.PaperProps, (_MenuProps$slotProps = MenuProps.slotProps) == null ? void 0 : _MenuProps$slotProps.paper);
443
442
  const listboxId = (0, _utils.unstable_useId)();
444
- const hiddenInputId = (0, _utils.unstable_useId)();
445
443
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
446
444
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(SelectSelect, (0, _extends2.default)({
447
445
  ref: handleDisplayRef,
@@ -472,7 +470,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
472
470
  })), /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectNativeInput, (0, _extends2.default)({
473
471
  "aria-invalid": error,
474
472
  value: Array.isArray(value) ? value.join(',') : value,
475
- name: name != null ? name : hiddenInputId,
473
+ name: name,
476
474
  ref: inputRef,
477
475
  "aria-hidden": true,
478
476
  onChange: handleChange,
@@ -26,7 +26,7 @@ var _useId = _interopRequireDefault(require("../utils/useId"));
26
26
  var _tablePaginationClasses = _interopRequireWildcard(require("./tablePaginationClasses"));
27
27
  var _jsxRuntime = require("react/jsx-runtime");
28
28
  var _InputBase;
29
- const _excluded = ["ActionsComponent", "backIconButtonProps", "className", "colSpan", "component", "count", "disabled", "getItemAriaLabel", "labelDisplayedRows", "labelRowsPerPage", "nextIconButtonProps", "onPageChange", "onRowsPerPageChange", "page", "rowsPerPage", "rowsPerPageOptions", "SelectProps", "showFirstButton", "showLastButton", "slotProps"];
29
+ const _excluded = ["ActionsComponent", "backIconButtonProps", "className", "colSpan", "component", "count", "disabled", "getItemAriaLabel", "labelDisplayedRows", "labelRowsPerPage", "nextIconButtonProps", "onPageChange", "onRowsPerPageChange", "page", "rowsPerPage", "rowsPerPageOptions", "SelectProps", "showFirstButton", "showLastButton", "slotProps", "slots"];
30
30
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
31
31
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
32
32
  const TablePaginationRoot = (0, _styled.default)(_TableCell.default, {
@@ -103,7 +103,6 @@ const TablePaginationSelect = (0, _styled.default)(_Select.default, {
103
103
  textAlignLast: 'right' // Align <select> on Chrome.
104
104
  }
105
105
  });
106
-
107
106
  const TablePaginationMenuItem = (0, _styled.default)(_MenuItem.default, {
108
107
  name: 'MuiTablePagination',
109
108
  slot: 'MenuItem',
@@ -176,7 +175,8 @@ const TablePagination = /*#__PURE__*/React.forwardRef(function TablePagination(i
176
175
  SelectProps = {},
177
176
  showFirstButton = false,
178
177
  showLastButton = false,
179
- slotProps
178
+ slotProps = {},
179
+ slots = {}
180
180
  } = props,
181
181
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
182
182
  const ownerState = props;
@@ -187,7 +187,6 @@ const TablePagination = /*#__PURE__*/React.forwardRef(function TablePagination(i
187
187
  if (component === _TableCell.default || component === 'td') {
188
188
  colSpan = colSpanProp || 1000; // col-span over everything
189
189
  }
190
-
191
190
  const selectId = (0, _useId.default)(selectProps.id);
192
191
  const labelId = (0, _useId.default)(selectProps.labelId);
193
192
  const getLabelDisplayedRowsTo = () => {
@@ -254,7 +253,8 @@ const TablePagination = /*#__PURE__*/React.forwardRef(function TablePagination(i
254
253
  rowsPerPage: rowsPerPage,
255
254
  showFirstButton: showFirstButton,
256
255
  showLastButton: showLastButton,
257
- slotProps: slotProps == null ? void 0 : slotProps.actions,
256
+ slotProps: slotProps.actions,
257
+ slots: slots.actions,
258
258
  getItemAriaLabel: getItemAriaLabel,
259
259
  disabled: disabled
260
260
  })]
@@ -416,12 +416,33 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes /* remove-prop
416
416
  slotProps: _propTypes.default.shape({
417
417
  actions: _propTypes.default.shape({
418
418
  firstButton: _propTypes.default.object,
419
+ firstButtonIcon: _propTypes.default.object,
419
420
  lastButton: _propTypes.default.object,
421
+ lastButtonIcon: _propTypes.default.object,
420
422
  nextButton: _propTypes.default.object,
421
- previousButton: _propTypes.default.object
423
+ nextButtonIcon: _propTypes.default.object,
424
+ previousButton: _propTypes.default.object,
425
+ previousButtonIcon: _propTypes.default.object
422
426
  }),
423
427
  select: _propTypes.default.object
424
428
  }),
429
+ /**
430
+ * The components used for each slot inside the TablePagination.
431
+ * Either a string to use a HTML element or a component.
432
+ * @default {}
433
+ */
434
+ slots: _propTypes.default.shape({
435
+ actions: _propTypes.default.shape({
436
+ firstButton: _propTypes.default.elementType,
437
+ firstButtonIcon: _propTypes.default.elementType,
438
+ lastButton: _propTypes.default.elementType,
439
+ lastButtonIcon: _propTypes.default.elementType,
440
+ nextButton: _propTypes.default.elementType,
441
+ nextButtonIcon: _propTypes.default.elementType,
442
+ previousButton: _propTypes.default.elementType,
443
+ previousButtonIcon: _propTypes.default.elementType
444
+ })
445
+ }),
425
446
  /**
426
447
  * The system prop that allows defining system overrides as well as additional CSS styles.
427
448
  */
@@ -10,22 +10,21 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
10
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
11
11
  var React = _interopRequireWildcard(require("react"));
12
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
- var _KeyboardArrowLeft3 = _interopRequireDefault(require("../internal/svg-icons/KeyboardArrowLeft"));
14
- var _KeyboardArrowRight3 = _interopRequireDefault(require("../internal/svg-icons/KeyboardArrowRight"));
13
+ var _KeyboardArrowLeft = _interopRequireDefault(require("../internal/svg-icons/KeyboardArrowLeft"));
14
+ var _KeyboardArrowRight = _interopRequireDefault(require("../internal/svg-icons/KeyboardArrowRight"));
15
15
  var _useTheme = _interopRequireDefault(require("../styles/useTheme"));
16
16
  var _IconButton = _interopRequireDefault(require("../IconButton"));
17
17
  var _LastPage = _interopRequireDefault(require("../internal/svg-icons/LastPage"));
18
18
  var _FirstPage = _interopRequireDefault(require("../internal/svg-icons/FirstPage"));
19
19
  var _jsxRuntime = require("react/jsx-runtime");
20
- var _LastPageIcon, _FirstPageIcon, _KeyboardArrowRight, _KeyboardArrowLeft, _KeyboardArrowLeft2, _KeyboardArrowRight2, _FirstPageIcon2, _LastPageIcon2;
21
- const _excluded = ["backIconButtonProps", "count", "disabled", "getItemAriaLabel", "nextIconButtonProps", "onPageChange", "page", "rowsPerPage", "showFirstButton", "showLastButton", "slotProps"];
20
+ const _excluded = ["backIconButtonProps", "count", "disabled", "getItemAriaLabel", "nextIconButtonProps", "onPageChange", "page", "rowsPerPage", "showFirstButton", "showLastButton", "slots", "slotProps"];
22
21
  /**
23
22
  * @ignore - internal component.
24
23
  */
25
24
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
26
25
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
27
26
  const TablePaginationActions = /*#__PURE__*/React.forwardRef(function TablePaginationActions(props, ref) {
28
- var _slotProps$firstButto, _slotProps$previousBu, _slotProps$nextButton, _slotProps$lastButton;
27
+ var _slots$firstButton, _slots$lastButton, _slots$nextButton, _slots$previousButton, _slots$firstButtonIco, _slots$lastButtonIcon, _slots$nextButtonIcon, _slots$previousButton2;
29
28
  const {
30
29
  backIconButtonProps,
31
30
  count,
@@ -37,7 +36,8 @@ const TablePaginationActions = /*#__PURE__*/React.forwardRef(function TablePagin
37
36
  rowsPerPage,
38
37
  showFirstButton,
39
38
  showLastButton,
40
- slotProps
39
+ slots = {},
40
+ slotProps = {}
41
41
  } = props,
42
42
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
43
43
  const theme = (0, _useTheme.default)();
@@ -53,39 +53,55 @@ const TablePaginationActions = /*#__PURE__*/React.forwardRef(function TablePagin
53
53
  const handleLastPageButtonClick = event => {
54
54
  onPageChange(event, Math.max(0, Math.ceil(count / rowsPerPage) - 1));
55
55
  };
56
+ const FirstButton = (_slots$firstButton = slots.firstButton) != null ? _slots$firstButton : _IconButton.default;
57
+ const LastButton = (_slots$lastButton = slots.lastButton) != null ? _slots$lastButton : _IconButton.default;
58
+ const NextButton = (_slots$nextButton = slots.nextButton) != null ? _slots$nextButton : _IconButton.default;
59
+ const PreviousButton = (_slots$previousButton = slots.previousButton) != null ? _slots$previousButton : _IconButton.default;
60
+ const FirstButtonIcon = (_slots$firstButtonIco = slots.firstButtonIcon) != null ? _slots$firstButtonIco : _FirstPage.default;
61
+ const LastButtonIcon = (_slots$lastButtonIcon = slots.lastButtonIcon) != null ? _slots$lastButtonIcon : _LastPage.default;
62
+ const NextButtonIcon = (_slots$nextButtonIcon = slots.nextButtonIcon) != null ? _slots$nextButtonIcon : _KeyboardArrowRight.default;
63
+ const PreviousButtonIcon = (_slots$previousButton2 = slots.previousButtonIcon) != null ? _slots$previousButton2 : _KeyboardArrowLeft.default;
64
+ const FirstButtonSlot = theme.direction === 'rtl' ? LastButton : FirstButton;
65
+ const PreviousButtonSlot = theme.direction === 'rtl' ? NextButton : PreviousButton;
66
+ const NextButtonSlot = theme.direction === 'rtl' ? PreviousButton : NextButton;
67
+ const LastButtonSlot = theme.direction === 'rtl' ? FirstButton : LastButton;
68
+ const firstButtonSlotProps = theme.direction === 'rtl' ? slotProps.lastButton : slotProps.firstButton;
69
+ const previousButtonSlotProps = theme.direction === 'rtl' ? slotProps.nextButton : slotProps.previousButton;
70
+ const nextButtonSlotProps = theme.direction === 'rtl' ? slotProps.previousButton : slotProps.nextButton;
71
+ const lastButtonSlotProps = theme.direction === 'rtl' ? slotProps.firstButton : slotProps.lastButton;
56
72
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", (0, _extends2.default)({
57
73
  ref: ref
58
74
  }, other, {
59
- children: [showFirstButton && /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.default, (0, _extends2.default)({
75
+ children: [showFirstButton && /*#__PURE__*/(0, _jsxRuntime.jsx)(FirstButtonSlot, (0, _extends2.default)({
60
76
  onClick: handleFirstPageButtonClick,
61
77
  disabled: disabled || page === 0,
62
78
  "aria-label": getItemAriaLabel('first', page),
63
79
  title: getItemAriaLabel('first', page)
64
- }, (_slotProps$firstButto = slotProps == null ? void 0 : slotProps.firstButton) != null ? _slotProps$firstButto : {}, {
65
- children: theme.direction === 'rtl' ? _LastPageIcon || (_LastPageIcon = /*#__PURE__*/(0, _jsxRuntime.jsx)(_LastPage.default, {})) : _FirstPageIcon || (_FirstPageIcon = /*#__PURE__*/(0, _jsxRuntime.jsx)(_FirstPage.default, {}))
66
- })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.default, (0, _extends2.default)({
80
+ }, firstButtonSlotProps, {
81
+ children: theme.direction === 'rtl' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(LastButtonIcon, (0, _extends2.default)({}, slotProps.lastButtonIcon)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(FirstButtonIcon, (0, _extends2.default)({}, slotProps.firstButtonIcon))
82
+ })), /*#__PURE__*/(0, _jsxRuntime.jsx)(PreviousButtonSlot, (0, _extends2.default)({
67
83
  onClick: handleBackButtonClick,
68
84
  disabled: disabled || page === 0,
69
85
  color: "inherit",
70
86
  "aria-label": getItemAriaLabel('previous', page),
71
87
  title: getItemAriaLabel('previous', page)
72
- }, (_slotProps$previousBu = slotProps == null ? void 0 : slotProps.previousButton) != null ? _slotProps$previousBu : backIconButtonProps, {
73
- children: theme.direction === 'rtl' ? _KeyboardArrowRight || (_KeyboardArrowRight = /*#__PURE__*/(0, _jsxRuntime.jsx)(_KeyboardArrowRight3.default, {})) : _KeyboardArrowLeft || (_KeyboardArrowLeft = /*#__PURE__*/(0, _jsxRuntime.jsx)(_KeyboardArrowLeft3.default, {}))
74
- })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.default, (0, _extends2.default)({
88
+ }, previousButtonSlotProps != null ? previousButtonSlotProps : backIconButtonProps, {
89
+ children: theme.direction === 'rtl' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(NextButtonIcon, (0, _extends2.default)({}, slotProps.nextButtonIcon)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(PreviousButtonIcon, (0, _extends2.default)({}, slotProps.previousButtonIcon))
90
+ })), /*#__PURE__*/(0, _jsxRuntime.jsx)(NextButtonSlot, (0, _extends2.default)({
75
91
  onClick: handleNextButtonClick,
76
92
  disabled: disabled || (count !== -1 ? page >= Math.ceil(count / rowsPerPage) - 1 : false),
77
93
  color: "inherit",
78
94
  "aria-label": getItemAriaLabel('next', page),
79
95
  title: getItemAriaLabel('next', page)
80
- }, (_slotProps$nextButton = slotProps == null ? void 0 : slotProps.nextButton) != null ? _slotProps$nextButton : nextIconButtonProps, {
81
- children: theme.direction === 'rtl' ? _KeyboardArrowLeft2 || (_KeyboardArrowLeft2 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_KeyboardArrowLeft3.default, {})) : _KeyboardArrowRight2 || (_KeyboardArrowRight2 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_KeyboardArrowRight3.default, {}))
82
- })), showLastButton && /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.default, (0, _extends2.default)({
96
+ }, nextButtonSlotProps != null ? nextButtonSlotProps : nextIconButtonProps, {
97
+ children: theme.direction === 'rtl' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(PreviousButtonIcon, (0, _extends2.default)({}, slotProps.previousButtonIcon)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(NextButtonIcon, (0, _extends2.default)({}, slotProps.nextButtonIcon))
98
+ })), showLastButton && /*#__PURE__*/(0, _jsxRuntime.jsx)(LastButtonSlot, (0, _extends2.default)({
83
99
  onClick: handleLastPageButtonClick,
84
100
  disabled: disabled || page >= Math.ceil(count / rowsPerPage) - 1,
85
101
  "aria-label": getItemAriaLabel('last', page),
86
102
  title: getItemAriaLabel('last', page)
87
- }, (_slotProps$lastButton = slotProps == null ? void 0 : slotProps.lastButton) != null ? _slotProps$lastButton : {}, {
88
- children: theme.direction === 'rtl' ? _FirstPageIcon2 || (_FirstPageIcon2 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_FirstPage.default, {})) : _LastPageIcon2 || (_LastPageIcon2 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_LastPage.default, {}))
103
+ }, lastButtonSlotProps, {
104
+ children: theme.direction === 'rtl' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(FirstButtonIcon, (0, _extends2.default)({}, slotProps.firstButtonIcon)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(LastButtonIcon, (0, _extends2.default)({}, slotProps.lastButtonIcon))
89
105
  }))]
90
106
  }));
91
107
  });
@@ -146,9 +162,28 @@ process.env.NODE_ENV !== "production" ? TablePaginationActions.propTypes = {
146
162
  */
147
163
  slotProps: _propTypes.default.shape({
148
164
  firstButton: _propTypes.default.object,
165
+ firstButtonIcon: _propTypes.default.object,
149
166
  lastButton: _propTypes.default.object,
167
+ lastButtonIcon: _propTypes.default.object,
150
168
  nextButton: _propTypes.default.object,
151
- previousButton: _propTypes.default.object
169
+ nextButtonIcon: _propTypes.default.object,
170
+ previousButton: _propTypes.default.object,
171
+ previousButtonIcon: _propTypes.default.object
172
+ }),
173
+ /**
174
+ * The components used for each slot inside the TablePaginationActions.
175
+ * Either a string to use a HTML element or a component.
176
+ * @default {}
177
+ */
178
+ slots: _propTypes.default.shape({
179
+ firstButton: _propTypes.default.elementType,
180
+ firstButtonIcon: _propTypes.default.elementType,
181
+ lastButton: _propTypes.default.elementType,
182
+ lastButtonIcon: _propTypes.default.elementType,
183
+ nextButton: _propTypes.default.elementType,
184
+ nextButtonIcon: _propTypes.default.elementType,
185
+ previousButton: _propTypes.default.elementType,
186
+ previousButtonIcon: _propTypes.default.elementType
152
187
  })
153
188
  } : void 0;
154
189
  var _default = exports.default = TablePaginationActions;
package/node/Tabs/Tabs.js CHANGED
@@ -207,7 +207,6 @@ const TabsScrollbarSize = (0, _styled.default)(_ScrollbarSize.default)({
207
207
  display: 'none' // Safari + Chrome
208
208
  }
209
209
  });
210
-
211
210
  const defaultIndicatorStyle = {};
212
211
  let warnedOnceTabPresent = false;
213
212
  const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.14.20
2
+ * @mui/material v5.15.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the