@super-calendar/native 2.1.3 → 2.1.5
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/README.md +5 -9
- package/dist/{DefaultMonthEvent-D2s0x2Bn.d.mts → DefaultMonthEvent-C-BiOsXb.d.mts} +3 -3
- package/dist/{DefaultMonthEvent-DaTEIcRs.d.ts → DefaultMonthEvent-CcZLyfps.d.ts} +3 -3
- package/dist/{MonthList-DXvjxiyu.mjs → MonthList-BKlLes2B.mjs} +3 -3
- package/dist/{MonthList-oXiArmbu.js → MonthList-ege6HsEP.js} +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/dist/picker.d.mts +1 -1
- package/dist/picker.d.ts +1 -1
- package/dist/picker.js +1 -1
- package/dist/picker.mjs +1 -1
- package/package.json +2 -2
- package/src/components/Calendar.tsx +1 -1
- package/src/components/MonthList.tsx +1 -1
- package/src/components/MonthPager.tsx +1 -1
- package/src/components/MonthView.tsx +1 -1
- package/src/components/TimeGrid.tsx +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @super-calendar/native
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/@super-calendar/native) [](https://jsr.io/@super-calendar/native) [](https://npmx.dev/package/@super-calendar/native)
|
|
4
4
|
|
|
5
|
-
The React Native renderer for [super-calendar](https://github.com/afonsojramos/
|
|
5
|
+
The React Native renderer for [super-calendar](https://github.com/afonsojramos/super-calendar): a gesture-driven, virtualized **month / week / day** calendar and date picker. Runs on iOS, Android, and web (web via [react-native-web](https://necolas.github.io/react-native-web/)).
|
|
6
6
|
|
|
7
7
|
- 📆 Month grid plus day / 3-day / week / custom-N time grids and an agenda
|
|
8
8
|
- 🤏 Pinch-to-zoom week/day grid (UI thread, no re-renders)
|
|
@@ -14,15 +14,11 @@ The React Native renderer for [super-calendar](https://github.com/afonsojramos/r
|
|
|
14
14
|
## Install
|
|
15
15
|
|
|
16
16
|
```sh
|
|
17
|
-
|
|
18
|
-
deno add jsr:@super-calendar/native
|
|
19
|
-
|
|
20
|
-
# npm / pnpm / yarn / bun
|
|
21
|
-
npx jsr add @super-calendar/native
|
|
22
|
-
pnpm dlx jsr add @super-calendar/native
|
|
23
|
-
bunx jsr add @super-calendar/native
|
|
17
|
+
npm install @super-calendar/native
|
|
24
18
|
```
|
|
25
19
|
|
|
20
|
+
Also on [JSR](https://jsr.io/@super-calendar/native): `deno add jsr:@super-calendar/native`.
|
|
21
|
+
|
|
26
22
|
Peer dependencies: `@legendapp/list` (>=3), `date-fns` (>=3), `react` (>=19), `react-native` (>=0.85), `react-native-gesture-handler` (>=2), `react-native-reanimated` (>=4), and `react-native-worklets` (>=0.8).
|
|
27
23
|
|
|
28
24
|
For a picker-only bundle that does not require Reanimated, import from the `@super-calendar/native/picker` subpath.
|
|
@@ -188,7 +188,7 @@ declare function MonthViewInner<T>({
|
|
|
188
188
|
*
|
|
189
189
|
* @example
|
|
190
190
|
* ```tsx
|
|
191
|
-
* import { MonthView, type CalendarEvent } from "
|
|
191
|
+
* import { MonthView, type CalendarEvent } from "@super-calendar/native";
|
|
192
192
|
*
|
|
193
193
|
* <MonthView
|
|
194
194
|
* date={new Date()}
|
|
@@ -262,7 +262,7 @@ declare function MonthPagerInner<T>({
|
|
|
262
262
|
*
|
|
263
263
|
* @example
|
|
264
264
|
* ```tsx
|
|
265
|
-
* import { MonthPager } from "
|
|
265
|
+
* import { MonthPager } from "@super-calendar/native";
|
|
266
266
|
*
|
|
267
267
|
* <MonthPager
|
|
268
268
|
* date={date}
|
|
@@ -363,7 +363,7 @@ declare function MonthListInner<T>({
|
|
|
363
363
|
*
|
|
364
364
|
* @example
|
|
365
365
|
* ```tsx
|
|
366
|
-
* import { MonthList } from "
|
|
366
|
+
* import { MonthList } from "@super-calendar/native/picker";
|
|
367
367
|
*
|
|
368
368
|
* <MonthList
|
|
369
369
|
* date={new Date()}
|
|
@@ -188,7 +188,7 @@ declare function MonthViewInner<T>({
|
|
|
188
188
|
*
|
|
189
189
|
* @example
|
|
190
190
|
* ```tsx
|
|
191
|
-
* import { MonthView, type CalendarEvent } from "
|
|
191
|
+
* import { MonthView, type CalendarEvent } from "@super-calendar/native";
|
|
192
192
|
*
|
|
193
193
|
* <MonthView
|
|
194
194
|
* date={new Date()}
|
|
@@ -262,7 +262,7 @@ declare function MonthPagerInner<T>({
|
|
|
262
262
|
*
|
|
263
263
|
* @example
|
|
264
264
|
* ```tsx
|
|
265
|
-
* import { MonthPager } from "
|
|
265
|
+
* import { MonthPager } from "@super-calendar/native";
|
|
266
266
|
*
|
|
267
267
|
* <MonthPager
|
|
268
268
|
* date={date}
|
|
@@ -363,7 +363,7 @@ declare function MonthListInner<T>({
|
|
|
363
363
|
*
|
|
364
364
|
* @example
|
|
365
365
|
* ```tsx
|
|
366
|
-
* import { MonthList } from "
|
|
366
|
+
* import { MonthList } from "@super-calendar/native/picker";
|
|
367
367
|
*
|
|
368
368
|
* <MonthList
|
|
369
369
|
* date={new Date()}
|
|
@@ -351,7 +351,7 @@ function MonthViewInner({ date, events, maxVisibleEventCount, weekStartsOn, loca
|
|
|
351
351
|
*
|
|
352
352
|
* @example
|
|
353
353
|
* ```tsx
|
|
354
|
-
* import { MonthView, type CalendarEvent } from "
|
|
354
|
+
* import { MonthView, type CalendarEvent } from "@super-calendar/native";
|
|
355
355
|
*
|
|
356
356
|
* <MonthView
|
|
357
357
|
* date={new Date()}
|
|
@@ -592,7 +592,7 @@ function MonthPagerInner({ date, events, maxVisibleEventCount, weekStartsOn, loc
|
|
|
592
592
|
*
|
|
593
593
|
* @example
|
|
594
594
|
* ```tsx
|
|
595
|
-
* import { MonthPager } from "
|
|
595
|
+
* import { MonthPager } from "@super-calendar/native";
|
|
596
596
|
*
|
|
597
597
|
* <MonthPager
|
|
598
598
|
* date={date}
|
|
@@ -1052,7 +1052,7 @@ function MonthBlock({ height, inert, children }) {
|
|
|
1052
1052
|
*
|
|
1053
1053
|
* @example
|
|
1054
1054
|
* ```tsx
|
|
1055
|
-
* import { MonthList } from "
|
|
1055
|
+
* import { MonthList } from "@super-calendar/native/picker";
|
|
1056
1056
|
*
|
|
1057
1057
|
* <MonthList
|
|
1058
1058
|
* date={new Date()}
|
|
@@ -351,7 +351,7 @@ function MonthViewInner({ date, events, maxVisibleEventCount, weekStartsOn, loca
|
|
|
351
351
|
*
|
|
352
352
|
* @example
|
|
353
353
|
* ```tsx
|
|
354
|
-
* import { MonthView, type CalendarEvent } from "
|
|
354
|
+
* import { MonthView, type CalendarEvent } from "@super-calendar/native";
|
|
355
355
|
*
|
|
356
356
|
* <MonthView
|
|
357
357
|
* date={new Date()}
|
|
@@ -592,7 +592,7 @@ function MonthPagerInner({ date, events, maxVisibleEventCount, weekStartsOn, loc
|
|
|
592
592
|
*
|
|
593
593
|
* @example
|
|
594
594
|
* ```tsx
|
|
595
|
-
* import { MonthPager } from "
|
|
595
|
+
* import { MonthPager } from "@super-calendar/native";
|
|
596
596
|
*
|
|
597
597
|
* <MonthPager
|
|
598
598
|
* date={date}
|
|
@@ -1052,7 +1052,7 @@ function MonthBlock({ height, inert, children }) {
|
|
|
1052
1052
|
*
|
|
1053
1053
|
* @example
|
|
1054
1054
|
* ```tsx
|
|
1055
|
-
* import { MonthList } from "
|
|
1055
|
+
* import { MonthList } from "@super-calendar/native/picker";
|
|
1056
1056
|
*
|
|
1057
1057
|
* <MonthList
|
|
1058
1058
|
* date={new Date()}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as defaultTheme, S as darkTheme, T as useCalendarTheme, _ as TimeGridMode, a as MonthPagerProps, b as CalendarThemeProvider, c as BusinessHours, d as EventKeyExtractor, f as ICalendarEvent, g as RenderEventArgs, h as RenderEvent, i as MonthPager, l as CalendarEvent, m as RecurrenceRule, n as MonthList, o as MonthView, p as RecurrenceFrequency, r as MonthListProps, s as MonthViewProps, t as DefaultMonthEvent, u as CalendarMode, v as WeekStartsOn, w as mergeTheme, x as PartialCalendarTheme, y as CalendarTheme } from "./DefaultMonthEvent-
|
|
1
|
+
import { C as defaultTheme, S as darkTheme, T as useCalendarTheme, _ as TimeGridMode, a as MonthPagerProps, b as CalendarThemeProvider, c as BusinessHours, d as EventKeyExtractor, f as ICalendarEvent, g as RenderEventArgs, h as RenderEvent, i as MonthPager, l as CalendarEvent, m as RecurrenceRule, n as MonthList, o as MonthView, p as RecurrenceFrequency, r as MonthListProps, s as MonthViewProps, t as DefaultMonthEvent, u as CalendarMode, v as WeekStartsOn, w as mergeTheme, x as PartialCalendarTheme, y as CalendarTheme } from "./DefaultMonthEvent-C-BiOsXb.mjs";
|
|
2
2
|
import { Locale } from "date-fns";
|
|
3
3
|
import { ComponentType, ReactElement } from "react";
|
|
4
4
|
import { SharedValue, useSharedValue } from "react-native-reanimated";
|
|
@@ -143,7 +143,7 @@ declare function TimeGridInner<T>({
|
|
|
143
143
|
*
|
|
144
144
|
* @example
|
|
145
145
|
* ```tsx
|
|
146
|
-
* import { TimeGrid } from "
|
|
146
|
+
* import { TimeGrid } from "@super-calendar/native";
|
|
147
147
|
*
|
|
148
148
|
* <TimeGrid
|
|
149
149
|
* mode="week"
|
|
@@ -292,7 +292,7 @@ type CalendarProps<T> = {
|
|
|
292
292
|
*
|
|
293
293
|
* @example
|
|
294
294
|
* ```tsx
|
|
295
|
-
* import { Calendar, type CalendarEvent } from "
|
|
295
|
+
* import { Calendar, type CalendarEvent } from "@super-calendar/native";
|
|
296
296
|
*
|
|
297
297
|
* function MyCalendar() {
|
|
298
298
|
* const [date, setDate] = useState(new Date());
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as defaultTheme, S as darkTheme, T as useCalendarTheme, _ as TimeGridMode, a as MonthPagerProps, b as CalendarThemeProvider, c as BusinessHours, d as EventKeyExtractor, f as ICalendarEvent, g as RenderEventArgs, h as RenderEvent, i as MonthPager, l as CalendarEvent, m as RecurrenceRule, n as MonthList, o as MonthView, p as RecurrenceFrequency, r as MonthListProps, s as MonthViewProps, t as DefaultMonthEvent, u as CalendarMode, v as WeekStartsOn, w as mergeTheme, x as PartialCalendarTheme, y as CalendarTheme } from "./DefaultMonthEvent-
|
|
1
|
+
import { C as defaultTheme, S as darkTheme, T as useCalendarTheme, _ as TimeGridMode, a as MonthPagerProps, b as CalendarThemeProvider, c as BusinessHours, d as EventKeyExtractor, f as ICalendarEvent, g as RenderEventArgs, h as RenderEvent, i as MonthPager, l as CalendarEvent, m as RecurrenceRule, n as MonthList, o as MonthView, p as RecurrenceFrequency, r as MonthListProps, s as MonthViewProps, t as DefaultMonthEvent, u as CalendarMode, v as WeekStartsOn, w as mergeTheme, x as PartialCalendarTheme, y as CalendarTheme } from "./DefaultMonthEvent-CcZLyfps.js";
|
|
2
2
|
import { Locale } from "date-fns";
|
|
3
3
|
import { ComponentType, ReactElement } from "react";
|
|
4
4
|
import { StyleProp, ViewStyle } from "react-native";
|
|
@@ -143,7 +143,7 @@ declare function TimeGridInner<T>({
|
|
|
143
143
|
*
|
|
144
144
|
* @example
|
|
145
145
|
* ```tsx
|
|
146
|
-
* import { TimeGrid } from "
|
|
146
|
+
* import { TimeGrid } from "@super-calendar/native";
|
|
147
147
|
*
|
|
148
148
|
* <TimeGrid
|
|
149
149
|
* mode="week"
|
|
@@ -292,7 +292,7 @@ type CalendarProps<T> = {
|
|
|
292
292
|
*
|
|
293
293
|
* @example
|
|
294
294
|
* ```tsx
|
|
295
|
-
* import { Calendar, type CalendarEvent } from "
|
|
295
|
+
* import { Calendar, type CalendarEvent } from "@super-calendar/native";
|
|
296
296
|
*
|
|
297
297
|
* function MyCalendar() {
|
|
298
298
|
* const [date, setDate] = useState(new Date());
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
enumerable: true
|
|
22
22
|
}) : target, mod));
|
|
23
23
|
//#endregion
|
|
24
|
-
const require_MonthList = require("./MonthList-
|
|
24
|
+
const require_MonthList = require("./MonthList-ege6HsEP.js");
|
|
25
25
|
let date_fns = require("date-fns");
|
|
26
26
|
let react = require("react");
|
|
27
27
|
let react_native_reanimated = require("react-native-reanimated");
|
|
@@ -1280,7 +1280,7 @@ function TimeGridInner({ mode, numberOfDays = 1, weekEndsOn, date, events, cellH
|
|
|
1280
1280
|
*
|
|
1281
1281
|
* @example
|
|
1282
1282
|
* ```tsx
|
|
1283
|
-
* import { TimeGrid } from "
|
|
1283
|
+
* import { TimeGrid } from "@super-calendar/native";
|
|
1284
1284
|
*
|
|
1285
1285
|
* <TimeGrid
|
|
1286
1286
|
* mode="week"
|
|
@@ -1461,7 +1461,7 @@ function visibleRange(mode, date, weekStartsOn, numberOfDays, weekEndsOn) {
|
|
|
1461
1461
|
*
|
|
1462
1462
|
* @example
|
|
1463
1463
|
* ```tsx
|
|
1464
|
-
* import { Calendar, type CalendarEvent } from "
|
|
1464
|
+
* import { Calendar, type CalendarEvent } from "@super-calendar/native";
|
|
1465
1465
|
*
|
|
1466
1466
|
* function MyCalendar() {
|
|
1467
1467
|
* const [date, setDate] = useState(new Date());
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as useWebPagerKeys, c as defaultTheme, i as MonthView, l as mergeTheme, n as DefaultMonthEvent, o as CalendarThemeProvider, r as MonthPager, s as darkTheme, t as MonthList, u as useCalendarTheme } from "./MonthList-
|
|
1
|
+
import { a as useWebPagerKeys, c as defaultTheme, i as MonthView, l as mergeTheme, n as DefaultMonthEvent, o as CalendarThemeProvider, r as MonthPager, s as darkTheme, t as MonthList, u as useCalendarTheme } from "./MonthList-BKlLes2B.mjs";
|
|
2
2
|
import { addDays, differenceInCalendarDays, endOfDay, endOfMonth, endOfWeek, format, getHours, getISOWeek, getMinutes, isSameDay, startOfDay, startOfMonth, startOfWeek } from "date-fns";
|
|
3
3
|
import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
4
4
|
import Animated, { runOnJS, scrollTo, useAnimatedReaction, useAnimatedRef, useAnimatedScrollHandler, useAnimatedStyle, useDerivedValue, useSharedValue } from "react-native-reanimated";
|
|
@@ -1256,7 +1256,7 @@ function TimeGridInner({ mode, numberOfDays = 1, weekEndsOn, date, events, cellH
|
|
|
1256
1256
|
*
|
|
1257
1257
|
* @example
|
|
1258
1258
|
* ```tsx
|
|
1259
|
-
* import { TimeGrid } from "
|
|
1259
|
+
* import { TimeGrid } from "@super-calendar/native";
|
|
1260
1260
|
*
|
|
1261
1261
|
* <TimeGrid
|
|
1262
1262
|
* mode="week"
|
|
@@ -1437,7 +1437,7 @@ function visibleRange(mode, date, weekStartsOn, numberOfDays, weekEndsOn) {
|
|
|
1437
1437
|
*
|
|
1438
1438
|
* @example
|
|
1439
1439
|
* ```tsx
|
|
1440
|
-
* import { Calendar, type CalendarEvent } from "
|
|
1440
|
+
* import { Calendar, type CalendarEvent } from "@super-calendar/native";
|
|
1441
1441
|
*
|
|
1442
1442
|
* function MyCalendar() {
|
|
1443
1443
|
* const [date, setDate] = useState(new Date());
|
package/dist/picker.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as defaultTheme, S as darkTheme, T as useCalendarTheme, a as MonthPagerProps, b as CalendarThemeProvider, d as EventKeyExtractor, f as ICalendarEvent, g as RenderEventArgs, h as RenderEvent, i as MonthPager, l as CalendarEvent, n as MonthList, o as MonthView, r as MonthListProps, s as MonthViewProps, t as DefaultMonthEvent, u as CalendarMode, v as WeekStartsOn, w as mergeTheme, x as PartialCalendarTheme, y as CalendarTheme } from "./DefaultMonthEvent-
|
|
1
|
+
import { C as defaultTheme, S as darkTheme, T as useCalendarTheme, a as MonthPagerProps, b as CalendarThemeProvider, d as EventKeyExtractor, f as ICalendarEvent, g as RenderEventArgs, h as RenderEvent, i as MonthPager, l as CalendarEvent, n as MonthList, o as MonthView, r as MonthListProps, s as MonthViewProps, t as DefaultMonthEvent, u as CalendarMode, v as WeekStartsOn, w as mergeTheme, x as PartialCalendarTheme, y as CalendarTheme } from "./DefaultMonthEvent-C-BiOsXb.mjs";
|
|
2
2
|
import { DateRange, DateSelectionConstraints, DaySelectionState, MonthGrid, MonthGridDay, MonthGridWeek, MonthGridWeekday, UseDateRangeOptions, UseMonthGridOptions, buildMonthGrid, buildMonthWeeks, daySelectionState, getIsToday, getWeekDays, isDateSelectable, isRangeEndpoint, isSameCalendarDay, isWeekend, isWithinDateRange, minutesIntoDay, nextDateRange, useDateRange, useMonthGrid } from "@super-calendar/core";
|
|
3
3
|
export { type CalendarEvent, type CalendarMode, type CalendarTheme, CalendarThemeProvider, type DateRange, type DateSelectionConstraints, type DaySelectionState, DefaultMonthEvent, type EventKeyExtractor, type ICalendarEvent, type MonthGrid, type MonthGridDay, type MonthGridWeek, type MonthGridWeekday, MonthList, type MonthListProps, MonthPager, type MonthPagerProps, MonthView, type MonthViewProps, type PartialCalendarTheme, type RenderEvent, type RenderEventArgs, type UseDateRangeOptions, type UseMonthGridOptions, type WeekStartsOn, buildMonthGrid, buildMonthWeeks, darkTheme, daySelectionState, defaultTheme, getIsToday, getWeekDays, isDateSelectable, isRangeEndpoint, isSameCalendarDay, isWeekend, isWithinDateRange, mergeTheme, minutesIntoDay, nextDateRange, useCalendarTheme, useDateRange, useMonthGrid };
|
package/dist/picker.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as defaultTheme, S as darkTheme, T as useCalendarTheme, a as MonthPagerProps, b as CalendarThemeProvider, d as EventKeyExtractor, f as ICalendarEvent, g as RenderEventArgs, h as RenderEvent, i as MonthPager, l as CalendarEvent, n as MonthList, o as MonthView, r as MonthListProps, s as MonthViewProps, t as DefaultMonthEvent, u as CalendarMode, v as WeekStartsOn, w as mergeTheme, x as PartialCalendarTheme, y as CalendarTheme } from "./DefaultMonthEvent-
|
|
1
|
+
import { C as defaultTheme, S as darkTheme, T as useCalendarTheme, a as MonthPagerProps, b as CalendarThemeProvider, d as EventKeyExtractor, f as ICalendarEvent, g as RenderEventArgs, h as RenderEvent, i as MonthPager, l as CalendarEvent, n as MonthList, o as MonthView, r as MonthListProps, s as MonthViewProps, t as DefaultMonthEvent, u as CalendarMode, v as WeekStartsOn, w as mergeTheme, x as PartialCalendarTheme, y as CalendarTheme } from "./DefaultMonthEvent-CcZLyfps.js";
|
|
2
2
|
import { DateRange, DateSelectionConstraints, DaySelectionState, MonthGrid, MonthGridDay, MonthGridWeek, MonthGridWeekday, UseDateRangeOptions, UseMonthGridOptions, buildMonthGrid, buildMonthWeeks, daySelectionState, getIsToday, getWeekDays, isDateSelectable, isRangeEndpoint, isSameCalendarDay, isWeekend, isWithinDateRange, minutesIntoDay, nextDateRange, useDateRange, useMonthGrid } from "@super-calendar/core";
|
|
3
3
|
export { type CalendarEvent, type CalendarMode, type CalendarTheme, CalendarThemeProvider, type DateRange, type DateSelectionConstraints, type DaySelectionState, DefaultMonthEvent, type EventKeyExtractor, type ICalendarEvent, type MonthGrid, type MonthGridDay, type MonthGridWeek, type MonthGridWeekday, MonthList, type MonthListProps, MonthPager, type MonthPagerProps, MonthView, type MonthViewProps, type PartialCalendarTheme, type RenderEvent, type RenderEventArgs, type UseDateRangeOptions, type UseMonthGridOptions, type WeekStartsOn, buildMonthGrid, buildMonthWeeks, darkTheme, daySelectionState, defaultTheme, getIsToday, getWeekDays, isDateSelectable, isRangeEndpoint, isSameCalendarDay, isWeekend, isWithinDateRange, mergeTheme, minutesIntoDay, nextDateRange, useCalendarTheme, useDateRange, useMonthGrid };
|
package/dist/picker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_MonthList = require("./MonthList-
|
|
2
|
+
const require_MonthList = require("./MonthList-ege6HsEP.js");
|
|
3
3
|
let _super_calendar_core = require("@super-calendar/core");
|
|
4
4
|
exports.CalendarThemeProvider = require_MonthList.CalendarThemeProvider;
|
|
5
5
|
exports.DefaultMonthEvent = require_MonthList.DefaultMonthEvent;
|
package/dist/picker.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { c as defaultTheme, i as MonthView, l as mergeTheme, n as DefaultMonthEvent, o as CalendarThemeProvider, r as MonthPager, s as darkTheme, t as MonthList, u as useCalendarTheme } from "./MonthList-
|
|
1
|
+
import { c as defaultTheme, i as MonthView, l as mergeTheme, n as DefaultMonthEvent, o as CalendarThemeProvider, r as MonthPager, s as darkTheme, t as MonthList, u as useCalendarTheme } from "./MonthList-BKlLes2B.mjs";
|
|
2
2
|
import { buildMonthGrid, buildMonthWeeks, daySelectionState, getIsToday, getWeekDays, isDateSelectable, isRangeEndpoint, isSameCalendarDay, isWeekend, isWithinDateRange, minutesIntoDay, nextDateRange, useDateRange, useMonthGrid } from "@super-calendar/core";
|
|
3
3
|
export { CalendarThemeProvider, DefaultMonthEvent, MonthList, MonthPager, MonthView, buildMonthGrid, buildMonthWeeks, darkTheme, daySelectionState, defaultTheme, getIsToday, getWeekDays, isDateSelectable, isRangeEndpoint, isSameCalendarDay, isWeekend, isWithinDateRange, mergeTheme, minutesIntoDay, nextDateRange, useCalendarTheme, useDateRange, useMonthGrid };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@super-calendar/native",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"description": "Gesture-driven, virtualized month / week / day calendar and date picker for React Native (and web via react-native-web).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agenda",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@super-calendar/core": "2.1.
|
|
67
|
+
"@super-calendar/core": "2.1.5"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"@legendapp/list": ">=3",
|
|
@@ -239,7 +239,7 @@ function visibleRange(
|
|
|
239
239
|
*
|
|
240
240
|
* @example
|
|
241
241
|
* ```tsx
|
|
242
|
-
* import { Calendar, type CalendarEvent } from "
|
|
242
|
+
* import { Calendar, type CalendarEvent } from "@super-calendar/native";
|
|
243
243
|
*
|
|
244
244
|
* function MyCalendar() {
|
|
245
245
|
* const [date, setDate] = useState(new Date());
|
|
@@ -462,7 +462,7 @@ function MonthViewInner<T>({
|
|
|
462
462
|
*
|
|
463
463
|
* @example
|
|
464
464
|
* ```tsx
|
|
465
|
-
* import { MonthView, type CalendarEvent } from "
|
|
465
|
+
* import { MonthView, type CalendarEvent } from "@super-calendar/native";
|
|
466
466
|
*
|
|
467
467
|
* <MonthView
|
|
468
468
|
* date={new Date()}
|