@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.
Files changed (66) hide show
  1. package/dist/cjs/index.js +6 -6
  2. package/dist/cjs/lib2/features/Charts/types.d.ts +4 -4
  3. package/dist/cjs/lib2/features/MobilePickerFeature/MobilePickerFeature.d.ts +7 -0
  4. package/dist/cjs/lib2/features/MobilePickerFeature/index.d.ts +1 -0
  5. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingChartScreenPreviewFeature/OnBoardingChartScreenPreviewFeature.d.ts +3 -3
  6. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingCompareScreenPreviewFeature /OnBoardingCompareScreenPreviewFeature.d.ts +3 -3
  7. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingConfirmScreenPreviewFeature/OnBoardingConfirmScreenPreviewFeature.d.ts +10 -1
  8. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingEmailScreenPreviewFeature/OnBoardingEmailScreenPreviewFeature.d.ts +7 -1
  9. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/OnBoardingPaywallScreenPreviewFeature.d.ts +7 -5
  10. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts +3 -26
  11. package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/constants.d.ts +5 -4
  12. package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewTrialSessionFeature/constants.d.ts +5 -4
  13. package/dist/cjs/lib2/features/TariffFeature/TariffFeature.stories.d.ts +1 -0
  14. package/dist/cjs/lib2/features/TariffFeature/styles.d.ts +49 -0
  15. package/dist/cjs/lib2/features/TariffFeature/types.d.ts +5 -5
  16. package/dist/cjs/lib2/shared/assets/icons/IconChart.d.ts +3 -0
  17. package/dist/cjs/lib2/shared/assets/icons/IconCompare.d.ts +3 -0
  18. package/dist/cjs/lib2/shared/assets/icons/IconPaywall.d.ts +3 -0
  19. package/dist/cjs/lib2/shared/assets/icons/index.d.ts +3 -0
  20. package/dist/cjs/lib2/shared/providers/CircleRatingProvider/CircleRatingProvider.d.ts +1 -1
  21. package/dist/cjs/lib2/shared/types/index.d.ts +1 -0
  22. package/dist/cjs/lib2/shared/types/onBoardingFlow.type.d.ts +6 -11
  23. package/dist/cjs/lib2/shared/types/tariff.d.ts +14 -0
  24. package/dist/cjs/lib2/shared/ui/Flag_v2/flags/Pl.d.ts +2 -0
  25. package/dist/cjs/lib2/shared/ui/Flag_v2/flags/Uk.d.ts +2 -0
  26. package/dist/cjs/lib2/shared/ui/Input/Input.d.ts +4 -0
  27. package/dist/cjs/lib2/shared/ui/Input/types.d.ts +4 -0
  28. package/dist/cjs/lib2/shared/ui/SolidInput/SolidInput.d.ts +1 -1
  29. package/dist/cjs/lib2/shared/ui/SolidInput/types.d.ts +2 -0
  30. package/dist/cjs/lib2/shared/utils/matching.d.ts +2 -1
  31. package/dist/cjs/lib2/shared/utils/mock.d.ts +2 -1
  32. package/dist/cjs/lib2/shared/utils/session.d.ts +2 -1
  33. package/dist/esm/index.js +7 -7
  34. package/dist/esm/lib2/features/Charts/types.d.ts +4 -4
  35. package/dist/esm/lib2/features/MobilePickerFeature/MobilePickerFeature.d.ts +7 -0
  36. package/dist/esm/lib2/features/MobilePickerFeature/index.d.ts +1 -0
  37. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingChartScreenPreviewFeature/OnBoardingChartScreenPreviewFeature.d.ts +3 -3
  38. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingCompareScreenPreviewFeature /OnBoardingCompareScreenPreviewFeature.d.ts +3 -3
  39. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingConfirmScreenPreviewFeature/OnBoardingConfirmScreenPreviewFeature.d.ts +10 -1
  40. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingEmailScreenPreviewFeature/OnBoardingEmailScreenPreviewFeature.d.ts +7 -1
  41. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/OnBoardingPaywallScreenPreviewFeature.d.ts +7 -5
  42. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts +3 -26
  43. package/dist/esm/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/constants.d.ts +5 -4
  44. package/dist/esm/lib2/features/SessionReviewsFeature/ReviewTrialSessionFeature/constants.d.ts +5 -4
  45. package/dist/esm/lib2/features/TariffFeature/TariffFeature.stories.d.ts +1 -0
  46. package/dist/esm/lib2/features/TariffFeature/styles.d.ts +49 -0
  47. package/dist/esm/lib2/features/TariffFeature/types.d.ts +5 -5
  48. package/dist/esm/lib2/shared/assets/icons/IconChart.d.ts +3 -0
  49. package/dist/esm/lib2/shared/assets/icons/IconCompare.d.ts +3 -0
  50. package/dist/esm/lib2/shared/assets/icons/IconPaywall.d.ts +3 -0
  51. package/dist/esm/lib2/shared/assets/icons/index.d.ts +3 -0
  52. package/dist/esm/lib2/shared/providers/CircleRatingProvider/CircleRatingProvider.d.ts +1 -1
  53. package/dist/esm/lib2/shared/types/index.d.ts +1 -0
  54. package/dist/esm/lib2/shared/types/onBoardingFlow.type.d.ts +6 -11
  55. package/dist/esm/lib2/shared/types/tariff.d.ts +14 -0
  56. package/dist/esm/lib2/shared/ui/Flag_v2/flags/Pl.d.ts +2 -0
  57. package/dist/esm/lib2/shared/ui/Flag_v2/flags/Uk.d.ts +2 -0
  58. package/dist/esm/lib2/shared/ui/Input/Input.d.ts +4 -0
  59. package/dist/esm/lib2/shared/ui/Input/types.d.ts +4 -0
  60. package/dist/esm/lib2/shared/ui/SolidInput/SolidInput.d.ts +1 -1
  61. package/dist/esm/lib2/shared/ui/SolidInput/types.d.ts +2 -0
  62. package/dist/esm/lib2/shared/utils/matching.d.ts +2 -1
  63. package/dist/esm/lib2/shared/utils/mock.d.ts +2 -1
  64. package/dist/esm/lib2/shared/utils/session.d.ts +2 -1
  65. package/dist/index.d.ts +132 -99
  66. 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
