@mindly/ui-components 8.6.15 → 8.6.17
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 +3 -3
- package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step1.d.ts +1 -1
- package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step2.d.ts +2 -3
- package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step3.d.ts +3 -2
- package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step4.d.ts +1 -1
- package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/constants.d.ts +9 -0
- package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/hooks/useStepChanger.d.ts +1 -1
- package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/index.d.ts +1 -0
- package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/types.d.ts +6 -2
- package/dist/cjs/lib2/features/index.d.ts +1 -0
- package/dist/esm/index.js +7 -7
- package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step1.d.ts +1 -1
- package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step2.d.ts +2 -3
- package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step3.d.ts +3 -2
- package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step4.d.ts +1 -1
- package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/constants.d.ts +9 -0
- package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/hooks/useStepChanger.d.ts +1 -1
- package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/index.d.ts +1 -0
- package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/types.d.ts +6 -2
- package/dist/esm/lib2/features/index.d.ts +1 -0
- package/dist/index.d.ts +7 -3
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ export type Step2Props = {
|
|
|
4
4
|
t: WithTranslation['t'];
|
|
5
5
|
dateText: string;
|
|
6
6
|
onGoNext: () => void;
|
|
7
|
-
onCancel: () => void;
|
|
7
|
+
onCancel: (step?: number) => void;
|
|
8
8
|
onBack: () => void;
|
|
9
9
|
onInfoClick: () => void;
|
|
10
10
|
screenImage: {
|
|
@@ -13,6 +13,5 @@ export type Step2Props = {
|
|
|
13
13
|
height: number;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
declare const Step2: FC<CombinedProps>;
|
|
16
|
+
declare const Step2: FC<Step2Props>;
|
|
18
17
|
export default Step2;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
+
import { RecurringSessionsTimeSlots } from '../types';
|
|
2
3
|
import { WithTranslation } from 'react-i18next';
|
|
3
4
|
export type Step3Props = {
|
|
4
5
|
t: WithTranslation['t'];
|
|
5
|
-
|
|
6
|
+
date?: RecurringSessionsTimeSlots;
|
|
6
7
|
recurrentSessionsItems: string | undefined;
|
|
7
8
|
onGoNext: () => void;
|
|
8
|
-
onCancel: () => void;
|
|
9
|
+
onCancel: (step?: number) => void;
|
|
9
10
|
onBack: () => void;
|
|
10
11
|
onInfoClick: () => void;
|
|
11
12
|
screenImage: {
|
|
@@ -35,6 +35,15 @@ export declare const TRANSLATION_KEYS: {
|
|
|
35
35
|
DESCRIPTION: string;
|
|
36
36
|
CONTINUE: string;
|
|
37
37
|
};
|
|
38
|
+
EVERY_DAY: {
|
|
39
|
+
monday: string;
|
|
40
|
+
tuesday: string;
|
|
41
|
+
wednesday: string;
|
|
42
|
+
thursday: string;
|
|
43
|
+
friday: string;
|
|
44
|
+
saturday: string;
|
|
45
|
+
sunday: string;
|
|
46
|
+
};
|
|
38
47
|
};
|
|
39
48
|
export declare const STEP_1_INDEX = 1;
|
|
40
49
|
export declare const STEP_2_INDEX = 2;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type UseStepChangerProps = {
|
|
2
2
|
onSendAnalytics: (step: number) => void;
|
|
3
|
-
onCancel: () => void;
|
|
3
|
+
onCancel: (step?: number) => void;
|
|
4
4
|
isScreen3Visible: boolean;
|
|
5
5
|
};
|
|
6
6
|
export declare const useStepChanger: ({ onSendAnalytics, onCancel, isScreen3Visible, }: UseStepChangerProps) => {
|
|
@@ -7,15 +7,19 @@ export type OnSubmitArgs = {
|
|
|
7
7
|
selection: string[];
|
|
8
8
|
step: number;
|
|
9
9
|
};
|
|
10
|
+
export type RecurringSessionsTimeSlots = {
|
|
11
|
+
day: 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday';
|
|
12
|
+
time: string;
|
|
13
|
+
};
|
|
10
14
|
export type StepperBaseProps = {
|
|
11
15
|
t: WithTranslation['t'];
|
|
12
16
|
notificationDateTime: string;
|
|
13
|
-
reccurentSessionsTimeSlots?:
|
|
17
|
+
reccurentSessionsTimeSlots?: RecurringSessionsTimeSlots;
|
|
14
18
|
recurrentSessionsItems?: string;
|
|
15
19
|
onComplete: () => void;
|
|
16
20
|
onSendAnalytics: (step: number) => void;
|
|
17
21
|
onSubmit: ({ selection, step }: OnSubmitArgs) => void;
|
|
18
|
-
onCancel: () => void;
|
|
22
|
+
onCancel: (step?: number) => void;
|
|
19
23
|
onInfoClick: () => void;
|
|
20
24
|
avatarUrl?: string;
|
|
21
25
|
isRequestCompleted: boolean;
|
|
@@ -66,3 +66,4 @@ export * from './RecurringSessionPreviewFeature';
|
|
|
66
66
|
export * from './ReservedSessionManageModalFeature';
|
|
67
67
|
export * from './ViewedClientsListFeature';
|
|
68
68
|
export * from './RevampSubscriptionStepperFeature';
|
|
69
|
+
export type { RecurringSessionsTimeSlots } from './RevampSubscriptionStepperFeature';
|