@occmundial/occ-atomic 3.0.0-beta.17 → 3.0.0-beta.18
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
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [3.0.0-beta.18](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.17...v3.0.0-beta.18) (2024-06-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Replace onKeyDown for onKeyUp ([e574e9c](https://github.com/occmundial/occ-atomic/commit/e574e9c42f7a55723794269ede7a4f58dd899e58))
|
|
7
|
+
|
|
1
8
|
# [3.0.0-beta.17](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.16...v3.0.0-beta.17) (2024-06-19)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -86,8 +86,8 @@ var Checkbox = /*#__PURE__*/function (_React$Component) {
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
}, {
|
|
89
|
-
key: "
|
|
90
|
-
value: function
|
|
89
|
+
key: "handleKeyUp",
|
|
90
|
+
value: function handleKeyUp(e) {
|
|
91
91
|
if (e.keyCode == 13 || e.keyCode == 32) {
|
|
92
92
|
e.preventDefault();
|
|
93
93
|
this.toggle();
|
|
@@ -118,8 +118,8 @@ var Checkbox = /*#__PURE__*/function (_React$Component) {
|
|
|
118
118
|
return /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
119
119
|
id: id,
|
|
120
120
|
tabIndex: disabled ? -1 : 0,
|
|
121
|
-
|
|
122
|
-
return _this2.
|
|
121
|
+
onKeyUp: function onKeyUp(e) {
|
|
122
|
+
return _this2.handleKeyUp(e);
|
|
123
123
|
},
|
|
124
124
|
className: "".concat(classes.cont).concat(iconClass).concat(disabled ? " ".concat(classes.disabled) : '').concat(className ? " ".concat(className) : ''),
|
|
125
125
|
onClick: this.toggle,
|
package/build/Radio/Radio.js
CHANGED
|
@@ -78,8 +78,8 @@ var Radio = /*#__PURE__*/function (_React$Component) {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
}, {
|
|
81
|
-
key: "
|
|
82
|
-
value: function
|
|
81
|
+
key: "handleKeyUp",
|
|
82
|
+
value: function handleKeyUp(e, option) {
|
|
83
83
|
if (e.keyCode == 13 || e.keyCode == 32) {
|
|
84
84
|
e.preventDefault();
|
|
85
85
|
this.onChange(option);
|
|
@@ -106,8 +106,8 @@ var Radio = /*#__PURE__*/function (_React$Component) {
|
|
|
106
106
|
id: option.trk,
|
|
107
107
|
key: option.value,
|
|
108
108
|
tabIndex: option.disabled ? -1 : 0,
|
|
109
|
-
|
|
110
|
-
return _this2.
|
|
109
|
+
onKeyUp: function onKeyUp(e) {
|
|
110
|
+
return _this2.handleKeyUp(e, option);
|
|
111
111
|
},
|
|
112
112
|
"data-testid": option.testId
|
|
113
113
|
}, option.testId && {
|
|
@@ -84,8 +84,8 @@ var SlideToggle = /*#__PURE__*/function (_React$Component) {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
}, {
|
|
87
|
-
key: "
|
|
88
|
-
value: function
|
|
87
|
+
key: "handleKeyUp",
|
|
88
|
+
value: function handleKeyUp(e) {
|
|
89
89
|
if (e.keyCode == 13 || e.keyCode == 32) {
|
|
90
90
|
e.preventDefault();
|
|
91
91
|
this.toggle();
|
|
@@ -111,8 +111,8 @@ var SlideToggle = /*#__PURE__*/function (_React$Component) {
|
|
|
111
111
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
112
|
id: id,
|
|
113
113
|
tabIndex: disabled ? -1 : 0,
|
|
114
|
-
|
|
115
|
-
return _this2.
|
|
114
|
+
onKeyUp: function onKeyUp(e) {
|
|
115
|
+
return _this2.handleKeyUp(e);
|
|
116
116
|
},
|
|
117
117
|
onClick: this.toggle,
|
|
118
118
|
className: "".concat(classes.cont).concat(disabled ? " ".concat(classes.disabled) : '').concat(className ? " ".concat(className) : ''),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@occmundial/occ-atomic",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.18",
|
|
4
4
|
"description": "Collection of shareable styled React components for OCC applications.",
|
|
5
5
|
"homepage": "http://occmundial.github.io/occ-atomic",
|
|
6
6
|
"main": "build/index.js",
|