@compill/admin 1.0.65 → 1.0.66

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compill/admin",
3
- "version": "1.0.65",
3
+ "version": "1.0.66",
4
4
  "module": "./index.esm.js",
5
5
  "main": "./index.cjs.js"
6
6
  }
package/src/index.d.ts CHANGED
@@ -20,7 +20,7 @@ export * from "./lib/json/types/TabbedView";
20
20
  export * from "./lib/json/types/TableView";
21
21
  export * from "./lib/layout/AdminLayout";
22
22
  export * from "./lib/layout/ButtonBar";
23
- export { MenuConfig } from "./lib/layout/Menu";
23
+ export * from "./lib/layout/Menu";
24
24
  export * from "./lib/modal/AttachDialog";
25
25
  export * from "./lib/modal/FormActionDialog";
26
26
  export * from "./lib/page/PageContainer";
@@ -1,19 +1,19 @@
1
1
  /// <reference types="react" />
2
2
  import { ParentComponent, SoperioComponent } from "@soperio/react";
3
- interface MenuProps extends SoperioComponent, ParentComponent {
3
+ export interface MenuProps extends SoperioComponent, ParentComponent {
4
4
  darkMode?: boolean;
5
5
  config: MenuConfig;
6
6
  }
7
7
  export type MenuConfig = MenuItems;
8
8
  type MenuItems = (MenuItem | MenuDivider)[];
9
- type MenuItem = {
9
+ export type MenuItem = {
10
10
  type: "item";
11
11
  path: string;
12
12
  icon?: string;
13
13
  label: string;
14
14
  children?: MenuItem[];
15
15
  };
16
- type MenuDivider = {
16
+ export type MenuDivider = {
17
17
  type: "divider";
18
18
  label?: string;
19
19
  };
@@ -22,12 +22,4 @@ type MenuDivider = {
22
22
  *
23
23
  */
24
24
  export default function Menu({ darkMode, config, ...props }: MenuProps): JSX.Element;
25
- interface MenuItemProps extends SoperioComponent, ParentComponent {
26
- path: string;
27
- depth?: number;
28
- icon?: string;
29
- darkMode?: boolean;
30
- subMenu?: MenuItem[];
31
- }
32
- declare function MenuItem({ icon, path, depth, darkMode, subMenu, children, ...props }: MenuItemProps): JSX.Element;
33
25
  export {};