@mindly/ui-components 6.2.14 → 6.3.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 (32) hide show
  1. package/dist/cjs/index.js +5 -5
  2. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingSingleSelectionScreenPreviewFeature/OnBoardingSingleSelectionScreenPreviewFeature.d.ts +3 -3
  3. package/dist/cjs/lib2/features/OnBoardingFlow/components/OnBoardingSelectionHeader.d.ts +2 -0
  4. package/dist/cjs/lib2/shared/assets/icons/IconAlignHorizontalTextCenter.d.ts +7 -0
  5. package/dist/cjs/lib2/shared/assets/icons/IconAlignHorizontalTextLeft.d.ts +7 -0
  6. package/dist/cjs/lib2/shared/assets/icons/IconAlignHorizontalTextRight.d.ts +7 -0
  7. package/dist/cjs/lib2/shared/assets/icons/index.d.ts +3 -0
  8. package/dist/cjs/lib2/shared/types/onBoardingFlow.type.d.ts +14 -7
  9. package/dist/cjs/lib2/shared/ui/ListBox/ListBox.d.ts +1 -1
  10. package/dist/cjs/lib2/shared/ui/ListBox/types.d.ts +3 -0
  11. package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxDefaultItem.d.ts +1 -1
  12. package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxIconItem.d.ts +1 -1
  13. package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxImageItem.d.ts +4 -2
  14. package/dist/cjs/lib2/shared/ui/ListBoxItem/types.d.ts +2 -0
  15. package/dist/cjs/lib2/shared/ui/Picture/Picture.d.ts +1 -0
  16. package/dist/esm/index.js +8 -8
  17. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingSingleSelectionScreenPreviewFeature/OnBoardingSingleSelectionScreenPreviewFeature.d.ts +3 -3
  18. package/dist/esm/lib2/features/OnBoardingFlow/components/OnBoardingSelectionHeader.d.ts +2 -0
  19. package/dist/esm/lib2/shared/assets/icons/IconAlignHorizontalTextCenter.d.ts +7 -0
  20. package/dist/esm/lib2/shared/assets/icons/IconAlignHorizontalTextLeft.d.ts +7 -0
  21. package/dist/esm/lib2/shared/assets/icons/IconAlignHorizontalTextRight.d.ts +7 -0
  22. package/dist/esm/lib2/shared/assets/icons/index.d.ts +3 -0
  23. package/dist/esm/lib2/shared/types/onBoardingFlow.type.d.ts +14 -7
  24. package/dist/esm/lib2/shared/ui/ListBox/ListBox.d.ts +1 -1
  25. package/dist/esm/lib2/shared/ui/ListBox/types.d.ts +3 -0
  26. package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxDefaultItem.d.ts +1 -1
  27. package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxIconItem.d.ts +1 -1
  28. package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxImageItem.d.ts +4 -2
  29. package/dist/esm/lib2/shared/ui/ListBoxItem/types.d.ts +2 -0
  30. package/dist/esm/lib2/shared/ui/Picture/Picture.d.ts +1 -0
  31. package/dist/index.d.ts +193 -162
  32. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import { OnBoardingSingleSelectScreenType, OnBoardingSingleImageSelectScreenType, OnBoardingSingleScaleSelectScreenType } from '../../../shared';
2
+ import { OnBoardingSingleSelectScreenType, OnBoardingSingleImageSelectScreenType, OnBoardingSingleScaleSelectScreenType, OnBoardingSingleRoundImageSelectScreenType } 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' | 'emoji' | 'icon';
9
- } & OnBoardingSingleSelectScreenType & OnBoardingSingleImageSelectScreenType & OnBoardingSingleScaleSelectScreenType;
8
+ template?: 'radio' | 'image' | 'roundImage' | 'emoji' | 'icon';
9
+ } & OnBoardingSingleSelectScreenType & OnBoardingSingleImageSelectScreenType & OnBoardingSingleRoundImageSelectScreenType & OnBoardingSingleScaleSelectScreenType;
10
10
  declare const _default: React.NamedExoticComponent<OnBoardingSingleSelectionScreenPreviewFeatureProps>;
11
11
  export default _default;
@@ -1,8 +1,10 @@
1
1
  import { FC } from 'react';
2
2
  type OnBoardingHeaderProps = {
3
3
  title?: string | null;
4
+ subTitle?: string | null;
4
5
  description?: string | null;
5
6
  isPreview?: boolean;
7
+ template?: 'radio' | 'image' | 'roundImage' | 'emoji' | 'icon';
6
8
  };
7
9
  declare const OnBoardingSelectionHeader: FC<OnBoardingHeaderProps>;
