@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
@@ -2,6 +2,7 @@ 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
4
  import { createSignal, For, untrack } from "solid-js";
5
+ import { css } from "../../styled-system/css";
5
6
 
6
7
  export function TodoList(props: { initialTodoItems: { text: string }[] }) {
7
8
  const [todoItems, setTodoItems] = createSignal(props.initialTodoItems);
@@ -45,8 +46,55 @@ export function TodoList(props: { initialTodoItems: { text: string }[] }) {
45
46
  }
46
47
  }}
47
48
  >
48
- <input type="text" onChange={(ev) => setNewTodo(ev.target.value)} value={newTodo()} />{" "}
49
- <button type="submit">Add to-do</button>
49
+ <input
50
+ type="text"
51
+ onChange={(ev) => setNewTodo(ev.target.value)}
52
+ value={newTodo()}
53
+ //# BATI.has("tailwindcss") || BATI.has("panda-css")
54
+ class={
55
+ BATI.has("tailwindcss")
56
+ ? "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"
57
+ : css({
58
+ p: 2,
59
+ bg: "gray.50",
60
+ borderWidth: 1,
61
+ borderColor: "gray.300",
62
+ color: "gray.900",
63
+ fontSize: "sm",
64
+ rounded: "md",
65
+ width: { base: "full", sm: "auto" },
66
+ _focus: { ringColor: "teal.500", borderColor: "teal.500" },
67
+ mr: 1,
68
+ mb: 1,
69
+ })
70
+ }
71
+ />
72
+ <button
73
+ type="submit"
74
+ //# BATI.has("tailwindcss") || BATI.has("panda-css")
75
+ class={
76
+ BATI.has("tailwindcss")
77
+ ? "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"
78
+ : css({
79
+ color: "white",
80
+ bg: { base: "teal.700", _hover: "teal.800" },
81
+ _focus: {
82
+ ringWidth: 2,
83
+ ringColor: "teal.300",
84
+ outline: "1px solid transparent",
85
+ outlineOffset: "1px",
86
+ },
87
+ cursor: "pointer",
88
+ fontSize: "sm",
89
+ fontWeight: 500,
90
+ rounded: "md",
91
+ width: { base: "full", sm: "auto" },
92
+ p: 2,
93
+ })
94
+ }
95
+ >
96
+ Add to-do
97
+ </button>
50
98
  </form>
51
99
  </div>
52
100
  </>
@@ -1,5 +1,6 @@
1
1
  import "./style.css";
2
2
  import "./tailwind.css";
3
+ import "./panda.css";
3
4
  import type { JSX } from "solid-js";
