@conduction/components 2.1.3 → 2.1.5
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/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Control, FieldValues } from "react-hook-form";
|
|
3
3
|
import { IReactHookFormProps } from "../types";
|
|
4
|
-
import { IInputProps } from "../input";
|
|
5
4
|
/**
|
|
6
5
|
* Export KeyValue input component (wrapped in FormFieldGroup)
|
|
7
6
|
*/
|
|
8
7
|
interface CreateKeyValueProps {
|
|
8
|
+
name: string;
|
|
9
9
|
control: Control<FieldValues, any>;
|
|
10
10
|
defaultValue?: IKeyValue[];
|
|
11
11
|
}
|
|
@@ -13,5 +13,5 @@ export interface IKeyValue {
|
|
|
13
13
|
key: string;
|
|
14
14
|
value: string;
|
|
15
15
|
}
|
|
16
|
-
export declare const CreateKeyValue: React.FC<CreateKeyValueProps &
|
|
16
|
+
export declare const CreateKeyValue: React.FC<CreateKeyValueProps & IReactHookFormProps>;
|
|
17
17
|
export {};
|
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@
|
|
|
10
10
|
* Export KeyValue input component (wrapped in FormFieldGroup)
|
|
11
11
|
*/
|
|
12
12
|
interface CreateKeyValueProps {
|
|
13
|
+
name: string;
|
|
13
14
|
control: Control<FieldValues, any>;
|
|
14
15
|
defaultValue?: IKeyValue[];
|
|
15
16
|
}
|
|
@@ -19,7 +20,7 @@ export interface IKeyValue {
|
|
|
19
20
|
value: string;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
export const CreateKeyValue: React.FC<CreateKeyValueProps &
|
|
23
|
+
export const CreateKeyValue: React.FC<CreateKeyValueProps & IReactHookFormProps> = ({
|
|
23
24
|
name,
|
|
24
25
|
errors,
|
|
25
26
|
control,
|