import{j as m}from"./jsx-runtime-Dfk2JFgj.js";import{S as a}from"./index-DNsi8NHw.js";import"./index-CIVavKlu.js";import"./CheckGroup-BpaEcK_0.js";import"./index-Cj3pldWQ.js";import"./index-DgIb9kCw.js";import"./index-CWN_QRa1.js";import"./index-DllfNvuz.js";import"./index-6WYjB5r3.js";import"./DefaultPropsProvider-BPu7lNPC.js";import"./index-Bk93qgka.js";import"./index-DnVHLn3F.js";import"./v4-CtRu48qb.js";import"./tiny-invariant-CopsF_GD.js";import"./iframe-BT4Dhm0c.js";const{useArgs:p}=__STORYBOOK_MODULE_PREVIEW_API__,E={title:"Components/Switch",component:a,argTypes:{}},d=n=>{const[{checked:t},c]=p(),i=()=>c({checked:!t});return m.jsx(a,{...n,checked:t,onChange:i})},e=d.bind({});e.parameters={controls:{exclude:["value","name","onChange","id"]}};e.args={label:"toggle",optionLabels:["Whatever","Off"],labelPosition:"right",size:"dynamic",checked:!1,isDisabled:!1,id:"switch-test",name:"sw",style:{}};var r,s,o;e.parameters={...e.parameters,docs:{...(r=e.parameters)==null?void 0:r.docs,source:{originalSource:`args => {
  const [{
    checked
  }, updateArgs] = useArgs();
  const handleChange = () => updateArgs({
    checked: !checked
  });
  return <Switch {...args} checked={checked} onChange={handleChange} />;
}`,...(o=(s=e.parameters)==null?void 0:s.docs)==null?void 0:o.source}}};const P=["Primary"];export{e as Primary,P as __namedExportsOrder,E as default};
