import type { SelectProps as ChakraNativeSelectProps } from "@chakra-ui/react"; import type { ReactNode } from "react"; import type { ControlSize } from "../../Theme/tokens/primitives/controlSizes"; /** Select option; icon/description/group/isDisabled are popup-mode extras, all optional and additive. */ export type OptionProp = { /** Unique value of the option: what `value` / `defaultValue` select by and what native mode emits as the `` in native mode. */ group?: string; }; type SelectCommonProps = { /** Choices in display order; options that share a `group` should sit next to each other. */ options: OptionProp[]; /** Renders a themed popup instead of a real `` name. Popup: submits the selection through hidden input(s), one per value when multi. */ name?: string; /** Label above the field; its `for` points at the control. */ label?: string; /** Native: the built-in placeholder `