mtxuilib 0.0.460 → 0.0.462

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,5 @@
1
+ import { PropsWithChildren } from "react";
2
+ export declare const MailLayout: (props: {} & PropsWithChildren) => import("react").JSX.Element;
3
+ export declare const MailLayoutSidenav: (props: PropsWithChildren) => import("react").JSX.Element;
4
+ export declare const MailLayoutList: (props: PropsWithChildren) => import("react").JSX.Element;
5
+ export declare const MailLyContent: (props: PropsWithChildren) => import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ "use client";var u=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var z=(e,s)=>{var t={};for(var i in e)P.call(e,i)&&s.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&u)for(var i of u(e))s.indexOf(i)<0&&C.call(e,i)&&(t[i]=e[i]);return t};import{Fragment as d,jsx as o,jsxs as x}from"react/jsx-runtime";import{atom as m,useAtom as n,useSetAtom as v}from"jotai";import{useEffect as N}from"react";import{cn as h}from"../lib/utils";import{ResizableHandle as f,ResizablePanel as p,ResizablePanelGroup as L}from"../ui/resizable";const r=[20,30,50],S=[40,50,60],b=[10,15,10],c=m(r,(e,s,t)=>{s(c,t)}),y=m(!1,(e,s,t)=>{s(y,t)}),R=m(!1),k=e=>{const{children:s}=e;return o(d,{children:o(L,{direction:"horizontal",onLayout:t=>{document.cookie=`react-resizable-panels:layout=${JSON.stringify(t)}`},className:h("h-full items-stretch","max-h-[920px]"),children:s})})},J=e=>{const{children:s}=e,[t,i]=n(y),[a]=n(c),l=v(R);return N(()=>{l(!0)},[l]),x(d,{children:[o(p,{defaultSize:a&&a[0]||r[0],collapsedSize:4,collapsible:!0,minSize:b[0],maxSize:S[0],onCollapse:()=>{i(!0),document.cookie=`react-resizable-panels:collapsed=${JSON.stringify(!0)}`},onExpand:()=>{i(!1),document.cookie=`react-resizable-panels:collapsed=${JSON.stringify(!1)}`},className:h(t&&"min-w-[50px] transition-all duration-300 ease-in-out"),children:s}),o(f,{withHandle:!0})]})},O=e=>{const{children:s}=e,[t]=n(c);return o(d,{children:o(p,{defaultSize:t&&t[1]||r[1],minSize:b[1],maxSize:S[1],children:s})})},T=e=>{const l=e,{children:s}=l,t=z(l,["children"]),[i]=n(c),a=i&&i[2]||r[2];return x(d,{children:[o(f,{withHandle:!0}),o(p,{defaultSize:a,children:o("div",{className:"flex h-full w-full",children:o("div",{className:"flex-1",children:s})})})]})};export{k as MailLayout,O as MailLayoutList,J as MailLayoutSidenav,T as MailLyContent};
@@ -1,4 +1,57 @@
1
1
  import { PropsWithChildren } from "react";
2
+ export declare const trpcListViewAtom: import("jotai").PrimitiveAtom<any> & {
3
+ init: any;
4
+ };
5
+ export declare const exampleValue1Atom: import("jotai").PrimitiveAtom<string> & {
6
+ init: string;
7
+ };
8
+ export declare const mailLayoutStore: {
9
+ get: <Value>(atom: import("jotai").Atom<Value>) => Value;
10
+ set: <Value_1, Args extends unknown[], Result>(atom: import("jotai").WritableAtom<Value_1, Args, Result>, ...args: Args) => Result;
11
+ sub: (atom: import("jotai").Atom<unknown>, listener: () => void) => () => void;
12
+ dev_subscribe_store: (l: (action: {
13
+ type: "write";
14
+ flushed: Set<import("jotai").Atom<unknown>>;
15
+ } | {
16
+ type: "async-write";
17
+ flushed: Set<import("jotai").Atom<unknown>>;
18
+ } | {
19
+ type: "sub";
20
+ flushed: Set<import("jotai").Atom<unknown>>;
21
+ } | {
22
+ type: "unsub";
23
+ } | {
24
+ type: "restore";
25
+ flushed: Set<import("jotai").Atom<unknown>>;
26
+ }) => void, rev: 2) => () => void;
27
+ dev_get_mounted_atoms: () => IterableIterator<import("jotai").Atom<unknown>>;
28
+ dev_get_atom_state: (a: import("jotai").Atom<unknown>) => ({
29
+ d: Map<import("jotai").Atom<unknown>, any & ({
30
+ e: unknown;
31
+ } | {
32
+ v: unknown;
33
+ })>;
34
+ } & ({
35
+ e: unknown;
36
+ } | {
37
+ v: unknown;
38
+ })) | undefined;
39
+ dev_get_mounted: (a: import("jotai").Atom<unknown>) => {
40
+ l: Set<() => void>;
41
+ t: Set<import("jotai").Atom<unknown>>;
42
+ u?: (() => void) | undefined;
43
+ } | undefined;
44
+ dev_restore_atoms: (values: Iterable<readonly [import("jotai").Atom<unknown>, unknown]>) => void;
45
+ } | {
46
+ get: <Value_2>(atom: import("jotai").Atom<Value_2>) => Value_2;
47
+ set: <Value_1_1, Args_1 extends unknown[], Result_1>(atom: import("jotai").WritableAtom<Value_1_1, Args_1, Result_1>, ...args: Args_1) => Result_1;
48
+ sub: (atom: import("jotai").Atom<unknown>, listener: () => void) => () => void;
49
+ dev_subscribe_store?: undefined;
50
+ dev_get_mounted_atoms?: undefined;
51
+ dev_get_atom_state?: undefined;
52
+ dev_get_mounted?: undefined;
53
+ dev_restore_atoms?: undefined;
54
+ };
2
55
  export declare const MailLayout: (props: {} & PropsWithChildren) => import("react").JSX.Element;
