@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.
Files changed (34) hide show
  1. package/dist/cjs/index.js +4 -4
  2. package/dist/cjs/lib2/features/Charts/types.d.ts +4 -4
  3. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingChartScreenPreviewFeature/OnBoardingChartScreenPreviewFeature.d.ts +3 -3
  4. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingCompareScreenPreviewFeature /OnBoardingCompareScreenPreviewFeature.d.ts +3 -3
  5. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/OnBoardingPaywallScreenPreviewFeature.d.ts +5 -5
  6. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts +2 -25
  7. package/dist/cjs/lib2/features/TariffFeature/TariffFeature.stories.d.ts +1 -0
  8. package/dist/cjs/lib2/features/TariffFeature/styles.d.ts +49 -0
  9. package/dist/cjs/lib2/features/TariffFeature/types.d.ts +5 -5
  10. package/dist/cjs/lib2/shared/assets/icons/IconChart.d.ts +3 -0
  11. package/dist/cjs/lib2/shared/assets/icons/IconCompare.d.ts +3 -0
  12. package/dist/cjs/lib2/shared/assets/icons/IconPaywall.d.ts +3 -0
  13. package/dist/cjs/lib2/shared/assets/icons/index.d.ts +3 -0
  14. package/dist/cjs/lib2/shared/types/index.d.ts +1 -0
  15. package/dist/cjs/lib2/shared/types/onBoardingFlow.type.d.ts +6 -2
  16. package/dist/cjs/lib2/shared/types/tariff.d.ts +14 -0
  17. package/dist/esm/index.js +7 -7
  18. package/dist/esm/lib2/features/Charts/types.d.ts +4 -4
  19. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingChartScreenPreviewFeature/OnBoardingChartScreenPreviewFeature.d.ts +3 -3
  20. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingCompareScreenPreviewFeature /OnBoardingCompareScreenPreviewFeature.d.ts +3 -3
  21. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/OnBoardingPaywallScreenPreviewFeature.d.ts +5 -5
  22. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts +2 -25
  23. package/dist/esm/lib2/features/TariffFeature/TariffFeature.stories.d.ts +1 -0
  24. package/dist/esm/lib2/features/TariffFeature/styles.d.ts +49 -0
  25. package/dist/esm/lib2/features/TariffFeature/types.d.ts +5 -5
  26. package/dist/esm/lib2/shared/assets/icons/IconChart.d.ts +3 -0
  27. package/dist/esm/lib2/shared/assets/icons/IconCompare.d.ts +3 -0
  28. package/dist/esm/lib2/shared/assets/icons/IconPaywall.d.ts +3 -0
  29. package/dist/esm/lib2/shared/assets/icons/index.d.ts +3 -0
  30. package/dist/esm/lib2/shared/types/index.d.ts +1 -0
  31. package/dist/esm/lib2/shared/types/onBoardingFlow.type.d.ts +6 -2
  32. package/dist/esm/lib2/shared/types/tariff.d.ts +14 -0
  33. package/dist/index.d.ts +110 -85
  34. 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
- name: string;
15
- label?: string;
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 | undefined;
27
- name: string;
26
+ [key: string]: string | number;
27
+ label: string;
28
28
  }[];
29
29
  yAxisLabels: string[];
30
30
  };
@@ -1,4 +1,4 @@
1
- import React from 'react';
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 _default: React.NamedExoticComponent<OnBoardingChartScreenPreviewFeatureProps>;
10
- export default _default;
9
+ declare const OnBoardingChartScreenPreviewFeature: FC<OnBoardingChartScreenPreviewFeatureProps>;
10
+ export default OnBoardingChartScreenPreviewFeature;
@@ -1,9 +1,9 @@
1
- import React from 'react';
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 _default: React.NamedExoticComponent<OnBoardingPaywallScreenPreviewFeatureProps>;
9
- export default _default;
8
+ declare const OnBoardingCompareScreenPreviewFeature: FC<OnBoardingPaywallScreenPreviewFeatureProps>;
9
+ export default OnBoardingCompareScreenPreviewFeature;
@@ -1,4 +1,4 @@
1
- import React from 'react';
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
- previuesDiscount?: number;
10
- currentDiscount?: number;
9
+ locale?: string;
10
+ useAdditionalDiscount?: boolean;
11
11
  } & OnBoardingPaywallScreenType;
12
- declare const _default: React.NamedExoticComponent<OnBoardingPaywallScreenPreviewFeatureProps>;
13
- export default _default;
12
+ declare const OnBoardingPaywallScreenPreviewFeature: FC<OnBoardingPaywallScreenPreviewFeatureProps>;
13
+ export default OnBoardingPaywallScreenPreviewFeature;
@@ -22,7 +22,7 @@ export declare const images: {
22
22
  };
23
23
  export declare const compareItems: {
24
24
  id: string;
25
- title: string;
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
- name: string;
36
+ label: string;
60
37
  self: number;
61
38
  medetation: number;
62
39
  therapy: number;
@@ -7,3 +7,4 @@ export declare const Default: Story;
7
7
  export declare const WithLabel: Story;
8
8
  export declare const Blue: Story;
9
9
  export declare const Selected: Story;
10
+ export declare const IsPreview: Story;
@@ -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
- name: string;
6
+ label: string;
8
7
  priceBefore?: number;
9
8
  price: number;
10
- currency: SupportedCurrency;
9
+ locale?: string;
11
10
  id: string;
12
11
  isSelected: boolean;
13
- label?: string;
12
+ badge?: string;
14
13
  variant: VariantEnum;
15
14
  description?: string;
16
15
  advantagesList?: {
17
16
  id: string;
18
- title: string;
17
+ label: string;
19
18
  }[];
20
19
  initialIsInfoOpen?: boolean;
20
+ isPreview?: boolean;
21
21
  onSelect(id: string): void;
22
22
  };
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { IconProps } from '../../types/iconProps';
3
+ export declare const IconChart: React.FC<IconProps>;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { IconProps } from '../../types/iconProps';
3
+ export declare const IconCompare: React.FC<IconProps>;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { IconProps } from '../../types/iconProps';
3
+ export declare const IconPaywall: React.FC<IconProps>;
@@ -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';
@@ -13,3 +13,4 @@ export * from './user';
13
13
  export * from './filter';
14
14
  export * from './subscription';
15
15
  export * from './session';
16
+ export * from './tariff';
@@ -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
- items: {
166
+ listItems: {
163
167
  id: string;
164
- title: string;
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
+ };