@pandacss/extractor
Advanced tools
Comparing version 0.31.0 to 0.32.0
@@ -66,2 +66,3 @@ "use strict"; | ||
var isNullish = (element) => element == null; | ||
var isTruthyOrZero = (element) => !!element || element === 0; | ||
var isObject = (value) => value != null && typeof value === "object"; | ||
@@ -1571,6 +1572,6 @@ var isArray = (value) => Array.isArray(value); | ||
} | ||
if (whenTrue) { | ||
if (isTruthyOrZero(whenTrue)) { | ||
ctx.conditions.push(makeObjAt(path, whenTrue)); | ||
} | ||
if (whenFalse) { | ||
if (isTruthyOrZero(whenFalse)) { | ||
ctx.conditions.push(makeObjAt(path, whenFalse)); | ||
@@ -1577,0 +1578,0 @@ } |
{ | ||
"name": "@pandacss/extractor", | ||
"version": "0.31.0", | ||
"version": "0.32.0", | ||
"description": "The css extractor for css panda", | ||
@@ -35,5 +35,5 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"ts-evaluator": "^1.1.0", | ||
"ts-morph": "19.0.0", | ||
"@pandacss/shared": "0.31.0" | ||
"ts-evaluator": "1.2.0", | ||
"ts-morph": "21.0.1", | ||
"@pandacss/shared": "0.32.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
145604
3522
+ Added@pandacss/shared@0.32.0(transitive)
+ Added@ts-morph/common@0.22.0(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedmkdirp@3.0.1(transitive)
+ Addedts-morph@21.0.1(transitive)
- Removed@pandacss/shared@0.31.0(transitive)
- Removed@ts-morph/common@0.20.0(transitive)
- Removedminimatch@7.4.6(transitive)
- Removedmkdirp@2.1.6(transitive)
- Removedts-morph@19.0.0(transitive)
Updated@pandacss/shared@0.32.0
Updatedts-evaluator@1.2.0
Updatedts-morph@21.0.1