@mindly/ui-components 5.104.1 → 5.104.2

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.
@@ -1,4 +1,13 @@
1
1
  import React from 'react';
2
2
  import { OnBoardingConfirmScreenType } from '../../../shared';
3
- declare const _default: React.NamedExoticComponent<OnBoardingConfirmScreenType>;
3
+ type OnBoardingConfirmScreenPreviewFeatureProps = OnBoardingConfirmScreenType & {
4
+ email: string | null;
5
+ emailErrorText?: string;
6
+ onChangeEmail?: (email: string) => void;
7
+ password: string | null;
8
+ passwordErrorText?: string;
9
+ onChangePassword?: (password: string) => void;
10
+ onSubmit?: () => void;
11
+ };
12
+ declare const _default: React.NamedExoticComponent<OnBoardingConfirmScreenPreviewFeatureProps>;
4
13
  export default _default;
@@ -1,4 +1,10 @@
1
1
  import React from 'react';
2
2
  import { OnBoardingEmailScreenType } from '../../../shared';
3
- declare const _default: React.NamedExoticComponent<OnBoardingEmailScreenType>;
3
+ type OnBoardingEmailScreenPreviewFeatureProps = OnBoardingEmailScreenType & {
4
+ email: string | null;
5
+ emailErrorText?: string;
6
+ onChangeEmail?: (email: string) => void;
7
+ onSubmit?: () => void;
8
+ };
9
+ declare const _default: React.NamedExoticComponent<OnBoardingEmailScreenPreviewFeatureProps>;
4
10
  export default _default;
@@ -8,6 +8,8 @@ type OnBoardingPaywallScreenPreviewFeatureProps = {
8
8
  reviews: MindlyReview[];
9
9
  locale?: string;
10
10
  useAdditionalDiscount?: boolean;
11
+ onBuyTariff?: (tariffId: string) => void;
12
+ isLoading?: boolean;
11
13
  } & OnBoardingPaywallScreenType;
12
14
  declare const OnBoardingPaywallScreenPreviewFeature: FC<OnBoardingPaywallScreenPreviewFeatureProps>;
13
15
  export default OnBoardingPaywallScreenPreviewFeature;
@@ -139,18 +139,9 @@ export type OnBoardingReviewsScreenType = OnBoardingBaseScreenType & OnBoardingS
139
139
  };
140
140
  export type OnBoardingEmailScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenTranslationsType & OnBoardingScreenErrorsType & OnBoardingScreenEmailType & OnBoardingScreenPrivacyType & {
141
141
  title: string;
142
- email: string | null;
143
- emailErrorText?: string;
144
- onChangeEmail?: (email: string) => void;
145
142
  };
146
143
  export type OnBoardingConfirmScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenTranslationsType & OnBoardingScreenErrorsType & OnBoardingScreenEmailType & OnBoardingScreenPasswordType & OnBoardingScreenAlertType & {
147
144
  title: string;
148
- email: string | null;
149
- emailErrorText?: string;
150
- password: string | null;
151
- passwordErrorText?: string;
152
- onChangeEmail?: (email: string) => void;
153
- onChangePassword?: (password: string) => void;
154
145
  };
