kiban-design-system 1.0.270-alpha.0 → 1.0.272-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.
@@ -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: isActiveProp, subNavigationItems, truncateText, anchorProps, isCollapsed: isCollapsedProp, isSubNavigation, isExternal, isExact, url, }: ItemProps) => JSX.Element;
4
+ declare const Item: ({ label, isDisabled, icon, onClick, isActive: isActiveProp, subNavigationItems, truncateText, anchorProps, isCollapsed: isCollapsedProp, isSubNavigation, isExternal, isExact, url, isVisible, }: ItemProps) => JSX.Element | null;
5
5
  export default Item;
@@ -8,6 +8,7 @@ export interface SubNavigationItemProps {
8
8
  truncateText?: boolean;
9
9
  isSelected?: boolean;
10
10
  isExact?: boolean;
11
+ isVisible?: (location: Location, item: SubNavigationItemProps) => boolean;
11
12
  }
12
13
  export interface ItemProps<TAnchorType = any> {
13
14
  icon?: IconProp;
@@ -23,4 +24,5 @@ export interface ItemProps<TAnchorType = any> {
23
24
  isSubNavigation?: boolean;
24
25
  isExternal?: boolean;
25
26
  isExact?: boolean;
27
+ isVisible?: (location: Location, item: SubNavigationItemProps) => boolean;
26
28
  }
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { AlphaTooltipProps } from '../AlphaTooltip';
2
3
  import type { IconName } from '../Icon';
3
4
  import type { LogoName } from '../Logo';
4
5
  import type { ToggleType } from '../Tooltip';
@@ -6,7 +7,7 @@ import type { UserMenuProps, HeaderLabelProps } from './components';
6
7
  export interface TooltipHeader {
7
8
  text: string;
8
9
  id: string;
9
- position?: 'topLeft' | 'topRight' | 'topCenter' | 'bottomLeft' | 'bottomRight' | 'bottomCenter' | 'right' | 'left';
10
+ position?: AlphaTooltipProps['position'];
10
11
  toogleType?: ToggleType;
11
12
  }
12
13
  export interface HeaderActionType {