@pandacss/types 0.0.0-dev-20230415104814 → 0.0.0-dev-20230415122135

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 +3 -1
  2. package/package.json +2 -2
package/dist/recipe.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import type { SystemStyleObject } from './system-types'
2
2
 
3
+ type Pretty<T> = T extends infer U ? { [K in keyof U]: U[K] } : never
4
+
3
5
  type StringToBoolean<T> = T extends 'true' | 'false' ? boolean : T
4
6
 
5
7
  export type RecipeVariantRecord = Record<string, Record<string, SystemStyleObject>>
@@ -10,7 +12,7 @@ export type RecipeSelection<T extends RecipeVariantRecord> = {
10
12
 
11
13
  export type RecipeVariantFn<T extends RecipeVariantRecord> = (props?: RecipeSelection<T>) => string
12
14
 
13
- export type RecipeVariantProps<T extends RecipeVariantFn<RecipeVariantRecord>> = Parameters<T>[0]
15
+ export type RecipeVariantProps<T extends RecipeVariantFn<RecipeVariantRecord>> = Pretty<Parameters<T>[0]>
14
16
 
15
17
  export type RecipeRuntimeFn<T extends RecipeVariantRecord> = RecipeVariantFn<T> & {
16
18
  variants: (keyof T)[]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.0.0-dev-20230415104814",
3
+ "version": "0.0.0-dev-20230415122135",
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-20230415104814"
19
+ "@pandacss/extractor": "0.0.0-dev-20230415122135"
20
20
  },
21
21
  "scripts": {
22
22
  "build": "tsx scripts/build.ts",