@mindly/ui-components 6.2.0 → 6.2.1

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.
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ScheduleFeatureProps } from './types';
3
+ declare const SpecialistScheduleFeature: React.FC<ScheduleFeatureProps>;
4
+ export default SpecialistScheduleFeature;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ScheduleFeatureProps } from './types';
3
+ declare const ScheduleSkeleton: React.FC<ScheduleFeatureProps>;
4
+ export default ScheduleSkeleton;
@@ -0,0 +1 @@
1
+ export { default as SpecialistScheduleFeature } from './SpecialistScheduleFeature';
@@ -0,0 +1,11 @@
1
+ import { WithTranslation } from 'react-i18next';
2
+ import { Schedule, ScheduleDate, ScheduleSlot } from '../../shared/types';
3
+ export type ScheduleFeatureProps = {
4
+ isLoading?: boolean;
5
+ className?: string;
6
+ t?: WithTranslation['t'];
7
+ schedule?: Schedule;
8
+ locale?: string;
9
+ onDateChange?: (date: ScheduleDate, slots: ScheduleSlot[]) => void;
10
+ onSlotChange?: (slot: ScheduleSlot | null) => void;
11
+ };
@@ -49,4 +49,4 @@ export * from './TariffFeature';
49
49
  export * from './PoweredByStripeFeature';
50
50
  export * from './DropdownFeature';
51
51
  export * from './TabsFeature';
52
- export * from './ScheduleFeature';
52
+ export * from './SpecialistScheduleFeature';
@@ -13,9 +13,9 @@ export type SpecialistDetailWithTabsWidgetProps = {
13
13
  onLoadMoreReviews?(): void;
14
14
  currentUser?: UserType;
15
15
  presentingElement?: HTMLElement;
16
- onScheduleDateClick?: (date: ScheduleDate) => void;
17
- onScheduleSlotClick?: (slot: ScheduleSlot) => void;
18
16
  onOpenSuperSpecialistArticle?(): void;
19
17
  onOpenNewSpecialistArticle?(): void;
20
18
  onEditSpecialistReview?: (review: Pick<SpecialistReview, 'id' | 'review_rating' | 'text_of_review'>) => Promise<void>;
19
+ onScheduleDateChange?: (date: ScheduleDate, slots: ScheduleSlot[]) => void;
20
+ onScheduleSlotChange?: (slot: ScheduleSlot | null) => void;
21
21
  };