@pandacss/types 0.20.1 → 0.21.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/config.d.ts CHANGED
@@ -137,7 +137,7 @@ interface FileSystemOptions {
137
137
  * }
138
138
  * ```
139
139
  */
140
- importMap?: OutdirImportMap
140
+ importMap?: string | OutdirImportMap
141
141
  /**
142
142
  * List of files glob to watch for changes.
143
143
  * @default []
package/dist/recipe.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { RecipeRule } from './static-css'
1
2
  import type { SystemStyleObject, DistributiveOmit, Pretty } from './system-types'
2
3
 
3
4
  type StringToBoolean<T> = T extends 'true' | 'false' ? boolean : T
@@ -62,6 +63,10 @@ export interface RecipeDefinition<T extends RecipeVariantRecord> {
62
63
  * The styles to apply when a combination of variants is selected.
63
64
  */
64
65
  compoundVariants?: Pretty<RecipeCompoundVariant<RecipeCompoundSelection<T>>>[]
66
+ /**
67
+ * Variants to pre-generate, will be include in the final `config.staticCss`
68
+ */
69
+ staticCss?: RecipeRule[]
65
70
  }
66
71
 
67
72
  export type RecipeCreatorFn = <T extends RecipeVariantRecord>(config: RecipeDefinition<T>) => RecipeRuntimeFn<T>
@@ -17,7 +17,7 @@ interface CssRule {
17
17
  responsive?: boolean
18
18
  }
19
19
 
20
- type RecipeRule =
20
+ export type RecipeRule =
21
21
  | '*'
22
22
  | ({
23
23
  conditions?: string[]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.20.1",
3
+ "version": "0.21.0",
4
4
  "description": "The types for css panda",
5
5
  "main": "dist/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",
@@ -24,7 +24,7 @@
24
24
  "hookable": "5.5.3",
25
25
  "ncp": "^2.0.0",
26
26
  "pkg-types": "1.0.3",
27
- "@pandacss/extractor": "0.20.1"
27
+ "@pandacss/extractor": "0.21.0"
28
28
  },
29
29
  "scripts": {
30
30
  "dev": "tsx scripts/watch.ts",