@mui/codemod 7.1.0 → 7.2.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 +32 -0
- package/codemod.js +8 -0
- package/deprecations/accordion-props/accordion-props.js +2 -0
- package/deprecations/accordion-props/test-cases/package.actual.js +68 -0
- package/deprecations/accordion-props/test-cases/package.expected.js +74 -0
- package/deprecations/accordion-summary-classes/accordion-summary-classes.js +1 -1
- package/deprecations/accordion-summary-classes/test-cases/package.actual.js +54 -0
- package/deprecations/accordion-summary-classes/test-cases/package.expected.js +54 -0
- package/deprecations/alert-classes/alert-classes.js +1 -1
- package/deprecations/alert-classes/test-cases/package.actual.js +27 -0
- package/deprecations/alert-classes/test-cases/package.expected.js +27 -0
- package/deprecations/alert-props/alert-props.js +1 -0
- package/deprecations/alert-props/test-cases/package.actual.js +60 -0
- package/deprecations/alert-props/test-cases/package.expected.js +52 -0
- package/deprecations/all/deprecations-all.js +2 -0
- package/deprecations/autocomplete-props/autocomplete-props.js +7 -0
- package/deprecations/autocomplete-props/test-cases/package.actual.js +113 -0
- package/deprecations/autocomplete-props/test-cases/package.expected.js +125 -0
- package/deprecations/avatar-group-props/avatar-group-props.js +4 -2
- package/deprecations/avatar-group-props/test-cases/package.actual.js +56 -0
- package/deprecations/avatar-group-props/test-cases/package.expected.js +58 -0
- package/deprecations/avatar-props/avatar-props.js +2 -1
- package/deprecations/avatar-props/test-cases/package.actual.js +36 -0
- package/deprecations/avatar-props/test-cases/package.expected.js +42 -0
- package/deprecations/backdrop-props/backdrop-props.js +2 -0
- package/deprecations/backdrop-props/test-cases/package.actual.js +81 -0
- package/deprecations/backdrop-props/test-cases/package.expected.js +81 -0
- package/deprecations/badge-props/badge-props.js +2 -1
- package/deprecations/badge-props/test-cases/package.actual.js +59 -0
- package/deprecations/badge-props/test-cases/package.expected.js +51 -0
- package/deprecations/button-classes/button-classes.js +1 -1
- package/deprecations/button-classes/test-cases/package.actual.js +69 -0
- package/deprecations/button-classes/test-cases/package.expected.js +69 -0
- package/deprecations/button-group-classes/button-group-classes.js +1 -1
- package/deprecations/button-group-classes/test-cases/package.actual.js +37 -0
- package/deprecations/button-group-classes/test-cases/package.expected.js +37 -0
- package/deprecations/card-header-props/card-header-props.js +2 -0
- package/deprecations/card-header-props/test-cases/package.actual.js +66 -0
- package/deprecations/card-header-props/test-cases/package.expected.js +78 -0
- package/deprecations/chip-classes/chip-classes.js +1 -1
- package/deprecations/chip-classes/test-cases/package.actual.js +55 -0
- package/deprecations/chip-classes/test-cases/package.expected.js +55 -0
- package/deprecations/circular-progress-classes/circular-progress-classes.js +1 -1
- package/deprecations/circular-progress-classes/test-cases/package.actual.js +7 -0
- package/deprecations/circular-progress-classes/test-cases/package.expected.js +7 -0
- package/deprecations/dialog-classes/dialog-classes.js +1 -1
- package/deprecations/dialog-classes/test-cases/package.actual.js +7 -0
- package/deprecations/dialog-classes/test-cases/package.expected.js +7 -0
- package/deprecations/dialog-props/dialog-props.js +40 -0
- package/deprecations/dialog-props/index.js +13 -0
- package/deprecations/dialog-props/test-cases/actual.js +47 -0
- package/deprecations/dialog-props/test-cases/expected.js +60 -0
- package/deprecations/dialog-props/test-cases/package.actual.js +47 -0
- package/deprecations/dialog-props/test-cases/package.expected.js +60 -0
- package/deprecations/dialog-props/test-cases/theme.actual.js +36 -0
- package/deprecations/dialog-props/test-cases/theme.expected.js +43 -0
- package/deprecations/divider-props/divider-props.js +3 -1
- package/deprecations/divider-props/test-cases/package.actual.js +45 -0
- package/deprecations/divider-props/test-cases/package.expected.js +50 -0
- package/deprecations/drawer-classes/drawer-classes.js +1 -1
- package/deprecations/drawer-classes/test-cases/package.actual.js +19 -0
- package/deprecations/drawer-classes/test-cases/package.expected.js +19 -0
- package/deprecations/drawer-props/drawer-props.js +8 -0
- package/deprecations/drawer-props/test-cases/package.actual.js +73 -0
- package/deprecations/drawer-props/test-cases/package.expected.js +97 -0
- package/deprecations/filled-input-props/filled-input-props.js +1 -0
- package/deprecations/filled-input-props/test-cases/package.actual.js +60 -0
- package/deprecations/filled-input-props/test-cases/package.expected.js +52 -0
- package/deprecations/form-control-label-props/form-control-label-props.js +1 -0
- package/deprecations/form-control-label-props/test-cases/package.actual.js +21 -0
- package/deprecations/form-control-label-props/test-cases/package.expected.js +21 -0
- package/deprecations/image-list-item-bar-classes/image-list-item-bar-classes.js +1 -1
- package/deprecations/image-list-item-bar-classes/test-cases/package.actual.js +11 -0
- package/deprecations/image-list-item-bar-classes/test-cases/package.expected.js +11 -0
- package/deprecations/input-base-classes/input-base-classes.js +1 -1
- package/deprecations/input-base-classes/test-cases/package.actual.js +13 -0
- package/deprecations/input-base-classes/test-cases/package.expected.js +13 -0
- package/deprecations/input-base-props/input-base-props.js +1 -0
- package/deprecations/input-base-props/test-cases/package.actual.js +60 -0
- package/deprecations/input-base-props/test-cases/package.expected.js +52 -0
- package/deprecations/input-props/input-props.js +1 -0
- package/deprecations/input-props/test-cases/package.actual.js +60 -0
- package/deprecations/input-props/test-cases/package.expected.js +52 -0
- package/deprecations/linear-progress-classes/linear-progress-classes.js +1 -1
- package/deprecations/linear-progress-classes/test-cases/package.actual.js +21 -0
- package/deprecations/linear-progress-classes/test-cases/package.expected.js +21 -0
- package/deprecations/list-item-props/list-item-props.js +3 -0
- package/deprecations/list-item-props/test-cases/package.actual.js +49 -0
- package/deprecations/list-item-props/test-cases/package.expected.js +50 -0
- package/deprecations/list-item-text-props/list-item-text-props.js +3 -0
- package/deprecations/list-item-text-props/test-cases/package.actual.js +21 -0
- package/deprecations/list-item-text-props/test-cases/package.expected.js +27 -0
- package/deprecations/menu-props/menu-props.js +3 -0
- package/deprecations/menu-props/test-cases/package.actual.js +67 -0
- package/deprecations/menu-props/test-cases/package.expected.js +83 -0
- package/deprecations/mobile-stepper-props/mobile-stepper-props.js +1 -0
- package/deprecations/mobile-stepper-props/test-cases/package.actual.js +30 -0
- package/deprecations/mobile-stepper-props/test-cases/package.expected.js +34 -0
- package/deprecations/modal-props/modal-props.js +3 -0
- package/deprecations/modal-props/test-cases/package.actual.js +49 -0
- package/deprecations/modal-props/test-cases/package.expected.js +50 -0
- package/deprecations/outlined-input-props/outlined-input-props.js +1 -0
- package/deprecations/outlined-input-props/test-cases/package.actual.js +60 -0
- package/deprecations/outlined-input-props/test-cases/package.expected.js +52 -0
- package/deprecations/pagination-item-classes/pagination-item-classes.js +1 -1
- package/deprecations/pagination-item-classes/test-cases/package.actual.js +108 -0
- package/deprecations/pagination-item-classes/test-cases/package.expected.js +108 -0
- package/deprecations/pagination-item-props/pagination-item-props.js +1 -0
- package/deprecations/pagination-item-props/test-cases/package.actual.js +27 -0
- package/deprecations/pagination-item-props/test-cases/package.expected.js +21 -0
- package/deprecations/popover-props/popover-props.js +5 -0
- package/deprecations/popover-props/test-cases/package.actual.js +73 -0
- package/deprecations/popover-props/test-cases/package.expected.js +89 -0
- package/deprecations/popper-props/popper-props.js +1 -0
- package/deprecations/popper-props/test-cases/package.actual.js +27 -0
- package/deprecations/popper-props/test-cases/package.expected.js +24 -0
- package/deprecations/rating-props/rating-props.js +1 -0
- package/deprecations/rating-props/test-cases/package.actual.js +37 -0
- package/deprecations/rating-props/test-cases/package.expected.js +53 -0
- package/deprecations/select-classes/select-classes.js +1 -1
- package/deprecations/select-classes/test-cases/package.actual.js +9 -0
- package/deprecations/select-classes/test-cases/package.expected.js +9 -0
- package/deprecations/slider-classes/slider-classes.js +1 -1
- package/deprecations/slider-classes/test-cases/package.actual.js +19 -0
- package/deprecations/slider-classes/test-cases/package.expected.js +19 -0
- package/deprecations/slider-props/slider-props.js +1 -0
- package/deprecations/slider-props/test-cases/package.actual.js +60 -0
- package/deprecations/slider-props/test-cases/package.expected.js +52 -0
- package/deprecations/snackbar-props/snackbar-props.js +4 -0
- package/deprecations/snackbar-props/test-cases/package.actual.js +54 -0
- package/deprecations/snackbar-props/test-cases/package.expected.js +67 -0
- package/deprecations/speed-dial-action-props/speed-dial-action-props.js +5 -0
- package/deprecations/speed-dial-action-props/test-cases/package.actual.js +56 -0
- package/deprecations/speed-dial-action-props/test-cases/package.expected.js +104 -0
- package/deprecations/speed-dial-props/speed-dial-props.js +2 -0
- package/deprecations/speed-dial-props/test-cases/package.actual.js +41 -0
- package/deprecations/speed-dial-props/test-cases/package.expected.js +54 -0
- package/deprecations/step-connector-classes/step-connector-classes.js +1 -1
- package/deprecations/step-connector-classes/test-cases/package.actual.js +7 -0
- package/deprecations/step-connector-classes/test-cases/package.expected.js +7 -0
- package/deprecations/step-content-props/step-content-props.js +2 -0
- package/deprecations/step-content-props/test-cases/package.actual.js +65 -0
- package/deprecations/step-content-props/test-cases/package.expected.js +74 -0
- package/deprecations/step-label-props/step-label-props.js +3 -0
- package/deprecations/step-label-props/test-cases/package.actual.js +44 -0
- package/deprecations/step-label-props/test-cases/package.expected.js +48 -0
- package/deprecations/tab-classes/tab-classes.js +1 -1
- package/deprecations/tab-classes/test-cases/package.actual.js +5 -0
- package/deprecations/tab-classes/test-cases/package.expected.js +5 -0
- package/deprecations/table-pagination-props/table-pagination-props.js +2 -0
- package/deprecations/table-pagination-props/test-cases/package.actual.js +62 -0
- package/deprecations/table-pagination-props/test-cases/package.expected.js +72 -0
- package/deprecations/table-sort-label-classes/table-sort-label-classes.js +1 -1
- package/deprecations/table-sort-label-classes/test-cases/package.actual.js +7 -0
- package/deprecations/table-sort-label-classes/test-cases/package.expected.js +7 -0
- package/deprecations/tabs-classes/tabs-classes.js +1 -1
- package/deprecations/tabs-classes/test-cases/package.actual.js +7 -0
- package/deprecations/tabs-classes/test-cases/package.expected.js +7 -0
- package/deprecations/tabs-props/tabs-props.js +3 -0
- package/deprecations/tabs-props/test-cases/package.actual.js +33 -0
- package/deprecations/tabs-props/test-cases/package.expected.js +41 -0
- package/deprecations/text-field-props/test-cases/package.actual.js +27 -0
- package/deprecations/text-field-props/test-cases/package.expected.js +31 -0
- package/deprecations/text-field-props/text-field-props.js +5 -0
- package/deprecations/toggle-button-group-classes/test-cases/package.actual.js +7 -0
- package/deprecations/toggle-button-group-classes/test-cases/package.expected.js +7 -0
- package/deprecations/toggle-button-group-classes/toggle-button-group-classes.js +1 -1
- package/deprecations/tooltip-props/test-cases/package.actual.js +141 -0
- package/deprecations/tooltip-props/test-cases/package.expected.js +141 -0
- package/deprecations/tooltip-props/tooltip-props.js +5 -0
- package/deprecations/typography-props/test-cases/package.actual.js +88 -0
- package/deprecations/typography-props/test-cases/package.expected.js +98 -0
- package/deprecations/typography-props/typography-props.js +1 -0
- package/deprecations/utils/movePropIntoSlotProps.js +2 -10
- package/deprecations/utils/movePropIntoSlots.js +2 -10
- package/deprecations/utils/replaceComponentsWithSlots.js +3 -13
- package/package.json +5 -5
- package/util/findComponentJSX.js +4 -3
- package/v6.0.0/grid-v2-props/grid-v2-props.js +5 -0
- package/v6.0.0/grid-v2-props/test-cases/package.actual.js +91 -0
- package/v6.0.0/grid-v2-props/test-cases/package.expected.js +91 -0
- package/v6.0.0/list-item-button-prop/list-item-button-prop.js +8 -4
- package/v6.0.0/list-item-button-prop/test-cases/package.actual.js +31 -0
- package/v6.0.0/list-item-button-prop/test-cases/package.expected.js +20 -0
- package/v7.0.0/grid-props/grid-props.js +5 -0
- package/v7.0.0/grid-props/test-cases/package.actual.js +91 -0
- package/v7.0.0/grid-props/test-cases/package.expected.js +91 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Slider = require("@org/ui/material/Slider");
|
|
4
|
+
'& .MuiSlider-thumbSizeSmall';
|
|
5
|
+
'& .MuiSlider-thumbSizeMedium';
|
|
6
|
+
'& .MuiSlider-thumbColorPrimary';
|
|
7
|
+
'& .MuiSlider-thumbColorSecondary';
|
|
8
|
+
'& .MuiSlider-thumbColorError';
|
|
9
|
+
'& .MuiSlider-thumbColorInfo';
|
|
10
|
+
'& .MuiSlider-thumbColorSuccess';
|
|
11
|
+
'& .MuiSlider-thumbColorWarning';
|
|
12
|
+
`& .${_Slider.sliderClasses.thumbSizeSmall}`;
|
|
13
|
+
`& .${_Slider.sliderClasses.thumbSizeMedium}`;
|
|
14
|
+
`& .${_Slider.sliderClasses.thumbColorPrimary}`;
|
|
15
|
+
`& .${_Slider.sliderClasses.thumbColorSecondary}`;
|
|
16
|
+
`& .${_Slider.sliderClasses.thumbColorError}`;
|
|
17
|
+
`& .${_Slider.sliderClasses.thumbColorInfo}`;
|
|
18
|
+
`& .${_Slider.sliderClasses.thumbColorSuccess}`;
|
|
19
|
+
`& .${_Slider.sliderClasses.thumbColorWarning}`;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Slider = require("@org/ui/material/Slider");
|
|
4
|
+
"&.MuiSlider-sizeSmall > .MuiSlider-thumb";
|
|
5
|
+
"&.MuiSlider-sizeMedium > .MuiSlider-thumb";
|
|
6
|
+
"&.MuiSlider-colorPrimary > .MuiSlider-thumb";
|
|
7
|
+
"&.MuiSlider-colorSecondary > .MuiSlider-thumb";
|
|
8
|
+
"&.MuiSlider-colorError > .MuiSlider-thumb";
|
|
9
|
+
"&.MuiSlider-colorInfo > .MuiSlider-thumb";
|
|
10
|
+
"&.MuiSlider-colorSuccess > .MuiSlider-thumb";
|
|
11
|
+
"&.MuiSlider-colorWarning > .MuiSlider-thumb";
|
|
12
|
+
`&.${_Slider.sliderClasses.sizeSmall} > .${_Slider.sliderClasses.thumb}`;
|
|
13
|
+
`&.${_Slider.sliderClasses.sizeMedium} > .${_Slider.sliderClasses.thumb}`;
|
|
14
|
+
`&.${_Slider.sliderClasses.colorPrimary} > .${_Slider.sliderClasses.thumb}`;
|
|
15
|
+
`&.${_Slider.sliderClasses.colorSecondary} > .${_Slider.sliderClasses.thumb}`;
|
|
16
|
+
`&.${_Slider.sliderClasses.colorError} > .${_Slider.sliderClasses.thumb}`;
|
|
17
|
+
`&.${_Slider.sliderClasses.colorInfo} > .${_Slider.sliderClasses.thumb}`;
|
|
18
|
+
`&.${_Slider.sliderClasses.colorSuccess} > .${_Slider.sliderClasses.thumb}`;
|
|
19
|
+
`&.${_Slider.sliderClasses.colorWarning} > .${_Slider.sliderClasses.thumb}`;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _Slider = _interopRequireDefault(require("@org/ui/material/Slider"));
|
|
5
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
6
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Slider.default, {
|
|
7
|
+
components: {
|
|
8
|
+
Track: ComponentsTrack
|
|
9
|
+
},
|
|
10
|
+
componentsProps: {
|
|
11
|
+
track: componentsTrackProps
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Slider.default, {
|
|
15
|
+
slots: {
|
|
16
|
+
rail: SlotsRail
|
|
17
|
+
},
|
|
18
|
+
components: {
|
|
19
|
+
Track: ComponentsTrack
|
|
20
|
+
},
|
|
21
|
+
slotProps: {
|
|
22
|
+
rail: slotsRailProps
|
|
23
|
+
},
|
|
24
|
+
componentsProps: {
|
|
25
|
+
track: componentsTrackProps
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Slider.default, {
|
|
29
|
+
slots: {
|
|
30
|
+
rail: SlotsRail,
|
|
31
|
+
track: SlotsTrack
|
|
32
|
+
},
|
|
33
|
+
components: {
|
|
34
|
+
Track: ComponentsTrack
|
|
35
|
+
},
|
|
36
|
+
slotProps: {
|
|
37
|
+
rail: slotsRailProps,
|
|
38
|
+
track: slotsTrackProps
|
|
39
|
+
},
|
|
40
|
+
componentsProps: {
|
|
41
|
+
track: componentsTrackProps
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Slider.default, {
|
|
45
|
+
slots: {
|
|
46
|
+
rail: SlotsRail,
|
|
47
|
+
track: SlotsTrack
|
|
48
|
+
},
|
|
49
|
+
components: {
|
|
50
|
+
Track: ComponentsTrack
|
|
51
|
+
},
|
|
52
|
+
slotProps: {
|
|
53
|
+
rail: slotsRailProps,
|
|
54
|
+
track: slotsTrackProps
|
|
55
|
+
},
|
|
56
|
+
componentsProps: {
|
|
57
|
+
track: componentsTrackProps,
|
|
58
|
+
rail: componentsRailProps
|
|
59
|
+
}
|
|
60
|
+
});
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _Slider = _interopRequireDefault(require("@org/ui/material/Slider"));
|
|
5
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
6
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Slider.default, {
|
|
7
|
+
slots: {
|
|
8
|
+
track: ComponentsTrack
|
|
9
|
+
},
|
|
10
|
+
slotProps: {
|
|
11
|
+
track: componentsTrackProps
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Slider.default, {
|
|
15
|
+
slots: {
|
|
16
|
+
rail: SlotsRail,
|
|
17
|
+
track: ComponentsTrack
|
|
18
|
+
},
|
|
19
|
+
slotProps: {
|
|
20
|
+
rail: slotsRailProps,
|
|
21
|
+
track: componentsTrackProps
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Slider.default, {
|
|
25
|
+
slots: {
|
|
26
|
+
rail: SlotsRail,
|
|
27
|
+
track: SlotsTrack
|
|
28
|
+
},
|
|
29
|
+
slotProps: {
|
|
30
|
+
rail: slotsRailProps,
|
|
31
|
+
track: {
|
|
32
|
+
...componentsTrackProps,
|
|
33
|
+
...slotsTrackProps
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Slider.default, {
|
|
38
|
+
slots: {
|
|
39
|
+
rail: SlotsRail,
|
|
40
|
+
track: SlotsTrack
|
|
41
|
+
},
|
|
42
|
+
slotProps: {
|
|
43
|
+
track: {
|
|
44
|
+
...componentsTrackProps,
|
|
45
|
+
...slotsTrackProps
|
|
46
|
+
},
|
|
47
|
+
rail: {
|
|
48
|
+
...componentsRailProps,
|
|
49
|
+
...slotsRailProps
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
@@ -17,24 +17,28 @@ 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: 'Snackbar',
|
|
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: 'Snackbar',
|
|
27
29
|
propName: 'TransitionProps',
|
|
28
30
|
slotName: 'transition'
|
|
29
31
|
});
|
|
30
32
|
(0, _movePropIntoSlotProps.default)(j, {
|
|
31
33
|
root,
|
|
34
|
+
packageName: options.packageName,
|
|
32
35
|
componentName: 'Snackbar',
|
|
33
36
|
propName: 'ContentProps',
|
|
34
37
|
slotName: 'content'
|
|
35
38
|
});
|
|
36
39
|
(0, _movePropIntoSlotProps.default)(j, {
|
|
37
40
|
root,
|
|
41
|
+
packageName: options.packageName,
|
|
38
42
|
componentName: 'Snackbar',
|
|
39
43
|
propName: 'ClickAwayListenerProps',
|
|
40
44
|
slotName: 'clickAwayListener'
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _Snackbar = _interopRequireDefault(require("@org/ui/material/Snackbar"));
|
|
5
|
+
var _material = require("@org/ui/material");
|
|
6
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
7
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Snackbar.default, {
|
|
8
|
+
ClickAwayListenerProps: CustomListenerProps,
|
|
9
|
+
ContentProps: CustomContentProps,
|
|
10
|
+
TransitionComponent: CustomTransition,
|
|
11
|
+
TransitionProps: CustomTransitionProps
|
|
12
|
+
});
|
|
13
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Snackbar, {
|
|
14
|
+
ClickAwayListenerProps: CustomListenerProps,
|
|
15
|
+
ContentProps: CustomContentProps,
|
|
16
|
+
TransitionComponent: CustomTransition,
|
|
17
|
+
TransitionProps: CustomTransitionProps
|
|
18
|
+
});
|
|
19
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Snackbar.default, {
|
|
20
|
+
ClickAwayListenerProps: CustomListenerProps,
|
|
21
|
+
ContentProps: CustomContentProps,
|
|
22
|
+
TransitionComponent: CustomTransition,
|
|
23
|
+
TransitionProps: CustomTransitionProps,
|
|
24
|
+
slots: {
|
|
25
|
+
root: 'div'
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Snackbar, {
|
|
29
|
+
ClickAwayListenerProps: CustomListenerProps,
|
|
30
|
+
ContentProps: CustomContentProps,
|
|
31
|
+
TransitionComponent: CustomTransition,
|
|
32
|
+
TransitionProps: CustomTransitionProps,
|
|
33
|
+
slots: {
|
|
34
|
+
...outerSlots
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Snackbar.default, {
|
|
38
|
+
ClickAwayListenerProps: CustomListenerProps,
|
|
39
|
+
ContentProps: CustomContentProps,
|
|
40
|
+
TransitionComponent: ComponentTransition,
|
|
41
|
+
TransitionProps: CustomTransitionProps,
|
|
42
|
+
slots: {
|
|
43
|
+
root: 'div',
|
|
44
|
+
transition: SlotTransition
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
// should skip non MUI components
|
|
49
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(NonMuiSnackbar, {
|
|
50
|
+
ClickAwayListenerProps: CustomListenerProps,
|
|
51
|
+
ContentProps: CustomContentProps,
|
|
52
|
+
TransitionComponent: CustomTransition,
|
|
53
|
+
TransitionProps: CustomTransitionProps
|
|
54
|
+
});
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _Snackbar = _interopRequireDefault(require("@org/ui/material/Snackbar"));
|
|
5
|
+
var _material = require("@org/ui/material");
|
|
6
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
7
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Snackbar.default, {
|
|
8
|
+
slots: {
|
|
9
|
+
transition: CustomTransition
|
|
10
|
+
},
|
|
11
|
+
slotProps: {
|
|
12
|
+
transition: CustomTransitionProps,
|
|
13
|
+
content: CustomContentProps,
|
|
14
|
+
clickAwayListener: CustomListenerProps
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Snackbar, {
|
|
18
|
+
slots: {
|
|
19
|
+
transition: CustomTransition
|
|
20
|
+
},
|
|
21
|
+
slotProps: {
|
|
22
|
+
transition: CustomTransitionProps,
|
|
23
|
+
content: CustomContentProps,
|
|
24
|
+
clickAwayListener: CustomListenerProps
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Snackbar.default, {
|
|
28
|
+
slots: {
|
|
29
|
+
root: 'div',
|
|
30
|
+
transition: CustomTransition
|
|
31
|
+
},
|
|
32
|
+
slotProps: {
|
|
33
|
+
transition: CustomTransitionProps,
|
|
34
|
+
content: CustomContentProps,
|
|
35
|
+
clickAwayListener: CustomListenerProps
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Snackbar, {
|
|
39
|
+
slots: {
|
|
40
|
+
...outerSlots,
|
|
41
|
+
transition: CustomTransition
|
|
42
|
+
},
|
|
43
|
+
slotProps: {
|
|
44
|
+
transition: CustomTransitionProps,
|
|
45
|
+
content: CustomContentProps,
|
|
46
|
+
clickAwayListener: CustomListenerProps
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Snackbar.default, {
|
|
50
|
+
slots: {
|
|
51
|
+
root: 'div',
|
|
52
|
+
transition: SlotTransition
|
|
53
|
+
},
|
|
54
|
+
slotProps: {
|
|
55
|
+
transition: CustomTransitionProps,
|
|
56
|
+
content: CustomContentProps,
|
|
57
|
+
clickAwayListener: CustomListenerProps
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
// should skip non MUI components
|
|
62
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(NonMuiSnackbar, {
|
|
63
|
+
ClickAwayListenerProps: CustomListenerProps,
|
|
64
|
+
ContentProps: CustomContentProps,
|
|
65
|
+
TransitionComponent: CustomTransition,
|
|
66
|
+
TransitionProps: CustomTransitionProps
|
|
67
|
+
});
|
|
@@ -16,6 +16,7 @@ function transformer(file, api, options) {
|
|
|
16
16
|
const printOptions = options.printOptions;
|
|
17
17
|
(0, _movePropIntoSlotProps.default)(j, {
|
|
18
18
|
root,
|
|
19
|
+
packageName: options.packageName,
|
|
19
20
|
componentName: 'SpeedDialAction',
|
|
20
21
|
propName: 'tooltipTitle',
|
|
21
22
|
slotName: 'tooltip',
|
|
@@ -23,6 +24,7 @@ function transformer(file, api, options) {
|
|
|
23
24
|
});
|
|
24
25
|
(0, _movePropIntoSlotProps.default)(j, {
|
|
25
26
|
root,
|
|
27
|
+
packageName: options.packageName,
|
|
26
28
|
componentName: 'SpeedDialAction',
|
|
27
29
|
propName: 'tooltipPlacement',
|
|
28
30
|
slotName: 'tooltip',
|
|
@@ -30,6 +32,7 @@ function transformer(file, api, options) {
|
|
|
30
32
|
});
|
|
31
33
|
(0, _movePropIntoSlotProps.default)(j, {
|
|
32
34
|
root,
|
|
35
|
+
packageName: options.packageName,
|
|
33
36
|
componentName: 'SpeedDialAction',
|
|
34
37
|
propName: 'tooltipOpen',
|
|
35
38
|
slotName: 'tooltip',
|
|
@@ -37,6 +40,7 @@ function transformer(file, api, options) {
|
|
|
37
40
|
});
|
|
38
41
|
(0, _movePropIntoSlotProps.default)(j, {
|
|
39
42
|
root,
|
|
43
|
+
packageName: options.packageName,
|
|
40
44
|
componentName: 'SpeedDialAction',
|
|
41
45
|
propName: 'TooltipClasses',
|
|
42
46
|
slotName: 'tooltip',
|
|
@@ -44,6 +48,7 @@ function transformer(file, api, options) {
|
|
|
44
48
|
});
|
|
45
49
|
(0, _movePropIntoSlotProps.default)(j, {
|
|
46
50
|
root,
|
|
51
|
+
packageName: options.packageName,
|
|
47
52
|
componentName: 'SpeedDialAction',
|
|
48
53
|
propName: 'FabProps',
|
|
49
54
|
slotName: 'fab'
|
|
@@ -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(
|
|
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'
|