@mui/material 5.14.17 → 5.14.19

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 (113) hide show
  1. package/Autocomplete/Autocomplete.d.ts +3 -0
  2. package/Autocomplete/Autocomplete.js +24 -5
  3. package/BottomNavigation/BottomNavigation.js +0 -0
  4. package/Box/Box.js +2 -1
  5. package/Box/boxClasses.d.ts +7 -0
  6. package/Box/boxClasses.js +3 -0
  7. package/Box/index.d.ts +3 -0
  8. package/Box/index.js +3 -1
  9. package/CHANGELOG.md +154 -6
  10. package/Chip/Chip.js +2 -2
  11. package/FilledInput/FilledInput.js +9 -6
  12. package/FormControlLabel/FormControlLabel.js +1 -2
  13. package/InputAdornment/InputAdornment.js +2 -2
  14. package/InputLabel/InputLabel.js +5 -1
  15. package/Modal/Modal.d.ts +3 -0
  16. package/Modal/Modal.js +3 -0
  17. package/Popper/Popper.js +3 -0
  18. package/Rating/Rating.js +4 -6
  19. package/Select/Select.d.ts +1 -2
  20. package/Select/SelectInput.js +2 -1
  21. package/StepButton/StepButton.js +1 -1
  22. package/TablePagination/TablePagination.d.ts +23 -0
  23. package/TablePagination/TablePagination.js +47 -12
  24. package/TablePagination/TablePaginationActions.d.ts +19 -0
  25. package/TablePagination/TablePaginationActions.js +35 -15
  26. package/index.js +1 -1
  27. package/legacy/Accordion/Accordion.js +4 -5
  28. package/legacy/AccordionSummary/AccordionSummary.js +5 -6
  29. package/legacy/Autocomplete/Autocomplete.js +55 -41
  30. package/legacy/AvatarGroup/AvatarGroup.js +2 -3
  31. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  32. package/legacy/Box/Box.js +2 -1
  33. package/legacy/Box/boxClasses.js +3 -0
  34. package/legacy/Box/index.js +3 -1
  35. package/legacy/Button/Button.js +10 -11
  36. package/legacy/ButtonBase/ButtonBase.js +4 -5
  37. package/legacy/ButtonGroup/ButtonGroup.js +4 -5
  38. package/legacy/CardActionArea/CardActionArea.js +4 -5
  39. package/legacy/CardHeader/CardHeader.js +1 -2
  40. package/legacy/Checkbox/Checkbox.js +3 -4
  41. package/legacy/Chip/Chip.js +29 -32
  42. package/legacy/FilledInput/FilledInput.js +20 -17
  43. package/legacy/FormControlLabel/FormControlLabel.js +1 -2
  44. package/legacy/FormHelperText/FormHelperText.js +4 -5
  45. package/legacy/FormLabel/FormLabel.js +5 -6
  46. package/legacy/Input/Input.js +7 -8
  47. package/legacy/InputAdornment/InputAdornment.js +2 -2
  48. package/legacy/InputBase/InputBase.js +5 -6
  49. package/legacy/InputLabel/InputLabel.js +5 -1
  50. package/legacy/ListItem/ListItem.js +4 -5
  51. package/legacy/ListItemButton/ListItemButton.js +6 -7
  52. package/legacy/MenuItem/MenuItem.js +11 -12
  53. package/legacy/Modal/Modal.js +3 -0
  54. package/legacy/NativeSelect/NativeSelectInput.js +6 -7
  55. package/legacy/OutlinedInput/OutlinedInput.js +7 -8
  56. package/legacy/PaginationItem/PaginationItem.js +9 -10
  57. package/legacy/Popper/Popper.js +3 -0
  58. package/legacy/Rating/Rating.js +8 -10
  59. package/legacy/Select/SelectInput.js +2 -1
  60. package/legacy/Slider/Slider.js +11 -14
  61. package/legacy/SpeedDialIcon/SpeedDialIcon.js +4 -5
  62. package/legacy/StepButton/StepButton.js +1 -1
  63. package/legacy/StepIcon/StepIcon.js +5 -6
  64. package/legacy/StepLabel/StepLabel.js +10 -12
  65. package/legacy/Switch/Switch.js +14 -17
  66. package/legacy/Tab/Tab.js +10 -11
  67. package/legacy/TablePagination/TablePagination.js +53 -19
  68. package/legacy/TablePagination/TablePaginationActions.js +35 -14
  69. package/legacy/TableRow/TableRow.js +4 -5
  70. package/legacy/Tabs/Tabs.js +1 -2
  71. package/legacy/ToggleButton/ToggleButton.js +4 -5
  72. package/legacy/Tooltip/Tooltip.js +10 -12
  73. package/legacy/index.js +1 -1
  74. package/legacy/styles/createMixins.js +4 -5
  75. package/modern/Autocomplete/Autocomplete.js +24 -5
  76. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  77. package/modern/Box/Box.js +2 -1
  78. package/modern/Box/boxClasses.js +3 -0
  79. package/modern/Box/index.js +3 -1
  80. package/modern/Chip/Chip.js +2 -2
  81. package/modern/FilledInput/FilledInput.js +9 -6
  82. package/modern/FormControlLabel/FormControlLabel.js +1 -2
  83. package/modern/InputAdornment/InputAdornment.js +2 -2
  84. package/modern/InputLabel/InputLabel.js +5 -1
  85. package/modern/Modal/Modal.js +3 -0
  86. package/modern/Popper/Popper.js +3 -0
  87. package/modern/Rating/Rating.js +4 -6
  88. package/modern/Select/SelectInput.js +2 -1
  89. package/modern/StepButton/StepButton.js +1 -1
  90. package/modern/TablePagination/TablePagination.js +46 -12
  91. package/modern/TablePagination/TablePaginationActions.js +34 -15
  92. package/modern/index.js +1 -1
  93. package/node/Autocomplete/Autocomplete.js +24 -5
  94. package/node/BottomNavigation/BottomNavigation.js +0 -0
  95. package/node/Box/Box.js +2 -1
  96. package/node/Box/boxClasses.js +9 -0
  97. package/node/Box/index.js +24 -1
  98. package/node/Chip/Chip.js +2 -2
  99. package/node/FilledInput/FilledInput.js +9 -6
  100. package/node/FormControlLabel/FormControlLabel.js +1 -2
  101. package/node/InputAdornment/InputAdornment.js +2 -2
  102. package/node/InputLabel/InputLabel.js +5 -1
  103. package/node/Modal/Modal.js +3 -0
  104. package/node/Popper/Popper.js +3 -0
  105. package/node/Rating/Rating.js +4 -6
  106. package/node/Select/SelectInput.js +2 -1
  107. package/node/StepButton/StepButton.js +1 -1
  108. package/node/TablePagination/TablePagination.js +47 -12
  109. package/node/TablePagination/TablePaginationActions.js +35 -15
  110. package/node/index.js +1 -1
  111. package/package.json +9 -9
  112. package/umd/material-ui.development.js +180 -102
  113. package/umd/material-ui.production.min.js +21 -21
