magneto365.ui 2.57.4 → 2.58.1

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 (29) hide show
  1. package/dist/assets/4cf4b85aba741f29.svg +11 -0
  2. package/dist/cjs/css/magneto.ui.lib.min.css +1 -1
  3. package/dist/cjs/index.js +53 -41
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/types/components/UI/atoms/Text/Text.interface.d.ts +2 -1
  6. package/dist/cjs/types/components/UI/molecules/Actions/Actions.interface.d.ts +4 -0
  7. package/dist/cjs/types/components/UI/molecules/AlertJobStatus/AlertJobStatus.interface.d.ts +11 -0
  8. package/dist/cjs/types/components/UI/molecules/JobActions/JobActions.interface.d.ts +5 -0
  9. package/dist/cjs/types/components/UI/molecules/JobApplyCard/JobApplyCard.interface.d.ts +4 -0
  10. package/dist/cjs/types/components/UI/molecules/JobCompanyHeader/JobCompanyHeader.interface.d.ts +6 -0
  11. package/dist/cjs/types/components/UI/organism/JobDetailsDrawer/JobDetailsDrawer.interface.d.ts +10 -1
  12. package/dist/cjs/types/components/UI/organism/MobileJobDetailsActionsBar/MobileJobDetailsActionsBar.interface.d.ts +4 -0
  13. package/dist/cjs/types/components/UI/organism/MobileJobDetailsDrawer/MobileJobDetailsDrawer.interface.d.ts +10 -2
  14. package/dist/cjs/types/constants/icons.constants.d.ts +1 -0
  15. package/dist/esm/css/magneto.ui.lib.min.css +1 -1
  16. package/dist/esm/index.js +53 -41
  17. package/dist/esm/index.js.map +1 -1
  18. package/dist/esm/types/components/UI/atoms/Text/Text.interface.d.ts +2 -1
  19. package/dist/esm/types/components/UI/molecules/Actions/Actions.interface.d.ts +4 -0
  20. package/dist/esm/types/components/UI/molecules/AlertJobStatus/AlertJobStatus.interface.d.ts +11 -0
  21. package/dist/esm/types/components/UI/molecules/JobActions/JobActions.interface.d.ts +5 -0
  22. package/dist/esm/types/components/UI/molecules/JobApplyCard/JobApplyCard.interface.d.ts +4 -0
  23. package/dist/esm/types/components/UI/molecules/JobCompanyHeader/JobCompanyHeader.interface.d.ts +6 -0
  24. package/dist/esm/types/components/UI/organism/JobDetailsDrawer/JobDetailsDrawer.interface.d.ts +10 -1
  25. package/dist/esm/types/components/UI/organism/MobileJobDetailsActionsBar/MobileJobDetailsActionsBar.interface.d.ts +4 -0
  26. package/dist/esm/types/components/UI/organism/MobileJobDetailsDrawer/MobileJobDetailsDrawer.interface.d.ts +10 -2
  27. package/dist/esm/types/constants/icons.constants.d.ts +1 -0
  28. package/dist/index.d.ts +96 -47
  29. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface IText {
2
3
  /**
3
4
  * This is the main text
@@ -16,7 +17,7 @@ export interface ICustomText {
16
17
  /**
17
18
  * This is the value to the custom text
18
19
  * */
19
- value: string;
20
+ value: string | React.ReactNode;
20
21
  /**
21
22
  * This is the custom font weight to text
22
23
  * */
@@ -52,6 +52,10 @@ export interface IActions {
52
52
  * just a text to inform about back action.
53
53
  */
54
54
  backText?: string;
55
+ /**
56
+ * Props for show apply button
57
+ */
58
+ isApplied?: boolean;
55
59
  }
56
60
  export interface IShareLinksActions {
57
61
  onBack: () => void;
@@ -8,6 +8,11 @@ export interface IAlertJobStatus {
8
8
  * Additional class names for custom styling.
9
9
  */
10
10
  className?: string;
11
+ /**
12
+ * type to background alert 'warning' or 'normal'.
13
+ * default: warning
14
+ */
15
+ type?: EAlertJobStatusType;
11
16
  }
12
17
  export declare namespace IAlertJobStatus {
13
18
  interface Container {
@@ -37,5 +42,11 @@ export declare namespace IAlertJobStatus {
37
42
  * Text alt in the img element
38
43
  */
39
44
  alt?: string | null;
45
+ /**
46
+ * type to icon alert 'warning' or 'success'.
47
+ */
48
+ type?: EAlertJobStatusIcon;
40
49
  }
41
50
  }
51
+ export declare type EAlertJobStatusType = 'warning' | 'normal';
52
+ export declare type EAlertJobStatusIcon = 'success' | 'warning';
@@ -27,4 +27,9 @@ export interface IJobsActions {
27
27
  * Props for the share button component.
28
28
  */
29
29
  shareButtonProps: ISharePopover;
30
+ /**
31
+ * Props for render save button.
32
+ * it's true it will not display save button
33
+ */
34
+ isApplied?: boolean;
30
35
  }
@@ -23,4 +23,8 @@ export interface IJobApplyCard {
23
23
  * Content to be displayed as an external child element.
24
24
  */
25
25
  externalChild: ReactNode | JSX.Element;
26
+ /**
27
+ * Props for show apply button
28
+ */
29
+ isApplied?: boolean;
26
30
  }
@@ -1,4 +1,5 @@
1
1
  import { IJobCompanyLogo, IJobHeader } from '@components/UI/atoms';
2
+ import { IJobsActions } from '@components/UI/molecules/JobActions';
2
3
  export interface IJobCompanyHeader {
3
4
  /**
4
5
  * Props for the company logo in the job company header.
@@ -8,4 +9,9 @@ export interface IJobCompanyHeader {
8
9
  * Props for the header of the job listing in the job company header.
9
10
  */
10
11
  jobHeaderProps: IJobHeader;
12
+ isApplied?: boolean;
13
+ /**
14
+ * Props for the actions section associated with the job details.
15
+ */
16
+ jobActionsProps?: IJobsActions;
11
17
  }
@@ -1,3 +1,4 @@
1
+ import { IAlertJobStatus } from './../../molecules/AlertJobStatus/AlertJobStatus.interface';
1
2
  import { IJobSkillsCard } from '../../molecules/JobSkillsCard';
2
3
  import { IJobApplyCard } from '../../molecules/JobApplyCard';
3
4
  import { IJobFooterCard } from '../../molecules/JobFooterCard';
@@ -77,5 +78,13 @@ export interface IJobDetailsDrawer {
77
78
  /**
78
79
  * Props for the fraud card job.
79
80
  */
80
- fraudCardJobProps: IFraudCardJob;
81
+ fraudCardJobProps?: IFraudCardJob;
82
+ /**
83
+ * Props for show actions buttons or alert
84
+ */
85
+ isApplied?: boolean;
86
+ /**
87
+ * Props for show alert when apply
88
+ */
89
+ alertJobStatusProps?: IAlertJobStatus;
81
90
  }
@@ -14,4 +14,8 @@ export interface IMobileJobDetailsActionsBar {
14
14
  *
15
15
  */
16
16
  onClose?: boolean;
17
+ /**
18
+ * Props for show button apply
19
+ */
20
+ isApplied?: boolean;
17
21
  }
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { IJobApplyCard, IJobCompanyHeader, IJobDetailCard, IJobFooterCard, IJobSkillsCard, ICityDetail } from '@components/UI/molecules';
2
+ import { IJobApplyCard, IJobCompanyHeader, IJobDetailCard, IJobFooterCard, IJobSkillsCard, ICityDetail, IAlertJobStatus } from '@components/UI/molecules';
3
3
  import { IMobileJobDetailsActionsBar } from '../MobileJobDetailsActionsBar';
4
4
  import { IJobVideo } from '@components/UI/molecules/JobVideo';
5
5
  import { ISimilarJobs } from '../SimilarJobs/SimilarJobs.interface';
@@ -87,5 +87,13 @@ export interface IMobileJobDetailsDrawer {
87
87
  /**
88
88
  * Props for the fraud card job.
89
89
  */
90
- fraudCardJobProps: IFraudCardJob;
90
+ fraudCardJobProps?: IFraudCardJob;
91
+ /**
92
+ * Props for show actions buttons or alert
93
+ */
94
+ isApplied?: boolean;
95
+ /**
96
+ * Props for show alert when apply
97
+ */
98
+ alertJobStatusProps?: IAlertJobStatus;
91
99
  }
@@ -31,6 +31,7 @@ export { default as BuildingSlashBlackOutline } from '../assets/buildingSlashDar
31
31
  export { default as BuildingWhite } from '../assets/buildingWhite.svg';
32
32
  export { default as Calendar1 } from '../assets/Calendar1.svg';
33
33
  export { default as Checked } from '../assets/Checked.svg';
34
+ export { default as Checked2 } from '../assets/Checked2.svg';
34
35
  export { default as ClipboardClose } from '../assets/ClipboardClose.svg';
35
36
  export { default as Clock } from '../assets/Clock.svg';
36
37
  export { default as ClockLine } from '../assets/clock-line.svg';