@pandacss/studio 1.8.2 → 1.9.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.9.0",
|
|
4
4
|
"description": "The automated token documentation for Panda CSS",
|
|
5
5
|
"main": "dist/studio.js",
|
|
6
6
|
"module": "dist/studio.mjs",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"react": "19.2.0",
|
|
51
51
|
"react-dom": "19.2.0",
|
|
52
52
|
"vite": "7.2.6",
|
|
53
|
-
"@pandacss/astro-plugin-studio": "1.
|
|
54
|
-
"@pandacss/config": "1.
|
|
55
|
-
"@pandacss/logger": "1.
|
|
56
|
-
"@pandacss/shared": "1.
|
|
57
|
-
"@pandacss/token-dictionary": "1.
|
|
58
|
-
"@pandacss/types": "1.
|
|
53
|
+
"@pandacss/astro-plugin-studio": "1.9.0",
|
|
54
|
+
"@pandacss/config": "1.9.0",
|
|
55
|
+
"@pandacss/logger": "1.9.0",
|
|
56
|
+
"@pandacss/shared": "1.9.0",
|
|
57
|
+
"@pandacss/token-dictionary": "1.9.0",
|
|
58
|
+
"@pandacss/types": "1.9.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@testing-library/react": "16.3.0",
|
|
@@ -11,7 +11,10 @@ import { StickyTop } from './sticky-top'
|
|
|
11
11
|
|
|
12
12
|
const UNCATEGORIZED_ID = 'uncategorized' as const
|
|
13
13
|
|
|
14
|
-
function getColorFromReference(reference: string) {
|
|
14
|
+
function getColorFromReference(reference: string, name: string) {
|
|
15
|
+
if (!reference?.match) {
|
|
16
|
+
throw new Error(`Invalid reference for semantic token ${name}`)
|
|
17
|
+
}
|
|
15
18
|
return reference.match(/{colors\.(.*?)}/)?.[1]
|
|
16
19
|
}
|
|
17
20
|
|
|
@@ -54,7 +57,7 @@ export function SemanticToken(props: SemanticTokenProps) {
|
|
|
54
57
|
key={cond}
|
|
55
58
|
value={tokens[cond].value}
|
|
56
59
|
condition={cond}
|
|
57
|
-
token={getColorFromReference(tokens.extensions.conditions![cond])}
|
|
60
|
+
token={getColorFromReference(tokens.extensions.conditions![cond], name)}
|
|
58
61
|
/>
|
|
59
62
|
))}
|
|
60
63
|
</HStack>
|
|
@@ -6,7 +6,7 @@ import type { DistributiveOmit } from '../types/system-types';
|
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface DividerProperties {
|
|
9
|
-
orientation?: "horizontal" | "vertical"
|
|
9
|
+
orientation?: ConditionalValue<"horizontal" | "vertical">
|
|
10
10
|
thickness?: ConditionalValue<Tokens["sizes"] | Properties["borderWidth"]>
|
|
11
11
|
color?: ConditionalValue<Tokens["colors"] | Properties["borderColor"]>
|
|
12
12
|
}
|
|
@@ -9,7 +9,7 @@ export interface FloatProperties {
|
|
|
9
9
|
offsetX?: ConditionalValue<Tokens["spacing"] | Properties["left"]>
|
|
10
10
|
offsetY?: ConditionalValue<Tokens["spacing"] | Properties["top"]>
|
|
11
11
|
offset?: ConditionalValue<Tokens["spacing"] | Properties["top"]>
|
|
12
|
-
placement?: "bottom-end" | "bottom-start" | "top-end" | "top-start" | "bottom-center" | "top-center" | "middle-center" | "middle-end" | "middle-start"
|
|
12
|
+
placement?: ConditionalValue<"bottom-end" | "bottom-start" | "top-end" | "top-start" | "bottom-center" | "top-center" | "middle-center" | "middle-end" | "middle-start">
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
interface FloatStyles extends FloatProperties, DistributiveOmit<SystemStyleObject, keyof FloatProperties > {}
|