@occmundial/occ-atomic 1.23.0 → 1.25.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 +15 -0
- package/build/NavIcon/NavIcon.js +6 -3
- package/build/NavItem/NavItem.js +6 -3
- package/build/Radio/Radio.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
# [1.25.0](https://github.com/occmundial/occ-atomic/compare/v1.24.0...v1.25.0) (2023-02-09)
|
2
|
+
|
3
|
+
|
4
|
+
### Features
|
5
|
+
|
6
|
+
* Add id property to NavItem and NavIcon component ([734911c](https://github.com/occmundial/occ-atomic/commit/734911cd8bbee3987c38d2897bf00ea2b39db09e))
|
7
|
+
* Delete description property ([a2e6261](https://github.com/occmundial/occ-atomic/commit/a2e626123c1f86c7ddad83d6ea6ee225bff15a0d))
|
8
|
+
|
9
|
+
# [1.24.0](https://github.com/occmundial/occ-atomic/compare/v1.23.0...v1.24.0) (2023-02-02)
|
10
|
+
|
11
|
+
|
12
|
+
### Features
|
13
|
+
|
14
|
+
* Add testId to radio button component ([5e1f467](https://github.com/occmundial/occ-atomic/commit/5e1f4671031d752700c0e3556cdc1c4cf462cc10))
|
15
|
+
|
1
16
|
# [1.23.0](https://github.com/occmundial/occ-atomic/compare/v1.22.2...v1.23.0) (2022-12-05)
|
2
17
|
|
3
18
|
|
package/build/NavIcon/NavIcon.js
CHANGED
@@ -58,11 +58,13 @@ var NavIcon = /*#__PURE__*/function (_React$Component) {
|
|
58
58
|
onClick = _this$props.onClick,
|
59
59
|
direction = _this$props.direction,
|
60
60
|
className = _this$props.className,
|
61
|
-
testId = _this$props.testId
|
61
|
+
testId = _this$props.testId,
|
62
|
+
id = _this$props.id;
|
62
63
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
63
64
|
className: "".concat(classes.cont).concat(selected ? " ".concat(classes.selected) : '').concat(className ? " ".concat(className) : ''),
|
64
65
|
onClick: onClick,
|
65
|
-
"data-testid": testId
|
66
|
+
"data-testid": testId,
|
67
|
+
id: id
|
66
68
|
}, /*#__PURE__*/_react["default"].createElement(_Flexbox["default"], {
|
67
69
|
display: "flex",
|
68
70
|
direction: direction,
|
@@ -94,7 +96,8 @@ NavIcon.propTypes = {
|
|
94
96
|
className: _propTypes["default"].string,
|
95
97
|
|
96
98
|
/** The testId property adds the data attribute data-testid to the main element and should be used for testing only. */
|
97
|
-
testId: _propTypes["default"].string
|
99
|
+
testId: _propTypes["default"].string,
|
100
|
+
id: _propTypes["default"].string
|
98
101
|
};
|
99
102
|
var _default = NavIcon;
|
100
103
|
exports["default"] = _default;
|
package/build/NavItem/NavItem.js
CHANGED
@@ -65,7 +65,8 @@ var NavItem = /*#__PURE__*/function (_React$Component) {
|
|
65
65
|
white = _this$props.white,
|
66
66
|
small = _this$props.small,
|
67
67
|
className = _this$props.className,
|
68
|
-
testId = _this$props.testId
|
68
|
+
testId = _this$props.testId,
|
69
|
+
id = _this$props.id;
|
69
70
|
var AnchorTag = customComponent ? customComponent : 'a';
|
70
71
|
return /*#__PURE__*/_react["default"].createElement(AnchorTag, _extends({
|
71
72
|
className: "".concat(classes.link).concat(className ? " ".concat(className) : ''),
|
@@ -73,7 +74,8 @@ var NavItem = /*#__PURE__*/function (_React$Component) {
|
|
73
74
|
onClick: !selected ? onClick : null,
|
74
75
|
target: target
|
75
76
|
}, customComponent && customProps, {
|
76
|
-
"data-testid": testId
|
77
|
+
"data-testid": testId,
|
78
|
+
id: id
|
77
79
|
}), /*#__PURE__*/_react["default"].createElement(_Text["default"], {
|
78
80
|
tag: "span",
|
79
81
|
white: white,
|
@@ -121,7 +123,8 @@ NavItem.propTypes = {
|
|
121
123
|
className: _propTypes["default"].string,
|
122
124
|
|
123
125
|
/** The testId property adds the data attribute data-testid to the main element and should be used for testing only. */
|
124
|
-
testId: _propTypes["default"].string
|
126
|
+
testId: _propTypes["default"].string,
|
127
|
+
id: _propTypes["default"].string
|
125
128
|
};
|
126
129
|
var _default = NavItem;
|
127
130
|
exports["default"] = _default;
|
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