@campxdev/react-blueprint 2.1.6 → 2.1.9

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,3 @@
1
+ export declare const EmailNewIcon: ({ size }: {
2
+ size?: number;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const NewSmsIcon: ({ size }: {
2
+ size?: number;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -69,6 +69,7 @@ export type IconsType = {
69
69
  DFormsIcon: IconComponent;
70
70
  EditIcon: IconComponent;
71
71
  EmailIcon: IconComponent;
72
+ EmailNewIcon: IconComponent;
72
73
  EnrollxIcon: IconComponent;
73
74
  EvaluationIcon: IconComponent;
74
75
  ExamConfigurationIcon: IconComponent;
@@ -172,6 +173,7 @@ export type IconsType = {
172
173
  WarningFilledIcon: IconComponent;
173
174
  WhatsappIcon: IconComponent;
174
175
  WorkFlowDocsIcon: IconComponent;
176
+ NewSmsIcon: IconComponent;
175
177
  ESSIcon: IconComponent;
176
178
  SalaryIcon: IconComponent;
177
179
  ExpensesIcon: IconComponent;
@@ -11,8 +11,12 @@ export type AppHeaderProps = {
11
11
  collapsed: boolean;
12
12
  institutionsData?: any[];
13
13
  profileSx?: any;
14
- onLogoutClick?: any;
14
+ onLogoutClick?: () => void;
15
15
  showActiveDevices?: boolean;
16
16
  headerSx?: SxProps;
17
+ onAccountClick?: () => void;
18
+ onActiveDevicesClick?: () => void;
19
+ onChangeInstitutionClick?: () => void;
20
+ onAvatarClick?: () => void;
17
21
  };
18
- export declare const AppHeader: ({ actions, profileActions, profileSx, clientLogoUrl, onLogoutClick, designation, clientName, userFullName, collapsed, institutionsData, showActiveDevices, headerSx, }: AppHeaderProps) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const AppHeader: ({ actions, profileActions, profileSx, clientLogoUrl, onLogoutClick, designation, clientName, userFullName, collapsed, institutionsData, showActiveDevices, headerSx, onAccountClick, onActiveDevicesClick, onChangeInstitutionClick, onAvatarClick, }: AppHeaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,16 +1,18 @@
1
1
  import { ReactNode } from 'react';
2
- export default function UserBox({ fullName, onLogoutClick, designation, actions, profileUrl, profileSx, institutionsData, changePassword, avatar, // Make avatar optional, default to true
3
- navigationIcon, // Make navigationIcon optional, default to true
4
- showActiveDevices, }: {
2
+ export default function UserBox({ fullName, onLogoutClick, designation, actions, profileUrl, profileSx, institutionsData, changePassword, avatar, navigationIcon, showActiveDevices, onAccountClick, onActiveDevicesClick, onChangeInstitutionClick, onAvatarClick, }: {
5
3
  fullName: string;
6
4
  designation?: string;
7
5
  institutionsData?: any[];
8
6
  actions: ReactNode[];
9
- onLogoutClick?: any;
7
+ onLogoutClick?: () => void;
10
8
  profileUrl?: string;
11
9
  changePassword?: ReactNode;
12
10
  profileSx?: any;
13
11
  avatar?: boolean;
14
12
  navigationIcon?: boolean;
15
13
  showActiveDevices?: boolean;
14
+ onAccountClick?: () => void;
15
+ onActiveDevicesClick?: () => void;
16
+ onChangeInstitutionClick?: () => void;
17
+ onAvatarClick?: () => void;
16
18
  }): import("react/jsx-runtime").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -135,6 +135,7 @@ type IconsType = {
135
135
  DFormsIcon: IconComponent;
136
136
  EditIcon: IconComponent;
137
137
  EmailIcon: IconComponent;
138
+ EmailNewIcon: IconComponent;
138
139
  EnrollxIcon: IconComponent;
139
140
  EvaluationIcon: IconComponent;
140
141
  ExamConfigurationIcon: IconComponent;
@@ -238,6 +239,7 @@ type IconsType = {
238
239
  WarningFilledIcon: IconComponent;
239
240
  WhatsappIcon: IconComponent;
240
241
  WorkFlowDocsIcon: IconComponent;
242
+ NewSmsIcon: IconComponent;
241
243
  ESSIcon: IconComponent;
242
244
  SalaryIcon: IconComponent;
243
245
  ExpensesIcon: IconComponent;
@@ -917,11 +919,15 @@ type AppHeaderProps = {
917
919
  collapsed: boolean;
918
920
  institutionsData?: any[];
919
921
  profileSx?: any;
920
- onLogoutClick?: any;
922
+ onLogoutClick?: () => void;
921
923
  showActiveDevices?: boolean;
922
924
  headerSx?: SxProps;
925
+ onAccountClick?: () => void;
926
+ onActiveDevicesClick?: () => void;
927
+ onChangeInstitutionClick?: () => void;
928
+ onAvatarClick?: () => void;
923
929
  };
924
- declare const AppHeader: ({ actions, profileActions, profileSx, clientLogoUrl, onLogoutClick, designation, clientName, userFullName, collapsed, institutionsData, showActiveDevices, headerSx, }: AppHeaderProps) => react_jsx_runtime.JSX.Element;
930
+ declare const AppHeader: ({ actions, profileActions, profileSx, clientLogoUrl, onLogoutClick, designation, clientName, userFullName, collapsed, institutionsData, showActiveDevices, headerSx, onAccountClick, onActiveDevicesClick, onChangeInstitutionClick, onAvatarClick, }: AppHeaderProps) => react_jsx_runtime.JSX.Element;
925
931
 
926
932
  type AppHeaderV2Props = {
927
933
  /** Custom action components to display in the header */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/react-blueprint",
3
- "version": "2.1.6",
3
+ "version": "2.1.9",
4
4
  "description": "React UI component library for CampX applications",
5
5
  "author": "CampX",
6
6
  "license": "MIT",