@unocss/inspector 0.57.1 → 0.57.3
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/client/assets/{_id_-49138ebd.js → _id_-63a70213.js} +1 -1
- package/dist/client/assets/{index-a1e04243.js → index-b905d900.js} +38 -38
- package/dist/client/assets/{repl-35fa414c.js → repl-68a73bc8.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/index.cjs +1 -4
- package/dist/index.mjs +1 -4
- package/package.json +3 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{d as x,r as S,u as b,a as k,b as V,f as B,o as h,c as w,e as s,g as a,w as m,h as C,i as p,v as R,j as e,k as P,n as f,_ as E,l as N,m as U,p as $,q as I}from"./index-
|
|
1
|
+
import{d as x,r as S,u as b,a as k,b as V,f as B,o as h,c as w,e as s,g as a,w as m,h as C,i as p,v as R,j as e,k as P,n as f,_ as E,l as N,m as U,p as $,q as I}from"./index-b905d900.js";const L={"h-full":"",grid:"~ rows-[max-content_1fr]","of-hidden":""},M=s("div",null," REPL Playground ",-1),T=s("div",{op60:""}," Edit your code below to test and play UnoCSS's matching and generating. ",-1),j={"h-full":"","of-hidden":"",grid:"","grid-cols-2":""},q=x({__name:"ReplPlayground",setup(y){const r=S(null),l=b(r,"repl-scrolls"),t=k("unocss:inspector:repl",`<div class="text-sm hover:text-red">
|
|
2
2
|
Hello World
|
|
3
3
|
</div>`),o=V("unocss-inspector-safelist",!1),{data:d}=B(t,o);return(H,n)=>{var i,_;const v=E,g=N,u=U;return h(),w("div",L,[s("div",{ref_key:"status",ref:r},[a(v,null,{default:m(()=>[M,T]),_:1}),a(g,{border:"b gray-400/20",title:""},{default:m(()=>[s("label",null,[C(s("input",{"onUpdate:modelValue":n[0]||(n[0]=c=>p(o)?o.value=c:null),type:"checkbox"},null,512),[[R,e(o)]]),P(" Include safelist ")])]),_:1})],512),s("div",j,[a(u,{modelValue:e(t),"onUpdate:modelValue":n[1]||(n[1]=c=>p(t)?t.value=c:null),mode:"html",matched:((i=e(d))==null?void 0:i.matched)||[],class:"scrolls repl-scrolls",style:f(e(l))},null,8,["modelValue","matched","style"]),a(u,{border:"l main","model-value":((_=e(d))==null?void 0:_.css)||"/* empty */","read-only":!0,mode:"css",class:"scrolls repl-scrolls",style:f(e(l))},null,8,["model-value","style"])])])}}}),z={};function D(y,r){const l=q;return h(),I(l)}const A=$(z,[["render",D]]);export{A as default};
|
package/dist/client/index.html
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
9
9
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
10
10
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;400&family=Fira+Code&display=swap" rel="stylesheet" />
|
|
11
|
-
<script type="module" crossorigin src="/__unocss/assets/index-
|
|
11
|
+
<script type="module" crossorigin src="/__unocss/assets/index-b905d900.js"></script>
|
|
12
12
|
<link rel="stylesheet" href="/__unocss/assets/index-5f73988d.css">
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
package/dist/index.cjs
CHANGED
|
@@ -153,11 +153,8 @@ function px(str) {
|
|
|
153
153
|
return;
|
|
154
154
|
const [, n, unit] = match;
|
|
155
155
|
const num = Number.parseFloat(n);
|
|
156
|
-
if (!Number.isNaN(num))
|
|
157
|
-
if (num === 0)
|
|
158
|
-
return "0";
|
|
156
|
+
if (!Number.isNaN(num))
|
|
159
157
|
return unit ? `${round(num)}${unit}` : `${round(num)}px`;
|
|
160
|
-
}
|
|
161
158
|
}
|
|
162
159
|
function number(str) {
|
|
163
160
|
if (!numberRE.test(str))
|
package/dist/index.mjs
CHANGED
|
@@ -145,11 +145,8 @@ function px(str) {
|
|
|
145
145
|
return;
|
|
146
146
|
const [, n, unit] = match;
|
|
147
147
|
const num = Number.parseFloat(n);
|
|
148
|
-
if (!Number.isNaN(num))
|
|
149
|
-
if (num === 0)
|
|
150
|
-
return "0";
|
|
148
|
+
if (!Number.isNaN(num))
|
|
151
149
|
return unit ? `${round(num)}${unit}` : `${round(num)}px`;
|
|
152
|
-
}
|
|
153
150
|
}
|
|
154
151
|
function number(str) {
|
|
155
152
|
if (!numberRE.test(str))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/inspector",
|
|
3
|
-
"version": "0.57.
|
|
3
|
+
"version": "0.57.3",
|
|
4
4
|
"description": "The inspector UI for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"gzip-size": "^6.0.0",
|
|
38
38
|
"sirv": "^2.0.3",
|
|
39
|
-
"@unocss/
|
|
39
|
+
"@unocss/core": "0.57.3",
|
|
40
|
+
"@unocss/rule-utils": "0.57.3"
|
|
40
41
|
},
|
|
41
42
|
"scripts": {
|
|
42
43
|
"build": "unbuild",
|