"use client"; import * as React from "react"; import { Checkbox as CheckboxPrimitive } from "radix-ui"; import { Check, Minus } from "lucide-react"; import { cn } from "@/lib/utils"; /** * v1.4.27 R3d MB4 / CF-40 — shadcn-style `` primitive backed * by `radix-ui`'s `Checkbox` namespace. Brought in so the Coach * sources-rail can drop its raw `` for a * keyboard + touch accessible control that ships proper focus rings * and a 44 px hit target on mobile. * * Mirrors the v1.4.27 shadcn `` recipe: a Root that draws * the border + checked-state background, an Indicator slot that * shows the lucide `` when the box is checked. * * The Indicator also draws a `` for the indeterminate state, which * Radix's Root accepts natively via `checked="indeterminate"`. A group row * whose leaves are partly selected is a real third state and needs to look * like one — drawing it as unchecked would say "none of this is included", * which on this surface is a false statement about what leaves the instance. */ function Checkbox({ className, ...props }: React.ComponentProps) { return ( {props.checked === "indeterminate" ? ( ); } export { Checkbox };