@mui/lab 5.0.0-alpha.129 → 5.0.0-alpha.130

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 (197) hide show
  1. package/AdapterDateFns/AdapterDateFns.d.ts +3 -3
  2. package/AdapterDateFns/index.d.ts +1 -1
  3. package/AdapterDayjs/AdapterDayjs.d.ts +3 -3
  4. package/AdapterDayjs/index.d.ts +1 -1
  5. package/AdapterLuxon/AdapterLuxon.d.ts +3 -3
  6. package/AdapterLuxon/index.d.ts +1 -1
  7. package/AdapterMoment/AdapterMoment.d.ts +3 -3
  8. package/AdapterMoment/index.d.ts +1 -1
  9. package/Alert/Alert.js +4 -4
  10. package/AlertTitle/AlertTitle.js +4 -4
  11. package/Autocomplete/Autocomplete.js +4 -4
  12. package/AvatarGroup/AvatarGroup.js +4 -4
  13. package/CHANGELOG.md +124 -0
  14. package/CalendarPicker/CalendarPicker.d.ts +14 -14
  15. package/CalendarPicker/index.d.ts +2 -2
  16. package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +13 -13
  17. package/CalendarPickerSkeleton/index.d.ts +2 -2
  18. package/ClockPicker/ClockPicker.d.ts +14 -14
  19. package/ClockPicker/index.d.ts +2 -2
  20. package/DatePicker/DatePicker.d.ts +10 -10
  21. package/DatePicker/index.d.ts +2 -2
  22. package/DateRangePicker/DateRangePicker.d.ts +11 -11
  23. package/DateRangePicker/index.d.ts +2 -2
  24. package/DateRangePickerDay/DateRangePickerDay.d.ts +13 -13
  25. package/DateRangePickerDay/index.d.ts +2 -2
  26. package/DateTimePicker/DateTimePicker.d.ts +10 -10
  27. package/DateTimePicker/index.d.ts +2 -2
  28. package/DesktopDatePicker/DesktopDatePicker.d.ts +10 -10
  29. package/DesktopDatePicker/index.d.ts +2 -2
  30. package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +10 -10
  31. package/DesktopDateRangePicker/index.d.ts +2 -2
  32. package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +10 -10
  33. package/DesktopDateTimePicker/index.d.ts +2 -2
  34. package/DesktopTimePicker/DesktopTimePicker.d.ts +10 -10
  35. package/DesktopTimePicker/index.d.ts +2 -2
  36. package/LoadingButton/LoadingButton.js +74 -62
  37. package/LoadingButton/loadingButtonClasses.d.ts +22 -22
  38. package/LocalizationProvider/LocalizationProvider.d.ts +10 -10
  39. package/LocalizationProvider/index.d.ts +2 -2
  40. package/Masonry/Masonry.js +34 -29
  41. package/Masonry/masonryClasses.d.ts +8 -8
  42. package/MobileDatePicker/MobileDatePicker.d.ts +10 -10
  43. package/MobileDatePicker/index.d.ts +2 -2
  44. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +10 -10
  45. package/MobileDateRangePicker/index.d.ts +2 -2
  46. package/MobileDateTimePicker/MobileDateTimePicker.d.ts +10 -10
  47. package/MobileDateTimePicker/index.d.ts +2 -2
  48. package/MobileTimePicker/MobileTimePicker.d.ts +10 -10
  49. package/MobileTimePicker/index.d.ts +2 -2
  50. package/MonthPicker/MonthPicker.d.ts +13 -13
  51. package/MonthPicker/index.d.ts +2 -2
  52. package/Pagination/Pagination.js +4 -4
  53. package/PaginationItem/PaginationItem.js +4 -4
  54. package/PickersDay/PickersDay.d.ts +13 -13
  55. package/PickersDay/index.d.ts +2 -2
  56. package/Rating/Rating.js +4 -4
  57. package/Skeleton/Skeleton.js +4 -4
  58. package/SpeedDial/SpeedDial.js +4 -4
  59. package/SpeedDialAction/SpeedDialAction.js +4 -4
  60. package/SpeedDialIcon/SpeedDialIcon.js +4 -4
  61. package/StaticDatePicker/StaticDatePicker.d.ts +10 -10
  62. package/StaticDatePicker/index.d.ts +2 -2
  63. package/StaticDateRangePicker/StaticDateRangePicker.d.ts +10 -10
  64. package/StaticDateRangePicker/index.d.ts +2 -2
  65. package/StaticDateTimePicker/StaticDateTimePicker.d.ts +10 -10
  66. package/StaticDateTimePicker/index.d.ts +2 -2
  67. package/StaticTimePicker/StaticTimePicker.d.ts +10 -10
  68. package/StaticTimePicker/index.d.ts +2 -2
  69. package/TabList/TabList.js +6 -8
  70. package/TabPanel/TabPanel.js +12 -13
  71. package/TabPanel/tabPanelClasses.d.ts +8 -8
  72. package/TimePicker/TimePicker.d.ts +10 -10
  73. package/TimePicker/index.d.ts +2 -2
  74. package/Timeline/Timeline.d.ts +59 -59
  75. package/Timeline/Timeline.js +11 -12
  76. package/Timeline/TimelineContext.d.ts +6 -6
  77. package/Timeline/index.d.ts +5 -5
  78. package/Timeline/timelineClasses.d.ts +3 -3
  79. package/TimelineConnector/TimelineConnector.js +7 -9
  80. package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
  81. package/TimelineContent/TimelineContent.js +15 -15
  82. package/TimelineContent/timelineContentClasses.d.ts +14 -14
  83. package/TimelineDot/TimelineDot.js +38 -31
  84. package/TimelineDot/timelineDotClasses.d.ts +24 -24
  85. package/TimelineItem/TimelineItem.js +33 -31
  86. package/TimelineItem/timelineItemClasses.d.ts +16 -16
  87. package/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
  88. package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
  89. package/TimelineSeparator/TimelineSeparator.js +7 -9
  90. package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
  91. package/ToggleButton/ToggleButton.js +4 -4
  92. package/ToggleButtonGroup/ToggleButtonGroup.js +4 -4
  93. package/TreeItem/TreeItem.js +37 -37
  94. package/TreeItem/TreeItemContent.js +15 -18
  95. package/TreeItem/treeItemClasses.d.ts +24 -24
  96. package/TreeView/TreeView.js +35 -33
  97. package/TreeView/descendants.js +13 -14
  98. package/TreeView/treeViewClasses.d.ts +8 -8
  99. package/YearPicker/YearPicker.d.ts +14 -14
  100. package/YearPicker/index.d.ts +2 -2
  101. package/index.js +1 -1
  102. package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
  103. package/internal/svg-icons/ArrowLeft.d.ts +7 -7
  104. package/internal/svg-icons/ArrowRight.d.ts +7 -7
  105. package/internal/svg-icons/Calendar.d.ts +7 -7
  106. package/internal/svg-icons/Clock.d.ts +7 -7
  107. package/internal/svg-icons/DateRange.d.ts +7 -7
  108. package/internal/svg-icons/Pen.d.ts +7 -7
  109. package/internal/svg-icons/Time.d.ts +7 -7
  110. package/legacy/Alert/Alert.js +4 -2
  111. package/legacy/AlertTitle/AlertTitle.js +4 -2
  112. package/legacy/Autocomplete/Autocomplete.js +4 -2
  113. package/legacy/AvatarGroup/AvatarGroup.js +4 -2
  114. package/legacy/LoadingButton/LoadingButton.js +16 -15
  115. package/legacy/Masonry/Masonry.js +10 -8
  116. package/legacy/Pagination/Pagination.js +4 -2
  117. package/legacy/PaginationItem/PaginationItem.js +4 -2
  118. package/legacy/Rating/Rating.js +4 -2
  119. package/legacy/Skeleton/Skeleton.js +4 -2
  120. package/legacy/SpeedDial/SpeedDial.js +4 -2
  121. package/legacy/SpeedDialAction/SpeedDialAction.js +4 -2
  122. package/legacy/SpeedDialIcon/SpeedDialIcon.js +4 -2
  123. package/legacy/TabList/TabList.js +4 -2
  124. package/legacy/TabPanel/TabPanel.js +6 -4
  125. package/legacy/Timeline/Timeline.js +5 -3
  126. package/legacy/TimelineConnector/TimelineConnector.js +4 -2
  127. package/legacy/TimelineContent/TimelineContent.js +6 -4
  128. package/legacy/TimelineDot/TimelineDot.js +10 -8
  129. package/legacy/TimelineItem/TimelineItem.js +7 -6
  130. package/legacy/TimelineOppositeContent/TimelineOppositeContent.js +6 -4
  131. package/legacy/TimelineSeparator/TimelineSeparator.js +4 -2
  132. package/legacy/ToggleButton/ToggleButton.js +4 -2
  133. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +4 -2
  134. package/legacy/TreeItem/TreeItem.js +9 -8
  135. package/legacy/TreeItem/TreeItemContent.js +5 -3
  136. package/legacy/TreeView/TreeView.js +8 -6
  137. package/legacy/TreeView/descendants.js +6 -4
  138. package/legacy/index.js +1 -1
  139. package/modern/Alert/Alert.js +4 -4
  140. package/modern/AlertTitle/AlertTitle.js +4 -4
  141. package/modern/Autocomplete/Autocomplete.js +4 -4
  142. package/modern/AvatarGroup/AvatarGroup.js +4 -4
  143. package/modern/LoadingButton/LoadingButton.js +74 -62
  144. package/modern/Masonry/Masonry.js +34 -29
  145. package/modern/Pagination/Pagination.js +4 -4
  146. package/modern/PaginationItem/PaginationItem.js +4 -4
  147. package/modern/Rating/Rating.js +4 -4
  148. package/modern/Skeleton/Skeleton.js +4 -4
  149. package/modern/SpeedDial/SpeedDial.js +4 -4
  150. package/modern/SpeedDialAction/SpeedDialAction.js +4 -4
  151. package/modern/SpeedDialIcon/SpeedDialIcon.js +4 -4
  152. package/modern/TabList/TabList.js +6 -8
  153. package/modern/TabPanel/TabPanel.js +12 -13
  154. package/modern/Timeline/Timeline.js +11 -12
  155. package/modern/TimelineConnector/TimelineConnector.js +7 -9
  156. package/modern/TimelineContent/TimelineContent.js +15 -15
  157. package/modern/TimelineDot/TimelineDot.js +38 -31
  158. package/modern/TimelineItem/TimelineItem.js +33 -31
  159. package/modern/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
  160. package/modern/TimelineSeparator/TimelineSeparator.js +7 -9
  161. package/modern/ToggleButton/ToggleButton.js +4 -4
  162. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +4 -4
  163. package/modern/TreeItem/TreeItem.js +37 -37
  164. package/modern/TreeItem/TreeItemContent.js +15 -18
  165. package/modern/TreeView/TreeView.js +35 -33
  166. package/modern/TreeView/descendants.js +13 -14
  167. package/modern/index.js +1 -1
  168. package/node/Alert/Alert.js +4 -4
  169. package/node/AlertTitle/AlertTitle.js +4 -4
  170. package/node/Autocomplete/Autocomplete.js +4 -4
  171. package/node/AvatarGroup/AvatarGroup.js +4 -4
  172. package/node/LoadingButton/LoadingButton.js +74 -62
  173. package/node/Masonry/Masonry.js +34 -29
  174. package/node/Pagination/Pagination.js +4 -4
  175. package/node/PaginationItem/PaginationItem.js +4 -4
  176. package/node/Rating/Rating.js +4 -4
  177. package/node/Skeleton/Skeleton.js +4 -4
  178. package/node/SpeedDial/SpeedDial.js +4 -4
  179. package/node/SpeedDialAction/SpeedDialAction.js +4 -4
  180. package/node/SpeedDialIcon/SpeedDialIcon.js +4 -4
  181. package/node/TabList/TabList.js +6 -8
  182. package/node/TabPanel/TabPanel.js +12 -13
  183. package/node/Timeline/Timeline.js +13 -12
  184. package/node/TimelineConnector/TimelineConnector.js +7 -9
  185. package/node/TimelineContent/TimelineContent.js +15 -15
  186. package/node/TimelineDot/TimelineDot.js +38 -31
  187. package/node/TimelineItem/TimelineItem.js +33 -31
  188. package/node/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
  189. package/node/TimelineSeparator/TimelineSeparator.js +7 -9
  190. package/node/ToggleButton/ToggleButton.js +4 -4
  191. package/node/ToggleButtonGroup/ToggleButtonGroup.js +4 -4
  192. package/node/TreeItem/TreeItem.js +37 -37
  193. package/node/TreeItem/TreeItemContent.js +18 -22
  194. package/node/TreeView/TreeView.js +35 -33
  195. package/node/TreeView/descendants.js +16 -16
  196. package/node/index.js +1 -1
  197. package/package.json +4 -4
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
1
  import * as React from 'react';
3
2
  import Skeleton from '@mui/material/Skeleton';
4
3
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -12,7 +11,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSkeleton(props,
12
11
  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'));
13
12
  warnedOnce = true;
14
13
  }
15
- return /*#__PURE__*/_jsx(Skeleton, _extends({
16
- ref: ref
17
- }, props));
14
+ return /*#__PURE__*/_jsx(Skeleton, {
15
+ ref: ref,
16
+ ...props
17
+ });
18
18
  });
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
1
  import * as React from 'react';
3
2
  import SpeedDial from '@mui/material/SpeedDial';
4
3
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -12,7 +11,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDial(props,
12
11
  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'));
13
12
  warnedOnce = true;
14
13
  }
15
- return /*#__PURE__*/_jsx(SpeedDial, _extends({
16
- ref: ref
17
- }, props));
14
+ return /*#__PURE__*/_jsx(SpeedDial, {
15
+ ref: ref,
16
+ ...props
17
+ });
18
18
  });
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
1
  import * as React from 'react';
3
2
  import SpeedDialAction from '@mui/material/SpeedDialAction';
4
3
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -12,7 +11,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialAction(
12
11
  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'));
13
12
  warnedOnce = true;
14
13
  }
15
- return /*#__PURE__*/_jsx(SpeedDialAction, _extends({
16
- ref: ref
17
- }, props));
14
+ return /*#__PURE__*/_jsx(SpeedDialAction, {
15
+ ref: ref,
16
+ ...props
17
+ });
18
18
  });
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
1
  import * as React from 'react';
3
2
  import SpeedDialIcon from '@mui/material/SpeedDialIcon';
4
3
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -12,7 +11,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialIcon(pr
12
11
  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'));
13
12
  warnedOnce = true;
14
13
  }
15
- return /*#__PURE__*/_jsx(SpeedDialIcon, _extends({
16
- ref: ref
17
- }, props));
14
+ return /*#__PURE__*/_jsx(SpeedDialIcon, {
15
+ ref: ref,
16
+ ...props
17
+ });
18
18
  });
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
2
- type StaticDatePickerComponent = (<TDate>(props: StaticDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
- propTypes?: any;
4
- };
5
- /**
6
- * @ignore - do not document.
7
- */
8
- declare const StaticDatePicker: StaticDatePickerComponent;
9
- export default StaticDatePicker;
10
- export type StaticDatePickerProps<TDate> = Record<any, any>;
1
+ import * as React from 'react';
2
+ type StaticDatePickerComponent = (<TDate>(props: StaticDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
+ propTypes?: any;
4
+ };
5
+ /**
6
+ * @ignore - do not document.
7
+ */
8
+ declare const StaticDatePicker: StaticDatePickerComponent;
9
+ export default StaticDatePicker;
10
+ export type StaticDatePickerProps<TDate> = Record<any, any>;
@@ -1,2 +1,2 @@
1
- export { default } from './StaticDatePicker';
2
- export * from './StaticDatePicker';
1
+ export { default } from './StaticDatePicker';
2
+ export * from './StaticDatePicker';
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
2
- type StaticDateRangePickerComponent = (<TDate>(props: StaticDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
- propTypes?: any;
4
- };
5
- /**
6
- * @ignore - do not document.
7
- */
8
- declare const StaticDateRangePicker: StaticDateRangePickerComponent;
9
- export default StaticDateRangePicker;
10
- export type StaticDateRangePickerProps = Record<any, any>;
1
+ import * as React from 'react';
2
+ type StaticDateRangePickerComponent = (<TDate>(props: StaticDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
+ propTypes?: any;
4
+ };
5
+ /**
6
+ * @ignore - do not document.
7
+ */
8
+ declare const StaticDateRangePicker: StaticDateRangePickerComponent;
9
+ export default StaticDateRangePicker;
10
+ export type StaticDateRangePickerProps = Record<any, any>;
@@ -1,2 +1,2 @@
1
- export { default } from './StaticDateRangePicker';
2
- export * from './StaticDateRangePicker';
1
+ export { default } from './StaticDateRangePicker';
2
+ export * from './StaticDateRangePicker';
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
2
- type StaticDateTimePickerComponent = (<TDate>(props: StaticDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
- propTypes?: any;
4
- };
5
- /**
6
- * @ignore - do not document.
7
- */
8
- declare const StaticDateTimePicker: StaticDateTimePickerComponent;
9
- export default StaticDateTimePicker;
10
- export type StaticDateTimePickerProps<TDate> = Record<any, any>;
1
+ import * as React from 'react';
2
+ type StaticDateTimePickerComponent = (<TDate>(props: StaticDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
+ propTypes?: any;
4
+ };
5
+ /**
6
+ * @ignore - do not document.
7
+ */
8
+ declare const StaticDateTimePicker: StaticDateTimePickerComponent;
9
+ export default StaticDateTimePicker;
10
+ export type StaticDateTimePickerProps<TDate> = Record<any, any>;
@@ -1,2 +1,2 @@
1
- export { default } from './StaticDateTimePicker';
2
- export * from './StaticDateTimePicker';
1
+ export { default } from './StaticDateTimePicker';
2
+ export * from './StaticDateTimePicker';
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
2
- type StaticTimePickerComponent = (<TDate>(props: StaticTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
- propTypes?: any;
4
- };
5
- /**
6
- * @ignore - do not document.
7
- */
8
- declare const StaticTimePicker: StaticTimePickerComponent;
9
- export default StaticTimePicker;
10
- export type StaticTimePickerProps<TDate> = Record<any, any>;
1
+ import * as React from 'react';
2
+ type StaticTimePickerComponent = (<TDate>(props: StaticTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
+ propTypes?: any;
4
+ };
5
+ /**
6
+ * @ignore - do not document.
7
+ */
8
+ declare const StaticTimePicker: StaticTimePickerComponent;
9
+ export default StaticTimePicker;
10
+ export type StaticTimePickerProps<TDate> = Record<any, any>;
@@ -1,2 +1,2 @@
1
- export { default } from './StaticTimePicker';
2
- export * from './StaticTimePicker';
1
+ export { default } from './StaticTimePicker';
2
+ export * from './StaticTimePicker';
@@ -1,6 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["children"];
4
1
  import * as React from 'react';
5
2
  import PropTypes from 'prop-types';
6
3
  import Tabs from '@mui/material/Tabs';
@@ -8,9 +5,9 @@ import { useTabContext, getTabId, getPanelId } from '../TabContext';
8
5
  import { jsx as _jsx } from "react/jsx-runtime";
9
6
  const TabList = /*#__PURE__*/React.forwardRef(function TabList(props, ref) {
10
7
  const {
11
- children: childrenProp
12
- } = props,
13
- other = _objectWithoutPropertiesLoose(props, _excluded);
8
+ children: childrenProp,
9
+ ...other
10
+ } = props;
14
11
  const context = useTabContext();
15
12
  if (context === null) {
16
13
  throw new TypeError('No TabContext provided');
@@ -25,11 +22,12 @@ const TabList = /*#__PURE__*/React.forwardRef(function TabList(props, ref) {
25
22
  id: getTabId(context, child.props.value)
26
23
  });
27
24
  });
28
- return /*#__PURE__*/_jsx(Tabs, _extends({}, other, {
25
+ return /*#__PURE__*/_jsx(Tabs, {
26
+ ...other,
29
27
  ref: ref,
30
28
  value: context.value,
31
29
  children: children
32
- }));
30
+ });
33
31
  });
34
32
  process.env.NODE_ENV !== "production" ? TabList.propTypes /* remove-proptypes */ = {
35
33
  // ----------------------------- Warning --------------------------------
@@ -1,6 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["children", "className", "value"];
4
1
  import * as React from 'react';
5
2
  import PropTypes from 'prop-types';
6
3
  import clsx from 'clsx';
@@ -33,12 +30,14 @@ const TabPanel = /*#__PURE__*/React.forwardRef(function TabPanel(inProps, ref) {
33
30
  name: 'MuiTabPanel'
34
31
  });
35
32
  const {
36
- children,
37
- className,
38
- value
39
- } = props,
40
- other = _objectWithoutPropertiesLoose(props, _excluded);
41
- const ownerState = _extends({}, props);
33
+ children,
34
+ className,
35
+ value,
36
+ ...other
37
+ } = props;
38
+ const ownerState = {
39
+ ...props
40
+ };
42
41
  const classes = useUtilityClasses(ownerState);
43
42
  const context = useTabContext();
44
43
  if (context === null) {
@@ -46,17 +45,17 @@ const TabPanel = /*#__PURE__*/React.forwardRef(function TabPanel(inProps, ref) {
46
45
  }
47
46
  const id = getPanelId(context, value);
48
47
  const tabId = getTabId(context, value);
49
- return /*#__PURE__*/_jsx(TabPanelRoot, _extends({
48
+ return /*#__PURE__*/_jsx(TabPanelRoot, {
50
49
  "aria-labelledby": tabId,
51
50
  className: clsx(classes.root, className),
52
51
  hidden: value !== context.value,
53
52
  id: id,
54
53
  ref: ref,
55
54
  role: "tabpanel",
56
- ownerState: ownerState
57
- }, other, {
55
+ ownerState: ownerState,
56
+ ...other,
58
57
  children: value === context.value && children
59
- }));
58
+ });
60
59
  });
61
60
  process.env.NODE_ENV !== "production" ? TabPanel.propTypes /* remove-proptypes */ = {
62
61
  // ----------------------------- Warning --------------------------------
@@ -1,8 +1,8 @@
1
- export interface TabPanelClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export type TabPanelClassKey = keyof TabPanelClasses;
6
- export declare function getTabPanelUtilityClass(slot: string): string;
7
- declare const tabPanelClasses: TabPanelClasses;
8
- export default tabPanelClasses;
1
+ export interface TabPanelClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export type TabPanelClassKey = keyof TabPanelClasses;
6
+ export declare function getTabPanelUtilityClass(slot: string): string;
7
+ declare const tabPanelClasses: TabPanelClasses;
8
+ export default tabPanelClasses;
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
2
- type TimePickerComponent = (<TDate>(props: TimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
- propTypes?: any;
4
- };
5
- /**
6
- * @ignore - do not document.
7
- */
8
- declare const TimePicker: TimePickerComponent;
9
- export default TimePicker;
10
- export type TimePickerProps<TDate> = Record<any, any>;
1
+ import * as React from 'react';
2
+ type TimePickerComponent = (<TDate>(props: TimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
+ propTypes?: any;
4
+ };
5
+ /**
6
+ * @ignore - do not document.
7
+ */
8
+ declare const TimePicker: TimePickerComponent;
9
+ export default TimePicker;
10
+ export type TimePickerProps<TDate> = Record<any, any>;
@@ -1,2 +1,2 @@
1
- export { default } from './TimePicker';
2
- export * from './TimePicker';
1
+ export { default } from './TimePicker';
2
+ export * from './TimePicker';
@@ -1,59 +1,59 @@
1
- import * as React from 'react';
2
- import { SxProps } from '@mui/system';
3
- import { InternalStandardProps as StandardProps } from '@mui/material';
4
- import { Theme } from '@mui/material/styles';
5
- export type TimelineClassKey = keyof NonNullable<TimelineProps['classes']>;
6
- export interface TimelineProps extends StandardProps<React.HTMLAttributes<HTMLUListElement>> {
7
- /**
8
- * The position where the TimelineContent should appear relative to the time axis.
9
- * @default 'right'
10
- */
11
- position?: 'left' | 'right' | 'alternate';
12
- /**
13
- * The content of the component.
14
- */
15
- children?: React.ReactNode;
16
- /**
17
- * Override or extend the styles applied to the component.
18
- */
19
- classes?: {
20
- /** Styles applied to the root element. */
21
- root?: string;
22
- /** Styles applied to the root element if `position="left"`. */
23
- positionLeft?: string;
24
- /** Styles applied to the root element if `position="right"`. */
25
- positionRight?: string;
26
- /** Styles applied to the root element if `position="alternate"`. */
27
- positionAlternate?: string;
28
- };
29
- /**
30
- * className applied to the root element.
31
- */
32
- className?: string;
33
- /**
34
- * The system prop that allows defining system overrides as well as additional CSS styles.
35
- */
36
- sx?: SxProps<Theme>;
37
- }
38
- /**
39
- *
40
- * Demos:
41
- *
42
- * - [Timeline](https://mui.com/material-ui/react-timeline/)
43
- *
44
- * API:
45
- *
46
- * - [Timeline API](https://mui.com/material-ui/api/timeline/)
47
- */
48
- declare const Timeline: React.ForwardRefExoticComponent<TimelineProps & React.RefAttributes<HTMLUListElement>>;
49
- /**
50
- *
51
- * Demos:
52
- *
53
- * - [Timeline](https://mui.com/components/timeline/)
54
- *
55
- * API:
56
- *
57
- * - [Timeline API](https://mui.com/api/timeline/)
58
- */
59
- export default Timeline;
1
+ import * as React from 'react';
2
+ import { SxProps } from '@mui/system';
3
+ import { InternalStandardProps as StandardProps } from '@mui/material';
4
+ import { Theme } from '@mui/material/styles';
5
+ export type TimelineClassKey = keyof NonNullable<TimelineProps['classes']>;
6
+ export interface TimelineProps extends StandardProps<React.HTMLAttributes<HTMLUListElement>> {
7
+ /**
8
+ * The position where the TimelineContent should appear relative to the time axis.
9
+ * @default 'right'
10
+ */
11
+ position?: 'left' | 'right' | 'alternate';
12
+ /**
13
+ * The content of the component.
14
+ */
15
+ children?: React.ReactNode;
16
+ /**
17
+ * Override or extend the styles applied to the component.
18
+ */
19
+ classes?: {
20
+ /** Styles applied to the root element. */
21
+ root?: string;
22
+ /** Styles applied to the root element if `position="left"`. */
23
+ positionLeft?: string;
24
+ /** Styles applied to the root element if `position="right"`. */
25
+ positionRight?: string;
26
+ /** Styles applied to the root element if `position="alternate"`. */
27
+ positionAlternate?: string;
28
+ };
29
+ /**
30
+ * className applied to the root element.
31
+ */
32
+ className?: string;
33
+ /**
34
+ * The system prop that allows defining system overrides as well as additional CSS styles.
35
+ */
36
+ sx?: SxProps<Theme>;
37
+ }
38
+ /**
39
+ *
40
+ * Demos:
41
+ *
42
+ * - [Timeline](https://mui.com/material-ui/react-timeline/)
43
+ *
44
+ * API:
45
+ *
46
+ * - [Timeline API](https://mui.com/material-ui/api/timeline/)
47
+ */
48
+ declare const Timeline: React.ForwardRefExoticComponent<TimelineProps & React.RefAttributes<HTMLUListElement>>;
49
+ /**
50
+ *
51
+ * Demos:
52
+ *
53
+ * - [Timeline](https://mui.com/components/timeline/)
54
+ *
55
+ * API:
56
+ *
57
+ * - [Timeline API](https://mui.com/api/timeline/)
58
+ */
59
+ export default Timeline;
@@ -1,6 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["position", "className"];
4
1
  import * as React from 'react';
5
2
  import PropTypes from 'prop-types';
6
3
  import clsx from 'clsx';
@@ -55,26 +52,28 @@ const Timeline = /*#__PURE__*/React.forwardRef(function Timeline(inProps, ref) {
55
52
  name: 'MuiTimeline'
56
53
  });
57
54
  const {
58
- position = 'right',
59
- className
60
- } = props,
61
- other = _objectWithoutPropertiesLoose(props, _excluded);
62
- const ownerState = _extends({}, props, {
55
+ position = 'right',
56
+ className,
57
+ ...other
58
+ } = props;
59
+ const ownerState = {
60
+ ...props,
63
61
  position
64
- });
62
+ };
65
63
  const classes = useUtilityClasses(ownerState);
66
64
  const contextValue = React.useMemo(() => ({
67
65
  position
68
66
  }), [position]);
69
67
  return /*#__PURE__*/_jsx(TimelineContext.Provider, {
70
68
  value: contextValue,
71
- children: /*#__PURE__*/_jsx(TimelineRoot, _extends({
69
+ children: /*#__PURE__*/_jsx(TimelineRoot, {
72
70
  className: clsx(classes.root, className),
73
71
  ownerState: ownerState
74
72
  // @ts-expect-error TypeScript bug, need to keep unknown for DX
75
73
  ,
76
- ref: ref
77
- }, other))
74
+ ref: ref,
75
+ ...other
76
+ })
78
77
  });
79
78
  });
80
79
  process.env.NODE_ENV !== "production" ? Timeline.propTypes /* remove-proptypes */ = {
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
- /**
3
- * @ignore - internal component.
4
- */
5
- declare const TimelineContext: React.Context<{}>;
6
- export default TimelineContext;
1
+ import * as React from 'react';
2
+ /**
3
+ * @ignore - internal component.
4
+ */
5
+ declare const TimelineContext: React.Context<{}>;
6
+ export default TimelineContext;
@@ -1,5 +1,5 @@
1
- export { default } from './Timeline';
2
- export type TimelineClassKey = import('./Timeline').TimelineClassKey;
3
- export type TimelineProps = import('./Timeline').TimelineProps;
4
- export { default as timelineClasses } from './timelineClasses';
5
- export * from './timelineClasses';
1
+ export { default } from './Timeline';
2
+ export type TimelineClassKey = import('./Timeline').TimelineClassKey;
3
+ export type TimelineProps = import('./Timeline').TimelineProps;
4
+ export { default as timelineClasses } from './timelineClasses';
5
+ export * from './timelineClasses';
@@ -1,3 +1,3 @@
1
- export declare function getTimelineUtilityClass(slot: string): string;
2
- declare const timelineClasses: Record<"root" | "positionLeft" | "positionRight" | "positionAlternate", string>;
3
- export default timelineClasses;
1
+ export declare function getTimelineUtilityClass(slot: string): string;
2
+ declare const timelineClasses: Record<"root" | "positionLeft" | "positionRight" | "positionAlternate", string>;
3
+ export default timelineClasses;
@@ -1,6 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["className"];
4
1
  import * as React from 'react';
5
2
  import PropTypes from 'prop-types';
6
3
  import clsx from 'clsx';
@@ -36,16 +33,17 @@ const TimelineConnector = /*#__PURE__*/React.forwardRef(function TimelineConnect
36
33
  name: 'MuiTimelineConnector'
37
34
  });
38
35
  const {
39
- className
40
- } = props,
41
- other = _objectWithoutPropertiesLoose(props, _excluded);
36
+ className,
37
+ ...other
38
+ } = props;
42
39
  const ownerState = props;
43
40
  const classes = useUtilityClasses(ownerState);
44
- return /*#__PURE__*/_jsx(TimelineConnectorRoot, _extends({
41
+ return /*#__PURE__*/_jsx(TimelineConnectorRoot, {
45
42
  className: clsx(classes.root, className),
46
43
  ownerState: ownerState,
47
- ref: ref
48
- }, other));
44
+ ref: ref,
45
+ ...other
46
+ });
49
47
  });
50
48
  process.env.NODE_ENV !== "production" ? TimelineConnector.propTypes /* remove-proptypes */ = {
51
49
  // ----------------------------- Warning --------------------------------
@@ -1,8 +1,8 @@
1
- export interface TimelineConnectorClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export type TimelineConnectorClassKey = keyof TimelineConnectorClasses;
6
- export declare function getTimelineConnectorUtilityClass(slot: string): string;
7
- declare const timelineConnectorClasses: TimelineConnectorClasses;
8
- export default timelineConnectorClasses;
1
+ export interface TimelineConnectorClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export type TimelineConnectorClassKey = keyof TimelineConnectorClasses;
6
+ export declare function getTimelineConnectorUtilityClass(slot: string): string;
7
+ declare const timelineConnectorClasses: TimelineConnectorClasses;
8
+ export default timelineConnectorClasses;
@@ -1,6 +1,3 @@
1
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
- import _extends from "@babel/runtime/helpers/esm/extends";
3
- const _excluded = ["className"];
4
1
  import * as React from 'react';
5
2
  import PropTypes from 'prop-types';
6
3
  import clsx from 'clsx';
@@ -32,12 +29,13 @@ const TimelineContentRoot = styled(Typography, {
32
29
  }
33
30
  })(({
34
31
  ownerState
35
- }) => _extends({
32
+ }) => ({
36
33
  flex: 1,
37
34
  padding: '6px 16px',
38
- textAlign: 'left'
39
- }, ownerState.position === 'left' && {
40
- textAlign: 'right'
35
+ textAlign: 'left',
36
+ ...(ownerState.position === 'left' && {
37
+ textAlign: 'right'
38
+ })
41
39
  }));
42
40
  const TimelineContent = /*#__PURE__*/React.forwardRef(function TimelineContent(inProps, ref) {
43
41
  const props = useThemeProps({
@@ -45,22 +43,24 @@ const TimelineContent = /*#__PURE__*/React.forwardRef(function TimelineContent(i
45
43
  name: 'MuiTimelineContent'
46
44
  });
47
45
  const {
48
- className
49
- } = props,
50
- other = _objectWithoutPropertiesLoose(props, _excluded);
46
+ className,
47
+ ...other
48
+ } = props;
51
49
  const {
52
50
  position: positionContext
53
51
  } = React.useContext(TimelineContext);
54
- const ownerState = _extends({}, props, {
52
+ const ownerState = {
53
+ ...props,
55
54
  position: positionContext || 'right'
56
- });
55
+ };
57
56
  const classes = useUtilityClasses(ownerState);
58
- return /*#__PURE__*/_jsx(TimelineContentRoot, _extends({
57
+ return /*#__PURE__*/_jsx(TimelineContentRoot, {
59
58
  component: "div",
60
59
  className: clsx(classes.root, className),
61
60
  ownerState: ownerState,
62
- ref: ref
63
- }, other));
61
+ ref: ref,
62
+ ...other
63
+ });
64
64
  });
65
65
  process.env.NODE_ENV !== "production" ? TimelineContent.propTypes /* remove-proptypes */ = {
66
66
  // ----------------------------- Warning --------------------------------