@mindly/ui-components 8.12.1 → 8.13.0
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.
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/lib2/features/SpecialistScheduleFeature/types.d.ts +1 -0
- package/dist/cjs/lib2/features/SpecialistScheduleFeature/useVisibleDateOnScroll.d.ts +17 -0
- package/dist/esm/index.js +7 -7
- package/dist/esm/lib2/features/SpecialistScheduleFeature/types.d.ts +1 -0
- package/dist/esm/lib2/features/SpecialistScheduleFeature/useVisibleDateOnScroll.d.ts +17 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -28,6 +28,7 @@ export type ScheduleFeatureProps = {
|
|
|
28
28
|
sessionType?: SessionTypeEnum;
|
|
29
29
|
timeZone?: string;
|
|
30
30
|
userType?: UserTypeEnum;
|
|
31
|
+
syncMonthOnScroll?: boolean;
|
|
31
32
|
onDateChange?: (date: ScheduleDate, slots: ScheduleSlot[]) => void;
|
|
32
33
|
onSlotChange?: (slot: ScheduleSlot | null) => void;
|
|
33
34
|
onShowAll?: () => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
type UseVisibleDateOnScrollParams = {
|
|
3
|
+
scrollRef: RefObject<HTMLDivElement | null>;
|
|
4
|
+
selectedDate?: string;
|
|
5
|
+
dates: [string, unknown][];
|
|
6
|
+
isEnabled?: boolean;
|
|
7
|
+
leadingDateThresholdPx?: number;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Keeps month header in sync with horizontal date scrolling by tracking
|
|
11
|
+
* the left-most visible date item inside the scroll container.
|
|
12
|
+
*/
|
|
13
|
+
export declare const useVisibleDateOnScroll: ({ scrollRef, selectedDate, dates, isEnabled, leadingDateThresholdPx, }: UseVisibleDateOnScrollParams) => {
|
|
14
|
+
visibleDate: string | undefined;
|
|
15
|
+
setVisibleDate: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -3871,6 +3871,7 @@ type ScheduleFeatureProps = {
|
|
|
3871
3871
|
sessionType?: SessionTypeEnum;
|
|
3872
3872
|
timeZone?: string;
|
|
3873
3873
|
userType?: UserTypeEnum;
|
|
3874
|
+
syncMonthOnScroll?: boolean;
|
|
3874
3875
|
onDateChange?: (date: ScheduleDate, slots: ScheduleSlot[]) => void;
|
|
3875
3876
|
onSlotChange?: (slot: ScheduleSlot | null) => void;
|
|
3876
3877
|
onShowAll?: () => void;
|