@mindly/ui-components 8.12.1 → 8.13.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.
@@ -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 {};
@@ -1,4 +1,5 @@
1
1
  export * from './format';
2
+ export { safeDismiss } from './safeDismiss';
2
3
  export { mergeRefs } from './mergeRefs';
3
4
  export { payoutPriceNormalize } from './payoutPriceNormalizer';
4
5
  export { priceNormalize } from './priceNormalizer';
@@ -0,0 +1 @@
1
+ export declare const safeDismiss: (ref: React.RefObject<HTMLIonModalElement | null>) => void;