gomtm 0.0.260 → 0.0.262

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,2 @@
1
+ /// <reference types="react" />
2
+ export declare const ExampleChildren: () => import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ const ExampleChildren = () => {
4
+ return /* @__PURE__ */ jsx("div", { children: "ExampleChildren" });
5
+ };
6
+ export {
7
+ ExampleChildren
8
+ };
@@ -1,19 +1,8 @@
1
1
  import { PropsWithChildren } from "react";
2
- export declare const LzDash5: import("react").ComponentType<{
3
- children?: import("react").ReactNode;
4
- }>;
5
- export declare const LzDemo: import("react").ComponentType<{
6
- children?: import("react").ReactNode;
7
- }>;
8
- export declare const LzDebugLayout: import("react").ComponentType<{
9
- children?: import("react").ReactNode;
10
- }>;
11
- export declare const LzFrontLayout: import("react").ComponentType<{
12
- children?: import("react").ReactNode;
13
- }>;
14
- export declare const LzHelloLazyLayout: import("react").ComponentType<{
15
- children?: import("react").ReactNode;
16
- }>;
2
+ export declare const LzDash5: import("react").LazyExoticComponent<typeof import("./dash5").default>;
3
+ export declare const LzDemoLayout: import("react").LazyExoticComponent<typeof import("./demo-layout").default>;
4
+ export declare const LzDebugLayout: import("react").LazyExoticComponent<typeof import("./debug-layout").default>;
5
+ export declare const LzFrontLayout: import("react").LazyExoticComponent<typeof import("./front-layout").default>;
17
6
  export declare const LayoutBase: (props: {
18
7
  layoutName?: string;
19
8
  } & PropsWithChildren) => import("react").JSX.Element;
@@ -7,12 +7,10 @@ import { Dialog, DialogContent, DialogTitle } from "mtxuilib/ui/dialog";
7
7
  import { TooltipProvider } from "mtxuilib/ui/tooltip";
8
8
  import { MtButton } from "mtxuilib/ui/ui-mt/Button";
9
9
  import { AppProgressBar as ProgressBar } from "next-nprogress-bar";
10
- import dynamic from "next/dynamic";
11
- import { Suspense } from "react";
10
+ import { Suspense, lazy } from "react";
12
11
  import { useHotkeys } from "react-hotkeys-hook";
13
12
  import { Toaster } from "sonner";
14
13
  import { useMtmApp } from "../providers/GomtmProvider";
15
- import { Demo1Layout } from "./demo-layout";
16
14
  const ALL_Layouts = [
17
15
  "demo1",
18
16
  "dash5",
@@ -20,47 +18,29 @@ const ALL_Layouts = [
20
18
  "debug",
21
19
  "front"
22
20
  ];
23
- const LzDash5 = dynamic(() => import("./dash5").then((x) => x.default), {
24
- ssr: true
25
- });
26
- const LzDemo = dynamic(() => import("./demo-layout").then((x) => x.Demo1Layout), {
27
- ssr: true
28
- });
29
- const LzDebugLayout = dynamic(() => import("./debug-layout").then((x) => x.DebugLayout), {
30
- ssr: true
31
- });
32
- const LzFrontLayout = dynamic(() => import("./front-layout").then((x) => x.FrontLayout), {
33
- ssr: true
34
- });
35
- const LzHelloLazyLayout = dynamic(() => import("./Lazy").then((x) => x.HelloLazyLayout), {
36
- ssr: true
37
- });
21
+ const LzDash5 = lazy(() => import("./dash5"));
22
+ const LzDemoLayout = lazy(() => import("./demo-layout"));
23
+ const LzDebugLayout = lazy(() => import("./debug-layout"));
24
+ const LzFrontLayout = lazy(() => import("./front-layout"));
38
25
  const LayoutBase = (props) => {
39
26
  const { layoutName, children } = props;
40
- return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(TooltipProvider, {
41
- delayDuration: 0,
42
- // layoutName == "front" ? <FrontLayout>{children}</FrontLayout> :
43
- children: [
44
- layoutName == "front" ? /* @__PURE__ */ jsx(LzFrontLayout, { children }) : layoutName == "dash5" ? /* @__PURE__ */ jsx(LzDash5, { children }) : layoutName == "debug" ? /* @__PURE__ */ jsx(LzDebugLayout, { children }) : (
45
- // layoutName == "demo1" ? <LzDemo>{children}</LzDemo> :
46
- layoutName == "demo1" ? /* @__PURE__ */ jsx(Demo1Layout, { children }) : layoutName == "default" ? /* @__PURE__ */ jsx(Fragment, { children }) : children
47
- ),
48
- /* @__PURE__ */ jsx(
49
- ProgressBar,
50
- {
51
- height: "4px",
52
- color: "#4934eb",
53
- options: { showSpinner: false },
54
- shallowRouting: true
55
- }
56
- ),
57
- /* @__PURE__ */ jsx(ReactQueryDevtools, {}),
58
- /* @__PURE__ */ jsx(Toaster, {}),
59
- /* @__PURE__ */ jsx(TailwindIndicator, {}),
60
- /* @__PURE__ */ jsx(AppMetaRender, {}),
61
- /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(LayoutSwitchDlg, {}) })
62
- ]
63
- }) });
27
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(TooltipProvider, { delayDuration: 0, children: [
28
+ layoutName == "front" ? /* @__PURE__ */ jsx(LzFrontLayout, { children }) : layoutName == "dash5" ? /* @__PURE__ */ jsx(LzDash5, { children }) : layoutName == "debug" ? /* @__PURE__ */ jsx(LzDebugLayout, { children }) : layoutName == "demo1" ? /* @__PURE__ */ jsx(LzDemoLayout, { children }) : layoutName == "default" ? /* @__PURE__ */ jsx(Fragment, { children }) : children,
29
+ /* @__PURE__ */ jsx(
30
+ ProgressBar,
31
+ {
32
+ height: "4px",
33
+ color: "#4934eb",
34
+ options: { showSpinner: false },
35
+ shallowRouting: true
36
+ }
37
+ ),
38
+ /* @__PURE__ */ jsx(ReactQueryDevtools, {}),
39
+ /* @__PURE__ */ jsx(Toaster, {}),
40
+ /* @__PURE__ */ jsx(TailwindIndicator, {}),
41
+ /* @__PURE__ */ jsx(AppMetaRender, {}),
42
+ /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(LayoutSwitchDlg, {}) })
43
+ ] }) });
64
44
  };
