@occmundial/occ-atomic 3.0.0-beta.8 → 3.0.0-beta.9
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -0
- package/build/Tip/TipText/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [3.0.0-beta.9](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.8...v3.0.0-beta.9) (2024-06-06)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* Move use memo before early return ([3d290c9](https://github.com/occmundial/occ-atomic/commit/3d290c9675fb24e20d131fdbaeef023920f3e439))
|
7
|
+
|
1
8
|
# [3.0.0-beta.8](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.7...v3.0.0-beta.8) (2024-06-06)
|
2
9
|
|
3
10
|
|
@@ -22,12 +22,12 @@ var boldRegex = /\*(.*?)\*/g;
|
|
22
22
|
var TipText = function TipText(_ref) {
|
23
23
|
var classes = _ref.classes,
|
24
24
|
text = _ref.text;
|
25
|
-
if (text === '' || typeof text !== 'string') return text;
|
26
25
|
var result = (0, _react.useMemo)(function () {
|
27
26
|
return text.replace(boldRegex, function (_, txt) {
|
28
27
|
return txt;
|
29
28
|
});
|
30
29
|
}, [text]);
|
30
|
+
if (text === '' || typeof text !== 'string') return text;
|
31
31
|
return /*#__PURE__*/_react["default"].createElement("p", {
|
32
32
|
className: classes
|
33
33
|
}, result);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@occmundial/occ-atomic",
|
3
|
-
"version": "3.0.0-beta.
|
3
|
+
"version": "3.0.0-beta.9",
|
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",
|