@klinking/colander 0.0.0 → 2.0.1

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 +51 -48
  2. package/dist/formats/date.d.cts +10 -37
  3. package/dist/formats/date.d.mts +10 -37
  4. package/dist/formats/date.mjs +6 -2
  5. package/dist/formats/object.cjs +51 -48
  6. package/dist/formats/object.d.cts +10 -37
  7. package/dist/formats/object.d.mts +10 -37
  8. package/dist/formats/object.mjs +6 -2
  9. package/dist/formats/plain-date-time.cjs +51 -48
  10. package/dist/formats/plain-date-time.d.cts +10 -37
  11. package/dist/formats/plain-date-time.d.mts +10 -37
  12. package/dist/formats/plain-date-time.mjs +6 -2
  13. package/dist/formats/plain-date.cjs +51 -48
  14. package/dist/formats/plain-date.d.cts +10 -37
  15. package/dist/formats/plain-date.d.mts +10 -37
  16. package/dist/formats/plain-date.mjs +6 -2
  17. package/dist/formats/plain-month-day.cjs +51 -48
  18. package/dist/formats/plain-month-day.d.cts +10 -37
  19. package/dist/formats/plain-month-day.d.mts +10 -37
  20. package/dist/formats/plain-month-day.mjs +6 -2
  21. package/dist/formats/plain-year-month.cjs +51 -48
  22. package/dist/formats/plain-year-month.d.cts +10 -37
  23. package/dist/formats/plain-year-month.d.mts +10 -37
  24. package/dist/formats/plain-year-month.mjs +6 -2
  25. package/dist/formats/zoned-date-time.cjs +51 -48
  26. package/dist/formats/zoned-date-time.d.cts +10 -37
  27. package/dist/formats/zoned-date-time.d.mts +10 -37
  28. package/dist/formats/zoned-date-time.mjs +6 -2
  29. package/dist/index.cjs +47 -48
  30. package/dist/index.d.cts +11 -2
  31. package/dist/index.d.mts +11 -2
  32. package/dist/index.mjs +2 -2
  33. package/dist/{temporal-polyfill-DTx0VIX5.mjs → weeks-navigation-B-Nch3LS.mjs} +357 -562
  34. package/dist/{temporal-polyfill-DU8VfleL.cjs → weeks-navigation-FxcECgCR.cjs} +357 -568
  35. package/dist/{weeks-view-context-BN6qR-83.d.mts → weeks-view-context-BZeWx9N8.d.cts} +275 -258
  36. package/dist/{weeks-view-context-aHGgYkpt.d.cts → weeks-view-context-MVe1b-BS.d.mts} +275 -258
  37. package/package.json +20 -20
  38. package/src/calendar-context.ts +12 -5
  39. package/src/calendar-provider.test.tsx +18 -4
  40. package/src/calendar-provider.tsx +130 -35
  41. package/src/calendar-types.ts +21 -4
  42. package/src/compute-weeks-in-window.test.ts +9 -7
  43. package/src/context.ts +1 -1
  44. package/src/day-cell.test.tsx +109 -0
  45. package/src/day-cell.tsx +132 -49
  46. package/src/drag-handle.tsx +23 -24
  47. package/src/formats/date.ts +120 -56
  48. package/src/formats/formats.test.ts +8 -4
  49. package/src/formats/object.ts +120 -56
  50. package/src/formats/plain-date-time.ts +120 -56
  51. package/src/formats/plain-date.ts +120 -56
  52. package/src/formats/plain-month-day.ts +120 -56
  53. package/src/formats/plain-year-month.ts +120 -56
  54. package/src/formats/zoned-date-time.ts +120 -56
  55. package/src/grid-header.tsx +24 -18
  56. package/src/grid.event-perf.test.tsx +30 -13
  57. package/src/grid.perf.test.tsx +97 -33
  58. package/src/grid.tsx +75 -43
  59. package/src/index.ts +16 -4
  60. package/src/keyboard.test.ts +110 -42
  61. package/src/keyboard.ts +18 -7
  62. package/src/month-separator.test.tsx +3 -1
  63. package/src/month-separator.tsx +30 -9
  64. package/src/month-view-context.ts +8 -3
  65. package/src/month-view-types.ts +14 -10
  66. package/src/month-view.test.tsx +687 -68
  67. package/src/month-view.tsx +176 -71
  68. package/src/navigation.tsx +77 -47
  69. package/src/overflow.test.ts +15 -13
  70. package/src/overflow.ts +10 -2
  71. package/src/range-preview.tsx +37 -12
  72. package/src/resolve-first-week.test.ts +14 -10
  73. package/src/resolve-first-week.ts +6 -2
  74. package/src/root-selection.ts +185 -101
  75. package/src/selected-range.tsx +47 -22
  76. package/src/test-temporal.ts +0 -2
  77. package/src/types.ts +126 -103
  78. package/src/utils.bench.ts +30 -6
  79. package/src/utils.test.ts +203 -55
  80. package/src/utils.ts +156 -54
  81. package/src/view-context.ts +4 -1
  82. package/src/week-number.tsx +5 -8
  83. package/src/weeks-grid.tsx +45 -19
  84. package/src/weeks-keyboard.test.ts +6 -7
  85. package/src/weeks-keyboard.ts +8 -3
  86. package/src/weeks-navigation.tsx +21 -9
  87. package/src/weeks-view-context.ts +8 -3
  88. package/src/weeks-view-state.ts +100 -33
  89. package/src/weeks-view-types.ts +14 -8
  90. package/src/weeks-view.test.tsx +127 -19
  91. package/src/weeks-view.tsx +30 -12
  92. package/src/temporal-polyfill.test.ts +0 -317
  93. package/src/temporal-polyfill.ts +0 -566