@@ -3,7 +3,7 @@
3
3
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
4
  import _extends from "@babel/runtime/helpers/esm/extends";
5
5
  var _InputBase;
6
- const _excluded = ["ActionsComponent", "backIconButtonProps", "className", "colSpan", "component", "count", "getItemAriaLabel", "labelDisplayedRows", "labelRowsPerPage", "nextIconButtonProps", "onPageChange", "onRowsPerPageChange", "page", "rowsPerPage", "rowsPerPageOptions", "SelectProps", "showFirstButton", "showLastButton"];
6
+ const _excluded = ["ActionsComponent", "backIconButtonProps", "className", "colSpan", "component", "count", "disabled", "getItemAriaLabel", "labelDisplayedRows", "labelRowsPerPage", "nextIconButtonProps", "onPageChange", "onRowsPerPageChange", "page", "rowsPerPage", "rowsPerPageOptions", "SelectProps", "showFirstButton", "showLastButton", "slotProps"];
7
7
  import * as React from 'react';
8
8
  import PropTypes from 'prop-types';
9
9
  import clsx from 'clsx';
@@ -144,6 +144,7 @@ const useUtilityClasses = ownerState => {
144
144
  * A `TableCell` based component for placing inside `TableFooter` for pagination.
145
145
  */
146
146
  const TablePagination = /*#__PURE__*/React.forwardRef(function TablePagination(inProps, ref) {
147
+ var _slotProps$select;
147
148
  const props = useThemeProps({
148
149
  props: inProps,
149
150
  name: 'MuiTablePagination'
@@ -155,6 +156,7 @@ const TablePagination = /*#__PURE__*/React.forwardRef(function TablePagination(i
155
156
  colSpan: colSpanProp,
156
157
  component = TableCell,
157
158
  count,
159
+ disabled = false,
158
160
  getItemAriaLabel = defaultGetAriaLabel,
159
161
  labelDisplayedRows = defaultLabelDisplayedRows,
160
162
  labelRowsPerPage = 'Rows per page:',
@@ -166,19 +168,21 @@ const TablePagination = /*#__PURE__*/React.forwardRef(function TablePagination(i
166
168
  rowsPerPageOptions = [10, 25, 50, 100],
167
169
  SelectProps = {},
168
170
  showFirstButton = false,
169
- showLastButton = false
171
+ showLastButton = false,
172
+ slotProps
170
173
  } = props,
171
174
  other = _objectWithoutPropertiesLoose(props, _excluded);
172
175
  const ownerState = props;
173
176
  const classes = useUtilityClasses(ownerState);
174
- const MenuItemComponent = SelectProps.native ? 'option' : TablePaginationMenuItem;
177
+ const selectProps = (_slotProps$select = slotProps == null ? void 0 : slotProps.select) != null ? _slotProps$select : SelectProps;
178
+ const MenuItemComponent = selectProps.native ? 'option' : TablePaginationMenuItem;
175
179
  let colSpan;
176
180
  if (component === TableCell || component === 'td') {
177
181
  colSpan = colSpanProp || 1000; // col-span over everything
178
182
  }
179
183
 
180
- const selectId = useId(SelectProps.id);
181
- const labelId = useId(SelectProps.labelId);
184
+ const selectId = useId(selectProps.id);
185
+ const labelId = useId(selectProps.labelId);
182
186
  const getLabelDisplayedRowsTo = () => {
183
187
  if (count === -1) {
184
188
  return (page + 1) * rowsPerPage;
@@ -202,21 +206,22 @@ const TablePagination = /*#__PURE__*/React.forwardRef(function TablePagination(i
202
206
  children: labelRowsPerPage
203
207
  }), rowsPerPageOptions.length > 1 && /*#__PURE__*/_jsx(TablePaginationSelect, _extends({
204
208
  variant: "standard"
205
- }, !SelectProps.variant && {
209
+ }, !selectProps.variant && {
206
210
  input: _InputBase || (_InputBase = /*#__PURE__*/_jsx(InputBase, {}))
207
211
  }, {
208
212
  value: rowsPerPage,
209
213
  onChange: onRowsPerPageChange,
210
214
  id: selectId,
211
215
  labelId: labelId
212
- }, SelectProps, {
213
- classes: _extends({}, SelectProps.classes, {
216
+ }, selectProps, {
217
+ classes: _extends({}, selectProps.classes, {
214
218
  // TODO v5 remove `classes.input`
215
- root: clsx(classes.input, classes.selectRoot, (SelectProps.classes || {}).root),
216
- select: clsx(classes.select, (SelectProps.classes || {}).select),
219
+ root: clsx(classes.input, classes.selectRoot, (selectProps.classes || {}).root),
220
+ select: clsx(classes.select, (selectProps.classes || {}).select),
217
221
  // TODO v5 remove `selectIcon`
218
- icon: clsx(classes.selectIcon, (SelectProps.classes || {}).icon)
222
+ icon: clsx(classes.selectIcon, (selectProps.classes || {}).icon)
219
223
  }),
224
+ disabled: disabled,
220
225
  children: rowsPerPageOptions.map(rowsPerPageOption => /*#__PURE__*/_createElement(MenuItemComponent, _extends({}, !isHostComponent(MenuItemComponent) && {
221
226
  ownerState
222
227
  }, {
@@ -242,7 +247,9 @@ const TablePagination = /*#__PURE__*/React.forwardRef(function TablePagination(i
242
247
  rowsPerPage: rowsPerPage,
243
248
  showFirstButton: showFirstButton,
244
249
  showLastButton: showLastButton,
245
- getItemAriaLabel: getItemAriaLabel
250
+ slotProps: slotProps == null ? void 0 : slotProps.actions,
251
+ getItemAriaLabel: getItemAriaLabel,
252
+ disabled: disabled
246
253
  })]
247
254
  })
248
255
  }));
@@ -260,6 +267,9 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes /* remove-prop
260
267
  ActionsComponent: PropTypes.elementType,
261
268
  /**
262
269
  * Props applied to the back arrow [`IconButton`](/material-ui/api/icon-button/) component.
270
+ *
271
+ * This prop is an alias for `slotProps.actions.previousButton` and will be overriden by it if both are used.
272
+ * @deprecated Use `slotProps.actions.previousButton` instead.
263
273
  */
264
274
  backIconButtonProps: PropTypes.object,
265
275
  /**
@@ -285,6 +295,11 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes /* remove-prop
285
295
  * To enable server side pagination for an unknown number of items, provide -1.
286
296
  */
287
297
  count: integerPropType.isRequired,
298
+ /**
299
+ * If `true`, the component is disabled.
300
+ * @default false
301
+ */
302
+ disabled: PropTypes.bool,
288
303
  /**
289
304
  * Accepts a function which returns a string value that provides a user-friendly name for the current page.
290
305
  * This is important for screen reader users.
@@ -316,6 +331,9 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes /* remove-prop
316
331
  labelRowsPerPage: PropTypes.node,
317
332
  /**
318
333
  * Props applied to the next arrow [`IconButton`](/material-ui/api/icon-button/) element.
334
+ *
335
+ * This prop is an alias for `slotProps.actions.nextButton` and will be overriden by it if both are used.
336
+ * @deprecated Use `slotProps.actions.nextButton` instead.
319
337
  */
320
338
  nextIconButtonProps: PropTypes.object,
321
339
  /**
@@ -367,6 +385,10 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes /* remove-prop
367
385
  })]).isRequired),
368
386
  /**
369
387
  * Props applied to the rows per page [`Select`](/material-ui/api/select/) element.
388
+ *
389
+ * This prop is an alias for `slotProps.select` and will be overriden by it if both are used.
390
+ * @deprecated Use `slotProps.select` instead.
391
+ *
370
392
  * @default {}
371
393
  */
372
394
  SelectProps: PropTypes.object,
@@ -380,6 +402,19 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes /* remove-prop
380
402
  * @default false
381
403
  */
382
404
  showLastButton: PropTypes.bool,
405
+ /**
406
+ * The props used for each slot inside the TablePagination.
407
+ * @default {}
408
+ */
409
+ slotProps: PropTypes.shape({
410
+ actions: PropTypes.shape({
411
+ firstButton: PropTypes.object,
412
+ lastButton: PropTypes.object,
413
+ nextButton: PropTypes.object,
414
+ previousButton: PropTypes.object
415
+ }),
416
+ select: PropTypes.object
417
+ }),
383
418
  /**
384
419
  * The system prop that allows defining system overrides as well as additional CSS styles.
385
420
  */
@@ -2,12 +2,21 @@ import * as React from 'react';
2
2
  import { IconButtonProps } from '../IconButton/IconButton';
3
3
 
4
4
  export interface TablePaginationActionsProps extends React.HTMLAttributes<HTMLDivElement> {
5
+ /**
6
+ * This prop is an alias for `slotProps.previousButton` and will be overriden by it if both are used.
7
+ * @deprecated Use `slotProps.previousButton` instead.
8
+ */
5
9
  backIconButtonProps?: Partial<IconButtonProps>;
6
10
  /**
7
11
  * Override or extend the styles applied to the component.
8
12
  */
9
13
  classes?: {};
10
14
  count: number;
15
+ /**
16
+ * If `true`, the component is disabled.
17
+ * @default false
18
+ */
19
+ disabled?: boolean;
11
20
  /**
12
21
  * Accepts a function which returns a string value that provides a user-friendly name for the current page.
13
22
  * This is important for screen reader users.
@@ -17,12 +26,22 @@ export interface TablePaginationActionsProps extends React.HTMLAttributes<HTMLDi
17
26
  * @returns {string}
18
27
  */
19
28
  getItemAriaLabel: (type: 'first' | 'last' | 'next' | 'previous') => string;
29
+ /**
30
+ * This prop is an alias for `slotProps.nextButton` and will be overriden by it if both are used.
31
+ * @deprecated Use `slotProps.nextButton` instead.
32
+ */
20
33
  nextIconButtonProps?: Partial<IconButtonProps>;
21
34
  onPageChange: (event: React.MouseEvent<HTMLButtonElement> | null, page: number) => void;
22
35
  page: number;
23
36
  rowsPerPage: number;
24
37
  showFirstButton: boolean;
25
38
  showLastButton: boolean;
39
+ slotProps?: {
40
+ firstButton?: Partial<IconButtonProps>;
41
+ lastButton?: Partial<IconButtonProps>;
42
+ nextButton?: Partial<IconButtonProps>;
43
+ previousButton?: Partial<IconButtonProps>;
44
+ };
26
45
  }
27
46
 
28
47
  declare const TablePaginationActions: React.JSXElementConstructor<TablePaginationActionsProps>;
@@ -3,7 +3,7 @@
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
5
  var _LastPageIcon, _FirstPageIcon, _KeyboardArrowRight, _KeyboardArrowLeft, _KeyboardArrowLeft2, _KeyboardArrowRight2, _FirstPageIcon2, _LastPageIcon2;
6
- const _excluded = ["backIconButtonProps", "count", "getItemAriaLabel", "nextIconButtonProps", "onPageChange", "page", "rowsPerPage", "showFirstButton", "showLastButton"];
6
+ const _excluded = ["backIconButtonProps", "count", "disabled", "getItemAriaLabel", "nextIconButtonProps", "onPageChange", "page", "rowsPerPage", "showFirstButton", "showLastButton", "slotProps"];
7
7
  import * as React from 'react';
8
8
  import PropTypes from 'prop-types';
9
9
  import KeyboardArrowLeft from '../internal/svg-icons/KeyboardArrowLeft';
@@ -19,16 +19,19 @@ import FirstPageIcon from '../internal/svg-icons/FirstPage';
19
19
  import { jsx as _jsx } from "react/jsx-runtime";
20
20
  import { jsxs as _jsxs } from "react/jsx-runtime";
21
21
  const TablePaginationActions = /*#__PURE__*/React.forwardRef(function TablePaginationActions(props, ref) {
22
+ var _slotProps$firstButto, _slotProps$previousBu, _slotProps$nextButton, _slotProps$lastButton;
22
23
  const {
23
24
  backIconButtonProps,
24
25
  count,
26
+ disabled = false,
25
27
  getItemAriaLabel,
26
28
  nextIconButtonProps,
27
29
  onPageChange,
28
30
  page,
29
31
  rowsPerPage,
30
32
  showFirstButton,
31
- showLastButton
33
+ showLastButton,
34
+ slotProps
32
35
  } = props,
33
36
  other = _objectWithoutPropertiesLoose(props, _excluded);
34
37
  const theme = useTheme();
@@ -47,35 +50,37 @@ const TablePaginationActions = /*#__PURE__*/React.forwardRef(function TablePagin
47
50
  return /*#__PURE__*/_jsxs("div", _extends({
48
51
  ref: ref
49
52
  }, other, {
50
- children: [showFirstButton && /*#__PURE__*/_jsx(IconButton, {
53
+ children: [showFirstButton && /*#__PURE__*/_jsx(IconButton, _extends({
51
54
  onClick: handleFirstPageButtonClick,
52
- disabled: page === 0,
55
+ disabled: disabled || page === 0,
53
56
  "aria-label": getItemAriaLabel('first', page),
54
- title: getItemAriaLabel('first', page),
57
+ title: getItemAriaLabel('first', page)
58
+ }, (_slotProps$firstButto = slotProps == null ? void 0 : slotProps.firstButton) != null ? _slotProps$firstButto : {}, {
55
59
  children: theme.direction === 'rtl' ? _LastPageIcon || (_LastPageIcon = /*#__PURE__*/_jsx(LastPageIcon, {})) : _FirstPageIcon || (_FirstPageIcon = /*#__PURE__*/_jsx(FirstPageIcon, {}))
56
- }), /*#__PURE__*/_jsx(IconButton, _extends({
60
+ })), /*#__PURE__*/_jsx(IconButton, _extends({
57
61
  onClick: handleBackButtonClick,
58
- disabled: page === 0,
62
+ disabled: disabled || page === 0,
59
63
  color: "inherit",
60
64
  "aria-label": getItemAriaLabel('previous', page),
61
65
  title: getItemAriaLabel('previous', page)
62
- }, backIconButtonProps, {
66
+ }, (_slotProps$previousBu = slotProps == null ? void 0 : slotProps.previousButton) != null ? _slotProps$previousBu : backIconButtonProps, {
63
67
  children: theme.direction === 'rtl' ? _KeyboardArrowRight || (_KeyboardArrowRight = /*#__PURE__*/_jsx(KeyboardArrowRight, {})) : _KeyboardArrowLeft || (_KeyboardArrowLeft = /*#__PURE__*/_jsx(KeyboardArrowLeft, {}))
64
68
  })), /*#__PURE__*/_jsx(IconButton, _extends({
65
69
  onClick: handleNextButtonClick,
66
- disabled: count !== -1 ? page >= Math.ceil(count / rowsPerPage) - 1 : false,
70
+ disabled: disabled || (count !== -1 ? page >= Math.ceil(count / rowsPerPage) - 1 : false),
67
71
  color: "inherit",
68
72
  "aria-label": getItemAriaLabel('next', page),
69
73
  title: getItemAriaLabel('next', page)
70
- }, nextIconButtonProps, {
74
+ }, (_slotProps$nextButton = slotProps == null ? void 0 : slotProps.nextButton) != null ? _slotProps$nextButton : nextIconButtonProps, {
71
75
  children: theme.direction === 'rtl' ? _KeyboardArrowLeft2 || (_KeyboardArrowLeft2 = /*#__PURE__*/_jsx(KeyboardArrowLeft, {})) : _KeyboardArrowRight2 || (_KeyboardArrowRight2 = /*#__PURE__*/_jsx(KeyboardArrowRight, {}))
72
- })), showLastButton && /*#__PURE__*/_jsx(IconButton, {
76
+ })), showLastButton && /*#__PURE__*/_jsx(IconButton, _extends({
73
77
  onClick: handleLastPageButtonClick,
74
- disabled: page >= Math.ceil(count / rowsPerPage) - 1,
78
+ disabled: disabled || page >= Math.ceil(count / rowsPerPage) - 1,
75
79
  "aria-label": getItemAriaLabel('last', page),
76
- title: getItemAriaLabel('last', page),
80
+ title: getItemAriaLabel('last', page)
81
+ }, (_slotProps$lastButton = slotProps == null ? void 0 : slotProps.lastButton) != null ? _slotProps$lastButton : {}, {
77
82
  children: theme.direction === 'rtl' ? _FirstPageIcon2 || (_FirstPageIcon2 = /*#__PURE__*/_jsx(FirstPageIcon, {})) : _LastPageIcon2 || (_LastPageIcon2 = /*#__PURE__*/_jsx(LastPageIcon, {}))
78
- })]
83
+ }))]
79
84
  }));
80
85
  });
81
86
  process.env.NODE_ENV !== "production" ? TablePaginationActions.propTypes = {
@@ -87,6 +92,11 @@ process.env.NODE_ENV !== "production" ? TablePaginationActions.propTypes = {
87
92
  * The total number of rows.
88
93
  */
89
94
  count: PropTypes.number.isRequired,
95
+ /**
96
+ * If `true`, the component is disabled.
97
+ * @default false
98
+ */
99
+ disabled: PropTypes.bool,
90
100
  /**
91
101
  * Accepts a function which returns a string value that provides a user-friendly name for the current page.
92
102
  *
@@ -123,6 +133,16 @@ process.env.NODE_ENV !== "production" ? TablePaginationActions.propTypes = {
123
133
  /**
124
134
  * If `true`, show the last-page button.
125
135
  */
126
- showLastButton: PropTypes.bool.isRequired
136
+ showLastButton: PropTypes.bool.isRequired,
137
+ /**
138
+ * The props used for each slot inside the TablePaginationActions.
139
+ * @default {}
140
+ */
141
+ slotProps: PropTypes.shape({
142
+ firstButton: PropTypes.object,
143
+ lastButton: PropTypes.object,
144
+ nextButton: PropTypes.object,
145
+ previousButton: PropTypes.object
146
+ })
127
147
  } : void 0;
128
148
  export default TablePaginationActions;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.14.17
2
+ * @mui/material v5.14.19
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -40,12 +40,11 @@ var AccordionRoot = styled(Paper, {
40
40
  return [_defineProperty({}, "& .".concat(accordionClasses.region), styles.region), styles.root, !ownerState.square && styles.rounded, !ownerState.disableGutters && styles.gutters];
41
41
  }
42
42
  })(function (_ref2) {
43
- var _ref3;
44
43
  var theme = _ref2.theme;
45
44
  var transition = {
46
45
  duration: theme.transitions.duration.shortest
47
46
  };
48
- return _ref3 = {
47
+ return _defineProperty(_defineProperty({
49
48
  position: 'relative',
50
49
  transition: theme.transitions.create(['margin'], transition),
51
50
  overflowAnchor: 'none',
@@ -66,7 +65,7 @@ var AccordionRoot = styled(Paper, {
66
65
  display: 'none'
67
66
  }
68
67
  }
69
- }, _defineProperty(_ref3, "&.".concat(accordionClasses.expanded), {
68
+ }, "&.".concat(accordionClasses.expanded), {
70
69
  '&:before': {
71
70
  opacity: 0
72
71
  },
@@ -81,9 +80,9 @@ var AccordionRoot = styled(Paper, {
81
80
  display: 'none'
82
81
  }
83
82
  }
84
- }), _defineProperty(_ref3, "&.".concat(accordionClasses.disabled), {
83
+ }), "&.".concat(accordionClasses.disabled), {
85
84
  backgroundColor: (theme.vars || theme).palette.action.disabledBackground
86
- }), _ref3;
85
+ });
87
86
  }, function (_ref4) {
88
87
  var theme = _ref4.theme,
89
88
  ownerState = _ref4.ownerState;
@@ -34,24 +34,23 @@ var AccordionSummaryRoot = styled(ButtonBase, {
34
34
  return styles.root;
35
35
  }
36
36
  })(function (_ref) {
37
- var _extends2;
38
37
  var theme = _ref.theme,
39
38
  ownerState = _ref.ownerState;
40
39
  var transition = {
41
40
  duration: theme.transitions.duration.shortest
42
41
  };
43
- return _extends((_extends2 = {
42
+ return _extends(_defineProperty(_defineProperty(_defineProperty({
44
43
  display: 'flex',
45
44
  minHeight: 48,
46
45
  padding: theme.spacing(0, 2),
47
46
  transition: theme.transitions.create(['min-height', 'background-color'], transition)
48
- }, _defineProperty(_extends2, "&.".concat(accordionSummaryClasses.focusVisible), {
47
+ }, "&.".concat(accordionSummaryClasses.focusVisible), {
49
48
  backgroundColor: (theme.vars || theme).palette.action.focus
50
- }), _defineProperty(_extends2, "&.".concat(accordionSummaryClasses.disabled), {
49
+ }), "&.".concat(accordionSummaryClasses.disabled), {
51
50
  opacity: (theme.vars || theme).palette.action.disabledOpacity
52
- }), _defineProperty(_extends2, "&:hover:not(.".concat(accordionSummaryClasses.disabled, ")"), {
51
+ }), "&:hover:not(.".concat(accordionSummaryClasses.disabled, ")"), {
53
52
  cursor: 'pointer'
54
- }), _extends2), !ownerState.disableGutters && _defineProperty({}, "&.".concat(accordionSummaryClasses.expanded), {
53
+ }), !ownerState.disableGutters && _defineProperty({}, "&.".concat(accordionSummaryClasses.expanded), {
55
54
  minHeight: 64
56
55
  }));
57
56
  });
@@ -71,47 +71,47 @@ var AutocompleteRoot = styled('div', {
71
71
  return [_defineProperty({}, "& .".concat(autocompleteClasses.tag), styles.tag), _defineProperty({}, "& .".concat(autocompleteClasses.tag), styles["tagSize".concat(capitalize(size))]), _defineProperty({}, "& .".concat(autocompleteClasses.inputRoot), styles.inputRoot), _defineProperty({}, "& .".concat(autocompleteClasses.input), styles.input), _defineProperty({}, "& .".concat(autocompleteClasses.input), inputFocused && styles.inputFocused), styles.root, fullWidth && styles.fullWidth, hasPopupIcon && styles.hasPopupIcon, hasClearIcon && styles.hasClearIcon];
72
72
  }
73
73
  })(function (_ref6) {
74
- var _extends2, _$concat, _$concat2, _$concat3, _extends3;
74
+ var _extends3;
75
75
  var ownerState = _ref6.ownerState;
76
- return _extends((_extends2 = {}, _defineProperty(_extends2, "&.".concat(autocompleteClasses.focused, " .").concat(autocompleteClasses.clearIndicator), {
76
+ return _extends(_defineProperty(_defineProperty({}, "&.".concat(autocompleteClasses.focused, " .").concat(autocompleteClasses.clearIndicator), {
77
77
  visibility: 'visible'
78
- }), _defineProperty(_extends2, '@media (pointer: fine)', _defineProperty({}, "&:hover .".concat(autocompleteClasses.clearIndicator), {
78
+ }), '@media (pointer: fine)', _defineProperty({}, "&:hover .".concat(autocompleteClasses.clearIndicator), {
79
79
  visibility: 'visible'
80
- })), _extends2), ownerState.fullWidth && {
80
+ })), ownerState.fullWidth && {
81
81
  width: '100%'
82
- }, (_extends3 = {}, _defineProperty(_extends3, "& .".concat(autocompleteClasses.tag), _extends({
82
+ }, (_extends3 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extends3, "& .".concat(autocompleteClasses.tag), _extends({
83
83
  margin: 3,
84
84
  maxWidth: 'calc(100% - 6px)'
85
85
  }, ownerState.size === 'small' && {
86
86
  margin: 2,
87
87
  maxWidth: 'calc(100% - 4px)'
88
- })), _defineProperty(_extends3, "& .".concat(autocompleteClasses.inputRoot), (_$concat = {
88
+ })), "& .".concat(autocompleteClasses.inputRoot), _defineProperty(_defineProperty(_defineProperty({
89
89
  flexWrap: 'wrap'
90
- }, _defineProperty(_$concat, ".".concat(autocompleteClasses.hasPopupIcon, "&, .").concat(autocompleteClasses.hasClearIcon, "&"), {
90
+ }, ".".concat(autocompleteClasses.hasPopupIcon, "&, .").concat(autocompleteClasses.hasClearIcon, "&"), {
91
91
  paddingRight: 26 + 4
92
- }), _defineProperty(_$concat, ".".concat(autocompleteClasses.hasPopupIcon, ".").concat(autocompleteClasses.hasClearIcon, "&"), {
92
+ }), ".".concat(autocompleteClasses.hasPopupIcon, ".").concat(autocompleteClasses.hasClearIcon, "&"), {
93
93
  paddingRight: 52 + 4
94
- }), _defineProperty(_$concat, "& .".concat(autocompleteClasses.input), {
94
+ }), "& .".concat(autocompleteClasses.input), {
95
95
  width: 0,
96
96
  minWidth: 30
97
- }), _$concat)), _defineProperty(_extends3, "& .".concat(inputClasses.root), {
97
+ })), "& .".concat(inputClasses.root), {
98
98
  paddingBottom: 1,
99
99
  '& .MuiInput-input': {
100
100
  padding: '4px 4px 4px 0px'
101
101
  }
102
- }), _defineProperty(_extends3, "& .".concat(inputClasses.root, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({}, "& .".concat(inputClasses.input), {
102
+ }), "& .".concat(inputClasses.root, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({}, "& .".concat(inputClasses.input), {
103
103
  padding: '2px 4px 3px 0'
104
- })), _defineProperty(_extends3, "& .".concat(outlinedInputClasses.root), (_$concat2 = {
104
+ })), "& .".concat(outlinedInputClasses.root), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
105
105
  padding: 9
106
- }, _defineProperty(_$concat2, ".".concat(autocompleteClasses.hasPopupIcon, "&, .").concat(autocompleteClasses.hasClearIcon, "&"), {
106
+ }, ".".concat(autocompleteClasses.hasPopupIcon, "&, .").concat(autocompleteClasses.hasClearIcon, "&"), {
107
107
  paddingRight: 26 + 4 + 9
108
- }), _defineProperty(_$concat2, ".".concat(autocompleteClasses.hasPopupIcon, ".").concat(autocompleteClasses.hasClearIcon, "&"), {
108
+ }), ".".concat(autocompleteClasses.hasPopupIcon, ".").concat(autocompleteClasses.hasClearIcon, "&"), {
109
109
  paddingRight: 52 + 4 + 9
110
- }), _defineProperty(_$concat2, "& .".concat(autocompleteClasses.input), {
110
+ }), "& .".concat(autocompleteClasses.input), {
111
111
  padding: '7.5px 4px 7.5px 5px'
112
- }), _defineProperty(_$concat2, "& .".concat(autocompleteClasses.endAdornment), {
112
+ }), "& .".concat(autocompleteClasses.endAdornment), {
113
113
  right: 9
114
- }), _$concat2)), _defineProperty(_extends3, "& .".concat(outlinedInputClasses.root, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({
114
+ })), "& .".concat(outlinedInputClasses.root, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({
115
115
  // Don't specify paddingRight, as it overrides the default value set when there is only
116
116
  // one of the popup or clear icon as the specificity is equal so the latter one wins
117
117
  paddingTop: 6,
@@ -119,39 +119,39 @@ var AutocompleteRoot = styled('div', {
119
119
  paddingLeft: 6
120
120
  }, "& .".concat(autocompleteClasses.input), {
121
121
  padding: '2.5px 4px 2.5px 8px'
122
- })), _defineProperty(_extends3, "& .".concat(filledInputClasses.root), (_$concat3 = {
122
+ })), "& .".concat(filledInputClasses.root), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
123
123
  paddingTop: 19,
124
124
  paddingLeft: 8
125
- }, _defineProperty(_$concat3, ".".concat(autocompleteClasses.hasPopupIcon, "&, .").concat(autocompleteClasses.hasClearIcon, "&"), {
125
+ }, ".".concat(autocompleteClasses.hasPopupIcon, "&, .").concat(autocompleteClasses.hasClearIcon, "&"), {
126
126
  paddingRight: 26 + 4 + 9
127
- }), _defineProperty(_$concat3, ".".concat(autocompleteClasses.hasPopupIcon, ".").concat(autocompleteClasses.hasClearIcon, "&"), {
127
+ }), ".".concat(autocompleteClasses.hasPopupIcon, ".").concat(autocompleteClasses.hasClearIcon, "&"), {
128
128
  paddingRight: 52 + 4 + 9
129
- }), _defineProperty(_$concat3, "& .".concat(filledInputClasses.input), {
129
+ }), "& .".concat(filledInputClasses.input), {
130
130
  padding: '7px 4px'
131
- }), _defineProperty(_$concat3, "& .".concat(autocompleteClasses.endAdornment), {
131
+ }), "& .".concat(autocompleteClasses.endAdornment), {
132
132
  right: 9
133
- }), _$concat3)), _defineProperty(_extends3, "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({
133
+ })), "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({
134
134
  paddingBottom: 1
135
135
  }, "& .".concat(filledInputClasses.input), {
136
136
  padding: '2.5px 4px'
137
- })), _defineProperty(_extends3, "& .".concat(inputBaseClasses.hiddenLabel), {
137
+ })), "& .".concat(inputBaseClasses.hiddenLabel), {
138
138
  paddingTop: 8
139
- }), _defineProperty(_extends3, "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.hiddenLabel), _defineProperty({
139
+ }), "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.hiddenLabel), _defineProperty({
140
140
  paddingTop: 0,
141
141
  paddingBottom: 0
142
142
  }, "& .".concat(autocompleteClasses.input), {
143
143
  paddingTop: 16,
144
144
  paddingBottom: 17
145
- })), _defineProperty(_extends3, "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.hiddenLabel, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({}, "& .".concat(autocompleteClasses.input), {
145
+ })), _defineProperty(_defineProperty(_extends3, "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.hiddenLabel, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({}, "& .".concat(autocompleteClasses.input), {
146
146
  paddingTop: 8,
147
147
  paddingBottom: 9
148
- })), _defineProperty(_extends3, "& .".concat(autocompleteClasses.input), _extends({
148
+ })), "& .".concat(autocompleteClasses.input), _extends({
149
149
  flexGrow: 1,
150
150
  textOverflow: 'ellipsis',
151
151
  opacity: 0
152
152
  }, ownerState.inputFocused && {
153
153
  opacity: 1
154
- })), _extends3));
154
+ }))));
155
155
  });
