@mindly/ui-components 5.104.1 → 5.104.2-dev.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.
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/lib2/features/MobilePickerFeature/MobilePickerFeature.d.ts +7 -0
- package/dist/cjs/lib2/features/MobilePickerFeature/index.d.ts +1 -0
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingConfirmScreenPreviewFeature/OnBoardingConfirmScreenPreviewFeature.d.ts +10 -1
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingEmailScreenPreviewFeature/OnBoardingEmailScreenPreviewFeature.d.ts +7 -1
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/OnBoardingPaywallScreenPreviewFeature.d.ts +2 -0
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts +1 -1
- package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/constants.d.ts +5 -4
- package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewTrialSessionFeature/constants.d.ts +5 -4
- package/dist/cjs/lib2/shared/providers/CircleRatingProvider/CircleRatingProvider.d.ts +1 -1
- package/dist/cjs/lib2/shared/types/onBoardingFlow.type.d.ts +0 -9
- package/dist/cjs/lib2/shared/ui/Flag_v2/flags/Pl.d.ts +2 -0
- package/dist/cjs/lib2/shared/ui/Flag_v2/flags/Uk.d.ts +2 -0
- package/dist/cjs/lib2/shared/ui/Input/Input.d.ts +4 -0
- package/dist/cjs/lib2/shared/ui/Input/types.d.ts +4 -0
- package/dist/cjs/lib2/shared/ui/SolidInput/SolidInput.d.ts +1 -1
- package/dist/cjs/lib2/shared/ui/SolidInput/types.d.ts +2 -0
- package/dist/cjs/lib2/shared/utils/matching.d.ts +2 -1
- package/dist/cjs/lib2/shared/utils/mock.d.ts +2 -1
- package/dist/cjs/lib2/shared/utils/session.d.ts +2 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/lib2/features/MobilePickerFeature/MobilePickerFeature.d.ts +7 -0
- package/dist/esm/lib2/features/MobilePickerFeature/index.d.ts +1 -0
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingConfirmScreenPreviewFeature/OnBoardingConfirmScreenPreviewFeature.d.ts +10 -1
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingEmailScreenPreviewFeature/OnBoardingEmailScreenPreviewFeature.d.ts +7 -1
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/OnBoardingPaywallScreenPreviewFeature.d.ts +2 -0
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts +1 -1
- package/dist/esm/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/constants.d.ts +5 -4
- package/dist/esm/lib2/features/SessionReviewsFeature/ReviewTrialSessionFeature/constants.d.ts +5 -4
- package/dist/esm/lib2/shared/providers/CircleRatingProvider/CircleRatingProvider.d.ts +1 -1
- package/dist/esm/lib2/shared/types/onBoardingFlow.type.d.ts +0 -9
- package/dist/esm/lib2/shared/ui/Flag_v2/flags/Pl.d.ts +2 -0
- package/dist/esm/lib2/shared/ui/Flag_v2/flags/Uk.d.ts +2 -0
- package/dist/esm/lib2/shared/ui/Input/Input.d.ts +4 -0
- package/dist/esm/lib2/shared/ui/Input/types.d.ts +4 -0
- package/dist/esm/lib2/shared/ui/SolidInput/SolidInput.d.ts +1 -1
- package/dist/esm/lib2/shared/ui/SolidInput/types.d.ts +2 -0
- package/dist/esm/lib2/shared/utils/matching.d.ts +2 -1
- package/dist/esm/lib2/shared/utils/mock.d.ts +2 -1
- package/dist/esm/lib2/shared/utils/session.d.ts +2 -1
- package/dist/index.d.ts +24 -16
- package/package.json +9 -8
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
selections: Record<string, string[]>;
|
|
3
|
+
defaults?: Record<string, string>;
|
|
4
|
+
onChange(value: Record<string, string>): void;
|
|
5
|
+
};
|
|
6
|
+
declare const MobilePickerFeature: ({ selections, defaults, onChange, }: Props) => JSX.Element;
|
|
7
|
+
export default MobilePickerFeature;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MobilePickerFeature } from './MobilePickerFeature';
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { OnBoardingConfirmScreenType } from '../../../shared';
|
|
3
|
-
|
|
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
|
-
|
|
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;
|
package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const enTranslate: Record<string, string>;
|
|
2
|
-
export declare const mockEnT:
|
|
2
|
+
export declare const mockEnT: import("i18next").TFunction<"translation", undefined>;
|
|
3
3
|
export declare const images: {
|
|
4
4
|
after: string;
|
|
5
5
|
before: string;
|
package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/constants.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
1
2
|
export type Tag = {
|
|
2
3
|
id: string;
|
|
3
4
|
name: string;
|
|
4
5
|
};
|
|
5
|
-
export declare const TAGS_LIST_1_SUBSCRIPTION: (t?:
|
|
6
|
-
export declare const TAGS_LIST_2_SUBSCRIPTION: (t?:
|
|
7
|
-
export declare const TAGS_LIST_3_SUBSCRIPTION: (t?:
|
|
8
|
-
export declare const TAGS_BY_RATING_SUBSCRIPTION: (t?:
|
|
6
|
+
export declare const TAGS_LIST_1_SUBSCRIPTION: (t?: WithTranslation['t']) => Tag[];
|
|
7
|
+
export declare const TAGS_LIST_2_SUBSCRIPTION: (t?: WithTranslation['t']) => Tag[];
|
|
8
|
+
export declare const TAGS_LIST_3_SUBSCRIPTION: (t?: WithTranslation['t']) => Tag[];
|
|
9
|
+
export declare const TAGS_BY_RATING_SUBSCRIPTION: (t?: WithTranslation['t']) => Record<number, Tag[]>;
|
package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewTrialSessionFeature/constants.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
1
2
|
export type Tag = {
|
|
2
3
|
id: string;
|
|
3
4
|
name: string;
|
|
4
5
|
};
|
|
5
|
-
export declare const TAGS_LIST_1_TRIAL: (t?:
|
|
6
|
-
export declare const TAGS_LIST_2_TRIAL: (t?:
|
|
7
|
-
export declare const TAGS_LIST_3_TRIAL: (t?:
|
|
8
|
-
export declare const TAGS_BY_RATING_TRIAL: (t?:
|
|
6
|
+
export declare const TAGS_LIST_1_TRIAL: (t?: WithTranslation['t']) => Tag[];
|
|
7
|
+
export declare const TAGS_LIST_2_TRIAL: (t?: WithTranslation['t']) => Tag[];
|
|
8
|
+
export declare const TAGS_LIST_3_TRIAL: (t?: WithTranslation['t']) => Tag[];
|
|
9
|
+
export declare const TAGS_BY_RATING_TRIAL: (t?: WithTranslation['t']) => Record<number, Tag[]>;
|
|
@@ -5,5 +5,5 @@ export declare const CircleRatingContext: React.Context<CircleRatingContextData>
|
|
|
5
5
|
export declare const CircleRatingProvider: ({ children, data, t, }: {
|
|
6
6
|
children: JSX.Element;
|
|
7
7
|
data: CircleRatingContextProps;
|
|
8
|
-
t:
|
|
8
|
+
t: WithTranslation['t'];
|
|
9
9
|
}) => JSX.Element | null;
|
|
@@ -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.
|
|
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
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
1
2
|
import { SpecialistAreaByMatch } from '../../features/SpecialistAreaListFeature/types';
|
|
2
3
|
import { Specialist, UserType } from '../types';
|
|
3
|
-
export declare const getMatchingValues: (specialist: Specialist, user?: UserType, join?: boolean, t?:
|
|
4
|
+
export declare const getMatchingValues: (specialist: Specialist, user?: UserType, join?: boolean, t?: WithTranslation['t']) => {
|
|
4
5
|
matchingByAreas: SpecialistAreaByMatch[];
|
|
5
6
|
matchingBySpecialization: SpecialistAreaByMatch[];
|
|
6
7
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
1
2
|
import { ClientSpecialistContractStatusEnum } from '../types/contract';
|
|
2
3
|
import { UserType } from '../types/user';
|
|
3
4
|
import { Specialist } from '../types/specialistTypes';
|
|
4
5
|
import { Session, SpecialistReview } from '../types';
|
|
5
|
-
export declare const mockT: (translate?: Record<string, string>) =>
|
|
6
|
+
export declare const mockT: (translate?: Record<string, string>) => WithTranslation['t'];
|
|
6
7
|
export declare const specialist: Specialist;
|
|
7
8
|
export declare const currentUser: UserType;
|
|
8
9
|
export declare const listReviews: SpecialistReview[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
1
2
|
import { Session, SessionTime, SessionVariant } from '../types';
|
|
2
3
|
export declare const SOON_SESSION_TIME_SECONDS: number;
|
|
3
4
|
export declare const NEAR_SESSION_TIME_SECONDS: number;
|
|
@@ -9,5 +10,5 @@ export declare const getSessionsByYear: (sessions: Session[]) => Map<number, Ses
|
|
|
9
10
|
export declare const getSessionsByMonth: (sessions: Session[]) => Map<number, Session[]>;
|
|
10
11
|
export declare const getSessionsByDay: (sessions: Session[]) => Map<number, Session[]>;
|
|
11
12
|
export declare const splitSessions: (sessions: Session[]) => Map<string, Session[]>;
|
|
12
|
-
export declare const getSessionTimeLabel: (variant: SessionVariant, startSessionDate: Date, t:
|
|
13
|
+
export declare const getSessionTimeLabel: (variant: SessionVariant, startSessionDate: Date, t: WithTranslation['t'], locale: string) => string;
|
|
13
14
|
export declare const canManageSession: (sessionDate?: Date) => boolean;
|