@helloimkostya/konsolpro-custom-ui-mini 0.0.409 → 0.0.410
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/lib/index-mini.js +546 -472
- package/package.json +1 -1
- package/styles/konsolpro-custom-ui.css +1 -1
- package/types/index-mini.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/ui/sidebar.d.ts +19 -0
package/types/index-mini.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export * from './ui/radio';
|
|
|
38
38
|
export * from './ui/schedule-calendar';
|
|
39
39
|
export * from './ui/segments';
|
|
40
40
|
export * from './ui/select';
|
|
41
|
+
export * from './ui/sidebar';
|
|
41
42
|
export * from './ui/spinner';
|
|
42
43
|
export * from './ui/stepper';
|
|
43
44
|
export * from './ui/switch';
|
package/types/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export * from './ui/radio';
|
|
|
39
39
|
export * from './ui/schedule-calendar';
|
|
40
40
|
export * from './ui/segments';
|
|
41
41
|
export * from './ui/select';
|
|
42
|
+
export * from './ui/sidebar';
|
|
42
43
|
export * from './ui/spinner';
|
|
43
44
|
export * from './ui/stepper';
|
|
44
45
|
export * from './ui/switch';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface SidebarNavItem {
|
|
3
|
+
title: string;
|
|
4
|
+
href: string;
|
|
5
|
+
count?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface SidebarNavGroup {
|
|
8
|
+
items: SidebarNavItem[];
|
|
9
|
+
}
|
|
10
|
+
export interface AppSidebarProps {
|
|
11
|
+
/** Заголовок / логотипная зона */
|
|
12
|
+
brandTitle: React.ReactNode;
|
|
13
|
+
/** Группы пунктов навигации */
|
|
14
|
+
navGroups: SidebarNavGroup[];
|
|
15
|
+
/** Ключ localStorage для состояния «свёрнут» */
|
|
16
|
+
storageKey?: string;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function AppSidebar({ brandTitle, navGroups, storageKey, className, }: AppSidebarProps): import("react/jsx-runtime").JSX.Element;
|