@batijs/cli 0.0.307 → 0.0.309

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 (113) 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 +4 -4
  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 +2 -2
  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 +3 -3
  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 +2 -2
  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 +2 -2
  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 +2 -2
  26. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +2 -2
  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 +11 -5
  30. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +1 -1
  31. package/dist/boilerplates/@batijs/h3/files/$package.json.js +2 -2
  32. package/dist/boilerplates/@batijs/hattip/files/$package.json.js +2 -2
  33. package/dist/boilerplates/@batijs/hono/files/$package.json.js +3 -3
  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 +5 -6
  38. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +1 -1
  39. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +2 -2
  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 +5 -3
  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/types/pages/+config.d.ts +6 -0
  61. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +2 -2
  62. package/dist/boilerplates/@batijs/sentry/files/$.env.js +1 -1
  63. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +1 -1
  64. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +1 -1
  65. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +4 -4
  66. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +1 -1
  67. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +1 -1
  68. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +1 -1
  69. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +1 -1
  70. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +1 -1
  71. package/dist/boilerplates/@batijs/shared/files/$README.md.js +1 -1
  72. package/dist/boilerplates/@batijs/shared/files/.gitignore +4 -0
  73. package/dist/boilerplates/@batijs/shared/files/package.json +1 -1
  74. package/dist/boilerplates/@batijs/shared/files/tsconfig.json +1 -1
  75. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +2 -2
  76. package/dist/boilerplates/@batijs/solid/files/$README.md.js +1 -1
  77. package/dist/boilerplates/@batijs/solid/files/$package.json.js +4 -2
  78. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +1 -1
  79. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +3 -3
  80. package/dist/boilerplates/@batijs/solid/files/layouts/LayoutDefault.tsx +26 -12
  81. package/dist/boilerplates/@batijs/solid/files/pages/index/+Page.tsx +7 -2
  82. package/dist/boilerplates/@batijs/solid/files/pages/index/Counter.tsx +17 -2
  83. package/dist/boilerplates/@batijs/solid/files/pages/todo/TodoList.tsx +50 -2
  84. package/dist/boilerplates/@batijs/solid/types/layouts/LayoutDefault.d.ts +1 -0
  85. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +2 -2
  86. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +1 -1
  87. package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +1 -1
  88. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +2 -2
  89. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +2 -2
  90. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +2 -2
  91. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +3 -3
  92. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -1
  93. package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +4 -4
  94. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +1 -1
  95. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +2 -2
  96. package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +1 -1
  97. package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +3 -3
  98. package/dist/boilerplates/@batijs/vue/files/$README.md.js +1 -1
  99. package/dist/boilerplates/@batijs/vue/files/$package.json.js +4 -2
  100. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +1 -1
  101. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +4 -4
  102. package/dist/boilerplates/@batijs/vue/files/components/Content.vue +8 -2
  103. package/dist/boilerplates/@batijs/vue/files/components/Counter.vue +24 -10
  104. package/dist/boilerplates/@batijs/vue/files/components/Logo.vue +10 -2
  105. package/dist/boilerplates/@batijs/vue/files/components/Sidebar.vue +20 -2
  106. package/dist/boilerplates/@batijs/vue/files/layouts/LayoutDefault.vue +2 -0
  107. package/dist/boilerplates/@batijs/vue/files/pages/index/+Page.vue +5 -5
  108. package/dist/boilerplates/@batijs/vue/files/pages/todo/TodoList.vue +45 -2
  109. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +2 -2
  110. package/dist/boilerplates/boilerplates.json +11 -0
  111. package/dist/{chunk-ACADSV35.js → chunk-2XLSFFOD.js} +17629 -17621
  112. package/dist/index.js +20 -5
  113. package/package.json +5 -5
