@pandacss/types 0.37.2 → 0.39.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/composition.d.ts +39 -12
- package/dist/pattern.d.ts +4 -0
- package/dist/recipe.d.ts +8 -0
- package/dist/system-types.d.ts +1 -1
- package/dist/tokens.d.ts +1 -3
- package/dist/utility.d.ts +5 -1
- package/package.json +2 -2
package/dist/composition.d.ts
CHANGED
|
@@ -14,34 +14,61 @@ interface Recursive<T> {
|
|
|
14
14
|
* -----------------------------------------------------------------------------*/
|
|
15
15
|
|
|
16
16
|
type TextStyleProperty =
|
|
17
|
+
| 'font'
|
|
18
|
+
| 'fontFamily'
|
|
19
|
+
| 'fontFeatureSettings'
|
|
20
|
+
| 'fontKerning'
|
|
21
|
+
| 'fontLanguageOverride'
|
|
22
|
+
| 'fontOpticalSizing'
|
|
23
|
+
| 'fontPalette'
|
|
17
24
|
| 'fontSize'
|
|
18
25
|
| 'fontSizeAdjust'
|
|
19
|
-
| '
|
|
20
|
-
| '
|
|
21
|
-
| '
|
|
22
|
-
| '
|
|
26
|
+
| 'fontStretch'
|
|
27
|
+
| 'fontStyle'
|
|
28
|
+
| 'fontSynthesis'
|
|
29
|
+
| 'fontVariant'
|
|
23
30
|
| 'fontVariantAlternates'
|
|
31
|
+
| 'fontVariantCaps'
|
|
24
32
|
| 'fontVariantLigatures'
|
|
25
|
-
| '
|
|
33
|
+
| 'fontVariantNumeric'
|
|
34
|
+
| 'fontVariantPosition'
|
|
35
|
+
| 'fontVariationSettings'
|
|
26
36
|
| 'fontWeight'
|
|
27
|
-
| '
|
|
28
|
-
| '
|
|
29
|
-
| '
|
|
30
|
-
| 'lineHeight'
|
|
37
|
+
| 'hypens'
|
|
38
|
+
| 'hyphenateCharacter'
|
|
39
|
+
| 'hyphenateLimitChars'
|
|
31
40
|
| 'letterSpacing'
|
|
41
|
+
| 'lineBreak'
|
|
42
|
+
| 'lineHeight'
|
|
43
|
+
| 'quotes'
|
|
44
|
+
| 'overflowWrap'
|
|
45
|
+
| 'textCombineUpright'
|
|
32
46
|
| 'textDecoration'
|
|
33
|
-
| 'textTransform'
|
|
34
|
-
| 'textIndent'
|
|
35
47
|
| 'textDecorationColor'
|
|
36
48
|
| 'textDecorationLine'
|
|
49
|
+
| 'textDecorationSkipInk'
|
|
37
50
|
| 'textDecorationStyle'
|
|
51
|
+
| 'textDecorationThickness'
|
|
52
|
+
| 'textEmphasis'
|
|
38
53
|
| 'textEmphasisColor'
|
|
39
54
|
| 'textEmphasisPosition'
|
|
40
55
|
| 'textEmphasisStyle'
|
|
41
|
-
| '
|
|
56
|
+
| 'textIndent'
|
|
57
|
+
| 'textJustify'
|
|
42
58
|
| 'textOrientation'
|
|
43
59
|
| 'textOverflow'
|
|
44
60
|
| 'textRendering'
|
|
61
|
+
| 'textShadow'
|
|
62
|
+
| 'textTransform'
|
|
63
|
+
| 'textUnderlineOffset'
|
|
64
|
+
| 'textUnderlinePosition'
|
|
65
|
+
| 'textWrap'
|
|
66
|
+
| 'textWrapMode'
|
|
67
|
+
| 'textWrapStyle'
|
|
68
|
+
| 'verticalAlign'
|
|
69
|
+
| 'whiteSpace'
|
|
70
|
+
| 'wordBreak'
|
|
71
|
+
| 'wordSpacing'
|
|
45
72
|
|
|
46
73
|
export type TextStyle = CompositionStyleObject<TextStyleProperty>
|
|
47
74
|
|
package/dist/pattern.d.ts
CHANGED
|
@@ -49,6 +49,10 @@ export interface PatternConfig<T extends PatternProperties = PatternProperties>
|
|
|
49
49
|
* The css object this pattern will generate.
|
|
50
50
|
*/
|
|
51
51
|
transform?: (props: InferProps<T>, helpers: PatternHelpers) => SystemStyleObject
|
|
52
|
+
/**
|
|
53
|
+
* Whether the pattern is deprecated.
|
|
54
|
+
*/
|
|
55
|
+
deprecated?: boolean | string
|
|
52
56
|
/**
|
|
53
57
|
* The jsx element name this pattern will generate.
|
|
54
58
|
*/
|
package/dist/recipe.d.ts
CHANGED
|
@@ -63,6 +63,10 @@ export interface RecipeDefinition<T extends RecipeVariantRecord = RecipeVariantR
|
|
|
63
63
|
* The base styles of the recipe.
|
|
64
64
|
*/
|
|
65
65
|
base?: SystemStyleObject
|
|
66
|
+
/**
|
|
67
|
+
* Whether the recipe is deprecated.
|
|
68
|
+
*/
|
|
69
|
+
deprecated?: boolean | string
|
|
66
70
|
/**
|
|
67
71
|
* The multi-variant styles of the recipe.
|
|
68
72
|
*/
|
|
@@ -140,6 +144,10 @@ export interface SlotRecipeDefinition<
|
|
|
140
144
|
* An optional class name that can be used to target slots in the DOM.
|
|
141
145
|
*/
|
|
142
146
|
className?: string
|
|
147
|
+
/**
|
|
148
|
+
* Whether the recipe is deprecated.
|
|
149
|
+
*/
|
|
150
|
+
deprecated?: boolean | string
|
|
143
151
|
/**
|
|
144
152
|
* The parts/slots of the recipe.
|
|
145
153
|
*/
|
package/dist/system-types.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export type CompositionStyleObject<Property extends string> = Nested<FilterStyle
|
|
|
65
65
|
* Jsx style props
|
|
66
66
|
* -----------------------------------------------------------------------------*/
|
|
67
67
|
interface WithCss {
|
|
68
|
-
css?: SystemStyleObject
|
|
68
|
+
css?: SystemStyleObject | SystemStyleObject[]
|
|
69
69
|
}
|
|
70
70
|
type StyleProps = SystemStyleObject & WithCss
|
|
71
71
|
|
package/dist/tokens.d.ts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import type { Recursive } from './shared'
|
|
2
2
|
|
|
3
|
-
export type TokenStatus = 'deprecated' | 'experimental' | 'new'
|
|
4
|
-
|
|
5
3
|
export interface Token<Value = any> {
|
|
6
4
|
value: Value
|
|
7
5
|
description?: string
|
|
8
6
|
type?: string
|
|
7
|
+
deprecated?: boolean | string
|
|
9
8
|
extensions?: {
|
|
10
|
-
status?: TokenStatus
|
|
11
9
|
[key: string]: any
|
|
12
10
|
}
|
|
13
11
|
}
|
package/dist/utility.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ interface TokenFn {
|
|
|
10
10
|
type ThemeFn = (token: (path: string) => any) => Record<string, string>
|
|
11
11
|
|
|
12
12
|
export type PropertyValues =
|
|
13
|
-
| LiteralUnion<TokenCategory>
|
|
13
|
+
| LiteralUnion<TokenCategory | 'keyframes'>
|
|
14
14
|
| string[]
|
|
15
15
|
| { type: string }
|
|
16
16
|
| Record<string, string>
|
|
@@ -64,6 +64,10 @@ export interface PropertyConfig {
|
|
|
64
64
|
* The CSS semantic group this property belongs
|
|
65
65
|
*/
|
|
66
66
|
group?: CssSemanticGroup
|
|
67
|
+
/**
|
|
68
|
+
* Whether this utility is deprecated or not.
|
|
69
|
+
*/
|
|
70
|
+
deprecated?: boolean
|
|
67
71
|
}
|
|
68
72
|
|
|
69
73
|
export type CssSemanticGroup =
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"description": "The types for css panda",
|
|
5
5
|
"main": "dist/index.d.ts",
|
|
6
6
|
"author": "Segun Adebayo <joseshegs@gmail.com>",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"ncp": "2.0.0",
|
|
32
32
|
"pkg-types": "1.0.3",
|
|
33
33
|
"ts-morph": "21.0.1",
|
|
34
|
-
"@pandacss/extractor": "0.
|
|
34
|
+
"@pandacss/extractor": "0.39.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"dev": "tsx scripts/watch.ts",
|