@occmundial/occ-atomic 1.25.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 +7 -0
- package/build/Text/Text.js +6 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
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
|
+
|
1
8
|
# [1.25.0](https://github.com/occmundial/occ-atomic/compare/v1.24.0...v1.25.0) (2023-02-09)
|
2
9
|
|
3
10
|
|
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