calendar-components 0.0.0-stage → 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 +97 -4
- 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,493 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
DATE_GRID_SLOTS,
|
|
4
|
+
__export,
|
|
5
|
+
disabled,
|
|
6
|
+
focusVisible,
|
|
7
|
+
hovered,
|
|
8
|
+
mergePartProps,
|
|
9
|
+
pressed,
|
|
10
|
+
renderElement,
|
|
11
|
+
resolve,
|
|
12
|
+
useChangeState,
|
|
13
|
+
useLatest,
|
|
14
|
+
useToday
|
|
15
|
+
} from "./chunk-E6WBQCX3.js";
|
|
16
|
+
|
|
17
|
+
// src/date-grid/index.parts.ts
|
|
18
|
+
var index_parts_exports = {};
|
|
19
|
+
__export(index_parts_exports, {
|
|
20
|
+
Cell: () => DateGridCell,
|
|
21
|
+
Grid: () => DateGridGrid,
|
|
22
|
+
GridBody: () => DateGridGridBody,
|
|
23
|
+
GridHeader: () => DateGridGridHeader,
|
|
24
|
+
HeaderCell: () => DateGridHeaderCell,
|
|
25
|
+
Heading: () => DateGridHeading,
|
|
26
|
+
Next: () => DateGridNext,
|
|
27
|
+
Previous: () => DateGridPrevious,
|
|
28
|
+
Root: () => DateGridRoot,
|
|
29
|
+
Week: () => DateGridWeek
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
// src/date-grid/root/DateGridRoot.tsx
|
|
33
|
+
import { createChangeDetails, getLocalTimeZone, nowOf } from "calendar-components-core";
|
|
34
|
+
import { createCalendar, parseDate } from "@internationalized/date";
|
|
35
|
+
import * as React2 from "react";
|
|
36
|
+
import { I18nProvider, useLocale } from "react-aria/I18nProvider";
|
|
37
|
+
import { mergeProps } from "react-aria/mergeProps";
|
|
38
|
+
import { useCalendar } from "react-aria/useCalendar";
|
|
39
|
+
import { useCalendarState } from "react-stately/useCalendarState";
|
|
40
|
+
|
|
41
|
+
// src/date-grid/dateString.ts
|
|
42
|
+
import { GregorianCalendar, toCalendar } from "@internationalized/date";
|
|
43
|
+
var GREGORIAN = new GregorianCalendar();
|
|
44
|
+
var dateString = (date2) => toCalendar(date2, GREGORIAN).toString().slice(0, 10);
|
|
45
|
+
|
|
46
|
+
// src/date-grid/root/DateGridRootContext.ts
|
|
47
|
+
import * as React from "react";
|
|
48
|
+
var DateGridContext = React.createContext(null);
|
|
49
|
+
function useDateGridContext(part = "useDateGrid") {
|
|
50
|
+
const context = React.useContext(DateGridContext);
|
|
51
|
+
if (!context) throw new Error(`${part.startsWith("use") ? part : `DateGrid.${part}`} must be inside DateGrid.Root.`);
|
|
52
|
+
return context;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// src/date-grid/root/DateGridRoot.tsx
|
|
56
|
+
import { jsx } from "react/jsx-runtime";
|
|
57
|
+
var day = (value) => value == null ? value : parseDate(value);
|
|
58
|
+
var DateGridRoot = React2.forwardRef(function DateGridRoot2(props, ref) {
|
|
59
|
+
const ambient = useLocale();
|
|
60
|
+
return /* @__PURE__ */ jsx(I18nProvider, { locale: props.locale ?? ambient.locale, children: /* @__PURE__ */ jsx(DateGridRootInner, { ...props, ref }) });
|
|
61
|
+
});
|
|
62
|
+
var MONTH = { months: 1 };
|
|
63
|
+
var DateGridRootInner = React2.forwardRef(function DateGridRootInner2({
|
|
64
|
+
value,
|
|
65
|
+
defaultValue,
|
|
66
|
+
onValueChange,
|
|
67
|
+
defaultFocusedValue,
|
|
68
|
+
focusedValue,
|
|
69
|
+
onFocusedValueChange,
|
|
70
|
+
visibleDuration = MONTH,
|
|
71
|
+
minValue,
|
|
72
|
+
maxValue,
|
|
73
|
+
isDateUnavailable,
|
|
74
|
+
disabled: disabled5 = false,
|
|
75
|
+
readOnly: readOnly2 = false,
|
|
76
|
+
locale,
|
|
77
|
+
timeZone,
|
|
78
|
+
className,
|
|
79
|
+
style,
|
|
80
|
+
render,
|
|
81
|
+
children,
|
|
82
|
+
...props
|
|
83
|
+
}, ref) {
|
|
84
|
+
const { locale: tag, direction } = useLocale();
|
|
85
|
+
const zone = React2.useMemo(() => timeZone ?? getLocalTimeZone(), [timeZone]);
|
|
86
|
+
const latest = useLatest({ onFocusedValueChange, isDateUnavailable });
|
|
87
|
+
const [selected2, setSelected] = useChangeState(value, defaultValue ?? null, onValueChange);
|
|
88
|
+
const [opensOn] = React2.useState(() => defaultFocusedValue ?? selected2 ?? nowOf(zone).date);
|
|
89
|
+
const options = {
|
|
90
|
+
value: day(selected2),
|
|
91
|
+
onChange: (next) => void (next && setSelected(dateString(next), createChangeDetails("cell-press"))),
|
|
92
|
+
defaultFocusedValue: day(opensOn) ?? void 0,
|
|
93
|
+
focusedValue: day(focusedValue) ?? void 0,
|
|
94
|
+
onFocusChange: (next) => latest.current.onFocusedValueChange?.(dateString(next)),
|
|
95
|
+
minValue: day(minValue) ?? void 0,
|
|
96
|
+
maxValue: day(maxValue) ?? void 0,
|
|
97
|
+
isDateUnavailable: isDateUnavailable ? (date2) => latest.current.isDateUnavailable?.(dateString(date2)) ?? false : void 0,
|
|
98
|
+
isDisabled: disabled5,
|
|
99
|
+
isReadOnly: readOnly2,
|
|
100
|
+
id: props.id,
|
|
101
|
+
"aria-label": props["aria-label"],
|
|
102
|
+
"aria-labelledby": props["aria-labelledby"],
|
|
103
|
+
"aria-describedby": props["aria-describedby"]
|
|
104
|
+
};
|
|
105
|
+
const state = useCalendarState({ ...options, locale: tag, createCalendar, visibleDuration });
|
|
106
|
+
const { calendarProps, prevButtonProps, nextButtonProps, title } = useCalendar(options, state);
|
|
107
|
+
const context = React2.useMemo(
|
|
108
|
+
() => ({ state, locale: tag, month: "months" in visibleDuration, weeks: "weeks" in visibleDuration ? visibleDuration.weeks : null, timeZone: zone, title, previousButtonProps: prevButtonProps, nextButtonProps }),
|
|
109
|
+
[state, tag, visibleDuration, zone, title, prevButtonProps, nextButtonProps]
|
|
110
|
+
);
|
|
111
|
+
return /* @__PURE__ */ jsx(DateGridContext.Provider, { value: context, children: renderElement("div", { dir: direction, ...mergeProps(props, calendarProps), ref, "data-slot": DATE_GRID_SLOTS.root, className, style, render, children }, { disabled: disabled5, readOnly: readOnly2 }, ["disabled", "readOnly"]) });
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
// src/date-grid/heading/DateGridHeading.tsx
|
|
115
|
+
import { getDayOfWeek } from "@internationalized/date";
|
|
116
|
+
import * as React3 from "react";
|
|
117
|
+
import { useDateFormatter } from "react-aria/useDateFormatter";
|
|
118
|
+
var DateGridHeading = React3.forwardRef(function DateGridHeading2({ className, style, render, children, ...props }, ref) {
|
|
119
|
+
const { title, state, locale, month } = useDateGridContext("Heading");
|
|
120
|
+
const start = state.visibleRange.start;
|
|
121
|
+
const long = useDateFormatter({ month: "long", calendar: start.calendar.identifier, timeZone: state.timeZone });
|
|
122
|
+
const short = useDateFormatter({ month: "short", calendar: start.calendar.identifier, timeZone: state.timeZone });
|
|
123
|
+
const heading = React3.useMemo(() => {
|
|
124
|
+
const at = start.toDate(state.timeZone);
|
|
125
|
+
return { title, monthLabel: long.format(at), shortMonthLabel: short.format(at), startColumn: month ? getDayOfWeek(start, locale) : 0 };
|
|
126
|
+
}, [title, start, state.timeZone, long, short, month, locale]);
|
|
127
|
+
return renderElement(
|
|
128
|
+
"h2",
|
|
129
|
+
{ ...props, ref, "data-slot": DATE_GRID_SLOTS.heading, className, style: (s) => ({ "--date-grid-start-column": s.startColumn, ...resolve(style, s) }), render, children: children ?? title },
|
|
130
|
+
heading,
|
|
131
|
+
["startColumn"]
|
|
132
|
+
);
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
// src/date-grid/step/DateGridStep.tsx
|
|
136
|
+
import * as React4 from "react";
|
|
137
|
+
import { mergeRefs } from "react-aria/mergeRefs";
|
|
138
|
+
import { useButton } from "react-aria/useButton";
|
|
139
|
+
import { useFocusRing } from "react-aria/useFocusRing";
|
|
140
|
+
import { useHover } from "react-aria/useHover";
|
|
141
|
+
function step(which) {
|
|
142
|
+
const part = which === "previous" ? "Previous" : "Next";
|
|
143
|
+
return React4.forwardRef(function DateGridStep({ className, style, render, children, ...props }, forwardedRef) {
|
|
144
|
+
const context = useDateGridContext(part);
|
|
145
|
+
const ref = React4.useRef(null);
|
|
146
|
+
const refs = React4.useMemo(() => mergeRefs(ref, forwardedRef), [forwardedRef]);
|
|
147
|
+
const { buttonProps, isPressed } = useButton(which === "previous" ? context.previousButtonProps : context.nextButtonProps, ref);
|
|
148
|
+
const { hoverProps, isHovered } = useHover({ isDisabled: Boolean(buttonProps.disabled) });
|
|
149
|
+
const { focusProps, isFocused, isFocusVisible } = useFocusRing();
|
|
150
|
+
const state = { hovered: isHovered, focused: isFocused, focusVisible: isFocusVisible, pressed: isPressed, disabled: Boolean(buttonProps.disabled) };
|
|
151
|
+
return renderElement(
|
|
152
|
+
"button",
|
|
153
|
+
// React Aria names it "Previous" or "Next" in the locale's words; a name of yours ("Previous week") is the one it has.
|
|
154
|
+
{
|
|
155
|
+
...mergePartProps(props, buttonProps, hoverProps, focusProps),
|
|
156
|
+
...props["aria-label"] ? { "aria-label": props["aria-label"] } : null,
|
|
157
|
+
ref: refs,
|
|
158
|
+
"data-slot": DATE_GRID_SLOTS[which],
|
|
159
|
+
className,
|
|
160
|
+
style,
|
|
161
|
+
render,
|
|
162
|
+
children
|
|
163
|
+
},
|
|
164
|
+
state,
|
|
165
|
+
["hovered", "pressed", "focusVisible", "disabled"]
|
|
166
|
+
);
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
var DateGridPrevious = step("previous");
|
|
170
|
+
DateGridPrevious.displayName = "DateGridPrevious";
|
|
171
|
+
var DateGridNext = step("next");
|
|
172
|
+
DateGridNext.displayName = "DateGridNext";
|
|
173
|
+
|
|
174
|
+
// src/date-grid/grid/DateGridGrid.tsx
|
|
175
|
+
import * as React11 from "react";
|
|
176
|
+
import { useCalendarGrid } from "react-aria/useCalendar";
|
|
177
|
+
|
|
178
|
+
// src/date-grid/cell/DateGridCell.tsx
|
|
179
|
+
import { localeInfo, weekdayOf } from "calendar-components-core";
|
|
180
|
+
import { isSameMonth, parseDate as parseDate2, toCalendar as toCalendar2 } from "@internationalized/date";
|
|
181
|
+
import * as React5 from "react";
|
|
182
|
+
import { mergeRefs as mergeRefs2 } from "react-aria/mergeRefs";
|
|
183
|
+
import { useCalendarCell } from "react-aria/useCalendar";
|
|
184
|
+
import { useFocusRing as useFocusRing2 } from "react-aria/useFocusRing";
|
|
185
|
+
import { useHover as useHover2 } from "react-aria/useHover";
|
|
186
|
+
import { Fragment, jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
187
|
+
var WRAPPER = ["date", "selected", "today", "weekend", "outsideMonth", "unavailable"];
|
|
188
|
+
var OWN = [...WRAPPER, "hovered", "pressed", "focusVisible", "disabled"];
|
|
189
|
+
var DateGridCell = React5.forwardRef(function DateGridCell2({ date: date2, details, detailsProps, wrapperProps, className, style, render, children, ...props }, forwardedRef) {
|
|
190
|
+
const { state, locale, timeZone, month } = useDateGridContext("Cell");
|
|
191
|
+
const today2 = useToday(timeZone);
|
|
192
|
+
const ref = React5.useRef(null);
|
|
193
|
+
const refs = React5.useMemo(() => mergeRefs2(ref, forwardedRef), [forwardedRef]);
|
|
194
|
+
const calendar = state.visibleRange.start.calendar;
|
|
195
|
+
const calendarDate = React5.useMemo(() => toCalendar2(parseDate2(date2), calendar), [date2, calendar]);
|
|
196
|
+
const outsideMonth2 = month && !isSameMonth(calendarDate, state.visibleRange.start);
|
|
197
|
+
const { cellProps, buttonProps, isSelected, isDisabled, isUnavailable, isPressed, isFocused, formattedDate } = useCalendarCell({ date: calendarDate, isOutsideMonth: outsideMonth2 }, state, ref);
|
|
198
|
+
const { hoverProps, isHovered } = useHover2({ isDisabled });
|
|
199
|
+
const { focusProps, isFocusVisible } = useFocusRing2();
|
|
200
|
+
const cell = {
|
|
201
|
+
hovered: isHovered,
|
|
202
|
+
focused: isFocused,
|
|
203
|
+
focusVisible: isFocused && isFocusVisible,
|
|
204
|
+
pressed: isPressed,
|
|
205
|
+
disabled: isDisabled,
|
|
206
|
+
date: date2,
|
|
207
|
+
label: formattedDate,
|
|
208
|
+
selected: isSelected,
|
|
209
|
+
today: date2 === today2,
|
|
210
|
+
weekend: localeInfo(locale).weekend.includes(weekdayOf(date2)),
|
|
211
|
+
outsideMonth: outsideMonth2,
|
|
212
|
+
unavailable: isUnavailable
|
|
213
|
+
};
|
|
214
|
+
const held = resolve(details, cell);
|
|
215
|
+
const { className: wrapClassName, style: wrapStyle, render: wrapRender, ...wrap } = wrapperProps ?? {};
|
|
216
|
+
return renderElement(
|
|
217
|
+
"td",
|
|
218
|
+
{
|
|
219
|
+
...wrap,
|
|
220
|
+
...cellProps,
|
|
221
|
+
"data-slot": DATE_GRID_SLOTS.cellWrapper,
|
|
222
|
+
className: wrapClassName,
|
|
223
|
+
style: wrapStyle,
|
|
224
|
+
render: wrapRender,
|
|
225
|
+
children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
226
|
+
renderElement(
|
|
227
|
+
"div",
|
|
228
|
+
{ ...mergePartProps(props, buttonProps, hoverProps, focusProps), ref: refs, "data-slot": DATE_GRID_SLOTS.cell, className, style, render, children: children ?? formattedDate },
|
|
229
|
+
cell,
|
|
230
|
+
OWN
|
|
231
|
+
),
|
|
232
|
+
held != null && held !== false && /* @__PURE__ */ jsx2(DateGridCellDetails, { ...detailsProps, state: cell, children: held })
|
|
233
|
+
] })
|
|
234
|
+
},
|
|
235
|
+
cell,
|
|
236
|
+
WRAPPER
|
|
237
|
+
);
|
|
238
|
+
});
|
|
239
|
+
var stop = (event) => event.stopPropagation();
|
|
240
|
+
var DateGridCellDetails = React5.forwardRef(function DateGridCellDetails2({ state, className, style, render, children, ...props }, ref) {
|
|
241
|
+
return renderElement(
|
|
242
|
+
"div",
|
|
243
|
+
{ ...mergePartProps(props, { onKeyDown: stop, onKeyUp: stop, onFocus: stop, onBlur: stop }), ref, "data-slot": DATE_GRID_SLOTS.cellDetails, className, style, render, children },
|
|
244
|
+
state,
|
|
245
|
+
WRAPPER
|
|
246
|
+
);
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
// src/date-grid/grid-body/DateGridGridBody.tsx
|
|
250
|
+
import * as React8 from "react";
|
|
251
|
+
|
|
252
|
+
// src/date-grid/grid/DateGridGridContext.ts
|
|
253
|
+
import * as React6 from "react";
|
|
254
|
+
var DateGridGridContext = React6.createContext(null);
|
|
255
|
+
function useDateGridGridContext(part = "useDateGridGrid") {
|
|
256
|
+
const grid = React6.useContext(DateGridGridContext);
|
|
257
|
+
if (!grid) throw new Error(`${part.startsWith("use") ? part : `DateGrid.${part}`} must be inside DateGrid.Grid.`);
|
|
258
|
+
return grid;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
// src/date-grid/week/DateGridWeek.tsx
|
|
262
|
+
import * as React7 from "react";
|
|
263
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
264
|
+
var DateGridWeek = React7.forwardRef(function DateGridWeek2({ week: week2, children, className, style, render, ...props }, ref) {
|
|
265
|
+
const { state } = useDateGridContext("Week");
|
|
266
|
+
const days = state.getDatesInWeek(week2);
|
|
267
|
+
const dates = days.map((date2) => date2 ? dateString(date2) : null);
|
|
268
|
+
return renderElement(
|
|
269
|
+
"tr",
|
|
270
|
+
{
|
|
271
|
+
...props,
|
|
272
|
+
ref,
|
|
273
|
+
"data-slot": DATE_GRID_SLOTS.week,
|
|
274
|
+
className,
|
|
275
|
+
style,
|
|
276
|
+
render,
|
|
277
|
+
children: dates.map((date2, i) => date2 ? /* @__PURE__ */ jsx3(React7.Fragment, { children: children(date2) }, date2) : /* @__PURE__ */ jsx3("td", { "data-slot": DATE_GRID_SLOTS.cellWrapper, "data-empty": "" }, i))
|
|
278
|
+
},
|
|
279
|
+
{ week: week2, dates },
|
|
280
|
+
["week"]
|
|
281
|
+
);
|
|
282
|
+
});
|
|
283
|
+
|
|
284
|
+
// src/date-grid/grid-body/DateGridGridBody.tsx
|
|
285
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
286
|
+
var DateGridGridBody = React8.forwardRef(function DateGridGridBody2({ children, renderWeek, className, style, render, ...props }, ref) {
|
|
287
|
+
const { weeks: weeks2 } = useDateGridGridContext("GridBody");
|
|
288
|
+
return renderElement(
|
|
289
|
+
"tbody",
|
|
290
|
+
{
|
|
291
|
+
...props,
|
|
292
|
+
ref,
|
|
293
|
+
"data-slot": DATE_GRID_SLOTS.gridBody,
|
|
294
|
+
className,
|
|
295
|
+
style,
|
|
296
|
+
render,
|
|
297
|
+
children: Array.from({ length: weeks2 }, (_, week2) => /* @__PURE__ */ jsx4(React8.Fragment, { children: renderWeek ? renderWeek(week2) : /* @__PURE__ */ jsx4(DateGridWeek, { week: week2, children: children ?? (() => null) }) }, week2))
|
|
298
|
+
},
|
|
299
|
+
{ weeks: weeks2 }
|
|
300
|
+
);
|
|
301
|
+
});
|
|
302
|
+
|
|
303
|
+
// src/date-grid/grid-header/DateGridGridHeader.tsx
|
|
304
|
+
import { localeInfo as localeInfo2 } from "calendar-components-core";
|
|
305
|
+
import * as React10 from "react";
|
|
306
|
+
|
|
307
|
+
// src/date-grid/header-cell/DateGridHeaderCell.tsx
|
|
308
|
+
import * as React9 from "react";
|
|
309
|
+
var DateGridHeaderCell = React9.forwardRef(function DateGridHeaderCell2({ weekday, className, style, render, children, ...props }, ref) {
|
|
310
|
+
return renderElement("th", { ...props, ref, "data-slot": DATE_GRID_SLOTS.headerCell, className, style, render, children: children ?? weekday.label }, weekday, ["weekend"]);
|
|
311
|
+
});
|
|
312
|
+
|
|
313
|
+
// src/date-grid/grid-header/DateGridGridHeader.tsx
|
|
314
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
315
|
+
var DateGridGridHeader = React10.forwardRef(function DateGridGridHeader2({ children, className, style, render, ...props }, ref) {
|
|
316
|
+
const { locale } = useDateGridContext("GridHeader");
|
|
317
|
+
const { headerProps, weekdays: labels } = useDateGridGridContext("GridHeader");
|
|
318
|
+
const weekdays = React10.useMemo(() => {
|
|
319
|
+
const info = localeInfo2(locale);
|
|
320
|
+
return labels.map((label, index) => ({ label, index, weekend: info.weekend.includes((info.firstDayOfWeek + index) % 7) }));
|
|
321
|
+
}, [labels, locale]);
|
|
322
|
+
return renderElement(
|
|
323
|
+
"thead",
|
|
324
|
+
{
|
|
325
|
+
...mergePartProps(props, headerProps),
|
|
326
|
+
ref,
|
|
327
|
+
"data-slot": DATE_GRID_SLOTS.gridHeader,
|
|
328
|
+
className,
|
|
329
|
+
style,
|
|
330
|
+
render,
|
|
331
|
+
children: /* @__PURE__ */ jsx5("tr", { "data-slot": DATE_GRID_SLOTS.gridHeaderRow, children: weekdays.map((weekday) => /* @__PURE__ */ jsx5(React10.Fragment, { children: children ? children(weekday) : /* @__PURE__ */ jsx5(DateGridHeaderCell, { weekday }) }, weekday.index)) })
|
|
332
|
+
},
|
|
333
|
+
{ weekdays }
|
|
334
|
+
);
|
|
335
|
+
});
|
|
336
|
+
|
|
337
|
+
// src/date-grid/grid/DateGridGrid.tsx
|
|
338
|
+
import { Fragment as Fragment5, jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
339
|
+
var DateGridGrid = React11.forwardRef(function DateGridGrid2({ children, weekdayStyle = "narrow", className, style, render, ...props }, ref) {
|
|
340
|
+
const { state, weeks: strip } = useDateGridContext("Grid");
|
|
341
|
+
const { gridProps, headerProps, weekDays, weeksInMonth } = useCalendarGrid({ weekdayStyle }, state);
|
|
342
|
+
const weeks2 = strip ?? weeksInMonth;
|
|
343
|
+
const grid = React11.useMemo(() => ({ headerProps, weekdays: weekDays, weeks: weeks2 }), [headerProps, weekDays, weeks2]);
|
|
344
|
+
return /* @__PURE__ */ jsx6(DateGridGridContext.Provider, { value: grid, children: renderElement(
|
|
345
|
+
"table",
|
|
346
|
+
{
|
|
347
|
+
...mergePartProps(props, gridProps),
|
|
348
|
+
ref,
|
|
349
|
+
"data-slot": DATE_GRID_SLOTS.grid,
|
|
350
|
+
className,
|
|
351
|
+
style,
|
|
352
|
+
render,
|
|
353
|
+
children: (
|
|
354
|
+
// With nothing in it, it is a month of plain days; with a function, that draws each day.
|
|
355
|
+
children === void 0 || typeof children === "function" ? /* @__PURE__ */ jsxs2(Fragment5, { children: [
|
|
356
|
+
/* @__PURE__ */ jsx6(DateGridGridHeader, {}),
|
|
357
|
+
/* @__PURE__ */ jsx6(DateGridGridBody, { children: children ?? ((date2) => /* @__PURE__ */ jsx6(DateGridCell, { date: date2 })) })
|
|
358
|
+
] }) : children
|
|
359
|
+
)
|
|
360
|
+
},
|
|
361
|
+
{ weeks: weeks2 },
|
|
362
|
+
["weeks"]
|
|
363
|
+
) });
|
|
364
|
+
});
|
|
365
|
+
|
|
366
|
+
// src/date-grid/grid-header/DateGridGridHeaderDataAttributes.ts
|
|
367
|
+
var DateGridGridHeaderDataAttributes_exports = {};
|
|
368
|
+
__export(DateGridGridHeaderDataAttributes_exports, {
|
|
369
|
+
slot: () => slot
|
|
370
|
+
});
|
|
371
|
+
var slot = "data-slot";
|
|
372
|
+
|
|
373
|
+
// src/date-grid/grid-body/DateGridGridBodyDataAttributes.ts
|
|
374
|
+
var DateGridGridBodyDataAttributes_exports = {};
|
|
375
|
+
__export(DateGridGridBodyDataAttributes_exports, {
|
|
376
|
+
slot: () => slot2
|
|
377
|
+
});
|
|
378
|
+
var slot2 = "data-slot";
|
|
379
|
+
|
|
380
|
+
// src/date-grid/root/DateGridRootDataAttributes.ts
|
|
381
|
+
var DateGridRootDataAttributes_exports = {};
|
|
382
|
+
__export(DateGridRootDataAttributes_exports, {
|
|
383
|
+
disabled: () => disabled2,
|
|
384
|
+
readOnly: () => readOnly,
|
|
385
|
+
slot: () => slot3
|
|
386
|
+
});
|
|
387
|
+
var slot3 = "data-slot";
|
|
388
|
+
var disabled2 = "data-disabled";
|
|
389
|
+
var readOnly = "data-read-only";
|
|
390
|
+
|
|
391
|
+
// src/date-grid/heading/DateGridHeadingDataAttributes.ts
|
|
392
|
+
var DateGridHeadingDataAttributes_exports = {};
|
|
393
|
+
__export(DateGridHeadingDataAttributes_exports, {
|
|
394
|
+
slot: () => slot4,
|
|
395
|
+
startColumn: () => startColumn
|
|
396
|
+
});
|
|
397
|
+
var slot4 = "data-slot";
|
|
398
|
+
var startColumn = "data-start-column";
|
|
399
|
+
|
|
400
|
+
// src/date-grid/heading/DateGridHeadingCssVars.ts
|
|
401
|
+
var DateGridHeadingCssVars_exports = {};
|
|
402
|
+
__export(DateGridHeadingCssVars_exports, {
|
|
403
|
+
startColumn: () => startColumn2
|
|
404
|
+
});
|
|
405
|
+
var startColumn2 = "--date-grid-start-column";
|
|
406
|
+
|
|
407
|
+
// src/date-grid/step/DateGridStepDataAttributes.ts
|
|
408
|
+
var DateGridStepDataAttributes_exports = {};
|
|
409
|
+
__export(DateGridStepDataAttributes_exports, {
|
|
410
|
+
disabled: () => disabled3,
|
|
411
|
+
focusVisible: () => focusVisible2,
|
|
412
|
+
hovered: () => hovered2,
|
|
413
|
+
pressed: () => pressed2,
|
|
414
|
+
slot: () => slot5
|
|
415
|
+
});
|
|
416
|
+
var slot5 = "data-slot";
|
|
417
|
+
var pressed2 = pressed;
|
|
418
|
+
var hovered2 = hovered;
|
|
419
|
+
var focusVisible2 = focusVisible;
|
|
420
|
+
var disabled3 = disabled;
|
|
421
|
+
|
|
422
|
+
// src/date-grid/grid/DateGridGridDataAttributes.ts
|
|
423
|
+
var DateGridGridDataAttributes_exports = {};
|
|
424
|
+
__export(DateGridGridDataAttributes_exports, {
|
|
425
|
+
slot: () => slot6,
|
|
426
|
+
weeks: () => weeks
|
|
427
|
+
});
|
|
428
|
+
var slot6 = "data-slot";
|
|
429
|
+
var weeks = "data-weeks";
|
|
430
|
+
|
|
431
|
+
// src/date-grid/header-cell/DateGridHeaderCellDataAttributes.ts
|
|
432
|
+
var DateGridHeaderCellDataAttributes_exports = {};
|
|
433
|
+
__export(DateGridHeaderCellDataAttributes_exports, {
|
|
434
|
+
slot: () => slot7,
|
|
435
|
+
weekend: () => weekend
|
|
436
|
+
});
|
|
437
|
+
var slot7 = "data-slot";
|
|
438
|
+
var weekend = "data-weekend";
|
|
439
|
+
|
|
440
|
+
// src/date-grid/week/DateGridWeekDataAttributes.ts
|
|
441
|
+
var DateGridWeekDataAttributes_exports = {};
|
|
442
|
+
__export(DateGridWeekDataAttributes_exports, {
|
|
443
|
+
slot: () => slot8,
|
|
444
|
+
week: () => week
|
|
445
|
+
});
|
|
446
|
+
var slot8 = "data-slot";
|
|
447
|
+
var week = "data-week";
|
|
448
|
+
|
|
449
|
+
// src/date-grid/cell/DateGridCellDataAttributes.ts
|
|
450
|
+
var DateGridCellDataAttributes_exports = {};
|
|
451
|
+
__export(DateGridCellDataAttributes_exports, {
|
|
452
|
+
date: () => date,
|
|
453
|
+
disabled: () => disabled4,
|
|
454
|
+
empty: () => empty,
|
|
455
|
+
focusVisible: () => focusVisible3,
|
|
456
|
+
hovered: () => hovered3,
|
|
457
|
+
outsideMonth: () => outsideMonth,
|
|
458
|
+
pressed: () => pressed3,
|
|
459
|
+
selected: () => selected,
|
|
460
|
+
slot: () => slot9,
|
|
461
|
+
today: () => today,
|
|
462
|
+
unavailable: () => unavailable,
|
|
463
|
+
weekend: () => weekend2
|
|
464
|
+
});
|
|
465
|
+
var slot9 = "data-slot";
|
|
466
|
+
var date = "data-date";
|
|
467
|
+
var selected = "data-selected";
|
|
468
|
+
var today = "data-today";
|
|
469
|
+
var weekend2 = "data-weekend";
|
|
470
|
+
var outsideMonth = "data-outside-month";
|
|
471
|
+
var unavailable = "data-unavailable";
|
|
472
|
+
var empty = "data-empty";
|
|
473
|
+
var pressed3 = pressed;
|
|
474
|
+
var hovered3 = hovered;
|
|
475
|
+
var focusVisible3 = focusVisible;
|
|
476
|
+
var disabled4 = disabled;
|
|
477
|
+
|
|
478
|
+
export {
|
|
479
|
+
useDateGridContext,
|
|
480
|
+
useDateGridGridContext,
|
|
481
|
+
index_parts_exports,
|
|
482
|
+
DateGridGridHeaderDataAttributes_exports,
|
|
483
|
+
DateGridGridBodyDataAttributes_exports,
|
|
484
|
+
DateGridRootDataAttributes_exports,
|
|
485
|
+
DateGridHeadingDataAttributes_exports,
|
|
486
|
+
DateGridHeadingCssVars_exports,
|
|
487
|
+
DateGridStepDataAttributes_exports,
|
|
488
|
+
DateGridGridDataAttributes_exports,
|
|
489
|
+
DateGridHeaderCellDataAttributes_exports,
|
|
490
|
+
DateGridWeekDataAttributes_exports,
|
|
491
|
+
DateGridCellDataAttributes_exports
|
|
492
|
+
};
|
|
493
|
+
//# sourceMappingURL=chunk-IZC5ZZ5H.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/date-grid/index.parts.ts","../src/date-grid/root/DateGridRoot.tsx","../src/date-grid/dateString.ts","../src/date-grid/root/DateGridRootContext.ts","../src/date-grid/heading/DateGridHeading.tsx","../src/date-grid/step/DateGridStep.tsx","../src/date-grid/grid/DateGridGrid.tsx","../src/date-grid/cell/DateGridCell.tsx","../src/date-grid/grid-body/DateGridGridBody.tsx","../src/date-grid/grid/DateGridGridContext.ts","../src/date-grid/week/DateGridWeek.tsx","../src/date-grid/grid-header/DateGridGridHeader.tsx","../src/date-grid/header-cell/DateGridHeaderCell.tsx","../src/date-grid/grid-header/DateGridGridHeaderDataAttributes.ts","../src/date-grid/grid-body/DateGridGridBodyDataAttributes.ts","../src/date-grid/root/DateGridRootDataAttributes.ts","../src/date-grid/heading/DateGridHeadingDataAttributes.ts","../src/date-grid/heading/DateGridHeadingCssVars.ts","../src/date-grid/step/DateGridStepDataAttributes.ts","../src/date-grid/grid/DateGridGridDataAttributes.ts","../src/date-grid/header-cell/DateGridHeaderCellDataAttributes.ts","../src/date-grid/week/DateGridWeekDataAttributes.ts","../src/date-grid/cell/DateGridCellDataAttributes.ts"],"sourcesContent":["export { DateGridRoot as Root } from \"./root/DateGridRoot\";\nexport { DateGridHeading as Heading } from \"./heading/DateGridHeading\";\nexport { DateGridNext as Next, DateGridPrevious as Previous } from \"./step/DateGridStep\";\nexport { DateGridGrid as Grid } from \"./grid/DateGridGrid\";\nexport { DateGridGridHeader as GridHeader } from \"./grid-header/DateGridGridHeader\";\nexport { DateGridHeaderCell as HeaderCell } from \"./header-cell/DateGridHeaderCell\";\nexport { DateGridGridBody as GridBody } from \"./grid-body/DateGridGridBody\";\nexport { DateGridWeek as Week } from \"./week/DateGridWeek\";\nexport { DateGridCell as Cell } from \"./cell/DateGridCell\";\n","\"use client\";\n\nimport { createChangeDetails, getLocalTimeZone, nowOf, type ChangeDetails, type DateString } from \"calendar-components-core\";\nimport { createCalendar, parseDate, type CalendarDate, type DateValue } from \"@internationalized/date\";\nimport * as React from \"react\";\nimport { I18nProvider, useLocale } from \"react-aria/I18nProvider\";\nimport { mergeProps } from \"react-aria/mergeProps\";\nimport { useCalendar } from \"react-aria/useCalendar\";\nimport { useCalendarState } from \"react-stately/useCalendarState\";\nimport { renderElement } from \"../../internals/renderElement\";\nimport { DATE_GRID_SLOTS } from \"../../internals/slots\";\nimport type { CalendarComponentsPartElementProps } from \"../../internals/types\";\nimport { useChangeState } from \"../../utils/useChangeState\";\nimport { useLatest } from \"../../utils/useLatest\";\nimport { dateString } from \"../dateString\";\nimport { DateGridContext, type DateGridContextValue } from \"./DateGridRootContext\";\n\nexport type DateGridValueChangeDetails = ChangeDetails<\"cell-press\">;\nexport type DateGridRootState = { disabled: boolean; readOnly: boolean };\n\nexport interface DateGridRootProps extends CalendarComponentsPartElementProps<DateGridRootState, HTMLDivElement, \"defaultValue\"> {\n /** The selected day, as YYYY-MM-DD. Use with `onValueChange` to control it. */\n value?: DateString | null;\n /** The day selected at first, when uncontrolled. */\n defaultValue?: DateString | null;\n /** Called when a day is selected. */\n onValueChange?: (value: DateString, details: DateGridValueChangeDetails) => void;\n /** 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. */\n defaultFocusedValue?: DateString;\n /** The focused day, to control which week or month is shown. Use with `onFocusedValueChange`. */\n focusedValue?: DateString;\n /** Called when focus moves to another day, by the keyboard or by stepping. */\n onFocusedValueChange?: (value: DateString) => void;\n /**\n * How much the grid shows: some weeks for a strip of days, or a month. (Side-by-side months are not drawn yet.)\n * @default { months: 1 }\n */\n visibleDuration?: { weeks: number } | { months: 1 };\n /** The first and last day that can be selected. */\n minValue?: DateString;\n maxValue?: DateString;\n /** Days that cannot be selected, though they are shown. */\n isDateUnavailable?: (date: DateString) => boolean;\n disabled?: boolean;\n readOnly?: boolean;\n /** A BCP 47 tag. Left out, it is the nearest React Aria `I18nProvider`'s, or the browser's. */\n locale?: string;\n /**\n * The IANA time zone \"today\" is told in: which day is marked today, and\n * where the grid opens. (React Aria's spoken \"Today\" on a day follows this\n * device's zone; the two differ only when this is set to another.)\n * @default this device's\n */\n timeZone?: string;\n \"aria-label\"?: string;\n}\n\nconst day = (value: DateString | null | undefined): CalendarDate | null | undefined => (value == null ? value : parseDate(value));\n\n/**\n * A grid of days to choose from: a week's strip or a month, by\n * `visibleDuration`. Its state is React Stately's `useCalendarState` and its\n * keyboard, focus and screen-reader behaviour are React Aria's `useCalendar`,\n * so arrow keys, Page Up and Down, and every calendar system work as theirs\n * do. Days come and go as YYYY-MM-DD. Renders a `<div>`.\n */\nexport const DateGridRoot = React.forwardRef<HTMLDivElement, DateGridRootProps>(function DateGridRoot(props, ref) {\n // React Aria's calendar reads its locale from the nearest provider, so the grid's is provided to it: the one given, or the one already round it.\n const ambient = useLocale();\n return (\n <I18nProvider locale={props.locale ?? ambient.locale}>\n <DateGridRootInner {...props} ref={ref} />\n </I18nProvider>\n );\n});\n\nconst MONTH = { months: 1 } as const;\n\nconst DateGridRootInner = React.forwardRef<HTMLDivElement, DateGridRootProps>(function DateGridRootInner(\n {\n value,\n defaultValue,\n onValueChange,\n defaultFocusedValue,\n focusedValue,\n onFocusedValueChange,\n visibleDuration = MONTH,\n minValue,\n maxValue,\n isDateUnavailable,\n disabled = false,\n readOnly = false,\n locale,\n timeZone,\n className,\n style,\n render,\n children,\n ...props\n },\n ref,\n) {\n const { locale: tag, direction } = useLocale();\n const zone = React.useMemo(() => timeZone ?? getLocalTimeZone(), [timeZone]);\n const latest = useLatest({ onFocusedValueChange, isDateUnavailable });\n // What is selected is held here, so that the owner hears of a change first and can cancel it; React Stately is told what it is.\n const [selected, setSelected] = useChangeState<DateString | null, DateGridValueChangeDetails>(value, defaultValue ?? null, onValueChange as ((value: DateString | null, details: DateGridValueChangeDetails) => void) | undefined);\n // With nothing selected the grid opens on today in its own time zone, not this device's.\n const [opensOn] = React.useState(() => defaultFocusedValue ?? selected ?? nowOf(zone).date);\n const options = {\n value: day(selected),\n onChange: (next: DateValue | null) => void (next && setSelected(dateString(next), createChangeDetails(\"cell-press\"))),\n defaultFocusedValue: day(opensOn) ?? undefined,\n focusedValue: day(focusedValue) ?? undefined,\n onFocusChange: (next: DateValue) => latest.current.onFocusedValueChange?.(dateString(next)),\n minValue: day(minValue) ?? undefined,\n maxValue: day(maxValue) ?? undefined,\n isDateUnavailable: isDateUnavailable ? (date: DateValue) => latest.current.isDateUnavailable?.(dateString(date)) ?? false : undefined,\n isDisabled: disabled,\n isReadOnly: readOnly,\n id: props.id,\n \"aria-label\": props[\"aria-label\"],\n \"aria-labelledby\": props[\"aria-labelledby\"],\n \"aria-describedby\": props[\"aria-describedby\"],\n };\n const state = useCalendarState({ ...options, locale: tag, createCalendar, visibleDuration });\n const { calendarProps, prevButtonProps, nextButtonProps, title } = useCalendar(options, state);\n const context = React.useMemo<DateGridContextValue>(\n () => ({ state, locale: tag, month: \"months\" in visibleDuration, weeks: \"weeks\" in visibleDuration ? visibleDuration.weeks : null, timeZone: zone, title, previousButtonProps: prevButtonProps, nextButtonProps }),\n [state, tag, visibleDuration, zone, title, prevButtonProps, nextButtonProps],\n );\n return (\n <DateGridContext.Provider value={context}>\n {renderElement(\"div\", { dir: direction, ...mergeProps(props, calendarProps), ref, \"data-slot\": DATE_GRID_SLOTS.root, className, style, render, children }, { disabled, readOnly }, [\"disabled\", \"readOnly\"])}\n </DateGridContext.Provider>\n );\n});\n\nexport declare namespace DateGridRoot {\n type Props = DateGridRootProps;\n type State = DateGridRootState;\n type ValueChangeDetails = DateGridValueChangeDetails;\n}\n","import type { DateString } from \"calendar-components-core\";\nimport { GregorianCalendar, toCalendar, type DateValue } from \"@internationalized/date\";\n\nconst GREGORIAN = new GregorianCalendar();\n/** A day of any calendar system as this package names days: its Gregorian date, YYYY-MM-DD. */\nexport const dateString = (date: DateValue): DateString => toCalendar(date, GREGORIAN).toString().slice(0, 10);\n","\"use client\";\n\nimport * as React from \"react\";\nimport type { CalendarState } from \"react-stately/useCalendarState\";\n\nexport interface DateGridContextValue {\n /** React Stately's calendar state: what is shown, focused and selected. */\n state: CalendarState;\n locale: string;\n /** Whether a month is shown (so days of its neighbours are outside it), or a strip of weeks. */\n month: boolean;\n /** How many weeks a strip shows. */\n weeks: number | null;\n timeZone: string;\n /** The heading's words, for the days shown: \"November 2026\". */\n title: string;\n previousButtonProps: object;\n nextButtonProps: object;\n}\n\nexport const DateGridContext = React.createContext<DateGridContextValue | null>(null);\n\nexport function useDateGridContext(part = \"useDateGrid\"): DateGridContextValue {\n const context = React.useContext(DateGridContext);\n if (!context) throw new Error(`${part.startsWith(\"use\") ? part : `DateGrid.${part}`} must be inside DateGrid.Root.`);\n return context;\n}\n","\"use client\";\n\nimport { getDayOfWeek } from \"@internationalized/date\";\nimport * as React from \"react\";\nimport { useDateFormatter } from \"react-aria/useDateFormatter\";\nimport { renderElement, resolve } from \"../../internals/renderElement\";\nimport { DATE_GRID_SLOTS } from \"../../internals/slots\";\nimport type { CalendarComponentsPartElementProps } from \"../../internals/types\";\nimport { useDateGridContext } from \"../root/DateGridRootContext\";\n\nexport type DateGridHeadingState = {\n /** What the grid shows, in the locale's words: \"November 2026\". */\n title: string;\n /** The month the grid opens in: \"November\". */\n monthLabel: string;\n /** The same, short: \"Nov\". */\n shortMonthLabel: string;\n /** 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. */\n startColumn: number;\n};\nexport interface DateGridHeadingProps extends CalendarComponentsPartElementProps<DateGridHeadingState, HTMLHeadingElement> {}\n\n/**\n * What the grid shows, in the locale's words: \"November 2026\". Its state has\n * the month alone and the column the month starts in (also\n * `--date-grid-start-column`), for a label set over the first day. Renders\n * an `<h2>`.\n */\nexport const DateGridHeading = React.forwardRef<HTMLHeadingElement, DateGridHeadingProps>(function DateGridHeading({ className, style, render, children, ...props }, ref) {\n const { title, state, locale, month } = useDateGridContext(\"Heading\");\n const start = state.visibleRange.start;\n const long = useDateFormatter({ month: \"long\", calendar: start.calendar.identifier, timeZone: state.timeZone });\n const short = useDateFormatter({ month: \"short\", calendar: start.calendar.identifier, timeZone: state.timeZone });\n const heading = React.useMemo<DateGridHeadingState>(() => {\n const at = start.toDate(state.timeZone);\n return { title, monthLabel: long.format(at), shortMonthLabel: short.format(at), startColumn: month ? getDayOfWeek(start, locale) : 0 };\n }, [title, start, state.timeZone, long, short, month, locale]);\n return renderElement(\n \"h2\",\n { ...props, ref, \"data-slot\": DATE_GRID_SLOTS.heading, className, style: (s: DateGridHeadingState) => ({ \"--date-grid-start-column\": s.startColumn, ...resolve(style, s) }) as React.CSSProperties, render, children: children ?? title },\n heading,\n [\"startColumn\"],\n );\n});\n\nexport declare namespace DateGridHeading {\n type Props = DateGridHeadingProps;\n type State = DateGridHeadingState;\n}\n","\"use client\";\n\nimport * as React from \"react\";\nimport { mergeRefs } from \"react-aria/mergeRefs\";\nimport { useButton } from \"react-aria/useButton\";\nimport { useFocusRing } from \"react-aria/useFocusRing\";\nimport { useHover } from \"react-aria/useHover\";\nimport { mergePartProps } from \"../../internals/mergePartProps\";\nimport { renderElement } from \"../../internals/renderElement\";\nimport { DATE_GRID_SLOTS } from \"../../internals/slots\";\nimport type { CalendarComponentsInteractionState, CalendarComponentsPartElementProps } from \"../../internals/types\";\nimport { useDateGridContext } from \"../root/DateGridRootContext\";\n\nexport type DateGridStepState = CalendarComponentsInteractionState;\nexport interface DateGridStepProps extends CalendarComponentsPartElementProps<DateGridStepState, HTMLButtonElement> {}\n\nfunction step(which: \"previous\" | \"next\") {\n const part = which === \"previous\" ? \"Previous\" : \"Next\";\n return React.forwardRef<HTMLButtonElement, DateGridStepProps>(function DateGridStep({ className, style, render, children, ...props }, forwardedRef) {\n const context = useDateGridContext(part);\n const ref = React.useRef<HTMLButtonElement>(null);\n const refs = React.useMemo(() => mergeRefs<HTMLButtonElement>(ref, forwardedRef), [forwardedRef]);\n const { buttonProps, isPressed } = useButton(which === \"previous\" ? context.previousButtonProps : context.nextButtonProps, ref);\n const { hoverProps, isHovered } = useHover({ isDisabled: Boolean(buttonProps.disabled) });\n const { focusProps, isFocused, isFocusVisible } = useFocusRing();\n const state: DateGridStepState = { hovered: isHovered, focused: isFocused, focusVisible: isFocusVisible, pressed: isPressed, disabled: Boolean(buttonProps.disabled) };\n return renderElement(\n \"button\",\n // React Aria names it \"Previous\" or \"Next\" in the locale's words; a name of yours (\"Previous week\") is the one it has.\n {\n ...mergePartProps<React.ButtonHTMLAttributes<HTMLButtonElement>>(props, buttonProps, hoverProps, focusProps),\n ...(props[\"aria-label\"] ? { \"aria-label\": props[\"aria-label\"] } : null),\n ref: refs,\n \"data-slot\": DATE_GRID_SLOTS[which],\n className,\n style,\n render,\n children,\n },\n state,\n [\"hovered\", \"pressed\", \"focusVisible\", \"disabled\"],\n );\n });\n}\n\n/** Steps the grid back by what it shows: a week, or a month. Renders a `<button>`. */\nexport const DateGridPrevious = step(\"previous\");\nDateGridPrevious.displayName = \"DateGridPrevious\";\n/** Steps the grid on by what it shows. Renders a `<button>`. */\nexport const DateGridNext = step(\"next\");\nDateGridNext.displayName = \"DateGridNext\";\n\nexport declare namespace DateGridPrevious {\n type Props = DateGridStepProps;\n type State = DateGridStepState;\n}\nexport declare namespace DateGridNext {\n type Props = DateGridStepProps;\n type State = DateGridStepState;\n}\n","\"use client\";\n\nimport type { DateString } from \"calendar-components-core\";\nimport * as React from \"react\";\nimport { useCalendarGrid } from \"react-aria/useCalendar\";\nimport { mergePartProps } from \"../../internals/mergePartProps\";\nimport { renderElement } from \"../../internals/renderElement\";\nimport { DATE_GRID_SLOTS } from \"../../internals/slots\";\nimport type { CalendarComponentsPartProps } from \"../../internals/types\";\nimport { DateGridCell } from \"../cell/DateGridCell\";\nimport { DateGridGridBody } from \"../grid-body/DateGridGridBody\";\nimport { DateGridGridHeader } from \"../grid-header/DateGridGridHeader\";\nimport { useDateGridContext } from \"../root/DateGridRootContext\";\nimport { DateGridGridContext } from \"./DateGridGridContext\";\n\nexport type DateGridGridState = { weeks: number };\n\nexport interface DateGridGridProps extends Omit<React.TableHTMLAttributes<HTMLTableElement>, \"className\" | \"style\" | \"children\">, CalendarComponentsPartProps<DateGridGridState, HTMLTableElement> {\n /**\n * A `DateGrid.GridHeader` and a `DateGrid.GridBody`, or a function of a day\n * that returns a `DateGrid.Cell`, which draws both with their defaults.\n * Left out, it is a month of plain days.\n */\n children?: React.ReactNode | ((date: DateString) => React.ReactNode);\n /**\n * How long the weekday names are.\n * @default \"narrow\"\n */\n weekdayStyle?: \"narrow\" | \"short\" | \"long\";\n}\n\n/**\n * The days shown, a row per week. The week starts where the locale starts\n * it. Renders a `<table>` with React Aria's grid role and keyboard.\n *\n * <DateGrid.Grid>\n * <DateGrid.GridHeader>{(weekday) => <DateGrid.HeaderCell weekday={weekday} />}</DateGrid.GridHeader>\n * <DateGrid.GridBody>{(date) => <DateGrid.Cell date={date} />}</DateGrid.GridBody>\n * </DateGrid.Grid>\n */\nexport const DateGridGrid = React.forwardRef<HTMLTableElement, DateGridGridProps>(function DateGridGrid({ children, weekdayStyle = \"narrow\", className, style, render, ...props }, ref) {\n const { state, weeks: strip } = useDateGridContext(\"Grid\");\n const { gridProps, headerProps, weekDays, weeksInMonth } = useCalendarGrid({ weekdayStyle }, state);\n // A strip of weeks shows that many rows; a month shows as many as it has.\n const weeks = strip ?? weeksInMonth;\n const grid = React.useMemo(() => ({ headerProps, weekdays: weekDays, weeks }), [headerProps, weekDays, weeks]);\n return (\n <DateGridGridContext.Provider value={grid}>\n {renderElement(\n \"table\",\n {\n ...mergePartProps<React.TableHTMLAttributes<HTMLTableElement>>(props, gridProps),\n ref,\n \"data-slot\": DATE_GRID_SLOTS.grid,\n className,\n style,\n render,\n children:\n // With nothing in it, it is a month of plain days; with a function, that draws each day.\n children === undefined || typeof children === \"function\" ? (\n <>\n <DateGridGridHeader />\n <DateGridGridBody>{children ?? ((date) => <DateGridCell date={date} />)}</DateGridGridBody>\n </>\n ) : (\n children\n ),\n },\n { weeks },\n [\"weeks\"],\n )}\n </DateGridGridContext.Provider>\n );\n});\n\nexport declare namespace DateGridGrid {\n type Props = DateGridGridProps;\n type State = DateGridGridState;\n}\n","\"use client\";\n\nimport { localeInfo, weekdayOf, type DateString } from \"calendar-components-core\";\nimport { isSameMonth, parseDate, toCalendar } from \"@internationalized/date\";\nimport * as React from \"react\";\nimport { mergeRefs } from \"react-aria/mergeRefs\";\nimport { useCalendarCell } from \"react-aria/useCalendar\";\nimport { useFocusRing } from \"react-aria/useFocusRing\";\nimport { useHover } from \"react-aria/useHover\";\nimport { mergePartProps } from \"../../internals/mergePartProps\";\nimport { renderElement, resolve } from \"../../internals/renderElement\";\nimport { DATE_GRID_SLOTS } from \"../../internals/slots\";\nimport type { CalendarComponentsInteractionState, CalendarComponentsPartElementProps, CalendarComponentsPartProps } from \"../../internals/types\";\nimport { useToday } from \"../../utils/useNow\";\nimport { useDateGridContext } from \"../root/DateGridRootContext\";\n\nexport type DateGridCellState = CalendarComponentsInteractionState & {\n date: DateString;\n /** The day of the month, in the locale's digits. */\n label: string;\n selected: boolean;\n today: boolean;\n weekend: boolean;\n /** A day of another month than the one shown. */\n outsideMonth: boolean;\n unavailable: boolean;\n};\n\nexport interface DateGridCellProps extends CalendarComponentsPartElementProps<DateGridCellState> {\n /** The day, from `DateGrid.Grid`. */\n date: DateString;\n /**\n * What the day holds, drawn in the cell after the day and outside its\n * button: the day's events, which can then be read, and pressed, on their\n * own (buttons and links there keep their own keys and focus). What only\n * decorates the day, as a dot does, can be its children.\n */\n details?: React.ReactNode | ((state: DateGridCellState) => React.ReactNode);\n /** Props for the element round `details`: its `className`, `style` and `render` are given the day's state. */\n detailsProps?: Omit<DateGridCellDetailsProps, \"children\">;\n /** 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. */\n wrapperProps?: Omit<React.TdHTMLAttributes<HTMLTableCellElement>, \"className\" | \"style\" | \"children\"> & CalendarComponentsPartProps<DateGridCellState, HTMLTableCellElement>;\n}\n\n// What a stylesheet can select a day by, on the day and on the cell it sits in.\nconst WRAPPER = [\"date\", \"selected\", \"today\", \"weekend\", \"outsideMonth\", \"unavailable\"] as const;\nconst OWN = [...WRAPPER, \"hovered\", \"pressed\", \"focusVisible\", \"disabled\"] as const;\n\n/**\n * A day. Pressed, it is selected; the arrow keys move between days and Enter\n * selects, as React Aria's calendar cell does. Its children are given its\n * state, for a dot under the number; the day's events go in `details`.\n * Renders a `<td>` holding a `<div>` with the button role.\n */\nexport const DateGridCell = React.forwardRef<HTMLDivElement, DateGridCellProps>(function DateGridCell({ date, details, detailsProps, wrapperProps, className, style, render, children, ...props }, forwardedRef) {\n const { state, locale, timeZone, month } = useDateGridContext(\"Cell\");\n const today = useToday(timeZone);\n const ref = React.useRef<HTMLDivElement>(null);\n const refs = React.useMemo(() => mergeRefs<HTMLDivElement>(ref, forwardedRef), [forwardedRef]);\n // The day in the calendar system the grid is drawn in: its numbers and its months are that system's.\n const calendar = state.visibleRange.start.calendar;\n const calendarDate = React.useMemo(() => toCalendar(parseDate(date), calendar), [date, calendar]);\n const outsideMonth = month && !isSameMonth(calendarDate, state.visibleRange.start);\n const { cellProps, buttonProps, isSelected, isDisabled, isUnavailable, isPressed, isFocused, formattedDate } = useCalendarCell({ date: calendarDate, isOutsideMonth: outsideMonth }, state, ref);\n const { hoverProps, isHovered } = useHover({ isDisabled });\n const { focusProps, isFocusVisible } = useFocusRing();\n const cell: DateGridCellState = {\n hovered: isHovered,\n focused: isFocused,\n focusVisible: isFocused && isFocusVisible,\n pressed: isPressed,\n disabled: isDisabled,\n date,\n label: formattedDate,\n selected: isSelected,\n today: date === today,\n weekend: localeInfo(locale).weekend.includes(weekdayOf(date)),\n outsideMonth,\n unavailable: isUnavailable,\n };\n const held = resolve(details, cell);\n const { className: wrapClassName, style: wrapStyle, render: wrapRender, ...wrap } = wrapperProps ?? {};\n return renderElement<DateGridCellState, HTMLTableCellElement>(\n \"td\",\n {\n ...wrap,\n ...cellProps,\n \"data-slot\": DATE_GRID_SLOTS.cellWrapper,\n className: wrapClassName,\n style: wrapStyle,\n render: wrapRender,\n children: (\n <>\n {renderElement(\n \"div\",\n { ...mergePartProps<React.HTMLAttributes<HTMLDivElement>>(props, buttonProps, hoverProps, focusProps), ref: refs, \"data-slot\": DATE_GRID_SLOTS.cell, className, style, render, children: children ?? formattedDate },\n cell,\n OWN,\n )}\n {held != null && held !== false && (\n <DateGridCellDetails {...detailsProps} state={cell}>\n {held}\n </DateGridCellDetails>\n )}\n </>\n ),\n },\n cell,\n WRAPPER,\n );\n});\n\nexport interface DateGridCellDetailsProps extends CalendarComponentsPartElementProps<DateGridCellState> {}\n\nconst stop = (event: React.SyntheticEvent) => event.stopPropagation();\n\n/**\n * What a day holds, round `DateGrid.Cell`'s `details`. The grid's own keys\n * (the arrows, Enter, Space, Page Up and Down) and its hold on focus stop\n * here, so a button or a link inside works as it does anywhere. Renders a\n * `<div>`.\n */\nconst DateGridCellDetails = React.forwardRef<HTMLDivElement, DateGridCellDetailsProps & { state: DateGridCellState }>(function DateGridCellDetails({ state, className, style, render, children, ...props }, ref) {\n return renderElement(\n \"div\",\n { ...mergePartProps<React.HTMLAttributes<HTMLDivElement>>(props, { onKeyDown: stop, onKeyUp: stop, onFocus: stop, onBlur: stop }), ref, \"data-slot\": DATE_GRID_SLOTS.cellDetails, className, style, render, children },\n state,\n WRAPPER,\n );\n});\n\nexport declare namespace DateGridCell {\n type DetailsProps = DateGridCellDetailsProps;\n type Props = DateGridCellProps;\n type State = DateGridCellState;\n}\n","\"use client\";\n\nimport type { DateString } from \"calendar-components-core\";\nimport * as React from \"react\";\nimport { renderElement } from \"../../internals/renderElement\";\nimport { DATE_GRID_SLOTS } from \"../../internals/slots\";\nimport type { CalendarComponentsPartProps } from \"../../internals/types\";\nimport { useDateGridGridContext } from \"../grid/DateGridGridContext\";\nimport { DateGridWeek } from \"../week/DateGridWeek\";\n\nexport type DateGridGridBodyState = { weeks: number };\n\nexport interface DateGridGridBodyProps extends Omit<React.HTMLAttributes<HTMLTableSectionElement>, \"children\" | \"className\" | \"style\">, CalendarComponentsPartProps<DateGridGridBodyState, HTMLTableSectionElement> {\n /** Draws one day: return a `DateGrid.Cell`. Each week is then a plain `DateGrid.Week`. */\n children?: (date: DateString) => React.ReactNode;\n /** Draws one week, given its place among those shown: return a `DateGrid.Week`. Use it for a week row of your own. */\n renderWeek?: (week: number) => React.ReactNode;\n}\n\n/**\n * The days, a `DateGrid.Week` per week. Renders a `<tbody>`.\n *\n * <DateGrid.GridBody renderWeek={(week) => <DateGrid.Week week={week} className=\"week\">{(date) => <DateGrid.Cell date={date} />}</DateGrid.Week>} />\n */\nexport const DateGridGridBody = React.forwardRef<HTMLTableSectionElement, DateGridGridBodyProps>(function DateGridGridBody({ children, renderWeek, className, style, render, ...props }, ref) {\n const { weeks } = useDateGridGridContext(\"GridBody\");\n return renderElement<DateGridGridBodyState, HTMLTableSectionElement>(\n \"tbody\",\n {\n ...props,\n ref,\n \"data-slot\": DATE_GRID_SLOTS.gridBody,\n className,\n style,\n render,\n children: Array.from({ length: weeks }, (_, week) => <React.Fragment key={week}>{renderWeek ? renderWeek(week) : <DateGridWeek week={week}>{children ?? (() => null)}</DateGridWeek>}</React.Fragment>),\n },\n { weeks },\n );\n});\n\nexport declare namespace DateGridGridBody {\n type Props = DateGridGridBodyProps;\n type State = DateGridGridBodyState;\n}\n","\"use client\";\n\nimport * as React from \"react\";\n\nexport interface DateGridGridContextValue {\n headerProps: object;\n weekdays: readonly string[];\n weeks: number;\n}\n\nexport const DateGridGridContext = React.createContext<DateGridGridContextValue | null>(null);\n\nexport function useDateGridGridContext(part = \"useDateGridGrid\"): DateGridGridContextValue {\n const grid = React.useContext(DateGridGridContext);\n if (!grid) throw new Error(`${part.startsWith(\"use\") ? part : `DateGrid.${part}`} must be inside DateGrid.Grid.`);\n return grid;\n}\n","\"use client\";\n\nimport type { DateString } from \"calendar-components-core\";\nimport * as React from \"react\";\nimport { renderElement } from \"../../internals/renderElement\";\nimport { DATE_GRID_SLOTS } from \"../../internals/slots\";\nimport type { CalendarComponentsPartProps } from \"../../internals/types\";\nimport { dateString } from \"../dateString\";\nimport { useDateGridContext } from \"../root/DateGridRootContext\";\n\nexport type DateGridWeekState = {\n /** Its place among the weeks shown; 0 is the first. */\n week: number;\n /** Its days, a null where the calendar system has no day (a month that starts mid-week in a strip never has one). */\n dates: readonly (DateString | null)[];\n};\n\nexport interface DateGridWeekProps extends Omit<React.HTMLAttributes<HTMLTableRowElement>, \"children\" | \"className\" | \"style\">, CalendarComponentsPartProps<DateGridWeekState, HTMLTableRowElement> {\n /** Which week, from `DateGrid.GridBody`'s `renderWeek`. */\n week: number;\n /** Draws one day: return a `DateGrid.Cell`. */\n children: (date: DateString) => React.ReactNode;\n}\n\n/** A week's days. Renders a `<tr>`. */\nexport const DateGridWeek = React.forwardRef<HTMLTableRowElement, DateGridWeekProps>(function DateGridWeek({ week, children, className, style, render, ...props }, ref) {\n const { state } = useDateGridContext(\"Week\");\n const days = state.getDatesInWeek(week);\n const dates = days.map((date) => (date ? dateString(date) : null));\n return renderElement<DateGridWeekState, HTMLTableRowElement>(\n \"tr\",\n {\n ...props,\n ref,\n \"data-slot\": DATE_GRID_SLOTS.week,\n className,\n style,\n render,\n children: dates.map((date, i) => (date ? <React.Fragment key={date}>{children(date)}</React.Fragment> : <td key={i} data-slot={DATE_GRID_SLOTS.cellWrapper} data-empty=\"\" />)),\n },\n { week, dates },\n [\"week\"],\n );\n});\n\nexport declare namespace DateGridWeek {\n type Props = DateGridWeekProps;\n type State = DateGridWeekState;\n}\n","\"use client\";\n\nimport { localeInfo } from \"calendar-components-core\";\nimport * as React from \"react\";\nimport { mergePartProps } from \"../../internals/mergePartProps\";\nimport { renderElement } from \"../../internals/renderElement\";\nimport { DATE_GRID_SLOTS } from \"../../internals/slots\";\nimport type { CalendarComponentsPartProps } from \"../../internals/types\";\nimport { useDateGridGridContext } from \"../grid/DateGridGridContext\";\nimport { DateGridHeaderCell, type DateGridWeekday } from \"../header-cell/DateGridHeaderCell\";\nimport { useDateGridContext } from \"../root/DateGridRootContext\";\n\nexport type DateGridGridHeaderState = { weekdays: readonly DateGridWeekday[] };\n\nexport interface DateGridGridHeaderProps extends Omit<React.HTMLAttributes<HTMLTableSectionElement>, \"children\" | \"className\" | \"style\">, CalendarComponentsPartProps<DateGridGridHeaderState, HTMLTableSectionElement> {\n /** Draws one weekday: return a `DateGrid.HeaderCell`. Left out, each is a plain one. */\n children?: (weekday: DateGridWeekday) => React.ReactNode;\n}\n\n/** The row of weekday names. Renders a `<thead>` with one `<tr>`. */\nexport const DateGridGridHeader = React.forwardRef<HTMLTableSectionElement, DateGridGridHeaderProps>(function DateGridGridHeader({ children, className, style, render, ...props }, ref) {\n const { locale } = useDateGridContext(\"GridHeader\");\n const { headerProps, weekdays: labels } = useDateGridGridContext(\"GridHeader\");\n const weekdays = React.useMemo(() => {\n const info = localeInfo(locale);\n return labels.map((label, index) => ({ label, index, weekend: info.weekend.includes((info.firstDayOfWeek + index) % 7) }));\n }, [labels, locale]);\n return renderElement<DateGridGridHeaderState, HTMLTableSectionElement>(\n \"thead\",\n {\n ...mergePartProps<React.HTMLAttributes<HTMLTableSectionElement>>(props, headerProps),\n ref,\n \"data-slot\": DATE_GRID_SLOTS.gridHeader,\n className,\n style,\n render,\n children: (\n <tr data-slot={DATE_GRID_SLOTS.gridHeaderRow}>\n {weekdays.map((weekday) => (\n <React.Fragment key={weekday.index}>{children ? children(weekday) : <DateGridHeaderCell weekday={weekday} />}</React.Fragment>\n ))}\n </tr>\n ),\n },\n { weekdays },\n );\n});\n\nexport declare namespace DateGridGridHeader {\n type Props = DateGridGridHeaderProps;\n type State = DateGridGridHeaderState;\n type Weekday = DateGridWeekday;\n}\n","\"use client\";\n\nimport * as React from \"react\";\nimport { renderElement } from \"../../internals/renderElement\";\nimport { DATE_GRID_SLOTS } from \"../../internals/slots\";\nimport type { CalendarComponentsPartElementProps } from \"../../internals/types\";\n\n/** 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. */\nexport interface DateGridWeekday {\n label: string;\n /** 0 is the week's first day in this locale. */\n index: number;\n weekend: boolean;\n}\n\nexport type DateGridHeaderCellState = DateGridWeekday;\n\nexport interface DateGridHeaderCellProps extends CalendarComponentsPartElementProps<DateGridHeaderCellState, HTMLTableCellElement> {\n /** The weekday, from `DateGrid.GridHeader`. */\n weekday: DateGridWeekday;\n}\n\n/** A weekday's name. Renders a `<th>`. */\nexport const DateGridHeaderCell = React.forwardRef<HTMLTableCellElement, DateGridHeaderCellProps>(function DateGridHeaderCell({ weekday, className, style, render, children, ...props }, ref) {\n return renderElement(\"th\", { ...props, ref, \"data-slot\": DATE_GRID_SLOTS.headerCell, className, style, render, children: children ?? weekday.label }, weekday, [\"weekend\"]);\n});\n\nexport declare namespace DateGridHeaderCell {\n type Props = DateGridHeaderCellProps;\n type State = DateGridHeaderCellState;\n}\n","/**\n * Identifies the weekdays' section (`date-grid-header`) and the row in it (`date-grid-header-row`).\n * @type {'date-grid-header' | 'date-grid-header-row'}\n */\nexport const slot = \"data-slot\";\n","/**\n * Identifies the weeks' section.\n * @type {'date-grid-body'}\n */\nexport const slot = \"data-slot\";\n","/**\n * Identifies the grid of days.\n * @type {'date-grid'}\n */\nexport const slot = \"data-slot\";\n/**\n * Present when no day can be selected.\n */\nexport const disabled = \"data-disabled\";\n/**\n * Present when the selected day cannot be changed.\n */\nexport const readOnly = \"data-read-only\";\n","/**\n * Identifies the heading.\n * @type {'date-grid-heading'}\n */\nexport const slot = \"data-slot\";\n/**\n * The column the month's first day is in; 0 is the week's first.\n * @type {number}\n */\nexport const startColumn = \"data-start-column\";\n","/**\n * The column the month's first day is in; 0 is the week's first.\n * @type {number}\n */\nexport const startColumn = \"--date-grid-start-column\";\n","import * as InteractionDataAttributes from \"../../internals/InteractionDataAttributes\";\n\n/**\n * Identifies the button.\n * @type {'date-grid-previous' | 'date-grid-next'}\n */\nexport const slot = \"data-slot\";\n/** Present while it is pressed. */\nexport const pressed = InteractionDataAttributes.pressed;\n/** Present while the pointer is over it (never on touch). */\nexport const hovered = InteractionDataAttributes.hovered;\n/** Present while it has keyboard focus. */\nexport const focusVisible = InteractionDataAttributes.focusVisible;\n/** Present when there is nothing further that way. */\nexport const disabled = InteractionDataAttributes.disabled;\n","/**\n * Identifies the table of days.\n * @type {'date-grid-grid'}\n */\nexport const slot = \"data-slot\";\n/**\n * How many weeks it shows.\n * @type {number}\n */\nexport const weeks = \"data-weeks\";\n","/**\n * Identifies a weekday's name.\n * @type {'date-grid-header-cell'}\n */\nexport const slot = \"data-slot\";\n/**\n * Present on a weekend day, as the locale has the weekend.\n */\nexport const weekend = \"data-weekend\";\n","/**\n * Identifies a week's row.\n * @type {'date-grid-week'}\n */\nexport const slot = \"data-slot\";\n/**\n * Its place among the weeks shown; 0 is the first.\n * @type {number}\n */\nexport const week = \"data-week\";\n","import * as InteractionDataAttributes from \"../../internals/InteractionDataAttributes\";\n\n/**\n * Identifies a day (`date-grid-cell`), the `<td>` it sits in\n * (`date-grid-cell-wrapper`) and what it holds (`date-grid-cell-details`).\n * The attributes down to `unavailable` are on all three.\n * @type {'date-grid-cell' | 'date-grid-cell-wrapper' | 'date-grid-cell-details'}\n */\nexport const slot = \"data-slot\";\n/**\n * The day, as YYYY-MM-DD.\n * @type {string}\n */\nexport const date = \"data-date\";\n/** Present on the selected day. */\nexport const selected = \"data-selected\";\n/** Present on today. */\nexport const today = \"data-today\";\n/** Present on a weekend day, as the locale has the weekend. */\nexport const weekend = \"data-weekend\";\n/** Present on a day of another month than the one shown. */\nexport const outsideMonth = \"data-outside-month\";\n/** Present on a day that cannot be selected. */\nexport const unavailable = \"data-unavailable\";\n/** Present on a `<td>` with no day in it. */\nexport const empty = \"data-empty\";\n/** Present while it is pressed. */\nexport const pressed = InteractionDataAttributes.pressed;\n/** Present while the pointer is over it (never on touch). */\nexport const hovered = InteractionDataAttributes.hovered;\n/** Present while it has keyboard focus. */\nexport const focusVisible = InteractionDataAttributes.focusVisible;\n/** Present when it is disabled. */\nexport const disabled = InteractionDataA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MC,QAAO;AAKb,IAAM,OAAO;AAEb,IAAM,WAAW;AAEjB,IAAM,QAAQ;AAEd,IAAMC,WAAU;AAEhB,IAAM,eAAe;AAErB,IAAM,cAAc;AAEpB,IAAM,QAAQ;AAEd,IAAMC,WAAoC;AAE1C,IAAMC,WAAoC;AAE1C,IAAMC,gBAAyC;AAE/C,IAAMC,YAAqC;","names":["React","date","DateGridRoot","DateGridRootInner","disabled","readOnly","selected","date","React","DateGridHeading","React","React","parseDate","toCalendar","React","mergeRefs","useFocusRing","useHover","jsx","DateGridCell","date","today","mergeRefs","toCalendar","parseDate","outsideMonth","useHover","useFocusRing","DateGridCellDetails","React","React","React","jsx","DateGridWeek","week","date","jsx","DateGridGridBody","weeks","week","localeInfo","React","React","DateGridHeaderCell","jsx","DateGridGridHeader","localeInfo","Fragment","jsx","jsxs","DateGridGrid","weeks","date","slot","disabled","slot","slot","startColumn","disabled","focusVisible","hovered","pressed","slot","slot","pressed","hovered","focusVisible","disabled","slot","slot","slot","disabled","focusVisible","hovered","pressed","slot","weekend","slot","weekend","pressed","hovered","focusVisible","disabled"]}
|