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