@mindly/ui-components 5.103.2 → 5.104.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 (26) hide show
  1. package/dist/cjs/configs/tailwind/colors.d.ts +1 -0
  2. package/dist/cjs/index.js +6 -6
  3. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingSingleSelectionScreenPreviewFeature/OnBoardingSingleSelectionScreenPreviewFeature.d.ts +3 -2
  4. package/dist/cjs/lib2/features/OnBoardingFlow/components/OnBoardingSelectionHeader.d.ts +8 -0
  5. package/dist/cjs/lib2/shared/assets/icons/IconRadioPartial.d.ts +3 -0
  6. package/dist/cjs/lib2/shared/assets/icons/index.d.ts +1 -0
  7. package/dist/cjs/lib2/shared/types/onBoardingFlow.type.d.ts +9 -0
  8. package/dist/cjs/lib2/shared/ui/ListBox/ListBox.d.ts +1 -1
  9. package/dist/cjs/lib2/shared/ui/ListBox/types.d.ts +9 -2
  10. package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxImageItem.d.ts +17 -0
  11. package/dist/cjs/lib2/shared/ui/ListBoxItem/types.d.ts +13 -1
  12. package/dist/esm/configs/tailwind/colors.d.ts +1 -0
  13. package/dist/esm/index.js +7 -7
  14. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingSingleSelectionScreenPreviewFeature/OnBoardingSingleSelectionScreenPreviewFeature.d.ts +3 -2
  15. package/dist/esm/lib2/features/OnBoardingFlow/components/OnBoardingSelectionHeader.d.ts +8 -0
  16. package/dist/esm/lib2/shared/assets/icons/IconRadioPartial.d.ts +3 -0
  17. package/dist/esm/lib2/shared/assets/icons/index.d.ts +1 -0
  18. package/dist/esm/lib2/shared/types/onBoardingFlow.type.d.ts +9 -0
  19. package/dist/esm/lib2/shared/ui/ListBox/ListBox.d.ts +1 -1
  20. package/dist/esm/lib2/shared/ui/ListBox/types.d.ts +9 -2
  21. package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxImageItem.d.ts +17 -0
  22. package/dist/esm/lib2/shared/ui/ListBoxItem/types.d.ts +13 -1
  23. package/dist/index.d.ts +35 -4
  24. package/package.json +1 -1
  25. package/src/configs/tailwind/colors.ts +2 -0
  26. package/src/lib2/shared/css/tailwind.css +1 -0
@@ -1,10 +1,11 @@
1
1
  import React from 'react';
2
- import { OnBoardingSingleSelectScreenType } from '../../../shared';
2
+ import { OnBoardingSingleSelectScreenType, OnBoardingSingleImageSelectScreenType } 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
- } & OnBoardingSingleSelectScreenType;
8
+ template?: 'radio' | 'image';
9
+ } & OnBoardingSingleSelectScreenType & OnBoardingSingleImageSelectScreenType;
9
10
  declare const _default: React.NamedExoticComponent<OnBoardingSingleSelectionScreenPreviewFeatureProps>;
10
11
  export default _default;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ type OnBoardingHeaderProps = {
3
+ title?: string | null;
4
+ description?: string | null;
5
+ isPreview?: boolean;
6
+ };
7
+ declare const OnBoardingSelectionHeader: FC<OnBoardingHeaderProps>;
8
+ export default OnBoardingSelectionHeader;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { IconProps } from '../../types';
3
+ export declare const IconRadioPartial: FC<IconProps>;
@@ -129,3 +129,4 @@ export * from './IconMatching';
129
129
  export * from './IconSwitch';
130
130
  export * from './IconGlobe';
131
131
  export * from './IconAppStoreRating';
132
+ export * from './IconRadioPartial';
@@ -24,6 +24,7 @@ export declare enum OnBoardingScreenOptions {
24
24
  START = "START",
25
25
  MULTI_SELECT = "MULTI_SELECT",
26
26
  SINGLE_SELECT = "SINGLE_SELECT",
27
+ SINGLE_IMAGE_SELECT = "SINGLE_IMAGE_SELECT",
27
28
  INFO = "INFO",
28
29
  LOADER = "LOADER",
29
30
  REVIEWS = "REVIEWS",
@@ -40,6 +41,9 @@ export type OnBoardingScreenOptionType = {
40
41
  isDefault?: boolean;
41
42
  filtrationAnswerId?: string;
42
43
  };
44
+ export type OnBoardingScreenOptionWithImageType = OnBoardingScreenOptionType & {
45
+ image?: ResponseFileType | null;
46
+ };
43
47
  export type OnBoardingScreenButtonType = {
44
48
  buttonText?: string | null;
45
49
  buttonColor?: string | null;
@@ -106,8 +110,13 @@ export type OnBoardingMultiSelectScreenType = OnBoardingBaseScreenType & OnBoard
106
110
  options: OnBoardingScreenOptionType[];
107
111
  };
108
112
  export type OnBoardingSingleSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenDescriptionType & {
113
+ legalText?: string;
109
114
  options: OnBoardingScreenOptionType[];
110
115
  };
116
+ export type OnBoardingSingleImageSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenDescriptionType & {
117
+ legalText?: string;
118
+ options: OnBoardingScreenOptionWithImageType[];
119
+ };
111
120
  export type OnBoardingLoaderScreenType = OnBoardingBaseScreenType & {
112
121
  title?: string | null;
113
122
  additionalText?: 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, variant, ...props }: ListBoxProps<T>): JSX.Element;
