@mindly/ui-components 5.91.0 → 5.91.2

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.
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import React from 'react';
2
2
  import { SpecialistReview } from '../../shared';
3
3
  import { WithTranslation } from 'react-i18next';
4
4
  type Props = {
@@ -10,5 +10,8 @@ type Props = {
10
10
  t?: WithTranslation['t'];
11
11
  onLoadMore?(): void;
12
12
  };
13
- declare const ReviewListFeature: FC<Props>;
13
+ export interface ReviewListFeatureRef {
14
+ openModalReviews: () => void;
15
+ }
16
+ declare const ReviewListFeature: React.ForwardRefExoticComponent<Props & React.RefAttributes<ReviewListFeatureRef>>;
14
17
  export default ReviewListFeature;
@@ -15,6 +15,7 @@ export type SpecialistShortInfoItemFeatureProps = {
15
15
  rating?: number;
16
16
  isSpecialistUnAvailable?: boolean;
17
17
  isAuth?: boolean;
18
+ onClickReview?(): void;
18
19
  };
19
20
  declare const SpecialistShortInfoItemFeature: FC<SpecialistShortInfoItemFeatureProps>;
20
21
  export default SpecialistShortInfoItemFeature;
@@ -7,6 +7,7 @@ export type AvatarProps = {
7
7
  src?: string;
8
8
  alt?: string;
9
9
  showSkeleton?: boolean;
10
+ onClick?(): void;
10
11
  };
11
12
  declare const _default: React.NamedExoticComponent<AvatarProps>;
12
13
  export default _default;
@@ -9,7 +9,11 @@ export type VideoProps = {
9
9
  onMuteToggle?: () => void;
10
10
  onPlay?(src: string): void;
11
11
  };
12
+ export type VideoMethods = {
13
+ play(): void;
14
+ };
15
+ export type VideoRef = HTMLVideoElement | VideoMethods;
12
16
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<VideoProps & {
13
17
  children?: React.ReactNode;
14
- } & React.RefAttributes<HTMLVideoElement>>>;
18
+ } & React.RefAttributes<VideoRef>>>;
15
19
  export default _default;
@@ -1 +1,2 @@
1
1
  export declare const formatByDigits: (value: number) => string;
2
+ export declare const roundToPrecision: (value: number, decimals?: number) => number;