@mindly/ui-components 5.104.0 → 5.104.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/Charts/types.d.ts +4 -4
- 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/OnBoardingPaywallScreenPreviewFeature/OnBoardingPaywallScreenPreviewFeature.d.ts +5 -5
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts +2 -25
- 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/types/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/types/onBoardingFlow.type.d.ts +6 -2
- package/dist/cjs/lib2/shared/types/tariff.d.ts +14 -0
- package/dist/esm/index.js +7 -7
- package/dist/esm/lib2/features/Charts/types.d.ts +4 -4
- 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/OnBoardingPaywallScreenPreviewFeature/OnBoardingPaywallScreenPreviewFeature.d.ts +5 -5
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts +2 -25
- 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/types/index.d.ts +1 -0
- package/dist/esm/lib2/shared/types/onBoardingFlow.type.d.ts +6 -2
- package/dist/esm/lib2/shared/types/tariff.d.ts +14 -0
- package/dist/index.d.ts +110 -85
- package/package.json +1 -1
|
@@ -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
|
};
|
|
@@ -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,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,8 @@ type OnBoardingPaywallScreenPreviewFeatureProps = {
|
|
|
6
6
|
variant?: OnboardingVariant;
|
|
7
7
|
specialists: Specialist[];
|
|
8
8
|
reviews: MindlyReview[];
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
locale?: string;
|
|
10
|
+
useAdditionalDiscount?: boolean;
|
|
11
11
|
} & OnBoardingPaywallScreenType;
|
|
12
|
-
declare const
|
|
13
|
-
export default
|
|
12
|
+
declare const OnBoardingPaywallScreenPreviewFeature: FC<OnBoardingPaywallScreenPreviewFeatureProps>;
|
|
13
|
+
export default OnBoardingPaywallScreenPreviewFeature;
|
package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts
CHANGED
|
@@ -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;
|
|
@@ -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';
|
|
@@ -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
|
}
|
|
@@ -154,14 +155,17 @@ export type OnBoardingConfirmScreenType = OnBoardingBaseScreenType & OnBoardingS
|
|
|
154
155
|
export type OnBoardingPaywallScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenTranslationsType & OnBoardingScreenErrorsType & {
|
|
155
156
|
title: string;
|
|
156
157
|
description?: string;
|
|
158
|
+
tariffs: Tariff[];
|
|
159
|
+
percentDiscount: number;
|
|
160
|
+
additionalDiscount?: number;
|
|
157
161
|
};
|
|
158
162
|
export type OnBoardingCompareScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenTranslationsType & OnBoardingScreenErrorsType & {
|
|
159
163
|
title: string;
|
|
160
164
|
description?: string;
|
|
161
165
|
otherPlatformsTitle?: string;
|
|
162
|
-
|
|
166
|
+
listItems: {
|
|
163
167
|
id: string;
|
|
164
|
-
|
|
168
|
+
label: string;
|
|
165
169
|
hasInMindly: boolean;
|
|
166
170
|
hasInCompetitors: boolean;
|
|
167
171
|
}[];
|
|
@@ -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
|
+
};
|