2
+ export default function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, className, selectionImageClassNames, variant, ...props }: ListBoxProps<T>): JSX.Element;
@@ -1,8 +1,9 @@
1
1
  import { AriaListBoxProps } from 'react-aria';
2
- import { IconProps } from '../../types';
2
+ import { IconProps, ResponseFileType } from '../../types';
3
3
  export declare enum ListBoxSelectionType {
4
4
  Checkbox = "checkbox",
5
- Radio = "radio"
5
+ Radio = "radio",
6
+ Image = "image"
6
7
  }
7
8
  export type VariantType = 'default' | 'blue';
8
9
  export type ListBoxProps<T> = AriaListBoxProps<T> & {
@@ -10,6 +11,12 @@ export type ListBoxProps<T> = AriaListBoxProps<T> & {
10
11
  enableSelection?: boolean;
11
12
  selectedIconProps?: IconProps;
12
13
  selectionPosition?: 'start' | 'end';
14
+ selectionImageClassNames?: {
15
+ label?: string;
16
+ arrowIcon?: string;
17
+ bottomContainer?: string;
18
+ } | null;
13
19
  className?: string;
14
20
  variant?: VariantType;
21
+ image?: ResponseFileType;
15
22
  };
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { Node } from 'react-stately';
3
+ import { ResponseFileType } from '../../types';
4
+ import { VariantType } from '../ListBox/types';
5
+ type ListBoxImageItemProps = {
6
+ isSelected: boolean;
7
+ item: Node<unknown>;
8
+ image?: ResponseFileType | null;
9
+ variant: VariantType;
10
+ selectionImageClassNames?: {
11
+ label?: string;
12
+ arrowIcon?: string;
13
+ bottomContainer?: string;
14
+ } | null;
15
+ };
16
+ declare const _default: React.MemoExoticComponent<({ isSelected, item, image, variant, selectionImageClassNames, }: ListBoxImageItemProps) => JSX.Element>;
17
+ export default _default;
@@ -1,7 +1,7 @@
1
1
  import { ListState, Node } from 'react-stately';
2
2
  import * as React from 'react';
3
3
  import { ListBoxSelectionType, VariantType } from '../ListBox';
4
- import { IconProps } from '../../types';
4
+ import { IconProps, ResponseFileType } from '../../types';
5
5
  export type ListOptionsProps = {
6
6
  item: Node<unknown>;
7
7
  state: ListState<unknown>;
@@ -13,6 +13,12 @@ export type ListOptionsProps = {
13
13
  selectionPosition?: 'start' | 'end';
14
14
  enableSelection?: boolean;
15
15
  variant?: VariantType;
16
+ image?: ResponseFileType | null;
17
+ selectionImageClassNames?: {
18
+ label?: string;
19
+ arrowIcon?: string;
20
+ bottomContainer?: string;
21
+ } | null;
16
22
  };
17
23
  export type ListBoxItemProps = {
18
24
  icon?: React.ReactNode;
@@ -22,8 +28,14 @@ export type ListBoxItemProps = {
22
28
  value?: string;
23
29
  children: React.ReactNode;
24
30
  className?: string;
31
+ sselectionImageClassNames?: {
32
+ label?: string;
33
+ arrowIcon?: string;
34
+ bottomContainer?: string;
35
+ } | null;
25
36
  customContent?: boolean;
26
37
  onClick?: HTMLIonItemElement['onclick'];
27
38
  variant?: VariantType;
39
+ image?: ResponseFileType | null;
28
40
  };
29
41
  export type { Selection } from 'react-stately';
@@ -40,6 +40,7 @@ declare const _default: {
40
40
  black: string;
41
41
  brand: {
42
42
  client: {
43
+ celestialBlueSuperLight: string;
43
44
  celestialBlue: string;
44
45
  celestialBlueDarker: string;
45
46
  };