'use client'; import * as React from 'react'; import clsx from 'clsx'; import PropTypes from 'prop-types'; import composeClasses from '@mui/utils/composeClasses'; import NativeSelectInput from "./NativeSelectInput.js"; import formControlState from "../FormControl/formControlState.js"; import useFormControl from "../FormControl/useFormControl.js"; import ArrowDropDownIcon from "../internal/svg-icons/ArrowDropDown.js"; import Input from "../Input/index.js"; import { useDefaultProps } from "../DefaultPropsProvider/index.js"; import { getNativeSelectUtilityClasses } from "./nativeSelectClasses.js"; import { jsx as _jsx } from "react/jsx-runtime"; const useUtilityClasses = ownerState => { const { classes } = ownerState; const slots = { root: ['root'] }; return composeClasses(slots, getNativeSelectUtilityClasses, classes); }; const defaultInput = /*#__PURE__*/_jsx(Input, {}); /** * An alternative to ` */ input: PropTypes.element, /** * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/select#attributes) applied to the `select` element. */ inputProps: PropTypes.object, /** * Callback fired when a menu item is selected. * * @param {React.ChangeEvent} event The event source of the callback. * You can pull out the new value by accessing `event.target.value` (string). */ onChange: PropTypes.func, /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]), /** * The `input` value. The DOM API casts this to a string. */ value: PropTypes.any, /** * The variant to use. */ variant: PropTypes.oneOf(['filled', 'outlined', 'standard']) } : void 0; NativeSelect.muiName = 'Select'; export default NativeSelect;