@stylexjs/stylex 0.1.0-beta.6 → 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.
Files changed (2) hide show
  1. package/lib/stylex.js +0 -16
  2. 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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stylexjs/stylex",
3
- "version": "0.1.0-beta.6",
3
+ "version": "0.1.0-beta.7",
4
4
  "description": "A minimal runtime styling library for web.",
5
5
  "main": "lib/stylex.js",
6
6
  "types": "lib/stylex.d.ts",