@mindly/ui-components 6.3.1 → 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.
Files changed (22) hide show
  1. package/dist/cjs/index.js +5 -5
  2. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingGoalSelectionScreenPreviewFeature/OnBoardingGoalSelectionScreenPreviewFeature.d.ts +16 -0
  3. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingGoalSelectionScreenPreviewFeature/constants.d.ts +7 -0
  4. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingGoalSelectionScreenPreviewFeature/index.d.ts +1 -0
  5. package/dist/cjs/lib2/features/OnBoardingFlow/index.d.ts +1 -0
  6. package/dist/cjs/lib2/shared/types/onBoardingFlow.type.d.ts +17 -2
  7. package/dist/cjs/lib2/shared/ui/ListBox/ListBox.d.ts +1 -1
  8. package/dist/cjs/lib2/shared/ui/ListBox/types.d.ts +4 -0
  9. package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxItem.d.ts +3 -1
  10. package/dist/cjs/lib2/shared/ui/ListBoxItem/types.d.ts +1 -0
  11. package/dist/esm/index.js +5 -5
  12. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingGoalSelectionScreenPreviewFeature/OnBoardingGoalSelectionScreenPreviewFeature.d.ts +16 -0
  13. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingGoalSelectionScreenPreviewFeature/constants.d.ts +7 -0
  14. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingGoalSelectionScreenPreviewFeature/index.d.ts +1 -0
  15. package/dist/esm/lib2/features/OnBoardingFlow/index.d.ts +1 -0
  16. package/dist/esm/lib2/shared/types/onBoardingFlow.type.d.ts +17 -2
  17. package/dist/esm/lib2/shared/ui/ListBox/ListBox.d.ts +1 -1
  18. package/dist/esm/lib2/shared/ui/ListBox/types.d.ts +4 -0
  19. package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxItem.d.ts +3 -1
  20. package/dist/esm/lib2/shared/ui/ListBoxItem/types.d.ts +1 -0
  21. package/dist/index.d.ts +103 -70
  22. 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;
@@ -0,0 +1,7 @@
1
+ export declare const AREAS_OF_CLIENT_PROBLEM_CATEGORIES: {
2
+ id: string;
3
+ label: string;
4
+ isDefault: boolean;
5
+ filtrationAnswerId: string;
6
+ alphabeticalOrder: string;
7
+ }[];
@@ -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 & React.RefAttributes<HTMLIonItemElement>>;
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;
@@ -31,5 +31,6 @@ export type ListBoxItemProps = {
31
31
  onClick?: HTMLIonItemElement['onclick'];
32
32
  variant?: VariantType;
33
33
  image?: ResponseFileType | null;
34
+ maxSelectionCount?: number;
34
35
  };
35
36
  export type { Selection } from 'react-stately';