@pandacss/types 0.42.0 → 0.43.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/analyze-report.d.ts +1 -1
- package/dist/config.d.ts +14 -1
- package/dist/system-types.d.ts +22 -1
- package/package.json +2 -2
package/dist/analyze-report.d.ts
CHANGED
|
@@ -133,7 +133,7 @@ interface FileSizes {
|
|
|
133
133
|
export interface ReportSnapshot {
|
|
134
134
|
schemaVersion: string
|
|
135
135
|
details: ReportDetails
|
|
136
|
-
config: Omit<Config, 'globalCss'>
|
|
136
|
+
config: Omit<Config, 'globalCss' | 'globalFontface'>
|
|
137
137
|
|
|
138
138
|
propByIndex: Map<PropertyReportItem['index'], PropertyReportItem>
|
|
139
139
|
componentByIndex: Map<ComponentReportItem['componentIndex'], ComponentReportItem>
|
package/dist/config.d.ts
CHANGED
|
@@ -4,7 +4,12 @@ import type { PandaHooks } from './hooks'
|
|
|
4
4
|
import type { PatternConfig } from './pattern'
|
|
5
5
|
import type { Keys, LiteralUnion, PathIn, RequiredBy } from './shared'
|
|
6
6
|
import type { StaticCssOptions } from './static-css'
|
|
7
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
ExtendableGlobalFontface,
|
|
9
|
+
ExtendableGlobalStyleObject,
|
|
10
|
+
GlobalFontface,
|
|
11
|
+
GlobalStyleObject,
|
|
12
|
+
} from './system-types'
|
|
8
13
|
import type { ExtendableTheme, Theme } from './theme'
|
|
9
14
|
import type { ExtendableUtilityConfig, UtilityConfig } from './utility'
|
|
10
15
|
|
|
@@ -52,6 +57,10 @@ export interface PresetCore {
|
|
|
52
57
|
* The global styles for your project.
|
|
53
58
|
*/
|
|
54
59
|
globalCss: GlobalStyleObject
|
|
60
|
+
/**
|
|
61
|
+
* The global fontface for your project.
|
|
62
|
+
*/
|
|
63
|
+
globalFontface?: GlobalFontface
|
|
55
64
|
/**
|
|
56
65
|
* Used to generate css utility classes for your project.
|
|
57
66
|
*/
|
|
@@ -147,6 +156,10 @@ export interface ExtendableOptions {
|
|
|
147
156
|
* The global styles for your project.
|
|
148
157
|
*/
|
|
149
158
|
globalCss?: ExtendableGlobalStyleObject
|
|
159
|
+
/**
|
|
160
|
+
* The global fontface for your project.
|
|
161
|
+
*/
|
|
162
|
+
globalFontface?: ExtendableGlobalFontface
|
|
150
163
|
/**
|
|
151
164
|
* Used to generate css utility classes for your project.
|
|
152
165
|
*/
|
package/dist/system-types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ConditionalValue, Nested } from './conditions'
|
|
2
|
-
import type { PropertiesFallback } from './csstype'
|
|
2
|
+
import type { AtRule, PropertiesFallback } from './csstype'
|
|
3
3
|
import type { SystemProperties, CssVarProperties } from './style-props'
|
|
4
4
|
|
|
5
5
|
type String = string & {}
|
|
@@ -55,12 +55,33 @@ export interface ExtendableGlobalStyleObject {
|
|
|
55
55
|
extend?: GlobalStyleObject | undefined
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
/* -----------------------------------------------------------------------------
|
|
59
|
+
* Composition (text styles, layer styles)
|
|
60
|
+
* -----------------------------------------------------------------------------*/
|
|
61
|
+
|
|
58
62
|
type FilterStyleObject<P extends string> = {
|
|
59
63
|
[K in P]?: K extends keyof SystemStyleObject ? SystemStyleObject[K] : unknown
|
|
60
64
|
}
|
|
61
65
|
|
|
62
66
|
export type CompositionStyleObject<Property extends string> = Nested<FilterStyleObject<Property> & CssVarProperties>
|
|
63
67
|
|
|
68
|
+
/* -----------------------------------------------------------------------------
|
|
69
|
+
* Font face
|
|
70
|
+
* -----------------------------------------------------------------------------*/
|
|
71
|
+
|
|
72
|
+
export type GlobalFontfaceRule = Omit<AtRule.FontFaceFallback, 'src'> & Required<Pick<AtRule.FontFaceFallback, 'src'>>
|
|
73
|
+
|
|
74
|
+
export type FontfaceRule = Omit<GlobalFontfaceRule, 'fontFamily'>
|
|
75
|
+
|
|
76
|
+
export interface GlobalFontface {
|
|
77
|
+
[name: string]: FontfaceRule | FontfaceRule[]
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface ExtendableGlobalFontface {
|
|
81
|
+
[name: string]: FontfaceRule | FontfaceRule[] | GlobalFontface | undefined
|
|
82
|
+
extend?: GlobalFontface | undefined
|
|
83
|
+
}
|
|
84
|
+
|
|
64
85
|
/* -----------------------------------------------------------------------------
|
|
65
86
|
* Jsx style props
|
|
66
87
|
* -----------------------------------------------------------------------------*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.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": "21.0.1",
|
|
34
|
-
"@pandacss/extractor": "0.
|
|
34
|
+
"@pandacss/extractor": "0.43.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"dev": "tsx scripts/watch.ts",
|