magneto365.ui 2.55.0 → 2.55.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.
@@ -1,3 +1,3 @@
1
- export declare const FraudCardJob: ({ fraudLink }: {
2
- fraudLink: string;
3
- }) => JSX.Element;
1
+ import React from 'react';
2
+ import { IFraudCardJob } from './FraudCardJob.interface';
3
+ export declare const FraudCardJob: React.FC<IFraudCardJob>;
@@ -0,0 +1,18 @@
1
+ export interface IFraudCardJob {
2
+ /**
3
+ * This is the text that display in the title of the card
4
+ */
5
+ title: string;
6
+ /**
7
+ *This is the text that display in the body of the card
8
+ */
9
+ content: string;
10
+ /**
11
+ * This is the text that display in the report button of the card
12
+ */
13
+ linkText: string;
14
+ /**
15
+ * This is the link to redirect to the fraud form
16
+ */
17
+ link: string;
18
+ }
@@ -8,6 +8,7 @@ import { ReactNode } from 'react';
8
8
  import { ISimilarJobs } from '../SimilarJobs/SimilarJobs.interface';
9
9
  import { IJobVideo } from '@components/UI/molecules/JobVideo';
10
10
  import { ICityDetail } from '../../molecules/CitiesDetailDrawer';
11
+ import { IFraudCardJob } from '../../molecules/FraudCardJob/FraudCardJob.interface';
11
12
  export interface IJobDetailsDrawer {
12
13
  /**
13
14
  * Props for the job company logo and header section.
@@ -74,7 +75,7 @@ export interface IJobDetailsDrawer {
74
75
  isRemote: boolean;
75
76
  textRemote: string;
76
77
  /**
77
- * set link to fraud card
78
+ * Props for the fraud card job.
78
79
  */
79
- fraudLink: string;
80
+ fraudCardJobProps: IFraudCardJob;
80
81
  }
@@ -1,9 +1,10 @@
1
+ import { ReactNode } from 'react';
1
2
  import { IJobApplyCard, IJobCompanyHeader, IJobDetailCard, IJobFooterCard, IJobSkillsCard, ICityDetail } from '@components/UI/molecules';
2
3
  import { IMobileJobDetailsActionsBar } from '../MobileJobDetailsActionsBar';
3
- import { ReactNode } from 'react';
4
- import { ISimilarJobs } from '../SimilarJobs/SimilarJobs.interface';
5
4
  import { IJobVideo } from '@components/UI/molecules/JobVideo';
5
+ import { ISimilarJobs } from '../SimilarJobs/SimilarJobs.interface';
6
6
  import { SwipeProps } from '../Swipe/Swipe.interface';
7
+ import { IFraudCardJob } from './../../molecules/FraudCardJob/FraudCardJob.interface';
7
8
  export interface IMobileJobDetailsDrawer {
8
9
  /**
9
10
  * Props for the job company logo and header section.
@@ -84,7 +85,7 @@ export interface IMobileJobDetailsDrawer {
84
85
  isRemote: boolean;
85
86
  textRemote: string;
86
87
  /**
87
- * set link to fraud card
88
+ * Props for the fraud card job.
88
89
  */
89
- fraudLink: string;
90
+ fraudCardJobProps: IFraudCardJob;
90
91
  }
@@ -33,7 +33,7 @@ export { default as Calendar1 } from '../assets/Calendar1.svg';
33
33
  export { default as Checked } from '../assets/Checked.svg';
34
34
  export { default as ClipboardClose } from '../assets/ClipboardClose.svg';
35
35
  export { default as Clock } from '../assets/Clock.svg';
36
- export { default as ClockLine } from '../assets/clock.svg';
36
+ export { default as ClockLine } from '../assets/clock-line.svg';
37
37
  export { default as Close } from '../assets/Close.svg';
38
38
  export { default as CloseCircle } from '../assets/closeCircle.svg';
39
39
  export { default as CloseCircleRedBold } from '../assets/closeCircleRedBold.svg';
@@ -0,0 +1,2 @@
1
+ import { IFraudCardJob } from '../../components/UI/molecules/FraudCardJob/FraudCardJob.interface';
2
+ export declare const fraudCardJob: IFraudCardJob;
package/dist/index.d.ts CHANGED
@@ -1690,9 +1690,26 @@ interface IFilterSearchItem {
1690
1690
 
1691
1691
  declare const FilterSearchItem: FC<IFilterSearchItem>;
1692
1692
 
1693
- declare const FraudCardJob: ({ fraudLink }: {
1694
- fraudLink: string;
1695
- }) => JSX.Element;
1693
+ interface IFraudCardJob {
1694
+ /**
1695
+ * This is the text that display in the title of the card
1696
+ */
1697
+ title: string;
1698
+ /**
1699
+ *This is the text that display in the body of the card
1700
+ */
1701
+ content: string;
1702
+ /**
1703
+ * This is the text that display in the report button of the card
1704
+ */
1705
+ linkText: string;
1706
+ /**
1707
+ * This is the link to redirect to the fraud form
1708
+ */
1709
+ link: string;
1710
+ }
1711
+
1712
+ declare const FraudCardJob: React$1.FC<IFraudCardJob>;
1696
1713
 
1697
1714
  interface IFrequentSearch {
1698
1715
  /**
@@ -3328,9 +3345,9 @@ interface IJobDetailsDrawer {
3328
3345
  isRemote: boolean;
3329
3346
  textRemote: string;
3330
3347
  /**
3331
- * set link to fraud card
3348
+ * Props for the fraud card job.
3332
3349
  */
3333
- fraudLink: string;
3350
+ fraudCardJobProps: IFraudCardJob;
3334
3351
  }
3335
3352
 
3336
3353
  /**
@@ -3585,9 +3602,9 @@ interface IMobileJobDetailsDrawer {
3585
3602
  isRemote: boolean;
3586
3603
  textRemote: string;
3587
3604
  /**
3588
- * set link to fraud card
3605
+ * Props for the fraud card job.
3589
3606
  */
3590
- fraudLink: string;
3607
+ fraudCardJobProps: IFraudCardJob;
3591
3608
  }
3592
3609
 
3593
3610
  /**
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/W170/talenta.magneto365.ui.git"
6
6
  },
7
- "version": "2.55.0",
7
+ "version": "2.55.1",
8
8
  "description": "Magneto365 UI common components",
9
9
  "scripts": {
10
10
  "lint": "eslint ./src --ext .js,.ts,.jsx,.tsx",