@synerise/ds-factors 0.14.1 → 0.14.2
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
|
@@ -3,6 +3,18 @@
|
|
|
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.14.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-factors@0.14.1...@synerise/ds-factors@0.14.2) (2022-05-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **factors:** calls onChange callback on clearing input value ([37742e9](https://github.com/Synerise/synerise-design/commit/37742e9d87f526283641be964577c9f4754f463d))
|
|
12
|
+
* **factors:** calls onChange callback on clearing input value ([92a3f80](https://github.com/Synerise/synerise-design/commit/92a3f80cc8d2d3ab2d4f0c5aa9c7be7168edb324))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [0.14.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-factors@0.14.0...@synerise/ds-factors@0.14.1) (2022-05-30)
|
|
7
19
|
|
|
8
20
|
|
|
@@ -11,12 +11,16 @@ var DateInput = function DateInput(_ref) {
|
|
|
11
11
|
var changeHandler = React.useCallback(function (date) {
|
|
12
12
|
onChange(date);
|
|
13
13
|
}, [onChange]);
|
|
14
|
+
var handleClear = React.useCallback(function () {
|
|
15
|
+
onChange(undefined);
|
|
16
|
+
}, [onChange]);
|
|
14
17
|
var handleVisibleChange = React.useCallback(function (visible) {
|
|
15
18
|
if (!visible) {
|
|
16
19
|
onDeactivate && onDeactivate();
|
|
17
20
|
}
|
|
18
21
|
}, [onDeactivate]);
|
|
19
22
|
return /*#__PURE__*/React.createElement(DatePicker, {
|
|
23
|
+
onClear: handleClear,
|
|
20
24
|
onApply: changeHandler,
|
|
21
25
|
onValueChange: changeHandler,
|
|
22
26
|
value: value,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-factors",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"description": "Factors UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"@synerise/ds-core": "*",
|
|
56
56
|
"react": ">=16.9.0 < 17.0.0"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "99aebc2358ae0c570c4d5bcf4280ac37f811be22"
|
|
59
59
|
}
|