@mui/codemod 6.0.0-alpha.9 → 6.0.0-beta.0
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 +423 -168
- package/codemod.js +0 -2
- package/node/deprecations/all/deprecations-all.js +34 -26
- package/node/deprecations/all/postcss.config.js +7 -1
- package/node/deprecations/autocomplete-props/autocomplete-props.js +0 -32
- package/node/deprecations/autocomplete-props/test-cases/actual.js +13 -35
- package/node/deprecations/autocomplete-props/test-cases/expected.js +13 -41
- package/node/deprecations/autocomplete-props/test-cases/theme.actual.js +0 -18
- package/node/deprecations/autocomplete-props/test-cases/theme.expected.js +0 -22
- package/node/deprecations/backdrop-props/backdrop-props.js +3 -5
- package/node/deprecations/backdrop-props/test-cases/actual.js +30 -14
- package/node/deprecations/backdrop-props/test-cases/expected.js +23 -13
- package/node/deprecations/backdrop-props/test-cases/theme.actual.js +32 -6
- package/node/deprecations/backdrop-props/test-cases/theme.expected.js +27 -5
- package/node/deprecations/filled-input-props/filled-input-props.js +22 -0
- package/node/deprecations/filled-input-props/index.js +13 -0
- package/node/deprecations/filled-input-props/test-cases/actual.js +60 -0
- package/node/deprecations/filled-input-props/test-cases/expected.js +52 -0
- package/node/deprecations/filled-input-props/test-cases/theme.actual.js +73 -0
- package/node/deprecations/filled-input-props/test-cases/theme.expected.js +65 -0
- package/node/deprecations/input-base-props/index.js +13 -0
- package/node/deprecations/input-base-props/input-base-props.js +22 -0
- package/node/deprecations/input-base-props/test-cases/actual.js +60 -0
- package/node/deprecations/input-base-props/test-cases/expected.js +52 -0
- package/node/deprecations/input-base-props/test-cases/theme.actual.js +73 -0
- package/node/deprecations/input-base-props/test-cases/theme.expected.js +65 -0
- package/node/deprecations/input-props/index.js +13 -0
- package/node/deprecations/input-props/input-props.js +22 -0
- package/node/deprecations/input-props/test-cases/actual.js +60 -0
- package/node/deprecations/input-props/test-cases/expected.js +52 -0
- package/node/deprecations/input-props/test-cases/theme.actual.js +73 -0
- package/node/deprecations/input-props/test-cases/theme.expected.js +65 -0
- package/node/deprecations/modal-props/index.js +13 -0
- package/node/deprecations/modal-props/modal-props.js +22 -0
- package/node/deprecations/modal-props/test-cases/actual.js +43 -0
- package/node/deprecations/modal-props/test-cases/expected.js +40 -0
- package/node/deprecations/modal-props/test-cases/theme.actual.js +56 -0
- package/node/deprecations/modal-props/test-cases/theme.expected.js +53 -0
- package/node/deprecations/outlined-input-props/index.js +13 -0
- package/node/deprecations/outlined-input-props/outlined-input-props.js +22 -0
- package/node/deprecations/outlined-input-props/test-cases/actual.js +60 -0
- package/node/deprecations/outlined-input-props/test-cases/expected.js +52 -0
- package/node/deprecations/outlined-input-props/test-cases/theme.actual.js +73 -0
- package/node/deprecations/outlined-input-props/test-cases/theme.expected.js +65 -0
- package/node/deprecations/step-label-props/step-label-props.js +0 -14
- package/node/deprecations/step-label-props/test-cases/actual.js +0 -23
- package/node/deprecations/step-label-props/test-cases/expected.js +0 -27
- package/node/deprecations/step-label-props/test-cases/theme.actual.js +0 -22
- package/node/deprecations/step-label-props/test-cases/theme.expected.js +0 -28
- package/node/deprecations/tab-classes/index.js +13 -0
- package/node/deprecations/tab-classes/postcss-plugin.js +30 -0
- package/node/deprecations/tab-classes/postcss.config.js +8 -0
- package/node/deprecations/tab-classes/tab-classes.js +53 -0
- package/node/deprecations/tab-classes/test-cases/actual.js +5 -0
- package/node/deprecations/tab-classes/test-cases/expected.js +5 -0
- package/node/deprecations/table-sort-label-classes/index.js +13 -0
- package/node/deprecations/table-sort-label-classes/postcss-plugin.js +33 -0
- package/node/deprecations/table-sort-label-classes/postcss.config.js +8 -0
- package/node/deprecations/table-sort-label-classes/table-sort-label-classes.js +77 -0
- package/node/deprecations/table-sort-label-classes/test-cases/actual.js +7 -0
- package/node/deprecations/table-sort-label-classes/test-cases/expected.js +7 -0
- package/node/util/migrateToVariants.js +91 -43
- package/node/v5.0.0/theme-spacing.test/large-actual.js +1 -1
- package/node/v5.0.0/theme-spacing.test/large-expected.js +1 -1
- package/node/v6.0.0/grid-v2-props/grid-v2-props.js +149 -0
- package/node/v6.0.0/grid-v2-props/index.js +13 -0
- package/node/v6.0.0/grid-v2-props/test-cases/actual.js +85 -0
- package/node/v6.0.0/grid-v2-props/test-cases/custom-breakpoints.actual.js +18 -0
- package/node/v6.0.0/grid-v2-props/test-cases/custom-breakpoints.expected.js +22 -0
- package/node/v6.0.0/grid-v2-props/test-cases/expected.js +97 -0
- package/node/v6.0.0/styled/test-cases/ConditionalStyled.expected.js +9 -22
- package/node/v6.0.0/styled/test-cases/DynamicPropsStyled.actual.js +39 -0
- package/node/v6.0.0/styled/test-cases/DynamicPropsStyled.expected.js +65 -0
- package/node/v6.0.0/styled/test-cases/LogicalStyled.actual.js +31 -1
- package/node/v6.0.0/styled/test-cases/LogicalStyled.expected.js +39 -1
- package/node/v6.0.0/styled/test-cases/NestedSpread.expected.js +11 -13
- package/node/v6.0.0/sx-prop/sx-v6.js +80 -30
- package/node/v6.0.0/sx-prop/test-cases/sx-css-vars.actual.js +14 -0
- package/node/v6.0.0/sx-prop/test-cases/sx-css-vars.expected.js +33 -16
- package/node/v6.0.0/sx-prop/test-cases/sx-dynamic.actual.js +21 -1
- package/node/v6.0.0/sx-prop/test-cases/sx-dynamic.expected.js +19 -1
- package/node/v6.0.0/sx-prop/test-cases/sx-line-break.actual.js +69 -0
- package/node/v6.0.0/sx-prop/test-cases/sx-line-break.expected.js +69 -0
- package/node/v6.0.0/sx-prop/test-cases/sx-value-callback.actual.js +102 -0
- package/node/v6.0.0/sx-prop/test-cases/sx-value-callback.expected.js +111 -0
- package/package.json +7 -7
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
fn({
|
|
4
|
+
MuiInput: {
|
|
5
|
+
defaultProps: {
|
|
6
|
+
components: {
|
|
7
|
+
Input: ComponentsInput
|
|
8
|
+
},
|
|
9
|
+
componentsProps: {
|
|
10
|
+
input: componentsInputProps
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
fn({
|
|
16
|
+
MuiInput: {
|
|
17
|
+
defaultProps: {
|
|
18
|
+
components: {
|
|
19
|
+
Input: ComponentsInput
|
|
20
|
+
},
|
|
21
|
+
slots: {
|
|
22
|
+
root: SlotsRoot
|
|
23
|
+
},
|
|
24
|
+
componentsProps: {
|
|
25
|
+
input: componentsInputProps
|
|
26
|
+
},
|
|
27
|
+
slotProps: {
|
|
28
|
+
root: slotsRootProps
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
fn({
|
|
34
|
+
MuiInput: {
|
|
35
|
+
defaultProps: {
|
|
36
|
+
components: {
|
|
37
|
+
Input: ComponentsInput
|
|
38
|
+
},
|
|
39
|
+
slots: {
|
|
40
|
+
root: SlotsRoot,
|
|
41
|
+
input: SlotsInput
|
|
42
|
+
},
|
|
43
|
+
componentsProps: {
|
|
44
|
+
input: componentsInputProps
|
|
45
|
+
},
|
|
46
|
+
slotProps: {
|
|
47
|
+
root: slotsRootProps,
|
|
48
|
+
input: slotsInputProps
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
fn({
|
|
54
|
+
MuiInput: {
|
|
55
|
+
defaultProps: {
|
|
56
|
+
components: {
|
|
57
|
+
Input: ComponentsInput
|
|
58
|
+
},
|
|
59
|
+
slots: {
|
|
60
|
+
root: SlotsRoot,
|
|
61
|
+
input: SlotsInput
|
|
62
|
+
},
|
|
63
|
+
componentsProps: {
|
|
64
|
+
input: componentsInputProps,
|
|
65
|
+
root: componentsRootProps
|
|
66
|
+
},
|
|
67
|
+
slotProps: {
|
|
68
|
+
root: slotsRootProps,
|
|
69
|
+
input: slotsInputProps
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
});
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
fn({
|
|
4
|
+
MuiInput: {
|
|
5
|
+
defaultProps: {
|
|
6
|
+
slots: {
|
|
7
|
+
input: ComponentsInput
|
|
8
|
+
},
|
|
9
|
+
slotProps: {
|
|
10
|
+
input: componentsInputProps
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
fn({
|
|
16
|
+
MuiInput: {
|
|
17
|
+
defaultProps: {
|
|
18
|
+
slots: {
|
|
19
|
+
input: ComponentsInput,
|
|
20
|
+
root: SlotsRoot
|
|
21
|
+
},
|
|
22
|
+
slotProps: {
|
|
23
|
+
input: componentsInputProps,
|
|
24
|
+
root: slotsRootProps
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
fn({
|
|
30
|
+
MuiInput: {
|
|
31
|
+
defaultProps: {
|
|
32
|
+
slots: {
|
|
33
|
+
input: SlotsInput,
|
|
34
|
+
root: SlotsRoot
|
|
35
|
+
},
|
|
36
|
+
slotProps: {
|
|
37
|
+
input: {
|
|
38
|
+
...componentsInputProps,
|
|
39
|
+
...slotsInputProps
|
|
40
|
+
},
|
|
41
|
+
root: slotsRootProps
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
fn({
|
|
47
|
+
MuiInput: {
|
|
48
|
+
defaultProps: {
|
|
49
|
+
slots: {
|
|
50
|
+
input: SlotsInput,
|
|
51
|
+
root: SlotsRoot
|
|
52
|
+
},
|
|
53
|
+
slotProps: {
|
|
54
|
+
input: {
|
|
55
|
+
...componentsInputProps,
|
|
56
|
+
...slotsInputProps
|
|
57
|
+
},
|
|
58
|
+
root: {
|
|
59
|
+
...componentsRootProps,
|
|
60
|
+
...slotsRootProps
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
@@ -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 _modalProps.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _modalProps = _interopRequireDefault(require("./modal-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: 'Modal'
|
|
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 _Modal = _interopRequireDefault(require("@mui/material/Modal"));
|
|
5
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
6
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.default, {
|
|
7
|
+
components: {
|
|
8
|
+
Root: ComponentsRoot
|
|
9
|
+
},
|
|
10
|
+
componentsProps: {
|
|
11
|
+
root: componentsRootProps
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.default, {
|
|
15
|
+
components: {
|
|
16
|
+
Root: ComponentsRoot
|
|
17
|
+
},
|
|
18
|
+
slotProps: {
|
|
19
|
+
root: slotsRootProps
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.default, {
|
|
23
|
+
slots: {
|
|
24
|
+
root: SlotsRoot
|
|
25
|
+
},
|
|
26
|
+
componentsProps: {
|
|
27
|
+
root: componentsRootProps
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.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 _Modal = _interopRequireDefault(require("@mui/material/Modal"));
|
|
5
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
6
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.default, {
|
|
7
|
+
slots: {
|
|
8
|
+
root: ComponentsRoot
|
|
9
|
+
},
|
|
10
|
+
slotProps: {
|
|
11
|
+
root: componentsRootProps
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.default, {
|
|
15
|
+
slotProps: {
|
|
16
|
+
root: slotsRootProps
|
|
17
|
+
},
|
|
18
|
+
slots: {
|
|
19
|
+
root: ComponentsRoot
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.default, {
|
|
23
|
+
slots: {
|
|
24
|
+
root: SlotsRoot
|
|
25
|
+
},
|
|
26
|
+
slotProps: {
|
|
27
|
+
root: componentsRootProps
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.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
|
+
MuiModal: {
|
|
5
|
+
defaultProps: {
|
|
6
|
+
components: {
|
|
7
|
+
Root: ComponentsRoot
|
|
8
|
+
},
|
|
9
|
+
componentsProps: {
|
|
10
|
+
root: componentsRootProps
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
fn({
|
|
16
|
+
MuiModal: {
|
|
17
|
+
defaultProps: {
|
|
18
|
+
components: {
|
|
19
|
+
Root: ComponentsRoot
|
|
20
|
+
},
|
|
21
|
+
slotProps: {
|
|
22
|
+
root: slotsRootProps
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
fn({
|
|
28
|
+
MuiModal: {
|
|
29
|
+
defaultProps: {
|
|
30
|
+
slots: {
|
|
31
|
+
root: SlotsRoot
|
|
32
|
+
},
|
|
33
|
+
componentsProps: {
|
|
34
|
+
root: componentsRootProps
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
fn({
|
|
40
|
+
MuiModal: {
|
|
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
|
+
MuiModal: {
|
|
5
|
+
defaultProps: {
|
|
6
|
+
slots: {
|
|
7
|
+
root: ComponentsRoot
|
|
8
|
+
},
|
|
9
|
+
slotProps: {
|
|
10
|
+
root: componentsRootProps
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
fn({
|
|
16
|
+
MuiModal: {
|
|
17
|
+
defaultProps: {
|
|
18
|
+
slotProps: {
|
|
19
|
+
root: slotsRootProps
|
|
20
|
+
},
|
|
21
|
+
slots: {
|
|
22
|
+
root: ComponentsRoot
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
fn({
|
|
28
|
+
MuiModal: {
|
|
29
|
+
defaultProps: {
|
|
30
|
+
slots: {
|
|
31
|
+
root: SlotsRoot
|
|
32
|
+
},
|
|
33
|
+
slotProps: {
|
|
34
|
+
root: componentsRootProps
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
fn({
|
|
40
|
+
MuiModal: {
|
|
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 _outlinedInputProps.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _outlinedInputProps = _interopRequireDefault(require("./outlined-input-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: 'OutlinedInput'
|
|
20
|
+
});
|
|
21
|
+
return root.toSource(printOptions);
|
|
22
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _OutlinedInput = _interopRequireDefault(require("@mui/material/OutlinedInput"));
|
|
5
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
6
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_OutlinedInput.default, {
|
|
7
|
+
components: {
|
|
8
|
+
Input: ComponentsInput
|
|
9
|
+
},
|
|
10
|
+
componentsProps: {
|
|
11
|
+
input: componentsInputProps
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_OutlinedInput.default, {
|
|
15
|
+
slots: {
|
|
16
|
+
root: SlotsRoot
|
|
17
|
+
},
|
|
18
|
+
components: {
|
|
19
|
+
Input: ComponentsInput
|
|
20
|
+
},
|
|
21
|
+
slotProps: {
|
|
22
|
+
root: slotsRootProps
|
|
23
|
+
},
|
|
24
|
+
componentsProps: {
|
|
25
|
+
input: componentsInputProps
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_OutlinedInput.default, {
|
|
29
|
+
slots: {
|
|
30
|
+
root: SlotsRoot,
|
|
31
|
+
input: SlotsInput
|
|
32
|
+
},
|
|
33
|
+
components: {
|
|
34
|
+
Input: ComponentsInput
|
|
35
|
+
},
|
|
36
|
+
slotProps: {
|
|
37
|
+
root: slotsRootProps,
|
|
38
|
+
input: slotsInputProps
|
|
39
|
+
},
|
|
40
|
+
componentsProps: {
|
|
41
|
+
input: componentsInputProps
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_OutlinedInput.default, {
|
|
45
|
+
slots: {
|
|
46
|
+
root: SlotsRoot,
|
|
47
|
+
input: SlotsInput
|
|
48
|
+
},
|
|
49
|
+
components: {
|
|
50
|
+
Input: ComponentsInput
|
|
51
|
+
},
|
|
52
|
+
slotProps: {
|
|
53
|
+
root: slotsRootProps,
|
|
54
|
+
input: slotsInputProps
|
|
55
|
+
},
|
|
56
|
+
componentsProps: {
|
|
57
|
+
input: componentsInputProps,
|
|
58
|
+
root: componentsRootProps
|
|
59
|
+
}
|
|
60
|
+
});
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _OutlinedInput = _interopRequireDefault(require("@mui/material/OutlinedInput"));
|
|
5
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
6
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_OutlinedInput.default, {
|
|
7
|
+
slots: {
|
|
8
|
+
input: ComponentsInput
|
|
9
|
+
},
|
|
10
|
+
slotProps: {
|
|
11
|
+
input: componentsInputProps
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_OutlinedInput.default, {
|
|
15
|
+
slots: {
|
|
16
|
+
root: SlotsRoot,
|
|
17
|
+
input: ComponentsInput
|
|
18
|
+
},
|
|
19
|
+
slotProps: {
|
|
20
|
+
root: slotsRootProps,
|
|
21
|
+
input: componentsInputProps
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_OutlinedInput.default, {
|
|
25
|
+
slots: {
|
|
26
|
+
root: SlotsRoot,
|
|
27
|
+
input: SlotsInput
|
|
28
|
+
},
|
|
29
|
+
slotProps: {
|
|
30
|
+
root: slotsRootProps,
|
|
31
|
+
input: {
|
|
32
|
+
...componentsInputProps,
|
|
33
|
+
...slotsInputProps
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_OutlinedInput.default, {
|
|
38
|
+
slots: {
|
|
39
|
+
root: SlotsRoot,
|
|
40
|
+
input: SlotsInput
|
|
41
|
+
},
|
|
42
|
+
slotProps: {
|
|
43
|
+
input: {
|
|
44
|
+
...componentsInputProps,
|
|
45
|
+
...slotsInputProps
|
|
46
|
+
},
|
|
47
|
+
root: {
|
|
48
|
+
...componentsRootProps,
|
|
49
|
+
...slotsRootProps
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
fn({
|
|
4
|
+
MuiOutlinedInput: {
|
|
5
|
+
defaultProps: {
|
|
6
|
+
components: {
|
|
7
|
+
Input: ComponentsInput
|
|
8
|
+
},
|
|
9
|
+
componentsProps: {
|
|
10
|
+
input: componentsInputProps
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
fn({
|
|
16
|
+
MuiOutlinedInput: {
|
|
17
|
+
defaultProps: {
|
|
18
|
+
components: {
|
|
19
|
+
Input: ComponentsInput
|
|
20
|
+
},
|
|
21
|
+
slots: {
|
|
22
|
+
root: SlotsRoot
|
|
23
|
+
},
|
|
24
|
+
componentsProps: {
|
|
25
|
+
input: componentsInputProps
|
|
26
|
+
},
|
|
27
|
+
slotProps: {
|
|
28
|
+
root: slotsRootProps
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
fn({
|
|
34
|
+
MuiOutlinedInput: {
|
|
35
|
+
defaultProps: {
|
|
36
|
+
components: {
|
|
37
|
+
Input: ComponentsInput
|
|
38
|
+
},
|
|
39
|
+
slots: {
|
|
40
|
+
root: SlotsRoot,
|
|
41
|
+
input: SlotsInput
|
|
42
|
+
},
|
|
43
|
+
componentsProps: {
|
|
44
|
+
input: componentsInputProps
|
|
45
|
+
},
|
|
46
|
+
slotProps: {
|
|
47
|
+
root: slotsRootProps,
|
|
48
|
+
input: slotsInputProps
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
fn({
|
|
54
|
+
MuiOutlinedInput: {
|
|
55
|
+
defaultProps: {
|
|
56
|
+
components: {
|
|
57
|
+
Input: ComponentsInput
|
|
58
|
+
},
|
|
59
|
+
slots: {
|
|
60
|
+
root: SlotsRoot,
|
|
61
|
+
input: SlotsInput
|
|
62
|
+
},
|
|
63
|
+
componentsProps: {
|
|
64
|
+
input: componentsInputProps,
|
|
65
|
+
root: componentsRootProps
|
|
66
|
+
},
|
|
67
|
+
slotProps: {
|
|
68
|
+
root: slotsRootProps,
|
|
69
|
+
input: slotsInputProps
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
});
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
fn({
|
|
4
|
+
MuiOutlinedInput: {
|
|
5
|
+
defaultProps: {
|
|
6
|
+
slots: {
|
|
7
|
+
input: ComponentsInput
|
|
8
|
+
},
|
|
9
|
+
slotProps: {
|
|
10
|
+
input: componentsInputProps
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
fn({
|
|
16
|
+
MuiOutlinedInput: {
|
|
17
|
+
defaultProps: {
|
|
18
|
+
slots: {
|
|
19
|
+
input: ComponentsInput,
|
|
20
|
+
root: SlotsRoot
|
|
21
|
+
},
|
|
22
|
+
slotProps: {
|
|
23
|
+
input: componentsInputProps,
|
|
24
|
+
root: slotsRootProps
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
fn({
|
|
30
|
+
MuiOutlinedInput: {
|
|
31
|
+
defaultProps: {
|
|
32
|
+
slots: {
|
|
33
|
+
input: SlotsInput,
|
|
34
|
+
root: SlotsRoot
|
|
35
|
+
},
|
|
36
|
+
slotProps: {
|
|
37
|
+
input: {
|
|
38
|
+
...componentsInputProps,
|
|
39
|
+
...slotsInputProps
|
|
40
|
+
},
|
|
41
|
+
root: slotsRootProps
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
fn({
|
|
47
|
+
MuiOutlinedInput: {
|
|
48
|
+
defaultProps: {
|
|
49
|
+
slots: {
|
|
50
|
+
input: SlotsInput,
|
|
51
|
+
root: SlotsRoot
|
|
52
|
+
},
|
|
53
|
+
slotProps: {
|
|
54
|
+
input: {
|
|
55
|
+
...componentsInputProps,
|
|
56
|
+
...slotsInputProps
|
|
57
|
+
},
|
|
58
|
+
root: {
|
|
59
|
+
...componentsRootProps,
|
|
60
|
+
...slotsRootProps
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = transformer;
|
|
8
8
|
var _replaceComponentsWithSlots = _interopRequireDefault(require("../utils/replaceComponentsWithSlots"));
|
|
9
|
-
var _movePropIntoSlots = _interopRequireDefault(require("../utils/movePropIntoSlots"));
|
|
10
|
-
var _movePropIntoSlotProps = _interopRequireDefault(require("../utils/movePropIntoSlotProps"));
|
|
11
9
|
/**
|
|
12
10
|
* @param {import('jscodeshift').FileInfo} file
|
|
13
11
|
* @param {import('jscodeshift').API} api
|
|
@@ -20,17 +18,5 @@ function transformer(file, api, options) {
|
|
|
20
18
|
root,
|
|
21
19
|
componentName: 'StepLabel'
|
|
22
20
|
});
|
|
23
|
-
(0, _movePropIntoSlots.default)(j, {
|
|
24
|
-
root,
|
|
25
|
-
componentName: 'StepLabel',
|
|
26
|
-
propName: 'StepIconComponent',
|
|
27
|
-
slotName: 'stepIcon'
|
|
28
|
-
});
|
|
29
|
-
(0, _movePropIntoSlotProps.default)(j, {
|
|
30
|
-
root,
|
|
31
|
-
componentName: 'StepLabel',
|
|
32
|
-
propName: 'StepIconProps',
|
|
33
|
-
slotName: 'stepIcon'
|
|
34
|
-
});
|
|
35
21
|
return root.toSource(printOptions);
|
|
36
22
|
}
|