@mindly/ui-components 5.91.9 → 5.91.11

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.
@@ -3,7 +3,7 @@ import { SpecialistReview } from '../../shared';
3
3
  import { WithTranslation } from 'react-i18next';
4
4
  type Props = {
5
5
  className?: string;
6
- list: SpecialistReview[];
6
+ list?: SpecialistReview[];
7
7
  rating: number;
8
8
  reviews: number;
9
9
  limit: number;
@@ -11,7 +11,8 @@ export type SpecialistInfoColumnFeatureProps = {
11
11
  isFavourite?: boolean;
12
12
  sessionDurationMinutes: number;
13
13
  currentPriceType: SupportedCurrency;
14
- onToggleFavourite: () => void;
14
+ onToggleFavourite?(): void;
15
+ onCardClick?(): void;
15
16
  };
16
17
  declare const SpecialistInfoColumnFeature: FC<SpecialistInfoColumnFeatureProps>;
17
18
  export default SpecialistInfoColumnFeature;
@@ -3,4 +3,5 @@ export type SuperSpecialistProps = {
3
3
  t?: WithTranslation['t'];
4
4
  variant?: 'default' | 'full';
5
5
  percent?: number;
6
+ onOpenArticle?(): void;
6
7
  };
@@ -17,4 +17,5 @@ export type SpecialistDetailWidgetProps = {
17
17
  presentingElement?: HTMLElement;
18
18
  onOpenContract?(): void;
19
19
  onRateSession?(): void;
20
+ onOpenSuperSpecialistArticle?(): void;
20
21
  };
package/dist/index.d.ts CHANGED
@@ -2356,6 +2356,7 @@ type SuperSpecialistProps = {
2356
2356
  t?: WithTranslation['t'];
2357
2357
  variant?: 'default' | 'full';
2358
2358
  percent?: number;
2359
+ onOpenArticle?(): void;
2359
2360
  };
2360
2361
 
2361
2362
  declare const SuperSpecialist: FC<SuperSpecialistProps>;
@@ -2947,7 +2948,8 @@ type SpecialistInfoColumnFeatureProps = {
2947
2948
  isFavourite?: boolean;
2948
2949
  sessionDurationMinutes: number;
2949
2950
  currentPriceType: SupportedCurrency;
2950
- onToggleFavourite: () => void;
2951
+ onToggleFavourite?(): void;
2952
+ onCardClick?(): void;
2951
2953
  };
2952
2954
  declare const SpecialistInfoColumnFeature: FC<SpecialistInfoColumnFeatureProps>;
2953
2955
 
@@ -3270,7 +3272,7 @@ declare const _default$4: React__default.NamedExoticComponent<Props$2>;
3270
3272
 
3271
3273
  type Props$1 = {
3272
3274
  className?: string;
3273
- list: SpecialistReview[];
3275
+ list?: SpecialistReview[];
3274
3276
  rating: number;
3275
3277
  reviews: number;
3276
3278
  limit: number;
@@ -3388,6 +3390,7 @@ type SpecialistDetailWidgetProps = {
3388
3390
  presentingElement?: HTMLElement;
3389
3391
  onOpenContract?(): void;
3390
3392
  onRateSession?(): void;
3393
+ onOpenSuperSpecialistArticle?(): void;
3391
3394
  };
3392
3395
 
3393
3396
  declare const _default: React__default.NamedExoticComponent<SpecialistDetailWidgetProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "5.91.9",
3
+ "version": "5.91.11",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",
@@ -1,9 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import SpecialistDetailWidget from './SpecialistDetailWidget';
3
- declare const meta: Meta<typeof SpecialistDetailWidget>;
4
- export default meta;
5
- type Story = StoryObj<typeof SpecialistDetailWidget>;
6
- export declare const Default: Story;
7
- export declare const WithDicount: Story;
8
- export declare const NotAuthorized: Story;
9
- export declare const WithLoading: Story;
@@ -1,9 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import SpecialistDetailWidget from './SpecialistDetailWidget';
3
- declare const meta: Meta<typeof SpecialistDetailWidget>;
4
- export default meta;
5
- type Story = StoryObj<typeof SpecialistDetailWidget>;
6
- export declare const Default: Story;
7
- export declare const WithDicount: Story;
8
- export declare const NotAuthorized: Story;
9
- export declare const WithLoading: Story;