@@ -1,49 +1,52 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_temporal_polyfill = require("../temporal-polyfill-DU8VfleL.cjs");
3
- exports.CalendarProvider = require_temporal_polyfill.CalendarProvider;
4
- exports.DateString = require_temporal_polyfill.DateString;
5
- exports.DayButton = require_temporal_polyfill.DayButton;
6
- exports.DayCellDataContext = require_temporal_polyfill.DayCellDataContext;
7
- exports.DayCellTemplate = require_temporal_polyfill.DayCellTemplate;
8
- exports.Grid = require_temporal_polyfill.Grid;
9
- exports.GridBody = require_temporal_polyfill.GridBody;
10
- exports.GridContext = require_temporal_polyfill.GridContext;
11
- exports.GridHeader = require_temporal_polyfill.GridHeader;
12
- exports.GridHeaderCell = require_temporal_polyfill.GridHeaderCell;
13
- exports.MonthSeparator = require_temporal_polyfill.MonthSeparator;
14
- exports.MonthSeparatorCell = require_temporal_polyfill.MonthSeparatorCell;
15
- exports.MonthSeparatorMonth = require_temporal_polyfill.MonthSeparatorMonth;
16
- exports.MonthSeparatorRow = require_temporal_polyfill.MonthSeparatorRow;
17
- exports.MonthSeparatorWeekCount = require_temporal_polyfill.MonthSeparatorWeekCount;
18
- exports.MonthSeparatorYear = require_temporal_polyfill.MonthSeparatorYear;
19
- exports.MonthView = require_temporal_polyfill.MonthView;
20
- exports.MonthViewRoot = require_temporal_polyfill.MonthViewRoot;
21
- exports.MonthYearString = require_temporal_polyfill.MonthYearString;
22
- exports.NextMonthButton = require_temporal_polyfill.NextMonthButton;
23
- exports.NextWeeksButton = require_temporal_polyfill.NextWeeksButton;
24
- exports.PrevMonthButton = require_temporal_polyfill.PrevMonthButton;
25
- exports.PrevWeeksButton = require_temporal_polyfill.PrevWeeksButton;
26
- exports.RangeEndDragHandle = require_temporal_polyfill.RangeEndDragHandle;
27
- exports.RangePreview = require_temporal_polyfill.RangePreview;
28
- exports.RangeSelected = require_temporal_polyfill.RangeSelected;
29
- exports.RangeStartDragHandle = require_temporal_polyfill.RangeStartDragHandle;
30
- exports.Temporal = require_temporal_polyfill.Temporal;
31
- exports.TimeString = require_temporal_polyfill.TimeString;
32
- exports.WeekCount = require_temporal_polyfill.WeekCount;
33
- exports.WeekDataContext = require_temporal_polyfill.WeekDataContext;
34
- exports.WeekNumberCell = require_temporal_polyfill.WeekNumberCell;
35
- exports.WeekNumberHeader = require_temporal_polyfill.WeekNumberHeader;
36
- exports.WeekTemplate = require_temporal_polyfill.WeekTemplate;
37
- exports.WeeksView = require_temporal_polyfill.WeeksView;
38
- exports.WeeksViewRoot = require_temporal_polyfill.WeeksViewRoot;
39
- exports.computePreviewRange = require_temporal_polyfill.computePreviewRange;
40
- exports.computeWeeksInWindow = require_temporal_polyfill.computeWeeksInWindow;
41
- exports.resolveFirstWeek = require_temporal_polyfill.resolveFirstWeek;
42
- exports.resolveFirstWeekSpec = require_temporal_polyfill.resolveFirstWeekSpec;
43
- exports.useCalendarStable = require_temporal_polyfill.useCalendarStable;
44
- exports.useCalendarState = require_temporal_polyfill.useCalendarState;
45
- exports.useMonthViewStable = require_temporal_polyfill.useMonthViewStable;
46
- exports.useMonthViewState = require_temporal_polyfill.useMonthViewState;
47
- exports.useViewContext = require_temporal_polyfill.useViewContext;
48
- exports.useWeeksViewStable = require_temporal_polyfill.useWeeksViewStable;
49
- exports.useWeeksViewState = require_temporal_polyfill.useWeeksViewState;
2
+ const require_weeks_navigation = require("../weeks-navigation-FxcECgCR.cjs");
3
+ //#region src/formats/zoned-date-time.ts
4
+ const CalendarProvider = require_weeks_navigation.CalendarProvider;
5
+ const MonthView = require_weeks_navigation.MonthView;
6
+ //#endregion
7
+ exports.CalendarProvider = CalendarProvider;
8
+ exports.DateString = require_weeks_navigation.DateString;
9
+ exports.DayButton = require_weeks_navigation.DayButton;
10
+ exports.DayCellDataContext = require_weeks_navigation.DayCellDataContext;
11
+ exports.DayCellTemplate = require_weeks_navigation.DayCellTemplate;
12
+ exports.Grid = require_weeks_navigation.Grid;
13
+ exports.GridBody = require_weeks_navigation.GridBody;
14
+ exports.GridContext = require_weeks_navigation.GridContext;
15
+ exports.GridHeader = require_weeks_navigation.GridHeader;
16
+ exports.GridHeaderCell = require_weeks_navigation.GridHeaderCell;
17
+ exports.MonthSeparator = require_weeks_navigation.MonthSeparator;
18
+ exports.MonthSeparatorCell = require_weeks_navigation.MonthSeparatorCell;
19
+ exports.MonthSeparatorMonth = require_weeks_navigation.MonthSeparatorMonth;
20
+ exports.MonthSeparatorRow = require_weeks_navigation.MonthSeparatorRow;
21
+ exports.MonthSeparatorWeekCount = require_weeks_navigation.MonthSeparatorWeekCount;
22
+ exports.MonthSeparatorYear = require_weeks_navigation.MonthSeparatorYear;
23
+ exports.MonthView = MonthView;
24
+ exports.MonthViewRoot = require_weeks_navigation.MonthViewRoot;
25
+ exports.MonthYearString = require_weeks_navigation.MonthYearString;
26
+ exports.NextMonthButton = require_weeks_navigation.NextMonthButton;
27
+ exports.NextWeeksButton = require_weeks_navigation.NextWeeksButton;
28
+ exports.PrevMonthButton = require_weeks_navigation.PrevMonthButton;
29
+ exports.PrevWeeksButton = require_weeks_navigation.PrevWeeksButton;
30
+ exports.RangeEndDragHandle = require_weeks_navigation.RangeEndDragHandle;
31
+ exports.RangePreview = require_weeks_navigation.RangePreview;
32
+ exports.RangeSelected = require_weeks_navigation.RangeSelected;
33
+ exports.RangeStartDragHandle = require_weeks_navigation.RangeStartDragHandle;
34
+ exports.TimeString = require_weeks_navigation.TimeString;
35
+ exports.WeekCount = require_weeks_navigation.WeekCount;
36
+ exports.WeekDataContext = require_weeks_navigation.WeekDataContext;
37
+ exports.WeekNumberCell = require_weeks_navigation.WeekNumberCell;
38
+ exports.WeekNumberHeader = require_weeks_navigation.WeekNumberHeader;
39
+ exports.WeekTemplate = require_weeks_navigation.WeekTemplate;
40
+ exports.WeeksView = require_weeks_navigation.WeeksView;
41
+ exports.WeeksViewRoot = require_weeks_navigation.WeeksViewRoot;
42
+ exports.computePreviewRange = require_weeks_navigation.computePreviewRange;
43
+ exports.computeWeeksInWindow = require_weeks_navigation.computeWeeksInWindow;
44
+ exports.resolveFirstWeek = require_weeks_navigation.resolveFirstWeek;
45
+ exports.resolveFirstWeekSpec = require_weeks_navigation.resolveFirstWeekSpec;
46
+ exports.useCalendarStable = require_weeks_navigation.useCalendarStable;
47
+ exports.useCalendarState = require_weeks_navigation.useCalendarState;
48
+ exports.useMonthViewStable = require_weeks_navigation.useMonthViewStable;
49
+ exports.useMonthViewState = require_weeks_navigation.useMonthViewState;
50
+ exports.useViewContext = require_weeks_navigation.useViewContext;
51
+ exports.useWeeksViewStable = require_weeks_navigation.useWeeksViewStable;
52
+ exports.useWeeksViewState = require_weeks_navigation.useWeeksViewState;
@@ -1,45 +1,18 @@
1
- import { $ as Grid, $t as TemporalNamespace, A as WeeksViewRootHandle, At as GridHeaderCellProps$1, B as resolveFirstWeek, Bt as NextMonthButtonProps$1, C as WeekCountProps, Ct as DayButtonState$1, D as WeeksView, Dt as DragHandleState$1, E as WeeksNavButtonState, Et as DragHandleOwnProps, F as WindowInfo, Ft as GridState$1, G as RangeStartDragHandle, Gt as RangeMode, H as WeekNumberCell, Ht as PlainDateObject, I as WeekDescriptor, It as MonthData, J as DateString, Jt as RangeSelectedProps$1, K as RangePreview, Kt as RangePreviewProps$1, L as computeWeeksInWindow, Lt as MonthYearStringProps$1, M as WeeksViewRootProps, Mt as GridHeaderProps$1, N as WeeksViewStableContextValue, Nt as GridHeaderState$1, O as WeeksViewProps, Ot as GridBodyProps$1, P as WeeksViewStateContextValue, Pt as GridProps$1, Q as TimeString, Qt as RootState$1, R as FirstWeekSpec, Rt as MonthYearStringState$1, S as WeekCount, St as DayButtonProps$1, T as WeeksNavButtonOwnProps, Tt as DayCellTemplateState$1, U as WeekNumberHeader, Ut as PrevMonthButtonProps$1, V as resolveFirstWeekSpec, Vt as OutsideDays, W as RangeEndDragHandle, Wt as RangeEndDragHandleProps$1, X as NextMonthButton, Xt as RangeStartDragHandleProps$1, Y as MonthYearString, Yt as RangeSelectedState$1, Z as PrevMonthButton, Zt as RawValueForFormat$1, _ as MonthSeparatorYear, _t as CalendarStateContextValue, a as useMonthViewStable, an as WeekNumberCellProps$1, at as GridHeaderCell, b as PrevWeeksButton, bt as DateStringState$1, c as useCalendarState, cn as WeekNumberHeaderState$1, ct as MonthViewRoot, d as MonthSeparator, dn as WeekTemplateState$1, dt as MonthViewStateContextValue, en as TimeStringProps$1, et as GridBody, f as MonthSeparatorCell, fn as DayCellDataContext, ft as MonthOverflowBehavior, g as MonthSeparatorWeekCount, gt as CalendarStableContextValue, h as MonthSeparatorState, ht as CalendarProviderProps$1, i as useViewContext, in as ValueFormat, it as GridHeader, j as VisibleMonth, jt as GridHeaderCellState$1, k as WeeksViewRoot, kt as GridBodyState$1, l as Temporal, ln as WeekStartDay, lt as MonthViewRootProps, m as MonthSeparatorRow, mn as WeekDataContext, mt as CalendarProvider, n as useWeeksViewState, nn as ValueChangeMeta, nt as DayButton, o as useMonthViewState, on as WeekNumberCellState$1, ot as MonthView, p as MonthSeparatorMonth, pn as GridContext, pt as OverflowBehavior, q as RangeSelected, qt as RangePreviewState$1, r as ViewContextValue, rn as ValueForFormat$1, rt as DayCellTemplate, s as useCalendarStable, sn as WeekNumberHeaderProps$1, st as MonthViewProps, t as useWeeksViewStable, tn as TimeStringState$1, tt as WeekTemplate, u as computePreviewRange, un as WeekTemplateProps$1, ut as MonthViewStableContextValue, v as NextWeeksButton, vt as DateRange$1, w as WeekCountState, wt as DayCellTemplateProps$1, x as PrevWeeksButtonProps, xt as DateValueObject, y as NextWeeksButtonProps, yt as DateStringProps$1, z as ScrollToWeekSnap, zt as NavButtonState$1 } from "../weeks-view-context-aHGgYkpt.cjs";
1
+ import { $ as GridBody, $t as TimeStringState, A as VisibleMonth, At as GridHeaderProps, B as resolveFirstWeekSpec, Bt as PlainDateObject, C as WeekCountState, Ct as DayCellTemplateState, D as WeeksViewProps$1, Dt as GridBodyState, E as WeeksView, Et as GridBodyProps, F as WeekDescriptor, Ft as MonthYearStringProps, G as RangePreview, Gt as RangePreviewState, H as WeekNumberHeader, Ht as RangeEndDragHandleProps, I as computeWeeksInWindow, It as MonthYearStringState, J as MonthYearString, Jt as RangeStartDragHandleProps, K as RangeSelected, Kt as RangeSelectedProps, L as FirstWeekSpec, Lt as NavButtonState, M as WeeksViewStableContextValue, Mt as GridProps, N as WeeksViewStateContextValue, Nt as GridState, O as WeeksViewRoot, Ot as GridHeaderCellProps, P as WindowInfo, Pt as MonthData, Q as Grid, Qt as TimeStringProps, R as ScrollToWeekSnap, Rt as NextMonthButtonProps, S as WeekCountProps, St as DayCellTemplateProps, T as WeeksNavButtonState, Tt as DragHandleState, U as RangeEndDragHandle, Ut as RangeMode, V as WeekNumberCell, Vt as PrevMonthButtonProps, W as RangeStartDragHandle, Wt as RangePreviewProps, X as PrevMonthButton, Xt as RootState, Y as NextMonthButton, Yt as RawValueForFormat$1, Z as TimeString, Zt as TemporalNamespace, _ as NextWeeksButton, _t as DateStringProps, a as useMonthViewStable, an as WeekNumberHeaderProps, b as PrevWeeksButtonProps, bt as DayButtonProps, c as useCalendarState, cn as WeekTemplateProps, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as GridContext, dt as MonthOverflowBehavior, en as ValueChangeMeta, et as WeekTemplate, f as MonthSeparatorMonth, fn as WeekDataContext, ft as OverflowBehavior, g as MonthSeparatorYear, gt as DateRange$1, h as MonthSeparatorWeekCount, ht as CalendarStateContextValue, i as useViewContext, in as WeekNumberCellState, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderState, k as WeeksViewRootHandle, kt as GridHeaderCellState, l as computePreviewRange, ln as WeekTemplateState, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarStableContextValue, n as useWeeksViewState, nn as ValueFormat, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderState, ot as MonthViewProps$1, p as MonthSeparatorRow, pt as CalendarProviderProps$1, q as DateString, qt as RangeSelectedState, r as ViewContextValue, rn as WeekNumberCellProps, rt as GridHeader, s as useCalendarStable, sn as WeekStartDay, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueForFormat$1, tt as DayButton, u as MonthSeparator, un as DayCellDataContext, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringState, w as WeeksNavButtonOwnProps, wt as DragHandleOwnProps, x as WeekCount, xt as DayButtonState, y as PrevWeeksButton, yt as DateValueObject, z as resolveFirstWeek, zt as OutsideDays } from "../weeks-view-context-BZeWx9N8.cjs";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
3
 
3
4
  //#region src/formats/zoned-date-time.d.ts
4
5
  type F = "ZonedDateTime";
