@mindly/ui-components 5.98.3 → 5.98.5

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 +4 -4
  2. package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/ReviewSubscriptionSessionFeature.d.ts +2 -0
  3. package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/SessionReview.d.ts +4 -5
  4. package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewTrialSessionFeature/ReviewTrialSessionFeature.d.ts +4 -5
  5. package/dist/cjs/lib2/features/SessionReviewsFeature/components/TagsList.d.ts +1 -1
  6. package/dist/cjs/lib2/shared/assets/icons/IconCalendarNew.d.ts +3 -3
  7. package/dist/cjs/lib2/shared/assets/icons/IconGiftNew.d.ts +3 -0
  8. package/dist/cjs/lib2/shared/assets/icons/index.d.ts +1 -0
  9. package/dist/cjs/lib2/shared/types/iconProps.d.ts +2 -0
  10. package/dist/cjs/lib2/shared/types/onBoardingFlow.type.d.ts +1 -0
  11. package/dist/esm/index.js +6 -6
  12. package/dist/esm/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/ReviewSubscriptionSessionFeature.d.ts +2 -0
  13. package/dist/esm/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/SessionReview.d.ts +4 -5
  14. package/dist/esm/lib2/features/SessionReviewsFeature/ReviewTrialSessionFeature/ReviewTrialSessionFeature.d.ts +4 -5
  15. package/dist/esm/lib2/features/SessionReviewsFeature/components/TagsList.d.ts +1 -1
  16. package/dist/esm/lib2/shared/assets/icons/IconCalendarNew.d.ts +3 -3
  17. package/dist/esm/lib2/shared/assets/icons/IconGiftNew.d.ts +3 -0
  18. package/dist/esm/lib2/shared/assets/icons/index.d.ts +1 -0
  19. package/dist/esm/lib2/shared/types/iconProps.d.ts +2 -0
  20. package/dist/esm/lib2/shared/types/onBoardingFlow.type.d.ts +1 -0
  21. package/dist/index.d.ts +16 -12
  22. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { WithTranslation } from 'react-i18next';
2
3
  import { SessionReview } from './SessionReview';
3
4
  import { SpecialistReview } from './SpecialistReview';
4
5
  export type ReviewSubscriptionSessionFeatureProps = {
@@ -13,6 +14,7 @@ export type ReviewSubscriptionSessionFeatureProps = {
13
14
  onModalAppeared?: () => void;
14
15
  };
15
16
  onClose: () => void;
17
+ t?: WithTranslation['t'];
16
18
  };
17
19
  declare const ReviewSubscriptionSessionFeature: React.FC<ReviewSubscriptionSessionFeatureProps>;
18
20
  export default ReviewSubscriptionSessionFeature;
@@ -4,16 +4,15 @@ type SessionReviewProps = {
4
4
  specialistName: string;
5
5
  onSubmit: (data: {
6
6
  rate: number;
7
- reason: string;
8
- is_custom_reason: boolean;
7
+ reasons: string[];
9
8
  comment?: string;
10
9
  }) => Promise<void>;
11
10
  specialistReviewNeeded?: boolean;
12
11
  onModalAppeared?: () => void;
13
12
  onStarsClick?: (rate: number) => void;
14
- onReasonClick?: (rate: number, reason: string, is_custom_reason: boolean) => void;
15
- onCommentBlur?: (rate: number, reason: string, is_custom_reason: boolean, comment: string) => void;
16
- onContinueClick?: (rate: number, reason: string, is_custom_reason: boolean, comment: string) => void;
13
+ onReasonClick?: (rate: number, reasons: string[]) => void;
14
+ onCommentBlur?: (rate: number, reasons: string[], comment: string) => void;
15
+ onContinueClick?: (rate: number, reasons: string[], comment: string) => void;
17
16
  t?: WithTranslation['t'];
18
17
  };
19
18
  export declare const SessionReview: React.FC<SessionReviewProps>;
@@ -6,17 +6,16 @@ export type ReviewTrialSessionFeatureProps = {
6
6
  isOpen: boolean;
7
7
  onSubmit: (data: {
8
8
  rate: number;
9
- reason: string;
10
- is_custom_reason: boolean;
9
+ reasons: string[];
11
10
  comment?: string;
12
11
  }) => void;
13
12
  showMotivation?: () => void;
14
13
  continueTherapy?: () => void;
15
14
  onModalAppeared?: () => void;
16
15
  onStarsClick?: (rate: number) => void;
17
- onReasonClick?: (rate: number, reason: string, is_custom_reason: boolean) => void;
18
- onCommentBlur?: (rate: number, reason: string, is_custom_reason: boolean, comment: string) => void;
19
- onContinueClick?: (rate: number, reason: string, is_custom_reason: boolean, comment: string) => void;
16
+ onReasonClick?: (rate: number, reasons: string[]) => void;
17
+ onCommentBlur?: (rate: number, reasons: string[], comment: string) => void;
18
+ onContinueClick?: (rate: number, reasons: string[], comment: string) => void;
20
19
  onClose?: () => void;
21
20
  t?: WithTranslation['t'];
22
21
  };
@@ -6,7 +6,7 @@ type Tag = {
6
6
  };
7
7
  type TagsListProps = {
8
8
  tags: Tag[];
9
- selected: Tag | null;
9
+ selected: Tag[];
10
10
  isTrialSession: boolean;
11
11
  comment: string;
12
12
  onClick: (tag: Tag) => void;
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
2
- import { IconProps } from '../../types/iconProps';
3
- export declare const IconCalendarNew: React.FC<IconProps>;
1
+ import { FC } from 'react';
2
+ import { IconProps } from '../../types';
3
+ export declare const IconCalendarNew: FC<IconProps>;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { IconProps } from '../../types';
3
+ export declare const IconGiftNew: FC<IconProps>;
@@ -36,6 +36,7 @@ export * from './IconEye';
36
36
  export * from './IconEyeOff';
37
37
  export * from './IconWarning';
38
38
  export * from './IconGift';
39
+ export * from './IconGiftNew';
39
40
  export * from './IconCreditCard';
40
41
  export * from './IconQuestion';
41
42
  export * from './IconPaper';
@@ -1,6 +1,8 @@
1
1
  import { SVGAttributes } from 'react';
2
2
  export interface IconProps extends SVGAttributes<SVGElement> {
3
3
  size?: number | string;
4
+ width?: number | string;
5
+ height?: number | string;
4
6
  color?: string;
5
7
  className?: string;
6
8
  filled?: boolean;
@@ -112,4 +112,5 @@ export type OnBoardingFlowType = {
112
112
  promocode_percent?: number | null;
113
113
  promocode_duration_min?: number | null;
114
114
  duration_min?: number | null;
115
+ isDefault?: boolean;
115
116
  };