import{j as u}from"./jsx-runtime-Dfk2JFgj.js";import{r as h}from"./index-CWN_QRa1.js";import{x as m,R as _}from"./index-DNsi8NHw.js";import"./index-CIVavKlu.js";import"./index-DllfNvuz.js";import"./DefaultPropsProvider-BPu7lNPC.js";import"./CheckGroup-BpaEcK_0.js";import"./v4-CtRu48qb.js";import"./index-6WYjB5r3.js";import"./index-Bk93qgka.js";import"./index-DnVHLn3F.js";import"./index-Cj3pldWQ.js";import"./tiny-invariant-CopsF_GD.js";import"./iframe-BT4Dhm0c.js";import"./index-DgIb9kCw.js";const{useArgs:R}=__STORYBOOK_MODULE_PREVIEW_API__,G={title:"Components/Radio",component:m},b=r=>{const[{checked:t},s]=R(),n=()=>s({checked:!t});return u.jsx(m,{...r,checked:t,onClick:n})},e=b.bind({});e.args={id:"radioStory",group:"radio-story",label:"option_unique",value:"value 1",checked:!1,isDisabled:!1};const o=r=>{const[t,s]=h.useState("Radio-2"),n=[{label:"option_one",value:"1"},{label:"option_two",value:"2"},{label:"option_three",value:"3"}];return u.jsx(_,{onChange:g=>s(g),value:t,list:n})};o.__docgenInfo={description:"",methods:[],displayName:"list"};var a,i,l;e.parameters={...e.parameters,docs:{...(a=e.parameters)==null?void 0:a.docs,source:{originalSource:`args => {
  //useArgs is used to let the storybook controls be controlled by onClick
  const [{
    checked
  }, updateArgs] = useArgs();
  const handleChange = () => updateArgs({
    checked: !checked
  });
  return <Radio {...args} checked={checked} onClick={handleChange} />;
}`,...(l=(i=e.parameters)==null?void 0:i.docs)==null?void 0:l.source}}};var c,d,p;o.parameters={...o.parameters,docs:{...(c=o.parameters)==null?void 0:c.docs,source:{originalSource:`args => {
  const [selectedOption, setSelectedOption] = useState("Radio-2");
  const name = "radio-story";
  const list = [{
    label: "option_one",
    value: "1"
  }, {
    label: "option_two",
    value: "2"
  }, {
    label: "option_three",
    value: "3"
  }];
  return <RadioGroup onChange={e => setSelectedOption(e)} value={selectedOption} list={list} />;
}`,...(p=(d=o.parameters)==null?void 0:d.docs)==null?void 0:p.source}}};const P=["ToggleRadio","list"];export{e as ToggleRadio,P as __namedExportsOrder,G as default,o as list};
