@mindly/ui-components 7.0.2 → 7.0.4

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.
@@ -2,7 +2,8 @@ import React, { ReactElement, ReactText } from 'react';
2
2
  import { CheckboxTypes } from '../CustomCheckbox/CustomCheckbox';
3
3
  export type CheckboxListItem = {
4
4
  id: ReactText;
5
- label: string;
5
+ label?: string;
6
+ name?: string;
6
7
  icon?: ReactElement;
7
8
  isFavorite?: boolean;
8
9
  };
@@ -38,7 +38,9 @@ export declare enum OnBoardingScreenOptions {
38
38
  COMPARE = "COMPARE",
39
39
  CHART = "CHART",
40
40
  GRAPH = "GRAPH",
41
- GOAL = "GOAL"
41
+ GOAL = "GOAL",
42
+ AREAS_OF_WORK = "AREAS_OF_WORK",
43
+ SPECIALIZATION = "SPECIALIZATION"
42
44
  }
43
45
  export type OnBoardingScreenOptionType = {
44
46
  id: string;
@@ -152,6 +154,16 @@ export type OnBoardingGoalSelectScreenType = OnBoardingBaseScreenType & OnBoardi
152
154
  isShowCategoryName?: boolean;
153
155
  maxSelectionCount?: number;
154
156
  };
157
+ export type OnBoardingAreasOfWorkSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenDescriptionType & {
158
+ isOptionView?: boolean;
159
+ options: OnBoardingScreenOptionType[];
160
+ maxSelectionCount?: number;
161
+ };
162
+ export type OnBoardingSpecializationSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenDescriptionType & {
163
+ isOptionView?: boolean;
164
+ options: OnBoardingScreenOptionType[];
165
+ maxSelectionCount?: number;
166
+ };
155
167
  export type OnBoardingSingleSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenDescriptionType & {
156
168
  isOptionView?: boolean;
157
169
  isIconView?: boolean;
@@ -246,7 +258,7 @@ export type OnBoardingChartScreenType = OnBoardingBaseScreenType & OnBoardingScr
246
258
  disclaimer?: string;
247
259
  chart: ChartData;
248
260
  };
249
- export type OnBoardingScreensType = OnBoardingStartScreenType | OnBoardingMultiSelectScreenType | OnBoardingGoalSelectScreenType | OnBoardingSingleSelectScreenType | OnBoardingSingleImageSelectScreenType | OnBoardingSingleRoundImageSelectScreenType | OnBoardingSingleScaleSelectScreenType | OnBoardingInfoScreenType | OnBoardingLoaderScreenType | OnBoardingReviewsScreenType | OnBoardingEmailScreenType | OnBoardingConfirmScreenType | OnBoardingCompareScreenType | OnBoardingPaywallScreenType | OnBoardingChartScreenType | OnBoardingGraphScreenType;
261
+ export type OnBoardingScreensType = OnBoardingStartScreenType | OnBoardingMultiSelectScreenType | OnBoardingGoalSelectScreenType | OnBoardingAreasOfWorkSelectScreenType | OnBoardingSpecializationSelectScreenType | OnBoardingSingleSelectScreenType | OnBoardingSingleImageSelectScreenType | OnBoardingSingleRoundImageSelectScreenType | OnBoardingSingleScaleSelectScreenType | OnBoardingInfoScreenType | OnBoardingLoaderScreenType | OnBoardingReviewsScreenType | OnBoardingEmailScreenType | OnBoardingConfirmScreenType | OnBoardingCompareScreenType | OnBoardingPaywallScreenType | OnBoardingChartScreenType | OnBoardingGraphScreenType;
250
262
  export type OnBoardingFlowType = {
251
263
  id: string;
252
264
  locale: SupportedLocales;
@@ -16,6 +16,10 @@ export type Specialist = {
16
16
  first_name: string;
17
17
  last_name: string;
18
18
  specialization?: string;
19
+ localized_specialization?: Array<{
20
+ id: string;
21
+ name: string;
22
+ }> | [];
19
23
  session_price_uah: number;
20
24
  session_price: number;
21
25
  session_price_type: SupportedCurrency;
@@ -38,8 +42,15 @@ export type Specialist = {
38
42
  video_calling_photo_link?: string;
39
43
  about?: string;
40
44
  areas_of_work: Array<string> | [];
45
+ localized_areas_of_work?: Array<{
46
+ id: string;
47
+ name: string;
48
+ }> | [];
41
49
  areas_of_work_by_client_problem: Array<string> | [];
42
- localized_areas_of_work_by_client_problem: string[];
50
+ localized_areas_of_work_by_client_problem?: Array<{
51
+ id: string;
52
+ name: string;
53
+ }> | [];
43
54
  therapy_description?: string;
44
55
  avatar_link?: string;
45
56
  time_zone: string;