@pandacss/generator 0.0.0-dev-20240320175200 → 0.0.0-dev-20240326210434

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
@@ -3696,7 +3696,9 @@ function generateStyleProps(ctx) {
3696
3696
  if (strictPropertyList.has(key)) {
3697
3697
  union.push([utilityValue, "CssVars"].join(" | "));
3698
3698
  } else {
3699
- union.push([utilityValue, ctx.config.strictTokens ? "" : cssFallback].filter(Boolean).join(" | "));
3699
+ union.push(
3700
+ [utilityValue, "CssVars", ctx.config.strictTokens ? "" : cssFallback].filter(Boolean).join(" | ")
3701
+ );
3700
3702
  }
3701
3703
  } else {
3702
3704
  union.push([strictPropertyList.has(key) ? "CssVars" : "", cssFallback].filter(Boolean).join(" | "));
@@ -3971,7 +3973,7 @@ function generateThemes(ctx) {
3971
3973
  if (!themes)
3972
3974
  return;
3973
3975
  const { tokens, conditions } = ctx;
3974
- return Object.entries(themes).map(([name, themeVariant]) => {
3976
+ return Object.entries(themes).map(([name, _themeVariant]) => {
3975
3977
  const results = [];
3976
3978
  const condName = ctx.conditions.getThemeName(name);
3977
3979
  for (const [key, values] of tokens.view.vars.entries()) {
@@ -3988,7 +3990,6 @@ function generateThemes(ctx) {
3988
3990
  (0, import_shared5.compact)({
3989
3991
  name,
3990
3992
  id: getThemeId(name),
3991
- dataAttr: themeVariant.attribute || name,
3992
3993
  css: results.join("\n\n")
3993
3994
  }),
3994
3995
  null,
@@ -4025,7 +4026,7 @@ function generateThemesIndex(ctx, files) {
4025
4026
  throw new Error('No head found in doc')
4026
4027
  }
4027
4028
 
4028
- el.dataset.pandaTheme = theme.dataAttr
4029
+ el.dataset.pandaTheme = theme.name
4029
4030
 
4030
4031
  head.appendChild(sheet)
4031
4032
  sheet.innerHTML = theme.css
@@ -4046,7 +4047,6 @@ function generateThemesIndex(ctx, files) {
4046
4047
  return `'${f.name}': {
4047
4048
  id: string,
4048
4049
  name: '${f.name}',
4049
- dataAttr: '${theme.attribute || f.name}',
4050
4050
  css: string
4051
4051
  }`;
4052
4052
  }).join("\n")}
package/dist/index.mjs CHANGED
@@ -3660,7 +3660,9 @@ function generateStyleProps(ctx) {
3660
3660
  if (strictPropertyList.has(key)) {
3661
3661
  union.push([utilityValue, "CssVars"].join(" | "));
3662
3662
  } else {
3663
- union.push([utilityValue, ctx.config.strictTokens ? "" : cssFallback].filter(Boolean).join(" | "));
3663
+ union.push(
3664
+ [utilityValue, "CssVars", ctx.config.strictTokens ? "" : cssFallback].filter(Boolean).join(" | ")
3665
+ );
3664
3666
  }
3665
3667
  } else {
3666
3668
  union.push([strictPropertyList.has(key) ? "CssVars" : "", cssFallback].filter(Boolean).join(" | "));
@@ -3935,7 +3937,7 @@ function generateThemes(ctx) {
3935
3937
  if (!themes)
3936
3938
  return;
3937
3939
  const { tokens, conditions } = ctx;
3938
- return Object.entries(themes).map(([name, themeVariant]) => {
3940
+ return Object.entries(themes).map(([name, _themeVariant]) => {
3939
3941
  const results = [];
3940
3942
  const condName = ctx.conditions.getThemeName(name);
3941
3943
  for (const [key, values] of tokens.view.vars.entries()) {
@@ -3952,7 +3954,6 @@ function generateThemes(ctx) {
3952
3954
  compact2({
3953
3955
  name,
3954
3956
  id: getThemeId(name),
3955
- dataAttr: themeVariant.attribute || name,
3956
3957
  css: results.join("\n\n")
3957
3958
  }),
3958
3959
  null,
@@ -3989,7 +3990,7 @@ function generateThemesIndex(ctx, files) {
3989
3990
  throw new Error('No head found in doc')
3990
3991
  }
3991
3992
 
3992
- el.dataset.pandaTheme = theme.dataAttr
3993
+ el.dataset.pandaTheme = theme.name
3993
3994
 
3994
3995
  head.appendChild(sheet)
3995
3996
  sheet.innerHTML = theme.css
@@ -4010,7 +4011,6 @@ function generateThemesIndex(ctx, files) {
4010
4011
  return `'${f.name}': {
4011
4012
  id: string,
4012
4013
  name: '${f.name}',
4013
- dataAttr: '${theme.attribute || f.name}',
4014
4014
  css: string
4015
4015
  }`;
4016
4016
  }).join("\n")}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.0.0-dev-20240320175200",
3
+ "version": "0.0.0-dev-20240326210434",
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.35",
39
39
  "ts-pattern": "5.0.8",
40
- "@pandacss/core": "0.0.0-dev-20240320175200",
41
- "@pandacss/is-valid-prop": "^0.0.0-dev-20240320175200",
42
- "@pandacss/logger": "0.0.0-dev-20240320175200",
43
- "@pandacss/shared": "0.0.0-dev-20240320175200",
44
- "@pandacss/token-dictionary": "0.0.0-dev-20240320175200",
45
- "@pandacss/types": "0.0.0-dev-20240320175200"
40
+ "@pandacss/core": "0.0.0-dev-20240326210434",
41
+ "@pandacss/is-valid-prop": "^0.0.0-dev-20240326210434",
42
+ "@pandacss/logger": "0.0.0-dev-20240326210434",
43
+ "@pandacss/shared": "0.0.0-dev-20240326210434",
44
+ "@pandacss/token-dictionary": "0.0.0-dev-20240326210434",
45
+ "@pandacss/types": "0.0.0-dev-20240326210434"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/pluralize": "0.0.33"