@mindly/ui-components 6.3.0 → 6.3.2

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 (29) hide show
  1. package/dist/cjs/configs/tailwind/colors.d.ts +1 -0
  2. package/dist/cjs/index.js +8 -8
  3. package/dist/cjs/lib2/features/SpecialistScheduleFeature/types.d.ts +8 -1
  4. package/dist/cjs/lib2/features/SpecialistShortInfoItemFeature/SpecialistShortInfoItemFeature.d.ts +1 -0
  5. package/dist/cjs/lib2/features/TextWithClampFeature/types.d.ts +1 -0
  6. package/dist/cjs/lib2/shared/ui/Avatar_v2/Avatar_v2.d.ts +1 -1
  7. package/dist/cjs/lib2/shared/ui/Video/Video.d.ts +1 -0
  8. package/dist/cjs/lib2/shared/ui/Video/styles.d.ts +101 -0
  9. package/dist/cjs/lib2/widgets/SpecialistCardWithScheduleWidget/SpecialistCardWithScheduleSkeleton.d.ts +3 -0
  10. package/dist/cjs/lib2/widgets/SpecialistCardWithScheduleWidget/SpecialistCardWithScheduleWidget.d.ts +4 -0
  11. package/dist/cjs/lib2/widgets/SpecialistCardWithScheduleWidget/index.d.ts +2 -0
  12. package/dist/cjs/lib2/widgets/SpecialistCardWithScheduleWidget/types.d.ts +18 -0
  13. package/dist/cjs/lib2/widgets/index.d.ts +1 -0
  14. package/dist/esm/configs/tailwind/colors.d.ts +1 -0
  15. package/dist/esm/index.js +8 -8
  16. package/dist/esm/lib2/features/SpecialistScheduleFeature/types.d.ts +8 -1
  17. package/dist/esm/lib2/features/SpecialistShortInfoItemFeature/SpecialistShortInfoItemFeature.d.ts +1 -0
  18. package/dist/esm/lib2/features/TextWithClampFeature/types.d.ts +1 -0
  19. package/dist/esm/lib2/shared/ui/Avatar_v2/Avatar_v2.d.ts +1 -1
  20. package/dist/esm/lib2/shared/ui/Video/Video.d.ts +1 -0
  21. package/dist/esm/lib2/shared/ui/Video/styles.d.ts +101 -0
  22. package/dist/esm/lib2/widgets/SpecialistCardWithScheduleWidget/SpecialistCardWithScheduleSkeleton.d.ts +3 -0
  23. package/dist/esm/lib2/widgets/SpecialistCardWithScheduleWidget/SpecialistCardWithScheduleWidget.d.ts +4 -0
  24. package/dist/esm/lib2/widgets/SpecialistCardWithScheduleWidget/index.d.ts +2 -0
  25. package/dist/esm/lib2/widgets/SpecialistCardWithScheduleWidget/types.d.ts +18 -0
  26. package/dist/esm/lib2/widgets/index.d.ts +1 -0
  27. package/dist/index.d.ts +116 -85
  28. package/package.json +1 -1
  29. package/src/configs/tailwind/colors.ts +1 -0
@@ -1,11 +1,18 @@
1
1
  import { WithTranslation } from 'react-i18next';
2
- import { ScheduleSlot } from '../../shared';
2
+ import { ScheduleSlot, TypographyVariantsEnum } from '../../shared';
3
3
  import { ScheduleDate } from '../../shared';
4
4
  export type ScheduleFeatureProps = {
5
5
  className?: string;
6
6
  t?: WithTranslation['t'];
7
7
  locale?: string;
8
8
  forceLoading?: boolean;
9
+ variant?: 'full' | 'flat';
10
+ slotsLimit?: number;
11
+ slotFormat?: string;
12
+ useClosestDateFormat?: boolean;
13
+ slotVariant?: TypographyVariantsEnum;
14
+ isBookingLoading?: boolean;
9
15
  onDateChange?: (date: ScheduleDate, slots: ScheduleSlot[]) => void;
10
16
  onSlotChange?: (slot: ScheduleSlot | null) => void;
17
+ onShowAll?: () => void;
11
18
  };
