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

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 +41 -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 +62 -74
  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 +29 -34
  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 +8 -6
  70. package/TabPanel/TabPanel.js +13 -12
  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 +12 -11
  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 +9 -7
  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 +31 -38
  84. package/TimelineDot/timelineDotClasses.d.ts +24 -24
  85. package/TimelineItem/TimelineItem.js +31 -33
  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 +9 -7
  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 +18 -15
  95. package/TreeItem/treeItemClasses.d.ts +24 -24
  96. package/TreeView/TreeView.js +33 -35
  97. package/TreeView/descendants.js +14 -13
  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 +2 -4
  111. package/legacy/AlertTitle/AlertTitle.js +2 -4
  112. package/legacy/Autocomplete/Autocomplete.js +2 -4
  113. package/legacy/AvatarGroup/AvatarGroup.js +2 -4
  114. package/legacy/LoadingButton/LoadingButton.js +15 -16
  115. package/legacy/Masonry/Masonry.js +8 -10
  116. package/legacy/Pagination/Pagination.js +2 -4
  117. package/legacy/PaginationItem/PaginationItem.js +2 -4
  118. package/legacy/Rating/Rating.js +2 -4
  119. package/legacy/Skeleton/Skeleton.js +2 -4
  120. package/legacy/SpeedDial/SpeedDial.js +2 -4
  121. package/legacy/SpeedDialAction/SpeedDialAction.js +2 -4
  122. package/legacy/SpeedDialIcon/SpeedDialIcon.js +2 -4
  123. package/legacy/TabList/TabList.js +2 -4
  124. package/legacy/TabPanel/TabPanel.js +4 -6
  125. package/legacy/Timeline/Timeline.js +3 -5
  126. package/legacy/TimelineConnector/TimelineConnector.js +2 -4
  127. package/legacy/TimelineContent/TimelineContent.js +4 -6
  128. package/legacy/TimelineDot/TimelineDot.js +8 -10
  129. package/legacy/TimelineItem/TimelineItem.js +6 -7
  130. package/legacy/TimelineOppositeContent/TimelineOppositeContent.js +4 -6
  131. package/legacy/TimelineSeparator/TimelineSeparator.js +2 -4
  132. package/legacy/ToggleButton/ToggleButton.js +2 -4
  133. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +2 -4
  134. package/legacy/TreeItem/TreeItem.js +8 -9
  135. package/legacy/TreeItem/TreeItemContent.js +3 -5
  136. package/legacy/TreeView/TreeView.js +6 -8
  137. package/legacy/TreeView/descendants.js +4 -6
  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 +62 -74
  144. package/modern/Masonry/Masonry.js +29 -34
  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 +8 -6
  153. package/modern/TabPanel/TabPanel.js +13 -12
  154. package/modern/Timeline/Timeline.js +12 -11
  155. package/modern/TimelineConnector/TimelineConnector.js +9 -7
  156. package/modern/TimelineContent/TimelineContent.js +15 -15
  157. package/modern/TimelineDot/TimelineDot.js +31 -38
  158. package/modern/TimelineItem/TimelineItem.js +31 -33
  159. package/modern/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
  160. package/modern/TimelineSeparator/TimelineSeparator.js +9 -7
  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 +18 -15
  165. package/modern/TreeView/TreeView.js +33 -35
  166. package/modern/TreeView/descendants.js +14 -13
  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 +62 -74
  173. package/node/Masonry/Masonry.js +29 -34
  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 +8 -6
  182. package/node/TabPanel/TabPanel.js +13 -12
  183. package/node/Timeline/Timeline.js +12 -13
  184. package/node/TimelineConnector/TimelineConnector.js +9 -7
  185. package/node/TimelineContent/TimelineContent.js +15 -15
  186. package/node/TimelineDot/TimelineDot.js +31 -38
  187. package/node/TimelineItem/TimelineItem.js +31 -33
  188. package/node/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
  189. package/node/TimelineSeparator/TimelineSeparator.js +9 -7
  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 +22 -18
  194. package/node/TreeView/TreeView.js +33 -35
  195. package/node/TreeView/descendants.js +16 -16
  196. package/node/index.js +1 -1
  197. package/package.json +3 -3
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import * as React from 'react';
2
3
  import Skeleton from '@mui/material/Skeleton';
3
4
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -11,8 +12,7 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSkeleton(props,
11
12
  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'));
12
13
  warnedOnce = true;
13
14
  }
14
- return /*#__PURE__*/_jsx(Skeleton, {
15
- ref: ref,
16
- ...props
17
- });
15
+ return /*#__PURE__*/_jsx(Skeleton, _extends({
16
+ ref: ref
17
+ }, props));
18
18
  });
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import * as React from 'react';
2
3
  import SpeedDial from '@mui/material/SpeedDial';
3
4
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -11,8 +12,7 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDial(props,
11
12
  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'));
12
13
  warnedOnce = true;
13
14
  }
