@mindly/ui-components 5.105.6 → 5.106.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 (38) hide show
  1. package/dist/cjs/index.js +6 -6
  2. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingGraphScreenPreviewFeature/OnBoardingGraphScreenPreviewFeature.d.ts +5 -0
  3. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingGraphScreenPreviewFeature/index.d.ts +1 -0
  4. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingSingleSelectionScreenPreviewFeature/OnBoardingSingleSelectionScreenPreviewFeature.d.ts +3 -3
  5. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingSingleSelectionScreenPreviewFeature/components/OnBoardingSelectionFeedback.d.ts +8 -0
  6. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingSingleSelectionScreenPreviewFeature/components/OnBoardingSelectionMinMaxLabels.d.ts +8 -0
  7. package/dist/cjs/lib2/features/OnBoardingFlow/components/index.d.ts +1 -0
  8. package/dist/cjs/lib2/features/OnBoardingFlow/index.d.ts +1 -0
  9. package/dist/cjs/lib2/shared/assets/icons/IconArrowRange.d.ts +3 -0
  10. package/dist/cjs/lib2/shared/assets/icons/IconLeaderboard.d.ts +3 -0
  11. package/dist/cjs/lib2/shared/assets/icons/index.d.ts +2 -0
  12. package/dist/cjs/lib2/shared/types/onBoardingFlow.type.d.ts +23 -1
  13. package/dist/cjs/lib2/shared/ui/ListBox/ListBox.d.ts +1 -1
  14. package/dist/cjs/lib2/shared/ui/ListBox/types.d.ts +3 -6
  15. package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxDefaultItem.d.ts +18 -0
  16. package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxEmojiItem.d.ts +12 -0
  17. package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxImageItem.d.ts +4 -7
  18. package/dist/cjs/lib2/shared/ui/ListBoxItem/types.d.ts +1 -10
  19. package/dist/esm/index.js +7 -7
  20. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingGraphScreenPreviewFeature/OnBoardingGraphScreenPreviewFeature.d.ts +5 -0
  21. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingGraphScreenPreviewFeature/index.d.ts +1 -0
  22. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingSingleSelectionScreenPreviewFeature/OnBoardingSingleSelectionScreenPreviewFeature.d.ts +3 -3
  23. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingSingleSelectionScreenPreviewFeature/components/OnBoardingSelectionFeedback.d.ts +8 -0
  24. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingSingleSelectionScreenPreviewFeature/components/OnBoardingSelectionMinMaxLabels.d.ts +8 -0
  25. package/dist/esm/lib2/features/OnBoardingFlow/components/index.d.ts +1 -0
  26. package/dist/esm/lib2/features/OnBoardingFlow/index.d.ts +1 -0
  27. package/dist/esm/lib2/shared/assets/icons/IconArrowRange.d.ts +3 -0
  28. package/dist/esm/lib2/shared/assets/icons/IconLeaderboard.d.ts +3 -0
  29. package/dist/esm/lib2/shared/assets/icons/index.d.ts +2 -0
  30. package/dist/esm/lib2/shared/types/onBoardingFlow.type.d.ts +23 -1
  31. package/dist/esm/lib2/shared/ui/ListBox/ListBox.d.ts +1 -1
  32. package/dist/esm/lib2/shared/ui/ListBox/types.d.ts +3 -6
  33. package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxDefaultItem.d.ts +18 -0
  34. package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxEmojiItem.d.ts +12 -0
  35. package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxImageItem.d.ts +4 -7
  36. package/dist/esm/lib2/shared/ui/ListBoxItem/types.d.ts +1 -10
  37. package/dist/index.d.ts +42 -25
  38. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { OnBoardingGraphScreenType } from '../../../shared';
3
+ type OnBoardingPaywallScreenPreviewFeatureProps = OnBoardingGraphScreenType;
4
+ declare const OnBoardingGraphScreenPreviewFeature: FC<OnBoardingPaywallScreenPreviewFeatureProps>;
5
+ export default OnBoardingGraphScreenPreviewFeature;
@@ -0,0 +1 @@
1
+ export { default as OnBoardingGraphScreenPreviewFeature } from './OnBoardingGraphScreenPreviewFeature';
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import { OnBoardingSingleSelectScreenType, OnBoardingSingleImageSelectScreenType } from '../../../shared';
2
+ import { OnBoardingSingleSelectScreenType, OnBoardingSingleImageSelectScreenType, OnBoardingSingleScaleSelectScreenType } 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';
9
- } & OnBoardingSingleSelectScreenType & OnBoardingSingleImageSelectScreenType;
8
+ template?: 'radio' | 'image' | 'emoji';
9
+ } & OnBoardingSingleSelectScreenType & OnBoardingSingleImageSelectScreenType & OnBoardingSingleScaleSelectScreenType;
10
10
  declare const _default: React.NamedExoticComponent<OnBoardingSingleSelectionScreenPreviewFeatureProps>;
