@mindly/ui-components 5.41.1 → 5.43.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/configs/tailwind/colors.d.ts +2 -0
- package/dist/cjs/index.js +15 -15
- package/dist/cjs/lib/Chat/ChatListItem/ChatListItem.d.ts +16 -1
- package/dist/cjs/lib2/features/CalendarPickerFeature/CalendarPickerFeature.d.ts +11 -0
- package/dist/cjs/lib2/features/CalendarPickerFeature/index.d.ts +1 -0
- package/dist/cjs/lib2/features/ConsultationPricingFeature/ConsultationPricingFeature.d.ts +4 -0
- package/dist/cjs/lib2/features/ConsultationPricingFeature/ConsultationPricingFeatureSkeleton.d.ts +5 -0
- package/dist/cjs/lib2/features/ConsultationPricingFeature/ConsultationUser.d.ts +11 -0
- package/dist/cjs/lib2/features/ConsultationPricingFeature/ConsultationUserSkeleton.d.ts +5 -0
- package/dist/cjs/lib2/features/ConsultationPricingFeature/index.d.ts +1 -0
- package/dist/cjs/lib2/features/PaymentCalendarFeature/PaymentCalendarFeature.d.ts +4 -0
- package/dist/cjs/lib2/features/PaymentCalendarFeature/index.d.ts +1 -0
- package/dist/cjs/lib2/features/SpecialistPaymentCommonCardFeature/PaymentBadge.d.ts +4 -0
- package/dist/cjs/lib2/features/SpecialistPaymentCommonCardFeature/SpecialistPaymentCommonCardFeature.d.ts +4 -0
- package/dist/cjs/lib2/features/SpecialistPaymentCommonCardFeature/SpecialistPaymentCommonCardSkeleton.d.ts +5 -0
- package/dist/cjs/lib2/features/SpecialistPaymentCommonCardFeature/index.d.ts +2 -0
- package/dist/cjs/lib2/features/SpecialistPaymentCommonCardFeature/styles.d.ts +85 -0
- package/dist/cjs/lib2/features/SpecialistPaymentConsultationsFeature/Consultations/ConsultationCard.d.ts +10 -0
- package/dist/cjs/lib2/features/SpecialistPaymentConsultationsFeature/Consultations/ConsultationsList.d.ts +11 -0
- package/dist/cjs/lib2/features/SpecialistPaymentConsultationsFeature/Consultations/ConsultationsListSkeleton.d.ts +6 -0
- package/dist/cjs/lib2/features/SpecialistPaymentConsultationsFeature/SpecialistPaymentConsultationsFeature.d.ts +4 -0
- package/dist/cjs/lib2/features/SpecialistPaymentConsultationsFeature/index.d.ts +1 -0
- package/dist/cjs/lib2/features/SpecialistPaymentConsultationsFeature/styles.d.ts +87 -0
- package/dist/cjs/lib2/features/index.d.ts +5 -1
- package/dist/cjs/lib2/shared/assets/icons/IconManageAccounts.d.ts +3 -0
- package/dist/cjs/lib2/shared/assets/icons/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/hooks/useCalendarData.d.ts +9 -0
- package/dist/cjs/lib2/shared/hooks/useSpecialistPayments.d.ts +36 -0
- package/dist/cjs/lib2/shared/types/common.d.ts +24 -0
- package/dist/cjs/lib2/shared/types/index.d.ts +2 -0
- package/dist/cjs/lib2/shared/types/specialistPaymentTypes.d.ts +96 -0
- package/dist/cjs/lib2/shared/ui/CollapsableText/CollapsableText.d.ts +9 -0
- package/dist/cjs/lib2/shared/ui/CollapsableText/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/CollapsableText/styles.d.ts +62 -0
- package/dist/cjs/lib2/shared/ui/DrumListPicker/DrumListPicker.d.ts +13 -0
- package/dist/cjs/lib2/shared/ui/DrumListPicker/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/DrumListPicker/utils.d.ts +3 -0
- package/dist/cjs/lib2/shared/ui/HeaderWithRedirect/HeaderWithRedirect.d.ts +8 -0
- package/dist/cjs/lib2/shared/ui/HeaderWithRedirect/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/HeaderWithRedirect/styles.d.ts +5 -0
- package/dist/cjs/lib2/shared/ui/InputSearch/InputSearch.d.ts +1 -2
- package/dist/cjs/lib2/shared/ui/InputSearch/types.d.ts +2 -0
- package/dist/cjs/lib2/shared/ui/LabelArrowRedirect/LabelArrowRedirect.d.ts +9 -0
- package/dist/cjs/lib2/shared/ui/LabelArrowRedirect/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/LabelArrowRedirect/styles.d.ts +90 -0
- package/dist/cjs/lib2/shared/ui/ProgressBarDashed/ProgressBarDash.d.ts +15 -0
- package/dist/cjs/lib2/shared/ui/ProgressBarDashed/ProgressBarDashed.d.ts +15 -0
- package/dist/cjs/lib2/shared/ui/ProgressBarDashed/constants.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/ProgressBarDashed/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/ProgressBarDashed/styles.d.ts +45 -0
- package/dist/cjs/lib2/shared/ui/Typography/Typography.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/Typography/types.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/index.d.ts +5 -0
- package/dist/cjs/lib2/shared/utils/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/utils/priceNormalizer.d.ts +10 -0
- package/dist/cjs/lib2/widgets/SpecialistCardWidget/SpecialistCardWidget.d.ts +2 -1
- package/dist/cjs/lib2/widgets/SpecialistCardWidget/types.d.ts +2 -2
- package/dist/cjs/lib2/widgets/SpecialistPaymentResumeWidget/SpecialistPaymentResumeWidget.d.ts +4 -0
- package/dist/cjs/lib2/widgets/SpecialistPaymentResumeWidget/index.d.ts +1 -0
- package/dist/cjs/lib2/widgets/SpecialistPaymentWidget/SpecialistPaymentWidget.d.ts +6 -0
- package/dist/cjs/lib2/widgets/SpecialistPaymentWidget/SpecialistPaymentWidget.stories.d.ts +6 -0
- package/dist/cjs/lib2/widgets/SpecialistPaymentWidget/index.d.ts +1 -0
- package/dist/cjs/lib2/widgets/index.d.ts +2 -0
- package/dist/esm/configs/tailwind/colors.d.ts +2 -0
- package/dist/esm/index.js +15 -15
- package/dist/esm/lib/Chat/ChatListItem/ChatListItem.d.ts +16 -1
- package/dist/esm/lib2/features/CalendarPickerFeature/CalendarPickerFeature.d.ts +11 -0
- package/dist/esm/lib2/features/CalendarPickerFeature/index.d.ts +1 -0
- package/dist/esm/lib2/features/ConsultationPricingFeature/ConsultationPricingFeature.d.ts +4 -0
- package/dist/esm/lib2/features/ConsultationPricingFeature/ConsultationPricingFeatureSkeleton.d.ts +5 -0
- package/dist/esm/lib2/features/ConsultationPricingFeature/ConsultationUser.d.ts +11 -0
- package/dist/esm/lib2/features/ConsultationPricingFeature/ConsultationUserSkeleton.d.ts +5 -0
- package/dist/esm/lib2/features/ConsultationPricingFeature/index.d.ts +1 -0
- package/dist/esm/lib2/features/PaymentCalendarFeature/PaymentCalendarFeature.d.ts +4 -0
- package/dist/esm/lib2/features/PaymentCalendarFeature/index.d.ts +1 -0
- package/dist/esm/lib2/features/SpecialistPaymentCommonCardFeature/PaymentBadge.d.ts +4 -0
- package/dist/esm/lib2/features/SpecialistPaymentCommonCardFeature/SpecialistPaymentCommonCardFeature.d.ts +4 -0
- package/dist/esm/lib2/features/SpecialistPaymentCommonCardFeature/SpecialistPaymentCommonCardSkeleton.d.ts +5 -0
- package/dist/esm/lib2/features/SpecialistPaymentCommonCardFeature/index.d.ts +2 -0
- package/dist/esm/lib2/features/SpecialistPaymentCommonCardFeature/styles.d.ts +85 -0
- package/dist/esm/lib2/features/SpecialistPaymentConsultationsFeature/Consultations/ConsultationCard.d.ts +10 -0
- package/dist/esm/lib2/features/SpecialistPaymentConsultationsFeature/Consultations/ConsultationsList.d.ts +11 -0
- package/dist/esm/lib2/features/SpecialistPaymentConsultationsFeature/Consultations/ConsultationsListSkeleton.d.ts +6 -0
- package/dist/esm/lib2/features/SpecialistPaymentConsultationsFeature/SpecialistPaymentConsultationsFeature.d.ts +4 -0
- package/dist/esm/lib2/features/SpecialistPaymentConsultationsFeature/index.d.ts +1 -0
- package/dist/esm/lib2/features/SpecialistPaymentConsultationsFeature/styles.d.ts +87 -0
- package/dist/esm/lib2/features/index.d.ts +5 -1
- package/dist/esm/lib2/shared/assets/icons/IconManageAccounts.d.ts +3 -0
- package/dist/esm/lib2/shared/assets/icons/index.d.ts +1 -0
- package/dist/esm/lib2/shared/hooks/useCalendarData.d.ts +9 -0
- package/dist/esm/lib2/shared/hooks/useSpecialistPayments.d.ts +36 -0
- package/dist/esm/lib2/shared/types/common.d.ts +24 -0
- package/dist/esm/lib2/shared/types/index.d.ts +2 -0
- package/dist/esm/lib2/shared/types/specialistPaymentTypes.d.ts +96 -0
- package/dist/esm/lib2/shared/ui/CollapsableText/CollapsableText.d.ts +9 -0
- package/dist/esm/lib2/shared/ui/CollapsableText/index.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/CollapsableText/styles.d.ts +62 -0
- package/dist/esm/lib2/shared/ui/DrumListPicker/DrumListPicker.d.ts +13 -0
- package/dist/esm/lib2/shared/ui/DrumListPicker/index.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/DrumListPicker/utils.d.ts +3 -0
- package/dist/esm/lib2/shared/ui/HeaderWithRedirect/HeaderWithRedirect.d.ts +8 -0
- package/dist/esm/lib2/shared/ui/HeaderWithRedirect/index.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/HeaderWithRedirect/styles.d.ts +5 -0
- package/dist/esm/lib2/shared/ui/InputSearch/InputSearch.d.ts +1 -2
- package/dist/esm/lib2/shared/ui/InputSearch/types.d.ts +2 -0
- package/dist/esm/lib2/shared/ui/LabelArrowRedirect/LabelArrowRedirect.d.ts +9 -0
- package/dist/esm/lib2/shared/ui/LabelArrowRedirect/index.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/LabelArrowRedirect/styles.d.ts +90 -0
- package/dist/esm/lib2/shared/ui/ProgressBarDashed/ProgressBarDash.d.ts +15 -0
- package/dist/esm/lib2/shared/ui/ProgressBarDashed/ProgressBarDashed.d.ts +15 -0
- package/dist/esm/lib2/shared/ui/ProgressBarDashed/constants.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/ProgressBarDashed/index.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/ProgressBarDashed/styles.d.ts +45 -0
- package/dist/esm/lib2/shared/ui/Typography/Typography.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/Typography/types.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/index.d.ts +5 -0
- package/dist/esm/lib2/shared/utils/index.d.ts +1 -0
- package/dist/esm/lib2/shared/utils/priceNormalizer.d.ts +10 -0
- package/dist/esm/lib2/widgets/SpecialistCardWidget/SpecialistCardWidget.d.ts +2 -1
- package/dist/esm/lib2/widgets/SpecialistCardWidget/types.d.ts +2 -2
- package/dist/esm/lib2/widgets/SpecialistPaymentResumeWidget/SpecialistPaymentResumeWidget.d.ts +4 -0
- package/dist/esm/lib2/widgets/SpecialistPaymentResumeWidget/index.d.ts +1 -0
- package/dist/esm/lib2/widgets/SpecialistPaymentWidget/SpecialistPaymentWidget.d.ts +6 -0
- package/dist/esm/lib2/widgets/SpecialistPaymentWidget/SpecialistPaymentWidget.stories.d.ts +6 -0
- package/dist/esm/lib2/widgets/SpecialistPaymentWidget/index.d.ts +1 -0
- package/dist/esm/lib2/widgets/index.d.ts +2 -0
- package/dist/index.d.ts +267 -66
- package/package.json +92 -92
- package/src/configs/tailwind/colors.ts +2 -0
- package/src/lib2/shared/css/tailwind.css +2 -0
- package/dist/cjs/lib2/features/MobilePickerFeature/MobilePickerFeature.d.ts +0 -7
- package/dist/cjs/lib2/features/MobilePickerFeature/index.d.ts +0 -1
- package/dist/esm/lib2/features/MobilePickerFeature/MobilePickerFeature.d.ts +0 -7
- package/dist/esm/lib2/features/MobilePickerFeature/index.d.ts +0 -1
|
@@ -1,3 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { WithTranslation } from 'react-i18next';
|
|
3
|
+
type ChatListItemProps = {
|
|
4
|
+
name: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
avatar?: string;
|
|
7
|
+
newMessagesCount?: number;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
status?: 'sent' | 'viewed';
|
|
10
|
+
time?: number;
|
|
11
|
+
timeZone?: string;
|
|
12
|
+
lastMessageType?: 'text' | 'file' | 'image' | 'video' | 'system';
|
|
13
|
+
locale?: string;
|
|
14
|
+
isDisabled?: boolean;
|
|
15
|
+
t?: WithTranslation['t'];
|
|
16
|
+
};
|
|
17
|
+
declare const _default: React.NamedExoticComponent<ChatListItemProps>;
|
|
3
18
|
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TranslationType } from '../../shared/types';
|
|
3
|
+
type CalendarPickerFeatureProps = {
|
|
4
|
+
date: Date;
|
|
5
|
+
locale?: string;
|
|
6
|
+
mode: 'button' | 'auto' | undefined;
|
|
7
|
+
opened?: boolean;
|
|
8
|
+
dateCallback: (date: Date) => void;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: React.NamedExoticComponent<CalendarPickerFeatureProps & TranslationType>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CalendarPickerFeature } from './CalendarPickerFeature';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TranslationType } from '../../shared/types';
|
|
3
|
+
type ConsultationUserType = {
|
|
4
|
+
name: string;
|
|
5
|
+
date: Date;
|
|
6
|
+
avatar: string;
|
|
7
|
+
locale: string;
|
|
8
|
+
timezone: string;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: React.NamedExoticComponent<ConsultationUserType & TranslationType>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ConsultationPricingFeature } from './ConsultationPricingFeature';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PaymentCalendarFeature } from './PaymentCalendarFeature';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export declare const specialistPaymentFeatureStyles: import("tailwind-variants").TVReturnType<import("tailwind-variants").TVVariantsDefault<{
|
|
2
|
+
sessionsLabel: string;
|
|
3
|
+
skeletonWrapper: string;
|
|
4
|
+
skeletonTLWTile: string;
|
|
5
|
+
skeletonTSWTile: string;
|
|
6
|
+
skeletonBLNTile: string;
|
|
7
|
+
skeletonBLNTile2: string;
|
|
8
|
+
skeletonBSWTile: string;
|
|
9
|
+
skeletonBMWTile: string;
|
|
10
|
+
skeletonBMWTile2: string;
|
|
11
|
+
}, undefined> | {
|
|
12
|
+
[x: string]: {
|
|
13
|
+
[x: string]: import("tailwind-variants").ClassValue | import("tailwind-variants").SlotsClassValue<{
|
|
14
|
+
sessionsLabel: string;
|
|
15
|
+
skeletonWrapper: string;
|
|
16
|
+
skeletonTLWTile: string;
|
|
17
|
+
skeletonTSWTile: string;
|
|
18
|
+
skeletonBLNTile: string;
|
|
19
|
+
skeletonBLNTile2: string;
|
|
20
|
+
skeletonBSWTile: string;
|
|
21
|
+
skeletonBMWTile: string;
|
|
22
|
+
skeletonBMWTile2: string;
|
|
23
|
+
}, undefined>;
|
|
24
|
+
} | undefined;
|
|
25
|
+
} | {}, {
|
|
26
|
+
sessionsLabel: string;
|
|
27
|
+
skeletonWrapper: string;
|
|
28
|
+
skeletonTLWTile: string;
|
|
29
|
+
skeletonTSWTile: string;
|
|
30
|
+
skeletonBLNTile: string;
|
|
31
|
+
skeletonBLNTile2: string;
|
|
32
|
+
skeletonBSWTile: string;
|
|
33
|
+
skeletonBMWTile: string;
|
|
34
|
+
skeletonBMWTile2: string;
|
|
35
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, import("tailwind-variants").TVVariantsDefault<{
|
|
36
|
+
sessionsLabel: string;
|
|
37
|
+
skeletonWrapper: string;
|
|
38
|
+
skeletonTLWTile: string;
|
|
39
|
+
skeletonTSWTile: string;
|
|
40
|
+
skeletonBLNTile: string;
|
|
41
|
+
skeletonBLNTile2: string;
|
|
42
|
+
skeletonBSWTile: string;
|
|
43
|
+
skeletonBMWTile: string;
|
|
44
|
+
skeletonBMWTile2: string;
|
|
45
|
+
}, undefined> | {}>, import("tailwind-variants").TVVariantsDefault<{
|
|
46
|
+
sessionsLabel: string;
|
|
47
|
+
skeletonWrapper: string;
|
|
48
|
+
skeletonTLWTile: string;
|
|
49
|
+
skeletonTSWTile: string;
|
|
50
|
+
skeletonBLNTile: string;
|
|
51
|
+
skeletonBLNTile2: string;
|
|
52
|
+
skeletonBSWTile: string;
|
|
53
|
+
skeletonBMWTile: string;
|
|
54
|
+
skeletonBMWTile2: string;
|
|
55
|
+
}, undefined> | {}, {
|
|
56
|
+
sessionsLabel: string;
|
|
57
|
+
skeletonWrapper: string;
|
|
58
|
+
skeletonTLWTile: string;
|
|
59
|
+
skeletonTSWTile: string;
|
|
60
|
+
skeletonBLNTile: string;
|
|
61
|
+
skeletonBLNTile2: string;
|
|
62
|
+
skeletonBSWTile: string;
|
|
63
|
+
skeletonBMWTile: string;
|
|
64
|
+
skeletonBMWTile2: string;
|
|
65
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
66
|
+
sessionsLabel: string;
|
|
67
|
+
skeletonWrapper: string;
|
|
68
|
+
skeletonTLWTile: string;
|
|
69
|
+
skeletonTSWTile: string;
|
|
70
|
+
skeletonBLNTile: string;
|
|
71
|
+
skeletonBLNTile2: string;
|
|
72
|
+
skeletonBSWTile: string;
|
|
73
|
+
skeletonBMWTile: string;
|
|
74
|
+
skeletonBMWTile2: string;
|
|
75
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, import("tailwind-variants").TVVariantsDefault<{
|
|
76
|
+
sessionsLabel: string;
|
|
77
|
+
skeletonWrapper: string;
|
|
78
|
+
skeletonTLWTile: string;
|
|
79
|
+
skeletonTSWTile: string;
|
|
80
|
+
skeletonBLNTile: string;
|
|
81
|
+
skeletonBLNTile2: string;
|
|
82
|
+
skeletonBSWTile: string;
|
|
83
|
+
skeletonBMWTile: string;
|
|
84
|
+
skeletonBMWTile2: string;
|
|
85
|
+
}, undefined> | {}>, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SpecialistConsultation } from '../../../shared/types';
|
|
3
|
+
type ConsultationCardProps = {
|
|
4
|
+
consultation: SpecialistConsultation;
|
|
5
|
+
consultationClick?: (consultation: SpecialistConsultation) => void;
|
|
6
|
+
locale?: string;
|
|
7
|
+
timezone?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: React.NamedExoticComponent<ConsultationCardProps>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SpecialistConsultation } from '../../../shared/types';
|
|
3
|
+
type ConsultationsListProps = {
|
|
4
|
+
consultations: SpecialistConsultation[];
|
|
5
|
+
locale?: string;
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
timezone?: string;
|
|
8
|
+
consultationClick?: (consultation: SpecialistConsultation) => void;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: React.NamedExoticComponent<ConsultationsListProps>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SpecialistPaymentConsultationsFeature } from './SpecialistPaymentConsultationsFeature';
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export declare const specialistPaymentConsultationsStyles: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
multiple: {
|
|
3
|
+
false: {
|
|
4
|
+
tab: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
active: {
|
|
8
|
+
true: {
|
|
9
|
+
tab: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
tab: string;
|
|
14
|
+
consultationCard: string;
|
|
15
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
16
|
+
multiple: {
|
|
17
|
+
false: {
|
|
18
|
+
tab: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
active: {
|
|
22
|
+
true: {
|
|
23
|
+
tab: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
multiple: {
|
|
28
|
+
false: {
|
|
29
|
+
tab: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
active: {
|
|
33
|
+
true: {
|
|
34
|
+
tab: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}>, {
|
|
38
|
+
multiple: {
|
|
39
|
+
false: {
|
|
40
|
+
tab: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
active: {
|
|
44
|
+
true: {
|
|
45
|
+
tab: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}, {
|
|
49
|
+
tab: string;
|
|
50
|
+
consultationCard: string;
|
|
51
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
52
|
+
multiple: {
|
|
53
|
+
false: {
|
|
54
|
+
tab: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
active: {
|
|
58
|
+
true: {
|
|
59
|
+
tab: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
}, {
|
|
63
|
+
tab: string;
|
|
64
|
+
consultationCard: string;
|
|
65
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
66
|
+
multiple: {
|
|
67
|
+
false: {
|
|
68
|
+
tab: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
active: {
|
|
72
|
+
true: {
|
|
73
|
+
tab: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}, {
|
|
77
|
+
multiple: {
|
|
78
|
+
false: {
|
|
79
|
+
tab: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
active: {
|
|
83
|
+
true: {
|
|
84
|
+
tab: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}>, unknown, unknown, undefined>>;
|
|
@@ -7,8 +7,12 @@ export * from './PushNotificationsIsDisabledBanner';
|
|
|
7
7
|
export * from './SpecialistShortInfoItemFeature';
|
|
8
8
|
export * from './SpecialistInfoColumnFeature';
|
|
9
9
|
export * from './CountdownTimerFeature';
|
|
10
|
-
export * from './MobilePickerFeature';
|
|
11
10
|
export * from './CheckBoxSectionListFeature';
|
|
12
11
|
export * from './CheckBoxListFeature';
|
|
13
12
|
export * from './ShareModalFeature';
|
|
13
|
+
export * from './ConsultationPricingFeature';
|
|
14
|
+
export * from './SpecialistPaymentCommonCardFeature';
|
|
15
|
+
export * from './SpecialistPaymentConsultationsFeature';
|
|
16
|
+
export * from './CalendarPickerFeature';
|
|
17
|
+
export * from './PaymentCalendarFeature';
|
|
14
18
|
export * from './GoogleCalendarModalFeature';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Day number of the month for specialists payments
|
|
3
|
+
**/
|
|
4
|
+
export declare const NUMBER_OF_PAYMENT_DAY = 4;
|
|
5
|
+
type DatesResultType = {
|
|
6
|
+
isPreviousMonth: boolean;
|
|
7
|
+
isOldMonth: boolean;
|
|
8
|
+
isCurrentMonth: boolean;
|
|
9
|
+
isFutureMonth: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare function getDatePosition(calendarDate: Date): DatesResultType;
|
|
12
|
+
export declare function getSelectedFormattedDate(date: Date, locale?: string): string;
|
|
13
|
+
type FormattedDateProps = {
|
|
14
|
+
date: Date;
|
|
15
|
+
timezone?: string;
|
|
16
|
+
locale?: string;
|
|
17
|
+
year?: boolean;
|
|
18
|
+
month?: boolean;
|
|
19
|
+
day?: boolean;
|
|
20
|
+
baseCase?: boolean;
|
|
21
|
+
};
|
|
22
|
+
export declare function useFormattedDate({ date, timezone, locale, year, month, day, baseCase, }: FormattedDateProps): string;
|
|
23
|
+
type PaymentsConsultationsTabsProps = {
|
|
24
|
+
t: (args: any) => string;
|
|
25
|
+
date: Date;
|
|
26
|
+
};
|
|
27
|
+
type SpecialistPaymentTabs = {
|
|
28
|
+
value: string;
|
|
29
|
+
label: string;
|
|
30
|
+
};
|
|
31
|
+
type PaymentsConsultationsTabsResult = {
|
|
32
|
+
activeTab: string;
|
|
33
|
+
tabs: SpecialistPaymentTabs[];
|
|
34
|
+
};
|
|
35
|
+
export declare function usePaymentsConsultationsTabs({ t, date, }: PaymentsConsultationsTabsProps): PaymentsConsultationsTabsResult;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare enum SupportedCurrency {
|
|
2
|
+
'UAH' = "UAH",
|
|
3
|
+
'EUR' = "EUR",
|
|
4
|
+
'PLN' = "PLN",
|
|
5
|
+
'USD' = "USD"
|
|
6
|
+
}
|
|
7
|
+
export declare const CurrencyLocaleMapper: {
|
|
8
|
+
UAH: string;
|
|
9
|
+
EUR: string;
|
|
10
|
+
PLN: string;
|
|
11
|
+
USD: string;
|
|
12
|
+
};
|
|
13
|
+
export declare enum CurrencySignByLocale {
|
|
14
|
+
'uk' = "\u20B4",
|
|
15
|
+
'pl' = "z\u0142",
|
|
16
|
+
'eur' = "\u20AC",
|
|
17
|
+
'es' = "$"
|
|
18
|
+
}
|
|
19
|
+
export declare enum ShortCurrencySignByLocale {
|
|
20
|
+
'uk' = "\u0433\u0440\u043D",
|
|
21
|
+
'pl' = "z\u0142o",
|
|
22
|
+
'eur' = "EUR",
|
|
23
|
+
'es' = "USD"
|
|
24
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
2
|
+
import { SupportedCurrency } from '../types';
|
|
3
|
+
export type TranslationMock = {
|
|
4
|
+
t: (v1: any, v2?: any) => string;
|
|
5
|
+
};
|
|
6
|
+
export type TranslationType = WithTranslation | TranslationMock;
|
|
7
|
+
export type DynamicCommissionValue = {
|
|
8
|
+
1: number;
|
|
9
|
+
999: number;
|
|
10
|
+
[key: number]: number | undefined;
|
|
11
|
+
};
|
|
12
|
+
export type SpecialistPaymentTabs = {
|
|
13
|
+
value: string;
|
|
14
|
+
label: string;
|
|
15
|
+
};
|
|
16
|
+
export type SpecialistConsultationPayment = {
|
|
17
|
+
currency_local: keyof typeof SupportedCurrency;
|
|
18
|
+
currency_default: keyof typeof SupportedCurrency;
|
|
19
|
+
exchange_rate: number;
|
|
20
|
+
subscription_discount: number;
|
|
21
|
+
subscription_sessions_count: number;
|
|
22
|
+
subscription_interval_in_month: number;
|
|
23
|
+
price_default_in_cents: number;
|
|
24
|
+
price_local_by_exchange_rate_in_cents: number;
|
|
25
|
+
price_default_discount_in_cents: number;
|
|
26
|
+
price_local_discount_by_exchange_rate_in_cents: number;
|
|
27
|
+
price_default_original_in_cents: number;
|
|
28
|
+
price_local_original_by_exchange_rate_in_cents: number;
|
|
29
|
+
commission: number;
|
|
30
|
+
price_default_commission_in_cents: number;
|
|
31
|
+
price_local_commission_by_exchange_rate_in_cents: number;
|
|
32
|
+
price_default_after_commission_in_cents: number;
|
|
33
|
+
price_local_after_commission_by_exchange_rate_in_cents: number;
|
|
34
|
+
};
|
|
35
|
+
export type SpecialistConsultation = {
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
avatar: string;
|
|
39
|
+
date: Date;
|
|
40
|
+
subscriptionId?: string | undefined | null;
|
|
41
|
+
payment?: Partial<SpecialistConsultationPayment>;
|
|
42
|
+
};
|
|
43
|
+
export type SpecialistPaymentConsultationsProps = {
|
|
44
|
+
isConsultationsLoading: boolean;
|
|
45
|
+
consultations: SpecialistConsultation[];
|
|
46
|
+
calendarDate: Date;
|
|
47
|
+
timezone?: string;
|
|
48
|
+
locale?: string;
|
|
49
|
+
consultationsModeTrigger: (data: {
|
|
50
|
+
startDate?: Date;
|
|
51
|
+
endDate?: Date;
|
|
52
|
+
}) => void;
|
|
53
|
+
consultationClick?: (consultation: SpecialistConsultation) => void;
|
|
54
|
+
};
|
|
55
|
+
export type SpecialistPaymentCurrencyProps = {
|
|
56
|
+
side?: 'left' | 'right';
|
|
57
|
+
mode?: 'sign' | 'transcription';
|
|
58
|
+
};
|
|
59
|
+
export type SpecialistPaymentCardProps = {
|
|
60
|
+
isLoading?: boolean;
|
|
61
|
+
calendarDate: Date;
|
|
62
|
+
timezone?: string;
|
|
63
|
+
locale?: string;
|
|
64
|
+
revenue?: number;
|
|
65
|
+
currency?: SupportedCurrency | undefined;
|
|
66
|
+
showRevenue: boolean;
|
|
67
|
+
currencyProps?: SpecialistPaymentCurrencyProps;
|
|
68
|
+
showCommission?: boolean;
|
|
69
|
+
commissionRates: Partial<DynamicCommissionValue>;
|
|
70
|
+
commissionValue: number;
|
|
71
|
+
totalSessions: number;
|
|
72
|
+
futureSessions: number;
|
|
73
|
+
hideProgressBar?: boolean;
|
|
74
|
+
};
|
|
75
|
+
export type SpecialistPaymentWidgetType = SpecialistPaymentCardProps & {
|
|
76
|
+
routeClick: () => void;
|
|
77
|
+
};
|
|
78
|
+
export type SpecialistPaymentResumeWidgetType = SpecialistPaymentCardProps & SpecialistPaymentConsultationsProps;
|
|
79
|
+
export type PaymentBadgeType = {
|
|
80
|
+
date: Date;
|
|
81
|
+
locale?: string;
|
|
82
|
+
timezone?: string;
|
|
83
|
+
className?: string;
|
|
84
|
+
};
|
|
85
|
+
export type PaymentCalendarFeatureProps = {
|
|
86
|
+
date: Date;
|
|
87
|
+
locale?: string;
|
|
88
|
+
dateCallback: (date: Date) => void;
|
|
89
|
+
className?: string;
|
|
90
|
+
};
|
|
91
|
+
export type SpecialistPaymentConsultationDetailsType = {
|
|
92
|
+
consultation: SpecialistConsultation;
|
|
93
|
+
isLoading: boolean;
|
|
94
|
+
timezone: string;
|
|
95
|
+
locale: string;
|
|
96
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TranslationType } from '../../types';
|
|
2
|
+
type FontWeight = 'Regular' | 'Semi' | 'Bold';
|
|
3
|
+
type CollapsableTextProps = {
|
|
4
|
+
text: string;
|
|
5
|
+
size?: number;
|
|
6
|
+
fontWeight?: FontWeight;
|
|
7
|
+
};
|
|
8
|
+
export declare function CollapsableText({ t, text, size, fontWeight, }: CollapsableTextProps & TranslationType): JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CollapsableText } from './CollapsableText';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const collapsableTextStyles: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
collapsed: {
|
|
3
|
+
true: {
|
|
4
|
+
contentWrap: string;
|
|
5
|
+
contentText: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
contentWrap: string;
|
|
10
|
+
contentText: string;
|
|
11
|
+
collapsing: string;
|
|
12
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
13
|
+
collapsed: {
|
|
14
|
+
true: {
|
|
15
|
+
contentWrap: string;
|
|
16
|
+
contentText: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
collapsed: {
|
|
21
|
+
true: {
|
|
22
|
+
contentWrap: string;
|
|
23
|
+
contentText: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}>, {
|
|
27
|
+
collapsed: {
|
|
28
|
+
true: {
|
|
29
|
+
contentWrap: string;
|
|
30
|
+
contentText: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
}, {
|
|
34
|
+
contentWrap: string;
|
|
35
|
+
contentText: string;
|
|
36
|
+
collapsing: string;
|
|
37
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
38
|
+
collapsed: {
|
|
39
|
+
true: {
|
|
40
|
+
contentWrap: string;
|
|
41
|
+
contentText: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}, {
|
|
45
|
+
contentWrap: string;
|
|
46
|
+
contentText: string;
|
|
47
|
+
collapsing: string;
|
|
48
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
49
|
+
collapsed: {
|
|
50
|
+
true: {
|
|
51
|
+
contentWrap: string;
|
|
52
|
+
contentText: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}, {
|
|
56
|
+
collapsed: {
|
|
57
|
+
true: {
|
|
58
|
+
contentWrap: string;
|
|
59
|
+
contentText: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
}>, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type SelectionType = {
|
|
2
|
+
value: any;
|
|
3
|
+
label: string;
|
|
4
|
+
};
|
|
5
|
+
type Props = {
|
|
6
|
+
height?: number | undefined;
|
|
7
|
+
selections: Record<string, SelectionType[]>;
|
|
8
|
+
defaults?: Record<string, string>;
|
|
9
|
+
onChange(value: any): void;
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
declare const DrumListPicker: ({ height, selections, defaults, onChange, className, }: Props) => JSX.Element;
|
|
13
|
+
export default DrumListPicker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DrumListPicker } from './DrumListPicker';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { HeaderWithRedirect } from './HeaderWithRedirect';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const header: import("tailwind-variants").TVReturnType<import("tailwind-variants").TVVariantsDefault<undefined, "flex items-center justify-between"> | {
|
|
2
|
+
[x: string]: {
|
|
3
|
+
[x: string]: import("tailwind-variants").ClassValue | import("tailwind-variants").SlotsClassValue<undefined, "flex items-center justify-between">;
|
|
4
|
+
} | undefined;
|
|
5
|
+
} | {}, undefined, "flex items-center justify-between", import("tailwind-variants/dist/config").TVConfig<unknown, import("tailwind-variants").TVVariantsDefault<undefined, "flex items-center justify-between"> | {}>, import("tailwind-variants").TVVariantsDefault<undefined, "flex items-center justify-between"> | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "flex items-center justify-between", import("tailwind-variants/dist/config").TVConfig<unknown, import("tailwind-variants").TVVariantsDefault<undefined, "flex items-center justify-between"> | {}>, unknown, unknown, undefined>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { FieldSearchType } from './types';
|
|
3
|
-
|
|
4
|
-
declare const InputSearch: React.FC<FieldSearchType & WithTranslation['t']>;
|
|
3
|
+
declare const InputSearch: React.FC<FieldSearchType>;
|
|
5
4
|
export default InputSearch;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SearchbarChangeEventDetail, IonSearchbarCustomEvent } from '@ionic/core';
|
|
2
|
+
import { WithTranslation } from 'react-i18next';
|
|
2
3
|
export type FieldSearchType = {
|
|
3
4
|
className?: string;
|
|
4
5
|
onCancelClick: () => void;
|
|
@@ -7,4 +8,5 @@ export type FieldSearchType = {
|
|
|
7
8
|
debounce?: number;
|
|
8
9
|
placeholder?: string;
|
|
9
10
|
hideButton?: boolean;
|
|
11
|
+
t?: WithTranslation['t'];
|
|
10
12
|
};
|