notjs-react 0.5.6 → 0.5.8

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.cjs CHANGED
@@ -208,5 +208,5 @@ func main() {
208
208
  .dark .xterm-viewport {
209
209
  scrollbar-color: #525252 transparent;
210
210
  }
211
- `}),G.jsxs("div",{className:"flex flex-col h-screen w-screen bg-neutral-50 dark:bg-neutral-950",children:[!E&&G.jsxs("div",{className:"flex items-center justify-between px-8 py-3 bg-white/80 dark:bg-neutral-900/80 backdrop-blur border-b border-black/5 dark:border-white/5",children:[G.jsxs("div",{className:"flex items-center gap-6",children:[G.jsxs("div",{className:"flex items-center gap-4",children:[G.jsx("h1",{className:"text-2xl font-semibold text-neutral-900 dark:text-white",children:"NotJS"}),G.jsx("img",{src:Xo,alt:"NotJS Logo",className:"h-10 object-contain rounded-xl"})]}),G.jsx("select",{value:f,onChange:T=>g(T.target.value),className:"px-4 py-2 rounded-xl bg-neutral-100 dark:bg-neutral-800 text-neutral-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500/40 transition",children:d.map(T=>G.jsx("option",{value:T,children:T.toUpperCase()},T))}),r.length>0&&G.jsx("select",{value:e||l||"",onChange:T=>t(T.target.value||null),className:"px-4 py-2 rounded-xl bg-neutral-100 dark:bg-neutral-800 text-neutral-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-blue-500/40 transition",children:r.map(T=>G.jsxs("option",{value:T,children:["v",T," ",T===l?"(default)":""]},T))})]}),G.jsx("button",{onClick:x,className:"p-3 rounded-xl bg-neutral-100 dark:bg-neutral-800 hover:bg-neutral-200 dark:hover:bg-neutral-700 transition",children:_?G.jsx(Vo,{className:"w-5 h-5 text-yellow-500"}):G.jsx(qo,{className:"w-5 h-5 text-neutral-700"})})]}),G.jsxs("div",{ref:Y,className:"flex flex-1 overflow-hidden relative",children:[G.jsxs("div",{className:"flex flex-col bg-white dark:bg-neutral-900",style:{width:`${O}%`,flexShrink:0},children:[G.jsxs("div",{className:`flex items-center justify-between px-8 bg-neutral-100/70 dark:bg-neutral-900 border-b border-black/5 dark:border-white/5 ${E?"":"py-2"}`,children:[G.jsx("h2",{className:"text-sm font-semibold tracking-wide text-neutral-600 dark:text-neutral-400",children:"CODE"}),G.jsxs("div",{className:"flex items-center gap-2",children:[G.jsxs(At,{children:[G.jsx(Et,{asChild:!0,children:G.jsx("button",{onClick:Z,className:"p-1.5 rounded-lg transition bg-orange-500/90 hover:bg-orange-500 text-white",children:G.jsx(Yo,{className:"w-3.5 h-3.5"})})}),G.jsx(xt,{children:G.jsxs(Bt,{className:"rounded-lg bg-neutral-900 dark:bg-neutral-800 px-3 py-1.5 text-xs text-white shadow-lg",sideOffset:5,children:["Restart program",G.jsx(Rt,{className:"fill-neutral-900 dark:fill-neutral-800"})]})})]}),G.jsxs(At,{children:[G.jsx(Et,{asChild:!0,children:G.jsx("button",{onClick:()=>J(o,"code"),className:"p-1.5 rounded-lg bg-neutral-200 dark:bg-neutral-800 hover:bg-neutral-300 dark:hover:bg-neutral-700 transition",children:v?G.jsx(fr,{className:"w-3.5 h-3.5 text-emerald-600"}):G.jsx(gr,{className:"w-3.5 h-3.5 text-neutral-700 dark:text-neutral-300"})})}),G.jsx(xt,{children:G.jsxs(Bt,{className:"rounded-lg bg-neutral-900 dark:bg-neutral-800 px-3 py-1.5 text-xs text-white shadow-lg",sideOffset:5,children:["Copy code",G.jsx(Rt,{className:"fill-neutral-900 dark:fill-neutral-800"})]})})]})]})]}),G.jsx("div",{className:"flex-1 overflow-hidden rounded-b-2xl",children:G.jsx(ws,{height:"100%",language:f,value:o,onChange:T=>c(T||""),theme:_?"vs-dark":"light",options:{minimap:{enabled:!1},fontSize:14,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,tabSize:2,wordWrap:"on",padding:{top:12,bottom:12}}})})]}),G.jsx("div",{className:`w-1 shrink-0 bg-black/5 dark:bg-white/5 hover:bg-blue-500 cursor-col-resize transition ${F?"bg-blue-500":""}`,onMouseDown:K}),G.jsxs("div",{className:"flex-1 min-w-0 flex flex-col bg-white dark:bg-neutral-950",children:[G.jsxs("div",{className:`flex items-center justify-between px-8 bg-neutral-100/70 dark:bg-neutral-900 border-b border-black/5 dark:border-white/5 shrink-0 ${E?"":"py-2"}`,children:[G.jsx("h2",{className:"text-sm font-semibold tracking-wide text-neutral-600 dark:text-neutral-400",children:"CONSOLE"}),G.jsxs(At,{children:[G.jsx(Et,{asChild:!0,children:G.jsx("button",{onClick:M,className:"p-1.5 rounded-lg bg-neutral-200 dark:bg-neutral-800 hover:bg-neutral-300 dark:hover:bg-neutral-700 transition",children:k?G.jsx(fr,{className:"w-3.5 h-3.5 text-emerald-600"}):G.jsx(gr,{className:"w-3.5 h-3.5 text-neutral-700 dark:text-neutral-300"})})}),G.jsx(xt,{children:G.jsxs(Bt,{className:"rounded-lg bg-neutral-900 dark:bg-neutral-800 px-3 py-1.5 text-xs text-white shadow-lg",sideOffset:5,children:["Copy output",G.jsx(Rt,{className:"fill-neutral-900 dark:fill-neutral-800"})]})})]})]}),G.jsx("div",{ref:I,className:"flex-1 overflow-hidden rounded-b-2xl bg-white dark:bg-neutral-950 p-3"})]})]})]})]})}exports.NotJS=Zo;
211
+ `}),G.jsxs("div",{className:"notjs-container flex flex-col h-screen w-screen bg-neutral-50 dark:bg-neutral-950",children:[!E&&G.jsxs("div",{className:"flex items-center justify-between px-8 py-3 bg-white/80 dark:bg-neutral-900/80 backdrop-blur border-b border-black/5 dark:border-white/5",children:[G.jsxs("div",{className:"flex items-center gap-6",children:[G.jsxs("div",{className:"flex items-center gap-4",children:[G.jsx("h1",{className:"text-2xl font-semibold text-neutral-900 dark:text-white",children:"NotJS"}),G.jsx("img",{src:Xo,alt:"NotJS Logo",className:"h-10 object-contain rounded-xl"})]}),G.jsx("select",{value:f,onChange:T=>g(T.target.value),className:"px-4 py-2 rounded-xl bg-neutral-100 dark:bg-neutral-800 text-neutral-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500/40 transition",children:d.map(T=>G.jsx("option",{value:T,children:T.toUpperCase()},T))}),r.length>0&&G.jsx("select",{value:e||l||"",onChange:T=>t(T.target.value||null),className:"px-4 py-2 rounded-xl bg-neutral-100 dark:bg-neutral-800 text-neutral-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-blue-500/40 transition",children:r.map(T=>G.jsxs("option",{value:T,children:["v",T," ",T===l?"(default)":""]},T))})]}),G.jsx("button",{onClick:x,className:"p-3 rounded-xl bg-neutral-100 dark:bg-neutral-800 hover:bg-neutral-200 dark:hover:bg-neutral-700 transition",children:_?G.jsx(Vo,{className:"w-5 h-5 text-yellow-500"}):G.jsx(qo,{className:"w-5 h-5 text-neutral-700"})})]}),G.jsxs("div",{ref:Y,className:"flex flex-1 overflow-hidden relative",children:[G.jsxs("div",{className:"flex flex-col bg-white dark:bg-neutral-900",style:{width:`${O}%`,flexShrink:0},children:[G.jsxs("div",{className:`flex items-center justify-between px-8 bg-neutral-100/70 dark:bg-neutral-900 border-b border-black/5 dark:border-white/5 ${E?"":"py-2"}`,children:[G.jsx("h2",{className:"text-sm font-semibold tracking-wide text-neutral-600 dark:text-neutral-400",children:"CODE"}),G.jsxs("div",{className:"flex items-center gap-2",children:[G.jsxs(At,{children:[G.jsx(Et,{asChild:!0,children:G.jsx("button",{onClick:Z,className:"p-1.5 rounded-lg transition bg-orange-500/90 hover:bg-orange-500 text-white",children:G.jsx(Yo,{className:"w-3.5 h-3.5"})})}),G.jsx(xt,{children:G.jsxs(Bt,{className:"rounded-lg bg-neutral-900 dark:bg-neutral-800 px-3 py-1.5 text-xs text-white shadow-lg",sideOffset:5,children:["Restart program",G.jsx(Rt,{className:"fill-neutral-900 dark:fill-neutral-800"})]})})]}),G.jsxs(At,{children:[G.jsx(Et,{asChild:!0,children:G.jsx("button",{onClick:()=>J(o,"code"),className:"p-1.5 rounded-lg bg-neutral-200 dark:bg-neutral-800 hover:bg-neutral-300 dark:hover:bg-neutral-700 transition",children:v?G.jsx(fr,{className:"w-3.5 h-3.5 text-emerald-600"}):G.jsx(gr,{className:"w-3.5 h-3.5 text-neutral-700 dark:text-neutral-300"})})}),G.jsx(xt,{children:G.jsxs(Bt,{className:"rounded-lg bg-neutral-900 dark:bg-neutral-800 px-3 py-1.5 text-xs text-white shadow-lg",sideOffset:5,children:["Copy code",G.jsx(Rt,{className:"fill-neutral-900 dark:fill-neutral-800"})]})})]})]})]}),G.jsx("div",{className:"flex-1 overflow-hidden rounded-b-2xl",children:G.jsx(ws,{height:"100%",language:f,value:o,onChange:T=>c(T||""),theme:_?"vs-dark":"light",options:{minimap:{enabled:!1},fontSize:14,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,tabSize:2,wordWrap:"on",padding:{top:12,bottom:12}}})})]}),G.jsx("div",{className:`w-1 shrink-0 bg-black/5 dark:bg-white/5 hover:bg-blue-500 cursor-col-resize transition ${F?"bg-blue-500":""}`,onMouseDown:K}),G.jsxs("div",{className:"flex-1 min-w-0 flex flex-col bg-white dark:bg-neutral-950",children:[G.jsxs("div",{className:`flex items-center justify-between px-8 bg-neutral-100/70 dark:bg-neutral-900 border-b border-black/5 dark:border-white/5 shrink-0 ${E?"":"py-2"}`,children:[G.jsx("h2",{className:"text-sm font-semibold tracking-wide text-neutral-600 dark:text-neutral-400",children:"CONSOLE"}),G.jsxs(At,{children:[G.jsx(Et,{asChild:!0,children:G.jsx("button",{onClick:M,className:"p-1.5 rounded-lg bg-neutral-200 dark:bg-neutral-800 hover:bg-neutral-300 dark:hover:bg-neutral-700 transition",children:k?G.jsx(fr,{className:"w-3.5 h-3.5 text-emerald-600"}):G.jsx(gr,{className:"w-3.5 h-3.5 text-neutral-700 dark:text-neutral-300"})})}),G.jsx(xt,{children:G.jsxs(Bt,{className:"rounded-lg bg-neutral-900 dark:bg-neutral-800 px-3 py-1.5 text-xs text-white shadow-lg",sideOffset:5,children:["Copy output",G.jsx(Rt,{className:"fill-neutral-900 dark:fill-neutral-800"})]})})]})]}),G.jsx("div",{ref:I,className:"flex-1 overflow-hidden rounded-b-2xl bg-white dark:bg-neutral-950 p-3"})]})]})]})]})}exports.NotJS=Zo;
212
212
  //# sourceMappingURL=index.cjs.map