@mindly/ui-components 8.6.8 → 8.6.9

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 (56) hide show
  1. package/dist/cjs/index.js +7 -7
  2. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/RevampSubscriptionStepperFeature.d.ts +4 -0
  3. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step1.d.ts +12 -0
  4. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step2.d.ts +18 -0
  5. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step3.d.ts +18 -0
  6. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step4.d.ts +16 -0
  7. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step5.d.ts +18 -0
  8. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step6.d.ts +18 -0
  9. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step7.d.ts +9 -0
  10. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/Stepper/index.d.ts +7 -0
  11. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/common/CustomButton/CustomButton.d.ts +10 -0
  12. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/common/CustomButton/index.d.ts +2 -0
  13. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/common/CustomButton/types.d.ts +4 -0
  14. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/common/HeaderWithIcon/HeaderWithIcon.d.ts +8 -0
  15. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/common/QuestionLayout/Footer.d.ts +6 -0
  16. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/common/QuestionLayout/Main.d.ts +13 -0
  17. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/common/ScreenContent/ScreenContent.d.ts +19 -0
  18. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/common/index.d.ts +4 -0
  19. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/components/index.d.ts +7 -0
  20. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/constants.d.ts +45 -0
  21. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/hooks/useSelectValue.d.ts +16 -0
  22. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/hooks/useStepChanger.d.ts +11 -0
  23. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/index.d.ts +1 -0
  24. package/dist/cjs/lib2/features/RevampSubscriptionStepperFeature/types.d.ts +42 -0
  25. package/dist/cjs/lib2/features/index.d.ts +1 -0
  26. package/dist/cjs/lib2/shared/assets/icons/IconRoundWarning.d.ts +3 -0
  27. package/dist/cjs/lib2/shared/assets/icons/index.d.ts +1 -0
  28. package/dist/esm/index.js +7 -7
  29. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/RevampSubscriptionStepperFeature.d.ts +4 -0
  30. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step1.d.ts +12 -0
  31. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step2.d.ts +18 -0
  32. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step3.d.ts +18 -0
  33. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step4.d.ts +16 -0
  34. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step5.d.ts +18 -0
  35. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step6.d.ts +18 -0
  36. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/Stepper/Step7.d.ts +9 -0
  37. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/Stepper/index.d.ts +7 -0
  38. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/common/CustomButton/CustomButton.d.ts +10 -0
  39. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/common/CustomButton/index.d.ts +2 -0
  40. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/common/CustomButton/types.d.ts +4 -0
  41. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/common/HeaderWithIcon/HeaderWithIcon.d.ts +8 -0
  42. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/common/QuestionLayout/Footer.d.ts +6 -0
  43. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/common/QuestionLayout/Main.d.ts +13 -0
  44. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/common/ScreenContent/ScreenContent.d.ts +19 -0
  45. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/common/index.d.ts +4 -0
  46. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/components/index.d.ts +7 -0
  47. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/constants.d.ts +45 -0
  48. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/hooks/useSelectValue.d.ts +16 -0
  49. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/hooks/useStepChanger.d.ts +11 -0
  50. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/index.d.ts +1 -0
  51. package/dist/esm/lib2/features/RevampSubscriptionStepperFeature/types.d.ts +42 -0
  52. package/dist/esm/lib2/features/index.d.ts +1 -0
  53. package/dist/esm/lib2/shared/assets/icons/IconRoundWarning.d.ts +3 -0
  54. package/dist/esm/lib2/shared/assets/icons/index.d.ts +1 -0
  55. package/dist/index.d.ts +98 -53
  56. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { StepperBaseProps } from './types';
