@occmundial/occ-atomic 3.0.0-beta.10 → 3.0.0-beta.11
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/build/Banner/Banner.js +5 -1
- package/build/Tip/TipText/index.js +4 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
# [3.0.0-beta.11](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.10...v3.0.0-beta.11) (2024-06-07)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* Call hoc window size and improve tip text use memo ([840e108](https://github.com/occmundial/occ-atomic/commit/840e1089cb3e80c6b2d2686c56b577166f6bc66f))
|
7
|
+
* Resolve conflicts ([23e9ba8](https://github.com/occmundial/occ-atomic/commit/23e9ba8008ffe55e8af6910394580123032aee0e))
|
8
|
+
|
1
9
|
# [3.0.0-beta.10](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.9...v3.0.0-beta.10) (2024-06-06)
|
2
10
|
|
3
11
|
|
package/build/Banner/Banner.js
CHANGED
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
11
11
|
|
12
|
+
var _WindowSize = _interopRequireDefault(require("../WindowSize"));
|
13
|
+
|
12
14
|
var _grid = _interopRequireDefault(require("../subatomic/grid"));
|
13
15
|
|
14
16
|
var _Tip = _interopRequireDefault(require("../Tip"));
|
@@ -58,5 +60,7 @@ Banner.propTypes = {
|
|
58
60
|
}),
|
59
61
|
theme: _propTypes["default"].oneOf(['info', 'warning', 'success', 'error', 'promote'])
|
60
62
|
};
|
61
|
-
|
63
|
+
|
64
|
+
var _default = (0, _WindowSize["default"])(Banner);
|
65
|
+
|
62
66
|
exports["default"] = _default;
|
@@ -1,36 +1,27 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
4
|
-
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
6
4
|
value: true
|
7
5
|
});
|
8
6
|
exports["default"] = void 0;
|
9
7
|
|
10
|
-
var _react =
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
11
9
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
13
11
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
15
13
|
|
16
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
17
|
-
|
18
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
19
|
-
|
20
14
|
var boldRegex = /\*(.*?)\*/g;
|
21
15
|
|
22
16
|
var TipText = function TipText(_ref) {
|
23
17
|
var classes = _ref.classes,
|
24
18
|
text = _ref.text;
|
25
|
-
var result = (0, _react.useMemo)(function () {
|
26
|
-
return text.replace(boldRegex, function (_, txt) {
|
27
|
-
return txt;
|
28
|
-
});
|
29
|
-
}, [text]);
|
30
19
|
if (text === '' || typeof text !== 'string') return text;
|
31
20
|
return /*#__PURE__*/_react["default"].createElement("p", {
|
32
21
|
className: classes
|
33
|
-
},
|
22
|
+
}, text.replace(boldRegex, function (_, txt) {
|
23
|
+
return txt;
|
24
|
+
}));
|
34
25
|
};
|
35
26
|
|
36
27
|
TipText.propTypes = {
|
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.11",
|
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",
|