156
156
  var AutocompleteEndAdornment = styled('div', {
157
157
  name: 'MuiAutocomplete',
@@ -254,7 +254,6 @@ var AutocompleteListbox = styled('div', {
254
254
  return styles.listbox;
255
255
  }
256
256
  })(function (_ref14) {
257
- var _ariaSelectedTru, _$concat4;
258
257
  var theme = _ref14.theme;
259
258
  return _defineProperty({
260
259
  listStyle: 'none',
@@ -263,7 +262,7 @@ var AutocompleteListbox = styled('div', {
263
262
  maxHeight: '40vh',
264
263
  overflow: 'auto',
265
264
  position: 'relative'
266
- }, "& .".concat(autocompleteClasses.option), (_$concat4 = {
265
+ }, "& .".concat(autocompleteClasses.option), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
267
266
  minHeight: 48,
268
267
  display: 'flex',
269
268
  overflow: 'hidden',
@@ -277,30 +276,30 @@ var AutocompleteListbox = styled('div', {
277
276
  paddingBottom: 6,
278
277
  paddingLeft: 16,
279
278
  paddingRight: 16
280
- }, _defineProperty(_$concat4, theme.breakpoints.up('sm'), {
279
+ }, theme.breakpoints.up('sm'), {
281
280
  minHeight: 'auto'
282
- }), _defineProperty(_$concat4, "&.".concat(autocompleteClasses.focused), {
281
+ }), "&.".concat(autocompleteClasses.focused), {
283
282
  backgroundColor: (theme.vars || theme).palette.action.hover,
284
283
  // Reset on touch devices, it doesn't add specificity
285
284
  '@media (hover: none)': {
286
285
  backgroundColor: 'transparent'
287
286
  }
288
- }), _defineProperty(_$concat4, '&[aria-disabled="true"]', {
287
+ }), '&[aria-disabled="true"]', {
289
288
  opacity: (theme.vars || theme).palette.action.disabledOpacity,
290
289
  pointerEvents: 'none'
291
- }), _defineProperty(_$concat4, "&.".concat(autocompleteClasses.focusVisible), {
290
+ }), "&.".concat(autocompleteClasses.focusVisible), {
292
291
  backgroundColor: (theme.vars || theme).palette.action.focus
293
- }), _defineProperty(_$concat4, '&[aria-selected="true"]', (_ariaSelectedTru = {
292
+ }), '&[aria-selected="true"]', _defineProperty(_defineProperty({
294
293
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
295
- }, _defineProperty(_ariaSelectedTru, "&.".concat(autocompleteClasses.focused), {
294
+ }, "&.".concat(autocompleteClasses.focused), {
296
295
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
297
296
  // Reset on touch devices, it doesn't add specificity
298
297
  '@media (hover: none)': {
299
298
  backgroundColor: (theme.vars || theme).palette.action.selected
300
299
  }
301
- }), _defineProperty(_ariaSelectedTru, "&.".concat(autocompleteClasses.focusVisible), {
300
+ }), "&.".concat(autocompleteClasses.focusVisible), {
302
301
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
303
- }), _ariaSelectedTru)), _$concat4));
302
+ })));
304
303
  });
