@digilogiclabs/create-saas-app 1.5.2 → 1.5.4

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 (223) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/templates/mobile/base/template/.env.example +15 -0
  3. package/dist/templates/mobile/base/template/App.tsx +88 -0
  4. package/dist/templates/mobile/base/template/app/(auth)/login.tsx +44 -0
  5. package/dist/templates/mobile/base/template/app/(auth)/signup.tsx +43 -0
  6. package/dist/templates/mobile/base/template/app/checkout.tsx +20 -0
  7. package/dist/templates/mobile/base/template/package.json +38 -0
  8. package/dist/templates/shared/auth/firebase/web/config.ts +23 -0
  9. package/dist/templates/shared/auth/supabase/web/config.ts +8 -0
  10. package/dist/templates/web/base/template/.env.example +15 -0
  11. package/dist/templates/web/base/template/.eslintrc.js +8 -0
  12. package/dist/templates/web/base/template/README.md +68 -0
  13. package/dist/templates/web/base/template/next.config.js +15 -0
  14. package/dist/templates/web/base/template/package.json +58 -0
  15. package/dist/templates/web/base/template/postcss.config.js +7 -0
  16. package/dist/templates/web/base/template/src/app/auth/callback/route.ts +18 -0
  17. package/dist/templates/web/base/template/src/app/checkout/page.tsx +28 -0
  18. package/dist/templates/web/base/template/src/app/error.tsx +97 -0
  19. package/dist/templates/web/base/template/src/app/globals.css +60 -0
  20. package/dist/templates/web/base/template/src/app/layout.tsx +35 -0
  21. package/dist/templates/web/base/template/src/app/loading.tsx +34 -0
  22. package/dist/templates/web/base/template/src/app/login/page.tsx +39 -0
  23. package/dist/templates/web/base/template/src/app/page.tsx +132 -0
  24. package/dist/templates/web/base/template/src/app/signup/page.tsx +39 -0
  25. package/dist/templates/web/base/template/src/components/__tests__/example.test.tsx +49 -0
  26. package/dist/templates/web/base/template/src/components/providers/app-providers.tsx +33 -0
  27. package/dist/templates/web/base/template/src/components/providers/theme-provider.tsx +94 -0
  28. package/dist/templates/web/base/template/src/components/shared/footer.tsx +36 -0
  29. package/dist/templates/web/base/template/src/components/shared/header.tsx +44 -0
  30. package/dist/templates/web/base/template/src/components/ui/badge.tsx +36 -0
  31. package/dist/templates/web/base/template/src/components/ui/button.tsx +56 -0
  32. package/dist/templates/web/base/template/src/components/ui/card.tsx +71 -0
  33. package/dist/templates/web/base/template/src/components/ui/theme-toggle.tsx +34 -0
  34. package/dist/templates/web/base/template/src/lib/auth-server.ts +177 -0
  35. package/dist/templates/web/base/template/src/lib/env.ts +46 -0
  36. package/dist/templates/web/base/template/src/lib/utils.ts +140 -0
  37. package/dist/templates/web/base/template/src/test/setup.ts +79 -0
  38. package/dist/templates/web/base/template/tailwind.config.js +77 -0
  39. package/dist/templates/web/base/template/tsconfig.json +33 -0
  40. package/dist/templates/web/base/template/vitest.config.ts +17 -0
  41. package/dist/templates/web/base/template.backup/.env.example +15 -0
  42. package/dist/templates/web/base/template.backup.20250817/.env.example +15 -0
  43. package/dist/templates/web/ui-auth/template/.env.example +15 -0
  44. package/dist/templates/web/ui-auth/template/.eslintrc.js +8 -0
  45. package/dist/templates/web/ui-auth/template/README.md +68 -0
  46. package/dist/templates/web/ui-auth/template/next.config.js +12 -0
  47. package/dist/templates/web/ui-auth/template/package.json +50 -0
  48. package/dist/templates/web/ui-auth/template/postcss.config.js +7 -0
  49. package/dist/templates/web/ui-auth/template/src/app/auth/callback/route.ts +12 -0
  50. package/dist/templates/web/ui-auth/template/src/app/checkout/page.tsx +25 -0
  51. package/dist/templates/web/ui-auth/template/src/app/error.tsx +67 -0
  52. package/dist/templates/web/ui-auth/template/src/app/globals.css +42 -0
  53. package/dist/templates/web/ui-auth/template/src/app/layout.tsx +33 -0
  54. package/dist/templates/web/ui-auth/template/src/app/loading.tsx +20 -0
  55. package/dist/templates/web/ui-auth/template/src/app/login/page.tsx +109 -0
  56. package/dist/templates/web/ui-auth/template/src/app/page.tsx +129 -0
  57. package/dist/templates/web/ui-auth/template/src/app/signup/page.tsx +128 -0
  58. package/dist/templates/web/ui-auth/template/src/components/__tests__/example.test.tsx +49 -0
  59. package/dist/templates/web/ui-auth/template/src/components/providers/app-providers.tsx +29 -0
  60. package/dist/templates/web/ui-auth/template/src/components/providers/theme-provider.tsx +94 -0
  61. package/dist/templates/web/ui-auth/template/src/components/shared/footer.tsx +36 -0
  62. package/dist/templates/web/ui-auth/template/src/components/shared/header.tsx +53 -0
  63. package/dist/templates/web/ui-auth/template/src/components/ui/badge.tsx +36 -0
  64. package/dist/templates/web/ui-auth/template/src/components/ui/theme-toggle.tsx +34 -0
  65. package/dist/templates/web/ui-auth/template/src/lib/env.ts +49 -0
  66. package/dist/templates/web/ui-auth/template/src/lib/utils.ts +140 -0
  67. package/dist/templates/web/ui-auth/template/src/test/setup.ts +79 -0
  68. package/dist/templates/web/ui-auth/template/tailwind.config.js +77 -0
  69. package/dist/templates/web/ui-auth/template/tsconfig.json +33 -0
  70. package/dist/templates/web/ui-auth/template/vitest.config.ts +17 -0
  71. package/dist/templates/web/ui-auth/template.backup/.env.example +15 -0
  72. package/dist/templates/web/ui-auth/template.backup.20250817/.env.example +15 -0
  73. package/dist/templates/web/ui-auth-payments/template/.env.example +15 -0
  74. package/dist/templates/web/ui-auth-payments/template/README.md +165 -0
  75. package/dist/templates/web/ui-auth-payments/template/middleware.ts +68 -0
  76. package/dist/templates/web/ui-auth-payments/template/next.config.js +12 -0
  77. package/dist/templates/web/ui-auth-payments/template/package-lock.json +12240 -0
  78. package/dist/templates/web/ui-auth-payments/template/package.json +52 -0
  79. package/dist/templates/web/ui-auth-payments/template/postcss.config.js +7 -0
  80. package/dist/templates/web/ui-auth-payments/template/src/app/auth/callback/route.ts +12 -0
  81. package/dist/templates/web/ui-auth-payments/template/src/app/billing/page.tsx +211 -0
  82. package/dist/templates/web/ui-auth-payments/template/src/app/checkout/page.tsx +142 -0
  83. package/dist/templates/web/ui-auth-payments/template/src/app/dashboard/layout.tsx +22 -0
  84. package/dist/templates/web/ui-auth-payments/template/src/app/dashboard/page.tsx +183 -0
  85. package/dist/templates/web/ui-auth-payments/template/src/app/error.tsx +67 -0
  86. package/dist/templates/web/ui-auth-payments/template/src/app/globals.css +42 -0
  87. package/dist/templates/web/ui-auth-payments/template/src/app/layout.tsx +33 -0
  88. package/dist/templates/web/ui-auth-payments/template/src/app/loading.tsx +20 -0
  89. package/dist/templates/web/ui-auth-payments/template/src/app/login/loading.tsx +38 -0
  90. package/dist/templates/web/ui-auth-payments/template/src/app/login/page.tsx +109 -0
  91. package/dist/templates/web/ui-auth-payments/template/src/app/page.tsx +143 -0
  92. package/dist/templates/web/ui-auth-payments/template/src/app/signup/loading.tsx +50 -0
  93. package/dist/templates/web/ui-auth-payments/template/src/app/signup/page.tsx +128 -0
  94. package/dist/templates/web/ui-auth-payments/template/src/components/__tests__/example.test.tsx +49 -0
  95. package/dist/templates/web/ui-auth-payments/template/src/components/client/auth-status.tsx +52 -0
  96. package/dist/templates/web/ui-auth-payments/template/src/components/client/login-form.tsx +144 -0
  97. package/dist/templates/web/ui-auth-payments/template/src/components/client/newsletter-signup.tsx +68 -0
  98. package/dist/templates/web/ui-auth-payments/template/src/components/client/signup-form.tsx +185 -0
  99. package/dist/templates/web/ui-auth-payments/template/src/components/providers/app-providers.tsx +32 -0
  100. package/dist/templates/web/ui-auth-payments/template/src/components/providers/theme-provider.tsx +94 -0
  101. package/dist/templates/web/ui-auth-payments/template/src/components/shared/footer.tsx +36 -0
  102. package/dist/templates/web/ui-auth-payments/template/src/components/shared/header.tsx +62 -0
  103. package/dist/templates/web/ui-auth-payments/template/src/components/ui/badge.tsx +36 -0
  104. package/dist/templates/web/ui-auth-payments/template/src/components/ui/theme-toggle.tsx +34 -0
  105. package/dist/templates/web/ui-auth-payments/template/src/lib/actions/auth.ts +246 -0
  106. package/dist/templates/web/ui-auth-payments/template/src/lib/actions/index.ts +340 -0
  107. package/dist/templates/web/ui-auth-payments/template/src/lib/auth-server.ts +177 -0
  108. package/dist/templates/web/ui-auth-payments/template/src/lib/env.ts +49 -0
  109. package/dist/templates/web/ui-auth-payments/template/src/lib/utils.ts +140 -0
  110. package/dist/templates/web/ui-auth-payments/template/src/test/setup.ts +79 -0
  111. package/dist/templates/web/ui-auth-payments/template/tailwind.config.js +77 -0
  112. package/dist/templates/web/ui-auth-payments/template/tsconfig.json +33 -0
  113. package/dist/templates/web/ui-auth-payments/template/tsconfig.tsbuildinfo +1 -0
  114. package/dist/templates/web/ui-auth-payments/template/vitest.config.ts +17 -0
  115. package/dist/templates/web/ui-auth-payments-audio/template/.env.example +15 -0
  116. package/dist/templates/web/ui-auth-payments-audio/template/README.md +187 -0
  117. package/dist/templates/web/ui-auth-payments-audio/template/middleware.ts +68 -0
  118. package/dist/templates/web/ui-auth-payments-audio/template/next.config.js +12 -0
  119. package/dist/templates/web/ui-auth-payments-audio/template/package-lock.json +12241 -0
  120. package/dist/templates/web/ui-auth-payments-audio/template/package.json +53 -0
  121. package/dist/templates/web/ui-auth-payments-audio/template/postcss.config.js +7 -0
  122. package/dist/templates/web/ui-auth-payments-audio/template/src/app/auth/callback/route.ts +12 -0
  123. package/dist/templates/web/ui-auth-payments-audio/template/src/app/billing/page.tsx +211 -0
  124. package/dist/templates/web/ui-auth-payments-audio/template/src/app/checkout/page.tsx +142 -0
  125. package/dist/templates/web/ui-auth-payments-audio/template/src/app/dashboard/layout.tsx +22 -0
  126. package/dist/templates/web/ui-auth-payments-audio/template/src/app/dashboard/page.tsx +183 -0
  127. package/dist/templates/web/ui-auth-payments-audio/template/src/app/error.tsx +67 -0
  128. package/dist/templates/web/ui-auth-payments-audio/template/src/app/globals.css +42 -0
  129. package/dist/templates/web/ui-auth-payments-audio/template/src/app/layout.tsx +35 -0
  130. package/dist/templates/web/ui-auth-payments-audio/template/src/app/loading.tsx +20 -0
  131. package/dist/templates/web/ui-auth-payments-audio/template/src/app/login/page.tsx +6 -0
  132. package/dist/templates/web/ui-auth-payments-audio/template/src/app/page.tsx +181 -0
  133. package/dist/templates/web/ui-auth-payments-audio/template/src/app/signup/page.tsx +6 -0
  134. package/dist/templates/web/ui-auth-payments-audio/template/src/components/__tests__/example.test.tsx +49 -0
  135. package/dist/templates/web/ui-auth-payments-audio/template/src/components/client/auth-status.tsx +52 -0
  136. package/dist/templates/web/ui-auth-payments-audio/template/src/components/client/login-form.tsx +144 -0
  137. package/dist/templates/web/ui-auth-payments-audio/template/src/components/client/signup-form.tsx +185 -0
  138. package/dist/templates/web/ui-auth-payments-audio/template/src/components/providers/app-providers.tsx +32 -0
  139. package/dist/templates/web/ui-auth-payments-audio/template/src/components/providers/theme-provider.tsx +94 -0
  140. package/dist/templates/web/ui-auth-payments-audio/template/src/components/shared/footer.tsx +36 -0
  141. package/dist/templates/web/ui-auth-payments-audio/template/src/components/shared/header.tsx +62 -0
  142. package/dist/templates/web/ui-auth-payments-audio/template/src/components/ui/badge.tsx +36 -0
  143. package/dist/templates/web/ui-auth-payments-audio/template/src/components/ui/theme-toggle.tsx +34 -0
  144. package/dist/templates/web/ui-auth-payments-audio/template/src/lib/actions/auth.ts +246 -0
  145. package/dist/templates/web/ui-auth-payments-audio/template/src/lib/actions/index.ts +14 -0
  146. package/dist/templates/web/ui-auth-payments-audio/template/src/lib/auth-server.ts +177 -0
  147. package/dist/templates/web/ui-auth-payments-audio/template/src/lib/env.ts +49 -0
  148. package/dist/templates/web/ui-auth-payments-audio/template/src/lib/utils.ts +140 -0
  149. package/dist/templates/web/ui-auth-payments-audio/template/src/test/setup.ts +79 -0
  150. package/dist/templates/web/ui-auth-payments-audio/template/tailwind.config.js +77 -0
  151. package/dist/templates/web/ui-auth-payments-audio/template/tsconfig.json +33 -0
  152. package/dist/templates/web/ui-auth-payments-audio/template/tsconfig.tsbuildinfo +1 -0
  153. package/dist/templates/web/ui-auth-payments-audio/template/vitest.config.ts +17 -0
  154. package/dist/templates/web/ui-auth-payments-video/template/.env.example +15 -0
  155. package/dist/templates/web/ui-auth-payments-video/template/README.md +190 -0
  156. package/dist/templates/web/ui-auth-payments-video/template/next.config.js +12 -0
  157. package/dist/templates/web/ui-auth-payments-video/template/package.json +53 -0
  158. package/dist/templates/web/ui-auth-payments-video/template/postcss.config.js +7 -0
  159. package/dist/templates/web/ui-auth-payments-video/template/src/app/auth/callback/route.ts +12 -0
  160. package/dist/templates/web/ui-auth-payments-video/template/src/app/billing/page.tsx +211 -0
  161. package/dist/templates/web/ui-auth-payments-video/template/src/app/checkout/page.tsx +142 -0
  162. package/dist/templates/web/ui-auth-payments-video/template/src/app/error.tsx +67 -0
  163. package/dist/templates/web/ui-auth-payments-video/template/src/app/globals.css +42 -0
  164. package/dist/templates/web/ui-auth-payments-video/template/src/app/layout.tsx +33 -0
  165. package/dist/templates/web/ui-auth-payments-video/template/src/app/loading.tsx +20 -0
  166. package/dist/templates/web/ui-auth-payments-video/template/src/app/login/page.tsx +109 -0
  167. package/dist/templates/web/ui-auth-payments-video/template/src/app/page.tsx +187 -0
  168. package/dist/templates/web/ui-auth-payments-video/template/src/app/signup/page.tsx +128 -0
  169. package/dist/templates/web/ui-auth-payments-video/template/src/components/__tests__/example.test.tsx +49 -0
  170. package/dist/templates/web/ui-auth-payments-video/template/src/components/providers/app-providers.tsx +32 -0
  171. package/dist/templates/web/ui-auth-payments-video/template/src/components/providers/theme-provider.tsx +94 -0
  172. package/dist/templates/web/ui-auth-payments-video/template/src/components/shared/footer.tsx +36 -0
  173. package/dist/templates/web/ui-auth-payments-video/template/src/components/shared/header.tsx +62 -0
  174. package/dist/templates/web/ui-auth-payments-video/template/src/components/ui/badge.tsx +36 -0
  175. package/dist/templates/web/ui-auth-payments-video/template/src/components/ui/theme-toggle.tsx +34 -0
  176. package/dist/templates/web/ui-auth-payments-video/template/src/lib/env.ts +49 -0
  177. package/dist/templates/web/ui-auth-payments-video/template/src/lib/utils.ts +140 -0
  178. package/dist/templates/web/ui-auth-payments-video/template/src/test/setup.ts +79 -0
  179. package/dist/templates/web/ui-auth-payments-video/template/tailwind.config.js +77 -0
  180. package/dist/templates/web/ui-auth-payments-video/template/tsconfig.json +33 -0
  181. package/dist/templates/web/ui-auth-payments-video/template/vitest.config.ts +17 -0
  182. package/dist/templates/web/ui-only/template/.env.example +15 -0
  183. package/dist/templates/web/ui-only/template/.eslintrc.js +8 -0
  184. package/dist/templates/web/ui-only/template/README.md +68 -0
  185. package/dist/templates/web/ui-only/template/next.config.js +12 -0
  186. package/dist/templates/web/ui-only/template/package.json +49 -0
  187. package/dist/templates/web/ui-only/template/postcss.config.js +7 -0
  188. package/dist/templates/web/ui-only/template/src/app/auth/callback/route.ts +12 -0
  189. package/dist/templates/web/ui-only/template/src/app/checkout/page.tsx +25 -0
  190. package/dist/templates/web/ui-only/template/src/app/error.tsx +67 -0
  191. package/dist/templates/web/ui-only/template/src/app/globals.css +42 -0
  192. package/dist/templates/web/ui-only/template/src/app/layout.tsx +33 -0
  193. package/dist/templates/web/ui-only/template/src/app/loading.tsx +20 -0
  194. package/dist/templates/web/ui-only/template/src/app/login/page.tsx +63 -0
  195. package/dist/templates/web/ui-only/template/src/app/page.tsx +91 -0
  196. package/dist/templates/web/ui-only/template/src/app/signup/page.tsx +79 -0
  197. package/dist/templates/web/ui-only/template/src/components/__tests__/example.test.tsx +49 -0
  198. package/dist/templates/web/ui-only/template/src/components/providers/app-providers.tsx +26 -0
  199. package/dist/templates/web/ui-only/template/src/components/providers/theme-provider.tsx +94 -0
  200. package/dist/templates/web/ui-only/template/src/components/shared/footer.tsx +36 -0
  201. package/dist/templates/web/ui-only/template/src/components/shared/header.tsx +53 -0
  202. package/dist/templates/web/ui-only/template/src/components/ui/badge.tsx +36 -0
  203. package/dist/templates/web/ui-only/template/src/components/ui/theme-toggle.tsx +34 -0
  204. package/dist/templates/web/ui-only/template/src/lib/env.ts +49 -0
  205. package/dist/templates/web/ui-only/template/src/lib/utils.ts +140 -0
  206. package/dist/templates/web/ui-only/template/src/test/setup.ts +79 -0
  207. package/dist/templates/web/ui-only/template/tailwind.config.js +77 -0
  208. package/dist/templates/web/ui-only/template/tsconfig.json +33 -0
  209. package/dist/templates/web/ui-only/template/vitest.config.ts +17 -0
  210. package/dist/templates/web/ui-only/template.backup/.env.example +15 -0
  211. package/dist/templates/web/ui-only/template.backup.20250817/.env.example +15 -0
  212. package/dist/templates/web/ui-package-test/template/next-env.d.ts +5 -0
  213. package/dist/templates/web/ui-package-test/template/package.json +42 -0
  214. package/dist/templates/web/ui-package-test/template/src/app/page.tsx +106 -0
  215. package/dist/templates/web/ui-package-test/template/tsconfig.json +41 -0
  216. package/package.json +3 -2
  217. package/src/templates/mobile/base/template/package.json +38 -38
  218. package/src/templates/web/base/template/package.json +1 -1
  219. package/src/templates/web/ui-auth/template/package.json +1 -1
  220. package/src/templates/web/ui-auth-payments/template/package.json +1 -1
  221. package/src/templates/web/ui-auth-payments-audio/template/package.json +1 -1
  222. package/src/templates/web/ui-auth-payments-video/template/package.json +1 -1
  223. package/src/templates/web/ui-only/template/package.json +1 -1
