UNPKG

sui-explorer-local

Version:
9 lines (8 loc) 1.66 kB
import{j as e}from"./jsx-runtime-ffb262ed.js";import{c as d}from"./clsx-0839fdbe.js";import"./index-76fb7be0.js";import"./_commonjsHelpers-de833af9.js";function t({active:r,children:c,onClick:l}){return e.jsx("li",{className:"list-none",children:e.jsx("button",{type:"button",className:d("block w-full cursor-pointer rounded-md border px-2.5 py-2 text-left text-body",r?"border-gray-40 bg-gray-40 font-semibold text-gray-90 shadow-sm":"border-transparent bg-white font-medium text-gray-80"),onClick:l,children:c})})}function i({children:r}){return e.jsx("ul",{className:"m-0 flex flex-col gap-1 p-0",children:r})}try{t.displayName="ListItem",t.__docgenInfo={description:"",displayName:"ListItem",props:{active:{defaultValue:null,description:"",name:"active",required:!1,type:{name:"boolean"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"(() => void)"}}}}}catch{}try{i.displayName="VerticalList",i.__docgenInfo={description:"",displayName:"VerticalList",props:{}}}catch{}const f={component:i},s={render:()=>e.jsxs(i,{children:[e.jsx(t,{children:"One"}),e.jsx(t,{active:!0,children:"Two"}),e.jsx(t,{children:"Three"}),e.jsx(t,{children:"Four"})]})};var a,o,n;s.parameters={...s.parameters,docs:{...(a=s.parameters)==null?void 0:a.docs,source:{originalSource:`{ render: () => <VerticalList> <ListItem>One</ListItem> <ListItem active>Two</ListItem> <ListItem>Three</ListItem> <ListItem>Four</ListItem> </VerticalList> }`,...(n=(o=s.parameters)==null?void 0:o.docs)==null?void 0:n.source}}};const _=["Default"];export{s as Default,_ as __namedExportsOrder,f as default};