@mui/lab 6.0.0-alpha.9 → 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 (66) 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 +331 -3
  6. package/LoadingButton/LoadingButton.d.ts +4 -4
  7. package/LoadingButton/LoadingButton.js +8 -4
  8. package/Masonry/Masonry.d.ts +2 -2
  9. package/Pagination/Pagination.js +7 -4
  10. package/PaginationItem/PaginationItem.js +7 -4
  11. package/Rating/Rating.js +7 -4
  12. package/Skeleton/Skeleton.js +7 -4
  13. package/SpeedDial/SpeedDial.js +7 -4
  14. package/SpeedDialAction/SpeedDialAction.js +7 -4
  15. package/SpeedDialIcon/SpeedDialIcon.js +7 -4
  16. package/TabContext/TabContext.d.ts +2 -2
  17. package/TabList/TabList.d.ts +3 -3
  18. package/TabPanel/TabPanel.d.ts +2 -2
  19. package/Timeline/Timeline.d.ts +2 -2
  20. package/Timeline/Timeline.js +2 -2
  21. package/TimelineConnector/TimelineConnector.d.ts +2 -2
  22. package/TimelineContent/TimelineContent.d.ts +3 -3
  23. package/TimelineDot/TimelineDot.d.ts +2 -2
  24. package/TimelineItem/TimelineItem.d.ts +2 -2
  25. package/TimelineOppositeContent/TimelineOppositeContent.d.ts +3 -3
  26. package/TimelineSeparator/TimelineSeparator.d.ts +2 -2
  27. package/ToggleButton/ToggleButton.js +7 -4
  28. package/ToggleButtonGroup/ToggleButtonGroup.js +7 -4
  29. package/index.js +1 -1
  30. package/modern/Alert/Alert.js +7 -4
  31. package/modern/AlertTitle/AlertTitle.js +7 -4
  32. package/modern/Autocomplete/Autocomplete.js +7 -4
  33. package/modern/AvatarGroup/AvatarGroup.js +7 -4
  34. package/modern/LoadingButton/LoadingButton.js +8 -4
  35. package/modern/Pagination/Pagination.js +7 -4
  36. package/modern/PaginationItem/PaginationItem.js +7 -4
  37. package/modern/Rating/Rating.js +7 -4
  38. package/modern/Skeleton/Skeleton.js +7 -4
  39. package/modern/SpeedDial/SpeedDial.js +7 -4
  40. package/modern/SpeedDialAction/SpeedDialAction.js +7 -4
  41. package/modern/SpeedDialIcon/SpeedDialIcon.js +7 -4
  42. package/modern/Timeline/Timeline.js +2 -2
  43. package/modern/ToggleButton/ToggleButton.js +7 -4
  44. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +7 -4
  45. package/modern/index.js +1 -1
  46. package/modern/zero-styled/index.js +2 -7
  47. package/node/Alert/Alert.js +7 -4
  48. package/node/AlertTitle/AlertTitle.js +7 -4
  49. package/node/Autocomplete/Autocomplete.js +7 -4
  50. package/node/AvatarGroup/AvatarGroup.js +7 -4
  51. package/node/LoadingButton/LoadingButton.js +7 -3
  52. package/node/Pagination/Pagination.js +7 -4
  53. package/node/PaginationItem/PaginationItem.js +7 -4
  54. package/node/Rating/Rating.js +7 -4
  55. package/node/Skeleton/Skeleton.js +7 -4
  56. package/node/SpeedDial/SpeedDial.js +7 -4
  57. package/node/SpeedDialAction/SpeedDialAction.js +7 -4
  58. package/node/SpeedDialIcon/SpeedDialIcon.js +7 -4
  59. package/node/Timeline/Timeline.js +2 -2
  60. package/node/ToggleButton/ToggleButton.js +7 -4
  61. package/node/ToggleButtonGroup/ToggleButtonGroup.js +7 -4
  62. package/node/index.js +1 -1
  63. package/node/zero-styled/index.js +1 -6
  64. package/package.json +11 -7
  65. package/zero-styled/index.d.ts +0 -2
  66. package/zero-styled/index.js +2 -7
