@mui/codemod
Version:
Codemod scripts for Material UI.
141 lines (140 loc) • 2.93 kB
JavaScript
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
var _Tooltip = _interopRequireDefault(require("@mui/material/Tooltip"));
var _material = require("@mui/material");
var _jsxRuntime = require("react/jsx-runtime");
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
slots: {
arrow: ComponentsArrow,
popper: ComponentsPopper,
tooltip: ComponentsTooltip,
transition: ComponentsTransition
},
slotProps: {
arrow: componentsArrowProps,
popper: componentsPopperProps,
tooltip: componentsTooltipProps,
transition: componentsTransitionProps
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
slots: {
tooltip: SlotsTooltip,
arrow: ComponentsArrow
},
slotProps: {
tooltip: slotsTooltipProps,
arrow: componentsArrowProps
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
slots: {
tooltip: SlotsTooltip,
arrow: SlotsArrow
},
slotProps: {
tooltip: slotsTooltipProps,
arrow: {
...componentsArrowProps,
...slotsArrowProps
}
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
slots: {
tooltip: SlotsTooltip,
arrow: SlotsArrow
},
slotProps: {
arrow: {
...componentsArrowProps,
...slotsArrowProps
},
tooltip: {
...componentsTooltipProps,
...slotsTooltipProps
}
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
slots: {
arrow: SlotsArrow,
popper: SlotsPopper,
tooltip: SlotsTooltip,
transition: SlotsTransition
},
slotProps: {
arrow: {
...componentsArrowProps,
...slotsArrowProps
},
popper: {
...componentsPopperProps,
...slotsPopperProps
},
tooltip: {
...componentsTooltipProps,
...slotsTooltipProps
},
transition: {
...componentsTransitionProps,
...slotsTransitionProps
}
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
slots: {
popper: CustomPopper,
transition: CustomTransition
},
slotProps: {
popper: {
disablePortal: true
},
transition: {
timeout: 200
}
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
slotProps: {
tooltip: {
height: 20
},
popper: {
disablePortal: true
},
transition: {
timeout: 200
}
},
slots: {
tooltip: "div",
popper: CustomPopper,
transition: CustomTransition
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Tooltip, {
slots: {
popper: CustomPopper,
transition: CustomTransition
},
slotProps: {
popper: {
disablePortal: true
},
transition: {
timeout: 200
}
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(CustomTooltip, {
PopperComponent: CustomPopper,
TransitionComponent: CustomTransition,
PopperProps: {
disablePortal: true
},
TransitionProps: {
timeout: 200
}
});