@zaptek/application-livel 0.0.0-stage → 0.15.0

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 (65) hide show
  1. package/CHANGELOG.md +150 -0
  2. package/README.md +49 -2
  3. package/dist/client/livel-application-client.d.ts +32 -0
  4. package/dist/client/livel-application-client.js +71 -0
  5. package/dist/components/files/file-download-button.component.d.ts +7 -0
  6. package/dist/components/files/file-download-button.component.js +36 -0
  7. package/dist/components/files/file-upload-button.component.d.ts +11 -0
  8. package/dist/components/files/file-upload-button.component.js +41 -0
  9. package/dist/components/files/index.d.ts +4 -0
  10. package/dist/components/files/index.js +2 -0
  11. package/dist/components/index.d.ts +4 -0
  12. package/dist/components/index.js +3 -0
  13. package/dist/components/livel-application.provider.d.ts +20 -0
  14. package/dist/components/livel-application.provider.js +75 -0
  15. package/dist/components/livel-data-connection-status.component.d.ts +4 -0
  16. package/dist/components/livel-data-connection-status.component.js +122 -0
  17. package/dist/dev/dev-errors.contract.d.ts +23 -0
  18. package/dist/dev/dev-errors.contract.js +2 -0
  19. package/dist/hooks/files.hooks.d.ts +51 -0
  20. package/dist/hooks/files.hooks.js +296 -0
  21. package/dist/hooks/index.d.ts +6 -0
  22. package/dist/hooks/index.js +3 -0
  23. package/dist/hooks/rpc.hooks.d.ts +8 -0
  24. package/dist/hooks/rpc.hooks.js +26 -0
  25. package/dist/host/embedded-host.d.ts +8 -0
  26. package/dist/host/embedded-host.js +47 -0
  27. package/dist/host/livel-host.contract.d.ts +17 -0
  28. package/dist/host/livel-host.contract.js +1 -0
  29. package/dist/host/livel-host.d.ts +14 -0
  30. package/dist/host/livel-host.js +1 -0
  31. package/dist/index.d.ts +9 -0
  32. package/dist/index.js +4 -0
  33. package/dist/rpc/rpc-caller.d.ts +9 -0
  34. package/dist/rpc/rpc-caller.js +10 -0
  35. package/dist/vite/index.d.ts +1 -0
  36. package/dist/vite/index.js +1 -0
  37. package/dist/vite/livel-dev-errors.plugin.d.ts +13 -0
  38. package/dist/vite/livel-dev-errors.plugin.js +109 -0
  39. package/docs/README.md +24 -0
  40. package/docs/authentication.md +66 -0
  41. package/docs/data.md +134 -0
  42. package/docs/files.md +130 -0
  43. package/docs/getting-started.md +83 -0
  44. package/docs/rpc.md +49 -0
  45. package/docs/troubleshooting.md +15 -0
  46. package/package.json +66 -3
  47. package/template/.env.example +8 -0
  48. package/template/AGENTS.md +104 -0
  49. package/template/README.md +83 -0
  50. package/template/_gitignore +11 -0
  51. package/template/components.json +25 -0
  52. package/template/livel.json +14 -0
  53. package/template/package.json +48 -0
  54. package/template/pnpm-workspace.yaml +28 -0
  55. package/template/src/components/route-error.tsx +33 -0
  56. package/template/src/components/ui/button.tsx +57 -0
  57. package/template/src/components/ui/toast.tsx +221 -0
  58. package/template/src/lib/utils.ts +1 -0
  59. package/template/src/routeTree.gen.ts +68 -0
  60. package/template/src/router.tsx +19 -0
  61. package/template/src/routes/__root.tsx +53 -0
  62. package/template/src/routes/index.tsx +85 -0
  63. package/template/src/styles.css +148 -0
  64. package/template/tsconfig.json +21 -0
  65. package/template/vite.config.ts +28 -0
