@mindly/ui-components 3.43.0 → 3.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.
Files changed (28) hide show
  1. package/dist/cjs/index.js +2 -2
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/lib/Consultations/CancelSession/CancelSession.d.ts +9 -1
  4. package/dist/cjs/types/lib/Consultations/ConsultationCard/types.d.ts +12 -0
  5. package/dist/cjs/types/lib/Consultations/ConsultationModal/ConsultationModal.d.ts +17 -0
  6. package/dist/cjs/types/lib/Consultations/ConsultationSpecialistCard/ConsultationSpecialistCard.d.ts +2 -1
  7. package/dist/cjs/types/lib/Consultations/ReSchedule/ReSchedule.d.ts +6 -0
  8. package/dist/cjs/types/lib/Consultations/ReScheduleSuccess/ReScheduleSuccess.d.ts +3 -0
  9. package/dist/cjs/types/lib/Consultations/SignUpSessionModal/SignUpSessionModal.d.ts +3 -1
  10. package/dist/cjs/types/lib/Consultations/UserInfoModal/UserInfoModal.d.ts +10 -0
  11. package/dist/cjs/types/lib/Consultations/utils.d.ts +1 -1
  12. package/dist/cjs/types/lib/DaySlider/DaySlider.d.ts +6 -1
  13. package/dist/cjs/types/lib/DaySlider/utils.d.ts +1 -1
  14. package/dist/esm/index.js +1 -1
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/types/lib/Consultations/CancelSession/CancelSession.d.ts +9 -1
  17. package/dist/esm/types/lib/Consultations/ConsultationCard/types.d.ts +12 -0
  18. package/dist/esm/types/lib/Consultations/ConsultationModal/ConsultationModal.d.ts +17 -0
  19. package/dist/esm/types/lib/Consultations/ConsultationSpecialistCard/ConsultationSpecialistCard.d.ts +2 -1
  20. package/dist/esm/types/lib/Consultations/ReSchedule/ReSchedule.d.ts +6 -0
  21. package/dist/esm/types/lib/Consultations/ReScheduleSuccess/ReScheduleSuccess.d.ts +3 -0
  22. package/dist/esm/types/lib/Consultations/SignUpSessionModal/SignUpSessionModal.d.ts +3 -1
  23. package/dist/esm/types/lib/Consultations/UserInfoModal/UserInfoModal.d.ts +10 -0
  24. package/dist/esm/types/lib/Consultations/utils.d.ts +1 -1
  25. package/dist/esm/types/lib/DaySlider/DaySlider.d.ts +6 -1
  26. package/dist/esm/types/lib/DaySlider/utils.d.ts +1 -1
  27. package/dist/index.d.ts +68 -4
  28. package/package.json +1 -1
@@ -7,7 +7,15 @@ declare type CancelSessionProps = {
7
7
  onSubmit?: (message: string) => void;
8
8
  onReschedule?: () => void;
9
9
  isLoading?: boolean;
10
- isClientView?: boolean;
10
+ locale: string;
11
+ translations: {
12
+ title: string;
13
+ placeholder: string;
14
+ cancelBtnLabel: string;
15
+ rescheduleBtnLabel: string;
16
+ question: string;
17
+ description: string;
18
+ };
11
19
  };
12
20
  declare const CancelSession: FC<CancelSessionProps>;
13
21
  export default CancelSession;
@@ -13,4 +13,16 @@ export declare type ConsultationCardProps = {
13
13
  onClick?: (sessionId: string) => void;
14
14
  isLoading?: boolean;
15
15
  onVideoCall?: (sessionId: string) => void;
16
+ locale: string;
17
+ translations?: {
18
+ with?: string;
19
+ join?: string;
20
+ sessionCount?: string;
21
+ forLocalTime?: string;
22
+ days?: string[];
23
+ hour?: string[];
24
+ minutes?: string[];
25
+ from?: string;
26
+ started?: string;
27
+ };
16
28
  };
@@ -14,6 +14,23 @@ declare type ConsultationModalProps = {
14
14
  onCancel?: (sessionId: string) => void;
15
15
  onReschedule?: (sessionId: string) => void;
16
16
  onModalClose?: () => void;
17
+ locale: string;
18
+ translations?: {
19
+ with?: string;
20
+ sessionCount?: string;
21
+ forLocalTime?: string;
22
+ finishTitle?: string;
23
+ writeBtnLabel?: string;
24
+ startBtnLabel?: string;
25
+ cancelBtnLabel?: string;
26
+ rescheduleBtnLabel?: string;
27
+ question?: string;
28
+ days?: string[];
29
+ hour?: string[];
30
+ minutes?: string[];
31
+ from?: string;
32
+ started?: string;
33
+ };
17
34
  };
18
35
  declare const _default: React.NamedExoticComponent<ConsultationModalProps>;
19
36
  export default _default;
@@ -3,9 +3,10 @@ declare type ConsultationSpecialistCardProps = {
3
3
  id: string;
4
4
  name: string;
5
5
  avatar?: string;
6
- sessions: number;
6
+ sessions: string;
7
7
  onClick?: (id: string) => void;
8
8
  onSignUp?: (id: string) => void;
9
+ signInBtnLabel: string;
9
10
  };
10
11
  declare const _default: React.NamedExoticComponent<ConsultationSpecialistCardProps>;
11
12
  export default _default;
@@ -6,6 +6,12 @@ declare type ReScheduleProps = {
6
6
  timeZone?: string;
7
7
  onSubmit?: (message: string) => void;
8
8
  isLoading?: boolean;
9
+ locale: string;
10
+ translations?: {
11
+ title?: string;
12
+ placeholder?: string;
13
+ btnLabel: string;
14
+ };
9
15
  };
10
16
  declare const _default: React.NamedExoticComponent<ReScheduleProps>;
11
17
  export default _default;
@@ -8,6 +8,9 @@ declare type ReScheduleSuccessProps = {
8
8
  type?: 'reschedule' | 'cancel';
9
9
  successTitle?: string;
10
10
  cancelTitle?: string;
11
+ description?: string;
12
+ success: string;
13
+ locale: string;
11
14
  };
12
15
  declare const ReScheduleSuccess: FC<ReScheduleSuccessProps>;
13
16
  export default ReScheduleSuccess;
@@ -3,7 +3,7 @@ declare type SpecialistData = {
3
3
  id: string;
4
4
  name: string;
5
5
  avatar?: string;
6
- sessions: number;
6
+ sessions: string;
7
7
  };
