@mui/lab 6.0.0-alpha.7 → 6.0.0-alpha.9
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/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 +113 -2
- package/CalendarPicker/CalendarPicker.d.ts +1 -1
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +1 -1
- package/ClockPicker/ClockPicker.d.ts +1 -1
- package/DatePicker/DatePicker.d.ts +1 -1
- package/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/DateRangePickerDay/DateRangePickerDay.d.ts +1 -1
- package/DateTimePicker/DateTimePicker.d.ts +1 -1
- package/DesktopDatePicker/DesktopDatePicker.d.ts +1 -1
- package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +1 -1
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +1 -1
- package/DesktopTimePicker/DesktopTimePicker.d.ts +1 -1
- package/LoadingButton/LoadingButton.js +21 -19
- package/LocalizationProvider/LocalizationProvider.d.ts +1 -1
- package/Masonry/Masonry.js +35 -30
- package/MobileDatePicker/MobileDatePicker.d.ts +1 -1
- package/MobileDateRangePicker/MobileDateRangePicker.d.ts +1 -1
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +1 -1
- package/MobileTimePicker/MobileTimePicker.d.ts +1 -1
- package/MonthPicker/MonthPicker.d.ts +1 -1
- package/Pagination/Pagination.js +4 -4
- package/PaginationItem/PaginationItem.js +4 -4
- package/PickersDay/PickersDay.d.ts +1 -1
- 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 +1 -1
- package/StaticDateRangePicker/StaticDateRangePicker.d.ts +1 -1
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +1 -1
- package/StaticTimePicker/StaticTimePicker.d.ts +1 -1
- package/TabContext/TabContext.d.ts +1 -1
- package/TabList/TabList.js +6 -8
- package/TabPanel/TabPanel.d.ts +1 -1
- package/TabPanel/TabPanel.js +13 -14
- package/TimePicker/TimePicker.d.ts +1 -1
- package/Timeline/Timeline.js +11 -12
- package/TimelineConnector/TimelineConnector.d.ts +1 -1
- package/TimelineConnector/TimelineConnector.js +7 -9
- package/TimelineContent/TimelineContent.d.ts +1 -1
- package/TimelineContent/TimelineContent.js +15 -15
- package/TimelineDot/TimelineDot.d.ts +1 -1
- package/TimelineDot/TimelineDot.js +38 -31
- package/TimelineItem/TimelineItem.d.ts +1 -1
- package/TimelineItem/TimelineItem.js +33 -31
- package/TimelineOppositeContent/TimelineOppositeContent.d.ts +3 -1
- package/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
- package/TimelineSeparator/TimelineSeparator.d.ts +1 -1
- package/TimelineSeparator/TimelineSeparator.js +7 -9
- package/ToggleButton/ToggleButton.js +4 -4
- package/ToggleButtonGroup/ToggleButtonGroup.js +4 -4
- package/TreeItem/TreeItem.d.ts +1 -1
- package/TreeView/TreeView.d.ts +1 -1
- package/YearPicker/YearPicker.d.ts +1 -1
- package/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 +21 -19
- package/modern/Masonry/Masonry.js +35 -30
- 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 +13 -14
- 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/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 +21 -19
- package/node/Masonry/Masonry.js +35 -30
- 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 +13 -14
- package/node/Timeline/Timeline.js +11 -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/index.js +1 -1
- package/package.json +7 -7
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
-
const _excluded = ["className"];
|
|
6
3
|
import * as React from 'react';
|
|
7
4
|
import PropTypes from 'prop-types';
|
|
8
5
|
import clsx from 'clsx';
|
|
@@ -34,13 +31,14 @@ const TimelineOppositeContentRoot = styled(Typography, {
|
|
|
34
31
|
}
|
|
35
32
|
})(({
|
|
36
33
|
ownerState
|
|
37
|
-
}) =>
|
|
34
|
+
}) => ({
|
|
38
35
|
padding: '6px 16px',
|
|
39
36
|
marginRight: 'auto',
|
|
40
37
|
textAlign: 'right',
|
|
41
|
-
flex: 1
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
flex: 1,
|
|
39
|
+
...(ownerState.position === 'left' && {
|
|
40
|
+
textAlign: 'left'
|
|
41
|
+
})
|
|
44
42
|
}));
|
|
45
43
|
const TimelineOppositeContent = /*#__PURE__*/React.forwardRef(function TimelineOppositeContent(inProps, ref) {
|
|
46
44
|
const props = useThemeProps({
|
|
@@ -48,22 +46,24 @@ const TimelineOppositeContent = /*#__PURE__*/React.forwardRef(function TimelineO
|
|
|
48
46
|
name: 'MuiTimelineOppositeContent'
|
|
49
47
|
});
|
|
50
48
|
const {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
className,
|
|
50
|
+
...other
|
|
51
|
+
} = props;
|
|
54
52
|
const {
|
|
55
53
|
position: positionContext
|
|
56
54
|
} = React.useContext(TimelineContext);
|
|
57
|
-
const ownerState =
|
|
55
|
+
const ownerState = {
|
|
56
|
+
...props,
|
|
58
57
|
position: positionContext || 'left'
|
|
59
|
-
}
|
|
58
|
+
};
|
|
60
59
|
const classes = useUtilityClasses(ownerState);
|
|
61
|
-
return /*#__PURE__*/_jsx(TimelineOppositeContentRoot,
|
|
60
|
+
return /*#__PURE__*/_jsx(TimelineOppositeContentRoot, {
|
|
62
61
|
component: "div",
|
|
63
62
|
className: clsx(classes.root, className),
|
|
64
63
|
ownerState: ownerState,
|
|
65
|
-
ref: ref
|
|
66
|
-
|
|
64
|
+
ref: ref,
|
|
65
|
+
...other
|
|
66
|
+
});
|
|
67
67
|
});
|
|
68
68
|
process.env.NODE_ENV !== "production" ? TimelineOppositeContent.propTypes /* remove-proptypes */ = {
|
|
69
69
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -30,4 +30,4 @@ export interface TimelineSeparatorProps
|
|
|
30
30
|
*
|
|
31
31
|
* - [TimelineSeparator API](https://mui.com/material-ui/api/timeline-separator/)
|
|
32
32
|
*/
|
|
33
|
-
export default function TimelineSeparator(props: TimelineSeparatorProps): JSX.Element;
|
|
33
|
+
export default function TimelineSeparator(props: TimelineSeparatorProps): React.JSX.Element;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["className"];
|
|
6
3
|
import * as React from 'react';
|
|
7
4
|
import PropTypes from 'prop-types';
|
|
8
5
|
import clsx from 'clsx';
|
|
@@ -35,16 +32,17 @@ const TimelineSeparator = /*#__PURE__*/React.forwardRef(function TimelineSeparat
|
|
|
35
32
|
name: 'MuiTimelineSeparator'
|
|
36
33
|
});
|
|
37
34
|
const {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
className,
|
|
36
|
+
...other
|
|
37
|
+
} = props;
|
|
41
38
|
const ownerState = props;
|
|
42
39
|
const classes = useUtilityClasses(ownerState);
|
|
43
|
-
return /*#__PURE__*/_jsx(TimelineSeparatorRoot,
|
|
40
|
+
return /*#__PURE__*/_jsx(TimelineSeparatorRoot, {
|
|
44
41
|
className: clsx(classes.root, className),
|
|
45
42
|
ownerState: ownerState,
|
|
46
|
-
ref: ref
|
|
47
|
-
|
|
43
|
+
ref: ref,
|
|
44
|
+
...other
|
|
45
|
+
});
|
|
48
46
|
});
|
|
49
47
|
process.env.NODE_ENV !== "production" ? TimelineSeparator.propTypes /* remove-proptypes */ = {
|
|
50
48
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import ToggleButton from '@mui/material/ToggleButton';
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedToggleButton(pro
|
|
|
14
13
|
console.warn(['MUI: The ToggleButton component was moved from the lab to the core.', '', "You should use `import { ToggleButton } from '@mui/material'`", "or `import ToggleButton from '@mui/material/ToggleButton'`"].join('\n'));
|
|
15
14
|
warnedOnce = true;
|
|
16
15
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(ToggleButton,
|
|
18
|
-
ref: ref
|
|
19
|
-
|
|
16
|
+
return /*#__PURE__*/_jsx(ToggleButton, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
20
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import ToggleButtonGroup from '@mui/material/ToggleButtonGroup';
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedToggleButtonGrou
|
|
|
14
13
|
console.warn(['MUI: The ToggleButtonGroup component was moved from the lab to the core.', '', "You should use `import { ToggleButtonGroup } from '@mui/material'`", "or `import ToggleButtonGroup from '@mui/material/ToggleButtonGroup'`"].join('\n'));
|
|
15
14
|
warnedOnce = true;
|
|
16
15
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(ToggleButtonGroup,
|
|
18
|
-
ref: ref
|
|
19
|
-
|
|
16
|
+
return /*#__PURE__*/_jsx(ToggleButtonGroup, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
20
|
});
|
package/TreeItem/TreeItem.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
type TreeItemComponent = ((props: TreeItemProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
2
|
+
type TreeItemComponent = ((props: TreeItemProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
package/TreeView/TreeView.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
type TreeViewComponent<Multiple extends boolean | undefined = undefined> = ((props: TreeViewProps<Multiple> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
2
|
+
type TreeViewComponent<Multiple extends boolean | undefined = undefined> = ((props: TreeViewProps<Multiple> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
type YearPickerComponent = (<TDate>(props: YearPickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
2
|
+
type YearPickerComponent = (<TDate>(props: YearPickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
package/index.js
CHANGED
package/modern/Alert/Alert.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import Alert from '@mui/material/Alert';
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedAlert(props, ref
|
|
|
14
13
|
console.warn(['MUI: The Alert component was moved from the lab to the core.', '', "You should use `import { Alert } from '@mui/material'`", "or `import Alert from '@mui/material/Alert'`"].join('\n'));
|
|
15
14
|
warnedOnce = true;
|
|
16
15
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(Alert,
|
|
18
|
-
ref: ref
|
|
19
|
-
|
|
16
|
+
return /*#__PURE__*/_jsx(Alert, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
20
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import AlertTitle from '@mui/material/AlertTitle';
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedAlertTitle(props
|
|
|
14
13
|
console.warn(['MUI: The AlertTitle component was moved from the lab to the core.', '', "You should use `import { AlertTitle } from '@mui/material'`", "or `import AlertTitle from '@mui/material/AlertTitle'`"].join('\n'));
|
|
15
14
|
warnedOnce = true;
|
|
16
15
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(AlertTitle,
|
|
18
|
-
ref: ref
|
|
19
|
-
|
|
16
|
+
return /*#__PURE__*/_jsx(AlertTitle, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
20
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import Autocomplete from '@mui/material/Autocomplete';
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedAutocomplete(pro
|
|
|
14
13
|
console.warn(['MUI: The Autocomplete component was moved from the lab to the core.', '', "You should use `import { Autocomplete } from '@mui/material'`", "or `import Autocomplete from '@mui/material/Autocomplete'`"].join('\n'));
|
|
15
14
|
warnedOnce = true;
|
|
16
15
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(Autocomplete,
|
|
18
|
-
ref: ref
|
|
19
|
-
|
|
16
|
+
return /*#__PURE__*/_jsx(Autocomplete, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
20
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import AvatarGroup from '@mui/material/AvatarGroup';
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedAvatarGroup(prop
|
|
|
14
13
|
console.warn(['MUI: The AvatarGroup component was moved from the lab to the core.', '', "You should use `import { AvatarGroup } from '@mui/material'`", "or `import AvatarGroup from '@mui/material/AvatarGroup'`"].join('\n'));
|
|
15
14
|
warnedOnce = true;
|
|
16
15
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(AvatarGroup,
|
|
18
|
-
ref: ref
|
|
19
|
-
|
|
16
|
+
return /*#__PURE__*/_jsx(AvatarGroup, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
20
|
});
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
-
const _excluded = ["children", "disabled", "id", "loading", "loadingIndicator", "loadingPosition", "variant"];
|
|
6
3
|
import * as React from 'react';
|
|
7
4
|
import PropTypes from 'prop-types';
|
|
8
5
|
import { chainPropTypes } from '@mui/utils';
|
|
@@ -29,7 +26,11 @@ const useUtilityClasses = ownerState => {
|
|
|
29
26
|
loadingIndicator: ['loadingIndicator', loading && `loadingIndicator${capitalize(loadingPosition)}`]
|
|
30
27
|
};
|
|
31
28
|
const composedClasses = composeClasses(slots, getLoadingButtonUtilityClass, classes);
|
|
32
|
-
return
|
|
29
|
+
return {
|
|
30
|
+
...classes,
|
|
31
|
+
// forward the outlined, color, etc. classes to Button
|
|
32
|
+
...composedClasses
|
|
33
|
+
};
|
|
33
34
|
};
|
|
34
35
|
|
|
35
36
|
// TODO use `import rootShouldForwardProp from '../styles/rootShouldForwardProp';` once move to core
|
|
@@ -192,44 +193,45 @@ const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inPro
|
|
|
192
193
|
name: 'MuiLoadingButton'
|
|
193
194
|
});
|
|
194
195
|
const {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
196
|
+
children,
|
|
197
|
+
disabled = false,
|
|
198
|
+
id: idProp,
|
|
199
|
+
loading = false,
|
|
200
|
+
loadingIndicator: loadingIndicatorProp,
|
|
201
|
+
loadingPosition = 'center',
|
|
202
|
+
variant = 'text',
|
|
203
|
+
...other
|
|
204
|
+
} = props;
|
|
204
205
|
const id = useId(idProp);
|
|
205
206
|
const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/_jsx(CircularProgress, {
|
|
206
207
|
"aria-labelledby": id,
|
|
207
208
|
color: "inherit",
|
|
208
209
|
size: 16
|
|
209
210
|
});
|
|
210
|
-
const ownerState =
|
|
211
|
+
const ownerState = {
|
|
212
|
+
...props,
|
|
211
213
|
disabled,
|
|
212
214
|
loading,
|
|
213
215
|
loadingIndicator,
|
|
214
216
|
loadingPosition,
|
|
215
217
|
variant
|
|
216
|
-
}
|
|
218
|
+
};
|
|
217
219
|
const classes = useUtilityClasses(ownerState);
|
|
218
220
|
const loadingButtonLoadingIndicator = loading ? /*#__PURE__*/_jsx(LoadingButtonLoadingIndicator, {
|
|
219
221
|
className: classes.loadingIndicator,
|
|
220
222
|
ownerState: ownerState,
|
|
221
223
|
children: loadingIndicator
|
|
222
224
|
}) : null;
|
|
223
|
-
return /*#__PURE__*/_jsxs(LoadingButtonRoot,
|
|
225
|
+
return /*#__PURE__*/_jsxs(LoadingButtonRoot, {
|
|
224
226
|
disabled: disabled || loading,
|
|
225
227
|
id: id,
|
|
226
|
-
ref: ref
|
|
227
|
-
|
|
228
|
+
ref: ref,
|
|
229
|
+
...other,
|
|
228
230
|
variant: variant,
|
|
229
231
|
classes: classes,
|
|
230
232
|
ownerState: ownerState,
|
|
231
233
|
children: [ownerState.loadingPosition === 'end' ? children : loadingButtonLoadingIndicator, ownerState.loadingPosition === 'end' ? loadingButtonLoadingIndicator : children]
|
|
232
|
-
})
|
|
234
|
+
});
|
|
233
235
|
});
|
|
234
236
|
process.env.NODE_ENV !== "production" ? LoadingButton.propTypes /* remove-proptypes */ = {
|
|
235
237
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
-
const _excluded = ["children", "className", "component", "columns", "spacing", "sequential", "defaultColumns", "defaultHeight", "defaultSpacing"];
|
|
6
3
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
7
4
|
import * as ReactDOM from 'react-dom';
|
|
8
5
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
@@ -57,11 +54,16 @@ export const getStyle = ({
|
|
|
57
54
|
}
|
|
58
55
|
stylesSSR.height = ownerState.defaultHeight;
|
|
59
56
|
stylesSSR.margin = -(defaultSpacing / 2);
|
|
60
|
-
stylesSSR['& > *'] =
|
|
57
|
+
stylesSSR['& > *'] = {
|
|
58
|
+
...styles['& > *'],
|
|
59
|
+
...orderStyleSSR,
|
|
61
60
|
margin: defaultSpacing / 2,
|
|
62
61
|
width: `calc(${(100 / ownerState.defaultColumns).toFixed(2)}% - ${defaultSpacing}px)`
|
|
63
|
-
}
|
|
64
|
-
return
|
|
62
|
+
};
|
|
63
|
+
return {
|
|
64
|
+
...styles,
|
|
65
|
+
...stylesSSR
|
|
66
|
+
};
|
|
65
67
|
}
|
|
66
68
|
const spacingValues = resolveBreakpointValues({
|
|
67
69
|
values: ownerState.spacing,
|
|
@@ -77,14 +79,15 @@ export const getStyle = ({
|
|
|
77
79
|
} else {
|
|
78
80
|
spacing = propValue;
|
|
79
81
|
}
|
|
80
|
-
return
|
|
82
|
+
return {
|
|
81
83
|
margin: `calc(0px - (${spacing} / 2))`,
|
|
82
84
|
'& > *': {
|
|
83
85
|
margin: `calc(${spacing} / 2)`
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
},
|
|
87
|
+
...(ownerState.maxColumnHeight && {
|
|
88
|
+
height: typeof spacing === 'number' ? Math.ceil(ownerState.maxColumnHeight + parseToNumber(spacing)) : `calc(${ownerState.maxColumnHeight}px + ${spacing})`
|
|
89
|
+
})
|
|
90
|
+
};
|
|
88
91
|
};
|
|
89
92
|
styles = deepmerge(styles, handleBreakpoints({
|
|
90
93
|
theme
|
|
@@ -142,22 +145,23 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
142
145
|
name: 'MuiMasonry'
|
|
143
146
|
});
|
|
144
147
|
const {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
148
|
+
children,
|
|
149
|
+
className,
|
|
150
|
+
component = 'div',
|
|
151
|
+
columns = 4,
|
|
152
|
+
spacing = 1,
|
|
153
|
+
sequential = false,
|
|
154
|
+
defaultColumns,
|
|
155
|
+
defaultHeight,
|
|
156
|
+
defaultSpacing,
|
|
157
|
+
...other
|
|
158
|
+
} = props;
|
|
156
159
|
const masonryRef = React.useRef();
|
|
157
160
|
const [maxColumnHeight, setMaxColumnHeight] = React.useState();
|
|
158
161
|
const isSSR = !maxColumnHeight && defaultHeight && defaultColumns !== undefined && defaultSpacing !== undefined;
|
|
159
162
|
const [numberOfLineBreaks, setNumberOfLineBreaks] = React.useState(isSSR ? defaultColumns - 1 : 0);
|
|
160
|
-
const ownerState =
|
|
163
|
+
const ownerState = {
|
|
164
|
+
...props,
|
|
161
165
|
spacing,
|
|
162
166
|
columns,
|
|
163
167
|
maxColumnHeight,
|
|
@@ -165,7 +169,7 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
165
169
|
defaultHeight,
|
|
166
170
|
defaultSpacing,
|
|
167
171
|
isSSR
|
|
168
|
-
}
|
|
172
|
+
};
|
|
169
173
|
const classes = useUtilityClasses(ownerState);
|
|
170
174
|
const handleResize = React.useCallback(masonryChildren => {
|
|
171
175
|
if (!masonryRef.current || !masonryChildren || masonryChildren.length === 0) {
|
|
@@ -263,18 +267,19 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
263
267
|
// a line break at the end of each column prevents columns from merging
|
|
264
268
|
const lineBreaks = new Array(numberOfLineBreaks).fill('').map((_, index) => /*#__PURE__*/_jsx("span", {
|
|
265
269
|
"data-class": "line-break",
|
|
266
|
-
style:
|
|
270
|
+
style: {
|
|
271
|
+
...lineBreakStyle,
|
|
267
272
|
order: index + 1
|
|
268
|
-
}
|
|
273
|
+
}
|
|
269
274
|
}, index));
|
|
270
|
-
return /*#__PURE__*/_jsxs(MasonryRoot,
|
|
275
|
+
return /*#__PURE__*/_jsxs(MasonryRoot, {
|
|
271
276
|
as: component,
|
|
272
277
|
className: clsx(classes.root, className),
|
|
273
278
|
ref: handleRef,
|
|
274
|
-
ownerState: ownerState
|
|
275
|
-
|
|
279
|
+
ownerState: ownerState,
|
|
280
|
+
...other,
|
|
276
281
|
children: [children, lineBreaks]
|
|
277
|
-
})
|
|
282
|
+
});
|
|
278
283
|
});
|
|
279
284
|
process.env.NODE_ENV !== "production" ? Masonry.propTypes /* remove-proptypes */ = {
|
|
280
285
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import Pagination from '@mui/material/Pagination';
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedPagination(props
|
|
|
14
13
|
console.warn(['MUI: The Pagination component was moved from the lab to the core.', '', "You should use `import { Pagination } from '@mui/material'`", "or `import Pagination from '@mui/material/Pagination'`"].join('\n'));
|
|
15
14
|
warnedOnce = true;
|
|
16
15
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(Pagination,
|
|
18
|
-
ref: ref
|
|
19
|
-
|
|
16
|
+
return /*#__PURE__*/_jsx(Pagination, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
20
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import PaginationItem from '@mui/material/PaginationItem';
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedPaginationItem(p
|
|
|
14
13
|
console.warn(['MUI: The PaginationItem component was moved from the lab to the core.', '', "You should use `import { PaginationItem } from '@mui/material'`", "or `import PaginationItem from '@mui/material/PaginationItem'`"].join('\n'));
|
|
15
14
|
warnedOnce = true;
|
|
16
15
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(PaginationItem,
|
|
18
|
-
ref: ref
|
|
19
|
-
|
|
16
|
+
return /*#__PURE__*/_jsx(PaginationItem, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
20
|
});
|
package/modern/Rating/Rating.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import Rating from '@mui/material/Rating';
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedRating(props, re
|
|
|
14
13
|
console.warn(['MUI: The Rating component was moved from the lab to the core.', '', "You should use `import { Rating } from '@mui/material'`", "or `import Rating from '@mui/material/Rating'`"].join('\n'));
|
|
15
14
|
warnedOnce = true;
|
|
16
15
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(Rating,
|
|
18
|
-
ref: ref
|
|
19
|
-
|
|
16
|
+
return /*#__PURE__*/_jsx(Rating, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
20
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import Skeleton from '@mui/material/Skeleton';
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSkeleton(props,
|
|
|
14
13
|
console.warn(['MUI: The Skeleton component was moved from the lab to the core.', '', "You should use `import { Skeleton } from '@mui/material'`", "or `import Skeleton from '@mui/material/Skeleton'`"].join('\n'));
|
|
15
14
|
warnedOnce = true;
|
|
16
15
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(Skeleton,
|
|
18
|
-
ref: ref
|
|
19
|
-
|
|
16
|
+
return /*#__PURE__*/_jsx(Skeleton, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
20
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import SpeedDial from '@mui/material/SpeedDial';
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDial(props,
|
|
|
14
13
|
console.warn(['MUI: The SpeedDial component was moved from the lab to the core.', '', "You should use `import { SpeedDial } from '@mui/material'`", "or `import SpeedDial from '@mui/material/SpeedDial'`"].join('\n'));
|
|
15
14
|
warnedOnce = true;
|
|
16
15
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(SpeedDial,
|
|
18
|
-
ref: ref
|
|
19
|
-
|
|
16
|
+
return /*#__PURE__*/_jsx(SpeedDial, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
20
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import SpeedDialAction from '@mui/material/SpeedDialAction';
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialAction(
|
|
|
14
13
|
console.warn(['MUI: The SpeedDialAction component was moved from the lab to the core.', '', "You should use `import { SpeedDialAction } from '@mui/material'`", "or `import SpeedDialAction from '@mui/material/SpeedDialAction'`"].join('\n'));
|
|
15
14
|
warnedOnce = true;
|
|
16
15
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(SpeedDialAction,
|
|
18
|
-
ref: ref
|
|
19
|
-
|
|
16
|
+
return /*#__PURE__*/_jsx(SpeedDialAction, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
20
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import SpeedDialIcon from '@mui/material/SpeedDialIcon';
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialIcon(pr
|
|
|
14
13
|
console.warn(['MUI: The SpeedDialIcon component was moved from the lab to the core.', '', "You should use `import { SpeedDialIcon } from '@mui/material'`", "or `import SpeedDialIcon from '@mui/material/SpeedDialIcon'`"].join('\n'));
|
|
15
14
|
warnedOnce = true;
|
|
16
15
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(SpeedDialIcon,
|
|
18
|
-
ref: ref
|
|
19
|
-
|
|
16
|
+
return /*#__PURE__*/_jsx(SpeedDialIcon, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
20
|
});
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["children"];
|
|
6
3
|
import * as React from 'react';
|
|
7
4
|
import PropTypes from 'prop-types';
|
|
8
5
|
import Tabs from '@mui/material/Tabs';
|
|
@@ -10,9 +7,9 @@ import { useTabContext, getTabId, getPanelId } from '../TabContext';
|
|
|
10
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
8
|
const TabList = /*#__PURE__*/React.forwardRef(function TabList(props, ref) {
|
|
12
9
|
const {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
children: childrenProp,
|
|
11
|
+
...other
|
|
12
|
+
} = props;
|
|
16
13
|
const context = useTabContext();
|
|
17
14
|
if (context === null) {
|
|
18
15
|
throw new TypeError('No TabContext provided');
|
|
@@ -27,11 +24,12 @@ const TabList = /*#__PURE__*/React.forwardRef(function TabList(props, ref) {
|
|
|
27
24
|
id: getTabId(context, child.props.value)
|
|
28
25
|
});
|
|
29
26
|
});
|
|
30
|
-
return /*#__PURE__*/_jsx(Tabs,
|
|
27
|
+
return /*#__PURE__*/_jsx(Tabs, {
|
|
28
|
+
...other,
|
|
31
29
|
ref: ref,
|
|
32
30
|
value: context.value,
|
|
33
31
|
children: children
|
|
34
|
-
})
|
|
32
|
+
});
|
|
35
33
|
});
|
|
36
34
|
process.env.NODE_ENV !== "production" ? TabList.propTypes /* remove-proptypes */ = {
|
|
37
35
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|