@conduction/components 2.1.2 → 2.1.4

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
@@ -4,7 +4,9 @@
4
4
 
5
5
  - **Version 2.1 (breaking changes from 2.0.x)**
6
6
 
7
- - 2.1.2: REVERT 2.1.1 and 2.1.0
7
+ - 2.1.4: Remove IInputProps from CreateKeyValue to undo duplicate defaultValue prop
8
+ - 2.1.3: Export IKeyValue from CreateKeyValue component.
9
+ - 2.1.2: REVERT 2.1.1 and 2.1.0.
8
10
  - 2.1.1: Deploy issues.
9
11
  - 2.1.0: InputDate now includes Den Haag InputDate component, requiring react-hook-form controls.
10
12
 
@@ -9,7 +9,7 @@ interface CreateKeyValueProps {
9
9
  control: Control<FieldValues, any>;
10
10
  defaultValue?: IKeyValue[];
11
11
  }
12
- interface IKeyValue {
12
+ export interface IKeyValue {
13
13
  key: string;
14
14
  value: string;
15
15
  }
@@ -3,5 +3,5 @@ import { Textarea } from "./textarea";
3
3
  import { InputCheckbox } from "./checkbox";
4
4
  import { InputRadio } from "./radio";
5
5
  import { SelectSingle, SelectMultiple, SelectCreate } from "./select/select";
6
- import { CreateKeyValue } from "./createKeyValue/CreateKeyValue";
7
- export { InputRadio, InputText, InputPassword, InputEmail, InputURL, InputDate, InputDateTime, InputNumber, InputCheckbox, InputFile, Textarea, SelectSingle, SelectMultiple, SelectCreate, CreateKeyValue, };
6
+ import { CreateKeyValue, IKeyValue } from "./createKeyValue/CreateKeyValue";
7
+ export { InputRadio, InputText, InputPassword, InputEmail, InputURL, InputDate, InputDateTime, InputNumber, InputCheckbox, InputFile, Textarea, SelectSingle, SelectMultiple, SelectCreate, CreateKeyValue, IKeyValue, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduction/components",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "React (Gatsby) components used within the Conduction Skeleton Application (and its implementations)",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -10,16 +10,17 @@ 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
  }
16
17
 
17
- interface IKeyValue {
18
+ export interface IKeyValue {
18
19
  key: string;
19
20
  value: string;
20
21
  }
21
22
 
22
- export const CreateKeyValue: React.FC<CreateKeyValueProps & IInputProps & IReactHookFormProps> = ({
23
+ export const CreateKeyValue: React.FC<CreateKeyValueProps & IReactHookFormProps> = ({
23
24
  name,
24
25
  errors,
25
26
  control,
@@ -12,7 +12,7 @@ import { Textarea } from "./textarea";
12
12
  import { InputCheckbox } from "./checkbox";
13
13
  import { InputRadio } from "./radio";
14
14
  import { SelectSingle, SelectMultiple, SelectCreate } from "./select/select";
15
- import { CreateKeyValue } from "./createKeyValue/CreateKeyValue";
15
+ import { CreateKeyValue, IKeyValue } from "./createKeyValue/CreateKeyValue";
16
16
 
17
17
  export {
18
18
  InputRadio,
@@ -30,4 +30,5 @@ export {
30
30
  SelectMultiple,
31
31
  SelectCreate,
32
32
  CreateKeyValue,
33
+ IKeyValue,
33
34
  };