@stylexjs/stylex
Advanced tools
Comparing version 0.1.0-beta.6 to 0.1.0-beta.7
@@ -66,18 +66,2 @@ /** | ||
} | ||
// Style conditions, e.g., ':hover', '@media', etc. | ||
// TODO: remove if #98 is fixed | ||
else if (typeof value === 'object') { | ||
const condition = prop; | ||
const nestedStyleObject = value; | ||
for (const conditionalProp in nestedStyleObject) { | ||
const conditionalValue = nestedStyleObject[conditionalProp]; | ||
const conditionalProperty = condition + conditionalProp; | ||
// Skip if conditional property has already been seen | ||
if (!definedProperties.includes(conditionalProperty)) { | ||
definedProperties.push(conditionalProperty); | ||
definedPropertiesChunk.push(conditionalProperty); | ||
classNameChunk += classNameChunk ? ' ' + conditionalValue : conditionalValue; | ||
} | ||
} | ||
} | ||
} | ||
@@ -84,0 +68,0 @@ // Cache: write |
{ | ||
"name": "@stylexjs/stylex", | ||
"version": "0.1.0-beta.6", | ||
"version": "0.1.0-beta.7", | ||
"description": "A minimal runtime styling library for web.", | ||
@@ -5,0 +5,0 @@ "main": "lib/stylex.js", |
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
15576
461