@occmundial/occ-atomic 3.0.0-beta.17 → 3.0.0-beta.18

Sign up to get free protection for your applications and to get access to all the features.
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: "handleKeyDown",
90
- value: function handleKeyDown(e) {
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
- onKeyDown: function onKeyDown(e) {
122
- return _this2.handleKeyDown(e);
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,
@@ -78,8 +78,8 @@ var Radio = /*#__PURE__*/function (_React$Component) {
78
78
  }
79
79
  }
80
80
  }, {
81
- key: "handleKeyDown",
82
- value: function handleKeyDown(e, option) {
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
- onKeyDown: function onKeyDown(e) {
110
- return _this2.handleKeyDown(e, option);
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: "handleKeyDown",
88
- value: function handleKeyDown(e) {
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
- onKeyDown: function onKeyDown(e) {
115
- return _this2.handleKeyDown(e);
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.17",
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",