Comparing version 1.0.0-wood-2 to 1.0.0-wood-3
{ | ||
"name": "alga-css", | ||
"version": "1.0.0-wood-2", | ||
"version": "1.0.0-wood-3", | ||
"description": "Alga CSS is a scope-first CSS toolkit for quickly mix or compose CSS references and share CSS properties between components", | ||
"main": "src/index.js", | ||
"unpkg": "dist/alga-v1.min.css", | ||
"scripts": { | ||
@@ -13,4 +12,3 @@ "test": "jest", | ||
"src", | ||
"alga", | ||
"dist" | ||
"alga" | ||
], | ||
@@ -17,0 +15,0 @@ "repository": { |
@@ -14,3 +14,16 @@ module.exports = { | ||
ml: 'marginLeft', | ||
bd: 'border' | ||
bd: 'border', | ||
bg: 'background', | ||
fg: 'color', | ||
ff: 'fontFamily', | ||
fs: 'fontSize', | ||
fw: 'fontWeight', | ||
fv: 'fontVariant', | ||
fw: 'fontWeight', | ||
fe: 'fontStretch', | ||
fi: 'fontStyle', | ||
lh: 'lineHeight', | ||
align: 'textAlign', | ||
justify: 'justifyContent', | ||
items: 'alignItems' | ||
} |
const camelDash = require('../helpers/camelDash.js') | ||
const values = require('../configs/values.js') | ||
module.exports = (value) => { | ||
let newValue = value.replaceAll('_', ' ') | ||
if(Object.keys(values).includes(newValue.trim())) { | ||
newValue = values[newValue.trim()] | ||
} | ||
newValue = camelDash(newValue) | ||
@@ -6,0 +10,0 @@ if(newValue.includes('pct')) { |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
679
0
53585
28