@tailwindcss/browser 4.0.0-beta.10 → 4.0.0

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var xt="4.0.0-beta.10";var ye=92,Ve=47,Ee=42,Qr=34,Xr=39,eo=58,Re=59,oe=10,ve=32,Oe=9,At=123,Ze=125,et=40,Ct=41,to=91,ro=93,$t=45,Qe=64,oo=33;function ce(t){t=t.replaceAll(`\r
1
+ var xt="4.0.0";var ye=92,Ve=47,Ee=42,Qr=34,Xr=39,eo=58,Re=59,oe=10,ve=32,Oe=9,At=123,Ze=125,et=40,Ct=41,to=91,ro=93,$t=45,Qe=64,oo=33;function ce(t){t=t.replaceAll(`\r
2
2
  `,`
3
3
  `);let r=[],o=[],e=[],n=null,s=null,l="",f="",d;for(let c=0;c<t.length;c++){let p=t.charCodeAt(c);if(p===ye)l+=t.slice(c,c+2),c+=1;else if(p===Ve&&t.charCodeAt(c+1)===Ee){let m=c;for(let y=c+2;y<t.length;y++)if(d=t.charCodeAt(y),d===ye)y+=1;else if(d===Ee&&t.charCodeAt(y+1)===Ve){c=y+1;break}let h=t.slice(m,c+1);h.charCodeAt(2)===oo&&o.push(Ke(h.slice(2,-2)))}else if(p===Xr||p===Qr){let m=c;for(let h=c+1;h<t.length;h++)if(d=t.charCodeAt(h),d===ye)h+=1;else if(d===p){c=h;break}else{if(d===Re&&t.charCodeAt(h+1)===oe)throw new Error(`Unterminated string: ${t.slice(m,h+1)+String.fromCharCode(p)}`);if(d===oe)throw new Error(`Unterminated string: ${t.slice(m,h)+String.fromCharCode(p)}`)}l+=t.slice(m,c+1)}else{if((p===ve||p===oe||p===Oe)&&(d=t.charCodeAt(c+1))&&(d===ve||d===oe||d===Oe))continue;if(p===oe){if(l.length===0)continue;d=l.charCodeAt(l.length-1),d!==ve&&d!==oe&&d!==Oe&&(l+=" ")}else if(p===$t&&t.charCodeAt(c+1)===$t&&l.length===0){let m="",h=c,y=-1;for(let b=c+2;b<t.length;b++)if(d=t.charCodeAt(b),d===ye)b+=1;else if(d===Ve&&t.charCodeAt(b+1)===Ee){for(let x=b+2;x<t.length;x++)if(d=t.charCodeAt(x),d===ye)x+=1;else if(d===Ee&&t.charCodeAt(x+1)===Ve){b=x+1;break}}else if(y===-1&&d===eo)y=l.length+b-h;else if(d===Re&&m.length===0){l+=t.slice(h,b),c=b;break}else if(d===et)m+=")";else if(d===to)m+="]";else if(d===At)m+="}";else if((d===Ze||t.length-1===b)&&m.length===0){c=b-1,l+=t.slice(h,b);break}else(d===Ct||d===ro||d===Ze)&&m.length>0&&t[b]===m[m.length-1]&&(m=m.slice(0,-1));let v=Xe(l,y);n?n.nodes.push(v):r.push(v),l=""}else if(p===Re&&l.charCodeAt(0)===Qe)s=ke(l),n?n.nodes.push(s):r.push(s),l="",s=null;else if(p===Re&&f[f.length-1]!==")"){let m=Xe(l);n?n.nodes.push(m):r.push(m),l=""}else if(p===At&&f[f.length-1]!==")")f+="}",s=L(l.trim()),n&&n.nodes.push(s),e.push(n),n=s,l="",s=null;else if(p===Ze&&f[f.length-1]!==")"){if(f==="")throw new Error("Missing opening {");if(f=f.slice(0,-1),l.length>0)if(l.charCodeAt(0)===Qe)s=ke(l),n?n.nodes.push(s):r.push(s),l="",s=null;else{let h=l.indexOf(":");n&&n.nodes.push(Xe(l,h))}let m=e.pop()??null;m===null&&n&&r.push(n),n=m,l="",s=null}else if(p===et)f+=")",l+="(";else if(p===Ct){if(f[f.length-1]!==")")throw new Error("Missing opening (");f=f.slice(0,-1),l+=")"}else{if(l.length===0&&(p===ve||p===oe||p===Oe))continue;l+=String.fromCharCode(p)}}}if(l.charCodeAt(0)===Qe&&r.push(ke(l)),f.length>0&&n){if(n.kind==="rule")throw new Error(`Missing closing } at ${n.selector}`);if(n.kind==="at-rule")throw new Error(`Missing closing } at ${n.name} ${n.params}`)}return o.length>0?o.concat(r):r}function ke(t,r=[]){for(let o=5;o<t.length;o++){let e=t.charCodeAt(o);if(e===ve||e===et){let n=t.slice(0,o).trim(),s=t.slice(o).trim();return P(n,s,r)}}return P(t.trim(),"",r)}function Xe(t,r=t.indexOf(":")){let o=t.indexOf("!important",r+1);return a(t.slice(0,r).trim(),t.slice(r+1,o===-1?t.length:o).trim(),o!==-1)}var no=64;function U(t,r=[]){return{kind:"rule",selector:t,nodes:r}}function P(t,r="",o=[]){return{kind:"at-rule",name:t,params:r,nodes:o}}function L(t,r=[]){return t.charCodeAt(0)===no?ke(t,r):U(t,r)}function a(t,r,o=!1){return{kind:"declaration",property:t,value:r,important:o}}function Ke(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 _(t,r,o=[],e={}){for(let n=0;n<t.length;n++){let s=t[n],l=o[o.length-1]??null;if(s.kind==="context"){if(_(s.nodes,r,o,{...e,...s.context})===2)return 2;continue}o.push(s);let f=r(s,{parent:l,context:e,path:o,replaceWith(d){Array.isArray(d)?d.length===0?t.splice(n,1):d.length===1?t[n]=d[0]:t.splice(n,1,...d):t[n]=d,n--}})??0;if(o.pop(),f===2)return 2;if(f!==1&&(s.kind==="rule"||s.kind==="at-rule")){o.push(s);let d=_(s.nodes,r,o,e);if(o.pop(),d===2)return 2}}}function ze(t,r,o=[],e={}){for(let n=0;n<t.length;n++){let s=t[n],l=o[o.length-1]??null;if(s.kind==="rule"||s.kind==="at-rule")o.push(s),ze(s.nodes,r,o,e),o.pop();else if(s.kind==="context"){ze(s.nodes,r,o,{...e,...s.context});continue}o.push(s),r(s,{parent:l,context:e,path:o,replaceWith(f){Array.isArray(f)?f.length===0?t.splice(n,1):f.length===1?t[n]=f[0]:t.splice(n,1,...f):t[n]=f,n+=f.length-1}}),o.pop()}}function ie(t){let r=[],o=new Set;function e(s,l,f=0){if(s.kind==="declaration"){if(s.property==="--tw-sort"||s.value===void 0||s.value===null)return;l.push(s)}else if(s.kind==="rule")if(s.selector==="&")for(let d of s.nodes){let c=[];e(d,c,f+1),l.push(...c)}else{let d={...s,nodes:[]};for(let c of s.nodes)e(c,d.nodes,f+1);l.push(d)}else if(s.kind==="at-rule"&&s.name==="@property"&&f===0){if(o.has(s.params))return;o.add(s.params);let d={...s,nodes:[]};for(let c of s.nodes)e(c,d.nodes,f+1);l.push(d)}else if(s.kind==="at-rule"){let d={...s,nodes:[]};for(let c of s.nodes)e(c,d.nodes,f+1);l.push(d)}else if(s.kind==="at-root")for(let d of s.nodes){let c=[];e(d,c,0);for(let p of c)r.push(p)}else if(s.kind==="context"){if(s.context.reference)return;for(let d of s.nodes)e(d,l,f)}else s.kind==="comment"&&l.push(s)}let n=[];for(let s of t)e(s,n,0);return n.concat(r)}function Y(t){function r(e,n=0){let s="",l=" ".repeat(n);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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailwindcss/browser",
3
- "version": "4.0.0-beta.10",
3
+ "version": "4.0.0",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.mjs",
@@ -26,7 +26,7 @@
26
26
  "devDependencies": {
27
27
  "h3": "^1.13.1",
28
28
  "listhen": "^1.9.0",
29
- "tailwindcss": "4.0.0-beta.10"
29
+ "tailwindcss": "4.0.0"
30
30
  },
31
31
  "scripts": {
32
32
  "lint": "tsc --noEmit",