mtxuilib 0.0.489 → 0.0.490

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,4 @@
1
+ /// <reference types="react" />
2
+ export declare const LzBigCode: import("react").ComponentType<{
3
+ children?: import("react").ReactNode;
4
+ }>;
@@ -0,0 +1 @@
1
+ "use client";import e from"next/dynamic";const t=e(()=>import("./demos/bigcode/BigCode").then(o=>o.BigCode),{});export{t as LzBigCode};
@@ -1 +1 @@
1
- "use client";import{Fragment as m,jsx as i,jsxs as x}from"react/jsx-runtime";import{atom as l,createStore as S,useAtom as r,useSetAtom as y}from"jotai";import{useEffect as b}from"react";import v from"use-resize-observer";import{cn as u}from"../../lib/utils";import{ResizableHandle as L,ResizablePanel as d,ResizablePanelGroup as P}from"../../ui/resizable";import{MailLyContent as G}from"./detail/MailLyContent";const c=[20,30,50],f=[40,50,60],z=[10,15,10],p=l(c,(o,t,e)=>{t(p,e)}),h=l(!1,(o,t,e)=>{t(h,e)}),C=l(!1),O=l(void 0),W=l("value1"),k=S(),H=o=>{const{children:t}=o,{ref:e,width:n,height:s}=v();return i(m,{children:i("div",{ref:e,className:"w-full ",children:x(P,{direction:"horizontal",onLayout:a=>{document.cookie=`react-resizable-panels:layout=${JSON.stringify(a)}`},className:u("h-96 max-h-full min-h-full w-full flex-1 items-stretch "),style:{height:(s||1)-1},children:["startlistview88820000",t]})})})},J=o=>{const{children:t}=o,[e,n]=r(h),[s]=r(p),a=y(C);return b(()=>{a(!0)},[a]),x(m,{children:[i(d,{defaultSize:s&&s[0]||c[0],collapsedSize:4,collapsible:!0,minSize:z[0],maxSize:f[0],onCollapse:()=>{n(!0),document.cookie=`react-resizable-panels:collapsed=${JSON.stringify(!0)}`},onExpand:()=>{n(!1),document.cookie=`react-resizable-panels:collapsed=${JSON.stringify(!1)}`},className:u(e&&"min-w-[50px] transition-all duration-300 ease-in-out"),children:t}),i(L,{withHandle:!0})]})},T=o=>{const{children:t}=o,[e]=r(p);return i(m,{children:i(d,{defaultSize:e&&e[1]||c[1],minSize:z[1],maxSize:f[1],className:"hidden h-full w-full md:flex",children:t})})};export{H as MailLayout,T as MailLayoutList,J as MailLayoutSidenav,G as MailLyContent,c as detaultSizes,W as exampleValue1Atom,k as mailLayoutStore,h as mailLyCollapsedAtom,p as mailLySizesAtom,f as maxSizes,z as minSizes,O as trpcListViewAtom};
1
+ "use client";import{Fragment as m,jsx as i,jsxs as C}from"react/jsx-runtime";import{atom as l,createStore as x,useAtom as r,useSetAtom as S}from"jotai";import{useEffect as y}from"react";import b from"use-resize-observer";import{cn as u}from"../../lib/utils";import{ResizableHandle as L,ResizablePanel as d,ResizablePanelGroup as P}from"../../ui/resizable";import{MailLyContent as G}from"./detail/MailLyContent";const c=[20,30,50],f=[40,50,60],z=[10,15,10],p=l(c,(o,t,e)=>{t(p,e)}),h=l(!1,(o,t,e)=>{t(h,e)}),v=l(!1),O=l(void 0),W=l("value1"),k=x(),H=o=>{const{children:t}=o,{ref:e,width:n,height:s}=b();return i(m,{children:i("div",{ref:e,className:"w-full ",children:i(P,{direction:"horizontal",onLayout:a=>{document.cookie=`react-resizable-panels:layout=${JSON.stringify(a)}`},className:u("h-96 max-h-full min-h-full w-full flex-1 items-stretch "),style:{height:(s||1)-1},children:t})})})},J=o=>{const{children:t}=o,[e,n]=r(h),[s]=r(p),a=S(v);return y(()=>{a(!0)},[a]),C(m,{children:[i(d,{defaultSize:s&&s[0]||c[0],collapsedSize:4,collapsible:!0,minSize:z[0],maxSize:f[0],onCollapse:()=>{n(!0),document.cookie=`react-resizable-panels:collapsed=${JSON.stringify(!0)}`},onExpand:()=>{n(!1),document.cookie=`react-resizable-panels:collapsed=${JSON.stringify(!1)}`},className:u(e&&"min-w-[50px] transition-all duration-300 ease-in-out"),children:t}),i(L,{withHandle:!0})]})},T=o=>{const{children:t}=o,[e]=r(p);return i(m,{children:i(d,{defaultSize:e&&e[1]||c[1],minSize:z[1],maxSize:f[1],className:"hidden h-full w-full md:flex",children:t})})};export{H as MailLayout,T as MailLayoutList,J as MailLayoutSidenav,G as MailLyContent,c as detaultSizes,W as exampleValue1Atom,k as mailLayoutStore,h as mailLyCollapsedAtom,p as mailLySizesAtom,f as maxSizes,z as minSizes,O as trpcListViewAtom};