@mindly/ui-components 8.2.29 → 8.2.31

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.
@@ -186,6 +186,7 @@ export type OnBoardingSingleRoundImageSelectScreenType = OnBoardingBaseScreenTyp
186
186
  export type OnBoardingSingleScaleSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenDescriptionType & {
187
187
  minLabel?: string;
188
188
  maxLabel?: string;
189
+ emojiSize?: 'small' | 'large' | 'medium';
189
190
  options: OnBoardingScreenOptionWithScaleType[];
190
191
  };
191
192
  export type OnBoardingLoaderScreenType = OnBoardingBaseScreenType & {
@@ -1,3 +1,3 @@
1
1
  import * as React from 'react';
2
2
  import { ListBoxProps } from './types';
3
- export default function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, className, variant, onboardingTheme, isOnboardingPreview, isTransparent, isRoundCorners, maxSelectionCount, initialVisibleCount, t, ...props }: ListBoxProps<T>): React.ReactElement;
3
+ export default function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, className, variant, onboardingTheme, isOnboardingPreview, isTransparent, isRoundCorners, maxSelectionCount, initialVisibleCount, emojiSize, t, ...props }: ListBoxProps<T>): React.ReactElement;
@@ -25,5 +25,6 @@ export type ListBoxProps<T> = AriaListBoxProps<T> & {
25
25
  isRoundCorners?: boolean;
26
26
  maxSelectionCount?: number;
27
27
  initialVisibleCount?: number;
28
+ emojiSize?: 'small' | 'large' | 'medium';
28
29
  t?: WithTranslation['t'];
29
30
  };
@@ -9,6 +9,7 @@ type ListBoxImageItemProps = {
9
9
  onboardingTheme?: OnBoardingThemeV2Type;
10
10
  labelProps: DOMAttributes<HTMLDivElement>;
11
11
  isOnboardingPreview?: boolean;
12
+ emojiSize?: 'small' | 'large' | 'medium';
12
13
  };
13
- declare const _default: React.MemoExoticComponent<({ isSelected, item, variant, onboardingTheme, labelProps, isOnboardingPreview, }: ListBoxImageItemProps) => import("react/jsx-runtime").JSX.Element>;
14
+ declare const _default: React.MemoExoticComponent<({ isSelected, item, variant, onboardingTheme, labelProps, isOnboardingPreview, emojiSize, }: ListBoxImageItemProps) => import("react/jsx-runtime").JSX.Element>;
14
15
  export default _default;
@@ -1,7 +1,5 @@
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 & {
5
- maxSelectionCount?: number;
6
- } & React.RefAttributes<HTMLIonItemElement>>;
4
+ export declare const ListOption: React.ForwardRefExoticComponent<ListOptionsProps & React.RefAttributes<HTMLIonItemElement>>;
7
5
  export declare const ListBoxItem: (props: ItemProps<unknown> & ListBoxItemProps) => React.ReactElement;
@@ -19,6 +19,8 @@ export type ListOptionsProps = {
19
19
  selectionMode?: 'single' | 'multiple' | 'none';
20
20
  isTransparent?: boolean;
21
21
  isRoundCorners?: boolean;
22
+ maxSelectionCount?: number;
23
+ emojiSize?: 'small' | 'large' | 'medium';
22
24
  };
23
25
  export type ListBoxItemProps = {
24
26
  icon?: React.ReactNode;
@@ -31,6 +33,5 @@ export type ListBoxItemProps = {
31
33
  customContent?: boolean;
32
34
  onClick?: HTMLIonItemElement['onclick'];
33
35
  image?: ResponseFileType | null;
34
- maxSelectionCount?: number;
35
36
  };
36
37
  export type { Selection } from 'react-stately';
package/dist/index.d.ts CHANGED
@@ -957,6 +957,7 @@ type OnBoardingSingleRoundImageSelectScreenType = OnBoardingBaseScreenType & OnB
957
957
  type OnBoardingSingleScaleSelectScreenType = OnBoardingBaseScreenType & OnBoardingScreenDescriptionType & {
958
958
  minLabel?: string;
959
959
  maxLabel?: string;
960
+ emojiSize?: 'small' | 'large' | 'medium';
960
961
  options: OnBoardingScreenOptionWithScaleType[];
961
962
  };
962
963
  type OnBoardingLoaderScreenType = OnBoardingBaseScreenType & {
@@ -1465,10 +1466,11 @@ type ListBoxProps<T> = AriaListBoxProps<T> & {
1465
1466
  isRoundCorners?: boolean;
1466
1467
  maxSelectionCount?: number;
1467
1468
  initialVisibleCount?: number;
1469
+ emojiSize?: 'small' | 'large' | 'medium';
1468
1470
  t?: WithTranslation['t'];
1469
1471
  };
1470
1472
 
1471
- declare function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, className, variant, onboardingTheme, isOnboardingPreview, isTransparent, isRoundCorners, maxSelectionCount, initialVisibleCount, t, ...props }: ListBoxProps<T>): React$1.ReactElement;
1473
+ declare function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, className, variant, onboardingTheme, isOnboardingPreview, isTransparent, isRoundCorners, maxSelectionCount, initialVisibleCount, emojiSize, t, ...props }: ListBoxProps<T>): React$1.ReactElement;
1472
1474
 
1473
1475
  type ListOptionsProps = {
1474
1476
  item: Node<unknown>;
@@ -1487,6 +1489,8 @@ type ListOptionsProps = {
1487
1489
  selectionMode?: 'single' | 'multiple' | 'none';
1488
1490
  isTransparent?: boolean;
1489
1491
  isRoundCorners?: boolean;
1492
+ maxSelectionCount?: number;
1493
+ emojiSize?: 'small' | 'large' | 'medium';
1490
1494
  };
1491
1495
  type ListBoxItemProps = {
1492
1496
  icon?: React$1.ReactNode;
@@ -1499,12 +1503,9 @@ type ListBoxItemProps = {
1499
1503
  customContent?: boolean;
1500
1504
  onClick?: HTMLIonItemElement['onclick'];
1501
1505
  image?: ResponseFileType | null;
1502
- maxSelectionCount?: number;
1503
1506
  };
1504
1507
 
1505
- declare const ListOption: React$1.ForwardRefExoticComponent<ListOptionsProps & {
1506
- maxSelectionCount?: number;
1507
- } & React$1.RefAttributes<HTMLIonItemElement>>;
1508
+ declare const ListOption: React$1.ForwardRefExoticComponent<ListOptionsProps & React$1.RefAttributes<HTMLIonItemElement>>;
1508
1509
  declare const ListBoxItem: (props: ItemProps$1<unknown> & ListBoxItemProps) => React$1.ReactElement;
1509
1510
 
1510
1511
  type BaseTypeProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "8.2.29",
3
+ "version": "8.2.31",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",
@@ -8,6 +8,7 @@
8
8
 
9
9
  --color-background-white: 255 255 255;
10
10
  --color-background-anti-flash-white: 245 247 250;
11
+ --color-background-anti-flash-2: 234 239 246;
11
12
 
12
13
  --color-gray-black: 33 33 33;
13
14
  --color-gray-middle: 131 132 133;