@pandacss/types 0.0.0-dev-20230122145009 → 0.0.0-dev-20230125073613
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 +4 -1
- package/dist/config.d.ts +8 -4
- package/dist/system-types.d.ts +2 -2
- package/dist/tokens.d.ts +9 -0
- package/dist/utility.d.ts +7 -1
- package/package.json +1 -1
package/dist/composition.d.ts
CHANGED
package/dist/config.d.ts
CHANGED
|
@@ -18,6 +18,14 @@ export type Config<
|
|
|
18
18
|
Breakpoints extends Dict = Dict,
|
|
19
19
|
Tokens extends PartialTokens = PartialTokens,
|
|
20
20
|
> = {
|
|
21
|
+
/**
|
|
22
|
+
* Whether to emit the artifacts to `node_modules` as a package.
|
|
23
|
+
*/
|
|
24
|
+
emitPackage?: boolean
|
|
25
|
+
/**
|
|
26
|
+
* The namespace prefix for the generated css classes and css variables.
|
|
27
|
+
*/
|
|
28
|
+
prefix?: string
|
|
21
29
|
/**
|
|
22
30
|
* Whether to update the .gitignore file.
|
|
23
31
|
*/
|
|
@@ -64,10 +72,6 @@ export type Config<
|
|
|
64
72
|
* The output directory.
|
|
65
73
|
*/
|
|
66
74
|
outdir?: string
|
|
67
|
-
/**
|
|
68
|
-
* The prefix for the css variables.
|
|
69
|
-
*/
|
|
70
|
-
cssVarPrefix?: string
|
|
71
75
|
/**
|
|
72
76
|
* The root selector for the css variables.
|
|
73
77
|
* @default ':where(:host, :root)'
|
package/dist/system-types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ConditionalValue, Conditions, Nested } from './conditions'
|
|
2
2
|
import type { PropertiesFallback } from './csstype'
|
|
3
3
|
import type { SystemProperties } from './style-props'
|
|
4
4
|
|
|
@@ -56,7 +56,7 @@ export type GlobalStyleObject = {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
export type CompositionStyleObject<Property extends string> = Nested<{
|
|
59
|
-
[K in Property]?:
|
|
59
|
+
[K in Property]?: K extends keyof SystemStyleObject ? SystemStyleObject[K] : unknown
|
|
60
60
|
}>
|
|
61
61
|
|
|
62
62
|
/* -----------------------------------------------------------------------------
|
package/dist/tokens.d.ts
CHANGED
|
@@ -60,6 +60,13 @@ type Gradient = {
|
|
|
60
60
|
}>
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
type Asset =
|
|
64
|
+
| {
|
|
65
|
+
type: 'url' | 'data'
|
|
66
|
+
value: string
|
|
67
|
+
}
|
|
68
|
+
| { type: 'svg'; path: string }
|
|
69
|
+
|
|
63
70
|
export type TokenDataTypes = {
|
|
64
71
|
zIndex: number
|
|
65
72
|
opacity: number
|
|
@@ -79,6 +86,8 @@ export type TokenDataTypes = {
|
|
|
79
86
|
animations: string
|
|
80
87
|
blurs: string
|
|
81
88
|
gradients: string | Gradient
|
|
89
|
+
screens: string
|
|
90
|
+
assets: string | Asset
|
|
82
91
|
}
|
|
83
92
|
|
|
84
93
|
export type Tokens = {
|
package/dist/utility.d.ts
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import type { LiteralUnion } from './shared'
|
|
2
2
|
import type { NativeCssProperty, NestedCssProperties } from './system-types'
|
|
3
|
+
import type { TokenCategory } from './tokens'
|
|
3
4
|
|
|
4
5
|
type Getter = (path: string) => any
|
|
5
6
|
|
|
6
7
|
type ThemeFn = (token: Getter) => Record<string, string>
|
|
7
8
|
|
|
8
|
-
export type PropertyValues =
|
|
9
|
+
export type PropertyValues =
|
|
10
|
+
| LiteralUnion<TokenCategory>
|
|
11
|
+
| string[]
|
|
12
|
+
| { type: string }
|
|
13
|
+
| Record<string, string>
|
|
14
|
+
| ThemeFn
|
|
9
15
|
|
|
10
16
|
export type PropertyTransform = (value: any, token: Getter) => NestedCssProperties | undefined
|
|
11
17
|
|