UNPKG

@mui/codemod

Version:
74 lines (73 loc) 1.57 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; var _StepContent = _interopRequireDefault(require("@org/ui/material/StepContent")); var _material = require("@org/ui/material"); var _jsxRuntime = require("react/jsx-runtime"); /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepContent.default, { slots: { transition: CustomTransition }, slotProps: { transition: { unmountOnExit: true } } }); /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.StepContent, { slots: { transition: CustomTransition }, slotProps: { transition: transitionVars } }); /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepContent.default, { slots: { root: 'div', transition: CustomTransition }, slotProps: { root: { className: 'foo' }, transition: { unmountOnExit: true } } }); /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.StepContent, { slots: { ...outerSlots, transition: CustomTransition }, slotProps: { ...outerSlotProps, transition: { unmountOnExit: true } } }); /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepContent.default, { slots: { transition: SlotTransition } }); /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepContent.default, { slotProps: { transition: { ...{ unmountOnExit: true }, ...{ id: 'test' } } } }); // should skip non MUI components /*#__PURE__*/(0, _jsxRuntime.jsx)(NonMuiStepContent, { TransitionComponent: CustomTransition, TransitionProps: { unmountOnExit: true } });