5
- type RootState = RootState$1<F>;
6
- type GridProps = GridProps$1<F>;
7
- type GridState = GridState$1<F>;
8
- type GridHeaderProps = GridHeaderProps$1<F>;
9
- type GridHeaderState = GridHeaderState$1<F>;
10
- type GridHeaderCellProps = GridHeaderCellProps$1<F>;
11
- type GridHeaderCellState = GridHeaderCellState$1<F>;
12
- type GridBodyProps = GridBodyProps$1<F>;
13
- type GridBodyState = GridBodyState$1<F>;
14
- type WeekTemplateProps = WeekTemplateProps$1<F>;
15
- type WeekTemplateState = WeekTemplateState$1<F>;
16
- type DayCellTemplateProps = DayCellTemplateProps$1<F>;
17
- type DayCellTemplateState = DayCellTemplateState$1<F>;
18
- type DayButtonProps = DayButtonProps$1<F>;
19
- type DayButtonState = DayButtonState$1<F>;
20
- type RangeSelectedProps = RangeSelectedProps$1<F>;
21
- type RangeSelectedState = RangeSelectedState$1<F>;
22
- type RangePreviewProps = RangePreviewProps$1<F>;
23
- type RangePreviewState = RangePreviewState$1<F>;
24
- type DragHandleState = DragHandleState$1<F>;
25
- type RangeStartDragHandleProps = RangeStartDragHandleProps$1<F>;
26
- type RangeEndDragHandleProps = RangeEndDragHandleProps$1<F>;
27
- type DateStringProps = DateStringProps$1<F>;
28
- type DateStringState = DateStringState$1<F>;
29
- type TimeStringProps = TimeStringProps$1<F>;
30
- type TimeStringState = TimeStringState$1<F>;
31
- type MonthYearStringProps = MonthYearStringProps$1<F>;
32
- type MonthYearStringState = MonthYearStringState$1<F>;
33
- type PrevMonthButtonProps = PrevMonthButtonProps$1<F>;
34
- type NextMonthButtonProps = NextMonthButtonProps$1<F>;
35
- type NavButtonState = NavButtonState$1<F>;
6
+ declare const CalendarProvider: (props: CalendarProviderProps$1<"ZonedDateTime">) => _$react_jsx_runtime0.JSX.Element;
7
+ declare const MonthView: {
8
+ (props: MonthViewProps$1<"ZonedDateTime">): _$react_jsx_runtime0.JSX.Element;
9
+ Root: typeof MonthViewRoot;
10
+ };
36
11
  type DateRange = DateRange$1<F>;
37
12
  type ValueForFormat = ValueForFormat$1<F>;
38
13
  type RawValueForFormat = RawValueForFormat$1<F>;
39
- type WeekNumberCellProps = WeekNumberCellProps$1<F>;
40
- type WeekNumberCellState = WeekNumberCellState$1<F>;
41
- type WeekNumberHeaderProps = WeekNumberHeaderProps$1<F>;
42
- type WeekNumberHeaderState = WeekNumberHeaderState$1<F>;
43
14
  type CalendarProviderProps = CalendarProviderProps$1<F>;
15
+ type MonthViewProps = MonthViewProps$1<F>;
16
+ type WeeksViewProps = WeeksViewProps$1<F>;
44
17
  //#endregion
45
- export { CalendarProvider, CalendarProviderProps, type CalendarStableContextValue, type CalendarStateContextValue, DateRange, DateString, DateStringProps, DateStringState, type DateValueObject, DayButton, DayButtonProps, DayButtonState, DayCellDataContext, DayCellTemplate, DayCellTemplateProps, DayCellTemplateState, type DragHandleOwnProps, DragHandleState, type FirstWeekSpec, Grid, GridBody, GridBodyProps, GridBodyState, GridContext, GridHeader, GridHeaderCell, GridHeaderCellProps, GridHeaderCellState, GridHeaderProps, GridHeaderState, GridProps, GridState, type MonthData, type MonthOverflowBehavior, MonthSeparator, MonthSeparatorCell, MonthSeparatorMonth, MonthSeparatorRow, type MonthSeparatorState, MonthSeparatorWeekCount, MonthSeparatorYear, MonthView, type MonthViewProps, MonthViewRoot, type MonthViewRootProps, type MonthViewStableContextValue, type MonthViewStateContextValue, MonthYearString, MonthYearStringProps, MonthYearStringState, NavButtonState, NextMonthButton, NextMonthButtonProps, NextWeeksButton, type NextWeeksButtonProps, type OutsideDays, type OverflowBehavior, type PlainDateObject, PrevMonthButton, PrevMonthButtonProps, PrevWeeksButton, type PrevWeeksButtonProps, RangeEndDragHandle, RangeEndDragHandleProps, type RangeMode, RangePreview, RangePreviewProps, RangePreviewState, RangeSelected, RangeSelectedProps, RangeSelectedState, RangeStartDragHandle, RangeStartDragHandleProps, RawValueForFormat, RootState, type ScrollToWeekSnap, Temporal, type TemporalNamespace, TimeString, TimeStringProps, TimeStringState, type ValueChangeMeta, ValueForFormat, type ValueFormat, type ViewContextValue, type VisibleMonth, WeekCount, type WeekCountProps, type WeekCountState, WeekDataContext, type WeekDescriptor, WeekNumberCell, WeekNumberCellProps, WeekNumberCellState, WeekNumberHeader, WeekNumberHeaderProps, WeekNumberHeaderState, type WeekStartDay, WeekTemplate, WeekTemplateProps, WeekTemplateState, type WeeksNavButtonOwnProps, type WeeksNavButtonState, WeeksView, type WeeksViewProps, WeeksViewRoot, type WeeksViewRootHandle, type WeeksViewRootProps, type WeeksViewStableContextValue, type WeeksViewStateContextValue, type WindowInfo, computePreviewRange, computeWeeksInWindow, resolveFirstWeek, resolveFirstWeekSpec, useCalendarStable, useCalendarState, useMonthViewStable, useMonthViewState, useViewContext, useWeeksViewStable, useWeeksViewState };
18
+ export { CalendarProvider, CalendarProviderProps, type CalendarStableContextValue, type CalendarStateContextValue, DateRange, DateString, type DateStringProps, type DateStringState, type DateValueObject, DayButton, type DayButtonProps, type DayButtonState, DayCellDataContext, DayCellTemplate, type DayCellTemplateProps, type DayCellTemplateState, type DragHandleOwnProps, type DragHandleState, type FirstWeekSpec, Grid, GridBody, type GridBodyProps, type GridBodyState, GridContext, GridHeader, GridHeaderCell, type GridHeaderCellProps, type GridHeaderCellState, type GridHeaderProps, type GridHeaderState, type GridProps, type GridState, type MonthData, type MonthOverflowBehavior, MonthSeparator, MonthSeparatorCell, MonthSeparatorMonth, MonthSeparatorRow, type MonthSeparatorState, MonthSeparatorWeekCount, MonthSeparatorYear, MonthView, MonthViewProps, MonthViewRoot, type MonthViewRootProps, type MonthViewStableContextValue, type MonthViewStateContextValue, MonthYearString, type MonthYearStringProps, type MonthYearStringState, type NavButtonState, NextMonthButton, type NextMonthButtonProps, NextWeeksButton, type NextWeeksButtonProps, type OutsideDays, type OverflowBehavior, type PlainDateObject, PrevMonthButton, type PrevMonthButtonProps, PrevWeeksButton, type PrevWeeksButtonProps, RangeEndDragHandle, type RangeEndDragHandleProps, type RangeMode, RangePreview, type RangePreviewProps, type RangePreviewState, RangeSelected, type RangeSelectedProps, type RangeSelectedState, RangeStartDragHandle, type RangeStartDragHandleProps, RawValueForFormat, type RootState, type ScrollToWeekSnap, type TemporalNamespace, TimeString, type TimeStringProps, type TimeStringState, type ValueChangeMeta, ValueForFormat, type ValueFormat, type ViewContextValue, type VisibleMonth, WeekCount, type WeekCountProps, type WeekCountState, WeekDataContext, type WeekDescriptor, WeekNumberCell, type WeekNumberCellProps, type WeekNumberCellState, WeekNumberHeader, type WeekNumberHeaderProps, type WeekNumberHeaderState, type WeekStartDay, WeekTemplate, type WeekTemplateProps, type WeekTemplateState, type WeeksNavButtonOwnProps, type WeeksNavButtonState, WeeksView, WeeksViewProps, WeeksViewRoot, type WeeksViewRootHandle, type WeeksViewRootProps, type WeeksViewStableContextValue, type WeeksViewStateContextValue, type WindowInfo, computePreviewRange, computeWeeksInWindow, resolveFirstWeek, resolveFirstWeekSpec, useCalendarStable, useCalendarState, useMonthViewStable, useMonthViewState, useViewContext, useWeeksViewStable, useWeeksViewState };
@@ -1,45 +1,18 @@
1
- import { $ as Grid, $t as TemporalNamespace, A as WeeksViewRootHandle, At as GridHeaderCellProps$1, B as resolveFirstWeek, Bt as NextMonthButtonProps$1, C as WeekCountProps, Ct as DayButtonState$1, D as WeeksView, Dt as DragHandleState$1, E as WeeksNavButtonState, Et as DragHandleOwnProps, F as WindowInfo, Ft as GridState$1, G as RangeStartDragHandle, Gt as RangeMode, H as WeekNumberCell, Ht as PlainDateObject, I as WeekDescriptor, It as MonthData, J as DateString, Jt as RangeSelectedProps$1, K as RangePreview, Kt as RangePreviewProps$1, L as computeWeeksInWindow, Lt as MonthYearStringProps$1, M as WeeksViewRootProps, Mt as GridHeaderProps$1, N as WeeksViewStableContextValue, Nt as GridHeaderState$1, O as WeeksViewProps, Ot as GridBodyProps$1, P as WeeksViewStateContextValue, Pt as GridProps$1, Q as TimeString, Qt as RootState$1, R as FirstWeekSpec, Rt as MonthYearStringState$1, S as WeekCount, St as DayButtonProps$1, T as WeeksNavButtonOwnProps, Tt as DayCellTemplateState$1, U as WeekNumberHeader, Ut as PrevMonthButtonProps$1, V as resolveFirstWeekSpec, Vt as OutsideDays, W as RangeEndDragHandle, Wt as RangeEndDragHandleProps$1, X as NextMonthButton, Xt as RangeStartDragHandleProps$1, Y as MonthYearString, Yt as RangeSelectedState$1, Z as PrevMonthButton, Zt as RawValueForFormat$1, _ as MonthSeparatorYear, _t as CalendarStateContextValue, a as useMonthViewStable, an as WeekNumberCellProps$1, at as GridHeaderCell, b as PrevWeeksButton, bt as DateStringState$1, c as useCalendarState, cn as WeekNumberHeaderState$1, ct as MonthViewRoot, d as MonthSeparator, dn as WeekTemplateState$1, dt as MonthViewStateContextValue, en as TimeStringProps$1, et as GridBody, f as MonthSeparatorCell, fn as DayCellDataContext, ft as MonthOverflowBehavior, g as MonthSeparatorWeekCount, gt as CalendarStableContextValue, h as MonthSeparatorState, ht as CalendarProviderProps$1, i as useViewContext, in as ValueFormat, it as GridHeader, j as VisibleMonth, jt as GridHeaderCellState$1, k as WeeksViewRoot, kt as GridBodyState$1, l as Temporal, ln as WeekStartDay, lt as MonthViewRootProps, m as MonthSeparatorRow, mn as WeekDataContext, mt as CalendarProvider, n as useWeeksViewState, nn as ValueChangeMeta, nt as DayButton, o as useMonthViewState, on as WeekNumberCellState$1, ot as MonthView, p as MonthSeparatorMonth, pn as GridContext, pt as OverflowBehavior, q as RangeSelected, qt as RangePreviewState$1, r as ViewContextValue, rn as ValueForFormat$1, rt as DayCellTemplate, s as useCalendarStable, sn as WeekNumberHeaderProps$1, st as MonthViewProps, t as useWeeksViewStable, tn as TimeStringState$1, tt as WeekTemplate, u as computePreviewRange, un as WeekTemplateProps$1, ut as MonthViewStableContextValue, v as NextWeeksButton, vt as DateRange$1, w as WeekCountState, wt as DayCellTemplateProps$1, x as PrevWeeksButtonProps, xt as DateValueObject, y as NextWeeksButtonProps, yt as DateStringProps$1, z as ScrollToWeekSnap, zt as NavButtonState$1 } from "../weeks-view-context-BN6qR-83.mjs";
1
+ import { $ as GridBody, $t as TimeStringState, A as VisibleMonth, At as GridHeaderProps, B as resolveFirstWeekSpec, Bt as PlainDateObject, C as WeekCountState, Ct as DayCellTemplateState, D as WeeksViewProps$1, Dt as GridBodyState, E as WeeksView, Et as GridBodyProps, F as WeekDescriptor, Ft as MonthYearStringProps, G as RangePreview, Gt as RangePreviewState, H as WeekNumberHeader, Ht as RangeEndDragHandleProps, I as computeWeeksInWindow, It as MonthYearStringState, J as MonthYearString, Jt as RangeStartDragHandleProps, K as RangeSelected, Kt as RangeSelectedProps, L as FirstWeekSpec, Lt as NavButtonState, M as WeeksViewStableContextValue, Mt as GridProps, N as WeeksViewStateContextValue, Nt as GridState, O as WeeksViewRoot, Ot as GridHeaderCellProps, P as WindowInfo, Pt as MonthData, Q as Grid, Qt as TimeStringProps, R as ScrollToWeekSnap, Rt as NextMonthButtonProps, S as WeekCountProps, St as DayCellTemplateProps, T as WeeksNavButtonState, Tt as DragHandleState, U as RangeEndDragHandle, Ut as RangeMode, V as WeekNumberCell, Vt as PrevMonthButtonProps, W as RangeStartDragHandle, Wt as RangePreviewProps, X as PrevMonthButton, Xt as RootState, Y as NextMonthButton, Yt as RawValueForFormat$1, Z as TimeString, Zt as TemporalNamespace, _ as NextWeeksButton, _t as DateStringProps, a as useMonthViewStable, an as WeekNumberHeaderProps, b as PrevWeeksButtonProps, bt as DayButtonProps, c as useCalendarState, cn as WeekTemplateProps, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as GridContext, dt as MonthOverflowBehavior, en as ValueChangeMeta, et as WeekTemplate, f as MonthSeparatorMonth, fn as WeekDataContext, ft as OverflowBehavior, g as MonthSeparatorYear, gt as DateRange$1, h as MonthSeparatorWeekCount, ht as CalendarStateContextValue, i as useViewContext, in as WeekNumberCellState, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderState, k as WeeksViewRootHandle, kt as GridHeaderCellState, l as computePreviewRange, ln as WeekTemplateState, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarStableContextValue, n as useWeeksViewState, nn as ValueFormat, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderState, ot as MonthViewProps$1, p as MonthSeparatorRow, pt as CalendarProviderProps$1, q as DateString, qt as RangeSelectedState, r as ViewContextValue, rn as WeekNumberCellProps, rt as GridHeader, s as useCalendarStable, sn as WeekStartDay, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueForFormat$1, tt as DayButton, u as MonthSeparator, un as DayCellDataContext, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringState, w as WeeksNavButtonOwnProps, wt as DragHandleOwnProps, x as WeekCount, xt as DayButtonState, y as PrevWeeksButton, yt as DateValueObject, z as resolveFirstWeek, zt as OutsideDays } from "../weeks-view-context-MVe1b-BS.mjs";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
3
 
