UNPKG

@mui/codemod

Version:
125 lines (124 loc) 2.13 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; var _Autocomplete = _interopRequireDefault(require("@mui/material/Autocomplete")); var _material = require("@mui/material"); var _jsxRuntime = require("react/jsx-runtime"); /*#__PURE__*/(0, _jsxRuntime.jsx)(_Autocomplete.default, { slots: { paper: CustomPaper, popper: CustomPopper }, slotProps: { chip: { height: 10 }, clearIndicator: { width: 10 }, paper: { width: 12 }, popper: { width: 14 }, popupIndicator: { width: 16 }, listbox: { component: CustomListbox, ...{ height: 12 } } } }); /*#__PURE__*/(0, _jsxRuntime.jsx)(_Autocomplete.default, { slotProps: { chip: { height: 10 }, clearIndicator: { width: 10 }, paper: { width: 12 }, popper: { width: 14 }, popupIndicator: { ...{ width: 16 }, ...{ width: 20 } }, listbox: { component: CustomListbox, ...{ height: 12 } } }, slots: { paper: CustomPaper, popper: CustomPopper } }); /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Autocomplete, { slots: { paper: CustomPaper, popper: CustomPopper }, slotProps: { chip: { height: 10 }, clearIndicator: { width: 10 }, paper: { width: 12 }, popper: { width: 14 }, popupIndicator: { width: 16 }, listbox: { component: CustomListbox, ...{ height: 12 } } } }); /*#__PURE__*/(0, _jsxRuntime.jsx)(CustomAutocomplete, { componentsProps: { clearIndicator: { width: 10 }, paper: { width: 12 }, popper: { width: 14 }, popupIndicator: { width: 16 } } }); /*#__PURE__*/(0, _jsxRuntime.jsx)(CustomAutocomplete, { ChipProps: { height: 10 }, PaperComponent: CustomPaper, PopperComponent: CustomPopper, ListboxComponent: CustomListbox, ListboxProps: { height: 12 } });