@mui/codemod
Version:
Codemod scripts for Material UI.
73 lines (72 loc) • 1.72 kB
JavaScript
;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
var _Drawer = _interopRequireDefault(require("@mui/material/Drawer"));
var _SwipeableDrawer = _interopRequireDefault(require("@mui/material/SwipeableDrawer"));
var _material = require("@mui/material");
var _jsxRuntime = require("react/jsx-runtime");
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Drawer.default, {
BackdropComponent: Backdrop,
BackdropProps: {
transitionDuration: 300
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_SwipeableDrawer.default, {
BackdropComponent: Backdrop,
BackdropProps: {
transitionDuration: 300
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Drawer.default, {
PaperProps: {
elevation: 20
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_SwipeableDrawer.default, {
PaperProps: {
elevation: 20
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Drawer.default, {
SlideProps: {
direction: 'right'
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_SwipeableDrawer.default, {
SlideProps: {
direction: 'right'
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Drawer, {
BackdropComponent: Backdrop,
BackdropProps: {
transitionDuration: 300
},
PaperProps: {
elevation: 20
},
SlideProps: {
direction: 'right'
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.SwipeableDrawer, {
BackdropComponent: Backdrop,
BackdropProps: {
transitionDuration: 300
},
PaperProps: {
elevation: 20
},
SlideProps: {
direction: 'right'
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(CustomDrawer, {
PopperComponent: CustomPopper,
TransitionComponent: CustomTransition,
PopperProps: {
disablePortal: true
},
TransitionProps: {
timeout: 200
}
});