@tailwindcss/browser 0.0.0-insiders.ec1d7d4 → 0.0.0-insiders.f014108
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 St="0.0.0-insiders.
|
|
1
|
+
"use strict";(()=>{var St="0.0.0-insiders.f014108";var ke=92,Ke=47,Pe=42,to=34,ro=39,oo=58,_e=59,le=10,we=32,ze=9,Nt=123,et=125,ot=40,Tt=41,no=91,io=93,Vt=45,tt=64,lo=33;function pe(t){t=t.replaceAll(`\r
|
|
2
2
|
`,`
|
|
3
3
|
`);let r=[],o=[],e=[],n=null,s=null,l="",p="",f;for(let u=0;u<t.length;u++){let d=t.charCodeAt(u);if(d===ke)l+=t.slice(u,u+2),u+=1;else if(d===Ke&&t.charCodeAt(u+1)===Pe){let m=u;for(let b=u+2;b<t.length;b++)if(f=t.charCodeAt(b),f===ke)b+=1;else if(f===Pe&&t.charCodeAt(b+1)===Ke){u=b+1;break}let g=t.slice(m,u+1);g.charCodeAt(2)===lo&&o.push(De(g.slice(2,-2)))}else if(d===ro||d===to){let m=u;for(let g=u+1;g<t.length;g++)if(f=t.charCodeAt(g),f===ke)g+=1;else if(f===d){u=g;break}else{if(f===_e&&t.charCodeAt(g+1)===le)throw new Error(`Unterminated string: ${t.slice(m,g+1)+String.fromCharCode(d)}`);if(f===le)throw new Error(`Unterminated string: ${t.slice(m,g)+String.fromCharCode(d)}`)}l+=t.slice(m,u+1)}else{if((d===we||d===le||d===ze)&&(f=t.charCodeAt(u+1))&&(f===we||f===le||f===ze))continue;if(d===le){if(l.length===0)continue;f=l.charCodeAt(l.length-1),f!==we&&f!==le&&f!==ze&&(l+=" ")}else if(d===Vt&&t.charCodeAt(u+1)===Vt&&l.length===0){let m="",g=u,b=-1;for(let v=u+2;v<t.length;v++)if(f=t.charCodeAt(v),f===ke)v+=1;else if(f===Ke&&t.charCodeAt(v+1)===Pe){for(let x=v+2;x<t.length;x++)if(f=t.charCodeAt(x),f===ke)x+=1;else if(f===Pe&&t.charCodeAt(x+1)===Ke){v=x+1;break}}else if(b===-1&&f===oo)b=l.length+v-g;else if(f===_e&&m.length===0){l+=t.slice(g,v),u=v;break}else if(f===ot)m+=")";else if(f===no)m+="]";else if(f===Nt)m+="}";else if((f===et||t.length-1===v)&&m.length===0){u=v-1,l+=t.slice(g,v);break}else(f===Tt||f===io||f===et)&&m.length>0&&t[v]===m[m.length-1]&&(m=m.slice(0,-1));let y=rt(l,b);if(!y)throw new Error("Invalid custom property, expected a value");n?n.nodes.push(y):r.push(y),l=""}else if(d===_e&&l.charCodeAt(0)===tt)s=xe(l),n?n.nodes.push(s):r.push(s),l="",s=null;else if(d===_e&&p[p.length-1]!==")"){let m=rt(l);if(!m)throw l.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${l.trim()}\``);n?n.nodes.push(m):r.push(m),l=""}else if(d===Nt&&p[p.length-1]!==")")p+="}",s=M(l.trim()),n&&n.nodes.push(s),e.push(n),n=s,l="",s=null;else if(d===et&&p[p.length-1]!==")"){if(p==="")throw new Error("Missing opening {");if(p=p.slice(0,-1),l.length>0)if(l.charCodeAt(0)===tt)s=xe(l),n?n.nodes.push(s):r.push(s),l="",s=null;else{let g=l.indexOf(":");if(n){let b=rt(l,g);if(!b)throw new Error(`Invalid declaration: \`${l.trim()}\``);n.nodes.push(b)}}let m=e.pop()??null;m===null&&n&&r.push(n),n=m,l="",s=null}else if(d===ot)p+=")",l+="(";else if(d===Tt){if(p[p.length-1]!==")")throw new Error("Missing opening (");p=p.slice(0,-1),l+=")"}else{if(l.length===0&&(d===we||d===le||d===ze))continue;l+=String.fromCharCode(d)}}}if(l.charCodeAt(0)===tt&&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===ot){let n=t.slice(0,o).trim(),s=t.slice(o).trim();return _(n,s,r)}}return _(t.trim(),"",r)}function rt(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 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 Ue=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&&(Et(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.#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 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(!Et(n,e))return n}return null}#t(r){return this.values.has(r)?`var(${re(this.#r(r))})`:null}markUsedVariable(r){let o=ae(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 s={};for(let p of e){let f=`${n}${p}`,u=this.values.get(f);u&&(u.options&1?s[p]=u.value:s[p]=this.#t(f))}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 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 so=64;function U(t,r=[]){return{kind:"rule",selector:t,nodes:r}}function _(t,r="",o=[]){return{kind:"at-rule",name:t,params:r,nodes:o}}function M(t,r=[]){return t.charCodeAt(0)===so?xe(t,r):U(t,r)}function a(t,r,o=!1){return{kind:"declaration",property:t,value:r,important:o}}function De(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 z(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(z(s.nodes,r,o,{...e,...s.context})===2)return 2;continue}o.push(s);let p=!1,f=0,u=r(s,{parent:l,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){u===0?n--:n+=f-1;continue}if(u===2)return 2;if(u!==1&&"nodes"in s){o.push(s);let d=z(s.nodes,r,o,e);if(o.pop(),d===2)return 2}}}function je(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),je(s.nodes,r,o,e),o.pop();else if(s.kind==="context"){je(s.nodes,r,o,{...e,...s.context});continue}o.push(s),r(s,{parent:l,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 se(t,r){let o=[],e=new Set,n=new I(()=>new Set),s=new Set,l=new Set;function p(u,d,m={},g=0){if(u.kind==="declaration"){if(u.property==="--tw-sort"||u.value===void 0||u.value===null)return;if(m.theme&&u.property[0]==="-"&&u.property[1]==="-"&&n.get(d).add(u),u.value.includes("var(")&&r.trackUsedVariables(u.value),u.property==="animation"){let b=u.value.split(/\s+/);for(let y of b)l.add(y)}d.push(u)}else if(u.kind==="rule")if(u.selector==="&")for(let b of u.nodes){let y=[];p(b,y,m,g+1),y.length>0&&d.push(...y)}else{let b={...u,nodes:[]};for(let y of u.nodes)p(y,b.nodes,m,g+1);b.nodes.length>0&&d.push(b)}else if(u.kind==="at-rule"&&u.name==="@property"&&g===0){if(e.has(u.params))return;e.add(u.params);let b={...u,nodes:[]};for(let y of u.nodes)p(y,b.nodes,m,g+1);d.push(b)}else if(u.kind==="at-rule"){let b={...u,nodes:[]};for(let y of u.nodes)p(y,b.nodes,m,g+1);u.name==="@keyframes"&&m.theme&&s.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(u.kind==="at-root")for(let b of u.nodes){let y=[];p(b,y,m,0);for(let v of y)o.push(v)}else if(u.kind==="context"){if(u.context.reference)return;for(let b of u.nodes)p(b,d,{...m,...u.context},g)}else u.kind==="comment"&&d.push(u)}let f=[];for(let u of t)p(u,f,{},0);if(!1){e:for(let[u,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)l.add(v)}continue}let b=u.indexOf(m);if(u.splice(b,1),u.length===0){for(let[y,v]of f.entries())if(v.kind==="rule"&&v.nodes===u){f.splice(y,1);break}continue e}}for(let u of s)if(!l.has(u.params)){let d=o.indexOf(u);o.splice(d,1)}}return f.concat(o)}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": "0.0.0-insiders.
|
|
3
|
+
"version": "0.0.0-insiders.f014108",
|
|
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.0",
|
|
28
28
|
"listhen": "^1.9.0",
|
|
29
|
-
"tailwindcss": "0.0.0-insiders.
|
|
29
|
+
"tailwindcss": "0.0.0-insiders.f014108"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"lint": "tsc --noEmit",
|