@pandacss/types 1.6.0 → 1.7.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/index.d.ts +2 -1
- package/dist/pattern.d.ts +4 -4
- package/dist/spec.d.ts +156 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export type * from './reporter'
|
|
2
1
|
export type * from './artifact'
|
|
3
2
|
export type * from './composition'
|
|
4
3
|
export type * from './conditions'
|
|
@@ -10,8 +9,10 @@ export type * from './parser'
|
|
|
10
9
|
export type * from './parts'
|
|
11
10
|
export type * from './pattern'
|
|
12
11
|
export type * from './recipe'
|
|
12
|
+
export type * from './reporter'
|
|
13
13
|
export type * from './runtime'
|
|
14
14
|
export type * from './shared'
|
|
15
|
+
export type * from './spec'
|
|
15
16
|
export type * from './static-css'
|
|
16
17
|
export type * from './style-rules'
|
|
17
18
|
export type * from './system-types'
|
package/dist/pattern.d.ts
CHANGED
|
@@ -5,10 +5,10 @@ type Primitive = string | number | boolean | null | undefined
|
|
|
5
5
|
type LiteralUnion<T, K extends Primitive = string> = T | (K & Record<never, never>)
|
|
6
6
|
|
|
7
7
|
export type PatternProperty =
|
|
8
|
-
| { type: 'property'; value: CssProperty }
|
|
9
|
-
| { type: 'enum'; value: string[] }
|
|
10
|
-
| { type: 'token'; value: TokenCategory; property?: CssProperty }
|
|
11
|
-
| { type: 'string' | 'boolean' | 'number' }
|
|
8
|
+
| { type: 'property'; value: CssProperty; description?: string }
|
|
9
|
+
| { type: 'enum'; value: string[]; description?: string }
|
|
10
|
+
| { type: 'token'; value: TokenCategory; property?: CssProperty; description?: string }
|
|
11
|
+
| { type: 'string' | 'boolean' | 'number'; description?: string }
|
|
12
12
|
|
|
13
13
|
export interface PatternHelpers {
|
|
14
14
|
map: (value: any, fn: (value: string) => string | undefined) => any
|
package/dist/spec.d.ts
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
export type SpecType =
|
|
2
|
+
| 'tokens'
|
|
3
|
+
| 'recipes'
|
|
4
|
+
| 'patterns'
|
|
5
|
+
| 'conditions'
|
|
6
|
+
| 'keyframes'
|
|
7
|
+
| 'semantic-tokens'
|
|
8
|
+
| 'text-styles'
|
|
9
|
+
| 'layer-styles'
|
|
10
|
+
| 'animation-styles'
|
|
11
|
+
| 'color-palette'
|
|
12
|
+
|
|
13
|
+
interface Examples {
|
|
14
|
+
functionExamples: string[]
|
|
15
|
+
jsxExamples: string[]
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface TokenValue {
|
|
19
|
+
name: string
|
|
20
|
+
value: any
|
|
21
|
+
description?: string
|
|
22
|
+
deprecated?: boolean | string
|
|
23
|
+
cssVar?: string
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface TokenGroupDefinition extends Examples {
|
|
27
|
+
type: string
|
|
28
|
+
values: TokenValue[]
|
|
29
|
+
tokenFunctionExamples: string[]
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface TokenSpec {
|
|
33
|
+
type: 'tokens'
|
|
34
|
+
data: TokenGroupDefinition[]
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface SemanticTokenValue {
|
|
38
|
+
name: string
|
|
39
|
+
values: Array<{ value: string; condition?: string }>
|
|
40
|
+
description?: string
|
|
41
|
+
deprecated?: boolean | string
|
|
42
|
+
cssVar?: string
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface SemanticTokenGroupDefinition extends Examples {
|
|
46
|
+
type: string
|
|
47
|
+
values: SemanticTokenValue[]
|
|
48
|
+
tokenFunctionExamples: string[]
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface SemanticTokenSpec {
|
|
52
|
+
type: 'semantic-tokens'
|
|
53
|
+
data: SemanticTokenGroupDefinition[]
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface RecipeSpecDefinition extends Examples {
|
|
57
|
+
name: string
|
|
58
|
+
description?: string
|
|
59
|
+
variants: Record<string, string[]>
|
|
60
|
+
defaultVariants: Record<string, any>
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface RecipeSpec {
|
|
64
|
+
type: 'recipes'
|
|
65
|
+
data: RecipeSpecDefinition[]
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface PatternSpecProperty {
|
|
69
|
+
name: string
|
|
70
|
+
type: string
|
|
71
|
+
description?: string
|
|
72
|
+
required?: boolean
|
|
73
|
+
defaultValue?: any
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface PatternSpecDefinition extends Examples {
|
|
77
|
+
name: string
|
|
78
|
+
description?: string
|
|
79
|
+
properties: PatternSpecProperty[]
|
|
80
|
+
jsx?: string
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface PatternSpec {
|
|
84
|
+
type: 'patterns'
|
|
85
|
+
data: PatternSpecDefinition[]
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export interface ConditionSpecDefinition extends Examples {
|
|
89
|
+
name: string
|
|
90
|
+
value: string
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface ConditionSpec {
|
|
94
|
+
type: 'conditions'
|
|
95
|
+
data: ConditionSpecDefinition[]
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface KeyframeSpecDefinition extends Examples {
|
|
99
|
+
name: string
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface KeyframeSpec {
|
|
103
|
+
type: 'keyframes'
|
|
104
|
+
data: KeyframeSpecDefinition[]
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface TextStyleSpecDefinition extends Examples {
|
|
108
|
+
name: string
|
|
109
|
+
description?: string
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface TextStyleSpec {
|
|
113
|
+
type: 'text-styles'
|
|
114
|
+
data: TextStyleSpecDefinition[]
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface LayerStyleSpecDefinition extends Examples {
|
|
118
|
+
name: string
|
|
119
|
+
description?: string
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface LayerStyleSpec {
|
|
123
|
+
type: 'layer-styles'
|
|
124
|
+
data: LayerStyleSpecDefinition[]
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export interface AnimationStyleSpecDefinition extends Examples {
|
|
128
|
+
name: string
|
|
129
|
+
description?: string
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export interface AnimationStyleSpec {
|
|
133
|
+
type: 'animation-styles'
|
|
134
|
+
data: AnimationStyleSpecDefinition[]
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface ColorPaletteSpec {
|
|
138
|
+
type: 'color-palette'
|
|
139
|
+
data: {
|
|
140
|
+
values: string[]
|
|
141
|
+
functionExamples: string[]
|
|
142
|
+
jsxExamples: string[]
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export type SpecFile =
|
|
147
|
+
| TokenSpec
|
|
148
|
+
| SemanticTokenSpec
|
|
149
|
+
| RecipeSpec
|
|
150
|
+
| PatternSpec
|
|
151
|
+
| ConditionSpec
|
|
152
|
+
| KeyframeSpec
|
|
153
|
+
| TextStyleSpec
|
|
154
|
+
| LayerStyleSpec
|
|
155
|
+
| AnimationStyleSpec
|
|
156
|
+
| ColorPaletteSpec
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
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": "27.0.2",
|
|
35
|
-
"@pandacss/extractor": "1.
|
|
35
|
+
"@pandacss/extractor": "1.7.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"dev": "tsx scripts/watch.ts",
|