@gisce/react-ooui 1.1.29 → 1.1.31-rc.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/dist/react-ooui.es.js
CHANGED
|
@@ -539,19 +539,20 @@ function toCamelCase(e) {
|
|
|
539
539
|
).join("")}`;
|
|
540
540
|
}
|
|
541
541
|
function getIconForKey(e) {
|
|
542
|
-
e.
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
542
|
+
let t = e.charAt(0).toUpperCase() + e.slice(1);
|
|
543
|
+
t.indexOf("-") !== -1 && (t = toCamelCase(t));
|
|
544
|
+
const r = `${t}Outlined`;
|
|
545
|
+
if (AntIcons[r])
|
|
546
|
+
return AntIcons[r];
|
|
547
|
+
const n = `Icon${t}`;
|
|
548
|
+
if (TablerIcons[n]) {
|
|
549
|
+
const a = () => React__default.createElement(TablerIcons[n], {
|
|
549
550
|
fill: "transparent",
|
|
550
551
|
height: 17,
|
|
551
552
|
width: 17
|
|
552
553
|
});
|
|
553
554
|
return () => React__default.createElement(AntIcons__default, {
|
|
554
|
-
component:
|
|
555
|
+
component: a
|
|
555
556
|
});
|
|
556
557
|
}
|
|
557
558
|
}
|