14
- return /*#__PURE__*/_jsx(SpeedDial, {
15
- ref: ref,
16
- ...props
17
- });
15
+ return /*#__PURE__*/_jsx(SpeedDial, _extends({
16
+ ref: ref
17
+ }, props));
18
18
  });
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import * as React from 'react';
2
3
  import SpeedDialAction from '@mui/material/SpeedDialAction';
3
4
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -11,8 +12,7 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialAction(
11
12
  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'));
12
13
  warnedOnce = true;
13
14
  }
14
- return /*#__PURE__*/_jsx(SpeedDialAction, {
15
- ref: ref,
16
- ...props
17
- });
15
+ return /*#__PURE__*/_jsx(SpeedDialAction, _extends({
16
+ ref: ref
17
+ }, props));
18
18
  });
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import * as React from 'react';
2
3
  import SpeedDialIcon from '@mui/material/SpeedDialIcon';
3
4
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -11,8 +12,7 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialIcon(pr
11
12
  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'));
12
13
  warnedOnce = true;
13
14
  }
14
- return /*#__PURE__*/_jsx(SpeedDialIcon, {
15
- ref: ref,
16
- ...props
17
- });
15
+ return /*#__PURE__*/_jsx(SpeedDialIcon, _extends({
16
+ ref: ref
17
+ }, props));
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,3 +1,6 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ const _excluded = ["children"];
1
4
  import * as React from 'react';
2
5
  import PropTypes from 'prop-types';
3
6
  import Tabs from '@mui/material/Tabs';
@@ -5,9 +8,9 @@ import { useTabContext, getTabId, getPanelId } from '../TabContext';
5
8
  import { jsx as _jsx } from "react/jsx-runtime";
6
9
  const TabList = /*#__PURE__*/React.forwardRef(function TabList(props, ref) {
7
10
  const {
8
- children: childrenProp,
9
- ...other
10
- } = props;
11
+ children: childrenProp
12
+ } = props,
13
+ other = _objectWithoutPropertiesLoose(props, _excluded);
11
14
  const context = useTabContext();
12
15
  if (context === null) {
13
16
  throw new TypeError('No TabContext provided');
@@ -22,12 +25,11 @@ const TabList = /*#__PURE__*/React.forwardRef(function TabList(props, ref) {
22
25
  id: getTabId(context, child.props.value)
23
26
  });
24
27
  });
25
- return /*#__PURE__*/_jsx(Tabs, {
26
- ...other,
28
+ return /*#__PURE__*/_jsx(Tabs, _extends({}, other, {
27
29
  ref: ref,
28
30
  value: context.value,
29
31
  children: children
30
- });
32
+ }));
31
33
  });
32
34
  process.env.NODE_ENV !== "production" ? TabList.propTypes /* remove-proptypes */ = {
33
35
  // ----------------------------- Warning --------------------------------
@@ -1,3 +1,6 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ const _excluded = ["children", "className", "value"];
1
4
  import * as React from 'react';
2
5
  import PropTypes from 'prop-types';
3
6
  import clsx from 'clsx';
@@ -30,14 +33,12 @@ const TabPanel = /*#__PURE__*/React.forwardRef(function TabPanel(inProps, ref) {
30
33
  name: 'MuiTabPanel'
31
34
  });
32
35
  const {
33
- children,
34
- className,
35
- value,
36
- ...other
37
- } = props;
38
- const ownerState = {
39
- ...props
40
- };
36
+ children,
37
+ className,
38
+ value
39
+ } = props,
40
+ other = _objectWithoutPropertiesLoose(props, _excluded);
41
+ const ownerState = _extends({}, props);
41
42
  const classes = useUtilityClasses(ownerState);
42
43
  const context = useTabContext();
43
44
  if (context === null) {
@@ -45,17 +46,17 @@ const TabPanel = /*#__PURE__*/React.forwardRef(function TabPanel(inProps, ref) {
45
46
  }
46
47
  const id = getPanelId(context, value);
47
48
  const tabId = getTabId(context, value);
48
- return /*#__PURE__*/_jsx(TabPanelRoot, {
49
+ return /*#__PURE__*/_jsx(TabPanelRoot, _extends({
49
50
  "aria-labelledby": tabId,
50
51
  className: clsx(classes.root, className),
51
52
  hidden: value !== context.value,
52
53
  id: id,
53
54
  ref: ref,
54
55
  role: "tabpanel",
55
- ownerState: ownerState,
56
- ...other,
56
+ ownerState: ownerState
57
+ }, other, {
57
58
  children: value === context.value && children
58
- });
59
+ }));
59
60
  });
