@occmundial/occ-atomic 2.0.0-beta.7 → 2.0.0-beta.8

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 CHANGED
@@ -1,3 +1,11 @@
1
+ # [2.0.0-beta.8](https://github.com/occmundial/occ-atomic/compare/v2.0.0-beta.7...v2.0.0-beta.8) (2024-04-25)
2
+
3
+
4
+ ### Features
5
+
6
+ * Validate render icon in button logic ([c445f00](https://github.com/occmundial/occ-atomic/commit/c445f00b7f89b94c102b0e113b503d0e1a5193d4))
7
+ * Validate render icon in button logic ([91dbc46](https://github.com/occmundial/occ-atomic/commit/91dbc464acceec6b1c7c9d2dde28976d04a5bf30))
8
+
1
9
  # [2.0.0-beta.7](https://github.com/occmundial/occ-atomic/compare/v2.0.0-beta.6...v2.0.0-beta.7) (2024-04-24)
2
10
 
3
11
 
@@ -21,6 +21,8 @@ var _fonts2 = _interopRequireDefault(require("../tokens/fonts.json"));
21
21
 
22
22
  var _shadows = _interopRequireDefault(require("../tokens/shadows.json"));
23
23
 
24
+ var _mappedIcons = require("../subatomic/mappedIcons");
25
+
24
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
27
 
26
28
  var sec = _colors["default"].sec,
@@ -33,9 +35,9 @@ var lg = _fonts2["default"]['button-large'];
33
35
 
34
36
  var renderIcon = function renderIcon(props, color) {
35
37
  if (props.icon) {
36
- return _icons["default"].base(_icons["default"][props.icon].icon(color));
38
+ return _mappedIcons.legacyIcons[props.icon] ? _icons["default"].base(_icons["default"][props.icon].icon(color)) : '';
37
39
  } else if (props.iconRight) {
38
- return _icons["default"].base(_icons["default"][props.iconRight].icon(color));
40
+ return _mappedIcons.legacyIcons[props.iconRight] ? _icons["default"].base(_icons["default"][props.iconRight].icon(color)) : '';
39
41
  }
40
42
 
41
43
  return '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@occmundial/occ-atomic",
3
- "version": "2.0.0-beta.7",
3
+ "version": "2.0.0-beta.8",
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",