magneto365.ui 2.55.0 → 2.55.2

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 (22) hide show
  1. package/dist/cjs/index.js +13 -13
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/UI/molecules/FraudCardJob/FraudCardJob.component.d.ts +3 -3
  4. package/dist/cjs/types/components/UI/molecules/FraudCardJob/FraudCardJob.interface.d.ts +18 -0
  5. package/dist/cjs/types/components/UI/molecules/MegaMenuCard/MegaMenuCard.interface.d.ts +1 -1
  6. package/dist/cjs/types/components/UI/molecules/MegaMenuSideCards/MegaMenuSideCards.interface.d.ts +1 -0
  7. package/dist/cjs/types/components/UI/organism/JobDetailsDrawer/JobDetailsDrawer.interface.d.ts +3 -2
  8. package/dist/cjs/types/components/UI/organism/MobileJobDetailsDrawer/MobileJobDetailsDrawer.interface.d.ts +5 -4
  9. package/dist/cjs/types/constants/icons.constants.d.ts +1 -1
  10. package/dist/cjs/types/constants/stories/fraudCardJob.constant.d.ts +2 -0
  11. package/dist/esm/index.js +13 -13
  12. package/dist/esm/index.js.map +1 -1
  13. package/dist/esm/types/components/UI/molecules/FraudCardJob/FraudCardJob.component.d.ts +3 -3
  14. package/dist/esm/types/components/UI/molecules/FraudCardJob/FraudCardJob.interface.d.ts +18 -0
  15. package/dist/esm/types/components/UI/molecules/MegaMenuCard/MegaMenuCard.interface.d.ts +1 -1
  16. package/dist/esm/types/components/UI/molecules/MegaMenuSideCards/MegaMenuSideCards.interface.d.ts +1 -0
  17. package/dist/esm/types/components/UI/organism/JobDetailsDrawer/JobDetailsDrawer.interface.d.ts +3 -2
  18. package/dist/esm/types/components/UI/organism/MobileJobDetailsDrawer/MobileJobDetailsDrawer.interface.d.ts +5 -4
  19. package/dist/esm/types/constants/icons.constants.d.ts +1 -1
  20. package/dist/esm/types/constants/stories/fraudCardJob.constant.d.ts +2 -0
  21. package/dist/index.d.ts +26 -8
  22. package/package.json +1 -1
@@ -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
+ }
@@ -30,7 +30,7 @@ export interface IMegaMenuCard {
30
30
  /**
31
31
  * Onclick callback
32
32
  * */
33
- onClick: () => void;
33
+ onClick?: () => void;
34
34
  /**
35
35
  * Show arrow icon
36
36
  * */
@@ -5,4 +5,5 @@ export interface IMegaMenuSideCards {
5
5
  onSelectCard?: (index: number) => void;
6
6
  action?: IMegaMenuLink;
7
7
  maxCards?: number;
8
+ initValue?: number;
8
9
  }
@@ -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
  /**
@@ -2473,7 +2490,7 @@ interface IMegaMenuCard {
2473
2490
  /**
2474
2491
  * Onclick callback
2475
2492
  * */
2476
- onClick: () => void;
2493
+ onClick?: () => void;
2477
2494
  /**
2478
2495
  * Show arrow icon
2479
2496
  * */
@@ -2491,6 +2508,7 @@ interface IMegaMenuSideCards {
2491
2508
  onSelectCard?: (index: number) => void;
2492
2509
  action?: IMegaMenuLink$1;
2493
2510
  maxCards?: number;
2511
+ initValue?: number;
2494
2512
  }
2495
2513
 
2496
2514
  declare const MegaMenuSideCards: React$1.FC<IMegaMenuSideCards>;
@@ -3328,9 +3346,9 @@ interface IJobDetailsDrawer {
3328
3346
  isRemote: boolean;
3329
3347
  textRemote: string;
3330
3348
  /**
3331
- * set link to fraud card
3349
+ * Props for the fraud card job.
3332
3350
  */
3333
- fraudLink: string;
3351
+ fraudCardJobProps: IFraudCardJob;
3334
3352
  }
3335
3353
 
3336
3354
  /**
@@ -3585,9 +3603,9 @@ interface IMobileJobDetailsDrawer {
3585
3603
  isRemote: boolean;
3586
3604
  textRemote: string;
3587
3605
  /**
3588
- * set link to fraud card
3606
+ * Props for the fraud card job.
3589
3607
  */
3590
- fraudLink: string;
3608
+ fraudCardJobProps: IFraudCardJob;
3591
3609
  }
3592
3610
 
3593
3611
  /**
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.2",
8
8
  "description": "Magneto365 UI common components",
9
9
  "scripts": {
10
10
  "lint": "eslint ./src --ext .js,.ts,.jsx,.tsx",