@mui/lab 6.0.0-alpha.8 → 6.0.0-beta.0

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 (92) hide show
  1. package/Alert/Alert.js +7 -4
  2. package/AlertTitle/AlertTitle.js +7 -4
  3. package/Autocomplete/Autocomplete.js +7 -4
  4. package/AvatarGroup/AvatarGroup.js +7 -4
  5. package/CHANGELOG.md +407 -3
  6. package/CalendarPicker/CalendarPicker.d.ts +1 -1
  7. package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +1 -1
  8. package/ClockPicker/ClockPicker.d.ts +1 -1
  9. package/DatePicker/DatePicker.d.ts +1 -1
  10. package/DateRangePicker/DateRangePicker.d.ts +1 -1
  11. package/DateRangePickerDay/DateRangePickerDay.d.ts +1 -1
  12. package/DateTimePicker/DateTimePicker.d.ts +1 -1
  13. package/DesktopDatePicker/DesktopDatePicker.d.ts +1 -1
  14. package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +1 -1
  15. package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +1 -1
  16. package/DesktopTimePicker/DesktopTimePicker.d.ts +1 -1
  17. package/LoadingButton/LoadingButton.d.ts +4 -4
  18. package/LoadingButton/LoadingButton.js +8 -4
  19. package/LocalizationProvider/LocalizationProvider.d.ts +1 -1
  20. package/Masonry/Masonry.d.ts +2 -2
  21. package/MobileDatePicker/MobileDatePicker.d.ts +1 -1
  22. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +1 -1
  23. package/MobileDateTimePicker/MobileDateTimePicker.d.ts +1 -1
  24. package/MobileTimePicker/MobileTimePicker.d.ts +1 -1
  25. package/MonthPicker/MonthPicker.d.ts +1 -1
  26. package/Pagination/Pagination.js +7 -4
  27. package/PaginationItem/PaginationItem.js +7 -4
  28. package/PickersDay/PickersDay.d.ts +1 -1
  29. package/Rating/Rating.js +7 -4
  30. package/Skeleton/Skeleton.js +7 -4
  31. package/SpeedDial/SpeedDial.js +7 -4
  32. package/SpeedDialAction/SpeedDialAction.js +7 -4
  33. package/SpeedDialIcon/SpeedDialIcon.js +7 -4
  34. package/StaticDatePicker/StaticDatePicker.d.ts +1 -1
  35. package/StaticDateRangePicker/StaticDateRangePicker.d.ts +1 -1
  36. package/StaticDateTimePicker/StaticDateTimePicker.d.ts +1 -1
  37. package/StaticTimePicker/StaticTimePicker.d.ts +1 -1
  38. package/TabContext/TabContext.d.ts +3 -3
  39. package/TabList/TabList.d.ts +3 -3
  40. package/TabPanel/TabPanel.d.ts +3 -3
  41. package/TimePicker/TimePicker.d.ts +1 -1
  42. package/Timeline/Timeline.d.ts +2 -2
  43. package/Timeline/Timeline.js +2 -2
  44. package/TimelineConnector/TimelineConnector.d.ts +3 -3
  45. package/TimelineContent/TimelineContent.d.ts +4 -4
  46. package/TimelineDot/TimelineDot.d.ts +3 -3
  47. package/TimelineItem/TimelineItem.d.ts +3 -3
  48. package/TimelineOppositeContent/TimelineOppositeContent.d.ts +6 -4
  49. package/TimelineSeparator/TimelineSeparator.d.ts +3 -3
  50. package/ToggleButton/ToggleButton.js +7 -4
  51. package/ToggleButtonGroup/ToggleButtonGroup.js +7 -4
  52. package/TreeItem/TreeItem.d.ts +1 -1
  53. package/TreeView/TreeView.d.ts +1 -1
  54. package/YearPicker/YearPicker.d.ts +1 -1
  55. package/index.js +1 -1
  56. package/modern/Alert/Alert.js +7 -4
  57. package/modern/AlertTitle/AlertTitle.js +7 -4
  58. package/modern/Autocomplete/Autocomplete.js +7 -4
  59. package/modern/AvatarGroup/AvatarGroup.js +7 -4
  60. package/modern/LoadingButton/LoadingButton.js +8 -4
  61. package/modern/Pagination/Pagination.js +7 -4
  62. package/modern/PaginationItem/PaginationItem.js +7 -4
  63. package/modern/Rating/Rating.js +7 -4
  64. package/modern/Skeleton/Skeleton.js +7 -4
  65. package/modern/SpeedDial/SpeedDial.js +7 -4
  66. package/modern/SpeedDialAction/SpeedDialAction.js +7 -4
  67. package/modern/SpeedDialIcon/SpeedDialIcon.js +7 -4
  68. package/modern/Timeline/Timeline.js +2 -2
  69. package/modern/ToggleButton/ToggleButton.js +7 -4
  70. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +7 -4
  71. package/modern/index.js +1 -1
  72. package/modern/zero-styled/index.js +2 -7
  73. package/node/Alert/Alert.js +7 -4
  74. package/node/AlertTitle/AlertTitle.js +7 -4
  75. package/node/Autocomplete/Autocomplete.js +7 -4
  76. package/node/AvatarGroup/AvatarGroup.js +7 -4
  77. package/node/LoadingButton/LoadingButton.js +7 -3
  78. package/node/Pagination/Pagination.js +7 -4
  79. package/node/PaginationItem/PaginationItem.js +7 -4
  80. package/node/Rating/Rating.js +7 -4
  81. package/node/Skeleton/Skeleton.js +7 -4
  82. package/node/SpeedDial/SpeedDial.js +7 -4
  83. package/node/SpeedDialAction/SpeedDialAction.js +7 -4
  84. package/node/SpeedDialIcon/SpeedDialIcon.js +7 -4
  85. package/node/Timeline/Timeline.js +2 -2
  86. package/node/ToggleButton/ToggleButton.js +7 -4
  87. package/node/ToggleButtonGroup/ToggleButtonGroup.js +7 -4
  88. package/node/index.js +1 -1
  89. package/node/zero-styled/index.js +1 -6
  90. package/package.json +10 -6
  91. package/zero-styled/index.d.ts +0 -2
  92. package/zero-styled/index.js +2 -7
