@mui/codemod
Version:
Codemod scripts for Material UI.
54 lines (52 loc) • 1.78 kB
JavaScript
;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
var _Snackbar = _interopRequireDefault(require("@mui/material/Snackbar"));
var _material = require("@mui/material");
var _jsxRuntime = require("react/jsx-runtime");
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Snackbar.default, {
ClickAwayListenerProps: CustomListenerProps,
ContentProps: CustomContentProps,
TransitionComponent: CustomTransition,
TransitionProps: CustomTransitionProps
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Snackbar, {
ClickAwayListenerProps: CustomListenerProps,
ContentProps: CustomContentProps,
TransitionComponent: CustomTransition,
TransitionProps: CustomTransitionProps
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Snackbar.default, {
ClickAwayListenerProps: CustomListenerProps,
ContentProps: CustomContentProps,
TransitionComponent: CustomTransition,
TransitionProps: CustomTransitionProps,
slots: {
root: 'div'
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Snackbar, {
ClickAwayListenerProps: CustomListenerProps,
ContentProps: CustomContentProps,
TransitionComponent: CustomTransition,
TransitionProps: CustomTransitionProps,
slots: {
...outerSlots
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Snackbar.default, {
ClickAwayListenerProps: CustomListenerProps,
ContentProps: CustomContentProps,
TransitionComponent: ComponentTransition,
TransitionProps: CustomTransitionProps,
slots: {
root: 'div',
transition: SlotTransition
}
});
// should skip non MUI components
/*#__PURE__*/(0, _jsxRuntime.jsx)(NonMuiSnackbar, {
ClickAwayListenerProps: CustomListenerProps,
ContentProps: CustomContentProps,
TransitionComponent: CustomTransition,
TransitionProps: CustomTransitionProps
});