@pandacss/types 0.0.0-dev-20230505100426 → 0.0.0-dev-20230505185444
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/pattern.d.ts +4 -4
- package/dist/prop-type.d.ts +3 -3
- package/dist/system-types.d.ts +2 -4
- package/dist/utility.d.ts +3 -3
- package/package.json +2 -2
package/dist/pattern.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CssProperty, SystemStyleObject } from './system-types'
|
|
2
2
|
import type { TokenCategory } from './tokens'
|
|
3
3
|
|
|
4
4
|
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:
|
|
8
|
+
| { type: 'property'; value: CssProperty }
|
|
9
9
|
| { type: 'enum'; value: string[] }
|
|
10
|
-
| { type: 'token'; value: TokenCategory; property?:
|
|
10
|
+
| { type: 'token'; value: TokenCategory; property?: CssProperty }
|
|
11
11
|
| { type: 'string' | 'boolean' | 'number' }
|
|
12
12
|
|
|
13
13
|
export type PatternHelpers = {
|
|
@@ -48,7 +48,7 @@ export type PatternConfig<T> = {
|
|
|
48
48
|
* @experimental
|
|
49
49
|
* Disallow certain css properties for this pattern
|
|
50
50
|
*/
|
|
51
|
-
blocklist?: LiteralUnion<
|
|
51
|
+
blocklist?: LiteralUnion<CssProperty>[]
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
export type AnyPatternConfig = PatternConfig<PatternProperty>
|
package/dist/prop-type.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ConditionalValue } from './conditions'
|
|
2
|
-
import type {
|
|
2
|
+
import type { CssProperties } from './system-types'
|
|
3
3
|
|
|
4
4
|
/* -----------------------------------------------------------------------------
|
|
5
5
|
* Shadowed export (in CLI): DO NOT REMOVE
|
|
@@ -9,6 +9,6 @@ export type PropertyTypes = {}
|
|
|
9
9
|
|
|
10
10
|
export type PropertyValue<K extends string> = K extends keyof PropertyTypes
|
|
11
11
|
? ConditionalValue<PropertyTypes[K]>
|
|
12
|
-
: K extends keyof
|
|
13
|
-
? ConditionalValue<
|
|
12
|
+
: K extends keyof CssProperties
|
|
13
|
+
? ConditionalValue<CssProperties[K]>
|
|
14
14
|
: never
|
package/dist/system-types.d.ts
CHANGED
|
@@ -9,11 +9,9 @@ type Number = number & {}
|
|
|
9
9
|
* Native css properties
|
|
10
10
|
* -----------------------------------------------------------------------------*/
|
|
11
11
|
|
|
12
|
-
export type
|
|
12
|
+
export type CssProperty = keyof PropertiesFallback
|
|
13
13
|
|
|
14
|
-
export type
|
|
15
|
-
|
|
16
|
-
export type CssProperties = NativeCssProperties & CssVarProperties
|
|
14
|
+
export type CssProperties = PropertiesFallback<String | Number> & CssVarProperties
|
|
17
15
|
|
|
18
16
|
export type CssKeyframes = {
|
|
19
17
|
[name: string]: {
|
package/dist/utility.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LiteralUnion } from './shared'
|
|
2
|
-
import type {
|
|
2
|
+
import type { CssProperty, NestedCssProperties } from './system-types'
|
|
3
3
|
import type { TokenCategory } from './tokens'
|
|
4
4
|
|
|
5
5
|
type Getter = (path: string) => any
|
|
@@ -36,7 +36,7 @@ export type PropertyConfig = {
|
|
|
36
36
|
/**
|
|
37
37
|
* The css property this utility maps to.
|
|
38
38
|
*/
|
|
39
|
-
property?:
|
|
39
|
+
property?: CssProperty
|
|
40
40
|
/**
|
|
41
41
|
* The shorthand of the property.
|
|
42
42
|
*/
|
|
@@ -44,5 +44,5 @@ export type PropertyConfig = {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export type UtilityConfig = {
|
|
47
|
-
[property in LiteralUnion<
|
|
47
|
+
[property in LiteralUnion<CssProperty>]?: PropertyConfig
|
|
48
48
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/types",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20230505185444",
|
|
4
4
|
"description": "The types for css panda",
|
|
5
5
|
"main": "dist/index.d.ts",
|
|
6
6
|
"author": "Segun Adebayo <joseshegs@gmail.com>",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"csstype": "3.1.2"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@pandacss/extractor": "0.0.0-dev-
|
|
19
|
+
"@pandacss/extractor": "0.0.0-dev-20230505185444"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
22
|
"build": "tsx scripts/build.ts",
|