@conduction/components 2.0.19 → 2.0.20

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,6 +4,7 @@
4
4
 
5
5
  - **Version 2**
6
6
 
7
+ - 2.0.20: Bugfix Textarea component to include correct field validation.
7
8
  - 2.0.19: Add disabled state to Textarea and InputCheckbox components.
8
9
  - 2.0.17 & 2.0.18: Refactor PrimaryTopNav styling.
9
10
  - 2.0.16: Remove styling warnings.
@@ -1,3 +1,3 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { TextArea } from "@gemeente-denhaag/textarea";
3
- export const Textarea = ({ name, validation, register, errors, disabled, }) => _jsx(TextArea, { ...(register(name, { ...validation }), { disabled }), invalid: errors[name] });
3
+ export const Textarea = ({ name, validation, register, errors, disabled, }) => _jsx(TextArea, { ...register(name, { ...validation }), ...{ disabled }, invalid: errors[name] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduction/components",
3
- "version": "2.0.19",
3
+ "version": "2.0.20",
4
4
  "description": "React (Gatsby) components used within the Conduction Skeleton Application (and its implementations)",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -14,4 +14,4 @@ export const Textarea: React.FC<ITextAreaProps & IReactHookFormProps> = ({
14
14
  register,
15
15
  errors,
16
16
  disabled,
17
- }) => <TextArea {...(register(name, { ...validation }), { disabled })} invalid={errors[name]} />;
17
+ }) => <TextArea {...register(name, { ...validation })} {...{ disabled }} invalid={errors[name]} />;