@@ -21,6 +21,7 @@ export type SpecialistShortInfoItemFeatureProps = {
21
21
  video_link?: string;
22
22
  onClickReview?(): void;
23
23
  onToggleFavourite?(): void;
24
+ onVideoPlay?(): void;
24
25
  };
25
26
  declare const SpecialistShortInfoItemFeature: FC<SpecialistShortInfoItemFeatureProps>;
26
27
  export default SpecialistShortInfoItemFeature;
@@ -12,4 +12,5 @@ export interface Props extends Omit<TypographyProps, 'children'> {
12
12
  t?: WithTranslation['t'];
13
13
  presentingElement?: HTMLElement;
14
14
  onMoreClick?(): void;
15
+ hideShowMore?: boolean;
15
16
  }
@@ -8,7 +8,7 @@ export type AvatarProps = {
8
8
  src?: string;
9
9
  alt?: string;
10
10
  showSkeleton?: boolean;
11
- onClick?(): void;
11
+ onClick?(e: React.MouseEvent<HTMLDivElement>): void;
12
12
  border?: boolean | string;
13
13
  };
14
14
  declare const _default: React.NamedExoticComponent<AvatarProps>;
@@ -6,6 +6,7 @@ export type VideoProps = {
6
6
  isWithWatermark?: boolean;
7
7
  isWithPlay?: boolean;
8
8
  buttonPlacement?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center';
9
+ buttonSize?: 'small' | 'medium' | 'large';
9
10
  hiddenVideo?: boolean;
10
11
  variant?: VariantEnum;
11
12
  preview?: string;
@@ -1,4 +1,18 @@
1
1
  export declare const videoStyle: import("tailwind-variants").TVReturnType<{
2
+ buttonSize: {
3
+ small: {
4
+ playButton: string;
5
+ playIcon: string;
6
+ };
7
+ medium: {
8
+ playButton: string;
9
+ playIcon: string;
10
+ };
11
+ large: {
12
+ playButton: string;
13
+ playIcon: string;
14
+ };
15
+ };
2
16
  buttonPlacement: {
3
17
  center: {
4
18
  playButton: string;
@@ -29,7 +43,22 @@ export declare const videoStyle: import("tailwind-variants").TVReturnType<{
29
43
  }, {
30
44
  playButton: string;
31
45
  loadingIcon: string;
46
+ playIcon: string;
32
47
  }, undefined, import("tailwind-variants/dist/config").TVConfig<{
48
+ buttonSize: {
49
+ small: {
50
+ playButton: string;
51
+ playIcon: string;
52
+ };
53
+ medium: {
54
+ playButton: string;
55
+ playIcon: string;
56
+ };
57
+ large: {
58
+ playButton: string;
59
+ playIcon: string;
60
+ };
61
+ };
33
62
  buttonPlacement: {
34
63
  center: {
35
64
  playButton: string;
@@ -58,6 +87,20 @@ export declare const videoStyle: import("tailwind-variants").TVReturnType<{
58
87
  };
59
88
  };
60
89
  }, {
90
+ buttonSize: {
91
+ small: {
92
+ playButton: string;
93
+ playIcon: string;
94
+ };
95
+ medium: {
96
+ playButton: string;
97
+ playIcon: string;
98
+ };
99
+ large: {
100
+ playButton: string;
101
+ playIcon: string;
102
+ };
103
+ };
61
104
  buttonPlacement: {
62
105
  center: {
63
106
  playButton: string;
@@ -86,6 +129,20 @@ export declare const videoStyle: import("tailwind-variants").TVReturnType<{
86
129
  };
87
130
  };
88
131
  }>, {
132
+ buttonSize: {
133
+ small: {
134
+ playButton: string;
135
+ playIcon: string;
136
+ };
137
+ medium: {
138
+ playButton: string;
139
+ playIcon: string;
140
+ };
141
+ large: {
142
+ playButton: string;
143
+ playIcon: string;
144
+ };
145
+ };
89
146
  buttonPlacement: {
90
147
  center: {
91
148
  playButton: string;
@@ -116,7 +173,22 @@ export declare const videoStyle: import("tailwind-variants").TVReturnType<{
116
173
  }, {
117
174
  playButton: string;
118
175
  loadingIcon: string;
176
+ playIcon: string;
119
177
  }, import("tailwind-variants").TVReturnType<{
178
+ buttonSize: {
179
+ small: {
180
+ playButton: string;
181
+ playIcon: string;
182
+ };
183
+ medium: {
184
+ playButton: string;
185
+ playIcon: string;
186
+ };
187
+ large: {
188
+ playButton: string;
189
+ playIcon: string;
190
+ };
191
+ };
120
192
  buttonPlacement: {
121
193
  center: {
122
194
  playButton: string;
@@ -147,7 +219,22 @@ export declare const videoStyle: import("tailwind-variants").TVReturnType<{
147
219
  }, {
148
220
  playButton: string;
149
221
  loadingIcon: string;
222
+ playIcon: string;
150
223
  }, undefined, import("tailwind-variants/dist/config").TVConfig<{
224
+ buttonSize: {
225
+ small: {
226
+ playButton: string;
227
+ playIcon: string;
228
+ };
229
+ medium: {
230
+ playButton: string;
231
+ playIcon: string;
232
+ };
233
+ large: {
234
+ playButton: string;
235
+ playIcon: string;
236
+ };
237
+ };
151
238
  buttonPlacement: {
152
239
  center: {
153
240
  playButton: string;
@@ -176,6 +263,20 @@ export declare const videoStyle: import("tailwind-variants").TVReturnType<{
176
263
  };
177
264
  };
178
265
  }, {
266
+ buttonSize: {
267
+ small: {
268
+ playButton: string;
269
+ playIcon: string;
270
+ };
271
+ medium: {
272
+ playButton: string;
273
+ playIcon: string;
274
+ };
275
+ large: {
276
+ playButton: string;
277
+ playIcon: string;
278
+ };
279
+ };
179
280
  buttonPlacement: {
180
281
  center: {
181
282
  playButton: string;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SpecialistCardSkeleton: React.FC;
3
+ export default SpecialistCardSkeleton;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SpecialistCardWithScheduleWidgetProps } from './types';
3
+ declare const _default: React.NamedExoticComponent<SpecialistCardWithScheduleWidgetProps>;
4
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as SpecialistCardWithScheduleWidget } from './SpecialistCardWithScheduleWidget';
2
+ export { default as SpecialistCardWithScheduleSkeleton } from './SpecialistCardWithScheduleSkeleton';
@@ -0,0 +1,18 @@
1
+ import { WithTranslation } from 'react-i18next';
2
+ import { ScheduleDate, ScheduleSlot, Specialist, UserType } from '../../shared/types';
3
+ export type SpecialistCardWithScheduleWidgetProps = {
4
+ t?: WithTranslation['t'];
5
+ loading?: boolean;
6
+ specialist: Specialist;
7
+ isFavourite?: boolean;
8
+ onToggleFavourite(): void;
9
+ onCardClick(): void;
10
+ currentUser?: UserType;
11
+ isBookingLoading?: boolean;
12
+ events?: {
13
+ onVideoClick?(): void;
14
+ onScheduleDateChange?: (date: ScheduleDate, slots: ScheduleSlot[]) => void;
15
+ onScheduleSlotChange?: (slot: ScheduleSlot | null) => void;
16
+ onScheduleShowAll?: () => void;
17
+ };
18
+ };
@@ -11,3 +11,4 @@ export * from './SessionDetailWidget';
11
11
  export * from './SessionPaymentsWidget';
12
12
  export * from './SpecialistPreviewWidget';
13
13
  export * from './SpecialistDetailWithTabsWidget';
14
+ export * from './SpecialistCardWithScheduleWidget';
@@ -51,6 +51,7 @@ declare const _default: {
51
51
  typography: {
52
52
  primary: string;
53
53
  secondary: string;
54
+ tertiary: string;
54
55
  };
55
56
  };
56
57
  badges: {