import { UiElement } from '../shared/element.js'; import type { TimePickerSize } from './time-picker-shared.js'; export * from './time-picker-select.js'; export type { TimePickerSize } from './time-picker-shared.js'; /** * Carbon `TimePicker`: a short "hh:mm" text field in the code font (code-02) with optional * `` children beside it (AM / PM, time zone). The text is validated * against `pattern` (default: 12-hour `h:mm` or `hh:mm`, so typing what the placeholder shows works) after blur or a submit attempt; set * `invalid` / `warn` yourself for server-side messages. Sizes sm 32 / md 40 / lg 48px * (default md, as in Carbon). * * Form-associated: submits `value` under `name`. Fires `input` while typing and `change` on commit. * * State on the host for app styles: `data-show-error` / `data-show-warn` while the error / warning * line shows (e.g. `ui-time-picker[data-show-error]::part(input)`). * * @cssstate show-error - While its error message shows (also `[data-show-error]`) * @cssstate show-warn - While its warning message shows (also `[data-show-warn]`) * @slot - `` elements * @slot label - Rich label * @slot invalid-text - Rich error text * @slot warn-text - Rich warning text * @csspart label - The label * @csspart base - Row with the input and the selects * @csspart input - The text input * @csspart error-text - Error text * @csspart invalid-text - Same line as `error-text` (named after the `invalid-text` attribute / slot) * @csspart warning-text - Warning text * @csspart warn-text - Same line as `warning-text` (named after the `warn-text` attribute / slot) * @attr max-length - Deprecated: use `maxlength` * @cssprop --ui-field-border - Border on every side of the box (default none: Carbon's underline only; Kanok: a 1px outline) * @cssprop --ui-field-disabled-border-color - Border colour when disabled (default: the underline transparent) * @cssprop --ui-field-readonly-border-color - Border colour when read-only (default: a hairline underline) * @cssprop --ui-field-radius - Corner radius of the box (default 0; Kanok: 6px) * @cssprop --ui-field-background - Fill of the box (default `--ui-surface-1`; Kanok: transparent) * @cssprop --ui-label-font - Font of the label (default `--ui-font-caption`; Kanok: 14px semibold) * @cssprop --ui-label-color - Colour of the label (default `--ui-ink-muted`; Kanok: `--ui-ink`) * @cssprop --ui-field-readonly-background - The box's fill when read-only (default transparent; Kanok: a faint ink tint, so read-only reads as set and never weaker than disabled) */ export declare class UiTimePicker extends UiElement { static hostStates: readonly string[]; static readonly formAssociated = true; /** `el.focus()` and a `