@startlibs/utils 1.0.0-alpha-7j → 1.0.0-alpha-7l

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.
Files changed (2) hide show
  1. package/lib/index.js +10 -3
  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 v = styled__default['default'](target).apply(void 0, arguments);
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
  };
@@ -2116,7 +2123,7 @@ var blockDiffIntervals = function blockDiffIntervals(a, b) {
2116
2123
  return intervalsIntersect(a, b) ? [] : [a];
2117
2124
  };
2118
2125
  var startBlockDiffIntervals = function startBlockDiffIntervals(a, b) {
2119
- return intervalsIntersect(a, b) && a[0] < b[0] ? [] : [a];
2126
+ return intervalsIntersect(a, b) && a[0] > b[0] ? [] : [a];
2120
2127
  };
2121
2128
 
2122
2129
  var formatJoin = function formatJoin(arr) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startlibs/utils",
3
- "version": "1.0.0-alpha-7j",
3
+ "version": "1.0.0-alpha-7l",
4
4
  "description": "Startlibs Utils",
5
5
  "main": "lib/index.js",
6
6
  "sideEffects": false,