@pandacss/studio 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/studio",
3
- "version": "0.42.0",
3
+ "version": "0.43.0",
4
4
  "description": "The automated token documentation for Panda CSS",
5
5
  "main": "dist/studio.js",
6
6
  "module": "dist/studio.mjs",
@@ -48,12 +48,12 @@
48
48
  "react": "18.2.0",
49
49
  "react-dom": "18.2.0",
50
50
  "vite": "5.2.13",
51
- "@pandacss/config": "0.42.0",
52
- "@pandacss/logger": "0.42.0",
53
- "@pandacss/shared": "0.42.0",
54
- "@pandacss/token-dictionary": "0.42.0",
55
- "@pandacss/astro-plugin-studio": "0.42.0",
56
- "@pandacss/types": "0.42.0"
51
+ "@pandacss/config": "0.43.0",
52
+ "@pandacss/logger": "0.43.0",
53
+ "@pandacss/shared": "0.43.0",
54
+ "@pandacss/token-dictionary": "0.43.0",
55
+ "@pandacss/types": "0.43.0",
56
+ "@pandacss/astro-plugin-studio": "0.43.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/react": "18.2.55",
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable */
2
2
  import type { ConditionalValue, Nested } from './conditions';
3
- import type { PropertiesFallback } from './csstype';
3
+ import type { AtRule, PropertiesFallback } from './csstype';
4
4
  import type { SystemProperties, CssVarProperties } from './style-props';
5
5
 
6
6
  type String = string & {}
@@ -56,12 +56,33 @@ export interface ExtendableGlobalStyleObject {
56
56
  extend?: GlobalStyleObject | undefined
57
57
  }
58
58
 
59
+ /* -----------------------------------------------------------------------------
60
+ * Composition (text styles, layer styles)
61
+ * -----------------------------------------------------------------------------*/
62
+
59
63
  type FilterStyleObject<P extends string> = {
60
64
  [K in P]?: K extends keyof SystemStyleObject ? SystemStyleObject[K] : unknown
61
65
  }
62
66
 
63
67
  export type CompositionStyleObject<Property extends string> = Nested<FilterStyleObject<Property> & CssVarProperties>
64
68
 
69
+ /* -----------------------------------------------------------------------------
70
+ * Font face
71
+ * -----------------------------------------------------------------------------*/
72
+
73
+ export type GlobalFontfaceRule = Omit<AtRule.FontFaceFallback, 'src'> & Required<Pick<AtRule.FontFaceFallback, 'src'>>
74
+
75
+ export type FontfaceRule = Omit<GlobalFontfaceRule, 'fontFamily'>
76
+
77
+ export interface GlobalFontface {
78
+ [name: string]: FontfaceRule | FontfaceRule[]
79
+ }
80
+
81
+ export interface ExtendableGlobalFontface {
82
+ [name: string]: FontfaceRule | FontfaceRule[] | GlobalFontface | undefined
83
+ extend?: GlobalFontface | undefined
84
+ }
85
+
65
86
  /* -----------------------------------------------------------------------------
66
87
  * Jsx style props
67
88
  * -----------------------------------------------------------------------------*/