@conduction/components 2.1.26 → 2.1.27

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,9 +4,10 @@
4
4
 
5
5
  - **Version 2.1 (breaking changes from 2.0.x)**
6
6
 
7
+ - 2.1.27: TimeFormat in DatePicker is now consistant with DateFormat.
7
8
  - 2.1.26: Avoid dependency on `@gemeente-denhaag/components-react`, only depend on components we actually use.
8
- - 2.1.25: Added id prop to select component
9
- - 2.1.24: Add new design tokens for topnav dropdown
9
+ - 2.1.25: Added id prop to select component.
10
+ - 2.1.24: Add new design tokens for topnav dropdown.
10
11
  - 2.1.23: Added optional error messages to CreateKeyValue and unused classname removed warning.
11
12
  - 2.1.22: Added optional error messages to textarea, select and input fields.
12
13
  - 2.1.21: Added optional copy button and refactored delete button in CreateKeyValue.
@@ -34,10 +35,8 @@
34
35
 
35
36
  - 2.0.34: SelectMultiple and SelectCreate update to include defaultValue in react-hook-form controller.
36
37
  - 2.0.33: PrimaryTopNav sub items doesn't overlap main navbar anymore.
37
- - 2.0.32:
38
- - SelectSingle update to include defaultValue in react-hook-form controller.
39
- - 2.0.31:
40
- - PrimaryTopNav clickbox now includes padding of nav items.
38
+ - 2.0.32: SelectSingle update to include defaultValue in react-hook-form controller.
39
+ - 2.0.31: PrimaryTopNav clickbox now includes padding of nav items.
41
40
  - 2.0.30:
42
41
  - Selects now have an z-index.
43
42
  - Checkboxes now automatically have an id wich is a camelCase of "checkbox" plus the label, "checkboxLabel".
@@ -61,10 +60,8 @@
61
60
  - 2.0.15: Added mobile support to PrimaryTopNav.
62
61
  - 2.0.14: Refactored SelectCreate placeholder text.
63
62
  - 2.0.13: removed round borders of tag.
64
- - 2.0.11 & 2.0.12:
65
- - Added disabled state to SelectSingle component.
66
- - 2.0.10:
67
- - Added InputFloat (.00 decimals) component.
63
+ - 2.0.11 & 2.0.12: Added disabled state to SelectSingle component.
64
+ - 2.0.10: Added InputFloat (.00 decimals) component.
68
65
  - 2.0.9:
69
66
  - Added optional defaultChecked to InputCheckbox.
70
67
  - Added CreateKeyValue input.
@@ -5,6 +5,6 @@ import { Controller } from "react-hook-form";
5
5
  import DatePicker from "react-datepicker";
6
6
  export const InputDate = ({ name, errors, control, validation, disabled, }) => {
7
7
  return (_jsx(Controller, { ...{ control, name }, rules: validation, render: ({ field: { onChange, value } }) => {
8
- return (_jsx(DatePicker, { calendarClassName: styles.calendar, className: "denhaag-datepicker__input", onChange: (date) => onChange(date), dateFormat: "d-MM-yyyy HH:mm", selected: value, timeIntervals: 1, showTimeSelect: true, ...{ errors, value, disabled } }));
8
+ return (_jsx(DatePicker, { calendarClassName: styles.calendar, className: "denhaag-datepicker__input", onChange: (date) => onChange(date), dateFormat: "d-MM-yyyy HH:mm", timeFormat: "HH:mm", selected: value, timeIntervals: 1, showTimeSelect: true, ...{ errors, value, disabled } }));
9
9
  } }));
10
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduction/components",
3
- "version": "2.1.26",
3
+ "version": "2.1.27",
4
4
  "description": "React (Gatsby) components used within the Conduction Skeleton Application (and its implementations)",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -30,6 +30,7 @@ export const InputDate = ({
30
30
  className="denhaag-datepicker__input"
31
31
  onChange={(date) => onChange(date)}
32
32
  dateFormat="d-MM-yyyy HH:mm"
33
+ timeFormat="HH:mm"
33
34
  selected={value}
34
35
  timeIntervals={1}
35
36
  showTimeSelect