@mindly/ui-components 3.42.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.
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/index.d.ts +2 -2
- package/dist/cjs/types/lib/Consultations/CancelSession/CancelSession.d.ts +9 -1
- package/dist/cjs/types/lib/Consultations/ConsultationCard/types.d.ts +12 -0
- package/dist/cjs/types/lib/Consultations/ConsultationModal/ConsultationModal.d.ts +17 -0
- package/dist/cjs/types/lib/Consultations/ConsultationSpecialistCard/ConsultationSpecialistCard.d.ts +2 -1
- package/dist/cjs/types/lib/Consultations/ReSchedule/ReSchedule.d.ts +6 -0
- package/dist/cjs/types/lib/Consultations/ReScheduleSuccess/ReScheduleSuccess.d.ts +3 -0
- package/dist/cjs/types/lib/Consultations/SignUpSessionModal/SignUpSessionModal.d.ts +3 -1
- package/dist/cjs/types/lib/Consultations/UserInfoModal/UserInfoModal.d.ts +10 -0
- package/dist/cjs/types/lib/Consultations/utils.d.ts +1 -1
- package/dist/cjs/types/lib/DaySlider/DaySlider.d.ts +6 -1
- package/dist/cjs/types/lib/DaySlider/utils.d.ts +1 -1
- package/dist/cjs/types/lib/{SpecialistProfile/StatisticsScroll → StatisticsScroll}/StatisticsScroll.d.ts +3 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/index.d.ts +2 -2
- package/dist/esm/types/lib/Consultations/CancelSession/CancelSession.d.ts +9 -1
- package/dist/esm/types/lib/Consultations/ConsultationCard/types.d.ts +12 -0
- package/dist/esm/types/lib/Consultations/ConsultationModal/ConsultationModal.d.ts +17 -0
- package/dist/esm/types/lib/Consultations/ConsultationSpecialistCard/ConsultationSpecialistCard.d.ts +2 -1
- package/dist/esm/types/lib/Consultations/ReSchedule/ReSchedule.d.ts +6 -0
- package/dist/esm/types/lib/Consultations/ReScheduleSuccess/ReScheduleSuccess.d.ts +3 -0
- package/dist/esm/types/lib/Consultations/SignUpSessionModal/SignUpSessionModal.d.ts +3 -1
- package/dist/esm/types/lib/Consultations/UserInfoModal/UserInfoModal.d.ts +10 -0
- package/dist/esm/types/lib/Consultations/utils.d.ts +1 -1
- package/dist/esm/types/lib/DaySlider/DaySlider.d.ts +6 -1
- package/dist/esm/types/lib/DaySlider/utils.d.ts +1 -1
- package/dist/esm/types/lib/{SpecialistProfile/StatisticsScroll → StatisticsScroll}/StatisticsScroll.d.ts +3 -0
- package/dist/index.d.ts +71 -4
- package/package.json +1 -1
- /package/dist/cjs/types/lib/{SpecialistProfile/StatisticsScroll → StatisticsScroll}/StatisticsScroll.style.d.ts +0 -0
- /package/dist/cjs/types/lib/{SpecialistProfile/StatisticsScroll → StatisticsScroll}/index.d.ts +0 -0
- /package/dist/cjs/types/lib/{SpecialistProfile/StatisticsScroll → StatisticsScroll}/utils.d.ts +0 -0
- /package/dist/esm/types/lib/{SpecialistProfile/StatisticsScroll → StatisticsScroll}/StatisticsScroll.style.d.ts +0 -0
- /package/dist/esm/types/lib/{SpecialistProfile/StatisticsScroll → StatisticsScroll}/index.d.ts +0 -0
- /package/dist/esm/types/lib/{SpecialistProfile/StatisticsScroll → StatisticsScroll}/utils.d.ts +0 -0
|
@@ -124,8 +124,8 @@ export { default as SpecialistAbout } from './lib/SpecialistProfile/SpecialistAb
|
|
|
124
124
|
export * from './lib/SpecialistProfile/SpecialistAbout';
|
|
125
125
|
export { default as EducationCard } from './lib/SpecialistProfile/EducationCard';
|
|
126
126
|
export * from './lib/SpecialistProfile/EducationCard';
|
|
127
|
-
export { default as StatisticsScroll } from './lib/
|
|
128
|
-
export * from './lib/
|
|
127
|
+
export { default as StatisticsScroll } from './lib/StatisticsScroll';
|
|
128
|
+
export * from './lib/StatisticsScroll';
|
|
129
129
|
export { decOfNum } from './lib/Consultations/utils';
|
|
130
130
|
export { default as BookingScheduleTime } from './lib/Booking/BookingScheduleTime';
|
|
131
131
|
export * from './lib/Booking/BookingScheduleTime';
|
|
@@ -7,7 +7,15 @@ declare type CancelSessionProps = {
|
|
|
7
7
|
onSubmit?: (message: string) => void;
|
|
8
8
|
onReschedule?: () => void;
|
|
9
9
|
isLoading?: boolean;
|
|
10
|
-
|
|
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;
|
package/dist/esm/types/lib/Consultations/ConsultationSpecialistCard/ConsultationSpecialistCard.d.ts
CHANGED
|
@@ -3,9 +3,10 @@ declare type ConsultationSpecialistCardProps = {
|
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
5
|
avatar?: string;
|
|
6
|
-
sessions:
|
|
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:
|
|
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;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare type SpecialistStatisticsCardProps = {
|
|
3
|
+
trust?: boolean;
|
|
3
4
|
activeClients?: number;
|
|
4
5
|
sessionsCount?: number;
|
|
5
6
|
showLoader?: boolean;
|
|
@@ -12,6 +13,8 @@ export declare type SpecialistStatisticsCardProps = {
|
|
|
12
13
|
hoursOfPractice?: number;
|
|
13
14
|
yearOfExperience?: number;
|
|
14
15
|
sessionDuration?: number;
|
|
16
|
+
subscriptionStatus?: boolean;
|
|
17
|
+
subscriptionBalance?: number;
|
|
15
18
|
};
|
|
16
19
|
declare const StatisticsScroll: React.FC<SpecialistStatisticsCardProps>;
|
|
17
20
|
export default StatisticsScroll;
|
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:
|
|
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:
|
|
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
|
-
|
|
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[] | [];
|
|
@@ -839,6 +903,7 @@ declare type SpecialistEducationCardProps = {
|
|
|
839
903
|
declare const _default$a: React.NamedExoticComponent<SpecialistEducationCardProps>;
|
|
840
904
|
|
|
841
905
|
declare type SpecialistStatisticsCardProps = {
|
|
906
|
+
trust?: boolean;
|
|
842
907
|
activeClients?: number;
|
|
843
908
|
sessionsCount?: number;
|
|
844
909
|
showLoader?: boolean;
|
|
@@ -851,6 +916,8 @@ declare type SpecialistStatisticsCardProps = {
|
|
|
851
916
|
hoursOfPractice?: number;
|
|
852
917
|
yearOfExperience?: number;
|
|
853
918
|
sessionDuration?: number;
|
|
919
|
+
subscriptionStatus?: boolean;
|
|
920
|
+
subscriptionBalance?: number;
|
|
854
921
|
};
|
|
855
922
|
declare const StatisticsScroll: React.FC<SpecialistStatisticsCardProps>;
|
|
856
923
|
|
package/package.json
CHANGED
|
File without changes
|
/package/dist/cjs/types/lib/{SpecialistProfile/StatisticsScroll → StatisticsScroll}/index.d.ts
RENAMED
|
File without changes
|
/package/dist/cjs/types/lib/{SpecialistProfile/StatisticsScroll → StatisticsScroll}/utils.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/esm/types/lib/{SpecialistProfile/StatisticsScroll → StatisticsScroll}/index.d.ts
RENAMED
|
File without changes
|
/package/dist/esm/types/lib/{SpecialistProfile/StatisticsScroll → StatisticsScroll}/utils.d.ts
RENAMED
|
File without changes
|