@super-calendar/native 2.18.0 → 2.20.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/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as TimeGridMode, C as EventKeyExtractor, D as RenderEvent, E as RecurrenceRule, F as PartialCalendarTheme, I as darkTheme, L as defaultTheme, M as WeekdayFormat, N as CalendarTheme, O as RenderEventArgs, P as CalendarThemeProvider, R as mergeTheme, S as EventDragStartHandler, T as RecurrenceFrequency, _ as CalendarMode, a as MonthPager, b as EventAccessibilityLabeler, c as MonthViewProps, d as SlotDefault, f as SlotStyleProps, g as CalendarHandle, h as CalendarEvent, i as MonthListSlot, j as WeekStartsOn, k as ScrollToTimeOptions, l as MonthViewSlot, m as BusinessHoursBand, n as MonthList, o as MonthPagerProps, p as BusinessHours, r as MonthListProps, s as MonthView, t as DefaultMonthEvent, u as ResolvedSlot, v as CreateGhostArgs, w as ICalendarEvent, x as EventDragHandler, y as EventAccessibilityLabelContext, z as useCalendarTheme } from "./DefaultMonthEvent-hGk7wSrr.mjs";
1
+ import { A as ScrollToTimeOptions, B as useCalendarTheme, C as EventKeyExtractor, D as RecurrenceRule, E as RecurrenceFrequency, F as CalendarThemeProvider, I as PartialCalendarTheme, L as darkTheme, M as WeekStartsOn, N as WeekdayFormat, O as RenderEvent, P as CalendarTheme, R as defaultTheme, S as EventDragStartHandler, T as MonthDateInfo, _ as CalendarMode, a as MonthPager, b as EventAccessibilityLabeler, c as MonthViewProps, d as SlotDefault, f as SlotStyleProps, g as CalendarHandle, h as CalendarEvent, i as MonthListSlot, j as TimeGridMode, k as RenderEventArgs, l as MonthViewSlot, m as BusinessHoursBand, n as MonthList, o as MonthPagerProps, p as BusinessHours, r as MonthListProps, s as MonthView, t as DefaultMonthEvent, u as ResolvedSlot, v as CreateGhostArgs, w as ICalendarEvent, x as EventDragHandler, y as EventAccessibilityLabelContext, z as mergeTheme } from "./DefaultMonthEvent-DzgQFuVp.mjs";
2
2
  import { Locale } from "date-fns";
3
3
  import { ComponentType, ReactElement, ReactNode, RefAttributes } from "react";
4
4
  import { SharedValue, useSharedValue } from "react-native-reanimated";
@@ -293,6 +293,44 @@ type TimeGridProps<T> = SlotStyleProps<TimeGridSlot> & {
293
293
  onChangeDate: (date: Date) => void;
294
294
  /** Optional header above the grid (e.g. weekday labels). Rendered full-width. */
295
295
  renderHeader?: (days: Date[]) => React.ReactNode;
296
+ /**
297
+ * Draw a label in the hour column when the current-time line is visible.
298
+ * A custom label replaces hour labels less than 15 minutes away.
299
+ */
300
+ renderNowLabel?: (now: Date) => React.ReactNode;
301
+ /**
302
+ * Extra scrollable space below the last hour, inside the vertical scroll view,
303
+ * so the end of the day can scroll clear of something floating over the grid
304
+ * (a tab bar, a button). Default 0.
305
+ */
306
+ contentPaddingBottom?: number;
307
+ /**
308
+ * The vertical scroll view's scroll events, on the JS thread. Use it to react
309
+ * to the hours scrolling, such as collapsing a toolbar.
310
+ */
311
+ onVerticalScroll?: (event: VerticalScrollEvent) => void;
312
+ /**
313
+ * Overscroll on the hours: iOS `bounces`, Android `overScrollMode`. Set
314
+ * `false` to stop the grid at its ends. Default true.
315
+ */
316
+ verticalBounces?: boolean;
317
+ };
318
+ /** The scroll event `onVerticalScroll` receives, shaped like React Native's scroll event. */
319
+ type VerticalScrollEvent = {
320
+ nativeEvent: {
321
+ contentOffset: {
322
+ x: number;
323
+ y: number;
324
+ };
325
+ contentSize: {
326
+ width: number;
327
+ height: number;
328
+ };
329
+ layoutMeasurement: {
330
+ width: number;
331
+ height: number;
332
+ };
333
+ };
296
334
  };
297
335
  /**
298
336
  * The timetable view used in day, 3days, week, and custom modes: an
@@ -616,14 +654,23 @@ type CalendarProps<T> = SlotStyleProps<CalendarSlot> & {
616
654
  freeSwipe?: boolean;
617
655
  /** Custom header above the week/day grid. Receives the visible days. */
618
656
  renderTimeGridHeader?: (days: Date[]) => React.ReactNode;
657
+ /** Draw a label in the hour column when the current-time line is visible. */
658
+ renderNowLabel?: (now: Date) => React.ReactNode;
659
+ /** Week/day grid: extra scrollable space below the last hour (e.g. for a floating tab bar). Default 0. */
660
+ timeGridContentPaddingBottom?: number;
661
+ /** Week/day grid: the vertical scroll view's scroll events, on the JS thread. */
662
+ onTimeGridScroll?: (event: VerticalScrollEvent) => void;
663
+ /** Week/day grid: `false` turns off overscroll on the hours (iOS bounce, Android stretch). Default true. */
664
+ timeGridBounces?: boolean;
619
665
  /** Replace the weekday-label header above the month grid. Return `null` to hide it. */
620
666
  renderHeaderForMonthView?: (weekDays: Date[]) => React.ReactNode;
621
667
  /**
622
668
  * Month mode only: replace the default date badge in each day cell. Receives
623
- * the day; return your own date label (e.g. a number with a dot or badge).
669
+ * the day and its state (`isCurrentMonth`, `isToday`, `isSelected`,
670
+ * `isDisabled`); return your own date label (e.g. a number with a dot or badge).
624
671
  * Event chips and the "+N more" label still render below it.
625
672
  */
626
- renderCustomDateForMonth?: (date: Date) => React.ReactNode;
673
+ renderCustomDateForMonth?: (date: Date, info: MonthDateInfo) => React.ReactNode;
627
674
  /** Drawn between rows of the `schedule` (agenda) list. */
628
675
  itemSeparatorComponent?: React.ComponentType<unknown> | null;
629
676
  };
