@trackunit/react-date-and-time-components 1.14.0 → 1.14.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-date-and-time-components",
3
- "version": "1.14.0",
3
+ "version": "1.14.9",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -8,14 +8,14 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "react": "19.0.0",
11
- "@trackunit/react-components": "1.15.0",
12
- "@trackunit/date-and-time-utils": "1.11.0",
13
- "@trackunit/react-date-and-time-hooks": "1.11.0",
14
- "@trackunit/css-class-variance-utilities": "1.11.0",
15
- "@trackunit/ui-icons": "1.11.0",
16
- "@trackunit/shared-utils": "1.13.0",
17
- "@trackunit/i18n-library-translation": "1.11.0",
18
- "@trackunit/react-form-components": "1.12.0",
11
+ "@trackunit/react-components": "1.15.7",
12
+ "@trackunit/date-and-time-utils": "1.11.7",
13
+ "@trackunit/react-date-and-time-hooks": "1.11.8",
14
+ "@trackunit/css-class-variance-utilities": "1.11.6",
15
+ "@trackunit/ui-icons": "1.11.6",
16
+ "@trackunit/shared-utils": "1.13.6",
17
+ "@trackunit/i18n-library-translation": "1.11.6",
18
+ "@trackunit/react-form-components": "1.12.7",
19
19
  "string-ts": "^2.0.0",
20
20
  "tailwind-merge": "^2.0.0",
21
21
  "react-calendar": "^6.0.0"
@@ -1,7 +1,8 @@
1
1
  import { CommonProps } from "@trackunit/react-components";
2
2
  import { DateRange } from "@trackunit/date-and-time-utils";
3
3
  import { ReactElement } from "react";
4
- import { DisabledDaysMatcher, TimeZone } from "./index";
4
+ import { TimeZone } from "../index";
5
+ import { DisabledDaysMatcher } from "./DayPicker";
5
6
  export interface DayRangePickerProps extends CommonProps {
6
7
  /**
7
8
  * A callback function for when a range is selected
@@ -19,7 +19,7 @@ declare const meta: {
19
19
  disabledDays?: import("./DayPicker").DisabledDaysMatcher | undefined;
20
20
  selectedDays?: import("@trackunit/date-and-time-utils").DateRange | undefined;
21
21
  language: string;
22
- timezone?: import(".").TimeZone | undefined;
22
+ timezone?: import("..").TimeZone | undefined;
23
23
  cancelButtonLabel?: string | undefined;
24
24
  onClose?: (() => void) | undefined;
25
25
  classNameCalendar?: string | undefined;
@@ -1,4 +1,4 @@
1
- import { DayRangePickerProps } from "../../../DayPicker";
1
+ import { DayRangePickerProps } from "../../../DayPicker/DayRangePicker";
2
2
  import { TemporalDirection } from "../../types";
3
3
  export type CalculateCustomDateRangeDisabledDaysProps = {
4
4
  maxDaysInRange: number | undefined;
@@ -1,6 +1,6 @@
1
1
  import { TemporalFormat } from "@trackunit/date-and-time-utils";
2
2
  import { CommonProps } from "@trackunit/react-components";
3
- import { TimeZone } from "../DayPicker";
3
+ import { TimeZone } from "../index";
4
4
  export interface DateTimeProps extends CommonProps {
5
5
  value: Date | string | number | null | undefined;
6
6
  format?: TemporalFormat;
package/src/index.d.ts CHANGED
@@ -1,6 +1,25 @@
1
1
  export * from "./dateTime/DateTime";
2
2
  export * from "./dateTime/DateTimeHumanized";
3
- export * from "./DayPicker";
3
+ export interface TimeZone {
4
+ /**
5
+ * The unique id of the timezone
6
+ *
7
+ * @example "America/Denver"
8
+ */
9
+ id: string;
10
+ /**
11
+ * The human-readable name of the timezone. Combines id and offset.
12
+ *
13
+ * @example "America/Denver (-06:00 MDT)"
14
+ */
15
+ name: string;
16
+ /**
17
+ * @example "-06:00 MDT"
18
+ */
19
+ offset: string;
20
+ }
21
+ export * from "./DayPicker/DayPicker";
22
+ export * from "./DayPicker/DayRangePicker";
4
23
  export * from "./DayRangeSelect/DayRangeSelect";
5
24
  export * from "./DayRangeSelect/hooks/useCalculateDateRange/useCalculateDateRange";
