@pandacss/generator 0.0.0-dev-20230905135910 → 0.0.0-dev-20230905150548

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
@@ -2966,9 +2966,12 @@ var generateTypesEntry = (ctx) => ({
2966
2966
  export function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>
2967
2967
  }
2968
2968
  `,
2969
+ // We need to export types used in the global.d.ts here to avoid TS errors such as `The inferred type of 'xxx' cannot be named without a reference to 'yyy'`
2969
2970
  index: import_outdent39.outdent`
2970
2971
  import '${ctx.file.extDts("./global")}'
2971
2972
  ${ctx.file.exportType("ConditionalValue", "./conditions")}
2973
+ ${ctx.file.exportType("PatternConfig, PatternProperties", "./pattern")}
2974
+ ${ctx.file.exportType("RecipeVariantRecord, RecipeConfig, SlotRecipeVariantRecord, SlotRecipeConfig", "./recipe")}
2972
2975
  ${ctx.file.exportType("GlobalStyleObject, JsxStyleProps, SystemStyleObject", "./system-types")}
2973
2976
 
2974
2977
  `,
@@ -3250,12 +3253,12 @@ function setupJsx(ctx) {
3250
3253
  `,
3251
3254
  dts: import_outdent43.default`
3252
3255
  ${ctx.file.exportTypeStar("./factory")}
3253
-
3256
+
3254
3257
  ${isValidProp?.dts ? ctx.file.exportTypeStar("./is-valid-prop") : ""}
3255
-
3258
+
3256
3259
  ${import_outdent43.default.string(patterns.map((file) => ctx.file.exportTypeStar(`./${file.name}`)).join("\n"))}
3257
-
3258
- ${ctx.file.exportType(ctx.jsx.typeName, "../types/jsx")}
3260
+
3261
+ ${ctx.file.exportType([ctx.jsx.typeName, ctx.jsx.componentName].join(", "), "../types/jsx")}
3259
3262
  `
3260
3263
  };
3261
3264
  return {
package/dist/index.mjs CHANGED
@@ -2935,9 +2935,12 @@ var generateTypesEntry = (ctx) => ({
2935
2935
  export function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>
2936
2936
  }
2937
2937
  `,
2938
+ // We need to export types used in the global.d.ts here to avoid TS errors such as `The inferred type of 'xxx' cannot be named without a reference to 'yyy'`
2938
2939
  index: outdent39`
2939
2940
  import '${ctx.file.extDts("./global")}'
2940
2941
  ${ctx.file.exportType("ConditionalValue", "./conditions")}
2942
+ ${ctx.file.exportType("PatternConfig, PatternProperties", "./pattern")}
2943
+ ${ctx.file.exportType("RecipeVariantRecord, RecipeConfig, SlotRecipeVariantRecord, SlotRecipeConfig", "./recipe")}
2941
2944
  ${ctx.file.exportType("GlobalStyleObject, JsxStyleProps, SystemStyleObject", "./system-types")}
2942
2945
 
2943
2946
  `,
@@ -3219,12 +3222,12 @@ function setupJsx(ctx) {
3219
3222
  `,
3220
3223
  dts: outdent43`
3221
3224
  ${ctx.file.exportTypeStar("./factory")}
3222
-
3225
+
3223
3226
  ${isValidProp?.dts ? ctx.file.exportTypeStar("./is-valid-prop") : ""}
3224
-
3227
+
3225
3228
  ${outdent43.string(patterns.map((file) => ctx.file.exportTypeStar(`./${file.name}`)).join("\n"))}
3226
-
3227
- ${ctx.file.exportType(ctx.jsx.typeName, "../types/jsx")}
3229
+
3230
+ ${ctx.file.exportType([ctx.jsx.typeName, ctx.jsx.componentName].join(", "), "../types/jsx")}
3228
3231
  `
3229
3232
  };
3230
3233
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.0.0-dev-20230905135910",
3
+ "version": "0.0.0-dev-20230905150548",
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.4",
23
- "@pandacss/core": "0.0.0-dev-20230905135910",
24
- "@pandacss/is-valid-prop": "0.0.0-dev-20230905135910",
25
- "@pandacss/logger": "0.0.0-dev-20230905135910",
26
- "@pandacss/shared": "0.0.0-dev-20230905135910",
27
- "@pandacss/token-dictionary": "0.0.0-dev-20230905135910",
28
- "@pandacss/types": "0.0.0-dev-20230905135910"
23
+ "@pandacss/core": "0.0.0-dev-20230905150548",
24
+ "@pandacss/is-valid-prop": "0.0.0-dev-20230905150548",
25
+ "@pandacss/logger": "0.0.0-dev-20230905150548",
26
+ "@pandacss/shared": "0.0.0-dev-20230905150548",
27
+ "@pandacss/token-dictionary": "0.0.0-dev-20230905150548",
28
+ "@pandacss/types": "0.0.0-dev-20230905150548"
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-20230905135910"
33
+ "@pandacss/fixture": "0.0.0-dev-20230905150548"
34
34
  },
35
35
  "scripts": {
36
36
  "prebuild": "tsx scripts/prebuild.ts",