revdev-components 0.177.0 → 0.178.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.
Files changed (2) hide show
  1. package/build/index.js +8 -1
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -5678,7 +5678,14 @@ var AlfaAttributor = function (_a) {
5678
5678
  var className = _a.className, options = _a.options;
5679
5679
  return options.length ? (React.createElement("div", { className: classNames(s$2.root, className) }, options.map(function (_a, i) {
5680
5680
  var icon = _a.icon, content = _a.content, href = _a.href;
5681
- return (React.createElement(IconDivision, { key: href || i, icon: icon }, href ? (React.createElement(AppLink, { className: s$2.link, href: href }, content)) : (content)));
5681
+ var result = content;
5682
+ if (typeof href === "string") {
5683
+ result = (React.createElement(AppLink, { className: s$2.link, href: href }, content));
5684
+ }
5685
+ if (typeof icon === "string") {
5686
+ result = (React.createElement(IconDivision, { key: href || i, icon: icon }, result));
5687
+ }
5688
+ return React.createElement(React.Fragment, { key: href || i }, result);
5682
5689
  }))) : null;
5683
5690
  };
5684
5691
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.177.0",
3
+ "version": "0.178.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {