@mindly/ui-components 8.8.7 → 8.8.8

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 { FC } from 'react';
2
+ import { ScheduleProps } from './types';
3
+ declare const Schedule: FC<ScheduleProps>;
4
+ export default Schedule;
@@ -0,0 +1,2 @@
1
+ export { default as ScheduleFeature } from './ScheduleFeature';
2
+ export type { ScheduleProps, SlotViewModel, DaySection, DaySectionKey, DayTabItem } from './types';
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ export type SlotViewModel = {
3
+ title: string;
4
+ active: boolean;
5
+ };
6
+ export type DaySectionKey = 'morning' | 'day' | 'evening';
7
+ export type DaySection = {
8
+ key: DaySectionKey;
9
+ label: string;
10
+ items: SlotViewModel[];
11
+ icon: React.ReactNode;
12
+ };
13
+ export type DayTabItem = {
14
+ title: string;
15
+ id: number;
16
+ };
17
+ export type ScheduleProps = {
18
+ items: DayTabItem[];
19
+ sections: DaySection[];
20
+ isLoading?: boolean;
21
+ isButtonLoading?: boolean;
22
+ buttonText?: string;
23
+ skeletonCount?: number;
24
+ onDayChange?: (dayIndex: number) => void;
25
+ onSlotClick?: (time: string) => void;
26
+ onSave?: () => void;
27
+ };
@@ -66,5 +66,6 @@ export * from './RecurringSessionPreviewFeature';
66
66
  export * from './ReservedSessionManageModalFeature';
67
67
  export * from './ViewedClientsListFeature';
68
68
  export * from './RevampSubscriptionStepperFeature';
69
+ export * from './ScheduleFeature';
69
70
  export * from './SubscriptionCard';
70
71
  export type { RecurringSessionsTimeSlots } from './RevampSubscriptionStepperFeature';