import Checkbox from "../app/components/Checkbox"; import { DefaultInteraction, CheckedInteraction, StandardInteraction, InverseInteraction, KeyboardInteraction, AccessibilityInteraction, FormIntegration, } from "../tests/storybook/Checkbox.interactions.test"; export default { title: "Forms/Checkbox", component: Checkbox, parameters: { layout: "centered", backgrounds: { default: "dark", values: [ { name: "light", value: "#ffffff" }, { name: "dark", value: "#000000" }, ], }, }, argTypes: { checked: { control: "boolean", description: "Whether the checkbox is checked", }, mode: { control: "select", options: ["standard", "inverse"], description: "Visual mode of the checkbox", }, state: { control: "select", options: ["default", "hover", "focus"], description: "Interaction state for static display", }, disabled: { control: "boolean", description: "Whether the checkbox is disabled", }, label: { control: "text", description: "Label text for the checkbox", }, }, }; export const Default = { args: { checked: false, mode: "standard", state: "default", disabled: false, label: "Default checkbox", }, play: DefaultInteraction.play, }; export const Checked = { args: { checked: true, mode: "standard", state: "default", disabled: false, label: "Checked checkbox", }, play: CheckedInteraction.play, }; export const Standard = { render: () => (

Standard Mode

), play: StandardInteraction.play, }; export const Inverse = { render: () => (

Inverse Mode

), play: InverseInteraction.play, };