@trackunit/react-date-and-time-components 1.20.2 → 1.20.3

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.20.2",
3
+ "version": "1.20.3",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -1,7 +1,7 @@
1
1
  import { CommonProps, Refable } from "@trackunit/react-components";
2
2
  import { DateRange } from "@trackunit/date-and-time-utils";
3
3
  import { ReactElement } from "react";
4
- import { TimeZone } from "../index";
4
+ import { TimeZone } from "../TimeZone";
5
5
  import { DisabledDaysMatcher } from "./DayPicker";
6
6
  export interface DayRangePickerProps extends CommonProps, Refable<HTMLDivElement> {
7
7
  /**
@@ -0,0 +1,18 @@
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
+ }
@@ -1,6 +1,6 @@
1
1
  import { TemporalFormat } from "@trackunit/date-and-time-utils";
2
2
  import { CommonProps, Refable } from "@trackunit/react-components";
3
- import { TimeZone } from "../index";
3
+ import { TimeZone } from "../TimeZone";
4
4
  export interface DateTimeProps extends CommonProps, Refable<HTMLTimeElement> {
5
5
  /**
6
6
  * The date/time value to display. Accepts a `Date` object, an ISO 8601 string, or a Unix timestamp in milliseconds.
package/src/index.d.ts CHANGED
@@ -1,23 +1,6 @@
1
1
  export * from "./dateTime/DateTime";
2
2
  export * from "./dateTime/DateTimeHumanized";
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
- }
3
+ export * from "./TimeZone";
21
4
  export * from "./DayPicker/DayPicker";
22
5
  export * from "./DayPicker/DayRangePicker";
23
6
  export * from "./DayRangeSelect/DayRangeSelect";