@pandacss/generator 0.0.0-dev-20230705181803 → 0.0.0-dev-20230706113853

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
@@ -412,7 +412,15 @@ var generateStaticCss = (ctx) => {
412
412
  const fn = (0, import_core2.getStaticCss)(staticCss);
413
413
  const results = fn({
414
414
  breakpoints: Object.keys(theme.breakpoints ?? {}),
415
- getPropertyKeys: (prop) => utility.getPropertyKeys(prop).filter((key) => !key.startsWith("type:") && !key.startsWith("CssProperties:")),
415
+ getPropertyKeys: (prop) => {
416
+ const propConfig = utility.config[prop];
417
+ if (!propConfig)
418
+ return [];
419
+ const values = utility.getPropertyValues(propConfig);
420
+ if (!values)
421
+ return [];
422
+ return Object.keys(values);
423
+ },
416
424
  getRecipeKeys: (recipe) => recipes.details.find((detail) => detail.config.name === recipe)?.variantKeyMap ?? {}
417
425
  });
418
426
  results.css.forEach((css2) => {
package/dist/index.mjs CHANGED
@@ -381,7 +381,15 @@ var generateStaticCss = (ctx) => {
381
381
  const fn = getStaticCss(staticCss);
382
382
  const results = fn({
383
383
  breakpoints: Object.keys(theme.breakpoints ?? {}),
384
- getPropertyKeys: (prop) => utility.getPropertyKeys(prop).filter((key) => !key.startsWith("type:") && !key.startsWith("CssProperties:")),
384
+ getPropertyKeys: (prop) => {
385
+ const propConfig = utility.config[prop];
386
+ if (!propConfig)
387
+ return [];
388
+ const values = utility.getPropertyValues(propConfig);
389
+ if (!values)
390
+ return [];
391
+ return Object.keys(values);
392
+ },
385
393
  getRecipeKeys: (recipe) => recipes.details.find((detail) => detail.config.name === recipe)?.variantKeyMap ?? {}
386
394
  });
387
395
  results.css.forEach((css2) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.0.0-dev-20230705181803",
3
+ "version": "0.0.0-dev-20230706113853",
4
4
  "description": "The css generator for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20,17 +20,17 @@
20
20
  "pluralize": "8.0.0",
21
21
  "postcss": "8.4.24",
22
22
  "ts-pattern": "4.3.0",
23
- "@pandacss/core": "0.0.0-dev-20230705181803",
24
- "@pandacss/is-valid-prop": "0.0.0-dev-20230705181803",
25
- "@pandacss/logger": "0.0.0-dev-20230705181803",
26
- "@pandacss/shared": "0.0.0-dev-20230705181803",
27
- "@pandacss/token-dictionary": "0.0.0-dev-20230705181803",
28
- "@pandacss/types": "0.0.0-dev-20230705181803"
23
+ "@pandacss/core": "0.0.0-dev-20230706113853",
24
+ "@pandacss/is-valid-prop": "0.0.0-dev-20230706113853",
25
+ "@pandacss/logger": "0.0.0-dev-20230706113853",
26
+ "@pandacss/shared": "0.0.0-dev-20230706113853",
27
+ "@pandacss/token-dictionary": "0.0.0-dev-20230706113853",
28
+ "@pandacss/types": "0.0.0-dev-20230706113853"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/pluralize": "0.0.29",
32
32
  "hookable": "5.5.3",
33
- "@pandacss/fixture": "0.0.0-dev-20230705181803"
33
+ "@pandacss/fixture": "0.0.0-dev-20230706113853"
34
34
  },
35
35
  "scripts": {
36
36
  "prebuild": "tsx scripts/prebuild.ts",