@ssa-ui-kit/widgets 0.0.19-alpha → 0.0.20-alpha
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/dist/components/CollapsibleNavBar/TriggerIcon.d.ts +4 -2
- package/dist/components/CollapsibleNavBar/stories/CustomIcon.d.ts +1 -0
- package/dist/components/CollapsibleNavBar/types.d.ts +2 -1
- package/dist/components/NavBar/types.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/CollapsibleNavBar/NavBarItemWithSubMenu.tsx +2 -2
- package/src/components/CollapsibleNavBar/NavBarItemWithoutSubMenu.tsx +7 -2
- package/src/components/CollapsibleNavBar/TriggerIcon.tsx +17 -7
- package/src/components/CollapsibleNavBar/stories/CollapsibleNavBar.stories.tsx +20 -0
- package/src/components/CollapsibleNavBar/stories/CustomIcon.tsx +20 -0
- package/src/components/CollapsibleNavBar/types.ts +2 -1
- package/src/components/NavBar/types.ts +3 -0
- package/tsbuildcache +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IMapIcons, SVGProps } from '@ssa-ui-kit/core';
|
|
3
|
+
export declare const TriggerIcon: ({ iconName, iconSize, className, CustomIcon, }: {
|
|
3
4
|
iconName: keyof IMapIcons;
|
|
4
5
|
iconSize?: number | undefined;
|
|
5
6
|
className?: string | undefined;
|
|
7
|
+
CustomIcon?: ((props: Omit<SVGProps, 'fill'>) => JSX.Element) | undefined;
|
|
6
8
|
}) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CustomIcon: () => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -4,9 +4,10 @@ export interface CollapsibleNavBarItem extends NavBarExtendedItem {
|
|
|
4
4
|
iconSize: number;
|
|
5
5
|
css?: React.CSSProperties;
|
|
6
6
|
}
|
|
7
|
-
export interface CollapsibleNavBarGroup extends
|
|
7
|
+
export interface CollapsibleNavBarGroup extends NavBarExtendedGroup {
|
|
8
8
|
iconSize: number;
|
|
9
9
|
css?: React.CSSProperties;
|
|
10
|
+
prefix: string;
|
|
10
11
|
}
|
|
11
12
|
export interface CollapsibleNavBarExtendedProps {
|
|
12
13
|
items: Array<CollapsibleNavBarItem | CollapsibleNavBarGroup>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EmotionJSX } from '@emotion/react/types/jsx-namespace';
|
|
1
2
|
import { IMapIcons } from '@ssa-ui-kit/core';
|
|
2
3
|
export interface INavBarProps {
|
|
3
4
|
items: Array<{
|
|
@@ -6,11 +7,13 @@ export interface INavBarProps {
|
|
|
6
7
|
}>;
|
|
7
8
|
}
|
|
8
9
|
export type NavBarExtendedItem = {
|
|
10
|
+
CustomIcon?: () => EmotionJSX.Element;
|
|
9
11
|
path: string;
|
|
10
12
|
iconName: keyof IMapIcons;
|
|
11
13
|
title: string;
|
|
12
14
|
};
|
|
13
15
|
export type NavBarExtendedGroup = {
|
|
16
|
+
CustomIcon?: () => EmotionJSX.Element;
|
|
14
17
|
prefix?: string;
|
|
15
18
|
iconName: keyof IMapIcons;
|
|
16
19
|
title: string;
|