import type { HTMLAttributes, PropsWithChildren } from 'react'; import type { Affixable, FormComponent, IntrinsicComponent, StylableComponent } from '@brix-ui/types/component'; import { Values } from '@brix-ui/utils/types'; import { TimeMode } from './entity'; export interface TimePickerProps extends Omit, 'onChange'>, Pick, PropsWithChildren>>, StylableComponent { /** * undefined – 24-hour time * 'AM' | 'PM' – 12-hour time */ mode?: Values | undefined; /** * No event here because we have two to three different inputs */ onChange?(value: string): void; onModeChange?(mode: TimePickerProps['mode']): void; }