import * as React$1 from 'react'; import * as class_variance_authority_types from 'class-variance-authority/types'; import { VariantProps } from 'class-variance-authority'; import { M as MenuColorVariant, l as MenuVariant, p as VerticalMenuSeparatorStyle } from './menu-types-rZNQFO7Y.mjs'; import { b as MD3Size } from './md3-BQhRygSi.mjs'; /** * @file checkbox.tsx * MD3 Expressive Checkbox — 2-state and tri-state support. * Spec: https://m3.material.io/components/checkbox/overview */ /** * Tri-state value: `"unchecked"` | `"checked"` | `"indeterminate"`. */ type CheckboxState = "unchecked" | "checked" | "indeterminate"; /** * Props for `Checkbox`. Supports boolean (`checked`/`onCheckedChange`) * and tri-state (`state`/`onStateChange`) modes. */ interface CheckboxProps { /** Controlled checked value (2-state mode). */ checked?: boolean; /** Initial value for uncontrolled mode. @default false */ defaultChecked?: boolean; /** Forces indeterminate rendering regardless of `checked`. */ indeterminate?: boolean; /** Fired on checked change (simple mode). Not called when disabled. */ onCheckedChange?: (checked: boolean) => void; /** Controlled tri-state value. Takes priority over `checked`/`indeterminate`. */ state?: CheckboxState; /** Fired on tri-state change. Cycles: unchecked → checked → indeterminate. */ onStateChange?: (state: CheckboxState) => void; /** Disables interaction and applies 0.38 opacity. */ disabled?: boolean; /** Error state — changes colors to `m3-error` and sets `aria-invalid`. */ error?: boolean; /** Adjacent label text. Wraps checkbox + span in `