@mindly/ui-components 6.2.14 → 6.3.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.
- package/dist/cjs/configs/tailwind/colors.d.ts +1 -0
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingSingleSelectionScreenPreviewFeature/OnBoardingSingleSelectionScreenPreviewFeature.d.ts +3 -3
- package/dist/cjs/lib2/features/OnBoardingFlow/components/OnBoardingSelectionHeader.d.ts +2 -0
- package/dist/cjs/lib2/features/SpecialistScheduleFeature/types.d.ts +8 -1
- package/dist/cjs/lib2/features/SpecialistShortInfoItemFeature/SpecialistShortInfoItemFeature.d.ts +1 -0
- package/dist/cjs/lib2/features/TextWithClampFeature/types.d.ts +1 -0
- package/dist/cjs/lib2/shared/assets/icons/IconAlignHorizontalTextCenter.d.ts +7 -0
- package/dist/cjs/lib2/shared/assets/icons/IconAlignHorizontalTextLeft.d.ts +7 -0
- package/dist/cjs/lib2/shared/assets/icons/IconAlignHorizontalTextRight.d.ts +7 -0
- package/dist/cjs/lib2/shared/assets/icons/index.d.ts +3 -0
- package/dist/cjs/lib2/shared/types/onBoardingFlow.type.d.ts +14 -7
- package/dist/cjs/lib2/shared/ui/Avatar_v2/Avatar_v2.d.ts +1 -1
- package/dist/cjs/lib2/shared/ui/ListBox/ListBox.d.ts +1 -1
- package/dist/cjs/lib2/shared/ui/ListBox/types.d.ts +3 -0
- package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxDefaultItem.d.ts +1 -1
- package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxIconItem.d.ts +1 -1
- package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxImageItem.d.ts +4 -2
- package/dist/cjs/lib2/shared/ui/ListBoxItem/types.d.ts +2 -0
- package/dist/cjs/lib2/shared/ui/Picture/Picture.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 +101 -0
- package/dist/cjs/lib2/widgets/SpecialistCardWithScheduleWidget/SpecialistCardWithScheduleSkeleton.d.ts +3 -0
- package/dist/cjs/lib2/widgets/SpecialistCardWithScheduleWidget/SpecialistCardWithScheduleWidget.d.ts +4 -0
- package/dist/cjs/lib2/widgets/SpecialistCardWithScheduleWidget/index.d.ts +2 -0
- package/dist/cjs/lib2/widgets/SpecialistCardWithScheduleWidget/types.d.ts +18 -0
- package/dist/cjs/lib2/widgets/index.d.ts +1 -0
- package/dist/esm/configs/tailwind/colors.d.ts +1 -0
- package/dist/esm/index.js +8 -8
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingSingleSelectionScreenPreviewFeature/OnBoardingSingleSelectionScreenPreviewFeature.d.ts +3 -3
- package/dist/esm/lib2/features/OnBoardingFlow/components/OnBoardingSelectionHeader.d.ts +2 -0
- package/dist/esm/lib2/features/SpecialistScheduleFeature/types.d.ts +8 -1
- package/dist/esm/lib2/features/SpecialistShortInfoItemFeature/SpecialistShortInfoItemFeature.d.ts +1 -0
- package/dist/esm/lib2/features/TextWithClampFeature/types.d.ts +1 -0
- package/dist/esm/lib2/shared/assets/icons/IconAlignHorizontalTextCenter.d.ts +7 -0
- package/dist/esm/lib2/shared/assets/icons/IconAlignHorizontalTextLeft.d.ts +7 -0
- package/dist/esm/lib2/shared/assets/icons/IconAlignHorizontalTextRight.d.ts +7 -0
- package/dist/esm/lib2/shared/assets/icons/index.d.ts +3 -0
- package/dist/esm/lib2/shared/types/onBoardingFlow.type.d.ts +14 -7
- package/dist/esm/lib2/shared/ui/Avatar_v2/Avatar_v2.d.ts +1 -1
- package/dist/esm/lib2/shared/ui/ListBox/ListBox.d.ts +1 -1
- package/dist/esm/lib2/shared/ui/ListBox/types.d.ts +3 -0
- package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxDefaultItem.d.ts +1 -1
- package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxIconItem.d.ts +1 -1
- package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxImageItem.d.ts +4 -2
- package/dist/esm/lib2/shared/ui/ListBoxItem/types.d.ts +2 -0
- package/dist/esm/lib2/shared/ui/Picture/Picture.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 +101 -0
- package/dist/esm/lib2/widgets/SpecialistCardWithScheduleWidget/SpecialistCardWithScheduleSkeleton.d.ts +3 -0
- package/dist/esm/lib2/widgets/SpecialistCardWithScheduleWidget/SpecialistCardWithScheduleWidget.d.ts +4 -0
- package/dist/esm/lib2/widgets/SpecialistCardWithScheduleWidget/index.d.ts +2 -0
- package/dist/esm/lib2/widgets/SpecialistCardWithScheduleWidget/types.d.ts +18 -0
- package/dist/esm/lib2/widgets/index.d.ts +1 -0
- package/dist/index.d.ts +308 -246
- package/package.json +1 -1
- package/src/configs/tailwind/colors.ts +1 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { OnBoardingSingleSelectScreenType, OnBoardingSingleImageSelectScreenType, OnBoardingSingleScaleSelectScreenType } from '../../../shared';
|
|
2
|
+
import { OnBoardingSingleSelectScreenType, OnBoardingSingleImageSelectScreenType, OnBoardingSingleScaleSelectScreenType, OnBoardingSingleRoundImageSelectScreenType } from '../../../shared';
|
|
3
3
|
import { OnboardingVariant } from '../../../shared/';
|
|
4
4
|
type OnBoardingSingleSelectionScreenPreviewFeatureProps = {
|
|
5
5
|
onChange?: (value: string) => void;
|
|
6
6
|
defaultValues?: string[];
|
|
7
7
|
variant?: OnboardingVariant;
|
|
8
|
-
template?: 'radio' | 'image' | 'emoji' | 'icon';
|
|
9
|
-
} & OnBoardingSingleSelectScreenType & OnBoardingSingleImageSelectScreenType & OnBoardingSingleScaleSelectScreenType;
|
|
8
|
+
template?: 'radio' | 'image' | 'roundImage' | 'emoji' | 'icon';
|
|
9
|
+
} & OnBoardingSingleSelectScreenType & OnBoardingSingleImageSelectScreenType & OnBoardingSingleRoundImageSelectScreenType & OnBoardingSingleScaleSelectScreenType;
|
|
10
10
|
declare const _default: React.NamedExoticComponent<OnBoardingSingleSelectionScreenPreviewFeatureProps>;
|
|
11
11
|
export default _default;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
type OnBoardingHeaderProps = {
|
|
3
3
|
title?: string | null;
|
|
4
|
+
subTitle?: string | null;
|
|
4
5
|
description?: string | null;
|
|
5
6
|
isPreview?: boolean;
|
|
7
|
+
template?: 'radio' | 'image' | 'roundImage' | 'emoji' | 'icon';
|
|
6
8
|
};
|
|
7
9
|
declare const OnBoardingSelectionHeader: FC<OnBoardingHeaderProps>;
|
|
8
10
|
export default OnBoardingSelectionHeader;
|
|
@@ -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
|
};
|
package/dist/esm/lib2/features/SpecialistShortInfoItemFeature/SpecialistShortInfoItemFeature.d.ts
CHANGED
|
@@ -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;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IconProps extends React.SVGAttributes<SVGElement> {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function IconAlignHorizontalTextCenter({ size, ...other }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IconProps extends React.SVGAttributes<SVGElement> {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function IconAlignHorizontalTextLeft({ size, ...other }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IconProps extends React.SVGAttributes<SVGElement> {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function IconAlignHorizontalTextRight({ size, ...other }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -137,3 +137,6 @@ export * from './IconArrowRange';
|
|
|
137
137
|
export * from './IconLeaderboard';
|
|
138
138
|
export * from './IconCheckboxThinUnchecked';
|
|
139
139
|
export * from './IconMooving';
|
|
140
|
+
export * from './IconAlignHorizontalTextCenter';
|
|
141
|
+
export * from './IconAlignHorizontalTextLeft';
|
|
142
|
+
export * from './IconAlignHorizontalTextRight';
|
|
@@ -26,6 +26,7 @@ export declare enum OnBoardingScreenOptions {
|
|
|
26
26
|
MULTI_SELECT = "MULTI_SELECT",
|
|
27
27
|
SINGLE_SELECT = "SINGLE_SELECT",
|
|
28
28
|
SINGLE_IMAGE_SELECT = "SINGLE_IMAGE_SELECT",
|
|
29
|
+
SINGLE_ROUND_IMAGE_SELECT = "SINGLE_ROUND_IMAGE_SELECT",
|
|
29
30
|
SINGLE_SCALE_SELECT = "SINGLE_SCALE_SELECT",
|
|
30
31
|
INFO = "INFO",
|
|
31
32
|
LOADER = "LOADER",
|
|
@@ -59,10 +60,6 @@ export type OnBoardingScreenSkipButtonType = {
|
|
|
59
60
|
skipButtonText?: string | null;
|
|
60
61
|
showSkipButton?: boolean;
|
|
61
62
|
};
|
|
62
|
-
export type OnBoardingScreenBgType = {
|
|
63
|
-
backgroundColor?: string | null;
|
|
64
|
-
contentStyle: OnBoardingScreenStyleOptions;
|
|
65
|
-
};
|
|
66
63
|
export type OnBoardingScreenDescriptionType = {
|
|
67
64
|
title?: string | null;
|
|
68
65
|
description?: string | null;
|
|
@@ -105,11 +102,13 @@ export type OnBoardingBaseScreenType = {
|
|
|
105
102
|
isPageView?: boolean;
|
|
106
103
|
hideTimer?: boolean;
|
|
107
104
|
isStartScreen?: boolean;
|
|
105
|
+
backgroundColor?: string | null;
|
|
106
|
+
contentStyle: OnBoardingScreenStyleOptions;
|
|
108
107
|
};
|
|
109
|
-
export type OnBoardingStartScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenSkipButtonType &
|
|
108
|
+
export type OnBoardingStartScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenSkipButtonType & OnBoardingScreenDescriptionType & {
|
|
110
109
|
image?: ResponseFileType | null;
|
|
111
110
|
};
|
|
112
|
-
export type OnBoardingInfoScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType &
|
|
111
|
+
export type OnBoardingInfoScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenDescriptionType & {
|
|
113
112
|
image?: ResponseFileType | null;
|
|
114
113
|
};
|
|
115
114
|
export type OnBoardingMultiSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenDescriptionType & {
|
|
@@ -127,6 +126,14 @@ export type OnBoardingSingleImageSelectScreenType = OnBoardingBaseScreenType & O
|
|
|
127
126
|
legalText?: string;
|
|
128
127
|
options: OnBoardingScreenOptionType[];
|
|
129
128
|
};
|
|
129
|
+
export type OnBoardingSingleRoundImageSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenDescriptionType & {
|
|
130
|
+
legalText?: string;
|
|
131
|
+
options: OnBoardingScreenOptionType[];
|
|
132
|
+
isRoundCorners?: boolean;
|
|
133
|
+
image?: ResponseFileType | null;
|
|
134
|
+
horizontalImageAlignment?: 'left' | 'right' | 'center';
|
|
135
|
+
subTitle?: string | null;
|
|
136
|
+
};
|
|
130
137
|
export type OnBoardingSingleScaleSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenDescriptionType & {
|
|
131
138
|
minLabel?: string;
|
|
132
139
|
maxLabel?: string;
|
|
@@ -203,7 +210,7 @@ export type OnBoardingChartScreenType = OnBoardingBaseScreenType & OnBoardingScr
|
|
|
203
210
|
disclaimer?: string;
|
|
204
211
|
chart: ChartData;
|
|
205
212
|
};
|
|
206
|
-
export type OnBoardingScreensType = OnBoardingStartScreenType | OnBoardingMultiSelectScreenType | OnBoardingSingleSelectScreenType | OnBoardingSingleImageSelectScreenType | OnBoardingSingleScaleSelectScreenType | OnBoardingInfoScreenType | OnBoardingLoaderScreenType | OnBoardingReviewsScreenType | OnBoardingEmailScreenType | OnBoardingConfirmScreenType | OnBoardingCompareScreenType | OnBoardingPaywallScreenType | OnBoardingChartScreenType | OnBoardingGraphScreenType;
|
|
213
|
+
export type OnBoardingScreensType = OnBoardingStartScreenType | OnBoardingMultiSelectScreenType | OnBoardingSingleSelectScreenType | OnBoardingSingleImageSelectScreenType | OnBoardingSingleRoundImageSelectScreenType | OnBoardingSingleScaleSelectScreenType | OnBoardingInfoScreenType | OnBoardingLoaderScreenType | OnBoardingReviewsScreenType | OnBoardingEmailScreenType | OnBoardingConfirmScreenType | OnBoardingCompareScreenType | OnBoardingPaywallScreenType | OnBoardingChartScreenType | OnBoardingGraphScreenType;
|
|
207
214
|
export type OnBoardingFlowType = {
|
|
208
215
|
id: string;
|
|
209
216
|
locale: string;
|
|
@@ -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>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ListBoxProps } from './types';
|
|
3
|
-
export default function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, className, variant, isOnboardingPreview, ...props }: ListBoxProps<T>): JSX.Element;
|
|
3
|
+
export default function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, className, variant, isOnboardingPreview, isTransparent, isRoundCorners, ...props }: ListBoxProps<T>): JSX.Element;
|
|
@@ -4,6 +4,7 @@ export declare enum ListBoxSelectionType {
|
|
|
4
4
|
Checkbox = "checkbox",
|
|
5
5
|
Radio = "radio",
|
|
6
6
|
Image = "image",
|
|
7
|
+
RoundImage = "roundImage",
|
|
7
8
|
Emoji = "emoji",
|
|
8
9
|
Icon = "icon"
|
|
9
10
|
}
|
|
@@ -18,4 +19,6 @@ export type ListBoxProps<T> = AriaListBoxProps<T> & {
|
|
|
18
19
|
image?: ResponseFileType;
|
|
19
20
|
isOnboardingPreview?: boolean;
|
|
20
21
|
selectionMode?: 'single' | 'multiple' | 'none';
|
|
22
|
+
isTransparent?: boolean;
|
|
23
|
+
isRoundCorners?: boolean;
|
|
21
24
|
};
|
|
@@ -13,6 +13,6 @@ declare const _default: React.MemoExoticComponent<({ item, isSelected, selection
|
|
|
13
13
|
selectionPosition: "end" | "start";
|
|
14
14
|
enableSelection: boolean;
|
|
15
15
|
selectedIconProps: IconProps;
|
|
16
|
-
type: "image" | "icon" | "checkbox" | "radio" | "emoji";
|
|
16
|
+
type: "image" | "icon" | "checkbox" | "radio" | "emoji" | "roundImage";
|
|
17
17
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
18
18
|
export default _default;
|
|
@@ -8,7 +8,7 @@ declare const _default: React.MemoExoticComponent<({ item, isSelected, enableSel
|
|
|
8
8
|
variant: VariantType;
|
|
9
9
|
item: Node<unknown>;
|
|
10
10
|
enableSelection: boolean;
|
|
11
|
-
type: "image" | "icon" | "checkbox" | "radio" | "emoji";
|
|
11
|
+
type: "image" | "icon" | "checkbox" | "radio" | "emoji" | "roundImage";
|
|
12
12
|
isOnboardingPreview?: boolean | undefined;
|
|
13
13
|
image?: ResponseFileType | null | undefined;
|
|
14
14
|
selectionMode?: "none" | "multiple" | "single" | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { DOMAttributes } from 'react';
|
|
2
2
|
import { Node } from 'react-stately';
|
|
3
3
|
import { ResponseFileType } from '../../types';
|
|
4
|
-
import { VariantType } from '../ListBox/types';
|
|
4
|
+
import { ListBoxSelectionType, VariantType } from '../ListBox/types';
|
|
5
5
|
type ListBoxImageItemProps = {
|
|
6
6
|
isSelected: boolean;
|
|
7
7
|
item: Node<unknown>;
|
|
@@ -9,6 +9,8 @@ type ListBoxImageItemProps = {
|
|
|
9
9
|
variant: VariantType;
|
|
10
10
|
labelProps: DOMAttributes<HTMLDivElement>;
|
|
11
11
|
isOnboardingPreview?: boolean;
|
|
12
|
+
isRoundCorners?: boolean;
|
|
13
|
+
type: ListBoxSelectionType.Image | ListBoxSelectionType.RoundImage | 'image' | 'roundImage';
|
|
12
14
|
};
|
|
13
|
-
declare const _default: React.MemoExoticComponent<({ isSelected, item, image, variant, labelProps, isOnboardingPreview, }: ListBoxImageItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
15
|
+
declare const _default: React.MemoExoticComponent<({ isSelected, item, image, variant, labelProps, isOnboardingPreview, isRoundCorners, type, }: ListBoxImageItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
14
16
|
export default _default;
|
|
@@ -16,6 +16,8 @@ export type ListOptionsProps = {
|
|
|
16
16
|
image?: ResponseFileType | null;
|
|
17
17
|
isOnboardingPreview?: boolean;
|
|
18
18
|
selectionMode?: 'single' | 'multiple' | 'none';
|
|
19
|
+
isTransparent?: boolean;
|
|
20
|
+
isRoundCorners?: boolean;
|
|
19
21
|
};
|
|
20
22
|
export type ListBoxItemProps = {
|
|
21
23
|
icon?: React.ReactNode;
|
|
@@ -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,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
|
+
};
|