@klinking/colander 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/formats/date.cjs +49 -0
  2. package/dist/formats/date.d.cts +45 -0
  3. package/dist/formats/date.d.mts +45 -0
  4. package/dist/formats/date.mjs +2 -0
  5. package/dist/formats/object.cjs +49 -0
  6. package/dist/formats/object.d.cts +45 -0
  7. package/dist/formats/object.d.mts +45 -0
  8. package/dist/formats/object.mjs +2 -0
  9. package/dist/formats/plain-date-time.cjs +49 -0
  10. package/dist/formats/plain-date-time.d.cts +45 -0
  11. package/dist/formats/plain-date-time.d.mts +45 -0
  12. package/dist/formats/plain-date-time.mjs +2 -0
  13. package/dist/formats/plain-date.cjs +49 -0
  14. package/dist/formats/plain-date.d.cts +45 -0
  15. package/dist/formats/plain-date.d.mts +45 -0
  16. package/dist/formats/plain-date.mjs +2 -0
  17. package/dist/formats/plain-month-day.cjs +49 -0
  18. package/dist/formats/plain-month-day.d.cts +45 -0
  19. package/dist/formats/plain-month-day.d.mts +45 -0
  20. package/dist/formats/plain-month-day.mjs +2 -0
  21. package/dist/formats/plain-year-month.cjs +49 -0
  22. package/dist/formats/plain-year-month.d.cts +45 -0
  23. package/dist/formats/plain-year-month.d.mts +45 -0
  24. package/dist/formats/plain-year-month.mjs +2 -0
  25. package/dist/formats/zoned-date-time.cjs +49 -0
  26. package/dist/formats/zoned-date-time.d.cts +45 -0
  27. package/dist/formats/zoned-date-time.d.mts +45 -0
  28. package/dist/formats/zoned-date-time.mjs +2 -0
  29. package/dist/index.cjs +49 -0
  30. package/dist/index.d.cts +2 -0
  31. package/dist/index.d.mts +2 -0
  32. package/dist/index.mjs +2 -0
  33. package/dist/temporal-polyfill-DTx0VIX5.mjs +4556 -0
  34. package/dist/temporal-polyfill-DU8VfleL.cjs +4860 -0
  35. package/dist/weeks-view-context-BN6qR-83.d.mts +2022 -0
  36. package/dist/weeks-view-context-aHGgYkpt.d.cts +2022 -0
  37. package/package.json +89 -0
  38. package/src/calendar-context.ts +22 -0
  39. package/src/calendar-provider.test.tsx +123 -0
  40. package/src/calendar-provider.tsx +538 -0
  41. package/src/calendar-types.ts +212 -0
  42. package/src/compute-weeks-in-window.test.ts +83 -0
  43. package/src/compute-weeks-in-window.ts +40 -0
  44. package/src/context.ts +34 -0
  45. package/src/day-cell.tsx +635 -0
  46. package/src/drag-handle.tsx +137 -0
  47. package/src/formats/date.ts +110 -0
  48. package/src/formats/formats.test.ts +18 -0
  49. package/src/formats/object.ts +110 -0
  50. package/src/formats/plain-date-time.ts +110 -0
  51. package/src/formats/plain-date.ts +110 -0
  52. package/src/formats/plain-month-day.ts +110 -0
  53. package/src/formats/plain-year-month.ts +110 -0
  54. package/src/formats/zoned-date-time.ts +110 -0
  55. package/src/grid-header.tsx +141 -0
  56. package/src/grid.event-perf.test.tsx +282 -0
  57. package/src/grid.perf.test.tsx +467 -0
  58. package/src/grid.tsx +608 -0
  59. package/src/index.ts +116 -0
  60. package/src/keyboard.test.ts +498 -0
  61. package/src/keyboard.ts +142 -0
  62. package/src/month-separator.test.tsx +183 -0
  63. package/src/month-separator.tsx +238 -0
  64. package/src/month-view-context.ts +26 -0
  65. package/src/month-view-types.ts +89 -0
  66. package/src/month-view.test.tsx +1433 -0
  67. package/src/month-view.tsx +373 -0
  68. package/src/navigation.tsx +350 -0
  69. package/src/overflow.test.ts +124 -0
  70. package/src/overflow.ts +233 -0
  71. package/src/range-preview.tsx +90 -0
  72. package/src/resolve-first-week.test.ts +132 -0
  73. package/src/resolve-first-week.ts +145 -0
  74. package/src/root-selection.ts +621 -0
  75. package/src/selected-range.tsx +163 -0
  76. package/src/temporal-polyfill.test.ts +317 -0
  77. package/src/temporal-polyfill.ts +566 -0
  78. package/src/test-temporal.ts +17 -0
  79. package/src/types.ts +814 -0
  80. package/src/utils.bench.ts +183 -0
  81. package/src/utils.test.ts +983 -0
  82. package/src/utils.ts +493 -0
  83. package/src/view-context.ts +28 -0
  84. package/src/week-number.tsx +118 -0
  85. package/src/weeks-grid.tsx +265 -0
  86. package/src/weeks-keyboard.test.ts +222 -0
  87. package/src/weeks-keyboard.ts +156 -0
  88. package/src/weeks-navigation.tsx +209 -0
  89. package/src/weeks-view-context.ts +26 -0
  90. package/src/weeks-view-state.ts +421 -0
  91. package/src/weeks-view-types.ts +102 -0
  92. package/src/weeks-view.test.tsx +479 -0
  93. package/src/weeks-view.tsx +127 -0
