@pandacss/types 0.37.2 → 0.38.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/pattern.d.ts CHANGED
@@ -49,6 +49,10 @@ export interface PatternConfig<T extends PatternProperties = PatternProperties>
49
49
  * The css object this pattern will generate.
50
50
  */
51
51
  transform?: (props: InferProps<T>, helpers: PatternHelpers) => SystemStyleObject
52
+ /**
53
+ * Whether the pattern is deprecated.
54
+ */
55
+ deprecated?: boolean | string
52
56
  /**
53
57
  * The jsx element name this pattern will generate.
54
58
  */
package/dist/recipe.d.ts CHANGED
@@ -63,6 +63,10 @@ export interface RecipeDefinition<T extends RecipeVariantRecord = RecipeVariantR
63
63
  * The base styles of the recipe.
64
64
  */
65
65
  base?: SystemStyleObject
66
+ /**
67
+ * Whether the recipe is deprecated.
68
+ */
69
+ deprecated?: boolean | string
66
70
  /**
67
71
  * The multi-variant styles of the recipe.
68
72
  */
@@ -140,6 +144,10 @@ export interface SlotRecipeDefinition<
140
144
  * An optional class name that can be used to target slots in the DOM.
141
145
  */
142
146
  className?: string
147
+ /**
148
+ * Whether the recipe is deprecated.
149
+ */
150
+ deprecated?: boolean | string
143
151
  /**
144
152
  * The parts/slots of the recipe.
145
153
  */
@@ -65,7 +65,7 @@ export type CompositionStyleObject<Property extends string> = Nested<FilterStyle
65
65
  * Jsx style props
66
66
  * -----------------------------------------------------------------------------*/
67
67
  interface WithCss {
68
- css?: SystemStyleObject
68
+ css?: SystemStyleObject | SystemStyleObject[]
69
69
  }
70
70
  type StyleProps = SystemStyleObject & WithCss
71
71
 
package/dist/tokens.d.ts CHANGED
@@ -1,13 +1,11 @@
1
1
  import type { Recursive } from './shared'
2
2
 
3
- export type TokenStatus = 'deprecated' | 'experimental' | 'new'
4
-
5
3
  export interface Token<Value = any> {
6
4
  value: Value
7
5
  description?: string
8
6
  type?: string
7
+ deprecated?: boolean | string
9
8
  extensions?: {
10
- status?: TokenStatus
11
9
  [key: string]: any
12
10
  }
13
11
  }
package/dist/utility.d.ts CHANGED
@@ -64,6 +64,10 @@ export interface PropertyConfig {
64
64
  * The CSS semantic group this property belongs
65
65
  */
66
66
  group?: CssSemanticGroup
67
+ /**
68
+ * Whether this utility is deprecated or not.
69
+ */
70
+ deprecated?: boolean
67
71
  }
68
72
 
69
73
  export type CssSemanticGroup =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.37.2",
3
+ "version": "0.38.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.37.2"
34
+ "@pandacss/extractor": "0.38.0"
35
35
  },
36
36
  "scripts": {
37
37
  "dev": "tsx scripts/watch.ts",