Added new_site as a raw tailwind+html site; initialized npm modules; demo template

This commit is contained in:
BlueFox committed 2025-02-10 07:08:13 +01:00
1 parent 20316167ce
commit 17b3c9e9e9
306 files changed
+70895

No files matched your search

+1
View File
@@ -0,0 +1 @@
var l={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(0.984 0.003 247.858)",100:"oklch(0.968 0.007 247.896)",200:"oklch(0.929 0.013 255.508)",300:"oklch(0.869 0.022 252.894)",400:"oklch(0.704 0.04 256.788)",500:"oklch(0.554 0.046 257.417)",600:"oklch(0.446 0.043 257.281)",700:"oklch(0.372 0.044 257.287)",800:"oklch(0.279 0.041 260.031)",900:"oklch(0.208 0.042 265.755)",950:"oklch(0.129 0.042 264.695)"},gray:{50:"oklch(0.985 0.002 247.839)",100:"oklch(0.967 0.003 264.542)",200:"oklch(0.928 0.006 264.531)",300:"oklch(0.872 0.01 258.338)",400:"oklch(0.707 0.022 261.325)",500:"oklch(0.551 0.027 264.364)",600:"oklch(0.446 0.03 256.802)",700:"oklch(0.373 0.034 259.733)",800:"oklch(0.278 0.033 256.848)",900:"oklch(0.21 0.034 264.665)",950:"oklch(0.13 0.028 261.692)"},zinc:{50:"oklch(0.985 0 0)",100:"oklch(0.967 0.001 286.375)",200:"oklch(0.92 0.004 286.32)",300:"oklch(0.871 0.006 286.286)",400:"oklch(0.705 0.015 286.067)",500:"oklch(0.552 0.016 285.938)",600:"oklch(0.442 0.017 285.786)",700:"oklch(0.37 0.013 285.805)",800:"oklch(0.274 0.006 286.033)",900:"oklch(0.21 0.006 285.885)",950:"oklch(0.141 0.005 285.823)"},neutral:{50:"oklch(0.985 0 0)",100:"oklch(0.97 0 0)",200:"oklch(0.922 0 0)",300:"oklch(0.87 0 0)",400:"oklch(0.708 0 0)",500:"oklch(0.556 0 0)",600:"oklch(0.439 0 0)",700:"oklch(0.371 0 0)",800:"oklch(0.269 0 0)",900:"oklch(0.205 0 0)",950:"oklch(0.145 0 0)"},stone:{50:"oklch(0.985 0.001 106.423)",100:"oklch(0.97 0.001 106.424)",200:"oklch(0.923 0.003 48.717)",300:"oklch(0.869 0.005 56.366)",400:"oklch(0.709 0.01 56.259)",500:"oklch(0.553 0.013 58.071)",600:"oklch(0.444 0.011 73.639)",700:"oklch(0.374 0.01 67.558)",800:"oklch(0.268 0.007 34.298)",900:"oklch(0.216 0.006 56.043)",950:"oklch(0.147 0.004 49.25)"},red:{50:"oklch(0.971 0.013 17.38)",100:"oklch(0.936 0.032 17.717)",200:"oklch(0.885 0.062 18.334)",300:"oklch(0.808 0.114 19.571)",400:"oklch(0.704 0.191 22.216)",500:"oklch(0.637 0.237 25.331)",600:"oklch(0.577 0.245 27.325)",700:"oklch(0.505 0.213 27.518)",800:"oklch(0.444 0.177 26.899)",900:"oklch(0.396 0.141 25.723)",950:"oklch(0.258 0.092 26.042)"},orange:{50:"oklch(0.98 0.016 73.684)",100:"oklch(0.954 0.038 75.164)",200:"oklch(0.901 0.076 70.697)",300:"oklch(0.837 0.128 66.29)",400:"oklch(0.75 0.183 55.934)",500:"oklch(0.705 0.213 47.604)",600:"oklch(0.646 0.222 41.116)",700:"oklch(0.553 0.195 38.402)",800:"oklch(0.47 0.157 37.304)",900:"oklch(0.408 0.123 38.172)",950:"oklch(0.266 0.079 36.259)"},amber:{50:"oklch(0.987 0.022 95.277)",100:"oklch(0.962 0.059 95.617)",200:"oklch(0.924 0.12 95.746)",300:"oklch(0.879 0.169 91.605)",400:"oklch(0.828 0.189 84.429)",500:"oklch(0.769 0.188 70.08)",600:"oklch(0.666 0.179 58.318)",700:"oklch(0.555 0.163 48.998)",800:"oklch(0.473 0.137 46.201)",900:"oklch(0.414 0.112 45.904)",950:"oklch(0.279 0.077 45.635)"},yellow:{50:"oklch(0.987 0.026 102.212)",100:"oklch(0.973 0.071 103.193)",200:"oklch(0.945 0.129 101.54)",300:"oklch(0.905 0.182 98.111)",400:"oklch(0.852 0.199 91.936)",500:"oklch(0.795 0.184 86.047)",600:"oklch(0.681 0.162 75.834)",700:"oklch(0.554 0.135 66.442)",800:"oklch(0.476 0.114 61.907)",900:"oklch(0.421 0.095 57.708)",950:"oklch(0.286 0.066 53.813)"},lime:{50:"oklch(0.986 0.031 120.757)",100:"oklch(0.967 0.067 122.328)",200:"oklch(0.938 0.127 124.321)",300:"oklch(0.897 0.196 126.665)",400:"oklch(0.841 0.238 128.85)",500:"oklch(0.768 0.233 130.85)",600:"oklch(0.648 0.2 131.684)",700:"oklch(0.532 0.157 131.589)",800:"oklch(0.453 0.124 130.933)",900:"oklch(0.405 0.101 131.063)",950:"oklch(0.274 0.072 132.109)"},green:{50:"oklch(0.982 0.018 155.826)",100:"oklch(0.962 0.044 156.743)",200:"oklch(0.925 0.084 155.995)",300:"oklch(0.871 0.15 154.449)",400:"oklch(0.792 0.209 151.711)",500:"oklch(0.723 0.219 149.579)",600:"oklch(0.627 0.194 149.214)",700:"oklch(0.527 0.154 150.069)",800:"oklch(0.448 0.119 151.328)",900:"oklch(0.393 0.095 152.535)",950:"oklch(0.266 0.065 152.934)"},emerald:{50:"oklch(0.979 0.021 166.113)",100:"oklch(0.95 0.052 163.051)",200:"oklch(0.905 0.093 164.15)",300:"oklch(0.845 0.143 164.978)",400:"oklch(0.765 0.177 163.223)",500:"oklch(0.696 0.17 162.48)",600:"oklch(0.596 0.145 163.225)",700:"oklch(0.508 0.118 165.612)",800:"oklch(0.432 0.095 166.913)",900:"oklch(0.378 0.077 168.94)",950:"oklch(0.262 0.051 172.552)"},teal:{50:"oklch(0.984 0.014 180.72)",100:"oklch(0.953 0.051 180.801)",200:"oklch(0.91 0.096 180.426)",300:"oklch(0.855 0.138 181.071)",400:"oklch(0.777 0.152 181.912)",500:"oklch(0.704 0.14 182.503)",600:"oklch(0.6 0.118 184.704)",700:"oklch(0.511 0.096 186.391)",800:"oklch(0.437 0.078 188.216)",900:"oklch(0.386 0.063 188.416)",950:"oklch(0.277 0.046 192.524)"},cyan:{50:"oklch(0.984 0.019 200.873)",100:"oklch(0.956 0.045 203.388)",200:"oklch(0.917 0.08 205.041)",300:"oklch(0.865 0.127 207.078)",400:"oklch(0.789 0.154 211.53)",500:"oklch(0.715 0.143 215.221)",600:"oklch(0.609 0.126 221.723)",700:"oklch(0.52 0.105 223.128)",800:"oklch(0.45 0.085 224.283)"Line truncated
+10
View File
@@ -0,0 +1,10 @@
function I(n){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");var e=String(n),r=e.length,s=-1,t,l="",o=e.charCodeAt(0);if(r==1&&o==45)return"\\"+e;for(;++s<r;){if(t=e.charCodeAt(s),t==0){l+="\uFFFD";continue}if(t>=1&&t<=31||t==127||s==0&&t>=48&&t<=57||s==1&&t>=48&&t<=57&&o==45){l+="\\"+t.toString(16)+" ";continue}if(t>=128||t==45||t==95||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122){l+=e.charAt(s);continue}l+="\\"+e.charAt(s)}return l}function R(n){return n.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,e=>e.length>2?String.fromCodePoint(Number.parseInt(e.slice(1).trim(),16)):e[1])}var U=new Map([["--font",["--font-weight","--font-size"]],["--inset",["--inset-shadow","--inset-ring"]],["--text",["--text-color","--text-underline-offset","--text-indent","--text-decoration-thickness","--text-decoration-color"]]]);function D(n,e){return(U.get(e)??[]).some(r=>n===r||n.startsWith(`${r}-`))}var L=class{constructor(e=new Map,r=new Set([])){this.values=e;this.keyframes=r}prefix=null;add(e,r,s=0){if(e.endsWith("-*")){if(r!=="initial")throw new Error(`Invalid theme value \`${r}\` for namespace \`${e}\``);e==="--*"?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(s&4){let t=this.values.get(e);if(t&&!(t.options&4))return}r==="initial"?this.values.delete(e):this.values.set(e,{value:r,options:s})}keysInNamespaces(e){let r=[];for(let s of e){let t=`${s}-`;for(let l of this.values.keys())l.startsWith(t)&&l.indexOf("--",2)===-1&&(D(l,s)||r.push(l.slice(t.length)))}return r}get(e){for(let r of e){let s=this.values.get(r);if(s)return s.value}return null}hasDefault(e){return(this.getOptions(e)&4)===4}getOptions(e){return e=R(this.#n(e)),this.values.get(e)?.options??0}entries(){return this.prefix?Array.from(this.values,e=>(e[0]=this.#r(e[0]),e)):this.values.entries()}#r(e){return this.prefix?`--${this.prefix}-${e.slice(2)}`:e}#n(e){return this.prefix?`--${e.slice(3+this.prefix.length)}`:e}clearNamespace(e,r){let s=U.get(e)??[];e:for(let t of this.values.keys())if(t.startsWith(e)){if(r!==0&&(this.getOptions(t)&r)!==r)continue;for(let l of s)if(t.startsWith(l))continue e;this.values.delete(t)}}#e(e,r){for(let s of r){let t=e!==null?`${s}-${e}`:s;if(!this.values.has(t))if(e!==null&&e.includes(".")){if(t=`${s}-${e.replaceAll(".","_")}`,!this.values.has(t))continue}else continue;if(!D(t,s))return t}return null}#t(e){return this.values.has(e)?`var(${I(this.#r(e))})`:null}markUsedVariable(e){let r=R(this.#n(e)),s=this.values.get(r);s&&(s.options|=16)}resolve(e,r){let s=this.#e(e,r);if(!s)return null;let t=this.values.get(s);return t.options&1?t.value:this.#t(s)}resolveValue(e,r){let s=this.#e(e,r);return s?this.values.get(s).value:null}resolveWith(e,r,s=[]){let t=this.#e(e,r);if(!t)return null;let l={};for(let u of s){let a=`${t}${u}`,i=this.values.get(a);i&&(i.options&1?l[u]=i.value:l[u]=this.#t(a))}let o=this.values.get(t);return o.options&1?[o.value,l]:[this.#t(t),l]}namespace(e){let r=new Map,s=`${e}-`;for(let[t,l]of this.values)t===e?r.set(null,l.value):t.startsWith(`${s}-`)?r.set(t.slice(e.length),l.value):t.startsWith(s)&&r.set(t.slice(s.length),l.value);return r}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}};var N=class extends Map{constructor(r){super();this.factory=r}get(r){let s=super.get(r);return s===void 0&&(s=this.factory(r,this),this.set(r,s)),s}};var j=64;function G(n,e=[]){return{kind:"rule",selector:n,nodes:e}}function $(n,e="",r=[]){return{kind:"at-rule",name:n,params:e,nodes:r}}function M(n,e=[]){return n.charCodeAt(0)===j?x(n,e):G(n,e)}function _(n,e,r=!1){return{kind:"declaration",property:n,value:e,important:r}}function F(n){return{kind:"comment",value:n}}function oe(n,e){return{kind:"context",context:n,nodes:e}}function ae(n){return{kind:"at-root",nodes:n}}function b(n,e,r=[],s={}){for(let t=0;t<n.length;t++){let l=n[t],o=r[r.length-1]??null;if(l.kind==="context"){if(b(l.nodes,e,r,{...s,...l.context})===2)return 2;continue}r.push(l);let u=!1,a=0,i=e(l,{parent:o,context:s,path:r,replaceWith(f){u=!0,Array.isArray(f)?f.length===0?(n.splice(t,1),a=0):f.length===1?(n[t]=f[0],a=1):(n.splice(t,1,...f),a=f.length):(n[t]=f,a=1)}})??0;if(r.pop(),u){i===0?t--:t+=a-1;continue}if(i===2)return 2;if(i!==1&&"nodes"in l){r.push(l);let f=b(l.nodes,e,r,s);if(r.pop(),f===2)return 2}}}function W(n,e,r=[],s={}){for(let t=0;t<n.length;t++){let l=n[t],o=r[r.length-1]??null;if(l.kind==="rule"||l.kind==="at-rule")r.push(l),W(l.nodes,e,r,s),r.pop();else if(l.kind==="context"){W(l.nodes,e,r,{...s,...l.context});continue}r.push(l),e(l,{parent:o,context:s,path:r,replaceWith(u){Array.isArray(u)?u.length===0?n.splice(t,1):u.length===1?n[t]=u[0]:n.splice(t,1,...u):n[t]=u,t+=u.length-1}}),r.pop()}}function fe(n,e){let r=[],s=new Set,t=new N(()=>new Set),l=new Set,o=new Set;function u(i,f,h={},d=0){if(i.kind==="declaration"){if(i.property==="--tw-sort"||i.value===void 0||i.value===null)return;if(h.theme&&i.property[0]==="-"&&i.property[1]==="-"&&t.get(f).add(i)Line truncated
`;else if(s.kind==="rule"){l+=`${o}${s.selector} {
`;for(let u of s.nodes)l+=e(u,t+1);l+=`${o}}
`}else if(s.kind==="at-rule"){if(s.nodes.length===0)return`${o}${s.name} ${s.params};
`;l+=`${o}${s.name}${s.params?` ${s.params} `:" "}{
`;for(let u of s.nodes)l+=e(u,t+1);l+=`${o}}
`}else if(s.kind==="comment")l+=`${o}/*${s.value}*/
`;else if(s.kind==="context"||s.kind==="at-root")return"";return l}let r="";for(let s of n){let t=e(s);t!==""&&(r+=t)}return r}var y=92,C=47,k=42,H=34,z=39,Q=58,E=59,m=10,v=32,S=9,P=123,T=125,K=40,B=41,Y=91,q=93,V=45,w=64,X=33;function de(n){n=n.replaceAll(`\r
`,`
`);let e=[],r=[],s=[],t=null,l=null,o="",u="",a;for(let i=0;i<n.length;i++){let f=n.charCodeAt(i);if(f===y)o+=n.slice(i,i+2),i+=1;else if(f===C&&n.charCodeAt(i+1)===k){let h=i;for(let c=i+2;c<n.length;c++)if(a=n.charCodeAt(c),a===y)c+=1;else if(a===k&&n.charCodeAt(c+1)===C){i=c+1;break}let d=n.slice(h,i+1);d.charCodeAt(2)===X&&r.push(F(d.slice(2,-2)))}else if(f===z||f===H){let h=i;for(let d=i+1;d<n.length;d++)if(a=n.charCodeAt(d),a===y)d+=1;else if(a===f){i=d;break}else{if(a===E&&n.charCodeAt(d+1)===m)throw new Error(`Unterminated string: ${n.slice(h,d+1)+String.fromCharCode(f)}`);if(a===m)throw new Error(`Unterminated string: ${n.slice(h,d)+String.fromCharCode(f)}`)}o+=n.slice(h,i+1)}else{if((f===v||f===m||f===S)&&(a=n.charCodeAt(i+1))&&(a===v||a===m||a===S))continue;if(f===m){if(o.length===0)continue;a=o.charCodeAt(o.length-1),a!==v&&a!==m&&a!==S&&(o+=" ")}else if(f===V&&n.charCodeAt(i+1)===V&&o.length===0){let h="",d=i,c=-1;for(let g=i+2;g<n.length;g++)if(a=n.charCodeAt(g),a===y)g+=1;else if(a===C&&n.charCodeAt(g+1)===k){for(let A=g+2;A<n.length;A++)if(a=n.charCodeAt(A),a===y)A+=1;else if(a===k&&n.charCodeAt(A+1)===C){g=A+1;break}}else if(c===-1&&a===Q)c=o.length+g-d;else if(a===E&&h.length===0){o+=n.slice(d,g),i=g;break}else if(a===K)h+=")";else if(a===Y)h+="]";else if(a===P)h+="}";else if((a===T||n.length-1===g)&&h.length===0){i=g-1,o+=n.slice(d,g);break}else(a===B||a===q||a===T)&&h.length>0&&n[g]===h[h.length-1]&&(h=h.slice(0,-1));let p=O(o,c);if(!p)throw new Error("Invalid custom property, expected a value");t?t.nodes.push(p):e.push(p),o=""}else if(f===E&&o.charCodeAt(0)===w)l=x(o),t?t.nodes.push(l):e.push(l),o="",l=null;else if(f===E&&u[u.length-1]!==")"){let h=O(o);if(!h)throw o.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${o.trim()}\``);t?t.nodes.push(h):e.push(h),o=""}else if(f===P&&u[u.length-1]!==")")u+="}",l=M(o.trim()),t&&t.nodes.push(l),s.push(t),t=l,o="",l=null;else if(f===T&&u[u.length-1]!==")"){if(u==="")throw new Error("Missing opening {");if(u=u.slice(0,-1),o.length>0)if(o.charCodeAt(0)===w)l=x(o),t?t.nodes.push(l):e.push(l),o="",l=null;else{let d=o.indexOf(":");if(t){let c=O(o,d);if(!c)throw new Error(`Invalid declaration: \`${o.trim()}\``);t.nodes.push(c)}}let h=s.pop()??null;h===null&&t&&e.push(t),t=h,o="",l=null}else if(f===K)u+=")",o+="(";else if(f===B){if(u[u.length-1]!==")")throw new Error("Missing opening (");u=u.slice(0,-1),o+=")"}else{if(o.length===0&&(f===v||f===m||f===S))continue;o+=String.fromCharCode(f)}}}if(o.charCodeAt(0)===w&&e.push(x(o)),u.length>0&&t){if(t.kind==="rule")throw new Error(`Missing closing } at ${t.selector}`);if(t.kind==="at-rule")throw new Error(`Missing closing } at ${t.name} ${t.params}`)}return r.length>0?r.concat(e):e}function x(n,e=[]){for(let r=5;r<n.length;r++){let s=n.charCodeAt(r);if(s===v||s===K){let t=n.slice(0,r).trim(),l=n.slice(r).trim();return $(t,l,e)}}return $(n.trim(),"",e)}function O(n,e=n.indexOf(":")){if(e===-1)return null;let r=n.indexOf("!important",e+1);return _(n.slice(0,e).trim(),n.slice(e+1,r===-1?n.length:r).trim(),r!==-1)}export{de as a,I as b,R as c,L as d,N as e,G as f,$ as g,M as h,_ as i,F as j,oe as k,ae as l,b as m,W as n,fe as o,ue as p};
+1
View File
@@ -0,0 +1 @@
import{a as v}from"./chunk-AZANAYY2.mjs";var U=new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","transparent","currentcolor","canvas","canvastext","linktext","visitedtext","activetext","buttonface","buttontext","buttonborder","field","fieldtext","highlight","highlighttext","selecteditem","selecteditemtext","mark","marktext","graytext","accentcolor","accentcolortext"]),O=/^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix)\(/i;function S(e){return e.charCodeAt(0)===35||O.test(e)||U.has(e.toLowerCase())}var k=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"],h=["anchor-size"],A=new RegExp(`(${h.join("|")})\\(`,"g");function b(e){return e.indexOf("(")!==-1&&k.some(r=>e.includes(`${r}(`))}function ie(e){if(!k.some(n=>e.includes(n)))return e;let r=!1;h.some(n=>e.includes(n))&&(A.lastIndex=0,e=e.replace(A,(n,o)=>(r=!0,`$${h.indexOf(o)}$(`)));let t="",i=[];for(let n=0;n<e.length;n++){let o=e[n];if(o==="("){t+=o;let m=n;for(let c=n-1;c>=0;c--){let x=e.charCodeAt(c);if(x>=48&&x<=57)m=c;else if(x>=97&&x<=122)m=c;else break}let a=e.slice(m,n);if(k.includes(a)){i.unshift(!0);continue}else if(i[0]&&a===""){i.unshift(!0);continue}i.unshift(!1);continue}else if(o===")")t+=o,i.shift();else if(o===","&&i[0]){t+=", ";continue}else{if(o===" "&&i[0]&&t[t.length-1]===" ")continue;if((o==="+"||o==="*"||o==="/"||o==="-")&&i[0]){let m=t.trimEnd(),a=m[m.length-1];if(a==="+"||a==="*"||a==="/"||a==="-"){t+=o;continue}else if(a==="("||a===","){t+=o;continue}else e[n-1]===" "?t+=`${o} `:t+=` ${o} `}else if(i[0]&&e.startsWith("to-zero",n)){let m=n;n+=7,t+=e.slice(m,n+1)}else t+=o}}return r?t.replace(/\$(\d+)\$/g,(n,o)=>h[o]??n):t}var y=new Uint8Array(256);function u(e,r){let t=0,i=[],n=0,o=e.length,m=r.charCodeAt(0);for(let a=0;a<o;a++){let c=e.charCodeAt(a);if(t===0&&c===m){i.push(e.slice(n,a)),n=a+1;continue}switch(c){case 92:a+=1;break;case 39:case 34:for(;++a<o;){let x=e.charCodeAt(a);if(x===92){a+=1;continue}if(x===c)break}break;case 40:y[t]=41,t++;break;case 91:y[t]=93,t++;break;case 123:y[t]=125,t++;break;case 93:case 125:case 41:t>0&&c===y[t-1]&&t--;break}}return i.push(e.slice(n)),i}var R={color:S,length:C,percentage:E,ratio:j,number:M,integer:p,url:z,position:Q,"bg-size":X,"line-width":D,image:$,"family-name":P,"generic-name":H,"absolute-size":q,"relative-size":B,angle:ee,vector:re};function pe(e,r){if(e.startsWith("var("))return null;for(let t of r)if(R[t]?.(e))return t;return null}var _=/^url\(.*\)$/;function z(e){return _.test(e)}function D(e){return e==="thin"||e==="medium"||e==="thick"}var I=/^(?:element|image|cross-fade|image-set)\(/,F=/^(repeating-)?(conic|linear|radial)-gradient\(/;function $(e){let r=0;for(let t of u(e,","))if(!t.startsWith("var(")){if(z(t)){r+=1;continue}if(F.test(t)){r+=1;continue}if(I.test(t)){r+=1;continue}return!1}return r>0}function H(e){return e==="serif"||e==="sans-serif"||e==="monospace"||e==="cursive"||e==="fantasy"||e==="system-ui"||e==="ui-serif"||e==="ui-sans-serif"||e==="ui-monospace"||e==="ui-rounded"||e==="math"||e==="emoji"||e==="fangsong"}function P(e){let r=0;for(let t of u(e,","Line truncated
+295
View File
@@ -0,0 +1,295 @@
declare const _default: {
inherit: string;
current: string;
transparent: string;
black: string;
white: string;
slate: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
gray: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
zinc: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
neutral: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
stone: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
red: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
orange: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
amber: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
yellow: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
lime: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
green: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
emerald: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
teal: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
cyan: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
sky: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
blue: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
indigo: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
violet: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
purple: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
fuchsia: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
pink: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
rose: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
};
export { _default as _ };
+295
View File
@@ -0,0 +1,295 @@
declare const _default: {
inherit: string;
current: string;
transparent: string;
black: string;
white: string;
slate: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
gray: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
zinc: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
neutral: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
stone: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
red: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
orange: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
amber: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
yellow: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
lime: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
green: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
emerald: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
teal: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
cyan: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
sky: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
blue: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
indigo: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
violet: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
purple: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
fuchsia: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
pink: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
rose: {
'50': string;
'100': string;
'200': string;
'300': string;
'400': string;
'500': string;
'600': string;
'700': string;
'800': string;
'900': string;
'950': string;
};
};
export { _default as default };
+5
View File
@@ -0,0 +1,5 @@
import { _ as _default } from './colors-b_6i0Oi7.js';
export { _default as default };
+1
View File
@@ -0,0 +1 @@
"use strict";var l={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(0.984 0.003 247.858)",100:"oklch(0.968 0.007 247.896)",200:"oklch(0.929 0.013 255.508)",300:"oklch(0.869 0.022 252.894)",400:"oklch(0.704 0.04 256.788)",500:"oklch(0.554 0.046 257.417)",600:"oklch(0.446 0.043 257.281)",700:"oklch(0.372 0.044 257.287)",800:"oklch(0.279 0.041 260.031)",900:"oklch(0.208 0.042 265.755)",950:"oklch(0.129 0.042 264.695)"},gray:{50:"oklch(0.985 0.002 247.839)",100:"oklch(0.967 0.003 264.542)",200:"oklch(0.928 0.006 264.531)",300:"oklch(0.872 0.01 258.338)",400:"oklch(0.707 0.022 261.325)",500:"oklch(0.551 0.027 264.364)",600:"oklch(0.446 0.03 256.802)",700:"oklch(0.373 0.034 259.733)",800:"oklch(0.278 0.033 256.848)",900:"oklch(0.21 0.034 264.665)",950:"oklch(0.13 0.028 261.692)"},zinc:{50:"oklch(0.985 0 0)",100:"oklch(0.967 0.001 286.375)",200:"oklch(0.92 0.004 286.32)",300:"oklch(0.871 0.006 286.286)",400:"oklch(0.705 0.015 286.067)",500:"oklch(0.552 0.016 285.938)",600:"oklch(0.442 0.017 285.786)",700:"oklch(0.37 0.013 285.805)",800:"oklch(0.274 0.006 286.033)",900:"oklch(0.21 0.006 285.885)",950:"oklch(0.141 0.005 285.823)"},neutral:{50:"oklch(0.985 0 0)",100:"oklch(0.97 0 0)",200:"oklch(0.922 0 0)",300:"oklch(0.87 0 0)",400:"oklch(0.708 0 0)",500:"oklch(0.556 0 0)",600:"oklch(0.439 0 0)",700:"oklch(0.371 0 0)",800:"oklch(0.269 0 0)",900:"oklch(0.205 0 0)",950:"oklch(0.145 0 0)"},stone:{50:"oklch(0.985 0.001 106.423)",100:"oklch(0.97 0.001 106.424)",200:"oklch(0.923 0.003 48.717)",300:"oklch(0.869 0.005 56.366)",400:"oklch(0.709 0.01 56.259)",500:"oklch(0.553 0.013 58.071)",600:"oklch(0.444 0.011 73.639)",700:"oklch(0.374 0.01 67.558)",800:"oklch(0.268 0.007 34.298)",900:"oklch(0.216 0.006 56.043)",950:"oklch(0.147 0.004 49.25)"},red:{50:"oklch(0.971 0.013 17.38)",100:"oklch(0.936 0.032 17.717)",200:"oklch(0.885 0.062 18.334)",300:"oklch(0.808 0.114 19.571)",400:"oklch(0.704 0.191 22.216)",500:"oklch(0.637 0.237 25.331)",600:"oklch(0.577 0.245 27.325)",700:"oklch(0.505 0.213 27.518)",800:"oklch(0.444 0.177 26.899)",900:"oklch(0.396 0.141 25.723)",950:"oklch(0.258 0.092 26.042)"},orange:{50:"oklch(0.98 0.016 73.684)",100:"oklch(0.954 0.038 75.164)",200:"oklch(0.901 0.076 70.697)",300:"oklch(0.837 0.128 66.29)",400:"oklch(0.75 0.183 55.934)",500:"oklch(0.705 0.213 47.604)",600:"oklch(0.646 0.222 41.116)",700:"oklch(0.553 0.195 38.402)",800:"oklch(0.47 0.157 37.304)",900:"oklch(0.408 0.123 38.172)",950:"oklch(0.266 0.079 36.259)"},amber:{50:"oklch(0.987 0.022 95.277)",100:"oklch(0.962 0.059 95.617)",200:"oklch(0.924 0.12 95.746)",300:"oklch(0.879 0.169 91.605)",400:"oklch(0.828 0.189 84.429)",500:"oklch(0.769 0.188 70.08)",600:"oklch(0.666 0.179 58.318)",700:"oklch(0.555 0.163 48.998)",800:"oklch(0.473 0.137 46.201)",900:"oklch(0.414 0.112 45.904)",950:"oklch(0.279 0.077 45.635)"},yellow:{50:"oklch(0.987 0.026 102.212)",100:"oklch(0.973 0.071 103.193)",200:"oklch(0.945 0.129 101.54)",300:"oklch(0.905 0.182 98.111)",400:"oklch(0.852 0.199 91.936)",500:"oklch(0.795 0.184 86.047)",600:"oklch(0.681 0.162 75.834)",700:"oklch(0.554 0.135 66.442)",800:"oklch(0.476 0.114 61.907)",900:"oklch(0.421 0.095 57.708)",950:"oklch(0.286 0.066 53.813)"},lime:{50:"oklch(0.986 0.031 120.757)",100:"oklch(0.967 0.067 122.328)",200:"oklch(0.938 0.127 124.321)",300:"oklch(0.897 0.196 126.665)",400:"oklch(0.841 0.238 128.85)",500:"oklch(0.768 0.233 130.85)",600:"oklch(0.648 0.2 131.684)",700:"oklch(0.532 0.157 131.589)",800:"oklch(0.453 0.124 130.933)",900:"oklch(0.405 0.101 131.063)",950:"oklch(0.274 0.072 132.109)"},green:{50:"oklch(0.982 0.018 155.826)",100:"oklch(0.962 0.044 156.743)",200:"oklch(0.925 0.084 155.995)",300:"oklch(0.871 0.15 154.449)",400:"oklch(0.792 0.209 151.711)",500:"oklch(0.723 0.219 149.579)",600:"oklch(0.627 0.194 149.214)",700:"oklch(0.527 0.154 150.069)",800:"oklch(0.448 0.119 151.328)",900:"oklch(0.393 0.095 152.535)",950:"oklch(0.266 0.065 152.934)"},emerald:{50:"oklch(0.979 0.021 166.113)",100:"oklch(0.95 0.052 163.051)",200:"oklch(0.905 0.093 164.15)",300:"oklch(0.845 0.143 164.978)",400:"oklch(0.765 0.177 163.223)",500:"oklch(0.696 0.17 162.48)",600:"oklch(0.596 0.145 163.225)",700:"oklch(0.508 0.118 165.612)",800:"oklch(0.432 0.095 166.913)",900:"oklch(0.378 0.077 168.94)",950:"oklch(0.262 0.051 172.552)"},teal:{50:"oklch(0.984 0.014 180.72)",100:"oklch(0.953 0.051 180.801)",200:"oklch(0.91 0.096 180.426)",300:"oklch(0.855 0.138 181.071)",400:"oklch(0.777 0.152 181.912)",500:"oklch(0.704 0.14 182.503)",600:"oklch(0.6 0.118 184.704)",700:"oklch(0.511 0.096 186.391)",800:"oklch(0.437 0.078 188.216)",900:"oklch(0.386 0.063 188.416)",950:"oklch(0.277 0.046 192.524)"},cyan:{50:"oklch(0.984 0.019 200.873)",100:"oklch(0.956 0.045 203.388)",200:"oklch(0.917 0.08 205.041)",300:"oklch(0.865 0.127 207.078)",400:"oklch(0.789 0.154 211.53)",500:"oklch(0.715 0.143 215.221)",600:"oklch(0.609 0.126 221.723)",700:"oklch(0.52 0.105 223.128)",800:"oklch(0.45 0.Line truncated
+1
View File
@@ -0,0 +1 @@
import{a}from"./chunk-AZANAYY2.mjs";export{a as default};
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+1
View File
@@ -0,0 +1 @@
"use strict";var C=["anchor-size"],N=new RegExp(`(${C.join("|")})\\(`,"g");var m=new Uint8Array(256);function k(e,c){let t=0,g=[],u=0,d=e.length,E=c.charCodeAt(0);for(let n=0;n<d;n++){let h=e.charCodeAt(n);if(t===0&&h===E){g.push(e.slice(u,n)),u=n+1;continue}switch(h){case 92:n+=1;break;case 39:case 34:for(;++n<d;){let x=e.charCodeAt(n);if(x===92){n+=1;continue}if(x===h)break}break;case 40:m[t]=41,t++;break;case 91:m[t]=93,t++;break;case 123:m[t]=125,t++;break;case 93:case 125:case 41:t>0&&h===m[t-1]&&t--;break}}return g.push(e.slice(u)),g}var l=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,I=new RegExp(`^${l.source}$`);var F=new RegExp(`^${l.source}%$`);var $=new RegExp(`^${l.source}s*/s*${l.source}$`);var v=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],H=new RegExp(`^${l.source}(${v.join("|")})$`);var S=["deg","rad","grad","turn"],P=new RegExp(`^${l.source}(${S.join("|")})$`);var q=new RegExp(`^${l.source} +${l.source} +${l.source}$`);function i(e){let c=Number(e);return Number.isInteger(c)&&c>=0&&String(c)===String(e)}var f={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(0.984 0.003 247.858)",100:"oklch(0.968 0.007 247.896)",200:"oklch(0.929 0.013 255.508)",300:"oklch(0.869 0.022 252.894)",400:"oklch(0.704 0.04 256.788)",500:"oklch(0.554 0.046 257.417)",600:"oklch(0.446 0.043 257.281)",700:"oklch(0.372 0.044 257.287)",800:"oklch(0.279 0.041 260.031)",900:"oklch(0.208 0.042 265.755)",950:"oklch(0.129 0.042 264.695)"},gray:{50:"oklch(0.985 0.002 247.839)",100:"oklch(0.967 0.003 264.542)",200:"oklch(0.928 0.006 264.531)",300:"oklch(0.872 0.01 258.338)",400:"oklch(0.707 0.022 261.325)",500:"oklch(0.551 0.027 264.364)",600:"oklch(0.446 0.03 256.802)",700:"oklch(0.373 0.034 259.733)",800:"oklch(0.278 0.033 256.848)",900:"oklch(0.21 0.034 264.665)",950:"oklch(0.13 0.028 261.692)"},zinc:{50:"oklch(0.985 0 0)",100:"oklch(0.967 0.001 286.375)",200:"oklch(0.92 0.004 286.32)",300:"oklch(0.871 0.006 286.286)",400:"oklch(0.705 0.015 286.067)",500:"oklch(0.552 0.016 285.938)",600:"oklch(0.442 0.017 285.786)",700:"oklch(0.37 0.013 285.805)",800:"oklch(0.274 0.006 286.033)",900:"oklch(0.21 0.006 285.885)",950:"oklch(0.141 0.005 285.823)"},neutral:{50:"oklch(0.985 0 0)",100:"oklch(0.97 0 0)",200:"oklch(0.922 0 0)",300:"oklch(0.87 0 0)",400:"oklch(0.708 0 0)",500:"oklch(0.556 0 0)",600:"oklch(0.439 0 0)",700:"oklch(0.371 0 0)",800:"oklch(0.269 0 0)",900:"oklch(0.205 0 0)",950:"oklch(0.145 0 0)"},stone:{50:"oklch(0.985 0.001 106.423)",100:"oklch(0.97 0.001 106.424)",200:"oklch(0.923 0.003 48.717)",300:"oklch(0.869 0.005 56.366)",400:"oklch(0.709 0.01 56.259)",500:"oklch(0.553 0.013 58.071)",600:"oklch(0.444 0.011 73.639)",700:"oklch(0.374 0.01 67.558)",800:"oklch(0.268 0.007 34.298)",900:"oklch(0.216 0.006 56.043)",950:"oklch(0.147 0.004 49.25)"},red:{50:"oklch(0.971 0.013 17.38)",100:"oklch(0.936 0.032 17.717)",200:"oklch(0.885 0.062 18.334)",300:"oklch(0.808 0.114 19.571)",400:"oklch(0.704 0.191 22.216)",500:"oklch(0.637 0.237 25.331)",600:"oklch(0.577 0.245 27.325)",700:"oklch(0.505 0.213 27.518)",800:"oklch(0.444 0.177 26.899)",900:"oklch(0.396 0.141 25.723)",950:"oklch(0.258 0.092 26.042)"},orange:{50:"oklch(0.98 0.016 73.684)",100:"oklch(0.954 0.038 75.164)",200:"oklch(0.901 0.076 70.697)",300:"oklch(0.837 0.128 66.29)",400:"oklch(0.75 0.183 55.934)",500:"oklch(0.705 0.213 47.604)",600:"oklch(0.646 0.222 41.116)",700:"oklch(0.553 0.195 38.402)",800:"oklch(0.47 0.157 37.304)",900:"oklch(0.408 0.123 38.172)",950:"oklch(0.266 0.079 36.259)"},amber:{50:"oklch(0.987 0.022 95.277)",100:"oklch(0.962 0.059 95.617)",200:"oklch(0.924 0.12 95.746)",300:"oklch(0.879 0.169 91.605)",400:"oklch(0.828 0.189 84.429)",500:"oklch(0.769 0.188 70.08)",600:"oklch(0.666 0.179 58.318)",700:"oklch(0.555 0.163 48.998)",800:"oklch(0.473 0.137 46.201)",900:"oklch(0.414 0.112 45.904)",950:"oklch(0.279 0.077 45.635)"},yellow:{50:"oklch(0.987 0.026 102.212)",100:"oklch(0.973 0.071 103.193)",200:"oklch(0.945 0.129 101.54)",300:"oklch(0.905 0.182 98.111)",400:"oklch(0.852 0.199 91.936)",500:"oklch(0.795 0.184 86.047)",600:"oklch(0.681 0.162 75.834)",700:"oklch(0.554 0.135 66.442)",800:"oklch(0.476 0.114 61.907)",900:"oklch(0.421 0.095 57.708)",950:"oklch(0.286 0.066 53.813)"},lime:{50:"oklch(0.986 0.031 120.757)",100:"oklch(0.967 0.067 122.328)",200:"oklch(0.938 0.127 124.321)",300:"oklch(0.897 0.196 126.665)",400:"oklch(0.841 0.238 128.85)",500:"oklch(0.768 0.233 130.85)",600:"oklch(0.648 0.2 131.684)",700:"oklch(0.532 0.157 131.589)",800:"oklch(0.453 0.124 130.933)",900:"oklch(0.405 0.101 131.063)",950:"oklch(0.274 0.072 132.109)"},green:{50:"oklch(0.982 0.018 155.826)",100:"oklch(0.962 0.044 156.743)",200:"oklch(0.925 0.084 155.995)",300:"oklch(0.871 0.15 154.449)",400:"oklch(0.792 0.209 151.711)",500:"oklch(0.723 0.219 149.579)",600:"oklch(0.627 0.194 149.214)",700:Line truncated
+1
View File
@@ -0,0 +1 @@
import{h as a}from"./chunk-V2K3XTS4.mjs";import"./chunk-AZANAYY2.mjs";export{a as default};
+6
View File
@@ -0,0 +1,6 @@
type Colors = {
[key: string | number]: string | Colors;
};
declare function flattenColorPalette(colors: Colors): Record<string, string>;
export { flattenColorPalette as default };
+6
View File
@@ -0,0 +1,6 @@
type Colors = {
[key: string | number]: string | Colors;
};
declare function flattenColorPalette(colors: Colors): Record<string, string>;
export { flattenColorPalette as default };
+1
View File
@@ -0,0 +1 @@
"use strict";function i(r){let n={};for(let[e,t]of Object.entries(r??{}))if(e!=="__CSS_VALUES__")if(typeof t=="object"&&t!==null)for(let[s,l]of Object.entries(i(t)))n[`${e}${s==="DEFAULT"?"":`-${s}`}`]=l;else n[e]=t;if("__CSS_VALUES__"in r)for(let[e,t]of Object.entries(r.__CSS_VALUES__))Number(t)&4||(n[e]=r[e]);return n}module.exports=i;
+1
View File
@@ -0,0 +1 @@
import"./chunk-N4FJXYNV.mjs";function i(r){let n={};for(let[e,t]of Object.entries(r??{}))if(e!=="__CSS_VALUES__")if(typeof t=="object"&&t!==null)for(let[o,f]of Object.entries(i(t)))n[`${e}${o==="DEFAULT"?"":`-${o}`}`]=f;else n[e]=t;if("__CSS_VALUES__"in r)for(let[e,t]of Object.entries(r.__CSS_VALUES__))Number(t)&4||(n[e]=r[e]);return n}export{i as default};
+260
View File
@@ -0,0 +1,260 @@
import { U as UserConfig, P as Plugin } from './types-BTRmm49E.mjs';
import { V as Variant, C as Candidate } from './resolve-config-QUZ9b-Gn.mjs';
import './colors.mjs';
declare const enum ThemeOptions {
NONE = 0,
INLINE = 1,
REFERENCE = 2,
DEFAULT = 4,
STATIC = 8,
USED = 16
}
declare class Theme {
#private;
private values;
private keyframes;
prefix: string | null;
constructor(values?: Map<string, {
value: string;
options: ThemeOptions;
}>, keyframes?: Set<AtRule>);
add(key: string, value: string, options?: ThemeOptions): void;
keysInNamespaces(themeKeys: Iterable<ThemeKey>): string[];
get(themeKeys: ThemeKey[]): string | null;
hasDefault(key: string): boolean;
getOptions(key: string): ThemeOptions;
entries(): IterableIterator<[string, {
value: string;
options: ThemeOptions;
}]> | [string, {
value: string;
options: ThemeOptions;
}][];
clearNamespace(namespace: string, clearOptions: ThemeOptions): void;
markUsedVariable(themeKey: string): void;
resolve(candidateValue: string | null, themeKeys: ThemeKey[]): string | null;
resolveValue(candidateValue: string | null, themeKeys: ThemeKey[]): string | null;
resolveWith(candidateValue: string, themeKeys: ThemeKey[], nestedKeys?: `--${string}`[]): [string, Record<string, string>] | null;
namespace(namespace: string): Map<string | null, string>;
addKeyframes(value: AtRule): void;
getKeyframes(): AtRule[];
}
type ThemeKey = `--${string}`;
type VariantFn<T extends Variant['kind']> = (rule: Rule, variant: Extract<Variant, {
kind: T;
}>) => null | void;
type CompareFn = (a: Variant, z: Variant) => number;
declare const enum Compounds {
Never = 0,
AtRules = 1,
StyleRules = 2
}
declare class Variants {
compareFns: Map<number, CompareFn>;
variants: Map<string, {
kind: Variant["kind"];
order: number;
applyFn: VariantFn<any>;
compoundsWith: Compounds;
compounds: Compounds;
}>;
private completions;
/**
* Registering a group of variants should result in the same sort number for
* all the variants. This is to ensure that the variants are applied in the
* correct order.
*/
private groupOrder;
/**
* Keep track of the last sort order instead of using the size of the map to
* avoid unnecessarily skipping order numbers.
*/
private lastOrder;
static(name: string, applyFn: VariantFn<'static'>, { compounds, order }?: {
compounds?: Compounds;
order?: number;
}): void;
fromAst(name: string, ast: AstNode[]): void;
functional(name: string, applyFn: VariantFn<'functional'>, { compounds, order }?: {
compounds?: Compounds;
order?: number;
}): void;
compound(name: string, compoundsWith: Compounds, applyFn: VariantFn<'compound'>, { compounds, order }?: {
compounds?: Compounds;
order?: number;
}): void;
group(fn: () => void, compareFn?: CompareFn): void;
has(name: string): boolean;
get(name: string): {
kind: Variant["kind"];
order: number;
applyFn: VariantFn<any>;
compoundsWith: Compounds;
compounds: Compounds;
} | undefined;
kind(name: string): "arbitrary" | "static" | "functional" | "compound";
compoundsWith(parent: string, child: string | Variant): boolean;
suggest(name: string, suggestions: () => string[]): void;
getCompletions(name: string): string[];
compare(a: Variant | null, z: Variant | null): number;
keys(): IterableIterator<string>;
entries(): IterableIterator<[string, {
kind: Variant["kind"];
order: number;
applyFn: VariantFn<any>;
compoundsWith: Compounds;
compounds: Compounds;
}]>;
private set;
private nextOrder;
}
declare function compileAstNodes(candidate: Candidate, designSystem: DesignSystem): {
node: AstNode;
propertySort: number[];
}[];
interface ClassMetadata {
modifiers: string[];
}
type ClassEntry = [string, ClassMetadata];
interface SelectorOptions {
modifier?: string;
value?: string;
}
interface VariantEntry {
name: string;
isArbitrary: boolean;
values: string[];
hasDash: boolean;
selectors: (options: SelectorOptions) => string[];
}
type CompileFn<T extends Candidate['kind']> = (value: Extract<Candidate, {
kind: T;
}>) => AstNode[] | undefined | null;
interface SuggestionGroup {
supportsNegative?: boolean;
values: (string | null)[];
modifiers: string[];
}
type UtilityOptions = {
types: string[];
};
type Utility = {
kind: 'static' | 'functional';
compileFn: CompileFn<any>;
options?: UtilityOptions;
};
declare class Utilities {
private utilities;
private completions;
static(name: string, compileFn: CompileFn<'static'>): void;
functional(name: string, compileFn: CompileFn<'functional'>, options?: UtilityOptions): void;
has(name: string, kind: 'static' | 'functional'): boolean;
get(name: string): Utility[];
getCompletions(name: string): SuggestionGroup[];
suggest(name: string, groups: () => SuggestionGroup[]): void;
keys(kind: 'static' | 'functional'): string[];
}
type DesignSystem = {
theme: Theme;
utilities: Utilities;
variants: Variants;
invalidCandidates: Set<string>;
important: boolean;
getClassOrder(classes: string[]): [string, bigint | null][];
getClassList(): ClassEntry[];
getVariants(): VariantEntry[];
parseCandidate(candidate: string): Readonly<Candidate>[];
parseVariant(variant: string): Readonly<Variant> | null;
compileAstNodes(candidate: Candidate): ReturnType<typeof compileAstNodes>;
getVariantOrder(): Map<Variant, number>;
resolveThemeValue(path: string): string | undefined;
trackUsedVariables(raw: string): void;
candidatesToCss(classes: string[]): (string | null)[];
};
type StyleRule = {
kind: 'rule';
selector: string;
nodes: AstNode[];
};
type AtRule = {
kind: 'at-rule';
name: string;
params: string;
nodes: AstNode[];
};
type Declaration = {
kind: 'declaration';
property: string;
value: string | undefined;
important: boolean;
};
type Comment = {
kind: 'comment';
value: string;
};
type Context = {
kind: 'context';
context: Record<string, string | boolean>;
nodes: AstNode[];
};
type AtRoot = {
kind: 'at-root';
nodes: AstNode[];
};
type Rule = StyleRule | AtRule;
type AstNode = StyleRule | AtRule | Declaration | Comment | Context | AtRoot;
type Config = UserConfig;
type CompileOptions = {
base?: string;
loadModule?: (id: string, base: string, resourceHint: 'plugin' | 'config') => Promise<{
module: Plugin | Config;
base: string;
}>;
loadStylesheet?: (id: string, base: string) => Promise<{
content: string;
base: string;
}>;
};
type Root = null | 'none' | {
base: string;
pattern: string;
};
declare const enum Features {
None = 0,
AtApply = 1,
AtImport = 2,
JsPluginCompat = 4,
ThemeFunction = 8,
Utilities = 16,
Variants = 32
}
declare function compileAst(input: AstNode[], opts?: CompileOptions): Promise<{
globs: {
base: string;
pattern: string;
}[];
root: Root;
features: Features;
build(candidates: string[]): AstNode[];
}>;
declare function compile(css: string, opts?: CompileOptions): Promise<{
globs: {
base: string;
pattern: string;
}[];
root: Root;
features: Features;
build(candidates: string[]): string;
}>;
declare function __unstable__loadDesignSystem(css: string, opts?: CompileOptions): Promise<DesignSystem>;
declare function postcssPluginWarning(): void;
export { type Config, Features, __unstable__loadDesignSystem, compile, compileAst, postcssPluginWarning as default };
+3
View File
@@ -0,0 +1,3 @@
declare function postcssPluginWarning(): void;
export { postcssPluginWarning as default };
+33
View File
@@ -0,0 +1,33 @@
"use strict";var zr=Object.defineProperty;var Lr=(t,r)=>{for(var n in r)zr(t,n,{get:r[n],enumerable:!0})};var Ye={};Lr(Ye,{Features:()=>he,__unstable__loadDesignSystem:()=>bi,compile:()=>yi,compileAst:()=>Fr,default:()=>Se});var wt="4.0.5";var we=92,Re=47,Oe=42,Wr=34,Br=39,qr=58,Ke=59,ie=10,ke=32,Pe=9,kt=123,Ze=125,et=40,xt=41,Hr=91,Gr=93,At=45,Qe=64,Jr=33;function oe(t){t=t.replaceAll(`\r
`,`
`);let r=[],n=[],e=[],i=null,u=null,a="",p="",f;for(let s=0;s<t.length;s++){let d=t.charCodeAt(s);if(d===we)a+=t.slice(s,s+2),s+=1;else if(d===Re&&t.charCodeAt(s+1)===Oe){let m=s;for(let v=s+2;v<t.length;v++)if(f=t.charCodeAt(v),f===we)v+=1;else if(f===Oe&&t.charCodeAt(v+1)===Re){s=v+1;break}let g=t.slice(m,s+1);g.charCodeAt(2)===Jr&&n.push(De(g.slice(2,-2)))}else if(d===Br||d===Wr){let m=s;for(let g=s+1;g<t.length;g++)if(f=t.charCodeAt(g),f===we)g+=1;else if(f===d){s=g;break}else{if(f===Ke&&t.charCodeAt(g+1)===ie)throw new Error(`Unterminated string: ${t.slice(m,g+1)+String.fromCharCode(d)}`);if(f===ie)throw new Error(`Unterminated string: ${t.slice(m,g)+String.fromCharCode(d)}`)}a+=t.slice(m,s+1)}else{if((d===ke||d===ie||d===Pe)&&(f=t.charCodeAt(s+1))&&(f===ke||f===ie||f===Pe))continue;if(d===ie){if(a.length===0)continue;f=a.charCodeAt(a.length-1),f!==ke&&f!==ie&&f!==Pe&&(a+=" ")}else if(d===At&&t.charCodeAt(s+1)===At&&a.length===0){let m="",g=s,v=-1;for(let y=s+2;y<t.length;y++)if(f=t.charCodeAt(y),f===we)y+=1;else if(f===Re&&t.charCodeAt(y+1)===Oe){for(let x=y+2;x<t.length;x++)if(f=t.charCodeAt(x),f===we)x+=1;else if(f===Oe&&t.charCodeAt(x+1)===Re){y=x+1;break}}else if(v===-1&&f===qr)v=a.length+y-g;else if(f===Ke&&m.length===0){a+=t.slice(g,y),s=y;break}else if(f===et)m+=")";else if(f===Hr)m+="]";else if(f===kt)m+="}";else if((f===Ze||t.length-1===y)&&m.length===0){s=y-1,a+=t.slice(g,y);break}else(f===xt||f===Gr||f===Ze)&&m.length>0&&t[y]===m[m.length-1]&&(m=m.slice(0,-1));let b=Xe(a,v);if(!b)throw new Error("Invalid custom property, expected a value");i?i.nodes.push(b):r.push(b),a=""}else if(d===Ke&&a.charCodeAt(0)===Qe)u=xe(a),i?i.nodes.push(u):r.push(u),a="",u=null;else if(d===Ke&&p[p.length-1]!==")"){let m=Xe(a);if(!m)throw a.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${a.trim()}\``);i?i.nodes.push(m):r.push(m),a=""}else if(d===kt&&p[p.length-1]!==")")p+="}",u=M(a.trim()),i&&i.nodes.push(u),e.push(i),i=u,a="",u=null;else if(d===Ze&&p[p.length-1]!==")"){if(p==="")throw new Error("Missing opening {");if(p=p.slice(0,-1),a.length>0)if(a.charCodeAt(0)===Qe)u=xe(a),i?i.nodes.push(u):r.push(u),a="",u=null;else{let g=a.indexOf(":");if(i){let v=Xe(a,g);if(!v)throw new Error(`Invalid declaration: \`${a.trim()}\``);i.nodes.push(v)}}let m=e.pop()??null;m===null&&i&&r.push(i),i=m,a="",u=null}else if(d===et)p+=")",a+="(";else if(d===xt){if(p[p.length-1]!==")")throw new Error("Missing opening (");p=p.slice(0,-1),a+=")"}else{if(a.length===0&&(d===ke||d===ie||d===Pe))continue;a+=String.fromCharCode(d)}}}if(a.charCodeAt(0)===Qe&&r.push(xe(a)),p.length>0&&i){if(i.kind==="rule")throw new Error(`Missing closing } at ${i.selector}`);if(i.kind==="at-rule")throw new Error(`Missing closing } at ${i.name} ${i.params}`)}return n.length>0?n.concat(r):r}function xe(t,r=[]){for(let n=5;n<t.length;n++){let e=t.charCodeAt(n);if(e===ke||e===et){let i=t.slice(0,n).trim(),u=t.slice(n).trim();return D(i,u,r)}}return D(t.trim(),"",r)}function Xe(t,r=t.indexOf(":")){if(r===-1)return null;let n=t.indexOf("!important",r+1);return l(t.slice(0,r).trim(),t.slice(r+1,n===-1?t.length:n).trim(),n!==-1)}function de(t){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");var r=String(t),n=r.length,e=-1,i,u="",a=r.charCodeAt(0);if(n==1&&a==45)return"\\"+r;for(;++e<n;){if(i=r.charCodeAt(e),i==0){u+="\uFFFD";continue}if(i>=1&&i<=31||i==127||e==0&&i>=48&&i<=57||e==1&&i>=48&&i<=57&&a==45){u+="\\"+i.toString(16)+" ";continue}if(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){u+=r.charAt(e);continue}u+="\\"+r.charAt(e)}return u}function le(t){return t.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,r=>r.length>2?String.fromCodePoint(Number.parseInt(r.slice(1).trim(),16)):r[1])}var $t=new Map([["--font",["--font-weight","--font-size"]],["--inset",["--inset-shadow","--inset-ring"]],["--text",["--text-color","--text-underline-offset","--text-indent","--text-decoration-thickness","--text-decoration-color"]]]);function Ct(t,r){return($t.get(r)??[]).some(n=>t===n||t.startsWith(`${n}-`))}var _e=class{constructor(r=new Map,n=new Set([])){this.values=r;this.keyframes=n}prefix=null;add(r,n,e=0){if(r.endsWith("-*")){if(n!=="initial")throw new Error(`Invalid theme value \`${n}\` for namespace \`${r}\``);r==="--*"?this.values.clear():this.clearNamespace(r.slice(0,-2),0)}if(e&4){let i=this.values.get(r);if(i&&!(i.options&4))return}n==="initial"?this.values.delete(r):this.values.set(r,{value:n,options:e})}keysInNamespaces(r){let n=[];for(let e of r){let i=`${e}-`;for(let u of this.values.keys())u.startsWith(i)&&u.indexOf("--",2)===-1&&(Ct(u,e)||n.push(u.slice(i.length)))}return n}get(r){for(let n of r){let e=this.values.get(n);if(e)return e.value}return null}hasDefault(r){return(this.getOptions(r)&4)===4}getOptions(r){return r=le(this.#n(r)),this.values.get(r)?.options??0}entries(){return this.prefix?Array.from(this.values,r=>(r[0]=this.#r(r[0]),r)):this.values.entries()}#r(r){return tLine truncated
`;else if(e.kind==="rule"){u+=`${a}${e.selector} {
`;for(let p of e.nodes)u+=r(p,i+1);u+=`${a}}
`}else if(e.kind==="at-rule"){if(e.nodes.length===0)return`${a}${e.name} ${e.params};
`;u+=`${a}${e.name}${e.params?` ${e.params} `:" "}{
`;for(let p of e.nodes)u+=r(p,i+1);u+=`${a}}
`}else if(e.kind==="comment")u+=`${a}/*${e.value}*/
`;else if(e.kind==="context"||e.kind==="at-root")return"";return u}let n="";for(let e of t){let i=r(e);i!==""&&(n+=i)}return n}function nt(t){return{kind:"word",value:t}}function Zr(t,r){return{kind:"function",value:t,nodes:r}}function Qr(t){return{kind:"separator",value:t}}function X(t,r,n=null){for(let e=0;e<t.length;e++){let i=t[e],u=!1,a=0,p=r(i,{parent:n,replaceWith(f){u=!0,Array.isArray(f)?f.length===0?(t.splice(e,1),a=0):f.length===1?(t[e]=f[0],a=1):(t.splice(e,1,...f),a=f.length):t[e]=f}})??0;if(u){p===0?e--:e+=a-1;continue}if(p===2)return 2;if(p!==1&&i.kind==="function"&&X(i.nodes,r,i)===2)return 2}}function q(t){let r="";for(let n of t)switch(n.kind){case"word":case"separator":{r+=n.value;break}case"function":r+=n.value+"("+q(n.nodes)+")"}return r}var Nt=92,Xr=41,Vt=58,Tt=44,en=34,St=61,Et=62,Rt=60,Ot=10,tn=40,rn=39,Kt=47,Pt=32,Dt=9;function L(t){t=t.replaceAll(`\r
`,`
`);let r=[],n=[],e=null,i="",u;for(let a=0;a<t.length;a++){let p=t.charCodeAt(a);switch(p){case Nt:{i+=t[a]+t[a+1],a++;break}case Vt:case Tt:case St:case Et:case Rt:case Ot:case Kt:case Pt:case Dt:{if(i.length>0){let m=nt(i);e?e.nodes.push(m):r.push(m),i=""}let f=a,s=a+1;for(;s<t.length&&(u=t.charCodeAt(s),!(u!==Vt&&u!==Tt&&u!==St&&u!==Et&&u!==Rt&&u!==Ot&&u!==Kt&&u!==Pt&&u!==Dt));s++);a=s-1;let d=Qr(t.slice(f,s));e?e.nodes.push(d):r.push(d);break}case rn:case en:{let f=a;for(let s=a+1;s<t.length;s++)if(u=t.charCodeAt(s),u===Nt)s+=1;else if(u===p){a=s;break}i+=t.slice(f,a+1);break}case tn:{let f=Zr(i,[]);i="",e?e.nodes.push(f):r.push(f),n.push(f),e=f;break}case Xr:{let f=n.pop();if(i.length>0){let s=nt(i);f.nodes.push(s),i=""}n.length>0?e=n[n.length-1]:e=null;break}default:i+=String.fromCharCode(p)}}return i.length>0&&r.push(nt(i)),r}var it=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"],je=["anchor-size"],_t=new RegExp(`(${je.join("|")})\\(`,"g");function Ce(t){return t.indexOf("(")!==-1&&it.some(r=>t.includes(`${r}(`))}function Ut(t){if(!it.some(i=>t.includes(i)))return t;let r=!1;je.some(i=>t.includes(i))&&(_t.lastIndex=0,t=t.replace(_t,(i,u)=>(r=!0,`$${je.indexOf(u)}$(`)));let n="",e=[];for(let i=0;i<t.length;i++){let u=t[i];if(u==="("){n+=u;let a=i;for(let f=i-1;f>=0;f--){let s=t.charCodeAt(f);if(s>=48&&s<=57)a=f;else if(s>=97&&s<=122)a=f;else break}let p=t.slice(a,i);if(it.includes(p)){e.unshift(!0);continue}else if(e[0]&&p===""){e.unshift(!0);continue}e.unshift(!1);continue}else if(u===")")n+=u,e.shift();else if(u===","&&e[0]){n+=", ";continue}else{if(u===" "&&e[0]&&n[n.length-1]===" ")continue;if((u==="+"||u==="*"||u==="/"||u==="-")&&e[0]){let a=n.trimEnd(),p=a[a.length-1];if(p==="+"||p==="*"||p==="/"||p==="-"){n+=u;continue}else if(p==="("||p===","){n+=u;continue}else t[i-1]===" "?n+=`${u} `:n+=` ${u} `}else if(e[0]&&t.startsWith("to-zero",i)){let a=i;i+=7,n+=t.slice(a,i+1)}else n+=u}}return r?n.replace(/\$(\d+)\$/g,(i,u)=>je[u]??i):n}function te(t){if(t.indexOf("(")===-1)return pe(t);let r=L(t);return ot(r),t=q(r),t=Ut(t),t}function pe(t,r=!1){let n="";for(let e=0;e<t.length;e++){let i=t[e];i==="\\"&&t[e+1]==="_"?(n+="_",e+=1):i==="_"&&!r?n+=" ":n+=i}return n}function ot(t){for(let r of t)switch(r.kind){case"function":{if(r.value==="url"||r.value.endsWith("_url")){r.value=pe(r.value);break}if(r.value==="var"||r.value.endsWith("_var")||r.value==="theme"||r.value.endsWith("_theme")){r.value=pe(r.value);for(let n=0;n<r.nodes.length;n++){if(n==0&&r.nodes[n].kind==="word"){r.nodes[n].value=pe(r.nodes[n].value,!0);continue}ot([r.nodes[n]])}break}r.value=pe(r.value),ot(r.nodes);break}case"separator":case"word":{r.value=pe(r.value);break}default:nn(r)}}function nn(t){throw new Error(`Unexpected value: ${t}`)}var Ie=new Uint8Array(256);function P(t,r){let n=0,e=[],i=0,u=t.length,a=r.charCodeAt(0);for(let p=0;p<u;p++){let f=t.charCodeAt(p);if(n===0&&f===a){e.push(t.slice(i,p)),i=p+1;continue}switch(f){case 92:p+=1;break;case 39:case 34:for(;++p<u;){let s=t.charCodeAt(p);if(s===92){p+=1;continue}if(s===f)break}break;case 40:Ie[n]=41,n++;break;case 91:Ie[n]=93,n++;break;case 123:Ie[n]=125,n++;break;case 93:case 125:case 41:n>0&&f===Ie[n-1]&&n--;break}}return e.push(t.slice(i)),e}var on=58,jt=45,It=97,Ft=122;function*zt(t,r){let n=P(t,":");if(r.theme.prefix){if(n.length===1||n[0]!==r.theme.prefix)return null;n.shift()}let e=n.pop(),i=[];for(let m=n.length-1;m>=0;--m){let g=r.parseVariant(n[m]);if(g===null)return;i.push(g)}let u=!1;e[e.length-1]==="!"?(u=!0,e=e.slice(0,-1)):e[0]==="!"&&(u=!0,e=e.slice(1)),r.utilities.has(e,"static")&&!e.includes("[")&&(yield{kind:"static",root:e,variants:i,important:u,raw:t});let[a,p=null,f]=P(e,"/");if(f)return;let s=p===null?null:lt(p);if(p!==null&&s===null)return;if(a[0]==="["){if(a[a.length-1]!=="]")return;let m=a.charCodeAt(1);if(m!==jt&&!(m>=It&&m<=Ft))return;a=a.slice(1,-1);let g=a.indexOf(":");if(g===-1||g===0||g===a.length-1)return;let v=a.slice(0,g),b=te(a.slice(g+1));yield{kind:"arbitrary",property:v,value:b,modifier:s,variants:i,important:u,raw:t};return}let d;if(a[a.length-1]==="]"){let m=a.indexOf("-[");if(m===-1)return;let g=a.slice(0,m);if(!r.utilities.has(g,"functional"))return;let v=a.slice(m+1);d=[[g,v]]}else if(a[a.length-1]===")"){let m=a.indexOf("-(");if(m===-1)return;let g=a.slice(0,m);if(!r.utilities.has(g,"functional"))return;let v=a.slice(m+2,-1),b=P(v,":"),y=null;if(b.length===2&&(y=b[0],v=b[1]),v[0]!=="-"&&v[1]!=="-")return;d=[[g,y===null?`[var(${v})]`:`[${y}:var(${v})]`]]}else d=Mt(a,m=>r.utilities.has(m,"functional"));for(let[m,g]of d){let v={kind:"functional",root:m,modifier:s,value:null,variants:i,important:u,raw:t};if(g===null){yield v;continue}{let b=g.indexOf("[");if(b!==-1){if(g[g.length-1]!=="]")return;let x=te(g.slice(b+1,-1)),T="";for(let S=0;S<x.length;S++){let O=x.charCodeAt(S);if(O===on){T=x.slice(0,S),x=x.slice(S+1);break}if(!(O===jt||O>=It&&O<=Ft))break}i Line truncated
${G([m])}
Relies on:
${G([v])}`)}s.add(m);for(let v of u.get(m))for(let b of a.get(v))g.push(m),d(b,g),g.pop();p.add(m),s.delete(m),f.push(m)}}for(let m of i)d(m);return _(f,(m,{replaceWith:g})=>{if(m.kind!=="at-rule"||m.name!=="@apply")return;let v=m.params.split(/\s+/g);{let b=re(v,r,{onInvalidCandidate:x=>{throw new Error(`Cannot apply unknown utility class: ${x}`)}}).astNodes,y=[];for(let x of b)if(x.kind==="rule")for(let T of x.nodes)y.push(T);else y.push(x);g(y)}}),n}function*ur(t,r){for(let n of t.params.split(/\s+/g))for(let e of r.parseCandidate(n))switch(e.kind){case"arbitrary":break;case"static":case"functional":yield e.root;break;default:}}async function gt(t,r,n,e=0){let i=0,u=[];return _(t,(a,{replaceWith:p})=>{if(a.kind==="at-rule"&&(a.name==="@import"||a.name==="@reference")){let f=Ln(L(a.params));if(f===null)return;a.name==="@reference"&&(f.media="reference"),i|=2;let{uri:s,layer:d,media:m,supports:g}=f;if(s.startsWith("data:")||s.startsWith("http://")||s.startsWith("https://"))return;let v=Q({},[]);return u.push((async()=>{if(e>100)throw new Error(`Exceeded maximum recursion depth while resolving \`${s}\` in \`${r}\`)`);let b=await n(s,r),y=oe(b.content);await gt(y,b.base,n,e+1),v.nodes=Mn([Q({base:b.base},y)],d,m,g)})()),p(v),1}}),u.length>0&&await Promise.all(u),i}function Ln(t){let r,n=null,e=null,i=null;for(let u=0;u<t.length;u++){let a=t[u];if(a.kind!=="separator"){if(a.kind==="word"&&!r){if(!a.value||a.value[0]!=='"'&&a.value[0]!=="'")return null;r=a.value.slice(1,-1);continue}if(a.kind==="function"&&a.value.toLowerCase()==="url"||!r)return null;if((a.kind==="word"||a.kind==="function")&&a.value.toLowerCase()==="layer"){if(n)return null;if(i)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in a?n=q(a.nodes):n="";continue}if(a.kind==="function"&&a.value.toLowerCase()==="supports"){if(i)return null;i=q(a.nodes);continue}e=q(t.slice(u));break}}return r?{uri:r,layer:n,media:e,supports:i}:null}function Mn(t,r,n,e){let i=t;return r!==null&&(i=[D("@layer",r,i)]),n!==null&&(i=[D("@media",n,i)]),e!==null&&(i=[D("@supports",e[0]==="("?e:`(${e})`,i)]),i}function ye(t,r=null){return Array.isArray(t)&&t.length===2&&typeof t[1]=="object"&&typeof t[1]!==null?r?t[1][r]??null:t[0]:Array.isArray(t)&&r===null?t.join(", "):typeof t=="string"&&r===null?t:null}function cr(t,{theme:r},n){for(let e of n){let i=Me([e]);i&&t.theme.clearNamespace(`--${i}`,4)}for(let[e,i]of Wn(r)){if(typeof i!="string"&&typeof i!="number")continue;if(typeof i=="string"&&(i=i.replace(/<alpha-value>/g,"1")),e[0]==="opacity"&&(typeof i=="number"||typeof i=="string")){let a=typeof i=="string"?parseFloat(i):i;a>=0&&a<=1&&(i=a*100+"%")}let u=Me(e);u&&t.theme.add(`--${u}`,""+i,7)}if(Object.hasOwn(r,"fontFamily")){let e=5;{let i=ye(r.fontFamily.sans);i&&t.theme.hasDefault("--font-sans")&&(t.theme.add("--default-font-family",i,e),t.theme.add("--default-font-feature-settings",ye(r.fontFamily.sans,"fontFeatureSettings")??"normal",e),t.theme.add("--default-font-variation-settings",ye(r.fontFamily.sans,"fontVariationSettings")??"normal",e))}{let i=ye(r.fontFamily.mono);i&&t.theme.hasDefault("--font-mono")&&(t.theme.add("--default-mono-font-family",i,e),t.theme.add("--default-mono-font-feature-settings",ye(r.fontFamily.mono,"fontFeatureSettings")??"normal",e),t.theme.add("--default-mono-font-variation-settings",ye(r.fontFamily.mono,"fontVariationSettings")??"normal",e))}}return r}function Wn(t){let r=[];return fr(t,[],(n,e)=>{if(qn(n))return r.push([e,n]),1;if(Hn(n)){r.push([e,n[0]]);for(let i of Reflect.ownKeys(n[1]))r.push([[...e,`-${i}`],n[1][i]]);return 1}if(Array.isArray(n)&&n.every(i=>typeof i=="string"))return r.push([e,n.join(", ")]),1}),r}var Bn=/^[a-zA-Z0-9-_%/\.]+$/;function Me(t){if(t[0]==="container")return null;t=structuredClone(t),t[0]==="animation"&&(t[0]="animate"),t[0]==="aspectRatio"&&(t[0]="aspect"),t[0]==="borderRadius"&&(t[0]="radius"),t[0]==="boxShadow"&&(t[0]="shadow"),t[0]==="colors"&&(t[0]="color"),t[0]==="containers"&&(t[0]="container"),t[0]==="fontFamily"&&(t[0]="font"),t[0]==="fontSize"&&(t[0]="text"),t[0]==="letterSpacing"&&(t[0]="tracking"),t[0]==="lineHeight"&&(t[0]="leading"),t[0]==="maxWidth"&&(t[0]="container"),t[0]==="screens"&&(t[0]="breakpoint"),t[0]==="transitionTimingFunction"&&(t[0]="ease");for(let r of t)if(!Bn.test(r))return null;return t.map((r,n,e)=>r==="1"&&n!==e.length-1?"":r).map(r=>r.replaceAll(".","_").replace(/([a-z])([A-Z])/g,(n,e,i)=>`${e}-${i.toLowerCase()}`)).filter((r,n)=>r!=="DEFAULT"||n!==t.length-1).join("-")}function qn(t){return typeof t=="number"||typeof t=="string"}function Hn(t){if(!Array.isArray(t)||t.length!==2||typeof t[0]!="string"&&typeof t[0]!="number"||t[1]===void 0||t[1]===null||typeof t[1]!="object")return!1;for(let r of Reflect.ownKeys(t[1]))if(typeof r!="string"||typeof t[1][r]!="string"&&typeof t[1][r]!="number")return!1;return!0}function fr(t,r=[],n){for(let e of Reflect.ownKeys(t)){let i=t[e];if(i==null)continue;let u=[...rLine truncated
`,`
`);let r=[],n=[],e=null,i="",u;for(let a=0;a<t.length;a++){let p=t.charCodeAt(a);switch(p){case hr:case vr:case yr:case xr:case kr:case Ar:case Cr:{if(i.length>0){let g=Te(i);e?e.nodes.push(g):r.push(g),i=""}let f=a,s=a+1;for(;s<t.length&&(u=t.charCodeAt(s),!(u!==hr&&u!==vr&&u!==yr&&u!==xr&&u!==kr&&u!==Ar&&u!==Cr));s++);a=s-1;let d=t.slice(f,s),m=d.trim()===","?Zn(d):Jn(d);e?e.nodes.push(m):r.push(m);break}case wr:{let f=Yn(i,[]);if(i="",f.value!==":not"&&f.value!==":where"&&f.value!==":has"&&f.value!==":is"){let s=a+1,d=0;for(let g=a+1;g<t.length;g++){if(u=t.charCodeAt(g),u===wr){d++;continue}if(u===gr){if(d===0){a=g;break}d--}}let m=a;f.nodes.push(Qn(t.slice(s,m))),i="",a=m,r.push(f);break}e?e.nodes.push(f):r.push(f),n.push(f),e=f;break}case gr:{let f=n.pop();if(i.length>0){let s=Te(i);f.nodes.push(s),i=""}n.length>0?e=n[n.length-1]:e=null;break}case ri:case ei:case ni:{if(i.length>0){let f=Te(i);e?e.nodes.push(f):r.push(f)}i=String.fromCharCode(p);break}case br:{if(i.length>0){let d=Te(i);e?e.nodes.push(d):r.push(d)}i="";let f=a,s=0;for(let d=a+1;d<t.length;d++){if(u=t.charCodeAt(d),u===br){s++;continue}if(u===Xn){if(s===0){a=d;break}s--}}i+=t.slice(f,a+1);break}case ii:case ti:{let f=a;for(let s=a+1;s<t.length;s++)if(u=t.charCodeAt(s),u===mr)s+=1;else if(u===p){a=s;break}i+=t.slice(f,a+1);break}case mr:{let f=t.charCodeAt(a+1);i+=String.fromCharCode(p)+String.fromCharCode(f),a+=1;break}default:i+=String.fromCharCode(p)}}return i.length>0&&r.push(Te(i)),r}var $r=/^[a-z@][a-zA-Z0-9/%._-]*$/;function vt({designSystem:t,ast:r,resolvedConfig:n,featuresRef:e,referenceMode:i}){let u={addBase(a){if(i)return;let p=Z(a);e.current|=ge(p,t),r.push(D("@layer","base",p))},addVariant(a,p){if(!Le.test(a))throw new Error(`\`addVariant('${a}')\` defines an invalid variant name. Variants should only contain alphanumeric, dashes or underscore characters.`);typeof p=="string"||Array.isArray(p)?t.variants.static(a,f=>{f.nodes=Nr(p,f.nodes)},{compounds:ce(typeof p=="string"?[p]:p)}):typeof p=="object"&&t.variants.fromAst(a,Z(p))},matchVariant(a,p,f){function s(m,g,v){let b=p(m,{modifier:g?.value??null});return Nr(b,v)}let d=Object.keys(f?.values??{});t.variants.group(()=>{t.variants.functional(a,(m,g)=>{if(!g.value){if(f?.values&&"DEFAULT"in f.values){m.nodes=s(f.values.DEFAULT,g.modifier,m.nodes);return}return null}if(g.value.kind==="arbitrary")m.nodes=s(g.value.value,g.modifier,m.nodes);else if(g.value.kind==="named"&&f?.values){let v=f.values[g.value.value];if(typeof v!="string")return;m.nodes=s(v,g.modifier,m.nodes)}})},(m,g)=>{if(m.kind!=="functional"||g.kind!=="functional")return 0;let v=m.value?m.value.value:"DEFAULT",b=g.value?g.value.value:"DEFAULT",y=f?.values?.[v]??v,x=f?.values?.[b]??b;if(f&&typeof f.sort=="function")return f.sort({value:y,modifier:m.modifier?.value??null},{value:x,modifier:g.modifier?.value??null});let T=d.indexOf(v),S=d.indexOf(b);return T=T===-1?d.length:T,S=S===-1?d.length:S,T!==S?T-S:y<x?-1:1})},addUtilities(a){a=Array.isArray(a)?a:[a];let p=a.flatMap(s=>Object.entries(s));p=p.flatMap(([s,d])=>P(s,",").map(m=>[m.trim(),d]));let f=new F(()=>[]);for(let[s,d]of p){if(s.startsWith("@keyframes ")){i||r.push(M(s,Z(d)));continue}let m=ht(s),g=!1;if(qe(m,v=>{if(v.kind==="selector"&&v.value[0]==="."&&$r.test(v.value.slice(1))){let b=v.value;v.value="&";let y=He(m),x=b.slice(1),T=y==="&"?Z(d):[M(y,Z(d))];f.get(x).push(...T),g=!0,v.value=b;return}if(v.kind==="function"&&v.value===":not")return 1}),!g)throw new Error(`\`addUtilities({ '${s}' : \u2026 })\` defines an invalid utility selector. Utilities must be a single class name and start with a lowercase letter, eg. \`.scrollbar-none\`.`)}for(let[s,d]of f)t.theme.prefix&&_(d,m=>{if(m.kind==="rule"){let g=ht(m.selector);qe(g,v=>{v.kind==="selector"&&v.value[0]==="."&&(v.value=`.${t.theme.prefix}\\:${v.value.slice(1)}`)}),m.selector=He(g)}}),t.utilities.static(s,()=>{let m=structuredClone(d);return e.current|=Ne(m,t),m})},matchUtilities(a,p){let f=p?.type?Array.isArray(p?.type)?p.type:[p.type]:["any"];for(let[d,m]of Object.entries(a)){let g=function({negative:v}){return b=>{if(b.value?.kind==="arbitrary"&&f.length>0&&!f.includes("any")&&(b.value.dataType&&!f.includes(b.value.dataType)||!b.value.dataType&&!z(b.value.value,f)))return;let y=f.includes("color"),x=null,T=!1;{let E=p?.values??{};y&&(E=Object.assign({inherit:"inherit",transparent:"transparent",current:"currentColor"},E)),b.value?b.value.kind==="arbitrary"?x=b.value.value:b.value.fraction&&E[b.value.fraction]?(x=E[b.value.fraction],T=!0):E[b.value.value]?x=E[b.value.value]:E.__BARE_VALUE__&&(x=E.__BARE_VALUE__(b.value)??null,T=(b.value.fraction!==null&&x?.includes("/"))??!1):x=E.DEFAULT??null}if(x===null)return;let S;{let E=p?.modifiers??null;b.modifier?E==="any"||b.modifier.kind==="arbitrary"?S=b.modifier.value:E?.[b.modifier.value]?S=E[b.modifier.value]:y&&!Number.isNaN(Number(b.modifier.value))?S=`${b.modifier.value}%`:S=null:S=null}if(b.modifier&&S===null&&!T)return b.value?.kind==="arbitrarLine truncated
${G([T])}
\`@plugin\` options must be a flat list of declarations.`);if(T.value===void 0)continue;let S=T.value,O=P(S,",").map(E=>{if(E=E.trim(),E==="null")return null;if(E==="true")return!0;if(E==="false")return!1;if(Number.isNaN(Number(E))){if(E[0]==='"'&&E[E.length-1]==='"'||E[0]==="'"&&E[E.length-1]==="'")return E.slice(1,-1);if(E[0]==="{"&&E[E.length-1]==="}")throw new Error(`Unexpected \`@plugin\` option: Value of declaration \`${G([T]).trim()}\` is not supported.
Using an object as a plugin option is currently only supported in JavaScript configuration files.`)}else return Number(E);return E});x[T.property]=O.length===1?O[0]:O}a.push([{id:y,base:b.base,reference:!!b.reference},Object.keys(x).length>0?x:null]),v([]),u|=4;return}if(m.name==="@config"){if(m.nodes.length>0)throw new Error("`@config` cannot have a body.");if(g!==null)throw new Error("`@config` cannot be nested.");p.push({id:m.params.slice(1,-1),base:b.base,reference:!!b.reference}),v([]),u|=4;return}}}),Pr(t);let f=t.resolveThemeValue;if(t.resolveThemeValue=function(g){return g.startsWith("--")?f(g):(u|=Ur({designSystem:t,base:r,ast:n,globs:i,configs:[],pluginDetails:[]}),t.resolveThemeValue(g))},!a.length&&!p.length)return 0;let[s,d]=await Promise.all([Promise.all(p.map(async({id:m,base:g,reference:v})=>{let b=await e(m,g,"config");return{path:m,base:b.base,config:b.module,reference:v}})),Promise.all(a.map(async([{id:m,base:g,reference:v},b])=>{let y=await e(m,g,"plugin");return{path:m,base:y.base,plugin:y.module,options:b,reference:v}}))]);return u|=Ur({designSystem:t,base:r,ast:n,globs:i,configs:s,pluginDetails:d}),u}function Ur({designSystem:t,base:r,ast:n,globs:e,configs:i,pluginDetails:u}){let a=0,f=[...u.map(y=>{if(!y.options)return{config:{plugins:[y.plugin]},base:y.base,reference:y.reference};if("__isOptionsFunction"in y.plugin)return{config:{plugins:[y.plugin(y.options)]},base:y.base,reference:y.reference};throw new Error(`The plugin "${y.path}" does not accept options`)}),...i],{resolvedConfig:s}=bt(t,[{config:Rr(t.theme),base:r,reference:!0},...f,{config:{plugins:[Kr]},base:r,reference:!0}]),{resolvedConfig:d,replacedThemeKeys:m}=bt(t,f);t.resolveThemeValue=function(x,T){let S=v.theme(x,T);if(Array.isArray(S)&&S.length===2)return S[0];if(Array.isArray(S))return S.join(", ");if(typeof S=="string")return S};let g={designSystem:t,ast:n,resolvedConfig:s,featuresRef:{set current(y){a|=y}}},v=vt({...g,referenceMode:!1}),b;for(let{handler:y,reference:x}of s.plugins)x?(b||=vt({...g,referenceMode:!0}),y(b)):y(v);if(cr(t,d,m),Vr(t,d,m),_r(d,t),Dr(d,t),Or(d,t),!t.theme.prefix&&s.prefix){if(s.prefix.endsWith("-")&&(s.prefix=s.prefix.slice(0,-1),console.warn(`The prefix "${s.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only and is written as a variant before all utilities. We have fixed up the prefix for you. Remove the trailing \`-\` to silence this warning.`)),!pi.test(s.prefix))throw new Error(`The prefix "${s.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);t.theme.prefix=s.prefix}if(!t.important&&s.important===!0&&(t.important=!0),typeof s.important=="string"){let y=s.important;_(n,(x,{replaceWith:T,parent:S})=>{if(x.kind==="at-rule"&&!(x.name!=="@tailwind"||x.params!=="utilities"))return S?.kind==="rule"&&S.selector===y?2:(T(j(y,[x])),2)})}for(let y of s.blocklist)t.invalidCandidates.add(y);for(let y of s.content.files){if("raw"in y)throw new Error(`Error in the config file/plugin/preset. The \`content\` key contains a \`raw\` entry:
${JSON.stringify(y,null,2)}
This feature is not currently supported.`);e.push(y)}return a}var mi=/^[a-z]+$/;function gi(){throw new Error("No `loadModule` function provided to `compile`")}function hi(){throw new Error("No `loadStylesheet` function provided to `compile`")}function vi(t){let r=0,n=null;for(let e of P(t," "))e==="reference"?r|=2:e==="inline"?r|=1:e==="default"?r|=4:e==="static"?r|=8:e.startsWith("prefix(")&&e.endsWith(")")&&(n=e.slice(7,-1));return[r,n]}var he=(p=>(p[p.None=0]="None",p[p.AtApply=1]="AtApply",p[p.AtImport=2]="AtImport",p[p.JsPluginCompat=4]="JsPluginCompat",p[p.ThemeFunction=8]="ThemeFunction",p[p.Utilities=16]="Utilities",p[p.Variants=32]="Variants",p))(he||{});async function Ir(t,{base:r="",loadModule:n=gi,loadStylesheet:e=hi}={}){let i=0;t=[Q({base:r},t)],i|=await gt(t,r,e);let u=null,a=new _e,p=[],f=[],s=null,d=null,m=[],g=[],v=null;_(t,(y,{parent:x,replaceWith:T,context:S})=>{if(y.kind==="at-rule"){if(y.name==="@tailwind"&&(y.params==="utilities"||y.params.startsWith("utilities"))){if(d!==null){T([]);return}let O=P(y.params," ");for(let E of O)if(E.startsWith("source(")){let K=E.slice(7,-1);if(K==="none"){v=K;continue}if(K[0]==='"'&&K[K.length-1]!=='"'||K[0]==="'"&&K[K.length-1]!=="'"||K[0]!=="'"&&K[0]!=='"')throw new Error("`source(\u2026)` paths must be quoted.");v={base:S.sourceBase??S.base,pattern:K.slice(1,-1)}}d=y,i|=16}if(y.name==="@utility"){if(x!==null)throw new Error("`@utility` cannot be nested.");if(y.nodes.length===0)throw new Error(`\`@utility ${y.params}\` is empty. Utilities should include at least one property.`);let O=Yt(y);if(O===null)throw new Error(`\`@utility ${y.params}\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter.`);f.push(O)}if(y.name==="@source"){if(y.nodes.length>0)throw new Error("`@source` cannot have a body.");if(x!==null)throw new Error("`@source` cannot be nested.");let O=y.params;if(O[0]==='"'&&O[O.length-1]!=='"'||O[0]==="'"&&O[O.length-1]!=="'"||O[0]!=="'"&&O[0]!=='"')throw new Error("`@source` paths must be quoted.");g.push({base:S.base,pattern:O.slice(1,-1)}),T([]);return}if(y.name==="@variant"&&(x===null?y.nodes.length===0?y.name="@custom-variant":(_(y.nodes,O=>{if(O.kind==="at-rule"&&O.name==="@slot")return y.name="@custom-variant",2}),y.name==="@variant"&&m.push(y)):m.push(y)),y.name==="@custom-variant"){if(x!==null)throw new Error("`@custom-variant` cannot be nested.");T([]);let[O,E]=P(y.params," ");if(!Le.test(O))throw new Error(`\`@custom-variant ${O}\` defines an invalid variant name. Variants should only contain alphanumeric, dashes or underscore characters.`);if(y.nodes.length>0&&E)throw new Error(`\`@custom-variant ${O}\` cannot have both a selector and a body.`);if(y.nodes.length===0){if(!E)throw new Error(`\`@custom-variant ${O}\` has no selector or body.`);let K=P(E.slice(1,-1),",");if(K.length===0||K.some(h=>h.trim()===""))throw new Error(`\`@custom-variant ${O} (${K.join(",")})\` selector is invalid.`);let o=[],c=[];for(let h of K)h=h.trim(),h[0]==="@"?o.push(h):c.push(h);p.push(h=>{h.variants.static(O,k=>{let w=[];c.length>0&&w.push(j(c.join(", "),k.nodes));for(let V of o)w.push(M(V,k.nodes));k.nodes=w},{compounds:ce([...c,...o])})});return}else{p.push(K=>{K.variants.fromAst(O,y.nodes)});return}}if(y.name==="@media"){let O=P(y.params," "),E=[];for(let K of O)if(K.startsWith("source(")){let o=K.slice(7,-1);_(y.nodes,(c,{replaceWith:h})=>{if(c.kind==="at-rule"&&c.name==="@tailwind"&&c.params==="utilities")return c.params+=` source(${o})`,h([Q({sourceBase:S.base},[c])]),2})}else if(K.startsWith("theme(")){let o=K.slice(6,-1);_(y.nodes,c=>{if(c.kind!=="at-rule")throw new Error('Files imported with `@import "\u2026" theme(\u2026)` must only contain `@theme` blocks.');if(c.name==="@theme")return c.params+=" "+o,1})}else if(K.startsWith("prefix(")){let o=K.slice(7,-1);_(y.nodes,c=>{if(c.kind==="at-rule"&&c.name==="@theme")return c.params+=` prefix(${o})`,1})}else K==="important"?u=!0:K==="reference"?y.nodes=[Q({reference:!0},y.nodes)]:E.push(K);E.length>0?y.params=E.join(" "):O.length>0&&T(y.nodes)}if(y.name==="@theme"){let[O,E]=vi(y.params);if(S.reference&&(O|=2),E){if(!mi.test(E))throw new Error(`The prefix "${E}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);a.prefix=E}return _(y.nodes,K=>{if(K.kind==="at-rule"&&K.name==="@keyframes")return O&2?1:(a.addKeyframes(K),1);if(K.kind==="comment")return;if(K.kind==="declaration"&&K.property.startsWith("--")){a.add(le(K.property),K.value??"",O);return}let o=G([D(y.name,y.params,[K])]).split(`
`).map((c,h,k)=>`${h===0||h>=k.length-2?" ":">"} ${c}`).join(`
`);throw new Error(`\`@theme\` blocks must only contain custom properties or \`@keyframes\`.
${o}`)}),!s&&!(O&2)?(s=j(":root, :host",[]),T([s])):T([]),1}}});let b=or(a);u&&(b.important=u),i|=await jr({designSystem:b,base:r,ast:t,loadModule:n,globs:g});for(let y of p)y(b);for(let y of f)y(b);if(s){let y=[];for(let[T,S]of b.theme.entries())S.options&2||y.push(l(de(T),S.value));let x=b.theme.getKeyframes();for(let T of x)y.push(U([T]));s.nodes=[Q({theme:!0},y)]}if(d){let y=d;y.kind="context",y.context={}}if(m.length>0){for(let y of m){let x=j("&",y.nodes),T=y.params,S=b.parseVariant(T);if(S===null)throw new Error(`Cannot use \`@variant\` with unknown variant: ${T}`);if(ve(x,S,b.variants)===null)throw new Error(`Cannot use \`@variant\` with variant: ${T}`);Object.assign(y,x)}i|=32}return i|=ge(t,b),i|=Ne(t,b),_(t,(y,{replaceWith:x})=>{if(y.kind==="at-rule")return y.name==="@utility"&&x([]),1}),{designSystem:b,ast:t,globs:g,root:v,utilitiesNode:d,features:i}}async function Fr(t,r={}){let{designSystem:n,ast:e,globs:i,root:u,utilitiesNode:a,features:p}=await Ir(t,r);e.unshift(De(`! tailwindcss v${wt} | MIT License | https://tailwindcss.com `));function f(g){n.invalidCandidates.add(g)}let s=new Set,d=null,m=0;return{globs:i,root:u,features:p,build(g){if(p===0)return t;if(!a)return d??=ae(e,n),d;let v=!1,b=s.size;for(let x of g)n.invalidCandidates.has(x)||(x[0]==="-"&&x[1]==="-"?n.theme.markUsedVariable(x):s.add(x),v||=s.size!==b);if(!v)return d??=ae(e,n),d;let y=re(s,n,{onInvalidCandidate:f}).astNodes;return m===y.length?(d??=ae(e,n),d):(m=y.length,a.nodes=y,d=ae(e,n),d)}}}async function yi(t,r={}){let n=oe(t),e=await Fr(n,r),i=n,u=t;return{...e,build(a){let p=e.build(a);return p===i||(u=G(p),i=p),u}}}async function bi(t,r={}){return(await Ir(oe(t),r)).designSystem}function Se(){throw new Error("It looks like you're trying to use `tailwindcss` directly as a PostCSS plugin. The PostCSS plugin has moved to a separate package, so to continue using Tailwind CSS with PostCSS you'll need to install `@tailwindcss/postcss` and update your PostCSS configuration.")}for(let t in Ye)t!=="default"&&(Se[t]=Ye[t]);module.exports=Se;
+24
View File
@@ -0,0 +1,24 @@
import{a as Be,b as j,c as I,d as S,e as Ne,f as oe,g as be,h as Je}from"./chunk-V2K3XTS4.mjs";import{a as qe}from"./chunk-AZANAYY2.mjs";import{a as ee,b as ye,c as we,d as Me,e as M,f as F,g as O,h as W,i as l,j as Le,k as Z,l as D,m as _,n as We,o as te,p as J}from"./chunk-N4FJXYNV.mjs";var Ge="4.0.5";function Se(t){return{kind:"word",value:t}}function ir(t,r){return{kind:"function",value:t,nodes:r}}function or(t){return{kind:"separator",value:t}}function Y(t,r,i=null){for(let e=0;e<t.length;e++){let o=t[e],c=!1,s=0,m=r(o,{parent:i,replaceWith(p){c=!0,Array.isArray(p)?p.length===0?(t.splice(e,1),s=0):p.length===1?(t[e]=p[0],s=1):(t.splice(e,1,...p),s=p.length):t[e]=p}})??0;if(c){m===0?e--:e+=s-1;continue}if(m===2)return 2;if(m!==1&&o.kind==="function"&&Y(o.nodes,r,o)===2)return 2}}function B(t){let r="";for(let i of t)switch(i.kind){case"word":case"separator":{r+=i.value;break}case"function":r+=i.value+"("+B(i.nodes)+")"}return r}var He=92,lr=41,Ze=58,Ye=44,ar=34,Xe=61,Qe=62,et=60,tt=10,sr=40,ur=39,rt=47,nt=32,it=9;function z(t){t=t.replaceAll(`\r
`,`
`);let r=[],i=[],e=null,o="",c;for(let s=0;s<t.length;s++){let m=t.charCodeAt(s);switch(m){case He:{o+=t[s]+t[s+1],s++;break}case Ze:case Ye:case Xe:case Qe:case et:case tt:case rt:case nt:case it:{if(o.length>0){let h=Se(o);e?e.nodes.push(h):r.push(h),o=""}let p=s,u=s+1;for(;u<t.length&&(c=t.charCodeAt(u),!(c!==Ze&&c!==Ye&&c!==Xe&&c!==Qe&&c!==et&&c!==tt&&c!==rt&&c!==nt&&c!==it));u++);s=u-1;let d=or(t.slice(p,u));e?e.nodes.push(d):r.push(d);break}case ur:case ar:{let p=s;for(let u=s+1;u<t.length;u++)if(c=t.charCodeAt(u),c===He)u+=1;else if(c===m){s=u;break}o+=t.slice(p,s+1);break}case sr:{let p=ir(o,[]);o="",e?e.nodes.push(p):r.push(p),i.push(p),e=p;break}case lr:{let p=i.pop();if(o.length>0){let u=Se(o);p.nodes.push(u),o=""}i.length>0?e=i[i.length-1]:e=null;break}default:o+=String.fromCharCode(m)}}return o.length>0&&r.push(Se(o)),r}function X(t){if(t.indexOf("(")===-1)return le(t);let r=z(t);return Ee(r),t=B(r),t=Be(t),t}function le(t,r=!1){let i="";for(let e=0;e<t.length;e++){let o=t[e];o==="\\"&&t[e+1]==="_"?(i+="_",e+=1):o==="_"&&!r?i+=" ":i+=o}return i}function Ee(t){for(let r of t)switch(r.kind){case"function":{if(r.value==="url"||r.value.endsWith("_url")){r.value=le(r.value);break}if(r.value==="var"||r.value.endsWith("_var")||r.value==="theme"||r.value.endsWith("_theme")){r.value=le(r.value);for(let i=0;i<r.nodes.length;i++){if(i==0&&r.nodes[i].kind==="word"){r.nodes[i].value=le(r.nodes[i].value,!0);continue}Ee([r.nodes[i]])}break}r.value=le(r.value),Ee(r.nodes);break}case"separator":case"word":{r.value=le(r.value);break}default:fr(r)}}function fr(t){throw new Error(`Unexpected value: ${t}`)}var cr=58,ot=45,lt=97,at=122;function*st(t,r){let i=j(t,":");if(r.theme.prefix){if(i.length===1||i[0]!==r.theme.prefix)return null;i.shift()}let e=i.pop(),o=[];for(let h=i.length-1;h>=0;--h){let g=r.parseVariant(i[h]);if(g===null)return;o.push(g)}let c=!1;e[e.length-1]==="!"?(c=!0,e=e.slice(0,-1)):e[0]==="!"&&(c=!0,e=e.slice(1)),r.utilities.has(e,"static")&&!e.includes("[")&&(yield{kind:"static",root:e,variants:o,important:c,raw:t});let[s,m=null,p]=j(e,"/");if(p)return;let u=m===null?null:Ke(m);if(m!==null&&u===null)return;if(s[0]==="["){if(s[s.length-1]!=="]")return;let h=s.charCodeAt(1);if(h!==ot&&!(h>=lt&&h<=at))return;s=s.slice(1,-1);let g=s.indexOf(":");if(g===-1||g===0||g===s.length-1)return;let y=s.slice(0,g),w=X(s.slice(g+1));yield{kind:"arbitrary",property:y,value:w,modifier:u,variants:o,important:c,raw:t};return}let d;if(s[s.length-1]==="]"){let h=s.indexOf("-[");if(h===-1)return;let g=s.slice(0,h);if(!r.utilities.has(g,"functional"))return;let y=s.slice(h+1);d=[[g,y]]}else if(s[s.length-1]===")"){let h=s.indexOf("-(");if(h===-1)return;let g=s.slice(0,h);if(!r.utilities.has(g,"functional"))return;let y=s.slice(h+2,-1),w=j(y,":"),v=null;if(w.length===2&&(v=w[0],y=w[1]),y[0]!=="-"&&y[1]!=="-")return;d=[[g,v===null?`[var(${y})]`:`[${v}:var(${y})]`]]}else d=ft(s,h=>r.utilities.has(h,"functional"));for(let[h,g]of d){let y={kind:"functional",root:h,modifier:u,value:null,variants:o,important:c,raw:t};if(g===null){yield y;continue}{let w=g.indexOf("[");if(w!==-1){if(g[g.length-1]!=="]")return;let x=X(g.slice(w+1,-1)),T="";for(let N=0;N<x.length;N++){let R=x.charCodeAt(N);if(R===cr){T=x.slice(0,N),x=x.slice(N+1);break}if(!(R===ot||R>=lt&&R<=at))break}if(x.length===0||x.trim().length===0)continue;y.value={kind:"arbitrary",dataType:T||null,value:x}}else{let x=m===null||y.modifier?.kind==="arbitrary"?null:`${g}/${m}`;y.value={kind:"named",value:g,fraction:x}}}yield y}}function Ke(t){if(t[0]==="["&&t[t.length-1]==="]"){let r=X(t.slice(1,-1));return r.length===0||r.trim().length===0?null:{kind:"arbitrary",value:r}}if(t[0]==="("&&t[t.length-1]===")"){let r=X(t.slice(1,-1));return r.length===0||r.trim().length===0||r[0]!=="-"&&r[1]!=="-"?null:{kind:"arbitrary",value:`var(${r})`}}return{kind:"named",value:t}}function ut(t,r){if(t[0]==="["&&t[t.length-1]==="]"){if(t[1]==="@"&&t.includes("&"))return null;let i=X(t.slice(1,-1));if(i.length===0||i.trim().length===0)return null;let e=i[0]===">"||i[0]==="+"||i[0]==="~";return!e&&i[0]!=="@"&&!i.includes("&")&&(i=`&:is(${i})`),{kind:"arbitrary",selector:i,relative:e}}{let[i,e=null,o]=j(t,"/");if(o)return null;let c=ft(i,s=>r.variants.has(s));for(let[s,m]of c)switch(r.variants.kind(s)){case"static":return m!==null||e!==null?null:{kind:"static",root:s};case"functional":{let p=e===null?null:Ke(e);if(e!==null&&p===null)return null;if(m===null)return{kind:"functional",root:s,modifier:p,value:null};if(m[m.length-1]==="]"){if(m[0]!=="[")continue;let u=X(m.slice(1,-1));return u.length===0||u.trim().length===0?null:{kind:"functional",root:s,modifier:p,value:{kind:"arbitrary",value:u}}}if(m[m.length-1]===")"){if(m[0]!=="(")continue;let u=X(m.slice(1,-1));return u.length===0||u.trim().length===0||u[0]!=="-"&&u[1]!=="-"?null:{kind:"functional",root:s,modifier:p,value:{kind:"arbitrary",value:`var(${u})`}}}return{kind:"functional",root:s,modifier:p,value:{kind:"named",value:m}}}case"compoun Line truncated
${J([h])}
Relies on:
${J([y])}`)}u.add(h);for(let y of c.get(h))for(let w of s.get(y))g.push(h),d(w,g),g.pop();m.add(h),u.delete(h),p.push(h)}}for(let h of o)d(h);return _(p,(h,{replaceWith:g})=>{if(h.kind!=="at-rule"||h.name!=="@apply")return;let y=h.params.split(/\s+/g);{let w=Q(y,r,{onInvalidCandidate:x=>{throw new Error(`Cannot apply unknown utility class: ${x}`)}}).astNodes,v=[];for(let x of w)if(x.kind==="rule")for(let T of x.nodes)v.push(T);else v.push(x);g(v)}}),i}function*Tt(t,r){for(let i of t.params.split(/\s+/g))for(let e of r.parseCandidate(i))switch(e.kind){case"arbitrary":break;case"static":case"functional":yield e.root;break;default:}}async function _e(t,r,i,e=0){let o=0,c=[];return _(t,(s,{replaceWith:m})=>{if(s.kind==="at-rule"&&(s.name==="@import"||s.name==="@reference")){let p=xr(z(s.params));if(p===null)return;s.name==="@reference"&&(p.media="reference"),o|=2;let{uri:u,layer:d,media:h,supports:g}=p;if(u.startsWith("data:")||u.startsWith("http://")||u.startsWith("https://"))return;let y=Z({},[]);return c.push((async()=>{if(e>100)throw new Error(`Exceeded maximum recursion depth while resolving \`${u}\` in \`${r}\`)`);let w=await i(u,r),v=ee(w.content);await _e(v,w.base,i,e+1),y.nodes=Ar([Z({base:w.base},v)],d,h,g)})()),m(y),1}}),c.length>0&&await Promise.all(c),o}function xr(t){let r,i=null,e=null,o=null;for(let c=0;c<t.length;c++){let s=t[c];if(s.kind!=="separator"){if(s.kind==="word"&&!r){if(!s.value||s.value[0]!=='"'&&s.value[0]!=="'")return null;r=s.value.slice(1,-1);continue}if(s.kind==="function"&&s.value.toLowerCase()==="url"||!r)return null;if((s.kind==="word"||s.kind==="function")&&s.value.toLowerCase()==="layer"){if(i)return null;if(o)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in s?i=B(s.nodes):i="";continue}if(s.kind==="function"&&s.value.toLowerCase()==="supports"){if(o)return null;o=B(s.nodes);continue}e=B(t.slice(c));break}}return r?{uri:r,layer:i,media:e,supports:o}:null}function Ar(t,r,i,e){let o=t;return r!==null&&(o=[O("@layer",r,o)]),i!==null&&(o=[O("@media",i,o)]),e!==null&&(o=[O("@supports",e[0]==="("?e:`(${e})`,o)]),o}function ue(t,r=null){return Array.isArray(t)&&t.length===2&&typeof t[1]=="object"&&typeof t[1]!==null?r?t[1][r]??null:t[0]:Array.isArray(t)&&r===null?t.join(", "):typeof t=="string"&&r===null?t:null}function Et(t,{theme:r},i){for(let e of i){let o=Ae([e]);o&&t.theme.clearNamespace(`--${o}`,4)}for(let[e,o]of Cr(r)){if(typeof o!="string"&&typeof o!="number")continue;if(typeof o=="string"&&(o=o.replace(/<alpha-value>/g,"1")),e[0]==="opacity"&&(typeof o=="number"||typeof o=="string")){let s=typeof o=="string"?parseFloat(o):o;s>=0&&s<=1&&(o=s*100+"%")}let c=Ae(e);c&&t.theme.add(`--${c}`,""+o,7)}if(Object.hasOwn(r,"fontFamily")){let e=5;{let o=ue(r.fontFamily.sans);o&&t.theme.hasDefault("--font-sans")&&(t.theme.add("--default-font-family",o,e),t.theme.add("--default-font-feature-settings",ue(r.fontFamily.sans,"fontFeatureSettings")??"normal",e),t.theme.add("--default-font-variation-settings",ue(r.fontFamily.sans,"fontVariationSettings")??"normal",e))}{let o=ue(r.fontFamily.mono);o&&t.theme.hasDefault("--font-mono")&&(t.theme.add("--default-mono-font-family",o,e),t.theme.add("--default-mono-font-feature-settings",ue(r.fontFamily.mono,"fontFeatureSettings")??"normal",e),t.theme.add("--default-mono-font-variation-settings",ue(r.fontFamily.mono,"fontVariationSettings")??"normal",e))}}return r}function Cr(t){let r=[];return Kt(t,[],(i,e)=>{if($r(i))return r.push([e,i]),1;if(Tr(i)){r.push([e,i[0]]);for(let o of Reflect.ownKeys(i[1]))r.push([[...e,`-${o}`],i[1][o]]);return 1}if(Array.isArray(i)&&i.every(o=>typeof o=="string"))return r.push([e,i.join(", ")]),1}),r}var Vr=/^[a-zA-Z0-9-_%/\.]+$/;function Ae(t){if(t[0]==="container")return null;t=structuredClone(t),t[0]==="animation"&&(t[0]="animate"),t[0]==="aspectRatio"&&(t[0]="aspect"),t[0]==="borderRadius"&&(t[0]="radius"),t[0]==="boxShadow"&&(t[0]="shadow"),t[0]==="colors"&&(t[0]="color"),t[0]==="containers"&&(t[0]="container"),t[0]==="fontFamily"&&(t[0]="font"),t[0]==="fontSize"&&(t[0]="text"),t[0]==="letterSpacing"&&(t[0]="tracking"),t[0]==="lineHeight"&&(t[0]="leading"),t[0]==="maxWidth"&&(t[0]="container"),t[0]==="screens"&&(t[0]="breakpoint"),t[0]==="transitionTimingFunction"&&(t[0]="ease");for(let r of t)if(!Vr.test(r))return null;return t.map((r,i,e)=>r==="1"&&i!==e.length-1?"":r).map(r=>r.replaceAll(".","_").replace(/([a-z])([A-Z])/g,(i,e,o)=>`${e}-${o.toLowerCase()}`)).filter((r,i)=>r!=="DEFAULT"||i!==t.length-1).join("-")}function $r(t){return typeof t=="number"||typeof t=="string"}function Tr(t){if(!Array.isArray(t)||t.length!==2||typeof t[0]!="string"&&typeof t[0]!="number"||t[1]===void 0||t[1]===null||typeof t[1]!="object")return!1;for(let r of Reflect.ownKeys(t[1]))if(typeof r!="string"||typeof t[1][r]!="string"&&typeof t[1][r]!="number")return!1;return!0}function Kt(t,r=[],i){for(let e of Reflect.ownKeys(t)){let o=t[e];if(o==null)continue;let c=[...r,Line truncated
`,`
`);let r=[],i=[],e=null,o="",c;for(let s=0;s<t.length;s++){let m=t.charCodeAt(s);switch(m){case Dt:case _t:case Ft:case Mt:case zt:case Lt:case Wt:{if(o.length>0){let g=he(o);e?e.nodes.push(g):r.push(g),o=""}let p=s,u=s+1;for(;u<t.length&&(c=t.charCodeAt(u),!(c!==Dt&&c!==_t&&c!==Ft&&c!==Mt&&c!==zt&&c!==Lt&&c!==Wt));u++);s=u-1;let d=t.slice(p,u),h=d.trim()===","?Kr(d):Sr(d);e?e.nodes.push(h):r.push(h);break}case It:{let p=Er(o,[]);if(o="",p.value!==":not"&&p.value!==":where"&&p.value!==":has"&&p.value!==":is"){let u=s+1,d=0;for(let g=s+1;g<t.length;g++){if(c=t.charCodeAt(g),c===It){d++;continue}if(c===Ot){if(d===0){s=g;break}d--}}let h=s;p.nodes.push(Rr(t.slice(u,h))),o="",s=h,r.push(p);break}e?e.nodes.push(p):r.push(p),i.push(p),e=p;break}case Ot:{let p=i.pop();if(o.length>0){let u=he(o);p.nodes.push(u),o=""}i.length>0?e=i[i.length-1]:e=null;break}case Dr:case jr:case _r:{if(o.length>0){let p=he(o);e?e.nodes.push(p):r.push(p)}o=String.fromCharCode(m);break}case Ut:{if(o.length>0){let d=he(o);e?e.nodes.push(d):r.push(d)}o="";let p=s,u=0;for(let d=s+1;d<t.length;d++){if(c=t.charCodeAt(d),c===Ut){u++;continue}if(c===Pr){if(u===0){s=d;break}u--}}o+=t.slice(p,s+1);break}case Fr:case Or:{let p=s;for(let u=s+1;u<t.length;u++)if(c=t.charCodeAt(u),c===jt)u+=1;else if(c===m){s=u;break}o+=t.slice(p,s+1);break}case jt:{let p=t.charCodeAt(s+1);o+=String.fromCharCode(m)+String.fromCharCode(p),s+=1;break}default:o+=String.fromCharCode(m)}}return o.length>0&&r.push(he(o)),r}var Bt=/^[a-z@][a-zA-Z0-9/%._-]*$/;function Ue({designSystem:t,ast:r,resolvedConfig:i,featuresRef:e,referenceMode:o}){let c={addBase(s){if(o)return;let m=H(s);e.current|=ae(m,t),r.push(O("@layer","base",m))},addVariant(s,m){if(!xe.test(s))throw new Error(`\`addVariant('${s}')\` defines an invalid variant name. Variants should only contain alphanumeric, dashes or underscore characters.`);typeof m=="string"||Array.isArray(m)?t.variants.static(s,p=>{p.nodes=qt(m,p.nodes)},{compounds:ie(typeof m=="string"?[m]:m)}):typeof m=="object"&&t.variants.fromAst(s,H(m))},matchVariant(s,m,p){function u(h,g,y){let w=m(h,{modifier:g?.value??null});return qt(w,y)}let d=Object.keys(p?.values??{});t.variants.group(()=>{t.variants.functional(s,(h,g)=>{if(!g.value){if(p?.values&&"DEFAULT"in p.values){h.nodes=u(p.values.DEFAULT,g.modifier,h.nodes);return}return null}if(g.value.kind==="arbitrary")h.nodes=u(g.value.value,g.modifier,h.nodes);else if(g.value.kind==="named"&&p?.values){let y=p.values[g.value.value];if(typeof y!="string")return;h.nodes=u(y,g.modifier,h.nodes)}})},(h,g)=>{if(h.kind!=="functional"||g.kind!=="functional")return 0;let y=h.value?h.value.value:"DEFAULT",w=g.value?g.value.value:"DEFAULT",v=p?.values?.[y]??y,x=p?.values?.[w]??w;if(p&&typeof p.sort=="function")return p.sort({value:v,modifier:h.modifier?.value??null},{value:x,modifier:g.modifier?.value??null});let T=d.indexOf(y),N=d.indexOf(w);return T=T===-1?d.length:T,N=N===-1?d.length:N,T!==N?T-N:v<x?-1:1})},addUtilities(s){s=Array.isArray(s)?s:[s];let m=s.flatMap(u=>Object.entries(u));m=m.flatMap(([u,d])=>j(u,",").map(h=>[h.trim(),d]));let p=new M(()=>[]);for(let[u,d]of m){if(u.startsWith("@keyframes ")){o||r.push(W(u,H(d)));continue}let h=Fe(u),g=!1;if($e(h,y=>{if(y.kind==="selector"&&y.value[0]==="."&&Bt.test(y.value.slice(1))){let w=y.value;y.value="&";let v=Te(h),x=w.slice(1),T=v==="&"?H(d):[W(v,H(d))];p.get(x).push(...T),g=!0,y.value=w;return}if(y.kind==="function"&&y.value===":not")return 1}),!g)throw new Error(`\`addUtilities({ '${u}' : \u2026 })\` defines an invalid utility selector. Utilities must be a single class name and start with a lowercase letter, eg. \`.scrollbar-none\`.`)}for(let[u,d]of p)t.theme.prefix&&_(d,h=>{if(h.kind==="rule"){let g=Fe(h.selector);$e(g,y=>{y.kind==="selector"&&y.value[0]==="."&&(y.value=`.${t.theme.prefix}\\:${y.value.slice(1)}`)}),h.selector=Te(g)}}),t.utilities.static(u,()=>{let h=structuredClone(d);return e.current|=ge(h,t),h})},matchUtilities(s,m){let p=m?.type?Array.isArray(m?.type)?m.type:[m.type]:["any"];for(let[d,h]of Object.entries(s)){let g=function({negative:y}){return w=>{if(w.value?.kind==="arbitrary"&&p.length>0&&!p.includes("any")&&(w.value.dataType&&!p.includes(w.value.dataType)||!w.value.dataType&&!I(w.value.value,p)))return;let v=p.includes("color"),x=null,T=!1;{let E=m?.values??{};v&&(E=Object.assign({inherit:"inherit",transparent:"transparent",current:"currentColor"},E)),w.value?w.value.kind==="arbitrary"?x=w.value.value:w.value.fraction&&E[w.value.fraction]?(x=E[w.value.fraction],T=!0):E[w.value.value]?x=E[w.value.value]:E.__BARE_VALUE__&&(x=E.__BARE_VALUE__(w.value)??null,T=(w.value.fraction!==null&&x?.includes("/"))??!1):x=E.DEFAULT??null}if(x===null)return;let N;{let E=m?.modifiers??null;w.modifier?E==="any"||w.modifier.kind==="arbitrary"?N=w.modifier.value:E?.[w.modifier.value]?N=E[w.modifier.value]:v&&!Number.isNaN(Number(w.modifier.value))?N=`${w.modifier.value}%`:N=null:N=null}if(w.modifier&&N===null&&!T)return w.value?.kind==="arbitrarLine truncated
${J([T])}
\`@plugin\` options must be a flat list of declarations.`);if(T.value===void 0)continue;let N=T.value,R=j(N,",").map(E=>{if(E=E.trim(),E==="null")return null;if(E==="true")return!0;if(E==="false")return!1;if(Number.isNaN(Number(E))){if(E[0]==='"'&&E[E.length-1]==='"'||E[0]==="'"&&E[E.length-1]==="'")return E.slice(1,-1);if(E[0]==="{"&&E[E.length-1]==="}")throw new Error(`Unexpected \`@plugin\` option: Value of declaration \`${J([T]).trim()}\` is not supported.
Using an object as a plugin option is currently only supported in JavaScript configuration files.`)}else return Number(E);return E});x[T.property]=R.length===1?R[0]:R}s.push([{id:v,base:w.base,reference:!!w.reference},Object.keys(x).length>0?x:null]),y([]),c|=4;return}if(h.name==="@config"){if(h.nodes.length>0)throw new Error("`@config` cannot have a body.");if(g!==null)throw new Error("`@config` cannot be nested.");m.push({id:h.params.slice(1,-1),base:w.base,reference:!!w.reference}),y([]),c|=4;return}}}),Yt(t);let p=t.resolveThemeValue;if(t.resolveThemeValue=function(g){return g.startsWith("--")?p(g):(c|=er({designSystem:t,base:r,ast:i,globs:o,configs:[],pluginDetails:[]}),t.resolveThemeValue(g))},!s.length&&!m.length)return 0;let[u,d]=await Promise.all([Promise.all(m.map(async({id:h,base:g,reference:y})=>{let w=await e(h,g,"config");return{path:h,base:w.base,config:w.module,reference:y}})),Promise.all(s.map(async([{id:h,base:g,reference:y},w])=>{let v=await e(h,g,"plugin");return{path:h,base:v.base,plugin:v.module,options:w,reference:y}}))]);return c|=er({designSystem:t,base:r,ast:i,globs:o,configs:u,pluginDetails:d}),c}function er({designSystem:t,base:r,ast:i,globs:e,configs:o,pluginDetails:c}){let s=0,p=[...c.map(v=>{if(!v.options)return{config:{plugins:[v.plugin]},base:v.base,reference:v.reference};if("__isOptionsFunction"in v.plugin)return{config:{plugins:[v.plugin(v.options)]},base:v.base,reference:v.reference};throw new Error(`The plugin "${v.path}" does not accept options`)}),...o],{resolvedConfig:u}=ze(t,[{config:Gt(t.theme),base:r,reference:!0},...p,{config:{plugins:[Zt]},base:r,reference:!0}]),{resolvedConfig:d,replacedThemeKeys:h}=ze(t,p);t.resolveThemeValue=function(x,T){let N=y.theme(x,T);if(Array.isArray(N)&&N.length===2)return N[0];if(Array.isArray(N))return N.join(", ");if(typeof N=="string")return N};let g={designSystem:t,ast:i,resolvedConfig:u,featuresRef:{set current(v){s|=v}}},y=Ue({...g,referenceMode:!1}),w;for(let{handler:v,reference:x}of u.plugins)x?(w||=Ue({...g,referenceMode:!0}),v(w)):v(y);if(Et(t,d,h),Jt(t,d,h),Qt(d,t),Xt(d,t),Ht(d,t),!t.theme.prefix&&u.prefix){if(u.prefix.endsWith("-")&&(u.prefix=u.prefix.slice(0,-1),console.warn(`The prefix "${u.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only and is written as a variant before all utilities. We have fixed up the prefix for you. Remove the trailing \`-\` to silence this warning.`)),!qr.test(u.prefix))throw new Error(`The prefix "${u.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);t.theme.prefix=u.prefix}if(!t.important&&u.important===!0&&(t.important=!0),typeof u.important=="string"){let v=u.important;_(i,(x,{replaceWith:T,parent:N})=>{if(x.kind==="at-rule"&&!(x.name!=="@tailwind"||x.params!=="utilities"))return N?.kind==="rule"&&N.selector===v?2:(T(F(v,[x])),2)})}for(let v of u.blocklist)t.invalidCandidates.add(v);for(let v of u.content.files){if("raw"in v)throw new Error(`Error in the config file/plugin/preset. The \`content\` key contains a \`raw\` entry:
${JSON.stringify(v,null,2)}
This feature is not currently supported.`);e.push(v)}return s}var Jr=/^[a-z]+$/;function Gr(){throw new Error("No `loadModule` function provided to `compile`")}function Hr(){throw new Error("No `loadStylesheet` function provided to `compile`")}function Zr(t){let r=0,i=null;for(let e of j(t," "))e==="reference"?r|=2:e==="inline"?r|=1:e==="default"?r|=4:e==="static"?r|=8:e.startsWith("prefix(")&&e.endsWith(")")&&(i=e.slice(7,-1));return[r,i]}var de=(m=>(m[m.None=0]="None",m[m.AtApply=1]="AtApply",m[m.AtImport=2]="AtImport",m[m.JsPluginCompat=4]="JsPluginCompat",m[m.ThemeFunction=8]="ThemeFunction",m[m.Utilities=16]="Utilities",m[m.Variants=32]="Variants",m))(de||{});async function rr(t,{base:r="",loadModule:i=Gr,loadStylesheet:e=Hr}={}){let o=0;t=[Z({base:r},t)],o|=await _e(t,r,e);let c=null,s=new Me,m=[],p=[],u=null,d=null,h=[],g=[],y=null;_(t,(v,{parent:x,replaceWith:T,context:N})=>{if(v.kind==="at-rule"){if(v.name==="@tailwind"&&(v.params==="utilities"||v.params.startsWith("utilities"))){if(d!==null){T([]);return}let R=j(v.params," ");for(let E of R)if(E.startsWith("source(")){let P=E.slice(7,-1);if(P==="none"){y=P;continue}if(P[0]==='"'&&P[P.length-1]!=='"'||P[0]==="'"&&P[P.length-1]!=="'"||P[0]!=="'"&&P[0]!=='"')throw new Error("`source(\u2026)` paths must be quoted.");y={base:N.sourceBase??N.base,pattern:P.slice(1,-1)}}d=v,o|=16}if(v.name==="@utility"){if(x!==null)throw new Error("`@utility` cannot be nested.");if(v.nodes.length===0)throw new Error(`\`@utility ${v.params}\` is empty. Utilities should include at least one property.`);let R=gt(v);if(R===null)throw new Error(`\`@utility ${v.params}\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter.`);p.push(R)}if(v.name==="@source"){if(v.nodes.length>0)throw new Error("`@source` cannot have a body.");if(x!==null)throw new Error("`@source` cannot be nested.");let R=v.params;if(R[0]==='"'&&R[R.length-1]!=='"'||R[0]==="'"&&R[R.length-1]!=="'"||R[0]!=="'"&&R[0]!=='"')throw new Error("`@source` paths must be quoted.");g.push({base:N.base,pattern:R.slice(1,-1)}),T([]);return}if(v.name==="@variant"&&(x===null?v.nodes.length===0?v.name="@custom-variant":(_(v.nodes,R=>{if(R.kind==="at-rule"&&R.name==="@slot")return v.name="@custom-variant",2}),v.name==="@variant"&&h.push(v)):h.push(v)),v.name==="@custom-variant"){if(x!==null)throw new Error("`@custom-variant` cannot be nested.");T([]);let[R,E]=j(v.params," ");if(!xe.test(R))throw new Error(`\`@custom-variant ${R}\` defines an invalid variant name. Variants should only contain alphanumeric, dashes or underscore characters.`);if(v.nodes.length>0&&E)throw new Error(`\`@custom-variant ${R}\` cannot have both a selector and a body.`);if(v.nodes.length===0){if(!E)throw new Error(`\`@custom-variant ${R}\` has no selector or body.`);let P=j(E.slice(1,-1),",");if(P.length===0||P.some(f=>f.trim()===""))throw new Error(`\`@custom-variant ${R} (${P.join(",")})\` selector is invalid.`);let n=[],a=[];for(let f of P)f=f.trim(),f[0]==="@"?n.push(f):a.push(f);m.push(f=>{f.variants.static(R,k=>{let b=[];a.length>0&&b.push(F(a.join(", "),k.nodes));for(let $ of n)b.push(W($,k.nodes));k.nodes=b},{compounds:ie([...a,...n])})});return}else{m.push(P=>{P.variants.fromAst(R,v.nodes)});return}}if(v.name==="@media"){let R=j(v.params," "),E=[];for(let P of R)if(P.startsWith("source(")){let n=P.slice(7,-1);_(v.nodes,(a,{replaceWith:f})=>{if(a.kind==="at-rule"&&a.name==="@tailwind"&&a.params==="utilities")return a.params+=` source(${n})`,f([Z({sourceBase:N.base},[a])]),2})}else if(P.startsWith("theme(")){let n=P.slice(6,-1);_(v.nodes,a=>{if(a.kind!=="at-rule")throw new Error('Files imported with `@import "\u2026" theme(\u2026)` must only contain `@theme` blocks.');if(a.name==="@theme")return a.params+=" "+n,1})}else if(P.startsWith("prefix(")){let n=P.slice(7,-1);_(v.nodes,a=>{if(a.kind==="at-rule"&&a.name==="@theme")return a.params+=` prefix(${n})`,1})}else P==="important"?c=!0:P==="reference"?v.nodes=[Z({reference:!0},v.nodes)]:E.push(P);E.length>0?v.params=E.join(" "):R.length>0&&T(v.nodes)}if(v.name==="@theme"){let[R,E]=Zr(v.params);if(N.reference&&(R|=2),E){if(!Jr.test(E))throw new Error(`The prefix "${E}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);s.prefix=E}return _(v.nodes,P=>{if(P.kind==="at-rule"&&P.name==="@keyframes")return R&2?1:(s.addKeyframes(P),1);if(P.kind==="comment")return;if(P.kind==="declaration"&&P.property.startsWith("--")){s.add(we(P.property),P.value??"",R);return}let n=J([O(v.name,v.params,[P])]).split(`
`).map((a,f,k)=>`${f===0||f>=k.length-2?" ":">"} ${a}`).join(`
`);throw new Error(`\`@theme\` blocks must only contain custom properties or \`@keyframes\`.
${n}`)}),!u&&!(R&2)?(u=F(":root, :host",[]),T([u])):T([]),1}}});let w=At(s);c&&(w.important=c),o|=await tr({designSystem:w,base:r,ast:t,loadModule:i,globs:g});for(let v of m)v(w);for(let v of p)v(w);if(u){let v=[];for(let[T,N]of w.theme.entries())N.options&2||v.push(l(ye(T),N.value));let x=w.theme.getKeyframes();for(let T of x)v.push(D([T]));u.nodes=[Z({theme:!0},v)]}if(d){let v=d;v.kind="context",v.context={}}if(h.length>0){for(let v of h){let x=F("&",v.nodes),T=v.params,N=w.parseVariant(T);if(N===null)throw new Error(`Cannot use \`@variant\` with unknown variant: ${T}`);if(se(x,N,w.variants)===null)throw new Error(`Cannot use \`@variant\` with variant: ${T}`);Object.assign(v,x)}o|=32}return o|=ae(t,w),o|=ge(t,w),_(t,(v,{replaceWith:x})=>{if(v.kind==="at-rule")return v.name==="@utility"&&x([]),1}),{designSystem:w,ast:t,globs:g,root:y,utilitiesNode:d,features:o}}async function Yr(t,r={}){let{designSystem:i,ast:e,globs:o,root:c,utilitiesNode:s,features:m}=await rr(t,r);e.unshift(Le(`! tailwindcss v${Ge} | MIT License | https://tailwindcss.com `));function p(g){i.invalidCandidates.add(g)}let u=new Set,d=null,h=0;return{globs:o,root:c,features:m,build(g){if(m===0)return t;if(!s)return d??=te(e,i),d;let y=!1,w=u.size;for(let x of g)i.invalidCandidates.has(x)||(x[0]==="-"&&x[1]==="-"?i.theme.markUsedVariable(x):u.add(x),y||=u.size!==w);if(!y)return d??=te(e,i),d;let v=Q(u,i,{onInvalidCandidate:p}).astNodes;return h===v.length?(d??=te(e,i),d):(h=v.length,s.nodes=v,d=te(e,i),d)}}}async function So(t,r={}){let i=ee(t),e=await Yr(i,r),o=i,c=t;return{...e,build(s){let m=e.build(s);return m===o||(c=J(m),o=m),c}}}async function Eo(t,r={}){return(await rr(ee(t),r)).designSystem}function Xr(){throw new Error("It looks like you're trying to use `tailwindcss` directly as a PostCSS plugin. The PostCSS plugin has moved to a separate package, so to continue using Tailwind CSS with PostCSS you'll need to install `@tailwindcss/postcss` and update your PostCSS configuration.")}export{de as Features,Eo as __unstable__loadDesignSystem,So as compile,Yr as compileAst,Xr as default};
+10
View File
@@ -0,0 +1,10 @@
import { a as PluginFn, C as Config, b as PluginWithConfig, c as PluginWithOptions } from './types-BTRmm49E.mjs';
import './resolve-config-QUZ9b-Gn.mjs';
import './colors.mjs';
declare function createPlugin(handler: PluginFn, config?: Partial<Config>): PluginWithConfig;
declare namespace createPlugin {
var withOptions: <T>(pluginFunction: (options?: T) => PluginFn, configFunction?: (options?: T) => Partial<Config>) => PluginWithOptions<T>;
}
export { createPlugin as default };
+104
View File
@@ -0,0 +1,104 @@
import { P as PluginUtils, N as NamedUtilityValue } from './resolve-config-BIFUA2FY.js';
import './colors-b_6i0Oi7.js';
type ResolvableTo<T> = T | ((utils: PluginUtils) => T);
type ThemeValue = ResolvableTo<Record<string, unknown>> | null | undefined;
type ThemeConfig = Record<string, ThemeValue> & {
extend?: Record<string, ThemeValue>;
};
type ContentFile = string | {
raw: string;
extension?: string;
};
type DarkModeStrategy = false | 'media' | 'class' | ['class', string] | 'selector' | ['selector', string] | ['variant', string | string[]];
interface UserConfig {
presets?: UserConfig[];
theme?: ThemeConfig;
plugins?: Plugin[];
}
interface UserConfig {
content?: ContentFile[] | {
relative?: boolean;
files: ContentFile[];
};
}
interface UserConfig {
darkMode?: DarkModeStrategy;
}
interface UserConfig {
prefix?: string;
}
interface UserConfig {
blocklist?: string[];
}
interface UserConfig {
important?: boolean | string;
}
interface UserConfig {
future?: 'all' | Record<string, boolean>;
}
type Config = UserConfig;
type PluginFn = (api: PluginAPI) => void;
type PluginWithConfig = {
handler: PluginFn;
config?: UserConfig;
/** @internal */
reference?: boolean;
};
type PluginWithOptions<T> = {
(options?: T): PluginWithConfig;
__isOptionsFunction: true;
};
type Plugin = PluginFn | PluginWithConfig | PluginWithOptions<any>;
type PluginAPI = {
addBase(base: CssInJs): void;
addVariant(name: string, variant: string | string[] | CssInJs): void;
matchVariant<T = string>(name: string, cb: (value: T | string, extra: {
modifier: string | null;
}) => string | string[], options?: {
values?: Record<string, T>;
sort?(a: {
value: T | string;
modifier: string | null;
}, b: {
value: T | string;
modifier: string | null;
}): number;
}): void;
addUtilities(utilities: Record<string, CssInJs | CssInJs[]> | Record<string, CssInJs | CssInJs[]>[], options?: {}): void;
matchUtilities(utilities: Record<string, (value: string, extra: {
modifier: string | null;
}) => CssInJs | CssInJs[]>, options?: Partial<{
type: string | string[];
supportsNegativeValues: boolean;
values: Record<string, string> & {
__BARE_VALUE__?: (value: NamedUtilityValue) => string | undefined;
};
modifiers: 'any' | Record<string, string>;
}>): void;
addComponents(utilities: Record<string, CssInJs> | Record<string, CssInJs>[], options?: {}): void;
matchComponents(utilities: Record<string, (value: string, extra: {
modifier: string | null;
}) => CssInJs>, options?: Partial<{
type: string | string[];
supportsNegativeValues: boolean;
values: Record<string, string> & {
__BARE_VALUE__?: (value: NamedUtilityValue) => string | undefined;
};
modifiers: 'any' | Record<string, string>;
}>): void;
theme(path: string, defaultValue?: any): any;
config(path?: string, defaultValue?: any): any;
prefix(className: string): string;
};
type CssInJs = {
[key: string]: string | string[] | CssInJs | CssInJs[];
};
declare function createPlugin(handler: PluginFn, config?: Partial<Config>): PluginWithConfig;
declare namespace createPlugin {
var withOptions: <T>(pluginFunction: (options?: T) => PluginFn, configFunction?: (options?: T) => Partial<Config>) => PluginWithOptions<T>;
}
export { createPlugin as default };
+1
View File
@@ -0,0 +1 @@
"use strict";function u(i,n){return{handler:i,config:n}}u.withOptions=function(i,n=()=>({})){function t(o){return{handler:i(o),config:n(o)}}return t.__isOptionsFunction=!0,t};var g=u;module.exports=g;
+1
View File
@@ -0,0 +1 @@
function u(n,i){return{handler:n,config:i}}u.withOptions=function(n,i=()=>({})){function t(o){return{handler:n(o),config:i(o)}}return t.__isOptionsFunction=!0,t};var g=u;export{g as default};
+29
View File
@@ -0,0 +1,29 @@
import { _ as _default } from './colors-b_6i0Oi7.js';
type NamedUtilityValue = {
kind: 'named';
/**
* ```
* bg-red-500
* ^^^^^^^
*
* w-1/2
* ^
* ```
*/
value: string;
/**
* ```
* w-1/2
* ^^^
* ```
*/
fraction: string | null;
};
type PluginUtils = {
theme: (keypath: string, defaultValue?: any) => any;
colors: typeof _default;
};
export type { NamedUtilityValue as N, PluginUtils as P };
+190
View File
@@ -0,0 +1,190 @@
import _default from './colors.mjs';
type ArbitraryUtilityValue = {
kind: 'arbitrary';
/**
* ```
* bg-[color:var(--my-color)]
* ^^^^^
*
* bg-(color:--my-color)
* ^^^^^
* ```
*/
dataType: string | null;
/**
* ```
* bg-[#0088cc]
* ^^^^^^^
*
* bg-[var(--my_variable)]
* ^^^^^^^^^^^^^^^^^^
*
* bg-(--my_variable)
* ^^^^^^^^^^^^^^
* ```
*/
value: string;
};
type NamedUtilityValue = {
kind: 'named';
/**
* ```
* bg-red-500
* ^^^^^^^
*
* w-1/2
* ^
* ```
*/
value: string;
/**
* ```
* w-1/2
* ^^^
* ```
*/
fraction: string | null;
};
type ArbitraryModifier = {
kind: 'arbitrary';
/**
* ```
* bg-red-500/[50%]
* ^^^
* ```
*/
value: string;
};
type NamedModifier = {
kind: 'named';
/**
* ```
* bg-red-500/50
* ^^
* ```
*/
value: string;
};
type ArbitraryVariantValue = {
kind: 'arbitrary';
value: string;
};
type NamedVariantValue = {
kind: 'named';
value: string;
};
type Variant =
/**
* Arbitrary variants are variants that take a selector and generate a variant
* on the fly.
*
* E.g.: `[&_p]`
*/
{
kind: 'arbitrary';
selector: string;
relative: boolean;
}
/**
* Static variants are variants that don't take any arguments.
*
* E.g.: `hover`
*/
| {
kind: 'static';
root: string;
}
/**
* Functional variants are variants that can take an argument. The argument is
* either a named variant value or an arbitrary variant value.
*
* E.g.:
*
* - `aria-disabled`
* - `aria-[disabled]`
* - `@container-size` -> @container, with named value `size`
* - `@container-[inline-size]` -> @container, with arbitrary variant value `inline-size`
* - `@container` -> @container, with no value
*/
| {
kind: 'functional';
root: string;
value: ArbitraryVariantValue | NamedVariantValue | null;
modifier: ArbitraryModifier | NamedModifier | null;
}
/**
* Compound variants are variants that take another variant as an argument.
*
* E.g.:
*
* - `has-[&_p]`
* - `group-*`
* - `peer-*`
*/
| {
kind: 'compound';
root: string;
modifier: ArbitraryModifier | NamedModifier | null;
variant: Variant;
};
type Candidate =
/**
* Arbitrary candidates are candidates that register utilities on the fly with
* a property and a value.
*
* E.g.:
*
* - `[color:red]`
* - `[color:red]/50`
* - `[color:red]/50!`
*/
{
kind: 'arbitrary';
property: string;
value: string;
modifier: ArbitraryModifier | NamedModifier | null;
variants: Variant[];
important: boolean;
raw: string;
}
/**
* Static candidates are candidates that don't take any arguments.
*
* E.g.:
*
* - `underline`
* - `box-border`
*/
| {
kind: 'static';
root: string;
variants: Variant[];
important: boolean;
raw: string;
}
/**
* Functional candidates are candidates that can take an argument.
*
* E.g.:
*
* - `bg-red-500`
* - `bg-[#0088cc]`
* - `w-1/2`
*/
| {
kind: 'functional';
root: string;
value: ArbitraryUtilityValue | NamedUtilityValue | null;
modifier: ArbitraryModifier | NamedModifier | null;
variants: Variant[];
important: boolean;
raw: string;
};
type PluginUtils = {
theme: (keypath: string, defaultValue?: any) => any;
colors: typeof _default;
};
export type { Candidate as C, NamedUtilityValue as N, PluginUtils as P, Variant as V };
+98
View File
@@ -0,0 +1,98 @@
import { N as NamedUtilityValue, P as PluginUtils } from './resolve-config-QUZ9b-Gn.mjs';
type Config = UserConfig;
type PluginFn = (api: PluginAPI) => void;
type PluginWithConfig = {
handler: PluginFn;
config?: UserConfig;
/** @internal */
reference?: boolean;
};
type PluginWithOptions<T> = {
(options?: T): PluginWithConfig;
__isOptionsFunction: true;
};
type Plugin = PluginFn | PluginWithConfig | PluginWithOptions<any>;
type PluginAPI = {
addBase(base: CssInJs): void;
addVariant(name: string, variant: string | string[] | CssInJs): void;
matchVariant<T = string>(name: string, cb: (value: T | string, extra: {
modifier: string | null;
}) => string | string[], options?: {
values?: Record<string, T>;
sort?(a: {
value: T | string;
modifier: string | null;
}, b: {
value: T | string;
modifier: string | null;
}): number;
}): void;
addUtilities(utilities: Record<string, CssInJs | CssInJs[]> | Record<string, CssInJs | CssInJs[]>[], options?: {}): void;
matchUtilities(utilities: Record<string, (value: string, extra: {
modifier: string | null;
}) => CssInJs | CssInJs[]>, options?: Partial<{
type: string | string[];
supportsNegativeValues: boolean;
values: Record<string, string> & {
__BARE_VALUE__?: (value: NamedUtilityValue) => string | undefined;
};
modifiers: 'any' | Record<string, string>;
}>): void;
addComponents(utilities: Record<string, CssInJs> | Record<string, CssInJs>[], options?: {}): void;
matchComponents(utilities: Record<string, (value: string, extra: {
modifier: string | null;
}) => CssInJs>, options?: Partial<{
type: string | string[];
supportsNegativeValues: boolean;
values: Record<string, string> & {
__BARE_VALUE__?: (value: NamedUtilityValue) => string | undefined;
};
modifiers: 'any' | Record<string, string>;
}>): void;
theme(path: string, defaultValue?: any): any;
config(path?: string, defaultValue?: any): any;
prefix(className: string): string;
};
type CssInJs = {
[key: string]: string | string[] | CssInJs | CssInJs[];
};
type ResolvableTo<T> = T | ((utils: PluginUtils) => T);
type ThemeValue = ResolvableTo<Record<string, unknown>> | null | undefined;
type ThemeConfig = Record<string, ThemeValue> & {
extend?: Record<string, ThemeValue>;
};
type ContentFile = string | {
raw: string;
extension?: string;
};
type DarkModeStrategy = false | 'media' | 'class' | ['class', string] | 'selector' | ['selector', string] | ['variant', string | string[]];
interface UserConfig {
presets?: UserConfig[];
theme?: ThemeConfig;
plugins?: Plugin[];
}
interface UserConfig {
content?: ContentFile[] | {
relative?: boolean;
files: ContentFile[];
};
}
interface UserConfig {
darkMode?: DarkModeStrategy;
}
interface UserConfig {
prefix?: string;
}
interface UserConfig {
blocklist?: string[];
}
interface UserConfig {
important?: boolean | string;
}
interface UserConfig {
future?: 'all' | Record<string, boolean>;
}
export type { Config as C, Plugin as P, UserConfig as U, PluginFn as a, PluginWithConfig as b, PluginWithOptions as c };