@@ -0,0 +1,2022 @@
1
+ import * as _$react from "react";
2
+ import React$1 from "react";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
+ import { useRender } from "@base-ui/react/use-render";
5
+
6
+ //#region ../node_modules/.pnpm/@js-temporal+polyfill@0.5.1/node_modules/@js-temporal/polyfill/index.d.ts
7
+ declare namespace Temporal$1 {
8
+ export type ComparisonResult = -1 | 0 | 1;
9
+ export type RoundingMode = 'ceil' | 'floor' | 'expand' | 'trunc' | 'halfCeil' | 'halfFloor' | 'halfExpand' | 'halfTrunc' | 'halfEven';
10
+ /**
11
+ * Options for assigning fields using `with()` or entire objects with
12
+ * `from()`.
13
+ * */
14
+ export type AssignmentOptions = {
15
+ /**
16
+ * How to deal with out-of-range values
17
+ *
18
+ * - In `'constrain'` mode, out-of-range values are clamped to the nearest
19
+ * in-range value.
20
+ * - In `'reject'` mode, out-of-range values will cause the function to
21
+ * throw a RangeError.
22
+ *
23
+ * The default is `'constrain'`.
24
+ */
25
+ overflow?: 'constrain' | 'reject';
26
+ };
27
+ /**
28
+ * Options for assigning fields using `Duration.prototype.with()` or entire
29
+ * objects with `Duration.from()`, and for arithmetic with
30
+ * `Duration.prototype.add()` and `Duration.prototype.subtract()`.
31
+ * */
32
+ export type DurationOptions = {
33
+ /**
34
+ * How to deal with out-of-range values
35
+ *
36
+ * - In `'constrain'` mode, out-of-range values are clamped to the nearest
37
+ * in-range value.
38
+ * - In `'balance'` mode, out-of-range values are resolved by balancing them
39
+ * with the next highest unit.
40
+ *
41
+ * The default is `'constrain'`.
42
+ */
43
+ overflow?: 'constrain' | 'balance';
44
+ };
45
+ /**
46
+ * Options for conversions of `Temporal.PlainDateTime` to `Temporal.Instant`
47
+ * */
48
+ export type ToInstantOptions = {
49
+ /**
50
+ * Controls handling of invalid or ambiguous times caused by time zone
51
+ * offset changes like Daylight Saving time (DST) transitions.
52
+ *
53
+ * This option is only relevant if a `DateTime` value does not exist in the
54
+ * destination time zone (e.g. near "Spring Forward" DST transitions), or
55
+ * exists more than once (e.g. near "Fall Back" DST transitions).
56
+ *
57
+ * In case of ambiguous or nonexistent times, this option controls what
58
+ * exact time to return:
59
+ * - `'compatible'`: Equivalent to `'earlier'` for backward transitions like
60
+ * the start of DST in the Spring, and `'later'` for forward transitions
61
+ * like the end of DST in the Fall. This matches the behavior of legacy
62
+ * `Date`, of libraries like moment.js, Luxon, or date-fns, and of
63
+ * cross-platform standards like [RFC 5545
64
+ * (iCalendar)](https://tools.ietf.org/html/rfc5545).
65
+ * - `'earlier'`: The earlier time of two possible times
66
+ * - `'later'`: The later of two possible times
67
+ * - `'reject'`: Throw a RangeError instead
68
+ *
69
+ * The default is `'compatible'`.
70
+ *
71
+ * */
72
+ disambiguation?: 'compatible' | 'earlier' | 'later' | 'reject';
73
+ };
74
+ type OffsetDisambiguationOptions = {
75
+ /**
76
+ * Time zone definitions can change. If an application stores data about
77
+ * events in the future, then stored data about future events may become
78
+ * ambiguous, for example if a country permanently abolishes DST. The
79
+ * `offset` option controls this unusual case.
80
+ *
81
+ * - `'use'` always uses the offset (if it's provided) to calculate the
82
+ * instant. This ensures that the result will match the instant that was
83
+ * originally stored, even if local clock time is different.
84
+ * - `'prefer'` uses the offset if it's valid for the date/time in this time
85
+ * zone, but if it's not valid then the time zone will be used as a
86
+ * fallback to calculate the instant.
87
+ * - `'ignore'` will disregard any provided offset. Instead, the time zone
88
+ * and date/time value are used to calculate the instant. This will keep
89
+ * local clock time unchanged but may result in a different real-world
90
+ * instant.
91
+ * - `'reject'` acts like `'prefer'`, except it will throw a RangeError if
92
+ * the offset is not valid for the given time zone identifier and
93
+ * date/time value.
94
+ *
95
+ * If the ISO string ends in 'Z' then this option is ignored because there
96
+ * is no possibility of ambiguity.
97
+ *
98
+ * If a time zone offset is not present in the input, then this option is
99
+ * ignored because the time zone will always be used to calculate the
100
+ * offset.
101
+ *
102
+ * If the offset is not used, and if the date/time and time zone don't
103
+ * uniquely identify a single instant, then the `disambiguation` option will
104
+ * be used to choose the correct instant. However, if the offset is used
105
+ * then the `disambiguation` option will be ignored.
106
+ */
107
+ offset?: 'use' | 'prefer' | 'ignore' | 'reject';
108
+ };
109
+ export type ZonedDateTimeAssignmentOptions = Partial<AssignmentOptions & ToInstantOptions & OffsetDisambiguationOptions>;
110
+ /**
111
+ * Options for arithmetic operations like `add()` and `subtract()`
112
+ * */
113
+ export type ArithmeticOptions = {
114
+ /**
115
+ * Controls handling of out-of-range arithmetic results.
116
+ *
117
+ * If a result is out of range, then `'constrain'` will clamp the result to
118
+ * the allowed range, while `'reject'` will throw a RangeError.
119
+ *
120
+ * The default is `'constrain'`.
121
+ */
122
+ overflow?: 'constrain' | 'reject';
123
+ };
124
+ export type DateUnit = 'year' | 'month' | 'week' | 'day';
125
+ export type TimeUnit = 'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond';
126
+ export type DateTimeUnit = DateUnit | TimeUnit;
127
+ /**
128
+ * When the name of a unit is provided to a Temporal API as a string, it is
129
+ * usually singular, e.g. 'day' or 'hour'. But plural unit names like 'days'
130
+ * or 'hours' are also accepted.
131
+ * */
132
+ export type PluralUnit<T extends DateTimeUnit> = {
133
+ year: 'years';
134
+ month: 'months';
135
+ week: 'weeks';
136
+ day: 'days';
137
+ hour: 'hours';
138
+ minute: 'minutes';
139
+ second: 'seconds';
140
+ millisecond: 'milliseconds';
141
+ microsecond: 'microseconds';
142
+ nanosecond: 'nanoseconds';
143
+ }[T];
144
+ export type LargestUnit<T extends DateTimeUnit> = 'auto' | T | PluralUnit<T>;
145
+ export type SmallestUnit<T extends DateTimeUnit> = T | PluralUnit<T>;
146
+ export type TotalUnit<T extends DateTimeUnit> = T | PluralUnit<T>;
147
+ /**
148
+ * Options for outputting precision in toString() on types with seconds
149
+ */
150
+ export type ToStringPrecisionOptions = {
151
+ fractionalSecondDigits?: 'auto' | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
152
+ smallestUnit?: SmallestUnit<'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>;
153
+ /**
154
+ * Controls how rounding is performed:
155
+ * - `halfExpand`: Round to the nearest of the values allowed by
156
+ * `roundingIncrement` and `smallestUnit`. When there is a tie, round up.
157
+ * This mode is the default.
158
+ * - `ceil`: Always round up, towards the end of time.
159
+ * - `trunc`: Always round down, towards the beginning of time.
160
+ * - `floor`: Also round down, towards the beginning of time. This mode acts
161
+ * the same as `trunc`, but it's included for consistency with
162
+ * `Temporal.Duration.round()` where negative values are allowed and
163
+ * `trunc` rounds towards zero, unlike `floor` which rounds towards
164
+ * negative infinity which is usually unexpected. For this reason, `trunc`
165
+ * is recommended for most use cases.
166
+ */
167
+ roundingMode?: RoundingMode;
168
+ };
169
+ export type ShowCalendarOption = {
170
+ calendarName?: 'auto' | 'always' | 'never' | 'critical';
171
+ };
172
+ export type CalendarTypeToStringOptions = Partial<ToStringPrecisionOptions & ShowCalendarOption>;
173
+ export type ZonedDateTimeToStringOptions = Partial<CalendarTypeToStringOptions & {
174
+ timeZoneName?: 'auto' | 'never' | 'critical';
175
+ offset?: 'auto' | 'never';
176
+ }>;
177
+ export type InstantToStringOptions = Partial<ToStringPrecisionOptions & {
178
+ timeZone: TimeZoneLike;
179
+ }>;
180
+ /**
181
+ * Options to control the result of `until()` and `since()` methods in
182
+ * `Temporal` types.
183
+ */
184
+ export interface DifferenceOptions<T extends DateTimeUnit> {
185
+ /**
186
+ * The unit to round to. For example, to round to the nearest minute, use
187
+ * `smallestUnit: 'minute'`. This property is optional for `until()` and
188
+ * `since()`, because those methods default behavior is not to round.
189
+ * However, the same property is required for `round()`.
190
+ */
191
+ smallestUnit?: SmallestUnit<T>;
192
+ /**
193
+ * The largest unit to allow in the resulting `Temporal.Duration` object.
194
+ *
195
+ * Larger units will be "balanced" into smaller units. For example, if
196
+ * `largestUnit` is `'minute'` then a two-hour duration will be output as a
197
+ * 120-minute duration.
198
+ *
199
+ * Valid values may include `'year'`, `'month'`, `'week'`, `'day'`,
200
+ * `'hour'`, `'minute'`, `'second'`, `'millisecond'`, `'microsecond'`,
201
+ * `'nanosecond'` and `'auto'`, although some types may throw an exception
202
+ * if a value is used that would produce an invalid result. For example,
203
+ * `hours` is not accepted by `Temporal.PlainDate.prototype.since()`.
204
+ *
205
+ * The default is always `'auto'`, though the meaning of this depends on the
206
+ * type being used.
207
+ */
208
+ largestUnit?: LargestUnit<T>;
209
+ /**
210
+ * Allows rounding to an integer number of units. For example, to round to
211
+ * increments of a half hour, use `{ smallestUnit: 'minute',
212
+ * roundingIncrement: 30 }`.
213
+ */
214
+ roundingIncrement?: number;
215
+ /**
216
+ * Controls how rounding is performed:
217
+ * - `halfExpand`: Round to the nearest of the values allowed by
218
+ * `roundingIncrement` and `smallestUnit`. When there is a tie, round away
219
+ * from zero like `ceil` for positive durations and like `floor` for
220
+ * negative durations.
221
+ * - `ceil`: Always round up, towards the end of time.
222
+ * - `trunc`: Always round down, towards the beginning of time. This mode is
223
+ * the default.
224
+ * - `floor`: Also round down, towards the beginning of time. This mode acts
225
+ * the same as `trunc`, but it's included for consistency with
226
+ * `Temporal.Duration.round()` where negative values are allowed and
227
+ * `trunc` rounds towards zero, unlike `floor` which rounds towards
228
+ * negative infinity which is usually unexpected. For this reason, `trunc`
229
+ * is recommended for most use cases.
230
+ */
231
+ roundingMode?: RoundingMode;
232
+ }
233
+ /**
234
+ * `round` methods take one required parameter. If a string is provided, the
235
+ * resulting `Temporal.Duration` object will be rounded to that unit. If an
236
+ * object is provided, its `smallestUnit` property is required while other
237
+ * properties are optional. A string is treated the same as an object whose
238
+ * `smallestUnit` property value is that string.
239
+ */
240
+ export type RoundTo<T extends DateTimeUnit> = SmallestUnit<T> | {
241
+ /**
242
+ * The unit to round to. For example, to round to the nearest minute,
243
+ * use `smallestUnit: 'minute'`. This option is required. Note that the
244
+ * same-named property is optional when passed to `until` or `since`
245
+ * methods, because those methods do no rounding by default.
246
+ */
247
+ smallestUnit: SmallestUnit<T>;
248
+ /**
249
+ * Allows rounding to an integer number of units. For example, to round to
250
+ * increments of a half hour, use `{ smallestUnit: 'minute',
251
+ * roundingIncrement: 30 }`.
252
+ */
253
+ roundingIncrement?: number;
254
+ /**
255
+ * Controls how rounding is performed:
256
+ * - `halfExpand`: Round to the nearest of the values allowed by
257
+ * `roundingIncrement` and `smallestUnit`. When there is a tie, round up.
258
+ * This mode is the default.
259
+ * - `ceil`: Always round up, towards the end of time.
260
+ * - `trunc`: Always round down, towards the beginning of time.
261
+ * - `floor`: Also round down, towards the beginning of time. This mode acts
262
+ * the same as `trunc`, but it's included for consistency with
263
+ * `Temporal.Duration.round()` where negative values are allowed and
264
+ * `trunc` rounds towards zero, unlike `floor` which rounds towards
265
+ * negative infinity which is usually unexpected. For this reason, `trunc`
266
+ * is recommended for most use cases.
267
+ */
268
+ roundingMode?: RoundingMode;
269
+ };
270
+ /**
271
+ * The `round` method of the `Temporal.Duration` accepts one required
272
+ * parameter. If a string is provided, the resulting `Temporal.Duration`
273
+ * object will be rounded to that unit. If an object is provided, the
274
+ * `smallestUnit` and/or `largestUnit` property is required, while other
275
+ * properties are optional. A string parameter is treated the same as an
276
+ * object whose `smallestUnit` property value is that string.
277
+ */
278
+ export type DurationRoundTo = SmallestUnit<DateTimeUnit> | (({
279
+ /**
280
+ * The unit to round to. For example, to round to the nearest
281
+ * minute, use `smallestUnit: 'minute'`. This property is normally
282
+ * required, but is optional if `largestUnit` is provided and not
283
+ * undefined.
284
+ */
285
+ smallestUnit: SmallestUnit<DateTimeUnit>;
286
+ /**
287
+ * The largest unit to allow in the resulting `Temporal.Duration`
288
+ * object.
289
+ *
290
+ * Larger units will be "balanced" into smaller units. For example,
291
+ * if `largestUnit` is `'minute'` then a two-hour duration will be
292
+ * output as a 120-minute duration.
293
+ *
294
+ * Valid values include `'year'`, `'month'`, `'week'`, `'day'`,
295
+ * `'hour'`, `'minute'`, `'second'`, `'millisecond'`,
296
+ * `'microsecond'`, `'nanosecond'` and `'auto'`.
297
+ *
298
+ * The default is `'auto'`, which means "the largest nonzero unit in
299
+ * the input duration". This default prevents expanding durations to
300
+ * larger units unless the caller opts into this behavior.
301
+ *
302
+ * If `smallestUnit` is larger, then `smallestUnit` will be used as
303
+ * `largestUnit`, superseding a caller-supplied or default value.
304
+ */
305
+ largestUnit?: LargestUnit<DateTimeUnit>;
306
+ } | {
307
+ /**
308
+ * The unit to round to. For example, to round to the nearest
309
+ * minute, use `smallestUnit: 'minute'`. This property is normally
310
+ * required, but is optional if `largestUnit` is provided and not
311
+ * undefined.
312
+ */
313
+ smallestUnit?: SmallestUnit<DateTimeUnit>;
314
+ /**
315
+ * The largest unit to allow in the resulting `Temporal.Duration`
316
+ * object.
317
+ *
318
+ * Larger units will be "balanced" into smaller units. For example,
319
+ * if `largestUnit` is `'minute'` then a two-hour duration will be
320
+ * output as a 120-minute duration.
321
+ *
322
+ * Valid values include `'year'`, `'month'`, `'week'`, `'day'`,
323
+ * `'hour'`, `'minute'`, `'second'`, `'millisecond'`,
324
+ * `'microsecond'`, `'nanosecond'` and `'auto'`.
325
+ *
326
+ * The default is `'auto'`, which means "the largest nonzero unit in
327
+ * the input duration". This default prevents expanding durations to
328
+ * larger units unless the caller opts into this behavior.
329
+ *
330
+ * If `smallestUnit` is larger, then `smallestUnit` will be used as
331
+ * `largestUnit`, superseding a caller-supplied or default value.
332
+ */
333
+ largestUnit: LargestUnit<DateTimeUnit>;
334
+ }) & {
335
+ /**
336
+ * Allows rounding to an integer number of units. For example, to round
337
+ * to increments of a half hour, use `{ smallestUnit: 'minute',
338
+ * roundingIncrement: 30 }`.
339
+ */
340
+ roundingIncrement?: number;
341
+ /**
342
+ * Controls how rounding is performed:
343
+ * - `halfExpand`: Round to the nearest of the values allowed by
344
+ * `roundingIncrement` and `smallestUnit`. When there is a tie, round
345
+ * away from zero like `ceil` for positive durations and like `floor`
346
+ * for negative durations. This mode is the default.
347
+ * - `ceil`: Always round towards positive infinity. For negative
348
+ * durations this option will decrease the absolute value of the
349
+ * duration which may be unexpected. To round away from zero, use
350
+ * `ceil` for positive durations and `floor` for negative durations.
351
+ * - `trunc`: Always round down towards zero.
352
+ * - `floor`: Always round towards negative infinity. This mode acts the
353
+ * same as `trunc` for positive durations but for negative durations
354
+ * it will increase the absolute value of the result which may be
355
+ * unexpected. For this reason, `trunc` is recommended for most "round
356
+ * down" use cases.
357
+ */
358
+ roundingMode?: RoundingMode;
359
+ /**
360
+ * The starting point to use for rounding and conversions when
361
+ * variable-length units (years, months, weeks depending on the
362
+ * calendar) are involved. This option is required if any of the
363
+ * following are true:
364
+ * - `unit` is `'week'` or larger units
365
+ * - `this` has a nonzero value for `weeks` or larger units
366
+ *
367
+ * This value must be either a `Temporal.PlainDateTime`, a
368
+ * `Temporal.ZonedDateTime`, or a string or object value that can be
369
+ * passed to `from()` of those types. Examples:
370
+ * - `'2020-01-01T00:00-08:00[America/Los_Angeles]'`
371
+ * - `'2020-01-01'`
372
+ * - `Temporal.PlainDate.from('2020-01-01')`
373
+ *
374
+ * `Temporal.ZonedDateTime` will be tried first because it's more
375
+ * specific, with `Temporal.PlainDateTime` as a fallback.
376
+ *
377
+ * If the value resolves to a `Temporal.ZonedDateTime`, then operation
378
+ * will adjust for DST and other time zone transitions. Otherwise
379
+ * (including if this option is omitted), then the operation will ignore
380
+ * time zone transitions and all days will be assumed to be 24 hours
381
+ * long.
382
+ */
383
+ relativeTo?: Temporal$1.PlainDateTime | Temporal$1.ZonedDateTime | PlainDateTimeLike | ZonedDateTimeLike | string;
384
+ });
385
+ /**
386
+ * Options to control behavior of `Duration.prototype.total()`
387
+ */
388
+ export type DurationTotalOf = TotalUnit<DateTimeUnit> | {
389
+ /**
390
+ * The unit to convert the duration to. This option is required.
391
+ */
392
+ unit: TotalUnit<DateTimeUnit>;
393
+ /**
394
+ * The starting point to use when variable-length units (years, months,
395
+ * weeks depending on the calendar) are involved. This option is required if
396
+ * any of the following are true:
397
+ * - `unit` is `'week'` or larger units
398
+ * - `this` has a nonzero value for `weeks` or larger units
399
+ *
400
+ * This value must be either a `Temporal.PlainDateTime`, a
401
+ * `Temporal.ZonedDateTime`, or a string or object value that can be passed
402
+ * to `from()` of those types. Examples:
403
+ * - `'2020-01-01T00:00-08:00[America/Los_Angeles]'`
404
+ * - `'2020-01-01'`
405
+ * - `Temporal.PlainDate.from('2020-01-01')`
406
+ *
407
+ * `Temporal.ZonedDateTime` will be tried first because it's more
408
+ * specific, with `Temporal.PlainDateTime` as a fallback.
409
+ *
410
+ * If the value resolves to a `Temporal.ZonedDateTime`, then operation will
411
+ * adjust for DST and other time zone transitions. Otherwise (including if
412
+ * this option is omitted), then the operation will ignore time zone
413
+ * transitions and all days will be assumed to be 24 hours long.
414
+ */
415
+ relativeTo?: Temporal$1.ZonedDateTime | Temporal$1.PlainDateTime | ZonedDateTimeLike | PlainDateTimeLike | string;
416
+ };
417
+ /**
418
+ * Options to control behavior of `Duration.compare()`
419
+ */
420
+ export interface DurationArithmeticOptions {
421
+ /**
422
+ * The starting point to use when variable-length units (years, months,
423
+ * weeks depending on the calendar) are involved. This option is required if
424
+ * either of the durations has a nonzero value for `weeks` or larger units.
425
+ *
426
+ * This value must be either a `Temporal.PlainDateTime`, a
427
+ * `Temporal.ZonedDateTime`, or a string or object value that can be passed
428
+ * to `from()` of those types. Examples:
429
+ * - `'2020-01-01T00:00-08:00[America/Los_Angeles]'`
430
+ * - `'2020-01-01'`
431
+ * - `Temporal.PlainDate.from('2020-01-01')`
432
+ *
433
+ * `Temporal.ZonedDateTime` will be tried first because it's more
434
+ * specific, with `Temporal.PlainDateTime` as a fallback.
435
+ *
436
+ * If the value resolves to a `Temporal.ZonedDateTime`, then operation will
437
+ * adjust for DST and other time zone transitions. Otherwise (including if
438
+ * this option is omitted), then the operation will ignore time zone
439
+ * transitions and all days will be assumed to be 24 hours long.
440
+ */
441
+ relativeTo?: Temporal$1.ZonedDateTime | Temporal$1.PlainDateTime | ZonedDateTimeLike | PlainDateTimeLike | string;
442
+ }
443
+ /**
444
+ * Options to control behaviour of `ZonedDateTime.prototype.getTimeZoneTransition()`
445
+ */
446
+ export type TransitionDirection = 'next' | 'previous' | {
447
+ direction: 'next' | 'previous';
448
+ }; // Handle Intl.LocalesArgument regardless of whether the TS version has it yet
449
+ type LocalesArgument = ConstructorParameters<typeof Intl$1.DateTimeFormat>[0]; // Provide a quick replacement for Intl.DurationFormatOptions if not in TS
450
+ type DurationFormatOptions = typeof Intl$1 extends {
451
+ DurationFormat: any;
452
+ } ? ConstructorParameters<(typeof Intl$1)['DurationFormat']>[1] : Record<string, unknown>;
453
+ export type DurationLike = {
454
+ years?: number;
455
+ months?: number;
456
+ weeks?: number;
457
+ days?: number;
458
+ hours?: number;
459
+ minutes?: number;
460
+ seconds?: number;
461
+ milliseconds?: number;
462
+ microseconds?: number;
463
+ nanoseconds?: number;
464
+ };
465
+ /**
466
+ *
467
+ * A `Temporal.Duration` represents an immutable duration of time which can be
468
+ * used in date/time arithmetic.
469
+ *
470
+ * See https://tc39.es/proposal-temporal/docs/duration.html for more details.
471
+ */
472
+ export class Duration {
473
+ static from(item: Temporal$1.Duration | DurationLike | string): Temporal$1.Duration;
474
+ static compare(one: Temporal$1.Duration | DurationLike | string, two: Temporal$1.Duration | DurationLike | string, options?: DurationArithmeticOptions): ComparisonResult;
475
+ constructor(years?: number, months?: number, weeks?: number, days?: number, hours?: number, minutes?: number, seconds?: number, milliseconds?: number, microseconds?: number, nanoseconds?: number);
476
+ readonly sign: -1 | 0 | 1;
477
+ readonly blank: boolean;
478
+ readonly years: number;
479
+ readonly months: number;
480
+ readonly weeks: number;
481
+ readonly days: number;
482
+ readonly hours: number;
483
+ readonly minutes: number;
484
+ readonly seconds: number;
485
+ readonly milliseconds: number;
486
+ readonly microseconds: number;
487
+ readonly nanoseconds: number;
488
+ negated(): Temporal$1.Duration;
489
+ abs(): Temporal$1.Duration;
490
+ with(durationLike: DurationLike): Temporal$1.Duration;
491
+ add(other: Temporal$1.Duration | DurationLike | string): Temporal$1.Duration;
492
+ subtract(other: Temporal$1.Duration | DurationLike | string): Temporal$1.Duration;
493
+ round(roundTo: DurationRoundTo): Temporal$1.Duration;
494
+ total(totalOf: DurationTotalOf): number;
495
+ toLocaleString(locales?: LocalesArgument, options?: DurationFormatOptions): string;
496
+ toJSON(): string;
497
+ toString(options?: ToStringPrecisionOptions): string;
498
+ valueOf(): never;
499
+ readonly [Symbol.toStringTag]: 'Temporal.Duration';
500
+ }
501
+ /**
502
+ * A `Temporal.Instant` is an exact point in time, with a precision in
503
+ * nanoseconds. No time zone or calendar information is present. Therefore,
504
+ * `Temporal.Instant` has no concept of days, months, or even hours.
505
+ *
506
+ * For convenience of interoperability, it internally uses nanoseconds since
507
+ * the {@link https://en.wikipedia.org/wiki/Unix_time|Unix epoch} (midnight
508
+ * UTC on January 1, 1970). However, a `Temporal.Instant` can be created from
509
+ * any of several expressions that refer to a single point in time, including
510
+ * an {@link https://datatracker.ietf.org/doc/html/rfc9557|RFC 9557 string}
511
+ * with a time zone offset such as '2020-01-23T17:04:36.491865121-08:00'.
512
+ *
513
+ * See https://tc39.es/proposal-temporal/docs/instant.html for more details.
514
+ */
515
+ export class Instant {
516
+ static fromEpochMilliseconds(epochMilliseconds: number): Temporal$1.Instant;
517
+ static fromEpochNanoseconds(epochNanoseconds: bigint): Temporal$1.Instant;
518
+ static from(item: Temporal$1.Instant | string): Temporal$1.Instant;
519
+ static compare(one: Temporal$1.Instant | string, two: Temporal$1.Instant | string): ComparisonResult;
520
+ constructor(epochNanoseconds: bigint);
521
+ readonly epochMilliseconds: number;
522
+ readonly epochNanoseconds: bigint;
523
+ equals(other: Temporal$1.Instant | string): boolean;
524
+ add(durationLike: Omit<Temporal$1.Duration | DurationLike, 'years' | 'months' | 'weeks' | 'days'> | string): Temporal$1.Instant;
525
+ subtract(durationLike: Omit<Temporal$1.Duration | DurationLike, 'years' | 'months' | 'weeks' | 'days'> | string): Temporal$1.Instant;
526
+ until(other: Temporal$1.Instant | string, options?: DifferenceOptions<'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>): Temporal$1.Duration;
527
+ since(other: Temporal$1.Instant | string, options?: DifferenceOptions<'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>): Temporal$1.Duration;
528
+ round(roundTo: RoundTo<'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>): Temporal$1.Instant;
529
+ toZonedDateTimeISO(tzLike: TimeZoneLike): Temporal$1.ZonedDateTime;
530
+ toLocaleString(locales?: LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions): string;
531
+ toJSON(): string;
532
+ toString(options?: InstantToStringOptions): string;
533
+ valueOf(): never;
534
+ readonly [Symbol.toStringTag]: 'Temporal.Instant';
535
+ }
536
+ /**
537
+ * Any of these types can be passed to Temporal methods instead of a calendar ID.
538
+ * */
539
+ export type CalendarLike = string | ZonedDateTime | PlainDateTime | PlainDate | PlainYearMonth | PlainMonthDay;
540
+ export type PlainDateLike = {
541
+ era?: string | undefined;
542
+ eraYear?: number | undefined;
543
+ year?: number;
544
+ month?: number;
545
+ monthCode?: string;
546
+ day?: number;
547
+ calendar?: CalendarLike;
548
+ };
549
+ /**
550
+ * A `Temporal.PlainDate` represents a calendar date. "Calendar date" refers to the
551
+ * concept of a date as expressed in everyday usage, independent of any time
552
+ * zone. For example, it could be used to represent an event on a calendar
553
+ * which happens during the whole day no matter which time zone it's happening
554
+ * in.
555
+ *
556
+ * See https://tc39.es/proposal-temporal/docs/plaindate.html for more details.
557
+ */
558
+ export class PlainDate {
559
+ static from(item: Temporal$1.PlainDate | PlainDateLike | string, options?: AssignmentOptions): Temporal$1.PlainDate;
560
+ static compare(one: Temporal$1.PlainDate | PlainDateLike | string, two: Temporal$1.PlainDate | PlainDateLike | string): ComparisonResult;
561
+ constructor(isoYear: number, isoMonth: number, isoDay: number, calendar?: string);
562
+ readonly era: string | undefined;
563
+ readonly eraYear: number | undefined;
564
+ readonly year: number;
565
+ readonly month: number;
566
+ readonly monthCode: string;
567
+ readonly day: number;
568
+ readonly calendarId: string;
569
+ readonly dayOfWeek: number;
570
+ readonly dayOfYear: number;
571
+ readonly weekOfYear: number | undefined;
572
+ readonly yearOfWeek: number | undefined;
573
+ readonly daysInWeek: number;
574
+ readonly daysInYear: number;
575
+ readonly daysInMonth: number;
576
+ readonly monthsInYear: number;
577
+ readonly inLeapYear: boolean;
578
+ equals(other: Temporal$1.PlainDate | PlainDateLike | string): boolean;
579
+ with(dateLike: PlainDateLike, options?: AssignmentOptions): Temporal$1.PlainDate;
580
+ withCalendar(calendar: CalendarLike): Temporal$1.PlainDate;
581
+ add(durationLike: Temporal$1.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal$1.PlainDate;
582
+ subtract(durationLike: Temporal$1.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal$1.PlainDate;
583
+ until(other: Temporal$1.PlainDate | PlainDateLike | string, options?: DifferenceOptions<'year' | 'month' | 'week' | 'day'>): Temporal$1.Duration;
584
+ since(other: Temporal$1.PlainDate | PlainDateLike | string, options?: DifferenceOptions<'year' | 'month' | 'week' | 'day'>): Temporal$1.Duration;
585
+ toPlainDateTime(temporalTime?: Temporal$1.PlainTime | PlainTimeLike | string): Temporal$1.PlainDateTime;
586
+ toZonedDateTime(timeZoneAndTime: string | {
587
+ timeZone: TimeZoneLike;
588
+ plainTime?: Temporal$1.PlainTime | PlainTimeLike | string;
589
+ }): Temporal$1.ZonedDateTime;
590
+ toPlainYearMonth(): Temporal$1.PlainYearMonth;
591
+ toPlainMonthDay(): Temporal$1.PlainMonthDay;
592
+ toLocaleString(locales?: LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions): string;
593
+ toJSON(): string;
594
+ toString(options?: ShowCalendarOption): string;
595
+ valueOf(): never;
596
+ readonly [Symbol.toStringTag]: 'Temporal.PlainDate';
597
+ }
598
+ export type PlainDateTimeLike = {
599
+ era?: string | undefined;
600
+ eraYear?: number | undefined;
601
+ year?: number;
602
+ month?: number;
603
+ monthCode?: string;
604
+ day?: number;
605
+ hour?: number;
606
+ minute?: number;
607
+ second?: number;
608
+ millisecond?: number;
609
+ microsecond?: number;
610
+ nanosecond?: number;
611
+ calendar?: CalendarLike;
612
+ };
613
+ /**
614
+ * A `Temporal.PlainDateTime` represents a calendar date and wall-clock time, with
615
+ * a precision in nanoseconds, and without any time zone. Of the Temporal
616
+ * classes carrying human-readable time information, it is the most general
617
+ * and complete one. `Temporal.PlainDate`, `Temporal.PlainTime`, `Temporal.PlainYearMonth`,
618
+ * and `Temporal.PlainMonthDay` all carry less information and should be used when
619
+ * complete information is not required.
620
+ *
621
+ * See https://tc39.es/proposal-temporal/docs/plaindatetime.html for more details.
622
+ */
623
+ export class PlainDateTime {
624
+ static from(item: Temporal$1.PlainDateTime | PlainDateTimeLike | string, options?: AssignmentOptions): Temporal$1.PlainDateTime;
625
+ static compare(one: Temporal$1.PlainDateTime | PlainDateTimeLike | string, two: Temporal$1.PlainDateTime | PlainDateTimeLike | string): ComparisonResult;
626
+ constructor(isoYear: number, isoMonth: number, isoDay: number, hour?: number, minute?: number, second?: number, millisecond?: number, microsecond?: number, nanosecond?: number, calendar?: string);
627
+ readonly era: string | undefined;
628
+ readonly eraYear: number | undefined;
629
+ readonly year: number;
630
+ readonly month: number;
631
+ readonly monthCode: string;
632
+ readonly day: number;
633
+ readonly hour: number;
634
+ readonly minute: number;
635
+ readonly second: number;
636
+ readonly millisecond: number;
637
+ readonly microsecond: number;
638
+ readonly nanosecond: number;
639
+ readonly calendarId: string;
640
+ readonly dayOfWeek: number;
641
+ readonly dayOfYear: number;
642
+ readonly weekOfYear: number | undefined;
643
+ readonly yearOfWeek: number | undefined;
644
+ readonly daysInWeek: number;
645
+ readonly daysInYear: number;
646
+ readonly daysInMonth: number;
647
+ readonly monthsInYear: number;
648
+ readonly inLeapYear: boolean;
649
+ equals(other: Temporal$1.PlainDateTime | PlainDateTimeLike | string): boolean;
650
+ with(dateTimeLike: PlainDateTimeLike, options?: AssignmentOptions): Temporal$1.PlainDateTime;
651
+ withPlainTime(timeLike?: Temporal$1.PlainTime | PlainTimeLike | string): Temporal$1.PlainDateTime;
652
+ withCalendar(calendar: CalendarLike): Temporal$1.PlainDateTime;
653
+ add(durationLike: Temporal$1.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal$1.PlainDateTime;
654
+ subtract(durationLike: Temporal$1.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal$1.PlainDateTime;
655
+ until(other: Temporal$1.PlainDateTime | PlainDateTimeLike | string, options?: DifferenceOptions<'year' | 'month' | 'week' | 'day' | 'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>): Temporal$1.Duration;
656
+ since(other: Temporal$1.PlainDateTime | PlainDateTimeLike | string, options?: DifferenceOptions<'year' | 'month' | 'week' | 'day' | 'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>): Temporal$1.Duration;
657
+ round(roundTo: RoundTo<'day' | 'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>): Temporal$1.PlainDateTime;
658
+ toZonedDateTime(tzLike: TimeZoneLike, options?: ToInstantOptions): Temporal$1.ZonedDateTime;
659
+ toPlainDate(): Temporal$1.PlainDate;
660
+ toPlainTime(): Temporal$1.PlainTime;
661
+ toLocaleString(locales?: LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions): string;
662
+ toJSON(): string;
663
+ toString(options?: CalendarTypeToStringOptions): string;
664
+ valueOf(): never;
665
+ readonly [Symbol.toStringTag]: 'Temporal.PlainDateTime';
666
+ }
667
+ export type PlainMonthDayLike = {
668
+ era?: string | undefined;
669
+ eraYear?: number | undefined;
670
+ year?: number;
671
+ month?: number;
672
+ monthCode?: string;
673
+ day?: number;
674
+ calendar?: CalendarLike;
675
+ };
676
+ /**
677
+ * A `Temporal.PlainMonthDay` represents a particular day on the calendar, but
678
+ * without a year. For example, it could be used to represent a yearly
679
+ * recurring event, like "Bastille Day is on the 14th of July."
680
+ *
681
+ * See https://tc39.es/proposal-temporal/docs/plainmonthday.html for more details.
682
+ */
683
+ export class PlainMonthDay {
684
+ static from(item: Temporal$1.PlainMonthDay | PlainMonthDayLike | string, options?: AssignmentOptions): Temporal$1.PlainMonthDay;
685
+ constructor(isoMonth: number, isoDay: number, calendar?: string, referenceISOYear?: number);
686
+ readonly monthCode: string;
687
+ readonly day: number;
688
+ readonly calendarId: string;
689
+ equals(other: Temporal$1.PlainMonthDay | PlainMonthDayLike | string): boolean;
690
+ with(monthDayLike: PlainMonthDayLike, options?: AssignmentOptions): Temporal$1.PlainMonthDay;
691
+ toPlainDate(year: {
692
+ year: number;
693
+ }): Temporal$1.PlainDate;
694
+ toLocaleString(locales?: LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions): string;
695
+ toJSON(): string;
696
+ toString(options?: ShowCalendarOption): string;
697
+ valueOf(): never;
698
+ readonly [Symbol.toStringTag]: 'Temporal.PlainMonthDay';
699
+ }
700
+ export type PlainTimeLike = {
701
+ hour?: number;
702
+ minute?: number;
703
+ second?: number;
704
+ millisecond?: number;
705
+ microsecond?: number;
706
+ nanosecond?: number;
707
+ };
708
+ /**
709
+ * A `Temporal.PlainTime` represents a wall-clock time, with a precision in
710
+ * nanoseconds, and without any time zone. "Wall-clock time" refers to the
711
+ * concept of a time as expressed in everyday usage — the time that you read
712
+ * off the clock on the wall. For example, it could be used to represent an
713
+ * event that happens daily at a certain time, no matter what time zone.
714
+ *
715
+ * `Temporal.PlainTime` refers to a time with no associated calendar date; if you
716
+ * need to refer to a specific time on a specific day, use
717
+ * `Temporal.PlainDateTime`. A `Temporal.PlainTime` can be converted into a
718
+ * `Temporal.PlainDateTime` by combining it with a `Temporal.PlainDate` using the
719
+ * `toPlainDateTime()` method.
720
+ *
721
+ * See https://tc39.es/proposal-temporal/docs/plaintime.html for more details.
722
+ */
723
+ export class PlainTime {
724
+ static from(item: Temporal$1.PlainTime | PlainTimeLike | string, options?: AssignmentOptions): Temporal$1.PlainTime;
725
+ static compare(one: Temporal$1.PlainTime | PlainTimeLike | string, two: Temporal$1.PlainTime | PlainTimeLike | string): ComparisonResult;
726
+ constructor(hour?: number, minute?: number, second?: number, millisecond?: number, microsecond?: number, nanosecond?: number);
727
+ readonly hour: number;
728
+ readonly minute: number;
729
+ readonly second: number;
730
+ readonly millisecond: number;
731
+ readonly microsecond: number;
732
+ readonly nanosecond: number;
733
+ equals(other: Temporal$1.PlainTime | PlainTimeLike | string): boolean;
734
+ with(timeLike: Temporal$1.PlainTime | PlainTimeLike, options?: AssignmentOptions): Temporal$1.PlainTime;
735
+ add(durationLike: Temporal$1.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal$1.PlainTime;
736
+ subtract(durationLike: Temporal$1.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal$1.PlainTime;
737
+ until(other: Temporal$1.PlainTime | PlainTimeLike | string, options?: DifferenceOptions<'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>): Temporal$1.Duration;
738
+ since(other: Temporal$1.PlainTime | PlainTimeLike | string, options?: DifferenceOptions<'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>): Temporal$1.Duration;
739
+ round(roundTo: RoundTo<'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>): Temporal$1.PlainTime;
740
+ toLocaleString(locales?: LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions): string;
741
+ toJSON(): string;
742
+ toString(options?: ToStringPrecisionOptions): string;
743
+ valueOf(): never;
744
+ readonly [Symbol.toStringTag]: 'Temporal.PlainTime';
745
+ }
746
+ /**
747
+ * To provide a time zone to any non-constructor Temporal method, any of the
748
+ * following are allowed:
749
+ * - An IANA time zone ID string like "Europe/Paris"
750
+ * - An RFC 9557 string that includes a time zone annotation like
751
+ * "2025-03-13T05:40:57.499+01:00[Europe/Paris]"
752
+ * - A `Temporal.ZonedDateTime` object
753
+ */
754
+ export type TimeZoneLike = string | ZonedDateTime;
755
+ export type PlainYearMonthLike = {
756
+ era?: string | undefined;
757
+ eraYear?: number | undefined;
758
+ year?: number;
759
+ month?: number;
760
+ monthCode?: string;
761
+ calendar?: CalendarLike;
762
+ };
763
+ /**
764
+ * A `Temporal.PlainYearMonth` represents a particular month on the calendar. For
765
+ * example, it could be used to represent a particular instance of a monthly
766
+ * recurring event, like "the June 2019 meeting".
767
+ *
768
+ * See https://tc39.es/proposal-temporal/docs/plainyearmonth.html for more details.
769
+ */
770
+ export class PlainYearMonth {
771
+ static from(item: Temporal$1.PlainYearMonth | PlainYearMonthLike | string, options?: AssignmentOptions): Temporal$1.PlainYearMonth;
772
+ static compare(one: Temporal$1.PlainYearMonth | PlainYearMonthLike | string, two: Temporal$1.PlainYearMonth | PlainYearMonthLike | string): ComparisonResult;
773
+ constructor(isoYear: number, isoMonth: number, calendar?: string, referenceISODay?: number);
774
+ readonly era: string | undefined;
775
+ readonly eraYear: number | undefined;
776
+ readonly year: number;
777
+ readonly month: number;
778
+ readonly monthCode: string;
779
+ readonly calendarId: string;
780
+ readonly daysInMonth: number;
781
+ readonly daysInYear: number;
782
+ readonly monthsInYear: number;
783
+ readonly inLeapYear: boolean;
784
+ equals(other: Temporal$1.PlainYearMonth | PlainYearMonthLike | string): boolean;
785
+ with(yearMonthLike: PlainYearMonthLike, options?: AssignmentOptions): Temporal$1.PlainYearMonth;
786
+ add(durationLike: Temporal$1.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal$1.PlainYearMonth;
787
+ subtract(durationLike: Temporal$1.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal$1.PlainYearMonth;
788
+ until(other: Temporal$1.PlainYearMonth | PlainYearMonthLike | string, options?: DifferenceOptions<'year' | 'month'>): Temporal$1.Duration;
789
+ since(other: Temporal$1.PlainYearMonth | PlainYearMonthLike | string, options?: DifferenceOptions<'year' | 'month'>): Temporal$1.Duration;
790
+ toPlainDate(day: {
791
+ day: number;
792
+ }): Temporal$1.PlainDate;
793
+ toLocaleString(locales?: LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions): string;
794
+ toJSON(): string;
795
+ toString(options?: ShowCalendarOption): string;
796
+ valueOf(): never;
797
+ readonly [Symbol.toStringTag]: 'Temporal.PlainYearMonth';
798
+ }
799
+ export type ZonedDateTimeLike = {
800
+ era?: string | undefined;
801
+ eraYear?: number | undefined;
802
+ year?: number;
803
+ month?: number;
804
+ monthCode?: string;
805
+ day?: number;
806
+ hour?: number;
807
+ minute?: number;
808
+ second?: number;
809
+ millisecond?: number;
810
+ microsecond?: number;
811
+ nanosecond?: number;
812
+ offset?: string;
813
+ timeZone?: TimeZoneLike;
814
+ calendar?: CalendarLike;
815
+ };
816
+ export class ZonedDateTime {
817
+ static from(item: Temporal$1.ZonedDateTime | ZonedDateTimeLike | string, options?: ZonedDateTimeAssignmentOptions): ZonedDateTime;
818
+ static compare(one: Temporal$1.ZonedDateTime | ZonedDateTimeLike | string, two: Temporal$1.ZonedDateTime | ZonedDateTimeLike | string): ComparisonResult;
819
+ constructor(epochNanoseconds: bigint, timeZone: string, calendar?: string);
820
+ readonly era: string | undefined;
821
+ readonly eraYear: number | undefined;
822
+ readonly year: number;
823
+ readonly month: number;
824
+ readonly monthCode: string;
825
+ readonly day: number;
826
+ readonly hour: number;
827
+ readonly minute: number;
828
+ readonly second: number;
829
+ readonly millisecond: number;
830
+ readonly microsecond: number;
831
+ readonly nanosecond: number;
832
+ readonly timeZoneId: string;
833
+ readonly calendarId: string;
834
+ readonly dayOfWeek: number;
835
+ readonly dayOfYear: number;
836
+ readonly weekOfYear: number | undefined;
837
+ readonly yearOfWeek: number | undefined;
838
+ readonly hoursInDay: number;
839
+ readonly daysInWeek: number;
840
+ readonly daysInMonth: number;
841
+ readonly daysInYear: number;
842
+ readonly monthsInYear: number;
843
+ readonly inLeapYear: boolean;
844
+ readonly offsetNanoseconds: number;
845
+ readonly offset: string;
846
+ readonly epochMilliseconds: number;
847
+ readonly epochNanoseconds: bigint;
848
+ equals(other: Temporal$1.ZonedDateTime | ZonedDateTimeLike | string): boolean;
849
+ with(zonedDateTimeLike: ZonedDateTimeLike, options?: ZonedDateTimeAssignmentOptions): Temporal$1.ZonedDateTime;
850
+ withPlainTime(timeLike?: Temporal$1.PlainTime | PlainTimeLike | string): Temporal$1.ZonedDateTime;
851
+ withCalendar(calendar: CalendarLike): Temporal$1.ZonedDateTime;
852
+ withTimeZone(timeZone: TimeZoneLike): Temporal$1.ZonedDateTime;
853
+ add(durationLike: Temporal$1.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal$1.ZonedDateTime;
854
+ subtract(durationLike: Temporal$1.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal$1.ZonedDateTime;
855
+ until(other: Temporal$1.ZonedDateTime | ZonedDateTimeLike | string, options?: Temporal$1.DifferenceOptions<'year' | 'month' | 'week' | 'day' | 'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>): Temporal$1.Duration;
856
+ since(other: Temporal$1.ZonedDateTime | ZonedDateTimeLike | string, options?: Temporal$1.DifferenceOptions<'year' | 'month' | 'week' | 'day' | 'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>): Temporal$1.Duration;
857
+ round(roundTo: RoundTo<'day' | 'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>): Temporal$1.ZonedDateTime;
858
+ startOfDay(): Temporal$1.ZonedDateTime;
859
+ getTimeZoneTransition(direction: TransitionDirection): Temporal$1.ZonedDateTime | null;
860
+ toInstant(): Temporal$1.Instant;
861
+ toPlainDateTime(): Temporal$1.PlainDateTime;
862
+ toPlainDate(): Temporal$1.PlainDate;
863
+ toPlainTime(): Temporal$1.PlainTime;
864
+ toLocaleString(locales?: LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions): string;
865
+ toJSON(): string;
866
+ toString(options?: ZonedDateTimeToStringOptions): string;
867
+ valueOf(): never;
868
+ readonly [Symbol.toStringTag]: 'Temporal.ZonedDateTime';
869
+ }
870
+ /**
871
+ * The `Temporal.Now` object has several methods which give information about
872
+ * the current date, time, and time zone.
873
+ *
874
+ * See https://tc39.es/proposal-temporal/docs/now.html for more details.
875
+ */
876
+ export const Now: {
877
+ /**
878
+ * Get the exact system date and time as a `Temporal.Instant`.
879
+ *
880
+ * This method gets the current exact system time, without regard to
881
+ * calendar or time zone. This is a good way to get a timestamp for an
882
+ * event, for example. It works like the old-style JavaScript `Date.now()`,
883
+ * but with nanosecond precision instead of milliseconds.
884
+ *
885
+ * Note that a `Temporal.Instant` doesn't know about time zones. For the
886
+ * exact time in a specific time zone, use `Temporal.Now.zonedDateTimeISO`
887
+ * or `Temporal.Now.zonedDateTime`.
888
+ * */
889
+ instant: () => Temporal$1.Instant;
890
+ /**
891
+ * Get the current calendar date and clock time in a specific time zone,
892
+ * using the ISO 8601 calendar.
893
+ *
894
+ * @param {TimeZoneLike} [tzLike] -
895
+ * {@link https://en.wikipedia.org/wiki/List_of_tz_database_time_zones|IANA time zone identifier}
896
+ * string (e.g. `'Europe/London'`). If omitted, the environment's
897
+ * current time zone will be used.
898
+ */
899
+ zonedDateTimeISO: (tzLike?: TimeZoneLike) => Temporal$1.ZonedDateTime;
900
+ /**
901
+ * Get the current date and clock time in a specific time zone, using the
902
+ * ISO 8601 calendar.
903
+ *
904
+ * Note that the `Temporal.PlainDateTime` type does not persist the time zone,
905
+ * but retaining the time zone is required for most time-zone-related use
906
+ * cases. Therefore, it's usually recommended to use
907
+ * `Temporal.Now.zonedDateTimeISO` instead of this function.
908
+ *
909
+ * @param {TimeZoneLike} [tzLike] -
910
+ * {@link https://en.wikipedia.org/wiki/List_of_tz_database_time_zones|IANA time zone identifier}
911
+ * string (e.g. `'Europe/London'`). If omitted, the environment's
912
+ * current time zone will be used.
913
+ */
914
+ plainDateTimeISO: (tzLike?: TimeZoneLike) => Temporal$1.PlainDateTime;
915
+ /**
916
+ * Get the current date in a specific time zone, using the ISO 8601
917
+ * calendar.
918
+ *
919
+ * @param {TimeZoneLike} [tzLike] -
920
+ * {@link https://en.wikipedia.org/wiki/List_of_tz_database_time_zones|IANA time zone identifier}
921
+ * string (e.g. `'Europe/London'`). If omitted, the environment's
922
+ * current time zone will be used.
923
+ */
924
+ plainDateISO: (tzLike?: TimeZoneLike) => Temporal$1.PlainDate;
925
+ /**
926
+ * Get the current clock time in a specific time zone, using the ISO 8601 calendar.
927
+ *
928
+ * @param {TimeZoneLike} [tzLike] -
929
+ * {@link https://en.wikipedia.org/wiki/List_of_tz_database_time_zones|IANA time zone identifier}
930
+ * string (e.g. `'Europe/London'`). If omitted, the environment's
931
+ * current time zone will be used.
932
+ */
933
+ plainTimeISO: (tzLike?: TimeZoneLike) => Temporal$1.PlainTime;
934
+ /**
935
+ * Get the identifier of the environment's current time zone.
936
+ *
937
+ * This method gets the identifier of the current system time zone. This
938
+ * will usually be a named
939
+ * {@link https://en.wikipedia.org/wiki/List_of_tz_database_time_zones|IANA time zone}.
940
+ */
941
+ timeZoneId: () => string;
942
+ readonly [Symbol.toStringTag]: 'Temporal.Now';
943
+ };
944
+ }
945
+ declare namespace Intl$1 {
946
+ type Formattable = Date | Temporal$1.Instant | Temporal$1.ZonedDateTime | Temporal$1.PlainDate | Temporal$1.PlainTime | Temporal$1.PlainDateTime | Temporal$1.PlainYearMonth | Temporal$1.PlainMonthDay;
947
+ export interface DateTimeFormat extends globalThis.Intl.DateTimeFormat {
948
+ /**
949
+ * Format a date into a string according to the locale and formatting
950
+ * options of this `Intl.DateTimeFormat` object.
951
+ *
952
+ * @param date The date to format.
953
+ */
954
+ format(date?: Formattable | number): string;
955
+ /**
956
+ * Allow locale-aware formatting of strings produced by
957
+ * `Intl.DateTimeFormat` formatters.
958
+ *
959
+ * @param date The date to format.
960
+ */
961
+ formatToParts(date?: Formattable | number): globalThis.Intl.DateTimeFormatPart[];
962
+ /**
963
+ * Format a date range in the most concise way based on the locale and
964
+ * options provided when instantiating this `Intl.DateTimeFormat` object.
965
+ *
966
+ * @param startDate The start date of the range to format.
967
+ * @param endDate The start date of the range to format. Must be the same
968
+ * type as `startRange`.
969
+ */
970
+ formatRange<T extends Formattable>(startDate: T, endDate: T): string;
971
+ formatRange(startDate: Date | number, endDate: Date | number): string;
972
+ /**
973
+ * Allow locale-aware formatting of tokens representing each part of the
974
+ * formatted date range produced by `Intl.DateTimeFormat` formatters.
975
+ *
976
+ * @param startDate The start date of the range to format.
977
+ * @param endDate The start date of the range to format. Must be the same
978
+ * type as `startRange`.
979
+ */
980
+ formatRangeToParts<T extends Formattable>(startDate: T, endDate: T): globalThis.Intl.DateTimeRangeFormatPart[];
981
+ formatRangeToParts(startDate: Date | number, endDate: Date | number): globalThis.Intl.DateTimeRangeFormatPart[];
982
+ }
983
+ export const DateTimeFormat: {
984
+ /**
985
+ * Creates `Intl.DateTimeFormat` objects that enable language-sensitive
986
+ * date and time formatting.
987
+ */
988
+ new (locales?: string | string[], options?: globalThis.Intl.DateTimeFormatOptions): DateTimeFormat;
989
+ (locales?: string | string[], options?: globalThis.Intl.DateTimeFormatOptions): DateTimeFormat;
990
+ /**
991
+ * Get an array containing those of the provided locales that are supported
992
+ * in date and time formatting without having to fall back to the runtime's
993
+ * default locale.
994
+ */
995
+ supportedLocalesOf(locales: string | string[], options?: globalThis.Intl.DateTimeFormatOptions): string[];
996
+ };
997
+ }
998
+ //#endregion
999
+ //#region src/context.d.ts
1000
+ /** @internal Provides the days and index of the current week row to child components. */
1001
+ declare const WeekDataContext: _$react.Context<{
1002
+ days: Temporal$1.PlainDate[];
1003
+ weekIndex: number; /** The year/month this week belongs to (for outsideMonth checks in multi-month). */
1004
+ gridMonth?: {
1005
+ year: number;
1006
+ month: number;
1007
+ }; /** 1-based CSS grid row index for this week row (WeeksView only). */
1008
+ gridRowIndex?: number;
1009
+ } | null>;
1010
+ /** Layout direction for the calendar grid. */
1011
+ type GridOrientation = "horizontal" | "vertical";
1012
+ /** @internal Provides the resolved grid orientation to descendant cells. */
1013
+ declare const GridContext: _$react.Context<{
1014
+ orientation: GridOrientation;
1015
+ }>;
1016
+ /** @internal Provides the date and column index from a `DayCellTemplate` to its child `DayButton`. */
1017
+ declare const DayCellDataContext: _$react.Context<{
1018
+ date: Temporal$1.PlainDate;
1019
+ columnIndex?: number;
1020
+ outsideDisabled?: boolean;
1021
+ } | null>;
1022
+ //#endregion
1023
+ //#region src/types.d.ts
1024
+ /** Day of the week represented as a number: `0` = Sunday through `6` = Saturday. */
1025
+ type WeekStartDay = 0 | 1 | 2 | 3 | 4 | 5 | 6;
1026
+ /**
1027
+ * Controls how days from adjacent months are displayed in the calendar grid.
1028
+ * - `"enabled"` — outside days are fully interactive (default).
1029
+ * - `"readOnly"` — outside days are visible but disabled; range highlighting still paints through.
1030
+ * - `"disabled"` — outside days are visible but disabled; no range highlighting or drag handles.
1031
+ * - `"hidden"` — outside day cells are empty (`<td>` with `data-hidden` + `aria-hidden`).
1032
+ */
1033
+ type OutsideDays = "enabled" | "readOnly" | "disabled" | "hidden";
1034
+ /**
1035
+ * Controls how clicking inside an existing range behaves.
1036
+ * - `"start-end"` — Two-step: click sets start, second click sets end. Re-click resets.
1037
+ * - `"nearest-end"` — Adjusts whichever boundary is closer; ties go to end (default).
1038
+ * - `"nearest-start"` — Adjusts whichever boundary is closer; ties go to start.
1039
+ * - `"adjust-end"` — Always moves the range end to the clicked date.
1040
+ * - `"adjust-start"` — Always moves the range start to the clicked date.
1041
+ * - `"reset"` — Collapses the range to a single-day selection on the clicked date.
1042
+ */
1043
+ type RangeMode = "start-end" | "nearest-end" | "nearest-start" | "adjust-end" | "adjust-start" | "reset";
1044
+ /** Subset of the Temporal API surface consumed by the DatePicker. */
1045
+ type TemporalNamespace = {
1046
+ Now: {
1047
+ timeZoneId(): string;
1048
+ zonedDateTimeISO(tz: string): Temporal$1.ZonedDateTime;
1049
+ plainDateISO(): Temporal$1.PlainDate;
1050
+ };
1051
+ PlainDate: {
1052
+ from(item: any, options?: {
1053
+ overflow?: string;
1054
+ }): Temporal$1.PlainDate;
1055
+ compare(a: Temporal$1.PlainDate, b: Temporal$1.PlainDate): number;
1056
+ };
1057
+ PlainDateTime: {
1058
+ from(item: any, options?: {
1059
+ overflow?: string;
1060
+ }): Temporal$1.PlainDateTime;
1061
+ };
1062
+ PlainMonthDay: {
1063
+ from(item: any): Temporal$1.PlainMonthDay;
1064
+ };
1065
+ PlainYearMonth: {
1066
+ from(item: any): Temporal$1.PlainYearMonth;
1067
+ };
1068
+ };
1069
+ /** Plain JS object representation of a date with optional time and time zone fields. */
1070
+ interface PlainDateObject {
1071
+ year?: number;
1072
+ month?: number;
1073
+ day?: number;
1074
+ hour?: number;
1075
+ minute?: number;
1076
+ second?: number;
1077
+ timeZone?: string;
1078
+ }
1079
+ /** Tagged union of all supported date value formats and their runtime values. */
1080
+ type DateValueObject = {
1081
+ format: "PlainDate";
1082
+ value: Temporal$1.PlainDate;
1083
+ } | {
1084
+ format: "PlainDateTime";
1085
+ value: Temporal$1.PlainDateTime;
1086
+ } | {
1087
+ format: "PlainMonthDay";
1088
+ value: Temporal$1.PlainMonthDay;
1089
+ } | {
1090
+ format: "PlainTime";
1091
+ value: Temporal$1.PlainTime;
1092
+ } | {
1093
+ format: "PlainYearMonth";
1094
+ value: Temporal$1.PlainYearMonth;
1095
+ } | {
1096
+ format: "ZonedDateTime";
1097
+ value: Temporal$1.ZonedDateTime;
1098
+ } | {
1099
+ format: "object";
1100
+ value: PlainDateObject;
1101
+ } | {
1102
+ format: "Date";
1103
+ value: Date;
1104
+ };
1105
+ /** Union of all supported value format discriminant strings. */
1106
+ type ValueFormat = DateValueObject["format"];
1107
+ /** Extracts the {@link DateValueObject} variant matching a given format `F`. */
1108
+ type ValueForFormat<F extends ValueFormat> = Extract<DateValueObject, {
1109
+ format: F;
1110
+ }>;
1111
+ /** The runtime value type for a given format `F` (e.g. `Temporal.PlainDate` for `"PlainDate"`). */
1112
+ type RawValueForFormat<F extends ValueFormat> = ValueForFormat<F>["value"];
1113
+ /** A start/end date pair for range selection, typed to the given format `F`. */
1114
+ type DateRange<F extends ValueFormat = ValueFormat> = {
1115
+ start: RawValueForFormat<F> | null;
1116
+ end: RawValueForFormat<F> | null;
1117
+ };
1118
+ /**
1119
+ * Metadata passed as the second argument to `onValueChange`.
1120
+ * @typeParam Previous - The type of the previous selection value.
1121
+ */
1122
+ interface ValueChangeMeta<Previous> {
1123
+ /** The specific date that was clicked, or `undefined` if the change was not triggered by a date selection (e.g. mode switch, out-of-bounds cleanup, drag). */
1124
+ date?: Temporal$1.PlainDate;
1125
+ /** The previous selection value before this change. */
1126
+ previous: Previous;
1127
+ }
1128
+ /** Pre-computed data for a single visible month. */
1129
+ interface MonthData {
1130
+ /** Calendar year. */
1131
+ year: number;
1132
+ /** Calendar month (1–12). */
1133
+ month: number;
1134
+ /** 2D array of weeks (each week is an array of `PlainDate`). */
1135
+ weeks: Temporal$1.PlainDate[][];
1136
+ }
1137
+ /** State exposed by the `Root` component to its render function and descendants. */
1138
+ type RootState<F extends ValueFormat = ValueFormat> = {
1139
+ /** `true` when at least one date is selected. */hasSelection: boolean; /** The primary selected value in the configured format, or `undefined`. */
1140
+ selected: RawValueForFormat<F> | undefined; /** All selected dates in the configured format (sorted oldest-first). */
1141
+ selectedDates: RawValueForFormat<F>[]; /** Range start in the configured format, or `undefined`. */
1142
+ rangeStart: RawValueForFormat<F> | undefined; /** Range end in the configured format, or `undefined`. */
1143
+ rangeEnd: RawValueForFormat<F> | undefined; /** The currently focused `PlainDate` in the grid. */
1144
+ focused: Temporal$1.PlainDate; /** The month/year currently being viewed. */
1145
+ viewing: Temporal$1.PlainYearMonth; /** Resolved IANA time zone. */
1146
+ timeZone: string; /** Resolved BCP 47 locale. */
1147
+ locale: string; /** Whether the calendar is read-only. */
1148
+ readOnly: boolean;
1149
+ };
1150
+ /** State exposed by the `DateString` component. */
1151
+ type DateStringState<F extends ValueFormat = ValueFormat> = {
1152
+ root: RootState<F>;
1153
+ month: number;
1154
+ year: number;
1155
+ day: number;
1156
+ };
1157
+ /** Own props for the `DateString` component. */
1158
+ interface DateStringOwnProps {
1159
+ /** BCP 47 locale(s) for date formatting. Falls back to the Root `locale`. */
1160
+ locales?: string | string[];
1161
+ /** `Intl.DateTimeFormat` options for customizing the output. */
1162
+ options?: Intl.DateTimeFormatOptions;
1163
+ }
1164
+ /** Full props for the `DateString` component. */
1165
+ type DateStringProps<F extends ValueFormat = ValueFormat> = useRender.ComponentProps<"span", DateStringState<F>> & DateStringOwnProps;
1166
+ /** State exposed by the `TimeString` component. */
1167
+ type TimeStringState<F extends ValueFormat = ValueFormat> = {
1168
+ root: RootState<F>;
1169
+ hour: number;
1170
+ minute: number;
1171
+ second: number;
1172
+ };
1173
+ /** Own props for the `TimeString` component. */
1174
+ interface TimeStringOwnProps {
1175
+ /** BCP 47 locale(s) for time formatting. Falls back to the Root `locale`. */
1176
+ locales?: string | string[];
1177
+ /** `Intl.DateTimeFormat` options for customizing the output. */
1178
+ options?: Intl.DateTimeFormatOptions;
1179
+ }
1180
+ /** Full props for the `TimeString` component. */
1181
+ type TimeStringProps<F extends ValueFormat = ValueFormat> = useRender.ComponentProps<"span", TimeStringState<F>> & TimeStringOwnProps;
1182
+ /** State exposed by the `MonthYearString` component. */
1183
+ type MonthYearStringState<F extends ValueFormat = ValueFormat> = {
1184
+ root: RootState<F>;
1185
+ month: number;
1186
+ year: number;
1187
+ };
1188
+ /** Own props for the `MonthYearString` component. */
1189
+ interface MonthYearStringOwnProps {
1190
+ /** BCP 47 locale(s) for month/year formatting. Falls back to the Root `locale`. */
1191
+ locales?: string | string[];
1192
+ /** `Intl.DateTimeFormat` options for customizing the output. */
1193
+ options?: Intl.DateTimeFormatOptions;
1194
+ /** Which visible month to display (0-based). @default 0 */
1195
+ monthIndex?: number;
1196
+ }
1197
+ /** Full props for the `MonthYearString` component. */
1198
+ type MonthYearStringProps<F extends ValueFormat = ValueFormat> = useRender.ComponentProps<"span", MonthYearStringState<F>> & MonthYearStringOwnProps;
1199
+ /** State exposed by `PrevMonthButton` and `NextMonthButton`. */
1200
+ type NavButtonState<F extends ValueFormat = ValueFormat> = {
1201
+ root: RootState<F>;
1202
+ direction: "next" | "prev";
1203
+ disabled: boolean;
1204
+ target: Temporal$1.PlainYearMonth;
1205
+ };
1206
+ /** Full props for the `PrevMonthButton` component. */
1207
+ type PrevMonthButtonProps<F extends ValueFormat = ValueFormat> = useRender.ComponentProps<"button", NavButtonState<F>>;
1208
+ /** Full props for the `NextMonthButton` component. */
1209
+ type NextMonthButtonProps<F extends ValueFormat = ValueFormat> = useRender.ComponentProps<"button", NavButtonState<F>>;
1210
+ /** State exposed by the `GridHeaderCell` component. */
1211
+ type GridHeaderCellState<F extends ValueFormat = ValueFormat> = {
1212
+ root: RootState<F>;
1213
+ dayOfWeek: number;
1214
+ long: string;
1215
+ short: string;
1216
+ narrow: string;
1217
+ };
1218
+ /** Own props for the `GridHeaderCell` component. */
1219
+ interface GridHeaderCellOwnProps {
1220
+ /** 0-based column index. When omitted, all 7 weekday headers are rendered. */
1221
+ index?: number;
1222
+ }
1223
+ /** Full props for the `GridHeaderCell` component. */
1224
+ type GridHeaderCellProps<F extends ValueFormat = ValueFormat> = useRender.ComponentProps<"th", GridHeaderCellState<F>> & GridHeaderCellOwnProps;
1225
+ /** State exposed by the `GridHeader` component. */
1226
+ type GridHeaderState<F extends ValueFormat = ValueFormat> = {
1227
+ root: RootState<F>;
1228
+ };
1229
+ /** Full props for the `GridHeader` component. */
1230
+ type GridHeaderProps<F extends ValueFormat = ValueFormat> = useRender.ComponentProps<"thead", GridHeaderState<F>>;
1231
+ /** State exposed by the `GridBody` component. */
1232
+ type GridBodyState<F extends ValueFormat = ValueFormat> = {
1233
+ root: RootState<F>;
1234
+ };
1235
+ /** Full props for the `GridBody` component. */
1236
+ type GridBodyProps<F extends ValueFormat = ValueFormat> = useRender.ComponentProps<"tbody", GridBodyState<F>>;
1237
+ /** State exposed by the `Grid` component. */
1238
+ type GridState<F extends ValueFormat = ValueFormat> = {
1239
+ root: RootState<F>;
1240
+ month: number;
1241
+ year: number;
1242
+ orientation: GridOrientation;
1243
+ };
1244
+ /** Own props for the `Grid` component. */
1245
+ interface GridOwnProps {
1246
+ /** Interaction mode. Currently only `"grid"` is supported. */
1247
+ mode?: "grid";
1248
+ /** Layout direction for keyboard navigation. @default "horizontal" */
1249
+ orientation?: GridOrientation;
1250
+ /** When `true`, the grid auto-focuses the tab-target cell on mount. */
1251
+ autoFocus?: boolean;
1252
+ /** Which visible month this grid displays (0-based). @default 0 */
1253
+ monthIndex?: number;
1254
+ }
1255
+ /** Full props for the `Grid` component. */
1256
+ type GridProps<F extends ValueFormat = ValueFormat> = useRender.ComponentProps<"table", GridState<F>> & GridOwnProps;
1257
+ /** State exposed by the `WeekTemplate` component. */
1258
+ type WeekTemplateState<F extends ValueFormat = ValueFormat> = {
1259
+ root: RootState<F>;
1260
+ weekIndex: number; /** 1-based CSS grid row index for this week row (WeeksView only, undefined in MonthView). */
1261
+ gridRowIndex: number | undefined;
1262
+ };
1263
+ /** Full props for the `WeekTemplate` component. */
1264
+ type WeekTemplateProps<F extends ValueFormat = ValueFormat> = useRender.ComponentProps<"tr", WeekTemplateState<F>>;
1265
+ /** State exposed by the `DayCellTemplate` component. */
1266
+ type DayCellTemplateState<F extends ValueFormat = ValueFormat> = {
1267
+ root: RootState<F>;
1268
+ date: Temporal$1.PlainDate;
1269
+ columnIndex: number;
1270
+ orientation: GridOrientation;
1271
+ selected: boolean;
1272
+ today: boolean;
1273
+ disabled: boolean;
1274
+ outsideMonth: boolean;
1275
+ hidden: boolean;
1276
+ focused: boolean;
1277
+ rangeStart: boolean;
1278
+ rangeEnd: boolean;
1279
+ rangeBoundary: boolean; /** Whether this cell is within the committed range. */
1280
+ inRange: boolean; /** 0-based index of this cell within the committed range, or `false` if not in range. */
1281
+ rangeIndex: number | false; /** Total number of days in the committed range, or `false` if not in range. */
1282
+ rangeLength: number | false; /** Whether the committed range has a defined start boundary. */
1283
+ rangeHasStart: boolean; /** Whether the committed range has a defined end boundary. */
1284
+ rangeHasEnd: boolean; /** Whether this cell is the start of the hover preview range. */
1285
+ rangePreviewStart: boolean; /** Whether this cell is the end of the hover preview range. */
1286
+ rangePreviewEnd: boolean; /** Whether this cell is a boundary of the hover preview range. */
1287
+ rangePreviewBoundary: boolean; /** Whether this cell is within the hover preview range. */
1288
+ rangePreviewInRange: boolean; /** 0-based index of this cell within the preview range, or `false` if not in preview range. */
1289
+ rangePreviewIndex: number | false; /** Total number of days in the preview range, or `false` if not in preview range. */
1290
+ rangePreviewLength: number | false; /** Whether the preview range has a defined start boundary. */
1291
+ rangePreviewHasStart: boolean; /** Whether the preview range has a defined end boundary. */
1292
+ rangePreviewHasEnd: boolean;
1293
+ };
1294
+ /** State exposed by the `DayButton` component (same as `DayCellTemplateState`). */
1295
+ type DayButtonState<F extends ValueFormat = ValueFormat> = DayCellTemplateState<F>;
1296
+ /** Own props for the `DayCellTemplate` component. */
1297
+ interface DayCellTemplateOwnProps {
1298
+ /** Explicit date to render. When omitted, iterates over the current week's days. */
1299
+ date?: Temporal$1.PlainDate;
1300
+ }
1301
+ /** Full props for the `DayCellTemplate` component. */
1302
+ type DayCellTemplateProps<F extends ValueFormat = ValueFormat> = useRender.ComponentProps<"td", DayCellTemplateState<F>> & DayCellTemplateOwnProps;
1303
+ /** Own props for the `DayButton` component. */
1304
+ interface DayButtonOwnProps {
1305
+ /** Explicit date for a standalone `DayButton`. Normally inherited from `DayCellTemplate`. */
1306
+ date?: Temporal$1.PlainDate;
1307
+ }
1308
+ /** Full props for the `DayButton` component. */
1309
+ type DayButtonProps<F extends ValueFormat = ValueFormat> = useRender.ComponentProps<"button", DayButtonState<F>> & DayButtonOwnProps;
1310
+ /** State exposed by the `RangeSelected` component. */
1311
+ type RangeSelectedState<F extends ValueFormat = ValueFormat> = {
1312
+ root: RootState<F>;
1313
+ active: boolean;
1314
+ weekIndex: number;
1315
+ startIndex: number;
1316
+ endIndex: number;
1317
+ startDate: string;
1318
+ endDate: string;
1319
+ extendsBefore: boolean;
1320
+ extendsAfter: boolean;
1321
+ hasStart: boolean;
1322
+ hasEnd: boolean;
1323
+ orientation: "horizontal" | "vertical";
1324
+ };
1325
+ /** Full props for the `RangeSelected` component. */
1326
+ type RangeSelectedProps<F extends ValueFormat = ValueFormat> = useRender.ComponentProps<"td", RangeSelectedState<F>>;
1327
+ /** State exposed by the `RangePreview` component (same shape as `RangeSelectedState`). */
1328
+ type RangePreviewState<F extends ValueFormat = ValueFormat> = RangeSelectedState<F>;
1329
+ /** Full props for the `RangePreview` component (same shape as `RangeSelectedProps`). */
1330
+ type RangePreviewProps<F extends ValueFormat = ValueFormat> = RangeSelectedProps<F>;
1331
+ /** Which end of a range the drag handle controls. */
1332
+ type DragHandleEdge = "start" | "end";
1333
+ /** State exposed by the `RangeDragHandle` components. */
1334
+ type DragHandleState<F extends ValueFormat = ValueFormat> = {
1335
+ root: RootState<F>;
1336
+ active: boolean;
1337
+ dragging: boolean;
1338
+ edge: DragHandleEdge;
1339
+ orientation: "horizontal" | "vertical";
1340
+ };
1341
+ /** Own props for the `RangeDragHandle` component. */
1342
+ interface DragHandleOwnProps {
1343
+ /** Whether this handle is currently being dragged. */
1344
+ dragging?: boolean;
1345
+ /** Which boundary this handle controls. */
1346
+ edge: DragHandleEdge;
1347
+ }
1348
+ /** Full props for the `RangeDragHandle` component. */
1349
+ type RangeDragHandleProps<F extends ValueFormat = ValueFormat> = useRender.ComponentProps<"span", DragHandleState<F>> & DragHandleOwnProps;
1350
+ /** Props for `RangeStartDragHandle` (edge is fixed to `"start"`). */
1351
+ type RangeStartDragHandleProps<F extends ValueFormat = ValueFormat> = Omit<RangeDragHandleProps<F>, "edge">;
1352
+ /** Props for `RangeEndDragHandle` (edge is fixed to `"end"`). */
1353
+ type RangeEndDragHandleProps<F extends ValueFormat = ValueFormat> = Omit<RangeDragHandleProps<F>, "edge">;
1354
+ /** State exposed by the `WeekNumberCell` component. */
1355
+ type WeekNumberCellState<F extends ValueFormat = ValueFormat> = {
1356
+ root: RootState<F>;
1357
+ weekNumber: number;
1358
+ };
1359
+ /** Full props for the `WeekNumberCell` component. */
1360
+ type WeekNumberCellProps<F extends ValueFormat = ValueFormat> = useRender.ComponentProps<"td", WeekNumberCellState<F>>;
1361
+ /** State exposed by the `WeekNumberHeader` component. */
1362
+ type WeekNumberHeaderState<F extends ValueFormat = ValueFormat> = {
1363
+ root: RootState<F>;
1364
+ };
1365
+ /** Full props for the `WeekNumberHeader` component. */
1366
+ type WeekNumberHeaderProps<F extends ValueFormat = ValueFormat> = useRender.ComponentProps<"th", WeekNumberHeaderState<F>>;
1367
+ //#endregion
1368
+ //#region src/calendar-types.d.ts
1369
+ interface CalendarProviderPropsBase<F extends ValueFormat = ValueFormat> {
1370
+ /**
1371
+ * The value format used for date serialization. Determines the type of
1372
+ * `value`, `defaultValue`, `min`, `max`, and callback parameters.
1373
+ * @default "PlainDate"
1374
+ */
1375
+ format?: F;
1376
+ /** Earliest selectable date. Dates before this are disabled. */
1377
+ min?: RawValueForFormat<F>;
1378
+ /** Latest selectable date. Dates after this are disabled. */
1379
+ max?: RawValueForFormat<F>;
1380
+ /**
1381
+ * When `true`, the entire calendar is disabled.
1382
+ * @default false
1383
+ */
1384
+ disabled?: boolean;
1385
+ /**
1386
+ * When `true`, the calendar is read-only. Keyboard navigation still works
1387
+ * but selection is prevented.
1388
+ * @default false
1389
+ */
1390
+ readOnly?: boolean;
1391
+ /**
1392
+ * Callback to disable individual dates. Return `true` to disable a date.
1393
+ * Called in addition to `min`/`max` bounds checking.
1394
+ */
1395
+ isDateDisabled?: (date: Temporal$1.PlainDate) => boolean;
1396
+ /**
1397
+ * IANA time zone identifier used for date/time conversions.
1398
+ * @default The system's current time zone.
1399
+ */
1400
+ timeZone?: string;
1401
+ /**
1402
+ * BCP 47 locale string used for formatting month names, weekday labels,
1403
+ * and other locale-sensitive output.
1404
+ * @default "en-US"
1405
+ */
1406
+ locale?: string;
1407
+ /**
1408
+ * Custom Temporal namespace for environments without native Temporal support.
1409
+ */
1410
+ temporal?: TemporalNamespace;
1411
+ /**
1412
+ * Day of the week the calendar grid starts on.
1413
+ * `0` = Sunday, `1` = Monday, ..., `6` = Saturday.
1414
+ * @default 0
1415
+ */
1416
+ weekStartDay?: WeekStartDay;
1417
+ /** React children. */
1418
+ children?: React.ReactNode;
1419
+ }
1420
+ interface CalendarSingleControlledProps<F extends ValueFormat = ValueFormat> {
1421
+ /** @default "single" */
1422
+ selectionMode?: "single";
1423
+ /** The controlled selected date. Pass `null` to clear. */
1424
+ value: RawValueForFormat<F> | null;
1425
+ defaultValue?: never;
1426
+ onValueChange?: (value: RawValueForFormat<F> | null, meta: ValueChangeMeta<RawValueForFormat<F> | null>) => void;
1427
+ }
1428
+ interface CalendarSingleUncontrolledProps<F extends ValueFormat = ValueFormat> {
1429
+ /** @default "single" */
1430
+ selectionMode?: "single";
1431
+ value?: never;
1432
+ defaultValue?: RawValueForFormat<F>;
1433
+ onValueChange?: (value: RawValueForFormat<F> | null, meta: ValueChangeMeta<RawValueForFormat<F> | null>) => void;
1434
+ }
1435
+ interface CalendarRangeControlledProps<F extends ValueFormat = ValueFormat> {
1436
+ selectionMode: "range";
1437
+ value: DateRange<F> | null;
1438
+ defaultValue?: never;
1439
+ onValueChange?: (value: DateRange<F> | null, meta: ValueChangeMeta<DateRange<F> | null>) => void;
1440
+ /** @default "nearest-end" */
1441
+ rangeMode?: RangeMode;
1442
+ /** @default false */
1443
+ preventRangeReversal?: boolean;
1444
+ previewRange?: DateRange<F> | null;
1445
+ onHoveredDateChange?: (date: Temporal$1.PlainDate | undefined) => void;
1446
+ }
1447
+ interface CalendarRangeUncontrolledProps<F extends ValueFormat = ValueFormat> {
1448
+ selectionMode: "range";
1449
+ value?: never;
1450
+ defaultValue?: DateRange<F>;
1451
+ onValueChange?: (value: DateRange<F> | null, meta: ValueChangeMeta<DateRange<F> | null>) => void;
1452
+ /** @default "nearest-end" */
1453
+ rangeMode?: RangeMode;
1454
+ /** @default false */
1455
+ preventRangeReversal?: boolean;
1456
+ previewRange?: DateRange<F> | null;
1457
+ onHoveredDateChange?: (date: Temporal$1.PlainDate | undefined) => void;
1458
+ }
1459
+ interface CalendarMultipleControlledProps<F extends ValueFormat = ValueFormat> {
1460
+ selectionMode: "multiple";
1461
+ value: RawValueForFormat<F>[];
1462
+ defaultValue?: never;
1463
+ onValueChange?: (value: RawValueForFormat<F>[], meta: ValueChangeMeta<RawValueForFormat<F>[]>) => void;
1464
+ }
1465
+ interface CalendarMultipleUncontrolledProps<F extends ValueFormat = ValueFormat> {
1466
+ selectionMode: "multiple";
1467
+ value?: never;
1468
+ defaultValue?: RawValueForFormat<F>[];
1469
+ onValueChange?: (value: RawValueForFormat<F>[], meta: ValueChangeMeta<RawValueForFormat<F>[]>) => void;
1470
+ }
1471
+ /** Props accepted by `CalendarProvider`. */
1472
+ type CalendarProviderProps<F extends ValueFormat = ValueFormat> = CalendarProviderPropsBase<F> & (CalendarSingleControlledProps<F> | CalendarSingleUncontrolledProps<F> | CalendarRangeControlledProps<F> | CalendarRangeUncontrolledProps<F> | CalendarMultipleControlledProps<F> | CalendarMultipleUncontrolledProps<F>);
1473
+ /** Stable values (callbacks, config) provided by CalendarProvider — shared across all views. */
1474
+ interface CalendarStableContextValue {
1475
+ /** Selects (or toggles) a date, respecting the current selection mode. */
1476
+ onSelect: (date: Temporal$1.PlainDate) => void;
1477
+ /** Programmatically sets the range boundaries (normalized so start <= end). */
1478
+ setRange: (start: Temporal$1.PlainDate, end: Temporal$1.PlainDate) => void;
1479
+ /** The active selection mode. */
1480
+ selectionMode: "single" | "range" | "multiple";
1481
+ /** Whether the entire calendar is disabled. */
1482
+ disabled: boolean;
1483
+ /** Whether the calendar is read-only. */
1484
+ readOnly: boolean;
1485
+ /** User-supplied predicate for individually disabled dates. */
1486
+ isDateDisabled?: (date: Temporal$1.PlainDate) => boolean;
1487
+ /** Earliest selectable date (resolved from the `min` prop). */
1488
+ minValue?: Temporal$1.PlainDate;
1489
+ /** Latest selectable date (resolved from the `max` prop). */
1490
+ maxValue?: Temporal$1.PlainDate;
1491
+ /** Resolved IANA time zone. */
1492
+ timeZone: string;
1493
+ /** Resolved BCP 47 locale. */
1494
+ locale: string;
1495
+ /** Resolved Temporal namespace. */
1496
+ temporal: TemporalNamespace;
1497
+ /** Day the calendar week starts on. */
1498
+ weekStartDay: WeekStartDay;
1499
+ /** Active range selection mode. */
1500
+ rangeMode: RangeMode;
1501
+ /** Whether reversed ranges are auto-sorted instead of collapsed. */
1502
+ preventRangeReversal: boolean;
1503
+ /** The value format discriminant. */
1504
+ valueFormat: ValueFormat;
1505
+ /** Sets the hovered date for range preview. */
1506
+ setHoveredDate: (date: Temporal$1.PlainDate | undefined) => void;
1507
+ }
1508
+ /** Volatile state provided by CalendarProvider — shared across all views. */
1509
+ interface CalendarStateContextValue {
1510
+ /** The currently selected value as a tagged {@link DateValueObject}. */
1511
+ selected: DateValueObject | undefined;
1512
+ /** Flat array of all selected dates (plain dates, sorted). */
1513
+ selectedDates: Temporal$1.PlainDate[];
1514
+ /** Start of the current range selection, or `undefined`. */
1515
+ rangeStart: Temporal$1.PlainDate | undefined;
1516
+ /** End of the current range selection, or `undefined`. */
1517
+ rangeEnd: Temporal$1.PlainDate | undefined;
1518
+ /** The currently hovered date (for range preview). */
1519
+ hoveredDate: Temporal$1.PlainDate | undefined;
1520
+ /** Start of the computed preview range. */
1521
+ previewStart: Temporal$1.PlainDate | undefined;
1522
+ /** End of the computed preview range. */
1523
+ previewEnd: Temporal$1.PlainDate | undefined;
1524
+ }
1525
+ //#endregion
1526
+ //#region src/calendar-provider.d.ts
1527
+ /**
1528
+ * Provides shared calendar state (selection, config, range preview) to all
1529
+ * descendant view components. Does NOT manage focus, navigation, or grid data.
1530
+ */
1531
+ declare function CalendarProvider<F extends ValueFormat = "PlainDate">(props: CalendarProviderProps<F>): _$react_jsx_runtime0.JSX.Element;
1532
+ //#endregion
1533
+ //#region src/overflow.d.ts
1534
+ type OverflowBehavior = "unbounded" | "stop" | "stop-shrink" | "snap" | "snap-shrink";
1535
+ type MonthOverflowBehavior = "unbounded" | "stop";
1536
+ //#endregion
1537
+ //#region src/month-view-types.d.ts
1538
+ /** Props accepted by `MonthView.Root`. */
1539
+ interface MonthViewRootProps {
1540
+ /**
1541
+ * Number of months to display simultaneously (1–12).
1542
+ * @default 1
1543
+ */
1544
+ numberOfMonths?: number;
1545
+ /**
1546
+ * When `true`, always render 6 week rows per month grid.
1547
+ * Prevents layout shifts when navigating between months.
1548
+ * @default false
1549
+ */
1550
+ fixedWeeks?: boolean;
1551
+ /**
1552
+ * Controls how days from adjacent months are displayed.
1553
+ * @default "enabled"
1554
+ */
1555
+ outsideDays?: OutsideDays;
1556
+ /**
1557
+ * How month navigation behaves at `min`/`max` bounds.
1558
+ * - `"unbounded"` — navigation is always allowed.
1559
+ * - `"stop"` — navigation buttons disable at the boundary.
1560
+ * @default "unbounded"
1561
+ */
1562
+ overflowBehavior?: MonthOverflowBehavior;
1563
+ /**
1564
+ * The controlled visible month. When provided, the component is controlled.
1565
+ */
1566
+ month?: Temporal$1.PlainYearMonth;
1567
+ /**
1568
+ * The initial visible month (uncontrolled).
1569
+ */
1570
+ defaultMonth?: Temporal$1.PlainYearMonth;
1571
+ /**
1572
+ * Called when the visible month changes via navigation or focus movement.
1573
+ * Not called on initial mount.
1574
+ */
1575
+ onMonthChange?: (month: Temporal$1.PlainYearMonth) => void;
1576
+ /** React children. */
1577
+ children?: React.ReactNode;
1578
+ }
1579
+ /** Stable values (config + callbacks) provided by MonthView.Root. */
1580
+ interface MonthViewStableContextValue {
1581
+ /** Number of simultaneously visible months. */
1582
+ numberOfMonths: number;
1583
+ /** Whether month grids always render 6 week rows. */
1584
+ fixedWeeks: boolean;
1585
+ /** How outside-month days are displayed. */
1586
+ outsideDays: OutsideDays;
1587
+ /** How month navigation behaves at bounds. */
1588
+ overflowBehavior: MonthOverflowBehavior;
1589
+ /** Navigate to the next month(s). */
1590
+ goNextMonth: () => void;
1591
+ /** Navigate to the previous month(s). */
1592
+ goPrevMonth: () => void;
1593
+ /** Register (or clear) the id of a label element for `aria-labelledby`, keyed by month index. */
1594
+ setGridLabelId: (monthIndex: number, id: string | undefined) => void;
1595
+ /** Ref tracking whether the grid currently holds DOM focus (avoids state re-renders). */
1596
+ gridFocusedRef: React.RefObject<boolean>;
1597
+ }
1598
+ /** Volatile state provided by MonthView.Root. */
1599
+ interface MonthViewStateContextValue {
1600
+ /** The primary displayed month (year + month). */
1601
+ currentMonth: {
1602
+ year: number;
1603
+ month: number;
1604
+ };
1605
+ /** 2D array of weeks for the first visible month grid. */
1606
+ weeks: Temporal$1.PlainDate[][];
1607
+ /** Pre-computed data for all visible months (length = `numberOfMonths`). */
1608
+ allMonths: MonthData[];
1609
+ /** Date-time representing the viewed month with time from the selection (for "today" highlighting). */
1610
+ currentDateTime: Temporal$1.PlainDateTime;
1611
+ /** Map of month index to label element id (for per-grid `aria-labelledby`). */
1612
+ gridLabelIds: Record<number, string>;
1613
+ /** The root component's state object for render functions. */
1614
+ rootState: RootState;
1615
+ }
1616
+ //#endregion
1617
+ //#region src/month-view.d.ts
1618
+ declare function MonthViewRoot(props: MonthViewRootProps): _$react_jsx_runtime0.JSX.Element;
1619
+ type MonthViewProps<F extends ValueFormat = "PlainDate"> = CalendarProviderProps<F> & MonthViewRootProps;
1620
+ declare function MonthView<F extends ValueFormat = "PlainDate">(props: MonthViewProps<F>): _$react_jsx_runtime0.JSX.Element;
1621
+ declare namespace MonthView {
1622
+ var Root: typeof MonthViewRoot;
1623
+ }
1624
+ //#endregion
1625
+ //#region src/grid-header.d.ts
1626
+ /**
1627
+ * Renders weekday column headers (`<th>`). When no `index` is provided,
1628
+ * renders all 7 days (Sunday–Saturday). Each cell includes `abbr` and
1629
+ * `aria-label` with the full weekday name.
1630
+ */
1631
+ declare const GridHeaderCell: <F extends ValueFormat = ValueFormat>(props: GridHeaderCellProps<F> & React.RefAttributes<HTMLTableCellElement>) => React.ReactElement | null;
1632
+ /** Table header section (`<thead>`) wrapping a row of {@link GridHeaderCell}s. */
1633
+ declare const GridHeader: <F extends ValueFormat = ValueFormat>(props: GridHeaderProps<F> & React.RefAttributes<HTMLTableSectionElement>) => React.ReactElement | null;
1634
+ //#endregion
1635
+ //#region src/day-cell.d.ts
1636
+ /**
1637
+ * Renders one `<td role="gridcell">` per day. Exposes data-attributes for
1638
+ * `selected`, `today`, `disabled`, `outside-month`, `focused`,
1639
+ * `range-start`, `range-end`, `range-boundary`, `in-range`, and `date`.
1640
+ *
1641
+ * When used inside a {@link WeekTemplate}, iterates over that week's days.
1642
+ * An explicit `date` prop renders a single cell.
1643
+ */
1644
+ declare function DayCellTemplate<F extends ValueFormat = ValueFormat>(props: DayCellTemplateProps<F>): _$react_jsx_runtime0.JSX.Element;
1645
+ declare const DayButton: <F extends ValueFormat = ValueFormat>(props: DayButtonProps<F> & {
1646
+ _derivedState?: DayCellTemplateState & {
1647
+ isTabTarget: boolean;
1648
+ };
1649
+ } & React.RefAttributes<HTMLButtonElement>) => React.ReactElement | null;
1650
+ //#endregion
1651
+ //#region src/grid.d.ts
1652
+ declare const Grid: <F extends ValueFormat = ValueFormat>(props: GridProps<F> & React.RefAttributes<HTMLTableElement>) => React.ReactElement | null;
1653
+ declare const GridBody: <F extends ValueFormat = ValueFormat>(props: GridBodyProps<F> & React.RefAttributes<HTMLTableSectionElement>) => React.ReactElement | null;
1654
+ /**
1655
+ * Iterates over the weeks in the current month and renders one `<tr>` per week.
1656
+ * Each instance receives its week's days and index via {@link WeekDataContext}.
1657
+ */
1658
+ declare function WeekTemplate<F extends ValueFormat = ValueFormat>(props: WeekTemplateProps<F>): _$react_jsx_runtime0.JSX.Element;
1659
+ //#endregion
1660
+ //#region src/navigation.d.ts
1661
+ /**
1662
+ * Displays the currently selected (or current) date as localized text.
1663
+ * Renders a `<span>` with `aria-live="polite"`.
1664
+ */
1665
+ declare const DateString: <F extends ValueFormat = ValueFormat>(props: DateStringProps<F> & React.RefAttributes<HTMLSpanElement>) => React.ReactElement | null;
1666
+ /**
1667
+ * Displays the currently selected time as localized text.
1668
+ * Falls back to the current time when nothing is selected.
1669
+ * Renders a `<span>` with `aria-live="polite"`.
1670
+ */
1671
+ declare const TimeString: <F extends ValueFormat = ValueFormat>(props: TimeStringProps<F> & React.RefAttributes<HTMLSpanElement>) => React.ReactElement | null;
1672
+ /**
1673
+ * Displays the currently viewed month and year as a live-region heading for the
1674
+ * calendar grid. Defaults to `{ month: "long", year: "numeric" }` (e.g.
1675
+ * "March 2026"). Automatically registers a unique `id` so that `Grid` can
1676
+ * reference it via `aria-labelledby`.
1677
+ *
1678
+ * **Accessibility requirement:** When using a custom `render` function or custom
1679
+ * `options` that change the displayed format, both the month and year **must**
1680
+ * remain accessible to screen readers within this component. This element is
1681
+ * referenced by the calendar grid's `aria-labelledby` and serves as its
1682
+ * accessible name.
1683
+ */
1684
+ declare const MonthYearString: <F extends ValueFormat = ValueFormat>(props: MonthYearStringProps<F> & React.RefAttributes<HTMLSpanElement>) => React.ReactElement | null;
1685
+ /**
1686
+ * Button that navigates to the previous month. Automatically disabled
1687
+ * when the previous month falls before `min`. Exposes `data-direction="prev"`.
1688
+ */
1689
+ declare const PrevMonthButton: <F extends ValueFormat = ValueFormat>(props: PrevMonthButtonProps<F> & React.RefAttributes<HTMLButtonElement>) => React.ReactElement | null;
1690
+ /**
1691
+ * Button that navigates to the next month. Automatically disabled
1692
+ * when the next month falls after `max`. Exposes `data-direction="next"`.
1693
+ */
1694
+ declare const NextMonthButton: <F extends ValueFormat = ValueFormat>(props: NextMonthButtonProps<F> & React.RefAttributes<HTMLButtonElement>) => React.ReactElement | null;
1695
+ //#endregion
1696
+ //#region src/selected-range.d.ts
1697
+ /**
1698
+ * Visual overlay (`<td role="presentation">`) that highlights the selected
1699
+ * date range within a single week row. Exposes data-attributes for
1700
+ * `active`, `week-index`, `start-index`, `end-index`, `start-date`,
1701
+ * `end-date`, `extends-before`, and `extends-after`.
1702
+ */
1703
+ declare const RangeSelected: <F extends ValueFormat = ValueFormat>(props: RangeSelectedProps<F> & React.RefAttributes<HTMLTableCellElement>) => React.ReactElement | null;
1704
+ //#endregion
1705
+ //#region src/range-preview.d.ts
1706
+ /**
1707
+ * Visual overlay (`<td role="presentation">`) that highlights the hover
1708
+ * preview range within a single week row. Structurally identical to
1709
+ * {@link RangeSelected} but reads `previewStart`/`previewEnd` instead of
1710
+ * the committed range boundaries.
1711
+ */
1712
+ declare const RangePreview: <F extends ValueFormat = ValueFormat>(props: RangePreviewProps<F> & React.RefAttributes<HTMLTableCellElement>) => React.ReactElement | null;
1713
+ //#endregion
1714
+ //#region src/drag-handle.d.ts
1715
+ /** Convenience wrapper for {@link RangeDragHandle} with `edge="start"`. */
1716
+ declare const RangeStartDragHandle: <F extends ValueFormat = ValueFormat>(props: RangeStartDragHandleProps<F> & React.RefAttributes<HTMLSpanElement>) => React.ReactElement | null;
1717
+ /** Convenience wrapper for {@link RangeDragHandle} with `edge="end"`. */
1718
+ declare const RangeEndDragHandle: <F extends ValueFormat = ValueFormat>(props: RangeEndDragHandleProps<F> & React.RefAttributes<HTMLSpanElement>) => React.ReactElement | null;
1719
+ //#endregion
1720
+ //#region src/week-number.d.ts
1721
+ /**
1722
+ * Renders the ISO 8601 week number for a week row. Must be used inside
1723
+ * a {@link WeekTemplate}. Renders a `<td>` with `role="rowheader"`.
1724
+ */
1725
+ declare const WeekNumberCell: <F extends ValueFormat = ValueFormat>(props: WeekNumberCellProps<F> & React.RefAttributes<HTMLTableCellElement>) => React.ReactElement | null;
1726
+ /**
1727
+ * Column header for the week number column. Renders a `<th scope="col">`.
1728
+ */
1729
+ declare const WeekNumberHeader: <F extends ValueFormat = ValueFormat>(props: WeekNumberHeaderProps<F> & React.RefAttributes<HTMLTableCellElement>) => React.ReactElement | null;
1730
+ //#endregion
1731
+ //#region src/resolve-first-week.d.ts
1732
+ /**
1733
+ * A flexible specifier for a calendar week. Accepts a `Temporal.PlainDate`,
1734
+ * a native `Date`, an ISO week number, a week-of-year, or a month/day pair.
1735
+ */
1736
+ type FirstWeekSpec = Temporal$1.PlainDate | Date | {
1737
+ isoWeek: number;
1738
+ isoYear: number;
1739
+ } | {
1740
+ week: number;
1741
+ year: number;
1742
+ } | {
1743
+ month: number;
1744
+ year: number;
1745
+ day?: number;
1746
+ };
1747
+ /** Controls how a scroll target week is positioned within the visible window. */
1748
+ type ScrollToWeekSnap = "start" | "center" | "end" | "nearest";
1749
+ /**
1750
+ * Resolves any {@link FirstWeekSpec} variant to the `PlainDate` of the
1751
+ * containing week's start (snapped to `weekStartDay`).
1752
+ *
1753
+ * @param spec - The week specifier to resolve.
1754
+ * @param weekStartDay - Day the calendar week starts on (`0` = Sunday).
1755
+ * @param T - Temporal namespace.
1756
+ * @param timeZone - IANA time zone for native `Date` conversion. Defaults to system time zone.
1757
+ */
1758
+ declare function resolveFirstWeekSpec(spec: FirstWeekSpec, weekStartDay: WeekStartDay, T: TemporalNamespace, timeZone?: string): Temporal$1.PlainDate;
1759
+ /**
1760
+ * Computes a new `firstWeek` date given a scroll target and snap mode.
1761
+ *
1762
+ * The `weekStartDay` is inferred from `currentFirstWeek` (its day of week).
1763
+ *
1764
+ * @param currentFirstWeek - The current first visible week (a week-start date).
1765
+ * @param weekCount - Number of visible week rows.
1766
+ * @param target - The week-start date to scroll to.
1767
+ * @param options - Optional snap mode (default `"start"`).
1768
+ */
1769
+ declare function resolveFirstWeek(currentFirstWeek: Temporal$1.PlainDate, weekCount: number, target: Temporal$1.PlainDate, options?: {
1770
+ snap?: ScrollToWeekSnap;
1771
+ }): Temporal$1.PlainDate;
1772
+ //#endregion
1773
+ //#region src/compute-weeks-in-window.d.ts
1774
+ interface WeekDescriptor {
1775
+ startDate: Temporal$1.PlainDate;
1776
+ endDate: Temporal$1.PlainDate;
1777
+ weekIndex: number;
1778
+ month: number;
1779
+ year: number;
1780
+ }
1781
+ /**
1782
+ * Computes an array of week descriptors for a continuous window.
1783
+ * `firstWeek` is snapped back to the nearest `weekStartDay`.
1784
+ */
1785
+ declare function computeWeeksInWindow(firstWeek: Temporal$1.PlainDate, weekCount: number, weekStartDay: WeekStartDay, _T: TemporalNamespace): WeekDescriptor[];
1786
+ //#endregion
1787
+ //#region src/weeks-view-types.d.ts
1788
+ /** Props accepted by `WeeksView.Root`. */
1789
+ interface WeeksViewRootProps {
1790
+ /** Number of week rows to display simultaneously. */
1791
+ weekCount: number;
1792
+ /** The controlled first visible week. When provided, the component is controlled. */
1793
+ firstWeek?: FirstWeekSpec;
1794
+ /** The initial first visible week (uncontrolled). */
1795
+ defaultFirstWeek?: FirstWeekSpec;
1796
+ /** Called when the first visible week changes via navigation or focus movement. */
1797
+ onFirstWeekChange?: (date: Temporal$1.PlainDate) => void;
1798
+ /**
1799
+ * How much to scroll per navigation step.
1800
+ * - `"row"` — scroll one week row at a time.
1801
+ * - `"page"` — scroll a full page (all visible rows) at a time.
1802
+ * @default "row"
1803
+ */
1804
+ scrollBy?: "row" | "page";
1805
+ /**
1806
+ * How navigation behaves at `min`/`max` bounds.
1807
+ * @default "unbounded"
1808
+ */
1809
+ overflowBehavior?: OverflowBehavior;
1810
+ /** Called when the visible window changes. */
1811
+ onWindowChange?: (info: WindowInfo) => void;
1812
+ /** React children. */
1813
+ children?: React.ReactNode;
1814
+ }
1815
+ /** A month/year pair visible in the weeks window. */
1816
+ interface VisibleMonth {
1817
+ month: number;
1818
+ year: number;
1819
+ }
1820
+ /** Describes the currently visible window of weeks. */
1821
+ interface WindowInfo {
1822
+ /** The first date of the visible window. */
1823
+ windowStart: Temporal$1.PlainDate;
1824
+ /** The last date of the visible window. */
1825
+ windowEnd: Temporal$1.PlainDate;
1826
+ /** Number of week rows in the window (the prop value, not actual when shrunk). */
1827
+ weekCount: number;
1828
+ /** Total number of calendar days in the window. */
1829
+ dayCount: number;
1830
+ /** Number of weeks that contain at least one enabled date. */
1831
+ enabledWeekCount: number;
1832
+ /** Number of enabled (selectable) dates in the window. */
1833
+ enabledDayCount: number;
1834
+ /** Distinct months visible in the window, in chronological order. */
1835
+ visibleMonths: VisibleMonth[];
1836
+ }
1837
+ /** Stable values (config + callbacks) provided by `WeeksView.Root`. */
1838
+ interface WeeksViewStableContextValue {
1839
+ /** Number of week rows to display (the prop value). */
1840
+ weekCount: number;
1841
+ /** How much to scroll per navigation step. */
1842
+ scrollBy: "row" | "page";
1843
+ /** How navigation behaves at bounds. */
1844
+ overflowBehavior: OverflowBehavior;
1845
+ /** Navigate to the next week(s). Optionally override the shift amount (in weeks). */
1846
+ goNext: (shiftBy?: number) => void;
1847
+ /** Navigate to the previous week(s). Optionally override the shift amount (in weeks). */
1848
+ goPrev: (shiftBy?: number) => void;
1849
+ /** Imperatively scroll so that the target week is visible at the given snap position. */
1850
+ scrollToWeek: (target: FirstWeekSpec, options?: {
1851
+ snap?: ScrollToWeekSnap;
1852
+ }) => void;
1853
+ /** Ref tracking whether the grid currently holds DOM focus (avoids state re-renders). */
1854
+ gridFocusedRef: React.MutableRefObject<boolean>;
1855
+ /** Register (or clear) the id of a label element for `aria-labelledby`. */
1856
+ setGridLabelId: (id: string | undefined) => void;
1857
+ }
1858
+ /** Volatile state provided by `WeeksView.Root`. */
1859
+ interface WeeksViewStateContextValue {
1860
+ /** The logically focused date in the grid. */
1861
+ focusedDate: Temporal$1.PlainDate;
1862
+ /** Information about the currently visible window. */
1863
+ windowInfo: WindowInfo;
1864
+ /** Label element id for `aria-labelledby` on the grid. */
1865
+ gridLabelIds: Record<number, string>;
1866
+ /** Computed week descriptors for all visible rows. */
1867
+ weeks: WeekDescriptor[];
1868
+ /** Date-time representing the current moment (for "today" highlighting). */
1869
+ currentDateTime: Temporal$1.PlainDateTime;
1870
+ }
1871
+ //#endregion
1872
+ //#region src/weeks-view.d.ts
1873
+ /** Imperative handle exposed by WeeksView.Root via ref. */
1874
+ interface WeeksViewRootHandle {
1875
+ scrollToWeek: (target: FirstWeekSpec, options?: {
1876
+ snap?: ScrollToWeekSnap;
1877
+ }) => void;
1878
+ }
1879
+ declare const WeeksViewRoot: React$1.ForwardRefExoticComponent<WeeksViewRootProps & React$1.RefAttributes<WeeksViewRootHandle>>;
1880
+ type WeeksViewProps<F extends ValueFormat = "PlainDate"> = CalendarProviderProps<F> & WeeksViewRootProps;
1881
+ declare const WeeksView: WeeksViewComponent;
1882
+ interface WeeksViewComponent extends React$1.ForwardRefExoticComponent<WeeksViewProps & React$1.RefAttributes<WeeksViewRootHandle>> {
1883
+ Root: typeof WeeksViewRoot;
1884
+ }
1885
+ //#endregion
1886
+ //#region src/weeks-navigation.d.ts
1887
+ /** State exposed by `PrevWeeksButton` and `NextWeeksButton`. */
1888
+ type WeeksNavButtonState = {
1889
+ root: RootState;
1890
+ direction: "prev" | "next";
1891
+ disabled: boolean;
1892
+ };
1893
+ /** Own props for weeks navigation buttons. */
1894
+ interface WeeksNavButtonOwnProps {
1895
+ /** Overrides weekCount as the shift amount. Must be a positive integer. */
1896
+ shiftBy?: number;
1897
+ }
1898
+ /** Full props for the `PrevWeeksButton` component. */
1899
+ type PrevWeeksButtonProps = useRender.ComponentProps<"button", WeeksNavButtonState> & WeeksNavButtonOwnProps;
1900
+ /** Full props for the `NextWeeksButton` component. */
1901
+ type NextWeeksButtonProps = useRender.ComponentProps<"button", WeeksNavButtonState> & WeeksNavButtonOwnProps;
1902
+ /** State exposed by `WeeksView.WeekCount`. */
1903
+ type WeekCountState = {
1904
+ root: RootState;
1905
+ weekCount: number;
1906
+ };
1907
+ /** Full props for the `WeeksView.WeekCount` component. */
1908
+ type WeekCountProps = useRender.ComponentProps<"span", WeekCountState>;
1909
+ /**
1910
+ * Button that navigates to the previous week(s). Automatically disabled when
1911
+ * no more weeks are available based on `overflowBehavior` and `min`.
1912
+ * Exposes `data-direction="prev"`.
1913
+ */
1914
+ declare const PrevWeeksButton: React$1.ForwardRefExoticComponent<Omit<PrevWeeksButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
1915
+ /**
1916
+ * Button that navigates to the next week(s). Automatically disabled when
1917
+ * no more weeks are available based on `overflowBehavior` and `max`.
1918
+ * Exposes `data-direction="next"`.
1919
+ */
1920
+ declare const NextWeeksButton: React$1.ForwardRefExoticComponent<Omit<NextWeeksButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
1921
+ /**
1922
+ * Renders the current visible week count as a number. Useful with shrink
1923
+ * overflow modes where the actual count may be less than the `weekCount` prop.
1924
+ */
1925
+ declare const WeekCount: React$1.ForwardRefExoticComponent<Omit<WeekCountProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
1926
+ //#endregion
1927
+ //#region src/month-separator.d.ts
1928
+ /** State exposed by the MonthSeparator component and its children. */
1929
+ type MonthSeparatorState = {
1930
+ /** Calendar month (1-12). */month: number; /** Calendar year. */
1931
+ year: number; /** True when this is the first month of a new year in the visible window. */
1932
+ firstOfYear: boolean; /** True for the separator at the top of the visible window. */
1933
+ firstVisible: boolean; /** Number of weeks of the previous month visible above this separator. */
1934
+ weeksVisibleBefore: number; /** Number of weeks of this month visible below this separator. */
1935
+ weeksVisibleAfter: number;
1936
+ /**
1937
+ * 0-based column index where the 1st of the month falls within the week row.
1938
+ * Accounts for week number column if present (column 0 = week number).
1939
+ */
1940
+ firstDayColumn: number; /** Total number of columns (7 days + optional week number column). */
1941
+ totalColumns: number; /** True when the 1st day of this month is visible in the weeks below. */
1942
+ firstDayVisible: boolean;
1943
+ /**
1944
+ * Number of week rows between this separator and the next separator
1945
+ * (or end of window). Use this for CSS grid `gridRow: span N` to
1946
+ * avoid overlapping the next month's label.
1947
+ */
1948
+ fullWeeksVisibleAfter: number; /** 1-based grid row index where this separator's weeks start. */
1949
+ gridRowStart: number;
1950
+ };
1951
+ type MonthChildProps = useRender.ComponentProps<"span", MonthSeparatorState> & {
1952
+ /** BCP 47 locale(s) for month name formatting. @default "en-US" */locale?: string; /** Month name format. @default "long" */
1953
+ format?: "long" | "short" | "narrow";
1954
+ };
1955
+ declare const MonthSeparatorMonth: React$1.ForwardRefExoticComponent<Omit<MonthChildProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
1956
+ type YearChildProps = useRender.ComponentProps<"span", MonthSeparatorState>;
1957
+ declare const MonthSeparatorYear: React$1.ForwardRefExoticComponent<Omit<YearChildProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
1958
+ type WeekCountChildProps = useRender.ComponentProps<"span", MonthSeparatorState>;
1959
+ declare const MonthSeparatorWeekCount: React$1.ForwardRefExoticComponent<Omit<WeekCountChildProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
1960
+ type MonthSeparatorRowProps = useRender.ComponentProps<"tr", MonthSeparatorState>;
1961
+ /** Renders the `<tr>` for a month separator. Provides MonthSeparatorDataContext. */
1962
+ declare const MonthSeparatorRow: React$1.ForwardRefExoticComponent<Omit<MonthSeparatorRowProps, "ref"> & React$1.RefAttributes<HTMLTableRowElement>>;
1963
+ type MonthSeparatorCellProps = useRender.ComponentProps<"td", MonthSeparatorState>;
1964
+ /** Renders the `<td>` inside a MonthSeparatorRow. */
1965
+ declare const MonthSeparatorCell: React$1.ForwardRefExoticComponent<Omit<MonthSeparatorCellProps, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
1966
+ type MonthSeparatorProps = useRender.ComponentProps<"tr", MonthSeparatorState>;
1967
+ /**
1968
+ * Convenience component: `<tr><td colspan="7">children</td></tr>`.
1969
+ * Combines MonthSeparatorRow + MonthSeparatorCell.
1970
+ * Default children: `<Month /> <Year />`.
1971
+ */
1972
+ declare const MonthSeparator: React$1.ForwardRefExoticComponent<Omit<MonthSeparatorProps, "ref"> & React$1.RefAttributes<HTMLTableRowElement>>;
1973
+ //#endregion
1974
+ //#region src/root-selection.d.ts
1975
+ /**
1976
+ * Pure utility that computes the preview range for a hovered date, using the
1977
+ * same logic as the internal hook. Useful for deriving the preview in an
1978
+ * `onHoveredDateChange` handler without needing a controlled `previewRange`.
1979
+ */
1980
+ declare function computePreviewRange(hoveredDate: Temporal$1.PlainDate, currentRange: DateRange | null, rangeMode: RangeMode, preventRangeReversal?: boolean, T?: TemporalNamespace): DateRange<"PlainDate"> | null;
1981
+ //#endregion
1982
+ //#region src/temporal-polyfill.d.ts
1983
+ declare const Temporal: TemporalNamespace;
1984
+ //#endregion
1985
+ //#region src/calendar-context.d.ts
1986
+ /** Returns the stable (callbacks/config) part of CalendarProvider context. */
1987
+ declare function useCalendarStable(): CalendarStableContextValue;
1988
+ /** Returns the volatile state part of CalendarProvider context. */
1989
+ declare function useCalendarState(): CalendarStateContextValue;
1990
+ //#endregion
1991
+ //#region src/month-view-context.d.ts
1992
+ /** Returns the MonthView stable context (config + callbacks). */
1993
+ declare function useMonthViewStable(): MonthViewStableContextValue;
1994
+ /** Returns the MonthView state context (volatile grid data). */
1995
+ declare function useMonthViewState(): MonthViewStateContextValue;
1996
+ //#endregion
1997
+ //#region src/view-context.d.ts
1998
+ /** Shared context provided by both MonthView.Root and WeeksView.Root. */
1999
+ interface ViewContextValue {
2000
+ /** Which view type is active. */
2001
+ viewType: "month" | "weeks";
2002
+ /** The logically focused date in the grid. */
2003
+ focusedDate: Temporal$1.PlainDate;
2004
+ /** Moves the logically focused date. */
2005
+ setFocusedDate: (date: Temporal$1.PlainDate) => void;
2006
+ /** The date that should receive `tabIndex={0}` for roving tabindex. */
2007
+ tabTargetDate: Temporal$1.PlainDate;
2008
+ /** Whether the grid currently holds DOM focus. */
2009
+ gridHasFocus: boolean;
2010
+ /** Tracks whether the grid currently holds DOM focus. */
2011
+ setGridHasFocus: (v: boolean) => void;
2012
+ }
2013
+ /** Returns the nearest view context (MonthView or WeeksView). */
2014
+ declare function useViewContext(): ViewContextValue;
2015
+ //#endregion
2016
+ //#region src/weeks-view-context.d.ts
2017
+ /** Returns the WeeksView stable context (config + callbacks). */
2018
+ declare function useWeeksViewStable(): WeeksViewStableContextValue;
2019
+ /** Returns the WeeksView state context (volatile grid data). */
2020
+ declare function useWeeksViewState(): WeeksViewStateContextValue;
2021
+ //#endregion
2022
+ export { Grid as $, TemporalNamespace as $t, WeeksViewRootHandle as A, GridHeaderCellProps as At, resolveFirstWeek as B, NextMonthButtonProps as Bt, WeekCountProps as C, DayButtonState as Ct, WeeksView as D, DragHandleState as Dt, WeeksNavButtonState as E, DragHandleOwnProps as Et, WindowInfo as F, GridState as Ft, RangeStartDragHandle as G, RangeMode as Gt, WeekNumberCell as H, PlainDateObject as Ht, WeekDescriptor as I, MonthData as It, DateString as J, RangeSelectedProps as Jt, RangePreview as K, RangePreviewProps as Kt, computeWeeksInWindow as L, MonthYearStringProps as Lt, WeeksViewRootProps as M, GridHeaderProps as Mt, WeeksViewStableContextValue as N, GridHeaderState as Nt, WeeksViewProps as O, GridBodyProps as Ot, WeeksViewStateContextValue as P, GridProps as Pt, TimeString as Q, RootState as Qt, FirstWeekSpec as R, MonthYearStringState as Rt, WeekCount as S, DayButtonProps as St, WeeksNavButtonOwnProps as T, DayCellTemplateState as Tt, WeekNumberHeader as U, PrevMonthButtonProps as Ut, resolveFirstWeekSpec as V, OutsideDays as Vt, RangeEndDragHandle as W, RangeEndDragHandleProps as Wt, NextMonthButton as X, RangeStartDragHandleProps as Xt, MonthYearString as Y, RangeSelectedState as Yt, PrevMonthButton as Z, RawValueForFormat as Zt, MonthSeparatorYear as _, CalendarStateContextValue as _t, useMonthViewStable as a, WeekNumberCellProps as an, GridHeaderCell as at, PrevWeeksButton as b, DateStringState as bt, useCalendarState as c, WeekNumberHeaderState as cn, MonthViewRoot as ct, MonthSeparator as d, WeekTemplateState as dn, MonthViewStateContextValue as dt, TimeStringProps as en, GridBody as et, MonthSeparatorCell as f, DayCellDataContext as fn, MonthOverflowBehavior as ft, MonthSeparatorWeekCount as g, CalendarStableContextValue as gt, MonthSeparatorState as h, CalendarProviderProps as ht, useViewContext as i, ValueFormat as in, GridHeader as it, VisibleMonth as j, GridHeaderCellState as jt, WeeksViewRoot as k, GridBodyState as kt, Temporal as l, WeekStartDay as ln, MonthViewRootProps as lt, MonthSeparatorRow as m, WeekDataContext as mn, CalendarProvider as mt, useWeeksViewState as n, ValueChangeMeta as nn, DayButton as nt, useMonthViewState as o, WeekNumberCellState as on, MonthView as ot, MonthSeparatorMonth as p, GridContext as pn, OverflowBehavior as pt, RangeSelected as q, RangePreviewState as qt, ViewContextValue as r, ValueForFormat as rn, DayCellTemplate as rt, useCalendarStable as s, WeekNumberHeaderProps as sn, MonthViewProps as st, useWeeksViewStable as t, TimeStringState as tn, WeekTemplate as tt, computePreviewRange as u, WeekTemplateProps as un, MonthViewStableContextValue as ut, NextWeeksButton as v, DateRange as vt, WeekCountState as w, DayCellTemplateProps as wt, PrevWeeksButtonProps as x, DateValueObject as xt, NextWeeksButtonProps as y, DateStringProps as yt, ScrollToWeekSnap as z, NavButtonState as zt };