@@ -0,0 +1,68 @@
1
+ # {{titleCaseName}}
2
+
3
+ {{description}}
4
+
5
+ ## Getting Started
6
+
7
+ First, run the development server:
8
+
9
+ ```bash
10
+ npm run dev
11
+ # or
12
+ yarn dev
13
+ # or
14
+ pnpm dev
15
+ ```
16
+
17
+ Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18
+
19
+ ## Features
20
+
21
+ - ⚡ **Next.js 14** - React framework with App Router
22
+ - 🎨 **Tailwind CSS** - Utility-first CSS framework
23
+ - 🔒 **{{#auth}}{{#firebase}}Firebase{{/firebase}}{{#supabase}}Supabase{{/supabase}}{{/auth}} Auth** - Authentication ready
24
+ - 📱 **Responsive Design** - Mobile-first approach
25
+ - 🌙 **Dark Mode** - Built-in theme switching
26
+ - 📦 **TypeScript** - Type-safe development
27
+ - 🎯 **ESLint & Prettier** - Code quality tools
28
+
29
+ ## Project Structure
30
+
31
+ ```
32
+ src/
33
+ ├── app/ # Next.js App Router
34
+ │ ├── globals.css # Global styles
35
+ │ ├── layout.tsx # Root layout
36
+ │ └── page.tsx # Home page
37
+ ├── components/ # React components
38
+ │ ├── ui/ # UI components
39
+ │ └── providers/ # Context providers
40
+ ├── lib/ # Utility functions
41
+ ├── hooks/ # Custom React hooks
42
+ └── types/ # TypeScript definitions
43
+ ```
44
+
45
+ ## Environment Variables
46
+
47
+ Copy `.env.example` to `.env.local` and fill in your configuration:
48
+
49
+ ```bash
50
+ cp .env.example .env.local
51
+ ```
52
+
53
+ ## Deployment
54
+
55
+ The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new).
56
+
57
+ Check out the [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
58
+
59
+ ## Learn More
60
+
61
+ - [Next.js Documentation](https://nextjs.org/docs)
62
+ - [Tailwind CSS Documentation](https://tailwindcss.com/docs)
63
+ - [{{#auth}}{{#firebase}}Firebase Documentation{{/firebase}}{{#supabase}}Supabase Documentation{{/supabase}}{{/auth}}]({{#auth}}{{#firebase}}https://firebase.google.com/docs{{/firebase}}{{#supabase}}https://supabase.com/docs{{/supabase}}{{/auth}})
64
+
65
+ ## Support
66
+
67
+ For support, email support@digilogiclabs.com or join our Discord community.
68
+
@@ -0,0 +1,12 @@
1
+ /** @type {import('next').NextConfig} */
2
+ const nextConfig = {
3
+ images: {
4
+ domains: ['localhost'],
5
+ },
6
+ env: {
7
+ CUSTOM_KEY: process.env.CUSTOM_KEY,
8
+ },
9
+ }
10
+
11
+ module.exports = nextConfig
12
+
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "{{packageName}}",
3
+ "version": "0.1.0",
4
+ "description": "{{description}} (with UI Package v0.11.1)",
5
+ "private": true,
6
+ "scripts": {
7
+ "dev": "next dev",
8
+ "build": "next build",
9
+ "start": "next start",
10
+ "lint": "next lint",
11
+ "type-check": "tsc --noEmit",
12
+ "test": "vitest",
13
+ "test:ui": "vitest --ui",
14
+ "test:run": "vitest run"
15
+ },
16
+ "dependencies": {
17
+ "next": "^15.0.0",
18
+ "react": "^19.0.0",
19
+ "react-dom": "^19.0.0",
20
+ "@digilogiclabs/saas-factory-ui": "^0.11.1",
21
+ "tailwindcss": "^3.3.0",
22
+ "autoprefixer": "^10.4.16",
23
+ "postcss": "^8.4.31",
24
+ "clsx": "^2.0.0",
25
+ "class-variance-authority": "^0.7.0",
26
+ "tailwind-merge": "^2.0.0",
27
+ "next-themes": "^0.2.1",
28
+ "lucide-react": "^0.542.0",
29
+ "zod": "^3.22.4"
30
+ },
31
+ "devDependencies": {
32
+ "typescript": "^5.0.0",
33
+ "@types/node": "^20.0.0",
34
+ "@types/react": "^19.0.0",
35
+ "@types/react-dom": "^19.0.0",
36
+ "eslint": "^8.0.0",
37
+ "eslint-config-next": "^15.0.0",
38
+ "prettier": "^3.0.0",
39
+ "vitest": "^1.0.0",
40
+ "@vitejs/plugin-react": "^4.0.0",
41
+ "@testing-library/react": "^16.0.0",
42
+ "@testing-library/jest-dom": "^6.0.0",
43
+ "@testing-library/user-event": "^14.0.0",
44
+ "jsdom": "^24.0.0"
45
+ },
46
+ "engines": {
47
+ "node": ">=18.0.0"
48
+ }
49
+ }
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ autoprefixer: {},
5
+ },
6
+ }
7
+
@@ -0,0 +1,12 @@
1
+ import { NextResponse } from 'next/server';
2
+ import type { NextRequest } from 'next/server';
3
+
4
+ export async function GET(request: NextRequest) {
5
+ const requestUrl = new URL(request.url);
6
+
7
+ // Placeholder auth callback - requires @digilogiclabs/saas-factory-auth package
8
+ console.log('Auth callback triggered - requires auth package for full functionality');
9
+
10
+ // URL to redirect to after sign in process completes
11
+ return NextResponse.redirect(requestUrl.origin);
12
+ }
@@ -0,0 +1,25 @@
1
+ 'use client';
2
+
3
+ import React from 'react';
4
+
5
+ export default function CheckoutPage() {
6
+ const onCheckout = async () => {
7
+ alert('Checkout functionality requires @digilogiclabs/saas-factory-payments package');
8
+ };
9
+
10
+ return (
11
+ <div className="flex items-center justify-center min-h-screen bg-gray-100">
12
+ <div className="p-8 bg-white rounded-lg shadow-md">
13
+ <h1 className="text-2xl font-bold mb-4">Checkout</h1>
14
+ <p className="mb-6">Click the button below to proceed to payment.</p>
15
+ <button
16
+ onClick={onCheckout}
17
+ className="px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700"
18
+ >
19
+ Proceed to Checkout
20
+ </button>
21
+ </div>
22
+ </div>
23
+ );
24
+ }
25
+
@@ -0,0 +1,67 @@
1
+ 'use client'
2
+
3
+ import { useEffect } from 'react'
4
+ import { Button, Card } from '@digilogiclabs/saas-factory-ui'
5
+ import { RefreshCw, Home, AlertCircle } from 'lucide-react'
6
+
7
+ interface ErrorProps {
8
+ error: Error & { digest?: string }
9
+ reset: () => void
10
+ }
11
+
12
+ export default function Error({ error, reset }: ErrorProps) {
13
+ useEffect(() => {
14
+ // Log the error to an error reporting service
15
+ console.error('Application error:', error)
16
+ }, [error])
17
+
18
+ return (
19
+ <div className="min-h-screen bg-gray-50 dark:bg-gray-900 flex items-center justify-center p-4">
20
+ <Card className="w-full max-w-md p-8 text-center">
21
+ <div className="mb-6">
22
+ <div className="mx-auto w-16 h-16 bg-red-100 dark:bg-red-900 rounded-full flex items-center justify-center mb-4">
23
+ <AlertCircle className="h-8 w-8 text-red-600 dark:text-red-400" />
24
+ </div>
25
+ <h1 className="text-2xl font-bold text-gray-900 dark:text-white mb-2">
26
+ Something went wrong
27
+ </h1>
28
+ <p className="text-gray-600 dark:text-gray-300 mb-6">
29
+ We apologize for the inconvenience. Please try again or return to the home page.
30
+ </p>
31
+ </div>
32
+
33
+ <div className="space-y-3">
34
+ <Button
35
+ onClick={reset}
36
+ className="w-full"
37
+ variant="default"
38
+ >
39
+ <RefreshCw className="w-4 h-4 mr-2" />
40
+ Try Again
41
+ </Button>
42
+
43
+ <Button
44
+ onClick={() => window.location.href = '/'}
45
+ variant="outline"
46
+ className="w-full"
47
+ >
48
+ <Home className="w-4 h-4 mr-2" />
49
+ Go Home
50
+ </Button>
51
+ </div>
52
+
53
+ {process.env.NODE_ENV === 'development' && (
54
+ <details className="mt-6 text-left">
55
+ <summary className="text-sm font-medium text-gray-500 cursor-pointer hover:text-gray-700 dark:hover:text-gray-300">
56
+ Error Details (Development)
57
+ </summary>
58
+ <pre className="mt-2 text-xs bg-gray-100 dark:bg-gray-800 p-3 rounded-md overflow-auto">
59
+ {error.message}
60
+ {error.stack}
61
+ </pre>
62
+ </details>
63
+ )}
64
+ </Card>
65
+ </div>
66
+ )
67
+ }
@@ -0,0 +1,42 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+
5
+ /* Import SaaS Factory UI styles */
6
+ @import '@digilogiclabs/saas-factory-ui/dist/index.css';
7
+
8
+ @layer base {
9
+ :root {
10
+ --background: 0 0% 100%;
11
+ --foreground: 222.2 84% 4.9%;
12
+ --card: 0 0% 100%;
13
+ --card-foreground: 222.2 84% 4.9%;
14
+ --primary: 221.2 83.2% 53.3%;
15
+ --primary-foreground: 210 40% 98%;
16
+ --secondary: 210 40% 96%;
17
+ --secondary-foreground: 222.2 84% 4.9%;
18
+ --border: 214.3 31.8% 91.4%;
19
+ --radius: 0.5rem;
20
+ }
21
+
22
+ .dark {
23
+ --background: 222.2 84% 4.9%;
24
+ --foreground: 210 40% 98%;
25
+ --card: 222.2 84% 4.9%;
26
+ --card-foreground: 210 40% 98%;
27
+ --primary: 217.2 91.2% 59.8%;
28
+ --primary-foreground: 222.2 84% 4.9%;
29
+ --secondary: 217.2 32.6% 17.5%;
30
+ --secondary-foreground: 210 40% 98%;
31
+ --border: 217.2 32.6% 17.5%;
32
+ }
33
+ }
34
+
35
+ @layer base {
36
+ * {
37
+ @apply border-border;
38
+ }
39
+ body {
40
+ @apply bg-background text-foreground;
41
+ }
42
+ }
@@ -0,0 +1,33 @@
1
+ import type { Metadata } from 'next'
2
+ import { Inter } from 'next/font/google'
3
+ import './globals.css'
4
+ import { AppProviders } from '@/components/providers/app-providers'
5
+ import { Header } from '@/components/shared/header'
6
+ import { Footer } from '@/components/shared/footer'
7
+
8
+ const inter = Inter({ subsets: ['latin'] })
9
+
10
+ export const metadata: Metadata = {
11
+ title: '{{titleCaseName}}',
12
+ description: '{{description}}',
13
+ }
14
+
15
+ export default function RootLayout({
16
+ children,
17
+ }: {
18
+ children: React.ReactNode
19
+ }) {
20
+ return (
21
+ <html lang="en" suppressHydrationWarning>
22
+ <body className={`${inter.className} min-h-screen flex flex-col`}>
23
+ <AppProviders>
24
+ <Header />
25
+ <main className="flex-1">
26
+ {children}
27
+ </main>
28
+ <Footer />
29
+ </AppProviders>
30
+ </body>
31
+ </html>
32
+ )
33
+ }
@@ -0,0 +1,20 @@
1
+ import { Card } from '@digilogiclabs/saas-factory-ui'
2
+ import { Loader2 } from 'lucide-react'
3
+
4
+ export default function Loading() {
5
+ return (
6
+ <div className="min-h-screen bg-gray-50 dark:bg-gray-900 flex items-center justify-center p-4">
7
+ <Card className="w-full max-w-md p-8 text-center">
8
+ <div className="flex flex-col items-center">
9
+ <Loader2 className="h-8 w-8 animate-spin text-blue-600 dark:text-blue-400 mb-4" />
10
+ <h2 className="text-lg font-medium text-gray-900 dark:text-white mb-2">
11
+ Loading
12
+ </h2>
13
+ <p className="text-sm text-gray-600 dark:text-gray-300">
14
+ Please wait while we load your content...
15
+ </p>
16
+ </div>
17
+ </Card>
18
+ </div>
19
+ )
20
+ }
@@ -0,0 +1,63 @@
1
+ 'use client';
2
+
3
+ import React, { useState } from 'react';
4
+ import { Button, Card, Input, Label } from '@digilogiclabs/saas-factory-ui';
5
+
6
+ export default function LoginPage() {
7
+ const [email, setEmail] = useState('');
8
+ const [password, setPassword] = useState('');
9
+
10
+ const handleLogin = async (e: React.FormEvent) => {
11
+ e.preventDefault();
12
+ alert('Login functionality requires @digilogiclabs/saas-factory-auth package');
13
+ console.log('Login values:', { email, password });
14
+ };
15
+
16
+ const handleGoogleLogin = async () => {
17
+ alert('Google login functionality requires @digilogiclabs/saas-factory-auth package');
18
+ };
19
+
20
+ return (
21
+ <div className="flex items-center justify-center min-h-screen bg-gray-100">
22
+ <Card className="w-full max-w-md p-8">
23
+ <h1 className="text-2xl font-bold text-center mb-6">Sign In</h1>
24
+ <form onSubmit={handleLogin} className="space-y-4">
25
+ <div>
26
+ <Label htmlFor="email">Email</Label>
27
+ <Input
28
+ id="email"
29
+ type="email"
30
+ value={email}
31
+ onChange={(e) => setEmail(e.target.value)}
32
+ placeholder="Enter your email"
33
+ required
34
+ />
35
+ </div>
36
+ <div>
37
+ <Label htmlFor="password">Password</Label>
38
+ <Input
39
+ id="password"
40
+ type="password"
41
+ value={password}
42
+ onChange={(e) => setPassword(e.target.value)}
43
+ placeholder="Enter your password"
44
+ required
45
+ />
46
+ </div>
47
+ <Button type="submit" className="w-full">
48
+ Sign In
49
+ </Button>
50
+ <Button
51
+ type="button"
52
+ variant="outline"
53
+ className="w-full"
54
+ onClick={handleGoogleLogin}
55
+ >
56
+ Sign in with Google
57
+ </Button>
58
+ </form>
59
+ </Card>
60
+ </div>
61
+ );
62
+ }
63
+
@@ -0,0 +1,91 @@
1
+ 'use client'
2
+
3
+ import { Button, Card } from '@digilogiclabs/saas-factory-ui'
4
+ import { ArrowRight, Zap, Shield, Rocket, CheckCircle } from 'lucide-react'
5
+ import Link from 'next/link'
6
+
7
+ export default function Home() {
8
+ return (
9
+ <main className="min-h-screen bg-gradient-to-br from-blue-50 to-indigo-100 dark:from-gray-900 dark:to-gray-800">
10
+ <div className="container mx-auto px-4 py-16">
11
+ {/* Hero Section */}
12
+ <div className="text-center mb-16">
13
+ <div className="inline-flex items-center px-4 py-2 rounded-full text-sm font-medium bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200 mb-6">
14
+ <CheckCircle className="w-4 h-4 mr-2" />
15
+ UI Package v0.7.3 Integrated Successfully
16
+ </div>
17
+ <h1 className="text-4xl md:text-6xl font-bold text-gray-900 dark:text-white mb-6">
18
+ Welcome to{' '}
19
+ <span className="text-blue-600 dark:text-blue-400">{{titleCaseName}}</span>
20
+ </h1>
21
+ <p className="text-xl text-gray-600 dark:text-gray-300 mb-8 max-w-2xl mx-auto">
22
+ {{description}}. This template uses the stable SaaS Factory UI package v0.7.3.
23
+ </p>
24
+ <div className="flex flex-col sm:flex-row gap-4 justify-center">
25
+ <Button size="lg" className="text-lg px-8">
26
+ Get Started
27
+ <ArrowRight className="ml-2 h-5 w-5" />
28
+ </Button>
29
+ <Button variant="outline" size="lg" className="text-lg px-8">
30
+ Learn More
31
+ </Button>
32
+ </div>
33
+ </div>
34
+
35
+ {/* Component Showcase */}
36
+ <div className="grid md:grid-cols-3 gap-8 mb-16">
37
+ <Card className="text-center p-6">
38
+ <div className="mx-auto w-12 h-12 bg-blue-100 dark:bg-blue-900 rounded-lg flex items-center justify-center mb-4">
39
+ <Zap className="h-6 w-6 text-blue-600 dark:text-blue-400" />
40
+ </div>
41
+ <h3 className="text-xl font-semibold mb-2">UI Package Components</h3>
42
+ <p className="text-gray-600 dark:text-gray-300">
43
+ Button and Card components from @digilogiclabs/saas-factory-ui
44
+ </p>
45
+ </Card>
46
+
47
+ <Card className="text-center p-6">
48
+ <div className="mx-auto w-12 h-12 bg-green-100 dark:bg-green-900 rounded-lg flex items-center justify-center mb-4">
49
+ <Shield className="h-6 w-6 text-green-600 dark:text-green-400" />
50
+ </div>
51
+ <h3 className="text-xl font-semibold mb-2">Hybrid Architecture</h3>
52
+ <p className="text-gray-600 dark:text-gray-300">
53
+ Clean web build with no React Native contamination
54
+ </p>
55
+ </Card>
56
+
57
+ <Card className="text-center p-6">
58
+ <div className="mx-auto w-12 h-12 bg-purple-100 dark:bg-purple-900 rounded-lg flex items-center justify-center mb-4">
59
+ <Rocket className="h-6 w-6 text-purple-600 dark:text-purple-400" />
60
+ </div>
61
+ <h3 className="text-xl font-semibold mb-2">TypeScript Ready</h3>
62
+ <p className="text-gray-600 dark:text-gray-300">
63
+ Full type safety with enhanced component definitions
64
+ </p>
65
+ </Card>
66
+ </div>
67
+
68
+ {/* Button Variants Showcase */}
69
+ <Card className="max-w-4xl mx-auto p-8">
70
+ <div className="text-center mb-6">
71
+ <h2 className="text-2xl font-bold mb-2">UI Package Component Showcase</h2>
72
+ <p className="text-gray-600 dark:text-gray-300">
73
+ Testing Button variants from the stable UI package
74
+ </p>
75
+ </div>
76
+ <div className="flex flex-wrap justify-center gap-4 mb-6">
77
+ <Button>Default Button</Button>
78
+ <Button variant="secondary">Secondary Button</Button>
79
+ <Button variant="outline">Outline Button</Button>
80
+ <Button disabled>Disabled Button</Button>
81
+ </div>
82
+ <div className="text-center">
83
+ <p className="text-sm text-gray-500">
84
+ All components imported from @digilogiclabs/saas-factory-ui v0.7.3
85
+ </p>
86
+ </div>
87
+ </Card>
88
+ </div>
89
+ </main>
90
+ )
91
+ }
@@ -0,0 +1,79 @@
1
+ 'use client';
2
+
3
+ import React, { useState } from 'react';
4
+ import { Button, Card, Input, Label } from '@digilogiclabs/saas-factory-ui';
5
+
6
+ export default function SignupPage() {
7
+ const [email, setEmail] = useState('');
8
+ const [password, setPassword] = useState('');
9
+ const [confirmPassword, setConfirmPassword] = useState('');
10
+
11
+ const handleSignup = async (e: React.FormEvent) => {
12
+ e.preventDefault();
13
+ if (password !== confirmPassword) {
14
+ alert('Passwords do not match');
15
+ return;
16
+ }
17
+ alert('Signup functionality requires @digilogiclabs/saas-factory-auth package');
18
+ console.log('Signup values:', { email, password });
19
+ };
20
+
21
+ const handleGoogleSignup = async () => {
22
+ alert('Google signup functionality requires @digilogiclabs/saas-factory-auth package');
23
+ };
24
+
25
+ return (
26
+ <div className="flex items-center justify-center min-h-screen bg-gray-100">
27
+ <Card className="w-full max-w-md p-8">
28
+ <h1 className="text-2xl font-bold text-center mb-6">Sign Up</h1>
29
+ <form onSubmit={handleSignup} className="space-y-4">
30
+ <div>
31
+ <Label htmlFor="email">Email</Label>
32
+ <Input
33
+ id="email"
34
+ type="email"
35
+ value={email}
36
+ onChange={(e) => setEmail(e.target.value)}
37
+ placeholder="Enter your email"
38
+ required
39
+ />
40
+ </div>
41
+ <div>
42
+ <Label htmlFor="password">Password</Label>
43
+ <Input
44
+ id="password"
45
+ type="password"
46
+ value={password}
47
+ onChange={(e) => setPassword(e.target.value)}
48
+ placeholder="Enter your password"
49
+ required
50
+ />
51
+ </div>
52
+ <div>
53
+ <Label htmlFor="confirmPassword">Confirm Password</Label>
54
+ <Input
55
+ id="confirmPassword"
56
+ type="password"
57
+ value={confirmPassword}
58
+ onChange={(e) => setConfirmPassword(e.target.value)}
59
+ placeholder="Confirm your password"
60
+ required
61
+ />
62
+ </div>
63
+ <Button type="submit" className="w-full">
64
+ Sign Up
65
+ </Button>
66
+ <Button
67
+ type="button"
68
+ variant="outline"
69
+ className="w-full"
70
+ onClick={handleGoogleSignup}
71
+ >
72
+ Sign up with Google
73
+ </Button>
74
+ </form>
75
+ </Card>
76
+ </div>
77
+ );
78
+ }
79
+
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Example test file demonstrating testing patterns for SaaS Factory components
3
+ *
4
+ * This is optional and serves as a reference for testing your components.
5
+ * You can delete this file if you don't need example tests.
6
+ */
7
+
8
+ import { render, screen } from '@testing-library/react'
9
+ import { Button } from '@digilogiclabs/saas-factory-ui'
10
+
11
+ // Example: Testing UI components
12
+ describe('UI Components', () => {
13
+ it('renders button with correct text', () => {
14
+ render(<Button>Click me</Button>)
15
+ expect(screen.getByRole('button', { name: /click me/i })).toBeInTheDocument()
16
+ })
17
+
18
+ it('button can be disabled', () => {
19
+ render(<Button disabled>Disabled button</Button>)
20
+ expect(screen.getByRole('button')).toBeDisabled()
21
+ })
22
+ })
23
+
24
+ // Example: Testing custom components
25
+ function MockComponent({ title }: { title: string }) {
26
+ return <h1>{title}</h1>
27
+ }
28
+
29
+ describe('Custom Components', () => {
30
+ it('renders with correct title', () => {
31
+ render(<MockComponent title="Test Title" />)
32
+ expect(screen.getByRole('heading', { level: 1 })).toHaveTextContent('Test Title')
33
+ })
34
+ })
35
+
36
+ // Example: Testing utilities
37
+ function formatCurrency(amount: number): string {
38
+ return new Intl.NumberFormat('en-US', {
39
+ style: 'currency',
40
+ currency: 'USD',
41
+ }).format(amount)
42
+ }
43
+
44
+ describe('Utilities', () => {
45
+ it('formats currency correctly', () => {
46
+ expect(formatCurrency(1000)).toBe('$1,000.00')
47
+ expect(formatCurrency(0)).toBe('$0.00')
48
+ })
49
+ })
@@ -0,0 +1,26 @@
1
+ 'use client'
2
+
3
+ import React from 'react'
4
+ import { ThemeProvider } from 'next-themes'
5
+ import { AppThemeProvider } from './theme-provider'
6
+
7
+ interface AppProvidersProps {
8
+ children: React.ReactNode
9
+ }
10
+
11
+ export function AppProviders({ children }: AppProvidersProps) {
12
+ return (
13
+ <ThemeProvider
14
+ attribute="class"
15
+ defaultTheme="{{defaultTheme}}"
16
+ enableSystem
17
+ disableTransitionOnChange
18
+ storageKey="{{packageName}}-theme"
19
+ >
20
+ <AppThemeProvider themeColor="{{themeColor}}">
21
+ {children}
22
+ </AppThemeProvider>
23
+ </ThemeProvider>
24
+ )
25
+ }
26
+