@tailwindcss/browser 0.0.0-insiders.f678a70 → 0.0.0-insiders.f995dae
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 $t="0.0.0-insiders.
|
|
1
|
+
"use strict";(()=>{var $t="0.0.0-insiders.f995dae";var ke=92,Re=47,Oe=42,eo=34,to=39,ro=58,Ke=59,ie=10,we=32,Pe=9,Nt=123,Xe=125,rt=40,Tt=41,oo=91,no=93,Vt=45,et=64,io=33;function de(t){t=t.replaceAll(`\r
|
|
2
2
|
`,`
|
|
3
3
|
`);let r=[],o=[],e=[],n=null,u=null,a="",p="",f;for(let s=0;s<t.length;s++){let d=t.charCodeAt(s);if(d===ke)a+=t.slice(s,s+2),s+=1;else if(d===Re&&t.charCodeAt(s+1)===Oe){let m=s;for(let b=s+2;b<t.length;b++)if(f=t.charCodeAt(b),f===ke)b+=1;else if(f===Oe&&t.charCodeAt(b+1)===Re){s=b+1;break}let g=t.slice(m,s+1);g.charCodeAt(2)===io&&o.push(ze(g.slice(2,-2)))}else if(d===to||d===eo){let m=s;for(let g=s+1;g<t.length;g++)if(f=t.charCodeAt(g),f===ke)g+=1;else if(f===d){s=g;break}else{if(f===Ke&&t.charCodeAt(g+1)===ie)throw new Error(`Unterminated string: ${t.slice(m,g+1)+String.fromCharCode(d)}`);if(f===ie)throw new Error(`Unterminated string: ${t.slice(m,g)+String.fromCharCode(d)}`)}a+=t.slice(m,s+1)}else{if((d===we||d===ie||d===Pe)&&(f=t.charCodeAt(s+1))&&(f===we||f===ie||f===Pe))continue;if(d===ie){if(a.length===0)continue;f=a.charCodeAt(a.length-1),f!==we&&f!==ie&&f!==Pe&&(a+=" ")}else if(d===Vt&&t.charCodeAt(s+1)===Vt&&a.length===0){let m="",g=s,b=-1;for(let v=s+2;v<t.length;v++)if(f=t.charCodeAt(v),f===ke)v+=1;else if(f===Re&&t.charCodeAt(v+1)===Oe){for(let x=v+2;x<t.length;x++)if(f=t.charCodeAt(x),f===ke)x+=1;else if(f===Oe&&t.charCodeAt(x+1)===Re){v=x+1;break}}else if(b===-1&&f===ro)b=a.length+v-g;else if(f===Ke&&m.length===0){a+=t.slice(g,v),s=v;break}else if(f===rt)m+=")";else if(f===oo)m+="]";else if(f===Nt)m+="}";else if((f===Xe||t.length-1===v)&&m.length===0){s=v-1,a+=t.slice(g,v);break}else(f===Tt||f===no||f===Xe)&&m.length>0&&t[v]===m[m.length-1]&&(m=m.slice(0,-1));let y=tt(a,b);if(!y)throw new Error("Invalid custom property, expected a value");n?n.nodes.push(y):r.push(y),a=""}else if(d===Ke&&a.charCodeAt(0)===et)u=xe(a),n?n.nodes.push(u):r.push(u),a="",u=null;else if(d===Ke&&p[p.length-1]!==")"){let m=tt(a);if(!m)throw a.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${a.trim()}\``);n?n.nodes.push(m):r.push(m),a=""}else if(d===Nt&&p[p.length-1]!==")")p+="}",u=M(a.trim()),n&&n.nodes.push(u),e.push(n),n=u,a="",u=null;else if(d===Xe&&p[p.length-1]!==")"){if(p==="")throw new Error("Missing opening {");if(p=p.slice(0,-1),a.length>0)if(a.charCodeAt(0)===et)u=xe(a),n?n.nodes.push(u):r.push(u),a="",u=null;else{let g=a.indexOf(":");if(n){let b=tt(a,g);if(!b)throw new Error(`Invalid declaration: \`${a.trim()}\``);n.nodes.push(b)}}let m=e.pop()??null;m===null&&n&&r.push(n),n=m,a="",u=null}else if(d===rt)p+=")",a+="(";else if(d===Tt){if(p[p.length-1]!==")")throw new Error("Missing opening (");p=p.slice(0,-1),a+=")"}else{if(a.length===0&&(d===we||d===ie||d===Pe))continue;a+=String.fromCharCode(d)}}}if(a.charCodeAt(0)===et&&r.push(xe(a)),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===rt){let n=t.slice(0,o).trim(),u=t.slice(o).trim();return z(n,u,r)}}return z(t.trim(),"",r)}function tt(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 pe(t){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");var r=String(t),o=r.length,e=-1,n,u="",a=r.charCodeAt(0);if(o==1&&a==45)return"\\"+r;for(;++e<o;){if(n=r.charCodeAt(e),n==0){u+="\uFFFD";continue}if(n>=1&&n<=31||n==127||e==0&&n>=48&&n<=57||e==1&&n>=48&&n<=57&&a==45){u+="\\"+n.toString(16)+" ";continue}if(n>=128||n==45||n==95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){u+=r.charAt(e);continue}u+="\\"+r.charAt(e)}return u}function le(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 Rt=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 Et(t,r){return(Rt.get(r)??[]).some(o=>t===o||t.startsWith(`${o}-`))}var _e=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 u of this.values.keys())u.startsWith(n)&&u.indexOf("--",2)===-1&&(Et(u,e)||o.push(u.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=le(this.#o(r)),this.values.get(r)?.options??0}entries(){return this.prefix?Array.from(this.values,r=>(r[0]=this.#r(r[0]),r)):this.values.entries()}#r(r){return this.prefix?`--${this.prefix}-${r.slice(2)}`:r}#o(r){return this.prefix?`--${r.slice(3+this.prefix.length)}`:r}clearNamespace(r,o){let e=Rt.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 u of e)if(n.startsWith(u))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(!Et(n,e))return n}return null}#t(r){return this.values.has(r)?`var(${pe(this.#r(r))})`:null}markUsedVariable(r){let o=le(this.#o(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 u={};for(let p of e){let f=`${n}${p}`,s=this.values.get(f);s&&(s.options&1?u[p]=s.value:u[p]=this.#t(f))}let a=this.values.get(n);return a.options&1?[a.value,u]:[this.#t(n),u]}namespace(r){let o=new Map,e=`${r}-`;for(let[n,u]of this.values)n===r?o.set(null,u.value):n.startsWith(`${e}-`)?o.set(n.slice(r.length),u.value):n.startsWith(e)&&o.set(n.slice(e.length),u.value);return o}addKeyframes(r){this.keyframes.add(r)}getKeyframes(){return Array.from(this.keyframes)}};var I=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}};var ao=64;function U(t,r=[]){return{kind:"rule",selector:t,nodes:r}}function z(t,r="",o=[]){return{kind:"at-rule",name:t,params:r,nodes:o}}function M(t,r=[]){return t.charCodeAt(0)===ao?xe(t,r):U(t,r)}function l(t,r,o=!1){return{kind:"declaration",property:t,value:r,important:o}}function ze(t){return{kind:"comment",value:t}}function X(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 u=t[n],a=o[o.length-1]??null;if(u.kind==="context"){if(_(u.nodes,r,o,{...e,...u.context})===2)return 2;continue}o.push(u);let p=!1,f=0,s=r(u,{parent:a,context:e,path:o,replaceWith(d){p=!0,Array.isArray(d)?d.length===0?(t.splice(n,1),f=0):d.length===1?(t[n]=d[0],f=1):(t.splice(n,1,...d),f=d.length):(t[n]=d,f=1)}})??0;if(o.pop(),p){s===0?n--:n+=f-1;continue}if(s===2)return 2;if(s!==1&&"nodes"in u){o.push(u);let d=_(u.nodes,r,o,e);if(o.pop(),d===2)return 2}}}function De(t,r,o=[],e={}){for(let n=0;n<t.length;n++){let u=t[n],a=o[o.length-1]??null;if(u.kind==="rule"||u.kind==="at-rule")o.push(u),De(u.nodes,r,o,e),o.pop();else if(u.kind==="context"){De(u.nodes,r,o,{...e,...u.context});continue}o.push(u),r(u,{parent:a,context:e,path:o,replaceWith(p){Array.isArray(p)?p.length===0?t.splice(n,1):p.length===1?t[n]=p[0]:t.splice(n,1,...p):t[n]=p,n+=p.length-1}}),o.pop()}}function ae(t,r){let o=[],e=new Set,n=new I(()=>new Set),u=new Set,a=new Set;function p(s,d,m={},g=0){if(s.kind==="declaration"){if(s.property==="--tw-sort"||s.value===void 0||s.value===null)return;if(m.theme&&s.property[0]==="-"&&s.property[1]==="-"&&n.get(d).add(s),s.value.includes("var(")&&r.trackUsedVariables(s.value),s.property==="animation"){let b=s.value.split(/\s+/);for(let y of b)a.add(y)}d.push(s)}else if(s.kind==="rule")if(s.selector==="&")for(let b of s.nodes){let y=[];p(b,y,m,g+1),y.length>0&&d.push(...y)}else{let b={...s,nodes:[]};for(let y of s.nodes)p(y,b.nodes,m,g+1);b.nodes.length>0&&d.push(b)}else if(s.kind==="at-rule"&&s.name==="@property"&&g===0){if(e.has(s.params))return;e.add(s.params);let b={...s,nodes:[]};for(let y of s.nodes)p(y,b.nodes,m,g+1);d.push(b)}else if(s.kind==="at-rule"){let b={...s,nodes:[]};for(let y of s.nodes)p(y,b.nodes,m,g+1);s.name==="@keyframes"&&m.theme&&u.add(b),(b.nodes.length>0||b.name==="@layer"||b.name==="@charset"||b.name==="@custom-media"||b.name==="@namespace"||b.name==="@import")&&d.push(b)}else if(s.kind==="at-root")for(let b of s.nodes){let y=[];p(b,y,m,0);for(let v of y)o.push(v)}else if(s.kind==="context"){if(s.context.reference)return;for(let b of s.nodes)p(b,d,{...m,...s.context},g)}else s.kind==="comment"&&d.push(s)}let f=[];for(let s of t)p(s,f,{},0);if(!1){e:for(let[s,d]of n)for(let m of d){if(r.theme.getOptions(m.property)&24){if(m.property.startsWith("--animate-")){let y=m.value.split(/\s+/);for(let v of y)a.add(v)}continue}let b=s.indexOf(m);if(s.splice(b,1),s.length===0){for(let[y,v]of f.entries())if(v.kind==="rule"&&v.nodes===s){f.splice(y,1);break}continue e}}for(let s of u)if(!a.has(s.params)){let d=o.indexOf(s);o.splice(d,1)}}return f.concat(o)}function Y(t){function r(e,n=0){let u="",a=" ".repeat(n);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/browser",
|
|
3
|
-
"version": "0.0.0-insiders.
|
|
3
|
+
"version": "0.0.0-insiders.f995dae",
|
|
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.13.1",
|
|
28
28
|
"listhen": "^1.9.0",
|
|
29
|
-
"tailwindcss": "0.0.0-insiders.
|
|
29
|
+
"tailwindcss": "0.0.0-insiders.f995dae"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"lint": "tsc --noEmit",
|