@pandacss/generator 0.0.0-dev-20230924234651 → 0.0.0-dev-20230926130804

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
@@ -1163,7 +1163,9 @@ function generateRecipes(ctx) {
1163
1163
  [key in keyof ${upperName}Variant]: Array<${upperName}Variant[key]>
1164
1164
  }
1165
1165
 
1166
- export interface ${upperName}VariantProps extends Partial<${upperName}Variant> {}
1166
+ export type ${upperName}VariantProps = {
1167
+ [key in keyof ${upperName}Variant]?: ${compoundVariants?.length ? `${upperName}Variant[key]` : `ConditionalValue<${upperName}Variant[key]>`}
1168
+ }
1167
1169
 
1168
1170
  interface ${upperName}Recipe {
1169
1171
  __type: ${upperName}VariantProps
package/dist/index.mjs CHANGED
@@ -1132,7 +1132,9 @@ function generateRecipes(ctx) {
1132
1132
  [key in keyof ${upperName}Variant]: Array<${upperName}Variant[key]>
1133
1133
  }
1134
1134
 
1135
- export interface ${upperName}VariantProps extends Partial<${upperName}Variant> {}
1135
+ export type ${upperName}VariantProps = {
1136
+ [key in keyof ${upperName}Variant]?: ${compoundVariants?.length ? `${upperName}Variant[key]` : `ConditionalValue<${upperName}Variant[key]>`}
1137
+ }
1136
1138
 
1137
1139
  interface ${upperName}Recipe {
1138
1140
  __type: ${upperName}VariantProps
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.0.0-dev-20230924234651",
3
+ "version": "0.0.0-dev-20230926130804",
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.27",
22
22
  "ts-pattern": "5.0.5",
23
- "@pandacss/is-valid-prop": "0.0.0-dev-20230924234651",
24
- "@pandacss/core": "0.0.0-dev-20230924234651",
25
- "@pandacss/shared": "0.0.0-dev-20230924234651",
26
- "@pandacss/logger": "0.0.0-dev-20230924234651",
27
- "@pandacss/token-dictionary": "0.0.0-dev-20230924234651",
28
- "@pandacss/types": "0.0.0-dev-20230924234651"
23
+ "@pandacss/core": "0.0.0-dev-20230926130804",
24
+ "@pandacss/is-valid-prop": "0.0.0-dev-20230926130804",
25
+ "@pandacss/logger": "0.0.0-dev-20230926130804",
26
+ "@pandacss/shared": "0.0.0-dev-20230926130804",
27
+ "@pandacss/token-dictionary": "0.0.0-dev-20230926130804",
28
+ "@pandacss/types": "0.0.0-dev-20230926130804"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/pluralize": "0.0.30",
32
32
  "hookable": "5.5.3",
33
- "@pandacss/fixture": "0.0.0-dev-20230924234651"
33
+ "@pandacss/fixture": "0.0.0-dev-20230926130804"
34
34
  },
35
35
  "scripts": {
36
36
  "prebuild": "tsx scripts/prebuild.ts",