305
304
  var AutocompleteGroupLabel = styled(ListSubheader, {
306
305
  name: 'MuiAutocomplete',
@@ -387,6 +386,7 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
387
386
  return "+".concat(more);
388
387
  } : _props$getLimitTagsTe,
389
388
  getOptionDisabled = props.getOptionDisabled,
389
+ getOptionKey = props.getOptionKey,
390
390
  getOptionLabelProp = props.getOptionLabel,
391
391
  isOptionEqualToValue = props.isOptionEqualToValue,
392
392
  groupBy = props.groupBy,
@@ -439,7 +439,7 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
439
439
  _props$slotProps = props.slotProps,
440
440
  slotProps = _props$slotProps === void 0 ? {} : _props$slotProps,
441
441
  valueProp = props.value,
442
- other = _objectWithoutProperties(props, ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"]);
442
+ other = _objectWithoutProperties(props, ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionKey", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"]);
443
443
  /* eslint-enable @typescript-eslint/no-unused-vars */
444
444
  var _useAutocomplete = useAutocomplete(_extends({}, props, {
445
445
  componentName: 'Autocomplete'
@@ -540,9 +540,11 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
540
540
  };
541
541
  var renderGroup = renderGroupProp || defaultRenderGroup;
542
542
  var defaultRenderOption = function defaultRenderOption(props2, option) {
543
- return /*#__PURE__*/_jsx("li", _extends({}, props2, {
543
+ var key = props2.key,
544
+ otherProps = _objectWithoutProperties(props2, ["key"]);
545
+ return /*#__PURE__*/_jsx("li", _extends({}, otherProps, {
544
546
  children: getOptionLabel(option)
545
- }));
547
+ }), key);
546
548
  };
547
549
  var renderOption = renderOptionProp || defaultRenderOption;
548
550
  var renderListOption = function renderListOption(option, index) {
@@ -839,6 +841,14 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
839
841
  * @returns {boolean}
840
842
  */
841
843
  getOptionDisabled: PropTypes.func,
844
+ /**
845
+ * Used to determine the key for a given option.
846
+ * This can be useful when the labels of options are not unique (since labels are used as keys by default).
847
+ *
848
+ * @param {Value} option The option to get the key for.
849
+ * @returns {string | number}
850
+ */
851
+ getOptionKey: PropTypes.func,
842
852
  /**
843
853
  * Used to determine the string value for a given option.
844
854
  * It's used to fill the input (and the list box options if `renderOption` is not provided).
@@ -961,6 +971,10 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
961
971
  * @param {string} reason Can be: `"input"` (user input), `"reset"` (programmatic change), `"clear"`.
962
972
  */
963
973
  onInputChange: PropTypes.func,
974
+ /**
975
+ * @ignore
976
+ */
977
+ onKeyDown: PropTypes.func,
964
978
  /**
965
979
  * Callback fired when the popup requests to be opened.
966
980
  * Use in controlled mode (see open).
@@ -34,16 +34,15 @@ var AvatarGroupRoot = styled('div', {
34
34
  return _extends(_defineProperty({}, "& .".concat(avatarGroupClasses.avatar), styles.avatar), styles.root);
35
35
  }
36
36
  })(function (_ref) {
37
- var _ref2;
38
37
  var theme = _ref.theme;
39
- return _ref2 = {}, _defineProperty(_ref2, "& .".concat(avatarClasses.root), {
38
+ return _defineProperty(_defineProperty(_defineProperty({}, "& .".concat(avatarClasses.root), {
40
39
  border: "2px solid ".concat((theme.vars || theme).palette.background.default),
41
40
  boxSizing: 'content-box',
42
41
  marginLeft: -8,
43
42
  '&:last-child': {
44
43
  marginLeft: 0
45
44
  }
46
- }), _defineProperty(_ref2, "display", 'flex'), _defineProperty(_ref2, "flexDirection", 'row-reverse'), _ref2;
45
+ }), "display", 'flex'), "flexDirection", 'row-reverse');
47
46
  });
48
47
  var AvatarGroupAvatar = styled(Avatar, {
49
48
  name: 'MuiAvatarGroup',
File without changes