Comparing version 1.0.0-wood-3 to 1.0.0-wood-4
{ | ||
"name": "alga-css", | ||
"version": "1.0.0-wood-3", | ||
"version": "1.0.0-wood-4", | ||
"description": "Alga CSS is a scope-first CSS toolkit for quickly mix or compose CSS references and share CSS properties between components", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -21,3 +21,2 @@ module.exports = { | ||
fv: 'fontVariant', | ||
fw: 'fontWeight', | ||
fe: 'fontStretch', | ||
@@ -27,4 +26,6 @@ fi: 'fontStyle', | ||
align: 'textAlign', | ||
decoration: 'textDecoration', | ||
rounded: 'borderRadius', | ||
justify: 'justifyContent', | ||
items: 'alignItems' | ||
} |
@@ -57,4 +57,4 @@ // Configs | ||
} | ||
} else if(condKey.includes(' includes ')) { | ||
const splitKey = condKey.trim().split(/\@if\s|\sincludes\s/g).filter(i => i !== '') | ||
} else if(condKey.includes(' has ')) { | ||
const splitKey = condKey.trim().split(/\@if\s|\shas\s/g).filter(i => i !== '') | ||
if(config.components[param]['props'] && splitKey[0].trim() in config.components[param]['props'] && config.components[param]['props'][splitKey[0].trim()].replaceAll(' ', '').split(',').filter(i => i !== '').includes(splitKey[1].trim())) { | ||
@@ -61,0 +61,0 @@ conditionDecls.push([ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
56023
29
680