8
8
  declare type SignUpSessionModalProps = {
9
9
  isOpen: boolean;
@@ -11,6 +11,8 @@ declare type SignUpSessionModalProps = {
11
11
  onSpecialistSelected?: (id: string) => void;
12
12
  onCancel?: () => void;
13
13
  viewportHeight: number;
14
+ title: string;
15
+ cancelBtnLabel: string;
14
16
  };
15
17
  declare const _default: React.NamedExoticComponent<SignUpSessionModalProps>;
16
18
  export default _default;
@@ -11,6 +11,16 @@ declare type UserInfoModalProps = {
11
11
  onSignUp?: (id: string) => void;
12
12
  onClose: () => void;
13
13
  isClient?: boolean;
14
+ translations?: {
15
+ sessions?: string[];
16
+ writeBtnLabel?: string;
17
+ buyBtnLabel?: string;
18
+ buyTooltip?: string;
19
+ profile?: string;
20
+ clientBtnLabel?: string;
21
+ writeLabelBtn?: string;
22
+ sigUpBtnLabel?: string;
23
+ };
14
24
  };
15
25
  declare const UserInfoModal: FC<UserInfoModalProps>;
16
26
  export default UserInfoModal;
@@ -1,3 +1,3 @@
1
1
  import { DateTime } from 'luxon';
2
2
  export declare const decOfNum: (number: number, titles: string[]) => string;
3
- export declare const timeNormalize: (dt: DateTime) => string;
3
+ export declare const timeNormalize: (dt: DateTime, days?: string[] | undefined, hour?: string[] | undefined, minutes?: string[] | undefined, from?: string | undefined, started?: string | undefined) => string;
@@ -3,6 +3,11 @@ import { JSX } from '@ionic/core/components';
3
3
  declare type DaySliderProps = JSX.IonSlides & HTMLAttributes<HTMLIonSlidesElement> & RefAttributes<HTMLIonSlidesElement> & {
4
4
  slides: number[];
5
5
  onDayClick?: (i: number, item: number) => void;
6
+ locale: string;
7
+ translations?: {
8
+ today?: string;
9
+ tomorrow?: string;
10
+ };
6
11
  };
7
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<DaySliderProps, "key" | keyof JSX.IonSlides | keyof React.HTMLAttributes<HTMLIonSlidesElement> | "slides" | "onDayClick"> & React.RefAttributes<HTMLIonSlidesElement>>>;
12
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<DaySliderProps, "key" | "locale" | "translations" | keyof JSX.IonSlides | keyof React.HTMLAttributes<HTMLIonSlidesElement> | "slides" | "onDayClick"> & React.RefAttributes<HTMLIonSlidesElement>>>;
8
13
  export default _default;
@@ -1 +1 @@
1
- export declare const dateNormalize: (date: number) => string;
1
+ export declare const dateNormalize: (date: number, locale: string, today?: string | undefined, tomorrow?: string | undefined) => string;
package/dist/index.d.ts CHANGED
@@ -678,6 +678,18 @@ declare type ConsultationCardProps = {
678
678
  onClick?: (sessionId: string) => void;
679
679
  isLoading?: boolean;
680
680
  onVideoCall?: (sessionId: string) => void;
681
+ locale: string;
682
+ translations?: {
683
+ with?: string;
684
+ join?: string;
685
+ sessionCount?: string;
686
+ forLocalTime?: string;
687
+ days?: string[];
688
+ hour?: string[];
689
+ minutes?: string[];
690
+ from?: string;
691
+ started?: string;
692
+ };
681
693
  };
682
694
 
683
695
  declare const _default$j: React.NamedExoticComponent<ConsultationCardProps>;
@@ -712,6 +724,23 @@ declare type ConsultationModalProps = {
712
724
  onCancel?: (sessionId: string) => void;
713
725
  onReschedule?: (sessionId: string) => void;
714
726
  onModalClose?: () => void;
727
+ locale: string;
728
+ translations?: {
729
+ with?: string;
730
+ sessionCount?: string;
731
+ forLocalTime?: string;
732
+ finishTitle?: string;
733
+ writeBtnLabel?: string;
734
+ startBtnLabel?: string;
735
+ cancelBtnLabel?: string;
736
+ rescheduleBtnLabel?: string;
737
+ question?: string;
738
+ days?: string[];
739
+ hour?: string[];
740
+ minutes?: string[];
741
+ from?: string;
742
+ started?: string;
743
+ };
715
744
  };
716
745
  declare const _default$g: React.NamedExoticComponent<ConsultationModalProps>;
717
746
 
@@ -719,7 +748,7 @@ declare type SpecialistData = {
719
748
  id: string;
720
749
  name: string;
721
750
  avatar?: string;
722
- sessions: number;
751
+ sessions: string;
723
752
  };
724
753
  declare type SignUpSessionModalProps = {
725
754
  isOpen: boolean;
@@ -727,6 +756,8 @@ declare type SignUpSessionModalProps = {
727
756
  onSpecialistSelected?: (id: string) => void;
728
757
  onCancel?: () => void;
729
758
  viewportHeight: number;
759
+ title: string;
760
+ cancelBtnLabel: string;
730
761
  };
731
762
  declare const _default$f: React.NamedExoticComponent<SignUpSessionModalProps>;
732
763
 
@@ -734,9 +765,10 @@ declare type ConsultationSpecialistCardProps = {
734
765
  id: string;
735
766
  name: string;
736
767
  avatar?: string;
737
- sessions: number;
768
+ sessions: string;
738
769
  onClick?: (id: string) => void;
739
770
  onSignUp?: (id: string) => void;
771
+ signInBtnLabel: string;
740
772
  };
741
773
  declare const _default$e: React.NamedExoticComponent<ConsultationSpecialistCardProps>;
742
774
 
@@ -752,6 +784,16 @@ declare type UserInfoModalProps = {
752
784
  onSignUp?: (id: string) => void;
753
785
  onClose: () => void;
754
786
  isClient?: boolean;
787
+ translations?: {
788
+ sessions?: string[];
789
+ writeBtnLabel?: string;
790
+ buyBtnLabel?: string;
791
+ buyTooltip?: string;
792
+ profile?: string;
793
+ clientBtnLabel?: string;
794
+ writeLabelBtn?: string;
795
+ sigUpBtnLabel?: string;
796
+ };
755
797
  };
756
798
  declare const UserInfoModal: FC<UserInfoModalProps>;
757
799
 
@@ -763,7 +805,15 @@ declare type CancelSessionProps = {
763
805
  onSubmit?: (message: string) => void;
764
806
  onReschedule?: () => void;
765
807
  isLoading?: boolean;
766
- isClientView?: boolean;
808
+ locale: string;
809
+ translations: {
810
+ title: string;
811
+ placeholder: string;
812
+ cancelBtnLabel: string;
813
+ rescheduleBtnLabel: string;
814
+ question: string;
815
+ description: string;
816
+ };
767
817
  };
768
818
  declare const CancelSession: FC<CancelSessionProps>;
769
819
 
@@ -774,6 +824,12 @@ declare type ReScheduleProps = {
774
824
  timeZone?: string;
775
825
  onSubmit?: (message: string) => void;
776
826
  isLoading?: boolean;
827
+ locale: string;
828
+ translations?: {
829
+ title?: string;
830
+ placeholder?: string;
831
+ btnLabel: string;
832
+ };
777
833
  };
778
834
  declare const _default$d: React.NamedExoticComponent<ReScheduleProps>;
779
835
 
@@ -786,6 +842,9 @@ declare type ReScheduleSuccessProps = {
786
842
  type?: 'reschedule' | 'cancel';
787
843
  successTitle?: string;
788
844
  cancelTitle?: string;
845
+ description?: string;
846
+ success: string;
847
+ locale: string;
789
848
  };
790
849
  declare const ReScheduleSuccess: FC<ReScheduleSuccessProps>;
791
850
 
@@ -801,8 +860,13 @@ declare const TooltipComponent: FC<TooltipComponentProps>;
801
860
  declare type DaySliderProps = JSX$1.IonSlides & HTMLAttributes<HTMLIonSlidesElement> & RefAttributes<HTMLIonSlidesElement> & {
802
861
  slides: number[];
803
862
  onDayClick?: (i: number, item: number) => void;
863
+ locale: string;
864
+ translations?: {
865
+ today?: string;
866
+ tomorrow?: string;
867
+ };
804
868
  };
805
- declare const _default$c: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<DaySliderProps, "key" | keyof JSX$1.IonSlides | keyof React.HTMLAttributes<HTMLIonSlidesElement> | "slides" | "onDayClick"> & React.RefAttributes<HTMLIonSlidesElement>>>;
869
+ declare const _default$c: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<DaySliderProps, "key" | "locale" | "translations" | keyof JSX$1.IonSlides | keyof React.HTMLAttributes<HTMLIonSlidesElement> | "slides" | "onDayClick"> & React.RefAttributes<HTMLIonSlidesElement>>>;
806
870
 
807
871
  declare type SpecialistWorkDirectionsPropsType = {
808
872
  workDirections?: string[] | [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "3.43.0",
3
+ "version": "3.44.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "react-scripts start",