calendar-components 0.0.0 → 0.7.3
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/LICENSE +21 -0
- package/README.md +540 -2
- package/dist/agenda/index.d.ts +273 -0
- package/dist/agenda/index.js +18 -0
- package/dist/agenda/index.js.map +1 -0
- package/dist/chunk-E6WBQCX3.js +192 -0
- package/dist/chunk-E6WBQCX3.js.map +1 -0
- package/dist/chunk-IZC5ZZ5H.js +493 -0
- package/dist/chunk-IZC5ZZ5H.js.map +1 -0
- package/dist/chunk-X27ZSAPJ.js +271 -0
- package/dist/chunk-X27ZSAPJ.js.map +1 -0
- package/dist/chunk-X6ZOEKT4.js +1475 -0
- package/dist/chunk-X6ZOEKT4.js.map +1 -0
- package/dist/date-grid/index.d.ts +456 -0
- package/dist/date-grid/index.js +33 -0
- package/dist/date-grid/index.js.map +1 -0
- package/dist/index.d.ts +149 -0
- package/dist/index.js +254 -0
- package/dist/index.js.map +1 -0
- package/dist/time-grid/index.d.ts +773 -0
- package/dist/time-grid/index.js +41 -0
- package/dist/time-grid/index.js.map +1 -0
- package/dist/types-BxqOsLkh.d.ts +30 -0
- package/package.json +94 -3
- package/src/styles/apple-ios.css +817 -0
- package/src/styles/apple-macos.css +388 -0
- package/src/styles/apple.css +12 -0
- package/src/styles/base.css +256 -0
- package/src/styles/google.css +416 -0
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
import { DateString, ChangeDetails } from 'calendar-components-core';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { c as CalendarComponentsPartElementProps, b as CalendarComponentsInteractionState, d as CalendarComponentsPartProps } from '../types-BxqOsLkh.js';
|
|
4
|
+
export { C as CalendarComponentsEvent, a as CalendarComponentsHandlers } from '../types-BxqOsLkh.js';
|
|
5
|
+
import { CalendarState } from 'react-stately/useCalendarState';
|
|
6
|
+
|
|
7
|
+
type DateGridValueChangeDetails = ChangeDetails<"cell-press">;
|
|
8
|
+
type DateGridRootState = {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
readOnly: boolean;
|
|
11
|
+
};
|
|
12
|
+
interface DateGridRootProps extends CalendarComponentsPartElementProps<DateGridRootState, HTMLDivElement, "defaultValue"> {
|
|
13
|
+
/** The selected day, as YYYY-MM-DD. Use with `onValueChange` to control it. */
|
|
14
|
+
value?: DateString | null;
|
|
15
|
+
/** The day selected at first, when uncontrolled. */
|
|
16
|
+
defaultValue?: DateString | null;
|
|
17
|
+
/** Called when a day is selected. */
|
|
18
|
+
onValueChange?: (value: DateString, details: DateGridValueChangeDetails) => void;
|
|
19
|
+
/** The day the grid opens on: the week or month shown is the one it is in. Left out, it is the selected day's, or today's. */
|
|
20
|
+
defaultFocusedValue?: DateString;
|
|
21
|
+
/** The focused day, to control which week or month is shown. Use with `onFocusedValueChange`. */
|
|
22
|
+
focusedValue?: DateString;
|
|
23
|
+
/** Called when focus moves to another day, by the keyboard or by stepping. */
|
|
24
|
+
onFocusedValueChange?: (value: DateString) => void;
|
|
25
|
+
/**
|
|
26
|
+
* How much the grid shows: some weeks for a strip of days, or a month. (Side-by-side months are not drawn yet.)
|
|
27
|
+
* @default { months: 1 }
|
|
28
|
+
*/
|
|
29
|
+
visibleDuration?: {
|
|
30
|
+
weeks: number;
|
|
31
|
+
} | {
|
|
32
|
+
months: 1;
|
|
33
|
+
};
|
|
34
|
+
/** The first and last day that can be selected. */
|
|
35
|
+
minValue?: DateString;
|
|
36
|
+
maxValue?: DateString;
|
|
37
|
+
/** Days that cannot be selected, though they are shown. */
|
|
38
|
+
isDateUnavailable?: (date: DateString) => boolean;
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
readOnly?: boolean;
|
|
41
|
+
/** A BCP 47 tag. Left out, it is the nearest React Aria `I18nProvider`'s, or the browser's. */
|
|
42
|
+
locale?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The IANA time zone "today" is told in: which day is marked today, and
|
|
45
|
+
* where the grid opens. (React Aria's spoken "Today" on a day follows this
|
|
46
|
+
* device's zone; the two differ only when this is set to another.)
|
|
47
|
+
* @default this device's
|
|
48
|
+
*/
|
|
49
|
+
timeZone?: string;
|
|
50
|
+
"aria-label"?: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* A grid of days to choose from: a week's strip or a month, by
|
|
54
|
+
* `visibleDuration`. Its state is React Stately's `useCalendarState` and its
|
|
55
|
+
* keyboard, focus and screen-reader behaviour are React Aria's `useCalendar`,
|
|
56
|
+
* so arrow keys, Page Up and Down, and every calendar system work as theirs
|
|
57
|
+
* do. Days come and go as YYYY-MM-DD. Renders a `<div>`.
|
|
58
|
+
*/
|
|
59
|
+
declare const DateGridRoot: React.ForwardRefExoticComponent<DateGridRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
declare namespace DateGridRoot {
|
|
61
|
+
type Props = DateGridRootProps;
|
|
62
|
+
type State = DateGridRootState;
|
|
63
|
+
type ValueChangeDetails = DateGridValueChangeDetails;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
type DateGridHeadingState = {
|
|
67
|
+
/** What the grid shows, in the locale's words: "November 2026". */
|
|
68
|
+
title: string;
|
|
69
|
+
/** The month the grid opens in: "November". */
|
|
70
|
+
monthLabel: string;
|
|
71
|
+
/** The same, short: "Nov". */
|
|
72
|
+
shortMonthLabel: string;
|
|
73
|
+
/** The column its first day is in, 0 the week's first: where a label over a month's first day goes. 0 for a strip of weeks. */
|
|
74
|
+
startColumn: number;
|
|
75
|
+
};
|
|
76
|
+
interface DateGridHeadingProps extends CalendarComponentsPartElementProps<DateGridHeadingState, HTMLHeadingElement> {
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* What the grid shows, in the locale's words: "November 2026". Its state has
|
|
80
|
+
* the month alone and the column the month starts in (also
|
|
81
|
+
* `--date-grid-start-column`), for a label set over the first day. Renders
|
|
82
|
+
* an `<h2>`.
|
|
83
|
+
*/
|
|
84
|
+
declare const DateGridHeading: React.ForwardRefExoticComponent<DateGridHeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
85
|
+
declare namespace DateGridHeading {
|
|
86
|
+
type Props = DateGridHeadingProps;
|
|
87
|
+
type State = DateGridHeadingState;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
type DateGridStepState = CalendarComponentsInteractionState;
|
|
91
|
+
interface DateGridStepProps extends CalendarComponentsPartElementProps<DateGridStepState, HTMLButtonElement> {
|
|
92
|
+
}
|
|
93
|
+
/** Steps the grid back by what it shows: a week, or a month. Renders a `<button>`. */
|
|
94
|
+
declare const DateGridPrevious: React.ForwardRefExoticComponent<DateGridStepProps & React.RefAttributes<HTMLButtonElement>>;
|
|
95
|
+
declare namespace DateGridPrevious {
|
|
96
|
+
type Props = DateGridStepProps;
|
|
97
|
+
type State = DateGridStepState;
|
|
98
|
+
}
|
|
99
|
+
/** Steps the grid on by what it shows. Renders a `<button>`. */
|
|
100
|
+
declare const DateGridNext: React.ForwardRefExoticComponent<DateGridStepProps & React.RefAttributes<HTMLButtonElement>>;
|
|
101
|
+
declare namespace DateGridNext {
|
|
102
|
+
type Props = DateGridStepProps;
|
|
103
|
+
type State = DateGridStepState;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
type DateGridGridState = {
|
|
107
|
+
weeks: number;
|
|
108
|
+
};
|
|
109
|
+
interface DateGridGridProps extends Omit<React.TableHTMLAttributes<HTMLTableElement>, "className" | "style" | "children">, CalendarComponentsPartProps<DateGridGridState, HTMLTableElement> {
|
|
110
|
+
/**
|
|
111
|
+
* A `DateGrid.GridHeader` and a `DateGrid.GridBody`, or a function of a day
|
|
112
|
+
* that returns a `DateGrid.Cell`, which draws both with their defaults.
|
|
113
|
+
* Left out, it is a month of plain days.
|
|
114
|
+
*/
|
|
115
|
+
children?: React.ReactNode | ((date: DateString) => React.ReactNode);
|
|
116
|
+
/**
|
|
117
|
+
* How long the weekday names are.
|
|
118
|
+
* @default "narrow"
|
|
119
|
+
*/
|
|
120
|
+
weekdayStyle?: "narrow" | "short" | "long";
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* The days shown, a row per week. The week starts where the locale starts
|
|
124
|
+
* it. Renders a `<table>` with React Aria's grid role and keyboard.
|
|
125
|
+
*
|
|
126
|
+
* <DateGrid.Grid>
|
|
127
|
+
* <DateGrid.GridHeader>{(weekday) => <DateGrid.HeaderCell weekday={weekday} />}</DateGrid.GridHeader>
|
|
128
|
+
* <DateGrid.GridBody>{(date) => <DateGrid.Cell date={date} />}</DateGrid.GridBody>
|
|
129
|
+
* </DateGrid.Grid>
|
|
130
|
+
*/
|
|
131
|
+
declare const DateGridGrid: React.ForwardRefExoticComponent<DateGridGridProps & React.RefAttributes<HTMLTableElement>>;
|
|
132
|
+
declare namespace DateGridGrid {
|
|
133
|
+
type Props = DateGridGridProps;
|
|
134
|
+
type State = DateGridGridState;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/** A weekday as the header names it: its name in the locale, where it falls in the week, and whether it is a weekend day there. */
|
|
138
|
+
interface DateGridWeekday {
|
|
139
|
+
label: string;
|
|
140
|
+
/** 0 is the week's first day in this locale. */
|
|
141
|
+
index: number;
|
|
142
|
+
weekend: boolean;
|
|
143
|
+
}
|
|
144
|
+
type DateGridHeaderCellState = DateGridWeekday;
|
|
145
|
+
interface DateGridHeaderCellProps extends CalendarComponentsPartElementProps<DateGridHeaderCellState, HTMLTableCellElement> {
|
|
146
|
+
/** The weekday, from `DateGrid.GridHeader`. */
|
|
147
|
+
weekday: DateGridWeekday;
|
|
148
|
+
}
|
|
149
|
+
/** A weekday's name. Renders a `<th>`. */
|
|
150
|
+
declare const DateGridHeaderCell: React.ForwardRefExoticComponent<DateGridHeaderCellProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
151
|
+
declare namespace DateGridHeaderCell {
|
|
152
|
+
type Props = DateGridHeaderCellProps;
|
|
153
|
+
type State = DateGridHeaderCellState;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
type DateGridGridHeaderState = {
|
|
157
|
+
weekdays: readonly DateGridWeekday[];
|
|
158
|
+
};
|
|
159
|
+
interface DateGridGridHeaderProps extends Omit<React.HTMLAttributes<HTMLTableSectionElement>, "children" | "className" | "style">, CalendarComponentsPartProps<DateGridGridHeaderState, HTMLTableSectionElement> {
|
|
160
|
+
/** Draws one weekday: return a `DateGrid.HeaderCell`. Left out, each is a plain one. */
|
|
161
|
+
children?: (weekday: DateGridWeekday) => React.ReactNode;
|
|
162
|
+
}
|
|
163
|
+
/** The row of weekday names. Renders a `<thead>` with one `<tr>`. */
|
|
164
|
+
declare const DateGridGridHeader: React.ForwardRefExoticComponent<DateGridGridHeaderProps & React.RefAttributes<HTMLTableSectionElement>>;
|
|
165
|
+
declare namespace DateGridGridHeader {
|
|
166
|
+
type Props = DateGridGridHeaderProps;
|
|
167
|
+
type State = DateGridGridHeaderState;
|
|
168
|
+
type Weekday = DateGridWeekday;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
type DateGridGridBodyState = {
|
|
172
|
+
weeks: number;
|
|
173
|
+
};
|
|
174
|
+
interface DateGridGridBodyProps extends Omit<React.HTMLAttributes<HTMLTableSectionElement>, "children" | "className" | "style">, CalendarComponentsPartProps<DateGridGridBodyState, HTMLTableSectionElement> {
|
|
175
|
+
/** Draws one day: return a `DateGrid.Cell`. Each week is then a plain `DateGrid.Week`. */
|
|
176
|
+
children?: (date: DateString) => React.ReactNode;
|
|
177
|
+
/** Draws one week, given its place among those shown: return a `DateGrid.Week`. Use it for a week row of your own. */
|
|
178
|
+
renderWeek?: (week: number) => React.ReactNode;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* The days, a `DateGrid.Week` per week. Renders a `<tbody>`.
|
|
182
|
+
*
|
|
183
|
+
* <DateGrid.GridBody renderWeek={(week) => <DateGrid.Week week={week} className="week">{(date) => <DateGrid.Cell date={date} />}</DateGrid.Week>} />
|
|
184
|
+
*/
|
|
185
|
+
declare const DateGridGridBody: React.ForwardRefExoticComponent<DateGridGridBodyProps & React.RefAttributes<HTMLTableSectionElement>>;
|
|
186
|
+
declare namespace DateGridGridBody {
|
|
187
|
+
type Props = DateGridGridBodyProps;
|
|
188
|
+
type State = DateGridGridBodyState;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
type DateGridWeekState = {
|
|
192
|
+
/** Its place among the weeks shown; 0 is the first. */
|
|
193
|
+
week: number;
|
|
194
|
+
/** Its days, a null where the calendar system has no day (a month that starts mid-week in a strip never has one). */
|
|
195
|
+
dates: readonly (DateString | null)[];
|
|
196
|
+
};
|
|
197
|
+
interface DateGridWeekProps extends Omit<React.HTMLAttributes<HTMLTableRowElement>, "children" | "className" | "style">, CalendarComponentsPartProps<DateGridWeekState, HTMLTableRowElement> {
|
|
198
|
+
/** Which week, from `DateGrid.GridBody`'s `renderWeek`. */
|
|
199
|
+
week: number;
|
|
200
|
+
/** Draws one day: return a `DateGrid.Cell`. */
|
|
201
|
+
children: (date: DateString) => React.ReactNode;
|
|
202
|
+
}
|
|
203
|
+
/** A week's days. Renders a `<tr>`. */
|
|
204
|
+
declare const DateGridWeek: React.ForwardRefExoticComponent<DateGridWeekProps & React.RefAttributes<HTMLTableRowElement>>;
|
|
205
|
+
declare namespace DateGridWeek {
|
|
206
|
+
type Props = DateGridWeekProps;
|
|
207
|
+
type State = DateGridWeekState;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
type DateGridCellState = CalendarComponentsInteractionState & {
|
|
211
|
+
date: DateString;
|
|
212
|
+
/** The day of the month, in the locale's digits. */
|
|
213
|
+
label: string;
|
|
214
|
+
selected: boolean;
|
|
215
|
+
today: boolean;
|
|
216
|
+
weekend: boolean;
|
|
217
|
+
/** A day of another month than the one shown. */
|
|
218
|
+
outsideMonth: boolean;
|
|
219
|
+
unavailable: boolean;
|
|
220
|
+
};
|
|
221
|
+
interface DateGridCellProps extends CalendarComponentsPartElementProps<DateGridCellState> {
|
|
222
|
+
/** The day, from `DateGrid.Grid`. */
|
|
223
|
+
date: DateString;
|
|
224
|
+
/**
|
|
225
|
+
* What the day holds, drawn in the cell after the day and outside its
|
|
226
|
+
* button: the day's events, which can then be read, and pressed, on their
|
|
227
|
+
* own (buttons and links there keep their own keys and focus). What only
|
|
228
|
+
* decorates the day, as a dot does, can be its children.
|
|
229
|
+
*/
|
|
230
|
+
details?: React.ReactNode | ((state: DateGridCellState) => React.ReactNode);
|
|
231
|
+
/** Props for the element round `details`: its `className`, `style` and `render` are given the day's state. */
|
|
232
|
+
detailsProps?: Omit<DateGridCellDetailsProps, "children">;
|
|
233
|
+
/** Props for the `<td>` the day sits in, as any part's: `className` and `style` can be functions of the day's state, and `render` draws it as another element. It carries the day's state attributes too, so a stylesheet can rule or shade the whole cell. */
|
|
234
|
+
wrapperProps?: Omit<React.TdHTMLAttributes<HTMLTableCellElement>, "className" | "style" | "children"> & CalendarComponentsPartProps<DateGridCellState, HTMLTableCellElement>;
|
|
235
|
+
}
|
|
236
|
+
interface DateGridCellDetailsProps extends CalendarComponentsPartElementProps<DateGridCellState> {
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* A day. Pressed, it is selected; the arrow keys move between days and Enter
|
|
240
|
+
* selects, as React Aria's calendar cell does. Its children are given its
|
|
241
|
+
* state, for a dot under the number; the day's events go in `details`.
|
|
242
|
+
* Renders a `<td>` holding a `<div>` with the button role.
|
|
243
|
+
*/
|
|
244
|
+
declare const DateGridCell: React.ForwardRefExoticComponent<DateGridCellProps & React.RefAttributes<HTMLDivElement>>;
|
|
245
|
+
declare namespace DateGridCell {
|
|
246
|
+
type DetailsProps = DateGridCellDetailsProps;
|
|
247
|
+
type Props = DateGridCellProps;
|
|
248
|
+
type State = DateGridCellState;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
declare namespace index_parts {
|
|
252
|
+
export { DateGridCell as Cell, DateGridGrid as Grid, DateGridGridBody as GridBody, DateGridGridHeader as GridHeader, DateGridHeaderCell as HeaderCell, DateGridHeading as Heading, DateGridNext as Next, DateGridPrevious as Previous, DateGridRoot as Root, DateGridWeek as Week };
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
interface DateGridContextValue {
|
|
256
|
+
/** React Stately's calendar state: what is shown, focused and selected. */
|
|
257
|
+
state: CalendarState;
|
|
258
|
+
locale: string;
|
|
259
|
+
/** Whether a month is shown (so days of its neighbours are outside it), or a strip of weeks. */
|
|
260
|
+
month: boolean;
|
|
261
|
+
/** How many weeks a strip shows. */
|
|
262
|
+
weeks: number | null;
|
|
263
|
+
timeZone: string;
|
|
264
|
+
/** The heading's words, for the days shown: "November 2026". */
|
|
265
|
+
title: string;
|
|
266
|
+
previousButtonProps: object;
|
|
267
|
+
nextButtonProps: object;
|
|
268
|
+
}
|
|
269
|
+
declare function useDateGridContext(part?: string): DateGridContextValue;
|
|
270
|
+
|
|
271
|
+
interface DateGridGridContextValue {
|
|
272
|
+
headerProps: object;
|
|
273
|
+
weekdays: readonly string[];
|
|
274
|
+
weeks: number;
|
|
275
|
+
}
|
|
276
|
+
declare function useDateGridGridContext(part?: string): DateGridGridContextValue;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Identifies the weekdays' section (`date-grid-header`) and the row in it (`date-grid-header-row`).
|
|
280
|
+
* @type {'date-grid-header' | 'date-grid-header-row'}
|
|
281
|
+
*/
|
|
282
|
+
declare const slot$8 = "data-slot";
|
|
283
|
+
|
|
284
|
+
declare namespace DateGridGridHeaderDataAttributes {
|
|
285
|
+
export { slot$8 as slot };
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Identifies the weeks' section.
|
|
290
|
+
* @type {'date-grid-body'}
|
|
291
|
+
*/
|
|
292
|
+
declare const slot$7 = "data-slot";
|
|
293
|
+
|
|
294
|
+
declare namespace DateGridGridBodyDataAttributes {
|
|
295
|
+
export { slot$7 as slot };
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Identifies the grid of days.
|
|
300
|
+
* @type {'date-grid'}
|
|
301
|
+
*/
|
|
302
|
+
declare const slot$6 = "data-slot";
|
|
303
|
+
/**
|
|
304
|
+
* Present when no day can be selected.
|
|
305
|
+
*/
|
|
306
|
+
declare const disabled$2 = "data-disabled";
|
|
307
|
+
/**
|
|
308
|
+
* Present when the selected day cannot be changed.
|
|
309
|
+
*/
|
|
310
|
+
declare const readOnly = "data-read-only";
|
|
311
|
+
|
|
312
|
+
declare const DateGridRootDataAttributes_readOnly: typeof readOnly;
|
|
313
|
+
declare namespace DateGridRootDataAttributes {
|
|
314
|
+
export { disabled$2 as disabled, DateGridRootDataAttributes_readOnly as readOnly, slot$6 as slot };
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Identifies the heading.
|
|
319
|
+
* @type {'date-grid-heading'}
|
|
320
|
+
*/
|
|
321
|
+
declare const slot$5 = "data-slot";
|
|
322
|
+
/**
|
|
323
|
+
* The column the month's first day is in; 0 is the week's first.
|
|
324
|
+
* @type {number}
|
|
325
|
+
*/
|
|
326
|
+
declare const startColumn$1 = "data-start-column";
|
|
327
|
+
|
|
328
|
+
declare namespace DateGridHeadingDataAttributes {
|
|
329
|
+
export { slot$5 as slot, startColumn$1 as startColumn };
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* The column the month's first day is in; 0 is the week's first.
|
|
334
|
+
* @type {number}
|
|
335
|
+
*/
|
|
336
|
+
declare const startColumn = "--date-grid-start-column";
|
|
337
|
+
|
|
338
|
+
declare const DateGridHeadingCssVars_startColumn: typeof startColumn;
|
|
339
|
+
declare namespace DateGridHeadingCssVars {
|
|
340
|
+
export { DateGridHeadingCssVars_startColumn as startColumn };
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Identifies the button.
|
|
345
|
+
* @type {'date-grid-previous' | 'date-grid-next'}
|
|
346
|
+
*/
|
|
347
|
+
declare const slot$4 = "data-slot";
|
|
348
|
+
/** Present while it is pressed. */
|
|
349
|
+
declare const pressed$1 = "data-pressed";
|
|
350
|
+
/** Present while the pointer is over it (never on touch). */
|
|
351
|
+
declare const hovered$1 = "data-hovered";
|
|
352
|
+
/** Present while it has keyboard focus. */
|
|
353
|
+
declare const focusVisible$1 = "data-focus-visible";
|
|
354
|
+
/** Present when there is nothing further that way. */
|
|
355
|
+
declare const disabled$1 = "data-disabled";
|
|
356
|
+
|
|
357
|
+
declare namespace DateGridStepDataAttributes {
|
|
358
|
+
export { disabled$1 as disabled, focusVisible$1 as focusVisible, hovered$1 as hovered, pressed$1 as pressed, slot$4 as slot };
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Identifies the table of days.
|
|
363
|
+
* @type {'date-grid-grid'}
|
|
364
|
+
*/
|
|
365
|
+
declare const slot$3 = "data-slot";
|
|
366
|
+
/**
|
|
367
|
+
* How many weeks it shows.
|
|
368
|
+
* @type {number}
|
|
369
|
+
*/
|
|
370
|
+
declare const weeks = "data-weeks";
|
|
371
|
+
|
|
372
|
+
declare const DateGridGridDataAttributes_weeks: typeof weeks;
|
|
373
|
+
declare namespace DateGridGridDataAttributes {
|
|
374
|
+
export { slot$3 as slot, DateGridGridDataAttributes_weeks as weeks };
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Identifies a weekday's name.
|
|
379
|
+
* @type {'date-grid-header-cell'}
|
|
380
|
+
*/
|
|
381
|
+
declare const slot$2 = "data-slot";
|
|
382
|
+
/**
|
|
383
|
+
* Present on a weekend day, as the locale has the weekend.
|
|
384
|
+
*/
|
|
385
|
+
declare const weekend$1 = "data-weekend";
|
|
386
|
+
|
|
387
|
+
declare namespace DateGridHeaderCellDataAttributes {
|
|
388
|
+
export { slot$2 as slot, weekend$1 as weekend };
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Identifies a week's row.
|
|
393
|
+
* @type {'date-grid-week'}
|
|
394
|
+
*/
|
|
395
|
+
declare const slot$1 = "data-slot";
|
|
396
|
+
/**
|
|
397
|
+
* Its place among the weeks shown; 0 is the first.
|
|
398
|
+
* @type {number}
|
|
399
|
+
*/
|
|
400
|
+
declare const week = "data-week";
|
|
401
|
+
|
|
402
|
+
declare const DateGridWeekDataAttributes_week: typeof week;
|
|
403
|
+
declare namespace DateGridWeekDataAttributes {
|
|
404
|
+
export { slot$1 as slot, DateGridWeekDataAttributes_week as week };
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Identifies a day (`date-grid-cell`), the `<td>` it sits in
|
|
409
|
+
* (`date-grid-cell-wrapper`) and what it holds (`date-grid-cell-details`).
|
|
410
|
+
* The attributes down to `unavailable` are on all three.
|
|
411
|
+
* @type {'date-grid-cell' | 'date-grid-cell-wrapper' | 'date-grid-cell-details'}
|
|
412
|
+
*/
|
|
413
|
+
declare const slot = "data-slot";
|
|
414
|
+
/**
|
|
415
|
+
* The day, as YYYY-MM-DD.
|
|
416
|
+
* @type {string}
|
|
417
|
+
*/
|
|
418
|
+
declare const date = "data-date";
|
|
419
|
+
/** Present on the selected day. */
|
|
420
|
+
declare const selected = "data-selected";
|
|
421
|
+
/** Present on today. */
|
|
422
|
+
declare const today = "data-today";
|
|
423
|
+
/** Present on a weekend day, as the locale has the weekend. */
|
|
424
|
+
declare const weekend = "data-weekend";
|
|
425
|
+
/** Present on a day of another month than the one shown. */
|
|
426
|
+
declare const outsideMonth = "data-outside-month";
|
|
427
|
+
/** Present on a day that cannot be selected. */
|
|
428
|
+
declare const unavailable = "data-unavailable";
|
|
429
|
+
/** Present on a `<td>` with no day in it. */
|
|
430
|
+
declare const empty = "data-empty";
|
|
431
|
+
/** Present while it is pressed. */
|
|
432
|
+
declare const pressed = "data-pressed";
|
|
433
|
+
/** Present while the pointer is over it (never on touch). */
|
|
434
|
+
declare const hovered = "data-hovered";
|
|
435
|
+
/** Present while it has keyboard focus. */
|
|
436
|
+
declare const focusVisible = "data-focus-visible";
|
|
437
|
+
/** Present when it is disabled. */
|
|
438
|
+
declare const disabled = "data-disabled";
|
|
439
|
+
|
|
440
|
+
declare const DateGridCellDataAttributes_date: typeof date;
|
|
441
|
+
declare const DateGridCellDataAttributes_disabled: typeof disabled;
|
|
442
|
+
declare const DateGridCellDataAttributes_empty: typeof empty;
|
|
443
|
+
declare const DateGridCellDataAttributes_focusVisible: typeof focusVisible;
|
|
444
|
+
declare const DateGridCellDataAttributes_hovered: typeof hovered;
|
|
445
|
+
declare const DateGridCellDataAttributes_outsideMonth: typeof outsideMonth;
|
|
446
|
+
declare const DateGridCellDataAttributes_pressed: typeof pressed;
|
|
447
|
+
declare const DateGridCellDataAttributes_selected: typeof selected;
|
|
448
|
+
declare const DateGridCellDataAttributes_slot: typeof slot;
|
|
449
|
+
declare const DateGridCellDataAttributes_today: typeof today;
|
|
450
|
+
declare const DateGridCellDataAttributes_unavailable: typeof unavailable;
|
|
451
|
+
declare const DateGridCellDataAttributes_weekend: typeof weekend;
|
|
452
|
+
declare namespace DateGridCellDataAttributes {
|
|
453
|
+
export { DateGridCellDataAttributes_date as date, DateGridCellDataAttributes_disabled as disabled, DateGridCellDataAttributes_empty as empty, DateGridCellDataAttributes_focusVisible as focusVisible, DateGridCellDataAttributes_hovered as hovered, DateGridCellDataAttributes_outsideMonth as outsideMonth, DateGridCellDataAttributes_pressed as pressed, DateGridCellDataAttributes_selected as selected, DateGridCellDataAttributes_slot as slot, DateGridCellDataAttributes_today as today, DateGridCellDataAttributes_unavailable as unavailable, DateGridCellDataAttributes_weekend as weekend };
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
export { CalendarComponentsInteractionState, CalendarComponentsPartElementProps, CalendarComponentsPartProps, index_parts as DateGrid, DateGridCellDataAttributes, type DateGridCellDetailsProps, type DateGridCellProps, type DateGridCellState, type DateGridContextValue, DateGridGridBodyDataAttributes, type DateGridGridBodyProps, type DateGridGridBodyState, type DateGridGridContextValue, DateGridGridDataAttributes, DateGridGridHeaderDataAttributes, type DateGridGridHeaderProps, type DateGridGridHeaderState, type DateGridGridProps, type DateGridGridState, DateGridHeaderCellDataAttributes, type DateGridHeaderCellProps, type DateGridHeaderCellState, DateGridHeadingCssVars as DateGridHeadingCssVariables, DateGridHeadingDataAttributes, type DateGridHeadingProps, type DateGridHeadingState, DateGridRootDataAttributes, type DateGridRootProps, type DateGridRootState, DateGridStepDataAttributes, type DateGridStepProps, type DateGridStepState, type DateGridValueChangeDetails, DateGridWeekDataAttributes, type DateGridWeekProps, type DateGridWeekState, type DateGridWeekday, useDateGridContext as useDateGrid, useDateGridGridContext as useDateGridGrid };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
DateGridCellDataAttributes_exports,
|
|
4
|
+
DateGridGridBodyDataAttributes_exports,
|
|
5
|
+
DateGridGridDataAttributes_exports,
|
|
6
|
+
DateGridGridHeaderDataAttributes_exports,
|
|
7
|
+
DateGridHeaderCellDataAttributes_exports,
|
|
8
|
+
DateGridHeadingCssVars_exports,
|
|
9
|
+
DateGridHeadingDataAttributes_exports,
|
|
10
|
+
DateGridRootDataAttributes_exports,
|
|
11
|
+
DateGridStepDataAttributes_exports,
|
|
12
|
+
DateGridWeekDataAttributes_exports,
|
|
13
|
+
index_parts_exports,
|
|
14
|
+
useDateGridContext,
|
|
15
|
+
useDateGridGridContext
|
|
16
|
+
} from "../chunk-IZC5ZZ5H.js";
|
|
17
|
+
import "../chunk-E6WBQCX3.js";
|
|
18
|
+
export {
|
|
19
|
+
index_parts_exports as DateGrid,
|
|
20
|
+
DateGridCellDataAttributes_exports as DateGridCellDataAttributes,
|
|
21
|
+
DateGridGridBodyDataAttributes_exports as DateGridGridBodyDataAttributes,
|
|
22
|
+
DateGridGridDataAttributes_exports as DateGridGridDataAttributes,
|
|
23
|
+
DateGridGridHeaderDataAttributes_exports as DateGridGridHeaderDataAttributes,
|
|
24
|
+
DateGridHeaderCellDataAttributes_exports as DateGridHeaderCellDataAttributes,
|
|
25
|
+
DateGridHeadingCssVars_exports as DateGridHeadingCssVariables,
|
|
26
|
+
DateGridHeadingDataAttributes_exports as DateGridHeadingDataAttributes,
|
|
27
|
+
DateGridRootDataAttributes_exports as DateGridRootDataAttributes,
|
|
28
|
+
DateGridStepDataAttributes_exports as DateGridStepDataAttributes,
|
|
29
|
+
DateGridWeekDataAttributes_exports as DateGridWeekDataAttributes,
|
|
30
|
+
useDateGridContext as useDateGrid,
|
|
31
|
+
useDateGridGridContext as useDateGridGrid
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
export { TimeGrid, TimeGridAllDayDataAttributes, TimeGridAllDayEventDataAttributes, TimeGridAllDayEventProps, TimeGridAllDayEventState, TimeGridAllDayProps, TimeGridAllDayState, TimeGridColumnDataAttributes, TimeGridColumnProps, TimeGridColumnState, TimeGridContextValue, TimeGridDayHeaderDataAttributes, TimeGridDayHeaderProps, TimeGridDayHeaderState, TimeGridEventChange, TimeGridEventChangeDetails, TimeGridEventChangeReason, TimeGridEventContextValue, TimeGridEventDataAttributes, TimeGridEventProps, TimeGridEventResizeHandleDataAttributes, TimeGridEventResizeHandleProps, TimeGridEventResizeHandleState, TimeGridEventState, TimeGridEventsItem, TimeGridEventsProps, TimeGridHourDataAttributes, TimeGridHourProps, TimeGridHourState, TimeGridHoursDataAttributes, TimeGridHoursProps, TimeGridHoursState, TimeGridLineDataAttributes, TimeGridLineProps, TimeGridLineState, TimeGridLinesProps, TimeGridNowDataAttributes, TimeGridNowProps, TimeGridNowState, TimeGridRootActions, TimeGridRootCssVariables, TimeGridRootDataAttributes, TimeGridRootProps, TimeGridRootState, TimeGridScrollOptions, TimeGridScrollTarget, TimeGridValueChangeDetails, TimeGridValueChangeReason, useEventPlacement, useTimeGrid, useTimeGridColumn, useTimeGridEvent } from './time-grid/index.js';
|
|
2
|
+
export { C as CalendarComponentsEvent, a as CalendarComponentsHandlers, b as CalendarComponentsInteractionState, c as CalendarComponentsPartElementProps, d as CalendarComponentsPartProps } from './types-BxqOsLkh.js';
|
|
3
|
+
export { DateGrid, DateGridCellDataAttributes, DateGridCellDetailsProps, DateGridCellProps, DateGridCellState, DateGridContextValue, DateGridGridBodyDataAttributes, DateGridGridBodyProps, DateGridGridBodyState, DateGridGridContextValue, DateGridGridDataAttributes, DateGridGridHeaderDataAttributes, DateGridGridHeaderProps, DateGridGridHeaderState, DateGridGridProps, DateGridGridState, DateGridHeaderCellDataAttributes, DateGridHeaderCellProps, DateGridHeaderCellState, DateGridHeadingCssVariables, DateGridHeadingDataAttributes, DateGridHeadingProps, DateGridHeadingState, DateGridRootDataAttributes, DateGridRootProps, DateGridRootState, DateGridStepDataAttributes, DateGridStepProps, DateGridStepState, DateGridValueChangeDetails, DateGridWeekDataAttributes, DateGridWeekProps, DateGridWeekState, DateGridWeekday, useDateGrid, useDateGridGrid } from './date-grid/index.js';
|
|
4
|
+
export { Agenda, AgendaContextValue, AgendaDayDataAttributes, AgendaDayDataAttributes as AgendaDayHeaderDataAttributes, AgendaDayHeaderProps, AgendaDayProps, AgendaDayState, AgendaEventDataAttributes, AgendaEventItem, AgendaEventProps, AgendaEventState, AgendaLoadMoreProps, AgendaRootActions, AgendaRootDataAttributes, AgendaRootProps, AgendaRootState, AgendaValueChangeDetails, AgendaVirtualizedOptions, useAgenda } from './agenda/index.js';
|
|
5
|
+
import { PlannedEvent, DateString, EventChange, CalendarDay, PlacedEvent, CalendarView } from 'calendar-components-core';
|
|
6
|
+
export { CalendarDay, CalendarEvent, CalendarLabels, CalendarView, ChangeDetails, DateString, EventChange, EventTime, HourRange, PlacedEvent, PlannedEvent, TimeZoneOptions, addDays, addMonths, applyEventChange, datesIn, daysFrom, eventSpan, eventTimes, formatDay, formatTime, groupByDay, nowOf, startOfWeek, stepDate, toLocalDate } from 'calendar-components-core';
|
|
7
|
+
import 'react';
|
|
8
|
+
import 'react-stately/useCalendarState';
|
|
9
|
+
|
|
10
|
+
/** Some days in a row: the first and the last, both included. */
|
|
11
|
+
interface DateRange {
|
|
12
|
+
start: DateString;
|
|
13
|
+
end: DateString;
|
|
14
|
+
}
|
|
15
|
+
interface CalendarEventsOptions<E extends PlannedEvent> {
|
|
16
|
+
/** Events you hold yourself. Give these or `loadEvents`. */
|
|
17
|
+
events?: readonly E[];
|
|
18
|
+
/**
|
|
19
|
+
* How to get the events of some days from where they are kept. It is called whenever the days shown
|
|
20
|
+
* change, for those days and a step either side of them, so that stepping on or back has its events
|
|
21
|
+
* already. `signal` aborts when the answer is no longer wanted: pass it to `fetch`.
|
|
22
|
+
*/
|
|
23
|
+
loadEvents?: (range: DateRange, options: {
|
|
24
|
+
signal: AbortSignal;
|
|
25
|
+
}) => Promise<readonly E[]>;
|
|
26
|
+
/**
|
|
27
|
+
* An event was dragged, resized or moved by the keyboard: save it. It is drawn where it was put at once.
|
|
28
|
+
* If you return a promise, the event goes back where it was when the promise rejects.
|
|
29
|
+
*/
|
|
30
|
+
onEventChange?: (change: EventChange, times: {
|
|
31
|
+
start: Date;
|
|
32
|
+
end: Date;
|
|
33
|
+
}) => void | Promise<unknown>;
|
|
34
|
+
/** The IANA time zone events are read in. @default this device's */
|
|
35
|
+
timeZone?: string;
|
|
36
|
+
}
|
|
37
|
+
interface CalendarEventsState<E> {
|
|
38
|
+
/** The events to draw: what was given or loaded, with any change not yet saved where it was put. */
|
|
39
|
+
events: readonly E[];
|
|
40
|
+
/** Whether the days shown are being loaded and nothing of them is drawn yet. */
|
|
41
|
+
isLoading: boolean;
|
|
42
|
+
/** What the last load or save failed with, until one succeeds. */
|
|
43
|
+
error: unknown;
|
|
44
|
+
/** What a grid's `onEventChange` takes. */
|
|
45
|
+
changeEvent: (change: EventChange) => void;
|
|
46
|
+
/** Asks for the days shown again, as after something else changed them. */
|
|
47
|
+
reload: () => void;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A calendar's events, wherever they are kept. With `loadEvents` they are React Stately's `useAsyncList`,
|
|
51
|
+
* filtered by the days to load: a new filter aborts the load before it and keeps what is drawn until its
|
|
52
|
+
* own answer comes, and only the latest answer is taken. `around` is the days to load: the days shown and
|
|
53
|
+
* a step either side, so a step on or back is drawn from what is held while its own days load.
|
|
54
|
+
*
|
|
55
|
+
* Over that, a moved event is drawn where it was put while it is saved, whatever a load answers meanwhile,
|
|
56
|
+
* and goes back if saving fails.
|
|
57
|
+
*/
|
|
58
|
+
declare function useCalendarEvents<E extends PlannedEvent>(range: DateRange, around: DateRange, { events: given, loadEvents, onEventChange, timeZone }: CalendarEventsOptions<E>): CalendarEventsState<E>;
|
|
59
|
+
|
|
60
|
+
interface CalendarEventListOptions<E extends PlannedEvent> extends Pick<CalendarEventsOptions<E>, "events" | "loadEvents" | "timeZone"> {
|
|
61
|
+
/** The day the list starts on. */
|
|
62
|
+
from: DateString;
|
|
63
|
+
/** With `loadEvents`, the months in a row with nothing in them after which the list ends. @default 12 */
|
|
64
|
+
emptyMonths?: number;
|
|
65
|
+
}
|
|
66
|
+
interface CalendarEventListState<E extends PlannedEvent> {
|
|
67
|
+
/** The days that have events, from `from` on: what `Agenda.Root` takes. */
|
|
68
|
+
days: CalendarDay<PlacedEvent<E>, E>[];
|
|
69
|
+
/** Whether the first days are on their way. */
|
|
70
|
+
isLoading: boolean;
|
|
71
|
+
/** Whether more days are: what `Agenda.LoadMore` takes as `loading`. */
|
|
72
|
+
isLoadingMore: boolean;
|
|
73
|
+
/** Asks for the month after the last: what `Agenda.LoadMore` takes as `onLoadMore`. It does nothing once the list has ended. */
|
|
74
|
+
loadMore: () => void;
|
|
75
|
+
error: unknown;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* A list of events that goes on, a month at a time: React Stately's `useAsyncList`, whose cursor is the
|
|
79
|
+
* day the next month starts and whose filter is the day the list starts, so a new start begins it again.
|
|
80
|
+
* Events you hold yourself are all listed at once.
|
|
81
|
+
*/
|
|
82
|
+
declare function useCalendarEventList<E extends PlannedEvent>({ from, events: given, loadEvents, timeZone, emptyMonths }: CalendarEventListOptions<E>): CalendarEventListState<E>;
|
|
83
|
+
|
|
84
|
+
interface UseCalendarViewOptions {
|
|
85
|
+
/** What is shown: a day, a week or a month. Use with `onViewChange` to control it. */
|
|
86
|
+
view?: CalendarView;
|
|
87
|
+
/** @default "week" */
|
|
88
|
+
defaultView?: CalendarView;
|
|
89
|
+
onViewChange?: (view: CalendarView) => void;
|
|
90
|
+
/** The day the view is round, as "YYYY-MM-DD". Use with `onDateChange` to control it. */
|
|
91
|
+
date?: DateString;
|
|
92
|
+
/** The day shown at first. Left out, it is today. */
|
|
93
|
+
defaultDate?: DateString;
|
|
94
|
+
onDateChange?: (date: DateString) => void;
|
|
95
|
+
/** A BCP 47 tag. Left out, it is the nearest React Aria `I18nProvider`'s, or the browser's. */
|
|
96
|
+
locale?: string;
|
|
97
|
+
/** The IANA time zone "today" is told in. @default this device's */
|
|
98
|
+
timeZone?: string;
|
|
99
|
+
}
|
|
100
|
+
interface CalendarViewState {
|
|
101
|
+
view: CalendarView;
|
|
102
|
+
setView: (view: CalendarView) => void;
|
|
103
|
+
date: DateString;
|
|
104
|
+
setDate: (date: DateString) => void;
|
|
105
|
+
/** The locale in use: yours, or the nearest React Aria `I18nProvider`'s. For the package's formatters (`formatTime`). */
|
|
106
|
+
locale: string;
|
|
107
|
+
/** The days the view draws: the day, its week, or its month with its first and last weeks whole. */
|
|
108
|
+
dates: DateString[];
|
|
109
|
+
/** The first and last of those days: what to ask a server for. It is the same object until the days change, so it can key a query or an effect. */
|
|
110
|
+
range: {
|
|
111
|
+
start: DateString;
|
|
112
|
+
end: DateString;
|
|
113
|
+
};
|
|
114
|
+
/** What is shown, in words: "Monday, November 23, 2026" for a day, "November 2026" for a week or a month. */
|
|
115
|
+
title: string;
|
|
116
|
+
/** A day, a week or a month on. */
|
|
117
|
+
next: () => void;
|
|
118
|
+
previous: () => void;
|
|
119
|
+
today: () => void;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* What a calendar's toolbar and its views share: which view is shown, the day it is round, the days to
|
|
123
|
+
* draw, what to call them, and stepping on, back and to today. It holds no events: load yours for `range`,
|
|
124
|
+
* and give them and `dates` to `groupByDay` for the days a grid takes.
|
|
125
|
+
*/
|
|
126
|
+
declare function useCalendarView({ view: viewProp, defaultView, onViewChange, date: dateProp, defaultDate, onDateChange, locale: localeProp, timeZone }?: UseCalendarViewOptions): CalendarViewState;
|
|
127
|
+
|
|
128
|
+
interface UseEventCalendarOptions<E extends PlannedEvent> extends UseCalendarViewOptions, CalendarEventsOptions<E> {
|
|
129
|
+
}
|
|
130
|
+
interface EventCalendarState<E extends PlannedEvent> extends CalendarViewState, CalendarEventsState<E> {
|
|
131
|
+
/** The days shown with their events: what `TimeGrid.Root`, `Agenda.Root` and a month take. */
|
|
132
|
+
days: CalendarDay<PlacedEvent<E>, E>[];
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* A whole calendar's state from one call: what is shown and stepping through it (`useCalendarView`), the
|
|
136
|
+
* events of those days from an array or from a server (`useCalendarEvents`), and the two as the days a grid
|
|
137
|
+
* draws.
|
|
138
|
+
*
|
|
139
|
+
* ```tsx
|
|
140
|
+
* const calendar = useEventCalendar({
|
|
141
|
+
* loadEvents: (range, { signal }) => fetch(`/events?from=${range.start}&to=${range.end}`, { signal }).then((r) => r.json()),
|
|
142
|
+
* onEventChange: (change, times) => fetch(`/events/${change.id}`, { method: "PATCH", body: JSON.stringify(times) }),
|
|
143
|
+
* });
|
|
144
|
+
* <TimeGrid.Root days={calendar.days} onEventChange={calendar.changeEvent}>
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
147
|
+
declare function useEventCalendar<E extends PlannedEvent>(options?: UseEventCalendarOptions<E>): EventCalendarState<E>;
|
|
148
|
+
|
|
149
|
+
export { type CalendarEventListOptions, type CalendarEventListState, type CalendarEventsOptions, type CalendarEventsState, type CalendarViewState, type DateRange, type EventCalendarState, type UseCalendarViewOptions, type UseEventCalendarOptions, useCalendarEventList, useCalendarEvents, useCalendarView, useEventCalendar };
|