@@ -4,15 +4,18 @@ import * as React from 'react';
4
4
  import Autocomplete from '@mui/material/Autocomplete';
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  let warnedOnce = false;
7
+ const warn = () => {
8
+ if (!warnedOnce) {
9
+ console.warn(['MUI: The Autocomplete component was moved from the lab to the core.', '', "You should use `import { Autocomplete } from '@mui/material'`", "or `import Autocomplete from '@mui/material/Autocomplete'`"].join('\n'));
10
+ warnedOnce = true;
11
+ }
12
+ };
7
13
 
8
14
  /**
9
15
  * @ignore - do not document.
10
16
  */
11
17
  export default /*#__PURE__*/React.forwardRef(function DeprecatedAutocomplete(props, ref) {
12
- if (!warnedOnce) {
13
- console.warn(['MUI: The Autocomplete component was moved from the lab to the core.', '', "You should use `import { Autocomplete } from '@mui/material'`", "or `import Autocomplete from '@mui/material/Autocomplete'`"].join('\n'));
14
- warnedOnce = true;
15
- }
18
+ warn();
16
19
  return /*#__PURE__*/_jsx(Autocomplete, {
17
20
  ref: ref,
18
21
  ...props
@@ -4,15 +4,18 @@ import * as React from 'react';
4
4
  import AvatarGroup from '@mui/material/AvatarGroup';
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  let warnedOnce = false;
7
+ const warn = () => {
8
+ if (!warnedOnce) {
9
+ console.warn(['MUI: The AvatarGroup component was moved from the lab to the core.', '', "You should use `import { AvatarGroup } from '@mui/material'`", "or `import AvatarGroup from '@mui/material/AvatarGroup'`"].join('\n'));
10
+ warnedOnce = true;
11
+ }
12
+ };
7
13
 
8
14
  /**
9
15
  * @ignore - do not document.
10
16
  */
11
17
  export default /*#__PURE__*/React.forwardRef(function DeprecatedAvatarGroup(props, ref) {
12
- if (!warnedOnce) {
13
- console.warn(['MUI: The AvatarGroup component was moved from the lab to the core.', '', "You should use `import { AvatarGroup } from '@mui/material'`", "or `import AvatarGroup from '@mui/material/AvatarGroup'`"].join('\n'));
14
- warnedOnce = true;
15
- }
18
+ warn();
16
19
  return /*#__PURE__*/_jsx(AvatarGroup, {
17
20
  ref: ref,
18
21
  ...props
@@ -5,14 +5,14 @@ import PropTypes from 'prop-types';
5
5
  import { chainPropTypes } from '@mui/utils';
6
6
  import { capitalize, unstable_useId as useId } from '@mui/material/utils';
7
7
  import { unstable_composeClasses as composeClasses } from '@mui/base';
8
+ import { useDefaultProps } from '@mui/material/DefaultPropsProvider';
8
9
  import Button from '@mui/material/Button';
9
10
  import { ButtonGroupContext } from '@mui/material/ButtonGroup';
10
11
  import CircularProgress from '@mui/material/CircularProgress';
11
12
  import resolveProps from '@mui/utils/resolveProps';
12
- import { styled, createUseThemeProps } from '../zero-styled';
13
+ import { styled } from '../zero-styled';
13
14
  import loadingButtonClasses, { getLoadingButtonUtilityClass } from './loadingButtonClasses';
14
15
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
- const useThemeProps = createUseThemeProps('MuiLoadingButton');
16
16
  const useUtilityClasses = ownerState => {
17
17
  const {
18
18
  loading,
@@ -188,7 +188,7 @@ const LoadingButtonLoadingIndicator = styled('span', {
188
188
  const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps, ref) {
189
189
  const contextProps = React.useContext(ButtonGroupContext);
190
190
  const resolvedProps = resolveProps(contextProps, inProps);
191
- const props = useThemeProps({
191
+ const props = useDefaultProps({
192
192
  props: resolvedProps,
193
193
  name: 'MuiLoadingButton'
194
194
  });
@@ -230,7 +230,11 @@ const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inPro
230
230
  variant: variant,
231
231
  classes: classes,
232
232
  ownerState: ownerState,
233
- children: [ownerState.loadingPosition === 'end' ? children : loadingButtonLoadingIndicator, ownerState.loadingPosition === 'end' ? loadingButtonLoadingIndicator : children]
233
+ children: [ownerState.loadingPosition === 'end' ? /*#__PURE__*/_jsx("span", {
234
+ children: children
235
+ }) : loadingButtonLoadingIndicator, ownerState.loadingPosition === 'end' ? loadingButtonLoadingIndicator : /*#__PURE__*/_jsx("span", {
236
+ children: children
237
+ })]
234
238
  });
235
239
  });
236
240
  process.env.NODE_ENV !== "production" ? LoadingButton.propTypes /* remove-proptypes */ = {
@@ -4,15 +4,18 @@ import * as React from 'react';
4
4
  import Pagination from '@mui/material/Pagination';
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  let warnedOnce = false;
7
+ const warn = () => {
8
+ if (!warnedOnce) {
9
+ console.warn(['MUI: The Pagination component was moved from the lab to the core.', '', "You should use `import { Pagination } from '@mui/material'`", "or `import Pagination from '@mui/material/Pagination'`"].join('\n'));
10
+ warnedOnce = true;
11
+ }
12
+ };
7
13
 
8
14
  /**
9
15
  * @ignore - do not document.
10
16
  */
11
17
  export default /*#__PURE__*/React.forwardRef(function DeprecatedPagination(props, ref) {
12
- if (!warnedOnce) {
13
- console.warn(['MUI: The Pagination component was moved from the lab to the core.', '', "You should use `import { Pagination } from '@mui/material'`", "or `import Pagination from '@mui/material/Pagination'`"].join('\n'));
14
- warnedOnce = true;
15
- }
18
+ warn();
16
19
  return /*#__PURE__*/_jsx(Pagination, {
17
20
  ref: ref,
18
21
  ...props
@@ -4,15 +4,18 @@ import * as React from 'react';
4
4
  import PaginationItem from '@mui/material/PaginationItem';
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  let warnedOnce = false;
7
+ const warn = () => {
8
+ if (!warnedOnce) {
9
+ console.warn(['MUI: The PaginationItem component was moved from the lab to the core.', '', "You should use `import { PaginationItem } from '@mui/material'`", "or `import PaginationItem from '@mui/material/PaginationItem'`"].join('\n'));
10
+ warnedOnce = true;
11
+ }
12
+ };
7
13
 
8
14
  /**
9
15
  * @ignore - do not document.
10
16
  */
11
17
  export default /*#__PURE__*/React.forwardRef(function DeprecatedPaginationItem(props, ref) {
12
- if (!warnedOnce) {
13
- console.warn(['MUI: The PaginationItem component was moved from the lab to the core.', '', "You should use `import { PaginationItem } from '@mui/material'`", "or `import PaginationItem from '@mui/material/PaginationItem'`"].join('\n'));
14
- warnedOnce = true;
15
- }
18
+ warn();
16
19
  return /*#__PURE__*/_jsx(PaginationItem, {
17
20
  ref: ref,
18
21
  ...props
@@ -4,15 +4,18 @@ import * as React from 'react';
4
4
  import Rating from '@mui/material/Rating';
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  let warnedOnce = false;
7
+ const warn = () => {
8
+ if (!warnedOnce) {
9
+ console.warn(['MUI: The Rating component was moved from the lab to the core.', '', "You should use `import { Rating } from '@mui/material'`", "or `import Rating from '@mui/material/Rating'`"].join('\n'));
10
+ warnedOnce = true;
11
+ }
12
+ };
7
13
 
8
14
  /**
9
15
  * @ignore - do not document.
10
16
  */
11
17
  export default /*#__PURE__*/React.forwardRef(function DeprecatedRating(props, ref) {
12
- if (!warnedOnce) {
13
- console.warn(['MUI: The Rating component was moved from the lab to the core.', '', "You should use `import { Rating } from '@mui/material'`", "or `import Rating from '@mui/material/Rating'`"].join('\n'));
14
- warnedOnce = true;
15
- }
18
+ warn();
16
19
  return /*#__PURE__*/_jsx(Rating, {
17
20
  ref: ref,
18
21
  ...props
@@ -4,15 +4,18 @@ import * as React from 'react';
4
4
  import Skeleton from '@mui/material/Skeleton';
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  let warnedOnce = false;
7
+ const warn = () => {
8
+ if (!warnedOnce) {
9
+ console.warn(['MUI: The Skeleton component was moved from the lab to the core.', '', "You should use `import { Skeleton } from '@mui/material'`", "or `import Skeleton from '@mui/material/Skeleton'`"].join('\n'));
10
+ warnedOnce = true;
11
+ }
12
+ };
7
13
 
8
14
  /**
9
15
  * @ignore - do not document.
10
16
  */
11
17
  export default /*#__PURE__*/React.forwardRef(function DeprecatedSkeleton(props, ref) {
12
- if (!warnedOnce) {
13
- console.warn(['MUI: The Skeleton component was moved from the lab to the core.', '', "You should use `import { Skeleton } from '@mui/material'`", "or `import Skeleton from '@mui/material/Skeleton'`"].join('\n'));
14
- warnedOnce = true;
15
- }
18
+ warn();
16
19
  return /*#__PURE__*/_jsx(Skeleton, {
17
20
  ref: ref,
18
21
  ...props
@@ -4,15 +4,18 @@ import * as React from 'react';
4
4
  import SpeedDial from '@mui/material/SpeedDial';
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  let warnedOnce = false;
7
+ const warn = () => {
8
+ if (!warnedOnce) {
9
+ console.warn(['MUI: The SpeedDial component was moved from the lab to the core.', '', "You should use `import { SpeedDial } from '@mui/material'`", "or `import SpeedDial from '@mui/material/SpeedDial'`"].join('\n'));
10
+ warnedOnce = true;
11
+ }
12
+ };
7
13
 
8
14
  /**
9
15
  * @ignore - do not document.
10
16
  */
11
17
  export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDial(props, ref) {
12
- if (!warnedOnce) {
13
- console.warn(['MUI: The SpeedDial component was moved from the lab to the core.', '', "You should use `import { SpeedDial } from '@mui/material'`", "or `import SpeedDial from '@mui/material/SpeedDial'`"].join('\n'));
14
- warnedOnce = true;
15
- }
18
+ warn();
16
19
  return /*#__PURE__*/_jsx(SpeedDial, {
17
20
  ref: ref,
18
21
  ...props
@@ -4,15 +4,18 @@ import * as React from 'react';
4
4
  import SpeedDialAction from '@mui/material/SpeedDialAction';
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  let warnedOnce = false;
7
+ const warn = () => {
8
+ if (!warnedOnce) {
9
+ console.warn(['MUI: The SpeedDialAction component was moved from the lab to the core.', '', "You should use `import { SpeedDialAction } from '@mui/material'`", "or `import SpeedDialAction from '@mui/material/SpeedDialAction'`"].join('\n'));
10
+ warnedOnce = true;
11
+ }
12
+ };
7
13
 
8
14
  /**
9
15
  * @ignore - do not document.
10
16
  */
11
17
  export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialAction(props, ref) {
12
- if (!warnedOnce) {
13
- console.warn(['MUI: The SpeedDialAction component was moved from the lab to the core.', '', "You should use `import { SpeedDialAction } from '@mui/material'`", "or `import SpeedDialAction from '@mui/material/SpeedDialAction'`"].join('\n'));
14
- warnedOnce = true;
15
- }
18
+ warn();
16
19
  return /*#__PURE__*/_jsx(SpeedDialAction, {
17
20
  ref: ref,
18
21
  ...props
@@ -4,15 +4,18 @@ import * as React from 'react';
4
4
  import SpeedDialIcon from '@mui/material/SpeedDialIcon';
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  let warnedOnce = false;
7
+ const warn = () => {
8
+ if (!warnedOnce) {
9
+ console.warn(['MUI: The SpeedDialIcon component was moved from the lab to the core.', '', "You should use `import { SpeedDialIcon } from '@mui/material'`", "or `import SpeedDialIcon from '@mui/material/SpeedDialIcon'`"].join('\n'));
10
+ warnedOnce = true;
11
+ }
12
+ };
7
13
 
8
14
  /**
9
15
  * @ignore - do not document.
10
16
  */
11
17
  export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialIcon(props, ref) {
12
- if (!warnedOnce) {
13
- console.warn(['MUI: The SpeedDialIcon component was moved from the lab to the core.', '', "You should use `import { SpeedDialIcon } from '@mui/material'`", "or `import SpeedDialIcon from '@mui/material/SpeedDialIcon'`"].join('\n'));
14
- warnedOnce = true;
15
- }
18
+ warn();
16
19
  return /*#__PURE__*/_jsx(SpeedDialIcon, {
17
20
  ref: ref,
18
21
  ...props
@@ -39,11 +39,11 @@ const TimelineRoot = styled('ul', {
39
39
  *
40
40
  * Demos:
41
41
  *
42
- * - [Timeline](https://mui.com/material-ui/react-timeline/)
42
+ * - [Timeline](https://next.mui.com/material-ui/react-timeline/)
43
43
  *
44
44
  * API:
45
45
  *
46
- * - [Timeline API](https://mui.com/material-ui/api/timeline/)
46
+ * - [Timeline API](https://next.mui.com/material-ui/api/timeline/)
47
47
  */
48
48
  const Timeline = /*#__PURE__*/React.forwardRef(function Timeline(inProps, ref) {
49
49
  const props = useThemeProps({
@@ -4,15 +4,18 @@ import * as React from 'react';
4
4
  import ToggleButton from '@mui/material/ToggleButton';
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  let warnedOnce = false;
7
+ const warn = () => {
8
+ if (!warnedOnce) {
9
+ console.warn(['MUI: The ToggleButton component was moved from the lab to the core.', '', "You should use `import { ToggleButton } from '@mui/material'`", "or `import ToggleButton from '@mui/material/ToggleButton'`"].join('\n'));
10
+ warnedOnce = true;
11
+ }
12
+ };
7
13
 
8
14
  /**
9
15
  * @ignore - do not document.
10
16
  */
11
17
  export default /*#__PURE__*/React.forwardRef(function DeprecatedToggleButton(props, ref) {
12
- if (!warnedOnce) {
13
- console.warn(['MUI: The ToggleButton component was moved from the lab to the core.', '', "You should use `import { ToggleButton } from '@mui/material'`", "or `import ToggleButton from '@mui/material/ToggleButton'`"].join('\n'));
14
- warnedOnce = true;
15
- }
18
+ warn();
16
19
  return /*#__PURE__*/_jsx(ToggleButton, {
17
20
  ref: ref,
18
21
  ...props
@@ -4,15 +4,18 @@ import * as React from 'react';
4
4
  import ToggleButtonGroup from '@mui/material/ToggleButtonGroup';
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  let warnedOnce = false;
7
+ const warn = () => {
8
+ if (!warnedOnce) {
9
+ console.warn(['MUI: The ToggleButtonGroup component was moved from the lab to the core.', '', "You should use `import { ToggleButtonGroup } from '@mui/material'`", "or `import ToggleButtonGroup from '@mui/material/ToggleButtonGroup'`"].join('\n'));
10
+ warnedOnce = true;
11
+ }
12
+ };
7
13
 
8
14
  /**
9
15
  * @ignore - do not document.
10
16
  */
11
17
  export default /*#__PURE__*/React.forwardRef(function DeprecatedToggleButtonGroup(props, ref) {
12
- if (!warnedOnce) {
13
- console.warn(['MUI: The ToggleButtonGroup component was moved from the lab to the core.', '', "You should use `import { ToggleButtonGroup } from '@mui/material'`", "or `import ToggleButtonGroup from '@mui/material/ToggleButtonGroup'`"].join('\n'));
14
- warnedOnce = true;
15
- }
18
+ warn();
16
19
  return /*#__PURE__*/_jsx(ToggleButtonGroup, {
17
20
  ref: ref,
18
21
  ...props
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/lab v6.0.0-alpha.8
2
+ * @mui/lab v6.0.0-beta.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,7 +1,2 @@
1
- import { useThemeProps } from '@mui/material/styles';
2
- export { styled } from '@mui/material/styles';
3
-
4
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
- export function createUseThemeProps(name) {
6
- return useThemeProps;
7
- }
1
+ /* eslint-disable import/prefer-default-export */
2
+ export { styled } from '@mui/material/styles';
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
12
12
  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); }
13
13
  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 && {}.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; }
14
14
  let warnedOnce = false;
15
+ const warn = () => {
16
+ if (!warnedOnce) {
17
+ console.warn(['MUI: The Alert component was moved from the lab to the core.', '', "You should use `import { Alert } from '@mui/material'`", "or `import Alert from '@mui/material/Alert'`"].join('\n'));
18
+ warnedOnce = true;
19
+ }
20
+ };
15
21
 
16
22
  /**
17
23
  * @ignore - do not document.
18
24
  */
19
25
  var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedAlert(props, ref) {
20
- if (!warnedOnce) {
21
- console.warn(['MUI: The Alert component was moved from the lab to the core.', '', "You should use `import { Alert } from '@mui/material'`", "or `import Alert from '@mui/material/Alert'`"].join('\n'));
22
- warnedOnce = true;
23
- }
26
+ warn();
24
27
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Alert.default, {
25
28
  ref: ref,
26
29
  ...props
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
12
12
  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); }
13
13
  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 && {}.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; }
14
14
  let warnedOnce = false;
15
+ const warn = () => {
16
+ if (!warnedOnce) {
17
+ console.warn(['MUI: The AlertTitle component was moved from the lab to the core.', '', "You should use `import { AlertTitle } from '@mui/material'`", "or `import AlertTitle from '@mui/material/AlertTitle'`"].join('\n'));
18
+ warnedOnce = true;
19
+ }
20
+ };
15
21
 
16
22
  /**
17
23
  * @ignore - do not document.
18
24
  */
19
25
  var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedAlertTitle(props, ref) {
20
- if (!warnedOnce) {
21
- console.warn(['MUI: The AlertTitle component was moved from the lab to the core.', '', "You should use `import { AlertTitle } from '@mui/material'`", "or `import AlertTitle from '@mui/material/AlertTitle'`"].join('\n'));
22
- warnedOnce = true;
23
- }
26
+ warn();
24
27
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_AlertTitle.default, {
25
28
  ref: ref,
26
29
  ...props
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
12
12
  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); }
13
13
  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 && {}.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; }
14
14
  let warnedOnce = false;
15
+ const warn = () => {
16
+ if (!warnedOnce) {
17
+ console.warn(['MUI: The Autocomplete component was moved from the lab to the core.', '', "You should use `import { Autocomplete } from '@mui/material'`", "or `import Autocomplete from '@mui/material/Autocomplete'`"].join('\n'));
18
+ warnedOnce = true;
19
+ }
20
+ };
15
21
 
16
22
  /**
17
23
  * @ignore - do not document.
18
24
  */
19
25
  var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedAutocomplete(props, ref) {
20
- if (!warnedOnce) {
21
- console.warn(['MUI: The Autocomplete component was moved from the lab to the core.', '', "You should use `import { Autocomplete } from '@mui/material'`", "or `import Autocomplete from '@mui/material/Autocomplete'`"].join('\n'));
22
- warnedOnce = true;
23
- }
26
+ warn();
24
27
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Autocomplete.default, {
25
28
  ref: ref,
26
29
  ...props
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
12
12
  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); }
13
13
  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 && {}.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; }
14
14
  let warnedOnce = false;
15
+ const warn = () => {
16
+ if (!warnedOnce) {
17
+ console.warn(['MUI: The AvatarGroup component was moved from the lab to the core.', '', "You should use `import { AvatarGroup } from '@mui/material'`", "or `import AvatarGroup from '@mui/material/AvatarGroup'`"].join('\n'));
18
+ warnedOnce = true;
19
+ }
20
+ };
15
21
 
16
22
  /**
17
23
  * @ignore - do not document.
18
24
  */
19
25
  var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedAvatarGroup(props, ref) {
20
- if (!warnedOnce) {
21
- console.warn(['MUI: The AvatarGroup component was moved from the lab to the core.', '', "You should use `import { AvatarGroup } from '@mui/material'`", "or `import AvatarGroup from '@mui/material/AvatarGroup'`"].join('\n'));
22
- warnedOnce = true;
23
- }
26
+ warn();
24
27
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_AvatarGroup.default, {
25
28
  ref: ref,
26
29
  ...props
@@ -11,6 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
  var _utils = require("@mui/utils");
12
12
  var _utils2 = require("@mui/material/utils");
13
13
  var _base = require("@mui/base");
14
+ var _DefaultPropsProvider = require("@mui/material/DefaultPropsProvider");
14
15
  var _Button = _interopRequireDefault(require("@mui/material/Button"));
15
16
  var _ButtonGroup = require("@mui/material/ButtonGroup");
16
17
  var _CircularProgress = _interopRequireDefault(require("@mui/material/CircularProgress"));
@@ -20,7 +21,6 @@ var _loadingButtonClasses = _interopRequireWildcard(require("./loadingButtonClas
20
21
  var _jsxRuntime = require("react/jsx-runtime");
21
22
  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); }
22
23
  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 && {}.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; }
23
- const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiLoadingButton');
24
24
  const useUtilityClasses = ownerState => {
25
25
  const {
26
26
  loading,
@@ -196,7 +196,7 @@ const LoadingButtonLoadingIndicator = (0, _zeroStyled.styled)('span', {
196
196
  const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps, ref) {
197
197
  const contextProps = React.useContext(_ButtonGroup.ButtonGroupContext);
198
198
  const resolvedProps = (0, _resolveProps.default)(contextProps, inProps);
199
- const props = useThemeProps({
199
+ const props = (0, _DefaultPropsProvider.useDefaultProps)({
200
200
  props: resolvedProps,
201
201
  name: 'MuiLoadingButton'
202
202
  });
@@ -238,7 +238,11 @@ const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inPro
238
238
  variant: variant,
239
239
  classes: classes,
240
240
  ownerState: ownerState,
241
- children: [ownerState.loadingPosition === 'end' ? children : loadingButtonLoadingIndicator, ownerState.loadingPosition === 'end' ? loadingButtonLoadingIndicator : children]
241
+ children: [ownerState.loadingPosition === 'end' ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
242
+ children: children
243
+ }) : loadingButtonLoadingIndicator, ownerState.loadingPosition === 'end' ? loadingButtonLoadingIndicator : /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
244
+ children: children
245
+ })]
242
246
  });
243
247
  });
244
248
  process.env.NODE_ENV !== "production" ? LoadingButton.propTypes /* remove-proptypes */ = {
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
12
12
  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); }
13
13
  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 && {}.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; }
14
14
  let warnedOnce = false;
15
+ const warn = () => {
16
+ if (!warnedOnce) {
17
+ console.warn(['MUI: The Pagination component was moved from the lab to the core.', '', "You should use `import { Pagination } from '@mui/material'`", "or `import Pagination from '@mui/material/Pagination'`"].join('\n'));
18
+ warnedOnce = true;
19
+ }
20
+ };
15
21
 
16
22
  /**
17
23
  * @ignore - do not document.
18
24
  */
19
25
  var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedPagination(props, ref) {
20
- if (!warnedOnce) {
21
- console.warn(['MUI: The Pagination component was moved from the lab to the core.', '', "You should use `import { Pagination } from '@mui/material'`", "or `import Pagination from '@mui/material/Pagination'`"].join('\n'));
22
- warnedOnce = true;
23
- }
26
+ warn();
24
27
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Pagination.default, {
25
28
  ref: ref,
26
29
  ...props
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
12
12
  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); }
13
13
  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 && {}.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; }
14
14
  let warnedOnce = false;
15
+ const warn = () => {
16
+ if (!warnedOnce) {
17
+ console.warn(['MUI: The PaginationItem component was moved from the lab to the core.', '', "You should use `import { PaginationItem } from '@mui/material'`", "or `import PaginationItem from '@mui/material/PaginationItem'`"].join('\n'));
18
+ warnedOnce = true;
19
+ }
20
+ };
15
21
 
16
22
  /**
17
23
  * @ignore - do not document.
18
24
  */
19
25
  var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedPaginationItem(props, ref) {
20
- if (!warnedOnce) {
21
- console.warn(['MUI: The PaginationItem component was moved from the lab to the core.', '', "You should use `import { PaginationItem } from '@mui/material'`", "or `import PaginationItem from '@mui/material/PaginationItem'`"].join('\n'));
22
- warnedOnce = true;
23
- }
26
+ warn();
24
27
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PaginationItem.default, {
25
28
  ref: ref,
26
29
  ...props
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
12
12
  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); }
13
13
  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 && {}.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; }
14
14
  let warnedOnce = false;
15
+ const warn = () => {
16
+ if (!warnedOnce) {
17
+ console.warn(['MUI: The Rating component was moved from the lab to the core.', '', "You should use `import { Rating } from '@mui/material'`", "or `import Rating from '@mui/material/Rating'`"].join('\n'));
18
+ warnedOnce = true;
19
+ }
20
+ };
15
21
 
16
22
  /**
17
23
  * @ignore - do not document.
18
24
  */
19
25
  var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedRating(props, ref) {
20
- if (!warnedOnce) {
21
- console.warn(['MUI: The Rating component was moved from the lab to the core.', '', "You should use `import { Rating } from '@mui/material'`", "or `import Rating from '@mui/material/Rating'`"].join('\n'));
22
- warnedOnce = true;
23
- }
26
+ warn();
24
27
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Rating.default, {
25
28
  ref: ref,
26
29
  ...props
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
12
12
  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); }
13
13
  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 && {}.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; }
14
14
  let warnedOnce = false;
15
+ const warn = () => {
16
+ if (!warnedOnce) {
17
+ console.warn(['MUI: The Skeleton component was moved from the lab to the core.', '', "You should use `import { Skeleton } from '@mui/material'`", "or `import Skeleton from '@mui/material/Skeleton'`"].join('\n'));
18
+ warnedOnce = true;
19
+ }
20
+ };
15
21
 
16
22
  /**
17
23
  * @ignore - do not document.
18
24
  */
19
25
  var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedSkeleton(props, ref) {
20
- if (!warnedOnce) {
21
- console.warn(['MUI: The Skeleton component was moved from the lab to the core.', '', "You should use `import { Skeleton } from '@mui/material'`", "or `import Skeleton from '@mui/material/Skeleton'`"].join('\n'));
22
- warnedOnce = true;
23
- }
26
+ warn();
24
27
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Skeleton.default, {
25
28
  ref: ref,
26
29
  ...props
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
12
12
  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); }
13
13
  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 && {}.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; }
14
14
  let warnedOnce = false;
15
+ const warn = () => {
16
+ if (!warnedOnce) {
17
+ console.warn(['MUI: The SpeedDial component was moved from the lab to the core.', '', "You should use `import { SpeedDial } from '@mui/material'`", "or `import SpeedDial from '@mui/material/SpeedDial'`"].join('\n'));
18
+ warnedOnce = true;
19
+ }
20
+ };
15
21
 
16
22
  /**
17
23
  * @ignore - do not document.
18
24
  */
19
25
  var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDial(props, ref) {
20
- if (!warnedOnce) {
21
- console.warn(['MUI: The SpeedDial component was moved from the lab to the core.', '', "You should use `import { SpeedDial } from '@mui/material'`", "or `import SpeedDial from '@mui/material/SpeedDial'`"].join('\n'));
22
- warnedOnce = true;
23
- }
26
+ warn();
24
27
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDial.default, {
25
28
  ref: ref,
26
29
  ...props
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
12
12
  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); }
13
13
  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 && {}.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; }
14
14
  let warnedOnce = false;
15
+ const warn = () => {
16
+ if (!warnedOnce) {
17
+ console.warn(['MUI: The SpeedDialAction component was moved from the lab to the core.', '', "You should use `import { SpeedDialAction } from '@mui/material'`", "or `import SpeedDialAction from '@mui/material/SpeedDialAction'`"].join('\n'));
18
+ warnedOnce = true;
19
+ }
20
+ };
15
21
 
16
22
  /**
17
23
  * @ignore - do not document.
18
24
  */
19
25
  var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialAction(props, ref) {
20
- if (!warnedOnce) {
21
- console.warn(['MUI: The SpeedDialAction component was moved from the lab to the core.', '', "You should use `import { SpeedDialAction } from '@mui/material'`", "or `import SpeedDialAction from '@mui/material/SpeedDialAction'`"].join('\n'));
22
- warnedOnce = true;
23
- }
26
+ warn();
24
27
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDialAction.default, {
25
28
  ref: ref,
26
29
  ...props