@@ -0,0 +1,95 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ OXs
4
+ } from "../../../../chunk-2XLSFFOD.js";
5
+ import "../../../../chunk-LU7IBQI7.js";
6
+
7
+ // ../../boilerplates/panda-css/dist/files/$package.json.js
8
+ var __create = Object.create;
9
+ var __defProp = Object.defineProperty;
10
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11
+ var __getOwnPropNames = Object.getOwnPropertyNames;
12
+ var __getProtoOf = Object.getPrototypeOf;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __commonJS = (cb, mod) => function __require() {
15
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16
+ };
17
+ var __copyProps = (to, from, except, desc) => {
18
+ if (from && typeof from === "object" || typeof from === "function") {
19
+ for (let key of __getOwnPropNames(from))
20
+ if (!__hasOwnProp.call(to, key) && key !== except)
21
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
22
+ }
23
+ return to;
24
+ };
25
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
26
+ // If the importer is in node compatibility mode or this is not an ESM
27
+ // file that has been converted to a CommonJS file using a Babel-
28
+ // compatible transform (i.e. "__esModule" has not been set), then set
29
+ // "default" to the CommonJS "module.exports" for node compatibility.
30
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
31
+ mod
32
+ ));
33
+ var require_package = __commonJS({
34
+ "package.json"(exports, module) {
35
+ module.exports = {
36
+ name: "@batijs/panda-css",
37
+ private: true,
38
+ version: "0.0.1",
39
+ description: "",
40
+ type: "module",
41
+ scripts: {
42
+ "check-types": "tsc --noEmit",
43
+ build: "bati-compile-boilerplate"
44
+ },
45
+ keywords: [],
46
+ author: "",
47
+ license: "MIT",
48
+ devDependencies: {
49
+ "@batijs/compile": "workspace:*",
50
+ "@pandacss/dev": "^0.48.0",
51
+ "@types/node": "^18.19.64",
52
+ postcss: "^8.4.49"
53
+ },
54
+ dependencies: {
55
+ "@batijs/core": "workspace:*"
56
+ },
57
+ files: [
58
+ "dist/"
59
+ ],
60
+ bati: {
61
+ if: {
62
+ flag: "panda-css"
63
+ }
64
+ },
65
+ exports: {
66
+ "./panda.config": {
67
+ types: "./dist/types/panda.config.d.ts"
68
+ },
69
+ "./postcss.config": {
70
+ types: "./dist/types/postcss.config.d.ts"
71
+ }
72
+ },
73
+ typesVersions: {
74
+ "*": {
75
+ "panda.config": [
76
+ "./dist/types/panda.config.d.ts"
77
+ ],
78
+ "postcss.config": [
79
+ "./dist/types/postcss.config.d.ts"
80
+ ]
81
+ }
82
+ }
83
+ };
84
+ }
85
+ });
86
+ async function getPackageJson(props) {
87
+ const packageJson = await OXs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
88
+ return packageJson.setScript("prepare", {
89
+ value: "panda codegen",
90
+ precedence: 20
91
+ }).addDevDependencies(["@pandacss/dev", "postcss"]).addDependencies([]);
92
+ }
93
+ export {
94
+ getPackageJson as default
95
+ };
@@ -0,0 +1 @@
1
+ @layer reset, base, tokens, recipes, utilities;
@@ -0,0 +1,32 @@
1
+ import { defineConfig } from "@pandacss/dev";
2
+
3
+ export default defineConfig({
4
+ // Whether to use css reset
5
+ preflight: true,
6
+
7
+ // Where to look for your css declarations
8
+ include: BATI.has("vue")
9
+ ? [
10
+ "./components/**/*.{js,jsx,ts,tsx,vue}",
11
+ "./layouts/**/*.{js,jsx,ts,tsx,vue}",
12
+ "./pages/**/*.{js,jsx,ts,tsx,vue}",
13
+ "./src/**/*.{js,jsx,ts,tsx,vue}",
14
+ ]
15
+ : [
16
+ "./components/**/*.{js,jsx,ts,tsx}",
17
+ "./layouts/**/*.{js,jsx,ts,tsx}",
18
+ "./pages/**/*.{js,jsx,ts,tsx}",
19
+ "./src/**/*.{js,jsx,ts,tsx}",
20
+ ],
21
+
22
+ // Files to exclude
23
+ exclude: [],
24
+
25
+ // Useful for theme customization
26
+ theme: {
27
+ extend: {},
28
+ },
29
+
30
+ // The output directory for your css system
31
+ outdir: "styled-system",
32
+ });
@@ -0,0 +1,5 @@
1
+ export default {
2
+ plugins: {
3
+ "@pandacss/dev/postcss": {},
4
+ },
5
+ };
@@ -0,0 +1,4 @@
1
+ declare const _default: import("@pandacss/dev").Config & {
2
+ name: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare namespace _default {
2
+ let plugins: {
3
+ "@pandacss/dev/postcss": {};
4
+ };
5
+ }
6
+ export default _default;
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  OXs
4
- } from "../../../../chunk-ACADSV35.js";
4
+ } from "../../../../chunk-2XLSFFOD.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/prettier/dist/files/$package.json.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
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  WXs
4
- } from "../../../../chunk-ACADSV35.js";
4
+ } from "../../../../chunk-2XLSFFOD.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/prisma/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-2XLSFFOD.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/prisma/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-2XLSFFOD.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/prisma/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-2XLSFFOD.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/react/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-2XLSFFOD.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.48.0",
54
56
  "@types/node": "^18.19.64",
55
57
  "@types/react": "^18.3.12",
56
58
  "@types/react-dom": "^18.3.1",
@@ -59,8 +61,8 @@ var require_package = __commonJS({
59
61
  "react-dom": "^18.3.1",
60
62
  tailwindcss: "^3.4.15",
61
63
  typescript: "^5.6.3",
62
- vike: "^0.4.203",
63
- "vike-react": "^0.5.7",
64
+ vike: "^0.4.204",
65
+ "vike-react": "^0.5.8",
64
66
  vite: "^5.4.11",
65
67
  "vite-plugin-compiled-react": "^1.1.3"
66
68
  },
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  IXs
4
- } from "../../../../chunk-ACADSV35.js";
4
+ } from "../../../../chunk-2XLSFFOD.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-2XLSFFOD.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;
@@ -106,6 +106,12 @@ declare const _default: {
106
106
  server: true;
107
107
  };
108
108
  };
109
+ onBeforeRenderHtml: {
110
+ env: {
111
+ server: true;
112
+ };
113
+ cumulative: true;
114
+ };
109
115
  onAfterRenderHtml: {
110
116
  env: {
111
117
  server: 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-2XLSFFOD.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/react-sentry/dist/files/$package.json.js
@@ -47,7 +47,7 @@ var require_package = __commonJS({
47
47
  license: "MIT",
48
48
  devDependencies: {
49
49
  "@batijs/compile": "workspace:*",
50
- "@sentry/react": "^8.38.0",
50
+ "@sentry/react": "^8.39.0",
51
51
  "@types/node": "^18.19.64",
52
52
  "@types/react": "^18.3.12",
53
53
  "@types/react-dom": "^18.3.1",
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  WXs
4
- } from "../../../../chunk-ACADSV35.js";
4
+ } from "../../../../chunk-2XLSFFOD.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-2XLSFFOD.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-2XLSFFOD.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-2XLSFFOD.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-2XLSFFOD.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-2XLSFFOD.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-2XLSFFOD.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-2XLSFFOD.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-2XLSFFOD.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-2XLSFFOD.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