@tailwindcss/browser 0.0.0-insiders.215f4f3 → 0.0.0-insiders.221855b

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 Tt="0.0.0-insiders.215f4f3";var ke=92,Ke=47,Pe=42,an=34,sn=39,un=58,Ue=59,le=10,we=32,_e=9,Vt=123,rt=125,it=40,Et=41,cn=91,fn=93,Rt=45,nt=64,dn=33;function pe(t){t[0]==="\uFEFF"&&(t=t.slice(1)),t=t.replaceAll(`\r
1
+ "use strict";(()=>{var Tt="0.0.0-insiders.221855b";var ke=92,Ke=47,Pe=42,an=34,sn=39,un=58,Ue=59,le=10,we=32,_e=9,Vt=123,rt=125,it=40,Et=41,cn=91,fn=93,Rt=45,nt=64,dn=33;function pe(t){t[0]==="\uFEFF"&&(t=t.slice(1)),t=t.replaceAll(`\r
2
2
  `,`
3
3
  `);let r=[],n=[],e=[],o=null,s=null,l="",p="",f;for(let d=0;d<t.length;d++){let c=t.charCodeAt(d);if(c===ke)l+=t.slice(d,d+2),d+=1;else if(c===Ke&&t.charCodeAt(d+1)===Pe){let m=d;for(let y=d+2;y<t.length;y++)if(f=t.charCodeAt(y),f===ke)y+=1;else if(f===Pe&&t.charCodeAt(y+1)===Ke){d=y+1;break}let g=t.slice(m,d+1);g.charCodeAt(2)===dn&&n.push(De(g.slice(2,-2)))}else if(c===sn||c===an){let m=d;for(let g=d+1;g<t.length;g++)if(f=t.charCodeAt(g),f===ke)g+=1;else if(f===c){d=g;break}else{if(f===Ue&&t.charCodeAt(g+1)===le)throw new Error(`Unterminated string: ${t.slice(m,g+1)+String.fromCharCode(c)}`);if(f===le)throw new Error(`Unterminated string: ${t.slice(m,g)+String.fromCharCode(c)}`)}l+=t.slice(m,d+1)}else{if((c===we||c===le||c===_e)&&(f=t.charCodeAt(d+1))&&(f===we||f===le||f===_e))continue;if(c===le){if(l.length===0)continue;f=l.charCodeAt(l.length-1),f!==we&&f!==le&&f!==_e&&(l+=" ")}else if(c===Rt&&t.charCodeAt(d+1)===Rt&&l.length===0){let m="",g=d,y=-1;for(let k=d+2;k<t.length;k++)if(f=t.charCodeAt(k),f===ke)k+=1;else if(f===Ke&&t.charCodeAt(k+1)===Pe){for(let A=k+2;A<t.length;A++)if(f=t.charCodeAt(A),f===ke)A+=1;else if(f===Pe&&t.charCodeAt(A+1)===Ke){k=A+1;break}}else if(y===-1&&f===un)y=l.length+k-g;else if(f===Ue&&m.length===0){l+=t.slice(g,k),d=k;break}else if(f===it)m+=")";else if(f===cn)m+="]";else if(f===Vt)m+="}";else if((f===rt||t.length-1===k)&&m.length===0){d=k-1,l+=t.slice(g,k);break}else(f===Et||f===fn||f===rt)&&m.length>0&&t[k]===m[m.length-1]&&(m=m.slice(0,-1));let b=ot(l,y);if(!b)throw new Error("Invalid custom property, expected a value");o?o.nodes.push(b):r.push(b),l=""}else if(c===Ue&&l.charCodeAt(0)===nt)s=xe(l),o?o.nodes.push(s):r.push(s),l="",s=null;else if(c===Ue&&p[p.length-1]!==")"){let m=ot(l);if(!m)throw l.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${l.trim()}\``);o?o.nodes.push(m):r.push(m),l=""}else if(c===Vt&&p[p.length-1]!==")")p+="}",s=M(l.trim()),o&&o.nodes.push(s),e.push(o),o=s,l="",s=null;else if(c===rt&&p[p.length-1]!==")"){if(p==="")throw new Error("Missing opening {");if(p=p.slice(0,-1),l.length>0)if(l.charCodeAt(0)===nt)s=xe(l),o?o.nodes.push(s):r.push(s),l="",s=null;else{let g=l.indexOf(":");if(o){let y=ot(l,g);if(!y)throw new Error(`Invalid declaration: \`${l.trim()}\``);o.nodes.push(y)}}let m=e.pop()??null;m===null&&o&&r.push(o),o=m,l="",s=null}else if(c===it)p+=")",l+="(";else if(c===Et){if(p[p.length-1]!==")")throw new Error("Missing opening (");p=p.slice(0,-1),l+=")"}else{if(l.length===0&&(c===we||c===le||c===_e))continue;l+=String.fromCharCode(c)}}}if(l.charCodeAt(0)===nt&&r.push(xe(l)),p.length>0&&o){if(o.kind==="rule")throw new Error(`Missing closing } at ${o.selector}`);if(o.kind==="at-rule")throw new Error(`Missing closing } at ${o.name} ${o.params}`)}return n.length>0?n.concat(r):r}function xe(t,r=[]){for(let n=5;n<t.length;n++){let e=t.charCodeAt(n);if(e===we||e===it){let o=t.slice(0,n).trim(),s=t.slice(n).trim();return K(o,s,r)}}return K(t.trim(),"",r)}function ot(t,r=t.indexOf(":")){if(r===-1)return null;let n=t.indexOf("!important",r+1);return a(t.slice(0,r).trim(),t.slice(r+1,n===-1?t.length:n).trim(),n!==-1)}function re(t){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(t),n=r.length,e=-1,o,s="",l=r.charCodeAt(0);if(n===1&&l===45)return"\\"+r;for(;++e<n;){if(o=r.charCodeAt(e),o===0){s+="\uFFFD";continue}if(o>=1&&o<=31||o===127||e===0&&o>=48&&o<=57||e===1&&o>=48&&o<=57&&l===45){s+="\\"+o.toString(16)+" ";continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=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 Kt=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 Ot(t,r){return(Kt.get(r)??[]).some(n=>t===n||t.startsWith(`${n}-`))}var ze=class{constructor(r=new Map,n=new Set([])){this.values=r;this.keyframes=n}prefix=null;add(r,n,e=0){if(r.endsWith("-*")){if(n!=="initial")throw new Error(`Invalid theme value \`${n}\` for namespace \`${r}\``);r==="--*"?this.values.clear():this.clearNamespace(r.slice(0,-2),0)}if(e&4){let o=this.values.get(r);if(o&&!(o.options&4))return}n==="initial"?this.values.delete(r):this.values.set(r,{value:n,options:e})}keysInNamespaces(r){let n=[];for(let e of r){let o=`${e}-`;for(let s of this.values.keys())s.startsWith(o)&&s.indexOf("--",2)===-1&&(Ot(s,e)||n.push(s.slice(o.length)))}return n}get(r){for(let n of r){let e=this.values.get(n);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,n){let e=Kt.get(r)??[];e:for(let o of this.values.keys())if(o.startsWith(r)){if(n!==0&&(this.getOptions(o)&n)!==n)continue;for(let s of e)if(o.startsWith(s))continue e;this.values.delete(o)}}#e(r,n){for(let e of n){let o=r!==null?`${e}-${r}`:e;if(!this.values.has(o))if(r!==null&&r.includes(".")){if(o=`${e}-${r.replaceAll(".","_")}`,!this.values.has(o))continue}else continue;if(!Ot(o,e))return o}return null}#t(r){let n=this.values.get(r);if(!n)return null;let e=null;return n.options&2&&(e=n.value),`var(${re(this.prefixKey(r))}${e?`, ${e}`:""})`}markUsedVariable(r){let n=ae(this.#r(r)),e=this.values.get(n);e&&(e.options|=16)}resolve(r,n){let e=this.#e(r,n);if(!e)return null;let o=this.values.get(e);return o.options&1?o.value:this.#t(e)}resolveValue(r,n){let e=this.#e(r,n);return e?this.values.get(e).value:null}resolveWith(r,n,e=[]){let o=this.#e(r,n);if(!o)return null;let s={};for(let p of e){let f=`${o}${p}`,d=this.values.get(f);d&&(d.options&1?s[p]=d.value:s[p]=this.#t(f))}let l=this.values.get(o);return l.options&1?[l.value,s]:[this.#t(o),s]}namespace(r){let n=new Map,e=`${r}-`;for(let[o,s]of this.values)o===r?n.set(null,s.value):o.startsWith(`${e}-`)?n.set(o.slice(r.length),s.value):o.startsWith(e)&&n.set(o.slice(e.length),s.value);return n}addKeyframes(r){this.keyframes.add(r)}getKeyframes(){return Array.from(this.keyframes)}};var F=class extends Map{constructor(n){super();this.factory=n}get(n){let e=super.get(n);return e===void 0&&(e=this.factory(n,this),this.set(n,e)),e}};function at(t){return{kind:"word",value:t}}function pn(t,r){return{kind:"function",value:t,nodes:r}}function mn(t){return{kind:"separator",value:t}}function ee(t,r,n=null){for(let e=0;e<t.length;e++){let o=t[e],s=!1,l=0,p=r(o,{parent:n,replaceWith(f){s=!0,Array.isArray(f)?f.length===0?(t.splice(e,1),l=0):f.length===1?(t[e]=f[0],l=1):(t.splice(e,1,...f),l=f.length):t[e]=f}})??0;if(s){p===0?e--:e+=l-1;continue}if(p===2)return 2;if(p!==1&&o.kind==="function"&&ee(o.nodes,r,o)===2)return 2}}function H(t){let r="";for(let n of t)switch(n.kind){case"word":case"separator":{r+=n.value;break}case"function":r+=n.value+"("+H(n.nodes)+")"}return r}var Pt=92,gn=41,Ut=58,_t=44,hn=34,Dt=61,zt=62,It=60,Ft=10,bn=40,yn=39,jt=47,Lt=32,Mt=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": "0.0.0-insiders.215f4f3",
3
+ "version": "0.0.0-insiders.221855b",
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.215f4f3"
29
+ "tailwindcss": "0.0.0-insiders.221855b"
30
30
  },
31
31
  "scripts": {
32
32
  "lint": "tsc --noEmit",