3
4
  //#region src/formats/zoned-date-time.d.ts
4
5
  type F = "ZonedDateTime";
5
- type RootState = RootState$1<F>;
6
- type GridProps = GridProps$1<F>;
7
- type GridState = GridState$1<F>;
8
- type GridHeaderProps = GridHeaderProps$1<F>;
9
- type GridHeaderState = GridHeaderState$1<F>;
10
- type GridHeaderCellProps = GridHeaderCellProps$1<F>;
11
- type GridHeaderCellState = GridHeaderCellState$1<F>;
12
- type GridBodyProps = GridBodyProps$1<F>;
13
- type GridBodyState = GridBodyState$1<F>;
14
- type WeekTemplateProps = WeekTemplateProps$1<F>;
15
- type WeekTemplateState = WeekTemplateState$1<F>;
16
- type DayCellTemplateProps = DayCellTemplateProps$1<F>;
17
- type DayCellTemplateState = DayCellTemplateState$1<F>;
18
- type DayButtonProps = DayButtonProps$1<F>;
19
- type DayButtonState = DayButtonState$1<F>;
20
- type RangeSelectedProps = RangeSelectedProps$1<F>;
21
- type RangeSelectedState = RangeSelectedState$1<F>;
22
- type RangePreviewProps = RangePreviewProps$1<F>;
23
- type RangePreviewState = RangePreviewState$1<F>;
24
- type DragHandleState = DragHandleState$1<F>;
25
- type RangeStartDragHandleProps = RangeStartDragHandleProps$1<F>;
26
- type RangeEndDragHandleProps = RangeEndDragHandleProps$1<F>;
27
- type DateStringProps = DateStringProps$1<F>;
28
- type DateStringState = DateStringState$1<F>;
29
- type TimeStringProps = TimeStringProps$1<F>;
30
- type TimeStringState = TimeStringState$1<F>;
31
- type MonthYearStringProps = MonthYearStringProps$1<F>;
32
- type MonthYearStringState = MonthYearStringState$1<F>;
33
- type PrevMonthButtonProps = PrevMonthButtonProps$1<F>;
34
- type NextMonthButtonProps = NextMonthButtonProps$1<F>;
35
- type NavButtonState = NavButtonState$1<F>;
6
+ declare const CalendarProvider: (props: CalendarProviderProps$1<"ZonedDateTime">) => _$react_jsx_runtime0.JSX.Element;
7
+ declare const MonthView: {
8
+ (props: MonthViewProps$1<"ZonedDateTime">): _$react_jsx_runtime0.JSX.Element;
9
+ Root: typeof MonthViewRoot;
10
+ };
36
11
  type DateRange = DateRange$1<F>;
37
12
  type ValueForFormat = ValueForFormat$1<F>;
38
13
  type RawValueForFormat = RawValueForFormat$1<F>;
39
- type WeekNumberCellProps = WeekNumberCellProps$1<F>;
40
- type WeekNumberCellState = WeekNumberCellState$1<F>;
41
- type WeekNumberHeaderProps = WeekNumberHeaderProps$1<F>;
42
- type WeekNumberHeaderState = WeekNumberHeaderState$1<F>;
43
14
  type CalendarProviderProps = CalendarProviderProps$1<F>;
15
+ type MonthViewProps = MonthViewProps$1<F>;
16
+ type WeeksViewProps = WeeksViewProps$1<F>;
44
17
  //#endregion
