@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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "8.12.1",
3
+ "version": "8.13.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",