@pandacss/studio 1.9.0 → 1.10.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/dist/studio.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // ../../node_modules/.pnpm/tsup@8.5.1_@swc+core@1.15.3_@swc+helpers@0.5.17__jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_typescript@5.9.3_yaml@2.8.1/node_modules/tsup/assets/esm_shims.js
1
+ // ../../node_modules/.pnpm/tsup@8.5.1_@swc+core@1.15.3_@swc+helpers@0.5.17__jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_typescript@6.0.2_yaml@2.8.1/node_modules/tsup/assets/esm_shims.js
2
2
  import path from "path";
3
3
  import { fileURLToPath } from "url";
4
4
  var getFilename = () => fileURLToPath(import.meta.url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/studio",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "The automated token documentation for Panda CSS",
5
5
  "main": "dist/studio.js",
6
6
  "module": "dist/studio.mjs",
@@ -45,17 +45,17 @@
45
45
  "dependencies": {
46
46
  "@astrojs/react": "4.4.2",
47
47
  "@nanostores/react": "^1.0.0",
48
- "astro": "5.16.3",
48
+ "astro": "6.1.5",
49
49
  "nanostores": "^1.1.0",
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.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"
53
+ "@pandacss/config": "1.10.0",
54
+ "@pandacss/logger": "1.10.0",
55
+ "@pandacss/astro-plugin-studio": "1.10.0",
56
+ "@pandacss/shared": "1.10.0",
57
+ "@pandacss/token-dictionary": "1.10.0",
58
+ "@pandacss/types": "1.10.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@testing-library/react": "16.3.0",
@@ -65,10 +65,10 @@
65
65
  "scripts": {
66
66
  "panda": "node ../cli/bin.js",
67
67
  "codegen": "node ../cli/bin.js codegen",
68
- "build": "tsup scripts --format=esm,cjs --dts --no-splitting --shims",
68
+ "build": "tsup",
69
69
  "postbuild": "pnpm panda",
70
- "build-fast": "tsup scripts --format=esm,cjs --no-dts --no-splitting --shims",
71
- "dev": "pnpm build-fast --watch scripts",
70
+ "build-fast": "tsup --no-dts",
71
+ "dev": "pnpm build-fast --watch",
72
72
  "dev:panda": "node ../cli/bin.js --clean --watch",
73
73
  "dev:astro": "astro dev",
74
74
  "start": "concurrently \"pnpm dev:panda\" \"pnpm dev:astro\""
@@ -2,12 +2,16 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const spacerConfig = {
5
- transform(props, { map }) {
5
+ transform(props, { map, isCssUnit, isCssVar }) {
6
6
  const { size, ...rest } = props;
7
7
  return {
8
8
  alignSelf: "stretch",
9
9
  justifySelf: "stretch",
10
- flex: map(size, (v) => v == null ? "1" : `0 0 ${v}`),
10
+ flex: map(size, (v) => {
11
+ if (v == null) return "1";
12
+ const val = isCssUnit(v) || isCssVar(v) ? v : `token(spacing.${v}, ${v})`;
13
+ return `0 0 ${val}`;
14
+ }),
11
15
  ...rest
12
16
  };
13
17
  }}
package/tsup.config.ts ADDED
@@ -0,0 +1,15 @@
1
+ import { defineConfig } from 'tsup'
2
+
3
+ // tsup's DTS pipeline still applies `baseUrl` internally under TS 6 (TS5101).
4
+ // Overrides here only affect declaration emit, not application tsconfig.
5
+ export default defineConfig({
6
+ entry: ['scripts/studio.ts'],
7
+ format: ['esm', 'cjs'],
8
+ splitting: false,
9
+ shims: true,
10
+ dts: {
11
+ compilerOptions: {
12
+ ignoreDeprecations: '6.0',
13
+ },
14
+ },
15
+ })