@mindly/ui-components 6.1.0 → 6.2.0
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 +8 -8
- package/dist/cjs/lib2/features/ScheduleFeature/ScheduleFeature.d.ts +4 -0
- package/dist/cjs/lib2/features/ScheduleFeature/ScheduleSkeletonFeature.d.ts +4 -0
- package/dist/cjs/lib2/features/ScheduleFeature/index.d.ts +1 -0
- package/dist/cjs/lib2/features/ScheduleFeature/types.d.ts +11 -0
- package/dist/cjs/lib2/features/SpecialistEducationsFeature/SpecialistEducationsFeature.d.ts +1 -0
- package/dist/cjs/lib2/features/TabsFeature/TabsFeature.d.ts +4 -0
- package/dist/cjs/lib2/features/TabsFeature/TabsFeatureSkeleton.d.ts +4 -0
- package/dist/cjs/lib2/features/TabsFeature/index.d.ts +2 -0
- package/dist/cjs/lib2/features/TabsFeature/types.d.ts +10 -0
- package/dist/cjs/lib2/features/index.d.ts +2 -0
- package/dist/cjs/lib2/shared/assets/icons/IconMooving.d.ts +3 -0
- package/dist/cjs/lib2/shared/assets/icons/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/hooks/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/hooks/useDelayMount.d.ts +1 -0
- package/dist/cjs/lib2/shared/types/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/types/schedule.d.ts +3 -0
- package/dist/cjs/lib2/shared/types/specialistTypes.d.ts +2 -0
- package/dist/cjs/lib2/shared/ui/EducationCard_v2/EducationCard.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/Typography/types.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/Video/Video.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/Video/styles.d.ts +17 -0
- package/dist/cjs/lib2/shared/utils/mock.d.ts +2 -1
- package/dist/cjs/lib2/widgets/SpecialistDetailWithTabsWidget/SpecialistDetailWithTabsSkeleton.d.ts +3 -0
- package/dist/cjs/lib2/widgets/SpecialistDetailWithTabsWidget/SpecialistDetailWithTabsWidget.d.ts +4 -0
- package/dist/cjs/lib2/widgets/SpecialistDetailWithTabsWidget/index.d.ts +2 -0
- package/dist/cjs/lib2/widgets/SpecialistDetailWithTabsWidget/types.d.ts +21 -0
- package/dist/cjs/lib2/widgets/index.d.ts +1 -0
- package/dist/esm/index.js +8 -8
- package/dist/esm/lib2/features/ScheduleFeature/ScheduleFeature.d.ts +4 -0
- package/dist/esm/lib2/features/ScheduleFeature/ScheduleSkeletonFeature.d.ts +4 -0
- package/dist/esm/lib2/features/ScheduleFeature/index.d.ts +1 -0
- package/dist/esm/lib2/features/ScheduleFeature/types.d.ts +11 -0
- package/dist/esm/lib2/features/SpecialistEducationsFeature/SpecialistEducationsFeature.d.ts +1 -0
- package/dist/esm/lib2/features/TabsFeature/TabsFeature.d.ts +4 -0
- package/dist/esm/lib2/features/TabsFeature/TabsFeatureSkeleton.d.ts +4 -0
- package/dist/esm/lib2/features/TabsFeature/index.d.ts +2 -0
- package/dist/esm/lib2/features/TabsFeature/types.d.ts +10 -0
- package/dist/esm/lib2/features/index.d.ts +2 -0
- package/dist/esm/lib2/shared/assets/icons/IconMooving.d.ts +3 -0
- package/dist/esm/lib2/shared/assets/icons/index.d.ts +1 -0
- package/dist/esm/lib2/shared/hooks/index.d.ts +1 -0
- package/dist/esm/lib2/shared/hooks/useDelayMount.d.ts +1 -0
- package/dist/esm/lib2/shared/types/index.d.ts +1 -0
- package/dist/esm/lib2/shared/types/schedule.d.ts +3 -0
- package/dist/esm/lib2/shared/types/specialistTypes.d.ts +2 -0
- package/dist/esm/lib2/shared/ui/EducationCard_v2/EducationCard.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/Typography/types.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/Video/Video.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/Video/styles.d.ts +17 -0
- package/dist/esm/lib2/shared/utils/mock.d.ts +2 -1
- package/dist/esm/lib2/widgets/SpecialistDetailWithTabsWidget/SpecialistDetailWithTabsSkeleton.d.ts +3 -0
- package/dist/esm/lib2/widgets/SpecialistDetailWithTabsWidget/SpecialistDetailWithTabsWidget.d.ts +4 -0
- package/dist/esm/lib2/widgets/SpecialistDetailWithTabsWidget/index.d.ts +2 -0
- package/dist/esm/lib2/widgets/SpecialistDetailWithTabsWidget/types.d.ts +21 -0
- package/dist/esm/lib2/widgets/index.d.ts +1 -0
- package/dist/index.d.ts +145 -83
- package/package.json +5 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ScheduleFeature } from './ScheduleFeature';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
2
|
+
import { Schedule, ScheduleDate, ScheduleSlot } from '../../shared/types';
|
|
3
|
+
export type ScheduleFeatureProps = {
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
t?: WithTranslation['t'];
|
|
7
|
+
schedule?: Schedule;
|
|
8
|
+
locale?: string;
|
|
9
|
+
onDateClick?: (date: ScheduleDate, slots: ScheduleSlot[]) => void;
|
|
10
|
+
onSlotClick?: (slot: ScheduleSlot) => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDelayMount: (delay: number) => boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SupportedCurrency } from './common';
|
|
2
2
|
import { ClientSpecialistContractStatusEnum, ContractStatusEnum } from './contract';
|
|
3
|
+
import { Schedule } from './schedule';
|
|
3
4
|
import { Sex } from './user';
|
|
4
5
|
export type SpecialistEducation = {
|
|
5
6
|
institution_name: string;
|
|
@@ -66,4 +67,5 @@ export type Specialist = {
|
|
|
66
67
|
activated_at?: number;
|
|
67
68
|
matching_by_areas?: string[];
|
|
68
69
|
matching_by_specialization?: string[];
|
|
70
|
+
available_schedule?: Schedule;
|
|
69
71
|
};
|
|
@@ -19,13 +19,16 @@ export declare const videoStyle: import("tailwind-variants").TVReturnType<{
|
|
|
19
19
|
variant: {
|
|
20
20
|
default: {
|
|
21
21
|
playButton: string;
|
|
22
|
+
loadingIcon: string;
|
|
22
23
|
};
|
|
23
24
|
blue: {
|
|
24
25
|
playButton: string;
|
|
26
|
+
loadingIcon: string;
|
|
25
27
|
};
|
|
26
28
|
};
|
|
27
29
|
}, {
|
|
28
30
|
playButton: string;
|
|
31
|
+
loadingIcon: string;
|
|
29
32
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
30
33
|
buttonPlacement: {
|
|
31
34
|
center: {
|
|
@@ -47,9 +50,11 @@ export declare const videoStyle: import("tailwind-variants").TVReturnType<{
|
|
|
47
50
|
variant: {
|
|
48
51
|
default: {
|
|
49
52
|
playButton: string;
|
|
53
|
+
loadingIcon: string;
|
|
50
54
|
};
|
|
51
55
|
blue: {
|
|
52
56
|
playButton: string;
|
|
57
|
+
loadingIcon: string;
|
|
53
58
|
};
|
|
54
59
|
};
|
|
55
60
|
}, {
|
|
@@ -73,9 +78,11 @@ export declare const videoStyle: import("tailwind-variants").TVReturnType<{
|
|
|
73
78
|
variant: {
|
|
74
79
|
default: {
|
|
75
80
|
playButton: string;
|
|
81
|
+
loadingIcon: string;
|
|
76
82
|
};
|
|
77
83
|
blue: {
|
|
78
84
|
playButton: string;
|
|
85
|
+
loadingIcon: string;
|
|
79
86
|
};
|
|
80
87
|
};
|
|
81
88
|
}>, {
|
|
@@ -99,13 +106,16 @@ export declare const videoStyle: import("tailwind-variants").TVReturnType<{
|
|
|
99
106
|
variant: {
|
|
100
107
|
default: {
|
|
101
108
|
playButton: string;
|
|
109
|
+
loadingIcon: string;
|
|
102
110
|
};
|
|
103
111
|
blue: {
|
|
104
112
|
playButton: string;
|
|
113
|
+
loadingIcon: string;
|
|
105
114
|
};
|
|
106
115
|
};
|
|
107
116
|
}, {
|
|
108
117
|
playButton: string;
|
|
118
|
+
loadingIcon: string;
|
|
109
119
|
}, import("tailwind-variants").TVReturnType<{
|
|
110
120
|
buttonPlacement: {
|
|
111
121
|
center: {
|
|
@@ -127,13 +137,16 @@ export declare const videoStyle: import("tailwind-variants").TVReturnType<{
|
|
|
127
137
|
variant: {
|
|
128
138
|
default: {
|
|
129
139
|
playButton: string;
|
|
140
|
+
loadingIcon: string;
|
|
130
141
|
};
|
|
131
142
|
blue: {
|
|
132
143
|
playButton: string;
|
|
144
|
+
loadingIcon: string;
|
|
133
145
|
};
|
|
134
146
|
};
|
|
135
147
|
}, {
|
|
136
148
|
playButton: string;
|
|
149
|
+
loadingIcon: string;
|
|
137
150
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
138
151
|
buttonPlacement: {
|
|
139
152
|
center: {
|
|
@@ -155,9 +168,11 @@ export declare const videoStyle: import("tailwind-variants").TVReturnType<{
|
|
|
155
168
|
variant: {
|
|
156
169
|
default: {
|
|
157
170
|
playButton: string;
|
|
171
|
+
loadingIcon: string;
|
|
158
172
|
};
|
|
159
173
|
blue: {
|
|
160
174
|
playButton: string;
|
|
175
|
+
loadingIcon: string;
|
|
161
176
|
};
|
|
162
177
|
};
|
|
163
178
|
}, {
|
|
@@ -181,9 +196,11 @@ export declare const videoStyle: import("tailwind-variants").TVReturnType<{
|
|
|
181
196
|
variant: {
|
|
182
197
|
default: {
|
|
183
198
|
playButton: string;
|
|
199
|
+
loadingIcon: string;
|
|
184
200
|
};
|
|
185
201
|
blue: {
|
|
186
202
|
playButton: string;
|
|
203
|
+
loadingIcon: string;
|
|
187
204
|
};
|
|
188
205
|
};
|
|
189
206
|
}>, unknown, unknown, undefined>>;
|
|
@@ -2,7 +2,7 @@ import { WithTranslation } from 'react-i18next';
|
|
|
2
2
|
import { ClientSpecialistContractStatusEnum } from '../types/contract';
|
|
3
3
|
import { UserType } from '../types/user';
|
|
4
4
|
import { Specialist } from '../types/specialistTypes';
|
|
5
|
-
import { Session, SpecialistReview } from '../types';
|
|
5
|
+
import { Schedule, Session, SpecialistReview } from '../types';
|
|
6
6
|
export declare const mockT: (translate?: Record<string, string>) => WithTranslation['t'];
|
|
7
7
|
export declare const specialist: Specialist;
|
|
8
8
|
export declare const currentUser: UserType;
|
|
@@ -47,3 +47,4 @@ export declare const mockSessions: {
|
|
|
47
47
|
subscription?: import("../types").Subscription | undefined;
|
|
48
48
|
session_review?: import("../types").SessionReview | undefined;
|
|
49
49
|
}[];
|
|
50
|
+
export declare const getMockSchedule: (dayCount: number, hoursStart?: number, hoursEnd?: number) => Schedule;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
2
|
+
import { Specialist } from '../../shared/types/specialistTypes';
|
|
3
|
+
import { ScheduleDate, ScheduleSlot, SpecialistReview, UserType } from '../../shared';
|
|
4
|
+
export type SpecialistDetailWithTabsWidgetProps = {
|
|
5
|
+
t?: WithTranslation['t'];
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
isLoadingSchedule?: boolean;
|
|
8
|
+
specialist: Specialist;
|
|
9
|
+
reviews?: SpecialistReview[];
|
|
10
|
+
country: string;
|
|
11
|
+
isAuth?: boolean;
|
|
12
|
+
isSpecialistUnAvailable?: boolean;
|
|
13
|
+
onLoadMoreReviews?(): void;
|
|
14
|
+
currentUser?: UserType;
|
|
15
|
+
presentingElement?: HTMLElement;
|
|
16
|
+
onScheduleDateClick?: (date: ScheduleDate) => void;
|
|
17
|
+
onScheduleSlotClick?: (slot: ScheduleSlot) => void;
|
|
18
|
+
onOpenSuperSpecialistArticle?(): void;
|
|
19
|
+
onOpenNewSpecialistArticle?(): void;
|
|
20
|
+
onEditSpecialistReview?: (review: Pick<SpecialistReview, 'id' | 'review_rating' | 'text_of_review'>) => Promise<void>;
|
|
21
|
+
};
|