@mindly/ui-components 5.101.0 → 5.102.1

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 (36) 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/OnBoardingMultiSelectionScreenPreviewFeature/OnBoardingMultiSelectionScreenPreviewFeature.d.ts +2 -0
  4. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingProgressFeature/OnBoardingProgressFeature.d.ts +2 -0
  5. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingSingleSelectionScreenPreviewFeature/OnBoardingSingleSelectionScreenPreviewFeature.d.ts +2 -0
  6. package/dist/cjs/lib2/shared/assets/icons/IconCheckboxChecked.d.ts +1 -1
  7. package/dist/cjs/lib2/shared/assets/icons/IconRadioButtonChecked.d.ts +6 -2
  8. package/dist/cjs/lib2/shared/types/onBoardingFlow.type.d.ts +4 -0
  9. package/dist/cjs/lib2/shared/ui/Button_v2/Button_v2.d.ts +2 -18
  10. package/dist/cjs/lib2/shared/ui/Button_v2/Button_v2.style.d.ts +1 -0
  11. package/dist/cjs/lib2/shared/ui/Button_v2/types.d.ts +19 -0
  12. package/dist/cjs/lib2/shared/ui/ListBox/ListBox.d.ts +1 -1
  13. package/dist/cjs/lib2/shared/ui/ListBox/types.d.ts +2 -0
  14. package/dist/cjs/lib2/shared/ui/ListBoxItem/constants.d.ts +2 -0
  15. package/dist/cjs/lib2/shared/ui/ListBoxItem/types.d.ts +3 -1
  16. package/dist/cjs/lib2/shared/ui/ProgressBar_v2/ProgressBar_v2.d.ts +1 -1
  17. package/dist/esm/configs/tailwind/colors.d.ts +1 -0
  18. package/dist/esm/index.js +6 -6
  19. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingMultiSelectionScreenPreviewFeature/OnBoardingMultiSelectionScreenPreviewFeature.d.ts +2 -0
  20. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingProgressFeature/OnBoardingProgressFeature.d.ts +2 -0
  21. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingSingleSelectionScreenPreviewFeature/OnBoardingSingleSelectionScreenPreviewFeature.d.ts +2 -0
  22. package/dist/esm/lib2/shared/assets/icons/IconCheckboxChecked.d.ts +1 -1
  23. package/dist/esm/lib2/shared/assets/icons/IconRadioButtonChecked.d.ts +6 -2
  24. package/dist/esm/lib2/shared/types/onBoardingFlow.type.d.ts +4 -0
  25. package/dist/esm/lib2/shared/ui/Button_v2/Button_v2.d.ts +2 -18
  26. package/dist/esm/lib2/shared/ui/Button_v2/Button_v2.style.d.ts +1 -0
  27. package/dist/esm/lib2/shared/ui/Button_v2/types.d.ts +19 -0
  28. package/dist/esm/lib2/shared/ui/ListBox/ListBox.d.ts +1 -1
  29. package/dist/esm/lib2/shared/ui/ListBox/types.d.ts +2 -0
  30. package/dist/esm/lib2/shared/ui/ListBoxItem/constants.d.ts +2 -0
  31. package/dist/esm/lib2/shared/ui/ListBoxItem/types.d.ts +3 -1
  32. package/dist/esm/lib2/shared/ui/ProgressBar_v2/ProgressBar_v2.d.ts +1 -1
  33. package/dist/index.d.ts +124 -108
  34. package/package.json +1 -1
  35. package/src/configs/tailwind/colors.ts +2 -0
  36. package/src/lib2/shared/css/tailwind.css +1 -0
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
2
  import { OnBoardingMultiSelectScreenType } from '../../../shared';
3
+ import { OnboardingVariant } from '../../../shared';
3
4
  type OnBoardingMultiSelectionScreenPreviewFeatureProps = {
4
5
  onChange?: (value: string[]) => void;
5
6
  defaultValues?: string[];
7
+ variant?: OnboardingVariant;
6
8
  } & OnBoardingMultiSelectScreenType;
7
9
  declare const _default: React.NamedExoticComponent<OnBoardingMultiSelectionScreenPreviewFeatureProps>;
8
10
  export default _default;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { OnBoardingScreenStyleOptions } from '../../../shared';
3
+ import { OnboardingVariant } from '../../../shared';
3
4
  type OnBoardingProgressFeatureProps = {
4
5
  progress: number;
5
6
  isPreview?: boolean;
@@ -7,6 +8,7 @@ type OnBoardingProgressFeatureProps = {
7
8
  onBackButtonClick?: () => void;
8
9
  contentStyle?: OnBoardingScreenStyleOptions;
9
10
  startAdornment?: React.ReactNode;
11
+ variant?: OnboardingVariant;
10
12
  };
11
13
  declare const _default: React.NamedExoticComponent<OnBoardingProgressFeatureProps>;
12
14
  export default _default;
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
2
  import { OnBoardingSingleSelectScreenType } from '../../../shared';
3
+ import { OnboardingVariant } from '../../../shared/';
3
4
  type OnBoardingSingleSelectionScreenPreviewFeatureProps = {
4
5
  onChange?: (value: string) => void;
5
6
  defaultValues?: string[];
7
+ variant?: OnboardingVariant;
6
8
  } & OnBoardingSingleSelectScreenType;
7
9
  declare const _default: React.NamedExoticComponent<OnBoardingSingleSelectionScreenPreviewFeatureProps>;
8
10
  export default _default;
@@ -3,5 +3,5 @@ interface IconProps extends React.SVGAttributes<SVGElement> {
3
3
  size?: number | string;
4
4
  color?: string;
5
5
  }
6
- export declare function IconCheckboxChecked({ color, size, ...other }: IconProps): JSX.Element;
6
+ export declare const IconCheckboxChecked: ({ color, size, ...other }: IconProps) => JSX.Element;
7
7
  export {};
@@ -1,2 +1,6 @@
1
- import { SVGProps } from 'react';
2
- export declare const IconRadioButtonChecked: (props: SVGProps<SVGSVGElement>) => JSX.Element;
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ color?: string;
4
+ }
5
+ export declare const IconRadioButtonChecked: ({ color, ...rest }: IconProps) => JSX.Element;
6
+ export {};
@@ -158,3 +158,7 @@ export type OnBoardingFlowType = {
158
158
  duration_min?: number | null;
159
159
  isDefault?: boolean;
160
160
  };