6
25
  export * from "./DayRangeSelect/hooks/useFormatTemporalPeriodLabel/useFormatTemporalPeriodLabel";
@@ -13,7 +13,7 @@ var translation = {
13
13
  "input.unit.day": "Tag",
14
14
  "input.unit.days": "Tage",
15
15
  "input.unit.hour": "Stunde",
16
- "input.unit.hours": "hours",
16
+ "input.unit.hours": "Stunden",
17
17
  "input.unit.month": "Monat",
18
18
  "input.unit.months": "Monate",
19
19
  "input.unit.week": "Woche",
@@ -13,7 +13,7 @@ var translation = {
13
13
  "input.unit.day": "วัน",
14
14
  "input.unit.days": "วัน",
15
15
  "input.unit.hour": "ชั่วโมง",
16
- "input.unit.hours": "hours",
16
+ "input.unit.hours": "ชั่วโมง",
17
17
  "input.unit.month": "เดือน",
18
18
  "input.unit.months": "เดือน",
19
19
  "input.unit.week": "สัปดาห์",
@@ -12,8 +12,8 @@ var translation = {
12
12
  "input.today": "Dnes",
13
13
  "input.unit.day": "den",
14
14
  "input.unit.days": "dny/dní",
15
- "input.unit.hour": "hour",
16
- "input.unit.hours": "hours",
15
+ "input.unit.hour": "hodina",
16
+ "input.unit.hours": "hodin/y",
17
17
  "input.unit.month": "měsíc",
18
18
  "input.unit.months": "měsíce",
19
19
  "input.unit.week": "týden",
@@ -13,7 +13,7 @@ var translation = {
13
13
  "input.unit.day": "nap",
14
14
  "input.unit.days": "nap",
15
15
  "input.unit.hour": "óra",
16
- "input.unit.hours": "hours",
16
+ "input.unit.hours": "óra",
17
17
  "input.unit.month": "hónap",
18
18
  "input.unit.months": "hónap",
19
19
  "input.unit.week": "hét",
@@ -11,7 +11,7 @@ var translation = {
11
11
  "input.unit.day": "Tag",
12
12
  "input.unit.days": "Tage",
13
13
  "input.unit.hour": "Stunde",
14
- "input.unit.hours": "hours",
14
+ "input.unit.hours": "Stunden",
15
15
  "input.unit.month": "Monat",
16
16
  "input.unit.months": "Monate",
17
17
  "input.unit.week": "Woche",
@@ -11,7 +11,7 @@ var translation = {
11
11
  "input.unit.day": "วัน",
12
12
  "input.unit.days": "วัน",
13
13
  "input.unit.hour": "ชั่วโมง",
14
- "input.unit.hours": "hours",
14
+ "input.unit.hours": "ชั่วโมง",
15
15
  "input.unit.month": "เดือน",
16
16
  "input.unit.months": "เดือน",
17
17
  "input.unit.week": "สัปดาห์",
@@ -10,8 +10,8 @@ var translation = {
10
10
  "input.today": "Dnes",
11
11
  "input.unit.day": "den",
12
12
  "input.unit.days": "dny/dní",
13
- "input.unit.hour": "hour",
14
- "input.unit.hours": "hours",
13
+ "input.unit.hour": "hodina",
14
+ "input.unit.hours": "hodin/y",
15
15
  "input.unit.month": "měsíc",
16
16
  "input.unit.months": "měsíce",
17
17
  "input.unit.week": "týden",
@@ -11,7 +11,7 @@ var translation = {
11
11
  "input.unit.day": "nap",
12
12
  "input.unit.days": "nap",
13
13
  "input.unit.hour": "óra",
14
- "input.unit.hours": "hours",
14
+ "input.unit.hours": "óra",
15
15
  "input.unit.month": "hónap",
16
16
  "input.unit.months": "hónap",
17
17
  "input.unit.week": "hét",
@@ -1,20 +0,0 @@
1
- export interface TimeZone {
2
- /**
3
- * The unique id of the timezone
4
- *
5
- * @example "America/Denver"
6
- */
7
- id: string;
8
- /**
9
- * The human-readable name of the timezone. Combines id and offset.
10
- *
11
- * @example "America/Denver (-06:00 MDT)"
12
- */
13
- name: string;
14
- /**
15
- * @example "-06:00 MDT"
16
- */
17
- offset: string;
18
- }
19
- export * from "./DayPicker";
20
- export * from "./DayRangePicker";