dfh-ui-library 1.13.7 → 1.13.8

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,9 +1,11 @@
1
1
  import React from "react";
2
+ import { AccountPopoverMenuItem } from "../../shared/models/components/common.model";
2
3
  interface ArrowDropdownProps {
3
4
  username?: string;
4
5
  themeColor?: string;
5
6
  handleLogout?: () => void;
6
7
  userImage?: string;
8
+ accountPopoverMenuItems?: AccountPopoverMenuItem[];
7
9
  }
8
10
  declare const ArrowDropdown: React.FC<ArrowDropdownProps>;
9
11
  export default ArrowDropdown;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { TabNavigationProps } from "../../shared/models/components/common.model";
3
- declare const NavBar: ({ navigationData, additionalClasses, navItemClick, isEnableLogout, handleLogout, userImage, username, themeColor, }: TabNavigationProps) => React.JSX.Element;
3
+ declare const NavBar: ({ navigationData, additionalClasses, navItemClick, userImage, username, themeColor, accountPopoverMenuItems }: TabNavigationProps) => React.JSX.Element;
4
4
  export default NavBar;
@@ -2,7 +2,7 @@ import "./index.css";
2
2
  export * from "./components";
3
3
  export * from "./hooks";
4
4
  export { VariantTypes, BorderType, LogoProps, } from "./shared/models/components/base.model";
5
- export { DropdownSearchProps, ClickedAction, TimelineEventProps, ListMasterDataProps, BtnOptionDropdown, BADGETYPE, OptionProps, NoteItemProps, NoteChildrenProps, NoteProps, UrgentDataProps, MessageProps, InputType, BadgeColorVariant, ISolutionvalues, } from "./shared/models/components/common.model";
5
+ export { DropdownSearchProps, ClickedAction, TimelineEventProps, ListMasterDataProps, BtnOptionDropdown, BADGETYPE, OptionProps, NoteItemProps, NoteChildrenProps, NoteProps, UrgentDataProps, MessageProps, InputType, BadgeColorVariant, ISolutionvalues, AccountPopoverMenuItem } from "./shared/models/components/common.model";
6
6
  export { ColumnDef, SortingState } from "@tanstack/react-table";
7
7
  export { usePagination } from "./hooks/usePagination";
8
8
  export { useSorting } from "./hooks/useSorting";
@@ -96,14 +96,20 @@ export interface FileNameProps {
96
96
  name: string;
97
97
  ext: string;
98
98
  }
99
+ export interface AccountPopoverMenuItem {
100
+ label: string;
101
+ onClick: () => void;
102
+ isVisible: boolean;
103
+ isDisabled?: boolean;
104
+ additionalClasses?: string;
105
+ }
99
106
  export interface TabNavigationProps extends AdditionalClassesProp {
100
107
  navigationData: any[];
101
108
  navItemClick?: (url?: string) => void;
102
- isEnableLogout?: boolean;
103
- handleLogout?: () => void;
104
109
  userImage?: string;
105
110
  username?: string;
106
111
  themeColor?: string;
112
+ accountPopoverMenuItems?: AccountPopoverMenuItem[];
107
113
  }
108
114
  export interface TabNavItemProps {
109
115
  isActive: boolean;