@compill/admin 1.0.70 → 1.0.71

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/index.cjs.js CHANGED
@@ -2895,10 +2895,9 @@ function MenuItem(_a) {
2895
2895
  path,
2896
2896
  depth,
2897
2897
  darkMode,
2898
- subMenu,
2899
- children
2898
+ subMenu
2900
2899
  } = _a,
2901
- props = __rest$1(_a, ["icon", "path", "depth", "darkMode", "subMenu", "children"]);
2900
+ props = __rest$1(_a, ["icon", "path", "depth", "darkMode", "subMenu"]);
2902
2901
  const location = reactRouterDom.useLocation();
2903
2902
  const selected = path == "/" ? location.pathname == "/" : location.pathname.startsWith(path.startsWith("/") ? path : `/${path}`);
2904
2903
  const match = reactRouterDom.useMatch("/" + path) != null;
@@ -2934,10 +2933,9 @@ function NextMenuItem(_a) {
2934
2933
  path,
2935
2934
  depth,
2936
2935
  darkMode,
2937
- subMenu,
2938
- children
2936
+ subMenu
2939
2937
  } = _a,
2940
- props = __rest$1(_a, ["icon", "path", "depth", "darkMode", "subMenu", "children"]);
2938
+ props = __rest$1(_a, ["icon", "path", "depth", "darkMode", "subMenu"]);
2941
2939
  const {
2942
2940
  pathname
2943
2941
  } = router.useRouter();
package/index.esm.js CHANGED
@@ -2885,10 +2885,9 @@ function MenuItem(_a) {
2885
2885
  path,
2886
2886
  depth,
2887
2887
  darkMode,
2888
- subMenu,
2889
- children
2888
+ subMenu
2890
2889
  } = _a,
2891
- props = __rest$1(_a, ["icon", "path", "depth", "darkMode", "subMenu", "children"]);
2890
+ props = __rest$1(_a, ["icon", "path", "depth", "darkMode", "subMenu"]);
2892
2891
  const location = useLocation();
2893
2892
  const selected = path == "/" ? location.pathname == "/" : location.pathname.startsWith(path.startsWith("/") ? path : `/${path}`);
2894
2893
  const match = useMatch("/" + path) != null;
@@ -2924,10 +2923,9 @@ function NextMenuItem(_a) {
2924
2923
  path,
2925
2924
  depth,
2926
2925
  darkMode,
2927
- subMenu,
2928
- children
2926
+ subMenu
2929
2927
  } = _a,
2930
- props = __rest$1(_a, ["icon", "path", "depth", "darkMode", "subMenu", "children"]);
2928
+ props = __rest$1(_a, ["icon", "path", "depth", "darkMode", "subMenu"]);
2931
2929
  const {
2932
2930
  pathname
2933
2931
  } = useRouter();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compill/admin",
3
- "version": "1.0.70",
3
+ "version": "1.0.71",
4
4
  "module": "./index.esm.js",
5
5
  "main": "./index.cjs.js"
6
6
  }
package/src/index.d.ts CHANGED
@@ -21,6 +21,7 @@ export * from "./lib/json/types/TableView";
21
21
  export * from "./lib/layout/AdminLayout";
22
22
  export * from "./lib/layout/ButtonBar";
23
23
  export * from "./lib/layout/menu/Menu";
24
+ export * from "./lib/layout/menu/MenuConfig";
24
25
  export * from "./lib/modal/AttachDialog";
25
26
  export * from "./lib/modal/FormActionDialog";
26
27
  export * from "./lib/page/PageContainer";
@@ -8,5 +8,5 @@ interface MenuItemProps extends SoperioComponent, ParentComponent {
8
8
  darkMode?: boolean;
9
9
  subMenu?: Item[];
10
10
  }
11
- export declare function MenuItem({ icon, path, depth, darkMode, subMenu, children, ...props }: MenuItemProps): JSX.Element;
11
+ export declare function MenuItem({ icon, path, depth, darkMode, subMenu, ...props }: MenuItemProps): JSX.Element;
12
12
  export {};
@@ -8,5 +8,5 @@ interface NextMenuItemProps extends SoperioComponent, ParentComponent {
8
8
  darkMode?: boolean;
9
9
  subMenu?: Item[];
10
10
  }
11
- export declare function NextMenuItem({ icon, path, depth, darkMode, subMenu, children, ...props }: NextMenuItemProps): JSX.Element;
11
+ export declare function NextMenuItem({ icon, path, depth, darkMode, subMenu, ...props }: NextMenuItemProps): JSX.Element;
12
12
  export {};