@pandacss/types 0.0.0-dev-20221121163943 → 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 +1 -1
- package/src/config.d.ts +8 -13
- package/src/panda-csstype.d.ts +6 -5
package/package.json
CHANGED
package/src/config.d.ts
CHANGED
|
@@ -52,19 +52,14 @@ export type Config<
|
|
|
52
52
|
*/
|
|
53
53
|
outdir?: string
|
|
54
54
|
/**
|
|
55
|
-
* The
|
|
56
|
-
*/
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
* The root selector for the css variables.
|
|
64
|
-
* @default ':where(:host, :root)'
|
|
65
|
-
*/
|
|
66
|
-
root?: string
|
|
67
|
-
}
|
|
55
|
+
* The prefix for the css variables.
|
|
56
|
+
*/
|
|
57
|
+
cssVarPrefix?: string
|
|
58
|
+
/**
|
|
59
|
+
* The root selector for the css variables.
|
|
60
|
+
* @default ':where(:host, :root)'
|
|
61
|
+
*/
|
|
62
|
+
cssVarRoot?: string
|
|
68
63
|
/**
|
|
69
64
|
* Files to watch for changes.
|
|
70
65
|
*/
|
package/src/panda-csstype.d.ts
CHANGED
|
@@ -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
|
-
> =
|
|
87
|
-
|
|
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>>>
|