@mindly/ui-components 6.3.2 → 6.4.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 +4 -4
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingGoalSelectionScreenPreviewFeature/OnBoardingGoalSelectionScreenPreviewFeature.d.ts +16 -0
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingGoalSelectionScreenPreviewFeature/constants.d.ts +7 -0
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingGoalSelectionScreenPreviewFeature/index.d.ts +1 -0
- package/dist/cjs/lib2/features/OnBoardingFlow/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/types/onBoardingFlow.type.d.ts +17 -2
- package/dist/cjs/lib2/shared/ui/ListBox/ListBox.d.ts +1 -1
- package/dist/cjs/lib2/shared/ui/ListBox/types.d.ts +4 -0
- package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxItem.d.ts +3 -1
- package/dist/cjs/lib2/shared/ui/ListBoxItem/types.d.ts +1 -0
- package/dist/esm/index.js +4 -4
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingGoalSelectionScreenPreviewFeature/OnBoardingGoalSelectionScreenPreviewFeature.d.ts +16 -0
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingGoalSelectionScreenPreviewFeature/constants.d.ts +7 -0
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingGoalSelectionScreenPreviewFeature/index.d.ts +1 -0
- package/dist/esm/lib2/features/OnBoardingFlow/index.d.ts +1 -0
- package/dist/esm/lib2/shared/types/onBoardingFlow.type.d.ts +17 -2
- package/dist/esm/lib2/shared/ui/ListBox/ListBox.d.ts +1 -1
- package/dist/esm/lib2/shared/ui/ListBox/types.d.ts +4 -0
- package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxItem.d.ts +3 -1
- package/dist/esm/lib2/shared/ui/ListBoxItem/types.d.ts +1 -0
- package/dist/index.d.ts +103 -70
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OnBoardingGoalSelectScreenType } from '../../../shared';
|
|
3
|
+
import { OnboardingVariant } from '../../../shared';
|
|
4
|
+
import { WithTranslation } from 'react-i18next';
|
|
5
|
+
type OnBoardingGoalSelectionScreenPreviewFeatureProps = {
|
|
6
|
+
onChange?: (value: string[]) => void;
|
|
7
|
+
defaultValues?: string[];
|
|
8
|
+
variant?: OnboardingVariant;
|
|
9
|
+
template?: 'checkbox' | 'icon';
|
|
10
|
+
currentSelectionScreenCount?: number;
|
|
11
|
+
categoryLabel?: string;
|
|
12
|
+
initialVisibleCount?: number;
|
|
13
|
+
t?: WithTranslation['t'];
|
|
14
|
+
} & OnBoardingGoalSelectScreenType;
|
|
15
|
+
declare const _default: React.NamedExoticComponent<OnBoardingGoalSelectionScreenPreviewFeatureProps>;
|
|
16
|
+
export default _default;
|
package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingGoalSelectionScreenPreviewFeature/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OnBoardingGoalSelectionScreenPreviewFeature } from './OnBoardingGoalSelectionScreenPreviewFeature';
|
|
@@ -11,3 +11,4 @@ export * from './OnBoardingCompareScreenPreviewFeature ';
|
|
|
11
11
|
export * from './OnBoardingPaywallScreenPreviewFeature';
|
|
12
12
|
export * from './OnBoardingChartScreenPreviewFeature';
|
|
13
13
|
export * from './OnBoardingGraphScreenPreviewFeature';
|
|
14
|
+
export * from './OnBoardingGoalSelectionScreenPreviewFeature';
|
|
@@ -37,7 +37,8 @@ export declare enum OnBoardingScreenOptions {
|
|
|
37
37
|
PAYWALL = "PAYWALL",
|
|
38
38
|
COMPARE = "COMPARE",
|
|
39
39
|
CHART = "CHART",
|
|
40
|
-
GRAPH = "GRAPH"
|
|
40
|
+
GRAPH = "GRAPH",
|
|
41
|
+
GOAL = "GOAL"
|
|
41
42
|
}
|
|
42
43
|
export type OnBoardingScreenOptionType = {
|
|
43
44
|
id: string;
|
|
@@ -56,6 +57,11 @@ export type OnBoardingScreenButtonType = {
|
|
|
56
57
|
buttonColor?: string | null;
|
|
57
58
|
buttonTextColor?: string | null;
|
|
58
59
|
};
|
|
60
|
+
export type OnBoardingScreenSubgoalButtonType = {
|
|
61
|
+
subgoalButtonText?: string | null;
|
|
62
|
+
subgoalButtonColor?: string | null;
|
|
63
|
+
subgoalButtonTextColor?: string | null;
|
|
64
|
+
};
|
|
59
65
|
export type OnBoardingScreenSkipButtonType = {
|
|
60
66
|
skipButtonText?: string | null;
|
|
61
67
|
showSkipButton?: boolean;
|
|
@@ -116,6 +122,15 @@ export type OnBoardingMultiSelectScreenType = OnBoardingBaseScreenType & OnBoard
|
|
|
116
122
|
isIconView?: boolean;
|
|
117
123
|
options: OnBoardingScreenOptionType[];
|
|
118
124
|
};
|
|
125
|
+
export type OnBoardingGoalSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenSubgoalButtonType & OnBoardingScreenDescriptionType & {
|
|
126
|
+
isOptionView?: boolean;
|
|
127
|
+
subgoalIsOptionView?: boolean;
|
|
128
|
+
options: OnBoardingScreenOptionType[];
|
|
129
|
+
subgoalTitle?: string;
|
|
130
|
+
subgoalDescription?: string;
|
|
131
|
+
isShowCategoryName?: boolean;
|
|
132
|
+
maxSelectionCount?: number;
|
|
133
|
+
};
|
|
119
134
|
export type OnBoardingSingleSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenDescriptionType & {
|
|
120
135
|
isOptionView?: boolean;
|
|
121
136
|
isIconView?: boolean;
|
|
@@ -210,7 +225,7 @@ export type OnBoardingChartScreenType = OnBoardingBaseScreenType & OnBoardingScr
|
|
|
210
225
|
disclaimer?: string;
|
|
211
226
|
chart: ChartData;
|
|
212
227
|
};
|
|
213
|
-
export type OnBoardingScreensType = OnBoardingStartScreenType | OnBoardingMultiSelectScreenType | OnBoardingSingleSelectScreenType | OnBoardingSingleImageSelectScreenType | OnBoardingSingleRoundImageSelectScreenType | OnBoardingSingleScaleSelectScreenType | OnBoardingInfoScreenType | OnBoardingLoaderScreenType | OnBoardingReviewsScreenType | OnBoardingEmailScreenType | OnBoardingConfirmScreenType | OnBoardingCompareScreenType | OnBoardingPaywallScreenType | OnBoardingChartScreenType | OnBoardingGraphScreenType;
|
|
228
|
+
export type OnBoardingScreensType = OnBoardingStartScreenType | OnBoardingMultiSelectScreenType | OnBoardingGoalSelectScreenType | OnBoardingSingleSelectScreenType | OnBoardingSingleImageSelectScreenType | OnBoardingSingleRoundImageSelectScreenType | OnBoardingSingleScaleSelectScreenType | OnBoardingInfoScreenType | OnBoardingLoaderScreenType | OnBoardingReviewsScreenType | OnBoardingEmailScreenType | OnBoardingConfirmScreenType | OnBoardingCompareScreenType | OnBoardingPaywallScreenType | OnBoardingChartScreenType | OnBoardingGraphScreenType;
|
|
214
229
|
export type OnBoardingFlowType = {
|
|
215
230
|
id: string;
|
|
216
231
|
locale: string;
|
|
@@ -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, isTransparent, isRoundCorners, ...props }: ListBoxProps<T>): JSX.Element;
|
|
3
|
+
export default function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, className, variant, isOnboardingPreview, isTransparent, isRoundCorners, maxSelectionCount, initialVisibleCount, t, ...props }: ListBoxProps<T>): JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AriaListBoxProps } from 'react-aria';
|
|
2
2
|
import { IconProps, ResponseFileType } from '../../types';
|
|
3
|
+
import { WithTranslation } from 'react-i18next';
|
|
3
4
|
export declare enum ListBoxSelectionType {
|
|
4
5
|
Checkbox = "checkbox",
|
|
5
6
|
Radio = "radio",
|
|
@@ -21,4 +22,7 @@ export type ListBoxProps<T> = AriaListBoxProps<T> & {
|
|
|
21
22
|
selectionMode?: 'single' | 'multiple' | 'none';
|
|
22
23
|
isTransparent?: boolean;
|
|
23
24
|
isRoundCorners?: boolean;
|
|
25
|
+
maxSelectionCount?: number;
|
|
26
|
+
initialVisibleCount?: number;
|
|
27
|
+
t?: WithTranslation['t'];
|
|
24
28
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ItemProps } from 'react-stately';
|
|
3
3
|
import { ListBoxItemProps, ListOptionsProps } from './types';
|
|
4
|
-
export declare const ListOption: React.ForwardRefExoticComponent<ListOptionsProps &
|
|
4
|
+
export declare const ListOption: React.ForwardRefExoticComponent<ListOptionsProps & {
|
|
5
|
+
maxSelectionCount?: number | undefined;
|
|
6
|
+
} & React.RefAttributes<HTMLIonItemElement>>;
|
|
5
7
|
export declare const ListBoxItem: (props: ItemProps<unknown> & ListBoxItemProps) => JSX.Element;
|