3
56
  export declare const MailLayoutSidenav: (props: PropsWithChildren) => import("react").JSX.Element;
4
57
  export declare const MailLayoutList: (props: PropsWithChildren) => import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";var u=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var z=(e,s)=>{var t={};for(var i in e)P.call(e,i)&&s.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&u)for(var i of u(e))s.indexOf(i)<0&&C.call(e,i)&&(t[i]=e[i]);return t};import{Fragment as d,jsx as o,jsxs as x}from"react/jsx-runtime";import{atom as m,useAtom as n,useSetAtom as v}from"jotai";import{useEffect as N}from"react";import{cn as h}from"../lib/utils";import{ResizableHandle as f,ResizablePanel as p,ResizablePanelGroup as L}from"../ui/resizable";const r=[20,30,50],S=[40,50,60],b=[10,15,10],c=m(r,(e,s,t)=>{s(c,t)}),y=m(!1,(e,s,t)=>{s(y,t)}),R=m(!1),k=e=>{const{children:s}=e;return o(d,{children:o(L,{direction:"horizontal",onLayout:t=>{document.cookie=`react-resizable-panels:layout=${JSON.stringify(t)}`},className:h("h-full items-stretch","max-h-[920px]"),children:s})})},J=e=>{const{children:s}=e,[t,i]=n(y),[a]=n(c),l=v(R);return N(()=>{l(!0)},[l]),x(d,{children:[o(p,{defaultSize:a&&a[0]||r[0],collapsedSize:4,collapsible:!0,minSize:b[0],maxSize:S[0],onCollapse:()=>{i(!0),document.cookie=`react-resizable-panels:collapsed=${JSON.stringify(!0)}`},onExpand:()=>{i(!1),document.cookie=`react-resizable-panels:collapsed=${JSON.stringify(!1)}`},className:h(t&&"min-w-[50px] transition-all duration-300 ease-in-out"),children:s}),o(f,{withHandle:!0})]})},O=e=>{const{children:s}=e,[t]=n(c);return o(d,{children:o(p,{defaultSize:t&&t[1]||r[1],minSize:b[1],maxSize:S[1],children:s})})},T=e=>{const l=e,{children:s}=l,t=z(l,["children"]),[i]=n(c),a=i&&i[2]||r[2];return x(d,{children:[o(f,{withHandle:!0}),o(p,{defaultSize:a,children:o("div",{className:"flex h-full w-full",children:o("div",{className:"flex-1",children:s})})})]})};export{k as MailLayout,O as MailLayoutList,J as MailLayoutSidenav,T as MailLyContent};
1
+ "use client";var S=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var h=(e,o)=>{var s={};for(var t in e)L.call(e,t)&&o.indexOf(t)<0&&(s[t]=e[t]);if(e!=null&&S)for(var t of S(e))o.indexOf(t)<0&&C.call(e,t)&&(s[t]=e[t]);return s};import{Fragment as m,jsx as i,jsxs as z}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 y}from"../hooks/use-media-query";import{cn as d}from"../lib/utils";import{ResizableHandle as b,ResizablePanel as u,ResizablePanelGroup as g}from"../ui/resizable";import{FullScreenPanel as k}from"../ui/ui-mt/FullScreenEditPanel";const c=[20,30,50],x=[40,50,60],P=[10,15,10],p=n(c,(e,o,s)=>{o(p,s)}),v=n(!1,(e,o,s)=>{o(v,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(v),[a]=r(p),l=A(W);return R(()=>{l(!0)},[l]),z(m,{children:[i(u,{defaultSize:a&&a[0]||c[0],collapsedSize:4,collapsible:!0,minSize:P[0],maxSize:x[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(b,{withHandle:!0})]})},B=e=>{const{children:o}=e,[s]=r(p),[t,a]=r(H),l=y();return i(m,{children:l&&i(u,{defaultSize:s&&s[1]||c[1],minSize:P[1],maxSize:x[1],children:o})})},K=e=>{const f=e,{children:o}=f,s=h(f,["children"]),[t]=r(p),a=t&&t[2]||c[2],l=y();return i(m,{children:l?z(m,{children:[i(b,{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:z("div",{className:"mt-16 bg-yellow-600",children:["22222222223333444",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
@@ -1,5 +1,5 @@
1
1
  const path = require("path");
2
- console.log("tailwindcss[mtxuilib]");
2
+ console.log("tailwindcss[mtxuilib]", path.dirname(require.resolve("mtxuilib")));
3
3
  /** @type {import('tailwindcss').Config} */
4
4
  module.exports = {
5
5
  content: [