revdev-components 0.176.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.
- package/build/attributor/index.d.ts +1 -1
- package/build/index.js +9 -2
- package/build/styles.css +1 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -5677,8 +5677,15 @@ var s$2 = {"root":"index-module_root__UuWET","link":"index-module_link__qD-Ss"};
|
|
|
5677
5677
|
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
|
-
var icon = _a.icon,
|
|
5681
|
-
|
|
5680
|
+
var icon = _a.icon, content = _a.content, href = _a.href;
|
|
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/build/styles.css
CHANGED