@gobrand/calendar-core 0.0.21 → 0.0.23

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/README.md CHANGED
@@ -1,6 +1,7 @@
1
- # @gobrand/calendar-core
1
+ # Calendar Core
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/@gobrand/calendar-core.svg)](https://www.npmjs.com/package/@gobrand/calendar-core)
4
+ [![CI](https://github.com/go-brand/calendar/actions/workflows/ci.yml/badge.svg)](https://github.com/go-brand/calendar/actions/workflows/ci.yml)
4
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
6
 
6
7
  **Framework-agnostic calendar utilities built with the Temporal API.** Simple, composable functions for building month, week, and day views.
package/dist/index.d.cts CHANGED
@@ -383,7 +383,7 @@ declare function getDayDateRange(date: Temporal.PlainDate, timeZone: string): Da
383
383
  */
384
384
  declare function getWeekdays(weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, locale?: string | string[], format?: 'short' | 'long' | 'narrow'): string[];
385
385
 
386
- declare function createCalendar<TItem, TOptions extends CalendarOptions<TItem>>(options: TOptions): Calendar<TItem, TOptions>;
386
+ declare function createCalendar<TItem, TOptions extends CalendarOptions<TItem> = CalendarOptions<TItem>>(options: TOptions): Calendar<TItem, TOptions>;
387
387
 
388
388
  declare function createCalendarViews<TItem>(): <const TViews extends {
389
389
  month?: MonthViewOptions<TItem>;
package/dist/index.d.ts CHANGED
@@ -383,7 +383,7 @@ declare function getDayDateRange(date: Temporal.PlainDate, timeZone: string): Da
383
383
  */
384
384
  declare function getWeekdays(weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, locale?: string | string[], format?: 'short' | 'long' | 'narrow'): string[];
385
385
 
386
- declare function createCalendar<TItem, TOptions extends CalendarOptions<TItem>>(options: TOptions): Calendar<TItem, TOptions>;
386
+ declare function createCalendar<TItem, TOptions extends CalendarOptions<TItem> = CalendarOptions<TItem>>(options: TOptions): Calendar<TItem, TOptions>;
387
387
 
388
388
  declare function createCalendarViews<TItem>(): <const TViews extends {
389
389
  month?: MonthViewOptions<TItem>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobrand/calendar-core",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "description": "Lightweight utility library for building calendars using the Temporal API",
5
5
  "private": false,
6
6
  "publishConfig": {