@pandacss/generator 0.53.5 → 0.53.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/dist/index.js CHANGED
@@ -3682,8 +3682,7 @@ function generateStyleProps(ctx) {
3682
3682
  type CssVars = ${[cssVars || "`var(--${string})`"].filter(Boolean).join(" | ")}
3683
3683
  type CssVarValue = ConditionalValue<Token${ctx.globalVars.isEmpty() ? "" : " | CssVars"} | AnyString | (number & {})>
3684
3684
 
3685
- type CssVarName = ${(0, import_shared3.unionType)(ctx.globalVars.names)} | AnyString
3686
- type CssVarKeys = \`--\${CssVarName}\`
3685
+ type CssVarKeys = ${[...ctx.globalVars.names.map((name) => `"--${name}"`), "`--${string}` & {}"].filter(Boolean).join(" | ")}
3687
3686
 
3688
3687
  export type CssVarProperties = {
3689
3688
  [key in CssVarKeys]?: CssVarValue
@@ -3869,7 +3868,7 @@ function generateTokenCss(ctx, sheet) {
3869
3868
  const themeConds = themeVariants.map((key) => conditions.getThemeName(key));
3870
3869
  const themePrefix = ctx.conditions.getThemeName("");
3871
3870
  for (const [key, values] of tokens.view.vars.entries()) {
3872
- const isThemeSkipped = key.startsWith(themePrefix) && !themeConds.some((condName) => key.startsWith(condName));
3871
+ const isThemeSkipped = key.startsWith(themePrefix) && !themeConds.some((condName) => key === condName || key.startsWith(condName + ":"));
3873
3872
  if (isThemeSkipped) {
3874
3873
  continue;
3875
3874
  }
package/dist/index.mjs CHANGED
@@ -3646,8 +3646,7 @@ function generateStyleProps(ctx) {
3646
3646
  type CssVars = ${[cssVars || "`var(--${string})`"].filter(Boolean).join(" | ")}
3647
3647
  type CssVarValue = ConditionalValue<Token${ctx.globalVars.isEmpty() ? "" : " | CssVars"} | AnyString | (number & {})>
3648
3648
 
3649
- type CssVarName = ${unionType3(ctx.globalVars.names)} | AnyString
3650
- type CssVarKeys = \`--\${CssVarName}\`
3649
+ type CssVarKeys = ${[...ctx.globalVars.names.map((name) => `"--${name}"`), "`--${string}` & {}"].filter(Boolean).join(" | ")}
3651
3650
 
3652
3651
  export type CssVarProperties = {
3653
3652
  [key in CssVarKeys]?: CssVarValue
@@ -3833,7 +3832,7 @@ function generateTokenCss(ctx, sheet) {
3833
3832
  const themeConds = themeVariants.map((key) => conditions.getThemeName(key));
3834
3833
  const themePrefix = ctx.conditions.getThemeName("");
3835
3834
  for (const [key, values] of tokens.view.vars.entries()) {
3836
- const isThemeSkipped = key.startsWith(themePrefix) && !themeConds.some((condName) => key.startsWith(condName));
3835
+ const isThemeSkipped = key.startsWith(themePrefix) && !themeConds.some((condName) => key === condName || key.startsWith(condName + ":"));
3837
3836
  if (isThemeSkipped) {
3838
3837
  continue;
3839
3838
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.53.5",
3
+ "version": "0.53.7",
4
4
  "description": "The css generator for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -37,12 +37,12 @@
37
37
  "pluralize": "8.0.0",
38
38
  "postcss": "8.4.49",
39
39
  "ts-pattern": "5.0.8",
40
- "@pandacss/core": "0.53.5",
41
- "@pandacss/is-valid-prop": "^0.53.5",
42
- "@pandacss/logger": "0.53.5",
43
- "@pandacss/shared": "0.53.5",
44
- "@pandacss/token-dictionary": "0.53.5",
45
- "@pandacss/types": "0.53.5"
40
+ "@pandacss/core": "0.53.7",
41
+ "@pandacss/is-valid-prop": "^0.53.7",
42
+ "@pandacss/logger": "0.53.7",
43
+ "@pandacss/shared": "0.53.7",
44
+ "@pandacss/token-dictionary": "0.53.7",
45
+ "@pandacss/types": "0.53.7"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/pluralize": "0.0.33"