@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.
@@ -539,19 +539,20 @@ function toCamelCase(e) {
539
539
  ).join("")}`;
540
540
  }
541
541
  function getIconForKey(e) {
542
- e.indexOf("-") !== -1 && (e = toCamelCase(e));
543
- const t = `${e}Outlined`;
544
- if (AntIcons[t])
545
- return AntIcons[t];
546
- const r = `Icon${e}`;
547
- if (TablerIcons[r]) {
548
- const n = () => React__default.createElement(TablerIcons[r], {
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: n
555
+ component: a
555
556
  });
556
557
  }
557
558
  }