@mindly/ui-components 5.104.0 → 5.104.2-dev.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 +6 -6
- package/dist/cjs/lib2/features/Charts/types.d.ts +4 -4
- package/dist/cjs/lib2/features/MobilePickerFeature/MobilePickerFeature.d.ts +7 -0
- package/dist/cjs/lib2/features/MobilePickerFeature/index.d.ts +1 -0
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingChartScreenPreviewFeature/OnBoardingChartScreenPreviewFeature.d.ts +3 -3
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingCompareScreenPreviewFeature /OnBoardingCompareScreenPreviewFeature.d.ts +3 -3
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingConfirmScreenPreviewFeature/OnBoardingConfirmScreenPreviewFeature.d.ts +10 -1
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingEmailScreenPreviewFeature/OnBoardingEmailScreenPreviewFeature.d.ts +7 -1
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/OnBoardingPaywallScreenPreviewFeature.d.ts +7 -5
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts +3 -26
- package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/constants.d.ts +5 -4
- package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewTrialSessionFeature/constants.d.ts +5 -4
- package/dist/cjs/lib2/features/TariffFeature/TariffFeature.stories.d.ts +1 -0
- package/dist/cjs/lib2/features/TariffFeature/styles.d.ts +49 -0
- package/dist/cjs/lib2/features/TariffFeature/types.d.ts +5 -5
- package/dist/cjs/lib2/shared/assets/icons/IconChart.d.ts +3 -0
- package/dist/cjs/lib2/shared/assets/icons/IconCompare.d.ts +3 -0
- package/dist/cjs/lib2/shared/assets/icons/IconPaywall.d.ts +3 -0
- package/dist/cjs/lib2/shared/assets/icons/index.d.ts +3 -0
- package/dist/cjs/lib2/shared/providers/CircleRatingProvider/CircleRatingProvider.d.ts +1 -1
- package/dist/cjs/lib2/shared/types/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/types/onBoardingFlow.type.d.ts +6 -11
- package/dist/cjs/lib2/shared/types/tariff.d.ts +14 -0
- package/dist/cjs/lib2/shared/ui/Flag_v2/flags/Pl.d.ts +2 -0
- package/dist/cjs/lib2/shared/ui/Flag_v2/flags/Uk.d.ts +2 -0
- package/dist/cjs/lib2/shared/ui/Input/Input.d.ts +4 -0
- package/dist/cjs/lib2/shared/ui/Input/types.d.ts +4 -0
- package/dist/cjs/lib2/shared/ui/SolidInput/SolidInput.d.ts +1 -1
- package/dist/cjs/lib2/shared/ui/SolidInput/types.d.ts +2 -0
- package/dist/cjs/lib2/shared/utils/matching.d.ts +2 -1
- package/dist/cjs/lib2/shared/utils/mock.d.ts +2 -1
- package/dist/cjs/lib2/shared/utils/session.d.ts +2 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/lib2/features/Charts/types.d.ts +4 -4
- package/dist/esm/lib2/features/MobilePickerFeature/MobilePickerFeature.d.ts +7 -0
- package/dist/esm/lib2/features/MobilePickerFeature/index.d.ts +1 -0
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingChartScreenPreviewFeature/OnBoardingChartScreenPreviewFeature.d.ts +3 -3
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingCompareScreenPreviewFeature /OnBoardingCompareScreenPreviewFeature.d.ts +3 -3
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingConfirmScreenPreviewFeature/OnBoardingConfirmScreenPreviewFeature.d.ts +10 -1
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingEmailScreenPreviewFeature/OnBoardingEmailScreenPreviewFeature.d.ts +7 -1
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/OnBoardingPaywallScreenPreviewFeature.d.ts +7 -5
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts +3 -26
- package/dist/esm/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/constants.d.ts +5 -4
- package/dist/esm/lib2/features/SessionReviewsFeature/ReviewTrialSessionFeature/constants.d.ts +5 -4
- package/dist/esm/lib2/features/TariffFeature/TariffFeature.stories.d.ts +1 -0
- package/dist/esm/lib2/features/TariffFeature/styles.d.ts +49 -0
- package/dist/esm/lib2/features/TariffFeature/types.d.ts +5 -5
- package/dist/esm/lib2/shared/assets/icons/IconChart.d.ts +3 -0
- package/dist/esm/lib2/shared/assets/icons/IconCompare.d.ts +3 -0
- package/dist/esm/lib2/shared/assets/icons/IconPaywall.d.ts +3 -0
- package/dist/esm/lib2/shared/assets/icons/index.d.ts +3 -0
- package/dist/esm/lib2/shared/providers/CircleRatingProvider/CircleRatingProvider.d.ts +1 -1
- package/dist/esm/lib2/shared/types/index.d.ts +1 -0
- package/dist/esm/lib2/shared/types/onBoardingFlow.type.d.ts +6 -11
- package/dist/esm/lib2/shared/types/tariff.d.ts +14 -0
- package/dist/esm/lib2/shared/ui/Flag_v2/flags/Pl.d.ts +2 -0
- package/dist/esm/lib2/shared/ui/Flag_v2/flags/Uk.d.ts +2 -0
- package/dist/esm/lib2/shared/ui/Input/Input.d.ts +4 -0
- package/dist/esm/lib2/shared/ui/Input/types.d.ts +4 -0
- package/dist/esm/lib2/shared/ui/SolidInput/SolidInput.d.ts +1 -1
- package/dist/esm/lib2/shared/ui/SolidInput/types.d.ts +2 -0
- package/dist/esm/lib2/shared/utils/matching.d.ts +2 -1
- package/dist/esm/lib2/shared/utils/mock.d.ts +2 -1
- package/dist/esm/lib2/shared/utils/session.d.ts +2 -1
- package/dist/index.d.ts +132 -99
- package/package.json +9 -8
|
@@ -11,8 +11,8 @@ export type ChartData<T = ChartType> = T extends 'area' ? {
|
|
|
11
11
|
strokeColor?: string;
|
|
12
12
|
fillColor?: string;
|
|
13
13
|
data: {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
label: string;
|
|
15
|
+
tooltip?: string;
|
|
16
16
|
dotBorderColor?: string;
|
|
17
17
|
value: number;
|
|
18
18
|
}[];
|
|
@@ -23,8 +23,8 @@ export type ChartData<T = ChartType> = T extends 'area' ? {
|
|
|
23
23
|
labels: Record<string, string>;
|
|
24
24
|
fillColor?: string;
|
|
25
25
|
data: {
|
|
26
|
-
[key: string]: string | number
|
|
27
|
-
|
|
26
|
+
[key: string]: string | number;
|
|
27
|
+
label: string;
|
|
28
28
|
}[];
|
|
29
29
|
yAxisLabels: string[];
|
|
30
30
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
selections: Record<string, string[]>;
|
|
3
|
+
defaults?: Record<string, string>;
|
|
4
|
+
onChange(value: Record<string, string>): void;
|
|
5
|
+
};
|
|
6
|
+
declare const MobilePickerFeature: ({ selections, defaults, onChange, }: Props) => JSX.Element;
|
|
7
|
+
export default MobilePickerFeature;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MobilePickerFeature } from './MobilePickerFeature';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FC } from 'react';
|
|
2
2
|
import { OnBoardingChartScreenType, OnboardingVariant } from '../../../shared';
|
|
3
3
|
type OnBoardingChartScreenPreviewFeatureProps = {
|
|
4
4
|
className?: string;
|
|
@@ -6,5 +6,5 @@ type OnBoardingChartScreenPreviewFeatureProps = {
|
|
|
6
6
|
isPreview?: boolean;
|
|
7
7
|
variant?: OnboardingVariant;
|
|
8
8
|
} & OnBoardingChartScreenType;
|
|
9
|
-
declare const
|
|
10
|
-
export default
|
|
9
|
+
declare const OnBoardingChartScreenPreviewFeature: FC<OnBoardingChartScreenPreviewFeatureProps>;
|
|
10
|
+
export default OnBoardingChartScreenPreviewFeature;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FC } from 'react';
|
|
2
2
|
import { OnboardingVariant, OnBoardingCompareScreenType } from '../../../shared';
|
|
3
3
|
type OnBoardingPaywallScreenPreviewFeatureProps = {
|
|
4
4
|
variant?: OnboardingVariant;
|
|
5
5
|
className?: string;
|
|
6
6
|
titleClassName?: string;
|
|
7
7
|
} & OnBoardingCompareScreenType;
|
|
8
|
-
declare const
|
|
9
|
-
export default
|
|
8
|
+
declare const OnBoardingCompareScreenPreviewFeature: FC<OnBoardingPaywallScreenPreviewFeatureProps>;
|
|
9
|
+
export default OnBoardingCompareScreenPreviewFeature;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { OnBoardingConfirmScreenType } from '../../../shared';
|
|
3
|
-
|
|
3
|
+
type OnBoardingConfirmScreenPreviewFeatureProps = OnBoardingConfirmScreenType & {
|
|
4
|
+
email: string | null;
|
|
5
|
+
emailErrorText?: string;
|
|
6
|
+
onChangeEmail?: (email: string) => void;
|
|
7
|
+
password: string | null;
|
|
8
|
+
passwordErrorText?: string;
|
|
9
|
+
onChangePassword?: (password: string) => void;
|
|
10
|
+
onSubmit?: () => void;
|
|
11
|
+
};
|
|
12
|
+
declare const _default: React.NamedExoticComponent<OnBoardingConfirmScreenPreviewFeatureProps>;
|
|
4
13
|
export default _default;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { OnBoardingEmailScreenType } from '../../../shared';
|
|
3
|
-
|
|
3
|
+
type OnBoardingEmailScreenPreviewFeatureProps = OnBoardingEmailScreenType & {
|
|
4
|
+
email: string | null;
|
|
5
|
+
emailErrorText?: string;
|
|
6
|
+
onChangeEmail?: (email: string) => void;
|
|
7
|
+
onSubmit?: () => void;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: React.NamedExoticComponent<OnBoardingEmailScreenPreviewFeatureProps>;
|
|
4
10
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FC } from 'react';
|
|
2
2
|
import { OnBoardingPaywallScreenType, OnboardingVariant, Specialist, MindlyReview } from '../../../shared';
|
|
3
3
|
import 'slick-carousel/slick/slick.css';
|
|
4
4
|
import 'slick-carousel/slick/slick-theme.css';
|
|
@@ -6,8 +6,10 @@ type OnBoardingPaywallScreenPreviewFeatureProps = {
|
|
|
6
6
|
variant?: OnboardingVariant;
|
|
7
7
|
specialists: Specialist[];
|
|
8
8
|
reviews: MindlyReview[];
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
locale?: string;
|
|
10
|
+
useAdditionalDiscount?: boolean;
|
|
11
|
+
onBuyTariff?: (tariffId: string) => void;
|
|
12
|
+
isLoading?: boolean;
|
|
11
13
|
} & OnBoardingPaywallScreenType;
|
|
12
|
-
declare const
|
|
13
|
-
export default
|
|
14
|
+
declare const OnBoardingPaywallScreenPreviewFeature: FC<OnBoardingPaywallScreenPreviewFeatureProps>;
|
|
15
|
+
export default OnBoardingPaywallScreenPreviewFeature;
|
package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const enTranslate: Record<string, string>;
|
|
2
|
-
export declare const mockEnT:
|
|
2
|
+
export declare const mockEnT: import("i18next").TFunction<"translation", undefined>;
|
|
3
3
|
export declare const images: {
|
|
4
4
|
after: string;
|
|
5
5
|
before: string;
|
|
@@ -22,7 +22,7 @@ export declare const images: {
|
|
|
22
22
|
};
|
|
23
23
|
export declare const compareItems: {
|
|
24
24
|
id: string;
|
|
25
|
-
|
|
25
|
+
label: string;
|
|
26
26
|
hasInMindly: boolean;
|
|
27
27
|
hasInCompetitors: boolean;
|
|
28
28
|
}[];
|
|
@@ -32,31 +32,8 @@ export declare const howItWorksItems: {
|
|
|
32
32
|
description: string;
|
|
33
33
|
image: string;
|
|
34
34
|
}[];
|
|
35
|
-
export declare const tariffs: ({
|
|
36
|
-
id: string;
|
|
37
|
-
name: string;
|
|
38
|
-
price: number;
|
|
39
|
-
priceBefore: number;
|
|
40
|
-
description: string;
|
|
41
|
-
advantagesList: {
|
|
42
|
-
id: string;
|
|
43
|
-
title: string;
|
|
44
|
-
}[];
|
|
45
|
-
isMostPopular?: undefined;
|
|
46
|
-
} | {
|
|
47
|
-
id: string;
|
|
48
|
-
name: string;
|
|
49
|
-
price: number;
|
|
50
|
-
priceBefore: number;
|
|
51
|
-
isMostPopular: boolean;
|
|
52
|
-
description: string;
|
|
53
|
-
advantagesList: {
|
|
54
|
-
id: string;
|
|
55
|
-
title: string;
|
|
56
|
-
}[];
|
|
57
|
-
})[];
|
|
58
35
|
export declare const chartData: {
|
|
59
|
-
|
|
36
|
+
label: string;
|
|
60
37
|
self: number;
|
|
61
38
|
medetation: number;
|
|
62
39
|
therapy: number;
|
package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/constants.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
1
2
|
export type Tag = {
|
|
2
3
|
id: string;
|
|
3
4
|
name: string;
|
|
4
5
|
};
|
|
5
|
-
export declare const TAGS_LIST_1_SUBSCRIPTION: (t?:
|
|
6
|
-
export declare const TAGS_LIST_2_SUBSCRIPTION: (t?:
|
|
7
|
-
export declare const TAGS_LIST_3_SUBSCRIPTION: (t?:
|
|
8
|
-
export declare const TAGS_BY_RATING_SUBSCRIPTION: (t?:
|
|
6
|
+
export declare const TAGS_LIST_1_SUBSCRIPTION: (t?: WithTranslation['t']) => Tag[];
|
|
7
|
+
export declare const TAGS_LIST_2_SUBSCRIPTION: (t?: WithTranslation['t']) => Tag[];
|
|
8
|
+
export declare const TAGS_LIST_3_SUBSCRIPTION: (t?: WithTranslation['t']) => Tag[];
|
|
9
|
+
export declare const TAGS_BY_RATING_SUBSCRIPTION: (t?: WithTranslation['t']) => Record<number, Tag[]>;
|
package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewTrialSessionFeature/constants.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
1
2
|
export type Tag = {
|
|
2
3
|
id: string;
|
|
3
4
|
name: string;
|
|
4
5
|
};
|
|
5
|
-
export declare const TAGS_LIST_1_TRIAL: (t?:
|
|
6
|
-
export declare const TAGS_LIST_2_TRIAL: (t?:
|
|
7
|
-
export declare const TAGS_LIST_3_TRIAL: (t?:
|
|
8
|
-
export declare const TAGS_BY_RATING_TRIAL: (t?:
|
|
6
|
+
export declare const TAGS_LIST_1_TRIAL: (t?: WithTranslation['t']) => Tag[];
|
|
7
|
+
export declare const TAGS_LIST_2_TRIAL: (t?: WithTranslation['t']) => Tag[];
|
|
8
|
+
export declare const TAGS_LIST_3_TRIAL: (t?: WithTranslation['t']) => Tag[];
|
|
9
|
+
export declare const TAGS_BY_RATING_TRIAL: (t?: WithTranslation['t']) => Record<number, Tag[]>;
|
|
@@ -19,6 +19,13 @@ export declare const tariffFeatureStyle: import("tailwind-variants").TVReturnTyp
|
|
|
19
19
|
info: string;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
+
isPreview: {
|
|
23
|
+
true: {
|
|
24
|
+
checkbox: string;
|
|
25
|
+
info: string;
|
|
26
|
+
content: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
22
29
|
}, {
|
|
23
30
|
root: string;
|
|
24
31
|
label: string;
|
|
@@ -46,6 +53,13 @@ export declare const tariffFeatureStyle: import("tailwind-variants").TVReturnTyp
|
|
|
46
53
|
info: string;
|
|
47
54
|
};
|
|
48
55
|
};
|
|
56
|
+
isPreview: {
|
|
57
|
+
true: {
|
|
58
|
+
checkbox: string;
|
|
59
|
+
info: string;
|
|
60
|
+
content: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
49
63
|
}, {
|
|
50
64
|
variant: {
|
|
51
65
|
default: {
|
|
@@ -67,6 +81,13 @@ export declare const tariffFeatureStyle: import("tailwind-variants").TVReturnTyp
|
|
|
67
81
|
info: string;
|
|
68
82
|
};
|
|
69
83
|
};
|
|
84
|
+
isPreview: {
|
|
85
|
+
true: {
|
|
86
|
+
checkbox: string;
|
|
87
|
+
info: string;
|
|
88
|
+
content: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
70
91
|
}>, {
|
|
71
92
|
variant: {
|
|
72
93
|
default: {
|
|
@@ -88,6 +109,13 @@ export declare const tariffFeatureStyle: import("tailwind-variants").TVReturnTyp
|
|
|
88
109
|
info: string;
|
|
89
110
|
};
|
|
90
111
|
};
|
|
112
|
+
isPreview: {
|
|
113
|
+
true: {
|
|
114
|
+
checkbox: string;
|
|
115
|
+
info: string;
|
|
116
|
+
content: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
91
119
|
}, {
|
|
92
120
|
root: string;
|
|
93
121
|
label: string;
|
|
@@ -115,6 +143,13 @@ export declare const tariffFeatureStyle: import("tailwind-variants").TVReturnTyp
|
|
|
115
143
|
info: string;
|
|
116
144
|
};
|
|
117
145
|
};
|
|
146
|
+
isPreview: {
|
|
147
|
+
true: {
|
|
148
|
+
checkbox: string;
|
|
149
|
+
info: string;
|
|
150
|
+
content: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
118
153
|
}, {
|
|
119
154
|
root: string;
|
|
120
155
|
label: string;
|
|
@@ -142,6 +177,13 @@ export declare const tariffFeatureStyle: import("tailwind-variants").TVReturnTyp
|
|
|
142
177
|
info: string;
|
|
143
178
|
};
|
|
144
179
|
};
|
|
180
|
+
isPreview: {
|
|
181
|
+
true: {
|
|
182
|
+
checkbox: string;
|
|
183
|
+
info: string;
|
|
184
|
+
content: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
145
187
|
}, {
|
|
146
188
|
variant: {
|
|
147
189
|
default: {
|
|
@@ -163,4 +205,11 @@ export declare const tariffFeatureStyle: import("tailwind-variants").TVReturnTyp
|
|
|
163
205
|
info: string;
|
|
164
206
|
};
|
|
165
207
|
};
|
|
208
|
+
isPreview: {
|
|
209
|
+
true: {
|
|
210
|
+
checkbox: string;
|
|
211
|
+
info: string;
|
|
212
|
+
content: string;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
166
215
|
}>, unknown, unknown, undefined>>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { WithTranslation } from 'react-i18next';
|
|
2
|
-
import { SupportedCurrency } from '../../shared';
|
|
3
2
|
import { VariantEnum } from '../../shared/types/variant';
|
|
4
3
|
export type TariffFeatureProps = {
|
|
5
4
|
className?: string;
|
|
6
5
|
t?: WithTranslation['t'];
|
|
7
|
-
|
|
6
|
+
label: string;
|
|
8
7
|
priceBefore?: number;
|
|
9
8
|
price: number;
|
|
10
|
-
|
|
9
|
+
locale?: string;
|
|
11
10
|
id: string;
|
|
12
11
|
isSelected: boolean;
|
|
13
|
-
|
|
12
|
+
badge?: string;
|
|
14
13
|
variant: VariantEnum;
|
|
15
14
|
description?: string;
|
|
16
15
|
advantagesList?: {
|
|
17
16
|
id: string;
|
|
18
|
-
|
|
17
|
+
label: string;
|
|
19
18
|
}[];
|
|
20
19
|
initialIsInfoOpen?: boolean;
|
|
20
|
+
isPreview?: boolean;
|
|
21
21
|
onSelect(id: string): void;
|
|
22
22
|
};
|
|
@@ -129,4 +129,7 @@ export * from './IconMatching';
|
|
|
129
129
|
export * from './IconSwitch';
|
|
130
130
|
export * from './IconGlobe';
|
|
131
131
|
export * from './IconAppStoreRating';
|
|
132
|
+
export * from './IconCompare';
|
|
133
|
+
export * from './IconChart';
|
|
134
|
+
export * from './IconPaywall';
|
|
132
135
|
export * from './IconRadioPartial';
|
|
@@ -5,5 +5,5 @@ export declare const CircleRatingContext: React.Context<CircleRatingContextData>
|
|
|
5
5
|
export declare const CircleRatingProvider: ({ children, data, t, }: {
|
|
6
6
|
children: JSX.Element;
|
|
7
7
|
data: CircleRatingContextProps;
|
|
8
|
-
t:
|
|
8
|
+
t: WithTranslation['t'];
|
|
9
9
|
}) => JSX.Element | null;
|
|
@@ -3,6 +3,7 @@ import { ISpecialistReview } from '../../../lib/ReviewSwiperSection';
|
|
|
3
3
|
import { TranslationType } from './common';
|
|
4
4
|
import { WithTranslation } from 'react-i18next';
|
|
5
5
|
import { ChartData } from '../../features/Charts/types';
|
|
6
|
+
import { Tariff } from './tariff';
|
|
6
7
|
export declare enum ConditionRulesType {
|
|
7
8
|
IS = "is"
|
|
8
9
|
}
|
|
@@ -138,30 +139,24 @@ export type OnBoardingReviewsScreenType = OnBoardingBaseScreenType & OnBoardingS
|
|
|
138
139
|
};
|
|
139
140
|
export type OnBoardingEmailScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenTranslationsType & OnBoardingScreenErrorsType & OnBoardingScreenEmailType & OnBoardingScreenPrivacyType & {
|
|
140
141
|
title: string;
|
|
141
|
-
email: string | null;
|
|
142
|
-
emailErrorText?: string;
|
|
143
|
-
onChangeEmail?: (email: string) => void;
|
|
144
142
|
};
|
|
145
143
|
export type OnBoardingConfirmScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenTranslationsType & OnBoardingScreenErrorsType & OnBoardingScreenEmailType & OnBoardingScreenPasswordType & OnBoardingScreenAlertType & {
|
|
146
144
|
title: string;
|
|
147
|
-
email: string | null;
|
|
148
|
-
emailErrorText?: string;
|
|
149
|
-
password: string | null;
|
|
150
|
-
passwordErrorText?: string;
|
|
151
|
-
onChangeEmail?: (email: string) => void;
|
|
152
|
-
onChangePassword?: (password: string) => void;
|
|
153
145
|
};
|
|
154
146
|
export type OnBoardingPaywallScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenTranslationsType & OnBoardingScreenErrorsType & {
|
|
155
147
|
title: string;
|
|
156
148
|
description?: string;
|
|
149
|
+
tariffs: Tariff[];
|
|
150
|
+
percentDiscount: number;
|
|
151
|
+
additionalDiscount?: number;
|
|
157
152
|
};
|
|
158
153
|
export type OnBoardingCompareScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenTranslationsType & OnBoardingScreenErrorsType & {
|
|
159
154
|
title: string;
|
|
160
155
|
description?: string;
|
|
161
156
|
otherPlatformsTitle?: string;
|
|
162
|
-
|
|
157
|
+
listItems: {
|
|
163
158
|
id: string;
|
|
164
|
-
|
|
159
|
+
label: string;
|
|
165
160
|
hasInMindly: boolean;
|
|
166
161
|
hasInCompetitors: boolean;
|
|
167
162
|
}[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type Tariff = {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
priceAfterDiscount: number;
|
|
5
|
+
priceAfterAdditionalDiscount: number;
|
|
6
|
+
priceBase: number;
|
|
7
|
+
description: string;
|
|
8
|
+
isMostPopular?: boolean;
|
|
9
|
+
percentDiscount?: number;
|
|
10
|
+
advantagesList: {
|
|
11
|
+
id: string;
|
|
12
|
+
label: string;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SolidInputProps } from './types';
|
|
3
|
-
declare const SolidInput: React.
|
|
3
|
+
declare const SolidInput: React.ForwardRefExoticComponent<SolidInputProps & React.RefAttributes<HTMLIonInputElement>>;
|
|
4
4
|
export default SolidInput;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InputChangeEventDetail, IonInputCustomEvent, TextFieldTypes } from '@ionic/core';
|
|
2
|
+
import { KeyboardEventHandler } from 'react';
|
|
2
3
|
export type SolidInputProps = {
|
|
3
4
|
placeholder: string;
|
|
4
5
|
value?: string;
|
|
@@ -11,4 +12,5 @@ export type SolidInputProps = {
|
|
|
11
12
|
isInvalid?: boolean;
|
|
12
13
|
showTogglePassword?: boolean;
|
|
13
14
|
onChange?: (event: IonInputCustomEvent<InputChangeEventDetail>) => void;
|
|
15
|
+
onKeyDown?: KeyboardEventHandler;
|
|
14
16
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
1
2
|
import { SpecialistAreaByMatch } from '../../features/SpecialistAreaListFeature/types';
|
|
2
3
|
import { Specialist, UserType } from '../types';
|
|
3
|
-
export declare const getMatchingValues: (specialist: Specialist, user?: UserType, join?: boolean, t?:
|
|
4
|
+
export declare const getMatchingValues: (specialist: Specialist, user?: UserType, join?: boolean, t?: WithTranslation['t']) => {
|
|
4
5
|
matchingByAreas: SpecialistAreaByMatch[];
|
|
5
6
|
matchingBySpecialization: SpecialistAreaByMatch[];
|
|
6
7
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
1
2
|
import { ClientSpecialistContractStatusEnum } from '../types/contract';
|
|
2
3
|
import { UserType } from '../types/user';
|
|
3
4
|
import { Specialist } from '../types/specialistTypes';
|
|
4
5
|
import { Session, SpecialistReview } from '../types';
|
|
5
|
-
export declare const mockT: (translate?: Record<string, string>) =>
|
|
6
|
+
export declare const mockT: (translate?: Record<string, string>) => WithTranslation['t'];
|
|
6
7
|
export declare const specialist: Specialist;
|
|
7
8
|
export declare const currentUser: UserType;
|
|
8
9
|
export declare const listReviews: SpecialistReview[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
1
2
|
import { Session, SessionTime, SessionVariant } from '../types';
|
|
2
3
|
export declare const SOON_SESSION_TIME_SECONDS: number;
|
|
3
4
|
export declare const NEAR_SESSION_TIME_SECONDS: number;
|
|
@@ -9,5 +10,5 @@ export declare const getSessionsByYear: (sessions: Session[]) => Map<number, Ses
|
|
|
9
10
|
export declare const getSessionsByMonth: (sessions: Session[]) => Map<number, Session[]>;
|
|
10
11
|
export declare const getSessionsByDay: (sessions: Session[]) => Map<number, Session[]>;
|
|
11
12
|
export declare const splitSessions: (sessions: Session[]) => Map<string, Session[]>;
|
|
12
|
-
export declare const getSessionTimeLabel: (variant: SessionVariant, startSessionDate: Date, t:
|
|
13
|
+
export declare const getSessionTimeLabel: (variant: SessionVariant, startSessionDate: Date, t: WithTranslation['t'], locale: string) => string;
|
|
13
14
|
export declare const canManageSession: (sessionDate?: Date) => boolean;
|