@startlibs/utils 1.0.0-alpha-7j → 1.0.0-alpha-7k
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/lib/index.js +9 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1433,9 +1433,16 @@ var styledExtend = function styledExtend(_ref8) {
|
|
|
1433
1433
|
var target = _ref8.target,
|
|
1434
1434
|
componentStyle = _ref8.componentStyle;
|
|
1435
1435
|
return function () {
|
|
1436
|
-
var
|
|
1436
|
+
var wasStatic = !_find__default['default'](_isFunction__default['default'], componentStyle.rules);
|
|
1437
|
+
|
|
1438
|
+
for (var _len8 = arguments.length, template = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
|
|
1439
|
+
template[_key8] = arguments[_key8];
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
var v = styled__default['default'](target).apply(void 0, template.concat(_toConsumableArray__default['default'](wasStatic ? [] : [function () {
|
|
1443
|
+
return "";
|
|
1444
|
+
}])));
|
|
1437
1445
|
v.componentStyle.rules = _toConsumableArray__default['default'](componentStyle.rules).concat(_toConsumableArray__default['default'](v.componentStyle.rules));
|
|
1438
|
-
v.componentStyle.isStatic = !_find__default['default'](_isFunction__default['default'], v.componentStyle.rules);
|
|
1439
1446
|
return v;
|
|
1440
1447
|
};
|
|
1441
1448
|
};
|