import{r as d,j as e}from"./iframe-p4aYZyoq.js";import{g as n}from"./lipsum-Bi7KVxrj.js";import{c as f}from"./index-Dx18ixSn.js";import{S as s}from"./evidence-tag-Bqx2a0m2.js";import{S as y}from"./help-BLfYd5wX.js";import{S as I}from"./information-CdWOuYio.js";import"./preload-helper-BDBacUwf.js";import"./index-BUaT88Mv.js";const p=12,E=e.jsx(s,{width:p,height:p}),l=({label:t,title:a,className:v,iconComponent:x=E,children:c,...u})=>{const r=d.useId(),[i,j]=d.useState(!1);return e.jsxs(e.Fragment,{children:[e.jsxs("button",{className:f(v,"evidence-tag"),onClick:()=>j(!i),type:"button","data-testid":"evidence-tag-trigger","aria-expanded":i,"aria-controls":r,...u,children:[x,e.jsx("span",{className:"evidence-tag__label",children:t})]}),c&&e.jsx("div",{className:`evidence-tag-content ${i?"evidence-tag-content--visible":""}`,"data-testid":"evidence-tag-content",id:r,children:i&&c})]})};try{evidencetag.displayName="evidencetag",evidencetag.__docgenInfo={description:"",displayName:"evidencetag",props:{label:{defaultValue:null,description:"Displayed on the tag",name:"label",required:!0,type:{name:"string"}},iconComponent:{defaultValue:{value:"<EvidenceTagIcon width={size} height={size} />"},description:"Icon to display",name:"iconComponent",required:!1,type:{name:"ReactElement<unknown, string | JSXElementConstructor<any>>"}}}}}catch{}const _={EvidenceTag:e.jsx(s,{width:12,height:12}),InformationIcon:e.jsx(I,{}),HelpIcon:e.jsx(y,{})},H={component:l,title:"Biocomponents/Evidence Tag",argTypes:{iconComponent:{options:["EvidenceTag","InformationIcon","HelpIcon"],mapping:_,control:{type:"select"}}},args:{label:"this is an evidence tag",iconComponent:e.jsx(s,{width:12,height:12})},render:({label:t,iconComponent:a})=>e.jsx(l,{label:t,iconComponent:a,children:e.jsxs("div",{children:[e.jsx("h5",{children:"Some title"}),e.jsx("p",{children:n()}),e.jsx("p",{children:n()}),e.jsx("p",{children:n()}),e.jsx("p",{children:n()}),e.jsx("p",{children:n()}),e.jsx("p",{children:n()}),e.jsx("p",{children:n()}),e.jsx("p",{children:n()})]})})},o={};var m,g,h;o.parameters={...o.parameters,docs:{...(m=o.parameters)==null?void 0:m.docs,source:{originalSource:"{}",...(h=(g=o.parameters)==null?void 0:g.docs)==null?void 0:h.source}}};const k=["EvidenceTag"];export{o as EvidenceTag,k as __namedExportsOrder,H as default};
