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,271 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
AGENDA_SLOTS,
|
|
4
|
+
__export,
|
|
5
|
+
ariaPart,
|
|
6
|
+
disabled,
|
|
7
|
+
focusVisible,
|
|
8
|
+
hovered,
|
|
9
|
+
pressed,
|
|
10
|
+
resolve,
|
|
11
|
+
stateAttributes,
|
|
12
|
+
toRenderFunction,
|
|
13
|
+
useChangeState,
|
|
14
|
+
useToday
|
|
15
|
+
} from "./chunk-E6WBQCX3.js";
|
|
16
|
+
|
|
17
|
+
// src/agenda/index.parts.ts
|
|
18
|
+
var index_parts_exports = {};
|
|
19
|
+
__export(index_parts_exports, {
|
|
20
|
+
Day: () => AgendaDay,
|
|
21
|
+
DayHeader: () => AgendaDayHeader,
|
|
22
|
+
Event: () => AgendaEvent,
|
|
23
|
+
LoadMore: () => AgendaLoadMore,
|
|
24
|
+
Root: () => AgendaRoot
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
// src/agenda/root/AgendaRoot.tsx
|
|
28
|
+
import { createChangeDetails, getLocalTimeZone, labelsFor, nowOf } from "calendar-components-core";
|
|
29
|
+
import * as React4 from "react";
|
|
30
|
+
import { GridList, ListLayout, Virtualizer } from "react-aria-components";
|
|
31
|
+
import { I18nProvider, isRTL, useLocale } from "react-aria/I18nProvider";
|
|
32
|
+
import { mergeRefs } from "react-aria/mergeRefs";
|
|
33
|
+
|
|
34
|
+
// src/agenda/day/AgendaDay.tsx
|
|
35
|
+
import { formatDay, localeInfo, toLocalDate, weekdayOf } from "calendar-components-core";
|
|
36
|
+
import * as React3 from "react";
|
|
37
|
+
import { GridListSection } from "react-aria-components";
|
|
38
|
+
|
|
39
|
+
// src/agenda/root/AgendaRootContext.ts
|
|
40
|
+
import * as React from "react";
|
|
41
|
+
var AgendaContext = React.createContext(null);
|
|
42
|
+
function useAgendaContext(part = "useAgenda") {
|
|
43
|
+
const context = React.useContext(AgendaContext);
|
|
44
|
+
if (!context) throw new Error(`${part.startsWith("use") ? part : `Agenda.${part}`} must be inside Agenda.Root.`);
|
|
45
|
+
return context;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// src/agenda/day/AgendaDayContext.ts
|
|
49
|
+
import * as React2 from "react";
|
|
50
|
+
var AgendaDayContext = React2.createContext(null);
|
|
51
|
+
|
|
52
|
+
// src/agenda/day/AgendaDay.tsx
|
|
53
|
+
import { jsx } from "react/jsx-runtime";
|
|
54
|
+
var DAY_KEY = "day-";
|
|
55
|
+
var AGENDA_DAY_ATTRIBUTES = ["date", "today", "weekend", "past"];
|
|
56
|
+
var AgendaDay = React3.forwardRef(function AgendaDay2({ day, children, className, style, render, ...props }, ref) {
|
|
57
|
+
const { locale, timeZone } = useAgendaContext("Day");
|
|
58
|
+
const today2 = useToday(timeZone);
|
|
59
|
+
const state = React3.useMemo(() => {
|
|
60
|
+
const words = formatDay(locale, toLocalDate(day.date));
|
|
61
|
+
return { date: day.date, today: day.date === today2, weekend: localeInfo(locale).weekend.includes(weekdayOf(day.date)), past: today2 != null && day.date < today2, weekdayLabel: words.weekday, dayLabel: words.day, label: words.full };
|
|
62
|
+
}, [day.date, locale, today2]);
|
|
63
|
+
const custom = toRenderFunction(render);
|
|
64
|
+
return /* @__PURE__ */ jsx(AgendaDayContext.Provider, { value: state, children: /* @__PURE__ */ jsx(
|
|
65
|
+
GridListSection,
|
|
66
|
+
{
|
|
67
|
+
...props,
|
|
68
|
+
...stateAttributes(state, AGENDA_DAY_ATTRIBUTES),
|
|
69
|
+
ref,
|
|
70
|
+
id: `${DAY_KEY}${day.date}`,
|
|
71
|
+
className: resolve(className, state),
|
|
72
|
+
style: resolve(style, state),
|
|
73
|
+
render: custom ? (rendered) => custom(rendered, state) : void 0,
|
|
74
|
+
"data-slot": AGENDA_SLOTS.day,
|
|
75
|
+
children
|
|
76
|
+
}
|
|
77
|
+
) });
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
// src/agenda/root/AgendaRoot.tsx
|
|
81
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
82
|
+
var ESTIMATES = { estimatedRowSize: 48, estimatedHeadingSize: 32 };
|
|
83
|
+
var AgendaRoot = React4.forwardRef(function AgendaRoot2({ value: value2, defaultValue = null, onValueChange, locale, timeZone, labels, actionsRef, className, style, render, children, renderEmptyState, virtualized = false, ...props }, ref) {
|
|
84
|
+
const ambient = useLocale();
|
|
85
|
+
const context = React4.useMemo(() => ({ locale: locale ?? ambient.locale, timeZone: timeZone ?? getLocalTimeZone(), labels: { ...labelsFor(locale ?? ambient.locale), ...labels } }), [locale, ambient.locale, timeZone, labels]);
|
|
86
|
+
const [selected2, setSelected] = useChangeState(value2, defaultValue, onValueChange);
|
|
87
|
+
const list = React4.useRef(null);
|
|
88
|
+
const on = virtualized !== false;
|
|
89
|
+
const layout = React4.useMemo(() => on ? new ListLayout() : null, [on]);
|
|
90
|
+
const refs = React4.useMemo(() => mergeRefs(list, ref), [ref]);
|
|
91
|
+
React4.useImperativeHandle(
|
|
92
|
+
actionsRef,
|
|
93
|
+
() => ({
|
|
94
|
+
scrollToDay(date3, options = { block: "start" }) {
|
|
95
|
+
const wanted = date3 === "today" ? nowOf(context.timeZone).date : date3;
|
|
96
|
+
if (layout) {
|
|
97
|
+
const key = [...layout.virtualizer?.collection.getKeys() ?? []].find((each) => String(each).startsWith(DAY_KEY) && String(each).slice(DAY_KEY.length) >= wanted);
|
|
98
|
+
const rect = key == null ? null : layout.getLayoutInfo(key)?.rect;
|
|
99
|
+
if (rect) list.current?.scrollTo({ top: rect.y, behavior: options.behavior });
|
|
100
|
+
return rect != null;
|
|
101
|
+
}
|
|
102
|
+
const day = [...list.current?.querySelectorAll(`[data-slot="${AGENDA_SLOTS.day}"]`) ?? []].find((el) => (el.dataset.date ?? "") >= wanted);
|
|
103
|
+
day?.scrollIntoView(options);
|
|
104
|
+
return day != null;
|
|
105
|
+
}
|
|
106
|
+
}),
|
|
107
|
+
[context.timeZone, layout]
|
|
108
|
+
);
|
|
109
|
+
const grid = /* @__PURE__ */ jsx2(
|
|
110
|
+
GridList,
|
|
111
|
+
{
|
|
112
|
+
...props,
|
|
113
|
+
ref: refs,
|
|
114
|
+
dir: isRTL(context.locale) ? "rtl" : "ltr",
|
|
115
|
+
"data-slot": AGENDA_SLOTS.root,
|
|
116
|
+
selectionMode: "single",
|
|
117
|
+
selectedKeys: selected2 == null ? [] : [selected2],
|
|
118
|
+
onSelectionChange: (keys) => {
|
|
119
|
+
const [next] = keys === "all" ? [] : [...keys];
|
|
120
|
+
setSelected(next == null ? null : String(next), createChangeDetails("item-press"));
|
|
121
|
+
},
|
|
122
|
+
renderEmptyState,
|
|
123
|
+
...ariaPart("div", { className, style, render }, (r) => ({ empty: r.isEmpty })),
|
|
124
|
+
children
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
return /* @__PURE__ */ jsx2(AgendaContext.Provider, { value: context, children: /* @__PURE__ */ jsx2(I18nProvider, { locale: context.locale, children: layout ? /* @__PURE__ */ jsx2(Virtualizer, { layout, layoutOptions: { ...ESTIMATES, ...virtualized === true ? null : virtualized }, children: grid }) : grid }) });
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
// src/agenda/day-header/AgendaDayHeader.tsx
|
|
131
|
+
import * as React5 from "react";
|
|
132
|
+
import { GridListHeader } from "react-aria-components";
|
|
133
|
+
import { VisuallyHidden } from "react-aria/VisuallyHidden";
|
|
134
|
+
import { Fragment, jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
135
|
+
var AgendaDayHeader = React5.forwardRef(function AgendaDayHeader2({ className, style, render, children, ...props }, ref) {
|
|
136
|
+
const day = React5.useContext(AgendaDayContext);
|
|
137
|
+
if (!day) throw new Error("Agenda.DayHeader must be inside Agenda.Day.");
|
|
138
|
+
const { labels } = useAgendaContext("DayHeader");
|
|
139
|
+
const custom = toRenderFunction(render);
|
|
140
|
+
const shown = resolve(children, day) ?? day.label;
|
|
141
|
+
return /* @__PURE__ */ jsx3(
|
|
142
|
+
GridListHeader,
|
|
143
|
+
{
|
|
144
|
+
...props,
|
|
145
|
+
...stateAttributes(day, AGENDA_DAY_ATTRIBUTES),
|
|
146
|
+
ref,
|
|
147
|
+
"data-slot": AGENDA_SLOTS.dayHeader,
|
|
148
|
+
className: resolve(className, day),
|
|
149
|
+
style: resolve(style, day),
|
|
150
|
+
render: custom ? (rendered) => custom(rendered, day) : void 0,
|
|
151
|
+
children: day.today ? (
|
|
152
|
+
// The section is read as its heading. Today's says that it is, as a day does in the time grid: what is seen stays as drawn, and what is said is the day in full.
|
|
153
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
154
|
+
/* @__PURE__ */ jsx3("span", { "aria-hidden": true, children: shown }),
|
|
155
|
+
/* @__PURE__ */ jsx3(VisuallyHidden, { children: labels.dayToday(day.label) })
|
|
156
|
+
] })
|
|
157
|
+
) : shown
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
// src/agenda/event/AgendaEvent.tsx
|
|
163
|
+
import { formatTime, formatTimeParts } from "calendar-components-core";
|
|
164
|
+
import * as React6 from "react";
|
|
165
|
+
import { GridListItem } from "react-aria-components";
|
|
166
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
167
|
+
function AgendaEventPart({ event, label, disabled: disabled3, onAction, className, style, render, children, ...props }, ref) {
|
|
168
|
+
const { locale, labels } = useAgendaContext("Event");
|
|
169
|
+
const day = React6.useContext(AgendaDayContext);
|
|
170
|
+
const allDay2 = event.start == null || event.end == null;
|
|
171
|
+
const words = React6.useMemo(() => {
|
|
172
|
+
const [start, end] = [event.start, event.end];
|
|
173
|
+
return start == null || end == null ? { startLabel: "", endLabel: "", startParts: null, endParts: null } : { startLabel: formatTime(locale, start), endLabel: formatTime(locale, end), startParts: formatTimeParts(locale, start), endParts: formatTimeParts(locale, end) };
|
|
174
|
+
}, [event.start, event.end, locale]);
|
|
175
|
+
const state = (r) => ({
|
|
176
|
+
hovered: r.isHovered,
|
|
177
|
+
focused: r.isFocused,
|
|
178
|
+
focusVisible: r.isFocusVisible,
|
|
179
|
+
pressed: r.isPressed,
|
|
180
|
+
disabled: r.isDisabled,
|
|
181
|
+
selected: r.isSelected,
|
|
182
|
+
event,
|
|
183
|
+
allDay: allDay2,
|
|
184
|
+
...words
|
|
185
|
+
});
|
|
186
|
+
return /* @__PURE__ */ jsx4(
|
|
187
|
+
GridListItem,
|
|
188
|
+
{
|
|
189
|
+
"aria-label": allDay2 ? labels.list([label, labels.allDay]) : labels.event(label, words.startLabel, words.endLabel),
|
|
190
|
+
...props,
|
|
191
|
+
ref,
|
|
192
|
+
id: event.id,
|
|
193
|
+
textValue: label,
|
|
194
|
+
"data-value": event.id,
|
|
195
|
+
"data-date": day?.date,
|
|
196
|
+
isDisabled: disabled3,
|
|
197
|
+
onAction,
|
|
198
|
+
"data-slot": AGENDA_SLOTS.event,
|
|
199
|
+
"data-all-day": allDay2 ? "" : void 0,
|
|
200
|
+
...ariaPart("div", { className, style, render }, state),
|
|
201
|
+
children: (r) => resolve(children, state(r)) ?? label
|
|
202
|
+
}
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
var AgendaEvent = React6.forwardRef(AgendaEventPart);
|
|
206
|
+
|
|
207
|
+
// src/agenda/load-more/AgendaLoadMore.tsx
|
|
208
|
+
import * as React7 from "react";
|
|
209
|
+
import { GridListLoadMoreItem } from "react-aria-components";
|
|
210
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
211
|
+
var AgendaLoadMore = React7.forwardRef(function AgendaLoadMore2({ loading = false, children, ...props }, ref) {
|
|
212
|
+
return /* @__PURE__ */ jsx5(GridListLoadMoreItem, { ...props, ref, isLoading: loading, "data-slot": AGENDA_SLOTS.loadMore, children });
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
// src/agenda/root/AgendaRootDataAttributes.ts
|
|
216
|
+
var AgendaRootDataAttributes_exports = {};
|
|
217
|
+
__export(AgendaRootDataAttributes_exports, {
|
|
218
|
+
empty: () => empty,
|
|
219
|
+
focusVisible: () => focusVisible2,
|
|
220
|
+
slot: () => slot
|
|
221
|
+
});
|
|
222
|
+
var slot = "data-slot";
|
|
223
|
+
var empty = "data-empty";
|
|
224
|
+
var focusVisible2 = "data-focus-visible";
|
|
225
|
+
|
|
226
|
+
// src/agenda/day/AgendaDayDataAttributes.ts
|
|
227
|
+
var AgendaDayDataAttributes_exports = {};
|
|
228
|
+
__export(AgendaDayDataAttributes_exports, {
|
|
229
|
+
date: () => date,
|
|
230
|
+
past: () => past,
|
|
231
|
+
slot: () => slot2,
|
|
232
|
+
today: () => today,
|
|
233
|
+
weekend: () => weekend
|
|
234
|
+
});
|
|
235
|
+
var slot2 = "data-slot";
|
|
236
|
+
var date = "data-date";
|
|
237
|
+
var today = "data-today";
|
|
238
|
+
var weekend = "data-weekend";
|
|
239
|
+
var past = "data-past";
|
|
240
|
+
|
|
241
|
+
// src/agenda/event/AgendaEventDataAttributes.ts
|
|
242
|
+
var AgendaEventDataAttributes_exports = {};
|
|
243
|
+
__export(AgendaEventDataAttributes_exports, {
|
|
244
|
+
allDay: () => allDay,
|
|
245
|
+
date: () => date2,
|
|
246
|
+
disabled: () => disabled2,
|
|
247
|
+
focusVisible: () => focusVisible3,
|
|
248
|
+
hovered: () => hovered2,
|
|
249
|
+
pressed: () => pressed2,
|
|
250
|
+
selected: () => selected,
|
|
251
|
+
slot: () => slot3,
|
|
252
|
+
value: () => value
|
|
253
|
+
});
|
|
254
|
+
var slot3 = "data-slot";
|
|
255
|
+
var value = "data-value";
|
|
256
|
+
var date2 = "data-date";
|
|
257
|
+
var allDay = "data-all-day";
|
|
258
|
+
var selected = "data-selected";
|
|
259
|
+
var pressed2 = pressed;
|
|
260
|
+
var hovered2 = hovered;
|
|
261
|
+
var focusVisible3 = focusVisible;
|
|
262
|
+
var disabled2 = disabled;
|
|
263
|
+
|
|
264
|
+
export {
|
|
265
|
+
useAgendaContext,
|
|
266
|
+
index_parts_exports,
|
|
267
|
+
AgendaRootDataAttributes_exports,
|
|
268
|
+
AgendaDayDataAttributes_exports,
|
|
269
|
+
AgendaEventDataAttributes_exports
|
|
270
|
+
};
|
|
271
|
+
//# sourceMappingURL=chunk-X27ZSAPJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/agenda/index.parts.ts","../src/agenda/root/AgendaRoot.tsx","../src/agenda/day/AgendaDay.tsx","../src/agenda/root/AgendaRootContext.ts","../src/agenda/day/AgendaDayContext.ts","../src/agenda/day-header/AgendaDayHeader.tsx","../src/agenda/event/AgendaEvent.tsx","../src/agenda/load-more/AgendaLoadMore.tsx","../src/agenda/root/AgendaRootDataAttributes.ts","../src/agenda/day/AgendaDayDataAttributes.ts","../src/agenda/event/AgendaEventDataAttributes.ts"],"sourcesContent":["export { AgendaRoot as Root } from \"./root/AgendaRoot\";\nexport { AgendaDay as Day } from \"./day/AgendaDay\";\nexport { AgendaDayHeader as DayHeader } from \"./day-header/AgendaDayHeader\";\nexport { AgendaEvent as Event } from \"./event/AgendaEvent\";\nexport { AgendaLoadMore as LoadMore } from \"./load-more/AgendaLoadMore\";\n","\"use client\";\n\nimport { createChangeDetails, getLocalTimeZone, labelsFor, nowOf, type CalendarLabels, type ChangeDetails } from \"calendar-components-core\";\nimport * as React from \"react\";\nimport { GridList, ListLayout, Virtualizer } from \"react-aria-components\";\nimport { I18nProvider, isRTL, useLocale } from \"react-aria/I18nProvider\";\nimport { mergeRefs } from \"react-aria/mergeRefs\";\nimport { ariaPart } from \"../../internals/renderElement\";\nimport { AGENDA_SLOTS } from \"../../internals/slots\";\nimport type { CalendarComponentsPartProps } from \"../../internals/types\";\nimport { useChangeState } from \"../../utils/useChangeState\";\nimport { DAY_KEY } from \"../day/AgendaDay\";\nimport { AgendaContext } from \"./AgendaRootContext\";\n\n/**\n * A schedule as a list: a section for each day that has something, its\n * events in time order. The list, its sections and its items are React Aria\n * Components' `GridList`, so the arrow keys, type to find, selection and the\n * screen reader are theirs. These parts add the days, the words and this\n * package's props.\n */\n\nexport type AgendaValueChangeDetails = ChangeDetails<\"item-press\">;\nexport type AgendaRootState = { empty: boolean };\n\nexport interface AgendaRootActions {\n /**\n * Scrolls to a day's section, or to the first day after it when that day\n * has nothing. `\"today\"` is today in the list's time zone. Returns false\n * when there is no such day.\n */\n scrollToDay: (date: string | \"today\", options?: ScrollIntoViewOptions) => boolean;\n}\n\nexport interface AgendaRootProps extends CalendarComponentsPartProps<AgendaRootState, HTMLDivElement> {\n /** The selected event's id. Use with `onValueChange` to control it. */\n value?: string | null;\n defaultValue?: string | null;\n onValueChange?: (value: string | null, details: AgendaValueChangeDetails) => void;\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.\n * @default this device's\n */\n timeZone?: string;\n /** The list's name. Give this or `aria-labelledby`. */\n \"aria-label\"?: string;\n \"aria-labelledby\"?: string;\n id?: string;\n /** Your words for \"all-day\" and for how an event is read aloud. */\n labels?: Partial<CalendarLabels>;\n /** `Agenda.Day`s. */\n children: React.ReactNode;\n /** A ref to the list's actions: `actionsRef.current.scrollToDay(\"today\")`. */\n actionsRef?: React.RefObject<AgendaRootActions | null>;\n /** What shows when there are no days. */\n renderEmptyState?: () => React.ReactNode;\n /**\n * Draws only the rows in view, with React Aria's `Virtualizer`: for a schedule of months or years. The\n * list must then scroll itself, so give it a height and `overflow: auto`. Pass sizes to say what a row\n * and a day's heading are tall; an estimate is measured once the row is drawn.\n * @default false\n */\n virtualized?: boolean | AgendaVirtualizedOptions;\n}\n\n/** What rows and headings are tall, in pixels: exact (`rowSize`), or a first guess that is measured (`estimatedRowSize`). */\nexport interface AgendaVirtualizedOptions {\n rowSize?: number;\n /** @default 48 */\n estimatedRowSize?: number;\n headingSize?: number;\n /** @default 32 */\n estimatedHeadingSize?: number;\n /** Pixels between rows. */\n gap?: number;\n}\n\nconst ESTIMATES = { estimatedRowSize: 48, estimatedHeadingSize: 32 };\n\n/** Groups the days of a schedule. Renders React Aria's `GridList`, a `<div>` with the grid role. */\nexport const AgendaRoot = React.forwardRef<HTMLDivElement, AgendaRootProps>(function AgendaRoot(\n { value, defaultValue = null, onValueChange, locale, timeZone, labels, actionsRef, className, style, render, children, renderEmptyState, virtualized = false, ...props },\n ref,\n) {\n const ambient = useLocale();\n const context = React.useMemo(() => ({ locale: locale ?? ambient.locale, timeZone: timeZone ?? getLocalTimeZone(), labels: { ...labelsFor(locale ?? ambient.locale), ...labels } }), [locale, ambient.locale, timeZone, labels]);\n const [selected, setSelected] = useChangeState<string | null, AgendaValueChangeDetails>(value, defaultValue, onValueChange);\n const list = React.useRef<HTMLDivElement>(null);\n // React Aria's list layout, kept while the list is virtualized: it is also asked where a day is.\n const on = virtualized !== false;\n const layout = React.useMemo(() => (on ? new ListLayout() : null), [on]);\n const refs = React.useMemo(() => mergeRefs<HTMLDivElement>(list, ref), [ref]);\n React.useImperativeHandle(\n actionsRef,\n () => ({\n scrollToDay(date, options = { block: \"start\" }) {\n const wanted = date === \"today\" ? nowOf(context.timeZone).date : date;\n // Days are in order, and a day with nothing has no section: the first on or after the one asked for.\n if (layout) {\n // Virtualized, a day out of view is not drawn: the layout knows where it would be.\n const key = [...(layout.virtualizer?.collection.getKeys() ?? [])].find((each) => String(each).startsWith(DAY_KEY) && String(each).slice(DAY_KEY.length) >= wanted);\n const rect = key == null ? null : layout.getLayoutInfo(key)?.rect;\n if (rect) list.current?.scrollTo({ top: rect.y, behavior: options.behavior });\n return rect != null;\n }\n const day = [...(list.current?.querySelectorAll<HTMLElement>(`[data-slot=\"${AGENDA_SLOTS.day}\"]`) ?? [])].find((el) => (el.dataset.date ?? \"\") >= wanted);\n day?.scrollIntoView(options);\n return day != null;\n },\n }),\n [context.timeZone, layout],\n );\n const grid = (\n <GridList\n {...props}\n ref={refs}\n // The list reads the way its locale does, whatever the page round it does.\n dir={isRTL(context.locale) ? \"rtl\" : \"ltr\"}\n data-slot={AGENDA_SLOTS.root}\n selectionMode=\"single\"\n selectedKeys={selected == null ? [] : [selected]}\n onSelectionChange={(keys) => {\n const [next] = keys === \"all\" ? [] : [...keys];\n setSelected(next == null ? null : String(next), createChangeDetails(\"item-press\"));\n }}\n renderEmptyState={renderEmptyState}\n {...ariaPart<AgendaRootState, { isEmpty: boolean }, HTMLDivElement>(\"div\", { className, style, render }, (r) => ({ empty: r.isEmpty }))}\n >\n {children}\n </GridList>\n );\n return (\n <AgendaContext.Provider value={context}>\n {/* React Aria's list reads its locale (and so its direction and its words) from the nearest provider. */}\n <I18nProvider locale={context.locale}>\n {layout ? (\n <Virtualizer layout={layout} layoutOptions={{ ...ESTIMATES, ...(virtualized === true ? null : virtualized) }}>\n {grid}\n </Virtualizer>\n ) : (\n grid\n )}\n </I18nProvider>\n </AgendaContext.Provider>\n );\n});\n\nexport declare namespace AgendaRoot {\n type Actions = AgendaRootActions;\n type VirtualizedOptions = AgendaVirtualizedOptions;\n type Props = AgendaRootProps;\n type State = AgendaRootState;\n type ValueChangeDetails = AgendaValueChangeDetails;\n}\n","\"use client\";\n\nimport { formatDay, localeInfo, toLocalDate, weekdayOf, type CalendarDay } from \"calendar-components-core\";\nimport * as React from \"react\";\nimport { GridListSection } from \"react-aria-components\";\nimport { resolve, stateAttributes, toRenderFunction } from \"../../internals/renderElement\";\nimport { AGENDA_SLOTS } from \"../../internals/slots\";\nimport type { CalendarComponentsPartProps } from \"../../internals/types\";\nimport { useToday } from \"../../utils/useNow\";\nimport { useAgendaContext } from \"../root/AgendaRootContext\";\nimport { AgendaDayContext, type AgendaDayState } from \"./AgendaDayContext\";\n\nexport interface AgendaDayProps extends Omit<React.HTMLAttributes<HTMLDivElement>, \"children\" | \"className\" | \"style\">, CalendarComponentsPartProps<AgendaDayState, HTMLDivElement> {\n /** The day this section is. */\n day: Pick<CalendarDay, \"date\">;\n /** An `Agenda.DayHeader`, then the day's `Agenda.Event`s. */\n children: React.ReactNode;\n}\n\n/** What a day's key in the list starts with, before its date. */\nexport const DAY_KEY = \"day-\";\n\nexport const AGENDA_DAY_ATTRIBUTES = [\"date\", \"today\", \"weekend\", \"past\"] as const;\n\n/**\n * A day's section. Renders React Aria's `GridListSection`, a `<div>` with\n * the rowgroup role; drawn as another element with `render`, it should stay\n * one that can hold that role.\n */\nexport const AgendaDay = React.forwardRef<HTMLDivElement, AgendaDayProps>(function AgendaDay({ day, children, className, style, render, ...props }, ref) {\n const { locale, timeZone } = useAgendaContext(\"Day\");\n const today = useToday(timeZone);\n const state = React.useMemo<AgendaDayState>(() => {\n const words = formatDay(locale, toLocalDate(day.date));\n return { date: day.date, today: day.date === today, weekend: localeInfo(locale).weekend.includes(weekdayOf(day.date)), past: today != null && day.date < today, weekdayLabel: words.weekday, dayLabel: words.day, label: words.full };\n }, [day.date, locale, today]);\n const custom = toRenderFunction(render);\n return (\n <AgendaDayContext.Provider value={state}>\n <GridListSection\n {...props}\n {...stateAttributes(state, AGENDA_DAY_ATTRIBUTES)}\n ref={ref}\n id={`${DAY_KEY}${day.date}`}\n className={resolve(className, state)}\n style={resolve(style, state)}\n render={custom ? (rendered) => custom(rendered, state) : undefined}\n data-slot={AGENDA_SLOTS.day}\n >\n {children}\n </GridListSection>\n </AgendaDayContext.Provider>\n );\n});\n\nexport declare namespace AgendaDay {\n type Props = AgendaDayProps;\n type State = AgendaDayState;\n}\n","\"use client\";\n\nimport type { CalendarLabels } from \"calendar-components-core\";\nimport * as React from \"react\";\n\nexport interface AgendaContextValue {\n locale: string;\n timeZone: string;\n labels: CalendarLabels;\n}\n\nexport const AgendaContext = React.createContext<AgendaContextValue | null>(null);\n\nexport function useAgendaContext(part = \"useAgenda\"): AgendaContextValue {\n const context = React.useContext(AgendaContext);\n if (!context) throw new Error(`${part.startsWith(\"use\") ? part : `Agenda.${part}`} must be inside Agenda.Root.`);\n return context;\n}\n","\"use client\";\n\nimport * as React from \"react\";\n\n/** A day in the list, and its words in the locale. */\nexport type AgendaDayState = { date: string; today: boolean; weekend: boolean; past: boolean; weekdayLabel: string; dayLabel: string; label: string };\n\nexport const AgendaDayContext = React.createContext<AgendaDayState | null>(null);\n","\"use client\";\n\nimport * as React from \"react\";\nimport { GridListHeader } from \"react-aria-components\";\nimport { VisuallyHidden } from \"react-aria/VisuallyHidden\";\nimport { resolve, stateAttributes, toRenderFunction } from \"../../internals/renderElement\";\nimport { AGENDA_SLOTS } from \"../../internals/slots\";\nimport type { CalendarComponentsPartProps } from \"../../internals/types\";\nimport { AGENDA_DAY_ATTRIBUTES } from \"../day/AgendaDay\";\nimport { useAgendaContext } from \"../root/AgendaRootContext\";\nimport { AgendaDayContext, type AgendaDayState } from \"../day/AgendaDayContext\";\n\nexport interface AgendaDayHeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, \"children\" | \"className\" | \"style\">, CalendarComponentsPartProps<AgendaDayState, HTMLDivElement> {\n /** Left out, it is the day in full, in the locale's words: \"Monday, November 23\". */\n children?: React.ReactNode | ((state: AgendaDayState) => React.ReactNode);\n}\n\n/** A day's heading. Renders React Aria's `GridListHeader`, a `<div>`. */\nexport const AgendaDayHeader = React.forwardRef<HTMLDivElement, AgendaDayHeaderProps>(function AgendaDayHeader({ className, style, render, children, ...props }, ref) {\n const day = React.useContext(AgendaDayContext);\n if (!day) throw new Error(\"Agenda.DayHeader must be inside Agenda.Day.\");\n const { labels } = useAgendaContext(\"DayHeader\");\n const custom = toRenderFunction(render);\n const shown = resolve(children, day) ?? day.label;\n return (\n <GridListHeader\n {...props}\n {...stateAttributes(day, AGENDA_DAY_ATTRIBUTES)}\n ref={ref}\n data-slot={AGENDA_SLOTS.dayHeader}\n className={resolve(className, day)}\n style={resolve(style, day)}\n render={custom ? (rendered) => custom(rendered, day) : undefined}\n >\n {day.today ? (\n // The section is read as its heading. Today's says that it is, as a day does in the time grid: what is seen stays as drawn, and what is said is the day in full.\n <>\n <span aria-hidden>{shown}</span>\n <VisuallyHidden>{labels.dayToday(day.label)}</VisuallyHidden>\n </>\n ) : (\n shown\n )}\n </GridListHeader>\n );\n});\n\nexport declare namespace AgendaDayHeader {\n type Props = AgendaDayHeaderProps;\n type State = AgendaDayState;\n}\n","\"use client\";\n\nimport { formatTime, formatTimeParts } from \"calendar-components-core\";\nimport * as React from \"react\";\nimport { GridListItem, type GridListItemRenderProps } from \"react-aria-components\";\nimport { ariaPart, resolve } from \"../../internals/renderElement\";\nimport { AGENDA_SLOTS } from \"../../internals/slots\";\nimport type { CalendarComponentsInteractionState, CalendarComponentsPartProps } from \"../../internals/types\";\nimport { AgendaDayContext } from \"../day/AgendaDayContext\";\nimport { useAgendaContext } from \"../root/AgendaRootContext\";\n\n/** An event as the list is given it: its id, and its start and end in minutes past midnight, left out when it is all day. */\nexport type AgendaEventItem = { id: string; start?: number; end?: number };\n\nexport type AgendaEventState<E extends AgendaEventItem = AgendaEventItem> = CalendarComponentsInteractionState & {\n /** The event you gave. */\n event: E;\n selected: boolean;\n /** Its times in the locale's words: \"7:00 AM\". Empty for an all-day event. */\n startLabel: string;\n endLabel: string;\n /** The same times in parts, to set the day period apart: `{ time: \"7:00\", dayPeriod: \"AM\" }`. Null for an all-day event. */\n startParts: { time: string; dayPeriod: string } | null;\n endParts: { time: string; dayPeriod: string } | null;\n allDay: boolean;\n};\n\nexport interface AgendaEventProps<E extends AgendaEventItem = AgendaEventItem> extends CalendarComponentsPartProps<AgendaEventState<E>, HTMLDivElement> {\n /** The event: its id, and its start and end in minutes past midnight. Leave the times out for one that is all day. */\n event: E;\n /** The event's name: what typing finds it by, and with its times what a screen reader says. */\n label: string;\n /** What a screen reader says instead of the name and times. */\n \"aria-label\"?: string;\n disabled?: boolean;\n /** Called when it is pressed, or Enter is pressed on it: to open it. */\n onAction?: () => void;\n /** Left out, it is the name. */\n children?: React.ReactNode | ((state: AgendaEventState<E>) => React.ReactNode);\n}\n\n/** An event in the list. Pressed, it is selected. Renders React Aria's `GridListItem`, a `<div>` with the row role. */\nfunction AgendaEventPart<E extends AgendaEventItem>({ event, label, disabled, onAction, className, style, render, children, ...props }: AgendaEventProps<E>, ref: React.ForwardedRef<HTMLDivElement>) {\n const { locale, labels } = useAgendaContext(\"Event\");\n const day = React.useContext(AgendaDayContext);\n const allDay = event.start == null || event.end == null;\n // The words are worked out once, however often React Aria asks for the row's state.\n const words = React.useMemo(() => {\n const [start, end] = [event.start, event.end];\n return start == null || end == null\n ? { startLabel: \"\", endLabel: \"\", startParts: null, endParts: null }\n : { startLabel: formatTime(locale, start), endLabel: formatTime(locale, end), startParts: formatTimeParts(locale, start), endParts: formatTimeParts(locale, end) };\n }, [event.start, event.end, locale]);\n const state = (r: GridListItemRenderProps): AgendaEventState<E> => ({\n hovered: r.isHovered,\n focused: r.isFocused,\n focusVisible: r.isFocusVisible,\n pressed: r.isPressed,\n disabled: r.isDisabled,\n selected: r.isSelected,\n event,\n allDay,\n ...words,\n });\n return (\n <GridListItem\n // A row is read by its name and when it is: \"Gym, 7:00 AM to 8:30 AM\", \"Thanksgiving, all-day\".\n aria-label={allDay ? labels.list([label, labels.allDay]) : labels.event(label, words.startLabel, words.endLabel)}\n {...props}\n ref={ref}\n id={event.id}\n textValue={label}\n data-value={event.id}\n data-date={day?.date}\n isDisabled={disabled}\n onAction={onAction}\n data-slot={AGENDA_SLOTS.event}\n data-all-day={allDay ? \"\" : undefined}\n {...ariaPart<AgendaEventState<E>, GridListItemRenderProps, HTMLDivElement>(\"div\", { className, style, render }, state)}\n >\n {(r) => resolve(children, state(r)) ?? label}\n </GridListItem>\n );\n}\n\nexport const AgendaEvent = React.forwardRef(AgendaEventPart) as <E extends AgendaEventItem = AgendaEventItem>(props: AgendaEventProps<E> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;\n\nexport declare namespace AgendaEvent {\n type Props = AgendaEventProps;\n type State = AgendaEventState;\n}\n","\"use client\";\n\nimport * as React from \"react\";\nimport { GridListLoadMoreItem } from \"react-aria-components\";\nimport { AGENDA_SLOTS } from \"../../internals/slots\";\n\nexport interface AgendaLoadMoreProps extends Omit<React.HTMLAttributes<HTMLDivElement>, \"children\"> {\n /** Called when the end of the list comes into view: add the days after the last. */\n onLoadMore?: () => void;\n /** Whether more days are on their way: the row then shows its children, and is read as loading. */\n loading?: boolean;\n /**\n * How far before the end to ask, as a multiple of the list's height.\n * @default 1\n */\n scrollOffset?: number;\n /** What shows while loading, such as a spinner. */\n children?: React.ReactNode;\n}\n\n/**\n * The end of a list that goes on, as Calendar's does on iOS: put it after the last `Agenda.Day`, and it asks\n * for more days when it is scrolled to. Renders React Aria's `GridListLoadMoreItem`.\n */\nexport const AgendaLoadMore = React.forwardRef<HTMLDivElement, AgendaLoadMoreProps>(function AgendaLoadMore({ loading = false, children, ...props }, ref) {\n return (\n <GridListLoadMoreItem {...props} ref={ref} isLoading={loading} data-slot={AGENDA_SLOTS.loadMore}>\n {children}\n </GridListLoadMoreItem>\n );\n});\n\nexport declare namespace AgendaLoadMore {\n type Props = AgendaLoadMoreProps;\n}\n","/**\n * Identifies the list.\n * @type {'agenda'}\n */\nexport const slot = \"data-slot\";\n/** Present when the list has no days (React Aria's). */\nexport const empty = \"data-empty\";\n/** Present while the list has keyboard focus (React Aria's). */\nexport const focusVisible = \"data-focus-visible\";\n","/**\n * Identifies a day's section. The day's heading carries `today` and `past` too.\n * @type {'agenda-day'}\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 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 before today. */\nexport const past = \"data-past\";\n","import * as InteractionDataAttributes from \"../../internals/InteractionDataAttributes\";\n\n/**\n * Identifies an event's row.\n * @type {'agenda-event'}\n */\nexport const slot = \"data-slot\";\n/**\n * The event's id.\n * @type {string}\n */\nexport const value = \"data-value\";\n/**\n * The day it is on, as YYYY-MM-DD.\n * @type {string}\n */\nexport const date = \"data-date\";\n/** Present on an event with no times. */\nexport const allDay = \"data-all-day\";\n/** Present on the selected event (React Aria's). */\nexport const selected = \"data-selected\";\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 = InteractionDataAttributes.disabled;\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA,SAAS,qBAAqB,kBAAkB,WAAW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K;AAAA,MAC3B,GAAG,SAAuE,OAAO,EAAE,WAAW,OAAO,OAAO,GAAG,KAAK;AAAA,MAEpH,WAAC,MAAM,QAAQ,UAAU,MAAM,CAAC,CAAC,KAAK;AAAA;AAAA,EACzC;AAEJ;AAEO,IAAM,cAAoB,kBAAW,eAAe;;;ACnF3D,YAAYC,YAAW;AACvB,SAAS,4BAA4B;AAuBjC,gBAAAC,YAAA;AAFG,IAAM,iBAAuB,kBAAgD,SAASC,gBAAe,EAAE,UAAU,OAAO,UAAU,GAAG,MAAM,GAAG,KAAK;AACxJ,SACE,gBAAAD,KAAC,wBAAsB,GAAG,OAAO,KAAU,WAAW,SAAS,aAAW,aAAa,UACpF,UACH;AAEJ,CAAC;;;AC9BD;AAAA;AAAA;AAAA,sBAAAE;AAAA,EAAA;AAAA;AAIO,IAAM,OAAO;AAEb,IAAM,QAAQ;AAEd,IAAMA,gBAAe;;;ACR5B;AAAA;AAAA;AAAA;AAAA,cAAAC;AAAA,EAAA;AAAA;AAAA;AAIO,IAAMA,QAAO;AAKb,IAAM,OAAO;AAEb,IAAM,QAAQ;AAEd,IAAM,UAAU;AAEhB,IAAM,OAAO;;;ACfpB;AAAA;AAAA;AAAA,cAAAC;AAAA,EAAA,gBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,eAAAC;AAAA,EAAA,eAAAC;AAAA,EAAA;AAAA,cAAAC;AAAA,EAAA;AAAA;AAMO,IAAMC,QAAO;AAKb,IAAM,QAAQ;AAKd,IAAMC,QAAO;AAEb,IAAM,SAAS;AAEf,IAAM,WAAW;AAEjB,IAAMC,WAAoC;AAE1C,IAAMC,WAAoC;AAE1C,IAAMC,gBAAyC;AAE/C,IAAMC,YAAqC;","names":["React","React","React","AgendaDay","today","jsx","AgendaRoot","value","selected","date","React","jsx","AgendaDayHeader","React","jsx","disabled","allDay","React","jsx","AgendaLoadMore","focusVisible","slot","date","disabled","focusVisible","hovered","pressed","slot","slot","date","pressed","hovered","focusVisible","disabled"]}
|