@mui/codemod
Version:
Codemod scripts for Material UI.
51 lines (50 loc) • 1.57 kB
JavaScript
;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
var _Dialog = _interopRequireDefault(require("@mui/material/Dialog"));
var _material = require("@mui/material");
var _jsxRuntime = require("react/jsx-runtime");
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Dialog.default, {
BackdropComponent: CustomBackdrop,
BackdropProps: CustomBackdropProps,
TransitionComponent: CustomTransition,
TransitionProps: CustomTransitionProps,
PaperProps: PaperProps
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Dialog, {
BackdropComponent: CustomBackdrop,
BackdropProps: CustomBackdropProps,
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
});