// @bun
var O=Object.defineProperty;var P=(y)=>y;function Q(y,z){this[y]=P.bind(null,z)}var Z=(y,z)=>{for(var q in z)O(y,q,{get:z[q],enumerable:!0,configurable:!0,set:Q.bind(z,q)})};var _=(y,z)=>()=>(y&&(z=y(y=0)),z);import{ExampleCatalogDataView as I}from"@contractspec/lib.contracts-spec/docs";import{ButtonLink as J,DataViewList as R,StatusChip as T}from"@contractspec/lib.design-system";import{HStack as U,VStack as K}from"@contractspec/lib.ui-kit-web/ui/stack";import{H1 as W,Muted as N}from"@contractspec/lib.ui-kit-web/ui/typography";import{buildExampleDocsHref as X,listDiscoverableExamples as Y}from"@contractspec/module.examples/catalog";import{jsx as A,jsxs as G}from"react/jsx-runtime";function g(){let y=Y().map((q)=>{let F=q.meta.title??q.meta.key;return{id:q.meta.key,title:F,summary:q.meta.summary??q.meta.description,route:X(q.meta.key),tags:q.meta.tags,sandboxEnabled:q.surfaces.sandbox.enabled}}).sort((q,F)=>q.title.localeCompare(F.title)),z={...I,view:{...I.view,kind:"list"}};return G(K,{gap:"xl",children:[G(K,{gap:"sm",children:[A(W,{children:"Examples"}),A(N,{children:"Reference implementations for real ContractSpec surfaces. Use them to study adoption patterns, inspect generated artifacts, and validate the OSS workflow against runnable systems."})]}),A(R,{spec:z,items:y,emptyState:A(N,{children:"No examples available."}),renderActions:(q)=>{return G(U,{gap:"xs",justify:"end",children:[q.sandboxEnabled?A(J,{href:`/sandbox?template=${q.id}`,size:"sm",variant:"outline",children:"Sandbox"}):null,A(J,{href:q.route,size:"sm",children:"Reference"}),q.tags?.[0]?A(T,{size:"sm",label:q.tags[0]}):null]})}})]})}export{g as DocsExamplesPage};