8
10
  export default OnBoardingSelectionHeader;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ size?: number | string;
4
+ color?: string;
5
+ }
6
+ export declare function IconAlignHorizontalTextCenter({ size, ...other }: IconProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ size?: number | string;
4
+ color?: string;
5
+ }
6
+ export declare function IconAlignHorizontalTextLeft({ size, ...other }: IconProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ size?: number | string;
4
+ color?: string;
5
+ }
6
+ export declare function IconAlignHorizontalTextRight({ size, ...other }: IconProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -137,3 +137,6 @@ export * from './IconArrowRange';
137
137
  export * from './IconLeaderboard';
138
138
  export * from './IconCheckboxThinUnchecked';
139
139
  export * from './IconMooving';
140
+ export * from './IconAlignHorizontalTextCenter';
141
+ export * from './IconAlignHorizontalTextLeft';
142
+ export * from './IconAlignHorizontalTextRight';
@@ -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_ROUND_IMAGE_SELECT = "SINGLE_ROUND_IMAGE_SELECT",
29
30
  SINGLE_SCALE_SELECT = "SINGLE_SCALE_SELECT",
30
31
  INFO = "INFO",
31
32
  LOADER = "LOADER",
@@ -59,10 +60,6 @@ export type OnBoardingScreenSkipButtonType = {
59
60
  skipButtonText?: string | null;
60
61
  showSkipButton?: boolean;
61
62
  };
62
- export type OnBoardingScreenBgType = {
63
- backgroundColor?: string | null;
64
- contentStyle: OnBoardingScreenStyleOptions;
65
- };
66
63
  export type OnBoardingScreenDescriptionType = {
67
64
  title?: string | null;
68
65
  description?: string | null;
@@ -105,11 +102,13 @@ export type OnBoardingBaseScreenType = {
105
102
  isPageView?: boolean;
106
103
  hideTimer?: boolean;
107
104
  isStartScreen?: boolean;
105
+ backgroundColor?: string | null;
106
+ contentStyle: OnBoardingScreenStyleOptions;
108
107
  };
109
- export type OnBoardingStartScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenSkipButtonType & OnBoardingScreenBgType & OnBoardingScreenDescriptionType & {
108
+ export type OnBoardingStartScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenSkipButtonType & OnBoardingScreenDescriptionType & {
110
109
  image?: ResponseFileType | null;
111
110
  };
112
- export type OnBoardingInfoScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenBgType & OnBoardingScreenDescriptionType & {
111
+ export type OnBoardingInfoScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenDescriptionType & {
113
112
  image?: ResponseFileType | null;
114
113
  };
115
114
  export type OnBoardingMultiSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenDescriptionType & {
@@ -127,6 +126,14 @@ export type OnBoardingSingleImageSelectScreenType = OnBoardingBaseScreenType & O
127
126
  legalText?: string;
128
127
  options: OnBoardingScreenOptionType[];
129
128
  };
129
+ export type OnBoardingSingleRoundImageSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenDescriptionType & {
130
+ legalText?: string;
131
+ options: OnBoardingScreenOptionType[];
132
+ isRoundCorners?: boolean;
133
+ image?: ResponseFileType | null;
134
+ horizontalImageAlignment?: 'left' | 'right' | 'center';
135
+ subTitle?: string | null;
136
+ };
130
137
  export type OnBoardingSingleScaleSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenDescriptionType & {
131
138
  minLabel?: string;
132
139
  maxLabel?: string;
@@ -203,7 +210,7 @@ export type OnBoardingChartScreenType = OnBoardingBaseScreenType & OnBoardingScr
203
210
  disclaimer?: string;
204
211
  chart: ChartData;
205
212
  };
206
- export type OnBoardingScreensType = OnBoardingStartScreenType | OnBoardingMultiSelectScreenType | OnBoardingSingleSelectScreenType | OnBoardingSingleImageSelectScreenType | OnBoardingSingleScaleSelectScreenType | OnBoardingInfoScreenType | OnBoardingLoaderScreenType | OnBoardingReviewsScreenType | OnBoardingEmailScreenType | OnBoardingConfirmScreenType | OnBoardingCompareScreenType | OnBoardingPaywallScreenType | OnBoardingChartScreenType | OnBoardingGraphScreenType;
213
+ export type OnBoardingScreensType = OnBoardingStartScreenType | OnBoardingMultiSelectScreenType | OnBoardingSingleSelectScreenType | OnBoardingSingleImageSelectScreenType | OnBoardingSingleRoundImageSelectScreenType | OnBoardingSingleScaleSelectScreenType | OnBoardingInfoScreenType | OnBoardingLoaderScreenType | OnBoardingReviewsScreenType | OnBoardingEmailScreenType | OnBoardingConfirmScreenType | OnBoardingCompareScreenType | OnBoardingPaywallScreenType | OnBoardingChartScreenType | OnBoardingGraphScreenType;
207
214
  export type OnBoardingFlowType = {
208
215
  id: string;
209
216
  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, ...props }: ListBoxProps<T>): JSX.Element;
3
+ export default function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, className, variant, isOnboardingPreview, isTransparent, isRoundCorners, ...props }: ListBoxProps<T>): JSX.Element;
@@ -4,6 +4,7 @@ export declare enum ListBoxSelectionType {
4
4
  Checkbox = "checkbox",
5
5
  Radio = "radio",
6
6
  Image = "image",
7
+ RoundImage = "roundImage",
7
8
  Emoji = "emoji",
8
9
  Icon = "icon"
9
10
  }
@@ -18,4 +19,6 @@ export type ListBoxProps<T> = AriaListBoxProps<T> & {
18
19
  image?: ResponseFileType;
19
20
  isOnboardingPreview?: boolean;
20
21
  selectionMode?: 'single' | 'multiple' | 'none';
22
+ isTransparent?: boolean;
23
+ isRoundCorners?: boolean;
21
24
  };
@@ -13,6 +13,6 @@ declare const _default: React.MemoExoticComponent<({ item, isSelected, selection
13
13
  selectionPosition: "end" | "start";
14
14
  enableSelection: boolean;
15
15
  selectedIconProps: IconProps;
16
- type: "image" | "icon" | "checkbox" | "radio" | "emoji";
16
+ type: "image" | "icon" | "checkbox" | "radio" | "emoji" | "roundImage";
17
17
  }) => import("react/jsx-runtime").JSX.Element>;
18
18
  export default _default;
@@ -8,7 +8,7 @@ declare const _default: React.MemoExoticComponent<({ item, isSelected, enableSel
8
8
  variant: VariantType;
9
9
  item: Node<unknown>;
10
10
  enableSelection: boolean;
11
- type: "image" | "icon" | "checkbox" | "radio" | "emoji";
11
+ type: "image" | "icon" | "checkbox" | "radio" | "emoji" | "roundImage";
12
12
  isOnboardingPreview?: boolean | undefined;
13
13
  image?: ResponseFileType | null | undefined;
14
14
  selectionMode?: "none" | "multiple" | "single" | undefined;
@@ -1,7 +1,7 @@
1
1
  import React, { DOMAttributes } from 'react';
2
2
  import { Node } from 'react-stately';
3
3
  import { ResponseFileType } from '../../types';
4
- import { VariantType } from '../ListBox/types';
4
+ import { ListBoxSelectionType, VariantType } from '../ListBox/types';
5
5
  type ListBoxImageItemProps = {
6
6
  isSelected: boolean;
7
7
  item: Node<unknown>;
@@ -9,6 +9,8 @@ type ListBoxImageItemProps = {
9
9
  variant: VariantType;
10
10
  labelProps: DOMAttributes<HTMLDivElement>;
11
11
  isOnboardingPreview?: boolean;
12
+ isRoundCorners?: boolean;
13
+ type: ListBoxSelectionType.Image | ListBoxSelectionType.RoundImage | 'image' | 'roundImage';
12
14
  };
13
- declare const _default: React.MemoExoticComponent<({ isSelected, item, image, variant, labelProps, isOnboardingPreview, }: ListBoxImageItemProps) => import("react/jsx-runtime").JSX.Element>;
15
+ declare const _default: React.MemoExoticComponent<({ isSelected, item, image, variant, labelProps, isOnboardingPreview, isRoundCorners, type, }: ListBoxImageItemProps) => import("react/jsx-runtime").JSX.Element>;
14
16
  export default _default;
@@ -16,6 +16,8 @@ export type ListOptionsProps = {
16
16
  image?: ResponseFileType | null;
17
17
  isOnboardingPreview?: boolean;
18
18
  selectionMode?: 'single' | 'multiple' | 'none';
19
+ isTransparent?: boolean;
20
+ isRoundCorners?: boolean;
19
21
  };
20
22
  export type ListBoxItemProps = {
21
23
  icon?: React.ReactNode;
@@ -13,6 +13,7 @@ type PictureProps = {
13
13
  className?: string;
14
14
  responsive?: boolean;
15
15
  containerWidth?: number;
16
+ imageClassName?: string;
16
17
  };
17
18
  declare const _default: React.NamedExoticComponent<PictureProps>;
18
19
  export default _default;