@mui/codemod
Version:
Codemod scripts for Material UI.
65 lines (64 loc) • 1.55 kB
JavaScript
;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
var _StepContent = _interopRequireDefault(require("@mui/material/StepContent"));
var _material = require("@mui/material");
var _jsxRuntime = require("react/jsx-runtime");
/*#__PURE__*/(0, _jsxRuntime.jsx)(_StepContent.default, {
TransitionComponent: CustomTransition,
TransitionProps: {
unmountOnExit: true
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.StepContent, {
TransitionComponent: CustomTransition,
TransitionProps: transitionVars
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_StepContent.default, {
TransitionComponent: CustomTransition,
TransitionProps: {
unmountOnExit: true
},
slots: {
root: 'div'
},
slotProps: {
root: {
className: 'foo'
}
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.StepContent, {
TransitionComponent: CustomTransition,
TransitionProps: {
unmountOnExit: true
},
slots: {
...outerSlots
},
slotProps: {
...outerSlotProps
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_StepContent.default, {
TransitionComponent: ComponentTransition,
slots: {
transition: SlotTransition
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_StepContent.default, {
TransitionProps: {
unmountOnExit: true
},
slotProps: {
transition: {
id: 'test'
}
}
});
// should skip non MUI components
/*#__PURE__*/(0, _jsxRuntime.jsx)(NonMuiStepContent, {
TransitionComponent: CustomTransition,
TransitionProps: {
unmountOnExit: true
}
});