import{a1 as t,R as e,aC as l}from"./iframe-DvhcA1iZ.js";import"./preload-helper-PPVm8Dsz.js";const o={title:"Components/Form/Toggle",component:t,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{value:{control:{type:"select",options:[!0,!1,null]}}}},u={args:{value:!1,onChange:()=>{}}},i={args:{value:!0,onChange:()=>{}}},m={args:{value:null,onChange:()=>{}}},d={args:{value:!0,disabled:!0,onChange:()=>{}}},g={render:()=>{const[n,a]=l.useState(!1);return e.createElement(t,{value:n,onChange:a,onContextMenu:r=>{r.preventDefault(),alert("Right-clicked/long pressed!")}})}},p={render:()=>{const[n,a]=l.useState(null);return e.createElement(t,{value:n,onChange:a,undeterminedClickValue:!0})}},v={render:()=>e.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"1rem",alignItems:"flex-start"}},e.createElement("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"}},e.createElement(t,{value:!1,onChange:()=>{}}),e.createElement("span",null,"Off")),e.createElement("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"}},e.createElement(t,{value:!0,onChange:()=>{}}),e.createElement("span",null,"On")),e.createElement("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"}},e.createElement(t,{value:null,onChange:()=>{}}),e.createElement("span",null,"Undetermined")),e.createElement("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"}},e.createElement(t,{value:!0,disabled:!0,onChange:()=>{}}),e.createElement("span",null,"Disabled")))},f=["Default","On","Undetermined","Disabled","Interactive","WithUndeterminedClick","AllStates"];export{v as AllStates,u as Default,d as Disabled,g as Interactive,i as On,m as Undetermined,p as WithUndeterminedClick,f as __namedExportsOrder,o as default};
