@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.
Files changed (110) hide show
  1. package/dist/boilerplates/@batijs/auth0/files/$.env.js +1 -1
  2. package/dist/boilerplates/@batijs/auth0/files/$README.md.js +1 -1
  3. package/dist/boilerplates/@batijs/authjs/files/$package.json.js +1 -1
  4. package/dist/boilerplates/@batijs/aws/files/$README.md.js +1 -1
  5. package/dist/boilerplates/@batijs/aws/files/$package.json.js +1 -1
  6. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +1 -1
  7. package/dist/boilerplates/@batijs/biome/files/$package.json.js +1 -1
  8. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +1 -1
  9. package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +1 -1
  10. package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +3 -3
  11. package/dist/boilerplates/@batijs/compiled/files/$package.json.js +1 -1
  12. package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +3 -3
  13. package/dist/boilerplates/@batijs/d1/files/$README.md.js +1 -1
  14. package/dist/boilerplates/@batijs/d1/files/$package.json.js +1 -1
  15. package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +1 -1
  16. package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +1 -1
  17. package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +1 -1
  18. package/dist/boilerplates/@batijs/drizzle/files/$.env.js +1 -1
  19. package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +1 -1
  20. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +1 -1
  21. package/dist/boilerplates/@batijs/edgedb/files/$README.md.js +1 -1
  22. package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +1 -1
  23. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +1 -1
  24. package/dist/boilerplates/@batijs/eslint/files/eslint.config.js +2 -0
  25. package/dist/boilerplates/@batijs/express/files/$package.json.js +1 -1
  26. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +1 -1
  27. package/dist/boilerplates/@batijs/firebase-auth/files/$.env.js +1 -1
  28. package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +1 -1
  29. package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +1 -1
  30. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +1 -1
  31. package/dist/boilerplates/@batijs/h3/files/$package.json.js +1 -1
  32. package/dist/boilerplates/@batijs/hattip/files/$package.json.js +1 -1
  33. package/dist/boilerplates/@batijs/hono/files/$package.json.js +1 -1
  34. package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +3 -3
  35. package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +1 -1
  36. package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +1 -1
  37. package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +1 -1
  38. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +1 -1
  39. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +1 -1
  40. package/dist/boilerplates/@batijs/panda-css/files/$package.json.js +95 -0
  41. package/dist/boilerplates/@batijs/panda-css/files/layouts/panda.css +1 -0
  42. package/dist/boilerplates/@batijs/panda-css/files/panda.config.ts +32 -0
  43. package/dist/boilerplates/@batijs/panda-css/files/postcss.config.js +5 -0
  44. package/dist/boilerplates/@batijs/panda-css/types/panda.config.d.ts +4 -0
  45. package/dist/boilerplates/@batijs/panda-css/types/postcss.config.d.ts +6 -0
  46. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +1 -1
  47. package/dist/boilerplates/@batijs/prettier/files/.prettierignore +4 -0
  48. package/dist/boilerplates/@batijs/prisma/files/$.env.js +1 -1
  49. package/dist/boilerplates/@batijs/prisma/files/$README.md.js +1 -1
  50. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +1 -1
  51. package/dist/boilerplates/@batijs/react/files/$README.md.js +1 -1
  52. package/dist/boilerplates/@batijs/react/files/$package.json.js +3 -1
  53. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +1 -1
  54. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +3 -3
  55. package/dist/boilerplates/@batijs/react/files/layouts/LayoutDefault.tsx +26 -12
  56. package/dist/boilerplates/@batijs/react/files/pages/index/+Page.tsx +7 -2
  57. package/dist/boilerplates/@batijs/react/files/pages/index/Counter.tsx +17 -2
  58. package/dist/boilerplates/@batijs/react/files/pages/todo/TodoList.tsx +50 -2
  59. package/dist/boilerplates/@batijs/react/types/layouts/LayoutDefault.d.ts +1 -0
  60. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +1 -1
  61. package/dist/boilerplates/@batijs/sentry/files/$.env.js +1 -1
  62. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +1 -1
  63. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +1 -1
  64. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +4 -4
  65. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +1 -1
  66. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +1 -1
  67. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +1 -1
  68. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +1 -1
  69. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +1 -1
  70. package/dist/boilerplates/@batijs/shared/files/$README.md.js +1 -1
  71. package/dist/boilerplates/@batijs/shared/files/.gitignore +4 -0
  72. package/dist/boilerplates/@batijs/shared/files/tsconfig.json +1 -1
  73. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +1 -1
  74. package/dist/boilerplates/@batijs/solid/files/$README.md.js +1 -1
  75. package/dist/boilerplates/@batijs/solid/files/$package.json.js +3 -1
  76. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +1 -1
  77. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +3 -3
  78. package/dist/boilerplates/@batijs/solid/files/layouts/LayoutDefault.tsx +26 -12
  79. package/dist/boilerplates/@batijs/solid/files/pages/index/+Page.tsx +7 -2
  80. package/dist/boilerplates/@batijs/solid/files/pages/index/Counter.tsx +17 -2
  81. package/dist/boilerplates/@batijs/solid/files/pages/todo/TodoList.tsx +50 -2
  82. package/dist/boilerplates/@batijs/solid/types/layouts/LayoutDefault.d.ts +1 -0
  83. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +1 -1
  84. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +1 -1
  85. package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +1 -1
  86. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +1 -1
  87. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +1 -1
  88. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +1 -1
  89. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +3 -3
  90. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -1
  91. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +1 -1
  92. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +1 -1
  93. package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +1 -1
  94. package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +3 -3
  95. package/dist/boilerplates/@batijs/vue/files/$README.md.js +1 -1
  96. package/dist/boilerplates/@batijs/vue/files/$package.json.js +3 -1
  97. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +1 -1
  98. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +4 -4
  99. package/dist/boilerplates/@batijs/vue/files/components/Content.vue +8 -2
  100. package/dist/boilerplates/@batijs/vue/files/components/Counter.vue +24 -10
  101. package/dist/boilerplates/@batijs/vue/files/components/Logo.vue +10 -2
  102. package/dist/boilerplates/@batijs/vue/files/components/Sidebar.vue +20 -2
  103. package/dist/boilerplates/@batijs/vue/files/layouts/LayoutDefault.vue +2 -0
  104. package/dist/boilerplates/@batijs/vue/files/pages/index/+Page.vue +5 -5
  105. package/dist/boilerplates/@batijs/vue/files/pages/todo/TodoList.vue +45 -2
  106. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +1 -1
  107. package/dist/boilerplates/boilerplates.json +11 -0
  108. package/dist/{chunk-ACADSV35.js → chunk-O2DQVJZQ.js} +17629 -17621
  109. package/dist/index.js +20 -5
  110. package/package.json +5 -5
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  OXs
4
- } from "../../../../chunk-ACADSV35.js";
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,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  IXs
4
- } from "../../../../chunk-ACADSV35.js";
4
+ } from "../../../../chunk-O2DQVJZQ.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/react/dist/files/$tsconfig.json.js
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  LXs,
4
- Tvs
5
- } from "../../../../chunk-ACADSV35.js";
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
- Tvs(mod, {
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="p-5 flex flex-col shrink-0 border-r-2 border-r-gray-200"
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="font-bold text-3xl pb-4"
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="inline-block border border-black rounded bg-gray-200 px-2 py-1 text-xs font-medium uppercase leading-normal"
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 type="text" onChange={(ev) => setNewTodo(ev.target.value)} value={newTodo} />{" "}
52
- <button type="submit">Add to-do</button>
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,5 +1,6 @@
1
1
  import "./style.css";
2
2
  import "./tailwind.css";
3
+ import "./panda.css";
3
4
  import React from "react";
4
5
  export default function LayoutDefault({ children }: {
5
6
  children: React.ReactNode;
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  OXs
4
- } from "../../../../chunk-ACADSV35.js";
4
+ } from "../../../../chunk-O2DQVJZQ.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/react-sentry/dist/files/$package.json.js
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  WXs
4
- } from "../../../../chunk-ACADSV35.js";
4
+ } from "../../../../chunk-O2DQVJZQ.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/sentry/dist/files/$.env.js
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  NXs
4
- } from "../../../../chunk-ACADSV35.js";
4
+ } from "../../../../chunk-O2DQVJZQ.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/sentry/dist/files/$README.md.js
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  OXs
4
- } from "../../../../chunk-ACADSV35.js";
4
+ } from "../../../../chunk-O2DQVJZQ.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/sentry/dist/files/$package.json.js
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  LXs,
4
- Tvs,
5
- eQr
6
- } from "../../../../chunk-ACADSV35.js";
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
- Tvs(mod, {
12
+ vTs(mod, {
13
13
  from: "@sentry/vite-plugin",
14
14
  constructor: "sentryVitePlugin",
15
15
  imported: "sentryVitePlugin",
@@ -4,7 +4,7 @@ import {
4
4
  LXs,
5
5
  Use,
6
6
  YV
7
- } from "../../../../../chunk-ACADSV35.js";
7
+ } from "../../../../../chunk-O2DQVJZQ.js";
8
8
  import "../../../../../chunk-LU7IBQI7.js";
9
9
 
10
10
  // ../../boilerplates/sentry/dist/files/pages/$+client.ts.js
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  NXs
4
- } from "../../../../chunk-ACADSV35.js";
4
+ } from "../../../../chunk-O2DQVJZQ.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/shadcn-ui/dist/files/$README.md.js
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  OXs
4
- } from "../../../../chunk-ACADSV35.js";
4
+ } from "../../../../chunk-O2DQVJZQ.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/shadcn-ui/dist/files/$package.json.js
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  IXs
4
- } from "../../../../chunk-ACADSV35.js";
4
+ } from "../../../../chunk-O2DQVJZQ.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/shadcn-ui/dist/files/$tsconfig.json.js
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  HXr,
4
4
  LXs
