@reykjavik/hanna-react 0.10.145 → 0.10.146

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/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@
4
4
 
5
5
  - ... <!-- Add new lines here. -->
6
6
 
7
+ ## 0.10.146
8
+
9
+ _2025-02-10_
10
+
11
+ - fix: Avoid conrolled–uncontrolled warning for `Datepicker` in `isoMode`
12
+
7
13
  ## 0.10.145
8
14
 
9
15
  _2025-01-14_
package/Datepicker.js CHANGED
@@ -110,7 +110,7 @@ const defaultDatepickerTexts = {
110
110
  };
111
111
  const toLocalIsoDate = (date) => {
112
112
  if (!date) {
113
- return undefined;
113
+ return '';
114
114
  }
115
115
  const localDate = new Date(date.getTime() - date.getTimezoneOffset() * 60000);
116
116
  return localDate.toISOString().split('T')[0];
package/esm/Datepicker.js CHANGED
@@ -105,7 +105,7 @@ const defaultDatepickerTexts = {
105
105
  };
106
106
  const toLocalIsoDate = (date) => {
107
107
  if (!date) {
108
- return undefined;
108
+ return '';
109
109
  }
110
110
  const localDate = new Date(date.getTime() - date.getTimezoneOffset() * 60000);
111
111
  return localDate.toISOString().split('T')[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reykjavik/hanna-react",
3
- "version": "0.10.145",
3
+ "version": "0.10.146",
4
4
  "author": "Reykjavík (http://www.reykjavik.is)",
5
5
  "contributors": [
6
6
  "Hugsmiðjan ehf (http://www.hugsmidjan.is)",