@bolttech/atoms-date-input 0.4.0 → 0.4.3
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/index.cjs.js +8 -4
- package/package.json +5 -5
package/index.cjs.js
CHANGED
|
@@ -1881,11 +1881,15 @@ const DateInput = /*#__PURE__*/react.forwardRef(({
|
|
|
1881
1881
|
const handleCancel = react.useCallback(() => {
|
|
1882
1882
|
setIsCalendarOpen(false);
|
|
1883
1883
|
}, []);
|
|
1884
|
-
const handleConfirm =
|
|
1885
|
-
setInputValue(date);
|
|
1884
|
+
const handleConfirm = date => {
|
|
1886
1885
|
setIsCalendarOpen(false);
|
|
1887
|
-
|
|
1888
|
-
|
|
1886
|
+
setInputValue(date);
|
|
1887
|
+
updateDate({
|
|
1888
|
+
target: {
|
|
1889
|
+
value: date
|
|
1890
|
+
}
|
|
1891
|
+
});
|
|
1892
|
+
};
|
|
1889
1893
|
react.useEffect(() => {
|
|
1890
1894
|
if (!value || typeof value !== 'string') return;
|
|
1891
1895
|
setInputValue(value);
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bolttech/atoms-date-input",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"styled-components": "6.1.1",
|
|
6
6
|
"react": "19.1.2",
|
|
7
|
-
"@bolttech/ui-utils": "0.6.
|
|
7
|
+
"@bolttech/ui-utils": "0.6.3",
|
|
8
8
|
"react-dom": "19.1.2",
|
|
9
|
-
"@bolttech/molecules-calendar": "0.29.
|
|
10
|
-
"@bolttech/atoms-icon": "0.24.
|
|
11
|
-
"@bolttech/atoms-input": "0.30.
|
|
9
|
+
"@bolttech/molecules-calendar": "0.29.0",
|
|
10
|
+
"@bolttech/atoms-icon": "0.24.6",
|
|
11
|
+
"@bolttech/atoms-input": "0.30.1"
|
|
12
12
|
},
|
|
13
13
|
"main": "./index.cjs.js",
|
|
14
14
|
"type": "commonjs",
|