@pandacss/types 0.18.3 → 0.19.0

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/recipe.d.ts CHANGED
@@ -7,7 +7,7 @@ export type RecipeVariantRecord = Record<any, Record<any, SystemStyleObject>>
7
7
  export type RecipeSelection<T extends RecipeVariantRecord> = keyof any extends keyof T
8
8
  ? {}
9
9
  : {
10
- [K in keyof T]?: StringToBoolean<keyof T[K]>
10
+ [K in keyof T]?: StringToBoolean<keyof T[K]> | undefined
11
11
  }
12
12
 
13
13
  export type RecipeVariantFn<T extends RecipeVariantRecord> = (props?: RecipeSelection<T>) => string
@@ -38,7 +38,7 @@ export interface RecipeRuntimeFn<T extends RecipeVariantRecord> extends RecipeVa
38
38
  type OneOrMore<T> = T | Array<T>
39
39
 
40
40
  export type RecipeCompoundSelection<T> = {
41
- [K in keyof T]?: OneOrMore<StringToBoolean<keyof T[K]>>
41
+ [K in keyof T]?: OneOrMore<StringToBoolean<keyof T[K]>> | undefined
42
42
  }
43
43
 
44
44
  export type RecipeCompoundVariant<T> = T & {
@@ -59,9 +59,11 @@ export interface ExtendableGlobalStyleObject {
59
59
  extend?: GlobalStyleObject | undefined
60
60
  }
61
61
 
62
- export type CompositionStyleObject<Property extends string> = Nested<{
63
- [K in Property]?: K extends keyof SystemStyleObject ? SystemStyleObject[K] : unknown
64
- }>
62
+ type FilterStyleObject<P extends string> = {
63
+ [K in P]?: K extends keyof SystemStyleObject ? SystemStyleObject[K] : unknown
64
+ }
65
+
66
+ export type CompositionStyleObject<Property extends string> = Nested<FilterStyleObject<Property> & CssVarProperties>
65
67
 
66
68
  /* -----------------------------------------------------------------------------
67
69
  * Jsx style props
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.18.3",
3
+ "version": "0.19.0",
4
4
  "description": "The types for css panda",
5
5
  "main": "dist/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",
@@ -24,7 +24,7 @@
24
24
  "hookable": "5.5.3",
25
25
  "ncp": "^2.0.0",
26
26
  "pkg-types": "1.0.3",
27
- "@pandacss/extractor": "0.18.3"
27
+ "@pandacss/extractor": "0.19.0"
28
28
  },
29
29
  "scripts": {
30
30
  "dev": "tsx scripts/watch.ts",