@abidibo/react-cam-roi 0.14.0 → 0.14.1

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/index.esm.js CHANGED
@@ -98,7 +98,15 @@ var log = function (level, enable) {
98
98
  return enable && console[level].apply(console, args);
99
99
  };
100
100
  var css = function (name, styles, themeMode) {
101
- return "".concat(styles[name], " ").concat(styles["".concat(name, "-").concat(themeMode)], " react-cam-roi-").concat(name).concat(themeMode ? "react-cam-roi-".concat(name, "-").concat(themeMode) : '');
101
+ var parts = [];
102
+ if (styles[name])
103
+ parts.push(styles[name]);
104
+ if (styles["".concat(name, "-").concat(themeMode)])
105
+ parts.push(styles["".concat(name, "-").concat(themeMode)]);
106
+ parts.push("react-cam-roi-".concat(name));
107
+ if (themeMode)
108
+ parts.push("react-cam-roi-".concat(name, "-").concat(themeMode));
109
+ return parts.join(' ');
102
110
  };
103
111
  var humanize = function (str) {
104
112
  return str