@mindly/ui-components 6.6.0-dev.6 → 6.6.0-dev.7

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.
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { OnBoardingScreenStyleOptions, ResponseFileType, OnBoardingProgressSettingsScreenType } from '../../../shared';
3
+ import { OnboardingVariant } from '../../../shared';
4
+ type CounterProgressProps = {
5
+ progress: number;
6
+ isPreview?: boolean;
7
+ isBackButtonDisabled?: boolean;
8
+ onBackButtonClick?: () => void;
9
+ contentStyle?: OnBoardingScreenStyleOptions;
10
+ startAdornment?: React.ReactNode;
11
+ variant?: OnboardingVariant;
12
+ empty?: boolean;
13
+ totalCount?: number;
14
+ currentCount?: number;
15
+ image?: ResponseFileType | null;
16
+ progressSettings?: OnBoardingProgressSettingsScreenType | null;
17
+ };
18
+ declare const _default: React.NamedExoticComponent<CounterProgressProps>;
19
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { OnBoardingScreenStyleOptions } from '../../../shared';
3
+ import { OnboardingVariant } from '../../../shared';
4
+ type DefaultProgressProps = {
5
+ progress: number;
6
+ isPreview?: boolean;
7
+ isBackButtonDisabled?: boolean;
8
+ onBackButtonClick?: () => void;
9
+ contentStyle?: OnBoardingScreenStyleOptions;
10
+ startAdornment?: React.ReactNode;
11
+ variant?: OnboardingVariant;
12
+ empty?: boolean;
13
+ };
14
+ declare const _default: React.NamedExoticComponent<DefaultProgressProps>;
15
+ export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { OnBoardingScreenStyleOptions } from '../../../shared';
2
+ import { OnBoardingProgressSettingsScreenType, OnBoardingScreenStyleOptions, ResponseFileType } from '../../../shared';
3
3
  import { OnboardingVariant } from '../../../shared';
4
4
  type OnBoardingProgressFeatureProps = {
5
5
  progress: number;
@@ -10,6 +10,11 @@ type OnBoardingProgressFeatureProps = {
10
10
  startAdornment?: React.ReactNode;
11
11
  variant?: OnboardingVariant;
12
12
  empty?: boolean;
13
+ template?: 'default' | 'counter';
14
+ totalCount?: number;
15
+ currentCount?: number;
16
+ image?: ResponseFileType | null;
17
+ progressSettings?: OnBoardingProgressSettingsScreenType | null;
13
18
  };
14
19
  declare const _default: React.NamedExoticComponent<OnBoardingProgressFeatureProps>;
15
20
  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 IconArrowLeft({ color, ...other }: IconProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function IconArrowLeft({ color, size, ...other }: IconProps): import("react/jsx-runtime").JSX.Element;
7
7
  export {};
@@ -1 +1,2 @@
1
- export declare const useStopPropagationEvent: (ref: React.RefObject<HTMLElement>, event: string) => void;
1
+ import { DependencyList } from 'react';
2
+ export declare const useStopPropagationEvent: (ref: React.RefObject<HTMLElement>, event: string, deps?: DependencyList) => void;
@@ -62,6 +62,10 @@ export type OnBoardingScreenSubgoalButtonType = {
62
62
  subgoalButtonColor?: string | null;
63
63
  subgoalButtonTextColor?: string | null;
64
64
  };
65
+ export type OnBoardingScreenProgressType = {
66
+ template?: OnboardingProgressTemplate;
67
+ image?: ResponseFileType | null;
68
+ };
65
69
  export type OnBoardingScreenSkipButtonType = {
66
70
  skipButtonText?: string | null;
67
71
  showSkipButton?: boolean;
@@ -90,6 +94,13 @@ export type OnBoardingScreenTranslationsType = {
90
94
  export type OnBoardingScreenErrorsType = {
91
95
  errors?: Record<string, string>;
92
96
  };
97
+ export type OnBoardingProgressSettingsScreenType = {
98
+ isBackButton?: boolean;
99
+ isLogo?: boolean;
100
+ isCounter?: boolean;
101
+ isProgress?: boolean;
102
+ horizontalImageAlignment?: 'left' | 'right' | 'center';
103
+ };
93
104
  export type OnBoardingBaseScreenType = {
94
105
  id: string;
95
106
  type: OnBoardingScreenOptions;
@@ -109,6 +120,8 @@ export type OnBoardingBaseScreenType = {
109
120
  isStartScreen?: boolean;
110
121
  backgroundColor?: string | null;
111
122
  contentStyle: OnBoardingScreenStyleOptions;
123
+ progressSettings?: OnBoardingProgressSettingsScreenType;
124
+ isProgressVisible?: boolean;
112
125
  /**
113
126
  * @deprecated This field is deprecated and will be removed in future versions
114
127
  */
@@ -249,8 +262,13 @@ export type OnBoardingFlowType = {
249
262
  duration_min?: number | null;
250
263
  isDefault?: boolean;
251
264
  theme?: OnboardingVariant;
265
+ progress?: OnBoardingScreenProgressType;
252
266
  };
253
267
  export declare enum OnboardingVariant {
254
268
  default = "default",
255
269
  blue = "blue"
256
270
  }
271
+ export declare enum OnboardingProgressTemplate {
272
+ default = "default",
273
+ counter = "counter"
274
+ }