@mindly/ui-components 5.107.1 → 5.108.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 (25) hide show
  1. package/dist/cjs/configs/tailwind/colors.d.ts +1 -0
  2. package/dist/cjs/index.js +7 -7
  3. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingMultiSelectionScreenPreviewFeature/OnBoardingMultiSelectionScreenPreviewFeature.d.ts +1 -0
  4. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingSingleSelectionScreenPreviewFeature/OnBoardingSingleSelectionScreenPreviewFeature.d.ts +1 -1
  5. package/dist/cjs/lib2/shared/assets/icons/IconCheckboxThinUnchecked.d.ts +7 -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 +6 -4
  8. package/dist/cjs/lib2/shared/ui/ListBox/types.d.ts +3 -1
  9. package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxDefaultItem.d.ts +1 -1
  10. package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxIconItem.d.ts +17 -0
  11. package/dist/cjs/lib2/shared/ui/ListBoxItem/types.d.ts +1 -0
  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/OnBoardingMultiSelectionScreenPreviewFeature/OnBoardingMultiSelectionScreenPreviewFeature.d.ts +1 -0
  15. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingSingleSelectionScreenPreviewFeature/OnBoardingSingleSelectionScreenPreviewFeature.d.ts +1 -1
  16. package/dist/esm/lib2/shared/assets/icons/IconCheckboxThinUnchecked.d.ts +7 -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 +6 -4
  19. package/dist/esm/lib2/shared/ui/ListBox/types.d.ts +3 -1
  20. package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxDefaultItem.d.ts +1 -1
  21. package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxIconItem.d.ts +17 -0
  22. package/dist/esm/lib2/shared/ui/ListBoxItem/types.d.ts +1 -0
  23. package/dist/index.d.ts +164 -152
  24. package/package.json +1 -1
  25. package/src/configs/tailwind/colors.ts +1 -0
@@ -5,6 +5,7 @@ type OnBoardingMultiSelectionScreenPreviewFeatureProps = {
5
5
  onChange?: (value: string[]) => void;
6
6
  defaultValues?: string[];
7
7
  variant?: OnboardingVariant;
8
+ template?: 'checkbox' | 'icon';
8
9
  } & OnBoardingMultiSelectScreenType;
9
10
  declare const _default: React.NamedExoticComponent<OnBoardingMultiSelectionScreenPreviewFeatureProps>;
10
11
  export default _default;
@@ -5,7 +5,7 @@ type OnBoardingSingleSelectionScreenPreviewFeatureProps = {
5
5
  onChange?: (value: string) => void;
6
6
  defaultValues?: string[];
7
7
  variant?: OnboardingVariant;
8
- template?: 'radio' | 'image' | 'emoji';
8
+ template?: 'radio' | 'image' | 'emoji' | 'icon';
9
9
  } & OnBoardingSingleSelectScreenType & OnBoardingSingleImageSelectScreenType & OnBoardingSingleScaleSelectScreenType;
10
10
  declare const _default: React.NamedExoticComponent<OnBoardingSingleSelectionScreenPreviewFeatureProps>;
11
11
  export default _default;
@@ -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 const IconCheckboxThinUnchecked: React.FC<IconProps>;
7
+ export {};
@@ -135,3 +135,4 @@ export * from './IconPaywall';
135
135
  export * from './IconRadioPartial';
136
136
  export * from './IconArrowRange';
137
137
  export * from './IconLeaderboard';
138
+ export * from './IconCheckboxThinUnchecked';
@@ -43,8 +43,6 @@ export type OnBoardingScreenOptionType = {
43
43
  alphabeticalOrder?: string | null;
44
44
  isDefault?: boolean;
45
45
  filtrationAnswerId?: string;
46
- };
47
- export type OnBoardingScreenOptionWithImageType = OnBoardingScreenOptionType & {
48
46
  image?: ResponseFileType | null;
49
47
  };
50
48
  export type OnBoardingScreenOptionWithScaleType = OnBoardingScreenOptionType & {
@@ -114,15 +112,19 @@ export type OnBoardingInfoScreenType = OnBoardingBaseScreenType & OnBoardingScre
114
112
  image?: ResponseFileType | null;
115
113
  };
116
114
  export type OnBoardingMultiSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenDescriptionType & {
115
+ isOptionView?: boolean;
116
+ isIconView?: boolean;
117
117
  options: OnBoardingScreenOptionType[];
118
118
  };
