mtxuilib 0.0.462 → 0.0.463
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 +1 @@
|
|
|
1
|
-
"use client";var
|
|
1
|
+
"use client";var f=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var S=(e,o)=>{var s={};for(var t in e)L.call(e,t)&&o.indexOf(t)<0&&(s[t]=e[t]);if(e!=null&&f)for(var t of f(e))o.indexOf(t)<0&&C.call(e,t)&&(s[t]=e[t]);return s};import{Fragment as m,jsx as i,jsxs as v}from"react/jsx-runtime";import{Provider as N,atom as n,createStore as w,useAtom as r,useSetAtom as A}from"jotai";import{useEffect as R}from"react";import{useIsDesktop as h}from"../hooks/use-media-query";import{cn as d}from"../lib/utils";import{ResizableHandle as y,ResizablePanel as u,ResizablePanelGroup as g}from"../ui/resizable";import{FullScreenPanel as k}from"../ui/ui-mt/FullScreenEditPanel";const c=[20,30,50],b=[40,50,60],x=[10,15,10],p=n(c,(e,o,s)=>{o(p,s)}),P=n(!1,(e,o,s)=>{o(P,s)}),W=n(!1),H=n(void 0),G=n("value1"),M=w(),I=e=>{const{children:o}=e;return i(N,{store:M,children:i(g,{direction:"horizontal",onLayout:s=>{document.cookie=`react-resizable-panels:layout=${JSON.stringify(s)}`},className:d("h-full items-stretch","max-h-[920px]"),children:o})})},q=e=>{const{children:o}=e,[s,t]=r(P),[a]=r(p),l=A(W);return R(()=>{l(!0)},[l]),v(m,{children:[i(u,{defaultSize:a&&a[0]||c[0],collapsedSize:4,collapsible:!0,minSize:x[0],maxSize:b[0],onCollapse:()=>{t(!0),document.cookie=`react-resizable-panels:collapsed=${JSON.stringify(!0)}`},onExpand:()=>{t(!1),document.cookie=`react-resizable-panels:collapsed=${JSON.stringify(!1)}`},className:d(s&&"min-w-[50px] transition-all duration-300 ease-in-out"),children:o}),i(y,{withHandle:!0})]})},B=e=>{const{children:o}=e,[s]=r(p),[t,a]=r(H),l=h();return i(m,{children:l&&i(u,{defaultSize:s&&s[1]||c[1],minSize:x[1],maxSize:b[1],children:o})})},K=e=>{const z=e,{children:o}=z,s=S(z,["children"]),[t]=r(p),a=t&&t[2]||c[2],l=h();return i(m,{children:l?v(m,{children:[i(y,{withHandle:!0}),i(u,{defaultSize:a,children:i("div",{className:d("flex h-full w-full"),children:i("div",{className:"flex-1",children:o})})})]}):i(k,{children:i("div",{className:"mt-16 bg-yellow-600",children:o})})})};export{I as MailLayout,B as MailLayoutList,q as MailLayoutSidenav,K as MailLyContent,G as exampleValue1Atom,M as mailLayoutStore,H as trpcListViewAtom};
|
package/dist/tailwind.cjs
CHANGED