@pandacss/types 0.24.1 → 0.25.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/parser.d.ts CHANGED
@@ -20,11 +20,11 @@ export interface ParserResultInterface {
20
20
  toArray: () => Array<ResultItem>
21
21
  }
22
22
 
23
- export interface ShipJson {
23
+ export interface EncoderJson {
24
24
  schemaVersion: string
25
25
  styles: {
26
- atomic: string[]
27
- recipes: {
26
+ atomic?: string[]
27
+ recipes?: {
28
28
  [name: string]: string[]
29
29
  }
30
30
  }
package/dist/recipe.d.ts CHANGED
@@ -46,7 +46,7 @@ export type RecipeCompoundVariant<T> = T & {
46
46
  css: SystemStyleObject
47
47
  }
48
48
 
49
- export interface RecipeDefinition<T extends RecipeVariantRecord> {
49
+ export interface RecipeDefinition<T extends RecipeVariantRecord = RecipeVariantRecord> {
50
50
  /**
51
51
  * The base styles of the recipe.
52
52
  */
@@ -117,7 +117,10 @@ export type SlotRecipeCompoundVariant<S extends string, T> = T & {
117
117
  css: SlotRecord<S, SystemStyleObject>
118
118
  }
119
119
 
120
- export interface SlotRecipeDefinition<S extends string, T extends SlotRecipeVariantRecord<S>> {
120
+ export interface SlotRecipeDefinition<
121
+ S extends string = string,
122
+ T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,
123
+ > {
121
124
  /**
122
125
  * The parts/slots of the recipe.
123
126
  */
package/dist/shared.d.ts CHANGED
@@ -35,3 +35,5 @@ type Paths<T, Prefix extends string = '', Depth extends number = 0> = {
35
35
  }[keyof T]
36
36
 
37
37
  export type PathIn<T, Key extends keyof T> = Key extends string ? Paths<T[Key], `${Key}.`, 1> : never
38
+
39
+ export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>
@@ -32,9 +32,11 @@ export interface StaticCssOptions {
32
32
  /**
33
33
  * The css recipes to generate.
34
34
  */
35
- recipes?: {
36
- [recipe: string]: RecipeRule[]
37
- }
35
+ recipes?:
36
+ | '*'
37
+ | {
38
+ [recipe: string]: RecipeRule[]
39
+ }
38
40
  /**
39
41
  * The css patterns to generate.
40
42
  */
@@ -9,7 +9,7 @@ export interface StyleProps extends StyleResultObject {
9
9
 
10
10
  export interface StyleEntry {
11
11
  prop: string
12
- value: string
12
+ value: string | number | boolean
13
13
  cond: string
14
14
  recipe?: string
15
15
  slot?: string
@@ -43,17 +43,3 @@ export interface RecipeBaseResult extends GroupedResult {
43
43
  export interface GroupedStyleResultDetails extends Pick<AtomicStyleResult, 'hash' | 'entry' | 'conditions'> {
44
44
  result: StyleResultObject
45
45
  }
46
-
47
- export interface StyleDecoderInterface {
48
- classNames: Map<string, AtomicStyleResult | RecipeBaseResult>
49
- //
50
- results: {
51
- atomic: Set<AtomicStyleResult>
52
- recipes: Map<string, Set<AtomicStyleResult>>
53
- recipes_base: Map<string, Set<RecipeBaseResult>>
54
- }
55
- atomic: Set<AtomicStyleResult>
56
- //
57
- recipes: Map<string, Set<AtomicStyleResult>>
58
- recipes_base: Map<string, Set<RecipeBaseResult>>
59
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.24.1",
3
+ "version": "0.25.0",
4
4
  "description": "The types for css panda",
5
5
  "main": "dist/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",
@@ -30,7 +30,7 @@
30
30
  "hookable": "5.5.3",
31
31
  "ncp": "^2.0.0",
32
32
  "pkg-types": "1.0.3",
33
- "@pandacss/extractor": "0.24.1"
33
+ "@pandacss/extractor": "0.25.0"
34
34
  },
35
35
  "scripts": {
36
36
  "dev": "tsx scripts/watch.ts",