@mui/codemod
Version:
Codemod scripts for Material UI.
47 lines (46 loc) • 1.43 kB
JavaScript
;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
var _Dialog = _interopRequireDefault(require("@org/ui/material/Dialog"));
var _material = require("@org/ui/material");
var _jsxRuntime = require("react/jsx-runtime");
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Dialog.default, {
TransitionComponent: CustomTransition,
TransitionProps: CustomTransitionProps,
PaperProps: PaperProps
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Dialog, {
TransitionComponent: CustomTransition,
TransitionProps: CustomTransitionProps,
PaperProps: PaperProps
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Dialog.default, {
TransitionComponent: CustomTransition,
TransitionProps: CustomTransitionProps,
slots: {
root: 'div'
},
PaperProps: PaperProps
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Dialog, {
TransitionComponent: CustomTransition,
TransitionProps: CustomTransitionProps,
slots: {
...outerSlots
},
PaperProps: PaperProps
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Dialog.default, {
TransitionComponent: ComponentTransition,
TransitionProps: CustomTransitionProps,
slots: {
root: 'div',
transition: SlotTransition
},
PaperProps: PaperProps
});
// should skip non MUI components
/*#__PURE__*/(0, _jsxRuntime.jsx)(NonMuiDialog, {
TransitionComponent: CustomTransition,
TransitionProps: CustomTransitionProps,
PaperProps: PaperProps
});