@pandacss/types 1.10.0 → 1.11.1
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/conditions.d.ts +19 -3
- package/dist/hooks.d.ts +1 -0
- package/package.json +2 -2
package/dist/conditions.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import type { AnySelector, Selectors } from './selectors'
|
|
2
2
|
|
|
3
|
-
export type ConditionType =
|
|
3
|
+
export type ConditionType =
|
|
4
|
+
| 'at-rule'
|
|
5
|
+
| 'parent-nesting'
|
|
6
|
+
| 'self-nesting'
|
|
7
|
+
| 'combinator-nesting'
|
|
8
|
+
| 'mixed'
|
|
9
|
+
| 'multi-block'
|
|
4
10
|
|
|
5
|
-
export type ConditionDetails = AtRuleCondition | SelectorCondition | MixedCondition
|
|
11
|
+
export type ConditionDetails = AtRuleCondition | SelectorCondition | MixedCondition | MultiBlockCondition
|
|
6
12
|
|
|
7
13
|
export interface AtRuleCondition {
|
|
8
14
|
type: 'at-rule'
|
|
@@ -24,11 +30,21 @@ export interface MixedCondition {
|
|
|
24
30
|
raw: string[]
|
|
25
31
|
}
|
|
26
32
|
|
|
33
|
+
export interface MultiBlockCondition {
|
|
34
|
+
type: 'multi-block'
|
|
35
|
+
value: MixedCondition[]
|
|
36
|
+
raw: Record<string, any>
|
|
37
|
+
}
|
|
38
|
+
|
|
27
39
|
/* -----------------------------------------------------------------------------
|
|
28
40
|
* Shadowed export (in CLI): DO NOT REMOVE
|
|
29
41
|
* -----------------------------------------------------------------------------*/
|
|
30
42
|
|
|
31
|
-
export type
|
|
43
|
+
export type ConditionObjectQuery = {
|
|
44
|
+
[key: string]: ConditionObjectQuery | '@slot'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type ConditionQuery = string | string[] | ConditionObjectQuery
|
|
32
48
|
|
|
33
49
|
export interface Conditions {
|
|
34
50
|
[condition: string]: ConditionQuery
|
package/dist/hooks.d.ts
CHANGED
|
@@ -162,6 +162,7 @@ export interface PresetResolvedHookArgs {
|
|
|
162
162
|
|
|
163
163
|
export interface ParserResultConfigureOptions {
|
|
164
164
|
matchTag?: (tag: string, isPandaComponent: boolean) => boolean
|
|
165
|
+
matchTagMode?: 'extend' | 'override'
|
|
165
166
|
matchTagProp?: (tag: string, prop: string) => boolean
|
|
166
167
|
}
|
|
167
168
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"description": "The types for css panda",
|
|
5
5
|
"main": "dist/index.d.ts",
|
|
6
6
|
"author": "Segun Adebayo <joseshegs@gmail.com>",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"ncp": "2.0.0",
|
|
33
33
|
"pkg-types": "2.3.0",
|
|
34
34
|
"ts-morph": "28.0.0",
|
|
35
|
-
"@pandacss/extractor": "1.
|
|
35
|
+
"@pandacss/extractor": "1.11.1"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"dev": "tsx scripts/watch.ts",
|