@@ -837,4 +884,4 @@ interface ResourceTimelineProps<T = unknown> {
837
884
  * ```
838
885
  */
839
886
  export declare function ResourceTimeline<T = unknown>({ date, orientation, resources: allResources, resourcesPerPage, resourcePage, events, resourceId, startHour, endHour, hourWidth, hourHeight, rowHeight, labelWidth, ampm, renderEvent, onPressEvent, onLongPressEvent, onDragEvent, onPressCell, onLongPressCell, onCreateEvent, renderCreateGhost, businessHours, renderBusinessHours, renderResourceHeader, dragStepMinutes, showNowIndicator, now: nowProp, timeZone, labels: labelsProp }: ResourceTimelineProps<T>): ReactElement;
840
- export { type AgendaProps, type AgendaSlot, type BusinessHours, type BusinessHoursBand, type CalendarEvent, type CalendarHandle, type CalendarLabels, type CalendarMode, type CalendarProps, type CalendarSlot, type CalendarTheme, CalendarThemeProvider, type CreateGhostArgs, type DateRange, type DateSelectionConstraints, type DaySelectionState, DefaultMonthEvent, type EventAccessibilityLabelContext, type EventAccessibilityLabeler, type EventDragHandler, type EventDragStartHandler, type EventKeyExtractor, type ExpandRecurringEventsOptions, type HourRenderer, type ICalEvent, type ICalendarEvent, type MonthEventSegment, type MonthGrid, type MonthGridDay, type MonthGridWeek, type MonthGridWeekday, MonthList, type MonthListProps, type MonthListSlot, MonthPager, type MonthPagerProps, MonthView, type MonthViewProps, type MonthViewSlot, type MonthWeekEvents, type MultiWeekGrid, type MultiWeekGridDay, type MultiWeekGridInterval, type MultiWeekGridOptions, type MultiWeekGridWeek, type MultiWeekViewProps, type PartialCalendarTheme, type PositionedEvent, type RecurrenceFrequency, type RecurrenceRule, type RenderEvent, type RenderEventArgs, type ResolvedSlot, type Resource, type ResourceEventArgs, type ResourceTimelineProps, type ScrollToTimeOptions, type SlotDefault, type SlotStyleProps, type TimeGridMode, type TimeGridProps, type TimeGridSlot, type ToICalendarOptions, type UseDateRangeOptions, type UseMonthGridOptions, type WeekStartsOn, type WeekdayFormat, type YearViewProps, type YearViewSlot, backgroundBandsForDay, buildMonthGrid, buildMonthWeeks, buildMultiWeekGrid, darkTheme, daySelectionState, defaultCalendarLabels, defaultTheme, eventsInTimeZone, expandRecurringEvents, fromZonedRange, fromZonedTime, getIsToday, getViewDays, getWeekDays, isAllDayEvent, isBackgroundEvent, isDateSelectable, isRangeEndpoint, isSameCalendarDay, isWeekend, isWithinDateRange, layoutDayEvents, layoutMonthWeek, mergeTheme, minutesIntoDay, nextDateRange, nowInTimeZone, parseICalendar, toICalendar, toZonedTime, useCalendarTheme, useDateRange, useEventSource, useMonthGrid, useNow, weekdayFormatToken, zonedDragBounds, zonedEventSource };
887
+ export { type AgendaProps, type AgendaSlot, type BusinessHours, type BusinessHoursBand, type CalendarEvent, type CalendarHandle, type CalendarLabels, type CalendarMode, type CalendarProps, type CalendarSlot, type CalendarTheme, CalendarThemeProvider, type CreateGhostArgs, type DateRange, type DateSelectionConstraints, type DaySelectionState, DefaultMonthEvent, type EventAccessibilityLabelContext, type EventAccessibilityLabeler, type EventDragHandler, type EventDragStartHandler, type EventKeyExtractor, type ExpandRecurringEventsOptions, type HourRenderer, type ICalEvent, type ICalendarEvent, type MonthDateInfo, type MonthEventSegment, type MonthGrid, type MonthGridDay, type MonthGridWeek, type MonthGridWeekday, MonthList, type MonthListProps, type MonthListSlot, MonthPager, type MonthPagerProps, MonthView, type MonthViewProps, type MonthViewSlot, type MonthWeekEvents, type MultiWeekGrid, type MultiWeekGridDay, type MultiWeekGridInterval, type MultiWeekGridOptions, type MultiWeekGridWeek, type MultiWeekViewProps, type PartialCalendarTheme, type PositionedEvent, type RecurrenceFrequency, type RecurrenceRule, type RenderEvent, type RenderEventArgs, type ResolvedSlot, type Resource, type ResourceEventArgs, type ResourceTimelineProps, type ScrollToTimeOptions, type SlotDefault, type SlotStyleProps, type TimeGridMode, type TimeGridProps, type TimeGridSlot, type ToICalendarOptions, type UseDateRangeOptions, type UseMonthGridOptions, type VerticalScrollEvent, type WeekStartsOn, type WeekdayFormat, type YearViewProps, type YearViewSlot, backgroundBandsForDay, buildMonthGrid, buildMonthWeeks, buildMultiWeekGrid, darkTheme, daySelectionState, defaultCalendarLabels, defaultTheme, eventsInTimeZone, expandRecurringEvents, fromZonedRange, fromZonedTime, getIsToday, getViewDays, getWeekDays, isAllDayEvent, isBackgroundEvent, isDateSelectable, isRangeEndpoint, isSameCalendarDay, isWeekend, isWithinDateRange, layoutDayEvents, layoutMonthWeek, mergeTheme, minutesIntoDay, nextDateRange, nowInTimeZone, parseICalendar, toICalendar, toZonedTime, useCalendarTheme, useDateRange, useEventSource, useMonthGrid, useNow, weekdayFormatToken, zonedDragBounds, zonedEventSource };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as TimeGridMode, C as EventKeyExtractor, D as RenderEvent, E as RecurrenceRule, F as PartialCalendarTheme, I as darkTheme, L as defaultTheme, M as WeekdayFormat, N as CalendarTheme, O as RenderEventArgs, P as CalendarThemeProvider, R as mergeTheme, S as EventDragStartHandler, T as RecurrenceFrequency, _ as CalendarMode, a as MonthPager, b as EventAccessibilityLabeler, c as MonthViewProps, d as SlotDefault, f as SlotStyleProps, g as CalendarHandle, h as CalendarEvent, i as MonthListSlot, j as WeekStartsOn, k as ScrollToTimeOptions, l as MonthViewSlot, m as BusinessHoursBand, n as MonthList, o as MonthPagerProps, p as BusinessHours, r as MonthListProps, s as MonthView, t as DefaultMonthEvent, u as ResolvedSlot, v as CreateGhostArgs, w as ICalendarEvent, x as EventDragHandler, y as EventAccessibilityLabelContext, z as useCalendarTheme } from "./DefaultMonthEvent-B7xVeY7Q.js";
1
+ import { A as ScrollToTimeOptions, B as useCalendarTheme, C as EventKeyExtractor, D as RecurrenceRule, E as RecurrenceFrequency, F as CalendarThemeProvider, I as PartialCalendarTheme, L as darkTheme, M as WeekStartsOn, N as WeekdayFormat, O as RenderEvent, P as CalendarTheme, R as defaultTheme, S as EventDragStartHandler, T as MonthDateInfo, _ as CalendarMode, a as MonthPager, b as EventAccessibilityLabeler, c as MonthViewProps, d as SlotDefault, f as SlotStyleProps, g as CalendarHandle, h as CalendarEvent, i as MonthListSlot, j as TimeGridMode, k as RenderEventArgs, l as MonthViewSlot, m as BusinessHoursBand, n as MonthList, o as MonthPagerProps, p as BusinessHours, r as MonthListProps, s as MonthView, t as DefaultMonthEvent, u as ResolvedSlot, v as CreateGhostArgs, w as ICalendarEvent, x as EventDragHandler, y as EventAccessibilityLabelContext, z as mergeTheme } from "./DefaultMonthEvent-joYl8Tu2.js";
2
2
  import { Locale } from "date-fns";
3
3
  import { ComponentType, ReactElement, ReactNode, RefAttributes } from "react";
4
4
  import { ScrollViewProps, StyleProp, ViewStyle } from "react-native";
@@ -293,6 +293,44 @@ type TimeGridProps<T> = SlotStyleProps<TimeGridSlot> & {
293
293
  onChangeDate: (date: Date) => void;
294
294
  /** Optional header above the grid (e.g. weekday labels). Rendered full-width. */
295
295
  renderHeader?: (days: Date[]) => React.ReactNode;
296
+ /**
297
+ * Draw a label in the hour column when the current-time line is visible.
298
+ * A custom label replaces hour labels less than 15 minutes away.
299
+ */
300
+ renderNowLabel?: (now: Date) => React.ReactNode;
301
+ /**
302
+ * Extra scrollable space below the last hour, inside the vertical scroll view,
303
+ * so the end of the day can scroll clear of something floating over the grid
304
+ * (a tab bar, a button). Default 0.
305
+ */
306
+ contentPaddingBottom?: number;
307
+ /**
308
+ * The vertical scroll view's scroll events, on the JS thread. Use it to react
309
+ * to the hours scrolling, such as collapsing a toolbar.
310
+ */
311
+ onVerticalScroll?: (event: VerticalScrollEvent) => void;
312
+ /**
313
+ * Overscroll on the hours: iOS `bounces`, Android `overScrollMode`. Set
314
+ * `false` to stop the grid at its ends. Default true.
315
+ */
316
+ verticalBounces?: boolean;
317
+ };
318
+ /** The scroll event `onVerticalScroll` receives, shaped like React Native's scroll event. */
319
+ type VerticalScrollEvent = {
320
+ nativeEvent: {
321
+ contentOffset: {
322
+ x: number;
323
+ y: number;
324
+ };
325
+ contentSize: {
326
+ width: number;
327
+ height: number;
328
+ };
329
+ layoutMeasurement: {
330
+ width: number;
331
+ height: number;
332
+ };
333
+ };
296
334
  };
297
335
  /**
298
336
  * The timetable view used in day, 3days, week, and custom modes: an
@@ -616,14 +654,23 @@ type CalendarProps<T> = SlotStyleProps<CalendarSlot> & {
616
654
  freeSwipe?: boolean;
617
655
  /** Custom header above the week/day grid. Receives the visible days. */
618
656
  renderTimeGridHeader?: (days: Date[]) => React.ReactNode;
657
+ /** Draw a label in the hour column when the current-time line is visible. */
658
+ renderNowLabel?: (now: Date) => React.ReactNode;
659
+ /** Week/day grid: extra scrollable space below the last hour (e.g. for a floating tab bar). Default 0. */
660
+ timeGridContentPaddingBottom?: number;
661
+ /** Week/day grid: the vertical scroll view's scroll events, on the JS thread. */
662
+ onTimeGridScroll?: (event: VerticalScrollEvent) => void;
663
+ /** Week/day grid: `false` turns off overscroll on the hours (iOS bounce, Android stretch). Default true. */
664
+ timeGridBounces?: boolean;
619
665
  /** Replace the weekday-label header above the month grid. Return `null` to hide it. */
620
666
  renderHeaderForMonthView?: (weekDays: Date[]) => React.ReactNode;
621
667
  /**
622
668
  * Month mode only: replace the default date badge in each day cell. Receives
623
- * the day; return your own date label (e.g. a number with a dot or badge).
669
+ * the day and its state (`isCurrentMonth`, `isToday`, `isSelected`,
670
+ * `isDisabled`); return your own date label (e.g. a number with a dot or badge).
624
671
  * Event chips and the "+N more" label still render below it.
625
672
  */
626
- renderCustomDateForMonth?: (date: Date) => React.ReactNode;
673
+ renderCustomDateForMonth?: (date: Date, info: MonthDateInfo) => React.ReactNode;
627
674
  /** Drawn between rows of the `schedule` (agenda) list. */
628
675
  itemSeparatorComponent?: React.ComponentType<unknown> | null;
629
676
  };
@@ -837,4 +884,4 @@ interface ResourceTimelineProps<T = unknown> {
837
884
  * ```
838
885
  */
839
886
  export declare function ResourceTimeline<T = unknown>({ date, orientation, resources: allResources, resourcesPerPage, resourcePage, events, resourceId, startHour, endHour, hourWidth, hourHeight, rowHeight, labelWidth, ampm, renderEvent, onPressEvent, onLongPressEvent, onDragEvent, onPressCell, onLongPressCell, onCreateEvent, renderCreateGhost, businessHours, renderBusinessHours, renderResourceHeader, dragStepMinutes, showNowIndicator, now: nowProp, timeZone, labels: labelsProp }: ResourceTimelineProps<T>): ReactElement;
840
- export { type AgendaProps, type AgendaSlot, type BusinessHours, type BusinessHoursBand, type CalendarEvent, type CalendarHandle, type CalendarLabels, type CalendarMode, type CalendarProps, type CalendarSlot, type CalendarTheme, CalendarThemeProvider, type CreateGhostArgs, type DateRange, type DateSelectionConstraints, type DaySelectionState, DefaultMonthEvent, type EventAccessibilityLabelContext, type EventAccessibilityLabeler, type EventDragHandler, type EventDragStartHandler, type EventKeyExtractor, type ExpandRecurringEventsOptions, type HourRenderer, type ICalEvent, type ICalendarEvent, type MonthEventSegment, type MonthGrid, type MonthGridDay, type MonthGridWeek, type MonthGridWeekday, MonthList, type MonthListProps, type MonthListSlot, MonthPager, type MonthPagerProps, MonthView, type MonthViewProps, type MonthViewSlot, type MonthWeekEvents, type MultiWeekGrid, type MultiWeekGridDay, type MultiWeekGridInterval, type MultiWeekGridOptions, type MultiWeekGridWeek, type MultiWeekViewProps, type PartialCalendarTheme, type PositionedEvent, type RecurrenceFrequency, type RecurrenceRule, type RenderEvent, type RenderEventArgs, type ResolvedSlot, type Resource, type ResourceEventArgs, type ResourceTimelineProps, type ScrollToTimeOptions, type SlotDefault, type SlotStyleProps, type TimeGridMode, type TimeGridProps, type TimeGridSlot, type ToICalendarOptions, type UseDateRangeOptions, type UseMonthGridOptions, type WeekStartsOn, type WeekdayFormat, type YearViewProps, type YearViewSlot, backgroundBandsForDay, buildMonthGrid, buildMonthWeeks, buildMultiWeekGrid, darkTheme, daySelectionState, defaultCalendarLabels, defaultTheme, eventsInTimeZone, expandRecurringEvents, fromZonedRange, fromZonedTime, getIsToday, getViewDays, getWeekDays, isAllDayEvent, isBackgroundEvent, isDateSelectable, isRangeEndpoint, isSameCalendarDay, isWeekend, isWithinDateRange, layoutDayEvents, layoutMonthWeek, mergeTheme, minutesIntoDay, nextDateRange, nowInTimeZone, parseICalendar, toICalendar, toZonedTime, useCalendarTheme, useDateRange, useEventSource, useMonthGrid, useNow, weekdayFormatToken, zonedDragBounds, zonedEventSource };
887
+ export { type AgendaProps, type AgendaSlot, type BusinessHours, type BusinessHoursBand, type CalendarEvent, type CalendarHandle, type CalendarLabels, type CalendarMode, type CalendarProps, type CalendarSlot, type CalendarTheme, CalendarThemeProvider, type CreateGhostArgs, type DateRange, type DateSelectionConstraints, type DaySelectionState, DefaultMonthEvent, type EventAccessibilityLabelContext, type EventAccessibilityLabeler, type EventDragHandler, type EventDragStartHandler, type EventKeyExtractor, type ExpandRecurringEventsOptions, type HourRenderer, type ICalEvent, type ICalendarEvent, type MonthDateInfo, type MonthEventSegment, type MonthGrid, type MonthGridDay, type MonthGridWeek, type MonthGridWeekday, MonthList, type MonthListProps, type MonthListSlot, MonthPager, type MonthPagerProps, MonthView, type MonthViewProps, type MonthViewSlot, type MonthWeekEvents, type MultiWeekGrid, type MultiWeekGridDay, type MultiWeekGridInterval, type MultiWeekGridOptions, type MultiWeekGridWeek, type MultiWeekViewProps, type PartialCalendarTheme, type PositionedEvent, type RecurrenceFrequency, type RecurrenceRule, type RenderEvent, type RenderEventArgs, type ResolvedSlot, type Resource, type ResourceEventArgs, type ResourceTimelineProps, type ScrollToTimeOptions, type SlotDefault, type SlotStyleProps, type TimeGridMode, type TimeGridProps, type TimeGridSlot, type ToICalendarOptions, type UseDateRangeOptions, type UseMonthGridOptions, type VerticalScrollEvent, type WeekStartsOn, type WeekdayFormat, type YearViewProps, type YearViewSlot, backgroundBandsForDay, buildMonthGrid, buildMonthWeeks, buildMultiWeekGrid, darkTheme, daySelectionState, defaultCalendarLabels, defaultTheme, eventsInTimeZone, expandRecurringEvents, fromZonedRange, fromZonedTime, getIsToday, getViewDays, getWeekDays, isAllDayEvent, isBackgroundEvent, isDateSelectable, isRangeEndpoint, isSameCalendarDay, isWeekend, isWithinDateRange, layoutDayEvents, layoutMonthWeek, mergeTheme, minutesIntoDay, nextDateRange, nowInTimeZone, parseICalendar, toICalendar, toZonedTime, useCalendarTheme, useDateRange, useEventSource, useMonthGrid, useNow, weekdayFormatToken, zonedDragBounds, zonedEventSource };
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
20
20
  value: mod,
21
21
  enumerable: true
22
22
  }) : target, mod));
