@tailwindcss/browser 0.0.0-insiders.d2daf59 → 0.0.0-insiders.d3846a4
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/index.global.js +1 -1
- package/package.json +2 -2
package/dist/index.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Mt="0.0.0-insiders.
|
|
1
|
+
"use strict";(()=>{var Mt="0.0.0-insiders.d3846a4";var Re=92,Me=47,Be=42,Co=34,No=39,$o=58,We=59,ke=10,Oe=32,qe=9,Bt=123,kt=125,bt=40,Wt=41,So=91,To=93,qt=45,wt=64,Vo=33;function Ce(t){t[0]==="\uFEFF"&&(t=t.slice(1)),t=t.replaceAll(`\r
|
|
2
2
|
`,`
|
|
3
3
|
`);let r=[],o=[],e=[],i=null,s=null,a="",d="",u;for(let c=0;c<t.length;c++){let m=t.charCodeAt(c);if(m===Re)a+=t.slice(c,c+2),c+=1;else if(m===Me&&t.charCodeAt(c+1)===Be){let g=c;for(let w=c+2;w<t.length;w++)if(u=t.charCodeAt(w),u===Re)w+=1;else if(u===Be&&t.charCodeAt(w+1)===Me){c=w+1;break}let h=t.slice(g,c+1);h.charCodeAt(2)===Vo&&o.push(He(h.slice(2,-2)))}else if(m===No||m===Co){let g=c;for(let h=c+1;h<t.length;h++)if(u=t.charCodeAt(h),u===Re)h+=1;else if(u===m){c=h;break}else{if(u===We&&t.charCodeAt(h+1)===ke)throw new Error(`Unterminated string: ${t.slice(g,h+1)+String.fromCharCode(m)}`);if(u===ke)throw new Error(`Unterminated string: ${t.slice(g,h)+String.fromCharCode(m)}`)}a+=t.slice(g,c+1)}else{if((m===Oe||m===ke||m===qe)&&(u=t.charCodeAt(c+1))&&(u===Oe||u===ke||u===qe))continue;if(m===ke){if(a.length===0)continue;u=a.charCodeAt(a.length-1),u!==Oe&&u!==ke&&u!==qe&&(a+=" ")}else if(m===qt&&t.charCodeAt(c+1)===qt&&a.length===0){let g="",h=c,w=-1;for(let A=c+2;A<t.length;A++)if(u=t.charCodeAt(A),u===Re)A+=1;else if(u===Me&&t.charCodeAt(A+1)===Be){for(let b=A+2;b<t.length;b++)if(u=t.charCodeAt(b),u===Re)b+=1;else if(u===Be&&t.charCodeAt(b+1)===Me){A=b+1;break}}else if(w===-1&&u===$o)w=a.length+A-h;else if(u===We&&g.length===0){a+=t.slice(h,A),c=A;break}else if(u===bt)g+=")";else if(u===So)g+="]";else if(u===Bt)g+="}";else if((u===kt||t.length-1===A)&&g.length===0){c=A-1,a+=t.slice(h,A);break}else(u===Wt||u===To||u===kt)&&g.length>0&&t[A]===g[g.length-1]&&(g=g.slice(0,-1));let k=vt(a,w);if(!k)throw new Error("Invalid custom property, expected a value");i?i.nodes.push(k):r.push(k),a=""}else if(m===We&&a.charCodeAt(0)===wt)s=Pe(a),i?i.nodes.push(s):r.push(s),a="",s=null;else if(m===We&&d[d.length-1]!==")"){let g=vt(a);if(!g)throw a.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${a.trim()}\``);i?i.nodes.push(g):r.push(g),a=""}else if(m===Bt&&d[d.length-1]!==")")d+="}",s=B(a.trim()),i&&i.nodes.push(s),e.push(i),i=s,a="",s=null;else if(m===kt&&d[d.length-1]!==")"){if(d==="")throw new Error("Missing opening {");if(d=d.slice(0,-1),a.length>0)if(a.charCodeAt(0)===wt)s=Pe(a),i?i.nodes.push(s):r.push(s),a="",s=null;else{let h=a.indexOf(":");if(i){let w=vt(a,h);if(!w)throw new Error(`Invalid declaration: \`${a.trim()}\``);i.nodes.push(w)}}let g=e.pop()??null;g===null&&i&&r.push(i),i=g,a="",s=null}else if(m===bt)d+=")",a+="(";else if(m===Wt){if(d[d.length-1]!==")")throw new Error("Missing opening (");d=d.slice(0,-1),a+=")"}else{if(a.length===0&&(m===Oe||m===ke||m===qe))continue;a+=String.fromCharCode(m)}}}if(a.charCodeAt(0)===wt&&r.push(Pe(a)),d.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 o.length>0?o.concat(r):r}function Pe(t,r=[]){for(let o=5;o<t.length;o++){let e=t.charCodeAt(o);if(e===Oe||e===bt){let i=t.slice(0,o).trim(),s=t.slice(o).trim();return j(i,s,r)}}return j(t.trim(),"",r)}function vt(t,r=t.indexOf(":")){if(r===-1)return null;let o=t.indexOf("!important",r+1);return l(t.slice(0,r).trim(),t.slice(r+1,o===-1?t.length:o).trim(),o!==-1)}function de(t){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(t),o=r.length,e=-1,i,s="",a=r.charCodeAt(0);if(o===1&&a===45)return"\\"+r;for(;++e<o;){if(i=r.charCodeAt(e),i===0){s+="\uFFFD";continue}if(i>=1&&i<=31||i===127||e===0&&i>=48&&i<=57||e===1&&i>=48&&i<=57&&a===45){s+="\\"+i.toString(16)+" ";continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){s+=r.charAt(e);continue}s+="\\"+r.charAt(e)}return s}function we(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 Gt=new Map([["--font",["--font-weight","--font-size"]],["--inset",["--inset-shadow","--inset-ring"]],["--text",["--text-color","--text-decoration-color","--text-decoration-thickness","--text-indent","--text-shadow","--text-underline-offset"]]]);function Ht(t,r){return(Gt.get(r)??[]).some(o=>t===o||t.startsWith(`${o}-`))}var Ge=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 i=this.values.get(r);if(i&&!(i.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 i=`${e}-`;for(let s of this.values.keys())s.startsWith(i)&&s.indexOf("--",2)===-1&&(Ht(s,e)||o.push(s.slice(i.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=we(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=Gt.get(r)??[];e:for(let i of this.values.keys())if(i.startsWith(r)){if(o!==0&&(this.getOptions(i)&o)!==o)continue;for(let s of e)if(i.startsWith(s))continue e;this.values.delete(i)}}#e(r,o){for(let e of o){let i=r!==null?`${e}-${r}`:e;if(!this.values.has(i))if(r!==null&&r.includes(".")){if(i=`${e}-${r.replaceAll(".","_")}`,!this.values.has(i))continue}else continue;if(!Ht(i,e))return i}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(${de(this.prefixKey(r))}${e?`, ${e}`:""})`}markUsedVariable(r){let o=we(this.#r(r)),e=this.values.get(o);if(!e)return!1;let i=e.options&16;return e.options|=16,!i}resolve(r,o,e=0){let i=this.#e(r,o);if(!i)return null;let s=this.values.get(i);return(e|s.options)&1?s.value:this.#t(i)}resolveValue(r,o){let e=this.#e(r,o);return e?this.values.get(e).value:null}resolveWith(r,o,e=[]){let i=this.#e(r,o);if(!i)return null;let s={};for(let d of e){let u=`${i}${d}`,c=this.values.get(u);c&&(c.options&1?s[d]=c.value:s[d]=this.#t(u))}let a=this.values.get(i);return a.options&1?[a.value,s]:[this.#t(i),s]}namespace(r){let o=new Map,e=`${r}-`;for(let[i,s]of this.values)i===r?o.set(null,s.value):i.startsWith(`${e}-`)?o.set(i.slice(r.length),s.value):i.startsWith(e)&&o.set(i.slice(e.length),s.value);return o}addKeyframes(r){this.keyframes.add(r)}getKeyframes(){return Array.from(this.keyframes)}};var W=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 xt(t){return{kind:"word",value:t}}function Eo(t,r){return{kind:"function",value:t,nodes:r}}function Ro(t){return{kind:"separator",value:t}}function re(t,r,o=null){for(let e=0;e<t.length;e++){let i=t[e],s=!1,a=0,d=r(i,{parent:o,replaceWith(u){s||(s=!0,Array.isArray(u)?u.length===0?(t.splice(e,1),a=0):u.length===1?(t[e]=u[0],a=1):(t.splice(e,1,...u),a=u.length):t[e]=u)}})??0;if(s){d===0?e--:e+=a-1;continue}if(d===2)return 2;if(d!==1&&i.kind==="function"&&re(i.nodes,r,i)===2)return 2}}function J(t){let r="";for(let o of t)switch(o.kind){case"word":case"separator":{r+=o.value;break}case"function":r+=o.value+"("+J(o.nodes)+")"}return r}var Yt=92,Oo=41,Jt=58,Qt=44,Po=34,Zt=61,Xt=62,er=60,tr=10,_o=40,zo=39,rr=47,or=32,ir=9;function H(t){t=t.replaceAll(`\r
|
|
4
4
|
`,`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailwindcss/browser",
|
|
3
|
-
"version": "0.0.0-insiders.
|
|
3
|
+
"version": "0.0.0-insiders.d3846a4",
|
|
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": "0.0.0-insiders.
|
|
29
|
+
"tailwindcss": "0.0.0-insiders.d3846a4"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"lint": "tsc --noEmit",
|