@mindly/ui-components 6.3.2 → 6.4.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.
Files changed (22) hide show
  1. package/dist/cjs/index.js +4 -4
  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 +21 -3
  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 +4 -4
  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 +21 -3
  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 +107 -71
  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;
@@ -88,7 +94,6 @@ export type OnBoardingBaseScreenType = {
88
94
  id: string;
89
95
  type: OnBoardingScreenOptions;
90
96
  name: string | null;
91
- isDefault?: boolean;
92
97
  filtrationQuestionId?: string;
93
98
  order: number;
94
99
  position: {
@@ -104,6 +109,10 @@ export type OnBoardingBaseScreenType = {
104
109
  isStartScreen?: boolean;
105
110
  backgroundColor?: string | null;
106
111
  contentStyle: OnBoardingScreenStyleOptions;
112
+ /**
113
+ * @deprecated This field is deprecated and will be removed in future versions
114
+ */
115
+ isDefault?: boolean;
107
116
  };
108
117
  export type OnBoardingStartScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenSkipButtonType & OnBoardingScreenDescriptionType & {
109
118
  image?: ResponseFileType | null;
@@ -116,6 +125,15 @@ export type OnBoardingMultiSelectScreenType = OnBoardingBaseScreenType & OnBoard
116
125
  isIconView?: boolean;
117
126
  options: OnBoardingScreenOptionType[];
118
127
  };
128
+ export type OnBoardingGoalSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenSubgoalButtonType & OnBoardingScreenDescriptionType & {
129
+ isOptionView?: boolean;
130
+ subgoalIsOptionView?: boolean;
131
+ options: OnBoardingScreenOptionType[];
132
+ subgoalTitle?: string;
133
+ subgoalDescription?: string;
134
+ isShowCategoryName?: boolean;
135
+ maxSelectionCount?: number;
136
+ };
119
137
  export type OnBoardingSingleSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenDescriptionType & {
120
138
  isOptionView?: boolean;
121
139
  isIconView?: boolean;
@@ -210,7 +228,7 @@ export type OnBoardingChartScreenType = OnBoardingBaseScreenType & OnBoardingScr
210
228
  disclaimer?: string;
211
229
  chart: ChartData;
212
230
  };
213
- export type OnBoardingScreensType = OnBoardingStartScreenType | OnBoardingMultiSelectScreenType | OnBoardingSingleSelectScreenType | OnBoardingSingleImageSelectScreenType | OnBoardingSingleRoundImageSelectScreenType | OnBoardingSingleScaleSelectScreenType | OnBoardingInfoScreenType | OnBoardingLoaderScreenType | OnBoardingReviewsScreenType | OnBoardingEmailScreenType | OnBoardingConfirmScreenType | OnBoardingCompareScreenType | OnBoardingPaywallScreenType | OnBoardingChartScreenType | OnBoardingGraphScreenType;
231
+ export type OnBoardingScreensType = OnBoardingStartScreenType | OnBoardingMultiSelectScreenType | OnBoardingGoalSelectScreenType | OnBoardingSingleSelectScreenType | OnBoardingSingleImageSelectScreenType | OnBoardingSingleRoundImageSelectScreenType | OnBoardingSingleScaleSelectScreenType | OnBoardingInfoScreenType | OnBoardingLoaderScreenType | OnBoardingReviewsScreenType | OnBoardingEmailScreenType | OnBoardingConfirmScreenType | OnBoardingCompareScreenType | OnBoardingPaywallScreenType | OnBoardingChartScreenType | OnBoardingGraphScreenType;
214
232
  export type OnBoardingFlowType = {
215
233
  id: string;
216
234
  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';