161
+ export declare enum OnboardingVariant {
162
+ default = "default",
163
+ blue = "blue"
164
+ }
@@ -1,20 +1,4 @@
1
- import React, { FC } from 'react';
2
- import { JSX } from '@ionic/core/components';
3
- export type ButtonProps = {
4
- fill?: 'outline' | 'clear';
5
- size?: 'default' | 'large' | 'small';
6
- customSize?: 'smaller' | 'auto';
7
- withDefaultState?: boolean;
8
- color?: undefined;
9
- fullWidth?: boolean;
10
- className?: string;
11
- routerLink?: string;
12
- onClick?: (e: React.MouseEvent<HTMLIonButtonElement>) => void;
13
- isLoading?: boolean;
14
- icon?: React.ReactNode;
15
- iconPosition?: 'start' | 'center';
16
- style?: React.CSSProperties;
17
- id?: string;
18
- } & JSX.IonButton;
1
+ import { FC } from 'react';
2
+ import { ButtonProps } from './types';
19
3
  declare const Button_v2: FC<ButtonProps>;
20
4
  export default Button_v2;
@@ -19,4 +19,5 @@ export declare const ButtonStyled: import("styled-components").StyledComponent<i
19
19
  iconPosition?: "center" | "start" | undefined;
20
20
  style?: import("react").CSSProperties | undefined;
21
21
  id?: string | undefined;
22
+ variant?: "default" | "blue" | undefined;
22
23
  } & import("@ionic/core/dist/types/components").JSX.IonButton, never>;
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { JSX } from '@ionic/core/components';
3
+ export type ButtonProps = {
4
+ fill?: 'outline' | 'clear';
5
+ size?: 'default' | 'large' | 'small';
6
+ customSize?: 'smaller' | 'auto';
7
+ withDefaultState?: boolean;
8
+ color?: undefined;
9
+ fullWidth?: boolean;
10
+ className?: string;
11
+ routerLink?: string;
12
+ onClick?: (e: React.MouseEvent<HTMLIonButtonElement>) => void;
13
+ isLoading?: boolean;
14
+ icon?: React.ReactNode;
15
+ iconPosition?: 'start' | 'center';
16
+ style?: React.CSSProperties;
17
+ id?: string;
18
+ variant?: 'default' | 'blue';
19
+ } & JSX.IonButton;
@@ -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, ...props }: ListBoxProps<T>): JSX.Element;
2
+ export default function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, className, variant, ...props }: ListBoxProps<T>): JSX.Element;
@@ -4,10 +4,12 @@ export declare enum ListBoxSelectionType {
4
4
  Checkbox = "checkbox",
5
5
  Radio = "radio"
6
6
  }
7
+ export type VariantType = 'default' | 'blue';
7
8
  export type ListBoxProps<T> = AriaListBoxProps<T> & {
8
9
  type?: `${ListBoxSelectionType}`;
9
10
  enableSelection?: boolean;
10
11
  selectedIconProps?: IconProps;
11
12
  selectionPosition?: 'start' | 'end';
12
13
  className?: string;
14
+ variant?: VariantType;
13
15
  };
@@ -0,0 +1,2 @@
1
+ import { VariantType } from '../ListBox/types';
2
+ export declare const VARIANT_COLOR_MAP: Record<VariantType, string>;
@@ -1,6 +1,6 @@
1
1
  import { ListState, Node } from 'react-stately';
2
2
  import * as React from 'react';
3
- import { ListBoxSelectionType } from '../ListBox';
3
+ import { ListBoxSelectionType, VariantType } from '../ListBox';
4
4
  import { IconProps } from '../../types';
5
5
  export type ListOptionsProps = {
6
6
  item: Node<unknown>;
@@ -12,6 +12,7 @@ export type ListOptionsProps = {
12
12
  type?: `${ListBoxSelectionType}`;
13
13
  selectionPosition?: 'start' | 'end';
14
14
  enableSelection?: boolean;
15
+ variant?: VariantType;
15
16
  };
16
17
  export type ListBoxItemProps = {
17
18
  icon?: React.ReactNode;
@@ -23,5 +24,6 @@ export type ListBoxItemProps = {
23
24
  className?: string;
24
25
  customContent?: boolean;
25
26
  onClick?: HTMLIonItemElement['onclick'];
27
+ variant?: VariantType;
26
28
  };
27
29
  export type { Selection } from 'react-stately';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  type ProgressBar_v2Props = {
3
- variant?: 'default' | 'danger' | 'success' | 'dark' | 'light';
3
+ variant?: 'default' | 'danger' | 'success' | 'dark' | 'light' | 'blue';
4
4
  progress: number;
5
5
  className?: string;
6
6
  reversed?: boolean;
@@ -41,6 +41,7 @@ declare const _default: {
41
41
  brand: {
42
42
  client: {
43
43
  celestialBlue: string;
44
+ celestialBlueDarker: string;
44
45
  };
45
46
  };
46
47
  };