isp-ui-kit 0.11.4 → 0.12.1

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,4 @@
1
+ import { LayoutMenuPropsType } from './layout-menu';
2
+ import './layout-menu.scss';
3
+ declare const LayoutMenu: ({ menuConfig, onHideMenuItem, onClickItem: handleItemChange, currentPath, }: LayoutMenuPropsType) => import("react/jsx-runtime").JSX.Element;
4
+ export default LayoutMenu;
@@ -0,0 +1,24 @@
1
+ import { ReactNode } from 'react';
2
+ export interface ConfigMenuItemType {
3
+ route?: string;
4
+ label: string;
5
+ key: string;
6
+ permissions: string | string[];
7
+ icon?: ReactNode;
8
+ children?: ConfigMenuItemType[];
9
+ }
10
+ export interface MenuItemType {
11
+ label: string;
12
+ key: string;
13
+ className?: string;
14
+ icon?: ReactNode;
15
+ children?: MenuItemType[];
16
+ }
17
+ export interface LayoutMenuPropsType {
18
+ onHideMenuItem: (value: string | string[]) => string;
19
+ menuConfig: ConfigMenuItemType[];
20
+ onClickItem: ({ key }: {
21
+ key: string;
22
+ }) => void;
23
+ currentPath: string;
24
+ }
@@ -0,0 +1,3 @@
1
+ import { LayoutSiderPropsType } from './layout-sider';
2
+ declare const LayoutSider: ({ collapsed, children, onCollapse, }: LayoutSiderPropsType) => import("react/jsx-runtime").JSX.Element;
3
+ export default LayoutSider;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export interface LayoutSiderPropsType {
3
+ collapsed: boolean;
4
+ onCollapse: (value: boolean) => void;
5
+ children: ReactNode;
6
+ }
@@ -6,3 +6,5 @@ export { default as HomePage } from './HomePage/HomePage';
6
6
  export { default as ErrorPage } from './ErrorPage/ErrorPage';
7
7
  export { default as NotFoundPage } from './NotFoundPage/NotFoundPage';
8
8
  export { default as ThreeColumn } from './ThreeColumn/ThreeColumn';
9
+ export { default as LayoutMenu } from './LayoutMenu/LayoutMenu';
10
+ export { default as LayoutSider } from './LayoutSider/LayoutSider';
package/dist/index.d.ts CHANGED
@@ -4,4 +4,5 @@ import SearchInput from './SearchInput/SearchInput';
4
4
  import useAuth from './hooks/useAuth';
5
5
  import { getConfigProperty } from './utils/configUtils';
6
6
  import ReactJsonView from './ReactJsonView/js';
7
- export { FormComponents, SearchInput, Layout, useAuth, getConfigProperty, ReactJsonView, };
7
+ import { findRouteWithParents } from './utils/layoutMenuUtils';
8
+ export { FormComponents, SearchInput, Layout, useAuth, getConfigProperty, ReactJsonView, findRouteWithParents, };