@zag-js/date-utils 0.10.3 → 0.10.4

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.
@@ -1,4 +1,4 @@
1
- import type { CalendarDate, CalendarDateTime, ZonedDateTime, DateDuration, DateValue } from '@internationalized/date';
1
+ import { CalendarDate, CalendarDateTime, ZonedDateTime, DateDuration, DateValue } from '@internationalized/date';
2
2
  export declare function getUnitDuration(duration: DateDuration): {
3
3
  years?: number | undefined;
4
4
  months?: number | undefined;
@@ -0,0 +1,2 @@
1
+ import { CalendarDate, CalendarDateTime, ZonedDateTime, DateValue } from '@internationalized/date';
2
+ export declare function getEndOfWeek(date: DateValue, locale: string, firstDayOfWeek?: number): CalendarDate | CalendarDateTime | ZonedDateTime;
@@ -1,2 +1,2 @@
1
- import type { CalendarDate, CalendarDateTime, ZonedDateTime, type DateValue } from '@internationalized/date';
1
+ import { CalendarDate, CalendarDateTime, ZonedDateTime, type DateValue } from '@internationalized/date';
2
2
  export declare function getStartOfWeek(date: DateValue, locale: string, firstDayOfWeek?: number): CalendarDate | CalendarDateTime | ZonedDateTime;
@@ -1,4 +1,4 @@
1
- import type { CalendarDate, CalendarDateTime, ZonedDateTime, DateValue } from '@internationalized/date';
1
+ import { CalendarDate, CalendarDateTime, ZonedDateTime, DateValue } from '@internationalized/date';
2
2
  export declare function getWeekDays(date: DateValue, startOfWeekProp: number | undefined, timeZone: string, locale: string): {
3
3
  value: CalendarDate | CalendarDateTime | ZonedDateTime;
4
4
  short: string;
@@ -1,4 +1,4 @@
1
- import type { CalendarDate, CalendarDateTime, ZonedDateTime, type Calendar, type DateValue } from '@internationalized/date';
1
+ import { CalendarDate, CalendarDateTime, ZonedDateTime, type Calendar, type DateValue } from '@internationalized/date';
2
2
  import type { DateAvailableFn } from "./types";
3
3
  export declare function getTodayDate(timeZone?: string): CalendarDate;
4
4
  export declare function getNextDay(date: DateValue): CalendarDate | CalendarDateTime | ZonedDateTime;
@@ -1,4 +1,4 @@
1
- import type { CalendarDate, CalendarDateTime, ZonedDateTime, type DateDuration, type DateValue } from '@internationalized/date';
1
+ import { CalendarDate, CalendarDateTime, ZonedDateTime, type DateDuration, type DateValue } from '@internationalized/date';
2
2
  export declare function getAdjustedDateFn(visibleDuration: DateDuration, locale: string, minValue?: DateValue, maxValue?: DateValue): (options: {
3
3
  startDate: DateValue;
4
4
  focusedDate: DateValue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/date-utils",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Date utilities for zag.js",
5
5
  "keywords": [
6
6
  "js",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "clean-package": "2.2.0",
32
- "@internationalized/date": "^3.2.0"
32
+ "@internationalized/date": "^3.3.0"
33
33
  },
34
34
  "module": "dist/index.mjs",
35
35
  "types": "dist/index.d.ts",