@batijs/cli 0.0.307 → 0.0.308
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/boilerplates/@batijs/auth0/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/auth0/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +3 -3
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +3 -3
- package/dist/boilerplates/@batijs/d1/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/edgedb/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/eslint/files/eslint.config.js +2 -0
- package/dist/boilerplates/@batijs/express/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/firebase-auth/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/hattip/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +3 -3
- package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/panda-css/files/$package.json.js +95 -0
- package/dist/boilerplates/@batijs/panda-css/files/layouts/panda.css +1 -0
- package/dist/boilerplates/@batijs/panda-css/files/panda.config.ts +32 -0
- package/dist/boilerplates/@batijs/panda-css/files/postcss.config.js +5 -0
- package/dist/boilerplates/@batijs/panda-css/types/panda.config.d.ts +4 -0
- package/dist/boilerplates/@batijs/panda-css/types/postcss.config.d.ts +6 -0
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/prettier/files/.prettierignore +4 -0
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$package.json.js +3 -1
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +3 -3
- package/dist/boilerplates/@batijs/react/files/layouts/LayoutDefault.tsx +26 -12
- package/dist/boilerplates/@batijs/react/files/pages/index/+Page.tsx +7 -2
- package/dist/boilerplates/@batijs/react/files/pages/index/Counter.tsx +17 -2
- package/dist/boilerplates/@batijs/react/files/pages/todo/TodoList.tsx +50 -2
- package/dist/boilerplates/@batijs/react/types/layouts/LayoutDefault.d.ts +1 -0
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +4 -4
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/shared/files/.gitignore +4 -0
- package/dist/boilerplates/@batijs/shared/files/tsconfig.json +1 -1
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +3 -1
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/layouts/LayoutDefault.tsx +26 -12
- package/dist/boilerplates/@batijs/solid/files/pages/index/+Page.tsx +7 -2
- package/dist/boilerplates/@batijs/solid/files/pages/index/Counter.tsx +17 -2
- package/dist/boilerplates/@batijs/solid/files/pages/todo/TodoList.tsx +50 -2
- package/dist/boilerplates/@batijs/solid/types/layouts/LayoutDefault.d.ts +1 -0
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +3 -3
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +3 -1
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +4 -4
- package/dist/boilerplates/@batijs/vue/files/components/Content.vue +8 -2
- package/dist/boilerplates/@batijs/vue/files/components/Counter.vue +24 -10
- package/dist/boilerplates/@batijs/vue/files/components/Logo.vue +10 -2
- package/dist/boilerplates/@batijs/vue/files/components/Sidebar.vue +20 -2
- package/dist/boilerplates/@batijs/vue/files/layouts/LayoutDefault.vue +2 -0
- package/dist/boilerplates/@batijs/vue/files/pages/index/+Page.vue +5 -5
- package/dist/boilerplates/@batijs/vue/files/pages/todo/TodoList.vue +45 -2
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/boilerplates.json +11 -0
- package/dist/{chunk-ACADSV35.js → chunk-O2DQVJZQ.js} +17629 -17621
- package/dist/index.js +20 -5
- package/package.json +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
OXs
|
|
4
|
-
} from "../../../../chunk-
|
|
4
|
+
} from "../../../../chunk-O2DQVJZQ.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/react/dist/files/$package.json.js
|
|
@@ -39,6 +39,7 @@ var require_package = __commonJS({
|
|
|
39
39
|
description: "",
|
|
40
40
|
type: "module",
|
|
41
41
|
scripts: {
|
|
42
|
+
prepare: "panda codegen --silent",
|
|
42
43
|
"check-types": "tsc --noEmit",
|
|
43
44
|
build: "bati-compile-boilerplate"
|
|
44
45
|
},
|
|
@@ -51,6 +52,7 @@ var require_package = __commonJS({
|
|
|
51
52
|
"@babel/plugin-transform-react-jsx": "^7.25.9",
|
|
52
53
|
"@batijs/compile": "workspace:*",
|
|
53
54
|
"@mantine/core": "^7.14.1",
|
|
55
|
+
"@pandacss/dev": "^0.47.1",
|
|
54
56
|
"@types/node": "^18.19.64",
|
|
55
57
|
"@types/react": "^18.3.12",
|
|
56
58
|
"@types/react-dom": "^18.3.1",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
LXs,
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-
|
|
4
|
+
vTs
|
|
5
|
+
} from "../../../../chunk-O2DQVJZQ.js";
|
|
6
6
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
7
|
|
|
8
8
|
// ../../boilerplates/react/dist/files/$vite.config.ts.js
|
|
9
9
|
async function getViteConfig(props) {
|
|
10
10
|
const mod = await LXs(props);
|
|
11
11
|
const reactOptions = props.meta.BATI.has("vercel") && props.meta.BATI.has("hattip") ? { jsxRuntime: "classic" } : {};
|
|
12
|
-
|
|
12
|
+
vTs(mod, {
|
|
13
13
|
from: "@vitejs/plugin-react",
|
|
14
14
|
constructor: "react",
|
|
15
15
|
options: reactOptions
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
//# BATI.has("tailwindcss")
|
|
3
3
|
import "./tailwind.css";
|
|
4
|
+
//# BATI.has("panda-css")
|
|
5
|
+
import "./panda.css";
|
|
4
6
|
import React from "react";
|
|
5
7
|
import logoUrl from "../assets/logo.svg";
|
|
6
8
|
import { Link } from "../components/Link.js";
|
|
9
|
+
import { css } from "../styled-system/css";
|
|
7
10
|
|
|
8
11
|
export default function LayoutDefault({ children }: { children: React.ReactNode }) {
|
|
9
12
|
return (
|
|
10
13
|
<div
|
|
11
|
-
//# BATI.has("tailwindcss")
|
|
12
|
-
className="flex max-w-5xl m-auto"
|
|
14
|
+
//# BATI.has("tailwindcss") || BATI.has("panda-css")
|
|
15
|
+
className={BATI.has("tailwindcss") ? "flex max-w-5xl m-auto" : css({ display: "flex", maxW: "900px", m: "auto" })}
|
|
13
16
|
//# BATI.has("compiled-css")
|
|
14
17
|
css={{
|
|
15
18
|
display: "flex",
|
|
16
19
|
maxWidth: 1024,
|
|
17
20
|
margin: "auto",
|
|
18
21
|
}}
|
|
19
|
-
//# !BATI.has("tailwindcss") && !BATI.has("compiled-css")
|
|
22
|
+
//# !BATI.has("tailwindcss") && !BATI.has("compiled-css") && !BATI.has("panda-css")
|
|
20
23
|
style={{
|
|
21
24
|
display: "flex",
|
|
22
25
|
maxWidth: 900,
|
|
@@ -39,8 +42,19 @@ function Sidebar({ children }: { children: React.ReactNode }) {
|
|
|
39
42
|
return (
|
|
40
43
|
<div
|
|
41
44
|
id="sidebar"
|
|
42
|
-
//# BATI.has("tailwindcss")
|
|
43
|
-
className=
|
|
45
|
+
//# BATI.has("tailwindcss") || BATI.has("panda-css")
|
|
46
|
+
className={
|
|
47
|
+
BATI.has("tailwindcss")
|
|
48
|
+
? "p-5 flex flex-col shrink-0 border-r-2 border-r-gray-200"
|
|
49
|
+
: css({
|
|
50
|
+
p: "20px",
|
|
51
|
+
display: "flex",
|
|
52
|
+
flexShrink: 0,
|
|
53
|
+
flexDir: "column",
|
|
54
|
+
lineHeight: "1.8em",
|
|
55
|
+
borderRight: "2px solid #eee",
|
|
56
|
+
})
|
|
57
|
+
}
|
|
44
58
|
//# BATI.has("compiled-css")
|
|
45
59
|
css={{
|
|
46
60
|
padding: 20,
|
|
@@ -50,7 +64,7 @@ function Sidebar({ children }: { children: React.ReactNode }) {
|
|
|
50
64
|
lineHeight: "1.8em",
|
|
51
65
|
borderRight: "2px solid #eee",
|
|
52
66
|
}}
|
|
53
|
-
//# !BATI.has("tailwindcss") && !BATI.has("compiled-css")
|
|
67
|
+
//# !BATI.has("tailwindcss") && !BATI.has("compiled-css") && !BATI.has("panda-css")
|
|
54
68
|
style={{
|
|
55
69
|
padding: 20,
|
|
56
70
|
flexShrink: 0,
|
|
@@ -70,15 +84,15 @@ function Content({ children }: { children: React.ReactNode }) {
|
|
|
70
84
|
<div id="page-container">
|
|
71
85
|
<div
|
|
72
86
|
id="page-content"
|
|
73
|
-
//# BATI.has("tailwindcss")
|
|
74
|
-
className="p-5 pb-12 min-h-screen"
|
|
87
|
+
//# BATI.has("tailwindcss") || BATI.has("panda-css")
|
|
88
|
+
className={BATI.has("tailwindcss") ? "p-5 pb-12 min-h-screen" : css({ p: "20px", pb: "50px", minH: "100vh" })}
|
|
75
89
|
//# BATI.has("compiled-css")
|
|
76
90
|
css={{
|
|
77
91
|
padding: 20,
|
|
78
92
|
paddingBottom: 48,
|
|
79
93
|
minHeight: "100vh",
|
|
80
94
|
}}
|
|
81
|
-
//# !BATI.has("tailwindcss") && !BATI.has("compiled-css")
|
|
95
|
+
//# !BATI.has("tailwindcss") && !BATI.has("compiled-css") && !BATI.has("panda-css")
|
|
82
96
|
style={{
|
|
83
97
|
padding: 20,
|
|
84
98
|
paddingBottom: 50,
|
|
@@ -94,14 +108,14 @@ function Content({ children }: { children: React.ReactNode }) {
|
|
|
94
108
|
function Logo() {
|
|
95
109
|
return (
|
|
96
110
|
<div
|
|
97
|
-
//# BATI.has("tailwindcss")
|
|
98
|
-
className="p-5 mb-2"
|
|
111
|
+
//# BATI.has("tailwindcss") || BATI.has("panda-css")
|
|
112
|
+
className={BATI.has("tailwindcss") ? "p-5 mb-2" : css({ p: "20px", mb: "10px" })}
|
|
99
113
|
//# BATI.has("compiled-css")
|
|
100
114
|
css={{
|
|
101
115
|
padding: 20,
|
|
102
116
|
marginBottom: 8,
|
|
103
117
|
}}
|
|
104
|
-
//# !BATI.has("tailwindcss") && !BATI.has("compiled-css")
|
|
118
|
+
//# !BATI.has("tailwindcss") && !BATI.has("compiled-css") && !BATI.has("panda-css")
|
|
105
119
|
style={{
|
|
106
120
|
marginTop: 20,
|
|
107
121
|
marginBottom: 10,
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Counter } from "./Counter.js";
|
|
3
|
+
import { css } from "../../styled-system/css";
|
|
3
4
|
|
|
4
5
|
export default function Page() {
|
|
5
6
|
return (
|
|
6
7
|
<>
|
|
7
8
|
<h1
|
|
8
|
-
//# BATI.has("tailwindcss")
|
|
9
|
-
className=
|
|
9
|
+
//# BATI.has("tailwindcss") || BATI.has("panda-css")
|
|
10
|
+
className={
|
|
11
|
+
BATI.has("tailwindcss")
|
|
12
|
+
? "font-bold text-3xl pb-4"
|
|
13
|
+
: css({ font: "bold 2em sans-serif", marginBlock: "0.67em" })
|
|
14
|
+
}
|
|
10
15
|
//# BATI.has("compiled-css")
|
|
11
16
|
css={{ fontWeight: "700", fontSize: "1.875rem", paddingBottom: "1rem" }}
|
|
12
17
|
>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
|
+
import { css } from "../../styled-system/css";
|
|
2
3
|
|
|
3
4
|
export function Counter() {
|
|
4
5
|
const [count, setCount] = useState(0);
|
|
@@ -6,8 +7,22 @@ export function Counter() {
|
|
|
6
7
|
return (
|
|
7
8
|
<button
|
|
8
9
|
type="button"
|
|
9
|
-
//# BATI.has("tailwindcss")
|
|
10
|
-
className=
|
|
10
|
+
//# BATI.has("tailwindcss") || BATI.has("panda-css")
|
|
11
|
+
className={
|
|
12
|
+
BATI.has("tailwindcss")
|
|
13
|
+
? "inline-block border border-black rounded bg-gray-200 px-2 py-1 text-xs font-medium uppercase leading-normal"
|
|
14
|
+
: css({
|
|
15
|
+
display: "inline-block",
|
|
16
|
+
border: "1px solid black",
|
|
17
|
+
rounded: "sm",
|
|
18
|
+
bg: "gray.200",
|
|
19
|
+
px: 1,
|
|
20
|
+
py: 0.5,
|
|
21
|
+
fontSize: 12,
|
|
22
|
+
fontWeight: 500,
|
|
23
|
+
lineHeight: "16px",
|
|
24
|
+
})
|
|
25
|
+
}
|
|
11
26
|
//# BATI.has("compiled-css")
|
|
12
27
|
css={{
|
|
13
28
|
display: "inline-block",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { onNewTodo } from "@batijs/telefunc/pages/todo/TodoList.telefunc";
|
|
2
2
|
import { trpc } from "@batijs/trpc/trpc/client";
|
|
3
3
|
import { client } from "@batijs/ts-rest/ts-rest/client";
|
|
4
|
+
import { css } from "../../styled-system/css";
|
|
4
5
|
import React, { useState } from "react";
|
|
5
6
|
|
|
6
7
|
export function TodoList({ initialTodoItems }: { initialTodoItems: { text: string }[] }) {
|
|
@@ -48,8 +49,55 @@ export function TodoList({ initialTodoItems }: { initialTodoItems: { text: strin
|
|
|
48
49
|
}
|
|
49
50
|
}}
|
|
50
51
|
>
|
|
51
|
-
<input
|
|
52
|
-
|
|
52
|
+
<input
|
|
53
|
+
type="text"
|
|
54
|
+
onChange={(ev) => setNewTodo(ev.target.value)}
|
|
55
|
+
value={newTodo}
|
|
56
|
+
//# BATI.has("tailwindcss") || BATI.has("panda-css")
|
|
57
|
+
className={
|
|
58
|
+
BATI.has("tailwindcss")
|
|
59
|
+
? "bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 w-full sm:w-auto p-2 mr-1 mb-1"
|
|
60
|
+
: css({
|
|
61
|
+
p: 2,
|
|
62
|
+
bg: "gray.50",
|
|
63
|
+
borderWidth: 1,
|
|
64
|
+
borderColor: "gray.300",
|
|
65
|
+
color: "gray.900",
|
|
66
|
+
fontSize: "sm",
|
|
67
|
+
rounded: "md",
|
|
68
|
+
width: { base: "full", sm: "auto" },
|
|
69
|
+
_focus: { ringColor: "teal.500", borderColor: "teal.500" },
|
|
70
|
+
mr: 1,
|
|
71
|
+
mb: 1,
|
|
72
|
+
})
|
|
73
|
+
}
|
|
74
|
+
/>
|
|
75
|
+
<button
|
|
76
|
+
type="submit"
|
|
77
|
+
//# BATI.has("tailwindcss") || BATI.has("panda-css")
|
|
78
|
+
className={
|
|
79
|
+
BATI.has("tailwindcss")
|
|
80
|
+
? "text-white bg-blue-700 hover:bg-blue-800 focus:ring-2 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto p-2"
|
|
81
|
+
: css({
|
|
82
|
+
color: "white",
|
|
83
|
+
bg: { base: "teal.700", _hover: "teal.800" },
|
|
84
|
+
_focus: {
|
|
85
|
+
ringWidth: 2,
|
|
86
|
+
ringColor: "teal.300",
|
|
87
|
+
outline: "1px solid transparent",
|
|
88
|
+
outlineOffset: "1px",
|
|
89
|
+
},
|
|
90
|
+
cursor: "pointer",
|
|
91
|
+
fontSize: "sm",
|
|
92
|
+
fontWeight: 500,
|
|
93
|
+
rounded: "md",
|
|
94
|
+
width: { base: "full", sm: "auto" },
|
|
95
|
+
p: 2,
|
|
96
|
+
})
|
|
97
|
+
}
|
|
98
|
+
>
|
|
99
|
+
Add to-do
|
|
100
|
+
</button>
|
|
53
101
|
</form>
|
|
54
102
|
</div>
|
|
55
103
|
</>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
LXs,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "../../../../chunk-
|
|
4
|
+
eQr,
|
|
5
|
+
vTs
|
|
6
|
+
} from "../../../../chunk-O2DQVJZQ.js";
|
|
7
7
|
import "../../../../chunk-LU7IBQI7.js";
|
|
8
8
|
|
|
9
9
|
// ../../boilerplates/sentry/dist/files/$vite.config.ts.js
|
|
10
10
|
async function getViteConfig(props) {
|
|
11
11
|
const mod = await LXs(props);
|
|
12
|
-
|
|
12
|
+
vTs(mod, {
|
|
13
13
|
from: "@sentry/vite-plugin",
|
|
14
14
|
constructor: "sentryVitePlugin",
|
|
15
15
|
imported: "sentryVitePlugin",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
OXs
|
|
4
|
-
} from "../../../../chunk-
|
|
4
|
+
} from "../../../../chunk-O2DQVJZQ.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/solid/dist/files/$package.json.js
|
|
@@ -39,6 +39,7 @@ var require_package = __commonJS({
|
|
|
39
39
|
description: "",
|
|
40
40
|
type: "module",
|
|
41
41
|
scripts: {
|
|
42
|
+
prepare: "panda codegen --silent",
|
|
42
43
|
"check-types": "tsc --noEmit",
|
|
43
44
|
build: "bati-compile-boilerplate"
|
|
44
45
|
},
|
|
@@ -47,6 +48,7 @@ var require_package = __commonJS({
|
|
|
47
48
|
license: "MIT",
|
|
48
49
|
devDependencies: {
|
|
49
50
|
"@batijs/compile": "workspace:*",
|
|
51
|
+
"@pandacss/dev": "^0.47.1",
|
|
50
52
|
"@types/node": "^18.19.64",
|
|
51
53
|
"solid-js": "^1.9.3",
|
|
52
54
|
tailwindcss: "^3.4.15",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
LXs,
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-
|
|
4
|
+
vTs
|
|
5
|
+
} from "../../../../chunk-O2DQVJZQ.js";
|
|
6
6
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
7
|
|
|
8
8
|
// ../../boilerplates/solid/dist/files/$vite.config.ts.js
|
|
9
9
|
async function getViteConfig(props) {
|
|
10
10
|
const mod = await LXs(props);
|
|
11
|
-
|
|
11
|
+
vTs(mod, {
|
|
12
12
|
from: "vike-solid/vite",
|
|
13
13
|
constructor: "vikeSolid"
|
|
14
14
|
});
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
//# BATI.has("tailwindcss")
|
|
3
3
|
import "./tailwind.css";
|
|
4
|
+
//# BATI.has("panda-css")
|
|
5
|
+
import "./panda.css";
|
|
4
6
|
import type { JSX } from "solid-js";
|
|
5
7
|
import logoUrl from "../assets/logo.svg";
|
|
6
8
|
import { Link } from "../components/Link.js";
|
|
9
|
+
import { css } from "../styled-system/css";
|
|
7
10
|
|
|
8
11
|
export default function LayoutDefault(props: { children?: JSX.Element }) {
|
|
9
12
|
return (
|
|
10
13
|
<div
|
|
11
|
-
//# BATI.has("tailwindcss")
|
|
12
|
-
class="flex max-w-5xl m-auto"
|
|
13
|
-
//# !BATI.has("tailwindcss")
|
|
14
|
+
//# BATI.has("tailwindcss") || BATI.has("panda-css")
|
|
15
|
+
class={BATI.has("tailwindcss") ? "flex max-w-5xl m-auto" : css({ display: "flex", maxW: "900px", m: "auto" })}
|
|
16
|
+
//# !BATI.has("tailwindcss") && !BATI.has("panda-css")
|
|
14
17
|
style={{
|
|
15
18
|
display: "flex",
|
|
16
19
|
"max-width": "900px",
|
|
@@ -33,9 +36,20 @@ function Sidebar(props: { children: JSX.Element }) {
|
|
|
33
36
|
return (
|
|
34
37
|
<div
|
|
35
38
|
id="sidebar"
|
|
36
|
-
//# BATI.has("tailwindcss")
|
|
37
|
-
class=
|
|
38
|
-
|
|
39
|
+
//# BATI.has("tailwindcss") || BATI.has("panda-css")
|
|
40
|
+
class={
|
|
41
|
+
BATI.has("tailwindcss")
|
|
42
|
+
? "p-5 flex flex-col shrink-0 border-r-2 border-r-gray-200"
|
|
43
|
+
: css({
|
|
44
|
+
p: "20px",
|
|
45
|
+
display: "flex",
|
|
46
|
+
flexShrink: 0,
|
|
47
|
+
flexDir: "column",
|
|
48
|
+
lineHeight: "1.8em",
|
|
49
|
+
borderRight: "2px solid #eee",
|
|
50
|
+
})
|
|
51
|
+
}
|
|
52
|
+
//# !BATI.has("tailwindcss") && !BATI.has("panda-css")
|
|
39
53
|
style={{
|
|
40
54
|
padding: "20px",
|
|
41
55
|
"flex-shrink": 0,
|
|
@@ -55,9 +69,9 @@ function Content(props: { children: JSX.Element }) {
|
|
|
55
69
|
<div id="page-container">
|
|
56
70
|
<div
|
|
57
71
|
id="page-content"
|
|
58
|
-
//# BATI.has("tailwindcss")
|
|
59
|
-
class="p-5 pb-12 min-h-screen"
|
|
60
|
-
//# !BATI.has("tailwindcss")
|
|
72
|
+
//# BATI.has("tailwindcss") || BATI.has("panda-css")
|
|
73
|
+
class={BATI.has("tailwindcss") ? "p-5 pb-12 min-h-screen" : css({ p: "20px", pb: "50px", minH: "100vh" })}
|
|
74
|
+
//# !BATI.has("tailwindcss") && !BATI.has("panda-css")
|
|
61
75
|
style={{
|
|
62
76
|
padding: "20px",
|
|
63
77
|
"padding-bottom": "50px",
|
|
@@ -73,9 +87,9 @@ function Content(props: { children: JSX.Element }) {
|
|
|
73
87
|
function Logo() {
|
|
74
88
|
return (
|
|
75
89
|
<div
|
|
76
|
-
//# BATI.has("tailwindcss")
|
|
77
|
-
class="p-5 mb-2"
|
|
78
|
-
//# !BATI.has("tailwindcss")
|
|
90
|
+
//# BATI.has("tailwindcss") || BATI.has("panda-css")
|
|
91
|
+
class={BATI.has("tailwindcss") ? "p-5 mb-2" : css({ p: "20px", mb: "10px" })}
|
|
92
|
+
//# !BATI.has("tailwindcss") && !BATI.has("panda-css")
|
|
79
93
|
style={{
|
|
80
94
|
"margin-top": "20px",
|
|
81
95
|
"margin-bottom": "10px",
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { Counter } from "./Counter.js";
|
|
2
|
+
import { css } from "../../styled-system/css";
|
|
2
3
|
|
|
3
4
|
export default function Page() {
|
|
4
5
|
return (
|
|
5
6
|
<>
|
|
6
7
|
<h1
|
|
7
|
-
//# BATI.has("tailwindcss")
|
|
8
|
-
class=
|
|
8
|
+
//# BATI.has("tailwindcss") || BATI.has("panda-css")
|
|
9
|
+
class={
|
|
10
|
+
BATI.has("tailwindcss")
|
|
11
|
+
? "font-bold text-3xl pb-4"
|
|
12
|
+
: css({ font: "bold 2em sans-serif", marginBlock: "0.67em" })
|
|
13
|
+
}
|
|
9
14
|
>
|
|
10
15
|
My Vike app
|
|
11
16
|
</h1>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createSignal } from "solid-js";
|
|
2
|
+
import { css } from "../../styled-system/css";
|
|
2
3
|
|
|
3
4
|
export { Counter };
|
|
4
5
|
|
|
@@ -8,8 +9,22 @@ function Counter() {
|
|
|
8
9
|
return (
|
|
9
10
|
<button
|
|
10
11
|
type="button"
|
|
11
|
-
//# BATI.has("tailwindcss")
|
|
12
|
-
class=
|
|
12
|
+
//# BATI.has("tailwindcss") || BATI.has("panda-css")
|
|
13
|
+
class={
|
|
14
|
+
BATI.has("tailwindcss")
|
|
15
|
+
? "inline-block border border-black rounded bg-gray-200 px-2 py-1 text-xs font-medium uppercase leading-normal"
|
|
16
|
+
: css({
|
|
17
|
+
display: "inline-block",
|
|
18
|
+
border: "1px solid black",
|
|
19
|
+
rounded: "sm",
|
|
20
|
+
bg: "gray.200",
|
|
21
|
+
px: 1,
|
|
22
|
+
py: 0.5,
|
|
23
|
+
fontSize: 12,
|
|
24
|
+
fontWeight: 500,
|
|
25
|
+
lineHeight: "16px",
|
|
26
|
+
})
|
|
27
|
+
}
|
|
13
28
|
onClick={() => setCount((count) => count + 1)}
|
|
14
29
|
>
|
|
15
30
|
Counter {count()}
|