65
45
  const LayoutSwitchDlg = () => {
66
46
  const mtapp = useMtmApp();
@@ -84,7 +64,6 @@ export {
84
64
  LayoutBase,
85
65
  LzDash5,
86
66
  LzDebugLayout,
87
- LzDemo,
88
- LzFrontLayout,
89
- LzHelloLazyLayout
67
+ LzDemoLayout,
68
+ LzFrontLayout
90
69
  };
@@ -1,2 +1,2 @@
1
1
  import { PropsWithChildren } from "react";
2
- export declare const HelloLazyLayout: (props: PropsWithChildren) => import("react").JSX.Element;
2
+ export default function HelloLazyLayout(props: PropsWithChildren): import("react").JSX.Element;
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- const HelloLazyLayout = (props) => {
3
+ function HelloLazyLayout(props) {
4
4
  const { children } = props;
5
- return /* @__PURE__ */ jsxs("div", { children: [
5
+ return /* @__PURE__ */ jsxs("div", { className: "bg-red-300 p-2", children: [
6
6
  /* @__PURE__ */ jsx("h1", { children: "HelloLazyLayout" }),
7
7
  children
8
8
  ] });
9
- };
9
+ }
10
10
  export {
11
- HelloLazyLayout
11
+ HelloLazyLayout as default
12
12
  };
@@ -1,2 +1,2 @@
1
1
  import { PropsWithChildren } from "react";
2
- export declare const DebugLayout: (props: PropsWithChildren) => import("react").JSX.Element;
2
+ export default function DebugLayout(props: PropsWithChildren): import("react").JSX.Element;
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- const DebugLayout = (props) => {
3
+ function DebugLayout(props) {
4
4
  const { children } = props;
5
5
  return /* @__PURE__ */ jsxs("div", { className: "border bg-slate-200 p-2", children: [
6
6
  /* @__PURE__ */ jsx("h1", { children: "debug" }),
7
7
  children
8
8
  ] });
9
- };
9
+ }
10
10
  export {
11
- DebugLayout
11
+ DebugLayout as default
12
12
  };
@@ -1,2 +1,2 @@
1
1
  import { PropsWithChildren } from "react";
2
- export declare const Demo1Layout: (props: PropsWithChildren) => import("react").JSX.Element;
2
+ export default function Demo1Layout(props: PropsWithChildren): import("react").JSX.Element;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- const Demo1Layout = (props) => {
3
+ function Demo1Layout(props) {
4
4
  const { children } = props;
5
5
  return /* @__PURE__ */ jsx("div", { className: "prose p-2", children });
6
- };
6
+ }
7
7
  export {
8
- Demo1Layout
8
+ Demo1Layout as default
9
9
  };
@@ -1,2 +1,2 @@
1
1
  import { PropsWithChildren } from "react";
2
- export declare const FrontLayout: (props: PropsWithChildren) => import("react").JSX.Element;
2
+ export default function FrontLayout(props: PropsWithChildren): import("react").JSX.Element;
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { FrontLayoutHeader } from "./header";
4
- const FrontLayout = (props) => {
4
+ function FrontLayout(props) {
5
5
  const { children } = props;
6
6
  return /* @__PURE__ */ jsxs(Fragment, { children: [
7
7
  /* @__PURE__ */ jsx(FrontLayoutHeader, {}),
8
8
  children
9
9
  ] });
10
- };
10
+ }
11
11
  export {
12
- FrontLayout
12
+ FrontLayout as default
13
13
  };