tailwindcss 4.0.0-beta.7 → 4.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.js +1 -1
- package/dist/lib.mjs +1 -1
- package/package.json +2 -2
package/dist/lib.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";var Kr=Object.defineProperty;var _r=(t,r)=>{for(var n in r)Kr(t,n,{get:r[n],enumerable:!0})};var We={};_r(We,{Features:()=>pe,__unstable__loadDesignSystem:()=>li,compile:()=>oi,compileAst:()=>Or,default:()=>Ce});var dt="4.0.0-beta.
|
1
|
+
"use strict";var Kr=Object.defineProperty;var _r=(t,r)=>{for(var n in r)Kr(t,n,{get:r[n],enumerable:!0})};var We={};_r(We,{Features:()=>pe,__unstable__loadDesignSystem:()=>li,compile:()=>oi,compileAst:()=>Or,default:()=>Ce});var dt="4.0.0-beta.8";var ge=92,$e=47,Te=42,Pr=34,Ur=39,jr=58,Se=59,te=10,he=32,Ve=9,mt=123,qe=125,Je=40,gt=41,Fr=91,zr=93,ht=45,He=64,Lr=33;function re(t){t=t.replaceAll(`\r
|
2
2
|
`,`
|
3
3
|
`);let r=[],n=[],e=[],o=null,s=null,l="",f="",d;for(let c=0;c<t.length;c++){let p=t.charCodeAt(c);if(p===ge)l+=t.slice(c,c+2),c+=1;else if(p===$e&&t.charCodeAt(c+1)===Te){let h=c;for(let v=c+2;v<t.length;v++)if(d=t.charCodeAt(v),d===ge)v+=1;else if(d===Te&&t.charCodeAt(v+1)===$e){c=v+1;break}let g=t.slice(h,c+1);g.charCodeAt(2)===Lr&&n.push(Ee(g.slice(2,-2)))}else if(p===Ur||p===Pr){let h=c;for(let g=c+1;g<t.length;g++)if(d=t.charCodeAt(g),d===ge)g+=1;else if(d===p){c=g;break}else{if(d===Se&&t.charCodeAt(g+1)===te)throw new Error(`Unterminated string: ${t.slice(h,g+1)+String.fromCharCode(p)}`);if(d===te)throw new Error(`Unterminated string: ${t.slice(h,g)+String.fromCharCode(p)}`)}l+=t.slice(h,c+1)}else{if((p===he||p===te||p===Ve)&&(d=t.charCodeAt(c+1))&&(d===he||d===te||d===Ve))continue;if(p===te){if(l.length===0)continue;d=l.charCodeAt(l.length-1),d!==he&&d!==te&&d!==Ve&&(l+=" ")}else if(p===ht&&t.charCodeAt(c+1)===ht&&l.length===0){let h="",g=c,v=-1;for(let k=c+2;k<t.length;k++)if(d=t.charCodeAt(k),d===ge)k+=1;else if(d===$e&&t.charCodeAt(k+1)===Te){for(let $=k+2;$<t.length;$++)if(d=t.charCodeAt($),d===ge)$+=1;else if(d===Te&&t.charCodeAt($+1)===$e){k=$+1;break}}else if(v===-1&&d===jr)v=l.length+k-g;else if(d===Se&&h.length===0){l+=t.slice(g,k),c=k;break}else if(d===Je)h+=")";else if(d===Fr)h+="]";else if(d===mt)h+="}";else if((d===qe||t.length-1===k)&&h.length===0){c=k-1,l+=t.slice(g,k);break}else(d===gt||d===zr||d===qe)&&h.length>0&&t[k]===h[h.length-1]&&(h=h.slice(0,-1));let y=Ge(l,v);o?o.nodes.push(y):r.push(y),l=""}else if(p===Se&&l.charCodeAt(0)===He)s=ve(l),o?o.nodes.push(s):r.push(s),l="",s=null;else if(p===Se&&f[f.length-1]!==")"){let h=Ge(l);o?o.nodes.push(h):r.push(h),l=""}else if(p===mt&&f[f.length-1]!==")")f+="}",s=L(l.trim()),o&&o.nodes.push(s),e.push(o),o=s,l="",s=null;else if(p===qe&&f[f.length-1]!==")"){if(f==="")throw new Error("Missing opening {");if(f=f.slice(0,-1),l.length>0)if(l.charCodeAt(0)===He)s=ve(l),o?o.nodes.push(s):r.push(s),l="",s=null;else{let g=l.indexOf(":");o&&o.nodes.push(Ge(l,g))}let h=e.pop()??null;h===null&&o&&r.push(o),o=h,l="",s=null}else if(p===Je)f+=")",l+="(";else if(p===gt){if(f[f.length-1]!==")")throw new Error("Missing opening (");f=f.slice(0,-1),l+=")"}else{if(l.length===0&&(p===he||p===te||p===Ve))continue;l+=String.fromCharCode(p)}}}if(l.charCodeAt(0)===He&&r.push(ve(l)),f.length>0&&o){if(o.kind==="rule")throw new Error(`Missing closing } at ${o.selector}`);if(o.kind==="at-rule")throw new Error(`Missing closing } at ${o.name} ${o.params}`)}return n.length>0?n.concat(r):r}function ve(t,r=[]){for(let n=5;n<t.length;n++){let e=t.charCodeAt(n);if(e===he||e===Je){let o=t.slice(0,n).trim(),s=t.slice(n).trim();return _(o,s,r)}}return _(t.trim(),"",r)}function Ge(t,r=t.indexOf(":")){let n=t.indexOf("!important",r+1);return a(t.slice(0,r).trim(),t.slice(r+1,n===-1?t.length:n).trim(),n!==-1)}var Ir=64;function U(t,r=[]){return{kind:"rule",selector:t,nodes:r}}function _(t,r="",n=[]){return{kind:"at-rule",name:t,params:r,nodes:n}}function L(t,r=[]){return t.charCodeAt(0)===Ir?ve(t,r):U(t,r)}function a(t,r,n=!1){return{kind:"declaration",property:t,value:r,important:n}}function Ee(t){return{kind:"comment",value:t}}function ne(t,r){return{kind:"context",context:t,nodes:r}}function D(t){return{kind:"at-root",nodes:t}}function P(t,r,n=[],e={}){for(let o=0;o<t.length;o++){let s=t[o],l=[...n,s],f=n.at(-1)??null;if(s.kind==="context"){if(P(s.nodes,r,n,{...e,...s.context})===2)return 2;continue}let d=r(s,{parent:f,context:e,path:l,replaceWith(c){t.splice(o,1,...Array.isArray(c)?c:[c]),o--}})??0;if(d===2)return 2;if(d!==1&&(s.kind==="rule"||s.kind==="at-rule")&&P(s.nodes,r,l,e)===2)return 2}}function Re(t,r,n=[],e={}){for(let o=0;o<t.length;o++){let s=t[o],l=[...n,s],f=n.at(-1)??null;if(s.kind==="rule"||s.kind==="at-rule")Re(s.nodes,r,l,e);else if(s.kind==="context"){Re(s.nodes,r,n,{...e,...s.context});continue}r(s,{parent:f,context:e,path:l,replaceWith(d){t.splice(o,1,...d),o+=d.length-1}})}}function ie(t){let r=[],n=new Set,e=[],o=[];function s(f,d,c=0){if(f.kind==="declaration"){if(f.property==="--tw-sort"||f.value===void 0||f.value===null)return;d.push(f)}else if(f.kind==="rule"){let p={...f,nodes:[]};for(let h of f.nodes)s(h,p.nodes,c+1);d.push(p)}else if(f.kind==="at-rule"&&f.name==="@property"&&c===0){if(n.has(f.params))return;let p=f.params,h=null,g=!1;for(let y of f.nodes)y.kind==="declaration"&&(y.property==="initial-value"?h=y.value:y.property==="inherits"&&(g=y.value==="true"));g?e.push(a(p,h??"initial")):o.push(a(p,h??"initial")),n.add(f.params);let v={...f,nodes:[]};for(let y of f.nodes)s(y,v.nodes,c+1);d.push(v)}else if(f.kind==="at-rule"){let p={...f,nodes:[]};for(let h of f.nodes)s(h,p.nodes,c+1);d.push(p)}else if(f.kind==="at-root")for(let p of f.nodes){let h=[];s(p,h,0);for(let g of h)r.push(g)}else if(f.kind==="context")for(let p of f.nodes)s(p,d,c);else f.kind==="comment"&&d.push(f)}let l=[];for(let f of t)s(f,l,0);{let f=[];e.length>0&&f.push(L(":root",e)),o.length>0&&f.push(L("*, ::before, ::after, ::backdrop",o)),f.length>0&&l.push(_("@supports","(-moz-orient: inline)",[_("@layer","base",f)]))}return l.concat(r)}function Y(t){function r(e,o=0){let s="",l=" ".repeat(o);if(e.kind==="declaration")s+=`${l}${e.property}: ${e.value}${e.important?" !important":""};
|
4
4
|
`;else if(e.kind==="rule"){s+=`${l}${e.selector} {
|
package/dist/lib.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import{a as Ze,b as D,c as z,d as V,e as ue,f as we,g as tt}from"./chunk-XNK5LQL5.mjs";import{a as et}from"./chunk-AZANAYY2.mjs";import{a as oe,b as Qe,c as Xe}from"./chunk-2GIWH5DA.mjs";var rt="4.0.0-beta.
|
1
|
+
import{a as Ze,b as D,c as z,d as V,e as ue,f as we,g as tt}from"./chunk-XNK5LQL5.mjs";import{a as et}from"./chunk-AZANAYY2.mjs";import{a as oe,b as Qe,c as Xe}from"./chunk-2GIWH5DA.mjs";var rt="4.0.0-beta.8";var fe=92,ke=47,xe=42,cr=34,dr=39,pr=58,Ae=59,Z=10,ce=32,Ce=9,nt=123,Oe=125,De=40,it=41,gr=91,mr=93,ot=45,je=64,hr=33;function Q(t){t=t.replaceAll(`\r
|
2
2
|
`,`
|
3
3
|
`);let r=[],i=[],e=[],o=null,u=null,a="",c="",g;for(let f=0;f<t.length;f++){let d=t.charCodeAt(f);if(d===fe)a+=t.slice(f,f+2),f+=1;else if(d===ke&&t.charCodeAt(f+1)===xe){let h=f;for(let v=f+2;v<t.length;v++)if(g=t.charCodeAt(v),g===fe)v+=1;else if(g===xe&&t.charCodeAt(v+1)===ke){f=v+1;break}let m=t.slice(h,f+1);m.charCodeAt(2)===hr&&i.push($e(m.slice(2,-2)))}else if(d===dr||d===cr){let h=f;for(let m=f+1;m<t.length;m++)if(g=t.charCodeAt(m),g===fe)m+=1;else if(g===d){f=m;break}else{if(g===Ae&&t.charCodeAt(m+1)===Z)throw new Error(`Unterminated string: ${t.slice(h,m+1)+String.fromCharCode(d)}`);if(g===Z)throw new Error(`Unterminated string: ${t.slice(h,m)+String.fromCharCode(d)}`)}a+=t.slice(h,f+1)}else{if((d===ce||d===Z||d===Ce)&&(g=t.charCodeAt(f+1))&&(g===ce||g===Z||g===Ce))continue;if(d===Z){if(a.length===0)continue;g=a.charCodeAt(a.length-1),g!==ce&&g!==Z&&g!==Ce&&(a+=" ")}else if(d===ot&&t.charCodeAt(f+1)===ot&&a.length===0){let h="",m=f,v=-1;for(let k=f+2;k<t.length;k++)if(g=t.charCodeAt(k),g===fe)k+=1;else if(g===ke&&t.charCodeAt(k+1)===xe){for(let $=k+2;$<t.length;$++)if(g=t.charCodeAt($),g===fe)$+=1;else if(g===xe&&t.charCodeAt($+1)===ke){k=$+1;break}}else if(v===-1&&g===pr)v=a.length+k-m;else if(g===Ae&&h.length===0){a+=t.slice(m,k),f=k;break}else if(g===De)h+=")";else if(g===gr)h+="]";else if(g===nt)h+="}";else if((g===Oe||t.length-1===k)&&h.length===0){f=k-1,a+=t.slice(m,k);break}else(g===it||g===mr||g===Oe)&&h.length>0&&t[k]===h[h.length-1]&&(h=h.slice(0,-1));let y=Pe(a,v);o?o.nodes.push(y):r.push(y),a=""}else if(d===Ae&&a.charCodeAt(0)===je)u=de(a),o?o.nodes.push(u):r.push(u),a="",u=null;else if(d===Ae&&c[c.length-1]!==")"){let h=Pe(a);o?o.nodes.push(h):r.push(h),a=""}else if(d===nt&&c[c.length-1]!==")")c+="}",u=I(a.trim()),o&&o.nodes.push(u),e.push(o),o=u,a="",u=null;else if(d===Oe&&c[c.length-1]!==")"){if(c==="")throw new Error("Missing opening {");if(c=c.slice(0,-1),a.length>0)if(a.charCodeAt(0)===je)u=de(a),o?o.nodes.push(u):r.push(u),a="",u=null;else{let m=a.indexOf(":");o&&o.nodes.push(Pe(a,m))}let h=e.pop()??null;h===null&&o&&r.push(o),o=h,a="",u=null}else if(d===De)c+=")",a+="(";else if(d===it){if(c[c.length-1]!==")")throw new Error("Missing opening (");c=c.slice(0,-1),a+=")"}else{if(a.length===0&&(d===ce||d===Z||d===Ce))continue;a+=String.fromCharCode(d)}}}if(a.charCodeAt(0)===je&&r.push(de(a)),c.length>0&&o){if(o.kind==="rule")throw new Error(`Missing closing } at ${o.selector}`);if(o.kind==="at-rule")throw new Error(`Missing closing } at ${o.name} ${o.params}`)}return i.length>0?i.concat(r):r}function de(t,r=[]){for(let i=5;i<t.length;i++){let e=t.charCodeAt(i);if(e===ce||e===De){let o=t.slice(0,i).trim(),u=t.slice(i).trim();return O(o,u,r)}}return O(t.trim(),"",r)}function Pe(t,r=t.indexOf(":")){let i=t.indexOf("!important",r+1);return l(t.slice(0,r).trim(),t.slice(r+1,i===-1?t.length:i).trim(),i!==-1)}var vr=64;function _(t,r=[]){return{kind:"rule",selector:t,nodes:r}}function O(t,r="",i=[]){return{kind:"at-rule",name:t,params:r,nodes:i}}function I(t,r=[]){return t.charCodeAt(0)===vr?de(t,r):_(t,r)}function l(t,r,i=!1){return{kind:"declaration",property:t,value:r,important:i}}function $e(t){return{kind:"comment",value:t}}function X(t,r){return{kind:"context",context:t,nodes:r}}function j(t){return{kind:"at-root",nodes:t}}function P(t,r,i=[],e={}){for(let o=0;o<t.length;o++){let u=t[o],a=[...i,u],c=i.at(-1)??null;if(u.kind==="context"){if(P(u.nodes,r,i,{...e,...u.context})===2)return 2;continue}let g=r(u,{parent:c,context:e,path:a,replaceWith(f){t.splice(o,1,...Array.isArray(f)?f:[f]),o--}})??0;if(g===2)return 2;if(g!==1&&(u.kind==="rule"||u.kind==="at-rule")&&P(u.nodes,r,a,e)===2)return 2}}function Ne(t,r,i=[],e={}){for(let o=0;o<t.length;o++){let u=t[o],a=[...i,u],c=i.at(-1)??null;if(u.kind==="rule"||u.kind==="at-rule")Ne(u.nodes,r,a,e);else if(u.kind==="context"){Ne(u.nodes,r,i,{...e,...u.context});continue}r(u,{parent:c,context:e,path:a,replaceWith(g){t.splice(o,1,...g),o+=g.length-1}})}}function ee(t){let r=[],i=new Set,e=[],o=[];function u(c,g,f=0){if(c.kind==="declaration"){if(c.property==="--tw-sort"||c.value===void 0||c.value===null)return;g.push(c)}else if(c.kind==="rule"){let d={...c,nodes:[]};for(let h of c.nodes)u(h,d.nodes,f+1);g.push(d)}else if(c.kind==="at-rule"&&c.name==="@property"&&f===0){if(i.has(c.params))return;let d=c.params,h=null,m=!1;for(let y of c.nodes)y.kind==="declaration"&&(y.property==="initial-value"?h=y.value:y.property==="inherits"&&(m=y.value==="true"));m?e.push(l(d,h??"initial")):o.push(l(d,h??"initial")),i.add(c.params);let v={...c,nodes:[]};for(let y of c.nodes)u(y,v.nodes,f+1);g.push(v)}else if(c.kind==="at-rule"){let d={...c,nodes:[]};for(let h of c.nodes)u(h,d.nodes,f+1);g.push(d)}else if(c.kind==="at-root")for(let d of c.nodes){let h=[];u(d,h,0);for(let m of h)r.push(m)}else if(c.kind==="context")for(let d of c.nodes)u(d,g,f);else c.kind==="comment"&&g.push(c)}let a=[];for(let c of t)u(c,a,0);{let c=[];e.length>0&&c.push(I(":root",e)),o.length>0&&c.push(I("*, ::before, ::after, ::backdrop",o)),c.length>0&&a.push(O("@supports","(-moz-orient: inline)",[O("@layer","base",c)]))}return a.concat(r)}function G(t){function r(e,o=0){let u="",a=" ".repeat(o);if(e.kind==="declaration")u+=`${a}${e.property}: ${e.value}${e.important?" !important":""};
|
4
4
|
`;else if(e.kind==="rule"){u+=`${a}${e.selector} {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "tailwindcss",
|
3
|
-
"version": "4.0.0-beta.
|
3
|
+
"version": "4.0.0-beta.8",
|
4
4
|
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -71,7 +71,7 @@
|
|
71
71
|
"@types/node": "^20.14.8",
|
72
72
|
"lightningcss": "^1.26.0",
|
73
73
|
"dedent": "1.5.3",
|
74
|
-
"@tailwindcss/oxide": "4.0.0-beta.
|
74
|
+
"@tailwindcss/oxide": "4.0.0-beta.8"
|
75
75
|
},
|
76
76
|
"scripts": {
|
77
77
|
"lint": "tsc --noEmit",
|