@@ -0,0 +1,221 @@
1
+ "use client"
2
+
3
+ import * as React from "react"
4
+ import { Toast as ToastPrimitive } from "@base-ui/react/toast"
5
+ import { cn } from "cn"
6
+ import {
7
+ CircleCheckIcon,
8
+ InfoIcon,
9
+ Loader2Icon,
10
+ OctagonXIcon,
11
+ TriangleAlertIcon,
12
+ XIcon,
13
+ } from "lucide-react"
14
+
15
+ import { Button } from "@/components/ui/button"
16
+
17
+ const toast = ToastPrimitive.createToastManager()
18
+
19
+ function ToastProvider({ ...props }: ToastPrimitive.Provider.Props) {
20
+ return <ToastPrimitive.Provider {...props} />
21
+ }
22
+
23
+ function ToastPortal({ ...props }: ToastPrimitive.Portal.Props) {
24
+ return <ToastPrimitive.Portal data-slot='toast-portal' {...props} />
25
+ }
26
+
27
+ function ToastViewport({ className, ...props }: ToastPrimitive.Viewport.Props) {
28
+ return (
29
+ <ToastPrimitive.Viewport
30
+ data-slot='toast-viewport'
31
+ aria-label='Notifications'
32
+ className={cn(
33
+ "pointer-events-none fixed inset-x-4 bottom-4 z-50 mx-auto w-auto max-w-sm outline-none sm:right-4 sm:left-auto sm:mx-0 sm:w-full",
34
+ className
35
+ )}
36
+ {...props}
37
+ />
38
+ )
39
+ }
40
+
41
+ function Toast({ className, ...props }: ToastPrimitive.Root.Props) {
42
+ return (
43
+ <ToastPrimitive.Root
44
+ data-slot='toast'
45
+ className={cn(
46
+ "group/toast pointer-events-auto absolute right-0 bottom-0 z-[calc(1000-var(--toast-index))] w-full origin-bottom rounded-2xl border bg-popover text-popover-foreground shadow-lg will-change-transform outline-none select-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
47
+ "[--gap:0.75rem] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)*-1+calc(var(--toast-index)*var(--gap)*-1)+var(--toast-swipe-movement-y))] [--peek:0.75rem] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))]",
48
+ "h-(--height) [transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--peek))-(var(--shrink)*var(--height))))_scale(var(--scale))] [transition:transform_500ms_cubic-bezier(0.22,1,0.36,1),opacity_500ms,height_150ms] motion-reduce:transition-none",
49
+ "after:absolute after:top-full after:left-0 after:h-[calc(var(--gap)+1px)] after:w-full after:content-['']",
50
+ "data-expanded:h-(--toast-height) data-expanded:[transform:translateX(var(--toast-swipe-movement-x))_translateY(var(--offset-y))]",
51
+ "data-limited:opacity-0 data-starting-style:[transform:translateY(150%)]",
52
+ "[&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(150%)]",
53
+ "data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]",
54
+ "data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]",
55
+ "data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]",
56
+ "data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]",
57
+ "data-expanded:data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]",
58
+ "data-expanded:data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]",
59
+ "data-expanded:data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]",
60
+ "data-expanded:data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]",
61
+ className
62
+ )}
63
+ {...props}
64
+ />
65
+ )
66
+ }
67
+
68
+ function ToastContent({ className, ...props }: ToastPrimitive.Content.Props) {
69
+ return (
70
+ <ToastPrimitive.Content
71
+ data-slot='toast-content'
72
+ className={cn(
73
+ "flex h-full items-center gap-3 overflow-hidden p-4 transition-opacity duration-250 ease-[cubic-bezier(0.22,1,0.36,1)] data-behind:opacity-0 data-expanded:opacity-100 motion-reduce:transition-none",
74
+ className
75
+ )}
76
+ {...props}
77
+ />
78
+ )
79
+ }
80
+
81
+ function ToastTitle({ className, ...props }: ToastPrimitive.Title.Props) {
82
+ return (
83
+ <ToastPrimitive.Title
84
+ data-slot='toast-title'
85
+ className={cn("text-sm font-medium", className)}
86
+ {...props}
87
+ />
88
+ )
89
+ }
90
+
91
+ function ToastDescription({
92
+ className,
93
+ ...props
94
+ }: ToastPrimitive.Description.Props) {
95
+ return (
96
+ <ToastPrimitive.Description
97
+ data-slot='toast-description'
98
+ className={cn("text-sm text-muted-foreground", className)}
99
+ {...props}
100
+ />
101
+ )
102
+ }
103
+
104
+ function ToastAction({
105
+ className,
106
+ render = <Button variant='outline' size='sm' />,
107
+ ...props
108
+ }: ToastPrimitive.Action.Props) {
109
+ return (
110
+ <ToastPrimitive.Action
111
+ data-slot='toast-action'
112
+ render={render}
113
+ className={cn("shrink-0", className)}
114
+ {...props}
115
+ />
116
+ )
117
+ }
118
+
119
+ function ToastClose({
120
+ className,
121
+ children,
122
+ render = <Button variant='ghost' size='icon-sm' />,
123
+ ...props
124
+ }: ToastPrimitive.Close.Props) {
125
+ return (
126
+ <ToastPrimitive.Close
127
+ data-slot='toast-close'
128
+ aria-label='Fermer la notification'
129
+ render={render}
130
+ className={cn(
131
+ "relative shrink-0 text-muted-foreground after:absolute after:-inset-2 after:content-[''] hover:text-foreground",
132
+ className
133
+ )}
134
+ {...props}
135
+ >
136
+ {children ?? <XIcon aria-hidden='true' />}
137
+ </ToastPrimitive.Close>
138
+ )
139
+ }
140
+
141
+ function ToastIcon({ type }: { type: string | undefined }) {
142
+ let icon: React.ReactNode = null
143
+
144
+ if (type === "success") icon = <CircleCheckIcon aria-hidden='true' />
145
+ if (type === "info") icon = <InfoIcon aria-hidden='true' />
146
+ if (type === "warning") icon = <TriangleAlertIcon aria-hidden='true' />
147
+ if (type === "error")
148
+ icon = <OctagonXIcon className='text-destructive' aria-hidden='true' />
149
+ if (type === "loading")
150
+ icon = (
151
+ <Loader2Icon
152
+ className='animate-spin motion-reduce:animate-none'
153
+ aria-hidden='true'
154
+ />
155
+ )
156
+
157
+ if (!icon) return null
158
+
159
+ return (
160
+ <span
161
+ data-slot='toast-icon'
162
+ className="shrink-0 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4"
163
+ >
164
+ {icon}
165
+ </span>
166
+ )
167
+ }
168
+
169
+ function ToastList() {
170
+ const { toasts } = ToastPrimitive.useToastManager()
171
+
172
+ return toasts.map(toastItem => (
173
+ <Toast key={toastItem.id} toast={toastItem}>
174
+ <ToastContent>
175
+ <ToastIcon type={toastItem.type} />
176
+ <div className='flex min-w-0 flex-1 flex-col gap-1'>
177
+ <ToastTitle />
178
+ <ToastDescription />
179
+ </div>
180
+ <ToastAction />
181
+ <ToastClose />
182
+ </ToastContent>
183
+ </Toast>
184
+ ))
185
+ }
186
+
187
+ function Toaster({
188
+ children,
189
+ toastManager = toast,
190
+ ...props
191
+ }: ToastPrimitive.Provider.Props) {
192
+ return (
193
+ <ToastProvider toastManager={toastManager} {...props}>
194
+ {children}
195
+ <ToastPortal>
196
+ <ToastViewport>
197
+ <ToastList />
198
+ </ToastViewport>
199
+ </ToastPortal>
200
+ </ToastProvider>
201
+ )
202
+ }
203
+
204
+ const createToastManager = ToastPrimitive.createToastManager
205
+ const useToastManager = ToastPrimitive.useToastManager
206
+
207
+ export {
208
+ Toaster,
209
+ Toast,
210
+ ToastAction,
211
+ ToastClose,
212
+ ToastContent,
213
+ ToastDescription,
214
+ ToastPortal,
215
+ ToastProvider,
216
+ ToastTitle,
217
+ ToastViewport,
218
+ createToastManager,
219
+ toast,
220
+ useToastManager,
221
+ }
@@ -0,0 +1 @@
1
+ export { cn } from "cn"
@@ -0,0 +1,68 @@
1
+ /* eslint-disable */
2
+
3
+ // @ts-nocheck
4
+
5
+ // noinspection JSUnusedGlobalSymbols
6
+
7
+ // This file was automatically generated by TanStack Router.
8
+ // You should NOT make any changes in this file as it will be overwritten.
9
+ // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
10
+
11
+ import { Route as rootRouteImport } from "./routes/__root"
12
+ import { Route as IndexRouteImport } from "./routes/index"
13
+
14
+ const IndexRoute = IndexRouteImport.update({
15
+ id: "/",
16
+ path: "/",
17
+ getParentRoute: () => rootRouteImport,
18
+ } as any)
19
+
20
+ export interface FileRoutesByFullPath {
21
+ "/": typeof IndexRoute
22
+ }
23
+ export interface FileRoutesByTo {
24
+ "/": typeof IndexRoute
25
+ }
26
+ export interface FileRoutesById {
27
+ __root__: typeof rootRouteImport
28
+ "/": typeof IndexRoute
29
+ }
30
+ export interface FileRouteTypes {
31
+ fileRoutesByFullPath: FileRoutesByFullPath
32
+ fullPaths: "/"
33
+ fileRoutesByTo: FileRoutesByTo
34
+ to: "/"
35
+ id: "__root__" | "/"
36
+ fileRoutesById: FileRoutesById
37
+ }
38
+ export interface RootRouteChildren {
39
+ IndexRoute: typeof IndexRoute
40
+ }
41
+
42
+ declare module "@tanstack/react-router" {
43
+ interface FileRoutesByPath {
44
+ "/": {
45
+ id: "/"
46
+ path: "/"
47
+ fullPath: "/"
48
+ preLoaderRoute: typeof IndexRouteImport
49
+ parentRoute: typeof rootRouteImport
50
+ }
51
+ }
52
+ }
53
+
54
+ const rootRouteChildren: RootRouteChildren = {
55
+ IndexRoute: IndexRoute,
56
+ }
57
+ export const routeTree = rootRouteImport
58
+ ._addFileChildren(rootRouteChildren)
59
+ ._addFileTypes<FileRouteTypes>()
60
+
61
+ import type { getRouter } from "./router.tsx"
62
+ import type { createStart } from "@tanstack/react-start"
63
+ declare module "@tanstack/react-start" {
64
+ interface Register {
65
+ ssr: true
66
+ router: Awaited<ReturnType<typeof getRouter>>
67
+ }
68
+ }
@@ -0,0 +1,19 @@
1
+ import { createRouter } from "@tanstack/react-router"
2
+
3
+ import { RouteError } from "@/components/route-error"
4
+ import { routeTree } from "./routeTree.gen"
5
+
6
+ export function getRouter() {
7
+ return createRouter({
8
+ routeTree,
9
+ defaultPreload: "intent",
10
+ scrollRestoration: true,
11
+ defaultErrorComponent: RouteError,
12
+ })
13
+ }
14
+
15
+ declare module "@tanstack/react-router" {
16
+ interface Register {
17
+ router: ReturnType<typeof getRouter>
18
+ }
19
+ }
@@ -0,0 +1,53 @@
1
+ import type { ReactNode } from "react"
2
+ import { LivelApplicationProvider } from "@zaptek/application-livel/components"
3
+ import {
4
+ HeadContent,
5
+ Outlet,
6
+ Scripts,
7
+ createRootRoute,
8
+ } from "@tanstack/react-router"
9
+
10
+ import { Toaster } from "@/components/ui/toast"
11
+ import appCss from "@/styles.css?url"
12
+
13
+ export const Route = createRootRoute({
14
+ head: () => ({
15
+ meta: [
16
+ { charSet: "utf-8" },
17
+ {
18
+ name: "viewport",
19
+ content: "width=device-width, initial-scale=1",
20
+ },
21
+ { title: "Mon espace" },
22
+ {
23
+ name: "description",
24
+ content: "Une application créée avec Livel.",
25
+ },
26
+ ],
27
+ links: [{ rel: "stylesheet", href: appCss }],
28
+ }),
29
+ component: RootComponent,
30
+ })
31
+
32
+ function RootComponent() {
33
+ return (
34
+ <RootDocument>
35
+ <Outlet />
36
+ </RootDocument>
37
+ )
38
+ }
39
+
40
+ function RootDocument({ children }: Readonly<{ children: ReactNode }>) {
41
+ return (
42
+ <html lang='fr'>
43
+ <head>
44
+ <HeadContent />
45
+ </head>
46
+ <body>
47
+ <LivelApplicationProvider>{children}</LivelApplicationProvider>
48
+ <Toaster />
49
+ <Scripts />
50
+ </body>
51
+ </html>
52
+ )
53
+ }
@@ -0,0 +1,85 @@
1
+ import { createFileRoute } from "@tanstack/react-router"
2
+ import { LivelDataConnectionStatus } from "@zaptek/application-livel/components"
3
+ import { Check, PanelsTopLeft } from "lucide-react"
4
+
5
+ export const Route = createFileRoute("/")({
6
+ component: Home,
7
+ })
8
+
9
+ const foundations = [
10
+ "À personnaliser selon vos besoins",
11
+ "Sur mobile comme sur ordinateur",
12
+ "Un espace dédié à votre activité",
13
+ ]
14
+
15
+ function Home() {
16
+ return (
17
+ <main className='min-h-screen bg-background px-5 py-5 text-foreground sm:px-8 sm:py-8'>
18
+ <div className='mx-auto flex min-h-[calc(100vh-2.5rem)] max-w-7xl flex-col border border-border bg-card sm:min-h-[calc(100vh-4rem)]'>
19
+ <header className='flex items-center justify-between border-b border-border px-5 py-4 sm:px-7'>
20
+ <div className='flex items-center gap-3'>
21
+ <span className='grid size-9 place-items-center rounded-full bg-foreground text-background'>
22
+ <PanelsTopLeft aria-hidden='true' size={17} strokeWidth={1.8} />
23
+ </span>
24
+ <span className='text-sm font-semibold tracking-[-0.01em]'>
25
+ Votre application
26
+ </span>
27
+ </div>
28
+ </header>
29
+
30
+ <div className='grid flex-1 lg:grid-cols-[1fr_23rem]'>
31
+ <section className='flex min-h-[31rem] flex-col justify-between border-b border-border p-6 sm:p-10 lg:border-r lg:border-b-0 lg:p-14'>
32
+ <div className='max-w-3xl'>
33
+ <p className='mb-7 text-sm font-medium text-muted-foreground'>
34
+ Bienvenue dans votre espace
35
+ </p>
36
+ <h1 className='max-w-3xl text-4xl leading-[1.02] font-medium tracking-[-0.045em] text-balance sm:text-6xl lg:text-7xl'>
37
+ Votre application prend forme.
38
+ </h1>
39
+ <p className='mt-7 max-w-xl text-base leading-7 text-muted-foreground sm:text-lg sm:leading-8'>
40
+ Dites à Livel ce que vous souhaitez faire : organiser vos
41
+ informations, suivre votre activité ou gagner du temps au
42
+ quotidien.
43
+ </p>
44
+ </div>
45
+
46
+ <div className='mt-14 flex items-center gap-3 text-sm text-muted-foreground'>
47
+ <span className='h-px w-10 bg-ring' />À construire ensemble, avec
48
+ Livel
49
+ </div>
50
+ </section>
51
+
52
+ <aside className='flex flex-col justify-between p-6 sm:p-8 lg:p-9'>
53
+ <div>
54
+ <p className='text-sm font-semibold'>
55
+ Un espace qui vous ressemble
56
+ </p>
57
+ <ul className='mt-6 space-y-0'>
58
+ {foundations.map(item => (
59
+ <li
60
+ className='flex items-center gap-3 border-t border-border py-4 text-sm first:border-t-0 first:pt-0'
61
+ key={item}
62
+ >
63
+ <span className='grid size-5 shrink-0 place-items-center rounded-full bg-secondary text-secondary-foreground'>
64
+ <Check aria-hidden='true' size={12} strokeWidth={2.2} />
65
+ </span>
66
+ {item}
67
+ </li>
68
+ ))}
69
+ </ul>
70
+ </div>
71
+
72
+ <div className='mt-12 border-t border-border pt-7'>
73
+ <LivelDataConnectionStatus />
74
+ <p className='mt-8 text-sm font-semibold'>Et maintenant ?</p>
75
+ <p className='mt-4 text-sm leading-6'>
76
+ Retrouvez Livel dans la conversation et décrivez-lui ce que vous
77
+ aimeriez créer. Elle vous aidera à donner vie à votre idée.
78
+ </p>
79
+ </div>
80
+ </aside>
81
+ </div>
82
+ </div>
83
+ </main>
84
+ )
85
+ }
@@ -0,0 +1,148 @@
1
+ @import "tailwindcss";
2
+ @import "tw-animate-css";
3
+ @import "shadcn/tailwind.css";
4
+ @import "@fontsource-variable/geist";
5
+
6
+ @custom-variant dark (&:is(.dark *));
7
+
8
+ :root {
9
+ color-scheme: light;
10
+ font-synthesis: none;
11
+ text-rendering: optimizeLegibility;
12
+
13
+ --background: oklch(0.95 0.008 94);
14
+ --foreground: oklch(0.24 0.012 160);
15
+ --card: oklch(0.98 0.006 94);
16
+ --card-foreground: oklch(0.24 0.012 160);
17
+ --popover: oklch(0.98 0.006 94);
18
+ --popover-foreground: oklch(0.24 0.012 160);
19
+ --primary: oklch(0.46 0.087 166);
20
+ --primary-foreground: oklch(0.98 0.006 94);
21
+ --secondary: oklch(0.92 0.025 163);
22
+ --secondary-foreground: oklch(0.41 0.074 166);
23
+ --muted: oklch(0.93 0.007 94);
24
+ --muted-foreground: oklch(0.52 0.012 155);
25
+ --accent: oklch(0.92 0.025 163);
26
+ --accent-foreground: oklch(0.41 0.074 166);
27
+ --destructive: oklch(0.577 0.245 27.325);
28
+ --border: oklch(0.87 0.008 94);
29
+ --input: oklch(0.87 0.008 94);
30
+ --ring: oklch(0.46 0.087 166);
31
+ --chart-1: oklch(0.46 0.087 166);
32
+ --chart-2: oklch(0.61 0.092 166);
33
+ --chart-3: oklch(0.73 0.071 166);
34
+ --chart-4: oklch(0.8 0.056 94);
35
+ --chart-5: oklch(0.62 0.054 70);
36
+ --radius: 0.625rem;
37
+ --sidebar: oklch(0.98 0.006 94);
38
+ --sidebar-foreground: oklch(0.24 0.012 160);
39
+ --sidebar-primary: oklch(0.46 0.087 166);
40
+ --sidebar-primary-foreground: oklch(0.98 0.006 94);
41
+ --sidebar-accent: oklch(0.92 0.025 163);
42
+ --sidebar-accent-foreground: oklch(0.41 0.074 166);
43
+ --sidebar-border: oklch(0.87 0.008 94);
44
+ --sidebar-ring: oklch(0.46 0.087 166);
45
+ }
46
+
47
+ .dark {
48
+ color-scheme: dark;
49
+ --background: oklch(0.18 0.012 160);
50
+ --foreground: oklch(0.94 0.008 130);
51
+ --card: oklch(0.21 0.012 160);
52
+ --card-foreground: oklch(0.94 0.008 130);
53
+ --popover: oklch(0.21 0.012 160);
54
+ --popover-foreground: oklch(0.94 0.008 130);
55
+ --primary: oklch(0.76 0.09 166);
56
+ --primary-foreground: oklch(0.18 0.012 160);
57
+ --secondary: oklch(0.3 0.037 163);
58
+ --secondary-foreground: oklch(0.81 0.075 166);
59
+ --muted: oklch(0.25 0.011 160);
60
+ --muted-foreground: oklch(0.69 0.015 155);
61
+ --accent: oklch(0.3 0.037 163);
62
+ --accent-foreground: oklch(0.81 0.075 166);
63
+ --destructive: oklch(0.704 0.191 22.216);
64
+ --border: oklch(0.29 0.012 160);
65
+ --input: oklch(0.33 0.012 160);
66
+ --ring: oklch(0.76 0.09 166);
67
+ --chart-1: oklch(0.76 0.09 166);
68
+ --chart-2: oklch(0.64 0.08 166);
69
+ --chart-3: oklch(0.53 0.07 166);
70
+ --chart-4: oklch(0.73 0.06 94);
71
+ --chart-5: oklch(0.66 0.07 70);
72
+ --sidebar: oklch(0.21 0.012 160);
73
+ --sidebar-foreground: oklch(0.94 0.008 130);
74
+ --sidebar-primary: oklch(0.76 0.09 166);
75
+ --sidebar-primary-foreground: oklch(0.18 0.012 160);
76
+ --sidebar-accent: oklch(0.3 0.037 163);
77
+ --sidebar-accent-foreground: oklch(0.81 0.075 166);
78
+ --sidebar-border: oklch(0.29 0.012 160);
79
+ --sidebar-ring: oklch(0.76 0.09 166);
80
+ }
81
+
82
+ @theme inline {
83
+ --font-heading: var(--font-sans);
84
+ --font-sans: "Geist Variable", sans-serif;
85
+ --color-sidebar-ring: var(--sidebar-ring);
86
+ --color-sidebar-border: var(--sidebar-border);
87
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
88
+ --color-sidebar-accent: var(--sidebar-accent);
89
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
90
+ --color-sidebar-primary: var(--sidebar-primary);
91
+ --color-sidebar-foreground: var(--sidebar-foreground);
92
+ --color-sidebar: var(--sidebar);
93
+ --color-chart-5: var(--chart-5);
94
+ --color-chart-4: var(--chart-4);
95
+ --color-chart-3: var(--chart-3);
96
+ --color-chart-2: var(--chart-2);
97
+ --color-chart-1: var(--chart-1);
98
+ --color-ring: var(--ring);
99
+ --color-input: var(--input);
100
+ --color-border: var(--border);
101
+ --color-destructive: var(--destructive);
102
+ --color-accent-foreground: var(--accent-foreground);
103
+ --color-accent: var(--accent);
104
+ --color-muted-foreground: var(--muted-foreground);
105
+ --color-muted: var(--muted);
106
+ --color-secondary-foreground: var(--secondary-foreground);
107
+ --color-secondary: var(--secondary);
108
+ --color-primary-foreground: var(--primary-foreground);
109
+ --color-primary: var(--primary);
110
+ --color-popover-foreground: var(--popover-foreground);
111
+ --color-popover: var(--popover);
112
+ --color-card-foreground: var(--card-foreground);
113
+ --color-card: var(--card);
114
+ --color-foreground: var(--foreground);
115
+ --color-background: var(--background);
116
+ --radius-sm: calc(var(--radius) * 0.6);
117
+ --radius-md: calc(var(--radius) * 0.8);
118
+ --radius-lg: var(--radius);
119
+ --radius-xl: calc(var(--radius) * 1.4);
120
+ --radius-2xl: calc(var(--radius) * 1.8);
121
+ --radius-3xl: calc(var(--radius) * 2.2);
122
+ --radius-4xl: calc(var(--radius) * 2.6);
123
+ }
124
+
125
+ @layer base {
126
+ * {
127
+ @apply border-border outline-ring/50;
128
+ }
129
+
130
+ html {
131
+ @apply bg-background font-sans;
132
+ }
133
+
134
+ body {
135
+ @apply min-w-80 bg-background text-foreground;
136
+ margin: 0;
137
+ }
138
+
139
+ button:not(:disabled),
140
+ [role="button"]:not(:disabled) {
141
+ cursor: pointer;
142
+ }
143
+ }
144
+
145
+ ::selection {
146
+ background: var(--accent);
147
+ color: var(--accent-foreground);
148
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "include": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.d.ts"],
3
+ "compilerOptions": {
4
+ "allowJs": false,
5
+ "esModuleInterop": true,
6
+ "forceConsistentCasingInFileNames": true,
7
+ "isolatedModules": true,
8
+ "jsx": "react-jsx",
9
+ "lib": ["DOM", "DOM.Iterable", "ES2024"],
10
+ "module": "ESNext",
11
+ "moduleResolution": "Bundler",
12
+ "noEmit": true,
13
+ "resolveJsonModule": true,
14
+ "skipLibCheck": true,
15
+ "strict": true,
16
+ "target": "ES2024",
17
+ "paths": {
18
+ "@/*": ["./src/*"]
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,28 @@
1
+ import tailwindcss from "@tailwindcss/vite"
2
+ import { tanstackStart } from "@tanstack/react-start/plugin/vite"
3
+ import viteReact from "@vitejs/plugin-react"
4
+ import { livelDevErrors } from "@zaptek/application-livel/vite"
5
+ import { nitro } from "nitro/vite"
6
+ import { defineConfig } from "vite"
7
+
8
+ export default defineConfig({
9
+ server: {
10
+ host: "0.0.0.0",
11
+ port: 3005,
12
+ strictPort: true,
13
+ },
14
+ resolve: {
15
+ tsconfigPaths: true,
16
+ },
17
+ plugins: [
18
+ tailwindcss(),
19
+ tanstackStart({
20
+ spa: {
21
+ enabled: true,
22
+ },
23
+ }),
24
+ viteReact(),
25
+ nitro(),
26
+ livelDevErrors(),
27
+ ],
28
+ })