@pandacss/types 2.0.0-beta.14 → 2.0.0-beta.15
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 +9 -38
- package/dist/global-vars.d.ts +39 -0
- package/dist/index.d.ts +1 -0
- package/dist/system-types.d.ts +3 -1
- package/dist/theme.d.ts +7 -1
- package/dist/utility.d.ts +7 -0
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { TSConfig } from 'pkg-types'
|
|
|
2
2
|
import type { Conditions, ExtendableConditions } from './conditions'
|
|
3
3
|
import type { HookRegistry } from './hooks'
|
|
4
4
|
import type { PatternConfig } from './pattern'
|
|
5
|
-
import type { Keys,
|
|
5
|
+
import type { Keys, PathIn, RequiredBy } from './shared'
|
|
6
6
|
import type { StaticCssOptions } from './static-css'
|
|
7
7
|
import type {
|
|
8
8
|
ExtendableGlobalFontface,
|
|
@@ -12,6 +12,7 @@ import type {
|
|
|
12
12
|
SystemStyleObject,
|
|
13
13
|
} from './system-types'
|
|
14
14
|
import type { ExtendableTheme, Theme } from './theme'
|
|
15
|
+
import type { CssPropertyDefinition, GlobalVarsDefinition } from './global-vars'
|
|
15
16
|
import type { ExtendableUtilityConfig, UtilityConfig } from './utility'
|
|
16
17
|
|
|
17
18
|
export type { TSConfig }
|
|
@@ -74,43 +75,7 @@ interface ExtendableStaticCssOptions extends StaticCssOptions {
|
|
|
74
75
|
extend?: StaticCssOptions | undefined
|
|
75
76
|
}
|
|
76
77
|
|
|
77
|
-
export type CssPropertySyntax
|
|
78
|
-
| '*'
|
|
79
|
-
| '<length>'
|
|
80
|
-
| '<number>'
|
|
81
|
-
| '<percentage>'
|
|
82
|
-
| '<length-percentage>'
|
|
83
|
-
| '<color>'
|
|
84
|
-
| '<image>'
|
|
85
|
-
| '<url>'
|
|
86
|
-
| '<integer>'
|
|
87
|
-
| '<angle>'
|
|
88
|
-
| '<time>'
|
|
89
|
-
| '<resolution>'
|
|
90
|
-
| '<transform-function>'
|
|
91
|
-
| '<length> | <percentage>'
|
|
92
|
-
|
|
93
|
-
export interface CssPropertyDefinition {
|
|
94
|
-
/**
|
|
95
|
-
* Controls whether the custom property registration specified by @property inherits by default.
|
|
96
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/@property/inherits
|
|
97
|
-
*/
|
|
98
|
-
inherits: boolean
|
|
99
|
-
/**
|
|
100
|
-
* Sets the initial value for the property.
|
|
101
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/@property/initial-value
|
|
102
|
-
*/
|
|
103
|
-
initialValue?: string
|
|
104
|
-
/**
|
|
105
|
-
* Describes the allowable syntax for the property.
|
|
106
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/@property/syntax
|
|
107
|
-
*/
|
|
108
|
-
syntax: LiteralUnion<CssPropertySyntax>
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export interface GlobalVarsDefinition {
|
|
112
|
-
[key: string]: string | CssPropertyDefinition
|
|
113
|
-
}
|
|
78
|
+
export type { CssPropertyDefinition, CssPropertySyntax, GlobalVarsDefinition } from './global-vars'
|
|
114
79
|
|
|
115
80
|
interface ExtendableGlobalVars {
|
|
116
81
|
[key: string]: string | CssPropertyDefinition | GlobalVarsDefinition | undefined
|
|
@@ -355,6 +320,12 @@ export interface OptimizeOptions {
|
|
|
355
320
|
* Off by default. Namespace / side-effect imports still hydrate everything.
|
|
356
321
|
*/
|
|
357
322
|
treeshakeDesignSystem?: boolean
|
|
323
|
+
/**
|
|
324
|
+
* Also seed `@property` registrations as plain declarations, for engines that ignore
|
|
325
|
+
* `@property` (Safari < 16.4, Firefox < 128) and would otherwise drop any declaration
|
|
326
|
+
* reading an unregistered variable. Off by default — modern engines don't need it.
|
|
327
|
+
*/
|
|
328
|
+
propertyFallback?: boolean
|
|
358
329
|
}
|
|
359
330
|
|
|
360
331
|
interface CodegenOptions {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { LiteralUnion } from './shared'
|
|
2
|
+
|
|
3
|
+
export type CssPropertySyntax =
|
|
4
|
+
| '*'
|
|
5
|
+
| '<length>'
|
|
6
|
+
| '<number>'
|
|
7
|
+
| '<percentage>'
|
|
8
|
+
| '<length-percentage>'
|
|
9
|
+
| '<color>'
|
|
10
|
+
| '<image>'
|
|
11
|
+
| '<url>'
|
|
12
|
+
| '<integer>'
|
|
13
|
+
| '<angle>'
|
|
14
|
+
| '<time>'
|
|
15
|
+
| '<resolution>'
|
|
16
|
+
| '<transform-function>'
|
|
17
|
+
| '<length> | <percentage>'
|
|
18
|
+
|
|
19
|
+
export interface CssPropertyDefinition {
|
|
20
|
+
/**
|
|
21
|
+
* Controls whether the custom property registration specified by @property inherits by default.
|
|
22
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/@property/inherits
|
|
23
|
+
*/
|
|
24
|
+
inherits: boolean
|
|
25
|
+
/**
|
|
26
|
+
* Sets the initial value for the property.
|
|
27
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/@property/initial-value
|
|
28
|
+
*/
|
|
29
|
+
initialValue?: string
|
|
30
|
+
/**
|
|
31
|
+
* Describes the allowable syntax for the property.
|
|
32
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/@property/syntax
|
|
33
|
+
*/
|
|
34
|
+
syntax: LiteralUnion<CssPropertySyntax>
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface GlobalVarsDefinition {
|
|
38
|
+
[key: string]: string | CssPropertyDefinition
|
|
39
|
+
}
|
package/dist/index.d.ts
CHANGED
package/dist/system-types.d.ts
CHANGED
|
@@ -96,7 +96,9 @@ export interface ViewTransitionStyleObject {
|
|
|
96
96
|
new?: SystemStyleObject
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
export type
|
|
99
|
+
export type ViewTransitions = Record<string, ViewTransitionStyleObject>
|
|
100
|
+
|
|
101
|
+
export type ViewTransitionFn = (options: ViewTransitionStyleObject | string) => string
|
|
100
102
|
|
|
101
103
|
export interface GlobalStyleObject {
|
|
102
104
|
[selector: string]: SystemStyleObject
|
package/dist/theme.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AnimationStyles, LayerStyles, TextStyles } from './composition'
|
|
2
2
|
import type { RecipeConfig, SlotRecipeConfig } from './recipe'
|
|
3
|
-
import type { CssKeyframes } from './system-types'
|
|
3
|
+
import type { CssKeyframes, ViewTransitions } from './system-types'
|
|
4
4
|
import type { SemanticTokens, Tokens } from './tokens'
|
|
5
5
|
|
|
6
6
|
export interface ColorPaletteOptions {
|
|
@@ -50,6 +50,12 @@ export interface Theme {
|
|
|
50
50
|
* The animation styles for your project.
|
|
51
51
|
*/
|
|
52
52
|
animationStyles?: AnimationStyles
|
|
53
|
+
/**
|
|
54
|
+
* Named View Transition bags. Call `viewTransition('slide')` to use one.
|
|
55
|
+
* Panda emits the shared `::view-transition-*` CSS; you still set unique
|
|
56
|
+
* `view-transition-name` values at runtime.
|
|
57
|
+
*/
|
|
58
|
+
viewTransitions?: ViewTransitions
|
|
53
59
|
/**
|
|
54
60
|
* Multi-variant style definitions for your project.
|
|
55
61
|
* Useful for defining component styles.
|
package/dist/utility.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { GlobalVarsDefinition } from './global-vars'
|
|
1
2
|
import type { LiteralUnion } from './shared'
|
|
2
3
|
import type { CssProperty, NestedCssProperties } from './system-types'
|
|
3
4
|
import type { Token, TokenCategory } from './tokens'
|
|
@@ -68,6 +69,11 @@ export interface PropertyConfig {
|
|
|
68
69
|
* Whether this utility is deprecated or not.
|
|
69
70
|
*/
|
|
70
71
|
deprecated?: boolean
|
|
72
|
+
/**
|
|
73
|
+
* `@property` registrations for the CSS variables this utility writes. Merged into the
|
|
74
|
+
* config-level `globalVars`, and pruned when the stylesheet never references them.
|
|
75
|
+
*/
|
|
76
|
+
globalVars?: GlobalVarsDefinition
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
export type CssSemanticGroup =
|
|
@@ -88,6 +94,7 @@ export type CssSemanticGroup =
|
|
|
88
94
|
| 'Layout'
|
|
89
95
|
| 'List'
|
|
90
96
|
| 'Margin'
|
|
97
|
+
| 'Mask'
|
|
91
98
|
| 'Other'
|
|
92
99
|
| 'Padding'
|
|
93
100
|
| 'Position'
|