@pandacss/types 0.0.0-dev-20230602184758 → 0.0.0-dev-20230603163205

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.
Files changed (2) hide show
  1. package/dist/recipe.d.ts +7 -1
  2. package/package.json +2 -2
package/dist/recipe.d.ts CHANGED
@@ -14,8 +14,14 @@ export type RecipeVariantFn<T extends RecipeVariantRecord> = (props?: RecipeSele
14
14
 
15
15
  export type RecipeVariantProps<T extends RecipeVariantFn<RecipeVariantRecord>> = Pretty<Parameters<T>[0]>
16
16
 
17
+ type RecipeVariantMap<T extends RecipeVariantRecord> = {
18
+ [K in keyof T]: Array<keyof T[K]>
19
+ }
20
+
17
21
  export type RecipeRuntimeFn<T extends RecipeVariantRecord> = RecipeVariantFn<T> & {
18
- variants: (keyof T)[]
22
+ __type: RecipeSelection<T>
23
+ variantKeys: (keyof T)[]
24
+ variantMap: RecipeVariantMap<T>
19
25
  resolve: (props: RecipeSelection<T>) => SystemStyleObject
20
26
  config: RecipeConfig<T>
21
27
  splitVariantProps<Props extends RecipeSelection<T>>(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.0.0-dev-20230602184758",
3
+ "version": "0.0.0-dev-20230603163205",
4
4
  "description": "The types for css panda",
5
5
  "main": "dist/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",
@@ -16,7 +16,7 @@
16
16
  "csstype": "3.1.2"
17
17
  },
18
18
  "dependencies": {
19
- "@pandacss/extractor": "0.0.0-dev-20230602184758"
19
+ "@pandacss/extractor": "0.0.0-dev-20230603163205"
20
20
  },
21
21
  "scripts": {
22
22
  "build": "tsx scripts/build.ts",