@stacksjs/ts-css 0.3.26 → 0.3.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ import{e,o,n}from"./chunk-8h5zg4ad.js";import{r}from"./chunk-dbj97h19.js";import{c}from"./chunk-vbjv9wf0.js";var A={};c(A,{compressTree:()=>p,dedupeDeclarations:()=>u,minify:()=>h,minifyBlock:()=>a,removeComments:()=>s,specificity:()=>l,specificityToString:()=>S,syntax:()=>w});function s(i,t={}){let f=t.exclamation??!1,y=!1;n(i,(m,b,g)=>{if(m.type!=="Comment")return;let d=m.value.startsWith("!");if(f===!0&&d)return;if(f==="first-exclamation"&&d&&!y){y=!0;return}if(b&&g)g.remove(b)})}function u(i){n(i,(t)=>{if(t.type!=="Block"&&t.type!=="DeclarationList")return;if(!("children"in t)||!t.children)return;let f=t.children,y=f.head;if(y==null||y.next==null)return;let m=0;for(let d=y;d!=null;d=d.next)if(d.data.type==="Declaration"){if(m++,m>=2)break}if(m<2)return;let b=new Map,g=[];for(let d=y;d!=null;d=d.next){let x=d.data;if(x.type!=="Declaration")continue;let v=x.property,N=b.get(v);if(N){let U=!!N.decl.important,R=!!x.important;if(R||U===R)g.push(N.item),b.set(v,{item:d,decl:x});else g.push(d)}else b.set(v,{item:d,decl:x})}for(let d of g)f.remove(d)})}var z={black:"#000",fuchsia:"#f0f",white:"#fff",red:"#f00",cyan:"#0ff",blue:"#00f",yellow:"#ff0",magenta:"#f0f",lime:"#0f0",silver:"#c0c0c0",gray:"#808080",maroon:"#800000",olive:"#808000",green:"#008000",purple:"#800080",teal:"#008080",navy:"#000080"},G={"#f00":"red","#ff0000":"red","#000080":"navy","#008080":"teal"};function O(i){if(!i.startsWith("#"))return i;let t=i.slice(1);if(t.length===6){if(t[0]===t[1]&&t[2]===t[3]&&t[4]===t[5])return`#${t[0]}${t[2]}${t[4]}`}if(t.length===8){if(t[0]===t[1]&&t[2]===t[3]&&t[4]===t[5]&&t[6]===t[7])return`#${t[0]}${t[2]}${t[4]}${t[6]}`}return i}function W(i){let t=i.toLowerCase();return z[t]??null}function P(i){let t=i.toLowerCase();return G[t]??null}function X(i,t,f){let y=(i<<16|t<<8|f).toString(16).padStart(6,"0");return O(`#${y}`)}var j=/^rgba?\(\s*([+-]?\d*\.?\d+%?)\s*[,\s]\s*([+-]?\d*\.?\d+%?)\s*[,\s]\s*([+-]?\d*\.?\d+%?)\s*(?:[,/]\s*([+-]?\d*\.?\d+%?)\s*)?\)$/;function T(i){let t=j.exec(i.trim());if(!t)return i;let f=k(t[1]),y=k(t[2]),m=k(t[3]);if(t[4]!==void 0&&!V(t[4]))return i;return X(f,y,m)}function V(i){if(i.endsWith("%"))return Number.parseFloat(i)>=100;return Number.parseFloat(i)>=1}function k(i){if(i.endsWith("%"))return Math.max(0,Math.min(255,Math.round(Number.parseFloat(i)*2.55)));return Math.max(0,Math.min(255,Math.round(Number.parseFloat(i))))}var Z=new Set(["px","pt","pc","in","cm","mm","q","em","rem","ex","ch","cap","ic","lh","rlh","vw","vh","vi","vb","vmin","vmax","svw","svh","svi","svb","svmin","svmax","lvw","lvh","lvi","lvb","lvmin","lvmax","dvw","dvh","dvi","dvb","dvmin","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"]);function C(i){if(i.charCodeAt(0)===43)i=i.slice(1);if(i.includes(".")){let t=i.replace(/(\.\d*?)0+($|[eE])/,"$1$2");t=t.replace(/\.($|[eE])/,"$1"),i=t}if(i.startsWith("0.")&&i.length>2)i=i.slice(1);else if(i.startsWith("-0.")&&i.length>3)i=`-${i.slice(2)}`;if(i==="-0"||i==="-.0"||i==="-0.0")i="0";return i}function I(i,t){let f=C(i);if((f==="0"||f==="-0")&&Z.has(t.toLowerCase()))return{value:"0",unit:""};return{value:f,unit:t}}function H(i){return C(i)}function D(i,t){let f=Number.parseFloat(i);if(!Number.isFinite(f))return i;let y=t<0?0:t;return f.toFixed(y)}var L=new Set(["color","background","background-color","border","border-color","border-top","border-top-color","border-right","border-right-color","border-bottom","border-bottom-color","border-left","border-left-color","border-block","border-block-color","border-block-start-color","border-block-end-color","border-inline","border-inline-color","border-inline-start-color","border-inline-end-color","outline","outline-color","caret-color","fill","stroke","flood-color","lighting-color","stop-color","column-rule","column-rule-color","text-decoration","text-decoration-color","text-emphasis","text-emphasis-color","text-shadow","box-shadow","accent-color","scrollbar-color"]);function _(i){if(!i||i.type!=="Operator")return!1;let t=i.value;return t===":"||t===","||t==="/"}function J(i){let t=i.children;if(!t)return;while(t.head&&t.head.data.type==="WhiteSpace")t.remove(t.head);while(t.tail&&t.tail.data.type==="WhiteSpace")t.remove(t.tail);let f=t.head;while(f){let y=f.next;if(f.data.type==="WhiteSpace"){let m=f.prev&&_(f.prev.data),b=y&&_(y.data);if(m||b)t.remove(f)}f=y}}function K(i){return i?.property.toLowerCase()==="unicode-range"}function p(i,t={}){let f=t.floatPrecision??null,y=f===null?null:(m)=>D(m,f);n(i,{enter(m,b,g){if((m.type==="Number"||m.type==="Percentage"||m.type==="Dimension")&&K(this.declaration))return;switch(m.type){case"Number":{let d=y?y(m.value):m.value;m.value=C(d);return}case"Percentage":{let d=y?y(m.value):m.value;m.value=H(d);return}case"Dimension":{let d=y?y(m.value):m.value,x=I(d,m.unit);m.value=x.value,m.unit=x.unit;return}case"Hash":{let d=O(`#${m.name}`).slice(1);if(m.name=d,b&&g&&this.declaration&&L.has(this.declaration.property.toLowerCase())){let x=P(`#${d}`);if(x&&x.length<d.length+1){let v={type:"Identifier",name:x,loc:m.loc};g.replace(b,g.createItem(v))}}return}case"Identifier":{if(!b||!g||!this.declaration)return;if(!L.has(this.declaration.property.toLowerCase()))return;let d=W(m.name);if(d&&d.length<m.name.length){let x={type:"Hash",name:d.slice(1),loc:m.loc};g.replace(b,g.createItem(x))}return}case"Url":return;case"Function":{let d=m.name.toLowerCase();if((d==="rgb"||d==="rgba")&&b&&g)m.__rgbReplaceCandidate=!0}}},leave(m,b,g){if(m.type==="Parentheses"||m.type==="Function"||m.type==="Value")J(m);if(m.type==="Function"&&m.__rgbReplaceCandidate&&b&&g){let d=e(m),x=T(d);if(x!==d&&x.startsWith("#")){let v={type:"Hash",name:x.slice(1),loc:m.loc};g.replace(b,g.createItem(v))}}}})}function h(i,t={}){let f=o(i,{context:"stylesheet"});return E(f,t)}function a(i,t={}){let f=o(i,{context:"declarationList"});return E(f,t)}function E(i,t){if(t.comments===!1)s(i,{exclamation:!1});else if(t.comments==="first-exclamation")s(i,{exclamation:"first-exclamation"});else s(i,{exclamation:!0});return p(i,{floatPrecision:t.floatPrecision??null}),u(i),{css:e(i),ast:i}}function l(i){let t=[0,0,0];if(typeof i==="string"){let f=r(i);return F(f,t),t}if(Array.isArray(i)){if(i.length===0)return t;if(Array.isArray(i[0]))F(i,t);else M(i,t);return t}return q(i,t),t}function q(i,t){switch(i.type){case"IdSelector":t[0]++;return;case"ClassSelector":case"AttributeSelector":t[1]++;return;case"TypeSelector":if(i.name!=="*")t[2]++;return;case"PseudoClassSelector":{let f=i.name.toLowerCase();if(f==="is"||f==="matches"||f==="-moz-any"||f==="-webkit-any"||f==="not"||f==="has"){if(i.children){let y=[];for(let b of i.children)if(b.type==="SelectorList"&&"children"in b&&b.children)for(let g of b.children)y.push(g);else if(b.type==="Selector")y.push(b);let m=[0,0,0];for(let b of y){let g=l(b);if(B(g,m)>0)m=g}t[0]+=m[0],t[1]+=m[1],t[2]+=m[2]}return}if(f==="where")return;t[1]++;return}case"PseudoElementSelector":t[2]++;return;case"Selector":case"SelectorList":case"AtrulePrelude":if("children"in i&&i.children)for(let f of i.children)q(f,t);return;case"NestingSelector":return}}function F(i,t){for(let f of i)M(f,t)}function M(i,t){for(let f of i)switch(f.type){case"tag":if(f.name!=="*")t[2]++;break;case"attribute":if(f.name==="id"&&f.action==="equals")t[0]++;else t[1]++;break;case"pseudo":{let y=f.name.toLowerCase();if(y==="is"||y==="matches"||y==="not"||y==="has"||y==="-moz-any"||y==="-webkit-any"){if(Array.isArray(f.data)){let m=[0,0,0];for(let b of f.data){let g=[0,0,0];if(M(b,g),B(g,m)>0)m=g}t[0]+=m[0],t[1]+=m[1],t[2]+=m[2]}break}if(y==="where")break;t[1]++;break}case"pseudo-element":t[2]++;break}}function B(i,t){for(let f=0;f<3;f++)if(i[f]!==t[f])return i[f]-t[f];return 0}function S(i){return i.join(",")}var w={specificity:l};
3
+ export{s,u,p,h,a,l,S,w,A};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{r}from"./chunk-dbj97h19.js";import{c}from"./chunk-vbjv9wf0.js";var C={};c(C,{clearSelectorCache:()=>P,compile:()=>g,is:()=>k,parseAndCompile:()=>i,selectAll:()=>v,selectOne:()=>R});function x(s,n,t,l){let a=[],d=[n],o=[0];for(;;){if(o[0]>=d[0].length){if(d.length===1)return a;d.shift(),o.shift();continue}let e=d[0][o[0]++];if(!t.isTag(e))continue;if(s(e))a.push(e);if(l||t.getName(e)!=="template"){let u=t.getChildren(e);if(u.length>0)d.unshift(u),o.unshift(0)}}}function Q(s,n,t,l){let a=[n],d=[0];for(;;){if(d[0]>=a[0].length){if(a.length===1)return null;a.shift(),d.shift();continue}let o=a[0][d[0]++];if(!t.isTag(o))continue;if(s(o))return o;if(l||t.getName(o)!=="template"){let e=t.getChildren(o);if(e.length>0)a.unshift(e),d.unshift(0)}}}function O(s,n){if(Array.isArray(s))return n.removeSubsets(s);return n.getChildren(s)}var E=(s)=>!0;function L(s){return s===32||s===9||s===10||s===12||s===13}function w(s,n){let t=n.length,l=s.length;if(t===0||t>l)return!1;let a=s.indexOf(n);while(a>=0){let d=a===0||L(s.charCodeAt(a-1)),o=a+t,e=o===l||L(s.charCodeAt(o));if(d&&e)return!0;a=s.indexOf(n,a+1)}return!1}function q(s,n,t){if(n.ignoreCase===!0)return!0;if(n.ignoreCase===!1)return!1;if(n.ignoreCase==="quirks")return!t.xmlMode;return!1}function V(s,n,t){let l=n.adapter,{action:a,name:d,value:o}=s,e=q(o,s,n);if(e)o=o.toLowerCase();return D(a,d,o,e,l,t)}function D(s,n,t,l,a,d){let o=d===E;switch(s){case"exists":if(o)return(e)=>a.hasAttrib(e,n);return(e)=>a.hasAttrib(e,n)&&d(e);case"equals":if(!l){if(o)return(e)=>a.getAttributeValue(e,n)===t;return(e)=>a.getAttributeValue(e,n)===t&&d(e)}if(o)return(e)=>{let u=a.getAttributeValue(e,n);if(u==null)return!1;return u.toLowerCase()===t};return(e)=>{let u=a.getAttributeValue(e,n);if(u==null)return!1;return u.toLowerCase()===t&&d(e)};case"not":return(e)=>{let u=a.getAttributeValue(e,n);if(u==null)return d(e);return(l?u.toLowerCase():u)!==t&&d(e)};case"start":if(t==="")return()=>!1;if(o)return(e)=>{let u=a.getAttributeValue(e,n);if(u==null)return!1;return(l?u.toLowerCase():u).startsWith(t)};return(e)=>{let u=a.getAttributeValue(e,n);if(u==null)return!1;return(l?u.toLowerCase():u).startsWith(t)&&d(e)};case"end":if(t==="")return()=>!1;if(o)return(e)=>{let u=a.getAttributeValue(e,n);if(u==null)return!1;return(l?u.toLowerCase():u).endsWith(t)};return(e)=>{let u=a.getAttributeValue(e,n);if(u==null)return!1;return(l?u.toLowerCase():u).endsWith(t)&&d(e)};case"any":{if(t==="")return()=>!1;if(l){if(o)return(e)=>{let u=a.getAttributeValue(e,n);if(u==null)return!1;return u.toLowerCase().indexOf(t)>=0};return(e)=>{let u=a.getAttributeValue(e,n);if(u==null)return!1;return u.toLowerCase().indexOf(t)>=0&&d(e)}}if(o)return(e)=>{let u=a.getAttributeValue(e,n);if(u==null)return!1;return u.indexOf(t)>=0};return(e)=>{let u=a.getAttributeValue(e,n);if(u==null)return!1;return u.indexOf(t)>=0&&d(e)}}case"element":{if(t===""||/\s/.test(t))return()=>!1;if(l){if(o)return(e)=>{let u=a.getAttributeValue(e,n);if(u==null)return!1;return w(u.toLowerCase(),t)};return(e)=>{let u=a.getAttributeValue(e,n);if(u==null)return!1;return w(u.toLowerCase(),t)&&d(e)}}if(o)return(e)=>{let u=a.getAttributeValue(e,n);if(u==null)return!1;return w(u,t)};return(e)=>{let u=a.getAttributeValue(e,n);if(u==null)return!1;return w(u,t)&&d(e)}}case"hyphen":if(o)return(e)=>{let u=a.getAttributeValue(e,n);if(u==null)return!1;let f=l?u.toLowerCase():u;if(f===t)return!0;if(f.startsWith(t)&&f.charAt(t.length)==="-")return!0;return!1};return(e)=>{let u=a.getAttributeValue(e,n);if(u==null)return!1;let f=l?u.toLowerCase():u;if(f===t)return d(e);if(f.startsWith(t)&&f.charAt(t.length)==="-")return d(e);return!1}}return(e)=>!1}var G=new Set(["link","any-link","visited","hover","active","focus","focus-visible","focus-within","target","target-within","enabled","disabled","checked","required","optional","valid","invalid","selected","placeholder-shown","read-only","read-write","in-range","out-of-range","default","indeterminate"]),I=new Set(["is","where","matches","-moz-any","-webkit-any"]),Y=new Set(["nth-child","nth-last-child","nth-of-type","nth-last-of-type"]);function W(s,n,t){let l=n.adapter,{name:a,data:d}=s;if(s.type==="pseudo"&&I.has(a)){if(!Array.isArray(d))return t;let o=d.map((e)=>i(e,n));if(o.length===1){let e=o[0];return(u)=>e(u)&&t(u)}return(e)=>{for(let u of o)if(u(e))return t(e);return!1}}if(s.type==="pseudo"&&a==="not"){if(!Array.isArray(d))return t;let o=d.map((e)=>i(e,n));if(o.length===1){let e=o[0];return(u)=>!e(u)&&t(u)}return(e)=>{for(let u of o)if(u(e))return!1;return t(e)}}if(s.type==="pseudo"&&a==="has"){if(!Array.isArray(d))return t;let o={current:null},e=d,u=e.map((m)=>i(m,n,o)),f=u.length===1?u[0]:(m)=>{for(let N of u)if(N(m))return!0;return!1},p=e.some((m)=>m[0]?.type==="adjacent"||m[0]?.type==="sibling");return(m)=>{let N=l.getChildren(m).slice();if(p){let y=l.getSiblings(m),h=y.indexOf(m);for(let b=h+1;b<y.length;b++)N.push(y[b])}let A=o.current;o.current=m;try{while(N.length>0){let y=N.pop();if(!l.isTag(y))continue;if(f(y))return t(m);let h=l.getChildren(y);for(let b=0;b<h.length;b++)N.push(h[b])}return!1}finally{o.current=A}}}if(s.type==="pseudo"&&Y.has(a)){let o=B(typeof d==="string"?d:"",a,n);return(e)=>o(e)&&t(e)}if(s.type==="pseudo"&&a==="first-child")return(o)=>{let e=l.getSiblings(o);for(let u of e){if(!l.isTag(u))continue;return u===o&&t(o)}return!1};if(s.type==="pseudo"&&a==="last-child")return(o)=>{let e=l.getSiblings(o);for(let u=e.length-1;u>=0;u--){let f=e[u];if(!l.isTag(f))continue;return f===o&&t(o)}return!1};if(s.type==="pseudo"&&a==="first-of-type")return(o)=>{let e=l.getName(o),u=l.getSiblings(o);for(let f of u){if(!l.isTag(f)||l.getName(f)!==e)continue;return f===o&&t(o)}return!1};if(s.type==="pseudo"&&a==="last-of-type")return(o)=>{let e=l.getName(o),u=l.getSiblings(o);for(let f=u.length-1;f>=0;f--){let p=u[f];if(!l.isTag(p)||l.getName(p)!==e)continue;return p===o&&t(o)}return!1};if(s.type==="pseudo"&&a==="only-child")return(o)=>{let e=l.getSiblings(o),u=0,f=!1;for(let p of e){if(!l.isTag(p))continue;if(u++,u>1)return!1;if(p===o)f=!0}return u===1&&f&&t(o)};if(s.type==="pseudo"&&a==="only-of-type")return(o)=>{let e=l.getName(o),u=l.getSiblings(o),f=0,p=!1;for(let m of u){if(!l.isTag(m)||l.getName(m)!==e)continue;if(f++,f>1)return!1;if(m===o)p=!0}return f===1&&p&&t(o)};if(s.type==="pseudo"&&a==="empty")return(o)=>l.getChildren(o).length===0&&t(o);if(s.type==="pseudo"&&a==="root")return(o)=>{let e=l.getParent(o);return(e==null||!l.isTag(e))&&t(o)};if(s.type==="pseudo"&&a==="scope"){if(n.context&&Array.isArray(n.context)){let o=new Set(n.context);return(e)=>o.has(e)&&t(e)}if(n.context){let o=n.context;return(e)=>e===o&&t(e)}return(o)=>{let e=l.getParent(o);return(e==null||!l.isTag(e))&&t(o)}}if(s.type==="pseudo"&&G.has(a)){if(n.pseudos&&n.pseudos[a]){let o=n.pseudos[a];if(typeof o==="function")return(e)=>o(e,void 0)&&t(e)}return(o)=>!1}if(s.type==="pseudo-element")return t;if(n.pseudos&&n.pseudos[a]){let o=n.pseudos[a];if(typeof o==="function")return(e)=>o(e,typeof d==="string"?d:void 0)&&t(e);if(typeof o==="string"){let e=r(o),u=S(e,n);return(f)=>u(f)&&t(f)}}return(o)=>!1}function F(s){let n=s.trim();if(n==="odd")return{a:2,b:1};if(n==="even")return{a:2,b:0};let t=/^([+-]?\d*)n([+-]\d+)?$/.exec(n.replace(/\s+/g,""));if(t){let a=t[1]===""||t[1]==="+"?1:t[1]==="-"?-1:Number(t[1]),d=t[2]?Number(t[2]):0;return{a,b:d}}let l=Number(n);if(!Number.isNaN(l))return{a:0,b:l};return null}function B(s,n,t){let l=F(s);if(!l)return()=>!1;let{a,b:d}=l,o=t.adapter,e=n==="nth-of-type"||n==="nth-last-of-type",u=n==="nth-last-child"||n==="nth-last-of-type";return(f)=>{let p=o.getSiblings(f),m=e?o.getName(f):"",N=0,A=0;for(let h of p){if(!o.isTag(h))continue;if(e&&o.getName(h)!==m)continue;if(A++,h===f)N=A}if(N===0)return!1;let y=u?A-N+1:N;if(a===0)return y===d;return(y-d)/a>=0&&(y-d)%a===0}}function M(s,n,t){let l=n.adapter,a=t===E;switch(s.type){case"tag":{let d=n.lowerCaseTags!==!1&&!n.xmlMode?s.name.toLowerCase():s.name;if(a)return(o)=>l.getName(o)===d;return(o)=>l.getName(o)===d&&t(o)}case"universal":return t;case"attribute":return V(s,n,t);case"pseudo":case"pseudo-element":return W(s,n,t);case"descendant":case"child":case"parent":case"sibling":case"adjacent":case"column-combinator":return t}return(d)=>!1}var z={universal:50,tag:30,attribute:1,pseudo:0,"pseudo-element":0},H={exists:10,equals:8,not:7,start:6,end:6,hyphen:5,any:4,element:3};function U(s){let n=z[s.type]??0;if(s.type==="attribute")return n+(H[s.action]??0);return n}function S(s,n){if(s.length===1)return i(s[0],n);let t=s.map((l)=>i(l,n));return(l)=>t.some((a)=>a(l))}function J(s){return s.type==="descendant"||s.type==="child"||s.type==="sibling"||s.type==="adjacent"||s.type==="parent"||s.type==="column-combinator"}function i(s,n,t){let l=n.adapter,a=[[]],d=[];for(let e of s)if(J(e))d.push(e),a.push([]);else a[a.length-1].push(e);if(t&&a[0].length>0)a.unshift([]),d.unshift({type:"descendant"});let o=t?(e)=>e===t.current:E;for(let e=0;e<a.length;e++){let u=a[e].slice().sort((f,p)=>U(f)-U(p));for(let f of u)o=M(f,n,o);if(e<d.length)o=K(d[e],o,l)}return o}function K(s,n,t){switch(s.type){case"descendant":case"column-combinator":return(l)=>{let a=t.getParent(l);while(a){if(t.isTag(a)&&n(a))return!0;a=t.getParent(a)}return!1};case"child":return(l)=>{let a=t.getParent(l);return a!=null&&t.isTag(a)&&n(a)};case"sibling":return(l)=>{let a=t.getSiblings(l);for(let d of a){if(d===l)return!1;if(t.isTag(d)&&n(d))return!0}return!1};case"adjacent":return(l)=>{let a=t.getSiblings(l),d=null;for(let o of a){if(o===l)return d!=null&&t.isTag(d)&&n(d);d=o}return!1};case"parent":return(l)=>t.existsOne(n,t.getChildren(l))}return(l)=>!1}function j(s){if(!s||!s.adapter)throw Error("css-select: adapter is required");return s.adapter}var T=new WeakMap;function X(s){return(s.xmlMode?1:0)<<0|(s.lowerCaseAttributeNames===!1?1:0)<<1|(s.lowerCaseTags===!1?1:0)<<2}function Z(s,n){let t=T.get(s);if(!t)t=[],T.set(s,t);let l=t[n];if(!l)l=new Map,t[n]=l;return l}function _(s,n){let t=r(s,{xmlMode:n.xmlMode,lowerCaseAttributeNames:n.lowerCaseAttributeNames,lowerCaseTags:n.lowerCaseTags});return S(t,n)}function g(s,n){if(typeof s!=="string")return S(s,n);if(n.cacheResults===!1||!n.adapter)return _(s,n);let t=Z(n.adapter,X(n)),l=t.get(s);if(l!==void 0)return l;return l=_(s,n),t.set(s,l),l}function P(s,n){if(n===void 0){T.delete(s);return}let t=T.get(s);if(!t)return;for(let l of t)if(l)l.delete(n)}function v(s,n,t){let l=j(t),a=typeof s==="function"?s:g(s,t),d=O(n,l);return x(a,d,l,t.xmlMode===!0)}function R(s,n,t){let l=j(t),a=typeof s==="function"?s:g(s,t),d=O(n,l);return Q(a,d,l,t.xmlMode===!0)}function k(s,n,t){return(typeof n==="function"?n:g(n,t))(s)}export{i,g,P,v,R,k,C};
@@ -21,5 +21,6 @@ export declare class CSSGenerator {
21
21
  escapeSelector(className: string): string;
22
22
  toCSS(includePreflight?: boolean, minify?: boolean): string;
23
23
  rulesFor(className: string): CSSRule[];
24
+ variables(mode?: string): Record<string, string>;
24
25
  reset(): void;
25
26
  }
@@ -6,6 +6,7 @@ export * from './plugin';
6
6
  export * from './preflight';
7
7
  export * from './preflight-forms';
8
8
  export * from './rules';
9
+ export * from './resolve';
9
10
  export * from './safelist';
10
11
  export * from './stylesheet';
11
12
  export * from './rules-mask';