@mindly/ui-components 5.43.0 → 5.43.1
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 +4 -4
- package/dist/cjs/lib2/features/CalendarPickerFeature/CalendarPickerFeature.d.ts +1 -0
- package/dist/cjs/lib2/features/SpecialistPaymentConsultationsFeature/Consultations/ConsultationCard.d.ts +0 -1
- package/dist/cjs/lib2/features/SpecialistPaymentConsultationsFeature/Consultations/ConsultationsList.d.ts +0 -2
- package/dist/cjs/lib2/features/SpecialistPaymentConsultationsFeature/Consultations/ConsultationsListSkeleton.d.ts +4 -4
- package/dist/cjs/lib2/features/SpecialistPaymentConsultationsFeature/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/hooks/useCalendarData.d.ts +2 -1
- package/dist/cjs/lib2/shared/hooks/useSpecialistPayments.d.ts +5 -7
- package/dist/cjs/lib2/shared/translators/specialistPayments.d.ts +2 -0
- package/dist/cjs/lib2/shared/types/common.d.ts +7 -0
- package/dist/cjs/lib2/shared/types/specialistPaymentTypes.d.ts +4 -9
- package/dist/esm/index.js +4 -4
- package/dist/esm/lib2/features/CalendarPickerFeature/CalendarPickerFeature.d.ts +1 -0
- package/dist/esm/lib2/features/SpecialistPaymentConsultationsFeature/Consultations/ConsultationCard.d.ts +0 -1
- package/dist/esm/lib2/features/SpecialistPaymentConsultationsFeature/Consultations/ConsultationsList.d.ts +0 -2
- package/dist/esm/lib2/features/SpecialistPaymentConsultationsFeature/Consultations/ConsultationsListSkeleton.d.ts +4 -4
- package/dist/esm/lib2/features/SpecialistPaymentConsultationsFeature/index.d.ts +1 -0
- package/dist/esm/lib2/shared/hooks/useCalendarData.d.ts +2 -1
- package/dist/esm/lib2/shared/hooks/useSpecialistPayments.d.ts +5 -7
- package/dist/esm/lib2/shared/translators/specialistPayments.d.ts +2 -0
- package/dist/esm/lib2/shared/types/common.d.ts +7 -0
- package/dist/esm/lib2/shared/types/specialistPaymentTypes.d.ts +4 -9
- package/dist/index.d.ts +17 -8
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ type CalendarPickerFeatureProps = {
|
|
|
5
5
|
locale?: string;
|
|
6
6
|
mode: 'button' | 'auto' | undefined;
|
|
7
7
|
opened?: boolean;
|
|
8
|
+
monthsMore?: number;
|
|
8
9
|
dateCallback: (date: Date) => void;
|
|
9
10
|
};
|
|
10
11
|
declare const _default: React.NamedExoticComponent<CalendarPickerFeatureProps & TranslationType>;
|
|
@@ -4,7 +4,6 @@ type ConsultationCardProps = {
|
|
|
4
4
|
consultation: SpecialistConsultation;
|
|
5
5
|
consultationClick?: (consultation: SpecialistConsultation) => void;
|
|
6
6
|
locale?: string;
|
|
7
|
-
timezone?: string;
|
|
8
7
|
};
|
|
9
8
|
declare const _default: React.NamedExoticComponent<ConsultationCardProps>;
|
|
10
9
|
export default _default;
|
|
@@ -3,8 +3,6 @@ import { SpecialistConsultation } from '../../../shared/types';
|
|
|
3
3
|
type ConsultationsListProps = {
|
|
4
4
|
consultations: SpecialistConsultation[];
|
|
5
5
|
locale?: string;
|
|
6
|
-
isLoading?: boolean;
|
|
7
|
-
timezone?: string;
|
|
8
6
|
consultationClick?: (consultation: SpecialistConsultation) => void;
|
|
9
7
|
};
|
|
10
8
|
declare const _default: React.NamedExoticComponent<ConsultationsListProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
type ConsultationsListSkeletonType = {
|
|
2
3
|
className?: string;
|
|
3
|
-
list: any[];
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
export
|
|
5
|
+
export declare const ConsultationsListSkeleton: FC<ConsultationsListSkeletonType>;
|
|
6
|
+
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
type CalendarListProps = {
|
|
2
2
|
locale?: string;
|
|
3
|
+
monthsMore?: number;
|
|
3
4
|
};
|
|
4
5
|
type CalendarListItem = {
|
|
5
6
|
value: Date;
|
|
6
7
|
label: string;
|
|
7
8
|
};
|
|
8
|
-
export declare function useCalendarListData({ locale, }: CalendarListProps): CalendarListItem[];
|
|
9
|
+
export declare function useCalendarListData({ locale, monthsMore, }: CalendarListProps): CalendarListItem[];
|
|
9
10
|
export {};
|
|
@@ -12,17 +12,15 @@ export declare function getDatePosition(calendarDate: Date): DatesResultType;
|
|
|
12
12
|
export declare function getSelectedFormattedDate(date: Date, locale?: string): string;
|
|
13
13
|
type FormattedDateProps = {
|
|
14
14
|
date: Date;
|
|
15
|
-
timezone?: string;
|
|
16
15
|
locale?: string;
|
|
17
|
-
year?: boolean;
|
|
18
|
-
month?: boolean;
|
|
19
|
-
day?: boolean;
|
|
20
|
-
baseCase?: boolean;
|
|
21
16
|
};
|
|
22
|
-
export declare function useFormattedDate({ date,
|
|
17
|
+
export declare function useFormattedDate({ date, locale }: FormattedDateProps): string;
|
|
23
18
|
type PaymentsConsultationsTabsProps = {
|
|
24
19
|
t: (args: any) => string;
|
|
20
|
+
defaultTab?: string;
|
|
25
21
|
date: Date;
|
|
22
|
+
futureCount?: number;
|
|
23
|
+
previousCount?: number;
|
|
26
24
|
};
|
|
27
25
|
type SpecialistPaymentTabs = {
|
|
28
26
|
value: string;
|
|
@@ -32,5 +30,5 @@ type PaymentsConsultationsTabsResult = {
|
|
|
32
30
|
activeTab: string;
|
|
33
31
|
tabs: SpecialistPaymentTabs[];
|
|
34
32
|
};
|
|
35
|
-
export declare function usePaymentsConsultationsTabs({ t, date, }: PaymentsConsultationsTabsProps): PaymentsConsultationsTabsResult;
|
|
33
|
+
export declare function usePaymentsConsultationsTabs({ t, date, defaultTab, futureCount, previousCount, }: PaymentsConsultationsTabsProps): PaymentsConsultationsTabsResult;
|
|
36
34
|
export {};
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
2
|
+
export type TranslationMock = {
|
|
3
|
+
t: (v1: any, v2?: any) => string;
|
|
4
|
+
};
|
|
5
|
+
export type TranslationType = {
|
|
6
|
+
t: WithTranslation['t'] | TranslationMock['t'];
|
|
7
|
+
};
|
|
1
8
|
export declare enum SupportedCurrency {
|
|
2
9
|
'UAH' = "UAH",
|
|
3
10
|
'EUR' = "EUR",
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { WithTranslation } from 'react-i18next';
|
|
2
1
|
import { SupportedCurrency } from '../types';
|
|
3
|
-
export type TranslationMock = {
|
|
4
|
-
t: (v1: any, v2?: any) => string;
|
|
5
|
-
};
|
|
6
|
-
export type TranslationType = WithTranslation | TranslationMock;
|
|
7
2
|
export type DynamicCommissionValue = {
|
|
8
3
|
1: number;
|
|
9
4
|
999: number;
|
|
@@ -41,11 +36,12 @@ export type SpecialistConsultation = {
|
|
|
41
36
|
payment?: Partial<SpecialistConsultationPayment>;
|
|
42
37
|
};
|
|
43
38
|
export type SpecialistPaymentConsultationsProps = {
|
|
44
|
-
isConsultationsLoading: boolean;
|
|
45
39
|
consultations: SpecialistConsultation[];
|
|
46
40
|
calendarDate: Date;
|
|
47
|
-
|
|
41
|
+
futureCount?: number;
|
|
42
|
+
previousCount?: number;
|
|
48
43
|
locale?: string;
|
|
44
|
+
defaultTab?: string;
|
|
49
45
|
consultationsModeTrigger: (data: {
|
|
50
46
|
startDate?: Date;
|
|
51
47
|
endDate?: Date;
|
|
@@ -59,7 +55,6 @@ export type SpecialistPaymentCurrencyProps = {
|
|
|
59
55
|
export type SpecialistPaymentCardProps = {
|
|
60
56
|
isLoading?: boolean;
|
|
61
57
|
calendarDate: Date;
|
|
62
|
-
timezone?: string;
|
|
63
58
|
locale?: string;
|
|
64
59
|
revenue?: number;
|
|
65
60
|
currency?: SupportedCurrency | undefined;
|
|
@@ -79,7 +74,6 @@ export type SpecialistPaymentResumeWidgetType = SpecialistPaymentCardProps & Spe
|
|
|
79
74
|
export type PaymentBadgeType = {
|
|
80
75
|
date: Date;
|
|
81
76
|
locale?: string;
|
|
82
|
-
timezone?: string;
|
|
83
77
|
className?: string;
|
|
84
78
|
};
|
|
85
79
|
export type PaymentCalendarFeatureProps = {
|
|
@@ -87,6 +81,7 @@ export type PaymentCalendarFeatureProps = {
|
|
|
87
81
|
locale?: string;
|
|
88
82
|
dateCallback: (date: Date) => void;
|
|
89
83
|
className?: string;
|
|
84
|
+
monthsMore?: number;
|
|
90
85
|
};
|
|
91
86
|
export type SpecialistPaymentConsultationDetailsType = {
|
|
92
87
|
consultation: SpecialistConsultation;
|