@campxdev/react-blueprint 2.1.8 → 2.1.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.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/types/src/components/Assets/Icons/IconComponents/EmailNewIcon.d.ts +3 -0
- package/dist/cjs/types/src/components/Assets/Icons/IconComponents/NewSmsIcon.d.ts +3 -0
- package/dist/cjs/types/src/components/Assets/Icons/Icons.d.ts +2 -0
- package/dist/cjs/types/src/components/Layout/AppHeader/AppHeader.d.ts +6 -2
- package/dist/cjs/types/src/components/Layout/AppHeader/AppHeaderActions/UserBox.d.ts +6 -4
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/src/components/Assets/Icons/IconComponents/EmailNewIcon.d.ts +3 -0
- package/dist/esm/types/src/components/Assets/Icons/IconComponents/NewSmsIcon.d.ts +3 -0
- package/dist/esm/types/src/components/Assets/Icons/Icons.d.ts +2 -0
- package/dist/esm/types/src/components/Layout/AppHeader/AppHeader.d.ts +6 -2
- package/dist/esm/types/src/components/Layout/AppHeader/AppHeaderActions/UserBox.d.ts +6 -4
- package/dist/index.d.ts +8 -2
- package/package.json +1 -1
|
@@ -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?:
|
|
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,
|
|
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?:
|
|
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?:
|
|
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 */
|