mtxuilib 0.1.310 → 0.1.312

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 @@
1
+ export declare const Dash5Debug: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { MtButton } from "../../ui/mt/Button";
4
+ export const Dash5Debug = () => {
5
+ return (_jsxs("div", { children: ["Dash5Debug", _jsx(MtButton, { children: "open setting demo" })] }));
6
+ };
@@ -1,6 +1,6 @@
1
1
  import { type StateCreator } from "zustand";
2
2
  import type { Renderable } from "../../lib/render";
3
- import type { DashASiderProps } from "../types";
3
+ import type { DashASiderProps, DashSettingsProps } from "../types";
4
4
  export declare const dash5LayoutDefaultConfig: {
5
5
  asideIsCollapsed: boolean;
6
6
  asideCollapsedSize: number;
@@ -17,6 +17,7 @@ export declare const dash5LayoutDefaultConfig: {
17
17
  export type Dash5LayoutProps = {
18
18
  headerComponent?: Renderable<DashASiderProps>;
19
19
  aSiderRender?: (props: DashASiderProps) => React.ReactNode;
20
+ settingsRender?: (props: DashSettingsProps) => React.ReactNode;
20
21
  };
21
22
  export interface Dash5LayoutState extends Dash5LayoutProps {
22
23
  _hasHydrated?: boolean;
@@ -16,7 +16,7 @@ export const dash5LayoutDefaultConfig = {
16
16
  mainPanelMinSize: 30,
17
17
  mainPanelMaxSize: 100,
18
18
  middlePanelDefaultSize: 0,
19
- layoutStoreKey: "dash-resizable-panels:layout",
19
+ layoutStoreKey: "dash5layout-resizable-panels:layout",
20
20
  };
21
21
  export const createAppSlice = (set, get, init) => {
22
22
  return {
@@ -48,7 +48,7 @@ const createMtAppStore = (initProps) => {
48
48
  }), {
49
49
  name: "Dash5Layout",
50
50
  skipHydration: true,
51
- version: 3,
51
+ version: 4,
52
52
  onRehydrateStorage: () => (state, error) => {
53
53
  state?.setHasHydrated(true);
54
54
  },
@@ -1,6 +1,9 @@
1
1
  export interface DashASiderProps {
2
2
  isCollapsed?: boolean;
3
3
  }
4
+ export interface DashSettingsProps {
5
+ obj?: any;
6
+ }
4
7
  export interface DashHeaderProps {
5
8
  hidden?: boolean;
6
9
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mtxuilib",
3
3
  "private": false,
4
- "version": "0.1.310",
4
+ "version": "0.1.312",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },