@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 +2 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Calendar Core
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@gobrand/calendar-core)
|
|
4
|
+
[](https://github.com/go-brand/calendar/actions/workflows/ci.yml)
|
|
4
5
|
[](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>;
|