magneto365.ui 2.43.5 → 2.44.0

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,5 +1,5 @@
1
- import { IMegaMenuCard } from '@components/UI/atoms';
2
1
  import { IMegaMenuLink } from '@components/UI/template/MegaMenu/MegaMenuContext.interface';
2
+ import { IMegaMenuCard } from '../MegaMenuCard/MegaMenuCard.interface';
3
3
  export interface IMegaMenuCards {
4
4
  jobs: IMegaMenuCard[];
5
5
  action?: IMegaMenuLink;
@@ -1,5 +1,5 @@
1
- import { IMegaMenuCard } from '@components/UI/atoms';
2
1
  import { IMegaMenuLink } from '@components/UI/template/MegaMenu/MegaMenuContext.interface';
2
+ import { IMegaMenuCard } from '../MegaMenuCard';
3
3
  export interface IMegaMenuSideCards {
4
4
  jobs: IMegaMenuCard[];
5
5
  onSelectCard?: (index: number) => void;
@@ -11,5 +11,13 @@ export interface TimelineEventProps {
11
11
  * The status of the event in the timeline. It can be 'checked', 'current', or 'blocked'.
12
12
  */
13
13
  status: TimelineEventStatus;
14
+ /**
15
+ * this property have the position of the list
16
+ */
17
+ index?: number;
18
+ /**
19
+ * this property sets the position of the list and status
20
+ */
21
+ onClick?: (status: TimelineEventStatus, value: number) => void;
14
22
  }
15
23
  export declare type TimelineEventStatus = 'checked' | 'current' | 'blocked';
@@ -1,3 +1,4 @@
1
+ import { TimelineEventStatus } from '@components/UI/molecules';
1
2
  export interface ITimelineProps {
2
3
  /**
3
4
  * Represents the steps in the timeline. Each step is an object that contains a title and a subtitle.
@@ -8,6 +9,10 @@ export interface ITimelineProps {
8
9
  * It is suggested that this number be greater than 0.
9
10
  */
10
11
  currentStep: number;
12
+ /**
13
+ * this property sets the position of the list and status
14
+ */
15
+ onClick?: (status: TimelineEventStatus, value: number) => void;
11
16
  }
12
17
  declare type StepDetails = {
13
18
  title: string;
@@ -0,0 +1,4 @@
1
+ export declare const timeLineSteps: {
2
+ title: string;
3
+ subtitle: string;
4
+ }[];
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import React$1, { ChangeEvent, FC, ReactNode, SetStateAction } from 'react';
3
- import { IDateDropdown as IDateDropdown$1, IconProps as IconProps$1, ISearchItem as ISearchItem$1, IJobCompanyLogo as IJobCompanyLogo$1, IJobHeader as IJobHeader$1, IShareButton as IShareButton$1, IImage as IImage$1, ILinkProps as ILinkProps$1, ILogoComponent as ILogoComponent$1, IMegaMenuCard as IMegaMenuCard$1 } from '@components/UI/atoms';
3
+ import { IDateDropdown as IDateDropdown$1, IconProps as IconProps$1, ISearchItem as ISearchItem$1, IJobCompanyLogo as IJobCompanyLogo$1, IJobHeader as IJobHeader$1, IShareButton as IShareButton$1, IImage as IImage$1, ILinkProps as ILinkProps$1, ILogoComponent as ILogoComponent$1 } from '@components/UI/atoms';
4
4
  import { IconProps as IconProps$2 } from '@components/UI/atoms/Icon';
5
5
  import { ISaveButton as ISaveButton$1 } from '@components/UI/atoms/SaveButton';
6
6
  import { ICustomText } from '@components/UI/atoms/Text/Text.interface';
7
7
  import { IFilterValue as IFilterValue$1, ISetIsApplied as ISetIsApplied$1, IFilter as IFilter$1, ISearchRenderTypeProps as ISearchRenderTypeProps$1 } from '@components/UI/template/SideFilter';
8
8
  import * as _components_UI_molecules from '@components/UI/molecules';
9
- import { IDatePicker as IDatePicker$1, IBreadcrumbs as IBreadcrumbs$1, IUserMenuWrapperAnalystProps as IUserMenuWrapperAnalystProps$1, IJobCompanyHeader as IJobCompanyHeader$2, IJobDetailCard as IJobDetailCard$1, IJobSkillsCard as IJobSkillsCard$1, IJobApplyCard as IJobApplyCard$1, IJobFooterCard as IJobFooterCard$1, ICityDetail as ICityDetail$1, IUserMenuAnalystProps as IUserMenuAnalystProps$1, IFrequentSearch as IFrequentSearch$1, IPaginationProps as IPaginationProps$1, IEmptyResults as IEmptyResults$2, IJobCard as IJobCard$2, ISearchbar as ISearchbar$1 } from '@components/UI/molecules';
9
+ import { IDatePicker as IDatePicker$1, IBreadcrumbs as IBreadcrumbs$1, IUserMenuWrapperAnalystProps as IUserMenuWrapperAnalystProps$1, IJobCompanyHeader as IJobCompanyHeader$2, IJobDetailCard as IJobDetailCard$1, IJobSkillsCard as IJobSkillsCard$1, IJobApplyCard as IJobApplyCard$1, IJobFooterCard as IJobFooterCard$1, ICityDetail as ICityDetail$1, TimelineEventStatus as TimelineEventStatus$1, IUserMenuAnalystProps as IUserMenuAnalystProps$1, IFrequentSearch as IFrequentSearch$1, IPaginationProps as IPaginationProps$1, IEmptyResults as IEmptyResults$2, IJobCard as IJobCard$2, ISearchbar as ISearchbar$1 } from '@components/UI/molecules';
10
10
  import { IMegaMenuLink as IMegaMenuLink$1 } from '@components/UI/template/MegaMenu/MegaMenuContext.interface';
11
11
  import { IMobileDatePicker as IMobileDatePicker$1, IDatePickerComponent as IDatePickerComponent$1, IJobDetailsDrawer as IJobDetailsDrawer$1, IMobileJobDetailsDrawer as IMobileJobDetailsDrawer$1, IHeaderAnalystProps as IHeaderAnalystProps$1, IModalAnalyst as IModalAnalyst$1, INavMenuAnalystRegion as INavMenuAnalystRegion$1 } from '@components/UI/organism';
12
12
  import { IListMenuText as IListMenuText$1 } from '@components/UI/molecules/ListMenuText/ListMenuText.interface';
@@ -2684,6 +2684,14 @@ interface TimelineEventProps {
2684
2684
  * The status of the event in the timeline. It can be 'checked', 'current', or 'blocked'.
2685
2685
  */
2686
2686
  status: TimelineEventStatus;
2687
+ /**
2688
+ * this property have the position of the list
2689
+ */
2690
+ index?: number;
2691
+ /**
2692
+ * this property sets the position of the list and status
2693
+ */
2694
+ onClick?: (status: TimelineEventStatus, value: number) => void;
2687
2695
  }
2688
2696
  declare type TimelineEventStatus = 'checked' | 'current' | 'blocked';
2689
2697
 
@@ -3604,6 +3612,10 @@ interface ITimelineProps {
3604
3612
  * It is suggested that this number be greater than 0.
3605
3613
  */
3606
3614
  currentStep: number;
3615
+ /**
3616
+ * this property sets the position of the list and status
3617
+ */
3618
+ onClick?: (status: TimelineEventStatus$1, value: number) => void;
3607
3619
  }
3608
3620
  declare type StepDetails = {
3609
3621
  title: string;
@@ -3825,16 +3837,6 @@ declare const UserMenuWrapperAnalyst: React$1.FC<IUserMenuWrapperAnalystProps>;
3825
3837
 
3826
3838
  declare const MegaMenuJobsTabs: React$1.FC;
3827
3839
 
3828
- interface IMegaMenuCards {
3829
- jobs: IMegaMenuCard$1[];
3830
- action?: IMegaMenuLink$1;
3831
- title?: string;
3832
- actionTitle?: IMegaMenuLink$1;
3833
- className?: string;
3834
- }
3835
-
3836
- declare const MegaMenuCards: React$1.FC<IMegaMenuCards>;
3837
-
3838
3840
  interface IMegaMenuCard {
3839
3841
  /**
3840
3842
  * This is the main title
@@ -3874,6 +3876,16 @@ interface IMegaMenuCard {
3874
3876
  showRigthArrow?: boolean;
3875
3877
  }
3876
3878
 
3879
+ interface IMegaMenuCards {
3880
+ jobs: IMegaMenuCard[];
3881
+ action?: IMegaMenuLink$1;
3882
+ title?: string;
3883
+ actionTitle?: IMegaMenuLink$1;
3884
+ className?: string;
3885
+ }
3886
+
3887
+ declare const MegaMenuCards: React$1.FC<IMegaMenuCards>;
3888
+
3877
3889
  declare const MegaMenuCard: React$1.FC<IMegaMenuCard>;
3878
3890
 
3879
3891
  declare const MegaMenuPopover: React$1.FC;
@@ -4354,7 +4366,7 @@ interface IMegaMenu {
4354
4366
  }
4355
4367
 
4356
4368
  interface IMegaMenuSideCards {
4357
- jobs: IMegaMenuCard$1[];
4369
+ jobs: IMegaMenuCard[];
4358
4370
  onSelectCard?: (index: number) => void;
4359
4371
  action?: IMegaMenuLink$1;
4360
4372
  }
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.43.5",
7
+ "version": "2.44.0",
8
8
  "description": "Magneto365 UI common components",
9
9
  "scripts": {
10
10
  "lint": "eslint ./src --ext .js,.ts,.jsx,.tsx",