155
146
  export type OnBoardingPaywallScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenTranslationsType & OnBoardingScreenErrorsType & {
156
147
  title: string;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { SolidInputProps } from './types';
3
- declare const SolidInput: React.FC<SolidInputProps>;
3
+ declare const SolidInput: React.ForwardRefExoticComponent<SolidInputProps & React.RefAttributes<HTMLIonInputElement>>;
4
4
  export default SolidInput;
@@ -1,4 +1,5 @@
1
1
  import { InputChangeEventDetail, IonInputCustomEvent, TextFieldTypes } from '@ionic/core';
2
+ import { KeyboardEventHandler } from 'react';
2
3
  export type SolidInputProps = {
3
4
  placeholder: string;
4
5
  value?: string;
@@ -11,4 +12,5 @@ export type SolidInputProps = {
11
12
  isInvalid?: boolean;
12
13
  showTogglePassword?: boolean;
13
14
  onChange?: (event: IonInputCustomEvent<InputChangeEventDetail>) => void;
15
+ onKeyDown?: KeyboardEventHandler;
14
16
  };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import * as React$1 from 'react';
3
- import React__default, { ReactNode, CSSProperties, HTMLAttributes, RefAttributes, FC, SVGAttributes, KeyboardEvent, InputHTMLAttributes, RefObject, EffectCallback, SVGProps, PropsWithChildren, ReactText, ReactElement, ChangeEvent } from 'react';
3
+ import React__default, { ReactNode, CSSProperties, HTMLAttributes, RefAttributes, FC, SVGAttributes, KeyboardEvent, InputHTMLAttributes, KeyboardEventHandler, RefObject, EffectCallback, SVGProps, PropsWithChildren, ReactText, ReactElement, ChangeEvent } from 'react';
4
4
  import { JSX as JSX$1 } from '@ionic/core/components';
5
5
  import * as react_i18next from 'react-i18next';
6
6
  import { WithTranslation } from 'react-i18next';
@@ -1672,18 +1672,9 @@ type OnBoardingReviewsScreenType = OnBoardingBaseScreenType & OnBoardingScreenBu
1672
1672
  };
1673
1673
  type OnBoardingEmailScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenTranslationsType & OnBoardingScreenErrorsType & OnBoardingScreenEmailType & OnBoardingScreenPrivacyType & {
1674
1674
  title: string;
1675
- email: string | null;
1676
- emailErrorText?: string;
1677
- onChangeEmail?: (email: string) => void;
1678
1675
  };
1679
1676
  type OnBoardingConfirmScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenTranslationsType & OnBoardingScreenErrorsType & OnBoardingScreenEmailType & OnBoardingScreenPasswordType & OnBoardingScreenAlertType & {
1680
1677
  title: string;
1681
- email: string | null;
1682
- emailErrorText?: string;
1683
- password: string | null;
1684
- passwordErrorText?: string;
1685
- onChangeEmail?: (email: string) => void;
1686
- onChangePassword?: (password: string) => void;
1687
1678
  };
1688
1679
  type OnBoardingPaywallScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenTranslationsType & OnBoardingScreenErrorsType & {
1689
1680
  title: string;
@@ -2399,9 +2390,10 @@ type SolidInputProps = {
2399
2390
  isInvalid?: boolean;
2400
2391
  showTogglePassword?: boolean;
2401
2392
  onChange?: (event: IonInputCustomEvent<InputChangeEventDetail>) => void;
2393
+ onKeyDown?: KeyboardEventHandler;
2402
2394
  };
2403
2395
 
2404
- declare const SolidInput: React__default.FC<SolidInputProps>;
2396
+ declare const SolidInput: React__default.ForwardRefExoticComponent<SolidInputProps & React__default.RefAttributes<HTMLIonInputElement>>;
2405
2397
 
2406
2398
  declare enum appThemes {
2407
2399
  client = "client",
@@ -3387,9 +3379,24 @@ declare const _default$k: React__default.NamedExoticComponent<OnBoardingProgress
3387
3379
 
3388
3380
  declare const _default$j: React__default.NamedExoticComponent<OnBoardingReviewsScreenType>;
3389
3381
 
3390
- declare const _default$i: React__default.NamedExoticComponent<OnBoardingEmailScreenType>;
3382
+ type OnBoardingEmailScreenPreviewFeatureProps = OnBoardingEmailScreenType & {
3383
+ email: string | null;
3384
+ emailErrorText?: string;
3385
+ onChangeEmail?: (email: string) => void;
3386
+ onSubmit?: () => void;
3387
+ };
3388
+ declare const _default$i: React__default.NamedExoticComponent<OnBoardingEmailScreenPreviewFeatureProps>;
3391
3389
 
3392
- declare const _default$h: React__default.NamedExoticComponent<OnBoardingConfirmScreenType>;
3390
+ type OnBoardingConfirmScreenPreviewFeatureProps = OnBoardingConfirmScreenType & {
3391
+ email: string | null;
3392
+ emailErrorText?: string;
3393
+ onChangeEmail?: (email: string) => void;
3394
+ password: string | null;
3395
+ passwordErrorText?: string;
3396
+ onChangePassword?: (password: string) => void;
3397
+ onSubmit?: () => void;
3398
+ };
3399
+ declare const _default$h: React__default.NamedExoticComponent<OnBoardingConfirmScreenPreviewFeatureProps>;
3393
3400
 
3394
3401
  type OnBoardingPaywallScreenPreviewFeatureProps$1 = {
3395
3402
  variant?: OnboardingVariant;
@@ -3404,6 +3411,8 @@ type OnBoardingPaywallScreenPreviewFeatureProps = {
3404
3411
  reviews: MindlyReview[];
3405
3412
  locale?: string;
3406
3413
  useAdditionalDiscount?: boolean;
3414
+ onBuyTariff?: (tariffId: string) => void;
3415
+ isLoading?: boolean;
3407
3416
  } & OnBoardingPaywallScreenType;
3408
3417
  declare const OnBoardingPaywallScreenPreviewFeature: FC<OnBoardingPaywallScreenPreviewFeatureProps>;
3409
3418
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "5.104.1",
3
+ "version": "5.104.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",