kiban-design-system 1.0.259-alpha.0 → 1.0.262-alpha.0
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/AlphaSideMenu/AlphaSideMenu.d.ts +1 -1
- package/dist/components/AlphaSideMenu/AlphaSideMenu.props.d.ts +1 -0
- package/dist/components/AlphaSideMenu/components/Item/Item.d.ts +1 -1
- package/dist/components/AlphaSideMenu/components/Item/Item.props.d.ts +2 -0
- package/dist/components/AlphaSideMenu/utils/context.d.ts +1 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { AlphaSideMenuProps } from './AlphaSideMenu.props';
|
|
3
3
|
import './AlphaSideMenu.styles.scss';
|
|
4
4
|
declare const AlphaSideMenu: {
|
|
5
|
-
({ children, collapsed, anchorComponent, collapseExpandIcon, }: AlphaSideMenuProps): JSX.Element;
|
|
5
|
+
({ children, collapsed, anchorComponent, collapseExpandIcon, location, }: AlphaSideMenuProps): JSX.Element;
|
|
6
6
|
Section: ({ items, fill, title, isCollapsed: isCollapsedProp, areSubNavigationItems, }: import("./components").SectionProps) => JSX.Element;
|
|
7
7
|
};
|
|
8
8
|
export default AlphaSideMenu;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ItemProps } from './Item.props';
|
|
3
3
|
import './Item.styles.scss';
|
|
4
|
-
declare const Item: ({ label, isDisabled, icon, onClick, isActive, subNavigationItems, truncateText, anchorProps, isCollapsed: isCollapsedProp, isSubNavigation, isExternal, }: ItemProps) => JSX.Element;
|
|
4
|
+
declare const Item: ({ label, isDisabled, icon, onClick, isActive: isActiveProp, subNavigationItems, truncateText, anchorProps, isCollapsed: isCollapsedProp, isSubNavigation, isExternal, isExact, url, }: ItemProps) => JSX.Element;
|
|
5
5
|
export default Item;
|
|
@@ -7,6 +7,7 @@ export interface SubNavigationItemProps {
|
|
|
7
7
|
onClick?: () => void;
|
|
8
8
|
truncateText?: boolean;
|
|
9
9
|
isSelected?: boolean;
|
|
10
|
+
isExact?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export interface ItemProps<TAnchorType = any> {
|
|
12
13
|
icon?: IconProp;
|
|
@@ -21,4 +22,5 @@ export interface ItemProps<TAnchorType = any> {
|
|
|
21
22
|
isCollapsed?: boolean;
|
|
22
23
|
isSubNavigation?: boolean;
|
|
23
24
|
isExternal?: boolean;
|
|
25
|
+
isExact?: boolean;
|
|
24
26
|
}
|
|
@@ -4,6 +4,7 @@ export interface SideMenuContextType {
|
|
|
4
4
|
anchorComponent?: React.ComponentType<any>;
|
|
5
5
|
collapsed?: boolean;
|
|
6
6
|
setCurrentTierItems?: (items: ItemProps[], title?: string) => void;
|
|
7
|
+
location?: Location;
|
|
7
8
|
}
|
|
8
9
|
declare const SideMenuContext: import("react").Context<SideMenuContextType>;
|
|
9
10
|
export default SideMenuContext;
|