5
- } from "../../../../chunk-ACADSV35.js";
5
+ } from "../../../../chunk-O2DQVJZQ.js";
6
6
  import "../../../../chunk-LU7IBQI7.js";
7
7
 
8
8
  // ../../boilerplates/shadcn-ui/dist/files/$vite.config.ts.js
@@ -4,7 +4,7 @@ import {
4
4
  NXs,
5
5
  iQs,
6
6
  sQs
7
- } from "../../../../chunk-ACADSV35.js";
7
+ } from "../../../../chunk-O2DQVJZQ.js";
8
8
  import "../../../../chunk-LU7IBQI7.js";
9
9
 
10
10
  // ../../boilerplates/shared/dist/files/$README.md.js
@@ -140,3 +140,7 @@ dist
140
140
  # aws-cdk
141
141
  .cdk.staging
142
142
  cdk.out
143
+
144
+ ## Panda
145
+ styled-system
146
+ styled-system-studio
@@ -2,7 +2,7 @@
2
2
  "compilerOptions": {
3
3
  "strict": true,
4
4
  "allowJs": true,
5
- "checkJs": true,
5
+ "checkJs": false,
6
6
  "esModuleInterop": true,
7
7
  "forceConsistentCasingInFileNames": true,
8
8
  "resolveJsonModule": true,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  OXs
4
- } from "../../../../chunk-ACADSV35.js";
4
+ } from "../../../../chunk-O2DQVJZQ.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/shared-server/dist/files/$package.json.js
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  NXs
4
- } from "../../../../chunk-ACADSV35.js";
4
+ } from "../../../../chunk-O2DQVJZQ.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/solid/dist/files/$README.md.js
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  OXs
4
- } from "../../../../chunk-ACADSV35.js";
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,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  IXs
4
- } from "../../../../chunk-ACADSV35.js";
4
+ } from "../../../../chunk-O2DQVJZQ.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/solid/dist/files/$tsconfig.json.js
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  LXs,
4
- Tvs
5
- } from "../../../../chunk-ACADSV35.js";
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
- Tvs(mod, {
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="p-5 flex flex-col shrink-0 border-r-2 border-r-gray-200"
38
- //# !BATI.has("tailwindcss")
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="font-bold text-3xl pb-4"
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="inline-block border border-black rounded bg-gray-200 px-2 py-1 text-xs font-medium uppercase leading-normal"
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()}