@nozbe/zacs
Advanced tools
Comparing version 2.0.0-7 to 2.0.0-8
{ | ||
"name": "@nozbe/zacs", | ||
"version": "2.0.0-7", | ||
"version": "2.0.0-8", | ||
"description": "Zero Abstraction Cost Styling (for React DOM and React Native)", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -24,8 +24,12 @@ const { getTarget } = require('./state') | ||
} | ||
case 'border': { | ||
case 'border': | ||
case 'borderTop': | ||
case 'borderRight': | ||
case 'borderBottom': | ||
case 'borderLeft': { | ||
const [width, style, color] = node.elements | ||
return { | ||
borderWidth: width, | ||
borderStyle: style, | ||
borderColor: color, | ||
[`${key}Width`]: width, | ||
[`${key}Style`]: style, | ||
[`${key}Color`]: color, | ||
} | ||
@@ -32,0 +36,0 @@ } |
@@ -39,2 +39,6 @@ function isNumberLiteral(t, node) { | ||
case 'border': | ||
case 'borderTop': | ||
case 'borderRight': | ||
case 'borderBottom': | ||
case 'borderLeft': | ||
return length === 3 | ||
@@ -41,0 +45,0 @@ default: |
@@ -9,2 +9,6 @@ // @flow | ||
border?: number | string | [size, string, string], | ||
borderTop?: number | string | [size, string, string], | ||
borderRight?: number | string | [size, string, string], | ||
borderBottom?: number | string | [size, string, string], | ||
borderLeft?: number | string | [size, string, string], | ||
}> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
128806
3455