oolib 2.8.0 → 2.8.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.
@@ -3,6 +3,17 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
3
3
  if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
4
  return cooked;
5
5
  };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
6
17
  var __importDefault = (this && this.__importDefault) || function (mod) {
7
18
  return (mod && mod.__esModule) ? mod : { "default": mod };
8
19
  };
@@ -29,7 +40,8 @@ var setBorder = function (_a) {
29
40
  };
30
41
  var setFill = function (_a) {
31
42
  var props = _a.props;
32
- var colorsObj = props.theme.colors || colors_1.colors;
43
+ var colorsObj = props.theme.colors
44
+ ? __assign(__assign({}, colors_1.colors), props.theme.colors) : colors_1.colors;
33
45
  var colorKey = Object.keys(props).find(function (p) { return !!colorsObj[p]; });
34
46
  return colorKey ? "background-color: ".concat(colorsObj[colorKey], ";") : '';
35
47
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",