@mui/codemod 7.0.2 → 7.1.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.
Files changed (178) hide show
  1. package/README.md +10 -0
  2. package/codemod.js +8 -0
  3. package/deprecations/accordion-props/accordion-props.js +2 -0
  4. package/deprecations/accordion-props/test-cases/package.actual.js +68 -0
  5. package/deprecations/accordion-props/test-cases/package.expected.js +74 -0
  6. package/deprecations/accordion-summary-classes/accordion-summary-classes.js +1 -1
  7. package/deprecations/accordion-summary-classes/test-cases/package.actual.js +54 -0
  8. package/deprecations/accordion-summary-classes/test-cases/package.expected.js +54 -0
  9. package/deprecations/alert-classes/alert-classes.js +1 -1
  10. package/deprecations/alert-classes/test-cases/package.actual.js +27 -0
  11. package/deprecations/alert-classes/test-cases/package.expected.js +27 -0
  12. package/deprecations/alert-props/alert-props.js +1 -0
  13. package/deprecations/alert-props/test-cases/package.actual.js +60 -0
  14. package/deprecations/alert-props/test-cases/package.expected.js +52 -0
  15. package/deprecations/autocomplete-props/autocomplete-props.js +7 -0
  16. package/deprecations/autocomplete-props/test-cases/package.actual.js +113 -0
  17. package/deprecations/autocomplete-props/test-cases/package.expected.js +125 -0
  18. package/deprecations/avatar-group-props/avatar-group-props.js +4 -2
  19. package/deprecations/avatar-group-props/test-cases/package.actual.js +56 -0
  20. package/deprecations/avatar-group-props/test-cases/package.expected.js +58 -0
  21. package/deprecations/avatar-props/avatar-props.js +2 -1
  22. package/deprecations/avatar-props/test-cases/package.actual.js +36 -0
  23. package/deprecations/avatar-props/test-cases/package.expected.js +42 -0
  24. package/deprecations/backdrop-props/backdrop-props.js +2 -0
  25. package/deprecations/backdrop-props/test-cases/package.actual.js +81 -0
  26. package/deprecations/backdrop-props/test-cases/package.expected.js +81 -0
  27. package/deprecations/badge-props/badge-props.js +2 -1
  28. package/deprecations/badge-props/test-cases/package.actual.js +59 -0
  29. package/deprecations/badge-props/test-cases/package.expected.js +51 -0
  30. package/deprecations/button-classes/button-classes.js +1 -1
  31. package/deprecations/button-classes/test-cases/package.actual.js +69 -0
  32. package/deprecations/button-classes/test-cases/package.expected.js +69 -0
  33. package/deprecations/button-group-classes/button-group-classes.js +1 -1
  34. package/deprecations/button-group-classes/test-cases/package.actual.js +37 -0
  35. package/deprecations/button-group-classes/test-cases/package.expected.js +37 -0
  36. package/deprecations/card-header-props/card-header-props.js +2 -0
  37. package/deprecations/card-header-props/test-cases/package.actual.js +66 -0
  38. package/deprecations/card-header-props/test-cases/package.expected.js +78 -0
  39. package/deprecations/chip-classes/chip-classes.js +1 -1
  40. package/deprecations/chip-classes/test-cases/package.actual.js +55 -0
  41. package/deprecations/chip-classes/test-cases/package.expected.js +55 -0
  42. package/deprecations/circular-progress-classes/circular-progress-classes.js +1 -1
  43. package/deprecations/circular-progress-classes/test-cases/package.actual.js +7 -0
  44. package/deprecations/circular-progress-classes/test-cases/package.expected.js +7 -0
  45. package/deprecations/dialog-classes/dialog-classes.js +1 -1
  46. package/deprecations/dialog-classes/test-cases/package.actual.js +7 -0
  47. package/deprecations/dialog-classes/test-cases/package.expected.js +7 -0
  48. package/deprecations/divider-props/divider-props.js +3 -1
  49. package/deprecations/divider-props/test-cases/package.actual.js +45 -0
  50. package/deprecations/divider-props/test-cases/package.expected.js +50 -0
  51. package/deprecations/drawer-classes/drawer-classes.js +1 -1
  52. package/deprecations/drawer-classes/test-cases/package.actual.js +19 -0
  53. package/deprecations/drawer-classes/test-cases/package.expected.js +19 -0
  54. package/deprecations/drawer-props/drawer-props.js +8 -0
  55. package/deprecations/drawer-props/test-cases/package.actual.js +73 -0
  56. package/deprecations/drawer-props/test-cases/package.expected.js +97 -0
  57. package/deprecations/filled-input-props/filled-input-props.js +1 -0
  58. package/deprecations/filled-input-props/test-cases/package.actual.js +60 -0
  59. package/deprecations/filled-input-props/test-cases/package.expected.js +52 -0
  60. package/deprecations/form-control-label-props/form-control-label-props.js +1 -0
  61. package/deprecations/form-control-label-props/test-cases/package.actual.js +21 -0
  62. package/deprecations/form-control-label-props/test-cases/package.expected.js +21 -0
  63. package/deprecations/image-list-item-bar-classes/image-list-item-bar-classes.js +1 -1
  64. package/deprecations/image-list-item-bar-classes/test-cases/package.actual.js +11 -0
  65. package/deprecations/image-list-item-bar-classes/test-cases/package.expected.js +11 -0
  66. package/deprecations/input-base-classes/input-base-classes.js +1 -1
  67. package/deprecations/input-base-classes/test-cases/package.actual.js +13 -0
  68. package/deprecations/input-base-classes/test-cases/package.expected.js +13 -0
  69. package/deprecations/input-base-props/input-base-props.js +1 -0
  70. package/deprecations/input-base-props/test-cases/package.actual.js +60 -0
  71. package/deprecations/input-base-props/test-cases/package.expected.js +52 -0
  72. package/deprecations/input-props/input-props.js +1 -0
  73. package/deprecations/input-props/test-cases/package.actual.js +60 -0
  74. package/deprecations/input-props/test-cases/package.expected.js +52 -0
  75. package/deprecations/linear-progress-classes/linear-progress-classes.js +1 -1
  76. package/deprecations/linear-progress-classes/test-cases/package.actual.js +21 -0
  77. package/deprecations/linear-progress-classes/test-cases/package.expected.js +21 -0
  78. package/deprecations/list-item-props/list-item-props.js +3 -0
  79. package/deprecations/list-item-props/test-cases/package.actual.js +49 -0
  80. package/deprecations/list-item-props/test-cases/package.expected.js +50 -0
  81. package/deprecations/list-item-text-props/list-item-text-props.js +3 -0
  82. package/deprecations/list-item-text-props/test-cases/package.actual.js +21 -0
  83. package/deprecations/list-item-text-props/test-cases/package.expected.js +27 -0
  84. package/deprecations/menu-props/menu-props.js +3 -0
  85. package/deprecations/menu-props/test-cases/package.actual.js +67 -0
  86. package/deprecations/menu-props/test-cases/package.expected.js +83 -0
  87. package/deprecations/mobile-stepper-props/mobile-stepper-props.js +1 -0
  88. package/deprecations/mobile-stepper-props/test-cases/package.actual.js +30 -0
  89. package/deprecations/mobile-stepper-props/test-cases/package.expected.js +34 -0
  90. package/deprecations/modal-props/modal-props.js +3 -0
  91. package/deprecations/modal-props/test-cases/package.actual.js +49 -0
  92. package/deprecations/modal-props/test-cases/package.expected.js +50 -0
  93. package/deprecations/outlined-input-props/outlined-input-props.js +1 -0
  94. package/deprecations/outlined-input-props/test-cases/package.actual.js +60 -0
  95. package/deprecations/outlined-input-props/test-cases/package.expected.js +52 -0
  96. package/deprecations/pagination-item-classes/pagination-item-classes.js +1 -1
  97. package/deprecations/pagination-item-classes/test-cases/package.actual.js +108 -0
  98. package/deprecations/pagination-item-classes/test-cases/package.expected.js +108 -0
  99. package/deprecations/pagination-item-props/pagination-item-props.js +1 -0
  100. package/deprecations/pagination-item-props/test-cases/package.actual.js +27 -0
  101. package/deprecations/pagination-item-props/test-cases/package.expected.js +21 -0
  102. package/deprecations/popover-props/popover-props.js +5 -0
  103. package/deprecations/popover-props/test-cases/package.actual.js +73 -0
  104. package/deprecations/popover-props/test-cases/package.expected.js +89 -0
  105. package/deprecations/popper-props/popper-props.js +1 -0
  106. package/deprecations/popper-props/test-cases/package.actual.js +27 -0
  107. package/deprecations/popper-props/test-cases/package.expected.js +24 -0
  108. package/deprecations/rating-props/rating-props.js +1 -0
  109. package/deprecations/rating-props/test-cases/package.actual.js +37 -0
  110. package/deprecations/rating-props/test-cases/package.expected.js +53 -0
  111. package/deprecations/select-classes/select-classes.js +1 -1
  112. package/deprecations/select-classes/test-cases/package.actual.js +9 -0
  113. package/deprecations/select-classes/test-cases/package.expected.js +9 -0
  114. package/deprecations/slider-classes/slider-classes.js +1 -1
  115. package/deprecations/slider-classes/test-cases/package.actual.js +19 -0
  116. package/deprecations/slider-classes/test-cases/package.expected.js +19 -0
  117. package/deprecations/slider-props/slider-props.js +1 -0
  118. package/deprecations/slider-props/test-cases/package.actual.js +60 -0
  119. package/deprecations/slider-props/test-cases/package.expected.js +52 -0
  120. package/deprecations/snackbar-props/snackbar-props.js +4 -0
  121. package/deprecations/snackbar-props/test-cases/package.actual.js +54 -0
  122. package/deprecations/snackbar-props/test-cases/package.expected.js +67 -0
  123. package/deprecations/speed-dial-action-props/speed-dial-action-props.js +5 -0
  124. package/deprecations/speed-dial-action-props/test-cases/package.actual.js +56 -0
  125. package/deprecations/speed-dial-action-props/test-cases/package.expected.js +104 -0
  126. package/deprecations/speed-dial-props/speed-dial-props.js +2 -0
  127. package/deprecations/speed-dial-props/test-cases/package.actual.js +41 -0
  128. package/deprecations/speed-dial-props/test-cases/package.expected.js +54 -0
  129. package/deprecations/step-connector-classes/step-connector-classes.js +1 -1
  130. package/deprecations/step-connector-classes/test-cases/package.actual.js +7 -0
  131. package/deprecations/step-connector-classes/test-cases/package.expected.js +7 -0
  132. package/deprecations/step-content-props/step-content-props.js +2 -0
  133. package/deprecations/step-content-props/test-cases/package.actual.js +65 -0
  134. package/deprecations/step-content-props/test-cases/package.expected.js +74 -0
  135. package/deprecations/step-label-props/step-label-props.js +3 -0
  136. package/deprecations/step-label-props/test-cases/package.actual.js +44 -0
  137. package/deprecations/step-label-props/test-cases/package.expected.js +48 -0
  138. package/deprecations/tab-classes/tab-classes.js +1 -1
  139. package/deprecations/tab-classes/test-cases/package.actual.js +5 -0
  140. package/deprecations/tab-classes/test-cases/package.expected.js +5 -0
  141. package/deprecations/table-pagination-props/table-pagination-props.js +2 -0
  142. package/deprecations/table-pagination-props/test-cases/package.actual.js +62 -0
  143. package/deprecations/table-pagination-props/test-cases/package.expected.js +72 -0
  144. package/deprecations/table-sort-label-classes/table-sort-label-classes.js +1 -1
  145. package/deprecations/table-sort-label-classes/test-cases/package.actual.js +7 -0
  146. package/deprecations/table-sort-label-classes/test-cases/package.expected.js +7 -0
  147. package/deprecations/tabs-classes/tabs-classes.js +1 -1
  148. package/deprecations/tabs-classes/test-cases/package.actual.js +7 -0
  149. package/deprecations/tabs-classes/test-cases/package.expected.js +7 -0
  150. package/deprecations/tabs-props/tabs-props.js +3 -0
  151. package/deprecations/tabs-props/test-cases/package.actual.js +33 -0
  152. package/deprecations/tabs-props/test-cases/package.expected.js +41 -0
  153. package/deprecations/text-field-props/test-cases/package.actual.js +27 -0
  154. package/deprecations/text-field-props/test-cases/package.expected.js +31 -0
  155. package/deprecations/text-field-props/text-field-props.js +5 -0
  156. package/deprecations/toggle-button-group-classes/test-cases/package.actual.js +7 -0
  157. package/deprecations/toggle-button-group-classes/test-cases/package.expected.js +7 -0
  158. package/deprecations/toggle-button-group-classes/toggle-button-group-classes.js +1 -1
  159. package/deprecations/tooltip-props/test-cases/package.actual.js +141 -0
  160. package/deprecations/tooltip-props/test-cases/package.expected.js +141 -0
  161. package/deprecations/tooltip-props/tooltip-props.js +5 -0
  162. package/deprecations/typography-props/test-cases/package.actual.js +88 -0
  163. package/deprecations/typography-props/test-cases/package.expected.js +98 -0
  164. package/deprecations/typography-props/typography-props.js +1 -0
  165. package/deprecations/utils/movePropIntoSlotProps.js +2 -10
  166. package/deprecations/utils/movePropIntoSlots.js +2 -10
  167. package/deprecations/utils/replaceComponentsWithSlots.js +3 -13
  168. package/package.json +6 -7
  169. package/util/findComponentJSX.js +4 -3
  170. package/v6.0.0/grid-v2-props/grid-v2-props.js +5 -0
  171. package/v6.0.0/grid-v2-props/test-cases/package.actual.js +91 -0
  172. package/v6.0.0/grid-v2-props/test-cases/package.expected.js +91 -0
  173. package/v6.0.0/list-item-button-prop/list-item-button-prop.js +8 -4
  174. package/v6.0.0/list-item-button-prop/test-cases/package.actual.js +31 -0
  175. package/v6.0.0/list-item-button-prop/test-cases/package.expected.js +20 -0
  176. package/v7.0.0/grid-props/grid-props.js +5 -0
  177. package/v7.0.0/grid-props/test-cases/package.actual.js +91 -0
  178. package/v7.0.0/grid-props/test-cases/package.expected.js +91 -0
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _SpeedDialAction = _interopRequireDefault(require("@org/ui/material/SpeedDialAction"));
5
+ var _material = require("@org/ui/material");
6
+ var _jsxRuntime = require("react/jsx-runtime");
7
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDialAction.default, {
8
+ tooltipTitle: "test"
9
+ });
10
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDialAction.default, {
11
+ tooltipOpen: true
12
+ });
13
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDialAction.default, {
14
+ tooltipPlacement: "test"
15
+ });
16
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDialAction.default, {
17
+ TooltipClasses: TooltipClasses
18
+ });
19
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDialAction.default, {
20
+ FabProps: FabProps
21
+ });
22
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDialAction.default, {
23
+ TooltipClasses: TooltipClasses,
24
+ tooltipOpen: true,
25
+ tooltipPlacement: "top",
26
+ tooltipTitle: "test"
27
+ });
28
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDialAction.default, {
29
+ TooltipClasses: TooltipClasses,
30
+ tooltipOpen: true,
31
+ tooltipPlacement: "top",
32
+ tooltipTitle: "test",
33
+ FabProps: FabProps
34
+ });
35
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.SpeedDialAction, {
36
+ tooltipTitle: "test"
37
+ });
38
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.SpeedDialAction, {
39
+ tooltipOpen: true
40
+ });
41
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.SpeedDialAction, {
42
+ tooltipPlacement: "test"
43
+ });
44
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.SpeedDialAction, {
45
+ TooltipClasses: TooltipClasses
46
+ });
47
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.SpeedDialAction, {
48
+ FabProps: FabProps
49
+ });
50
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.SpeedDialAction, {
51
+ TooltipClasses: TooltipClasses,
52
+ tooltipOpen: true,
53
+ tooltipPlacement: "top",
54
+ tooltipTitle: "test",
55
+ FabProps: FabProps
56
+ });
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _SpeedDialAction = _interopRequireDefault(require("@org/ui/material/SpeedDialAction"));
5
+ var _material = require("@org/ui/material");
6
+ var _jsxRuntime = require("react/jsx-runtime");
7
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDialAction.default, {
8
+ slotProps: {
9
+ tooltip: {
10
+ title: "test"
11
+ }
12
+ }
13
+ });
14
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDialAction.default, {
15
+ slotProps: {
16
+ tooltip: {
17
+ open: true
18
+ }
19
+ }
20
+ });
21
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDialAction.default, {
22
+ slotProps: {
23
+ tooltip: {
24
+ placement: "test"
25
+ }
26
+ }
27
+ });
28
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDialAction.default, {
29
+ slotProps: {
30
+ tooltip: {
31
+ classes: TooltipClasses
32
+ }
33
+ }
34
+ });
35
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDialAction.default, {
36
+ slotProps: {
37
+ fab: FabProps
38
+ }
39
+ });
40
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDialAction.default, {
41
+ slotProps: {
42
+ tooltip: {
43
+ title: "test",
44
+ placement: "top",
45
+ open: true,
46
+ classes: TooltipClasses
47
+ }
48
+ }
49
+ });
50
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDialAction.default, {
51
+ slotProps: {
52
+ tooltip: {
53
+ title: "test",
54
+ placement: "top",
55
+ open: true,
56
+ classes: TooltipClasses
57
+ },
58
+ fab: FabProps
59
+ }
60
+ });
61
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.SpeedDialAction, {
62
+ slotProps: {
63
+ tooltip: {
64
+ title: "test"
65
+ }
66
+ }
67
+ });
68
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.SpeedDialAction, {
69
+ slotProps: {
70
+ tooltip: {
71
+ open: true
72
+ }
73
+ }
74
+ });
75
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.SpeedDialAction, {
76
+ slotProps: {
77
+ tooltip: {
78
+ placement: "test"
79
+ }
80
+ }
81
+ });
82
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.SpeedDialAction, {
83
+ slotProps: {
84
+ tooltip: {
85
+ classes: TooltipClasses
86
+ }
87
+ }
88
+ });
89
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.SpeedDialAction, {
90
+ slotProps: {
91
+ fab: FabProps
92
+ }
93
+ });
94
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.SpeedDialAction, {
95
+ slotProps: {
96
+ tooltip: {
97
+ title: "test",
98
+ placement: "top",
99
+ open: true,
100
+ classes: TooltipClasses
101
+ },
102
+ fab: FabProps
103
+ }
104
+ });
@@ -17,12 +17,14 @@ function transformer(file, api, options) {
17
17
  const printOptions = options.printOptions;
18
18
  (0, _movePropIntoSlots.default)(j, {
19
19
  root,
20
+ packageName: options.packageName,
20
21
  componentName: 'SpeedDial',
21
22
  propName: 'TransitionComponent',
22
23
  slotName: 'transition'
23
24
  });
24
25
  (0, _movePropIntoSlotProps.default)(j, {
25
26
  root,
27
+ packageName: options.packageName,
26
28
  componentName: 'SpeedDial',
27
29
  propName: 'TransitionProps',
28
30
  slotName: 'transition'
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _SpeedDial = _interopRequireDefault(require("@org/ui/material/SpeedDial"));
5
+ var _material = require("@org/ui/material");
6
+ var _jsxRuntime = require("react/jsx-runtime");
7
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDial.default, {
8
+ TransitionComponent: CustomTransition,
9
+ TransitionProps: CustomTransitionProps
10
+ });
11
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.SpeedDial, {
12
+ TransitionComponent: CustomTransition,
13
+ TransitionProps: CustomTransitionProps
14
+ });
15
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDial.default, {
16
+ TransitionComponent: CustomTransition,
17
+ TransitionProps: CustomTransitionProps,
18
+ slots: {
19
+ root: 'div'
20
+ }
21
+ });
22
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.SpeedDial, {
23
+ TransitionComponent: CustomTransition,
24
+ TransitionProps: CustomTransitionProps,
25
+ slots: {
26
+ ...outerSlots
27
+ }
28
+ });
29
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDial.default, {
30
+ TransitionComponent: ComponentTransition,
31
+ TransitionProps: CustomTransitionProps,
32
+ slots: {
33
+ root: 'div',
34
+ transition: SlotTransition
35
+ }
36
+ });
37
+ // should skip non MUI components
38
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(NonMuiSpeedDial, {
39
+ TransitionComponent: CustomTransition,
40
+ TransitionProps: CustomTransitionProps
41
+ });
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _SpeedDial = _interopRequireDefault(require("@org/ui/material/SpeedDial"));
5
+ var _material = require("@org/ui/material");
6
+ var _jsxRuntime = require("react/jsx-runtime");
7
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDial.default, {
8
+ slots: {
9
+ transition: CustomTransition
10
+ },
11
+ slotProps: {
12
+ transition: CustomTransitionProps
13
+ }
14
+ });
15
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.SpeedDial, {
16
+ slots: {
17
+ transition: CustomTransition
18
+ },
19
+ slotProps: {
20
+ transition: CustomTransitionProps
21
+ }
22
+ });
23
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDial.default, {
24
+ slots: {
25
+ root: 'div',
26
+ transition: CustomTransition
27
+ },
28
+ slotProps: {
29
+ transition: CustomTransitionProps
30
+ }
31
+ });
32
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.SpeedDial, {
33
+ slots: {
34
+ ...outerSlots,
35
+ transition: CustomTransition
36
+ },
37
+ slotProps: {
38
+ transition: CustomTransitionProps
39
+ }
40
+ });
41
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeedDial.default, {
42
+ slots: {
43
+ root: 'div',
44
+ transition: SlotTransition
45
+ },
46
+ slotProps: {
47
+ transition: CustomTransitionProps
48
+ }
49
+ });
50
+ // should skip non MUI components
51
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(NonMuiSpeedDial, {
52
+ TransitionComponent: CustomTransition,
53
+ TransitionProps: CustomTransitionProps
54
+ });
@@ -18,7 +18,7 @@ function transformer(file, api, options) {
18
18
  replacementSelector
19
19
  }) => {
20
20
  const replacementSelectorPrefix = '&';
21
- root.find(j.ImportDeclaration).filter(path => path.node.source.value.match(/^@mui\/material\/StepConnector$/)).forEach(path => {
21
+ root.find(j.ImportDeclaration).filter(path => path.node.source.value.match(new RegExp(`^${options.packageName || '@mui/material'}(/StepConnector)?$`))).forEach(path => {
22
22
  path.node.specifiers.forEach(specifier => {
23
23
  if (specifier.type === 'ImportSpecifier' && specifier.imported.name === 'stepConnectorClasses') {
24
24
  const deprecatedAtomicClass = deprecatedClass.replace(`${deprecatedClass.split('-')[0]}-`, '');
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ var _StepConnector = require("@org/ui/material/StepConnector");
4
+ '& .MuiStepConnector-lineHorizontal';
5
+ '& .MuiStepConnector-lineVertical';
6
+ `& .${_StepConnector.stepConnectorClasses.lineHorizontal}`;
7
+ `& .${_StepConnector.stepConnectorClasses.lineVertical}`;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ var _StepConnector = require("@org/ui/material/StepConnector");
4
+ "&.MuiStepConnector-horizontal > .MuiStepConnector-line";
5
+ "&.MuiStepConnector-vertical > .MuiStepConnector-line";
6
+ `&.${_StepConnector.stepConnectorClasses.horizontal} > .${_StepConnector.stepConnectorClasses.line}`;
7
+ `&.${_StepConnector.stepConnectorClasses.vertical} > .${_StepConnector.stepConnectorClasses.line}`;
@@ -17,12 +17,14 @@ function transformer(file, api, options) {
17
17
  const printOptions = options.printOptions;
18
18
  (0, _movePropIntoSlots.default)(j, {
19
19
  root,
20
+ packageName: options.packageName,
20
21
  componentName: 'StepContent',
21
22
  propName: 'TransitionComponent',
22
23
  slotName: 'transition'
23
24
  });
24
25
  (0, _movePropIntoSlotProps.default)(j, {
25
26
  root,
27
+ packageName: options.packageName,
26
28
  componentName: 'StepContent',
27
29
  propName: 'TransitionProps',
28
30
  slotName: 'transition'
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _StepContent = _interopRequireDefault(require("@org/ui/material/StepContent"));
5
+ var _material = require("@org/ui/material");
6
+ var _jsxRuntime = require("react/jsx-runtime");
7
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepContent.default, {
8
+ TransitionComponent: CustomTransition,
9
+ TransitionProps: {
10
+ unmountOnExit: true
11
+ }
12
+ });
13
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.StepContent, {
14
+ TransitionComponent: CustomTransition,
15
+ TransitionProps: transitionVars
16
+ });
17
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepContent.default, {
18
+ TransitionComponent: CustomTransition,
19
+ TransitionProps: {
20
+ unmountOnExit: true
21
+ },
22
+ slots: {
23
+ root: 'div'
24
+ },
25
+ slotProps: {
26
+ root: {
27
+ className: 'foo'
28
+ }
29
+ }
30
+ });
31
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.StepContent, {
32
+ TransitionComponent: CustomTransition,
33
+ TransitionProps: {
34
+ unmountOnExit: true
35
+ },
36
+ slots: {
37
+ ...outerSlots
38
+ },
39
+ slotProps: {
40
+ ...outerSlotProps
41
+ }
42
+ });
43
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepContent.default, {
44
+ TransitionComponent: ComponentTransition,
45
+ slots: {
46
+ transition: SlotTransition
47
+ }
48
+ });
49
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepContent.default, {
50
+ TransitionProps: {
51
+ unmountOnExit: true
52
+ },
53
+ slotProps: {
54
+ transition: {
55
+ id: 'test'
56
+ }
57
+ }
58
+ });
59
+ // should skip non MUI components
60
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(NonMuiStepContent, {
61
+ TransitionComponent: CustomTransition,
62
+ TransitionProps: {
63
+ unmountOnExit: true
64
+ }
65
+ });
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _StepContent = _interopRequireDefault(require("@org/ui/material/StepContent"));
5
+ var _material = require("@org/ui/material");
6
+ var _jsxRuntime = require("react/jsx-runtime");
7
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepContent.default, {
8
+ slots: {
9
+ transition: CustomTransition
10
+ },
11
+ slotProps: {
12
+ transition: {
13
+ unmountOnExit: true
14
+ }
15
+ }
16
+ });
17
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.StepContent, {
18
+ slots: {
19
+ transition: CustomTransition
20
+ },
21
+ slotProps: {
22
+ transition: transitionVars
23
+ }
24
+ });
25
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepContent.default, {
26
+ slots: {
27
+ root: 'div',
28
+ transition: CustomTransition
29
+ },
30
+ slotProps: {
31
+ root: {
32
+ className: 'foo'
33
+ },
34
+ transition: {
35
+ unmountOnExit: true
36
+ }
37
+ }
38
+ });
39
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.StepContent, {
40
+ slots: {
41
+ ...outerSlots,
42
+ transition: CustomTransition
43
+ },
44
+ slotProps: {
45
+ ...outerSlotProps,
46
+ transition: {
47
+ unmountOnExit: true
48
+ }
49
+ }
50
+ });
51
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepContent.default, {
52
+ slots: {
53
+ transition: SlotTransition
54
+ }
55
+ });
56
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepContent.default, {
57
+ slotProps: {
58
+ transition: {
59
+ ...{
60
+ unmountOnExit: true
61
+ },
62
+ ...{
63
+ id: 'test'
64
+ }
65
+ }
66
+ }
67
+ });
68
+ // should skip non MUI components
69
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(NonMuiStepContent, {
70
+ TransitionComponent: CustomTransition,
71
+ TransitionProps: {
72
+ unmountOnExit: true
73
+ }
74
+ });
@@ -18,16 +18,19 @@ function transformer(file, api, options) {
18
18
  const printOptions = options.printOptions;
19
19
  (0, _replaceComponentsWithSlots.default)(j, {
20
20
  root,
21
+ packageName: options.packageName,
21
22
  componentName: 'StepLabel'
22
23
  });
23
24
  (0, _movePropIntoSlots.default)(j, {
24
25
  root,
26
+ packageName: options.packageName,
25
27
  componentName: 'StepLabel',
26
28
  propName: 'StepIconComponent',
27
29
  slotName: 'stepIcon'
28
30
  });
29
31
  (0, _movePropIntoSlotProps.default)(j, {
30
32
  root,
33
+ packageName: options.packageName,
31
34
  componentName: 'StepLabel',
32
35
  propName: 'StepIconProps',
33
36
  slotName: 'stepIcon'
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _StepLabel = _interopRequireDefault(require("@org/ui/material/StepLabel"));
5
+ var _jsxRuntime = require("react/jsx-runtime");
6
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepLabel.default, {
7
+ componentsProps: {
8
+ label: componentsLabelProps
9
+ }
10
+ });
11
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepLabel.default, {
12
+ slots: {
13
+ label: SlotsLabel
14
+ },
15
+ slotProps: {
16
+ label: slotLabelProps
17
+ },
18
+ componentsProps: {
19
+ label: componentsLabelProps
20
+ }
21
+ });
22
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepLabel.default, {
23
+ componentsProps: {
24
+ label: componentsLabelProps
25
+ },
26
+ StepIconProps: StepIconProps
27
+ });
28
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepLabel.default, {
29
+ slots: {
30
+ label: SlotsLabel
31
+ },
32
+ slotProps: {
33
+ label: slotLabelProps
34
+ },
35
+ componentsProps: {
36
+ label: componentsLabelProps
37
+ },
38
+ StepIconComponent: StepIconComponent,
39
+ StepIconProps: StepIconProps
40
+ });
41
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepLabel.default, {
42
+ StepIconComponent: StepIconComponent,
43
+ StepIconProps: StepIconProps
44
+ });
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _StepLabel = _interopRequireDefault(require("@org/ui/material/StepLabel"));
5
+ var _jsxRuntime = require("react/jsx-runtime");
6
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepLabel.default, {
7
+ slotProps: {
8
+ label: componentsLabelProps
9
+ }
10
+ });
11
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepLabel.default, {
12
+ slots: {
13
+ label: SlotsLabel
14
+ },
15
+ slotProps: {
16
+ label: {
17
+ ...componentsLabelProps,
18
+ ...slotLabelProps
19
+ }
20
+ }
21
+ });
22
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepLabel.default, {
23
+ slotProps: {
24
+ label: componentsLabelProps,
25
+ stepIcon: StepIconProps
26
+ }
27
+ });
28
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepLabel.default, {
29
+ slots: {
30
+ label: SlotsLabel,
31
+ stepIcon: StepIconComponent
32
+ },
33
+ slotProps: {
34
+ label: {
35
+ ...componentsLabelProps,
36
+ ...slotLabelProps
37
+ },
38
+ stepIcon: StepIconProps
39
+ }
40
+ });
41
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepLabel.default, {
42
+ slots: {
43
+ stepIcon: StepIconComponent
44
+ },
45
+ slotProps: {
46
+ stepIcon: StepIconProps
47
+ }
48
+ });
@@ -18,7 +18,7 @@ function transformer(file, api, options) {
18
18
  replacementSelector
19
19
  }) => {
20
20
  const replacementSelectorPrefix = '&';
21
- root.find(j.ImportDeclaration).filter(path => path.node.source.value.match(/^@mui\/material\/Tab$/)).forEach(path => {
21
+ root.find(j.ImportDeclaration).filter(path => path.node.source.value.match(new RegExp(`^${options.packageName || '@mui/material'}(/Tab)?$`))).forEach(path => {
22
22
  path.node.specifiers.forEach(specifier => {
23
23
  if (specifier.type === 'ImportSpecifier' && specifier.imported.name === 'tabClasses') {
24
24
  const deprecatedAtomicClass = deprecatedClass.replace(`${deprecatedClass.split('-')[0]}-`, '');
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ var _Tab = require("@org/ui/material/Tab");
4
+ '& .MuiTab-iconWrapper';
5
+ `& .${_Tab.tabClasses.iconWrapper}`;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ var _Tab = require("@org/ui/material/Tab");
4
+ "& .MuiTab-icon";
5
+ `& .${_Tab.tabClasses.icon}`;
@@ -17,12 +17,14 @@ function transformer(file, api, options) {
17
17
  const printOptions = options.printOptions;
18
18
  (0, _movePropIntoSlots.default)(j, {
19
19
  root,
20
+ packageName: options.packageName,
20
21
  componentName: 'TablePagination',
21
22
  propName: 'ActionsComponent',
22
23
  slotName: 'actions'
23
24
  });
24
25
  (0, _movePropIntoSlotProps.default)(j, {
25
26
  root,
27
+ packageName: options.packageName,
26
28
  componentName: 'TablePagination',
27
29
  propName: 'SelectProps',
28
30
  slotName: 'select'
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _TablePagination = _interopRequireDefault(require("@org/ui/material/TablePagination"));
5
+ var _material = require("@org/ui/material");
6
+ var _jsxRuntime = require("react/jsx-runtime");
7
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_TablePagination.default, {
8
+ ActionsComponent: "div",
9
+ SelectProps: {
10
+ native: true
11
+ }
12
+ });
13
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_TablePagination.default, {
14
+ ActionsComponent: "div",
15
+ SelectProps: {
16
+ native: true
17
+ },
18
+ slots: {
19
+ actions: 'div',
20
+ select: 'div'
21
+ }
22
+ });
23
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_TablePagination.default, {
24
+ ActionsComponent: "div",
25
+ SelectProps: {
26
+ native: true
27
+ },
28
+ slots: {
29
+ root: 'div'
30
+ },
31
+ slotProps: {
32
+ root: {
33
+ 'aria-label': ''
34
+ }
35
+ }
36
+ });
37
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_TablePagination.default, {
38
+ ActionsComponent: "div",
39
+ SelectProps: {
40
+ native: true
41
+ },
42
+ slots: {
43
+ actions: () => null
44
+ },
45
+ slotProps: {
46
+ select: {
47
+ native: false
48
+ }
49
+ }
50
+ });
51
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TablePagination, {
52
+ ActionsComponent: "div",
53
+ SelectProps: {
54
+ native: true
55
+ }
56
+ });
57
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(CustomTablePagination, {
58
+ ActionsComponent: "div",
59
+ SelectProps: {
60
+ native: true
61
+ }
62
+ });