@pandacss/studio 0.18.2 → 0.19.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/studio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "The automated token documentation for Panda CSS",
|
|
5
5
|
"main": "dist/studio.js",
|
|
6
6
|
"module": "dist/studio.mjs",
|
|
@@ -36,23 +36,22 @@
|
|
|
36
36
|
"author": "Segun Adebayo <joseshegs@gmail.com>",
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@
|
|
40
|
-
"
|
|
41
|
-
"astro": "2.9.6",
|
|
39
|
+
"@astrojs/react": "2.3.2",
|
|
40
|
+
"astro": "2.10.15",
|
|
42
41
|
"javascript-stringify": "2.1.0",
|
|
43
42
|
"react": "18.2.0",
|
|
44
43
|
"react-dom": "18.2.0",
|
|
45
44
|
"vite": "4.4.11",
|
|
46
|
-
"@pandacss/config": "0.
|
|
47
|
-
"@pandacss/logger": "0.
|
|
48
|
-
"@pandacss/node": "0.
|
|
49
|
-
"@pandacss/shared": "0.
|
|
50
|
-
"@pandacss/token-dictionary": "0.
|
|
51
|
-
"@pandacss/types": "0.
|
|
45
|
+
"@pandacss/config": "0.19.0",
|
|
46
|
+
"@pandacss/logger": "0.19.0",
|
|
47
|
+
"@pandacss/node": "0.19.0",
|
|
48
|
+
"@pandacss/shared": "0.19.0",
|
|
49
|
+
"@pandacss/token-dictionary": "0.19.0",
|
|
50
|
+
"@pandacss/types": "0.19.0"
|
|
52
51
|
},
|
|
53
52
|
"devDependencies": {
|
|
54
|
-
"@types/react": "18.2.
|
|
55
|
-
"@types/react-dom": "18.2.
|
|
53
|
+
"@types/react": "18.2.37",
|
|
54
|
+
"@types/react-dom": "18.2.15",
|
|
56
55
|
"@vitejs/plugin-react": "4.0.4",
|
|
57
56
|
"execa": "7.2.0"
|
|
58
57
|
},
|
|
@@ -28,7 +28,7 @@ interface JsxFactoryOptions<TProps extends Dict> {
|
|
|
28
28
|
|
|
29
29
|
export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T>, P>;
|
|
30
30
|
|
|
31
|
-
export type JsxElement<T extends ElementType, P> = T extends PandaComponent<infer A, infer B>
|
|
31
|
+
export type JsxElement<T extends ElementType, P extends Dict> = T extends PandaComponent<infer A, infer B>
|
|
32
32
|
? PandaComponent<A, Pretty<DistributiveUnion<P, B>>>
|
|
33
33
|
: PandaComponent<T, P>
|
|
34
34
|
|
|
@@ -302,6 +302,7 @@ interface PropertyValueTypes {
|
|
|
302
302
|
y: Shorthand<"translateY">;
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
+
|
|
305
306
|
export type PropertyValue<T extends string> = T extends keyof PropertyTypes
|
|
306
307
|
? ConditionalValue<PropertyTypes[T] | CssValue<T> | (string & {})>
|
|
307
308
|
: T extends keyof CssProperties
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, DistributiveOmit } from './system-types';
|
|
3
|
-
|
|
4
|
-
type Pretty<T> = { [K in keyof T]: T[K] } & {}
|
|
2
|
+
import type { SystemStyleObject, DistributiveOmit, Pretty } from './system-types';
|
|
5
3
|
|
|
6
4
|
type StringToBoolean<T> = T extends 'true' | 'false' ? boolean : T
|
|
7
5
|
|
|
@@ -10,7 +8,7 @@ export type RecipeVariantRecord = Record<any, Record<any, SystemStyleObject>>
|
|
|
10
8
|
export type RecipeSelection<T extends RecipeVariantRecord> = keyof any extends keyof T
|
|
11
9
|
? {}
|
|
12
10
|
: {
|
|
13
|
-
[K in keyof T]?: StringToBoolean<keyof T[K]>
|
|
11
|
+
[K in keyof T]?: StringToBoolean<keyof T[K]> | undefined
|
|
14
12
|
}
|
|
15
13
|
|
|
16
14
|
export type RecipeVariantFn<T extends RecipeVariantRecord> = (props?: RecipeSelection<T>) => string
|
|
@@ -41,7 +39,7 @@ export interface RecipeRuntimeFn<T extends RecipeVariantRecord> extends RecipeVa
|
|
|
41
39
|
type OneOrMore<T> = T | Array<T>
|
|
42
40
|
|
|
43
41
|
export type RecipeCompoundSelection<T> = {
|
|
44
|
-
[K in keyof T]?: OneOrMore<StringToBoolean<keyof T[K]>>
|
|
42
|
+
[K in keyof T]?: OneOrMore<StringToBoolean<keyof T[K]>> | undefined
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
export type RecipeCompoundVariant<T> = T & {
|
|
@@ -60,9 +60,11 @@ export interface ExtendableGlobalStyleObject {
|
|
|
60
60
|
extend?: GlobalStyleObject | undefined
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
[K in
|
|
65
|
-
}
|
|
63
|
+
type FilterStyleObject<P extends string> = {
|
|
64
|
+
[K in P]?: K extends keyof SystemStyleObject ? SystemStyleObject[K] : unknown
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type CompositionStyleObject<Property extends string> = Nested<FilterStyleObject<Property> & CssVarProperties>
|
|
66
68
|
|
|
67
69
|
/* -----------------------------------------------------------------------------
|
|
68
70
|
* Jsx style props
|