sbx-crm-menu-ui 2.1.5 → 3.0.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.
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ export interface BreadcrumbItem {
3
+ label: string;
4
+ onClick?: () => void;
5
+ }
6
+ export interface BreadcrumbAndSearchComponentProps {
7
+ items: BreadcrumbItem[];
8
+ onBack?: () => void;
9
+ onHome?: () => void;
10
+ searchPlaceholder?: string;
11
+ searchValue?: string;
12
+ onSearch?: (value: string) => void;
13
+ }
14
+ declare const BreadcrumbAndSearchComponent: ({ items, onBack, onHome, searchPlaceholder, searchValue, onSearch, }: BreadcrumbAndSearchComponentProps) => React.JSX.Element;
15
+ export default BreadcrumbAndSearchComponent;
@@ -2,7 +2,11 @@ import React from 'react';
2
2
  import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
3
3
  export interface DropdownOption {
4
4
  label: string;
5
- icon: IconDefinition;
5
+ icon?: IconDefinition;
6
+ svgIcon?: React.FC<{
7
+ s?: number;
8
+ }>;
9
+ danger?: boolean;
6
10
  }
7
11
  export interface DropdownOptionPath extends DropdownOption {
8
12
  type: 'path';
@@ -1,5 +1,10 @@
1
1
  import React from 'react';
2
2
  import { DropdownOptionClick, DropdownOptionPath } from '../../dropdown/Dropdown';
3
+ import { SbxNotification } from '../../../types/Common';
4
+ export interface SearchSuggestion {
5
+ label: string;
6
+ sublabel?: string;
7
+ }
3
8
  interface Props {
4
9
  languages: string[];
5
10
  onChooseLanguage?: (language: string) => void;
@@ -13,6 +18,17 @@ interface Props {
13
18
  logoSrc?: string;
14
19
  onClickLogo?: () => void;
15
20
  dropdownOptions?: (DropdownOptionClick | DropdownOptionPath)[];
21
+ notifications?: SbxNotification[];
22
+ onGetNotifications?: () => void;
23
+ onMarkRead?: (key: string) => void;
24
+ onMarkAllRead?: () => void;
25
+ searchValue?: string;
26
+ onSearch?: (value: string) => void;
27
+ inputPlaceholder?: string;
28
+ suggestions?: SearchSuggestion[];
29
+ onSelectSuggestion?: (suggestion: SearchSuggestion) => void;
30
+ searchLoading?: boolean;
31
+ notificationsLoading?: boolean;
16
32
  }
17
33
  export default function TopNavBarComponent(props: Props): React.JSX.Element;
18
34
  export {};
@@ -1,10 +1,18 @@
1
1
  import { Route } from '../../../types/Common';
2
2
  import React from 'react';
3
+ export interface RouteGroupConfig {
4
+ id: string;
5
+ routeNames: string[];
6
+ }
3
7
  declare const SidebarComponent: (props: {
4
8
  routes: Route[];
5
9
  openSideBar: boolean;
6
10
  setOpenSideBar: React.Dispatch<React.SetStateAction<boolean>>;
7
11
  children: React.ReactNode;
8
12
  path?: string;
13
+ logoSrc?: string;
14
+ workspaceName?: string;
15
+ workspaceSubtitle?: string;
16
+ routeGroups?: RouteGroupConfig[];
9
17
  }) => React.JSX.Element;
10
18
  export default SidebarComponent;
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
2
  import { SidebarItemProps } from '../../../types/Common';
3
3
  export declare const iconsPath: Record<string, string>;
4
- declare const SidebarItem: ({ route, isActive, idName, onClick, firstToggle, firstExpanded, setFirstExpanded }: SidebarItemProps) => React.JSX.Element | null;
4
+ declare const SidebarItem: ({ route, isActive, idName, onClick, firstToggle, firstExpanded, setFirstExpanded, depth, }: SidebarItemProps & {
5
+ depth?: number | undefined;
6
+ }) => React.JSX.Element | null;
5
7
  export default SidebarItem;