60
61
  process.env.NODE_ENV !== "production" ? TabPanel.propTypes /* remove-proptypes */ = {
61
62
  // ----------------------------- 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,3 +1,6 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ const _excluded = ["position", "className"];
1
4
  import * as React from 'react';
2
5
  import PropTypes from 'prop-types';
3
6
  import clsx from 'clsx';
@@ -52,28 +55,26 @@ const Timeline = /*#__PURE__*/React.forwardRef(function Timeline(inProps, ref) {
52
55
  name: 'MuiTimeline'
53
56
  });
54
57
  const {
55
- position = 'right',
56
- className,
57
- ...other
58
- } = props;
59
- const ownerState = {
60
- ...props,
58
+ position = 'right',
59
+ className
60
+ } = props,
61
+ other = _objectWithoutPropertiesLoose(props, _excluded);
62
+ const ownerState = _extends({}, props, {
61
63
  position
62
- };
64
+ });
63
65
  const classes = useUtilityClasses(ownerState);
64
66
  const contextValue = React.useMemo(() => ({
65
67
  position
66
68
  }), [position]);
67
69
  return /*#__PURE__*/_jsx(TimelineContext.Provider, {
68
70
  value: contextValue,
69
- children: /*#__PURE__*/_jsx(TimelineRoot, {
71
+ children: /*#__PURE__*/_jsx(TimelineRoot, _extends({
70
72
  className: clsx(classes.root, className),
71
73
  ownerState: ownerState
72
74
  // @ts-expect-error TypeScript bug, need to keep unknown for DX
73
75
  ,
74
- ref: ref,
75
- ...other
76
- })
76
+ ref: ref
77
+ }, other))
77
78
  });
78
79
  });
79
80
  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,3 +1,6 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ const _excluded = ["className"];
1
4
  import * as React from 'react';
2
5
  import PropTypes from 'prop-types';
3
6
  import clsx from 'clsx';
@@ -33,17 +36,16 @@ const TimelineConnector = /*#__PURE__*/React.forwardRef(function TimelineConnect
33
36
  name: 'MuiTimelineConnector'
34
37
  });
35
38
  const {
36
- className,
37
- ...other
38
- } = props;
39
+ className
40
+ } = props,
41
+ other = _objectWithoutPropertiesLoose(props, _excluded);
39
42
  const ownerState = props;
40
43
  const classes = useUtilityClasses(ownerState);
41
- return /*#__PURE__*/_jsx(TimelineConnectorRoot, {
44
+ return /*#__PURE__*/_jsx(TimelineConnectorRoot, _extends({
42
45
  className: clsx(classes.root, className),
43
46
  ownerState: ownerState,
44
- ref: ref,
45
- ...other
46
- });
47
+ ref: ref
48
+ }, other));
47
49
  });
48
50
  process.env.NODE_ENV !== "production" ? TimelineConnector.propTypes /* remove-proptypes */ = {
49
51
  // ----------------------------- 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,3 +1,6 @@
1
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
+ import _extends from "@babel/runtime/helpers/esm/extends";
3
+ const _excluded = ["className"];
1
4
  import * as React from 'react';
2
5
  import PropTypes from 'prop-types';
3
6
  import clsx from 'clsx';
@@ -29,13 +32,12 @@ const TimelineContentRoot = styled(Typography, {
29
32
  }
30
33
  })(({
31
34
  ownerState
32
- }) => ({
35
+ }) => _extends({
33
36
  flex: 1,
34
37
  padding: '6px 16px',
35
- textAlign: 'left',
36
- ...(ownerState.position === 'left' && {
37
- textAlign: 'right'
38
- })
38
+ textAlign: 'left'
39
+ }, ownerState.position === 'left' && {
40
+ textAlign: 'right'
39
41
  }));
40
42
  const TimelineContent = /*#__PURE__*/React.forwardRef(function TimelineContent(inProps, ref) {
41
43
  const props = useThemeProps({
@@ -43,24 +45,22 @@ const TimelineContent = /*#__PURE__*/React.forwardRef(function TimelineContent(i
43
45
  name: 'MuiTimelineContent'
44
46
  });
45
47
  const {
46
- className,
47
- ...other
48
- } = props;
48
+ className
49
+ } = props,
50
+ other = _objectWithoutPropertiesLoose(props, _excluded);
49
51
  const {
50
52
  position: positionContext
51
53
  } = React.useContext(TimelineContext);
52
- const ownerState = {
53
- ...props,
54
+ const ownerState = _extends({}, props, {
54
55
  position: positionContext || 'right'
55
- };
56
+ });
56
57
  const classes = useUtilityClasses(ownerState);
57
- return /*#__PURE__*/_jsx(TimelineContentRoot, {
58
+ return /*#__PURE__*/_jsx(TimelineContentRoot, _extends({
58
59
  component: "div",
59
60
  className: clsx(classes.root, className),
60
61
  ownerState: ownerState,
61
- ref: ref,
62
- ...other
63
- });
62
+ ref: ref
63
+ }, other));
64
64
  });
65
65
  process.env.NODE_ENV !== "production" ? TimelineContent.propTypes /* remove-proptypes */ = {
66
66
  // ----------------------------- Warning --------------------------------