@synerise/ds-input-number 0.9.4 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +19 -0
- package/dist/InputNumber.js +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,25 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [0.9.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-input-number@0.9.5...@synerise/ds-input-number@0.9.6) (2024-02-23)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* **input-number:** fixed issue with 0value ([1232945](https://github.com/Synerise/synerise-design/commit/1232945c47b99dd34174adbe2b7953c269ea36a9))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
## [0.9.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-input-number@0.9.4...@synerise/ds-input-number@0.9.5) (2024-02-21)
|
18
|
+
|
19
|
+
**Note:** Version bump only for package @synerise/ds-input-number
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
6
25
|
## [0.9.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-input-number@0.9.3...@synerise/ds-input-number@0.9.4) (2024-02-19)
|
7
26
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-input-number
|
package/dist/InputNumber.js
CHANGED
@@ -36,12 +36,12 @@ var InputNumber = function InputNumber(_ref) {
|
|
36
36
|
thousandDelimiter = _useDataFormat.thousandDelimiter,
|
37
37
|
decimalDelimiter = _useDataFormat.decimalDelimiter;
|
38
38
|
|
39
|
-
var _useState = useState(value
|
39
|
+
var _useState = useState(value != null ? value : defaultValue),
|
40
40
|
localValue = _useState[0],
|
41
41
|
setLocalValue = _useState[1];
|
42
42
|
|
43
43
|
useEffect(function () {
|
44
|
-
if (value && value !== localValue) {
|
44
|
+
if (value !== undefined && value !== localValue) {
|
45
45
|
setLocalValue(value);
|
46
46
|
} // eslint-disable-next-line react-hooks/exhaustive-deps
|
47
47
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@synerise/ds-input-number",
|
3
|
-
"version": "0.9.
|
3
|
+
"version": "0.9.6",
|
4
4
|
"description": "Input-Number UI Component for the Synerise Design System",
|
5
5
|
"license": "ISC",
|
6
6
|
"repository": "Synerise/synerise-design",
|
@@ -34,9 +34,9 @@
|
|
34
34
|
"types": "dist/index.d.ts",
|
35
35
|
"dependencies": {
|
36
36
|
"@synerise/ds-data-format": "^0.4.8",
|
37
|
-
"@synerise/ds-icon": "^0.60.
|
38
|
-
"@synerise/ds-tooltip": "^0.14.
|
39
|
-
"@synerise/ds-utils": "^0.24.
|
37
|
+
"@synerise/ds-icon": "^0.60.2",
|
38
|
+
"@synerise/ds-tooltip": "^0.14.19",
|
39
|
+
"@synerise/ds-utils": "^0.24.26",
|
40
40
|
"uuid": "^8.3.2"
|
41
41
|
},
|
42
42
|
"peerDependencies": {
|
@@ -50,5 +50,5 @@
|
|
50
50
|
"@testing-library/react-hooks": "^8.0.1",
|
51
51
|
"@types/uuid": "9.0.4"
|
52
52
|
},
|
53
|
-
"gitHead": "
|
53
|
+
"gitHead": "751dc6640206153c0d4ab08107743bc816df532c"
|
54
54
|
}
|