@pandacss/types 0.34.2 → 0.35.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/hooks.d.ts +2 -0
- package/dist/parser.d.ts +7 -0
- package/dist/recipe.d.ts +5 -1
- package/package.json +2 -2
package/dist/hooks.d.ts
CHANGED
|
@@ -125,6 +125,7 @@ export interface ConfigResolvedHookArgs {
|
|
|
125
125
|
path: string
|
|
126
126
|
dependencies: string[]
|
|
127
127
|
utils: ConfigResolvedHookUtils
|
|
128
|
+
original?: LoadConfigResult['config']
|
|
128
129
|
}
|
|
129
130
|
|
|
130
131
|
export interface ConfigChangeHookArgs {
|
|
@@ -145,6 +146,7 @@ export interface ParserResultBeforeHookArgs {
|
|
|
145
146
|
filePath: string
|
|
146
147
|
content: string
|
|
147
148
|
configure: (opts: ParserResultConfigureOptions) => void
|
|
149
|
+
original?: string
|
|
148
150
|
}
|
|
149
151
|
|
|
150
152
|
export interface ParserResultAfterHookArgs {
|
package/dist/parser.d.ts
CHANGED
|
@@ -18,6 +18,13 @@ export interface ParserResultInterface {
|
|
|
18
18
|
filePath: string | undefined
|
|
19
19
|
isEmpty: () => boolean
|
|
20
20
|
toArray: () => Array<ResultItem>
|
|
21
|
+
set: (name: 'cva' | 'css' | 'sva', result: ResultItem) => void
|
|
22
|
+
setCss: (result: ResultItem) => void
|
|
23
|
+
setCva: (result: ResultItem) => void
|
|
24
|
+
setSva: (result: ResultItem) => void
|
|
25
|
+
setJsx: (result: ResultItem) => void
|
|
26
|
+
setPattern: (name: string, result: ResultItem) => void
|
|
27
|
+
setRecipe: (name: string, result: ResultItem) => void
|
|
21
28
|
}
|
|
22
29
|
|
|
23
30
|
export interface EncoderJson {
|
package/dist/recipe.d.ts
CHANGED
|
@@ -80,7 +80,7 @@ export type RecipeCreatorFn = <T extends RecipeVariantRecord>(config: RecipeDefi
|
|
|
80
80
|
|
|
81
81
|
interface RecipeConfigMeta {
|
|
82
82
|
/**
|
|
83
|
-
* The name of the recipe.
|
|
83
|
+
* The class name of the recipe.
|
|
84
84
|
*/
|
|
85
85
|
className: string
|
|
86
86
|
/**
|
|
@@ -132,6 +132,10 @@ export interface SlotRecipeDefinition<
|
|
|
132
132
|
S extends string = string,
|
|
133
133
|
T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,
|
|
134
134
|
> {
|
|
135
|
+
/**
|
|
136
|
+
* An optional class name that can be used to target slots in the DOM.
|
|
137
|
+
*/
|
|
138
|
+
className?: string
|
|
135
139
|
/**
|
|
136
140
|
* The parts/slots of the recipe.
|
|
137
141
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"description": "The types for css panda",
|
|
5
5
|
"main": "dist/index.d.ts",
|
|
6
6
|
"author": "Segun Adebayo <joseshegs@gmail.com>",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"microdiff": "1.3.2",
|
|
31
31
|
"ncp": "2.0.0",
|
|
32
32
|
"pkg-types": "1.0.3",
|
|
33
|
-
"@pandacss/extractor": "0.
|
|
33
|
+
"@pandacss/extractor": "0.35.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"dev": "tsx scripts/watch.ts",
|