@unocss/inspector 0.30.7 → 0.30.11

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.
@@ -0,0 +1,3 @@
1
+ import{d as h,r as y,u as g,a as v,f as x,o as i,c as S,b as l,w as k,e as n,g as e,i as B,n as _,_ as V,h as b,j as w,k as C}from"./index.c86fd631.js";const R={"h-full":"",grid:"~ rows-[max-content_1fr]","of-hidden":""},E=n("div",null," REPL Playground ",-1),P=n("div",{op60:""}," Edit your code below to test and play UnoCSS's matching and generating. ",-1),N={"h-full":"","of-hidden":"",grid:"","grid-cols-2":""},U=h({setup(m){const o=y(null),s=g(o,"rpel-scrolls"),t=v("unocss:inspector:repl",`<div class="text-sm hover:text-red">
2
+ Hello World
3
+ </div>`),{data:a}=x(t);return(z,r)=>{var d,u;const p=V,c=b;return i(),S("div",R,[l(p,{ref_key:"status",ref:o},{default:k(()=>[E,P]),_:1},512),n("div",N,[l(c,{modelValue:e(t),"onUpdate:modelValue":r[0]||(r[0]=f=>B(t)?t.value=f:null),mode:"html",matched:((d=e(a))==null?void 0:d.matched)||[],class:"scrolls rpel-scrolls",style:_(e(s))},null,8,["modelValue","matched","style"]),l(c,{"b-l":"","b-main":"","model-value":((u=e(a))==null?void 0:u.css)||"/* empty */","read-only":!0,mode:"css",class:"scrolls rpel-scrolls",style:_(e(s))},null,8,["model-value","style"])])])}}}),$={};function j(m,o){const s=U;return i(),C(s)}var L=w($,[["render",j]]);export{L as default};
@@ -8,8 +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.1cf64e19.js"></script>
12
- <link rel="modulepreload" href="/__unocss/assets/vendor.d1551fd1.js">
11
+ <script type="module" crossorigin src="/__unocss/assets/index.c86fd631.js"></script>
13
12
  <link rel="stylesheet" href="/__unocss/assets/index.fe4925b0.css">
14
13
  </head>
15
14
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/inspector",
3
- "version": "0.30.7",
3
+ "version": "0.30.11",
4
4
  "description": "The inspector UI for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -1 +0,0 @@
