@pandacss/generator 0.36.0 → 0.36.1

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
@@ -3971,7 +3971,7 @@ function generateThemes(ctx) {
3971
3971
  if (!themes)
3972
3972
  return;
3973
3973
  const { tokens, conditions } = ctx;
3974
- return Object.entries(themes).map(([name, themeVariant]) => {
3974
+ return Object.entries(themes).map(([name, _themeVariant]) => {
3975
3975
  const results = [];
3976
3976
  const condName = ctx.conditions.getThemeName(name);
3977
3977
  for (const [key, values] of tokens.view.vars.entries()) {
@@ -3988,7 +3988,6 @@ function generateThemes(ctx) {
3988
3988
  (0, import_shared5.compact)({
3989
3989
  name,
3990
3990
  id: getThemeId(name),
3991
- dataAttr: themeVariant.attribute || name,
3992
3991
  css: results.join("\n\n")
3993
3992
  }),
3994
3993
  null,
@@ -4025,7 +4024,7 @@ function generateThemesIndex(ctx, files) {
4025
4024
  throw new Error('No head found in doc')
4026
4025
  }
4027
4026
 
4028
- el.dataset.pandaTheme = theme.dataAttr
4027
+ el.dataset.pandaTheme = theme.name
4029
4028
 
4030
4029
  head.appendChild(sheet)
4031
4030
  sheet.innerHTML = theme.css
@@ -4046,7 +4045,6 @@ function generateThemesIndex(ctx, files) {
4046
4045
  return `'${f.name}': {
4047
4046
  id: string,
4048
4047
  name: '${f.name}',
4049
- dataAttr: '${theme.attribute || f.name}',
4050
4048
  css: string
4051
4049
  }`;
4052
4050
  }).join("\n")}
package/dist/index.mjs CHANGED
@@ -3935,7 +3935,7 @@ function generateThemes(ctx) {
3935
3935
  if (!themes)
3936
3936
  return;
3937
3937
  const { tokens, conditions } = ctx;
3938
- return Object.entries(themes).map(([name, themeVariant]) => {
3938
+ return Object.entries(themes).map(([name, _themeVariant]) => {
3939
3939
  const results = [];
3940
3940
  const condName = ctx.conditions.getThemeName(name);
3941
3941
  for (const [key, values] of tokens.view.vars.entries()) {
@@ -3952,7 +3952,6 @@ function generateThemes(ctx) {
3952
3952
  compact2({
3953
3953
  name,
3954
3954
  id: getThemeId(name),
3955
- dataAttr: themeVariant.attribute || name,
3956
3955
  css: results.join("\n\n")
3957
3956
  }),
3958
3957
  null,
@@ -3989,7 +3988,7 @@ function generateThemesIndex(ctx, files) {
3989
3988
  throw new Error('No head found in doc')
3990
3989
  }
3991
3990
 
3992
- el.dataset.pandaTheme = theme.dataAttr
3991
+ el.dataset.pandaTheme = theme.name
3993
3992
 
3994
3993
  head.appendChild(sheet)
3995
3994
  sheet.innerHTML = theme.css
@@ -4010,7 +4009,6 @@ function generateThemesIndex(ctx, files) {
4010
4009
  return `'${f.name}': {
4011
4010
  id: string,
4012
4011
  name: '${f.name}',
4013
- dataAttr: '${theme.attribute || f.name}',
4014
4012
  css: string
4015
4013
  }`;
4016
4014
  }).join("\n")}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.36.0",
3
+ "version": "0.36.1",
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.36.0",
41
- "@pandacss/is-valid-prop": "^0.36.0",
42
- "@pandacss/logger": "0.36.0",
43
- "@pandacss/shared": "0.36.0",
44
- "@pandacss/token-dictionary": "0.36.0",
45
- "@pandacss/types": "0.36.0"
40
+ "@pandacss/core": "0.36.1",
41
+ "@pandacss/is-valid-prop": "^0.36.1",
42
+ "@pandacss/logger": "0.36.1",
43
+ "@pandacss/shared": "0.36.1",
44
+ "@pandacss/token-dictionary": "0.36.1",
45
+ "@pandacss/types": "0.36.1"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/pluralize": "0.0.33"