@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.
- package/AdapterDateFns/AdapterDateFns.d.ts +3 -3
- package/AdapterDateFns/index.d.ts +1 -1
- package/AdapterDayjs/AdapterDayjs.d.ts +3 -3
- package/AdapterDayjs/index.d.ts +1 -1
- package/AdapterLuxon/AdapterLuxon.d.ts +3 -3
- package/AdapterLuxon/index.d.ts +1 -1
- package/AdapterMoment/AdapterMoment.d.ts +3 -3
- package/AdapterMoment/index.d.ts +1 -1
- package/Alert/Alert.js +4 -4
- package/AlertTitle/AlertTitle.js +4 -4
- package/Autocomplete/Autocomplete.js +4 -4
- package/AvatarGroup/AvatarGroup.js +4 -4
- package/CHANGELOG.md +124 -0
- package/CalendarPicker/CalendarPicker.d.ts +14 -14
- package/CalendarPicker/index.d.ts +2 -2
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +13 -13
- package/CalendarPickerSkeleton/index.d.ts +2 -2
- package/ClockPicker/ClockPicker.d.ts +14 -14
- package/ClockPicker/index.d.ts +2 -2
- package/DatePicker/DatePicker.d.ts +10 -10
- package/DatePicker/index.d.ts +2 -2
- package/DateRangePicker/DateRangePicker.d.ts +11 -11
- package/DateRangePicker/index.d.ts +2 -2
- package/DateRangePickerDay/DateRangePickerDay.d.ts +13 -13
- package/DateRangePickerDay/index.d.ts +2 -2
- package/DateTimePicker/DateTimePicker.d.ts +10 -10
- package/DateTimePicker/index.d.ts +2 -2
- package/DesktopDatePicker/DesktopDatePicker.d.ts +10 -10
- package/DesktopDatePicker/index.d.ts +2 -2
- package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +10 -10
- package/DesktopDateRangePicker/index.d.ts +2 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +10 -10
- package/DesktopDateTimePicker/index.d.ts +2 -2
- package/DesktopTimePicker/DesktopTimePicker.d.ts +10 -10
- package/DesktopTimePicker/index.d.ts +2 -2
- package/LoadingButton/LoadingButton.js +74 -62
- package/LoadingButton/loadingButtonClasses.d.ts +22 -22
- package/LocalizationProvider/LocalizationProvider.d.ts +10 -10
- package/LocalizationProvider/index.d.ts +2 -2
- package/Masonry/Masonry.js +34 -29
- package/Masonry/masonryClasses.d.ts +8 -8
- package/MobileDatePicker/MobileDatePicker.d.ts +10 -10
- package/MobileDatePicker/index.d.ts +2 -2
- package/MobileDateRangePicker/MobileDateRangePicker.d.ts +10 -10
- package/MobileDateRangePicker/index.d.ts +2 -2
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +10 -10
- package/MobileDateTimePicker/index.d.ts +2 -2
- package/MobileTimePicker/MobileTimePicker.d.ts +10 -10
- package/MobileTimePicker/index.d.ts +2 -2
- package/MonthPicker/MonthPicker.d.ts +13 -13
- package/MonthPicker/index.d.ts +2 -2
- package/Pagination/Pagination.js +4 -4
- package/PaginationItem/PaginationItem.js +4 -4
- package/PickersDay/PickersDay.d.ts +13 -13
- package/PickersDay/index.d.ts +2 -2
- package/Rating/Rating.js +4 -4
- package/Skeleton/Skeleton.js +4 -4
- package/SpeedDial/SpeedDial.js +4 -4
- package/SpeedDialAction/SpeedDialAction.js +4 -4
- package/SpeedDialIcon/SpeedDialIcon.js +4 -4
- package/StaticDatePicker/StaticDatePicker.d.ts +10 -10
- package/StaticDatePicker/index.d.ts +2 -2
- package/StaticDateRangePicker/StaticDateRangePicker.d.ts +10 -10
- package/StaticDateRangePicker/index.d.ts +2 -2
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +10 -10
- package/StaticDateTimePicker/index.d.ts +2 -2
- package/StaticTimePicker/StaticTimePicker.d.ts +10 -10
- package/StaticTimePicker/index.d.ts +2 -2
- package/TabList/TabList.js +6 -8
- package/TabPanel/TabPanel.js +12 -13
- package/TabPanel/tabPanelClasses.d.ts +8 -8
- package/TimePicker/TimePicker.d.ts +10 -10
- package/TimePicker/index.d.ts +2 -2
- package/Timeline/Timeline.d.ts +59 -59
- package/Timeline/Timeline.js +11 -12
- package/Timeline/TimelineContext.d.ts +6 -6
- package/Timeline/index.d.ts +5 -5
- package/Timeline/timelineClasses.d.ts +3 -3
- package/TimelineConnector/TimelineConnector.js +7 -9
- package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
- package/TimelineContent/TimelineContent.js +15 -15
- package/TimelineContent/timelineContentClasses.d.ts +14 -14
- package/TimelineDot/TimelineDot.js +38 -31
- package/TimelineDot/timelineDotClasses.d.ts +24 -24
- package/TimelineItem/TimelineItem.js +33 -31
- package/TimelineItem/timelineItemClasses.d.ts +16 -16
- package/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
- package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
- package/TimelineSeparator/TimelineSeparator.js +7 -9
- package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
- package/ToggleButton/ToggleButton.js +4 -4
- package/ToggleButtonGroup/ToggleButtonGroup.js +4 -4
- package/TreeItem/TreeItem.js +37 -37
- package/TreeItem/TreeItemContent.js +15 -18
- package/TreeItem/treeItemClasses.d.ts +24 -24
- package/TreeView/TreeView.js +35 -33
- package/TreeView/descendants.js +13 -14
- package/TreeView/treeViewClasses.d.ts +8 -8
- package/YearPicker/YearPicker.d.ts +14 -14
- package/YearPicker/index.d.ts +2 -2
- package/index.js +1 -1
- package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
- package/internal/svg-icons/ArrowLeft.d.ts +7 -7
- package/internal/svg-icons/ArrowRight.d.ts +7 -7
- package/internal/svg-icons/Calendar.d.ts +7 -7
- package/internal/svg-icons/Clock.d.ts +7 -7
- package/internal/svg-icons/DateRange.d.ts +7 -7
- package/internal/svg-icons/Pen.d.ts +7 -7
- package/internal/svg-icons/Time.d.ts +7 -7
- package/legacy/Alert/Alert.js +4 -2
- package/legacy/AlertTitle/AlertTitle.js +4 -2
- package/legacy/Autocomplete/Autocomplete.js +4 -2
- package/legacy/AvatarGroup/AvatarGroup.js +4 -2
- package/legacy/LoadingButton/LoadingButton.js +16 -15
- package/legacy/Masonry/Masonry.js +10 -8
- package/legacy/Pagination/Pagination.js +4 -2
- package/legacy/PaginationItem/PaginationItem.js +4 -2
- package/legacy/Rating/Rating.js +4 -2
- package/legacy/Skeleton/Skeleton.js +4 -2
- package/legacy/SpeedDial/SpeedDial.js +4 -2
- package/legacy/SpeedDialAction/SpeedDialAction.js +4 -2
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +4 -2
- package/legacy/TabList/TabList.js +4 -2
- package/legacy/TabPanel/TabPanel.js +6 -4
- package/legacy/Timeline/Timeline.js +5 -3
- package/legacy/TimelineConnector/TimelineConnector.js +4 -2
- package/legacy/TimelineContent/TimelineContent.js +6 -4
- package/legacy/TimelineDot/TimelineDot.js +10 -8
- package/legacy/TimelineItem/TimelineItem.js +7 -6
- package/legacy/TimelineOppositeContent/TimelineOppositeContent.js +6 -4
- package/legacy/TimelineSeparator/TimelineSeparator.js +4 -2
- package/legacy/ToggleButton/ToggleButton.js +4 -2
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +4 -2
- package/legacy/TreeItem/TreeItem.js +9 -8
- package/legacy/TreeItem/TreeItemContent.js +5 -3
- package/legacy/TreeView/TreeView.js +8 -6
- package/legacy/TreeView/descendants.js +6 -4
- package/legacy/index.js +1 -1
- package/modern/Alert/Alert.js +4 -4
- package/modern/AlertTitle/AlertTitle.js +4 -4
- package/modern/Autocomplete/Autocomplete.js +4 -4
- package/modern/AvatarGroup/AvatarGroup.js +4 -4
- package/modern/LoadingButton/LoadingButton.js +74 -62
- package/modern/Masonry/Masonry.js +34 -29
- package/modern/Pagination/Pagination.js +4 -4
- package/modern/PaginationItem/PaginationItem.js +4 -4
- package/modern/Rating/Rating.js +4 -4
- package/modern/Skeleton/Skeleton.js +4 -4
- package/modern/SpeedDial/SpeedDial.js +4 -4
- package/modern/SpeedDialAction/SpeedDialAction.js +4 -4
- package/modern/SpeedDialIcon/SpeedDialIcon.js +4 -4
- package/modern/TabList/TabList.js +6 -8
- package/modern/TabPanel/TabPanel.js +12 -13
- package/modern/Timeline/Timeline.js +11 -12
- package/modern/TimelineConnector/TimelineConnector.js +7 -9
- package/modern/TimelineContent/TimelineContent.js +15 -15
- package/modern/TimelineDot/TimelineDot.js +38 -31
- package/modern/TimelineItem/TimelineItem.js +33 -31
- package/modern/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
- package/modern/TimelineSeparator/TimelineSeparator.js +7 -9
- package/modern/ToggleButton/ToggleButton.js +4 -4
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +4 -4
- package/modern/TreeItem/TreeItem.js +37 -37
- package/modern/TreeItem/TreeItemContent.js +15 -18
- package/modern/TreeView/TreeView.js +35 -33
- package/modern/TreeView/descendants.js +13 -14
- package/modern/index.js +1 -1
- package/node/Alert/Alert.js +4 -4
- package/node/AlertTitle/AlertTitle.js +4 -4
- package/node/Autocomplete/Autocomplete.js +4 -4
- package/node/AvatarGroup/AvatarGroup.js +4 -4
- package/node/LoadingButton/LoadingButton.js +74 -62
- package/node/Masonry/Masonry.js +34 -29
- package/node/Pagination/Pagination.js +4 -4
- package/node/PaginationItem/PaginationItem.js +4 -4
- package/node/Rating/Rating.js +4 -4
- package/node/Skeleton/Skeleton.js +4 -4
- package/node/SpeedDial/SpeedDial.js +4 -4
- package/node/SpeedDialAction/SpeedDialAction.js +4 -4
- package/node/SpeedDialIcon/SpeedDialIcon.js +4 -4
- package/node/TabList/TabList.js +6 -8
- package/node/TabPanel/TabPanel.js +12 -13
- package/node/Timeline/Timeline.js +13 -12
- package/node/TimelineConnector/TimelineConnector.js +7 -9
- package/node/TimelineContent/TimelineContent.js +15 -15
- package/node/TimelineDot/TimelineDot.js +38 -31
- package/node/TimelineItem/TimelineItem.js +33 -31
- package/node/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
- package/node/TimelineSeparator/TimelineSeparator.js +7 -9
- package/node/ToggleButton/ToggleButton.js +4 -4
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +4 -4
- package/node/TreeItem/TreeItem.js +37 -37
- package/node/TreeItem/TreeItemContent.js +18 -22
- package/node/TreeView/TreeView.js +35 -33
- package/node/TreeView/descendants.js +16 -16
- package/node/index.js +1 -1
- package/package.json +4 -4
package/Skeleton/Skeleton.js
CHANGED
|
@@ -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,
|
|
16
|
-
ref: ref
|
|
17
|
-
|
|
14
|
+
return /*#__PURE__*/_jsx(Skeleton, {
|
|
15
|
+
ref: ref,
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
18
18
|
});
|
package/SpeedDial/SpeedDial.js
CHANGED
|
@@ -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,
|
|
16
|
-
ref: ref
|
|
17
|
-
|
|
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,
|
|
16
|
-
ref: ref
|
|
17
|
-
|
|
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,
|
|
16
|
-
ref: ref
|
|
17
|
-
|
|
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';
|
package/TabList/TabList.js
CHANGED
|
@@ -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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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,
|
|
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 --------------------------------
|
package/TabPanel/TabPanel.js
CHANGED
|
@@ -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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const ownerState =
|
|
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,
|
|
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
|
-
|
|
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>;
|
package/TimePicker/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './TimePicker';
|
|
2
|
-
export * from './TimePicker';
|
|
1
|
+
export { default } from './TimePicker';
|
|
2
|
+
export * from './TimePicker';
|
package/Timeline/Timeline.d.ts
CHANGED
|
@@ -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;
|
package/Timeline/Timeline.js
CHANGED
|
@@ -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
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
const ownerState =
|
|
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,
|
|
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
|
-
|
|
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;
|
package/Timeline/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
className,
|
|
37
|
+
...other
|
|
38
|
+
} = props;
|
|
42
39
|
const ownerState = props;
|
|
43
40
|
const classes = useUtilityClasses(ownerState);
|
|
44
|
-
return /*#__PURE__*/_jsx(TimelineConnectorRoot,
|
|
41
|
+
return /*#__PURE__*/_jsx(TimelineConnectorRoot, {
|
|
45
42
|
className: clsx(classes.root, className),
|
|
46
43
|
ownerState: ownerState,
|
|
47
|
-
ref: ref
|
|
48
|
-
|
|
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
|
-
}) =>
|
|
32
|
+
}) => ({
|
|
36
33
|
flex: 1,
|
|
37
34
|
padding: '6px 16px',
|
|
38
|
-
textAlign: 'left'
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
46
|
+
className,
|
|
47
|
+
...other
|
|
48
|
+
} = props;
|
|
51
49
|
const {
|
|
52
50
|
position: positionContext
|
|
53
51
|
} = React.useContext(TimelineContext);
|
|
54
|
-
const ownerState =
|
|
52
|
+
const ownerState = {
|
|
53
|
+
...props,
|
|
55
54
|
position: positionContext || 'right'
|
|
56
|
-
}
|
|
55
|
+
};
|
|
57
56
|
const classes = useUtilityClasses(ownerState);
|
|
58
|
-
return /*#__PURE__*/_jsx(TimelineContentRoot,
|
|
57
|
+
return /*#__PURE__*/_jsx(TimelineContentRoot, {
|
|
59
58
|
component: "div",
|
|
60
59
|
className: clsx(classes.root, className),
|
|
61
60
|
ownerState: ownerState,
|
|
62
|
-
ref: ref
|
|
63
|
-
|
|
61
|
+
ref: ref,
|
|
62
|
+
...other
|
|
63
|
+
});
|
|
64
64
|
});
|
|
65
65
|
process.env.NODE_ENV !== "production" ? TimelineContent.propTypes /* remove-proptypes */ = {
|
|
66
66
|
// ----------------------------- Warning --------------------------------
|