@equinor/fusion-web-theme
Advanced tools
Comparing version
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.1.2](https://github.com/equinor/fusion-web/compare/@equinor/fusion-web-theme@0.1.1...@equinor/fusion-web-theme@0.1.2) (2021-06-02) | ||
**Note:** Version bump only for package @equinor/fusion-web-theme | ||
## [0.1.1](https://github.com/equinor/fusion-web/compare/@equinor/fusion-web-theme@0.1.0...@equinor/fusion-web-theme@0.1.1) (2021-05-11) | ||
@@ -8,0 +16,0 @@ |
@@ -23,7 +23,13 @@ const camel2kebab = (x) => x.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase(); | ||
const { value, attributes } = this; | ||
return Object.assign(Object.assign({}, value), Object.keys(attributes).reduce((cur, key) => Object.assign(cur, { [key]: StyleProperty.makeVariable(attributes[key]) }), {})); | ||
return { | ||
...value, | ||
...Object.keys(attributes).reduce((cur, key) => Object.assign(cur, { [key]: StyleProperty.makeVariable(attributes[key]) }), {}), | ||
}; | ||
} | ||
get css() { | ||
const { attributes, style } = this; | ||
return StyleProperty.makeCss(Object.assign(Object.assign({}, style), Object.keys(attributes).reduce((cur, key) => Object.assign(cur, { [key]: StyleProperty.makeVariable(attributes[key]) }), {}))); | ||
return StyleProperty.makeCss({ | ||
...style, | ||
...Object.keys(attributes).reduce((cur, key) => Object.assign(cur, { [key]: StyleProperty.makeVariable(attributes[key]) }), {}), | ||
}); | ||
} | ||
@@ -30,0 +36,0 @@ get variables() { |
{ | ||
"name": "@equinor/fusion-web-theme", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "fusion web theme", | ||
@@ -44,3 +44,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "08c867578643c79e9f7ddc94f2f355899ffe2439" | ||
"gitHead": "8faa76054732e7cded45f8b4b6a87aeed1c90b71" | ||
} |
Sorry, the diff of this file is not supported yet
31289
0.85%353
1.73%