@jobber/components 4.2.2-pre.5 → 4.2.2-pre.7

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,12 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
+ import { CivilDate } from "@std-proposal/temporal";
3
4
  interface FormatRelativeDateTimeProps {
4
5
  /**
5
6
  * Date to be displayed.
6
7
  *
7
8
  * A `string` should be an ISO 8601 format date string.
8
9
  */
9
- readonly date: Temporal.PlainDateTime | Date | string;
10
+ readonly date: Temporal.PlainDateTime | CivilDate | Date | string;
10
11
  }
11
12
  export declare function FormatRelativeDateTime({ date: inputDate, }: FormatRelativeDateTimeProps): JSX.Element;
12
13
  export {};
@@ -1,12 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
+ import { CivilTime } from "@std-proposal/temporal";
3
4
  interface FormatTimeProps {
4
5
  /**
5
6
  * Civil Time of time to be displayed.
6
7
  *
7
8
  * A `string` should be an ISO 8601 format date string.
8
9
  */
9
- readonly time: Temporal.PlainTime | Date | string;
10
+ readonly time: Temporal.PlainTime | CivilTime | Date | string;
10
11
  /**
11
12
  * Optionally specify clock format. If `undefined` system format will be respected.
12
13
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "4.2.2-pre.5+146d76cc",
3
+ "version": "4.2.2-pre.7+9c529cde",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -83,5 +83,5 @@
83
83
  "> 1%",
84
84
  "IE 10"
85
85
  ],
86
- "gitHead": "146d76cc111487efd0143005bc9385e57e574678"
86
+ "gitHead": "9c529cde07f713b5ca9c23ca76e6d4bcb6c408e3"
87
87
  }