11
11
  export default _default;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ import { OnBoardingScreenOptionType } from '../../../../shared';
3
+ type OnBoardingSelectionFeedbackProps = {
4
+ isPreview?: boolean;
5
+ selectedOption: OnBoardingScreenOptionType | undefined;
6
+ };
7
+ declare const OnBoardingSelectionFeedback: FC<OnBoardingSelectionFeedbackProps>;
8
+ export default OnBoardingSelectionFeedback;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ type OnBoardingSelectionMinMaxLabelsProps = {
3
+ isPreview?: boolean;
4
+ minLabel: string;
5
+ maxLabel: string;
6
+ };
7
+ declare const _default: React.NamedExoticComponent<OnBoardingSelectionMinMaxLabelsProps>;
8
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as OnBoardingSelectionHeader } from './OnBoardingSelectionHeader';
@@ -10,3 +10,4 @@ export * from './OnBoardingConfirmScreenPreviewFeature';
10
10
  export * from './OnBoardingCompareScreenPreviewFeature ';
11
11
  export * from './OnBoardingPaywallScreenPreviewFeature';
12
12
  export * from './OnBoardingChartScreenPreviewFeature';
13
+ export * from './OnBoardingGraphScreenPreviewFeature';
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { IconProps } from '../../types';
3
+ export declare const IconArrowRange: FC<IconProps>;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { IconProps } from '../../types';
3
+ export declare const IconLeaderboard: FC<IconProps>;
@@ -133,3 +133,5 @@ export * from './IconCompare';
133
133
  export * from './IconChart';
134
134
  export * from './IconPaywall';
135
135
  export * from './IconRadioPartial';
136
+ export * from './IconArrowRange';
137
+ export * from './IconLeaderboard';
@@ -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_SCALE_SELECT = "SINGLE_SCALE_SELECT",
29
30
  INFO = "INFO",
30
31
  LOADER = "LOADER",
31
32
  REVIEWS = "REVIEWS",
@@ -33,7 +34,8 @@ export declare enum OnBoardingScreenOptions {
33
34
  CONFIRM = "CONFIRM",
34
35
  PAYWALL = "PAYWALL",
35
36
  COMPARE = "COMPARE",
36
- CHART = "CHART"
37
+ CHART = "CHART",
38
+ GRAPH = "GRAPH"
37
39
  }
38
40
  export type OnBoardingScreenOptionType = {
39
41
  id: string;
@@ -45,6 +47,10 @@ export type OnBoardingScreenOptionType = {
45
47
  export type OnBoardingScreenOptionWithImageType = OnBoardingScreenOptionType & {
46
48
  image?: ResponseFileType | null;
47
49
  };
50
+ export type OnBoardingScreenOptionWithScaleType = OnBoardingScreenOptionType & {
51
+ feedbackTitle?: string;
52
+ feedbackDescription?: string;
53
+ };
48
54
  export type OnBoardingScreenButtonType = {
49
55
  buttonText?: string | null;
50
56
  buttonColor?: string | null;
@@ -118,6 +124,11 @@ export type OnBoardingSingleImageSelectScreenType = OnBoardingBaseScreenType & O
118
124
  legalText?: string;
119
125
  options: OnBoardingScreenOptionWithImageType[];
120
126
  };
127
+ export type OnBoardingSingleScaleSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenDescriptionType & {
128
+ minLabel?: string;
129
+ maxLabel?: string;
130
+ options: OnBoardingScreenOptionWithScaleType[];
131
+ };
121
132
  export type OnBoardingLoaderScreenType = OnBoardingBaseScreenType & {
122
133
  title?: string | null;
123
134
  additionalText?: string;
@@ -164,6 +175,17 @@ export type OnBoardingCompareScreenType = OnBoardingBaseScreenType & OnBoardingS
164
175
  hasInCompetitors: boolean;
165
176
  }[];
166
177
  };
178
+ export type OnBoardingGraphScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & {
179
+ title?: string;
180
+ description?: string;
181
+ columnCaption: string;
182
+ columnLabel?: string;
183
+ otherPlatformsColumnCaption: string;
184
+ otherPlatformsColumnLabel?: string;
185
+ percent: string;
186
+ percentDescription?: string;
187
+ graphCaption?: string;
188
+ };
167
189
  export type OnBoardingChartScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenTranslationsType & OnBoardingScreenErrorsType & {
168
190
  title?: string;
169
191
  disclaimer?: string;
@@ -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, selectionImageClassNames, variant, ...props }: ListBoxProps<T>): JSX.Element;
2
+ export default function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, className, variant, isOnboardingPreview, ...props }: ListBoxProps<T>): JSX.Element;
@@ -3,7 +3,8 @@ import { IconProps, ResponseFileType } from '../../types';
3
3
  export declare enum ListBoxSelectionType {
4
4
  Checkbox = "checkbox",
5
5
  Radio = "radio",
6
- Image = "image"
6
+ Image = "image",
7
+ Emoji = "emoji"
7
8
  }