45
- export { CalendarProvider, CalendarProviderProps, type CalendarStableContextValue, type CalendarStateContextValue, DateRange, DateString, DateStringProps, DateStringState, type DateValueObject, DayButton, DayButtonProps, DayButtonState, DayCellDataContext, DayCellTemplate, DayCellTemplateProps, DayCellTemplateState, type DragHandleOwnProps, DragHandleState, type FirstWeekSpec, Grid, GridBody, GridBodyProps, GridBodyState, GridContext, GridHeader, GridHeaderCell, GridHeaderCellProps, GridHeaderCellState, GridHeaderProps, GridHeaderState, GridProps, GridState, type MonthData, type MonthOverflowBehavior, MonthSeparator, MonthSeparatorCell, MonthSeparatorMonth, MonthSeparatorRow, type MonthSeparatorState, MonthSeparatorWeekCount, MonthSeparatorYear, MonthView, type MonthViewProps, MonthViewRoot, type MonthViewRootProps, type MonthViewStableContextValue, type MonthViewStateContextValue, MonthYearString, MonthYearStringProps, MonthYearStringState, NavButtonState, NextMonthButton, NextMonthButtonProps, NextWeeksButton, type NextWeeksButtonProps, type OutsideDays, type OverflowBehavior, type PlainDateObject, PrevMonthButton, PrevMonthButtonProps, PrevWeeksButton, type PrevWeeksButtonProps, RangeEndDragHandle, RangeEndDragHandleProps, type RangeMode, RangePreview, RangePreviewProps, RangePreviewState, RangeSelected, RangeSelectedProps, RangeSelectedState, RangeStartDragHandle, RangeStartDragHandleProps, RawValueForFormat, RootState, type ScrollToWeekSnap, Temporal, type TemporalNamespace, TimeString, TimeStringProps, TimeStringState, type ValueChangeMeta, ValueForFormat, type ValueFormat, type ViewContextValue, type VisibleMonth, WeekCount, type WeekCountProps, type WeekCountState, WeekDataContext, type WeekDescriptor, WeekNumberCell, WeekNumberCellProps, WeekNumberCellState, WeekNumberHeader, WeekNumberHeaderProps, WeekNumberHeaderState, type WeekStartDay, WeekTemplate, WeekTemplateProps, WeekTemplateState, type WeeksNavButtonOwnProps, type WeeksNavButtonState, WeeksView, type WeeksViewProps, WeeksViewRoot, type WeeksViewRootHandle, type WeeksViewRootProps, type WeeksViewStableContextValue, type WeeksViewStateContextValue, type WindowInfo, computePreviewRange, computeWeeksInWindow, resolveFirstWeek, resolveFirstWeekSpec, useCalendarStable, useCalendarState, useMonthViewStable, useMonthViewState, useViewContext, useWeeksViewStable, useWeeksViewState };
18
+ export { CalendarProvider, CalendarProviderProps, type CalendarStableContextValue, type CalendarStateContextValue, DateRange, DateString, type DateStringProps, type DateStringState, type DateValueObject, DayButton, type DayButtonProps, type DayButtonState, DayCellDataContext, DayCellTemplate, type DayCellTemplateProps, type DayCellTemplateState, type DragHandleOwnProps, type DragHandleState, type FirstWeekSpec, Grid, GridBody, type GridBodyProps, type GridBodyState, GridContext, GridHeader, GridHeaderCell, type GridHeaderCellProps, type GridHeaderCellState, type GridHeaderProps, type GridHeaderState, type GridProps, type GridState, type MonthData, type MonthOverflowBehavior, MonthSeparator, MonthSeparatorCell, MonthSeparatorMonth, MonthSeparatorRow, type MonthSeparatorState, MonthSeparatorWeekCount, MonthSeparatorYear, MonthView, MonthViewProps, MonthViewRoot, type MonthViewRootProps, type MonthViewStableContextValue, type MonthViewStateContextValue, MonthYearString, type MonthYearStringProps, type MonthYearStringState, type NavButtonState, NextMonthButton, type NextMonthButtonProps, NextWeeksButton, type NextWeeksButtonProps, type OutsideDays, type OverflowBehavior, type PlainDateObject, PrevMonthButton, type PrevMonthButtonProps, PrevWeeksButton, type PrevWeeksButtonProps, RangeEndDragHandle, type RangeEndDragHandleProps, type RangeMode, RangePreview, type RangePreviewProps, type RangePreviewState, RangeSelected, type RangeSelectedProps, type RangeSelectedState, RangeStartDragHandle, type RangeStartDragHandleProps, RawValueForFormat, type RootState, type ScrollToWeekSnap, type TemporalNamespace, TimeString, type TimeStringProps, type TimeStringState, type ValueChangeMeta, ValueForFormat, type ValueFormat, type ViewContextValue, type VisibleMonth, WeekCount, type WeekCountProps, type WeekCountState, WeekDataContext, type WeekDescriptor, WeekNumberCell, type WeekNumberCellProps, type WeekNumberCellState, WeekNumberHeader, type WeekNumberHeaderProps, type WeekNumberHeaderState, type WeekStartDay, WeekTemplate, type WeekTemplateProps, type WeekTemplateState, type WeeksNavButtonOwnProps, type WeeksNavButtonState, WeeksView, WeeksViewProps, WeeksViewRoot, type WeeksViewRootHandle, type WeeksViewRootProps, type WeeksViewStableContextValue, type WeeksViewStateContextValue, type WindowInfo, computePreviewRange, computeWeeksInWindow, resolveFirstWeek, resolveFirstWeekSpec, useCalendarStable, useCalendarState, useMonthViewStable, useMonthViewState, useViewContext, useWeeksViewStable, useWeeksViewState };
@@ -1,2 +1,6 @@
1
- import { A as MonthSeparatorMonth, B as MonthViewRoot, C as WeekTemplate, D as useWeeksViewState, E as useWeeksViewStable, F as GridHeaderCell, G as computePreviewRange, H as useMonthViewStable, I as DayCellDataContext, K as useCalendarStable, L as GridContext, M as MonthSeparatorWeekCount, N as MonthSeparatorYear, O as MonthSeparator, P as GridHeader, R as WeekDataContext, S as GridBody, T as DayCellTemplate, U as useMonthViewState, V as useViewContext, W as CalendarProvider, _ as MonthYearString, a as WeeksView, b as TimeString, c as resolveFirstWeekSpec, d as WeekNumberHeader, f as RangeEndDragHandle, g as DateString, h as RangeSelected, i as WeekCount, j as MonthSeparatorRow, k as MonthSeparatorCell, l as computeWeeksInWindow, m as RangePreview, n as NextWeeksButton, o as WeeksViewRoot, p as RangeStartDragHandle, q as useCalendarState, r as PrevWeeksButton, s as resolveFirstWeek, t as Temporal, u as WeekNumberCell, v as NextMonthButton, w as DayButton, x as Grid, y as PrevMonthButton, z as MonthView } from "../temporal-polyfill-DTx0VIX5.mjs";
2
- export { CalendarProvider, DateString, DayButton, DayCellDataContext, DayCellTemplate, Grid, GridBody, GridContext, GridHeader, GridHeaderCell, MonthSeparator, MonthSeparatorCell, MonthSeparatorMonth, MonthSeparatorRow, MonthSeparatorWeekCount, MonthSeparatorYear, MonthView, MonthViewRoot, MonthYearString, NextMonthButton, NextWeeksButton, PrevMonthButton, PrevWeeksButton, RangeEndDragHandle, RangePreview, RangeSelected, RangeStartDragHandle, Temporal, TimeString, WeekCount, WeekDataContext, WeekNumberCell, WeekNumberHeader, WeekTemplate, WeeksView, WeeksViewRoot, computePreviewRange, computeWeeksInWindow, resolveFirstWeek, resolveFirstWeekSpec, useCalendarStable, useCalendarState, useMonthViewStable, useMonthViewState, useViewContext, useWeeksViewStable, useWeeksViewState };
1
+ import { A as MonthSeparatorRow, B as useViewContext, C as DayButton, D as MonthSeparator, E as useWeeksViewState, F as DayCellDataContext, G as useCalendarStable, H as useMonthViewState, I as GridContext, K as useCalendarState, L as WeekDataContext, M as MonthSeparatorYear, N as GridHeader, O as MonthSeparatorCell, P as GridHeaderCell, R as MonthView$1, S as WeekTemplate, T as useWeeksViewStable, U as CalendarProvider$1, V as useMonthViewStable, W as computePreviewRange, _ as NextMonthButton, a as WeeksViewRoot, b as Grid, c as computeWeeksInWindow, d as RangeEndDragHandle, f as RangeStartDragHandle, g as MonthYearString, h as DateString, i as WeeksView, j as MonthSeparatorWeekCount, k as MonthSeparatorMonth, l as WeekNumberCell, m as RangeSelected, n as PrevWeeksButton, o as resolveFirstWeek, p as RangePreview, r as WeekCount, s as resolveFirstWeekSpec, t as NextWeeksButton, u as WeekNumberHeader, v as PrevMonthButton, w as DayCellTemplate, x as GridBody, y as TimeString, z as MonthViewRoot } from "../weeks-navigation-B-Nch3LS.mjs";
2
+ //#region src/formats/zoned-date-time.ts
3
+ const CalendarProvider = CalendarProvider$1;
4
+ const MonthView = MonthView$1;
5
+ //#endregion
6
+ export { CalendarProvider, DateString, DayButton, DayCellDataContext, DayCellTemplate, Grid, GridBody, GridContext, GridHeader, GridHeaderCell, MonthSeparator, MonthSeparatorCell, MonthSeparatorMonth, MonthSeparatorRow, MonthSeparatorWeekCount, MonthSeparatorYear, MonthView, MonthViewRoot, MonthYearString, NextMonthButton, NextWeeksButton, PrevMonthButton, PrevWeeksButton, RangeEndDragHandle, RangePreview, RangeSelected, RangeStartDragHandle, TimeString, WeekCount, WeekDataContext, WeekNumberCell, WeekNumberHeader, WeekTemplate, WeeksView, WeeksViewRoot, computePreviewRange, computeWeeksInWindow, resolveFirstWeek, resolveFirstWeekSpec, useCalendarStable, useCalendarState, useMonthViewStable, useMonthViewState, useViewContext, useWeeksViewStable, useWeeksViewState };
package/dist/index.cjs CHANGED
@@ -1,49 +1,48 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_temporal_polyfill = require("./temporal-polyfill-DU8VfleL.cjs");
3
- exports.CalendarProvider = require_temporal_polyfill.CalendarProvider;
4
- exports.DateString = require_temporal_polyfill.DateString;
5
- exports.DayButton = require_temporal_polyfill.DayButton;
6
- exports.DayCellDataContext = require_temporal_polyfill.DayCellDataContext;
7
- exports.DayCellTemplate = require_temporal_polyfill.DayCellTemplate;
8
- exports.Grid = require_temporal_polyfill.Grid;
9
- exports.GridBody = require_temporal_polyfill.GridBody;
10
- exports.GridContext = require_temporal_polyfill.GridContext;
11
- exports.GridHeader = require_temporal_polyfill.GridHeader;
12
- exports.GridHeaderCell = require_temporal_polyfill.GridHeaderCell;
13
- exports.MonthSeparator = require_temporal_polyfill.MonthSeparator;
14
- exports.MonthSeparatorCell = require_temporal_polyfill.MonthSeparatorCell;
15
- exports.MonthSeparatorMonth = require_temporal_polyfill.MonthSeparatorMonth;
16
- exports.MonthSeparatorRow = require_temporal_polyfill.MonthSeparatorRow;
17
- exports.MonthSeparatorWeekCount = require_temporal_polyfill.MonthSeparatorWeekCount;
18
- exports.MonthSeparatorYear = require_temporal_polyfill.MonthSeparatorYear;
19
- exports.MonthView = require_temporal_polyfill.MonthView;
20
- exports.MonthViewRoot = require_temporal_polyfill.MonthViewRoot;
21
- exports.MonthYearString = require_temporal_polyfill.MonthYearString;
22
- exports.NextMonthButton = require_temporal_polyfill.NextMonthButton;
23
- exports.NextWeeksButton = require_temporal_polyfill.NextWeeksButton;
24
- exports.PrevMonthButton = require_temporal_polyfill.PrevMonthButton;
25
- exports.PrevWeeksButton = require_temporal_polyfill.PrevWeeksButton;
26
- exports.RangeEndDragHandle = require_temporal_polyfill.RangeEndDragHandle;
27
- exports.RangePreview = require_temporal_polyfill.RangePreview;
28
- exports.RangeSelected = require_temporal_polyfill.RangeSelected;
29
- exports.RangeStartDragHandle = require_temporal_polyfill.RangeStartDragHandle;
30
- exports.Temporal = require_temporal_polyfill.Temporal;
31
- exports.TimeString = require_temporal_polyfill.TimeString;
32
- exports.WeekCount = require_temporal_polyfill.WeekCount;
33
- exports.WeekDataContext = require_temporal_polyfill.WeekDataContext;
34
- exports.WeekNumberCell = require_temporal_polyfill.WeekNumberCell;
35
- exports.WeekNumberHeader = require_temporal_polyfill.WeekNumberHeader;
36
- exports.WeekTemplate = require_temporal_polyfill.WeekTemplate;
37
- exports.WeeksView = require_temporal_polyfill.WeeksView;
38
- exports.WeeksViewRoot = require_temporal_polyfill.WeeksViewRoot;
39
- exports.computePreviewRange = require_temporal_polyfill.computePreviewRange;
40
- exports.computeWeeksInWindow = require_temporal_polyfill.computeWeeksInWindow;
41
- exports.resolveFirstWeek = require_temporal_polyfill.resolveFirstWeek;
42
- exports.resolveFirstWeekSpec = require_temporal_polyfill.resolveFirstWeekSpec;
43
- exports.useCalendarStable = require_temporal_polyfill.useCalendarStable;
44
- exports.useCalendarState = require_temporal_polyfill.useCalendarState;
45
- exports.useMonthViewStable = require_temporal_polyfill.useMonthViewStable;
46
- exports.useMonthViewState = require_temporal_polyfill.useMonthViewState;
47
- exports.useViewContext = require_temporal_polyfill.useViewContext;
48
- exports.useWeeksViewStable = require_temporal_polyfill.useWeeksViewStable;
49
- exports.useWeeksViewState = require_temporal_polyfill.useWeeksViewState;
2
+ const require_weeks_navigation = require("./weeks-navigation-FxcECgCR.cjs");
3
+ exports.CalendarProvider = require_weeks_navigation.CalendarProvider;
4
+ exports.DateString = require_weeks_navigation.DateString;
5
+ exports.DayButton = require_weeks_navigation.DayButton;
6
+ exports.DayCellDataContext = require_weeks_navigation.DayCellDataContext;
7
+ exports.DayCellTemplate = require_weeks_navigation.DayCellTemplate;
8
+ exports.Grid = require_weeks_navigation.Grid;
9
+ exports.GridBody = require_weeks_navigation.GridBody;
10
+ exports.GridContext = require_weeks_navigation.GridContext;
11
+ exports.GridHeader = require_weeks_navigation.GridHeader;
12
+ exports.GridHeaderCell = require_weeks_navigation.GridHeaderCell;
13
+ exports.MonthSeparator = require_weeks_navigation.MonthSeparator;
14
+ exports.MonthSeparatorCell = require_weeks_navigation.MonthSeparatorCell;
15
+ exports.MonthSeparatorMonth = require_weeks_navigation.MonthSeparatorMonth;
16
+ exports.MonthSeparatorRow = require_weeks_navigation.MonthSeparatorRow;
17
+ exports.MonthSeparatorWeekCount = require_weeks_navigation.MonthSeparatorWeekCount;
18
+ exports.MonthSeparatorYear = require_weeks_navigation.MonthSeparatorYear;
19
+ exports.MonthView = require_weeks_navigation.MonthView;
20
+ exports.MonthViewRoot = require_weeks_navigation.MonthViewRoot;
21
+ exports.MonthYearString = require_weeks_navigation.MonthYearString;
22
+ exports.NextMonthButton = require_weeks_navigation.NextMonthButton;
23
+ exports.NextWeeksButton = require_weeks_navigation.NextWeeksButton;
24
+ exports.PrevMonthButton = require_weeks_navigation.PrevMonthButton;
25
+ exports.PrevWeeksButton = require_weeks_navigation.PrevWeeksButton;
26
+ exports.RangeEndDragHandle = require_weeks_navigation.RangeEndDragHandle;
27
+ exports.RangePreview = require_weeks_navigation.RangePreview;
28
+ exports.RangeSelected = require_weeks_navigation.RangeSelected;
29
+ exports.RangeStartDragHandle = require_weeks_navigation.RangeStartDragHandle;
30
+ exports.TimeString = require_weeks_navigation.TimeString;
31
+ exports.WeekCount = require_weeks_navigation.WeekCount;
32
+ exports.WeekDataContext = require_weeks_navigation.WeekDataContext;
33
+ exports.WeekNumberCell = require_weeks_navigation.WeekNumberCell;
34
+ exports.WeekNumberHeader = require_weeks_navigation.WeekNumberHeader;
35
+ exports.WeekTemplate = require_weeks_navigation.WeekTemplate;
36
+ exports.WeeksView = require_weeks_navigation.WeeksView;
37
+ exports.WeeksViewRoot = require_weeks_navigation.WeeksViewRoot;
38
+ exports.computePreviewRange = require_weeks_navigation.computePreviewRange;
39
+ exports.computeWeeksInWindow = require_weeks_navigation.computeWeeksInWindow;
40
+ exports.resolveFirstWeek = require_weeks_navigation.resolveFirstWeek;
41
+ exports.resolveFirstWeekSpec = require_weeks_navigation.resolveFirstWeekSpec;
42
+ exports.useCalendarStable = require_weeks_navigation.useCalendarStable;
43
+ exports.useCalendarState = require_weeks_navigation.useCalendarState;
44
+ exports.useMonthViewStable = require_weeks_navigation.useMonthViewStable;
45
+ exports.useMonthViewState = require_weeks_navigation.useMonthViewState;
46
+ exports.useViewContext = require_weeks_navigation.useViewContext;
47
+ exports.useWeeksViewStable = require_weeks_navigation.useWeeksViewStable;
48
+ exports.useWeeksViewState = require_weeks_navigation.useWeeksViewState;
package/dist/index.d.cts CHANGED
@@ -1,2 +1,11 @@
1
- import { $ as Grid, $t as TemporalNamespace, A as WeeksViewRootHandle, At as GridHeaderCellProps, B as resolveFirstWeek, Bt as NextMonthButtonProps, C as WeekCountProps, Ct as DayButtonState, D as WeeksView, Dt as DragHandleState, E as WeeksNavButtonState, Et as DragHandleOwnProps, F as WindowInfo, Ft as GridState, G as RangeStartDragHandle, Gt as RangeMode, H as WeekNumberCell, Ht as PlainDateObject, I as WeekDescriptor, It as MonthData, J as DateString, Jt as RangeSelectedProps, K as RangePreview, Kt as RangePreviewProps, L as computeWeeksInWindow, Lt as MonthYearStringProps, M as WeeksViewRootProps, Mt as GridHeaderProps, N as WeeksViewStableContextValue, Nt as GridHeaderState, O as WeeksViewProps, Ot as GridBodyProps, P as WeeksViewStateContextValue, Pt as GridProps, Q as TimeString, Qt as RootState, R as FirstWeekSpec, Rt as MonthYearStringState, S as WeekCount, St as DayButtonProps, T as WeeksNavButtonOwnProps, Tt as DayCellTemplateState, U as WeekNumberHeader, Ut as PrevMonthButtonProps, V as resolveFirstWeekSpec, Vt as OutsideDays, W as RangeEndDragHandle, Wt as RangeEndDragHandleProps, X as NextMonthButton, Xt as RangeStartDragHandleProps, Y as MonthYearString, Yt as RangeSelectedState, Z as PrevMonthButton, Zt as RawValueForFormat, _ as MonthSeparatorYear, _t as CalendarStateContextValue, a as useMonthViewStable, an as WeekNumberCellProps, at as GridHeaderCell, b as PrevWeeksButton, bt as DateStringState, c as useCalendarState, cn as WeekNumberHeaderState, ct as MonthViewRoot, d as MonthSeparator, dn as WeekTemplateState, dt as MonthViewStateContextValue, en as TimeStringProps, et as GridBody, f as MonthSeparatorCell, fn as DayCellDataContext, ft as MonthOverflowBehavior, g as MonthSeparatorWeekCount, gt as CalendarStableContextValue, h as MonthSeparatorState, ht as CalendarProviderProps, i as useViewContext, in as ValueFormat, it as GridHeader, j as VisibleMonth, jt as GridHeaderCellState, k as WeeksViewRoot, kt as GridBodyState, l as Temporal, ln as WeekStartDay, lt as MonthViewRootProps, m as MonthSeparatorRow, mn as WeekDataContext, mt as CalendarProvider, n as useWeeksViewState, nn as ValueChangeMeta, nt as DayButton, o as useMonthViewState, on as WeekNumberCellState, ot as MonthView, p as MonthSeparatorMonth, pn as GridContext, pt as OverflowBehavior, q as RangeSelected, qt as RangePreviewState, r as ViewContextValue, rn as ValueForFormat, rt as DayCellTemplate, s as useCalendarStable, sn as WeekNumberHeaderProps, st as MonthViewProps, t as useWeeksViewStable, tn as TimeStringState, tt as WeekTemplate, u as computePreviewRange, un as WeekTemplateProps, ut as MonthViewStableContextValue, v as NextWeeksButton, vt as DateRange, w as WeekCountState, wt as DayCellTemplateProps, x as PrevWeeksButtonProps, xt as DateValueObject, y as NextWeeksButtonProps, yt as DateStringProps, z as ScrollToWeekSnap, zt as NavButtonState } from "./weeks-view-context-aHGgYkpt.cjs";
2
- export { CalendarProvider, type CalendarProviderProps, type CalendarStableContextValue, type CalendarStateContextValue, type DateRange, DateString, type DateStringProps, type DateStringState, type DateValueObject, DayButton, type DayButtonProps, type DayButtonState, DayCellDataContext, DayCellTemplate, type DayCellTemplateProps, type DayCellTemplateState, type DragHandleOwnProps, type DragHandleState, type FirstWeekSpec, Grid, GridBody, type GridBodyProps, type GridBodyState, GridContext, GridHeader, GridHeaderCell, type GridHeaderCellProps, type GridHeaderCellState, type GridHeaderProps, type GridHeaderState, type GridProps, type GridState, type MonthData, type MonthOverflowBehavior, MonthSeparator, MonthSeparatorCell, MonthSeparatorMonth, MonthSeparatorRow, type MonthSeparatorState, MonthSeparatorWeekCount, MonthSeparatorYear, MonthView, type MonthViewProps, MonthViewRoot, type MonthViewRootProps, type MonthViewStableContextValue, type MonthViewStateContextValue, MonthYearString, type MonthYearStringProps, type MonthYearStringState, type NavButtonState, NextMonthButton, type NextMonthButtonProps, NextWeeksButton, type NextWeeksButtonProps, type OutsideDays, type OverflowBehavior, type PlainDateObject, PrevMonthButton, type PrevMonthButtonProps, PrevWeeksButton, type PrevWeeksButtonProps, RangeEndDragHandle, type RangeEndDragHandleProps, type RangeMode, RangePreview, type RangePreviewProps, type RangePreviewState, RangeSelected, type RangeSelectedProps, type RangeSelectedState, RangeStartDragHandle, type RangeStartDragHandleProps, type RawValueForFormat, type RootState, type ScrollToWeekSnap, Temporal, type TemporalNamespace, TimeString, type TimeStringProps, type TimeStringState, type ValueChangeMeta, type ValueForFormat, type ValueFormat, type ViewContextValue, type VisibleMonth, WeekCount, type WeekCountProps, type WeekCountState, WeekDataContext, type WeekDescriptor, WeekNumberCell, type WeekNumberCellProps, type WeekNumberCellState, WeekNumberHeader, type WeekNumberHeaderProps, type WeekNumberHeaderState, type WeekStartDay, WeekTemplate, type WeekTemplateProps, type WeekTemplateState, type WeeksNavButtonOwnProps, type WeeksNavButtonState, WeeksView, type WeeksViewProps, WeeksViewRoot, type WeeksViewRootHandle, type WeeksViewRootProps, type WeeksViewStableContextValue, type WeeksViewStateContextValue, type WindowInfo, computePreviewRange, computeWeeksInWindow, resolveFirstWeek, resolveFirstWeekSpec, useCalendarStable, useCalendarState, useMonthViewStable, useMonthViewState, useViewContext, useWeeksViewStable, useWeeksViewState };
1
+ import { $ as GridBody, $t as TimeStringState, A as VisibleMonth, At as GridHeaderProps, B as resolveFirstWeekSpec, Bt as PlainDateObject, C as WeekCountState, Ct as DayCellTemplateState, D as WeeksViewProps, Dt as GridBodyState, E as WeeksView, Et as GridBodyProps, F as WeekDescriptor, Ft as MonthYearStringProps, G as RangePreview, Gt as RangePreviewState, H as WeekNumberHeader, Ht as RangeEndDragHandleProps, I as computeWeeksInWindow, It as MonthYearStringState, J as MonthYearString, Jt as RangeStartDragHandleProps, K as RangeSelected, Kt as RangeSelectedProps, L as FirstWeekSpec, Lt as NavButtonState, M as WeeksViewStableContextValue, Mt as GridProps, N as WeeksViewStateContextValue, Nt as GridState, O as WeeksViewRoot, Ot as GridHeaderCellProps, P as WindowInfo, Pt as MonthData, Q as Grid, Qt as TimeStringProps, R as ScrollToWeekSnap, Rt as NextMonthButtonProps, S as WeekCountProps, St as DayCellTemplateProps, T as WeeksNavButtonState, Tt as DragHandleState, U as RangeEndDragHandle, Ut as RangeMode, V as WeekNumberCell, Vt as PrevMonthButtonProps, W as RangeStartDragHandle, Wt as RangePreviewProps, X as PrevMonthButton, Xt as RootState, Y as NextMonthButton, Yt as RawValueForFormat, Z as TimeString, Zt as TemporalNamespace, _ as NextWeeksButton, _t as DateStringProps, a as useMonthViewStable, an as WeekNumberHeaderProps, at as MonthView, b as PrevWeeksButtonProps, bt as DayButtonProps, c as useCalendarState, cn as WeekTemplateProps, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as GridContext, dt as MonthOverflowBehavior, en as ValueChangeMeta, et as WeekTemplate, f as MonthSeparatorMonth, fn as WeekDataContext, ft as OverflowBehavior, g as MonthSeparatorYear, gt as DateRange, h as MonthSeparatorWeekCount, ht as CalendarStateContextValue, i as useViewContext, in as WeekNumberCellState, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderState, k as WeeksViewRootHandle, kt as GridHeaderCellState, l as computePreviewRange, ln as WeekTemplateState, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarStableContextValue, n as useWeeksViewState, nn as ValueFormat, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderState, ot as MonthViewProps, p as MonthSeparatorRow, pt as CalendarProviderProps, q as DateString, qt as RangeSelectedState, r as ViewContextValue, rn as WeekNumberCellProps, rt as GridHeader, s as useCalendarStable, sn as WeekStartDay, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueForFormat, tt as DayButton, u as MonthSeparator, un as DayCellDataContext, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringState, w as WeeksNavButtonOwnProps, wt as DragHandleOwnProps, x as WeekCount, xt as DayButtonState, y as PrevWeeksButton, yt as DateValueObject, z as resolveFirstWeek, zt as OutsideDays } from "./weeks-view-context-BZeWx9N8.cjs";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/calendar-provider.d.ts
5
+ /**
6
+ * Provides shared calendar state (selection, config, range preview) to all
7
+ * descendant view components. Does NOT manage focus, navigation, or grid data.
8
+ */
9
+ declare function CalendarProvider<F extends ValueFormat = "PlainDate">(props: CalendarProviderProps<F>): _$react_jsx_runtime0.JSX.Element;
10
+ //#endregion
11
+ export { CalendarProvider, type CalendarProviderProps, type CalendarStableContextValue, type CalendarStateContextValue, type DateRange, DateString, type DateStringProps, type DateStringState, type DateValueObject, DayButton, type DayButtonProps, type DayButtonState, DayCellDataContext, DayCellTemplate, type DayCellTemplateProps, type DayCellTemplateState, type DragHandleOwnProps, type DragHandleState, type FirstWeekSpec, Grid, GridBody, type GridBodyProps, type GridBodyState, GridContext, GridHeader, GridHeaderCell, type GridHeaderCellProps, type GridHeaderCellState, type GridHeaderProps, type GridHeaderState, type GridProps, type GridState, type MonthData, type MonthOverflowBehavior, MonthSeparator, MonthSeparatorCell, MonthSeparatorMonth, MonthSeparatorRow, type MonthSeparatorState, MonthSeparatorWeekCount, MonthSeparatorYear, MonthView, type MonthViewProps, MonthViewRoot, type MonthViewRootProps, type MonthViewStableContextValue, type MonthViewStateContextValue, MonthYearString, type MonthYearStringProps, type MonthYearStringState, type NavButtonState, NextMonthButton, type NextMonthButtonProps, NextWeeksButton, type NextWeeksButtonProps, type OutsideDays, type OverflowBehavior, type PlainDateObject, PrevMonthButton, type PrevMonthButtonProps, PrevWeeksButton, type PrevWeeksButtonProps, RangeEndDragHandle, type RangeEndDragHandleProps, type RangeMode, RangePreview, type RangePreviewProps, type RangePreviewState, RangeSelected, type RangeSelectedProps, type RangeSelectedState, RangeStartDragHandle, type RangeStartDragHandleProps, type RawValueForFormat, type RootState, type ScrollToWeekSnap, type TemporalNamespace, TimeString, type TimeStringProps, type TimeStringState, type ValueChangeMeta, type ValueForFormat, type ValueFormat, type ViewContextValue, type VisibleMonth, WeekCount, type WeekCountProps, type WeekCountState, WeekDataContext, type WeekDescriptor, WeekNumberCell, type WeekNumberCellProps, type WeekNumberCellState, WeekNumberHeader, type WeekNumberHeaderProps, type WeekNumberHeaderState, type WeekStartDay, WeekTemplate, type WeekTemplateProps, type WeekTemplateState, type WeeksNavButtonOwnProps, type WeeksNavButtonState, WeeksView, type WeeksViewProps, WeeksViewRoot, type WeeksViewRootHandle, type WeeksViewRootProps, type WeeksViewStableContextValue, type WeeksViewStateContextValue, type WindowInfo, computePreviewRange, computeWeeksInWindow, resolveFirstWeek, resolveFirstWeekSpec, useCalendarStable, useCalendarState, useMonthViewStable, useMonthViewState, useViewContext, useWeeksViewStable, useWeeksViewState };
package/dist/index.d.mts CHANGED
@@ -1,2 +1,11 @@
1
- import { $ as Grid, $t as TemporalNamespace, A as WeeksViewRootHandle, At as GridHeaderCellProps, B as resolveFirstWeek, Bt as NextMonthButtonProps, C as WeekCountProps, Ct as DayButtonState, D as WeeksView, Dt as DragHandleState, E as WeeksNavButtonState, Et as DragHandleOwnProps, F as WindowInfo, Ft as GridState, G as RangeStartDragHandle, Gt as RangeMode, H as WeekNumberCell, Ht as PlainDateObject, I as WeekDescriptor, It as MonthData, J as DateString, Jt as RangeSelectedProps, K as RangePreview, Kt as RangePreviewProps, L as computeWeeksInWindow, Lt as MonthYearStringProps, M as WeeksViewRootProps, Mt as GridHeaderProps, N as WeeksViewStableContextValue, Nt as GridHeaderState, O as WeeksViewProps, Ot as GridBodyProps, P as WeeksViewStateContextValue, Pt as GridProps, Q as TimeString, Qt as RootState, R as FirstWeekSpec, Rt as MonthYearStringState, S as WeekCount, St as DayButtonProps, T as WeeksNavButtonOwnProps, Tt as DayCellTemplateState, U as WeekNumberHeader, Ut as PrevMonthButtonProps, V as resolveFirstWeekSpec, Vt as OutsideDays, W as RangeEndDragHandle, Wt as RangeEndDragHandleProps, X as NextMonthButton, Xt as RangeStartDragHandleProps, Y as MonthYearString, Yt as RangeSelectedState, Z as PrevMonthButton, Zt as RawValueForFormat, _ as MonthSeparatorYear, _t as CalendarStateContextValue, a as useMonthViewStable, an as WeekNumberCellProps, at as GridHeaderCell, b as PrevWeeksButton, bt as DateStringState, c as useCalendarState, cn as WeekNumberHeaderState, ct as MonthViewRoot, d as MonthSeparator, dn as WeekTemplateState, dt as MonthViewStateContextValue, en as TimeStringProps, et as GridBody, f as MonthSeparatorCell, fn as DayCellDataContext, ft as MonthOverflowBehavior, g as MonthSeparatorWeekCount, gt as CalendarStableContextValue, h as MonthSeparatorState, ht as CalendarProviderProps, i as useViewContext, in as ValueFormat, it as GridHeader, j as VisibleMonth, jt as GridHeaderCellState, k as WeeksViewRoot, kt as GridBodyState, l as Temporal, ln as WeekStartDay, lt as MonthViewRootProps, m as MonthSeparatorRow, mn as WeekDataContext, mt as CalendarProvider, n as useWeeksViewState, nn as ValueChangeMeta, nt as DayButton, o as useMonthViewState, on as WeekNumberCellState, ot as MonthView, p as MonthSeparatorMonth, pn as GridContext, pt as OverflowBehavior, q as RangeSelected, qt as RangePreviewState, r as ViewContextValue, rn as ValueForFormat, rt as DayCellTemplate, s as useCalendarStable, sn as WeekNumberHeaderProps, st as MonthViewProps, t as useWeeksViewStable, tn as TimeStringState, tt as WeekTemplate, u as computePreviewRange, un as WeekTemplateProps, ut as MonthViewStableContextValue, v as NextWeeksButton, vt as DateRange, w as WeekCountState, wt as DayCellTemplateProps, x as PrevWeeksButtonProps, xt as DateValueObject, y as NextWeeksButtonProps, yt as DateStringProps, z as ScrollToWeekSnap, zt as NavButtonState } from "./weeks-view-context-BN6qR-83.mjs";
2
- export { CalendarProvider, type CalendarProviderProps, type CalendarStableContextValue, type CalendarStateContextValue, type DateRange, DateString, type DateStringProps, type DateStringState, type DateValueObject, DayButton, type DayButtonProps, type DayButtonState, DayCellDataContext, DayCellTemplate, type DayCellTemplateProps, type DayCellTemplateState, type DragHandleOwnProps, type DragHandleState, type FirstWeekSpec, Grid, GridBody, type GridBodyProps, type GridBodyState, GridContext, GridHeader, GridHeaderCell, type GridHeaderCellProps, type GridHeaderCellState, type GridHeaderProps, type GridHeaderState, type GridProps, type GridState, type MonthData, type MonthOverflowBehavior, MonthSeparator, MonthSeparatorCell, MonthSeparatorMonth, MonthSeparatorRow, type MonthSeparatorState, MonthSeparatorWeekCount, MonthSeparatorYear, MonthView, type MonthViewProps, MonthViewRoot, type MonthViewRootProps, type MonthViewStableContextValue, type MonthViewStateContextValue, MonthYearString, type MonthYearStringProps, type MonthYearStringState, type NavButtonState, NextMonthButton, type NextMonthButtonProps, NextWeeksButton, type NextWeeksButtonProps, type OutsideDays, type OverflowBehavior, type PlainDateObject, PrevMonthButton, type PrevMonthButtonProps, PrevWeeksButton, type PrevWeeksButtonProps, RangeEndDragHandle, type RangeEndDragHandleProps, type RangeMode, RangePreview, type RangePreviewProps, type RangePreviewState, RangeSelected, type RangeSelectedProps, type RangeSelectedState, RangeStartDragHandle, type RangeStartDragHandleProps, type RawValueForFormat, type RootState, type ScrollToWeekSnap, Temporal, type TemporalNamespace, TimeString, type TimeStringProps, type TimeStringState, type ValueChangeMeta, type ValueForFormat, type ValueFormat, type ViewContextValue, type VisibleMonth, WeekCount, type WeekCountProps, type WeekCountState, WeekDataContext, type WeekDescriptor, WeekNumberCell, type WeekNumberCellProps, type WeekNumberCellState, WeekNumberHeader, type WeekNumberHeaderProps, type WeekNumberHeaderState, type WeekStartDay, WeekTemplate, type WeekTemplateProps, type WeekTemplateState, type WeeksNavButtonOwnProps, type WeeksNavButtonState, WeeksView, type WeeksViewProps, WeeksViewRoot, type WeeksViewRootHandle, type WeeksViewRootProps, type WeeksViewStableContextValue, type WeeksViewStateContextValue, type WindowInfo, computePreviewRange, computeWeeksInWindow, resolveFirstWeek, resolveFirstWeekSpec, useCalendarStable, useCalendarState, useMonthViewStable, useMonthViewState, useViewContext, useWeeksViewStable, useWeeksViewState };
1
+ import { $ as GridBody, $t as TimeStringState, A as VisibleMonth, At as GridHeaderProps, B as resolveFirstWeekSpec, Bt as PlainDateObject, C as WeekCountState, Ct as DayCellTemplateState, D as WeeksViewProps, Dt as GridBodyState, E as WeeksView, Et as GridBodyProps, F as WeekDescriptor, Ft as MonthYearStringProps, G as RangePreview, Gt as RangePreviewState, H as WeekNumberHeader, Ht as RangeEndDragHandleProps, I as computeWeeksInWindow, It as MonthYearStringState, J as MonthYearString, Jt as RangeStartDragHandleProps, K as RangeSelected, Kt as RangeSelectedProps, L as FirstWeekSpec, Lt as NavButtonState, M as WeeksViewStableContextValue, Mt as GridProps, N as WeeksViewStateContextValue, Nt as GridState, O as WeeksViewRoot, Ot as GridHeaderCellProps, P as WindowInfo, Pt as MonthData, Q as Grid, Qt as TimeStringProps, R as ScrollToWeekSnap, Rt as NextMonthButtonProps, S as WeekCountProps, St as DayCellTemplateProps, T as WeeksNavButtonState, Tt as DragHandleState, U as RangeEndDragHandle, Ut as RangeMode, V as WeekNumberCell, Vt as PrevMonthButtonProps, W as RangeStartDragHandle, Wt as RangePreviewProps, X as PrevMonthButton, Xt as RootState, Y as NextMonthButton, Yt as RawValueForFormat, Z as TimeString, Zt as TemporalNamespace, _ as NextWeeksButton, _t as DateStringProps, a as useMonthViewStable, an as WeekNumberHeaderProps, at as MonthView, b as PrevWeeksButtonProps, bt as DayButtonProps, c as useCalendarState, cn as WeekTemplateProps, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as GridContext, dt as MonthOverflowBehavior, en as ValueChangeMeta, et as WeekTemplate, f as MonthSeparatorMonth, fn as WeekDataContext, ft as OverflowBehavior, g as MonthSeparatorYear, gt as DateRange, h as MonthSeparatorWeekCount, ht as CalendarStateContextValue, i as useViewContext, in as WeekNumberCellState, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderState, k as WeeksViewRootHandle, kt as GridHeaderCellState, l as computePreviewRange, ln as WeekTemplateState, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarStableContextValue, n as useWeeksViewState, nn as ValueFormat, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderState, ot as MonthViewProps, p as MonthSeparatorRow, pt as CalendarProviderProps, q as DateString, qt as RangeSelectedState, r as ViewContextValue, rn as WeekNumberCellProps, rt as GridHeader, s as useCalendarStable, sn as WeekStartDay, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueForFormat, tt as DayButton, u as MonthSeparator, un as DayCellDataContext, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringState, w as WeeksNavButtonOwnProps, wt as DragHandleOwnProps, x as WeekCount, xt as DayButtonState, y as PrevWeeksButton, yt as DateValueObject, z as resolveFirstWeek, zt as OutsideDays } from "./weeks-view-context-MVe1b-BS.mjs";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/calendar-provider.d.ts
5
+ /**
6
+ * Provides shared calendar state (selection, config, range preview) to all
7
+ * descendant view components. Does NOT manage focus, navigation, or grid data.
8
+ */
9
+ declare function CalendarProvider<F extends ValueFormat = "PlainDate">(props: CalendarProviderProps<F>): _$react_jsx_runtime0.JSX.Element;
10
+ //#endregion
11
+ export { CalendarProvider, type CalendarProviderProps, type CalendarStableContextValue, type CalendarStateContextValue, type DateRange, DateString, type DateStringProps, type DateStringState, type DateValueObject, DayButton, type DayButtonProps, type DayButtonState, DayCellDataContext, DayCellTemplate, type DayCellTemplateProps, type DayCellTemplateState, type DragHandleOwnProps, type DragHandleState, type FirstWeekSpec, Grid, GridBody, type GridBodyProps, type GridBodyState, GridContext, GridHeader, GridHeaderCell, type GridHeaderCellProps, type GridHeaderCellState, type GridHeaderProps, type GridHeaderState, type GridProps, type GridState, type MonthData, type MonthOverflowBehavior, MonthSeparator, MonthSeparatorCell, MonthSeparatorMonth, MonthSeparatorRow, type MonthSeparatorState, MonthSeparatorWeekCount, MonthSeparatorYear, MonthView, type MonthViewProps, MonthViewRoot, type MonthViewRootProps, type MonthViewStableContextValue, type MonthViewStateContextValue, MonthYearString, type MonthYearStringProps, type MonthYearStringState, type NavButtonState, NextMonthButton, type NextMonthButtonProps, NextWeeksButton, type NextWeeksButtonProps, type OutsideDays, type OverflowBehavior, type PlainDateObject, PrevMonthButton, type PrevMonthButtonProps, PrevWeeksButton, type PrevWeeksButtonProps, RangeEndDragHandle, type RangeEndDragHandleProps, type RangeMode, RangePreview, type RangePreviewProps, type RangePreviewState, RangeSelected, type RangeSelectedProps, type RangeSelectedState, RangeStartDragHandle, type RangeStartDragHandleProps, type RawValueForFormat, type RootState, type ScrollToWeekSnap, type TemporalNamespace, TimeString, type TimeStringProps, type TimeStringState, type ValueChangeMeta, type ValueForFormat, type ValueFormat, type ViewContextValue, type VisibleMonth, WeekCount, type WeekCountProps, type WeekCountState, WeekDataContext, type WeekDescriptor, WeekNumberCell, type WeekNumberCellProps, type WeekNumberCellState, WeekNumberHeader, type WeekNumberHeaderProps, type WeekNumberHeaderState, type WeekStartDay, WeekTemplate, type WeekTemplateProps, type WeekTemplateState, type WeeksNavButtonOwnProps, type WeeksNavButtonState, WeeksView, type WeeksViewProps, WeeksViewRoot, type WeeksViewRootHandle, type WeeksViewRootProps, type WeeksViewStableContextValue, type WeeksViewStateContextValue, type WindowInfo, computePreviewRange, computeWeeksInWindow, resolveFirstWeek, resolveFirstWeekSpec, useCalendarStable, useCalendarState, useMonthViewStable, useMonthViewState, useViewContext, useWeeksViewStable, useWeeksViewState };
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { A as MonthSeparatorMonth, B as MonthViewRoot, C as WeekTemplate, D as useWeeksViewState, E as useWeeksViewStable, F as GridHeaderCell, G as computePreviewRange, H as useMonthViewStable, I as DayCellDataContext, K as useCalendarStable, L as GridContext, M as MonthSeparatorWeekCount, N as MonthSeparatorYear, O as MonthSeparator, P as GridHeader, R as WeekDataContext, S as GridBody, T as DayCellTemplate, U as useMonthViewState, V as useViewContext, W as CalendarProvider, _ as MonthYearString, a as WeeksView, b as TimeString, c as resolveFirstWeekSpec, d as WeekNumberHeader, f as RangeEndDragHandle, g as DateString, h as RangeSelected, i as WeekCount, j as MonthSeparatorRow, k as MonthSeparatorCell, l as computeWeeksInWindow, m as RangePreview, n as NextWeeksButton, o as WeeksViewRoot, p as RangeStartDragHandle, q as useCalendarState, r as PrevWeeksButton, s as resolveFirstWeek, t as Temporal, u as WeekNumberCell, v as NextMonthButton, w as DayButton, x as Grid, y as PrevMonthButton, z as MonthView } from "./temporal-polyfill-DTx0VIX5.mjs";
2
- export { CalendarProvider, DateString, DayButton, DayCellDataContext, DayCellTemplate, Grid, GridBody, GridContext, GridHeader, GridHeaderCell, MonthSeparator, MonthSeparatorCell, MonthSeparatorMonth, MonthSeparatorRow, MonthSeparatorWeekCount, MonthSeparatorYear, MonthView, MonthViewRoot, MonthYearString, NextMonthButton, NextWeeksButton, PrevMonthButton, PrevWeeksButton, RangeEndDragHandle, RangePreview, RangeSelected, RangeStartDragHandle, Temporal, TimeString, WeekCount, WeekDataContext, WeekNumberCell, WeekNumberHeader, WeekTemplate, WeeksView, WeeksViewRoot, computePreviewRange, computeWeeksInWindow, resolveFirstWeek, resolveFirstWeekSpec, useCalendarStable, useCalendarState, useMonthViewStable, useMonthViewState, useViewContext, useWeeksViewStable, useWeeksViewState };
1
+ import { A as MonthSeparatorRow, B as useViewContext, C as DayButton, D as MonthSeparator, E as useWeeksViewState, F as DayCellDataContext, G as useCalendarStable, H as useMonthViewState, I as GridContext, K as useCalendarState, L as WeekDataContext, M as MonthSeparatorYear, N as GridHeader, O as MonthSeparatorCell, P as GridHeaderCell, R as MonthView, S as WeekTemplate, T as useWeeksViewStable, U as CalendarProvider, V as useMonthViewStable, W as computePreviewRange, _ as NextMonthButton, a as WeeksViewRoot, b as Grid, c as computeWeeksInWindow, d as RangeEndDragHandle, f as RangeStartDragHandle, g as MonthYearString, h as DateString, i as WeeksView, j as MonthSeparatorWeekCount, k as MonthSeparatorMonth, l as WeekNumberCell, m as RangeSelected, n as PrevWeeksButton, o as resolveFirstWeek, p as RangePreview, r as WeekCount, s as resolveFirstWeekSpec, t as NextWeeksButton, u as WeekNumberHeader, v as PrevMonthButton, w as DayCellTemplate, x as GridBody, y as TimeString, z as MonthViewRoot } from "./weeks-navigation-B-Nch3LS.mjs";
2
+ export { CalendarProvider, DateString, DayButton, DayCellDataContext, DayCellTemplate, Grid, GridBody, GridContext, GridHeader, GridHeaderCell, MonthSeparator, MonthSeparatorCell, MonthSeparatorMonth, MonthSeparatorRow, MonthSeparatorWeekCount, MonthSeparatorYear, MonthView, MonthViewRoot, MonthYearString, NextMonthButton, NextWeeksButton, PrevMonthButton, PrevWeeksButton, RangeEndDragHandle, RangePreview, RangeSelected, RangeStartDragHandle, TimeString, WeekCount, WeekDataContext, WeekNumberCell, WeekNumberHeader, WeekTemplate, WeeksView, WeeksViewRoot, computePreviewRange, computeWeeksInWindow, resolveFirstWeek, resolveFirstWeekSpec, useCalendarStable, useCalendarState, useMonthViewStable, useMonthViewState, useViewContext, useWeeksViewStable, useWeeksViewState };