@conduction/components 1.0.16 → 1.0.17

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.
@@ -10,3 +10,8 @@ export declare const InputText: React.FC<IInputProps & IReactHookFormProps>;
10
10
  export declare const InputEmail: React.FC<IInputProps & IReactHookFormProps>;
11
11
  export declare const InputDate: React.FC<IInputProps & IReactHookFormProps>;
12
12
  export declare const InputNumber: React.FC<IInputProps & IReactHookFormProps>;
13
+ interface IInputFileProps {
14
+ accept?: string;
15
+ }
16
+ export declare const InputFile: React.FC<IInputFileProps & IInputProps & IReactHookFormProps>;
17
+ export {};
@@ -10,3 +10,4 @@ export const InputText = ({ disabled, name, defaultValue, validation, register,
10
10
  export const InputEmail = ({ disabled, name, defaultValue, validation, register, errors, }) => (_jsx(TextField, { type: "email", ...{ defaultValue, disabled }, ...register(name, { ...validation }), invalid: errors[name] }));
11
11
  export const InputDate = ({ disabled, name, defaultValue, validation, register, errors, }) => (_jsx(TextField, { type: "date", ...{ defaultValue, disabled }, ...register(name, { ...validation }), invalid: errors[name] }));
12
12
  export const InputNumber = ({ disabled, name, defaultValue, validation, register, errors, }) => (_jsx(TextField, { type: "number", ...{ defaultValue, disabled }, ...register(name, { ...validation }), invalid: errors[name] }));
13
+ export const InputFile = ({ disabled, name, accept, defaultValue, validation, register, }) => (_jsx("input", { className: "denhaag-textfield__input", type: "file", ...{ defaultValue, disabled, accept }, ...register(name, { ...validation }) }));
@@ -3,7 +3,7 @@ import { IReactHookFormProps } from "./types";
3
3
  interface IRadioProps {
4
4
  label: string;
5
5
  name: string;
6
- value: any;
6
+ value: string;
7
7
  }
8
8
  export declare const InputRadio: React.FC<IRadioProps & IReactHookFormProps>;
9
9
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduction/components",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "React (Gatsby) components used within the Conduction Skeleton Application (and its implementations)",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {