@klinking/colander 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/formats/date.cjs +49 -0
- package/dist/formats/date.d.cts +45 -0
- package/dist/formats/date.d.mts +45 -0
- package/dist/formats/date.mjs +2 -0
- package/dist/formats/object.cjs +49 -0
- package/dist/formats/object.d.cts +45 -0
- package/dist/formats/object.d.mts +45 -0
- package/dist/formats/object.mjs +2 -0
- package/dist/formats/plain-date-time.cjs +49 -0
- package/dist/formats/plain-date-time.d.cts +45 -0
- package/dist/formats/plain-date-time.d.mts +45 -0
- package/dist/formats/plain-date-time.mjs +2 -0
- package/dist/formats/plain-date.cjs +49 -0
- package/dist/formats/plain-date.d.cts +45 -0
- package/dist/formats/plain-date.d.mts +45 -0
- package/dist/formats/plain-date.mjs +2 -0
- package/dist/formats/plain-month-day.cjs +49 -0
- package/dist/formats/plain-month-day.d.cts +45 -0
- package/dist/formats/plain-month-day.d.mts +45 -0
- package/dist/formats/plain-month-day.mjs +2 -0
- package/dist/formats/plain-year-month.cjs +49 -0
- package/dist/formats/plain-year-month.d.cts +45 -0
- package/dist/formats/plain-year-month.d.mts +45 -0
- package/dist/formats/plain-year-month.mjs +2 -0
- package/dist/formats/zoned-date-time.cjs +49 -0
- package/dist/formats/zoned-date-time.d.cts +45 -0
- package/dist/formats/zoned-date-time.d.mts +45 -0
- package/dist/formats/zoned-date-time.mjs +2 -0
- package/dist/index.cjs +49 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +2 -0
- package/dist/temporal-polyfill-DTx0VIX5.mjs +4556 -0
- package/dist/temporal-polyfill-DU8VfleL.cjs +4860 -0
- package/dist/weeks-view-context-BN6qR-83.d.mts +2022 -0
- package/dist/weeks-view-context-aHGgYkpt.d.cts +2022 -0
- package/package.json +89 -0
- package/src/calendar-context.ts +22 -0
- package/src/calendar-provider.test.tsx +123 -0
- package/src/calendar-provider.tsx +538 -0
- package/src/calendar-types.ts +212 -0
- package/src/compute-weeks-in-window.test.ts +83 -0
- package/src/compute-weeks-in-window.ts +40 -0
- package/src/context.ts +34 -0
- package/src/day-cell.tsx +635 -0
- package/src/drag-handle.tsx +137 -0
- package/src/formats/date.ts +110 -0
- package/src/formats/formats.test.ts +18 -0
- package/src/formats/object.ts +110 -0
- package/src/formats/plain-date-time.ts +110 -0
- package/src/formats/plain-date.ts +110 -0
- package/src/formats/plain-month-day.ts +110 -0
- package/src/formats/plain-year-month.ts +110 -0
- package/src/formats/zoned-date-time.ts +110 -0
- package/src/grid-header.tsx +141 -0
- package/src/grid.event-perf.test.tsx +282 -0
- package/src/grid.perf.test.tsx +467 -0
- package/src/grid.tsx +608 -0
- package/src/index.ts +116 -0
- package/src/keyboard.test.ts +498 -0
- package/src/keyboard.ts +142 -0
- package/src/month-separator.test.tsx +183 -0
- package/src/month-separator.tsx +238 -0
- package/src/month-view-context.ts +26 -0
- package/src/month-view-types.ts +89 -0
- package/src/month-view.test.tsx +1433 -0
- package/src/month-view.tsx +373 -0
- package/src/navigation.tsx +350 -0
- package/src/overflow.test.ts +124 -0
- package/src/overflow.ts +233 -0
- package/src/range-preview.tsx +90 -0
- package/src/resolve-first-week.test.ts +132 -0
- package/src/resolve-first-week.ts +145 -0
- package/src/root-selection.ts +621 -0
- package/src/selected-range.tsx +163 -0
- package/src/temporal-polyfill.test.ts +317 -0
- package/src/temporal-polyfill.ts +566 -0
- package/src/test-temporal.ts +17 -0
- package/src/types.ts +814 -0
- package/src/utils.bench.ts +183 -0
- package/src/utils.test.ts +983 -0
- package/src/utils.ts +493 -0
- package/src/view-context.ts +28 -0
- package/src/week-number.tsx +118 -0
- package/src/weeks-grid.tsx +265 -0
- package/src/weeks-keyboard.test.ts +222 -0
- package/src/weeks-keyboard.ts +156 -0
- package/src/weeks-navigation.tsx +209 -0
- package/src/weeks-view-context.ts +26 -0
- package/src/weeks-view-state.ts +421 -0
- package/src/weeks-view-types.ts +102 -0
- package/src/weeks-view.test.tsx +479 -0
- package/src/weeks-view.tsx +127 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
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 };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
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 };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +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 };
|