@mindly/ui-components 5.103.2 → 5.104.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 +6 -6
- package/dist/cjs/lib2/features/Charts/types.d.ts +4 -4
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingChartScreenPreviewFeature/OnBoardingChartScreenPreviewFeature.d.ts +3 -3
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingCompareScreenPreviewFeature /OnBoardingCompareScreenPreviewFeature.d.ts +3 -3
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/OnBoardingPaywallScreenPreviewFeature.d.ts +5 -5
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts +2 -25
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingSingleSelectionScreenPreviewFeature/OnBoardingSingleSelectionScreenPreviewFeature.d.ts +3 -2
- package/dist/cjs/lib2/features/OnBoardingFlow/components/OnBoardingSelectionHeader.d.ts +8 -0
- package/dist/cjs/lib2/features/TariffFeature/TariffFeature.stories.d.ts +1 -0
- package/dist/cjs/lib2/features/TariffFeature/styles.d.ts +49 -0
- package/dist/cjs/lib2/features/TariffFeature/types.d.ts +5 -5
- package/dist/cjs/lib2/shared/assets/icons/IconChart.d.ts +3 -0
- package/dist/cjs/lib2/shared/assets/icons/IconCompare.d.ts +3 -0
- package/dist/cjs/lib2/shared/assets/icons/IconPaywall.d.ts +3 -0
- package/dist/cjs/lib2/shared/assets/icons/IconRadioPartial.d.ts +3 -0
- package/dist/cjs/lib2/shared/assets/icons/index.d.ts +4 -0
- package/dist/cjs/lib2/shared/types/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/types/onBoardingFlow.type.d.ts +15 -2
- package/dist/cjs/lib2/shared/types/tariff.d.ts +14 -0
- package/dist/cjs/lib2/shared/ui/ListBox/ListBox.d.ts +1 -1
- package/dist/cjs/lib2/shared/ui/ListBox/types.d.ts +9 -2
- package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxImageItem.d.ts +17 -0
- package/dist/cjs/lib2/shared/ui/ListBoxItem/types.d.ts +13 -1
- package/dist/esm/configs/tailwind/colors.d.ts +1 -0
- package/dist/esm/index.js +7 -7
- package/dist/esm/lib2/features/Charts/types.d.ts +4 -4
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingChartScreenPreviewFeature/OnBoardingChartScreenPreviewFeature.d.ts +3 -3
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingCompareScreenPreviewFeature /OnBoardingCompareScreenPreviewFeature.d.ts +3 -3
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/OnBoardingPaywallScreenPreviewFeature.d.ts +5 -5
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts +2 -25
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingSingleSelectionScreenPreviewFeature/OnBoardingSingleSelectionScreenPreviewFeature.d.ts +3 -2
- package/dist/esm/lib2/features/OnBoardingFlow/components/OnBoardingSelectionHeader.d.ts +8 -0
- package/dist/esm/lib2/features/TariffFeature/TariffFeature.stories.d.ts +1 -0
- package/dist/esm/lib2/features/TariffFeature/styles.d.ts +49 -0
- package/dist/esm/lib2/features/TariffFeature/types.d.ts +5 -5
- package/dist/esm/lib2/shared/assets/icons/IconChart.d.ts +3 -0
- package/dist/esm/lib2/shared/assets/icons/IconCompare.d.ts +3 -0
- package/dist/esm/lib2/shared/assets/icons/IconPaywall.d.ts +3 -0
- package/dist/esm/lib2/shared/assets/icons/IconRadioPartial.d.ts +3 -0
- package/dist/esm/lib2/shared/assets/icons/index.d.ts +4 -0
- package/dist/esm/lib2/shared/types/index.d.ts +1 -0
- package/dist/esm/lib2/shared/types/onBoardingFlow.type.d.ts +15 -2
- package/dist/esm/lib2/shared/types/tariff.d.ts +14 -0
- package/dist/esm/lib2/shared/ui/ListBox/ListBox.d.ts +1 -1
- package/dist/esm/lib2/shared/ui/ListBox/types.d.ts +9 -2
- package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxImageItem.d.ts +17 -0
- package/dist/esm/lib2/shared/ui/ListBoxItem/types.d.ts +13 -1
- package/dist/index.d.ts +144 -88
- package/package.json +1 -1
- package/src/configs/tailwind/colors.ts +2 -0
- package/src/lib2/shared/css/tailwind.css +1 -0
|
@@ -11,8 +11,8 @@ export type ChartData<T = ChartType> = T extends 'area' ? {
|
|
|
11
11
|
strokeColor?: string;
|
|
12
12
|
fillColor?: string;
|
|
13
13
|
data: {
|
|
14
|
-
|
|
15
|
-
|
|
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
|
|
27
|
-
|
|
26
|
+
[key: string]: string | number;
|
|
27
|
+
label: string;
|
|
28
28
|
}[];
|
|
29
29
|
yAxisLabels: string[];
|
|
30
30
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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
|
|
10
|
-
export default
|
|
9
|
+
declare const OnBoardingChartScreenPreviewFeature: FC<OnBoardingChartScreenPreviewFeatureProps>;
|
|
10
|
+
export default OnBoardingChartScreenPreviewFeature;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
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
|
|
9
|
-
export default
|
|
8
|
+
declare const OnBoardingCompareScreenPreviewFeature: FC<OnBoardingPaywallScreenPreviewFeatureProps>;
|
|
9
|
+
export default OnBoardingCompareScreenPreviewFeature;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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,8 @@ type OnBoardingPaywallScreenPreviewFeatureProps = {
|
|
|
6
6
|
variant?: OnboardingVariant;
|
|
7
7
|
specialists: Specialist[];
|
|
8
8
|
reviews: MindlyReview[];
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
locale?: string;
|
|
10
|
+
useAdditionalDiscount?: boolean;
|
|
11
11
|
} & OnBoardingPaywallScreenType;
|
|
12
|
-
declare const
|
|
13
|
-
export default
|
|
12
|
+
declare const OnBoardingPaywallScreenPreviewFeature: FC<OnBoardingPaywallScreenPreviewFeatureProps>;
|
|
13
|
+
export default OnBoardingPaywallScreenPreviewFeature;
|
package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare const images: {
|
|
|
22
22
|
};
|
|
23
23
|
export declare const compareItems: {
|
|
24
24
|
id: string;
|
|
25
|
-
|
|
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
|
-
|
|
36
|
+
label: string;
|
|
60
37
|
self: number;
|
|
61
38
|
medetation: number;
|
|
62
39
|
therapy: number;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { OnBoardingSingleSelectScreenType } from '../../../shared';
|
|
2
|
+
import { OnBoardingSingleSelectScreenType, OnBoardingSingleImageSelectScreenType } 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
|
-
|
|
8
|
+
template?: 'radio' | 'image';
|
|
9
|
+
} & OnBoardingSingleSelectScreenType & OnBoardingSingleImageSelectScreenType;
|
|
9
10
|
declare const _default: React.NamedExoticComponent<OnBoardingSingleSelectionScreenPreviewFeatureProps>;
|
|
10
11
|
export default _default;
|
|
@@ -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
|
-
|
|
6
|
+
label: string;
|
|
8
7
|
priceBefore?: number;
|
|
9
8
|
price: number;
|
|
10
|
-
|
|
9
|
+
locale?: string;
|
|
11
10
|
id: string;
|
|
12
11
|
isSelected: boolean;
|
|
13
|
-
|
|
12
|
+
badge?: string;
|
|
14
13
|
variant: VariantEnum;
|
|
15
14
|
description?: string;
|
|
16
15
|
advantagesList?: {
|
|
17
16
|
id: string;
|
|
18
|
-
|
|
17
|
+
label: string;
|
|
19
18
|
}[];
|
|
20
19
|
initialIsInfoOpen?: boolean;
|
|
20
|
+
isPreview?: boolean;
|
|
21
21
|
onSelect(id: string): void;
|
|
22
22
|
};
|
|
@@ -129,3 +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';
|
|
135
|
+
export * from './IconRadioPartial';
|
|
@@ -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
|
}
|
|
@@ -24,6 +25,7 @@ export declare enum OnBoardingScreenOptions {
|
|
|
24
25
|
START = "START",
|
|
25
26
|
MULTI_SELECT = "MULTI_SELECT",
|
|
26
27
|
SINGLE_SELECT = "SINGLE_SELECT",
|
|
28
|
+
SINGLE_IMAGE_SELECT = "SINGLE_IMAGE_SELECT",
|
|
27
29
|
INFO = "INFO",
|
|
28
30
|
LOADER = "LOADER",
|
|
29
31
|
REVIEWS = "REVIEWS",
|
|
@@ -40,6 +42,9 @@ export type OnBoardingScreenOptionType = {
|
|
|
40
42
|
isDefault?: boolean;
|
|
41
43
|
filtrationAnswerId?: string;
|
|
42
44
|
};
|
|
45
|
+
export type OnBoardingScreenOptionWithImageType = OnBoardingScreenOptionType & {
|
|
46
|
+
image?: ResponseFileType | null;
|
|
47
|
+
};
|
|
43
48
|
export type OnBoardingScreenButtonType = {
|
|
44
49
|
buttonText?: string | null;
|
|
45
50
|
buttonColor?: string | null;
|
|
@@ -106,8 +111,13 @@ export type OnBoardingMultiSelectScreenType = OnBoardingBaseScreenType & OnBoard
|
|
|
106
111
|
options: OnBoardingScreenOptionType[];
|
|
107
112
|
};
|
|
108
113
|
export type OnBoardingSingleSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenDescriptionType & {
|
|
114
|
+
legalText?: string;
|
|
109
115
|
options: OnBoardingScreenOptionType[];
|
|
110
116
|
};
|
|
117
|
+
export type OnBoardingSingleImageSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenDescriptionType & {
|
|
118
|
+
legalText?: string;
|
|
119
|
+
options: OnBoardingScreenOptionWithImageType[];
|
|
120
|
+
};
|
|
111
121
|
export type OnBoardingLoaderScreenType = OnBoardingBaseScreenType & {
|
|
112
122
|
title?: string | null;
|
|
113
123
|
additionalText?: string;
|
|
@@ -145,14 +155,17 @@ export type OnBoardingConfirmScreenType = OnBoardingBaseScreenType & OnBoardingS
|
|
|
145
155
|
export type OnBoardingPaywallScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenTranslationsType & OnBoardingScreenErrorsType & {
|
|
146
156
|
title: string;
|
|
147
157
|
description?: string;
|
|
158
|
+
tariffs: Tariff[];
|
|
159
|
+
percentDiscount: number;
|
|
160
|
+
additionalDiscount?: number;
|
|
148
161
|
};
|
|
149
162
|
export type OnBoardingCompareScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenTranslationsType & OnBoardingScreenErrorsType & {
|
|
150
163
|
title: string;
|
|
151
164
|
description?: string;
|
|
152
165
|
otherPlatformsTitle?: string;
|
|
153
|
-
|
|
166
|
+
listItems: {
|
|
154
167
|
id: string;
|
|
155
|
-
|
|
168
|
+
label: string;
|
|
156
169
|
hasInMindly: boolean;
|
|
157
170
|
hasInCompetitors: boolean;
|
|
158
171
|
}[];
|
|
@@ -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
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ListBoxProps } from './types';
|
|
2
|
-
export default function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, className, variant, ...props }: ListBoxProps<T>): JSX.Element;
|
|
2
|
+
export default function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, className, selectionImageClassNames, variant, ...props }: ListBoxProps<T>): JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AriaListBoxProps } from 'react-aria';
|
|
2
|
-
import { IconProps } from '../../types';
|
|
2
|
+
import { IconProps, ResponseFileType } from '../../types';
|
|
3
3
|
export declare enum ListBoxSelectionType {
|
|
4
4
|
Checkbox = "checkbox",
|
|
5
|
-
Radio = "radio"
|
|
5
|
+
Radio = "radio",
|
|
6
|
+
Image = "image"
|
|
6
7
|
}
|
|
7
8
|
export type VariantType = 'default' | 'blue';
|
|
8
9
|
export type ListBoxProps<T> = AriaListBoxProps<T> & {
|
|
@@ -10,6 +11,12 @@ export type ListBoxProps<T> = AriaListBoxProps<T> & {
|
|
|
10
11
|
enableSelection?: boolean;
|
|
11
12
|
selectedIconProps?: IconProps;
|
|
12
13
|
selectionPosition?: 'start' | 'end';
|
|
14
|
+
selectionImageClassNames?: {
|
|
15
|
+
label?: string;
|
|
16
|
+
arrowIcon?: string;
|
|
17
|
+
bottomContainer?: string;
|
|
18
|
+
} | null;
|
|
13
19
|
className?: string;
|
|
14
20
|
variant?: VariantType;
|
|
21
|
+
image?: ResponseFileType;
|
|
15
22
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Node } from 'react-stately';
|
|
3
|
+
import { ResponseFileType } from '../../types';
|
|
4
|
+
import { VariantType } from '../ListBox/types';
|
|
5
|
+
type ListBoxImageItemProps = {
|
|
6
|
+
isSelected: boolean;
|
|
7
|
+
item: Node<unknown>;
|
|
8
|
+
image?: ResponseFileType | null;
|
|
9
|
+
variant: VariantType;
|
|
10
|
+
selectionImageClassNames?: {
|
|
11
|
+
label?: string;
|
|
12
|
+
arrowIcon?: string;
|
|
13
|
+
bottomContainer?: string;
|
|
14
|
+
} | null;
|
|
15
|
+
};
|
|
16
|
+
declare const _default: React.MemoExoticComponent<({ isSelected, item, image, variant, selectionImageClassNames, }: ListBoxImageItemProps) => JSX.Element>;
|
|
17
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ListState, Node } from 'react-stately';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ListBoxSelectionType, VariantType } from '../ListBox';
|
|
4
|
-
import { IconProps } from '../../types';
|
|
4
|
+
import { IconProps, ResponseFileType } from '../../types';
|
|
5
5
|
export type ListOptionsProps = {
|
|
6
6
|
item: Node<unknown>;
|
|
7
7
|
state: ListState<unknown>;
|
|
@@ -13,6 +13,12 @@ export type ListOptionsProps = {
|
|
|
13
13
|
selectionPosition?: 'start' | 'end';
|
|
14
14
|
enableSelection?: boolean;
|
|
15
15
|
variant?: VariantType;
|
|
16
|
+
image?: ResponseFileType | null;
|
|
17
|
+
selectionImageClassNames?: {
|
|
18
|
+
label?: string;
|
|
19
|
+
arrowIcon?: string;
|
|
20
|
+
bottomContainer?: string;
|
|
21
|
+
} | null;
|
|
16
22
|
};
|
|
17
23
|
export type ListBoxItemProps = {
|
|
18
24
|
icon?: React.ReactNode;
|
|
@@ -22,8 +28,14 @@ export type ListBoxItemProps = {
|
|
|
22
28
|
value?: string;
|
|
23
29
|
children: React.ReactNode;
|
|
24
30
|
className?: string;
|
|
31
|
+
sselectionImageClassNames?: {
|
|
32
|
+
label?: string;
|
|
33
|
+
arrowIcon?: string;
|
|
34
|
+
bottomContainer?: string;
|
|
35
|
+
} | null;
|
|
25
36
|
customContent?: boolean;
|
|
26
37
|
onClick?: HTMLIonItemElement['onclick'];
|
|
27
38
|
variant?: VariantType;
|
|
39
|
+
image?: ResponseFileType | null;
|
|
28
40
|
};
|
|
29
41
|
export type { Selection } from 'react-stately';
|