- 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
  };
@@ -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 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,13 @@
1
1
  import React from 'react';
2
2
  import { OnBoardingConfirmScreenType } from '../../../shared';
3
- declare const _default: React.NamedExoticComponent<OnBoardingConfirmScreenType>;
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
- declare const _default: React.NamedExoticComponent<OnBoardingEmailScreenType>;
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 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,10 @@ 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
+ onBuyTariff?: (tariffId: string) => void;
12
+ isLoading?: boolean;
11
13
  } & OnBoardingPaywallScreenType;
12
- declare const _default: React.NamedExoticComponent<OnBoardingPaywallScreenPreviewFeatureProps>;
13
- export default _default;
14
+ declare const OnBoardingPaywallScreenPreviewFeature: FC<OnBoardingPaywallScreenPreviewFeatureProps>;
15
+ export default OnBoardingPaywallScreenPreviewFeature;
@@ -1,5 +1,5 @@
1
1
  export declare const enTranslate: Record<string, string>;
2
- export declare const mockEnT: TFunction<import("react-i18next").FallbackNs<Ns>, KPrefix>;
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
- 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;
@@ -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?: any) => Tag[];
6
- export declare const TAGS_LIST_2_SUBSCRIPTION: (t?: any) => Tag[];
7
- export declare const TAGS_LIST_3_SUBSCRIPTION: (t?: any) => Tag[];
8
- export declare const TAGS_BY_RATING_SUBSCRIPTION: (t?: any) => Record<number, Tag[]>;
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[]>;
@@ -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?: any) => Tag[];
6
- export declare const TAGS_LIST_2_TRIAL: (t?: any) => Tag[];
7
- export declare const TAGS_LIST_3_TRIAL: (t?: any) => Tag[];
8
- export declare const TAGS_BY_RATING_TRIAL: (t?: any) => Record<number, Tag[]>;
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[]>;
@@ -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';
@@ -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: TFunction<import("react-i18next").FallbackNs<Ns>, KPrefix>;
8
+ t: WithTranslation['t'];
9
9
  }) => JSX.Element | null;
@@ -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
  }
@@ -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
- items: {
157
+ listItems: {
163
158
  id: string;
164
- title: string;
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
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { TestTypeProps } from './types';
3
+ declare const Input: FC<TestTypeProps>;
4
+ export default Input;
@@ -0,0 +1,4 @@
1
+ import { JSX } from '@ionic/core';
2
+ export interface TestTypeProps extends JSX.IonInput {
3
+ custom: string;
4
+ }
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { SolidInputProps } from './types';
3
- declare const SolidInput: React.FC<SolidInputProps>;
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?: any) => {
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>) => TFunction<import("react-i18next").FallbackNs<Ns>, KPrefix>;
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: TFunction<import("react-i18next").FallbackNs<Ns>, KPrefix>, locale: string) => string;
13
+ export declare const getSessionTimeLabel: (variant: SessionVariant, startSessionDate: Date, t: WithTranslation['t'], locale: string) => string;
13
14
  export declare const canManageSession: (sessionDate?: Date) => boolean;