@tailwindcss/browser 4.0.12 → 4.0.13

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.
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var $t="4.0.12";var ke=92,Ke=47,Pe=42,oo=34,no=39,io=58,Ue=59,le=10,we=32,_e=9,Tt=123,tt=125,nt=40,Vt=41,lo=91,ao=93,Et=45,rt=64,so=33;function pe(t){t[0]==="\uFEFF"&&(t=t.slice(1)),t=t.replaceAll(`\r
1
+ "use strict";(()=>{var $t="4.0.13";var ke=92,Ke=47,Pe=42,oo=34,no=39,io=58,Ue=59,le=10,we=32,_e=9,Tt=123,tt=125,nt=40,Vt=41,lo=91,ao=93,Et=45,rt=64,so=33;function pe(t){t[0]==="\uFEFF"&&(t=t.slice(1)),t=t.replaceAll(`\r
2
2
  `,`
3
3
  `);let r=[],o=[],e=[],n=null,s=null,l="",p="",c;for(let d=0;d<t.length;d++){let u=t.charCodeAt(d);if(u===ke)l+=t.slice(d,d+2),d+=1;else if(u===Ke&&t.charCodeAt(d+1)===Pe){let g=d;for(let v=d+2;v<t.length;v++)if(c=t.charCodeAt(v),c===ke)v+=1;else if(c===Pe&&t.charCodeAt(v+1)===Ke){d=v+1;break}let m=t.slice(g,d+1);m.charCodeAt(2)===so&&o.push(De(m.slice(2,-2)))}else if(u===no||u===oo){let g=d;for(let m=d+1;m<t.length;m++)if(c=t.charCodeAt(m),c===ke)m+=1;else if(c===u){d=m;break}else{if(c===Ue&&t.charCodeAt(m+1)===le)throw new Error(`Unterminated string: ${t.slice(g,m+1)+String.fromCharCode(u)}`);if(c===le)throw new Error(`Unterminated string: ${t.slice(g,m)+String.fromCharCode(u)}`)}l+=t.slice(g,d+1)}else{if((u===we||u===le||u===_e)&&(c=t.charCodeAt(d+1))&&(c===we||c===le||c===_e))continue;if(u===le){if(l.length===0)continue;c=l.charCodeAt(l.length-1),c!==we&&c!==le&&c!==_e&&(l+=" ")}else if(u===Et&&t.charCodeAt(d+1)===Et&&l.length===0){let g="",m=d,v=-1;for(let b=d+2;b<t.length;b++)if(c=t.charCodeAt(b),c===ke)b+=1;else if(c===Ke&&t.charCodeAt(b+1)===Pe){for(let x=b+2;x<t.length;x++)if(c=t.charCodeAt(x),c===ke)x+=1;else if(c===Pe&&t.charCodeAt(x+1)===Ke){b=x+1;break}}else if(v===-1&&c===io)v=l.length+b-m;else if(c===Ue&&g.length===0){l+=t.slice(m,b),d=b;break}else if(c===nt)g+=")";else if(c===lo)g+="]";else if(c===Tt)g+="}";else if((c===tt||t.length-1===b)&&g.length===0){d=b-1,l+=t.slice(m,b);break}else(c===Vt||c===ao||c===tt)&&g.length>0&&t[b]===g[g.length-1]&&(g=g.slice(0,-1));let y=ot(l,v);if(!y)throw new Error("Invalid custom property, expected a value");n?n.nodes.push(y):r.push(y),l=""}else if(u===Ue&&l.charCodeAt(0)===rt)s=xe(l),n?n.nodes.push(s):r.push(s),l="",s=null;else if(u===Ue&&p[p.length-1]!==")"){let g=ot(l);if(!g)throw l.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${l.trim()}\``);n?n.nodes.push(g):r.push(g),l=""}else if(u===Tt&&p[p.length-1]!==")")p+="}",s=M(l.trim()),n&&n.nodes.push(s),e.push(n),n=s,l="",s=null;else if(u===tt&&p[p.length-1]!==")"){if(p==="")throw new Error("Missing opening {");if(p=p.slice(0,-1),l.length>0)if(l.charCodeAt(0)===rt)s=xe(l),n?n.nodes.push(s):r.push(s),l="",s=null;else{let m=l.indexOf(":");if(n){let v=ot(l,m);if(!v)throw new Error(`Invalid declaration: \`${l.trim()}\``);n.nodes.push(v)}}let g=e.pop()??null;g===null&&n&&r.push(n),n=g,l="",s=null}else if(u===nt)p+=")",l+="(";else if(u===Vt){if(p[p.length-1]!==")")throw new Error("Missing opening (");p=p.slice(0,-1),l+=")"}else{if(l.length===0&&(u===we||u===le||u===_e))continue;l+=String.fromCharCode(u)}}}if(l.charCodeAt(0)===rt&&r.push(xe(l)),p.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 xe(t,r=[]){for(let o=5;o<t.length;o++){let e=t.charCodeAt(o);if(e===we||e===nt){let n=t.slice(0,o).trim(),s=t.slice(o).trim();return U(n,s,r)}}return U(t.trim(),"",r)}function ot(t,r=t.indexOf(":")){if(r===-1)return null;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)}function re(t){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(t),o=r.length,e=-1,n,s="",l=r.charCodeAt(0);if(o===1&&l===45)return"\\"+r;for(;++e<o;){if(n=r.charCodeAt(e),n===0){s+="\uFFFD";continue}if(n>=1&&n<=31||n===127||e===0&&n>=48&&n<=57||e===1&&n>=48&&n<=57&&l===45){s+="\\"+n.toString(16)+" ";continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=r.charAt(e);continue}s+="\\"+r.charAt(e)}return s}function ae(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 Ot=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 Rt(t,r){return(Ot.get(r)??[]).some(o=>t===o||t.startsWith(`${o}-`))}var ze=class{constructor(r=new Map,o=new Set([])){this.values=r;this.keyframes=o}prefix=null;add(r,o,e=0){if(r.endsWith("-*")){if(o!=="initial")throw new Error(`Invalid theme value \`${o}\` for namespace \`${r}\``);r==="--*"?this.values.clear():this.clearNamespace(r.slice(0,-2),0)}if(e&4){let n=this.values.get(r);if(n&&!(n.options&4))return}o==="initial"?this.values.delete(r):this.values.set(r,{value:o,options:e})}keysInNamespaces(r){let o=[];for(let e of r){let n=`${e}-`;for(let s of this.values.keys())s.startsWith(n)&&s.indexOf("--",2)===-1&&(Rt(s,e)||o.push(s.slice(n.length)))}return o}get(r){for(let o of r){let e=this.values.get(o);if(e)return e.value}return null}hasDefault(r){return(this.getOptions(r)&4)===4}getOptions(r){return r=ae(this.#r(r)),this.values.get(r)?.options??0}entries(){return this.prefix?Array.from(this.values,r=>(r[0]=this.prefixKey(r[0]),r)):this.values.entries()}prefixKey(r){return this.prefix?`--${this.prefix}-${r.slice(2)}`:r}#r(r){return this.prefix?`--${r.slice(3+this.prefix.length)}`:r}clearNamespace(r,o){let e=Ot.get(r)??[];e:for(let n of this.values.keys())if(n.startsWith(r)){if(o!==0&&(this.getOptions(n)&o)!==o)continue;for(let s of e)if(n.startsWith(s))continue e;this.values.delete(n)}}#e(r,o){for(let e of o){let n=r!==null?`${e}-${r}`:e;if(!this.values.has(n))if(r!==null&&r.includes(".")){if(n=`${e}-${r.replaceAll(".","_")}`,!this.values.has(n))continue}else continue;if(!Rt(n,e))return n}return null}#t(r){let o=this.values.get(r);if(!o)return null;let e=null;return o.options&2&&(e=o.value),`var(${re(this.prefixKey(r))}${e?`, ${e}`:""})`}markUsedVariable(r){let o=ae(this.#r(r)),e=this.values.get(o);e&&(e.options|=16)}resolve(r,o){let e=this.#e(r,o);if(!e)return null;let n=this.values.get(e);return n.options&1?n.value:this.#t(e)}resolveValue(r,o){let e=this.#e(r,o);return e?this.values.get(e).value:null}resolveWith(r,o,e=[]){let n=this.#e(r,o);if(!n)return null;let s={};for(let p of e){let c=`${n}${p}`,d=this.values.get(c);d&&(d.options&1?s[p]=d.value:s[p]=this.#t(c))}let l=this.values.get(n);return l.options&1?[l.value,s]:[this.#t(n),s]}namespace(r){let o=new Map,e=`${r}-`;for(let[n,s]of this.values)n===r?o.set(null,s.value):n.startsWith(`${e}-`)?o.set(n.slice(r.length),s.value):n.startsWith(e)&&o.set(n.slice(e.length),s.value);return o}addKeyframes(r){this.keyframes.add(r)}getKeyframes(){return Array.from(this.keyframes)}};var j=class extends Map{constructor(o){super();this.factory=o}get(o){let e=super.get(o);return e===void 0&&(e=this.factory(o,this),this.set(o,e)),e}};function lt(t){return{kind:"word",value:t}}function uo(t,r){return{kind:"function",value:t,nodes:r}}function co(t){return{kind:"separator",value:t}}function ee(t,r,o=null){for(let e=0;e<t.length;e++){let n=t[e],s=!1,l=0,p=r(n,{parent:o,replaceWith(c){s=!0,Array.isArray(c)?c.length===0?(t.splice(e,1),l=0):c.length===1?(t[e]=c[0],l=1):(t.splice(e,1,...c),l=c.length):t[e]=c}})??0;if(s){p===0?e--:e+=l-1;continue}if(p===2)return 2;if(p!==1&&n.kind==="function"&&ee(n.nodes,r,n)===2)return 2}}function H(t){let r="";for(let o of t)switch(o.kind){case"word":case"separator":{r+=o.value;break}case"function":r+=o.value+"("+H(o.nodes)+")"}return r}var Kt=92,fo=41,Pt=58,Ut=44,po=34,_t=61,Dt=62,zt=60,Ft=10,mo=40,go=39,jt=47,It=32,Lt=9;function L(t){t=t.replaceAll(`\r
4
4
  `,`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailwindcss/browser",
3
- "version": "4.0.12",
3
+ "version": "4.0.13",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.global.js",
@@ -26,7 +26,7 @@
26
26
  "devDependencies": {
27
27
  "h3": "^1.15.1",
28
28
  "listhen": "^1.9.0",
29
- "tailwindcss": "4.0.12"
29
+ "tailwindcss": "4.0.13"
30
30
  },
31
31
  "scripts": {
32
32
  "lint": "tsc --noEmit",