@pandacss/types 0.0.0-dev-20230607205019 → 0.0.0-dev-20230608121457

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.
Files changed (2) hide show
  1. package/dist/recipe.d.ts +4 -9
  2. package/package.json +2 -2
package/dist/recipe.d.ts CHANGED
@@ -4,7 +4,7 @@ type Pretty<T> = T extends infer U ? { [K in keyof U]: U[K] } : never
4
4
 
5
5
  type StringToBoolean<T> = T extends 'true' | 'false' ? boolean : T
6
6
 
7
- export type RecipeVariantRecord = Record<string, Record<string, SystemStyleObject>>
7
+ export type RecipeVariantRecord = Record<any, Record<any, SystemStyleObject>>
8
8
 
9
9
  export type RecipeSelection<T extends RecipeVariantRecord> = {
10
10
  [K in keyof T]?: StringToBoolean<keyof T[K]>
@@ -29,11 +29,8 @@ export type RecipeRuntimeFn<T extends RecipeVariantRecord> = RecipeVariantFn<T>
29
29
  ): [RecipeSelection<T>, Pretty<Omit<Props, keyof RecipeVariantRecord>>]
30
30
  }
31
31
 
32
- export type RecipeCompoundSelection<
33
- T extends RecipeVariantRecord,
34
- Key extends Exclude<keyof T, 'css'> = Exclude<keyof T, 'css'>,
35
- > = {
36
- [K in Key]?: StringToBoolean<keyof T[K]> | Array<StringToBoolean<keyof T[K]>>
32
+ export type RecipeCompoundSelection<T extends RecipeVariantRecord> = {
33
+ [K in keyof T]?: StringToBoolean<keyof T[K]> | Array<StringToBoolean<keyof T[K]>>
37
34
  }
38
35
 
39
36
  export type RecipeCompoundVariant<T extends RecipeVariantRecord> = RecipeCompoundSelection<T> & {
@@ -61,9 +58,7 @@ export type RecipeDefinition<T extends RecipeVariantRecord> = {
61
58
 
62
59
  export type RecipeCreatorFn = <T extends RecipeVariantRecord>(config: RecipeDefinition<T>) => RecipeRuntimeFn<T>
63
60
 
64
- export type RecipeConfig<T = RecipeVariantRecord> = RecipeDefinition<
65
- T extends RecipeVariantRecord ? T : RecipeVariantRecord
66
- > & {
61
+ export type RecipeConfig<T extends RecipeVariantRecord = RecipeVariantRecord> = RecipeDefinition<T> & {
67
62
  /**
68
63
  * The name of the recipe.
69
64
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.0.0-dev-20230607205019",
3
+ "version": "0.0.0-dev-20230608121457",
4
4
  "description": "The types for css panda",
5
5
  "main": "dist/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",
@@ -16,7 +16,7 @@
16
16
  "csstype": "3.1.2"
17
17
  },
18
18
  "dependencies": {
19
- "@pandacss/extractor": "0.0.0-dev-20230607205019"
19
+ "@pandacss/extractor": "0.0.0-dev-20230608121457"
20
20
  },
21
21
  "scripts": {
22
22
  "build": "tsx scripts/build.ts",