@jobber/components 6.40.1 → 6.40.2

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.
@@ -14,13 +14,14 @@ export interface InputTimeProps extends Pick<CommonFormFieldProps, "id" | "align
14
14
  * Function called when user changes input value.
15
15
  */
16
16
  onChange?(newValue?: Date): void;
17
+ }
18
+ export interface InputTimeLegacyProps extends InputTimeProps {
19
+ version?: 1;
20
+ }
21
+ export interface InputTimeRebuiltProps extends Omit<InputTimeProps, "defaultValue" | "version" | "validations" | "onValidation"> {
17
22
  /**
18
- * The version of the component.
23
+ * Version 2 is highly experimental, avoid using it unless you have talked with Atlantis first.
19
24
  */
20
- version?: 1 | 2;
21
- }
22
- export interface InputTimeRebuiltProps extends Omit<InputTimeProps, "defaultValue" | "version"> {
23
- defaultValue?: never;
24
25
  version: 2;
25
26
  error?: string;
26
27
  }
@@ -1,3 +1,3 @@
1
- import { InputTimeProps, InputTimeRebuiltProps } from "./InputTime.types";
2
- export type InputTimeShimProps = InputTimeProps | InputTimeRebuiltProps;
1
+ import { InputTimeLegacyProps, InputTimeRebuiltProps } from "./InputTime.types";
2
+ export type InputTimeShimProps = InputTimeLegacyProps | InputTimeRebuiltProps;
3
3
  export declare function InputTime(props: InputTimeShimProps): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "6.40.1",
3
+ "version": "6.40.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -534,5 +534,5 @@
534
534
  "> 1%",
535
535
  "IE 10"
536
536
  ],
537
- "gitHead": "60288178b8abd8eae2773838e01a53d9462384e1"
537
+ "gitHead": "a6c2f81e84c7e7a662beb3484d8f7cc46a77c331"
538
538
  }