@pandacss/types 0.0.0-dev-20221121175259 → 0.0.0-dev-20221122153914

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.0.0-dev-20221121175259",
3
+ "version": "0.0.0-dev-20221122153914",
4
4
  "description": "The types for css panda",
5
5
  "main": "src/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",
@@ -63,7 +63,7 @@ export type ConditionCssProperties<
63
63
  [Key in keyof Conditions]?: ConditionCssProperties<Omit<Conditions, Key>, UserProperties, StrictValue>
64
64
  }
65
65
 
66
- type NestedCss<T> = T & {
66
+ export type NestedCss<T> = T & {
67
67
  [key in Pseudo | Loose]?: NestedCss<T> | Loose<string> | Loose<number> | boolean
68
68
  }
69
69
 
@@ -80,14 +80,15 @@ export type GroupedCss<T> = {
80
80
  }
81
81
 
82
82
  export type PandaCssObject<
83
- Conditions extends TCondition,
83
+ Conditions extends TCondition = TCondition,
84
84
  UserProperties extends Record<string, any> = NeverType,
85
85
  Strict extends boolean = false,
86
- > = NestedCss<ConditionCssProperties<Conditions, UserProperties, Strict>> &
87
- GroupedCss<ConditionCssProperties<Conditions, UserProperties, Strict>>
86
+ > =
87
+ | NestedCss<ConditionCssProperties<Conditions, UserProperties, Strict>>
88
+ | GroupedCss<ConditionCssProperties<Conditions, UserProperties, Strict>>
88
89
 
89
90
  export type GlobalCss<
90
- Conditions extends TCondition,
91
+ Conditions extends TCondition = TCondition,
91
92
  UserProperties extends Record<string, any> = NeverType,
92
93
  Strict extends boolean = false,
93
94
  > = Record<string, NestedCss<ConditionCssProperties<Conditions, UserProperties, Strict>>>