@pandacss/studio 1.4.3 → 1.5.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": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
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": "19.1.1",
|
|
49
49
|
"react-dom": "19.1.1",
|
|
50
50
|
"vite": "7.0.6",
|
|
51
|
-
"@pandacss/config": "1.
|
|
52
|
-
"@pandacss/logger": "1.
|
|
53
|
-
"@pandacss/shared": "1.
|
|
54
|
-
"@pandacss/token-dictionary": "1.
|
|
55
|
-
"@pandacss/types": "1.
|
|
56
|
-
"@pandacss/astro-plugin-studio": "1.
|
|
51
|
+
"@pandacss/config": "1.5.0",
|
|
52
|
+
"@pandacss/logger": "1.5.0",
|
|
53
|
+
"@pandacss/shared": "1.5.0",
|
|
54
|
+
"@pandacss/token-dictionary": "1.5.0",
|
|
55
|
+
"@pandacss/types": "1.5.0",
|
|
56
|
+
"@pandacss/astro-plugin-studio": "1.5.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/react": "19.2.2",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SlotRecipeRuntimeFn, RecipeVariantProps } from '../types/recipe';
|
|
3
3
|
import type { JsxHTMLProps, JsxStyleProps, Assign } from '../types/system-types';
|
|
4
|
-
import type { JsxFactoryOptions, ComponentProps } from '../types/jsx';
|
|
4
|
+
import type { JsxFactoryOptions, ComponentProps, DataAttrs } from '../types/jsx';
|
|
5
5
|
import type { ComponentType, ElementType } from 'react'
|
|
6
6
|
|
|
7
7
|
interface UnstyledProps {
|
|
@@ -19,7 +19,7 @@ type SlotRecipe = SvaFn | SlotRecipeFn
|
|
|
19
19
|
type InferSlot<R extends SlotRecipe> = R extends SlotRecipeFn ? R['__slot'] : R extends SvaFn<infer S> ? S : never
|
|
20
20
|
|
|
21
21
|
interface WithProviderOptions<P = {}> {
|
|
22
|
-
defaultProps?: Partial<P> | undefined
|
|
22
|
+
defaultProps?: (Partial<P> & DataAttrs) | undefined
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
type StyleContextProvider<T extends ElementType, R extends SlotRecipe> = ComponentType<
|
|
@@ -7,6 +7,8 @@ interface Dict {
|
|
|
7
7
|
[k: string]: unknown
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
export type DataAttrs = Record<`data-${string}`, unknown>
|
|
11
|
+
|
|
10
12
|
export interface UnstyledProps {
|
|
11
13
|
/**
|
|
12
14
|
* Whether to remove recipe styles
|
|
@@ -36,7 +38,7 @@ interface RecipeFn {
|
|
|
36
38
|
|
|
37
39
|
export interface JsxFactoryOptions<TProps extends Dict> {
|
|
38
40
|
dataAttr?: boolean
|
|
39
|
-
defaultProps?: Partial<TProps>
|
|
41
|
+
defaultProps?: Partial<TProps> & DataAttrs
|
|
40
42
|
shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
|
|
41
43
|
forwardProps?: string[]
|
|
42
44
|
}
|