@occmundial/occ-atomic 1.24.0 → 1.26.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/Text/Text.js +6 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
# [1.26.0](https://github.com/occmundial/occ-atomic/compare/v1.25.0...v1.26.0) (2023-02-10)
|
2
|
+
|
3
|
+
|
4
|
+
### Features
|
5
|
+
|
6
|
+
* Add testId to text component ([029f501](https://github.com/occmundial/occ-atomic/commit/029f50148ffce324dc696707c73219ce8d16ebd7))
|
7
|
+
|
8
|
+
# [1.25.0](https://github.com/occmundial/occ-atomic/compare/v1.24.0...v1.25.0) (2023-02-09)
|
9
|
+
|
10
|
+
|
11
|
+
### Features
|
12
|
+
|
13
|
+
* Add id property to NavItem and NavIcon component ([734911c](https://github.com/occmundial/occ-atomic/commit/734911cd8bbee3987c38d2897bf00ea2b39db09e))
|
14
|
+
* Delete description property ([a2e6261](https://github.com/occmundial/occ-atomic/commit/a2e626123c1f86c7ddad83d6ea6ee225bff15a0d))
|
15
|
+
|
1
16
|
# [1.24.0](https://github.com/occmundial/occ-atomic/compare/v1.23.0...v1.24.0) (2023-02-02)
|
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/Text/Text.js
CHANGED
@@ -275,7 +275,8 @@ var Text = /*#__PURE__*/function (_Component) {
|
|
275
275
|
tag = _this$props8.tag,
|
276
276
|
className = _this$props8.className,
|
277
277
|
style = _this$props8.style,
|
278
|
-
id = _this$props8.id
|
278
|
+
id = _this$props8.id,
|
279
|
+
testId = _this$props8.testId;
|
279
280
|
var TextType = tag;
|
280
281
|
var size = this.getSize();
|
281
282
|
var color = this.getColor();
|
@@ -287,7 +288,8 @@ var Text = /*#__PURE__*/function (_Component) {
|
|
287
288
|
return /*#__PURE__*/_react["default"].createElement(TextType, {
|
288
289
|
className: "".concat(classes.text, " ").concat(size, " ").concat(color ? color : emphasis).concat(topSpacing).concat(bottomSpacing).concat(align ? " ".concat(align) : '').concat(strong ? " ".concat(strong) : '').concat(className ? " ".concat(className) : ''),
|
289
290
|
style: style,
|
290
|
-
id: id
|
291
|
+
id: id,
|
292
|
+
"data-testid": testId
|
291
293
|
}, children);
|
292
294
|
}
|
293
295
|
}]);
|
@@ -417,7 +419,8 @@ Text.propTypes = {
|
|
417
419
|
tag: _propTypes["default"].string.isRequired,
|
418
420
|
className: _propTypes["default"].string,
|
419
421
|
style: _propTypes["default"].object,
|
420
|
-
id: _propTypes["default"].string
|
422
|
+
id: _propTypes["default"].string,
|
423
|
+
testId: _propTypes["default"].string
|
421
424
|
};
|
422
425
|
Text.defaultProps = {
|
423
426
|
tag: 'p'
|
package/package.json
CHANGED