@pandacss/studio 0.0.0-dev-20240211191317 → 0.0.0-dev-20240211205914
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/studio",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20240211205914",
|
|
4
4
|
"description": "The automated token documentation for Panda CSS",
|
|
5
5
|
"main": "dist/studio.js",
|
|
6
6
|
"module": "dist/studio.mjs",
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"react": "18.2.0",
|
|
49
49
|
"react-dom": "18.2.0",
|
|
50
50
|
"vite": "5.0.12",
|
|
51
|
-
"@pandacss/config": "0.0.0-dev-
|
|
52
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
53
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
54
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
55
|
-
"@pandacss/types": "0.0.0-dev-
|
|
56
|
-
"@pandacss/astro-plugin-studio": "0.0.0-dev-
|
|
51
|
+
"@pandacss/config": "0.0.0-dev-20240211205914",
|
|
52
|
+
"@pandacss/logger": "0.0.0-dev-20240211205914",
|
|
53
|
+
"@pandacss/shared": "0.0.0-dev-20240211205914",
|
|
54
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20240211205914",
|
|
55
|
+
"@pandacss/types": "0.0.0-dev-20240211205914",
|
|
56
|
+
"@pandacss/astro-plugin-studio": "0.0.0-dev-20240211205914"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/react": "18.2.42",
|
|
@@ -14,10 +14,21 @@ export type RecipeSelection<T extends RecipeVariantRecord> = keyof any extends k
|
|
|
14
14
|
|
|
15
15
|
export type RecipeVariantFn<T extends RecipeVariantRecord> = (props?: RecipeSelection<T>) => string
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Extract the variant as optional props from a `cva` function.
|
|
19
|
+
* Intended to be used with a JSX component, prefer `RecipeVariant` for a more strict type.
|
|
20
|
+
*/
|
|
17
21
|
export type RecipeVariantProps<
|
|
18
22
|
T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,
|
|
19
23
|
> = Pretty<Parameters<T>[0]>
|
|
20
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Extract the variants from a `cva` function.
|
|
27
|
+
*/
|
|
28
|
+
export type RecipeVariant<
|
|
29
|
+
T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,
|
|
30
|
+
> = Exclude<Pretty<Required<RecipeVariantProps<T>>>, undefined>
|
|
31
|
+
|
|
21
32
|
type RecipeVariantMap<T extends RecipeVariantRecord> = {
|
|
22
33
|
[K in keyof T]: Array<keyof T[K]>
|
|
23
34
|
}
|