@stylexjs/stylex 0.1.0-beta.5 → 0.1.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/stylex.js +0 -16
- package/package.json +1 -1
package/lib/stylex.js
CHANGED
|
@@ -63,22 +63,6 @@ function stylex() {
|
|
|
63
63
|
classNameChunk += classNameChunk ? ' ' + value : value;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
// Style conditions, e.g., ':hover', '@media', etc.
|
|
67
|
-
// TODO: remove if #98 is fixed
|
|
68
|
-
else if (typeof value === 'object') {
|
|
69
|
-
const condition = prop;
|
|
70
|
-
const nestedStyleObject = value;
|
|
71
|
-
for (const conditionalProp in nestedStyleObject) {
|
|
72
|
-
const conditionalValue = nestedStyleObject[conditionalProp];
|
|
73
|
-
const conditionalProperty = condition + conditionalProp;
|
|
74
|
-
// Skip if conditional property has already been seen
|
|
75
|
-
if (!definedProperties.includes(conditionalProperty)) {
|
|
76
|
-
definedProperties.push(conditionalProperty);
|
|
77
|
-
definedPropertiesChunk.push(conditionalProperty);
|
|
78
|
-
classNameChunk += classNameChunk ? ' ' + conditionalValue : conditionalValue;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
66
|
}
|
|
83
67
|
// Cache: write
|
|
84
68
|
if (nextCache != null) {
|