import type { ModeValue, StateValue } from "../../../../lib/propNormalization";

export interface CheckboxProps {
  checked?: boolean;
  /** Mode variant (Figma: Mode). */
  mode?: ModeValue;
  /** Visual state (Figma: State). */
  state?: StateValue;
  disabled?: boolean;
  label?: string;
  className?: string;
  onChange?: (_data: {
    checked: boolean;
    value?: string;
    event: React.MouseEvent | React.KeyboardEvent;
  }) => void;
  id?: string;
  name?: string;
  value?: string;
  ariaLabel?: string;
}

export interface CheckboxViewProps {
  labelId: string;
  checked: boolean;
  mode: "standard" | "inverse";
  state: "default" | "hover" | "focus" | "selected";
  disabled: boolean;
  label?: string;
  name?: string;
  value?: string;
  className: string;
  combinedBoxStyles: string;
  checkGlyphColor: string;
  labelColor: string;
  accessibilityProps: React.HTMLAttributes<HTMLSpanElement>;
  onToggle: (_e: React.MouseEvent | React.KeyboardEvent) => void;
  onKeyDown: (_e: React.KeyboardEvent<HTMLSpanElement>) => void;
}
