@klinking/colander 3.1.0-alpha.5 → 3.1.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/formats/date.cjs +1 -1
- package/dist/formats/date.d.cts +1 -1
- package/dist/formats/date.d.mts +1 -1
- package/dist/formats/date.mjs +1 -1
- package/dist/formats/object.cjs +1 -1
- package/dist/formats/object.d.cts +1 -1
- package/dist/formats/object.d.mts +1 -1
- package/dist/formats/object.mjs +1 -1
- package/dist/formats/plain-date-time.cjs +1 -1
- package/dist/formats/plain-date-time.d.cts +1 -1
- package/dist/formats/plain-date-time.d.mts +1 -1
- package/dist/formats/plain-date-time.mjs +1 -1
- package/dist/formats/plain-date.cjs +1 -1
- package/dist/formats/plain-date.d.cts +1 -1
- package/dist/formats/plain-date.d.mts +1 -1
- package/dist/formats/plain-date.mjs +1 -1
- package/dist/formats/plain-month-day.cjs +1 -1
- package/dist/formats/plain-month-day.d.cts +1 -1
- package/dist/formats/plain-month-day.d.mts +1 -1
- package/dist/formats/plain-month-day.mjs +1 -1
- package/dist/formats/plain-year-month.cjs +1 -1
- package/dist/formats/plain-year-month.d.cts +1 -1
- package/dist/formats/plain-year-month.d.mts +1 -1
- package/dist/formats/plain-year-month.mjs +1 -1
- package/dist/formats/zoned-date-time.cjs +1 -1
- package/dist/formats/zoned-date-time.d.cts +1 -1
- package/dist/formats/zoned-date-time.d.mts +1 -1
- package/dist/formats/zoned-date-time.mjs +1 -1
- package/dist/{weeks-view-context-BLZZm1fq.d.mts → index-DnFCKyyw.d.cts} +44 -10
- package/dist/{weeks-view-context-CkTcdZpj.d.cts → index-q3cQKJdA.d.mts} +44 -10
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -11
- package/dist/index.d.mts +2 -11
- package/dist/index.mjs +1 -1
- package/dist/{weeks-navigation-CEV8w_69.mjs → weeks-navigation-Dn3UtG76.mjs} +364 -389
- package/dist/{weeks-navigation-q3beZn2n.cjs → weeks-navigation-SuKJZJCM.cjs} +364 -389
- package/package.json +1 -1
- package/src/calendar-provider.tsx +10 -55
- package/src/day-cell-state.test.ts +214 -0
- package/src/day-cell-state.ts +314 -0
- package/src/day-cell.tsx +29 -383
- package/src/range-preview.test.ts +120 -0
- package/src/root-selection.ts +99 -97
- package/src/weeks-navigation.tsx +7 -32
- package/src/weeks-view-state.ts +24 -81
- package/src/weeks-view-types.ts +4 -1
- package/src/weeks-window.test.ts +43 -0
- package/src/weeks-window.ts +64 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
3
1
|
import * as _$react from "react";
|
|
4
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
5
|
|
|
6
6
|
//#region ../node_modules/.pnpm/@js-temporal+polyfill@0.5.1/node_modules/@js-temporal/polyfill/index.d.ts
|
|
7
7
|
declare namespace Temporal {
|
|
@@ -1546,6 +1546,13 @@ interface CalendarStateContextValue {
|
|
|
1546
1546
|
baseRootState: BaseRootState;
|
|
1547
1547
|
}
|
|
1548
1548
|
//#endregion
|
|
1549
|
+
//#region src/calendar-provider.d.ts
|
|
1550
|
+
/**
|
|
1551
|
+
* Provides shared calendar state (selection, config, range preview) to all
|
|
1552
|
+
* descendant view components. Does NOT manage focus, navigation, or grid data.
|
|
1553
|
+
*/
|
|
1554
|
+
declare function CalendarProvider<F extends ValueFormat = "PlainDate">(props: CalendarProviderProps<F>): _$react_jsx_runtime0.JSX.Element;
|
|
1555
|
+
//#endregion
|
|
1549
1556
|
//#region src/out-of-range.d.ts
|
|
1550
1557
|
/**
|
|
1551
1558
|
* Controls how a {@link WeeksView} window behaves when navigation would move it
|
|
@@ -1732,6 +1739,12 @@ declare const GridHeaderCell: (props: GridHeaderCellProps & React.RefAttributes<
|
|
|
1732
1739
|
/** Table header section (`<thead>`) wrapping a row of {@link GridHeaderCell}s. */
|
|
1733
1740
|
declare const GridHeader: (props: GridHeaderProps & React.RefAttributes<HTMLTableSectionElement>) => React.ReactElement | null;
|
|
1734
1741
|
//#endregion
|
|
1742
|
+
//#region src/day-cell-state.d.ts
|
|
1743
|
+
/** A day cell's state: the public {@link DayCellTemplateState} plus the roving-tabindex flag. */
|
|
1744
|
+
type DayCellState = DayCellTemplateState & {
|
|
1745
|
+
isTabTarget: boolean;
|
|
1746
|
+
};
|
|
1747
|
+
//#endregion
|
|
1735
1748
|
//#region src/day-cell.d.ts
|
|
1736
1749
|
/**
|
|
1737
1750
|
* Renders one `<td role="gridcell">` per day. Exposes data-attributes for
|
|
@@ -1743,9 +1756,7 @@ declare const GridHeader: (props: GridHeaderProps & React.RefAttributes<HTMLTabl
|
|
|
1743
1756
|
*/
|
|
1744
1757
|
declare function DayCellTemplate(props: DayCellTemplateProps): _$react_jsx_runtime0.JSX.Element;
|
|
1745
1758
|
declare const DayButton: (props: DayButtonProps & {
|
|
1746
|
-
_derivedState?:
|
|
1747
|
-
isTabTarget: boolean;
|
|
1748
|
-
};
|
|
1759
|
+
_derivedState?: DayCellState;
|
|
1749
1760
|
} & React.RefAttributes<HTMLButtonElement>) => React.ReactElement | null;
|
|
1750
1761
|
//#endregion
|
|
1751
1762
|
//#region src/grid.d.ts
|
|
@@ -1884,6 +1895,21 @@ interface WeekDescriptor {
|
|
|
1884
1895
|
*/
|
|
1885
1896
|
declare function computeWeeksInWindow(firstWeek: Temporal.PlainDate, weekCount: number, weekStartDay: WeekStartDay, _T: TemporalNamespace): WeekDescriptor[];
|
|
1886
1897
|
//#endregion
|
|
1898
|
+
//#region src/weeks-window.d.ts
|
|
1899
|
+
/**
|
|
1900
|
+
* The rules for where a WeeksView window may sit. Built once from the bounds and
|
|
1901
|
+
* shared by every way of moving the window (buttons, keyboard, `scrollToWeek`).
|
|
1902
|
+
*/
|
|
1903
|
+
interface WeekWindowPolicy {
|
|
1904
|
+
/** Applies the out-of-range behavior to a requested first week. */
|
|
1905
|
+
resolve(requestedFirstWeek: Temporal.PlainDate): {
|
|
1906
|
+
firstWeek: Temporal.PlainDate;
|
|
1907
|
+
weekCount: number;
|
|
1908
|
+
};
|
|
1909
|
+
/** Whether a Prev/Next step of `shiftBy` weeks (default `weekCount`) is allowed. */
|
|
1910
|
+
canShift(currentFirstWeek: Temporal.PlainDate, direction: 1 | -1, shiftBy?: number): boolean;
|
|
1911
|
+
}
|
|
1912
|
+
//#endregion
|
|
1887
1913
|
//#region src/weeks-view-types.d.ts
|
|
1888
1914
|
/** Props accepted by `WeeksView.Root`. */
|
|
1889
1915
|
interface WeeksViewRootProps {
|
|
@@ -1934,7 +1960,7 @@ interface WindowInfo {
|
|
|
1934
1960
|
windowStart: Temporal.PlainDate;
|
|
1935
1961
|
/** The last date of the visible window. */
|
|
1936
1962
|
windowEnd: Temporal.PlainDate;
|
|
1937
|
-
/** Number of week rows
|
|
1963
|
+
/** Number of week rows actually shown (fewer than the `weekCount` prop when shrunk). */
|
|
1938
1964
|
weekCount: number;
|
|
1939
1965
|
/** Total number of calendar days in the window. */
|
|
1940
1966
|
dayCount: number;
|
|
@@ -1953,6 +1979,8 @@ interface WeeksViewStableContextValue {
|
|
|
1953
1979
|
scrollBy: "row" | "page";
|
|
1954
1980
|
/** How navigation behaves at bounds. */
|
|
1955
1981
|
outOfRangeBehavior: OutOfRangeBehavior;
|
|
1982
|
+
/** Where the window may sit given `min`/`max` and `outOfRangeBehavior`. */
|
|
1983
|
+
windowPolicy: WeekWindowPolicy;
|
|
1956
1984
|
/** Navigate to the next week(s). Optionally override the shift amount (in weeks). */
|
|
1957
1985
|
goNext: (shiftBy?: number) => void;
|
|
1958
1986
|
/** Navigate to the previous week(s). Optionally override the shift amount (in weeks). */
|
|
@@ -2087,10 +2115,16 @@ declare const MonthSeparator: React$1.ForwardRefExoticComponent<Omit<MonthSepara
|
|
|
2087
2115
|
//#region src/root-selection.d.ts
|
|
2088
2116
|
/**
|
|
2089
2117
|
* Pure utility that computes the preview range for a hovered date, using the
|
|
2090
|
-
* same logic as the
|
|
2091
|
-
* `onHoveredDateChange` handler without needing a controlled `previewRange`.
|
|
2118
|
+
* same logic as the built-in hover preview. Useful for deriving the preview in
|
|
2119
|
+
* an `onHoveredDateChange` handler without needing a controlled `previewRange`.
|
|
2120
|
+
*
|
|
2121
|
+
* Pass `options.isDateDisabled` and `options.readOnly` to match a calendar that
|
|
2122
|
+
* disables dates or is read-only; by default every date is selectable.
|
|
2092
2123
|
*/
|
|
2093
|
-
declare function computePreviewRange(hoveredDate: Temporal.PlainDate, currentRange: DateRange | null, rangeMode: RangeMode, preventRangeReversal?: boolean, T?: TemporalNamespace
|
|
2124
|
+
declare function computePreviewRange(hoveredDate: Temporal.PlainDate, currentRange: DateRange | null, rangeMode: RangeMode, preventRangeReversal?: boolean, T?: TemporalNamespace, options?: {
|
|
2125
|
+
isDateDisabled?: (date: Temporal.PlainDate) => boolean;
|
|
2126
|
+
readOnly?: boolean;
|
|
2127
|
+
}): DateRange<"PlainDate"> | null;
|
|
2094
2128
|
//#endregion
|
|
2095
2129
|
//#region src/calendar-context.d.ts
|
|
2096
2130
|
/** Returns the stable (callbacks/config) part of CalendarProvider context. */
|
|
@@ -2129,4 +2163,4 @@ declare function useWeeksViewStable(): WeeksViewStableContextValue;
|
|
|
2129
2163
|
/** Returns the WeeksView state context (volatile grid data). */
|
|
2130
2164
|
declare function useWeeksViewState(): WeeksViewStateContextValue;
|
|
2131
2165
|
//#endregion
|
|
2132
|
-
export { GridBody as $,
|
|
2166
|
+
export { GridBody as $, TimeStringProps as $t, VisibleMonth as A, GridHeaderCellState as At, resolveFirstWeekSpec as B, OutsideDays as Bt, WeekCountState as C, DayCellTemplateProps as Ct, WeeksViewProps as D, GridBodyProps as Dt, WeeksView as E, DragHandleState as Et, WeekDescriptor as F, MonthData as Ft, RangePreview as G, RangePreviewProps as Gt, WeekNumberHeader as H, PrevMonthButtonProps as Ht, computeWeeksInWindow as I, MonthYearStringProps as It, MonthYearString as J, RangeSelectedState as Jt, RangeSelected as K, RangePreviewState as Kt, FirstWeekSpec as L, MonthYearStringState as Lt, WeeksViewStableContextValue as M, GridHeaderState as Mt, WeeksViewStateContextValue as N, GridProps as Nt, WeeksViewRoot as O, GridBodyState as Ot, WindowInfo as P, GridState as Pt, Grid as Q, TemporalNamespace as Qt, ScrollToWeekSnap as R, NavButtonState as Rt, WeekCountProps as S, DayButtonState as St, WeeksNavButtonState as T, DragHandleOwnProps as Tt, RangeEndDragHandle as U, RangeEndDragHandleProps as Ut, WeekNumberCell as V, PlainDateObject as Vt, RangeStartDragHandle as W, RangeMode as Wt, PrevMonthButton as X, RawValueForFormat as Xt, NextMonthButton as Y, RangeStartDragHandleProps as Yt, TimeString as Z, RootState as Zt, NextWeeksButton as _, DateRange as _t, useMonthViewStable as a, WeekNumberCellState as an, MonthView as at, PrevWeeksButtonProps as b, DateValueObject as bt, useCalendarState as c, WeekStartDay as cn, MonthViewRootProps as ct, MonthSeparatorCell as d, DayCellDataContext as dn, MonthOutOfRangeBehavior as dt, TimeStringState as en, WeekTemplate as et, MonthSeparatorMonth as f, GridContext as fn, OutOfRangeBehavior as ft, MonthSeparatorYear as g, CalendarStateContextValue as gt, MonthSeparatorWeekCount as h, CalendarStableContextValue as ht, useViewContext as i, WeekNumberCellProps as in, GridHeaderCell as it, WeeksViewRootProps as j, GridHeaderProps as jt, WeeksViewRootHandle as k, GridHeaderCellProps as kt, computePreviewRange as l, WeekTemplateProps as ln, MonthViewStableContextValue as lt, MonthSeparatorState as m, CalendarProviderProps as mt, useWeeksViewState as n, ValueForFormat as nn, DayCellTemplate as nt, useMonthViewState as o, WeekNumberHeaderProps as on, MonthViewProps as ot, MonthSeparatorRow as p, WeekDataContext as pn, CalendarProvider as pt, DateString as q, RangeSelectedProps as qt, ViewContextValue as r, ValueFormat as rn, GridHeader as rt, useCalendarStable as s, WeekNumberHeaderState as sn, MonthViewRoot as st, useWeeksViewStable as t, ValueChangeMeta as tn, DayButton as tt, MonthSeparator as u, WeekTemplateState as un, MonthViewStateContextValue as ut, NextWeeksButtonProps as v, DateStringProps as vt, WeeksNavButtonOwnProps as w, DayCellTemplateState as wt, WeekCount as x, DayButtonProps as xt, PrevWeeksButton as y, DateStringState as yt, resolveFirstWeek as z, NextMonthButtonProps as zt };
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_weeks_navigation = require("./weeks-navigation-
|
|
2
|
+
const require_weeks_navigation = require("./weeks-navigation-SuKJZJCM.cjs");
|
|
3
3
|
exports.CalendarProvider = require_weeks_navigation.CalendarProvider;
|
|
4
4
|
exports.DateString = require_weeks_navigation.DateString;
|
|
5
5
|
exports.DayButton = require_weeks_navigation.DayButton;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import { $ as GridBody, $t as
|
|
2
|
-
|
|
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 MonthOutOfRangeBehavior, 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 OutOfRangeBehavior, type OutsideDays, 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 };
|
|
1
|
+
import { $ as GridBody, $t as TimeStringProps, A as VisibleMonth, At as GridHeaderCellState, B as resolveFirstWeekSpec, Bt as OutsideDays, C as WeekCountState, Ct as DayCellTemplateProps, D as WeeksViewProps, Dt as GridBodyProps, E as WeeksView, Et as DragHandleState, F as WeekDescriptor, Ft as MonthData, G as RangePreview, Gt as RangePreviewProps, H as WeekNumberHeader, Ht as PrevMonthButtonProps, I as computeWeeksInWindow, It as MonthYearStringProps, J as MonthYearString, Jt as RangeSelectedState, K as RangeSelected, Kt as RangePreviewState, L as FirstWeekSpec, Lt as MonthYearStringState, M as WeeksViewStableContextValue, Mt as GridHeaderState, N as WeeksViewStateContextValue, Nt as GridProps, O as WeeksViewRoot, Ot as GridBodyState, P as WindowInfo, Pt as GridState, Q as Grid, Qt as TemporalNamespace, R as ScrollToWeekSnap, Rt as NavButtonState, S as WeekCountProps, St as DayButtonState, T as WeeksNavButtonState, Tt as DragHandleOwnProps, U as RangeEndDragHandle, Ut as RangeEndDragHandleProps, V as WeekNumberCell, Vt as PlainDateObject, W as RangeStartDragHandle, Wt as RangeMode, X as PrevMonthButton, Xt as RawValueForFormat, Y as NextMonthButton, Yt as RangeStartDragHandleProps, Z as TimeString, Zt as RootState, _ as NextWeeksButton, _t as DateRange, a as useMonthViewStable, an as WeekNumberCellState, at as MonthView, b as PrevWeeksButtonProps, bt as DateValueObject, c as useCalendarState, cn as WeekStartDay, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as DayCellDataContext, dt as MonthOutOfRangeBehavior, en as TimeStringState, et as WeekTemplate, f as MonthSeparatorMonth, fn as GridContext, ft as OutOfRangeBehavior, g as MonthSeparatorYear, gt as CalendarStateContextValue, h as MonthSeparatorWeekCount, ht as CalendarStableContextValue, i as useViewContext, in as WeekNumberCellProps, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderProps, k as WeeksViewRootHandle, kt as GridHeaderCellProps, l as computePreviewRange, ln as WeekTemplateProps, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarProviderProps, n as useWeeksViewState, nn as ValueForFormat, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderProps, ot as MonthViewProps, p as MonthSeparatorRow, pn as WeekDataContext, pt as CalendarProvider, q as DateString, qt as RangeSelectedProps, r as ViewContextValue, rn as ValueFormat, rt as GridHeader, s as useCalendarStable, sn as WeekNumberHeaderState, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueChangeMeta, tt as DayButton, u as MonthSeparator, un as WeekTemplateState, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringProps, w as WeeksNavButtonOwnProps, wt as DayCellTemplateState, x as WeekCount, xt as DayButtonProps, y as PrevWeeksButton, yt as DateStringState, z as resolveFirstWeek, zt as NextMonthButtonProps } from "./index-DnFCKyyw.cjs";
|
|
2
|
+
export { CalendarProvider, CalendarProviderProps, CalendarStableContextValue, CalendarStateContextValue, DateRange, DateString, DateStringProps, DateStringState, DateValueObject, DayButton, DayButtonProps, DayButtonState, DayCellDataContext, DayCellTemplate, DayCellTemplateProps, DayCellTemplateState, DragHandleOwnProps, DragHandleState, FirstWeekSpec, Grid, GridBody, GridBodyProps, GridBodyState, GridContext, GridHeader, GridHeaderCell, GridHeaderCellProps, GridHeaderCellState, GridHeaderProps, GridHeaderState, GridProps, GridState, MonthData, MonthOutOfRangeBehavior, MonthSeparator, MonthSeparatorCell, MonthSeparatorMonth, MonthSeparatorRow, MonthSeparatorState, MonthSeparatorWeekCount, MonthSeparatorYear, MonthView, MonthViewProps, MonthViewRoot, MonthViewRootProps, MonthViewStableContextValue, MonthViewStateContextValue, MonthYearString, MonthYearStringProps, MonthYearStringState, NavButtonState, NextMonthButton, NextMonthButtonProps, NextWeeksButton, NextWeeksButtonProps, OutOfRangeBehavior, OutsideDays, PlainDateObject, PrevMonthButton, PrevMonthButtonProps, PrevWeeksButton, PrevWeeksButtonProps, RangeEndDragHandle, RangeEndDragHandleProps, RangeMode, RangePreview, RangePreviewProps, RangePreviewState, RangeSelected, RangeSelectedProps, RangeSelectedState, RangeStartDragHandle, RangeStartDragHandleProps, RawValueForFormat, RootState, ScrollToWeekSnap, TemporalNamespace, TimeString, TimeStringProps, TimeStringState, ValueChangeMeta, ValueForFormat, ValueFormat, ViewContextValue, VisibleMonth, WeekCount, WeekCountProps, WeekCountState, WeekDataContext, WeekDescriptor, WeekNumberCell, WeekNumberCellProps, WeekNumberCellState, WeekNumberHeader, WeekNumberHeaderProps, WeekNumberHeaderState, WeekStartDay, WeekTemplate, WeekTemplateProps, WeekTemplateState, WeeksNavButtonOwnProps, WeeksNavButtonState, WeeksView, WeeksViewProps, WeeksViewRoot, WeeksViewRootHandle, WeeksViewRootProps, WeeksViewStableContextValue, WeeksViewStateContextValue, WindowInfo, computePreviewRange, computeWeeksInWindow, resolveFirstWeek, resolveFirstWeekSpec, useCalendarStable, useCalendarState, useMonthViewStable, useMonthViewState, useViewContext, useWeeksViewStable, useWeeksViewState };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import { $ as GridBody, $t as
|
|
2
|
-
|
|
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 MonthOutOfRangeBehavior, 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 OutOfRangeBehavior, type OutsideDays, 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 };
|
|
1
|
+
import { $ as GridBody, $t as TimeStringProps, A as VisibleMonth, At as GridHeaderCellState, B as resolveFirstWeekSpec, Bt as OutsideDays, C as WeekCountState, Ct as DayCellTemplateProps, D as WeeksViewProps, Dt as GridBodyProps, E as WeeksView, Et as DragHandleState, F as WeekDescriptor, Ft as MonthData, G as RangePreview, Gt as RangePreviewProps, H as WeekNumberHeader, Ht as PrevMonthButtonProps, I as computeWeeksInWindow, It as MonthYearStringProps, J as MonthYearString, Jt as RangeSelectedState, K as RangeSelected, Kt as RangePreviewState, L as FirstWeekSpec, Lt as MonthYearStringState, M as WeeksViewStableContextValue, Mt as GridHeaderState, N as WeeksViewStateContextValue, Nt as GridProps, O as WeeksViewRoot, Ot as GridBodyState, P as WindowInfo, Pt as GridState, Q as Grid, Qt as TemporalNamespace, R as ScrollToWeekSnap, Rt as NavButtonState, S as WeekCountProps, St as DayButtonState, T as WeeksNavButtonState, Tt as DragHandleOwnProps, U as RangeEndDragHandle, Ut as RangeEndDragHandleProps, V as WeekNumberCell, Vt as PlainDateObject, W as RangeStartDragHandle, Wt as RangeMode, X as PrevMonthButton, Xt as RawValueForFormat, Y as NextMonthButton, Yt as RangeStartDragHandleProps, Z as TimeString, Zt as RootState, _ as NextWeeksButton, _t as DateRange, a as useMonthViewStable, an as WeekNumberCellState, at as MonthView, b as PrevWeeksButtonProps, bt as DateValueObject, c as useCalendarState, cn as WeekStartDay, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as DayCellDataContext, dt as MonthOutOfRangeBehavior, en as TimeStringState, et as WeekTemplate, f as MonthSeparatorMonth, fn as GridContext, ft as OutOfRangeBehavior, g as MonthSeparatorYear, gt as CalendarStateContextValue, h as MonthSeparatorWeekCount, ht as CalendarStableContextValue, i as useViewContext, in as WeekNumberCellProps, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderProps, k as WeeksViewRootHandle, kt as GridHeaderCellProps, l as computePreviewRange, ln as WeekTemplateProps, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarProviderProps, n as useWeeksViewState, nn as ValueForFormat, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderProps, ot as MonthViewProps, p as MonthSeparatorRow, pn as WeekDataContext, pt as CalendarProvider, q as DateString, qt as RangeSelectedProps, r as ViewContextValue, rn as ValueFormat, rt as GridHeader, s as useCalendarStable, sn as WeekNumberHeaderState, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueChangeMeta, tt as DayButton, u as MonthSeparator, un as WeekTemplateState, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringProps, w as WeeksNavButtonOwnProps, wt as DayCellTemplateState, x as WeekCount, xt as DayButtonProps, y as PrevWeeksButton, yt as DateStringState, z as resolveFirstWeek, zt as NextMonthButtonProps } from "./index-q3cQKJdA.mjs";
|
|
2
|
+
export { CalendarProvider, CalendarProviderProps, CalendarStableContextValue, CalendarStateContextValue, DateRange, DateString, DateStringProps, DateStringState, DateValueObject, DayButton, DayButtonProps, DayButtonState, DayCellDataContext, DayCellTemplate, DayCellTemplateProps, DayCellTemplateState, DragHandleOwnProps, DragHandleState, FirstWeekSpec, Grid, GridBody, GridBodyProps, GridBodyState, GridContext, GridHeader, GridHeaderCell, GridHeaderCellProps, GridHeaderCellState, GridHeaderProps, GridHeaderState, GridProps, GridState, MonthData, MonthOutOfRangeBehavior, MonthSeparator, MonthSeparatorCell, MonthSeparatorMonth, MonthSeparatorRow, MonthSeparatorState, MonthSeparatorWeekCount, MonthSeparatorYear, MonthView, MonthViewProps, MonthViewRoot, MonthViewRootProps, MonthViewStableContextValue, MonthViewStateContextValue, MonthYearString, MonthYearStringProps, MonthYearStringState, NavButtonState, NextMonthButton, NextMonthButtonProps, NextWeeksButton, NextWeeksButtonProps, OutOfRangeBehavior, OutsideDays, PlainDateObject, PrevMonthButton, PrevMonthButtonProps, PrevWeeksButton, PrevWeeksButtonProps, RangeEndDragHandle, RangeEndDragHandleProps, RangeMode, RangePreview, RangePreviewProps, RangePreviewState, RangeSelected, RangeSelectedProps, RangeSelectedState, RangeStartDragHandle, RangeStartDragHandleProps, RawValueForFormat, RootState, ScrollToWeekSnap, TemporalNamespace, TimeString, TimeStringProps, TimeStringState, ValueChangeMeta, ValueForFormat, ValueFormat, ViewContextValue, VisibleMonth, WeekCount, WeekCountProps, WeekCountState, WeekDataContext, WeekDescriptor, WeekNumberCell, WeekNumberCellProps, WeekNumberCellState, WeekNumberHeader, WeekNumberHeaderProps, WeekNumberHeaderState, WeekStartDay, WeekTemplate, WeekTemplateProps, WeekTemplateState, WeeksNavButtonOwnProps, WeeksNavButtonState, WeeksView, WeeksViewProps, WeeksViewRoot, WeeksViewRootHandle, WeeksViewRootProps, WeeksViewStableContextValue, WeeksViewStateContextValue, 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 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-
|
|
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-Dn3UtG76.mjs";
|
|
2
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 };
|