@aesthetic/sss
Advanced tools
Comparing version 0.0.5 to 0.0.6
import { objectLoop, hyphenate, isObject, toArray, arrayLoop } from '@aesthetic/utils'; | ||
function _defineProperty(obj, key, value) { | ||
if (key in obj) { | ||
Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
return obj; | ||
} | ||
function _extends() { | ||
@@ -44,10 +29,6 @@ _extends = Object.assign || function (target) { | ||
function Block(selector) { | ||
_defineProperty(this, "nested", {}); | ||
_defineProperty(this, "properties", {}); | ||
_defineProperty(this, "selector", void 0); | ||
_defineProperty(this, "variables", {}); | ||
this.nested = {}; | ||
this.properties = {}; | ||
this.selector = void 0; | ||
this.variables = {}; | ||
this.selector = selector; | ||
@@ -370,9 +351,8 @@ } | ||
_defineProperty(this, "handlers", {}); | ||
_defineProperty(this, "options", { | ||
this.handlers = {}; | ||
this.options = { | ||
unit: 'px' | ||
}); | ||
}; | ||
_defineProperty(this, "parseFontFace", function (fontFamily, object) { | ||
this.parseFontFace = function (fontFamily, object) { | ||
var name = object.fontFamily || fontFamily; | ||
@@ -395,5 +375,5 @@ | ||
return name; | ||
}); | ||
}; | ||
_defineProperty(this, "parseKeyframes", function (object, animationName) { | ||
this.parseKeyframes = function (object, animationName) { | ||
var keyframes = new Block("@keyframes"); | ||
@@ -409,5 +389,5 @@ | ||
return _this.emit('keyframes', keyframes, animationName) || animationName; | ||
}); | ||
}; | ||
_defineProperty(this, "wrapValueWithUnit", function (property, value) { | ||
this.wrapValueWithUnit = function (property, value) { | ||
if (value === undefined) { | ||
@@ -426,3 +406,3 @@ return ''; | ||
return value + _this.options.unit; | ||
}); | ||
}; | ||
@@ -429,0 +409,0 @@ if (handlers) { |
@@ -7,17 +7,2 @@ 'use strict'; | ||
function _defineProperty(obj, key, value) { | ||
if (key in obj) { | ||
Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
return obj; | ||
} | ||
function _extends() { | ||
@@ -49,10 +34,6 @@ _extends = Object.assign || function (target) { | ||
function Block(selector) { | ||
_defineProperty(this, "nested", {}); | ||
_defineProperty(this, "properties", {}); | ||
_defineProperty(this, "selector", void 0); | ||
_defineProperty(this, "variables", {}); | ||
this.nested = {}; | ||
this.properties = {}; | ||
this.selector = void 0; | ||
this.variables = {}; | ||
this.selector = selector; | ||
@@ -375,9 +356,8 @@ } | ||
_defineProperty(this, "handlers", {}); | ||
_defineProperty(this, "options", { | ||
this.handlers = {}; | ||
this.options = { | ||
unit: 'px' | ||
}); | ||
}; | ||
_defineProperty(this, "parseFontFace", function (fontFamily, object) { | ||
this.parseFontFace = function (fontFamily, object) { | ||
var name = object.fontFamily || fontFamily; | ||
@@ -400,5 +380,5 @@ | ||
return name; | ||
}); | ||
}; | ||
_defineProperty(this, "parseKeyframes", function (object, animationName) { | ||
this.parseKeyframes = function (object, animationName) { | ||
var keyframes = new Block("@keyframes"); | ||
@@ -414,5 +394,5 @@ | ||
return _this.emit('keyframes', keyframes, animationName) || animationName; | ||
}); | ||
}; | ||
_defineProperty(this, "wrapValueWithUnit", function (property, value) { | ||
this.wrapValueWithUnit = function (property, value) { | ||
if (value === undefined) { | ||
@@ -431,3 +411,3 @@ return ''; | ||
return value + _this.options.unit; | ||
}); | ||
}; | ||
@@ -434,0 +414,0 @@ if (handlers) { |
{ | ||
"name": "@aesthetic/sss", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "A strict, type-safe, and structure-safe component style sheet format.", | ||
@@ -28,6 +28,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@aesthetic/utils": "^0.0.3", | ||
"csstype": "^2.6.9" | ||
"@aesthetic/utils": "^0.0.4", | ||
"csstype": "^2.6.10" | ||
}, | ||
"gitHead": "505088db575561a047e038760ba665b30eefb4ba" | ||
"gitHead": "a393b3217528ac5abddaf812927aebb5d14de426" | ||
} |
Sorry, the diff of this file is not supported yet
89301
1696
+ Added@aesthetic/utils@0.0.4(transitive)
- Removed@aesthetic/utils@0.0.3(transitive)
Updated@aesthetic/utils@^0.0.4
Updatedcsstype@^2.6.10