4
5
  export default function LayoutDefault(props: {
5
6
  children?: JSX.Element;
@@ -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-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/sqlite/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/sqlite/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/sqlite/dist/files/$package.json.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/tailwindcss/dist/files/$package.json.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/telefunc/dist/files/$package.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/telefunc/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: "telefunc/vite",
13
13
  constructor: "telefunc",
14
14
  imported: "telefunc"
@@ -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/trpc/dist/files/$package.json.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/ts-rest/dist/files/$package.json.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/vercel/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/vercel/dist/files/$tsconfig.json.js
@@ -1,8 +1,8 @@
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/vercel/dist/files/$vite.config.ts.js
@@ -11,7 +11,7 @@ async function getViteConfig(props) {
11
11
  const options = props.meta.BATI.has("express") || props.meta.BATI.has("fastify") ? {
12
12
  source: "/.*"
13
13
  } : void 0;
14
- Tvs(mod, {
14
+ vTs(mod, {
15
15
  from: "vite-plugin-vercel",
16
16
  constructor: "vercel",
17
17
  options
@@ -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/vue/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/vue/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
  "@vitejs/plugin-vue": "^5.2.0",
52
54
  "@vue/compiler-sfc": "^3.5.13",
@@ -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/vue/dist/files/$tsconfig.json.js
@@ -1,21 +1,21 @@
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/vue/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: "@vitejs/plugin-vue",
13
13
  constructor: "vue",
14
14
  options: {
15
15
  include: [/\.vue$/, /\.md$/]
16
16
  }
17
17
  });
18
- Tvs(mod, {
18
+ vTs(mod, {
19
19
  from: "unplugin-vue-markdown/vite",
20
20
  constructor: "md",
21
21
  options: {}
@@ -4,14 +4,20 @@
4
4
  <div id="page-content" class="p-5 pb-12 min-h-screen">
5
5
  <slot />
6
6
  </div>
7
- <!-- !BATI.has("tailwindcss") -->
7
+ <!-- BATI.has("panda-css") -->
8
+ <div id="page-content" :class="css({ p: '20px', pb: '50px', minH: '100vh' })">
9
+ <slot />
10
+ </div>
11
+ <!-- !BATI.has("tailwindcss") && !BATI.has("panda-css") -->
8
12
  <div id="page-content" style="padding: 20px; padding-bottom: 50px; min-height: 100vh">
9
13
  <slot />
10
14
  </div>
11
15
  </div>
12
16
  </template>
13
17
 
14
- <script setup lang="ts"></script>
18
+ <script setup lang="ts">
19
+ import { css } from "../styled-system/css";
20
+ </script>
15
21
 
16
22
  <style>
17
23
  /* Page Transition Animation */
@@ -7,19 +7,33 @@
7
7
  >
8
8
  Counter {{ state.count }}
9
9
  </button>
10
- <!-- !BATI.has("tailwindcss") -->
10
+ <!-- BATI.has("panda-css") -->
11
+ <button
12
+ type="button"
13
+ :class="
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
+ "
26
+ @click="state.count++"
27
+ >
28
+ Counter {{ state.count }}
29
+ </button>
30
+ <!-- !BATI.has("tailwindcss") && !BATI.has("panda-css") -->
11
31
  <button type="button" @click="state.count++">Counter {{ state.count }}</button>
12
32
  </template>
13
33
 
14
- <script lang="ts">
34
+ <script setup lang="ts">
15
35
  import { reactive } from "vue";
36
+ import { css } from "../styled-system/css";
16
37
 
17
- export default {
18
- setup() {
19
- const state = reactive({ count: 0 });
20
- return {
21
- state,
22
- };
23
- },
24
- };
38
+ const state = reactive({ count: 0 });
25
39
  </script>
@@ -5,11 +5,19 @@
5
5
  <img src="../assets/logo.svg" height="64" width="64" />
6
6
  </a>
7
7
  </div>
8
- <!-- !BATI.has("tailwindcss") -->
8
+ <!-- BATI.has("panda-css") -->
9
+ <div :class="css({ p: '20px', mb: '10px' })">
10
+ <a href="/">
11
+ <img src="../assets/logo.svg" height="64" width="64" />
12
+ </a>
13
+ </div>
14
+ <!-- !BATI.has("tailwindcss") && !BATI.has("panda-css") -->
9
15
  <div style="margin-top: 20px; margin-bottom: 10px">
10
16
  <a href="/">
11
17
  <img src="../assets/logo.svg" height="64" width="64" />
12
18
  </a>
13
19
  </div>
14
20
  </template>
15
- <script setup lang="ts"></script>
21
+ <script setup lang="ts">
22
+ import { css } from "../styled-system/css";
23
+ </script>
@@ -3,7 +3,23 @@
3
3
  <div id="sidebar" class="p-5 flex flex-col shrink-0 border-r-2 border-r-gray-200">
4
4
  <slot />
5
5
  </div>
6
- <!-- !BATI.has("tailwindcss") -->
6
+ <!-- BATI.has("panda-css") -->
7
+ <div
8
+ id="sidebar"
9
+ :class="
10
+ css({
11
+ p: '20px',
12
+ display: 'flex',
13
+ flexShrink: 0,
14
+ flexDir: 'column',
15
+ lineHeight: '1.8em',
16
+ borderRight: '2px solid #eee',
17
+ })
18
+ "
19
+ >
20
+ <slot />
21
+ </div>
22
+ <!-- !BATI.has("tailwindcss") && !BATI.has("panda-css") -->
7
23
  <div
8
24
  id="sidebar"
9
25
  style="
@@ -18,4 +34,6 @@
18
34
  <slot />
19
35
  </div>
20
36
  </template>
21
- <script setup lang="ts"></script>
37
+ <script setup lang="ts">
38
+ import { css } from "../styled-system/css";
39
+ </script>
@@ -13,6 +13,8 @@
13
13
  </template>
14
14
 
15
15
  <script lang="ts" setup>
16
+ //# BATI.has("panda-css")
17
+ import "./panda.css";
16
18
  import Content from "../components/Content.vue";
17
19
  import Link from "../components/Link.vue";
18
20
  import Logo from "../components/Logo.vue";
@@ -1,7 +1,9 @@
1
1
  <template>
2
2
  <!-- BATI.has("tailwindcss") -->
3
3
  <h1 class="font-bold text-3xl pb-4">My Vike app</h1>
4
- <!-- !BATI.has("tailwindcss") -->
4
+ <!-- BATI.has("panda-css") -->
5
+ <h1 :class="css({ font: 'bold 2em sans-serif', marginBlock: '0.67em' })">My Vike app</h1>
6
+ <!-- !BATI.has("tailwindcss") && !BATI.has("panda-css") -->
5
7
  <h1>My Vike app</h1>
6
8
  This page is:
7
9
  <ul>
@@ -10,9 +12,7 @@
10
12
  </ul>
11
13
  </template>
12
14
 
13
- <script lang="ts">
15
+ <script setup lang="ts">
14
16
  import Counter from "../../components/Counter.vue";
15
-
16
- const components = { Counter };
17
- export default { components };
17
+ import { css } from "../../styled-system/css";
18
18
  </script>
@@ -5,8 +5,8 @@
5
5
  </li>
6
6
  <li>
7
7
  <form @submit.prevent="submitNewTodo()">
8
- <input v-model="newTodo" type="text" />{{ " " }}
9
- <button type="submit">Add to-do</button>
8
+ <input v-model="newTodo" type="text" :class="[inputClass]" />
9
+ <button type="submit" :class="[buttonClass]">Add to-do</button>
10
10
  </form>
11
11
  </li>
12
12
  </ul>
@@ -17,6 +17,49 @@ import { onNewTodo } from "@batijs/telefunc/pages/todo/TodoList.telefunc";
17
17
  import { trpc } from "@batijs/trpc/trpc/client";
18
18
  import { client } from "@batijs/ts-rest/ts-rest/client";
19
19
  import { ref } from "vue";
20
+ import { css } from "../../styled-system/css";
21
+
22
+ const inputClass = ref(
23
+ BATI.has("tailwindcss")
24
+ ? "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"
25
+ : BATI.has("panda-css")
26
+ ? css({
27
+ p: 2,
28
+ bg: "gray.50",
29
+ borderWidth: 1,
30
+ borderColor: "gray.300",
31
+ color: "gray.900",
32
+ fontSize: "sm",
33
+ rounded: "md",
34
+ width: { base: "full", sm: "auto" },
35
+ _focus: { ringColor: "teal.500", borderColor: "teal.500" },
36
+ mr: 1,
37
+ mb: 1,
38
+ })
39
+ : "",
40
+ );
41
+ const buttonClass = ref(
42
+ BATI.has("tailwindcss")
43
+ ? "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"
44
+ : BATI.has("panda-css")
45
+ ? css({
46
+ color: "white",
47
+ bg: { base: "teal.700", _hover: "teal.800" },
48
+ _focus: {
49
+ ringWidth: 2,
50
+ ringColor: "teal.300",
51
+ outline: "1px solid transparent",
52
+ outlineOffset: "1px",
53
+ },
54
+ cursor: "pointer",
55
+ fontSize: "sm",
56
+ fontWeight: 500,
57
+ rounded: "md",
58
+ width: { base: "full", sm: "auto" },
59
+ p: 2,
60
+ })
61
+ : "",
62
+ );
20
63
 
21
64
  const props = defineProps<{ initialTodoItems: { text: string }[] }>();
22
65
  const todoItems = ref(props.initialTodoItems);
@@ -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/vue-sentry/dist/files/$package.json.js
@@ -245,6 +245,17 @@
245
245
  "files"
246
246
  ]
247
247
  },
248
+ {
249
+ "config": {
250
+ "if": {
251
+ "flag": "panda-css"
252
+ }
253
+ },
254
+ "folder": "@batijs/panda-css",
255
+ "subfolders": [
256
+ "files"
257
+ ]
258
+ },
248
259
  {
249
260
  "config": {
250
261
  "if": {