import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type CarbonTimePickerSelectContext = { selectedValue: import("svelte/store").Writable; /** * Record each `SelectItem`. The first item to register is the default * when `value` is `""`, and keeps that role if its value changes, as in * `Select`. */ setDefaultValue: (id: string, itemValue: string | number) => void; }; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Specify the select value. * @default "" */ value?: number | string; /** * Set to `true` to disable the select * @default false */ disabled?: boolean; /** * Set to `true` for the select to be read-only * @default false */ readonly?: boolean; /** * Specify the assistive text announced to screen readers when read-only. * Exposed because VoiceOver does not announce `aria-readonly`. * @default "Read-only" */ readonlyText?: string; /** * Specify the ARIA label for the chevron icon * @default "Open list of options" */ iconDescription?: string; /** * Specify the label text * @default "" */ labelText?: string; /** * Set an id for the select element * @default uniqueId() */ id?: string; /** * Specify a name attribute for the select element. */ name?: string | undefined; /** * Specify the id of a form element outside the component to associate * the select with. */ form?: string | undefined; /** * Obtain a reference to the select HTML element. * @default null */ ref?: null | HTMLSelectElement; labelChildren?: (this: void) => void; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type TimePickerSelectProps = Omit<$RestProps, keyof $Props> & $Props; export default class TimePickerSelect extends SvelteComponentTyped< TimePickerSelectProps, { blur: WindowEventMap["blur"]; change: WindowEventMap["change"]; click: WindowEventMap["click"]; focus: WindowEventMap["focus"]; input: WindowEventMap["input"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; mouseover: WindowEventMap["mouseover"]; }, { default: Record; labelChildren: Record; } > {}