@pandacss/studio 0.0.0-dev-20231023094545 → 0.0.0-dev-20231023175607
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-20231023175607",
|
|
4
4
|
"description": "The automated token documentation for Panda CSS",
|
|
5
5
|
"main": "dist/studio.js",
|
|
6
6
|
"module": "dist/studio.mjs",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"react": "18.2.0",
|
|
34
34
|
"react-dom": "18.2.0",
|
|
35
35
|
"vite": "4.4.11",
|
|
36
|
-
"@pandacss/config": "0.0.0-dev-
|
|
37
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
38
|
-
"@pandacss/node": "0.0.0-dev-
|
|
39
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
40
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
41
|
-
"@pandacss/types": "0.0.0-dev-
|
|
36
|
+
"@pandacss/config": "0.0.0-dev-20231023175607",
|
|
37
|
+
"@pandacss/logger": "0.0.0-dev-20231023175607",
|
|
38
|
+
"@pandacss/node": "0.0.0-dev-20231023175607",
|
|
39
|
+
"@pandacss/shared": "0.0.0-dev-20231023175607",
|
|
40
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20231023175607",
|
|
41
|
+
"@pandacss/types": "0.0.0-dev-20231023175607"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/react": "18.2.22",
|
|
@@ -9,7 +9,7 @@ function styledFn(Dynamic, configOrCva = {}, options = {}) {
|
|
|
9
9
|
|
|
10
10
|
const forwardFn = options.shouldForwardProp || defaultShouldForwardProp
|
|
11
11
|
const shouldForwardProp = (prop) => forwardFn(prop, cvaFn.variantKeys)
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
const defaultProps = Object.assign(
|
|
14
14
|
options.dataAttr && configOrCva.__name__ ? { 'data-recipe': configOrCva.__name__ } : {},
|
|
15
15
|
options.defaultProps,
|
|
@@ -17,14 +17,14 @@ function styledFn(Dynamic, configOrCva = {}, options = {}) {
|
|
|
17
17
|
|
|
18
18
|
const PandaComponent = /* @__PURE__ */ forwardRef(function PandaComponent(props, ref) {
|
|
19
19
|
const { as: Element = Dynamic.__base__ || Dynamic, children, ...restProps } = props
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
const __cvaFn__ = composeCvaFn(Dynamic.__cva__, cvaFn)
|
|
22
22
|
const __shouldForwardProps__ = composeShouldForwardProps(Dynamic, shouldForwardProp)
|
|
23
23
|
|
|
24
24
|
const combinedProps = useMemo(() => Object.assign({}, defaultProps, restProps), [restProps])
|
|
25
25
|
|
|
26
|
-
const [forwardedProps, variantProps, styleProps,
|
|
27
|
-
return splitProps(combinedProps, __shouldForwardProps__, __cvaFn__.variantKeys, isCssProperty
|
|
26
|
+
const [htmlProps, forwardedProps, variantProps, styleProps, elementProps] = useMemo(() => {
|
|
27
|
+
return splitProps(combinedProps, normalizeHTMLProps.keys, __shouldForwardProps__, __cvaFn__.variantKeys, isCssProperty)
|
|
28
28
|
}, [combinedProps])
|
|
29
29
|
|
|
30
30
|
function recipeClass() {
|
|
@@ -52,12 +52,12 @@ function styledFn(Dynamic, configOrCva = {}, options = {}) {
|
|
|
52
52
|
})
|
|
53
53
|
|
|
54
54
|
const name = getDisplayName(Dynamic)
|
|
55
|
-
|
|
55
|
+
|
|
56
56
|
PandaComponent.displayName = `panda.${name}`
|
|
57
57
|
PandaComponent.__cva__ = cvaFn
|
|
58
58
|
PandaComponent.__base__ = Dynamic
|
|
59
59
|
PandaComponent.__shouldForwardProps__ = shouldForwardProp
|
|
60
|
-
|
|
60
|
+
|
|
61
61
|
return PandaComponent
|
|
62
62
|
}
|
|
63
63
|
|