@campxdev/react-blueprint 2.3.9 → 2.3.10

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.
Files changed (26) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/cjs/types/src/components/Layout/AppLayout/components/AppBar.d.ts +2 -0
  3. package/dist/cjs/types/src/components/Layout/AppLayout/components/Sidebar/Sidebar.d.ts +8 -1
  4. package/dist/cjs/types/src/components/Layout/AppLayout/components/Sidebar/interfaces.d.ts +2 -0
  5. package/dist/cjs/types/src/components/Layout/AppLayout/components/UserProfilePopup.d.ts +2 -2
  6. package/dist/cjs/types/src/components/Layout/AppLayout/types.d.ts +2 -0
  7. package/dist/esm/index.js +2 -2
  8. package/dist/esm/types/src/components/Layout/AppLayout/components/AppBar.d.ts +2 -0
  9. package/dist/esm/types/src/components/Layout/AppLayout/components/Sidebar/Sidebar.d.ts +8 -1
  10. package/dist/esm/types/src/components/Layout/AppLayout/components/Sidebar/interfaces.d.ts +2 -0
  11. package/dist/esm/types/src/components/Layout/AppLayout/components/UserProfilePopup.d.ts +2 -2
  12. package/dist/esm/types/src/components/Layout/AppLayout/types.d.ts +2 -0
  13. package/dist/index.d.ts +4 -2
  14. package/package.json +1 -1
  15. package/src/components/DataDisplay/SidePanel/styles.tsx +1 -1
  16. package/src/components/Layout/AppLayout/AppLayout.tsx +5 -3
  17. package/src/components/Layout/AppLayout/components/AppBar.tsx +8 -3
  18. package/src/components/Layout/AppLayout/components/Sidebar/MenuBar.tsx +5 -1
  19. package/src/components/Layout/AppLayout/components/Sidebar/MenuItem.tsx +6 -1
  20. package/src/components/Layout/AppLayout/components/Sidebar/Sidebar.tsx +165 -45
  21. package/src/components/Layout/AppLayout/components/Sidebar/interfaces.ts +2 -0
  22. package/src/components/Layout/AppLayout/components/UserProfilePopup.tsx +4 -4
  23. package/src/components/Layout/AppLayout/types.ts +3 -0
  24. package/dist/cjs/types/src/components/Layout/AppLayout/components/PersistentSidebar.d.ts +0 -14
  25. package/dist/esm/types/src/components/Layout/AppLayout/components/PersistentSidebar.d.ts +0 -14
  26. package/src/components/Layout/AppLayout/components/PersistentSidebar.tsx +0 -171
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
2
  interface AppBarProps {
3
+ /** Left section component*/
4
+ leftSection?: React.ReactNode;
3
5
  /** Right section component (actions, profile, etc.) */
4
6
  rightSection?: React.ReactNode;
5
7
  /** Center section component (workspace switcher, etc.) */
@@ -1,8 +1,15 @@
1
1
  import React from 'react';
2
+ import { UserProfilePopupProps } from '../UserProfilePopup';
2
3
  import { SideMenuItemProps } from './interfaces';
3
4
  interface SidebarProps {
5
+ /** Menu items for navigation */
4
6
  menu: SideMenuItemProps[];
5
- width?: number;
7
+ /**User profile Params */
8
+ userProfileParams: UserProfilePopupProps;
9
+ /** Whether the sidebar is collapsed */
10
+ collapsed: boolean;
11
+ /** Function to toggle sidebar collapse state */
12
+ setCollapsed: any;
6
13
  }
7
14
  export declare const Sidebar: React.FC<SidebarProps>;
8
15
  export {};
@@ -41,6 +41,7 @@ export interface MenuItemProps {
41
41
  internalMenuClickHandler: (params: InternalMenuClickHandlerProps) => void;
42
42
  onClose?: () => void;
43
43
  collapsed?: boolean;
44
+ setCollapsed?: any;
44
45
  }
45
46
  export interface SubMenuItemProps {
46
47
  index: number;
@@ -54,4 +55,5 @@ export interface MenuBarProps {
54
55
  previousMenuClickHandler: () => void;
55
56
  onClose?: () => void;
56
57
  collapsed?: boolean;
58
+ setCollapsed?: any;
57
59
  }
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  export interface UserProfilePopupProps {
3
3
  /** User's full name */
4
4
  userFullName: string;
5
- /** User's designation/role */
6
- designation?: string;
5
+ /** User's email */
6
+ email?: string;
7
7
  /** Profile dropdown actions (custom menu items) */
8
8
  profileActions?: React.ReactNode[];
9
9
  /** Logout click handler */
@@ -19,6 +19,8 @@ export interface AppLayoutProps {
19
19
  /**User profile parameters */
20
20
  userProfileParams: UserProfilePopupProps;
21
21
  /** AppBar customization - Primary approach */
22
+ leftSection?: ReactNode;
23
+ /** AppBar customization - Primary approach */
22
24
  rightSection?: ReactNode;
23
25
  /** AppBar center section customization */
24
26
  centerSection?: ReactNode;