@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.
Files changed (22) hide show
  1. package/dist/cjs/index.js +3 -3
  2. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step1.d.ts +1 -1
  3. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step2.d.ts +2 -3
  4. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step3.d.ts +3 -2
  5. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step4.d.ts +1 -1
  6. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/constants.d.ts +9 -0
  7. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/hooks/useStepChanger.d.ts +1 -1
  8. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/index.d.ts +1 -0
  9. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/types.d.ts +6 -2
  10. package/dist/cjs/lib2/features/index.d.ts +1 -0
  11. package/dist/esm/index.js +7 -7
  12. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step1.d.ts +1 -1
  13. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step2.d.ts +2 -3
  14. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step3.d.ts +3 -2
  15. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step4.d.ts +1 -1
  16. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/constants.d.ts +9 -0
  17. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/hooks/useStepChanger.d.ts +1 -1
  18. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/index.d.ts +1 -0
  19. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/types.d.ts +6 -2
  20. package/dist/esm/lib2/features/index.d.ts +1 -0
  21. package/dist/index.d.ts +7 -3
  22. package/package.json +1 -1
@@ -5,7 +5,7 @@ export type Step1Props = {
5
5
  t: WithTranslation['t'];
6
6
  onGoNext: () => void;
7
7
  onBack: () => void;
8
- onCancel: () => void;
8
+ onCancel: (step?: number) => void;
9
9
  onInfoClick: () => void;
10
10
  };
11
11
  declare const Step1: FC<Step1Props>;
@@ -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
- type CombinedProps = Step2Props;
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
- dateText: string | undefined;
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: {
@@ -3,7 +3,7 @@ import { WithTranslation } from 'react-i18next';
3
3
  export type Step4Props = {
4
4
  t: WithTranslation['t'];
5
5
  onGoNext: () => void;
6
- onCancel: () => void;
6
+ onCancel: (step?: number) => void;
7
7
  onBack: () => void;
8
8
  onInfoClick: () => void;
9
9
  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) => {
@@ -1 +1,2 @@
1
1
  export { default as RevampSubscriptionStepperFeature } from './RevampSubscriptionStepperFeature';
2
+ export type { RecurringSessionsTimeSlots } from './types';
@@ -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?: string;
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';