@@ -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
@@ -19,11 +19,11 @@ export interface TabContextProps {
19
19
  *
20
20
  * Demos:
21
21
  *
22
- * - [Tabs](https://mui.com/material-ui/react-tabs/)
22
+ * - [Tabs](https://next.mui.com/material-ui/react-tabs/)
23
23
  *
24
24
  * API:
25
25
  *
26
- * - [TabContext API](https://mui.com/material-ui/api/tab-context/)
26
+ * - [TabContext API](https://next.mui.com/material-ui/api/tab-context/)
27
27
  */
28
28
  export default function TabContext(props: TabContextProps): React.JSX.Element;
29
29
  export function useTabContext(): TabContextValue | null;
@@ -22,12 +22,12 @@ export interface TabListTypeMap<
22
22
  *
23
23
  * Demos:
24
24
  *
25
- * - [Tabs](https://mui.com/material-ui/react-tabs/)
25
+ * - [Tabs](https://next.mui.com/material-ui/react-tabs/)
26
26
  *
27
27
  * API:
28
28
  *
29
- * - [TabList API](https://mui.com/material-ui/api/tab-list/)
30
- * - inherits [Tabs API](https://mui.com/material-ui/api/tabs/)
29
+ * - [TabList API](https://next.mui.com/material-ui/api/tab-list/)
30
+ * - inherits [Tabs API](https://next.mui.com/material-ui/api/tabs/)
31
31
  */
32
32
  declare const TabList: OverridableComponent<TabListTypeMap>;
33
33
 
@@ -33,10 +33,10 @@ export interface TabPanelProps extends StandardProps<React.HTMLAttributes<HTMLDi
33
33
  *
34
34
  * Demos:
35
35
  *
36
- * - [Tabs](https://mui.com/material-ui/react-tabs/)
36
+ * - [Tabs](https://next.mui.com/material-ui/react-tabs/)
37
37
  *
38
38
  * API:
39
39
  *
40
- * - [TabPanel API](https://mui.com/material-ui/api/tab-panel/)
40
+ * - [TabPanel API](https://next.mui.com/material-ui/api/tab-panel/)
41
41
  */
42
42
  export default function TabPanel(props: TabPanelProps): React.JSX.Element;
@@ -4,11 +4,11 @@ import { TimelineProps } from './Timeline.types';
4
4
  *
5
5
  * Demos:
6
6
  *
7
- * - [Timeline](https://mui.com/material-ui/react-timeline/)
7
+ * - [Timeline](https://next.mui.com/material-ui/react-timeline/)
8
8
  *
9
9
  * API:
10
10
  *
11
- * - [Timeline API](https://mui.com/material-ui/api/timeline/)
11
+ * - [Timeline API](https://next.mui.com/material-ui/api/timeline/)
12
12
  */
13
13
  declare const Timeline: React.ForwardRefExoticComponent<TimelineProps & React.RefAttributes<HTMLUListElement>>;
14
14
  /**
@@ -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({
@@ -24,10 +24,10 @@ export interface TimelineConnectorProps
24
24
  *
25
25
  * Demos:
26
26
  *
27
- * - [Timeline](https://mui.com/material-ui/react-timeline/)
27
+ * - [Timeline](https://next.mui.com/material-ui/react-timeline/)
28
28
  *
29
29
  * API:
30
30
  *
31
- * - [TimelineConnector API](https://mui.com/material-ui/api/timeline-connector/)
31
+ * - [TimelineConnector API](https://next.mui.com/material-ui/api/timeline-connector/)
32
32
  */
33
33
  export default function TimelineConnector(props: TimelineConnectorProps): React.JSX.Element;
@@ -23,11 +23,11 @@ export interface TimelineContentProps extends StandardProps<TypographyProps> {
23
23
  *
24
24
  * Demos:
25
25
  *
26
- * - [Timeline](https://mui.com/material-ui/react-timeline/)
26
+ * - [Timeline](https://next.mui.com/material-ui/react-timeline/)
27
27
  *
28
28
  * API:
29
29
  *
30
- * - [TimelineContent API](https://mui.com/material-ui/api/timeline-content/)
31
- * - inherits [Typography API](https://mui.com/material-ui/api/typography/)
30
+ * - [TimelineContent API](https://next.mui.com/material-ui/api/timeline-content/)
31
+ * - inherits [Typography API](https://next.mui.com/material-ui/api/typography/)
32
32
  */
33
33
  export default function TimelineContent(props: TimelineContentProps): React.JSX.Element;
@@ -41,10 +41,10 @@ export interface TimelineDotProps extends StandardProps<React.HTMLAttributes<HTM
41
41
  *
42
42
  * Demos:
43
43
  *
44
- * - [Timeline](https://mui.com/material-ui/react-timeline/)
44
+ * - [Timeline](https://next.mui.com/material-ui/react-timeline/)
45
45
  *
46
46
  * API:
47
47
  *
48
- * - [TimelineDot API](https://mui.com/material-ui/api/timeline-dot/)
48
+ * - [TimelineDot API](https://next.mui.com/material-ui/api/timeline-dot/)
49
49
  */
50
50
  export default function TimelineDot(props: TimelineDotProps): React.JSX.Element;
@@ -27,10 +27,10 @@ export interface TimelineItemProps extends StandardProps<React.HTMLAttributes<HT
27
27
  *
28
28
  * Demos:
29
29
  *
30
- * - [Timeline](https://mui.com/material-ui/react-timeline/)
30
+ * - [Timeline](https://next.mui.com/material-ui/react-timeline/)
31
31
  *
32
32
  * API:
33
33
  *
34
- * - [TimelineItem API](https://mui.com/material-ui/api/timeline-item/)
34
+ * - [TimelineItem API](https://next.mui.com/material-ui/api/timeline-item/)
35
35
  */
36
36
  export default function TimelineItem(props: TimelineItemProps): React.JSX.Element;
@@ -23,12 +23,12 @@ export interface TimelineOppositeContentProps extends StandardProps<TypographyPr
23
23
  *
24
24
  * Demos:
25
25
  *
26
- * - [Timeline](https://mui.com/material-ui/react-timeline/)
26
+ * - [Timeline](https://next.mui.com/material-ui/react-timeline/)
27
27
  *
28
28
  * API:
29
29
  *
30
- * - [TimelineOppositeContent API](https://mui.com/material-ui/api/timeline-opposite-content/)
31
- * - inherits [Typography API](https://mui.com/material-ui/api/typography/)
30
+ * - [TimelineOppositeContent API](https://next.mui.com/material-ui/api/timeline-opposite-content/)
31
+ * - inherits [Typography API](https://next.mui.com/material-ui/api/typography/)
32
32
  */
33
33
  declare const TimelineOppositeContent: ((
34
34
  props: TimelineOppositeContentProps,
@@ -24,10 +24,10 @@ export interface TimelineSeparatorProps
24
24
  *
25
25
  * Demos:
26
26
  *
27
- * - [Timeline](https://mui.com/material-ui/react-timeline/)
27
+ * - [Timeline](https://next.mui.com/material-ui/react-timeline/)
28
28
  *
29
29
  * API:
30
30
  *
31
- * - [TimelineSeparator API](https://mui.com/material-ui/api/timeline-separator/)
31
+ * - [TimelineSeparator API](https://next.mui.com/material-ui/api/timeline-separator/)
32
32
  */
33
33
  export default function TimelineSeparator(props: TimelineSeparatorProps): React.JSX.Element;
@@ -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/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/lab v6.0.0-alpha.9
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
@@ -4,15 +4,18 @@ import * as React from 'react';
4
4
  import Alert from '@mui/material/Alert';
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 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'));
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 DeprecatedAlert(props, ref) {
12
- if (!warnedOnce) {
13
- 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'));
14
- warnedOnce = true;
15
- }
18
+ warn();
16
19
  return /*#__PURE__*/_jsx(Alert, {
17
20
  ref: ref,
18
21
  ...props
@@ -4,15 +4,18 @@ import * as React from 'react';
4
4
  import AlertTitle from '@mui/material/AlertTitle';
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 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'));
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 DeprecatedAlertTitle(props, ref) {
12
- if (!warnedOnce) {
13
- 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'));
14
- warnedOnce = true;
15
- }
18
+ warn();
16
19
  return /*#__PURE__*/_jsx(AlertTitle, {
17
20
  ref: ref,
18
21
  ...props
@@ -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