@mui/lab 6.0.0-alpha.9 → 6.0.0-beta.1
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 +7 -4
- package/AlertTitle/AlertTitle.js +7 -4
- package/Autocomplete/Autocomplete.js +7 -4
- package/AvatarGroup/AvatarGroup.js +7 -4
- package/CHANGELOG.md +363 -3
- package/LoadingButton/LoadingButton.d.ts +4 -4
- package/LoadingButton/LoadingButton.js +8 -4
- package/Masonry/Masonry.d.ts +2 -2
- package/Pagination/Pagination.js +7 -4
- package/PaginationItem/PaginationItem.js +7 -4
- package/Rating/Rating.js +7 -4
- package/Skeleton/Skeleton.js +7 -4
- package/SpeedDial/SpeedDial.js +7 -4
- package/SpeedDialAction/SpeedDialAction.js +7 -4
- package/SpeedDialIcon/SpeedDialIcon.js +7 -4
- package/TabContext/TabContext.d.ts +2 -2
- package/TabList/TabList.d.ts +3 -3
- package/TabPanel/TabPanel.d.ts +2 -2
- package/Timeline/Timeline.d.ts +2 -2
- package/Timeline/Timeline.js +2 -2
- package/TimelineConnector/TimelineConnector.d.ts +2 -2
- package/TimelineContent/TimelineContent.d.ts +3 -3
- package/TimelineDot/TimelineDot.d.ts +2 -2
- package/TimelineItem/TimelineItem.d.ts +2 -2
- package/TimelineOppositeContent/TimelineOppositeContent.d.ts +3 -3
- package/TimelineSeparator/TimelineSeparator.d.ts +2 -2
- package/ToggleButton/ToggleButton.js +7 -4
- package/ToggleButtonGroup/ToggleButtonGroup.js +7 -4
- package/index.js +1 -1
- package/modern/Alert/Alert.js +7 -4
- package/modern/AlertTitle/AlertTitle.js +7 -4
- package/modern/Autocomplete/Autocomplete.js +7 -4
- package/modern/AvatarGroup/AvatarGroup.js +7 -4
- package/modern/LoadingButton/LoadingButton.js +8 -4
- package/modern/Pagination/Pagination.js +7 -4
- package/modern/PaginationItem/PaginationItem.js +7 -4
- package/modern/Rating/Rating.js +7 -4
- package/modern/Skeleton/Skeleton.js +7 -4
- package/modern/SpeedDial/SpeedDial.js +7 -4
- package/modern/SpeedDialAction/SpeedDialAction.js +7 -4
- package/modern/SpeedDialIcon/SpeedDialIcon.js +7 -4
- package/modern/Timeline/Timeline.js +2 -2
- package/modern/ToggleButton/ToggleButton.js +7 -4
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +7 -4
- package/modern/index.js +1 -1
- package/modern/zero-styled/index.js +2 -7
- package/node/Alert/Alert.js +7 -4
- package/node/AlertTitle/AlertTitle.js +7 -4
- package/node/Autocomplete/Autocomplete.js +7 -4
- package/node/AvatarGroup/AvatarGroup.js +7 -4
- package/node/LoadingButton/LoadingButton.js +7 -3
- package/node/Pagination/Pagination.js +7 -4
- package/node/PaginationItem/PaginationItem.js +7 -4
- package/node/Rating/Rating.js +7 -4
- package/node/Skeleton/Skeleton.js +7 -4
- package/node/SpeedDial/SpeedDial.js +7 -4
- package/node/SpeedDialAction/SpeedDialAction.js +7 -4
- package/node/SpeedDialIcon/SpeedDialIcon.js +7 -4
- package/node/Timeline/Timeline.js +2 -2
- package/node/ToggleButton/ToggleButton.js +7 -4
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +7 -4
- package/node/index.js +1 -1
- package/node/zero-styled/index.js +1 -6
- package/package.json +10 -6
- package/zero-styled/index.d.ts +0 -2
- package/zero-styled/index.js +2 -7
|
@@ -4,15 +4,18 @@ import * as React from 'react';
|
|
|
4
4
|
import ToggleButtonGroup from '@mui/material/ToggleButtonGroup';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
let warnedOnce = false;
|
|
7
|
+
const warn = () => {
|
|
8
|
+
if (!warnedOnce) {
|
|
9
|
+
console.warn(['MUI: The ToggleButtonGroup component was moved from the lab to the core.', '', "You should use `import { ToggleButtonGroup } from '@mui/material'`", "or `import ToggleButtonGroup from '@mui/material/ToggleButtonGroup'`"].join('\n'));
|
|
10
|
+
warnedOnce = true;
|
|
11
|
+
}
|
|
12
|
+
};
|
|
7
13
|
|
|
8
14
|
/**
|
|
9
15
|
* @ignore - do not document.
|
|
10
16
|
*/
|
|
11
17
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedToggleButtonGroup(props, ref) {
|
|
12
|
-
|
|
13
|
-
console.warn(['MUI: The ToggleButtonGroup component was moved from the lab to the core.', '', "You should use `import { ToggleButtonGroup } from '@mui/material'`", "or `import ToggleButtonGroup from '@mui/material/ToggleButtonGroup'`"].join('\n'));
|
|
14
|
-
warnedOnce = true;
|
|
15
|
-
}
|
|
18
|
+
warn();
|
|
16
19
|
return /*#__PURE__*/_jsx(ToggleButtonGroup, {
|
|
17
20
|
ref: ref,
|
|
18
21
|
...props
|
package/modern/index.js
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export { styled } from '@mui/material/styles';
|
|
3
|
-
|
|
4
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
|
-
export function createUseThemeProps(name) {
|
|
6
|
-
return useThemeProps;
|
|
7
|
-
}
|
|
1
|
+
/* eslint-disable import/prefer-default-export */
|
|
2
|
+
export { styled } from '@mui/material/styles';
|
package/node/Alert/Alert.js
CHANGED
|
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
let warnedOnce = false;
|
|
15
|
+
const warn = () => {
|
|
16
|
+
if (!warnedOnce) {
|
|
17
|
+
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'));
|
|
18
|
+
warnedOnce = true;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
15
21
|
|
|
16
22
|
/**
|
|
17
23
|
* @ignore - do not document.
|
|
18
24
|
*/
|
|
19
25
|
var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedAlert(props, ref) {
|
|
20
|
-
|
|
21
|
-
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'));
|
|
22
|
-
warnedOnce = true;
|
|
23
|
-
}
|
|
26
|
+
warn();
|
|
24
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Alert.default, {
|
|
25
28
|
ref: ref,
|
|
26
29
|
...props
|
|
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
let warnedOnce = false;
|
|
15
|
+
const warn = () => {
|
|
16
|
+
if (!warnedOnce) {
|
|
17
|
+
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'));
|
|
18
|
+
warnedOnce = true;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
15
21
|
|
|
16
22
|
/**
|
|
17
23
|
* @ignore - do not document.
|
|
18
24
|
*/
|
|
19
25
|
var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedAlertTitle(props, ref) {
|
|
20
|
-
|
|
21
|
-
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'));
|
|
22
|
-
warnedOnce = true;
|
|
23
|
-
}
|
|
26
|
+
warn();
|
|
24
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_AlertTitle.default, {
|
|
25
28
|
ref: ref,
|
|
26
29
|
...props
|
|
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
let warnedOnce = false;
|
|
15
|
+
const warn = () => {
|
|
16
|
+
if (!warnedOnce) {
|
|
17
|
+
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'));
|
|
18
|
+
warnedOnce = true;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
15
21
|
|
|
16
22
|
/**
|
|
17
23
|
* @ignore - do not document.
|
|
18
24
|
*/
|
|
19
25
|
var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedAutocomplete(props, ref) {
|
|
20
|
-
|
|
21
|
-
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'));
|
|
22
|
-
warnedOnce = true;
|
|
23
|
-
}
|
|
26
|
+
warn();
|
|
24
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Autocomplete.default, {
|
|
25
28
|
ref: ref,
|
|
26
29
|
...props
|
|
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
let warnedOnce = false;
|
|
15
|
+
const warn = () => {
|
|
16
|
+
if (!warnedOnce) {
|
|
17
|
+
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'));
|
|
18
|
+
warnedOnce = true;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
15
21
|
|
|
16
22
|
/**
|
|
17
23
|
* @ignore - do not document.
|
|
18
24
|
*/
|
|
19
25
|
var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedAvatarGroup(props, ref) {
|
|
20
|
-
|
|
21
|
-
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'));
|
|
22
|
-
warnedOnce = true;
|
|
23
|
-
}
|
|
26
|
+
warn();
|
|
24
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_AvatarGroup.default, {
|
|
25
28
|
ref: ref,
|
|
26
29
|
...props
|
|
@@ -11,6 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
var _utils = require("@mui/utils");
|
|
12
12
|
var _utils2 = require("@mui/material/utils");
|
|
13
13
|
var _base = require("@mui/base");
|
|
14
|
+
var _DefaultPropsProvider = require("@mui/material/DefaultPropsProvider");
|
|
14
15
|
var _Button = _interopRequireDefault(require("@mui/material/Button"));
|
|
15
16
|
var _ButtonGroup = require("@mui/material/ButtonGroup");
|
|
16
17
|
var _CircularProgress = _interopRequireDefault(require("@mui/material/CircularProgress"));
|
|
@@ -20,7 +21,6 @@ var _loadingButtonClasses = _interopRequireWildcard(require("./loadingButtonClas
|
|
|
20
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
|
-
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiLoadingButton');
|
|
24
24
|
const useUtilityClasses = ownerState => {
|
|
25
25
|
const {
|
|
26
26
|
loading,
|
|
@@ -196,7 +196,7 @@ const LoadingButtonLoadingIndicator = (0, _zeroStyled.styled)('span', {
|
|
|
196
196
|
const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps, ref) {
|
|
197
197
|
const contextProps = React.useContext(_ButtonGroup.ButtonGroupContext);
|
|
198
198
|
const resolvedProps = (0, _resolveProps.default)(contextProps, inProps);
|
|
199
|
-
const props =
|
|
199
|
+
const props = (0, _DefaultPropsProvider.useDefaultProps)({
|
|
200
200
|
props: resolvedProps,
|
|
201
201
|
name: 'MuiLoadingButton'
|
|
202
202
|
});
|
|
@@ -238,7 +238,11 @@ const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inPro
|
|
|
238
238
|
variant: variant,
|
|
239
239
|
classes: classes,
|
|
240
240
|
ownerState: ownerState,
|
|
241
|
-
children: [ownerState.loadingPosition === 'end' ?
|
|
241
|
+
children: [ownerState.loadingPosition === 'end' ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
242
|
+
children: children
|
|
243
|
+
}) : loadingButtonLoadingIndicator, ownerState.loadingPosition === 'end' ? loadingButtonLoadingIndicator : /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
244
|
+
children: children
|
|
245
|
+
})]
|
|
242
246
|
});
|
|
243
247
|
});
|
|
244
248
|
process.env.NODE_ENV !== "production" ? LoadingButton.propTypes /* remove-proptypes */ = {
|
|
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
let warnedOnce = false;
|
|
15
|
+
const warn = () => {
|
|
16
|
+
if (!warnedOnce) {
|
|
17
|
+
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'));
|
|
18
|
+
warnedOnce = true;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
15
21
|
|
|
16
22
|
/**
|
|
17
23
|
* @ignore - do not document.
|
|
18
24
|
*/
|
|
19
25
|
var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedPagination(props, ref) {
|
|
20
|
-
|
|
21
|
-
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'));
|
|
22
|
-
warnedOnce = true;
|
|
23
|
-
}
|
|
26
|
+
warn();
|
|
24
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Pagination.default, {
|
|
25
28
|
ref: ref,
|
|
26
29
|
...props
|
|
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
let warnedOnce = false;
|
|
15
|
+
const warn = () => {
|
|
16
|
+
if (!warnedOnce) {
|
|
17
|
+
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'));
|
|
18
|
+
warnedOnce = true;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
15
21
|
|
|
16
22
|
/**
|
|
17
23
|
* @ignore - do not document.
|
|
18
24
|
*/
|
|
19
25
|
var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedPaginationItem(props, ref) {
|
|
20
|
-
|
|
21
|
-
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'));
|
|
22
|
-
warnedOnce = true;
|
|
23
|
-
}
|
|
26
|
+
warn();
|
|
24
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PaginationItem.default, {
|
|
25
28
|
ref: ref,
|
|
26
29
|
...props
|
package/node/Rating/Rating.js
CHANGED
|
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
let warnedOnce = false;
|
|
15
|
+
const warn = () => {
|
|
16
|
+
if (!warnedOnce) {
|
|
17
|
+
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'));
|
|
18
|
+
warnedOnce = true;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
15
21
|
|
|
16
22
|
/**
|
|
17
23
|
* @ignore - do not document.
|
|
18
24
|
*/
|
|
19
25
|
var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedRating(props, ref) {
|
|
20
|
-
|
|
21
|
-
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'));
|
|
22
|
-
warnedOnce = true;
|
|
23
|
-
}
|
|
26
|
+
warn();
|
|
24
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Rating.default, {
|
|
25
28
|
ref: ref,
|
|
26
29
|
...props
|
|
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
let warnedOnce = false;
|
|
15
|
+
const warn = () => {
|
|
16
|
+
if (!warnedOnce) {
|
|
17
|
+
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'));
|
|
18
|
+
warnedOnce = true;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
15
21
|
|
|
16
22
|
/**
|
|
17
23
|
* @ignore - do not document.
|
|
18
24
|
*/
|
|
19
25
|
var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedSkeleton(props, ref) {
|
|
20
|
-
|
|
21
|
-
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'));
|
|
22
|
-
warnedOnce = true;
|
|
23
|
-
}
|
|
26
|
+
warn();
|
|
24
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Skeleton.default, {
|
|
25
28
|
ref: ref,
|
|
26
29
|
...props
|
|
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
let warnedOnce = false;
|
|
15
|
+
const warn = () => {
|
|
16
|
+
if (!warnedOnce) {
|
|
17
|
+
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'));
|
|
18
|
+
warnedOnce = true;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
15
21
|
|
|
16
22
|
/**
|
|
17
23
|
* @ignore - do not document.
|
|
18
24
|
*/
|
|
19
25
|
var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDial(props, ref) {
|
|
20
|
-
|
|
21
|
-
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'));
|
|
22
|
-
warnedOnce = true;
|
|
23
|
-
}
|
|
26
|
+
warn();
|
|
24
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDial.default, {
|
|
25
28
|
ref: ref,
|
|
26
29
|
...props
|
|
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
let warnedOnce = false;
|
|
15
|
+
const warn = () => {
|
|
16
|
+
if (!warnedOnce) {
|
|
17
|
+
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'));
|
|
18
|
+
warnedOnce = true;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
15
21
|
|
|
16
22
|
/**
|
|
17
23
|
* @ignore - do not document.
|
|
18
24
|
*/
|
|
19
25
|
var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialAction(props, ref) {
|
|
20
|
-
|
|
21
|
-
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'));
|
|
22
|
-
warnedOnce = true;
|
|
23
|
-
}
|
|
26
|
+
warn();
|
|
24
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDialAction.default, {
|
|
25
28
|
ref: ref,
|
|
26
29
|
...props
|
|
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
let warnedOnce = false;
|
|
15
|
+
const warn = () => {
|
|
16
|
+
if (!warnedOnce) {
|
|
17
|
+
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'));
|
|
18
|
+
warnedOnce = true;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
15
21
|
|
|
16
22
|
/**
|
|
17
23
|
* @ignore - do not document.
|
|
18
24
|
*/
|
|
19
25
|
var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialIcon(props, ref) {
|
|
20
|
-
|
|
21
|
-
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'));
|
|
22
|
-
warnedOnce = true;
|
|
23
|
-
}
|
|
26
|
+
warn();
|
|
24
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDialIcon.default, {
|
|
25
28
|
ref: ref,
|
|
26
29
|
...props
|
|
@@ -47,11 +47,11 @@ const TimelineRoot = (0, _styles.styled)('ul', {
|
|
|
47
47
|
*
|
|
48
48
|
* Demos:
|
|
49
49
|
*
|
|
50
|
-
* - [Timeline](https://mui.com/material-ui/react-timeline/)
|
|
50
|
+
* - [Timeline](https://next.mui.com/material-ui/react-timeline/)
|
|
51
51
|
*
|
|
52
52
|
* API:
|
|
53
53
|
*
|
|
54
|
-
* - [Timeline API](https://mui.com/material-ui/api/timeline/)
|
|
54
|
+
* - [Timeline API](https://next.mui.com/material-ui/api/timeline/)
|
|
55
55
|
*/
|
|
56
56
|
const Timeline = /*#__PURE__*/React.forwardRef(function Timeline(inProps, ref) {
|
|
57
57
|
const props = (0, _styles.useThemeProps)({
|
|
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
let warnedOnce = false;
|
|
15
|
+
const warn = () => {
|
|
16
|
+
if (!warnedOnce) {
|
|
17
|
+
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'));
|
|
18
|
+
warnedOnce = true;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
15
21
|
|
|
16
22
|
/**
|
|
17
23
|
* @ignore - do not document.
|
|
18
24
|
*/
|
|
19
25
|
var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedToggleButton(props, ref) {
|
|
20
|
-
|
|
21
|
-
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'));
|
|
22
|
-
warnedOnce = true;
|
|
23
|
-
}
|
|
26
|
+
warn();
|
|
24
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ToggleButton.default, {
|
|
25
28
|
ref: ref,
|
|
26
29
|
...props
|
|
@@ -12,15 +12,18 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
let warnedOnce = false;
|
|
15
|
+
const warn = () => {
|
|
16
|
+
if (!warnedOnce) {
|
|
17
|
+
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'));
|
|
18
|
+
warnedOnce = true;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
15
21
|
|
|
16
22
|
/**
|
|
17
23
|
* @ignore - do not document.
|
|
18
24
|
*/
|
|
19
25
|
var _default = exports.default = /*#__PURE__*/React.forwardRef(function DeprecatedToggleButtonGroup(props, ref) {
|
|
20
|
-
|
|
21
|
-
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'));
|
|
22
|
-
warnedOnce = true;
|
|
23
|
-
}
|
|
26
|
+
warn();
|
|
24
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ToggleButtonGroup.default, {
|
|
25
28
|
ref: ref,
|
|
26
29
|
...props
|
package/node/index.js
CHANGED
|
@@ -3,15 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.createUseThemeProps = createUseThemeProps;
|
|
7
6
|
Object.defineProperty(exports, "styled", {
|
|
8
7
|
enumerable: true,
|
|
9
8
|
get: function () {
|
|
10
9
|
return _styles.styled;
|
|
11
10
|
}
|
|
12
11
|
});
|
|
13
|
-
var _styles = require("@mui/material/styles");
|
|
14
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
15
|
-
function createUseThemeProps(name) {
|
|
16
|
-
return _styles.useThemeProps;
|
|
17
|
-
}
|
|
12
|
+
var _styles = require("@mui/material/styles");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/lab",
|
|
3
|
-
"version": "6.0.0-
|
|
3
|
+
"version": "6.0.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "Laboratory for new MUI modules.",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"url": "https://opencollective.com/mui-org"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@babel/runtime": "^7.24.
|
|
31
|
+
"@babel/runtime": "^7.24.8",
|
|
32
32
|
"clsx": "^2.1.1",
|
|
33
33
|
"prop-types": "^15.8.1",
|
|
34
|
-
"@mui/base": "5.0.0-beta.
|
|
34
|
+
"@mui/base": "5.0.0-beta.54",
|
|
35
|
+
"@mui/utils": "6.0.0-beta.1",
|
|
35
36
|
"@mui/types": "^7.2.14",
|
|
36
|
-
"@mui/
|
|
37
|
-
"@mui/system": "^6.0.0-alpha.9"
|
|
37
|
+
"@mui/system": "6.0.0-beta.1"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@emotion/react": "^11.5.0",
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
"@types/react": "^17.0.0 || ^18.0.0",
|
|
43
43
|
"react": "^17.0.0 || ^18.0.0",
|
|
44
44
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
45
|
-
"@mui/material": "^6.0.0-
|
|
45
|
+
"@mui/material": "^6.0.0-beta.1",
|
|
46
|
+
"@mui/material-pigment-css": "^6.0.0-beta.1"
|
|
46
47
|
},
|
|
47
48
|
"peerDependenciesMeta": {
|
|
48
49
|
"@types/react": {
|
|
@@ -53,6 +54,9 @@
|
|
|
53
54
|
},
|
|
54
55
|
"@emotion/styled": {
|
|
55
56
|
"optional": true
|
|
57
|
+
},
|
|
58
|
+
"@mui/material-pigment-css": {
|
|
59
|
+
"optional": true
|
|
56
60
|
}
|
|
57
61
|
},
|
|
58
62
|
"sideEffects": false,
|
package/zero-styled/index.d.ts
CHANGED
package/zero-styled/index.js
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export { styled } from '@mui/material/styles';
|
|
3
|
-
|
|
4
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
|
-
export function createUseThemeProps(name) {
|
|
6
|
-
return useThemeProps;
|
|
7
|
-
}
|
|
1
|
+
/* eslint-disable import/prefer-default-export */
|
|
2
|
+
export { styled } from '@mui/material/styles';
|