@pandacss/studio 0.0.0-dev-20240212192921 → 0.0.0-dev-20240214192050
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/astro.config.mjs +3 -2
- package/dist/studio.d.mts +4 -3
- package/dist/studio.d.ts +4 -3
- package/dist/studio.js +8 -5
- package/dist/studio.mjs +8 -5
- package/package.json +7 -7
- package/src/components/overview.tsx +3 -2
- package/src/components/side-nav.astro +4 -3
- package/src/lib/url.ts +3 -0
- package/styled-system/styles.css +281 -439
- package/styled-system/jsx/styled-link.d.ts +0 -10
- package/styled-system/jsx/styled-link.mjs +0 -14
- package/styled-system/patterns/styled-link.d.ts +0 -21
- package/styled-system/patterns/styled-link.mjs +0 -18
package/astro.config.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import react from '@astrojs/react'
|
|
2
|
-
import
|
|
2
|
+
import studio from '@pandacss/astro-plugin-studio'
|
|
3
3
|
import { defineConfig } from 'astro/config'
|
|
4
4
|
|
|
5
5
|
// https://astro.build/config
|
|
6
6
|
export default defineConfig({
|
|
7
|
-
|
|
7
|
+
devToolbar: { enabled: true },
|
|
8
|
+
integrations: [react(), studio()],
|
|
8
9
|
})
|
package/dist/studio.d.mts
CHANGED
|
@@ -3,10 +3,11 @@ interface BuildOpts {
|
|
|
3
3
|
configPath: string;
|
|
4
4
|
port?: string;
|
|
5
5
|
host?: boolean;
|
|
6
|
+
base?: string;
|
|
6
7
|
}
|
|
7
|
-
declare function buildStudio({ outDir, configPath }: BuildOpts): Promise<void>;
|
|
8
|
-
declare function serveStudio({ configPath, port, host, outDir }: BuildOpts): Promise<void>;
|
|
9
|
-
declare function previewStudio({ outDir }: BuildOpts): Promise<void>;
|
|
8
|
+
declare function buildStudio({ outDir, configPath, base }: BuildOpts): Promise<void>;
|
|
9
|
+
declare function serveStudio({ configPath, port, host, outDir, base }: BuildOpts): Promise<void>;
|
|
10
|
+
declare function previewStudio({ outDir, base }: BuildOpts): Promise<void>;
|
|
10
11
|
declare function printUrls(options: {
|
|
11
12
|
host: string;
|
|
12
13
|
port: number;
|
package/dist/studio.d.ts
CHANGED
|
@@ -3,10 +3,11 @@ interface BuildOpts {
|
|
|
3
3
|
configPath: string;
|
|
4
4
|
port?: string;
|
|
5
5
|
host?: boolean;
|
|
6
|
+
base?: string;
|
|
6
7
|
}
|
|
7
|
-
declare function buildStudio({ outDir, configPath }: BuildOpts): Promise<void>;
|
|
8
|
-
declare function serveStudio({ configPath, port, host, outDir }: BuildOpts): Promise<void>;
|
|
9
|
-
declare function previewStudio({ outDir }: BuildOpts): Promise<void>;
|
|
8
|
+
declare function buildStudio({ outDir, configPath, base }: BuildOpts): Promise<void>;
|
|
9
|
+
declare function serveStudio({ configPath, port, host, outDir, base }: BuildOpts): Promise<void>;
|
|
10
|
+
declare function previewStudio({ outDir, base }: BuildOpts): Promise<void>;
|
|
10
11
|
declare function printUrls(options: {
|
|
11
12
|
host: string;
|
|
12
13
|
port: number;
|
package/dist/studio.js
CHANGED
|
@@ -39,7 +39,7 @@ module.exports = __toCommonJS(studio_exports);
|
|
|
39
39
|
var import_logger = require("@pandacss/logger");
|
|
40
40
|
var import_node_path = require("path");
|
|
41
41
|
var appPath = (0, import_node_path.join)(__dirname, "..");
|
|
42
|
-
async function buildStudio({ outDir, configPath }) {
|
|
42
|
+
async function buildStudio({ outDir, configPath, base }) {
|
|
43
43
|
const astro = await import("astro");
|
|
44
44
|
const { default: react } = await import("@astrojs/react");
|
|
45
45
|
const { default: studio } = await import("@pandacss/astro-plugin-studio");
|
|
@@ -49,13 +49,14 @@ async function buildStudio({ outDir, configPath }) {
|
|
|
49
49
|
outDir,
|
|
50
50
|
root: appPath,
|
|
51
51
|
integrations: [react(), studio()],
|
|
52
|
-
devToolbar: { enabled: false }
|
|
52
|
+
devToolbar: { enabled: false },
|
|
53
|
+
base
|
|
53
54
|
});
|
|
54
55
|
} catch (error) {
|
|
55
56
|
console.log(error);
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
|
-
async function serveStudio({ configPath, port, host, outDir }) {
|
|
59
|
+
async function serveStudio({ configPath, port, host, outDir, base }) {
|
|
59
60
|
const astro = await import("astro");
|
|
60
61
|
const { default: react } = await import("@astrojs/react");
|
|
61
62
|
const { default: studio } = await import("@pandacss/astro-plugin-studio");
|
|
@@ -69,13 +70,14 @@ async function serveStudio({ configPath, port, host, outDir }) {
|
|
|
69
70
|
port: port ? Number(port) : void 0,
|
|
70
71
|
host
|
|
71
72
|
},
|
|
73
|
+
base,
|
|
72
74
|
devToolbar: { enabled: false }
|
|
73
75
|
});
|
|
74
76
|
} catch (error) {
|
|
75
77
|
console.log(error);
|
|
76
78
|
}
|
|
77
79
|
}
|
|
78
|
-
async function previewStudio({ outDir }) {
|
|
80
|
+
async function previewStudio({ outDir, base }) {
|
|
79
81
|
const astro = await import("astro");
|
|
80
82
|
const { default: react } = await import("@astrojs/react");
|
|
81
83
|
const { default: studio } = await import("@pandacss/astro-plugin-studio");
|
|
@@ -84,7 +86,8 @@ async function previewStudio({ outDir }) {
|
|
|
84
86
|
outDir,
|
|
85
87
|
root: appPath,
|
|
86
88
|
integrations: [react(), studio()],
|
|
87
|
-
devToolbar: { enabled: false }
|
|
89
|
+
devToolbar: { enabled: false },
|
|
90
|
+
base
|
|
88
91
|
});
|
|
89
92
|
} catch (error) {
|
|
90
93
|
console.log(error);
|
package/dist/studio.mjs
CHANGED
|
@@ -9,7 +9,7 @@ var __dirname = /* @__PURE__ */ getDirname();
|
|
|
9
9
|
import { colors, logger } from "@pandacss/logger";
|
|
10
10
|
import { join } from "node:path";
|
|
11
11
|
var appPath = join(__dirname, "..");
|
|
12
|
-
async function buildStudio({ outDir, configPath }) {
|
|
12
|
+
async function buildStudio({ outDir, configPath, base }) {
|
|
13
13
|
const astro = await import("astro");
|
|
14
14
|
const { default: react } = await import("@astrojs/react");
|
|
15
15
|
const { default: studio } = await import("@pandacss/astro-plugin-studio");
|
|
@@ -19,13 +19,14 @@ async function buildStudio({ outDir, configPath }) {
|
|
|
19
19
|
outDir,
|
|
20
20
|
root: appPath,
|
|
21
21
|
integrations: [react(), studio()],
|
|
22
|
-
devToolbar: { enabled: false }
|
|
22
|
+
devToolbar: { enabled: false },
|
|
23
|
+
base
|
|
23
24
|
});
|
|
24
25
|
} catch (error) {
|
|
25
26
|
console.log(error);
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
|
-
async function serveStudio({ configPath, port, host, outDir }) {
|
|
29
|
+
async function serveStudio({ configPath, port, host, outDir, base }) {
|
|
29
30
|
const astro = await import("astro");
|
|
30
31
|
const { default: react } = await import("@astrojs/react");
|
|
31
32
|
const { default: studio } = await import("@pandacss/astro-plugin-studio");
|
|
@@ -39,13 +40,14 @@ async function serveStudio({ configPath, port, host, outDir }) {
|
|
|
39
40
|
port: port ? Number(port) : void 0,
|
|
40
41
|
host
|
|
41
42
|
},
|
|
43
|
+
base,
|
|
42
44
|
devToolbar: { enabled: false }
|
|
43
45
|
});
|
|
44
46
|
} catch (error) {
|
|
45
47
|
console.log(error);
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
|
-
async function previewStudio({ outDir }) {
|
|
50
|
+
async function previewStudio({ outDir, base }) {
|
|
49
51
|
const astro = await import("astro");
|
|
50
52
|
const { default: react } = await import("@astrojs/react");
|
|
51
53
|
const { default: studio } = await import("@pandacss/astro-plugin-studio");
|
|
@@ -54,7 +56,8 @@ async function previewStudio({ outDir }) {
|
|
|
54
56
|
outDir,
|
|
55
57
|
root: appPath,
|
|
56
58
|
integrations: [react(), studio()],
|
|
57
|
-
devToolbar: { enabled: false }
|
|
59
|
+
devToolbar: { enabled: false },
|
|
60
|
+
base
|
|
58
61
|
});
|
|
59
62
|
} catch (error) {
|
|
60
63
|
console.log(error);
|
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-20240214192050",
|
|
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": "18.2.0",
|
|
49
49
|
"react-dom": "18.2.0",
|
|
50
50
|
"vite": "5.0.12",
|
|
51
|
-
"@pandacss/config": "0.0.0-dev-
|
|
52
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
53
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
54
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
55
|
-
"@pandacss/types": "0.0.0-dev-
|
|
56
|
-
"@pandacss/astro-plugin-studio": "0.0.0-dev-
|
|
51
|
+
"@pandacss/config": "0.0.0-dev-20240214192050",
|
|
52
|
+
"@pandacss/logger": "0.0.0-dev-20240214192050",
|
|
53
|
+
"@pandacss/shared": "0.0.0-dev-20240214192050",
|
|
54
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20240214192050",
|
|
55
|
+
"@pandacss/types": "0.0.0-dev-20240214192050",
|
|
56
|
+
"@pandacss/astro-plugin-studio": "0.0.0-dev-20240214192050"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/react": "18.2.42",
|
|
@@ -5,6 +5,7 @@ import { Yums } from '../icons/yums'
|
|
|
5
5
|
import { Logo } from '../icons/logo'
|
|
6
6
|
import { Wrap } from '../../styled-system/jsx'
|
|
7
7
|
import { navItems } from '../lib/constants'
|
|
8
|
+
import { getUrl } from '../lib/url'
|
|
8
9
|
|
|
9
10
|
const buttonRecipe = cva({
|
|
10
11
|
base: {
|
|
@@ -49,7 +50,7 @@ export default function Overview() {
|
|
|
49
50
|
</div>
|
|
50
51
|
|
|
51
52
|
<div className={hstack({ gap: '6' })}>
|
|
52
|
-
<a href=
|
|
53
|
+
<a href={getUrl('colors')} className={buttonRecipe({ variant: 'solid' })}>
|
|
53
54
|
Get Started
|
|
54
55
|
</a>
|
|
55
56
|
<a href="https://panda-css.com?ref=studio" target="_blank" className={buttonRecipe({ variant: 'outline' })}>
|
|
@@ -64,7 +65,7 @@ export default function Overview() {
|
|
|
64
65
|
<div key={index}>
|
|
65
66
|
<a
|
|
66
67
|
title={item.label}
|
|
67
|
-
href={
|
|
68
|
+
href={getUrl(item.id)}
|
|
68
69
|
className={square({
|
|
69
70
|
size: '20',
|
|
70
71
|
fontSize: '2xl',
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
import { navItems } from '../lib/constants'
|
|
3
2
|
import { panda, Stack } from '../../styled-system/jsx'
|
|
3
|
+
import { navItems } from '../lib/constants'
|
|
4
|
+
import { getUrl } from "../lib/url"
|
|
4
5
|
import SideNavItem from './side-nav-item.astro'
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -12,7 +13,7 @@ import SideNavItem from './side-nav-item.astro'
|
|
|
12
13
|
{
|
|
13
14
|
navItems
|
|
14
15
|
.filter((item) => item.type === 'token')
|
|
15
|
-
.map((item) => <SideNavItem href={
|
|
16
|
+
.map((item) => <SideNavItem href={getUrl(item.id)}>{item.label}</SideNavItem>)
|
|
16
17
|
}
|
|
17
18
|
</panda.ul>
|
|
18
19
|
</div>
|
|
@@ -22,7 +23,7 @@ import SideNavItem from './side-nav-item.astro'
|
|
|
22
23
|
{
|
|
23
24
|
navItems
|
|
24
25
|
.filter((item) => item.type === 'playground')
|
|
25
|
-
.map((item) => <SideNavItem href={
|
|
26
|
+
.map((item) => <SideNavItem href={getUrl(item.id)}>{item.label}</SideNavItem>)
|
|
26
27
|
}
|
|
27
28
|
</panda.ul>
|
|
28
29
|
</div>
|
package/src/lib/url.ts
ADDED