import * as React from 'react'; import { type KeyAction, type KeyboardLayout, type KeyDef } from './keyboard-layouts.js'; export interface VirtualKeyboardLabels { group: string; shift: string; shiftLock: string; backspace: string; space: string; enter: string; } export interface VirtualKeyboardProps extends Omit, 'onChange' | 'onKeyDown'> { layout?: KeyboardLayout; /** Controlled text. With `onValueChange`, key presses are applied for you. */ value?: string; onValueChange?: (value: string) => void; /** Raw key stream, e.g. to drive a field with its own caret logic. */ onKey?: (action: KeyAction) => void; onEnter?: () => void; /** Numeric layout only: show a decimal point key. */ decimal?: boolean; /** Custom key rows (other languages/alphabets). Overrides `layout`. */ rows?: KeyDef[][]; /** Key edge floor in px. Defaults to the theme's `--touch-min-target` (60). */ minTarget?: number; /** Gap between keys in px. */ gap?: number; /** i18n overrides for the accessible names. */ labels?: Partial; } /** * On-screen keyboard for kiosks. Keys are real