@occmundial/occ-atomic 2.0.0-beta.7 → 2.0.0-beta.9
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/Button/styles.js +4 -2
- package/build/plugin/babel.js +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
# [2.0.0-beta.9](https://github.com/occmundial/occ-atomic/compare/v2.0.0-beta.8...v2.0.0-beta.9) (2024-04-25)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* Add exception for the provider in the babel plugin ([4383e87](https://github.com/occmundial/occ-atomic/commit/4383e876ef28bb773dca3ff9149dfe1ad7cc53a1))
|
7
|
+
|
8
|
+
# [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)
|
9
|
+
|
10
|
+
|
11
|
+
### Features
|
12
|
+
|
13
|
+
* Validate render icon in button logic ([c445f00](https://github.com/occmundial/occ-atomic/commit/c445f00b7f89b94c102b0e113b503d0e1a5193d4))
|
14
|
+
* Validate render icon in button logic ([91dbc46](https://github.com/occmundial/occ-atomic/commit/91dbc464acceec6b1c7c9d2dde28976d04a5bf30))
|
15
|
+
|
1
16
|
# [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
17
|
|
3
18
|
|
package/build/Button/styles.js
CHANGED
@@ -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/build/plugin/babel.js
CHANGED
@@ -37,6 +37,8 @@ function importModule(path) {
|
|
37
37
|
return importDeclaration(specifier, '@occmundial/occ-atomic/build/Toaster/functions');
|
38
38
|
} else if (importName === 'Nav' || importName === 'Menu') {
|
39
39
|
return importDeclaration(specifier, "@occmundial/occ-atomic/build/Header/".concat(importName));
|
40
|
+
} else if (importName === 'AtomicProvider') {
|
41
|
+
return importDeclaration(specifier, '@occmundial/occ-atomic/build/Provider');
|
40
42
|
} else if (subatomic.includes(importName)) {
|
41
43
|
return importDeclaration(types.importDefaultSpecifier(types.identifier(importName)), "@occmundial/occ-atomic/build/subatomic/".concat(importName));
|
42
44
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@occmundial/occ-atomic",
|
3
|
-
"version": "2.0.0-beta.
|
3
|
+
"version": "2.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",
|