@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.
Files changed (38) hide show
  1. package/dist/cjs/index.js +2 -2
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/index.d.ts +2 -2
  4. package/dist/cjs/types/lib/Consultations/CancelSession/CancelSession.d.ts +9 -1
  5. package/dist/cjs/types/lib/Consultations/ConsultationCard/types.d.ts +12 -0
  6. package/dist/cjs/types/lib/Consultations/ConsultationModal/ConsultationModal.d.ts +17 -0
  7. package/dist/cjs/types/lib/Consultations/ConsultationSpecialistCard/ConsultationSpecialistCard.d.ts +2 -1
  8. package/dist/cjs/types/lib/Consultations/ReSchedule/ReSchedule.d.ts +6 -0
  9. package/dist/cjs/types/lib/Consultations/ReScheduleSuccess/ReScheduleSuccess.d.ts +3 -0
  10. package/dist/cjs/types/lib/Consultations/SignUpSessionModal/SignUpSessionModal.d.ts +3 -1
  11. package/dist/cjs/types/lib/Consultations/UserInfoModal/UserInfoModal.d.ts +10 -0
  12. package/dist/cjs/types/lib/Consultations/utils.d.ts +1 -1
  13. package/dist/cjs/types/lib/DaySlider/DaySlider.d.ts +6 -1
  14. package/dist/cjs/types/lib/DaySlider/utils.d.ts +1 -1
  15. package/dist/cjs/types/lib/{SpecialistProfile/StatisticsScroll → StatisticsScroll}/StatisticsScroll.d.ts +3 -0
  16. package/dist/esm/index.js +1 -1
  17. package/dist/esm/index.js.map +1 -1
  18. package/dist/esm/types/index.d.ts +2 -2
  19. package/dist/esm/types/lib/Consultations/CancelSession/CancelSession.d.ts +9 -1
  20. package/dist/esm/types/lib/Consultations/ConsultationCard/types.d.ts +12 -0
  21. package/dist/esm/types/lib/Consultations/ConsultationModal/ConsultationModal.d.ts +17 -0
  22. package/dist/esm/types/lib/Consultations/ConsultationSpecialistCard/ConsultationSpecialistCard.d.ts +2 -1
  23. package/dist/esm/types/lib/Consultations/ReSchedule/ReSchedule.d.ts +6 -0
  24. package/dist/esm/types/lib/Consultations/ReScheduleSuccess/ReScheduleSuccess.d.ts +3 -0
  25. package/dist/esm/types/lib/Consultations/SignUpSessionModal/SignUpSessionModal.d.ts +3 -1
  26. package/dist/esm/types/lib/Consultations/UserInfoModal/UserInfoModal.d.ts +10 -0
  27. package/dist/esm/types/lib/Consultations/utils.d.ts +1 -1
  28. package/dist/esm/types/lib/DaySlider/DaySlider.d.ts +6 -1
  29. package/dist/esm/types/lib/DaySlider/utils.d.ts +1 -1
  30. package/dist/esm/types/lib/{SpecialistProfile/StatisticsScroll → StatisticsScroll}/StatisticsScroll.d.ts +3 -0
  31. package/dist/index.d.ts +71 -4
  32. package/package.json +1 -1
  33. /package/dist/cjs/types/lib/{SpecialistProfile/StatisticsScroll → StatisticsScroll}/StatisticsScroll.style.d.ts +0 -0
  34. /package/dist/cjs/types/lib/{SpecialistProfile/StatisticsScroll → StatisticsScroll}/index.d.ts +0 -0
  35. /package/dist/cjs/types/lib/{SpecialistProfile/StatisticsScroll → StatisticsScroll}/utils.d.ts +0 -0
  36. /package/dist/esm/types/lib/{SpecialistProfile/StatisticsScroll → StatisticsScroll}/StatisticsScroll.style.d.ts +0 -0
  37. /package/dist/esm/types/lib/{SpecialistProfile/StatisticsScroll → StatisticsScroll}/index.d.ts +0 -0
  38. /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/SpecialistProfile/StatisticsScroll';
128
- export * from './lib/SpecialistProfile/StatisticsScroll';
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
- 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;
@@ -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;