@pandacss/types 0.16.0 → 0.17.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 +1 -5
- package/dist/config.d.ts +1 -1
- package/dist/index.d.ts +16 -33
- package/dist/shared.d.ts +6 -4
- package/dist/system-types.d.ts +12 -6
- package/package.json +2 -2
package/dist/composition.d.ts
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import type { CompositionStyleObject } from './system-types'
|
|
2
|
+
import type { Token } from './tokens'
|
|
2
3
|
|
|
3
4
|
interface Recursive<T> {
|
|
4
5
|
[key: string]: Recursive<T> | T
|
|
5
6
|
}
|
|
6
7
|
|
|
7
|
-
export interface Token<Value = any> {
|
|
8
|
-
value: Value
|
|
9
|
-
description?: string
|
|
10
|
-
}
|
|
11
|
-
|
|
12
8
|
/* -----------------------------------------------------------------------------
|
|
13
9
|
* Text styles
|
|
14
10
|
* -----------------------------------------------------------------------------*/
|
package/dist/config.d.ts
CHANGED
|
@@ -211,7 +211,7 @@ interface CssgenOptions {
|
|
|
211
211
|
* The namespace prefix for the generated css classes and css variables.
|
|
212
212
|
* @default ''
|
|
213
213
|
*/
|
|
214
|
-
prefix?: string | { cssVar
|
|
214
|
+
prefix?: string | { cssVar?: string; className?: string }
|
|
215
215
|
/**
|
|
216
216
|
* The value separator used in the generated class names.
|
|
217
217
|
* @default '_'
|
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,16 @@
|
|
|
1
|
-
export type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export type
|
|
11
|
-
export type
|
|
12
|
-
export type
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
UserConfig,
|
|
18
|
-
TSConfig,
|
|
19
|
-
CascadeLayers,
|
|
20
|
-
OutdirImportMap,
|
|
21
|
-
} from './config'
|
|
22
|
-
export type { ConfigResultWithHooks, PandaHooks, PandaHookable } from './hooks'
|
|
23
|
-
export type { ParserResultType, ResultItem } from './parser'
|
|
24
|
-
export type { Part, Parts } from './parts'
|
|
25
|
-
export type { PatternConfig, PatternHelpers, PatternProperty } from './pattern'
|
|
26
|
-
export type { RecipeConfig, RecipeVariantRecord, SlotRecipeConfig, SlotRecipeVariantRecord } from './recipe'
|
|
27
|
-
export type { Runtime } from './runtime'
|
|
28
|
-
export type { AnyFunction, Artifact, Dict, RequiredBy } from './shared'
|
|
29
|
-
export type { StaticCssOptions } from './static-css'
|
|
30
|
-
export type { CssKeyframes, GlobalStyleObject, SystemStyleObject } from './system-types'
|
|
31
|
-
export type { Theme } from './theme'
|
|
32
|
-
export type { SemanticToken, SemanticTokens, Token, TokenCategory, TokenDataTypes, Tokens } from './tokens'
|
|
33
|
-
export type { PropertyConfig, PropertyTransform, PropertyValues, UtilityConfig } from './utility'
|
|
1
|
+
export type * from './analyze-report'
|
|
2
|
+
export type * from './composition'
|
|
3
|
+
export type * from './conditions'
|
|
4
|
+
export type * from './config'
|
|
5
|
+
export type * from './hooks'
|
|
6
|
+
export type * from './parser'
|
|
7
|
+
export type * from './parts'
|
|
8
|
+
export type * from './pattern'
|
|
9
|
+
export type * from './recipe'
|
|
10
|
+
export type * from './runtime'
|
|
11
|
+
export type * from './shared'
|
|
12
|
+
export type * from './static-css'
|
|
13
|
+
export type * from './system-types'
|
|
14
|
+
export type * from './theme'
|
|
15
|
+
export type * from './tokens'
|
|
16
|
+
export type * from './utility'
|
package/dist/shared.d.ts
CHANGED
|
@@ -14,10 +14,12 @@ export type AnyFunction<T = any> = (...args: T[]) => any
|
|
|
14
14
|
|
|
15
15
|
type Nullable<T> = T | null | undefined
|
|
16
16
|
|
|
17
|
+
export interface ArtifactContent {
|
|
18
|
+
file: string
|
|
19
|
+
code: string | undefined
|
|
20
|
+
}
|
|
21
|
+
|
|
17
22
|
export type Artifact = Nullable<{
|
|
18
23
|
dir?: string[]
|
|
19
|
-
files:
|
|
20
|
-
file: string
|
|
21
|
-
code: string | undefined
|
|
22
|
-
}>
|
|
24
|
+
files: ArtifactContent[]
|
|
23
25
|
}>
|
package/dist/system-types.d.ts
CHANGED
|
@@ -5,6 +5,18 @@ import type { SystemProperties, CssVarProperties } from './style-props'
|
|
|
5
5
|
type String = string & {}
|
|
6
6
|
type Number = number & {}
|
|
7
7
|
|
|
8
|
+
export type Pretty<T> = { [K in keyof T]: T[K] } & {}
|
|
9
|
+
|
|
10
|
+
export type DistributiveOmit<T, K extends keyof any> = T extends unknown ? Omit<T, K> : never
|
|
11
|
+
|
|
12
|
+
export type DistributiveUnion<T, U> = {
|
|
13
|
+
[K in keyof T]: K extends keyof U ? U[K] | T[K] : T[K]
|
|
14
|
+
} & DistributiveOmit<U, keyof T>
|
|
15
|
+
|
|
16
|
+
export type Assign<T, U> = {
|
|
17
|
+
[K in keyof T]: K extends keyof U ? U[K] : T[K]
|
|
18
|
+
} & U
|
|
19
|
+
|
|
8
20
|
/* -----------------------------------------------------------------------------
|
|
9
21
|
* Native css properties
|
|
10
22
|
* -----------------------------------------------------------------------------*/
|
|
@@ -61,12 +73,6 @@ type StyleProps = SystemProperties & MinimalNested<SystemStyleObject>
|
|
|
61
73
|
|
|
62
74
|
export type JsxStyleProps = StyleProps & WithCss
|
|
63
75
|
|
|
64
|
-
export type DistributiveOmit<T, K extends keyof any> = T extends unknown ? Omit<T, K> : never
|
|
65
|
-
|
|
66
|
-
export type Assign<T, U> = {
|
|
67
|
-
[K in keyof T]: K extends keyof U ? U[K] : T[K]
|
|
68
|
-
} & U
|
|
69
|
-
|
|
70
76
|
export interface PatchedHTMLProps {
|
|
71
77
|
htmlWidth?: string | number
|
|
72
78
|
htmlHeight?: string | number
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "The types for css panda",
|
|
5
5
|
"main": "dist/index.d.ts",
|
|
6
6
|
"author": "Segun Adebayo <joseshegs@gmail.com>",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"hookable": "5.5.3",
|
|
18
18
|
"ncp": "^2.0.0",
|
|
19
19
|
"pkg-types": "1.0.3",
|
|
20
|
-
"@pandacss/extractor": "0.
|
|
20
|
+
"@pandacss/extractor": "0.17.0"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "tsx scripts/build.ts",
|