@pandacss/types 0.51.1 → 0.53.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/config.d.ts +18 -0
- package/dist/system-types.d.ts +86 -2
- package/package.json +2 -2
package/dist/config.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import type {
|
|
|
9
9
|
ExtendableGlobalStyleObject,
|
|
10
10
|
GlobalFontface,
|
|
11
11
|
GlobalStyleObject,
|
|
12
|
+
SystemStyleObject,
|
|
12
13
|
} from './system-types'
|
|
13
14
|
import type { ExtendableTheme, Theme } from './theme'
|
|
14
15
|
import type { ExtendableUtilityConfig, UtilityConfig } from './utility'
|
|
@@ -61,6 +62,10 @@ export interface PresetCore {
|
|
|
61
62
|
* The global fontface for your project.
|
|
62
63
|
*/
|
|
63
64
|
globalFontface?: GlobalFontface
|
|
65
|
+
/**
|
|
66
|
+
* The global custom position try fallback option
|
|
67
|
+
*/
|
|
68
|
+
globalPositionTry?: GlobalPositionTry
|
|
64
69
|
/**
|
|
65
70
|
* Used to generate css utility classes for your project.
|
|
66
71
|
*/
|
|
@@ -135,6 +140,15 @@ interface ExtendableGlobalVars {
|
|
|
135
140
|
extend?: GlobalVarsDefinition
|
|
136
141
|
}
|
|
137
142
|
|
|
143
|
+
export interface GlobalPositionTry {
|
|
144
|
+
[key: string]: SystemStyleObject
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
interface ExtendableGlobalPositionTry {
|
|
148
|
+
[key: string]: SystemStyleObject | GlobalPositionTry | undefined
|
|
149
|
+
extend?: GlobalPositionTry | undefined
|
|
150
|
+
}
|
|
151
|
+
|
|
138
152
|
export interface ThemeVariant extends Pick<Theme, 'tokens' | 'semanticTokens'> {}
|
|
139
153
|
|
|
140
154
|
export interface ThemeVariantsMap {
|
|
@@ -160,6 +174,10 @@ export interface ExtendableOptions {
|
|
|
160
174
|
* The global fontface for your project.
|
|
161
175
|
*/
|
|
162
176
|
globalFontface?: ExtendableGlobalFontface
|
|
177
|
+
/**
|
|
178
|
+
* The global custom position try fallback option
|
|
179
|
+
*/
|
|
180
|
+
globalPositionTry?: ExtendableGlobalPositionTry
|
|
163
181
|
/**
|
|
164
182
|
* Used to generate css utility classes for your project.
|
|
165
183
|
*/
|
package/dist/system-types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ConditionalValue, Nested } from './conditions'
|
|
2
|
-
import type { AtRule, PropertiesFallback } from './csstype'
|
|
2
|
+
import type { AtRule, Globals, PropertiesFallback } from './csstype'
|
|
3
3
|
import type { SystemProperties, CssVarProperties } from './style-props'
|
|
4
4
|
|
|
5
5
|
type String = string & {}
|
|
@@ -21,9 +21,93 @@ export type Assign<T, U> = {
|
|
|
21
21
|
* Native css properties
|
|
22
22
|
* -----------------------------------------------------------------------------*/
|
|
23
23
|
|
|
24
|
+
type DashedIdent = `--${string}`
|
|
25
|
+
|
|
26
|
+
type StringToMultiple<T extends string> = T | `${T}, ${T}`
|
|
27
|
+
|
|
28
|
+
export type PositionAreaAxis =
|
|
29
|
+
| 'left'
|
|
30
|
+
| 'center'
|
|
31
|
+
| 'right'
|
|
32
|
+
| 'x-start'
|
|
33
|
+
| 'x-end'
|
|
34
|
+
| 'span-x-start'
|
|
35
|
+
| 'span-x-end'
|
|
36
|
+
| 'x-self-start'
|
|
37
|
+
| 'x-self-end'
|
|
38
|
+
| 'span-x-self-start'
|
|
39
|
+
| 'span-x-self-end'
|
|
40
|
+
| 'span-all'
|
|
41
|
+
| 'top'
|
|
42
|
+
| 'bottom'
|
|
43
|
+
| 'span-top'
|
|
44
|
+
| 'span-bottom'
|
|
45
|
+
| 'y-start'
|
|
46
|
+
| 'y-end'
|
|
47
|
+
| 'span-y-start'
|
|
48
|
+
| 'span-y-end'
|
|
49
|
+
| 'y-self-start'
|
|
50
|
+
| 'y-self-end'
|
|
51
|
+
| 'span-y-self-start'
|
|
52
|
+
| 'span-y-self-end'
|
|
53
|
+
| 'block-start'
|
|
54
|
+
| 'block-end'
|
|
55
|
+
| 'span-block-start'
|
|
56
|
+
| 'span-block-end'
|
|
57
|
+
| 'inline-start'
|
|
58
|
+
| 'inline-end'
|
|
59
|
+
| 'span-inline-start'
|
|
60
|
+
| 'span-inline-end'
|
|
61
|
+
| 'self-block-start'
|
|
62
|
+
| 'self-block-end'
|
|
63
|
+
| 'span-self-block-start'
|
|
64
|
+
| 'span-self-block-end'
|
|
65
|
+
| 'self-inline-start'
|
|
66
|
+
| 'self-inline-end'
|
|
67
|
+
| 'span-self-inline-start'
|
|
68
|
+
| 'span-self-inline-end'
|
|
69
|
+
| 'start'
|
|
70
|
+
| 'end'
|
|
71
|
+
| 'span-start'
|
|
72
|
+
| 'span-end'
|
|
73
|
+
| 'self-start'
|
|
74
|
+
| 'self-end'
|
|
75
|
+
| 'span-self-start'
|
|
76
|
+
| 'span-self-end'
|
|
77
|
+
|
|
78
|
+
type PositionTry =
|
|
79
|
+
| 'normal'
|
|
80
|
+
| 'flip-block'
|
|
81
|
+
| 'flip-inline'
|
|
82
|
+
| 'top'
|
|
83
|
+
| 'bottom'
|
|
84
|
+
| 'left'
|
|
85
|
+
| 'right'
|
|
86
|
+
| 'block-start'
|
|
87
|
+
| 'block-end'
|
|
88
|
+
| 'inline-start'
|
|
89
|
+
| 'inline-end'
|
|
90
|
+
| DashedIdent
|
|
91
|
+
|
|
92
|
+
export interface ModernCssProperties {
|
|
93
|
+
anchorName?: Globals | 'none' | DashedIdent | StringToMultiple<DashedIdent>
|
|
94
|
+
anchorScope?: Globals | 'none' | 'all' | DashedIdent | StringToMultiple<DashedIdent>
|
|
95
|
+
fieldSizing?: Globals | 'fixed' | 'content'
|
|
96
|
+
interpolateSize?: Globals | 'allow-keywords' | 'numeric-only'
|
|
97
|
+
positionAnchor?: Globals | 'auto' | DashedIdent
|
|
98
|
+
positionArea?: Globals | 'auto' | PositionAreaAxis | `${PositionAreaAxis} ${PositionAreaAxis}` | String
|
|
99
|
+
positionTry?: Globals | StringToMultiple<PositionTry> | String
|
|
100
|
+
positionTryFallback?: Globals | 'none' | StringToMultiple<PositionTry> | String
|
|
101
|
+
positionTryOrder?: Globals | 'normal' | 'most-width' | 'most-height' | 'most-block-size' | 'most-inline-size'
|
|
102
|
+
positionVisibility?: Globals | 'always' | 'anchors-visible' | 'no-overflow'
|
|
103
|
+
textWrapMode?: Globals | 'wrap' | 'nowrap'
|
|
104
|
+
textSpacingTrim?: Globals | 'normal' | 'space-all' | 'space-first' | 'trim-start'
|
|
105
|
+
textWrapStyle?: Globals | 'auto' | 'balance' | 'pretty' | 'stable'
|
|
106
|
+
}
|
|
107
|
+
|
|
24
108
|
export type CssProperty = keyof PropertiesFallback
|
|
25
109
|
|
|
26
|
-
export interface CssProperties extends PropertiesFallback<String | Number>, CssVarProperties {}
|
|
110
|
+
export interface CssProperties extends PropertiesFallback<String | Number>, CssVarProperties, ModernCssProperties {}
|
|
27
111
|
|
|
28
112
|
export interface CssKeyframes {
|
|
29
113
|
[name: string]: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.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": "24.0.0",
|
|
34
|
-
"@pandacss/extractor": "0.
|
|
34
|
+
"@pandacss/extractor": "0.53.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"dev": "tsx scripts/watch.ts",
|