miniflare
Version:
Fun, full-featured, fully-local simulator for Cloudflare Workers
1 lines • 5.2 kB
JavaScript
import{c as e,s as t,z as n}from"./useRouterState-DkU0JPAO.js";import{$ as r,Bt as i,C as a,Lt as o,Pt as s,T as c,V as l,Vt as u,c as d,h as f,kt as p,pt as m,wt as h,yt as g}from"./button-cdxnqcgzwko8ooha-DW4HgSd6.js";var _=n(t(),1),v=new Map([[`bold`,_.createElement(_.Fragment,null,_.createElement(`path`,{d:`M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z`}))],[`duotone`,_.createElement(_.Fragment,null,_.createElement(`path`,{d:`M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z`,opacity:`0.2`}),_.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z`}))],[`fill`,_.createElement(_.Fragment,null,_.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z`}))],[`light`,_.createElement(_.Fragment,null,_.createElement(`path`,{d:`M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z`}))],[`regular`,_.createElement(_.Fragment,null,_.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z`}))],[`thin`,_.createElement(_.Fragment,null,_.createElement(`path`,{d:`M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z`}))]]),y=_.forwardRef((e,t)=>_.createElement(i,{ref:t,...e,weights:v}));y.displayName=`TrashIcon`;var b=e(),x={color:{primary:{classes:``,description:`Primary surface color`},secondary:{classes:``,description:`Secondary surface color`}}},S=(0,_.forwardRef)(function({color:e=`primary`,className:t,render:n,as:i,...a},o){let c={className:u(`bg-kumo-base shadow-xs ring ring-kumo-line`,x.color[e].classes)};return s({defaultTagName:`div`,render:n??(i?(0,_.createElement)(i):void 0),ref:o,props:r(c,a,{className:t})})});S.displayName=`Surface`;var C={size:{base:{classes:`sm:min-w-96`,description:`Default dialog width`},sm:{classes:`min-w-72`,description:`Small dialog for simple confirmations`},lg:{classes:`min-w-[32rem]`,description:`Large dialog for complex content`},xl:{classes:`min-w-[48rem]`,description:`Extra large dialog for detailed views`}}},w={size:`base`,role:`dialog`},T=(0,_.createContext)(`dialog`);function E(){return(0,_.useContext)(T)}function D({size:e=w.size}={}){return u(`shadow-m fixed top-1/2 left-1/2 w-full sm:w-auto max-w-[calc(100vw-2rem)] sm:max-w-[calc(100vw-3rem)] -translate-x-1/2 -translate-y-1/2 overflow-hidden rounded-xl bg-kumo-base text-kumo-default duration-150 data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-90 data-starting-style:opacity-0`,C.size[e].classes)}function O({className:e,children:t,style:n,size:r=w.size,container:i}){E();let s=o();return(0,b.jsxs)(a,{container:i??s??void 0,children:[(0,b.jsx)(d,{className:`fixed inset-0 bg-kumo-recessed opacity-80 transition-all duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0`}),(0,b.jsx)(S,{render:(0,b.jsx)(f,{}),className:u(D({size:r}),e),style:{transitionProperty:`scale, opacity`,transitionTimingFunction:`var(--default-transition-timing-function)`,"--tw-shadow":`0 20px 25px -5px rgb(0 0 0 / 0.03), 0 8px 10px -6px rgb(0 0 0 / 0.03)`,...n},children:t})]})}function k({children:e,role:t=w.role,...n}){let r=t===`alertdialog`?p:c;return(0,b.jsx)(T.Provider,{value:t,children:(0,b.jsx)(r,{...n,children:e})})}k.displayName=`Dialog.Root`;function A({children:e,...t}){return(0,b.jsx)((E(),m),{...t,children:e})}A.displayName=`Dialog.Trigger`;function j({className:e,...t}){return(0,b.jsx)((E(),h),{className:e,...t})}j.displayName=`Dialog.Title`;function M({className:e,...t}){return(0,b.jsx)((E(),l),{className:e,...t})}M.displayName=`Dialog.Description`;function N({children:e,...t}){return(0,b.jsx)((E(),g),{...t,children:e})}N.displayName=`Dialog.Close`;var P=Object.assign(O,{Root:k,Trigger:A,Title:j,Description:M,Close:N});export{y as n,P as t};