import { type FieldWidthProps, type StyleProp, type ViewStyle } from "../../style/index.js"; import { type SelectSkin } from "./select.styles.js"; /** * An option whose stored value differs from the text shown for it, for lists * keyed by id (a project id, a region slug, a workspace name). Passing bare * strings stays supported and means the value and the label are the same. */ export interface SelectOption { value: string; label: string; } export interface SelectProps extends FieldWidthProps { /** * Controlled selection; omit for uncontrolled use. Empty shows the placeholder. * With plain string options this is the option itself; with `SelectOption` * objects it is the option's `value`, and the trigger shows its `label`. */ value?: string; /** Initial selection for uncontrolled use (a bare