@stacksjs/stx 0.2.887 → 0.2.888
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-000mwmfq.js +1203 -0
- package/dist/chunk-043d0en0.js +2 -0
- package/dist/{chunk-3cq4a4x7.js → chunk-0d7ypcjb.js} +2 -2
- package/dist/{chunk-02qmvcmv.js → chunk-0dq9svfb.js} +2 -2
- package/dist/{chunk-cb0c6959.js → chunk-0hj5apb9.js} +1 -1
- package/dist/chunk-0w66z6eq.js +2 -0
- package/dist/{chunk-n22xtagg.js → chunk-11fxbd71.js} +2 -2
- package/dist/chunk-13wd9gf0.js +3 -0
- package/dist/{chunk-zch65qrd.js → chunk-1kc0jyhj.js} +1 -1
- package/dist/{chunk-ram5944w.js → chunk-1wkp3pks.js} +2 -2
- package/dist/{chunk-69ezjc8k.js → chunk-1xpq83mc.js} +4 -4
- package/dist/chunk-1znqedae.js +2 -0
- package/dist/{chunk-gvd8nb8z.js → chunk-2assyczz.js} +1 -1
- package/dist/{chunk-cev5z6gj.js → chunk-2drzzjcm.js} +1 -1
- package/dist/{chunk-y6eaqs8v.js → chunk-2rmqmajd.js} +3 -3
- package/dist/{chunk-59er0fc7.js → chunk-303vzq80.js} +3 -3
- package/dist/{chunk-zj5eq4b6.js → chunk-372xh1g1.js} +4 -4
- package/dist/chunk-3c7nt5qp.js +2 -0
- package/dist/{chunk-zpj6ggee.js → chunk-3ed2erm6.js} +3 -3
- package/dist/{chunk-gbncp2gp.js → chunk-3fbgpv1d.js} +2 -2
- package/dist/chunk-3zyzhcd9.js +2 -0
- package/dist/chunk-44rb9fk0.js +2 -0
- package/dist/chunk-472j3bhp.js +2 -0
- package/dist/chunk-4acce1m8.js +2 -0
- package/dist/{chunk-2r0nrvqe.js → chunk-4c9p434g.js} +2 -2
- package/dist/chunk-4kasmp98.js +2 -0
- package/dist/{chunk-e41pgmgk.js → chunk-4nnmrp7w.js} +2 -2
- package/dist/{chunk-c47stwqj.js → chunk-52mhrbps.js} +1 -1
- package/dist/chunk-53kkjn23.js +2 -0
- package/dist/{chunk-7wqz32ay.js → chunk-55kwxxm5.js} +2 -2
- package/dist/chunk-5gwvy612.js +2 -0
- package/dist/{chunk-0rdh8bw3.js → chunk-5ymf5c8m.js} +6 -6
- package/dist/{chunk-xcsgpf83.js → chunk-5ysv0499.js} +1 -1
- package/dist/{chunk-4n45qa0b.js → chunk-605g9qhp.js} +4 -4
- package/dist/chunk-61vbqrde.js +2 -0
- package/dist/chunk-6fpzwryt.js +2 -0
- package/dist/{chunk-rv0a3stz.js → chunk-6fsnnj5v.js} +5 -5
- package/dist/{chunk-q74affc4.js → chunk-6qq3wy3m.js} +2 -2
- package/dist/{chunk-h63ma36g.js → chunk-6zq3eh7d.js} +2 -2
- package/dist/chunk-7195598h.js +2 -0
- package/dist/{chunk-czcx3nbx.js → chunk-7hm1tpw0.js} +4 -4
- package/dist/{chunk-a7ryj8z8.js → chunk-7nhgpjjw.js} +6 -6
- package/dist/{chunk-0mx7rg07.js → chunk-7s3j8pqq.js} +3 -3
- package/dist/chunk-7zvf79vb.js +2 -0
- package/dist/chunk-88a735jw.js +2 -0
- package/dist/chunk-8v7yjq3b.js +2 -0
- package/dist/{chunk-463weehv.js → chunk-98mj0es1.js} +1 -1
- package/dist/{chunk-ef9m5fjb.js → chunk-9qrgdekg.js} +11 -11
- package/dist/{chunk-fg67643b.js → chunk-9tecekzq.js} +4 -4
- package/dist/chunk-a8c9j9cj.js +2 -0
- package/dist/chunk-acw851e8.js +2 -0
- package/dist/{chunk-d2pexm3z.js → chunk-ah6nc29h.js} +1 -1
- package/dist/chunk-andfvr3g.js +2 -0
- package/dist/chunk-ay5zkfdg.js +2 -0
- package/dist/{chunk-xpbakn6t.js → chunk-b0jekg4c.js} +2 -2
- package/dist/chunk-b4gptdtc.js +2 -0
- package/dist/{chunk-agd2b928.js → chunk-b8528fra.js} +2 -2
- package/dist/chunk-baaw9w7y.js +2 -0
- package/dist/{chunk-sc1gmts0.js → chunk-btsgt6w3.js} +2 -2
- package/dist/chunk-bw2p9h2g.js +2 -0
- package/dist/{chunk-6mfpns00.js → chunk-c1b0fy70.js} +4 -4
- package/dist/{chunk-qt39mb2a.js → chunk-c3ca056p.js} +1 -1
- package/dist/chunk-ce0vv7kz.js +2 -0
- package/dist/chunk-d1yj29g2.js +2 -0
- package/dist/{chunk-4j50hrgq.js → chunk-dbhmbef1.js} +4 -4
- package/dist/chunk-dfsykk1r.js +2 -0
- package/dist/{chunk-satrf398.js → chunk-dj9ztcth.js} +1 -1
- package/dist/{chunk-pgrm1vet.js → chunk-e1qcfesw.js} +5 -5
- package/dist/{chunk-cv4bfhn1.js → chunk-e2ws79vt.js} +4 -4
- package/dist/chunk-e9p596bp.js +2 -0
- package/dist/{chunk-q3epnfp4.js → chunk-e9tjxnhn.js} +4 -4
- package/dist/{chunk-dz7amds0.js → chunk-edysherg.js} +3 -3
- package/dist/{chunk-g2xy0z0e.js → chunk-em6fqvjy.js} +2 -2
- package/dist/{chunk-kaem8q20.js → chunk-fce8wj3t.js} +1 -1
- package/dist/{chunk-f2twg7ze.js → chunk-fepezvdq.js} +5 -5
- package/dist/chunk-ftecsa8e.js +2 -0
- package/dist/{chunk-50cnypys.js → chunk-gdtj5rfa.js} +5 -5
- package/dist/chunk-ge2h5v46.js +2 -0
- package/dist/chunk-gqvnz8a7.js +2 -0
- package/dist/chunk-j41gp8p3.js +2 -0
- package/dist/{chunk-nzpzyz22.js → chunk-j51wss7s.js} +1 -1
- package/dist/chunk-jxvccj30.js +2 -0
- package/dist/chunk-k5bbre7d.js +2 -0
- package/dist/chunk-kd47vgs8.js +2 -0
- package/dist/chunk-keqjafdz.js +2 -0
- package/dist/{chunk-kwf3kfr0.js → chunk-kvxdyg7e.js} +2 -2
- package/dist/chunk-kz3mejc4.js +2 -0
- package/dist/{chunk-ezna4dhj.js → chunk-mbm3ma63.js} +2 -2
- package/dist/{chunk-qx1nbryq.js → chunk-mk6thhwf.js} +2 -2
- package/dist/{chunk-twmkz0xs.js → chunk-mm1eg2pg.js} +7 -7
- package/dist/chunk-ngkh0t5b.js +2 -0
- package/dist/chunk-nx9895m6.js +2 -0
- package/dist/chunk-nxgtt1t1.js +2 -0
- package/dist/chunk-nyw2ztar.js +2 -0
- package/dist/{chunk-km14pdrt.js → chunk-p33npqjt.js} +11 -11
- package/dist/chunk-p5q27adr.js +2 -0
- package/dist/chunk-pczb7xav.js +2 -0
- package/dist/{chunk-sfyyn0mg.js → chunk-pm4kn9h2.js} +6 -6
- package/dist/chunk-ps37r6hj.js +2 -0
- package/dist/chunk-pvbhk17r.js +2 -0
- package/dist/chunk-q252qvsy.js +2 -0
- package/dist/{chunk-6qpe4f8e.js → chunk-q3bkxg2n.js} +4 -4
- package/dist/chunk-q5b0vpmm.js +2 -0
- package/dist/{chunk-4251fy7d.js → chunk-qjy5yq25.js} +9 -9
- package/dist/{chunk-pdprhg5k.js → chunk-qsnpqa8q.js} +1 -1
- package/dist/{chunk-2v7v6jcs.js → chunk-r561zt9v.js} +3 -3
- package/dist/{chunk-ybjgnnyf.js → chunk-r57jz09p.js} +5 -5
- package/dist/{chunk-dwyhpbpx.js → chunk-r8xper92.js} +2 -2
- package/dist/{chunk-sv7fdqmc.js → chunk-ry6w43p6.js} +6 -6
- package/dist/{chunk-e362e615.js → chunk-s7wp7a2x.js} +30 -30
- package/dist/chunk-sbr85vda.js +2 -0
- package/dist/{chunk-57q4nvs9.js → chunk-sbwvvjkc.js} +3 -3
- package/dist/chunk-tkab24xr.js +2 -0
- package/dist/{chunk-16aqrwmk.js → chunk-v47xc2fr.js} +5 -5
- package/dist/{chunk-q1mb0fbt.js → chunk-v8e2c2r1.js} +2 -2
- package/dist/{chunk-aaea157p.js → chunk-vazk5qbh.js} +2 -2
- package/dist/{chunk-6df3j3qq.js → chunk-vgr7gd8k.js} +1 -1
- package/dist/{chunk-kee5a3ce.js → chunk-vgsasnwm.js} +2 -2
- package/dist/{chunk-32twt3wx.js → chunk-vjfp8n6p.js} +3 -3
- package/dist/chunk-vn59yrjh.js +2 -0
- package/dist/{chunk-shcnt6aa.js → chunk-w1q86c89.js} +3 -3
- package/dist/{chunk-ws2h92mm.js → chunk-w50yggy3.js} +2 -2
- package/dist/{chunk-8e1cv1hh.js → chunk-w624s5jf.js} +3 -3
- package/dist/chunk-wa9q1gyv.js +2 -0
- package/dist/{chunk-a0q0kb0s.js → chunk-wbxmn5gk.js} +5 -5
- package/dist/{chunk-pc8dt8xs.js → chunk-wf8pdjq5.js} +1 -1
- package/dist/{chunk-88tshy2f.js → chunk-whsdyf4t.js} +6 -6
- package/dist/{chunk-3bfheqe3.js → chunk-wm287dz2.js} +2 -2
- package/dist/{chunk-rsxxajv6.js → chunk-wpa3r3b9.js} +2 -2
- package/dist/chunk-wpgxhrd7.js +2 -0
- package/dist/{chunk-yasdj4ve.js → chunk-wscry63p.js} +2 -2
- package/dist/chunk-x3azrbpr.js +2 -0
- package/dist/chunk-x50hk1hq.js +2 -0
- package/dist/{chunk-8va3fs07.js → chunk-xavx271y.js} +5 -5
- package/dist/chunk-xbkbvfcg.js +2 -0
- package/dist/{chunk-295bykzd.js → chunk-xw291tn7.js} +13 -11
- package/dist/{chunk-94ctmp0j.js → chunk-xy4j8t7w.js} +2 -2
- package/dist/{chunk-azf6tdq6.js → chunk-y76znqmh.js} +17 -17
- package/dist/{chunk-yp4tn4zn.js → chunk-y8p59h6c.js} +4 -4
- package/dist/{chunk-s7xywsqd.js → chunk-z55rpt3s.js} +2 -2
- package/dist/{chunk-ssg6ne5b.js → chunk-zf29ahhd.js} +4 -4
- package/dist/{chunk-mxvgft6p.js → chunk-zje94z0k.js} +9 -9
- package/dist/{chunk-gtv9jd68.js → chunk-znnvq1jp.js} +26 -26
- package/dist/{chunk-08cb7cyw.js → chunk-zwde52kw.js} +1 -1
- package/dist/chunk-zxff7kq9.js +2 -0
- package/dist/cli.js +19 -19
- package/dist/component-library.js +118 -21
- package/dist/craft-entry.js +2 -2
- package/dist/craft.js +2 -2
- package/dist/pwa.js +3 -3
- package/dist/ssg.js +6 -6
- package/package.json +5 -5
- package/dist/chunk-0gkxqcpj.js +0 -2
- package/dist/chunk-0h1dyd38.js +0 -2
- package/dist/chunk-0sew66hf.js +0 -2
- package/dist/chunk-13dgqekj.js +0 -2
- package/dist/chunk-15n20xwe.js +0 -2
- package/dist/chunk-1ta1pj1t.js +0 -2
- package/dist/chunk-1z3r2jjp.js +0 -2
- package/dist/chunk-1z6rrqvm.js +0 -2
- package/dist/chunk-41353gyc.js +0 -2
- package/dist/chunk-4pjqj54a.js +0 -2
- package/dist/chunk-53cc06w7.js +0 -2
- package/dist/chunk-5m02cbxg.js +0 -2
- package/dist/chunk-5rd0an89.js +0 -2
- package/dist/chunk-5s0w910j.js +0 -2
- package/dist/chunk-6fy11vfb.js +0 -2
- package/dist/chunk-6mjk28s3.js +0 -2
- package/dist/chunk-8h5nje66.js +0 -2
- package/dist/chunk-9h3qq2d2.js +0 -2
- package/dist/chunk-9kza7gxd.js +0 -2
- package/dist/chunk-a02gt4tz.js +0 -1199
- package/dist/chunk-a30zpnqp.js +0 -2
- package/dist/chunk-aq0fz4mr.js +0 -2
- package/dist/chunk-axra1yas.js +0 -2
- package/dist/chunk-b2vhsyf9.js +0 -2
- package/dist/chunk-c42b1y7z.js +0 -2
- package/dist/chunk-c89wryyz.js +0 -2
- package/dist/chunk-ch57kgb6.js +0 -2
- package/dist/chunk-cv1vm1w0.js +0 -2
- package/dist/chunk-d7b30bg6.js +0 -2
- package/dist/chunk-f3j1h3ch.js +0 -2
- package/dist/chunk-fz4c5e9m.js +0 -2
- package/dist/chunk-gd04nvj3.js +0 -2
- package/dist/chunk-gmp10259.js +0 -2
- package/dist/chunk-gr956aar.js +0 -2
- package/dist/chunk-h3fv0q25.js +0 -2
- package/dist/chunk-jghpzx5m.js +0 -2
- package/dist/chunk-kcqfrw10.js +0 -2
- package/dist/chunk-kfzvtzsz.js +0 -2
- package/dist/chunk-kqgspa3s.js +0 -2
- package/dist/chunk-mast9wb2.js +0 -2
- package/dist/chunk-mqy1wz09.js +0 -3
- package/dist/chunk-mv21mc9p.js +0 -2
- package/dist/chunk-n9bw9bsn.js +0 -2
- package/dist/chunk-ngzyzcrp.js +0 -2
- package/dist/chunk-nnqyn7db.js +0 -2
- package/dist/chunk-p5qac909.js +0 -2
- package/dist/chunk-pa6kgbmw.js +0 -2
- package/dist/chunk-pd089tq0.js +0 -2
- package/dist/chunk-pjjrx9pk.js +0 -2
- package/dist/chunk-pt3rp3zg.js +0 -2
- package/dist/chunk-t8r40wgf.js +0 -2
- package/dist/chunk-wjafpvjv.js +0 -2
- package/dist/chunk-x44f0eq1.js +0 -2
- package/dist/chunk-xhr35ctb.js +0 -2
- package/dist/chunk-xk15vzb6.js +0 -2
- package/dist/chunk-xmmr0916.js +0 -2
- package/dist/chunk-ywnqjqns.js +0 -2
- package/dist/chunk-z7k1xn6k.js +0 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{S,C,Ni,En}from"./chunk-
|
|
3
|
-
`)}var
|
|
2
|
+
import{S,C,Ni,En}from"./chunk-000mwmfq.js";import{fi}from"./chunk-55kwxxm5.js";import{l}from"./chunk-z55rpt3s.js";import{D,f}from"./chunk-b0jekg4c.js";import _ from"fs";import d from"path";import{hasLocalConfig as ye}from"bunfig";var At={fg:{light:"neutral-900",dark:"neutral-100",description:"Primary text"},"fg-strong":{light:"neutral-700",dark:"neutral-300",description:"Labels, secondary headings"},"fg-muted":{light:"neutral-600",dark:"neutral-400",description:"Supporting text"},"fg-soft":{light:"neutral-500",dark:"neutral-400",description:"De-emphasised text"},"fg-subtle":{light:"neutral-400",dark:"neutral-500",description:"Recessive, non-essential text"},surface:{light:"neutral-50",dark:"neutral-800",description:"Page and panel background"},"surface-raised":{light:"neutral-100",dark:"neutral-700",description:"Cards, popovers"},"surface-sunken":{light:"neutral-200",dark:"neutral-700",description:"Wells, track backgrounds"},panel:{light:"white",dark:"neutral-800",description:"Card, menu, dialog surface"},field:{light:"white",dark:"neutral-700",description:"Form control surface"},page:{light:"neutral-50",dark:"neutral-900",description:"Page background, behind panels"},content:{light:"white",dark:"neutral-900",description:"Content area under a chrome header - a table or list body"},"surface-hover":{light:"neutral-100",dark:"neutral-700",description:"Row or item highlight on a page or panel"},"surface-raised-hover":{light:"neutral-200",dark:"neutral-600",description:"Raised surface, hovered"},"surface-sunken-hover":{light:"neutral-300",dark:"neutral-600",description:"Sunken surface, hovered"},"field-hover":{light:"neutral-50",dark:"neutral-600",description:"Form control surface, hovered"},link:{light:"blue-500",dark:"blue-400",description:"Hyperlink"},"link-hover":{light:"blue-600",dark:"blue-300",description:"Hyperlink, hovered"},inverse:{light:"neutral-900",dark:"neutral-700",description:"Tooltip bubble, inverted surface"},"inverse-ink":{light:"white",dark:"white",description:"Text on an inverted surface"},line:{light:"neutral-200",dark:"neutral-700",description:"Default border, divider"},"line-strong":{light:"neutral-300",dark:"neutral-600",description:"Input border, focus ring track"},"line-hover":{light:"neutral-400",dark:"neutral-500",description:"Border of a hovered control"},accent:{light:"blue-600",dark:"blue-400",description:"Primary action, selected state"},info:{light:"cyan-600",dark:"cyan-400",description:"Informational emphasis"},danger:{light:"red-600",dark:"red-400",description:"Errors, destructive actions"},success:{light:"green-600",dark:"green-400",description:"Confirmation"},warning:{light:"yellow-600",dark:"yellow-400",description:"Caution"},"accent-solid":{light:"blue-500",dark:"blue-600",description:"Primary button fill"},"info-solid":{light:"cyan-500",dark:"cyan-600",description:"Informational fill"},"danger-solid":{light:"red-500",dark:"red-600",description:"Destructive button fill"},"success-solid":{light:"green-500",dark:"green-600",description:"Confirmation fill"},"warning-solid":{light:"yellow-500",dark:"yellow-600",description:"Caution fill"},"accent-solid-hover":{light:"blue-600",dark:"blue-700",description:"Primary button fill, hovered"},"info-solid-hover":{light:"cyan-600",dark:"cyan-700",description:"Informational fill, hovered"},"danger-solid-hover":{light:"red-600",dark:"red-700",description:"Destructive fill, hovered"},"success-solid-hover":{light:"green-600",dark:"green-700",description:"Confirmation fill, hovered"},"warning-solid-hover":{light:"yellow-600",dark:"yellow-700",description:"Caution fill, hovered"},"accent-ink":{light:"white",dark:"white",description:"Text on a primary fill"},"info-ink":{light:"neutral-900",dark:"neutral-900",description:"Text on an informational fill"},"danger-ink":{light:"white",dark:"white",description:"Text on a destructive fill"},"success-ink":{light:"neutral-900",dark:"neutral-900",description:"Text on a confirmation fill"},"warning-ink":{light:"neutral-900",dark:"neutral-900",description:"Text on a caution fill"},"accent-soft":{light:"blue-100",dark:"blue-900",description:"Tinted primary fill"},"accent-soft-ink":{light:"blue-800",dark:"blue-200",description:"Text on a tinted primary fill"},"info-soft":{light:"cyan-100",dark:"cyan-900",description:"Tinted informational fill"},"info-soft-ink":{light:"cyan-800",dark:"cyan-200",description:"Text on a tinted informational fill"},"danger-soft":{light:"red-100",dark:"red-900",description:"Tinted destructive fill"},"danger-soft-ink":{light:"red-800",dark:"red-200",description:"Text on a tinted destructive fill"},"success-soft":{light:"green-100",dark:"green-900",description:"Tinted confirmation fill"},"success-soft-ink":{light:"green-800",dark:"green-200",description:"Text on a tinted confirmation fill"},"warning-soft":{light:"yellow-100",dark:"yellow-900",description:"Tinted caution fill"},"warning-soft-ink":{light:"yellow-800",dark:"yellow-200",description:"Text on a tinted caution fill"},secondary:{light:"purple-600",dark:"purple-400",description:"Secondary emphasis"},"secondary-solid":{light:"purple-500",dark:"purple-600",description:"Secondary fill"},"secondary-solid-hover":{light:"purple-600",dark:"purple-700",description:"Secondary fill, hovered"},"secondary-ink":{light:"white",dark:"white",description:"Text on a secondary fill"},"secondary-soft":{light:"purple-100",dark:"purple-900",description:"Tinted secondary fill"},"secondary-soft-ink":{light:"purple-800",dark:"purple-200",description:"Text on a tinted secondary fill"},"danger-fg":{light:"red-900",dark:"red-300",description:"Text in a field with an error"},"danger-fg-subtle":{light:"red-300",dark:"red-500",description:"Recessive text in a field with an error"},"danger-line":{light:"red-300",dark:"red-600",description:"Border of a field with an error"},"danger-focus":{light:"red-500",dark:"red-400",description:"Focus ring of a field with an error"}};function ot(n){return`--stx-${n}`}function H(n,t){let s=t.lastIndexOf("-");if(s===-1)return typeof n[t]==="string"?n[t]:void 0;let r=n[t.slice(0,s)];if(!r||typeof r!=="object")return;let i=r[t.slice(s+1)];return typeof i==="string"?i:void 0}var Re=/^(?:#[\da-f]{3,8}|(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color|color-mix|var)\(.*\)|white|black|transparent|currentcolor)$/i;function te(n,t){let s=t.trim();return H(n,s)??(Re.test(s)?s:void 0)}function ne(n={}){return[...Object.keys(n.roles??{}).filter((t)=>!At[t]).map((t)=>`roles.${t}`),...Object.keys(n.shapes??{}).filter((t)=>!Te[t]).map((t)=>`shapes.${t}`),...Object.keys(n.density??{}).filter((t)=>!He[t]).map((t)=>`density.${t}`)]}function se(n){let t={};for(let[s,r]of Object.entries(At)){let i=H(n,r.light);if(i===void 0)continue;t[s]=`var(${ot(s)}, ${i})`}return t}function re(n,t={}){let s=[],r=[];for(let[i,c]of Object.entries(At)){let o=t[i],g=typeof o==="string"?o:o?.light,a=typeof o==="string"?o:o?.dark,u=g&&te(n,g)||H(n,c.light),m=a&&te(n,a)||H(n,c.dark);if(u===void 0)continue;if(s.push(` ${ot(i)}: ${u};`),m!==void 0)r.push(` ${ot(i)}: ${m};`)}if(s.length===0)return"";return["/* stx role tokens \u2014 override any of these to re-theme by meaning. */",":root {",...s,"}",".dark {",...r,"}",""].join(`
|
|
3
|
+
`)}var Te={control:{value:"0.375rem",description:"Buttons, inputs, selects \u2014 rounded-md"},panel:{value:"0.5rem",description:"Cards, dialogs, menus \u2014 rounded-lg"},pill:{value:"9999px",description:"Chips and badges, which are pill-shaped by intent"}};function vn(n){return`--stx-radius-${n}`}function ie(){let n={};for(let[t,s]of Object.entries(Te))n[t]=`var(${vn(t)}, ${s.value})`;return n}function oe(n={}){return["/* stx shape tokens \u2014 a radius by what the thing is. */",":root {",...Object.entries(Te).map(([t,s])=>` ${vn(t)}: ${n[t]??s.value};`),"}",""].join(`
|
|
4
4
|
`)}var He={"control-px":{value:"1rem",description:"Inline padding of a md text control \u2014 px-4"},"control-py":{value:"0.5rem",description:"Block padding of a md text control \u2014 py-2"},"control-text":{value:"1rem",description:"Font size of a md text control \u2014 text-base"},"control-leading":{value:"1.5rem",description:"Line height of a md text control \u2014 text-base"},"cell-px":{value:"1.5rem",description:"Inline padding of every table cell, header or body \u2014 px-6"},"cell-py":{value:"1rem",description:"Block padding of a body cell \u2014 py-4"},"cell-text":{value:"0.875rem",description:"Font size of a body cell \u2014 text-sm"},"cell-leading":{value:"1.25rem",description:"Line height of a body cell \u2014 text-sm"},"cell-head-py":{value:"0.75rem",description:"Block padding of a header cell \u2014 py-3"},"cell-head-text":{value:"0.75rem",description:"Font size of a header cell \u2014 text-xs"},"cell-head-leading":{value:"1rem",description:"Line height of a header cell \u2014 text-xs"}},mr={"control-x":"control-px","control-y":"control-py","cell-x":"cell-px","cell-y":"cell-py","cell-head-y":"cell-head-py"},hr={control:{size:"control-text",leading:"control-leading"},cell:{size:"cell-text",leading:"cell-leading"},"cell-head":{size:"cell-head-text",leading:"cell-head-leading"}};function it(n){return`--stx-${n}`}function Y(n){let t=He[n];if(!t)throw Error(`[stx] unknown density token "${n}"`);return`var(${it(n)}, ${t.value})`}function ce(){let n={};for(let[t,s]of Object.entries(mr))n[t]=Y(s);return n}function ae(){let n={};for(let[t,{size:s,leading:r}]of Object.entries(hr))n[t]=[Y(s),{lineHeight:Y(r)}];return n}function le(n={}){return["/* stx density tokens \u2014 how much room a control or a table cell takes. */",":root {",...Object.entries(He).map(([t,s])=>` ${it(t)}: ${n[t]??s.value};`),"}",""].join(`
|
|
5
5
|
`)}function de(n){return typeof n==="object"&&n!==null&&!Array.isArray(n)}function J(n,t){let s={...n};for(let[r,i]of Object.entries(t))s[r]=de(i)&&de(s[r])?J(s[r],i):i;return s}function ge(n,t){if(!t.fonts)return"";let s=new n({...t.config,fonts:t.fonts,cssVariables:!1}).toCSS(!1,t.minify);return s&&!t.minify?`${s}
|
|
6
|
-
`:s}function fe(n={},t={}){let s=n.theme||{},r=t.theme||{},{extend:i,...c}=r,{extend:o,...g}=s,a=g.colors||{};g.colors={...a,...se(a)};let u=g.borderRadius||{};g.borderRadius={...u,...ie()};let m=g.spacing||{};g.spacing={...m,...ce()};let P=g.fontSize||{};g.fontSize={...P,...ae()};let O=J(g,c),I=J(o||{},i||{});if(Object.keys(I).length>0)O.extend=I;let y=[...n.safelist||[],...t.safelist||[]],N={...n.shortcuts||{},...t.shortcuts||{}},z=[...n.preflights||[],...t.preflights||[]],{fonts:G,...Q}=n,{fonts:A,roles:T,shapes:j,density:F,...b}=t,v={roles:T,shapes:j,density:F},p=A??G;return{config:{...Q,...b,theme:O,safelist:y,shortcuts:N,...z.length>0?{preflights:z}:{},content:[],output:""},safelist:y,shortcuts:N,includePreflight:t.preflight!==!1,minify:t.minify===!0,tokenCSS:re({...a,...O.colors},T)+oe(j)+le(F),unknownRoles:ne(v),...p?{fonts:p}:{}}}var e={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",underscore:"\x1B[4m",blink:"\x1B[5m",reverse:"\x1B[7m",hidden:"\x1B[8m",black:"\x1B[30m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m",gray:"\x1B[90m",bgBlack:"\x1B[40m",bgRed:"\x1B[41m",bgGreen:"\x1B[42m",bgYellow:"\x1B[43m",bgBlue:"\x1B[44m",bgMagenta:"\x1B[45m",bgCyan:"\x1B[46m",bgWhite:"\x1B[47m",bgGray:"\x1B[100m"};import B from"fs";import $e from"path";var
|
|
7
|
-
`)}async function Fe(n,t){try{let s=await
|
|
6
|
+
`:s}function fe(n={},t={}){let s=n.theme||{},r=t.theme||{},{extend:i,...c}=r,{extend:o,...g}=s,a=g.colors||{};g.colors={...a,...se(a)};let u=g.borderRadius||{};g.borderRadius={...u,...ie()};let m=g.spacing||{};g.spacing={...m,...ce()};let P=g.fontSize||{};g.fontSize={...P,...ae()};let O=J(g,c),I=J(o||{},i||{});if(Object.keys(I).length>0)O.extend=I;let y=[...n.safelist||[],...t.safelist||[]],N={...n.shortcuts||{},...t.shortcuts||{}},z=[...n.preflights||[],...t.preflights||[]],{fonts:G,...Q}=n,{fonts:A,roles:T,shapes:j,density:F,...b}=t,v={roles:T,shapes:j,density:F},p=A??G;return{config:{...Q,...b,theme:O,safelist:y,shortcuts:N,...z.length>0?{preflights:z}:{},content:[],output:""},safelist:y,shortcuts:N,includePreflight:t.preflight!==!1,minify:t.minify===!0,tokenCSS:re({...a,...O.colors},T)+oe(j)+le(F),unknownRoles:ne(v),...p?{fonts:p}:{}}}var e={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",underscore:"\x1B[4m",blink:"\x1B[5m",reverse:"\x1B[7m",hidden:"\x1B[8m",black:"\x1B[30m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m",gray:"\x1B[90m",bgBlack:"\x1B[40m",bgRed:"\x1B[41m",bgGreen:"\x1B[42m",bgYellow:"\x1B[43m",bgBlue:"\x1B[44m",bgMagenta:"\x1B[45m",bgCyan:"\x1B[46m",bgWhite:"\x1B[47m",bgGray:"\x1B[100m"};import B from"fs";import $e from"path";var je=256,k=new Map,ue=(n)=>Bun.hash(n).toString(16).padStart(16,"0").slice(0,16),pe=(n)=>l(process.cwd(),"css-assets",`${n}.css`);function K(n,t){if(k.delete(n),k.set(n,t),k.size>je)k.delete(k.keys().next().value)}function he(n){let t=ue(n),s=pe(t);if(k.has(s))return K(s,n),t;let r;try{let i;try{i=B.readFileSync(s,"utf8")}catch{}if(i!==n)B.mkdirSync($e.dirname(s),{recursive:!0}),r=`${s}.${process.pid}.${crypto.randomUUID()}.tmp`,B.writeFileSync(r,n,{flag:"wx"}),B.renameSync(r,s);return K(s,n),t}catch{return}finally{if(r)try{B.unlinkSync(r)}catch{}}}function rg(n){if(!/^[a-f0-9]{16}$/.test(n))return;let t=pe(n),s=k.get(t);if(s!==void 0)return K(t,s),s;try{let r=B.readFileSync(t,"utf8");if(ue(r)!==n)return;return K(t,r),r}catch{return}}function me(){k.clear()}var h=null,U="";function xe(n){try{let t=n.startsWith("file:")?new URL(n).pathname:n;U=`${t}@${Math.trunc(_.statSync(t).mtimeMs)}`}catch{U=n}}var Z=!1,R=null,M="",E=!1,Be=256,Ee="sorted",w=new Map,V=null,we=null,W=new Map,ke=new Set;function ee(n){return Bun.hash(n).toString(16).padStart(16,"0").slice(0,16)}function X(n,t){if(w.has(n))w.delete(n);else if(w.size>=Be)w.delete(w.keys().next().value);w.set(n,t)}async function Pe(n,t=V){if(!t)return null;try{let s=Bun.file(d.join(t,`cw-${ee(n)}.css`));if(!await s.exists())return null;return await s.text()}catch{return null}}async function De(n,t,s=V){if(!s)return;try{if(!_.existsSync(s))_.mkdirSync(s,{recursive:!0});await Bun.write(d.join(s,`cw-${ee(n)}.css`),t)}catch{}}async function Ce(n){try{let t=await import(n);if(t&&t.CSSGenerator)return{CSSGenerator:t.CSSGenerator,config:t.config,build:t.build,defaultConfig:t.defaultConfig,extractClasses:t.extractClasses}}catch{}return null}var Oe=[["@stacksjs","ts-css","dist","engine","index.js"],["@stacksjs","ts-css","src","engine","index.ts"]],Ie=["@stacksjs/ts-css/engine","@stacksjs/ts-css/dist/engine/index.js"];function Ne(){let n=[],t=process.cwd();while(t!==d.dirname(t)){for(let s of["node_modules","pantry"])for(let r of Oe)n.push(d.join(t,s,...r));t=d.dirname(t)}return n}function Ae(){let n=[],t=process.env.HOME||process.env.USERPROFILE||"",s=[t&&d.join(t,"Code","Tools","ts-css"),t&&d.join(t,"Code","Tools","crosswind"),t&&d.join(t,"repos","stacks-org","ts-css"),t&&d.join(t,"repos","stacks-org","crosswind"),d.join(process.cwd(),"..","ts-css"),d.join(process.cwd(),"..","crosswind")].filter(Boolean);for(let r of s)n.push(d.join(r,"packages","toolkit","dist","engine","index.js")),n.push(d.join(r,"packages","toolkit","src","engine","index.ts"));if(t)n.push(d.join(t,"Code","Tools","stx","node_modules","@stacksjs","ts-css","dist","engine","index.js"));return n}async function Rc(){if(Z)return h;Z=!0;try{let n=async(i)=>{for(let c of i){if(!await Bun.file(c).exists())continue;let o=await Ce(c);if(o){if(xe(c),!process.env.STACKS_DEV_QUIET)console.log(`${e.green}[ts-css]${e.reset} CSS engine loaded from ${d.dirname(d.dirname(c))}`);return o}}return null};if(process.env.CROSSWIND_SRC){let i=d.resolve(process.env.CROSSWIND_SRC),c=await n([i]);if(!c)throw Error(`CROSSWIND_SRC did not resolve to a Css module: ${i}`);return h=c,h}let t=await n(Ne());if(t)return h=t,h;let s=Ie;for(let i of s){let c=await Ce(i);if(c){h=c;try{xe(import.meta.resolve(i))}catch{U=i}if(!process.env.STACKS_DEV_QUIET)console.log(`${e.green}[ts-css]${e.reset} CSS engine loaded`);return h}}let r=await n(Ae());if(r)return h=r,h;throw Error("Css CSSGenerator not found in any location")}catch{return console.warn(`${e.yellow}[ts-css] CSS engine not available, Tailwind styles will not be generated${e.reset}`),console.warn(`${e.yellow}Run 'bun add @stacksjs/ts-css' to enable CSS generation${e.reset}`),null}}function ny(){q.clear(),h=null,Z=!1,R=null,M="",w.clear(),me(),we=null,W.clear()}var Se=!1;async function Ac(n){try{let t=ye({name:"css",cwd:n})?"css":ye({name:"crosswind",cwd:n})?"crosswind":null;if(!t)return null;if(t==="crosswind"&&!process.env.STACKS_DEV_QUIET&&!Se)Se=!0,console.warn(`${e.yellow}[ts-css]${e.reset} Reading the CSS config from a \`crosswind\` file. Rename it to \`css\` (e.g. config/css.ts) \u2014 the old name is deprecated.`);let{loadConfigWithResult:s}=await import("bunfig"),r=await s({name:t,cwd:n,defaultConfig:{},checkEnv:!1,verbose:!1});if(!r?.path||!r.config||Object.keys(r.config).length===0)return null;let i=d.relative(n,r.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${e.green}[ts-css]${e.reset} Loaded config from ${i||r.path}`);return r.config}catch(t){if(t instanceof Error&&t.name==="ConfigNotFoundError")return null;return console.warn(`${e.yellow}[ts-css]${e.reset} Failed to load css config:`,t instanceof Error?t.message:t),null}}async function sg(n){let t=null;try{let{loadStxConfig:s}=await import("./chunk-3zyzhcd9.js"),r=await s(n);if(r.css)if(typeof r.css==="string"){let i=d.isAbsolute(r.css)?r.css:d.resolve(n,r.css);if(await Bun.file(i).exists()){let c=await import(i);t=c.default||c,console.log(`${e.green}[ts-css]${e.reset} Loaded config from stx.config.ts \u2192 ${r.css}`)}}else{if(t={...r.css,content:r.css.content||[],preflight:r.css.preflight??!0,minify:r.css.minify??!1},r.css.config){let i=d.isAbsolute(r.css.config)?r.css.config:d.resolve(n,r.css.config);if(await Bun.file(i).exists()){let c=await import(i);t={...c.default||c,...t}}}console.log(`${e.green}[ts-css]${e.reset} Using inline CSS config from stx.config.ts`)}}catch{}return t||await Ac(n)}function og(n){try{let t=new WeakSet;return ee(JSON.stringify(n??{},(s,r)=>{if(typeof r==="function")return`[fn]${String(r)}`;if(typeof r==="object"&&r!==null){if(t.has(r))return"[circular]";t.add(r)}return r})??"")}catch{return"unhashable"}}async function xn(n){if(E)return M;E=!0;try{let t=await Rc();if(!t||!t.build)return E=!1,"";if(!R)R=await Ac(n);if(!R)return E=!1,"";let s=t.defaultConfig?.theme||{},r=R.theme||{},i={...t.defaultConfig,...R,theme:{...s,...r,extend:{...s.extend||{},...r.extend||{}}}},c=performance.now(),o=await t.build(i),g=performance.now()-c;if(M=o.css,console.log(`${e.cyan}[ts-css]${e.reset} Built ${o.classes.size} classes in ${g.toFixed(1)}ms`),i.output){let a=d.isAbsolute(i.output)?i.output:d.join(n,i.output),u=d.dirname(a);if(!_.existsSync(u))_.mkdirSync(u,{recursive:!0});await Bun.write(a,o.css)}return E=!1,o.css}catch(t){return console.error(`${e.red}[ts-css]${e.reset} Build error:`,t),E=!1,M}}async function yr(n){R=null,await xn(n)}function ry(){return M}function ig(n){let t=new Set,s=/class\s*=\s*["']([^"']+)["']/gi,r=s.exec(n);while(r!==null){for(let o of r[1].split(/\s+/))if(o.trim())t.add(o.trim());r=s.exec(n)}let i=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,c=i.exec(n);while(c!==null){let o=c[1].match(/'([^']+)'/g);if(o){for(let g of o)for(let a of g.slice(1,-1).split(/\s+/))if(a.trim())t.add(a.trim())}c=i.exec(n)}return t}var q=S(64);async function ag(n,t){let s=()=>W.get(t?d.resolve(t):process.cwd())?.fingerprint??null,r=q.get(C(n,t,s()));if(r!==void 0)return r;let i=await Fe(n,t);if(i)q.set(C(n,t,s()),i);return i}function*be(n){yield n;let t=new Set;for(let s of n.matchAll(/\/_stx\/modules\.([0-9a-f]{16})\.js/g)){let r=s[1];if(t.has(r))continue;t.add(r);let i=fi(r);if(i)yield i}}function sy(n){return[...be(n)].join(`
|
|
7
|
+
`)}async function Fe(n,t){try{let s=await Rc();if(!s)return"";let r=new Set;for(let p of be(n)){let L=typeof s.extractClasses==="function"?s.extractClasses(p):ig(p);for(let ve of L)r.add(ve)}if(r.size===0)return"";let i=t?d.resolve(t):process.cwd(),c=l(i,"cache");if(!V)V=c;let o=W.get(i);if(!o){let p=await sg(i);o={config:p,fingerprint:og(p)},W.set(i,o),we=o.fingerprint}let g=[...r].sort(),a=g.join(" "),u=`${Ee}::${U}::${o.fingerprint||"default"}::${a}`,m=w.get(u);if(m!==void 0)return X(u,m),m;let P=await Pe(u,c);if(P!==null)return X(u,P),P;let O=s.defaultConfig||s.config,I=o.config||{},y=fe(O,I),{safelist:N,includePreflight:z,minify:G,tokenCSS:Q}=y;if(y.unknownRoles.length>0&&!ke.has(i))ke.add(i),console.warn(`${e.yellow}[ts-css]${e.reset} No stx role for ${y.unknownRoles.join(", ")} - these keep the stock value. Role names: semanticTokenNames() in @stacksjs/stx/theme-tokens.`);let A=y.config,T=new s.CSSGenerator(A),j=A.shortcuts||I.shortcuts||{},F=Object.keys(j).filter((p)=>r.has(p)||N.includes(p));for(let p of N)if(!j[p])T.generate(p);for(let p of g)if(!j[p])T.generate(p);let b="";if(F.length>0){let p=new s.CSSGenerator(A);for(let L of F)p.generate(L);if(b=p.toCSS(!1,G),b&&!b.endsWith(`
|
|
8
8
|
`))b+=`
|
|
9
|
-
`}let v=b+T.toCSS(z,G);return v=ge(s.CSSGenerator,y)+Q+v,X(u,v),De(u,v,c),v}catch(s){return console.warn("Failed to generate Css CSS:",s),""}}async function x(n,t,s=!1,r=!1){let i=await
|
|
9
|
+
`}let v=b+T.toCSS(z,G);return v=ge(s.CSSGenerator,y)+Q+v,X(u,v),De(u,v,c),v}catch(s){return console.warn("Failed to generate Css CSS:",s),""}}async function x(n,t,s=!1,r=!1){let i=await ag(n,t);if(!i)return r?En(n):n;let c=s?he(i):void 0,o=c?`<link data-css="generated" rel="stylesheet" href="/_stx/css.${c}.css">`:`<style data-css="generated">
|
|
10
10
|
${i}
|
|
11
11
|
</style>`;if(r)return Me(n,o);let g=/(?:<style\b[^>]*\bdata-css=(?:"generated"|'generated')[^>]*>[\s\S]*?<\/style>|<link\b[^>]*\bdata-css=(?:"generated"|'generated')[^>]*>)/g;if(g.test(n)){let a=!1;return n.replace(g,()=>{if(a)return"";return a=!0,o})}if(n.includes("</head>"))return f(n,o);if(n.includes("<body"))return n.replace(/<body([^>]*)>/,`<body$1>
|
|
12
12
|
${o}`);return o+n}function Me(n,t){let s=Ni(n).map((a)=>({...a,replacement:""})),r=/(?:<style\b[^>]*\bdata-css=(?:"generated"|'generated')[^>]*>[\s\S]*?<\/style>|<link\b[^>]*\bdata-css=(?:"generated"|'generated')[^>]*>)/g,i=r.exec(n);if(i!==null){let a=!0;while(i!==null)s.push({start:i.index,end:i.index+i[0].length,replacement:a?t:""}),a=!1,i=r.exec(n)}else{let a=D(n);if(a!==-1)s.push({start:a,end:a,replacement:`${t}
|
|
13
13
|
`});else{let u=n.match(/<body([^>]*)>/);if(u?.index!==void 0)s.push({start:u.index,end:u.index+u[0].length,replacement:`${u[0]}
|
|
14
14
|
${t}`});else s.push({start:0,end:0,replacement:t})}}s.sort((a,u)=>a.start-u.start||a.end-u.end);for(let a=1;a<s.length;a++)if(s[a].start<s[a-1].end)return _e(En(n),t);let c=Array(s.length*2+1),o=0,g=0;for(let a of s)c[g++]=n.slice(o,a.start),c[g++]=a.replacement,o=a.end;return c[g]=n.slice(o),c.join("")}function _e(n,t){let s=/(?:<style\b[^>]*\bdata-css=(?:"generated"|'generated')[^>]*>[\s\S]*?<\/style>|<link\b[^>]*\bdata-css=(?:"generated"|'generated')[^>]*>)/g;if(s.test(n)){let r=!1;return n.replace(s,()=>{if(r)return"";return r=!0,t})}if(n.includes("</head>"))return f(n,t);if(n.includes("<body"))return n.replace(/<body([^>]*)>/,`<body$1>
|
|
15
15
|
${t}`);return t+n}
|
|
16
|
-
export{At,ot,
|
|
16
|
+
export{At,ot,Te,vn,He,mr,hr,it,e,rg,Rc,ny,Ac,sg,og,xn,yr,ry,ig,ag,sy,x};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{dy,Ts,ci,$s,wr,li,ui,pg,Rs,As,Ps,di,Oc,fg,Pt}from"./chunk-mm1eg2pg.js";import"./chunk-fepezvdq.js";import"./chunk-0hj5apb9.js";import"./chunk-zje94z0k.js";import"./chunk-7s3j8pqq.js";import"./chunk-6zq3eh7d.js";import"./chunk-zf29ahhd.js";import"./chunk-5ymf5c8m.js";import"./chunk-b8528fra.js";import{X}from"./chunk-000mwmfq.js";import"./chunk-fce8wj3t.js";import"./chunk-6t04tqvh.js";import"./chunk-xw291tn7.js";import"./chunk-hxhmhw23.js";import"./chunk-kvxdyg7e.js";import"./chunk-s29hp1qw.js";import"./chunk-11fxbd71.js";export{pg as bindLoopInterpolations,dy as clearScriptScanCache,Rs as convertServerLoopAttributesToDirectives,li as convertSignalDirectivesToAttributes,As as convertSignalLoopsToAttributes,wr as extractClientSignalNames,X as extractExports,Oc as findMarkupIndexOutsideScripts,$s as hasSignalsSyntax,ci as parseLoopExpression,ui as preEvalLiteralReactiveIfs,Ps as processScriptSetup,di as processSignals,fg as rewriteStxImportSpecifiers,Ts as scanScriptTags,Pt as stripStxRuntimeImports};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{_m}from"./chunk-wscry63p.js";import"./chunk-v47xc2fr.js";import"./chunk-2assyczz.js";import"./chunk-e9tjxnhn.js";import"./chunk-13wd9gf0.js";import"./chunk-fepezvdq.js";import"./chunk-zje94z0k.js";import"./chunk-7s3j8pqq.js";import"./chunk-6zq3eh7d.js";import"./chunk-zf29ahhd.js";import"./chunk-5ymf5c8m.js";import"./chunk-b8528fra.js";import"./chunk-000mwmfq.js";import"./chunk-fce8wj3t.js";import"./chunk-6t04tqvh.js";import"./chunk-xw291tn7.js";import"./chunk-hxhmhw23.js";import"./chunk-kvxdyg7e.js";import"./chunk-s29hp1qw.js";import"./chunk-11fxbd71.js";export{_m as startProductionServer};
|