1
- import{d as M,L as z,r as B,M as N,i as m,a as S,c as R,n as b,p as O,b as p,q as k,t as $,k as w,s as V,v as W,y as I}from"./vendor.d1551fd1.js";import{i as E,c as U,d as Z,u as j,e as q,_ as D,a as K}from"./index.1cf64e19.js";const L=e=>e.split(/[\s'"`;>=]+/g).filter(E),T={name:"split",order:0,extract({code:e}){return new Set(L(e))}},P=/^(?!\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/,G=(e={})=>{var d,c;const s=(d=e.prefix)!=null?d:"un-",r=(c=e.prefixedOnly)!=null?c:!1;return _=>{const o=U(_);if(!o)return;let t=o[1];if(t.startsWith(s))t=t.slice(s.length);else if(r)return;const a=o[2],[,i="",n=a]=a.match(P)||[];return n==="~"||!n?`${i}${t}`:`${i}${t}-${n}`}},H=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,J=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,C=/[\s'"`;>]+/,Q={name:"attributify",extract:({content:e,cursor:s})=>{const r=e.matchAll(H);let d,c=0;for(const f of r){const[,x,v]=f,g=f.index+x.length;if(s>g&&s<=g+v.length){c=g,d=v;break}}if(!d)return null;const _=d.matchAll(J);let o=0,t,a;for(const f of _){const[x,v,g]=f,A=c+f.index;if(s>A&&s<=A+x.length){o=A,t=v,a=g==null?void 0:g.slice(1);break}}if(!t||t==="class"||t==="className")return null;if(a===void 0)return{extracted:t,resolveReplacement(f){return{start:o,end:o+t.length,replacement:f}}};const i=o+t.length+2;let n=C.exec(a),l=0,h;for(;n;){const[f]=n;if(s>i+l&&s<=i+l+n.index){h=a.slice(l,l+n.index);break}l+=n.index+f.length,n=C.exec(a.slice(l))}h===void 0&&(h=a.slice(l));const[,u="",y]=h.match(P)||[];return{extracted:`${u}${t}-${y}`,transformSuggestions(f){return f.filter(x=>x.startsWith(`${u}${t}-`)).map(x=>u+x.slice(u.length+t.length+1))},resolveReplacement(f){return{start:l+i,end:l+i+h.length,replacement:u+f.slice(u.length+t.length+1)}}}}},X=["v-bind:",":"],F=/[\s'"`;]+/g,Y=/<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g,tt=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g,et=e=>{var d,c;const s=(d=e==null?void 0:e.ignoreAttributes)!=null?d:[],r=(c=e==null?void 0:e.nonValuedAttribute)!=null?c:!0;return{name:"attributify",extract({code:_}){const o=Array.from(_.matchAll(Y)).flatMap(t=>Array.from((t[1]||"").matchAll(tt))).flatMap(([,t,a,i])=>{if(s.includes(t))return[];for(const n of X)if(t.startsWith(n)){t=t.slice(n.length);break}return i?["class","className"].includes(t)?i.split(F).filter(E):i.split(F).filter(Boolean).map(n=>`[${t}~="${n}"]`):E(t)&&r!==!1?[`[${t}=""]`]:[]});return new Set(o)}}},st=(e={})=>{var c,_,o,t,a;e.strict=(c=e.strict)!=null?c:!1,e.prefix=(_=e.prefix)!=null?_:"un-",e.prefixedOnly=(o=e.prefixedOnly)!=null?o:!1,e.nonValuedAttribute=(t=e.nonValuedAttribute)!=null?t:!0,e.ignoreAttributes=(a=e.ignoreAttributes)!=null?a:[];const s=[G(e)],r=[et(e)],d=[Q];return e.strict||r.unshift(T),{name:"@unocss/preset-attributify",variants:s,extractors:r,options:e,autocomplete:{extractors:d}}},rt={key:0,"h-full":"","of-hidden":""},nt=p("div",{op50:""}," Module ",-1),lt=p("div",{"i-carbon-launch":""},null,-1),ct=p("div",{op50:""}," Matched Rules ",-1),at=p("div",{op50:""}," CSS Size ",-1),ot=p("span",{op50:""},"gzipped",-1),it={key:0,"row-span-3":""},dt=p("div",{op50:""}," Potentially Unmatched ",-1),ut={"h-full":"","of-hidden":"",grid:"","grid-cols-2":""},ft=M({props:{id:null},setup(e){const s=e,{data:r}=Z(z(s,"id")),d=s.id.split(/\./g).pop(),c=B(null),_=j(c,"module-scrolls");function o(){fetch(`/__open-in-editor?file=${encodeURIComponent(s.id)}`)}const{extractors:t}=st({strict:!0}),a=N(async()=>{var n;const i=new Set;if(t){const l={code:((n=r.value)==null?void 0:n.code)||""};for(const h of t){const u=await h.extract(l);u==null||u.forEach(y=>i.add(y))}}return Array.from(i).filter(l=>!l.startsWith("[")).filter(l=>{var h;return!((h=r.value)!=null&&h.matched.includes(l))})});return(i,n)=>{const l=q,h=D,u=K;return m(r)?(S(),R("div",rt,[b(h,{ref_key:"status",ref:c,grid:"~ cols-3 gap-4"},{default:O(()=>{var y;return[p("div",null,[nt,p("a",{"cursor-pointer":"",op80:"","hover:op100":"",onClick:o},[b(l,{id:m(r).id,"mr-1":""},null,8,["id"]),lt])]),p("div",null,[ct,k(" "+$(m(r).matched.length),1)]),p("div",null,[at,k(" "+$(((((y=m(r))==null?void 0:y.gzipSize)||0)/1024).toFixed(2))+" KiB ",1),ot]),m(a).length?(S(),R("div",it,[dt,p("code",null,$(m(a).join(", ")),1)])):w("",!0)]}),_:1},512),p("div",ut,[b(u,{"h-full":"","model-value":m(r).code,"read-only":!0,mode:m(d),matched:m(r).matched,class:"scrolls module-scrolls",style:V(m(_))},null,8,["model-value","mode","matched","style"]),b(u,{"h-full":"",b:"l main","model-value":m(r).css,"read-only":!0,mode:"css",class:"scrolls module-scrolls",style:V(m(_))},null,8,["model-value","style"])])])):w("",!0)}}}),pt=M({setup(e){const s=I();return(r,d)=>{const c=ft;return S(),W(c,{id:m(s).params.id},null,8,["id"])}}});export{pt as default};
@@ -1,3 +0,0 @@
1
- var me=Object.defineProperty,he=Object.defineProperties;var fe=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var ve=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable;var X=(e,o,t)=>o in e?me(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,w=(e,o)=>{for(var t in o||(o={}))ve.call(o,t)&&X(e,t,o[t]);if(Q)for(var t of Q(o))ge.call(o,t)&&X(e,t,o[t]);return e},Y=(e,o)=>he(e,fe(o));import{C as ye,w as re,d as y,r as L,u as xe,o as $e,a as d,c as p,b as r,e as ke,f as ce,g as O,h as b,i as l,j as be,F as T,t as _,k as R,l as we,m as Ee,n as h,p as $,q as f,s as Ce,v as S,x as V,y as Re,z as j,A as ee,B as Se,D as je,_ as Oe,E as te,G as Fe,H as Te,I as Ve}from"./vendor.d1551fd1.js";const Ie=function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const c of i.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function t(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerpolicy&&(i.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?i.credentials="include":s.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=t(s);fetch(s.href,i)}};Ie();const Le="modulepreload",oe={},Me="/__unocss/",I=function(o,t){return!t||t.length===0?o():Promise.all(t.map(n=>{if(n=`${Me}${n}`,n in oe)return;oe[n]=!0;const s=n.endsWith(".css"),i=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${i}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":Le,s||(c.as="script",c.crossOrigin=""),c.href=n,document.head.appendChild(c),s)return new Promise((a,v)=>{c.addEventListener("load",a),c.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>o())};function ne(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Ae=/^\[(.+?)~?="(.*)"\]$/,Pe=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/;function He(e){return e.match(Ae)}function Xt(e=""){return Pe.test(e)}function ze(e,o){const t=[],n=[],s=new Set;Array.from(o).forEach(c=>{const a=He(c);a?a[2]?n.push(a):s.add(a[1]):s.add(c)});let i=0;return e.split(/[\s"';<>]/g).forEach(c=>{const a=i+c.length;s.has(c)&&t.push([i,a,c]),i=a+1}),n.forEach(([,c,a])=>{const v=new RegExp(`${ne(c)}=(['"])[^\\1]*?${ne(a)}[^\\1]*?\\1`,"g");Array.from(e.matchAll(v)).forEach(x=>{const g=x.index+x[0].indexOf(a),m=g+a.length;t.push([g,m,`[${c}="${a}"]`])})}),t}function De(e,o,t={}){const n=ye.fromTextArea(e.value,w({theme:"vars"},t));let s=!1;return n.on("change",()=>{if(s){s=!1;return}o.value=n.getValue()}),re(o,i=>{if(i!==n.getValue()){s=!0;const c=n.listSelections();n.replaceRange(i,n.posFromIndex(0),n.posFromIndex(1/0)),n.setSelections(c)}},{immediate:!0}),n}const Ne={relative:"","font-mono":"","text-sm":""},Be=y({props:{modelValue:null,mode:null,readOnly:{type:Boolean},matched:null,getHint:null},setup(e,{emit:o}){const t=e,n={html:"htmlmixed",vue:"htmlmixed",svelte:"htmlmixed",js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},s=L(),i=xe(t,"modelValue",o,{passive:!0});return $e(async()=>{const c=De(s,i,w(Y(w({},t),{mode:n[t.mode||""]||t.mode}),t.getHint?{extraKeys:{"Ctrl-Space":"autocomplete","Ctrl-.":"autocomplete","Cmd-Space":"autocomplete","Cmd-.":"autocomplete",Tab:"autocomplete"},hintOptions:{hint:t.getHint}}:{}));c.setSize("100%","100%"),t.getHint&&c.on("keyup",(m,k)=>{k.key.match(/^[\w:-]$/)&&m.execCommand("autocomplete")}),setTimeout(()=>c.refresh(),100);const a=[];function v(m,k){a.push(c.markText(c.posFromIndex(m),c.posFromIndex(k),{className:"highlighted"}))}function x(){a.forEach(m=>m.clear()),ze(t.modelValue,Array.from(t.matched||[])).forEach(m=>v(m[0],m[1]))}let g=0;re(()=>[t.modelValue,t.matched],async()=>{clearTimeout(g),t.matched&&(g=setTimeout(x,100))},{immediate:!0})}),(c,a)=>(d(),p("div",Ne,[r("textarea",{ref_key:"el",ref:s},null,512)]))}});var ie=(e,o)=>{const t=e.__vccOpts||e;for(const[n,s]of o)t[n]=s;return t};const Ue={},We={"bg-gray4:10":"","p-5":"",b:"b main",text:"sm gray5 dark:gray3"};function qe(e,o){return d(),p("div",We,[ke(e.$slots,"default")])}var Ke=ie(Ue,[["render",qe]]);const Ge="/@vite/client",ae=ce(),le=ce(),Ze=ae.on,de=le.on;I(()=>import(Ge),[]).then(e=>{const o=e.createHotContext("/");o.on("vite:beforeUpdate",t=>{t.updates.forEach(n=>{ae.trigger(n)})}),o.on("unocss:config-changed",()=>{le.trigger()})}).catch(e=>{console.error("failed to connect to client vite server, you might need to do manual refresh to see the updates"),console.error(e)});const F="/__unocss_api",ue=O(F).json(),M=O(`${F}/overview`,{immediate:!1}).json(),u=ue.data,E=M.data;de(()=>{ue.execute(),M.execute()});function Yt(e){const o=O(b(()=>`${F}/module?id=${encodeURIComponent(l(e))}`),{refetch:!0}).json();return de(()=>o.execute()),Ze(t=>{var n;(t.path===l(e)||t.path===l(e).slice(((n=u.value)==null?void 0:n.root.length)||0))&&setTimeout(()=>{o.execute()},50)}),o}function eo(e){const o=be(e,500);return O(b(()=>`${F}/repl?token=${encodeURIComponent(o.value)}`),{refetch:!0}).json()}const C=b(()=>{if(!u.value)return{workspace:{children:{},items:[]},root:{children:{},items:[]}};const e=u.value.modules.map(n=>({full:n,path:n})),o=e.filter(n=>n.full.startsWith(u.value.root)),t=e.filter(n=>!n.full.startsWith(u.value.root));return o.forEach(n=>n.path=n.path.slice(u.value.root.length+1)),{workspace:se(o,"Project Root"),root:se(t,"Disk Root")}});function se(e,o){const t={name:o,children:{},items:[]};function n(s,i,c=t){if(i.length<=1){c.items.push(s);return}const a=i.shift();c.children[a]||(c.children[a]={name:a,children:{},items:[]}),n(s,i,c.children[a])}return e.forEach(s=>{const i=s.path.split(/\//g).filter(Boolean);n(s,i)}),t}const Je={key:0,"ws-wrap":""},Qe=r("span",{op80:""},".",-1),Xe={key:1},Ye=y({props:{id:null},setup(e){return(o,t)=>e.id&&l(u)?(d(),p("span",Je,[e.id.startsWith(l(u).root)?(d(),p(T,{key:0},[Qe,r("span",null,_(e.id.slice(l(u).root.length)),1)],64)):(d(),p("span",Xe,_(e.id),1))])):R("",!0)}}),et=(e,o)=>{const t=L(null);return we(e,()=>{var s;const n=(s=Ee(e))==null?void 0:s.clientHeight;t.value=n?`--${o}: calc(100vh - ${n}px - 2px);`:null}),t},tt={"h-full":""},ot={p:"x4 y2",grid:"~ cols-4 gap-4"},nt=r("div",{op80:""}," Presets ",-1),st={op50:"","ws-pre":""},rt={overflow:"auto"},ct=r("div",{op80:""}," Rules ",-1),it=r("span",{op50:""},"dynamic",-1),at=r("br",null,null,-1),lt=r("span",{op50:""},"static",-1),dt=r("div",{op80:""}," Variants ",-1),ut=r("div",{op80:""}," Shortcuts ",-1),pt={key:0},_t=r("div",{op80:""}," Config File ",-1),mt=r("div",{op80:""}," Version ",-1),ht={op50:"","ws-pre":""},ft={b:"t main",p:"x4 y2",grid:"~ cols-4 gap-4"},vt=r("div",{op80:""}," Included Files ",-1),gt=r("div",{op80:""}," CSS Size ",-1),yt=r("span",{op50:""},"gzipped",-1),xt=r("div",{op80:""}," Matched Rules ",-1),$t=r("div",{op80:""}," Layers ",-1),kt={op50:"","ws-pre":""},bt=y({setup(e){const o=L(null),t=et(o,"overview-scrolls");return M.execute(),(n,s)=>{var v;const i=Ye,c=Ke,a=Be;return d(),p("div",tt,[h(c,{ref_key:"status",ref:o,p0:""},{default:$(()=>{var x,g,m,k,A,P,H,z,D,N,B,U,W,q,K,G,Z,J;return[r("div",ot,[r("div",null,[nt,r("div",st,_((m=(g=(x=l(u))==null?void 0:x.config)==null?void 0:g.presets)==null?void 0:m.map(_e=>_e.name).join(`
2
- `)),1)]),r("div",rt,[ct,f(" "+_((P=(A=(k=l(u))==null?void 0:k.config)==null?void 0:A.rulesDynamic)==null?void 0:P.filter(Boolean).length)+" ",1),it,at,f(" "+_(Object.keys(((z=(H=l(u))==null?void 0:H.config)==null?void 0:z.rulesStaticMap)||{}).length)+" ",1),lt]),r("div",null,[dt,f(" "+_((B=(N=(D=l(u))==null?void 0:D.config)==null?void 0:N.variants)==null?void 0:B.length),1)]),r("div",null,[ut,f(" "+_((U=l(u))==null?void 0:U.config.shortcuts.length),1)]),(W=l(u))!=null&&W.configPath?(d(),p("div",pt,[_t,h(i,{id:l(u).configPath},null,8,["id"])])):R("",!0),r("div",null,[mt,r("div",ht,_((q=l(u))==null?void 0:q.version),1)])]),r("div",ft,[r("div",null,[vt,f(" "+_((K=l(u))==null?void 0:K.modules.length),1)]),r("div",null,[gt,f(" "+_(((((G=l(E))==null?void 0:G.gzipSize)||0)/1024).toFixed(2))+" KiB ",1),yt]),r("div",null,[xt,f(" "+_((Z=l(E))==null?void 0:Z.matched.length),1)]),r("div",null,[$t,r("div",kt,_((J=l(E))==null?void 0:J.layers.join(`
3
- `)),1)])])]}),_:1},512),h(a,{"model-value":((v=l(E))==null?void 0:v.css)||"/* empty */","read-only":!0,mode:"css",class:"scrolls overview-scrolls",style:Ce(l(t))},null,8,["model-value","style"])])}}}),wt={};function Et(e,o){const t=bt;return d(),S(t)}var Ct=ie(wt,[["render",Et]]);const Rt=[{name:"index",path:"/",component:Ct,props:!0},{name:"repl",path:"/repl",component:()=>I(()=>import("./repl.cc402582.js"),["assets/repl.cc402582.js","assets/repl.6afeb916.css","assets/vendor.d1551fd1.js"]),props:!0},{name:"module-id",path:"/module/:id",component:()=>I(()=>import("./_id_.dd760c56.js"),["assets/_id_.dd760c56.js","assets/_id_.f3f96d16.css","assets/vendor.d1551fd1.js"]),props:!0}],St=y({props:{id:null},setup(e){const o=e,t=b(()=>o.id.split(/\./g).pop()),n=b(()=>{switch(t.value){case"vue":return"i-logos-vue";default:return"i-carbon-document-blank"}});return(s,i)=>(d(),p("div",{class:V(l(n))},null,2))}}),jt={open:""},Ot={"cursor-default":"","select-none":"","text-sm":"",truncate:"",p:"y1"},Ft={"ml-1":""},Tt=y({props:{node:null,icon:{default:"i-carbon-folder"}},setup(e){const o=Re();return(t,n)=>{const s=j("ModuleTreeNode",!0),i=St,c=j("RouterLink");return d(),p("details",jt,[r("summary",Ot,[r("div",{class:V(e.icon)},null,2),f(" "+_(e.node.name),1)]),(d(!0),p(T,null,ee(Object.entries(e.node.children),a=>(d(),S(s,{key:a[0],ml2:"",node:a[1]},null,8,["node"]))),128)),(d(!0),p(T,null,ee(e.node.items,a=>(d(),p("div",{key:a.full,ml4:"","ws-nowrap":""},[h(c,{block:"","text-sm":"",p:"x2 y1",rounded:"",to:`/module/${encodeURIComponent(a.full)}`,class:V({"bg-gray/10":a.full===l(o).params.id})},{default:$(()=>[h(i,{id:a.path},null,8,["id"]),r("span",Ft,_(a.path.split("/").pop()),1)]),_:2},1032,["to","class"])]))),128))])}}});var Vt="/__unocss/icon.svg";const It={p:"x4 y3",b:"b main",flex:"","children:my-auto":""},Lt=r("div",{flex:"","flex-auto":"","children:my-auto":"","ws-nowrap":""},[r("img",{src:Vt,filter:"","dark:invert":"","inline-block":"",h:"1.3em",m:"r-1.5"}),r("div",{"of-hidden":""},[f(" Inspector "),r("sup",{"text-teal5":"","bg-teal5:10":"",p:"x1.5 y0.5",rounded:"",italic:""},"beta")])],-1),Mt=y({setup(e){const o=Se(),t=je(o);return(n,s)=>(d(),p("nav",It,[Lt,r("button",{"text-lg":"","i-carbon-sun":"","dark:i-carbon-moon":"",onClick:s[0]||(s[0]=i=>l(t)())})]))}}),At={"h-full":""},Pt={b:"r main","of-hidden":""},Ht={pt:"4",flex:"~ col gap-3"},zt=r("div",{"i-carbon-dashboard":""},null,-1),Dt=r("span",null," Overview ",-1),Nt=r("div",{"i-carbon-terminal":""},null,-1),Bt=r("span",null," REPL ",-1),Ut=r("div",{b:"b main"},null,-1),Wt={b:"r main",class:"scrolls scrolls-sidebar"},qt=y({setup(e){return(o,t)=>{const n=Mt,s=j("RouterLink"),i=Tt;return d(),p("div",At,[r("div",Pt,[h(n),r("div",Ht,[h(s,{block:"",to:"/","text-sm":"",m:"l-3.7"},{default:$(()=>[zt,Dt]),_:1}),h(s,{block:"",to:"/repl","text-sm":"",m:"l-3.7"},{default:$(()=>[Nt,Bt]),_:1}),Ut])]),r("div",Wt,[Object.keys(l(C).workspace.children).length?(d(),S(i,{key:0,node:l(C).workspace,p:"l3 t4",icon:"i-carbon-portfolio"},null,8,["node"])):R("",!0),Object.keys(l(C).root.children).length?(d(),S(i,{key:1,node:l(C).root,p:"l3 t4",icon:"i-carbon-vmdk-disk"},null,8,["node"])):R("",!0)])])}}}),Kt={"h-screen":"","w-screen":"",overflow:"hidden"},Gt={"h-full":"","of-hidden":""},Zt=y({setup(e){return(o,t)=>{const n=qt,s=j("RouterView");return d(),p("div",Kt,[h(l(Oe),null,{default:$(()=>[h(l(te),{size:"20","push-other-panes":!1},{default:$(()=>[h(n)]),_:1}),h(l(te),{size:"80"},{default:$(()=>[r("div",Gt,[h(s)])]),_:1})]),_:1})])}}}),pe=Fe(Zt);pe.use(Te({history:Ve(),routes:Rt}));pe.mount("#app");export{Ke as _,Be as a,ie as b,He as c,Yt as d,Ye as e,eo as f,Xt as i,et as u};
@@ -1,3 +0,0 @@
1
- import{d as h,r as y,J as v,a as i,c as g,n as l,p as x,b as n,i as e,K as S,s as _,v as b}from"./vendor.d1551fd1.js";import{u as B,f as V,_ as k,a as C,b as R}from"./index.1cf64e19.js";const w={"h-full":"",grid:"~ rows-[max-content_1fr]","of-hidden":""},E=n("div",null," REPL Playground ",-1),P=n("div",{op60:""}," Edit your code below to test and play UnoCSS's matching and generating. ",-1),N={"h-full":"","of-hidden":"",grid:"","grid-cols-2":""},U=h({setup(m){const o=y(null),s=B(o,"rpel-scrolls"),t=v("unocss:inspector:repl",`<div class="text-sm hover:text-red">
2
- Hello World
3
- </div>`),{data:a}=V(t);return(H,r)=>{var d,u;const p=k,c=C;return i(),g("div",w,[l(p,{ref_key:"status",ref:o},{default:x(()=>[E,P]),_:1},512),n("div",N,[l(c,{modelValue:e(t),"onUpdate:modelValue":r[0]||(r[0]=f=>S(t)?t.value=f:null),mode:"html",matched:((d=e(a))==null?void 0:d.matched)||[],class:"scrolls rpel-scrolls",style:_(e(s))},null,8,["modelValue","matched","style"]),l(c,{"b-l":"","b-main":"","model-value":((u=e(a))==null?void 0:u.css)||"/* empty */","read-only":!0,mode:"css",class:"scrolls rpel-scrolls",style:_(e(s))},null,8,["model-value","style"])])])}}}),$={};function z(m,o){const s=U;return i(),b(s)}var L=R($,[["render",z]]);export{L as default};