3
+ declare const _default: React.NamedExoticComponent<StepperBaseProps>;
4
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ import { WithTranslation } from 'react-i18next';
3
+ export type Step1Props = {
4
+ avatarUrl?: string;
5
+ t: WithTranslation['t'];
6
+ onGoNext: () => void;
7
+ onBack: () => void;
8
+ onCancel: () => void;
9
+ onInfoClick: () => void;
10
+ };
11
+ declare const Step1: FC<Step1Props>;
12
+ export default Step1;
@@ -0,0 +1,18 @@
1
+ import { FC } from 'react';
2
+ import { WithTranslation } from 'react-i18next';
3
+ export type Step2Props = {
4
+ t: WithTranslation['t'];
5
+ dateText: string;
6
+ onGoNext: () => void;
7
+ onCancel: () => void;
8
+ onBack: () => void;
9
+ onInfoClick: () => void;
10
+ screenImage: {
11
+ url: string;
12
+ width: number;
13
+ height: number;
14
+ };
15
+ };
16
+ type CombinedProps = Step2Props;
17
+ declare const Step2: FC<CombinedProps>;
18
+ export default Step2;
@@ -0,0 +1,18 @@
1
+ import { FC } from 'react';
2
+ import { WithTranslation } from 'react-i18next';
3
+ export type Step3Props = {
4
+ t: WithTranslation['t'];
5
+ dateText: string | undefined;
6
+ recurrentSessionsItems: string | undefined;
7
+ onGoNext: () => void;
8
+ onCancel: () => void;
9
+ onBack: () => void;
10
+ onInfoClick: () => void;
11
+ screenImage: {
12
+ url: string;
13
+ width: number;
14
+ height: number;
15
+ };
16
+ };
17
+ declare const Step3: FC<Step3Props>;
18
+ export default Step3;
@@ -0,0 +1,16 @@
1
+ import { FC } from 'react';
2
+ import { WithTranslation } from 'react-i18next';
3
+ export type Step4Props = {
4
+ t: WithTranslation['t'];
5
+ onGoNext: () => void;
6
+ onCancel: () => void;
7
+ onBack: () => void;
8
+ onInfoClick: () => void;
9
+ screenImage: {
10
+ url: string;
11
+ width: number;
12
+ height: number;
13
+ };
14
+ };
15
+ declare const Step4: FC<Step4Props>;
16
+ export default Step4;
@@ -0,0 +1,18 @@
1
+ import { FC } from 'react';
2
+ import { WithTranslation } from 'react-i18next';
3
+ import { Selection } from '@react-types/shared';
4
+ import { OnSubmitArgs } from '../types';
5
+ export type Step5Props = {
6
+ t: WithTranslation['t'];
7
+ onGoNext: () => void;
8
+ onBack: () => void;
9
+ onSubmit: ({ selection, step }: OnSubmitArgs) => void;
10
+ options: {
11
+ id: string;
12
+ label: string;
13
+ }[];
14
+ initialSelection?: Selection;
15
+ onSaveSelectionState?: (selection: Selection, step: number) => void;
16
+ };
17
+ declare const Step5: FC<Step5Props>;
18
+ export default Step5;
@@ -0,0 +1,18 @@
1
+ import { FC } from 'react';
2
+ import { WithTranslation } from 'react-i18next';
3
+ import { Selection } from '@react-types/shared';
4
+ import { OnSubmitArgs } from '../types';
5
+ export type Step6Props = {
6
+ t: WithTranslation['t'];
7
+ onGoNext: () => void;
8
+ onBack: () => void;
9
+ onSubmit: ({ selection, step }: OnSubmitArgs) => void;
10
+ options: {
11
+ id: string;
12
+ label: string;
13
+ }[];
14
+ initialSelection?: Selection;
15
+ onSaveSelectionState?: (selection: Selection, step: number) => void;
16
+ };
17
+ declare const Step6: FC<Step6Props>;
18
+ export default Step6;
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+ import { WithTranslation } from 'react-i18next';
3
+ export type Step7Props = {
4
+ t: WithTranslation['t'];
5
+ isRequestCompleted: boolean;
6
+ onComplete: () => void;
7
+ };
8
+ declare const Step7: FC<Step7Props>;
9
+ export default Step7;
@@ -0,0 +1,7 @@
1
+ export { default as Step1 } from './Step1';
2
+ export { default as Step2 } from './Step2';
3
+ export { default as Step3 } from './Step3';
4
+ export { default as Step4 } from './Step4';
5
+ export { default as Step5 } from './Step5';
6
+ export { default as Step6 } from './Step6';
7
+ export { default as Step7 } from './Step7';
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { CustomButtonType } from './types';
3
+ type CustomButtonProps = {
4
+ onClick?: () => void;
5
+ buttonText: string;
6
+ type?: CustomButtonType;
7
+ disabled?: boolean;
8
+ };
9
+ declare const CustomButton: FC<CustomButtonProps>;
10
+ export default CustomButton;
@@ -0,0 +1,2 @@
1
+ export { default as CustomButton } from './CustomButton';
2
+ export { CustomButtonType } from './types';
@@ -0,0 +1,4 @@
1
+ export declare enum CustomButtonType {
2
+ BASE = "base",
3
+ OUTLINED = "outlined"
4
+ }
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ type HeaderWithIconProps = {
3
+ isIconVisible?: boolean;
4
+ onInfoClick?: () => void;
5
+ onBackClick: () => void;
6
+ };
7
+ declare const HeaderWithIcon: FC<HeaderWithIconProps>;
8
+ export default HeaderWithIcon;
@@ -0,0 +1,6 @@
1
+ declare const Footer: ({ buttonText, isButtonDisabled, onSubmit, }: {
2
+ buttonText: string;
3
+ isButtonDisabled: boolean;
4
+ onSubmit: () => void;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default Footer;
@@ -0,0 +1,13 @@
1
+ import { Selection } from '../../../../shared';
2
+ type MainProps = {
3
+ title: string;
4
+ description?: string;
5
+ options?: {
6
+ id: string;
7
+ label: string;
8
+ }[];
9
+ selectedValue?: Selection;
10
+ onValueChange?: (value: Selection) => void;
11
+ };
12
+ declare const Main: ({ title, description, options, selectedValue, onValueChange, }: MainProps) => import("react/jsx-runtime").JSX.Element;
13
+ export default Main;
@@ -0,0 +1,19 @@
1
+ import { FC, ReactNode } from 'react';
2
+ type AlertCardProps = {
3
+ title?: string;
4
+ text?: string;
5
+ };
6
+ type ScreenContentProps = {
7
+ isAvatarVisible: boolean;
8
+ title: string;
9
+ description: string | ReactNode;
10
+ avatarUrl?: string;
11
+ icon?: {
12
+ url?: string;
13
+ width?: number;
14
+ height?: number;
15
+ };
16
+ alertCardProps?: AlertCardProps;
17
+ };
18
+ declare const ScreenContent: FC<ScreenContentProps>;
19
+ export default ScreenContent;
@@ -0,0 +1,4 @@
1
+ export { default as ScreenContent } from './ScreenContent/ScreenContent';
2
+ export { default as CustomButton } from './CustomButton/CustomButton';
3
+ export { default as HeaderWithIcon } from './HeaderWithIcon/HeaderWithIcon';
4
+ export { CustomButtonType } from './CustomButton/types';
@@ -0,0 +1,7 @@
1
+ export { default as Step1 } from '../Stepper/Step1';
2
+ export { default as Step2 } from '../Stepper/Step2';
3
+ export { default as Step3 } from '../Stepper/Step3';
4
+ export { default as Step4 } from '../Stepper/Step4';
5
+ export { default as Step5 } from '../Stepper/Step5';
6
+ export { default as Step6 } from '../Stepper/Step6';
7
+ export { default as Step7 } from '../Stepper/Step7';
@@ -0,0 +1,45 @@
1
+ export declare const TRANSLATION_KEYS: {
2
+ STEP1: {
3
+ TITLE: string;
4
+ DESCRIPTION: string;
5
+ BUTTON1_TEXT: string;
6
+ BUTTON2_TEXT: string;
7
+ };
8
+ STEP2: {
9
+ TITLE: string;
10
+ DESCRIPTION: string;
11
+ BUTTON1_TEXT: string;
12
+ BUTTON2_TEXT: string;
13
+ };
14
+ STEP3: {
15
+ TITLE: string;
16
+ DESCRIPTION: string;
17
+ BUTTON1_TEXT: string;
18
+ BUTTON2_TEXT: string;
19
+ ALERT_TITLE: string;
20
+ ALERT_DESCRIPTION: string;
21
+ };
22
+ STEP4: {
23
+ TITLE: string;
24
+ DESCRIPTION: string;
25
+ BUTTON1_TEXT: string;
26
+ BUTTON2_TEXT: string;
27
+ };
28
+ STEP5: {
29
+ TITLE: string;
30
+ DESCRIPTION: string;
31
+ CONTINUE: string;
32
+ };
33
+ STEP6: {
34
+ TITLE: string;
35
+ DESCRIPTION: string;
36
+ CONTINUE: string;
37
+ };
38
+ };
39
+ export declare const STEP_1_INDEX = 1;
40
+ export declare const STEP_2_INDEX = 2;
41
+ export declare const STEP_3_INDEX = 3;
42
+ export declare const STEP_4_INDEX = 4;
43
+ export declare const STEP_5_INDEX = 5;
44
+ export declare const STEP_6_INDEX = 6;
45
+ export declare const STEP_7_INDEX = 7;
@@ -0,0 +1,16 @@
1
+ import { Selection } from '@react-types/shared';
2
+ import { OnSubmitArgs } from '../types';
3
+ type UseSelectValueProps = {
4
+ onSubmit: ({ selection, step }: OnSubmitArgs) => void;
5
+ handleGoNext: () => void;
6
+ initialSelection?: Selection;
7
+ onSaveSelectionState?: (selection: Selection, step: number) => void;
8
+ step: number;
9
+ };
10
+ export declare const useSelectValue: ({ onSubmit, handleGoNext, initialSelection, onSaveSelectionState, step, }: UseSelectValueProps) => {
11
+ selectedValue: Selection;
12
+ isButtonDisabled: boolean;
13
+ handleChangeValue: (selection: Selection) => void;
14
+ handleSubmit: () => void;
15
+ };
16
+ export {};
@@ -0,0 +1,11 @@
1
+ type UseStepChangerProps = {
2
+ onSendAnalytics: (step: number) => void;
3
+ onCancel: () => void;
4
+ isScreen3Visible: boolean;
5
+ };
6
+ export declare const useStepChanger: ({ onSendAnalytics, onCancel, isScreen3Visible, }: UseStepChangerProps) => {
7
+ step: number;
8
+ handleGoNext: () => void;
9
+ handleGoBack: () => void;
10
+ };
11
+ export {};
@@ -0,0 +1 @@
1
+ export { default as RevampSubscriptionStepperFeature } from './RevampSubscriptionStepperFeature';
@@ -0,0 +1,42 @@
1
+ import { WithTranslation } from 'react-i18next';
2
+ type ScreenSelectorOptionsType = {
3
+ id: string;
4
+ label: string;
5
+ };
6
+ export type OnSubmitArgs = {
7
+ selection: string[];
8
+ step: number;
9
+ };
10
+ export type StepperBaseProps = {
11
+ t: WithTranslation['t'];
12
+ notificationDateTime: string;
13
+ reccurentSessionsTimeSlots?: string;
14
+ recurrentSessionsItems?: string;
15
+ onComplete: () => void;
16
+ onSendAnalytics: (step: number) => void;
17
+ onSubmit: ({ selection, step }: OnSubmitArgs) => void;
18
+ onCancel: () => void;
19
+ onInfoClick: () => void;
20
+ avatarUrl?: string;
21
+ isRequestCompleted: boolean;
22
+ screen5Options: ScreenSelectorOptionsType[];
23
+ screen6Options: ScreenSelectorOptionsType[];
24
+ screenImages: {
25
+ screen2: {
26
+ url: string;
27
+ width: number;
28
+ height: number;
29
+ };
30
+ screen3: {
31
+ url: string;
32
+ width: number;
33
+ height: number;
34
+ };
35
+ screen4: {
36
+ url: string;
37
+ width: number;
38
+ height: number;
39
+ };
40
+ };
41
+ };
42
+ export {};
@@ -64,3 +64,4 @@ export * from './SessionManageModalFeature';
64
64
  export * from './RecurringSessionPreviewFeature';
65
65
  export * from './ReservedSessionManageModalFeature';
66
66
  export * from './ViewedClientsListFeature';
67
+ export * from './RevampSubscriptionStepperFeature';
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { IconProps } from '../../types/iconProps';
3
+ export declare const IconRoundWarning: React.FC<IconProps>;
@@ -164,3 +164,4 @@ export * from './IconBusiness';
164
164
  export * from './IconFilledHeart';
165
165
  export * from './IconBinoculars';
166
166
  export * from './IconLoyalty';
167
+ export * from './IconRoundWarning';