119
119
  export type OnBoardingSingleSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenDescriptionType & {
120
+ isOptionView?: boolean;
121
+ isIconView?: boolean;
120
122
  legalText?: string;
121
123
  options: OnBoardingScreenOptionType[];
122
124
  };
123
125
  export type OnBoardingSingleImageSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenDescriptionType & {
124
126
  legalText?: string;
125
- options: OnBoardingScreenOptionWithImageType[];
127
+ options: OnBoardingScreenOptionType[];
126
128
  };
127
129
  export type OnBoardingSingleScaleSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenDescriptionType & {
128
130
  minLabel?: string;
@@ -191,7 +193,7 @@ export type OnBoardingChartScreenType = OnBoardingBaseScreenType & OnBoardingScr
191
193
  disclaimer?: string;
192
194
  chart: ChartData;
193
195
  };
194
- export type OnBoardingScreensType = OnBoardingStartScreenType | OnBoardingMultiSelectScreenType | OnBoardingSingleSelectScreenType | OnBoardingInfoScreenType | OnBoardingLoaderScreenType | OnBoardingReviewsScreenType | OnBoardingEmailScreenType | OnBoardingConfirmScreenType | OnBoardingCompareScreenType | OnBoardingPaywallScreenType | OnBoardingChartScreenType;
196
+ export type OnBoardingScreensType = OnBoardingStartScreenType | OnBoardingMultiSelectScreenType | OnBoardingSingleSelectScreenType | OnBoardingSingleImageSelectScreenType | OnBoardingSingleScaleSelectScreenType | OnBoardingInfoScreenType | OnBoardingLoaderScreenType | OnBoardingReviewsScreenType | OnBoardingEmailScreenType | OnBoardingConfirmScreenType | OnBoardingCompareScreenType | OnBoardingPaywallScreenType | OnBoardingChartScreenType | OnBoardingGraphScreenType;
195
197
  export type OnBoardingFlowType = {
196
198
  id: string;
197
199
  locale: string;
@@ -4,7 +4,8 @@ export declare enum ListBoxSelectionType {
4
4
  Checkbox = "checkbox",
5
5
  Radio = "radio",
6
6
  Image = "image",
7
- Emoji = "emoji"
7
+ Emoji = "emoji",
8
+ Icon = "icon"
8
9
  }
9
10
  export type VariantType = 'default' | 'blue';
10
11
  export type ListBoxProps<T> = AriaListBoxProps<T> & {
@@ -16,4 +17,5 @@ export type ListBoxProps<T> = AriaListBoxProps<T> & {
16
17
  variant?: VariantType;
17
18
  image?: ResponseFileType;
18
19
  isOnboardingPreview?: boolean;
20
+ selectionMode?: 'single' | 'multiple' | 'none';
19
21
  };
@@ -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" | "checkbox" | "radio" | "emoji";
16
+ type: "image" | "checkbox" | "radio" | "emoji" | "icon";
17
17
  }) => JSX.Element>;
18
18
  export default _default;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { Node } from 'react-stately';
3
+ import { VariantType } from '../ListBox/types';
4
+ import { ResponseFileType } from '../../types';
5
+ declare const _default: React.MemoExoticComponent<({ item, isSelected, enableSelection, variant, labelProps, type, isOnboardingPreview, image, selectionMode, }: {
6
+ isSelected: boolean;
7
+ selectionIconClassName: string;
8
+ labelProps: React.DOMAttributes<HTMLDivElement>;
9
+ variant: VariantType;
10
+ item: Node<unknown>;
11
+ enableSelection: boolean;
12
+ type: "image" | "checkbox" | "radio" | "emoji" | "icon";
13
+ isOnboardingPreview?: boolean | undefined;
14
+ image?: ResponseFileType | null | undefined;
15
+ selectionMode?: "none" | "multiple" | "single" | undefined;
16
+ }) => JSX.Element>;
17
+ export default _default;
@@ -15,6 +15,7 @@ export type ListOptionsProps = {
15
15
  variant?: VariantType;
16
16
  image?: ResponseFileType | null;
17
17
  isOnboardingPreview?: boolean;
18
+ selectionMode?: 'single' | 'multiple' | 'none';
18
19
  };
19
20
  export type ListBoxItemProps = {
20
21
  icon?: React.ReactNode;