@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
@@ -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 */ = {
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type LocalizationProviderComponent = ((props: LocalizationProviderProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type LocalizationProviderComponent = ((props: LocalizationProviderProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -56,11 +56,11 @@ export interface MasonryTypeMap<
56
56
  *
57
57
  * Demos:
58
58
  *
59
- * - [Masonry](https://mui.com/material-ui/react-masonry/)
59
+ * - [Masonry](https://next.mui.com/material-ui/react-masonry/)
60
60
  *
61
61
  * API:
62
62
  *
63
- * - [Masonry API](https://mui.com/material-ui/api/masonry/)
63
+ * - [Masonry API](https://next.mui.com/material-ui/api/masonry/)
64
64
  */
65
65
  declare const Masonry: OverridableComponent<MasonryTypeMap>;
66
66
 
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type MobileDatePickerComponent = (<TDate>(props: MobileDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type MobileDatePickerComponent = (<TDate>(props: MobileDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type MobileDateRangePickerComponent = (<TDate>(props: MobileDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type MobileDateRangePickerComponent = (<TDate>(props: MobileDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type MobileDateTimePickerComponent = (<TDate>(props: MobileDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type MobileDateTimePickerComponent = (<TDate>(props: MobileDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type MobileTimePickerComponent = (<TDate>(props: MobileTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type MobileTimePickerComponent = (<TDate>(props: MobileTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type MonthPickerComponent = (<TDate>(props: MonthPickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type MonthPickerComponent = (<TDate>(props: MonthPickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -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
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type PickersDayComponent = (<TDate>(props: PickersDayProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type PickersDayComponent = (<TDate>(props: PickersDayProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
package/Rating/Rating.js CHANGED
@@ -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
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type StaticDatePickerComponent = (<TDate>(props: StaticDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type StaticDatePickerComponent = (<TDate>(props: StaticDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type StaticDateRangePickerComponent = (<TDate>(props: StaticDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type StaticDateRangePickerComponent = (<TDate>(props: StaticDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type StaticDateTimePickerComponent = (<TDate>(props: StaticDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type StaticDateTimePickerComponent = (<TDate>(props: StaticDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type StaticTimePickerComponent = (<TDate>(props: StaticTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type StaticTimePickerComponent = (<TDate>(props: StaticTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -19,13 +19,13 @@ 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
- export default function TabContext(props: TabContextProps): JSX.Element;
28
+ export default function TabContext(props: TabContextProps): React.JSX.Element;
29
29
  export function useTabContext(): TabContextValue | null;
30
30
  export function getPanelId(context: TabContextValue, tabValue: string): string;
31
31
  export function getTabId(context: TabContextValue, tabValue: string): string;
@@ -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
- export default function TabPanel(props: TabPanelProps): JSX.Element;
42
+ export default function TabPanel(props: TabPanelProps): React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type TimePickerComponent = (<TDate>(props: TimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type TimePickerComponent = (<TDate>(props: TimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -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
- export default function TimelineConnector(props: TimelineConnectorProps): JSX.Element;
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
- export default function TimelineContent(props: TimelineContentProps): JSX.Element;
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
- export default function TimelineDot(props: TimelineDotProps): JSX.Element;
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
- export default function TimelineItem(props: TimelineItemProps): JSX.Element;
36
+ export default function TimelineItem(props: TimelineItemProps): React.JSX.Element;
@@ -23,14 +23,16 @@ 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
- declare const TimelineOppositeContent: ((props: TimelineOppositeContentProps) => JSX.Element) & {
33
+ declare const TimelineOppositeContent: ((
34
+ props: TimelineOppositeContentProps,
35
+ ) => React.JSX.Element) & {
34
36
  muiName: string;
35
37
  };
36
38
 
@@ -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
- export default function TimelineSeparator(props: TimelineSeparatorProps): JSX.Element;
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
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type TreeItemComponent = ((props: TreeItemProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type TreeItemComponent = ((props: TreeItemProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type TreeViewComponent<Multiple extends boolean | undefined = undefined> = ((props: TreeViewProps<Multiple> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type TreeViewComponent<Multiple extends boolean | undefined = undefined> = ((props: TreeViewProps<Multiple> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type YearPickerComponent = (<TDate>(props: YearPickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type YearPickerComponent = (<TDate>(props: YearPickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
package/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
@@ -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