8
9
  export type VariantType = 'default' | 'blue';
9
10
  export type ListBoxProps<T> = AriaListBoxProps<T> & {
@@ -11,12 +12,8 @@ export type ListBoxProps<T> = AriaListBoxProps<T> & {
11
12
  enableSelection?: boolean;
12
13
  selectedIconProps?: IconProps;
13
14
  selectionPosition?: 'start' | 'end';
14
- selectionImageClassNames?: {
15
- label?: string;
16
- arrowIcon?: string;
17
- bottomContainer?: string;
18
- } | null;
19
15
  className?: string;
20
16
  variant?: VariantType;
21
17
  image?: ResponseFileType;
18
+ isOnboardingPreview?: boolean;
22
19
  };
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { Node } from 'react-stately';
3
+ import { VariantType } from '../ListBox/types';
4
+ import { IconProps } from '../../types';
5
+ declare const _default: React.MemoExoticComponent<({ item, isSelected, selectionPosition, enableSelection, selectedIconProps, selectionIconClassName, variant, labelProps, customContent, className, type, }: {
6
+ isSelected: boolean;
7
+ selectionIconClassName: string;
8
+ labelProps: React.DOMAttributes<HTMLDivElement>;
9
+ customContent: boolean;
10
+ className: string;
11
+ variant: VariantType;
12
+ item: Node<unknown>;
13
+ selectionPosition: "end" | "start";
14
+ enableSelection: boolean;
15
+ selectedIconProps: IconProps;
16
+ type: "image" | "checkbox" | "radio" | "emoji";
17
+ }) => JSX.Element>;
18
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import React, { DOMAttributes } from 'react';
2
+ import { Node } from 'react-stately';
3
+ import { VariantType } from '../ListBox/types';
4
+ type ListBoxImageItemProps = {
5
+ isSelected: boolean;
6
+ item: Node<unknown>;
7
+ variant: VariantType;
8
+ labelProps: DOMAttributes<HTMLDivElement>;
9
+ isOnboardingPreview?: boolean;
10
+ };
11
+ declare const _default: React.MemoExoticComponent<({ isSelected, item, variant, labelProps, isOnboardingPreview, }: ListBoxImageItemProps) => JSX.Element>;
12
+ export default _default;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { DOMAttributes } from 'react';
2
2
  import { Node } from 'react-stately';
3
3
  import { ResponseFileType } from '../../types';
4
4
  import { VariantType } from '../ListBox/types';
@@ -7,11 +7,8 @@ type ListBoxImageItemProps = {
7
7
  item: Node<unknown>;
8
8
  image?: ResponseFileType | null;
9
9
  variant: VariantType;
10
- selectionImageClassNames?: {
11
- label?: string;
12
- arrowIcon?: string;
13
- bottomContainer?: string;
14
- } | null;
10
+ labelProps: DOMAttributes<HTMLDivElement>;
11
+ isOnboardingPreview?: boolean;
15
12
  };
16
- declare const _default: React.MemoExoticComponent<({ isSelected, item, image, variant, selectionImageClassNames, }: ListBoxImageItemProps) => JSX.Element>;
13
+ declare const _default: React.MemoExoticComponent<({ isSelected, item, image, variant, labelProps, isOnboardingPreview, }: ListBoxImageItemProps) => JSX.Element>;
17
14
  export default _default;
@@ -14,11 +14,7 @@ export type ListOptionsProps = {
14
14
  enableSelection?: boolean;
15
15
  variant?: VariantType;
16
16
  image?: ResponseFileType | null;
17
- selectionImageClassNames?: {
18
- label?: string;
19
- arrowIcon?: string;
20
- bottomContainer?: string;
21
- } | null;
17
+ isOnboardingPreview?: boolean;
22
18
  };
23
19
  export type ListBoxItemProps = {
24
20
  icon?: React.ReactNode;
@@ -28,11 +24,6 @@ export type ListBoxItemProps = {
28
24
  value?: string;
29
25
  children: React.ReactNode;
30
26
  className?: string;
31
- sselectionImageClassNames?: {
32
- label?: string;
33
- arrowIcon?: string;
34
- bottomContainer?: string;
35
- } | null;
36
27
  customContent?: boolean;
37
28
  onClick?: HTMLIonItemElement['onclick'];
38
29
  variant?: VariantType;