import{j as e}from"./jsx-runtime-Dfk2JFgj.js";import{r as u}from"./index-CWN_QRa1.js";import{B as m}from"./index-CIVavKlu.js";import{L as i}from"./index-Cj3pldWQ.js";import"./index-DllfNvuz.js";import"./DefaultPropsProvider-BPu7lNPC.js";const C={title:"Components/Loading",component:i},x=t=>{const[r,g]=u.useState(!1);return e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{width:"230px",height:"280px",border:"1px solid #e2e2e2",borderRadius:"5px"},children:r&&e.jsx(i,{...t})}),e.jsx("div",{style:{display:"flex",justifyContent:"center",marginTop:"10px"},children:e.jsx(m,{onClick:()=>g(!r),children:r?"finish_upload":"upload"})})]})},n=x.bind({});n.args={overlay:!1,show:!0,full:!1,size:40,style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}};const h=t=>e.jsx("div",{style:{width:"100px",height:"100px"},children:e.jsx(i,{...t})}),s=h.bind({});s.args={overlay:!1,show:!0,full:!0,size:40};var o,a,d;n.parameters={...n.parameters,docs:{...(o=n.parameters)==null?void 0:o.docs,source:{originalSource:`args => {
  const [loading, setLoading] = useState(false);
  return <>
      <div style={{
      width: "230px",
      height: "280px",
      border: "1px solid #e2e2e2",
      borderRadius: "5px"
    }}>
        {loading && <Loading {...args} />}
      </div>

      <div style={{
      display: "flex",
      justifyContent: "center",
      marginTop: "10px"
    }}>
        <Button onClick={() => setLoading(!loading)}>
          {loading ? "finish_upload" : "upload"}
        </Button>
      </div>
    </>;
}`,...(d=(a=n.parameters)==null?void 0:a.docs)==null?void 0:d.source}}};var l,p,c;s.parameters={...s.parameters,docs:{...(l=s.parameters)==null?void 0:l.docs,source:{originalSource:`args => {
  return <div style={{
    width: "100px",
    height: "100px"
  }}>
      <Loading {...args} />
    </div>;
}`,...(c=(p=s.parameters)==null?void 0:p.docs)==null?void 0:c.source}}};const S=["InsideCard","SimpleLoading"];export{n as InsideCard,s as SimpleLoading,S as __namedExportsOrder,C as default};
