@mui/codemod 6.0.0-alpha.8 → 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/README.md +219 -45
- package/node/deprecations/all/deprecations-all.js +4 -0
- package/node/deprecations/avatar-group-props/avatar-group-props.js +87 -0
- package/node/deprecations/avatar-group-props/index.js +13 -0
- package/node/deprecations/avatar-group-props/test-cases/actual.js +56 -0
- package/node/deprecations/avatar-group-props/test-cases/expected.js +58 -0
- package/node/deprecations/avatar-group-props/test-cases/theme.actual.js +48 -0
- package/node/deprecations/avatar-group-props/test-cases/theme.expected.js +50 -0
- package/node/deprecations/grid-props/grid-props.js +51 -0
- package/node/deprecations/grid-props/index.js +13 -0
- package/node/deprecations/grid-props/test-cases/actual.js +25 -0
- package/node/deprecations/grid-props/test-cases/expected.js +23 -0
- package/node/deprecations/grid-props/test-cases/theme.actual.js +24 -0
- package/node/deprecations/grid-props/test-cases/theme.expected.js +23 -0
- package/node/deprecations/list-item-props/index.js +13 -0
- package/node/deprecations/list-item-props/list-item-props.js +22 -0
- package/node/deprecations/list-item-props/test-cases/actual.js +43 -0
- package/node/deprecations/list-item-props/test-cases/expected.js +40 -0
- package/node/deprecations/list-item-props/test-cases/theme.actual.js +56 -0
- package/node/deprecations/list-item-props/test-cases/theme.expected.js +53 -0
- package/node/deprecations/popper-props/index.js +13 -0
- package/node/deprecations/popper-props/popper-props.js +22 -0
- package/node/deprecations/popper-props/test-cases/actual.js +27 -0
- package/node/deprecations/popper-props/test-cases/expected.js +24 -0
- package/node/deprecations/popper-props/test-cases/theme.actual.js +32 -0
- package/node/deprecations/popper-props/test-cases/theme.expected.js +29 -0
- package/node/deprecations/tooltip-props/index.js +13 -0
- package/node/deprecations/tooltip-props/test-cases/actual.js +92 -0
- package/node/deprecations/tooltip-props/test-cases/expected.js +84 -0
- package/node/deprecations/tooltip-props/test-cases/theme.actual.js +73 -0
- package/node/deprecations/tooltip-props/test-cases/theme.expected.js +65 -0
- package/node/deprecations/tooltip-props/tooltip-props.js +22 -0
- package/node/util/migrateToVariants.js +156 -98
- package/node/v6.0.0/sx-prop/index.js +13 -0
- package/node/v6.0.0/sx-prop/sx-v6.js +355 -0
- package/node/v6.0.0/sx-prop/test-cases/basic-sx.actual.js +36 -0
- package/node/v6.0.0/sx-prop/test-cases/basic-sx.expected.js +46 -0
- package/node/v6.0.0/sx-prop/test-cases/sx-css-vars.actual.js +41 -0
- package/node/v6.0.0/sx-prop/test-cases/sx-css-vars.expected.js +71 -0
- package/node/v6.0.0/sx-prop/test-cases/sx-dynamic.actual.js +87 -0
- package/node/v6.0.0/sx-prop/test-cases/sx-dynamic.expected.js +102 -0
- package/node/v6.0.0/sx-prop/test-cases/sx-dynamic2.actual.js +49 -0
- package/node/v6.0.0/sx-prop/test-cases/sx-dynamic2.expected.js +64 -0
- package/node/v6.0.0/system-props/index.js +13 -0
- package/node/v6.0.0/system-props/removeSystemProps.js +242 -0
- package/node/v6.0.0/system-props/test-cases/system-props.actual.js +79 -0
- package/node/v6.0.0/system-props/test-cases/system-props.expected.js +92 -0
- package/node/v6.0.0/theme-v6/theme-v6.js +2 -2
- package/package.json +4 -4
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = transformer;
|
|
8
|
+
var _findComponentJSX = _interopRequireDefault(require("../../util/findComponentJSX"));
|
|
9
|
+
/**
|
|
10
|
+
* @param {import('jscodeshift').FileInfo} file
|
|
11
|
+
* @param {import('jscodeshift').API} api
|
|
12
|
+
*/
|
|
13
|
+
function transformer(file, api, options) {
|
|
14
|
+
const j = api.jscodeshift;
|
|
15
|
+
const root = j(file.source);
|
|
16
|
+
const printOptions = options.printOptions;
|
|
17
|
+
const filterJSXAttr = (attr, name) => attr.type === 'JSXAttribute' && attr.name.name === name;
|
|
18
|
+
(0, _findComponentJSX.default)(j, {
|
|
19
|
+
root,
|
|
20
|
+
componentName: 'Grid'
|
|
21
|
+
}, gridElement => {
|
|
22
|
+
const attrs = gridElement.node.openingElement.attributes;
|
|
23
|
+
const wrapPropIndex = attrs.findIndex(attr => filterJSXAttr(attr, 'wrap'));
|
|
24
|
+
if (wrapPropIndex !== -1) {
|
|
25
|
+
if (attrs.findIndex(attr => filterJSXAttr(attr, 'flexWrap')) !== -1) {
|
|
26
|
+
attrs.splice(wrapPropIndex, 1);
|
|
27
|
+
} else {
|
|
28
|
+
attrs[wrapPropIndex].name.name = 'flexWrap';
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
root.find(j.ObjectProperty, {
|
|
33
|
+
key: {
|
|
34
|
+
name: 'MuiGrid'
|
|
35
|
+
}
|
|
36
|
+
}).forEach(path => {
|
|
37
|
+
const defaultProps = path.value.value.properties.find(({
|
|
38
|
+
key
|
|
39
|
+
}) => key.name === 'defaultProps');
|
|
40
|
+
const props = defaultProps.value.properties;
|
|
41
|
+
const wrapPropIndex = props.findIndex(prop => prop.key.name === 'wrap');
|
|
42
|
+
if (wrapPropIndex !== -1) {
|
|
43
|
+
if (props.findIndex(prop => prop.key.name === 'flexWrap') !== -1) {
|
|
44
|
+
props.splice(wrapPropIndex, 1);
|
|
45
|
+
} else {
|
|
46
|
+
props[wrapPropIndex].key.name = 'flexWrap';
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
return root.toSource(printOptions);
|
|
51
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "default", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _gridProps.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _gridProps = _interopRequireDefault(require("./grid-props"));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _Grid = _interopRequireDefault(require("@mui/material/Grid"));
|
|
5
|
+
var _material = require("@mui/material");
|
|
6
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
7
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Grid.default, {
|
|
8
|
+
wrap: "wrap-reverse"
|
|
9
|
+
});
|
|
10
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Grid, {
|
|
11
|
+
wrap: "wrap-reverse"
|
|
12
|
+
});
|
|
13
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Grid.default, {
|
|
14
|
+
wrap: "wrap-reverse",
|
|
15
|
+
flexWrap: "wrap"
|
|
16
|
+
});
|
|
17
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Grid, {
|
|
18
|
+
wrap: "wrap-reverse",
|
|
19
|
+
flexWrap: "wrap"
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
// should skip non MUI components
|
|
23
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(NonMuiGrid, {
|
|
24
|
+
wrap: "wrap-reverse"
|
|
25
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _Grid = _interopRequireDefault(require("@mui/material/Grid"));
|
|
5
|
+
var _material = require("@mui/material");
|
|
6
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
7
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Grid.default, {
|
|
8
|
+
flexWrap: "wrap-reverse"
|
|
9
|
+
});
|
|
10
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Grid, {
|
|
11
|
+
flexWrap: "wrap-reverse"
|
|
12
|
+
});
|
|
13
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Grid.default, {
|
|
14
|
+
flexWrap: "wrap"
|
|
15
|
+
});
|
|
16
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Grid, {
|
|
17
|
+
flexWrap: "wrap"
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
// should skip non MUI components
|
|
21
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(NonMuiGrid, {
|
|
22
|
+
wrap: "wrap-reverse"
|
|
23
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
fn({
|
|
4
|
+
MuiGrid: {
|
|
5
|
+
defaultProps: {
|
|
6
|
+
wrap: 'wrap'
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
fn({
|
|
11
|
+
MuiGrid: {
|
|
12
|
+
defaultProps: {
|
|
13
|
+
wrap: 'wrap-reverse'
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
fn({
|
|
18
|
+
MuiGrid: {
|
|
19
|
+
defaultProps: {
|
|
20
|
+
wrap: 'wrap-reverse',
|
|
21
|
+
flexWrap: 'wrap'
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
fn({
|
|
4
|
+
MuiGrid: {
|
|
5
|
+
defaultProps: {
|
|
6
|
+
flexWrap: 'wrap'
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
fn({
|
|
11
|
+
MuiGrid: {
|
|
12
|
+
defaultProps: {
|
|
13
|
+
flexWrap: 'wrap-reverse'
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
fn({
|
|
18
|
+
MuiGrid: {
|
|
19
|
+
defaultProps: {
|
|
20
|
+
flexWrap: 'wrap'
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "default", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _listItemProps.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _listItemProps = _interopRequireDefault(require("./list-item-props"));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = transformer;
|
|
8
|
+
var _replaceComponentsWithSlots = _interopRequireDefault(require("../utils/replaceComponentsWithSlots"));
|
|
9
|
+
/**
|
|
10
|
+
* @param {import('jscodeshift').FileInfo} file
|
|
11
|
+
* @param {import('jscodeshift').API} api
|
|
12
|
+
*/
|
|
13
|
+
function transformer(file, api, options) {
|
|
14
|
+
const j = api.jscodeshift;
|
|
15
|
+
const root = j(file.source);
|
|
16
|
+
const printOptions = options.printOptions;
|
|
17
|
+
(0, _replaceComponentsWithSlots.default)(j, {
|
|
18
|
+
root,
|
|
19
|
+
componentName: 'ListItem'
|
|
20
|
+
});
|
|
21
|
+
return root.toSource(printOptions);
|
|
22
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _ListItem = _interopRequireDefault(require("@mui/material/ListItem"));
|
|
5
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
6
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItem.default, {
|
|
7
|
+
components: {
|
|
8
|
+
Root: ComponentsRoot
|
|
9
|
+
},
|
|
10
|
+
componentsProps: {
|
|
11
|
+
root: componentsRootProps
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItem.default, {
|
|
15
|
+
components: {
|
|
16
|
+
Root: ComponentsRoot
|
|
17
|
+
},
|
|
18
|
+
slotProps: {
|
|
19
|
+
root: slotsRootProps
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItem.default, {
|
|
23
|
+
slots: {
|
|
24
|
+
root: SlotsRoot
|
|
25
|
+
},
|
|
26
|
+
componentsProps: {
|
|
27
|
+
root: componentsRootProps
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItem.default, {
|
|
31
|
+
slots: {
|
|
32
|
+
root: SlotsRoot
|
|
33
|
+
},
|
|
34
|
+
components: {
|
|
35
|
+
Root: ComponentsRoot
|
|
36
|
+
},
|
|
37
|
+
slotProps: {
|
|
38
|
+
root: slotsRootProps
|
|
39
|
+
},
|
|
40
|
+
componentsProps: {
|
|
41
|
+
root: componentsRootProps
|
|
42
|
+
}
|
|
43
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _ListItem = _interopRequireDefault(require("@mui/material/ListItem"));
|
|
5
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
6
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItem.default, {
|
|
7
|
+
slots: {
|
|
8
|
+
root: ComponentsRoot
|
|
9
|
+
},
|
|
10
|
+
slotProps: {
|
|
11
|
+
root: componentsRootProps
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItem.default, {
|
|
15
|
+
slotProps: {
|
|
16
|
+
root: slotsRootProps
|
|
17
|
+
},
|
|
18
|
+
slots: {
|
|
19
|
+
root: ComponentsRoot
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItem.default, {
|
|
23
|
+
slots: {
|
|
24
|
+
root: SlotsRoot
|
|
25
|
+
},
|
|
26
|
+
slotProps: {
|
|
27
|
+
root: componentsRootProps
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItem.default, {
|
|
31
|
+
slots: {
|
|
32
|
+
root: SlotsRoot
|
|
33
|
+
},
|
|
34
|
+
slotProps: {
|
|
35
|
+
root: {
|
|
36
|
+
...componentsRootProps,
|
|
37
|
+
...slotsRootProps
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
});
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
fn({
|
|
4
|
+
MuiListItem: {
|
|
5
|
+
defaultProps: {
|
|
6
|
+
components: {
|
|
7
|
+
Root: ComponentsRoot
|
|
8
|
+
},
|
|
9
|
+
componentsProps: {
|
|
10
|
+
root: componentsRootProps
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
fn({
|
|
16
|
+
MuiListItem: {
|
|
17
|
+
defaultProps: {
|
|
18
|
+
components: {
|
|
19
|
+
Root: ComponentsRoot
|
|
20
|
+
},
|
|
21
|
+
slotProps: {
|
|
22
|
+
root: slotsRootProps
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
fn({
|
|
28
|
+
MuiListItem: {
|
|
29
|
+
defaultProps: {
|
|
30
|
+
slots: {
|
|
31
|
+
root: SlotsRoot
|
|
32
|
+
},
|
|
33
|
+
componentsProps: {
|
|
34
|
+
root: componentsRootProps
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
fn({
|
|
40
|
+
MuiListItem: {
|
|
41
|
+
defaultProps: {
|
|
42
|
+
slots: {
|
|
43
|
+
root: SlotsRoot
|
|
44
|
+
},
|
|
45
|
+
components: {
|
|
46
|
+
Root: ComponentsRoot
|
|
47
|
+
},
|
|
48
|
+
slotProps: {
|
|
49
|
+
root: slotsRootProps
|
|
50
|
+
},
|
|
51
|
+
componentsProps: {
|
|
52
|
+
root: componentsRootProps
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
});
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
fn({
|
|
4
|
+
MuiListItem: {
|
|
5
|
+
defaultProps: {
|
|
6
|
+
slots: {
|
|
7
|
+
root: ComponentsRoot
|
|
8
|
+
},
|
|
9
|
+
slotProps: {
|
|
10
|
+
root: componentsRootProps
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
fn({
|
|
16
|
+
MuiListItem: {
|
|
17
|
+
defaultProps: {
|
|
18
|
+
slotProps: {
|
|
19
|
+
root: slotsRootProps
|
|
20
|
+
},
|
|
21
|
+
slots: {
|
|
22
|
+
root: ComponentsRoot
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
fn({
|
|
28
|
+
MuiListItem: {
|
|
29
|
+
defaultProps: {
|
|
30
|
+
slots: {
|
|
31
|
+
root: SlotsRoot
|
|
32
|
+
},
|
|
33
|
+
slotProps: {
|
|
34
|
+
root: componentsRootProps
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
fn({
|
|
40
|
+
MuiListItem: {
|
|
41
|
+
defaultProps: {
|
|
42
|
+
slots: {
|
|
43
|
+
root: SlotsRoot
|
|
44
|
+
},
|
|
45
|
+
slotProps: {
|
|
46
|
+
root: {
|
|
47
|
+
...componentsRootProps,
|
|
48
|
+
...slotsRootProps
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "default", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _popperProps.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _popperProps = _interopRequireDefault(require("./popper-props"));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = transformer;
|
|
8
|
+
var _replaceComponentsWithSlots = _interopRequireDefault(require("../utils/replaceComponentsWithSlots"));
|
|
9
|
+
/**
|
|
10
|
+
* @param {import('jscodeshift').FileInfo} file
|
|
11
|
+
* @param {import('jscodeshift').API} api
|
|
12
|
+
*/
|
|
13
|
+
function transformer(file, api, options) {
|
|
14
|
+
const j = api.jscodeshift;
|
|
15
|
+
const root = j(file.source);
|
|
16
|
+
const printOptions = options.printOptions;
|
|
17
|
+
(0, _replaceComponentsWithSlots.default)(j, {
|
|
18
|
+
root,
|
|
19
|
+
componentName: 'Popper'
|
|
20
|
+
});
|
|
21
|
+
return root.toSource(printOptions);
|
|
22
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _Popper = _interopRequireDefault(require("@mui/material/Popper"));
|
|
5
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
6
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Popper.default, {
|
|
7
|
+
components: {
|
|
8
|
+
Root: ComponentsRoot
|
|
9
|
+
},
|
|
10
|
+
componentsProps: {
|
|
11
|
+
root: componentsRootProps
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Popper.default, {
|
|
15
|
+
slots: {
|
|
16
|
+
root: SlotsRoot
|
|
17
|
+
},
|
|
18
|
+
components: {
|
|
19
|
+
Root: ComponentsRoot
|
|
20
|
+
},
|
|
21
|
+
slotProps: {
|
|
22
|
+
root: slotsRootProps
|
|
23
|
+
},
|
|
24
|
+
componentsProps: {
|
|
25
|
+
root: componentsRootProps
|
|
26
|
+
}
|
|
27
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _Popper = _interopRequireDefault(require("@mui/material/Popper"));
|
|
5
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
6
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Popper.default, {
|
|
7
|
+
slots: {
|
|
8
|
+
root: ComponentsRoot
|
|
9
|
+
},
|
|
10
|
+
slotProps: {
|
|
11
|
+
root: componentsRootProps
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Popper.default, {
|
|
15
|
+
slots: {
|
|
16
|
+
root: SlotsRoot
|
|
17
|
+
},
|
|
18
|
+
slotProps: {
|
|
19
|
+
root: {
|
|
20
|
+
...componentsRootProps,
|
|
21
|
+
...slotsRootProps
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
fn({
|
|
4
|
+
MuiPopper: {
|
|
5
|
+
defaultProps: {
|
|
6
|
+
components: {
|
|
7
|
+
Root: ComponentsRoot
|
|
8
|
+
},
|
|
9
|
+
componentsProps: {
|
|
10
|
+
root: componentsRootProps
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
fn({
|
|
16
|
+
MuiPopper: {
|
|
17
|
+
defaultProps: {
|
|
18
|
+
components: {
|
|
19
|
+
Root: ComponentsRoot
|
|
20
|
+
},
|
|
21
|
+
slots: {
|
|
22
|
+
root: SlotsRoot
|
|
23
|
+
},
|
|
24
|
+
componentsProps: {
|
|
25
|
+
root: componentsRootProps
|
|
26
|
+
},
|
|
27
|
+
slotProps: {
|
|
28
|
+
root: slotsRootProps
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
fn({
|
|
4
|
+
MuiPopper: {
|
|
5
|
+
defaultProps: {
|
|
6
|
+
slots: {
|
|
7
|
+
root: ComponentsRoot
|
|
8
|
+
},
|
|
9
|
+
slotProps: {
|
|
10
|
+
root: componentsRootProps
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
fn({
|
|
16
|
+
MuiPopper: {
|
|
17
|
+
defaultProps: {
|
|
18
|
+
slots: {
|
|
19
|
+
root: SlotsRoot
|
|
20
|
+
},
|
|
21
|
+
slotProps: {
|
|
22
|
+
root: {
|
|
23
|
+
...componentsRootProps,
|
|
24
|
+
...slotsRootProps
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "default", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _tooltipProps.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _tooltipProps = _interopRequireDefault(require("./tooltip-props"));
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _Tooltip = _interopRequireDefault(require("@mui/material/Tooltip"));
|
|
5
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
6
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
|
|
7
|
+
components: {
|
|
8
|
+
Arrow: ComponentsArrow,
|
|
9
|
+
Popper: ComponentsPopper,
|
|
10
|
+
Tooltip: ComponentsTooltip,
|
|
11
|
+
Transition: ComponentsTransition
|
|
12
|
+
},
|
|
13
|
+
componentsProps: {
|
|
14
|
+
arrow: componentsArrowProps,
|
|
15
|
+
popper: componentsPopperProps,
|
|
16
|
+
tooltip: componentsTooltipProps,
|
|
17
|
+
transition: componentsTransitionProps
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
|
|
21
|
+
slots: {
|
|
22
|
+
tooltip: SlotsTooltip
|
|
23
|
+
},
|
|
24
|
+
components: {
|
|
25
|
+
Arrow: ComponentsArrow
|
|
26
|
+
},
|
|
27
|
+
slotProps: {
|
|
28
|
+
tooltip: slotsTooltipProps
|
|
29
|
+
},
|
|
30
|
+
componentsProps: {
|
|
31
|
+
arrow: componentsArrowProps
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
|
|
35
|
+
slots: {
|
|
36
|
+
tooltip: SlotsTooltip,
|
|
37
|
+
arrow: SlotsArrow
|
|
38
|
+
},
|
|
39
|
+
components: {
|
|
40
|
+
Arrow: ComponentsArrow
|
|
41
|
+
},
|
|
42
|
+
slotProps: {
|
|
43
|
+
tooltip: slotsTooltipProps,
|
|
44
|
+
arrow: slotsArrowProps
|
|
45
|
+
},
|
|
46
|
+
componentsProps: {
|
|
47
|
+
arrow: componentsArrowProps
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
|
|
51
|
+
slots: {
|
|
52
|
+
tooltip: SlotsTooltip,
|
|
53
|
+
arrow: SlotsArrow
|
|
54
|
+
},
|
|
55
|
+
components: {
|
|
56
|
+
Arrow: ComponentsArrow
|
|
57
|
+
},
|
|
58
|
+
slotProps: {
|
|
59
|
+
tooltip: slotsTooltipProps,
|
|
60
|
+
arrow: slotsArrowProps
|
|
61
|
+
},
|
|
62
|
+
componentsProps: {
|
|
63
|
+
arrow: componentsArrowProps,
|
|
64
|
+
tooltip: componentsTooltipProps
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
|
|
68
|
+
slots: {
|
|
69
|
+
arrow: SlotsArrow,
|
|
70
|
+
popper: SlotsPopper,
|
|
71
|
+
tooltip: SlotsTooltip,
|
|
72
|
+
transition: SlotsTransition
|
|
73
|
+
},
|
|
74
|
+
components: {
|
|
75
|
+
Arrow: ComponentsArrow,
|
|
76
|
+
Popper: ComponentsPopper,
|
|
77
|
+
Tooltip: ComponentsTooltip,
|
|
78
|
+
Transition: ComponentsTransition
|
|
79
|
+
},
|
|
80
|
+
slotProps: {
|
|
81
|
+
arrow: slotsArrowProps,
|
|
82
|
+
popper: slotsPopperProps,
|
|
83
|
+
tooltip: slotsTooltipProps,
|
|
84
|
+
transition: slotsTransitionProps
|
|
85
|
+
},
|
|
86
|
+
componentsProps: {
|
|
87
|
+
arrow: componentsArrowProps,
|
|
88
|
+
popper: componentsPopperProps,
|
|
89
|
+
tooltip: componentsTooltipProps,
|
|
90
|
+
transition: componentsTransitionProps
|
|
91
|
+
}
|
|
92
|
+
});
|