@gisce/react-ooui 1.1.28 → 1.1.29

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.
@@ -1 +1 @@
1
- {"version":3,"file":"iconMapper.d.ts","sourceRoot":"","sources":["iconMapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;8BAqGzB,MAAM;AAA3B,wBAYE"}
1
+ {"version":3,"file":"iconMapper.d.ts","sourceRoot":"","sources":["iconMapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;8BAqGzB,MAAM;AAA3B,wBAWE"}
@@ -529,13 +529,7 @@ const {
529
529
  STOCK_CLEAR: "CloseSquare",
530
530
  STOCK_UNINDENT: "AlignLeft",
531
531
  STOCK_PREFERENCES: "Setting"
532
- }, iconMapper = (e) => {
533
- if (e.indexOf("gtk-") !== -1) {
534
- const r = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`;
535
- return getIconForKey(iconMapping[r]);
536
- }
537
- return iconMapping.hasOwnProperty(e) ? getIconForKey(iconMapping[e]) : getIconForKey(e);
538
- };
532
+ }, iconMapper = (e) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), iconMapping.hasOwnProperty(e) ? getIconForKey(iconMapping[e]) : getIconForKey(e));
539
533
  function toCamelCase(e) {
540
534
  return `${e.split("-").map(
541
535
  (t) => t.replace(