UNPKG

@mui/codemod

Version:
80 lines (79 loc) 1.69 kB
"use strict"; var _jsxRuntime = require("react/jsx-runtime"); fn({ MuiAutocomplete: { defaultProps: { ChipProps: { height: 10 }, PaperComponent: CustomPaper, PopperComponent: CustomPopper, ListboxComponent: CustomListbox, ListboxProps: { height: 12 }, renderTags: (value, getTagProps, ownerState) => value.map((option, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Chip, { label: option.label, "data-focused": ownerState.focused, ...getTagProps({ index }) })), componentsProps: { clearIndicator: { width: 10 }, paper: { width: 12 }, popper: { width: 14 }, popupIndicator: { width: 16 } } } } }); fn({ MuiAutocomplete: { defaultProps: { ChipProps: { height: 10 }, PaperComponent: CustomPaper, PopperComponent: CustomPopper, ListboxComponent: CustomListbox, ListboxProps: { height: 12 }, renderTags: (value, getTagProps, ownerState) => value.map((option, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Chip, { label: option.label, "data-focused": ownerState.focused, ...getTagProps({ index }) })), slotProps: { popupIndicator: { width: 20 } }, componentsProps: { clearIndicator: { width: 10 }, paper: { width: 12 }, popper: { width: 14 }, popupIndicator: { width: 16 } } } } });