23
- const require_MonthList = require("./MonthList-C_NTufaK.js");
23
+ const require_MonthList = require("./MonthList-DeO-x5VW.js");
24
24
  let date_fns = require("date-fns");
25
25
  let react = require("react");
26
26
  let react_native_reanimated = require("react-native-reanimated");
@@ -984,7 +984,7 @@ function AnimatedEventBoxInner({ positioned, eventIndex, movingEvent, onMovePrev
984
984
  const resizeStartDelta = (0, react_native_reanimated.useSharedValue)(0);
985
985
  const dragZ = (0, react_native_reanimated.useSharedValue)(0);
986
986
  const moving = (0, react_native_reanimated.useSharedValue)(0);
987
- const onHandle = (0, react_native_reanimated.useSharedValue)(0);
987
+ const resizeYielded = (0, react_native_reanimated.useSharedValue)(0);
988
988
  const edgeDir = (0, react_native_reanimated.useSharedValue)(0);
989
989
  const lifted = (0, react_native_reanimated.useSharedValue)(0);
990
990
  const grabX = (0, react_native_reanimated.useSharedValue)(0);
@@ -1038,7 +1038,7 @@ function AnimatedEventBoxInner({ positioned, eventIndex, movingEvent, onMovePrev
1038
1038
  ]);
1039
1039
  const boxStyle = (0, react_native_reanimated.useAnimatedStyle)(() => {
1040
1040
  const top = (startHours + moveExtra.value.top - minHour) * cellHeight.value + moveOffset.value + resizeStartDelta.value;
1041
- const floating = !onHandle.value && (moving.value || moveOffset.value !== 0 || moveOffsetX.value !== 0);
1041
+ const floating = moving.value || moveOffset.value !== 0 || moveOffsetX.value !== 0;
1042
1042
  return {
1043
1043
  left: floating ? dayLeftPx : left,
1044
1044
  width: floating ? dayWidth : width,
@@ -1322,14 +1322,18 @@ function AnimatedEventBoxInner({ positioned, eventIndex, movingEvent, onMovePrev
1322
1322
  press?.(event);
1323
1323
  }, []);
1324
1324
  const resizeGesture = (0, react.useMemo)(() => {
1325
- const pan = react_native_gesture_handler.Gesture.Pan().enabled(resizable).onBegin(() => {
1326
- onHandle.value = 1;
1327
- }).onStart(() => {
1325
+ const pan = react_native_gesture_handler.Gesture.Pan().enabled(resizable).onStart(() => {
1326
+ if (moving.value) {
1327
+ resizeYielded.value = 1;
1328
+ return;
1329
+ }
1328
1330
  dragZ.value = DRAG_EVENT_Z;
1329
1331
  (0, react_native_reanimated.runOnJS)(notifyDragStart)();
1330
1332
  }).onUpdate((event) => {
1333
+ if (resizeYielded.value) return;
1331
1334
  resizeDelta.value = event.translationY;
1332
1335
  }).onEnd((event) => {
1336
+ if (resizeYielded.value) return;
1333
1337
  const delta = (0, _super_calendar_core.snapDeltaMinutes)(event.translationY, cellHeight.value, snapMinutes);
1334
1338
  if (delta === 0) {
1335
1339
  resizeDelta.value = 0;
@@ -1338,8 +1342,8 @@ function AnimatedEventBoxInner({ positioned, eventIndex, movingEvent, onMovePrev
1338
1342
  resizeDelta.value = delta / MINUTES_PER_HOUR$1 * cellHeight.value;
1339
1343
  (0, react_native_reanimated.runOnJS)(commitDrag)(0, delta);
1340
1344
  }).onFinalize(() => {
1341
- dragZ.value = 0;
1342
- onHandle.value = 0;
1345
+ if (!resizeYielded.value) dragZ.value = 0;
1346
+ resizeYielded.value = 0;
1343
1347
  });
1344
1348
  const tap = react_native_gesture_handler.Gesture.Tap().runOnJS(true).onEnd((_event, success) => {
1345
1349
  if (success) handlePress();
@@ -1352,7 +1356,8 @@ function AnimatedEventBoxInner({ positioned, eventIndex, movingEvent, onMovePrev
1352
1356
  resizable,
1353
1357
  snapMinutes,
1354
1358
  cellHeight,
1355
- onHandle,
1359
+ moving,
1360
+ resizeYielded,
1356
1361
  resizeDelta,
1357
1362
  dragZ,
1358
1363
  commitDrag,
@@ -1362,14 +1367,18 @@ function AnimatedEventBoxInner({ positioned, eventIndex, movingEvent, onMovePrev
1362
1367
  handleLongPressFromHandle
1363
1368
  ]);
1364
1369
  const resizeStartGesture = (0, react.useMemo)(() => {
1365
- const pan = react_native_gesture_handler.Gesture.Pan().enabled(resizableFromStart).onBegin(() => {
1366
- onHandle.value = 1;
1367
- }).onStart(() => {
1370
+ const pan = react_native_gesture_handler.Gesture.Pan().enabled(resizableFromStart).onStart(() => {
1371
+ if (moving.value) {
1372
+ resizeYielded.value = 1;
1373
+ return;
1374
+ }
1368
1375
  dragZ.value = DRAG_EVENT_Z;
1369
1376
  (0, react_native_reanimated.runOnJS)(notifyDragStart)();
1370
1377
  }).onUpdate((event) => {
1378
+ if (resizeYielded.value) return;
1371
1379
  resizeStartDelta.value = event.translationY;
1372
1380
  }).onEnd((event) => {
1381
+ if (resizeYielded.value) return;
1373
1382
  const delta = (0, _super_calendar_core.snapDeltaMinutes)(event.translationY, cellHeight.value, snapMinutes);
1374
1383
  if (delta === 0) {
1375
1384
  resizeStartDelta.value = 0;
@@ -1378,8 +1387,8 @@ function AnimatedEventBoxInner({ positioned, eventIndex, movingEvent, onMovePrev
1378
1387
  resizeStartDelta.value = delta / MINUTES_PER_HOUR$1 * cellHeight.value;
1379
1388
  (0, react_native_reanimated.runOnJS)(commitDrag)(delta, 0);
1380
1389
  }).onFinalize(() => {
1381
- dragZ.value = 0;
1382
- onHandle.value = 0;
1390
+ if (!resizeYielded.value) dragZ.value = 0;
1391
+ resizeYielded.value = 0;
1383
1392
  });
1384
1393
  const tap = react_native_gesture_handler.Gesture.Tap().runOnJS(true).onEnd((_event, success) => {
1385
1394
  if (success) handlePress();
@@ -1392,7 +1401,8 @@ function AnimatedEventBoxInner({ positioned, eventIndex, movingEvent, onMovePrev
1392
1401
  resizableFromStart,
1393
1402
  snapMinutes,
1394
1403
  cellHeight,
1395
- onHandle,
1404
+ moving,
1405
+ resizeYielded,
1396
1406
  resizeStartDelta,
1397
1407
  dragZ,
1398
1408
  commitDrag,
@@ -1508,9 +1518,10 @@ function AnimatedEventBoxInner({ positioned, eventIndex, movingEvent, onMovePrev
1508
1518
  }
1509
1519
  const AnimatedEventBox = (0, react.memo)(AnimatedEventBoxInner);
1510
1520
  const hourRange = (minHour, maxHour) => Array.from({ length: maxHour - minHour }, (_, index) => minHour + index);
1511
- const HourLabel = ({ hour, width, label, ampm, hourComponent }) => {
1521
+ const HourLabel = ({ hour, width, label, ampm, hourComponent, hidden }) => {
1512
1522
  const theme = require_MonthList.useCalendarTheme();
1513
1523
  const slot = require_MonthList.useSlots();
1524
+ if (hidden) return null;
1514
1525
  return hourComponent ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_native.View, {
1515
1526
  style: { width },
1516
1527
  children: hourComponent(hour, ampm)
@@ -1545,12 +1556,24 @@ const HourLines = (0, react.memo)(function HourLines({ hours, timeslots }) {
1545
1556
  }, hour))
1546
1557
  });
1547
1558
  });
1548
- const HourGutterInner = ({ width, minHour, maxHour, cellHeight, laneHeight, scrollY, showLane, showAllDayLabel, allDayLabel, headerHeight, weekNumber, ampm, hourComponent }) => {
1559
+ function getNowPosition(time, days, minHour, maxHour) {
1560
+ const hours = (0, date_fns.getHours)(time) + (0, date_fns.getMinutes)(time) / MINUTES_PER_HOUR$1;
1561
+ const dayIndex = days.findIndex((day) => (0, _super_calendar_core.isSameCalendarDay)(day, time));
1562
+ return dayIndex >= 0 && hours >= minHour && hours <= maxHour ? {
1563
+ time,
1564
+ hours,
1565
+ dayIndex
1566
+ } : null;
1567
+ }
1568
+ const NOW_LABEL_CLEARANCE_HOURS = .25;
1569
+ const HourGutterInner = ({ width, minHour, maxHour, cellHeight, laneHeight, scrollY, showLane, showAllDayLabel, allDayLabel, headerHeight, weekNumber, ampm, hourComponent, renderNowLabel, nowPosition }) => {
1549
1570
  const theme = require_MonthList.useCalendarTheme();
1550
1571
  const slot = require_MonthList.useSlots();
1551
1572
  const hours = (0, react.useMemo)(() => hourRange(minHour, maxHour), [minHour, maxHour]);
1573
+ const label = nowPosition && renderNowLabel?.(nowPosition.time);
1574
+ const labelHours = label == null || typeof label === "boolean" ? void 0 : nowPosition?.hours;
1552
1575
  const laneCellHeightStyle = (0, react_native_reanimated.useAnimatedStyle)(() => ({ height: laneHeight.value }));
1553
- const pinStyle = (0, react_native_reanimated.useAnimatedStyle)(() => ({ transform: [{ translateY: scrollY.value }] }));
1576
+ const pinStyle = (0, react_native_reanimated.useAnimatedStyle)(() => ({ transform: [{ translateY: Math.max(0, scrollY.value) }] }));
1554
1577
  const rowsStyle = (0, react_native_reanimated.useAnimatedStyle)(() => ({
1555
1578
  top: headerHeight + laneHeight.value + HOUR_LABEL_TOP_INSET,
1556
1579
  height: (maxHour - minHour) * cellHeight.value
@@ -1599,9 +1622,9 @@ const HourGutterInner = ({ width, minHour, maxHour, cellHeight, laneHeight, scro
1599
1622
  children: allDayLabel
1600
1623
  }) : null
1601
1624
  }) : null,
1602
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_native_reanimated.default.View, {
1625
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_native_reanimated.default.View, {
1603
1626
  style: [styles$1.gutterRows, rowsStyle],
1604
- children: hours.map((hour) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_native.View, {
1627
+ children: [hours.map((hour) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_native.View, {
1605
1628
  style: styles$1.hourCell,
1606
1629
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_native.View, {
1607
1630
  style: [styles$1.hourRow, styles$1.nonInteractive],
@@ -1610,10 +1633,21 @@ const HourGutterInner = ({ width, minHour, maxHour, cellHeight, laneHeight, scro
1610
1633
  width,
1611
1634
  label: (0, _super_calendar_core.formatHour)(hour, { ampm }),
1612
1635
  ampm,
1613
- hourComponent
1636
+ hourComponent,
1637
+ hidden: labelHours != null && Math.abs(hour - labelHours) < NOW_LABEL_CLEARANCE_HOURS
1614
1638
  })
1615
1639
  })
1616
- }, hour))
1640
+ }, hour)), labelHours != null ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_native.View, {
1641
+ style: [
1642
+ styles$1.nowLabel,
1643
+ styles$1.nonInteractive,
1644
+ {
1645
+ width,
1646
+ top: `${(labelHours - minHour) / (maxHour - minHour) * 100}%`
1647
+ }
1648
+ ],
1649
+ children: label
1650
+ }) : null]
1617
1651
  })
1618
1652
  ]
1619
1653
  });
@@ -1742,14 +1776,13 @@ function TimetablePageInner({ mode, numberOfDays, hiddenDays, now: nowProp, nowT
1742
1776
  if (date) onLongPressCell?.(date);
1743
1777
  };
1744
1778
  const hoursRange = (0, react.useMemo)(() => hourRange(minHour, maxHour), [minHour, maxHour]);
1745
- const now = (0, _super_calendar_core.useNow)(showNowIndicator && isActive, {
1779
+ const tickOnPage = showNowIndicator && isActive && nowProp == null;
1780
+ const pageClock = (0, _super_calendar_core.useNow)(tickOnPage, {
1746
1781
  now: nowProp,
1747
1782
  timeZone: nowTimeZone
1748
1783
  });
1749
- const today = showNowIndicator && isActive ? now : (0, _super_calendar_core.nowInTimeZone)(nowProp, nowTimeZone);
1750
- const nowDayIndex = days.findIndex((day) => (0, _super_calendar_core.isSameCalendarDay)(day, now));
1751
- const nowHours = ((0, date_fns.getHours)(now) * MINUTES_PER_HOUR$1 + (0, date_fns.getMinutes)(now)) / MINUTES_PER_HOUR$1;
1752
- const nowInWindow = nowHours >= minHour && nowHours <= maxHour;
1784
+ const today = tickOnPage ? pageClock : (0, _super_calendar_core.nowInTimeZone)(nowProp, nowTimeZone);
1785
+ const nowPosition = showNowIndicator ? getNowPosition(today, days, minHour, maxHour) : null;
1753
1786
  const fullHeightStyle = (0, react_native_reanimated.useAnimatedStyle)(() => ({ height: (maxHour - minHour) * heightSource.value }), [
1754
1787
  minHour,
1755
1788
  maxHour,
@@ -1769,7 +1802,7 @@ function TimetablePageInner({ mode, numberOfDays, hiddenDays, now: nowProp, nowT
1769
1802
  height: Math.max(LANE_BAND_FLOOR, laneHeight.value),
1770
1803
  borderBottomWidth: laneHeight.value >= LANE_BAND_FLOOR ? react_native.StyleSheet.hairlineWidth : 0
1771
1804
  }));
1772
- const pinStyle = (0, react_native_reanimated.useAnimatedStyle)(() => ({ transform: [{ translateY: scrollY.value }] }));
1805
+ const pinStyle = (0, react_native_reanimated.useAnimatedStyle)(() => ({ transform: [{ translateY: Math.max(0, scrollY.value) }] }));
1773
1806
  const reportLaneLayout = (0, react.useCallback)((event) => {
1774
1807
  onLaneLayout(pageIndex, event.nativeEvent.layout.height);
1775
1808
  }, [onLaneLayout, pageIndex]);
@@ -2255,11 +2288,11 @@ function TimetablePageInner({ mode, numberOfDays, hiddenDays, now: nowProp, nowT
2255
2288
  minEventHeight,
2256
2289
  eventGap
2257
2290
  }) : null,
2258
- showNowIndicator && nowDayIndex >= 0 && nowInWindow ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(NowIndicator, {
2291
+ nowPosition ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(NowIndicator, {
2259
2292
  cellHeight: heightSource,
2260
- nowHours,
2293
+ nowHours: nowPosition.hours,
2261
2294
  minHour,
2262
- left: dayLeft(nowDayIndex),
2295
+ left: dayLeft(nowPosition.dayIndex),
2263
2296
  width: dayWidth,
2264
2297
  color: theme.colors.nowIndicator
2265
2298
  }) : null,
@@ -2286,10 +2319,13 @@ function TimetablePageInner({ mode, numberOfDays, hiddenDays, now: nowProp, nowT
2286
2319
  });
2287
2320
  }
2288
2321
  const TimetablePage = (0, react.memo)(TimetablePageInner);
2289
- function TimeGridInner({ mode, numberOfDays = 1, weekEndsOn, date, events, cellHeight, hourHeight = 48, weekStartsOn, weekdayFormat = "short", labels: labelsProp, renderEvent, eventAccessibilityLabel, keyExtractor, scrollOffsetMinutes = 0, hourColumnWidth: hourColumnWidthProp = DEFAULT_HOUR_COLUMN_WIDTH, hideHours = false, timeslots = 1, showAllDayEventCell = true, showAllDayLabel = false, refreshControl, highlightWeekends = true, calendarCellStyle, businessHours, renderBusinessHours, renderBackgroundEvent, showWeekNumber = false, headerComponent, minHour = 0, maxHour = HOURS_PER_DAY, ampm = false, isRTL = false, minHourHeight = DEFAULT_MIN_HOUR_HEIGHT, maxHourHeight = DEFAULT_MAX_HOUR_HEIGHT, minEventHeight = DEFAULT_MIN_EVENT_HEIGHT, eventGap = DEFAULT_EVENT_GAP, showNowIndicator = true, locale, freeSwipe = false, swipeEnabled = true, showVerticalScrollIndicator = true, verticalScrollEnabled = true, weekNumberPrefix = "W", hiddenDays, now, timeZone, hourComponent, activeDate, resetPageOnPressCell = false, dragStepMinutes = DEFAULT_DRAG_STEP_MINUTES, showDragHandle = true, eventStartEditable = true, eventDurationEditable = true, eventOverlap = true, onPressEvent, onLongPressEvent, onDragEvent: onDragEventProp, onDragStart, onPressCell, onLongPressCell, onCreateEvent, renderCreateGhost, onPressDateHeader, onChangeDate, renderHeader, classNames, styles: styleOverrides }, ref) {
2322
+ function TimeGridInner({ mode, numberOfDays = 1, weekEndsOn, date, events, cellHeight, hourHeight = 48, weekStartsOn, weekdayFormat = "short", labels: labelsProp, renderEvent, eventAccessibilityLabel, keyExtractor, scrollOffsetMinutes = 0, hourColumnWidth: hourColumnWidthProp = DEFAULT_HOUR_COLUMN_WIDTH, hideHours = false, timeslots = 1, showAllDayEventCell = true, showAllDayLabel = false, refreshControl, highlightWeekends = true, calendarCellStyle, businessHours, renderBusinessHours, renderBackgroundEvent, showWeekNumber = false, headerComponent, minHour = 0, maxHour = HOURS_PER_DAY, ampm = false, isRTL = false, minHourHeight = DEFAULT_MIN_HOUR_HEIGHT, maxHourHeight = DEFAULT_MAX_HOUR_HEIGHT, minEventHeight = DEFAULT_MIN_EVENT_HEIGHT, eventGap = DEFAULT_EVENT_GAP, showNowIndicator = true, locale, freeSwipe = false, swipeEnabled = true, showVerticalScrollIndicator = true, verticalScrollEnabled = true, weekNumberPrefix = "W", hiddenDays, now: nowProp, timeZone, hourComponent, activeDate, resetPageOnPressCell = false, dragStepMinutes = DEFAULT_DRAG_STEP_MINUTES, showDragHandle = true, eventStartEditable = true, eventDurationEditable = true, eventOverlap = true, onPressEvent, onLongPressEvent, onDragEvent: onDragEventProp, onDragStart, onPressCell, onLongPressCell, onCreateEvent, renderCreateGhost, onPressDateHeader, onChangeDate, renderHeader, renderNowLabel, contentPaddingBottom = 0, onVerticalScroll, verticalBounces = true, classNames, styles: styleOverrides }, ref) {
2290
2323
  const clampedMinHour = Math.max(0, Math.min(minHour, 23));
2291
2324
  const clampedMaxHour = Math.max(clampedMinHour + 1, Math.min(maxHour, HOURS_PER_DAY));
2292
2325
  const hourColumnWidth = hideHours ? 0 : hourColumnWidthProp;
2326
+ const hasNowLabel = showNowIndicator && renderNowLabel != null && hourColumnWidth > 0;
2327
+ const labelClock = (0, _super_calendar_core.useNow)(hasNowLabel, { now: nowProp });
2328
+ const now = nowProp ?? (hasNowLabel ? labelClock : void 0);
2293
2329
  const labels = (0, react.useMemo)(() => (0, _super_calendar_core.resolveCalendarLabels)(labelsProp), [labelsProp]);
2294
2330
  const todayLabel = labels.today;
2295
2331
  const pagedHeader = renderHeader == null;
@@ -2325,7 +2361,21 @@ function TimeGridInner({ mode, numberOfDays = 1, weekEndsOn, date, events, cellH
2325
2361
  const scrollY = (0, react_native_reanimated.useSharedValue)(seedDefaultY);
2326
2362
  const scrollHandler = (0, react_native_reanimated.useAnimatedScrollHandler)({ onScroll: (event) => {
2327
2363
  scrollY.value = event.contentOffset.y;
2328
- } });
2364
+ if (onVerticalScroll) (0, react_native_reanimated.runOnJS)(onVerticalScroll)({ nativeEvent: {
2365
+ contentOffset: {
2366
+ x: event.contentOffset.x,
2367
+ y: event.contentOffset.y
2368
+ },
2369
+ contentSize: {
2370
+ width: event.contentSize.width,
2371
+ height: event.contentSize.height
2372
+ },
2373
+ layoutMeasurement: {
2374
+ width: event.layoutMeasurement.width,
2375
+ height: event.layoutMeasurement.height
2376
+ }
2377
+ } });
2378
+ } }, [onVerticalScroll]);
2329
2379
  const [mountOffsetY] = (0, react.useState)(seedDefaultY);
2330
2380
  const webSeededRef = (0, react.useRef)(!isWeb$1);
2331
2381
  const seedWebScroll = (0, react.useCallback)(() => {
@@ -2509,17 +2559,17 @@ function TimeGridInner({ mode, numberOfDays = 1, weekEndsOn, date, events, cellH
2509
2559
  hiddenDays,
2510
2560
  weekNumberPrefix
2511
2561
  ]);
2512
- const headerDays = (0, react.useMemo)(() => (0, _super_calendar_core.getViewDays)(mode, pageDates[activeIndex] ?? date, weekStartsOn, numberOfDays, isRTL, weekEndsOn, hiddenDays), [
2562
+ const activePageDate = pageDates[activeIndex] ?? date;
2563
+ const headerDays = (0, react.useMemo)(() => (0, _super_calendar_core.getViewDays)(mode, activePageDate, weekStartsOn, numberOfDays, isRTL, weekEndsOn, hiddenDays), [
2513
2564
  mode,
2514
- pageDates,
2515
- activeIndex,
2516
- date,
2565
+ activePageDate,
2517
2566
  weekStartsOn,
2518
2567
  numberOfDays,
2519
2568
  isRTL,
2520
2569
  weekEndsOn,
2521
2570
  hiddenDays
2522
2571
  ]);
2572
+ const gutterNow = hasNowLabel ? getNowPosition((0, _super_calendar_core.nowInTimeZone)(now, timeZone), headerDays, clampedMinHour, clampedMaxHour) : null;
2523
2573
  dropRef.current = {
2524
2574
  headerDays,
2525
2575
  columnsWidth,
@@ -2855,6 +2905,8 @@ function TimeGridInner({ mode, numberOfDays = 1, weekEndsOn, date, events, cellH
2855
2905
  dragStepMinutes,
2856
2906
  minHour,
2857
2907
  maxHour,
2908
+ headerDays,
2909
+ showNowIndicator,
2858
2910
  nowTime,
2859
2911
  timeZone
2860
2912
  }), [
@@ -2867,6 +2919,8 @@ function TimeGridInner({ mode, numberOfDays = 1, weekEndsOn, date, events, cellH
2867
2919
  dragStepMinutes,
2868
2920
  minHour,
2869
2921
  maxHour,
2922
+ headerDays,
2923
+ showNowIndicator,
2870
2924
  nowTime,
2871
2925
  timeZone
2872
2926
  ]);
@@ -2906,6 +2960,9 @@ function TimeGridInner({ mode, numberOfDays = 1, weekEndsOn, date, events, cellH
2906
2960
  x: 0,
2907
2961
  y: mountOffsetY
2908
2962
  },
2963
+ contentContainerStyle: contentPaddingBottom > 0 ? { paddingBottom: contentPaddingBottom } : void 0,
2964
+ bounces: verticalBounces,
2965
+ overScrollMode: verticalBounces ? void 0 : "never",
2909
2966
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_native_reanimated.default.View, {
2910
2967
  testID: "time-grid-hours",
2911
2968
  style: [styles$1.gridRow, gridHeightStyle],
@@ -2922,7 +2979,9 @@ function TimeGridInner({ mode, numberOfDays = 1, weekEndsOn, date, events, cellH
2922
2979
  headerHeight: headerOffset,
2923
2980
  weekNumber,
2924
2981
  ampm,
2925
- hourComponent
2982
+ hourComponent,
2983
+ renderNowLabel,
2984
+ nowPosition: gutterNow
2926
2985
  }) : null, /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_native.View, {
2927
2986
  ref: pagerRef,
2928
2987
  testID: "time-grid-pager",
@@ -3164,6 +3223,11 @@ const styles$1 = react_native.StyleSheet.create({
3164
3223
  textAlign: "right",
3165
3224
  paddingRight: 6
3166
3225
  },
3226
+ nowLabel: {
3227
+ position: "absolute",
3228
+ left: 0,
3229
+ marginTop: -6
3230
+ },
3167
3231
  gutterRows: {
3168
3232
  position: "absolute",
3169
3233
  left: 0,
@@ -3324,7 +3388,7 @@ function expansionRange(mode, date, weekStartsOn, numberOfDays, weekEndsOn, numb
3324
3388
  * ```
3325
3389
  */
3326
3390
  const Calendar = (0, react.forwardRef)(CalendarInner);
3327
- function CalendarInner({ events, mode, date, onChangeDate, onChangeDateRange, onPressEvent, onLongPressEvent, onDragEvent, onDragStart, dragStepMinutes, showDragHandle, onPressDay, onPressMonth, onLongPressDay, onPressMore, onPressCell, resetPageOnPressCell, onLongPressCell, onCreateEvent, renderCreateGhost, onSelectDrag, selectedDates, selectedRange, fillCellOnSelection, minDate, maxDate, isDateDisabled, onPressDateHeader, maxVisibleEventCount, chipHeight, chipGap, sortedMonthView, moreLabel, labels, showAdjacentMonths, disableMonthEventCellPress, weekStartsOn = 0, hiddenDays, now, weekdayFormat, numberOfDays, numberOfWeeks = 2, weekEndsOn, renderEvent = DefaultEvent, eventAccessibilityLabel, eventCellStyle, calendarCellStyle, businessHours, renderBusinessHours, renderBackgroundEvent, keyExtractor = defaultKeyExtractor, theme, cellHeight: cellHeightProp, hourHeight = 48, minHourHeight, maxHourHeight, minEventHeight, eventGap, hourColumnWidth, hideHours, timeslots, showAllDayEventCell, showAllDayLabel, refreshControl, highlightWeekends, eventStartEditable, eventDurationEditable, eventOverlap, showWeekNumber, weekNumberPrefix, hourComponent, showSixWeeks, showTitle, swipeEnabled, showVerticalScrollIndicator, verticalScrollEnabled, headerComponent, minHour, maxHour, ampm, showTime, ellipsizeTitle, allDayLabel, scrollOffsetMinutes, showNowIndicator, locale, timeZone, activeDate, isRTL, freeSwipe, renderTimeGridHeader, renderHeaderForMonthView, renderCustomDateForMonth, itemSeparatorComponent, classNames, styles: styleOverrides }, ref) {
3391
+ function CalendarInner({ events, mode, date, onChangeDate, onChangeDateRange, onPressEvent, onLongPressEvent, onDragEvent, onDragStart, dragStepMinutes, showDragHandle, onPressDay, onPressMonth, onLongPressDay, onPressMore, onPressCell, resetPageOnPressCell, onLongPressCell, onCreateEvent, renderCreateGhost, onSelectDrag, selectedDates, selectedRange, fillCellOnSelection, minDate, maxDate, isDateDisabled, onPressDateHeader, maxVisibleEventCount, chipHeight, chipGap, sortedMonthView, moreLabel, labels, showAdjacentMonths, disableMonthEventCellPress, weekStartsOn = 0, hiddenDays, now, weekdayFormat, numberOfDays, numberOfWeeks = 2, weekEndsOn, renderEvent = DefaultEvent, eventAccessibilityLabel, eventCellStyle, calendarCellStyle, businessHours, renderBusinessHours, renderBackgroundEvent, keyExtractor = defaultKeyExtractor, theme, cellHeight: cellHeightProp, hourHeight = 48, minHourHeight, maxHourHeight, minEventHeight, eventGap, hourColumnWidth, hideHours, timeslots, showAllDayEventCell, showAllDayLabel, refreshControl, highlightWeekends, eventStartEditable, eventDurationEditable, eventOverlap, showWeekNumber, weekNumberPrefix, hourComponent, showSixWeeks, showTitle, swipeEnabled, showVerticalScrollIndicator, verticalScrollEnabled, headerComponent, minHour, maxHour, ampm, showTime, ellipsizeTitle, allDayLabel, scrollOffsetMinutes, showNowIndicator, locale, timeZone, activeDate, isRTL, freeSwipe, renderTimeGridHeader, renderNowLabel, timeGridContentPaddingBottom, onTimeGridScroll, timeGridBounces, renderHeaderForMonthView, renderCustomDateForMonth, itemSeparatorComponent, classNames, styles: styleOverrides }, ref) {
3328
3392
  const mergedTheme = (0, react.useMemo)(() => require_MonthList.mergeTheme(theme), [theme]);
3329
3393
  const internalCellHeight = (0, react_native_reanimated.useSharedValue)(hourHeight);
3330
3394
  const cellHeight = cellHeightProp ?? internalCellHeight;
@@ -3601,6 +3665,10 @@ function CalendarInner({ events, mode, date, onChangeDate, onChangeDateRange, on
3601
3665
  onPressDateHeader,
3602
3666
  onChangeDate: handleChangeDate,
3603
3667
  renderHeader: renderTimeGridHeader,
3668
+ renderNowLabel,
3669
+ contentPaddingBottom: timeGridContentPaddingBottom,
3670
+ onVerticalScroll: onTimeGridScroll,
3671
+ verticalBounces: timeGridBounces,
3604
3672
  classNames,
3605
3673
  styles: styleOverrides
3606
3674
  })