@occmundial/occ-atomic 1.23.0 → 1.24.0
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 +7 -0
- package/build/Radio/Radio.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [1.24.0](https://github.com/occmundial/occ-atomic/compare/v1.23.0...v1.24.0) (2023-02-02)
|
2
|
+
|
3
|
+
|
4
|
+
### Features
|
5
|
+
|
6
|
+
* Add testId to radio button component ([5e1f467](https://github.com/occmundial/occ-atomic/commit/5e1f4671031d752700c0e3556cdc1c4cf462cc10))
|
7
|
+
|
1
8
|
# [1.23.0](https://github.com/occmundial/occ-atomic/compare/v1.22.2...v1.23.0) (2022-12-05)
|
2
9
|
|
3
10
|
|
package/build/Radio/Radio.js
CHANGED
@@ -91,6 +91,7 @@ var Radio = /*#__PURE__*/function (_React$Component) {
|
|
91
91
|
}, options.map(function (option) {
|
92
92
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
93
93
|
id: option.trk,
|
94
|
+
"data-testid": option.testId,
|
94
95
|
key: option.value,
|
95
96
|
className: "".concat(classes.cont).concat(selected == option.value ? " ".concat(classes.active) : '').concat(option.disabled ? " ".concat(classes.disabled) : '').concat(className ? " ".concat(className) : ''),
|
96
97
|
onClick: function onClick() {
|
@@ -132,7 +133,8 @@ Radio.propTypes = {
|
|
132
133
|
value: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
133
134
|
label: _propTypes["default"].string,
|
134
135
|
right: _propTypes["default"].string,
|
135
|
-
trk: _propTypes["default"].string
|
136
|
+
trk: _propTypes["default"].string,
|
137
|
+
testId: _propTypes["default"].string
|
136
138
|
})),
|
137
139
|
|
138
140
|
/** Use this prop to overflow the text of the label, adding '...' and the end. */
|
package/package.json
CHANGED