diff --git a/bun.lock b/bun.lock index 240a326..c32184e 100644 --- a/bun.lock +++ b/bun.lock @@ -6,7 +6,7 @@ "name": "glstack", "dependencies": { "@clack/prompts": "^1.2.0", - "@gregorlohaus/tdir": "^0.1.2", + "@gregorlohaus/tdir": "^0.1.4", "zod": "^4.3.6", }, "devDependencies": { @@ -22,7 +22,7 @@ "@clack/prompts": ["@clack/prompts@1.2.0", "", { "dependencies": { "@clack/core": "1.2.0", "fast-string-width": "^1.1.0", "fast-wrap-ansi": "^0.1.3", "sisteransi": "^1.0.5" } }, "sha512-4jmztR9fMqPMjz6H/UZXj0zEmE43ha1euENwkckKKel4XpSfokExPo5AiVStdHSAlHekz4d0CA/r45Ok1E4D3w=="], - "@gregorlohaus/tdir": ["@gregorlohaus/tdir@0.1.2", "", { "peerDependencies": { "zod": "^4" } }, "sha512-gEZg1+kwhMQQqEhMdyVBnHBrIWFMlvHt8C6sbPtY/PbbFo02odTBkpclfovIs2p4Awo0Hagzq3B6rpePGD/03w=="], + "@gregorlohaus/tdir": ["@gregorlohaus/tdir@0.1.4", "", { "peerDependencies": { "zod": "^4" }, "bin": { "tdir": "dist/cli.js" } }, "sha512-etrMNRSf04TIxj6qoKBTM+eLA/xmFN0yovFqE5aJLUdq653ceRM9uWW7XB7iSHs89STQ442Q0ouTMaTGxrkIUg=="], "@types/bun": ["@types/bun@1.3.11", "", { "dependencies": { "bun-types": "1.3.11" } }, "sha512-5vPne5QvtpjGpsGYXiFyycfpDF2ECyPcTSsFBMa0fraoxiQyMJ3SmuQIGhzPg2WJuWxVBoxWJ2kClYTcw/4fAg=="], diff --git a/index.ts b/index.ts index feaf86d..e6ab692 100644 --- a/index.ts +++ b/index.ts @@ -23,7 +23,8 @@ const project = await p.group( message: 'Pick a frontend framework.', options: [ {value: "svelte-kit", label:"SvelteKit"}, - {value: "solid-start", label:"SolidStart"} + {value: "solid-start", label:"SolidStart"}, + {value: "none", label:"None"} ] }) , @@ -55,8 +56,7 @@ const render = createRenderer(z.object({ }) })) const destDir = path.join("./",project.name); -render(destDir,{project}) -// TODO: template rendering — copy/generate files into destDir +render(destDir,{project},{reverseMap: true}) const s = p.spinner(); s.start("Installing dependencies"); diff --git a/package.json b/package.json index 8aa3dc4..02602e4 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ }, "dependencies": { "@clack/prompts": "^1.2.0", - "@gregorlohaus/tdir": "^0.1.2", + "@gregorlohaus/tdir": "^0.1.4", "zod": "^4.3.6" } } diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/.gitignore" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/.gitignore" index cd8e1d7..3b462cb 100644 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/.gitignore" +++ "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/.gitignore" @@ -21,6 +21,3 @@ Thumbs.db # Vite vite.config.js.timestamp-* vite.config.ts.timestamp-* -# Paraglide -src/lib/paraglide -project.inlang/cache/ diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/.ignore" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/.ignore" deleted file mode 100644 index cd8e1d7..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/.ignore" +++ /dev/null @@ -1,26 +0,0 @@ -node_modules - -# Output -.output -.vercel -.netlify -.wrangler -/.svelte-kit -/build - -# OS -.DS_Store -Thumbs.db - -# Env -.env -.env.* -!.env.example -!.env.test - -# Vite -vite.config.js.timestamp-* -vite.config.ts.timestamp-* -# Paraglide -src/lib/paraglide -project.inlang/cache/ diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/.prettierignore" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/.prettierignore" deleted file mode 100644 index 7d74fe2..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/.prettierignore" +++ /dev/null @@ -1,9 +0,0 @@ -# Package Managers -package-lock.json -pnpm-lock.yaml -yarn.lock -bun.lock -bun.lockb - -# Miscellaneous -/static/ diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/.prettierrc" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/.prettierrc" deleted file mode 100644 index 819fa57..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/.prettierrc" +++ /dev/null @@ -1,16 +0,0 @@ -{ - "useTabs": true, - "singleQuote": true, - "trailingComma": "none", - "printWidth": 100, - "plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"], - "overrides": [ - { - "files": "*.svelte", - "options": { - "parser": "svelte" - } - } - ], - "tailwindStylesheet": "./src/routes/layout.css" -} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/.vscode/extensions.json" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/.vscode/extensions.json" index 252fc41..28d1e67 100644 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/.vscode/extensions.json" +++ "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/.vscode/extensions.json" @@ -1,3 +1,3 @@ { - "recommendations": ["svelte.svelte-vscode", "esbenp.prettier-vscode", "bradlc.vscode-tailwindcss"] + "recommendations": ["svelte.svelte-vscode"] } diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/.vscode/settings.json" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/.vscode/settings.json" deleted file mode 100644 index bc31e15..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/.vscode/settings.json" +++ /dev/null @@ -1,5 +0,0 @@ -{ - "files.associations": { - "*.css": "tailwindcss" - } -} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/README.md" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/README.md" deleted file mode 100644 index db53934..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/README.md" +++ /dev/null @@ -1,42 +0,0 @@ -# sv - -Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli). - -## Creating a project - -If you're seeing this, you've probably already done this step. Congrats! - -```sh -# create a new project -npx sv create my-app -``` - -To recreate this project with the same configuration: - -```sh -# recreate this project -bun x sv@0.14.0 create --template minimal --types ts --add prettier tailwindcss="plugins:typography" paraglide="languageTags:en, de-De+demo:no" --install bun web -``` - -## Developing - -Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: - -```sh -npm run dev - -# or start the server and open the app in a new browser tab -npm run dev -- --open -``` - -## Building - -To create a production version of your app: - -```sh -npm run build -``` - -You can preview the production build with `npm run preview`. - -> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment. diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/components.json" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/components.json" deleted file mode 100644 index 0eaa3b2..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/components.json" +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "https://shadcn-svelte.com/schema.json", - "tailwind": { - "css": "src/routes/layout.css", - "baseColor": "mist" - }, - "aliases": { - "components": "$lib/components", - "utils": "$lib/utils", - "ui": "$lib/components/ui", - "hooks": "$lib/hooks", - "lib": "$lib" - }, - "typescript": true, - "registry": "https://shadcn-svelte.com/registry", - "style": "lyra", - "iconLibrary": "lucide", - "menuColor": "default", - "menuAccent": "subtle" -} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/messages/de-de.json" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/messages/de-de.json" deleted file mode 100644 index d713555..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/messages/de-de.json" +++ /dev/null @@ -1,4 +0,0 @@ -{ - "$schema": "https://inlang.com/schema/inlang-message-format", - "hello_world": "Hello, {name} from de-de!" -} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/messages/en.json" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/messages/en.json" deleted file mode 100644 index 37a9894..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/messages/en.json" +++ /dev/null @@ -1,4 +0,0 @@ -{ - "$schema": "https://inlang.com/schema/inlang-message-format", - "hello_world": "Hello, {name} from en!" -} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/package.json" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/package.json" index 9f8ab80..02359de 100644 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/package.json" +++ "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/package.json" @@ -9,51 +9,26 @@ "preview": "vite preview", "prepare": "svelte-kit sync || echo ''", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", - "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", - "lint": "prettier --check .", - "format": "prettier --write ." + "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch" }, "devDependencies": { - "@fontsource-variable/roboto": "^5.2.10", - "@inlang/paraglide-js": "^2.10.0", - "@internationalized/date": "^3.12.0", - "@lucide/svelte": "^0.577.0", - "@sveltejs/adapter-auto": "^7.0.0", - "@sveltejs/kit": "^2.50.2", - "@sveltejs/vite-plugin-svelte": "^6.2.4", - "@tailwindcss/typography": "^0.5.19", - "@tailwindcss/vite": "^4.1.18", - "@tanstack/table-core": "^8.21.3", - "bits-ui": "^2.16.3", - "clsx": "^2.1.1", - "embla-carousel-svelte": "^8.6.0", - "formsnap": "^2.0.1", - "layerchart": "2.0.0-next.48", - "mode-watcher": "^1.1.0", - "paneforge": "^1.0.2", - "prettier": "^3.8.1", - "prettier-plugin-svelte": "^3.4.1", - "prettier-plugin-tailwindcss": "^0.7.2", - "shadcn-svelte": "^1.2.7", - "svelte": "^5.54.0", - "svelte-check": "^4.4.2", - "svelte-sonner": "^1.1.0", - "sveltekit-superforms": "^2.30.0", - "tailwind-merge": "^3.5.0", - "tailwind-variants": "^3.2.2", - "tailwindcss": "^4.1.18", - "tw-animate-css": "^1.4.0", - "typescript": "^5.9.3", - "vaul-svelte": "^1.0.0-next.7", - "vite": "^7.3.1" + "@sveltejs/adapter-auto": "^7.0.1", + "@sveltejs/kit": "^2.57.0", + "@sveltejs/vite-plugin-svelte": "^7.0.0", + "svelte": "^5.55.2", + "svelte-check": "^4.4.6", + "typescript": "^6.0.2", + "vite": "^8.0.7" }, "dependencies": { "@bufbuild/protobuf": "^2.11.0", "@connectrpc/connect": "^2.1.1", "@connectrpc/connect-web": "^2.1.1", "@<@var(context.project.name)>/rpc": "workspace:*", + "@tailwindcss/vite": "^4.3.0", "@tanstack/query-db-collection": "^1.0.33", "@tanstack/svelte-db": "^0.1.79", - "@tanstack/svelte-query": "^6.1.13" + "@tanstack/svelte-query": "^6.1.13", + "tailwindcss": "^4.3.0" } } diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/project.inlang/settings.json" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/project.inlang/settings.json" deleted file mode 100644 index e9eac7e..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/project.inlang/settings.json" +++ /dev/null @@ -1,12 +0,0 @@ -{ - "$schema": "https://inlang.com/schema/project-settings", - "modules": [ - "https://cdn.jsdelivr.net/npm/@inlang/plugin-message-format@4/dist/index.js", - "https://cdn.jsdelivr.net/npm/@inlang/plugin-m-function-matcher@2/dist/index.js" - ], - "plugin.inlang.messageFormat": { - "pathPattern": "./messages/{locale}.json" - }, - "baseLocale": "en", - "locales": ["en", "de-de"] -} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/app.html" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/app.html" index 639cbb8..6a2bb58 100644 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/app.html" +++ "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/app.html" @@ -1,15 +1,11 @@ - - + - - %sveltekit.head% -
%sveltekit.body%
diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/hooks.server.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/hooks.server.ts" deleted file mode 100644 index ac5e591..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/hooks.server.ts" +++ /dev/null @@ -1,17 +0,0 @@ -import type { Handle } from '@sveltejs/kit'; -import { getTextDirection } from '$lib/paraglide/runtime'; -import { paraglideMiddleware } from '$lib/paraglide/server'; - -const handleParaglide: Handle = ({ event, resolve }) => - paraglideMiddleware(event.request, ({ request, locale }) => { - event.request = request; - - return resolve(event, { - transformPageChunk: ({ html }) => - html - .replace('%paraglide.lang%', locale) - .replace('%paraglide.dir%', getTextDirection(locale)) - }); - }); - -export const handle: Handle = handleParaglide; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/hooks.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/hooks.ts" deleted file mode 100644 index 392875d..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/hooks.ts" +++ /dev/null @@ -1,4 +0,0 @@ -import type { Reroute } from '@sveltejs/kit'; -import { deLocalizeUrl } from '$lib/paraglide/runtime'; - -export const reroute: Reroute = (request) => deLocalizeUrl(request.url).pathname; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/CreateTodo.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/CreateTodo.svelte" new file mode 100644 index 0000000..700b533 --- /dev/null +++ "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/CreateTodo.svelte" @@ -0,0 +1,25 @@ + + + + diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ListTodos.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ListTodos.svelte" new file mode 100644 index 0000000..805717c --- /dev/null +++ "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ListTodos.svelte" @@ -0,0 +1,29 @@ + + +{#if data.isLoading} +
Loading...
+{:else} + {#each todos as todo (todo.id)} + + {/each} +{/if} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/Todo.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/Todo.svelte" new file mode 100644 index 0000000..5d395e6 --- /dev/null +++ "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/Todo.svelte" @@ -0,0 +1,48 @@ + + +
+ + {new Date(todoState.createdAt || '').toLocaleString()} + {new Date(todoState.updatesAt || '').toLocaleString()} + + +
diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/todos/CreateTodo.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/todos/CreateTodo.svelte" deleted file mode 100644 index 7695629..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/todos/CreateTodo.svelte" +++ /dev/null @@ -1,25 +0,0 @@ - - -
- - - - Todo - - - - - -
diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/todos/ListTodos.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/todos/ListTodos.svelte" deleted file mode 100644 index a530e8f..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/todos/ListTodos.svelte" +++ /dev/null @@ -1,50 +0,0 @@ - - - - {#if browser} - {#each todos as todo (todo.id)} - - {/each} - {:else} - {#each initialTodos as todo} - - {/each} - {/if} - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/todos/Todo.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/todos/Todo.svelte" deleted file mode 100644 index a0079fb..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/todos/Todo.svelte" +++ /dev/null @@ -1,69 +0,0 @@ - - -update()}> - - - - - task - - - - - - - - done - - update()}> - - - -
- - - Created - - - {(new Date(todoState.createdAt||"now")).toLocaleString()} - - - - - Updated - - - {(new Date(todoState.updatesAt||"now")).toLocaleString()} - - - -
-
-
-
- diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/accordion/accordion-content.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/accordion/accordion-content.svelte" deleted file mode 100644 index 24f1f41..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/accordion/accordion-content.svelte" +++ /dev/null @@ -1,27 +0,0 @@ - - - -
- {@render children?.()} -
-
diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/accordion/accordion-item.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/accordion/accordion-item.svelte" deleted file mode 100644 index 9d3919d..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/accordion/accordion-item.svelte" +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/accordion/accordion-trigger.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/accordion/accordion-trigger.svelte" deleted file mode 100644 index 383272d..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/accordion/accordion-trigger.svelte" +++ /dev/null @@ -1,32 +0,0 @@ - - - - - {@render children?.()} - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/accordion/accordion.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/accordion/accordion.svelte" deleted file mode 100644 index b19a3c5..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/accordion/accordion.svelte" +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/accordion/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/accordion/index.ts" deleted file mode 100644 index ac343a1..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/accordion/index.ts" +++ /dev/null @@ -1,16 +0,0 @@ -import Root from "./accordion.svelte"; -import Content from "./accordion-content.svelte"; -import Item from "./accordion-item.svelte"; -import Trigger from "./accordion-trigger.svelte"; - -export { - Root, - Content, - Item, - Trigger, - // - Root as Accordion, - Content as AccordionContent, - Item as AccordionItem, - Trigger as AccordionTrigger, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-action.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-action.svelte" deleted file mode 100644 index 7e63004..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-action.svelte" +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-cancel.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-cancel.svelte" deleted file mode 100644 index a4ce03c..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-cancel.svelte" +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte" deleted file mode 100644 index 710727d..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte" +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-description.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-description.svelte" deleted file mode 100644 index 7b26f8a..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-description.svelte" +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-footer.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-footer.svelte" deleted file mode 100644 index 4d133b7..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-footer.svelte" +++ /dev/null @@ -1,23 +0,0 @@ - - -
- {@render children?.()} -
diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-header.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-header.svelte" deleted file mode 100644 index d6df4d3..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-header.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - -
- {@render children?.()} -
diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-media.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-media.svelte" deleted file mode 100644 index 4db6d7e..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-media.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - -
- {@render children?.()} -
diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-overlay.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-overlay.svelte" deleted file mode 100644 index 9ffcc85..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-overlay.svelte" +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-portal.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-portal.svelte" deleted file mode 100644 index f0a19a8..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-portal.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-title.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-title.svelte" deleted file mode 100644 index 5cb7e7f..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-title.svelte" +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-trigger.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-trigger.svelte" deleted file mode 100644 index b22d1d5..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog-trigger.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog.svelte" deleted file mode 100644 index 7ea78bb..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/alert-dialog.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/index.ts" deleted file mode 100644 index ca81c2a..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert-dialog/index.ts" +++ /dev/null @@ -1,40 +0,0 @@ -import Root from "./alert-dialog.svelte"; -import Portal from "./alert-dialog-portal.svelte"; -import Trigger from "./alert-dialog-trigger.svelte"; -import Title from "./alert-dialog-title.svelte"; -import Action from "./alert-dialog-action.svelte"; -import Cancel from "./alert-dialog-cancel.svelte"; -import Footer from "./alert-dialog-footer.svelte"; -import Header from "./alert-dialog-header.svelte"; -import Overlay from "./alert-dialog-overlay.svelte"; -import Content from "./alert-dialog-content.svelte"; -import Description from "./alert-dialog-description.svelte"; -import Media from "./alert-dialog-media.svelte"; - -export { - Root, - Title, - Action, - Cancel, - Portal, - Footer, - Header, - Trigger, - Overlay, - Content, - Description, - Media, - // - Root as AlertDialog, - Title as AlertDialogTitle, - Action as AlertDialogAction, - Cancel as AlertDialogCancel, - Portal as AlertDialogPortal, - Footer as AlertDialogFooter, - Header as AlertDialogHeader, - Trigger as AlertDialogTrigger, - Overlay as AlertDialogOverlay, - Content as AlertDialogContent, - Description as AlertDialogDescription, - Media as AlertDialogMedia, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert/alert-action.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert/alert-action.svelte" deleted file mode 100644 index 0f90609..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert/alert-action.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - -
- {@render children?.()} -
diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert/alert-description.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert/alert-description.svelte" deleted file mode 100644 index e62a009..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert/alert-description.svelte" +++ /dev/null @@ -1,23 +0,0 @@ - - -
- {@render children?.()} -
diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert/alert-title.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert/alert-title.svelte" deleted file mode 100644 index 3e339a3..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert/alert-title.svelte" +++ /dev/null @@ -1,23 +0,0 @@ - - -
svg]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3", - className - )} - {...restProps} -> - {@render children?.()} -
diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert/alert.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert/alert.svelte" deleted file mode 100644 index b2eecfa..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert/alert.svelte" +++ /dev/null @@ -1,43 +0,0 @@ - - - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert/index.ts" deleted file mode 100644 index 071b113..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/alert/index.ts" +++ /dev/null @@ -1,17 +0,0 @@ -import Root from "./alert.svelte"; -import Description from "./alert-description.svelte"; -import Title from "./alert-title.svelte"; -import Action from "./alert-action.svelte"; -export { alertVariants, type AlertVariant } from "./alert.svelte"; - -export { - Root, - Description, - Title, - Action, - // - Root as Alert, - Description as AlertDescription, - Title as AlertTitle, - Action as AlertAction, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/aspect-ratio/aspect-ratio.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/aspect-ratio/aspect-ratio.svelte" deleted file mode 100644 index 815aab0..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/aspect-ratio/aspect-ratio.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/aspect-ratio/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/aspect-ratio/index.ts" deleted file mode 100644 index 985c75f..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/aspect-ratio/index.ts" +++ /dev/null @@ -1,3 +0,0 @@ -import Root from "./aspect-ratio.svelte"; - -export { Root, Root as AspectRatio }; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/avatar-badge.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/avatar-badge.svelte" deleted file mode 100644 index ca9d9ed..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/avatar-badge.svelte" +++ /dev/null @@ -1,26 +0,0 @@ - - -svg]:hidden", - "group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2", - "group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2", - className - )} - {...restProps} -> - {@render children?.()} - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/avatar-fallback.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/avatar-fallback.svelte" deleted file mode 100644 index 63c8b02..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/avatar-fallback.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/avatar-group-count.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/avatar-group-count.svelte" deleted file mode 100644 index 536c308..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/avatar-group-count.svelte" +++ /dev/null @@ -1,23 +0,0 @@ - - -
svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3 ring-background relative flex shrink-0 items-center justify-center ring-2", - className - )} - {...restProps} -> - {@render children?.()} -
diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/avatar-group.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/avatar-group.svelte" deleted file mode 100644 index 78714fc..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/avatar-group.svelte" +++ /dev/null @@ -1,23 +0,0 @@ - - -
- {@render children?.()} -
diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/avatar-image.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/avatar-image.svelte" deleted file mode 100644 index f41cf8f..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/avatar-image.svelte" +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/avatar.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/avatar.svelte" deleted file mode 100644 index ea6fde5..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/avatar.svelte" +++ /dev/null @@ -1,26 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/index.ts" deleted file mode 100644 index 38ccef8..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/avatar/index.ts" +++ /dev/null @@ -1,22 +0,0 @@ -import Root from "./avatar.svelte"; -import Image from "./avatar-image.svelte"; -import Fallback from "./avatar-fallback.svelte"; -import Badge from "./avatar-badge.svelte"; -import Group from "./avatar-group.svelte"; -import GroupCount from "./avatar-group-count.svelte"; - -export { - Root, - Image, - Fallback, - Badge, - Group, - GroupCount, - // - Root as Avatar, - Image as AvatarImage, - Fallback as AvatarFallback, - Badge as AvatarBadge, - Group as AvatarGroup, - GroupCount as AvatarGroupCount, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/badge/badge.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/badge/badge.svelte" deleted file mode 100644 index 2cfe06f..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/badge/badge.svelte" +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - {@render children?.()} - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/badge/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/badge/index.ts" deleted file mode 100644 index 64e0aa9..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/badge/index.ts" +++ /dev/null @@ -1,2 +0,0 @@ -export { default as Badge } from "./badge.svelte"; -export { badgeVariants, type BadgeVariant } from "./badge.svelte"; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb-ellipsis.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb-ellipsis.svelte" deleted file mode 100644 index 9e1e22c..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb-ellipsis.svelte" +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb-item.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb-item.svelte" deleted file mode 100644 index e9c77ea..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb-item.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - -
  • - {@render children?.()} -
  • diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb-link.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb-link.svelte" deleted file mode 100644 index e6bc17d..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb-link.svelte" +++ /dev/null @@ -1,31 +0,0 @@ - - -{#if child} - {@render child({ props: attrs })} -{:else} - - {@render children?.()} - -{/if} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte" deleted file mode 100644 index 44fd50b..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - -
      - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb-page.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb-page.svelte" deleted file mode 100644 index 5fb6979..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb-page.svelte" +++ /dev/null @@ -1,23 +0,0 @@ - - - - {@render children?.()} - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb-separator.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb-separator.svelte" deleted file mode 100644 index 0f62fba..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb-separator.svelte" +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb.svelte" deleted file mode 100644 index 29ea3f5..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/breadcrumb.svelte" +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/index.ts" deleted file mode 100644 index dc914ec..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/breadcrumb/index.ts" +++ /dev/null @@ -1,25 +0,0 @@ -import Root from "./breadcrumb.svelte"; -import Ellipsis from "./breadcrumb-ellipsis.svelte"; -import Item from "./breadcrumb-item.svelte"; -import Separator from "./breadcrumb-separator.svelte"; -import Link from "./breadcrumb-link.svelte"; -import List from "./breadcrumb-list.svelte"; -import Page from "./breadcrumb-page.svelte"; - -export { - Root, - Ellipsis, - Item, - Separator, - Link, - List, - Page, - // - Root as Breadcrumb, - Ellipsis as BreadcrumbEllipsis, - Item as BreadcrumbItem, - Separator as BreadcrumbSeparator, - Link as BreadcrumbLink, - List as BreadcrumbList, - Page as BreadcrumbPage, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/button-group/button-group-separator.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/button-group/button-group-separator.svelte" deleted file mode 100644 index a13f023..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/button-group/button-group-separator.svelte" +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/button-group/button-group-text.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/button-group/button-group-text.svelte" deleted file mode 100644 index d5b607f..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/button-group/button-group-text.svelte" +++ /dev/null @@ -1,28 +0,0 @@ - - -{#if child} - {@render child({ props: mergedProps })} -{:else} -
    - {@render mergedProps.children?.()} -
    -{/if} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/button-group/button-group.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/button-group/button-group.svelte" deleted file mode 100644 index 6137433..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/button-group/button-group.svelte" +++ /dev/null @@ -1,46 +0,0 @@ - - - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/button-group/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/button-group/index.ts" deleted file mode 100644 index 664167f..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/button-group/index.ts" +++ /dev/null @@ -1,15 +0,0 @@ -import Root, { buttonGroupVariants, type ButtonGroupOrientation } from "./button-group.svelte"; -import Text from "./button-group-text.svelte"; -import Separator from "./button-group-separator.svelte"; - -export { - Root, - Text, - Separator, - buttonGroupVariants, - type ButtonGroupOrientation, - // - Root as ButtonGroup, - Text as ButtonGroupText, - Separator as ButtonGroupSeparator, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/button/button.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/button/button.svelte" deleted file mode 100644 index b8fd3bc..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/button/button.svelte" +++ /dev/null @@ -1,82 +0,0 @@ - - - - -{#if href} - - {@render children?.()} - -{:else} - -{/if} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/button/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/button/index.ts" deleted file mode 100644 index fb585d7..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/button/index.ts" +++ /dev/null @@ -1,17 +0,0 @@ -import Root, { - type ButtonProps, - type ButtonSize, - type ButtonVariant, - buttonVariants, -} from "./button.svelte"; - -export { - Root, - type ButtonProps as Props, - // - Root as Button, - buttonVariants, - type ButtonProps, - type ButtonSize, - type ButtonVariant, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-caption.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-caption.svelte" deleted file mode 100644 index 5c93037..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-caption.svelte" +++ /dev/null @@ -1,76 +0,0 @@ - - -{#snippet MonthSelect()} - { - if (!placeholder) return; - const v = Number.parseInt(e.currentTarget.value); - const newPlaceholder = placeholder.set({ month: v }); - placeholder = newPlaceholder.subtract({ months: monthIndex }); - }} - /> -{/snippet} - -{#snippet YearSelect()} - -{/snippet} - -{#if captionLayout === "dropdown"} - {@render MonthSelect()} - {@render YearSelect()} -{:else if captionLayout === "dropdown-months"} - {@render MonthSelect()} - {#if placeholder} - {formatYear(placeholder)} - {/if} -{:else if captionLayout === "dropdown-years"} - {#if placeholder} - {formatMonth(placeholder)} - {/if} - {@render YearSelect()} -{:else} - {formatMonth(month)} {formatYear(month)} -{/if} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-cell.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-cell.svelte" deleted file mode 100644 index 7ceb5e1..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-cell.svelte" +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-day.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-day.svelte" deleted file mode 100644 index edc8c9d..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-day.svelte" +++ /dev/null @@ -1,33 +0,0 @@ - - -span]:text-xs [&>span]:opacity-70", - className - )} - {...restProps} -/> diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-grid-body.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-grid-body.svelte" deleted file mode 100644 index 8cd86de..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-grid-body.svelte" +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-grid-head.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-grid-head.svelte" deleted file mode 100644 index 333edc4..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-grid-head.svelte" +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-grid-row.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-grid-row.svelte" deleted file mode 100644 index 9032236..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-grid-row.svelte" +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-grid.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-grid.svelte" deleted file mode 100644 index 5fbb18f..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-grid.svelte" +++ /dev/null @@ -1,16 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-head-cell.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-head-cell.svelte" deleted file mode 100644 index 131807e..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-head-cell.svelte" +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-header.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-header.svelte" deleted file mode 100644 index c39e955..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-header.svelte" +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-heading.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-heading.svelte" deleted file mode 100644 index a9b9810..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-heading.svelte" +++ /dev/null @@ -1,16 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-month-select.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-month-select.svelte" deleted file mode 100644 index ed75b1d..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-month-select.svelte" +++ /dev/null @@ -1,48 +0,0 @@ - - - - - {#snippet child({ props, monthItems, selectedMonthItem })} - - - {/snippet} - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-month.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-month.svelte" deleted file mode 100644 index 7bdafe7..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-month.svelte" +++ /dev/null @@ -1,15 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-months.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-months.svelte" deleted file mode 100644 index f717a9d..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-months.svelte" +++ /dev/null @@ -1,19 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-nav.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-nav.svelte" deleted file mode 100644 index 27f33d7..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-nav.svelte" +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-next-button.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-next-button.svelte" deleted file mode 100644 index 82dd739..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-next-button.svelte" +++ /dev/null @@ -1,36 +0,0 @@ - - -{#snippet Fallback()} - -{/snippet} - - - {#if children} - {@render children?.()} - {:else} - {@render Fallback()} - {/if} - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-prev-button.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-prev-button.svelte" deleted file mode 100644 index 383312e..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-prev-button.svelte" +++ /dev/null @@ -1,36 +0,0 @@ - - -{#snippet Fallback()} - -{/snippet} - - - {#if children} - {@render children?.()} - {:else} - {@render Fallback()} - {/if} - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-year-select.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-year-select.svelte" deleted file mode 100644 index 898c2a4..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar-year-select.svelte" +++ /dev/null @@ -1,47 +0,0 @@ - - - - - {#snippet child({ props, yearItems, selectedYearItem })} - - - {/snippet} - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar.svelte" deleted file mode 100644 index 74abd6a..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/calendar.svelte" +++ /dev/null @@ -1,115 +0,0 @@ - - - - - {#snippet children({ months, weekdays })} - - - - - - {#each months as month, monthIndex (month)} - - - - - - - - {#each weekdays as weekday (weekday)} - - {weekday.slice(0, 2)} - - {/each} - - - - {#each month.weeks as weekDates (weekDates)} - - {#each weekDates as date (date)} - - {#if day} - {@render day({ - day: date, - outsideMonth: !isEqualMonth(date, month.value), - })} - {:else} - - {/if} - - {/each} - - {/each} - - - - {/each} - - {/snippet} - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/index.ts" deleted file mode 100644 index f3a16d2..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/calendar/index.ts" +++ /dev/null @@ -1,40 +0,0 @@ -import Root from "./calendar.svelte"; -import Cell from "./calendar-cell.svelte"; -import Day from "./calendar-day.svelte"; -import Grid from "./calendar-grid.svelte"; -import Header from "./calendar-header.svelte"; -import Months from "./calendar-months.svelte"; -import GridRow from "./calendar-grid-row.svelte"; -import Heading from "./calendar-heading.svelte"; -import GridBody from "./calendar-grid-body.svelte"; -import GridHead from "./calendar-grid-head.svelte"; -import HeadCell from "./calendar-head-cell.svelte"; -import NextButton from "./calendar-next-button.svelte"; -import PrevButton from "./calendar-prev-button.svelte"; -import MonthSelect from "./calendar-month-select.svelte"; -import YearSelect from "./calendar-year-select.svelte"; -import Month from "./calendar-month.svelte"; -import Nav from "./calendar-nav.svelte"; -import Caption from "./calendar-caption.svelte"; - -export { - Day, - Cell, - Grid, - Header, - Months, - GridRow, - Heading, - GridBody, - GridHead, - HeadCell, - NextButton, - PrevButton, - Nav, - Month, - YearSelect, - MonthSelect, - Caption, - // - Root as Calendar, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card-action.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card-action.svelte" deleted file mode 100644 index 7c48844..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card-action.svelte" +++ /dev/null @@ -1,23 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card-content.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card-content.svelte" deleted file mode 100644 index 4f60ee3..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card-content.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card-description.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card-description.svelte" deleted file mode 100644 index 8366534..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card-description.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - -

    - {@render children?.()} -

    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card-footer.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card-footer.svelte" deleted file mode 100644 index 17aa09a..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card-footer.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card-header.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card-header.svelte" deleted file mode 100644 index 4ec42c5..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card-header.svelte" +++ /dev/null @@ -1,23 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card-title.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card-title.svelte" deleted file mode 100644 index b2a4368..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card-title.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card.svelte" deleted file mode 100644 index 86226bb..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/card.svelte" +++ /dev/null @@ -1,22 +0,0 @@ - - -
    img:first-child]:pt-0 data-[size=sm]:gap-2 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-none *:[img:last-child]:rounded-none group/card flex flex-col", className)} - {...restProps} -> - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/index.ts" deleted file mode 100644 index 4d3fce4..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/card/index.ts" +++ /dev/null @@ -1,25 +0,0 @@ -import Root from "./card.svelte"; -import Content from "./card-content.svelte"; -import Description from "./card-description.svelte"; -import Footer from "./card-footer.svelte"; -import Header from "./card-header.svelte"; -import Title from "./card-title.svelte"; -import Action from "./card-action.svelte"; - -export { - Root, - Content, - Description, - Footer, - Header, - Title, - Action, - // - Root as Card, - Content as CardContent, - Description as CardDescription, - Footer as CardFooter, - Header as CardHeader, - Title as CardTitle, - Action as CardAction, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/carousel-content.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/carousel-content.svelte" deleted file mode 100644 index 84c71f8..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/carousel-content.svelte" +++ /dev/null @@ -1,43 +0,0 @@ - - -
    -
    - {@render children?.()} -
    -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/carousel-item.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/carousel-item.svelte" deleted file mode 100644 index ebf1649..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/carousel-item.svelte" +++ /dev/null @@ -1,30 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/carousel-next.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/carousel-next.svelte" deleted file mode 100644 index 7a3fdb3..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/carousel-next.svelte" +++ /dev/null @@ -1,39 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/carousel-previous.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/carousel-previous.svelte" deleted file mode 100644 index 29cd858..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/carousel-previous.svelte" +++ /dev/null @@ -1,39 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/carousel.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/carousel.svelte" deleted file mode 100644 index b3933b8..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/carousel.svelte" +++ /dev/null @@ -1,94 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/context.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/context.ts" deleted file mode 100644 index a5fd74f..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/context.ts" +++ /dev/null @@ -1,58 +0,0 @@ -import type { WithElementRef } from "$lib/utils.js"; -import type { - EmblaCarouselSvelteType, - default as emblaCarouselSvelte, -} from "embla-carousel-svelte"; -import { getContext, hasContext, setContext } from "svelte"; -import type { HTMLAttributes } from "svelte/elements"; - -export type CarouselAPI = - NonNullable["on:emblaInit"]> extends ( - evt: CustomEvent - ) => void - ? CarouselAPI - : never; - -type EmblaCarouselConfig = NonNullable[1]>; - -export type CarouselOptions = EmblaCarouselConfig["options"]; -export type CarouselPlugins = EmblaCarouselConfig["plugins"]; - -//// - -export type CarouselProps = { - opts?: CarouselOptions; - plugins?: CarouselPlugins; - setApi?: (api: CarouselAPI | undefined) => void; - orientation?: "horizontal" | "vertical"; -} & WithElementRef>; - -const EMBLA_CAROUSEL_CONTEXT = Symbol("EMBLA_CAROUSEL_CONTEXT"); - -export type EmblaContext = { - api: CarouselAPI | undefined; - orientation: "horizontal" | "vertical"; - scrollNext: () => void; - scrollPrev: () => void; - canScrollNext: boolean; - canScrollPrev: boolean; - handleKeyDown: (e: KeyboardEvent) => void; - options: CarouselOptions; - plugins: CarouselPlugins; - onInit: (e: CustomEvent) => void; - scrollTo: (index: number, jump?: boolean) => void; - scrollSnaps: number[]; - selectedIndex: number; -}; - -export function setEmblaContext(config: EmblaContext): EmblaContext { - setContext(EMBLA_CAROUSEL_CONTEXT, config); - return config; -} - -export function getEmblaContext(name = "This component") { - if (!hasContext(EMBLA_CAROUSEL_CONTEXT)) { - throw new Error(`${name} must be used within a component`); - } - return getContext>(EMBLA_CAROUSEL_CONTEXT); -} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/index.ts" deleted file mode 100644 index 957fc74..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/carousel/index.ts" +++ /dev/null @@ -1,19 +0,0 @@ -import Root from "./carousel.svelte"; -import Content from "./carousel-content.svelte"; -import Item from "./carousel-item.svelte"; -import Previous from "./carousel-previous.svelte"; -import Next from "./carousel-next.svelte"; - -export { - Root, - Content, - Item, - Previous, - Next, - // - Root as Carousel, - Content as CarouselContent, - Item as CarouselItem, - Previous as CarouselPrevious, - Next as CarouselNext, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/chart/chart-container.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/chart/chart-container.svelte" deleted file mode 100644 index 1eb8e39..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/chart/chart-container.svelte" +++ /dev/null @@ -1,80 +0,0 @@ - - -
    - - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/chart/chart-style.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/chart/chart-style.svelte" deleted file mode 100644 index ea1b3b2..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/chart/chart-style.svelte" +++ /dev/null @@ -1,37 +0,0 @@ - - -{#if themeContents} - {#key id} - - {themeContents} - - {/key} -{/if} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/chart/chart-tooltip.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/chart/chart-tooltip.svelte" deleted file mode 100644 index e0da9ca..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/chart/chart-tooltip.svelte" +++ /dev/null @@ -1,184 +0,0 @@ - - -{#snippet TooltipLabel()} - {#if formattedLabel} -
    - {#if typeof formattedLabel === "function"} - {@render formattedLabel()} - {:else} - {formattedLabel} - {/if} -
    - {/if} -{/snippet} - - -
    - {#if !nestLabel} - {@render TooltipLabel()} - {/if} -
    - {#each visibleSeries as item, i (item.key + i)} - {@const key = `${nameKey || item.key || item.label || "value"}`} - {@const itemConfig = getPayloadConfigFromPayload( - chart.config, - item, - key, - chartCtx.tooltip.data - )} - {@const indicatorColor = color || item.config?.color || item.color} -
    svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:size-2.5", - indicator === "dot" && "items-center" - )} - > - {#if formatter && item.value !== undefined && item.label} - {@render formatter({ - value: item.value, - name: item.label, - item, - index: i, - payload: visibleSeries, - })} - {:else} - {#if itemConfig?.icon} - - {:else if !hideIndicator} -
    - {/if} -
    -
    - {#if nestLabel} - {@render TooltipLabel()} - {/if} - - {itemConfig?.label || item.label} - -
    - {#if item.value !== undefined} - - {item.value.toLocaleString()} - - {/if} -
    - {/if} -
    - {/each} -
    -
    -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/chart/chart-utils.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/chart/chart-utils.ts" deleted file mode 100644 index a289e35..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/chart/chart-utils.ts" +++ /dev/null @@ -1,68 +0,0 @@ -import type { Tooltip } from "layerchart"; -import { getContext, setContext, type Component, type Snippet } from "svelte"; - -export const THEMES = { light: "", dark: ".dark" } as const; - -export type ChartConfig = { - [k in string]: { - label?: string; - icon?: Component; - } & ( - | { color?: string; theme?: never } - | { color?: never; theme: Record } - ); -}; - -export type ExtractSnippetParams = T extends Snippet<[infer P]> ? P : never; - -export type TooltipPayload = Tooltip.TooltipSeries; - -// Helper to extract item config from a payload. -export function getPayloadConfigFromPayload( - config: ChartConfig, - payload: TooltipPayload, - key: string, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - data?: Record | null -) { - if (typeof payload !== "object" || payload === null) return undefined; - - const payloadConfig = - "config" in payload && typeof payload.config === "object" && payload.config !== null - ? payload.config - : undefined; - - let configLabelKey: string = key; - - if (payload.key === key) { - configLabelKey = payload.key; - } else if (payload.label === key) { - configLabelKey = payload.label; - } else if (key in payload && typeof payload[key as keyof typeof payload] === "string") { - configLabelKey = payload[key as keyof typeof payload] as string; - } else if ( - payloadConfig !== undefined && - key in payloadConfig && - typeof payloadConfig[key as keyof typeof payloadConfig] === "string" - ) { - configLabelKey = payloadConfig[key as keyof typeof payloadConfig] as string; - } else if (data != null && key in data && typeof data[key] === "string") { - configLabelKey = data[key] as string; - } - - return configLabelKey in config ? config[configLabelKey] : config[key as keyof typeof config]; -} - -type ChartContextValue = { - config: ChartConfig; -}; - -const chartContextKey = Symbol("chart-context"); - -export function setChartContext(value: ChartContextValue) { - return setContext(chartContextKey, value); -} - -export function useChart() { - return getContext(chartContextKey); -} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/chart/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/chart/index.ts" deleted file mode 100644 index f22375e..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/chart/index.ts" +++ /dev/null @@ -1,6 +0,0 @@ -import ChartContainer from "./chart-container.svelte"; -import ChartTooltip from "./chart-tooltip.svelte"; - -export { getPayloadConfigFromPayload, type ChartConfig } from "./chart-utils.js"; - -export { ChartContainer, ChartTooltip, ChartContainer as Container, ChartTooltip as Tooltip }; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/checkbox/checkbox.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/checkbox/checkbox.svelte" deleted file mode 100644 index 39af8e1..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/checkbox/checkbox.svelte" +++ /dev/null @@ -1,39 +0,0 @@ - - - - {#snippet children({ checked, indeterminate })} -
    - {#if checked} - - {:else if indeterminate} - - {/if} -
    - {/snippet} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/checkbox/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/checkbox/index.ts" deleted file mode 100644 index 6d92d94..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/checkbox/index.ts" +++ /dev/null @@ -1,6 +0,0 @@ -import Root from "./checkbox.svelte"; -export { - Root, - // - Root as Checkbox, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/collapsible/collapsible-content.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/collapsible/collapsible-content.svelte" deleted file mode 100644 index bdabb55..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/collapsible/collapsible-content.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/collapsible/collapsible-trigger.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/collapsible/collapsible-trigger.svelte" deleted file mode 100644 index ece7ad6..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/collapsible/collapsible-trigger.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/collapsible/collapsible.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/collapsible/collapsible.svelte" deleted file mode 100644 index 39cdd4e..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/collapsible/collapsible.svelte" +++ /dev/null @@ -1,11 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/collapsible/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/collapsible/index.ts" deleted file mode 100644 index 169b479..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/collapsible/index.ts" +++ /dev/null @@ -1,13 +0,0 @@ -import Root from "./collapsible.svelte"; -import Trigger from "./collapsible-trigger.svelte"; -import Content from "./collapsible-content.svelte"; - -export { - Root, - Content, - Trigger, - // - Root as Collapsible, - Content as CollapsibleContent, - Trigger as CollapsibleTrigger, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-dialog.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-dialog.svelte" deleted file mode 100644 index 024c76c..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-dialog.svelte" +++ /dev/null @@ -1,42 +0,0 @@ - - - - - {title} - {description} - - - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-empty.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-empty.svelte" deleted file mode 100644 index 4cfd990..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-empty.svelte" +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-group.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-group.svelte" deleted file mode 100644 index 0712eee..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-group.svelte" +++ /dev/null @@ -1,32 +0,0 @@ - - - - {#if heading} - - {heading} - - {/if} - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-input.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-input.svelte" deleted file mode 100644 index 2881f6f..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-input.svelte" +++ /dev/null @@ -1,31 +0,0 @@ - - -
    - - - - - - -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-item.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-item.svelte" deleted file mode 100644 index 4246840..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-item.svelte" +++ /dev/null @@ -1,25 +0,0 @@ - - - - {@render children?.()} - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-link-item.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-link-item.svelte" deleted file mode 100644 index ada6d2c..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-link-item.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-list.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-list.svelte" deleted file mode 100644 index e97747f..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-list.svelte" +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-loading.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-loading.svelte" deleted file mode 100644 index 19dd298..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-loading.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-separator.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-separator.svelte" deleted file mode 100644 index 35c4c95..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-separator.svelte" +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-shortcut.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-shortcut.svelte" deleted file mode 100644 index 5322e6a..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command-shortcut.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - - - {@render children?.()} - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command.svelte" deleted file mode 100644 index 74a415b..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/command.svelte" +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/index.ts" deleted file mode 100644 index 5435fbe..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/command/index.ts" +++ /dev/null @@ -1,37 +0,0 @@ -import Root from "./command.svelte"; -import Loading from "./command-loading.svelte"; -import Dialog from "./command-dialog.svelte"; -import Empty from "./command-empty.svelte"; -import Group from "./command-group.svelte"; -import Item from "./command-item.svelte"; -import Input from "./command-input.svelte"; -import List from "./command-list.svelte"; -import Separator from "./command-separator.svelte"; -import Shortcut from "./command-shortcut.svelte"; -import LinkItem from "./command-link-item.svelte"; - -export { - Root, - Dialog, - Empty, - Group, - Item, - LinkItem, - Input, - List, - Separator, - Shortcut, - Loading, - // - Root as Command, - Dialog as CommandDialog, - Empty as CommandEmpty, - Group as CommandGroup, - Item as CommandItem, - LinkItem as CommandLinkItem, - Input as CommandInput, - List as CommandList, - Separator as CommandSeparator, - Shortcut as CommandShortcut, - Loading as CommandLoading, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-checkbox-item.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-checkbox-item.svelte" deleted file mode 100644 index da5bd30..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-checkbox-item.svelte" +++ /dev/null @@ -1,41 +0,0 @@ - - - - {#snippet children({ checked })} - - {#if checked} - - {/if} - - {@render childrenProp?.()} - {/snippet} - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-content.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-content.svelte" deleted file mode 100644 index fb34a60..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-content.svelte" +++ /dev/null @@ -1,28 +0,0 @@ - - - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-group-heading.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-group-heading.svelte" deleted file mode 100644 index 0c0f459..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-group-heading.svelte" +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-group.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-group.svelte" deleted file mode 100644 index c7c1e06..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-group.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-item.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-item.svelte" deleted file mode 100644 index d1601b6..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-item.svelte" +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-label.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-label.svelte" deleted file mode 100644 index 4b3b1fe..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-label.svelte" +++ /dev/null @@ -1,24 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-portal.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-portal.svelte" deleted file mode 100644 index 96b1e3e..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-portal.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-radio-group.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-radio-group.svelte" deleted file mode 100644 index 964cb55..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-radio-group.svelte" +++ /dev/null @@ -1,16 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-radio-item.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-radio-item.svelte" deleted file mode 100644 index 24b7380..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-radio-item.svelte" +++ /dev/null @@ -1,35 +0,0 @@ - - - - {#snippet children({ checked })} - - {#if checked} - - {/if} - - {@render childrenProp?.({ checked })} - {/snippet} - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-separator.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-separator.svelte" deleted file mode 100644 index e675367..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-separator.svelte" +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-shortcut.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-shortcut.svelte" deleted file mode 100644 index 3305abc..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-shortcut.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - - - {@render children?.()} - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-sub-content.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-sub-content.svelte" deleted file mode 100644 index fd85c70..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-sub-content.svelte" +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-sub-trigger.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-sub-trigger.svelte" deleted file mode 100644 index b1e9370..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-sub-trigger.svelte" +++ /dev/null @@ -1,29 +0,0 @@ - - - - {@render children?.()} - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-sub.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-sub.svelte" deleted file mode 100644 index a03827b..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-sub.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-trigger.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-trigger.svelte" deleted file mode 100644 index f6a1542..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu-trigger.svelte" +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu.svelte" deleted file mode 100644 index cfaefb3..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/context-menu.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/index.ts" deleted file mode 100644 index cbeaee1..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/context-menu/index.ts" +++ /dev/null @@ -1,52 +0,0 @@ -import Root from "./context-menu.svelte"; -import Sub from "./context-menu-sub.svelte"; -import Portal from "./context-menu-portal.svelte"; -import Trigger from "./context-menu-trigger.svelte"; -import Group from "./context-menu-group.svelte"; -import RadioGroup from "./context-menu-radio-group.svelte"; -import Item from "./context-menu-item.svelte"; -import GroupHeading from "./context-menu-group-heading.svelte"; -import Content from "./context-menu-content.svelte"; -import Shortcut from "./context-menu-shortcut.svelte"; -import RadioItem from "./context-menu-radio-item.svelte"; -import Separator from "./context-menu-separator.svelte"; -import SubContent from "./context-menu-sub-content.svelte"; -import SubTrigger from "./context-menu-sub-trigger.svelte"; -import CheckboxItem from "./context-menu-checkbox-item.svelte"; -import Label from "./context-menu-label.svelte"; - -export { - Root, - Sub, - Portal, - Item, - GroupHeading, - Label, - Group, - Trigger, - Content, - Shortcut, - Separator, - RadioItem, - SubContent, - SubTrigger, - RadioGroup, - CheckboxItem, - // - Root as ContextMenu, - Sub as ContextMenuSub, - Portal as ContextMenuPortal, - Item as ContextMenuItem, - GroupHeading as ContextMenuGroupHeading, - Group as ContextMenuGroup, - Content as ContextMenuContent, - Trigger as ContextMenuTrigger, - Shortcut as ContextMenuShortcut, - RadioItem as ContextMenuRadioItem, - Separator as ContextMenuSeparator, - RadioGroup as ContextMenuRadioGroup, - SubContent as ContextMenuSubContent, - SubTrigger as ContextMenuSubTrigger, - CheckboxItem as ContextMenuCheckboxItem, - Label as ContextMenuLabel, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/data-table/data-table.svelte.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/data-table/data-table.svelte.ts" deleted file mode 100644 index f3c30a7..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/data-table/data-table.svelte.ts" +++ /dev/null @@ -1,142 +0,0 @@ -import { - type RowData, - type TableOptions, - type TableOptionsResolved, - type TableState, - type Updater, - createTable, -} from "@tanstack/table-core"; - -/** - * Creates a reactive TanStack table object for Svelte. - * @param options Table options to create the table with. - * @returns A reactive table object. - * @example - * ```svelte - * - * - * - * - * {#each table.getHeaderGroups() as headerGroup} - * - * {#each headerGroup.headers as header} - * - * {/each} - * - * {/each} - * - * - *
    - * - *
    - * ``` - */ -export function createSvelteTable(options: TableOptions) { - const resolvedOptions: TableOptionsResolved = mergeObjects( - { - state: {}, - onStateChange() {}, - renderFallbackValue: null, - mergeOptions: ( - defaultOptions: TableOptions, - options: Partial> - ) => { - return mergeObjects(defaultOptions, options); - }, - }, - options - ); - - const table = createTable(resolvedOptions); - let state = $state(table.initialState); - - function updateOptions() { - table.setOptions(() => { - return mergeObjects(resolvedOptions, options, { - state: mergeObjects(state, options.state || {}), - - onStateChange: (updater: Updater) => { - if (updater instanceof Function) state = updater(state); - else state = mergeObjects(state, updater); - - options.onStateChange?.(updater); - }, - }); - }); - } - - updateOptions(); - - $effect.pre(() => { - updateOptions(); - }); - - return table; -} - -type MaybeThunk = T | (() => T | null | undefined); -type Intersection = (T extends [infer H, ...infer R] - ? H & Intersection - : unknown) & {}; - -/** - * Lazily merges several objects (or thunks) while preserving - * getter semantics from every source. - * - * Proxy-based to avoid known WebKit recursion issue. - */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -export function mergeObjects[]>( - ...sources: Sources -): Intersection<{ [K in keyof Sources]: Sources[K] }> { - const resolve = (src: MaybeThunk): T | undefined => - typeof src === "function" ? (src() ?? undefined) : src; - - const findSourceWithKey = (key: PropertyKey) => { - for (let i = sources.length - 1; i >= 0; i--) { - const obj = resolve(sources[i]); - if (obj && key in obj) return obj; - } - return undefined; - }; - - return new Proxy(Object.create(null), { - get(_, key) { - const src = findSourceWithKey(key); - - return src?.[key as never]; - }, - - has(_, key) { - return !!findSourceWithKey(key); - }, - - ownKeys(): (string | symbol)[] { - // eslint-disable-next-line svelte/prefer-svelte-reactivity - const all = new Set(); - for (const s of sources) { - const obj = resolve(s); - if (obj) { - for (const k of Reflect.ownKeys(obj) as (string | symbol)[]) { - all.add(k); - } - } - } - return [...all]; - }, - - getOwnPropertyDescriptor(_, key) { - const src = findSourceWithKey(key); - if (!src) return undefined; - return { - configurable: true, - enumerable: true, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - value: (src as any)[key], - writable: true, - }; - }, - }) as Intersection<{ [K in keyof Sources]: Sources[K] }>; -} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/data-table/flex-render.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/data-table/flex-render.svelte" deleted file mode 100644 index ac82a58..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/data-table/flex-render.svelte" +++ /dev/null @@ -1,40 +0,0 @@ - - -{#if typeof content === "string"} - {content} -{:else if content instanceof Function} - - - {@const result = content(context as any)} - {#if result instanceof RenderComponentConfig} - {@const { component: Component, props } = result} - - {:else if result instanceof RenderSnippetConfig} - {@const { snippet, params } = result} - {@render snippet({ ...params, attach })} - {:else} - {result} - {/if} -{/if} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/data-table/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/data-table/index.ts" deleted file mode 100644 index 5f4e77e..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/data-table/index.ts" +++ /dev/null @@ -1,3 +0,0 @@ -export { default as FlexRender } from "./flex-render.svelte"; -export { renderComponent, renderSnippet } from "./render-helpers.js"; -export { createSvelteTable } from "./data-table.svelte.js"; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/data-table/render-helpers.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/data-table/render-helpers.ts" deleted file mode 100644 index fa036d6..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/data-table/render-helpers.ts" +++ /dev/null @@ -1,111 +0,0 @@ -import type { Component, ComponentProps, Snippet } from "svelte"; - -/** - * A helper class to make it easy to identify Svelte components in - * `columnDef.cell` and `columnDef.header` properties. - * - * > NOTE: This class should only be used internally by the adapter. If you're - * reading this and you don't know what this is for, you probably don't need it. - * - * @example - * ```svelte - * {@const result = content(context as any)} - * {#if result instanceof RenderComponentConfig} - * {@const { component: Component, props } = result} - * - * {/if} - * ``` - */ -export class RenderComponentConfig { - component: TComponent; - props: ComponentProps | Record; - constructor( - component: TComponent, - props: ComponentProps | Record = {} - ) { - this.component = component; - this.props = props; - } -} - -/** - * A helper class to make it easy to identify Svelte Snippets in `columnDef.cell` and `columnDef.header` properties. - * - * > NOTE: This class should only be used internally by the adapter. If you're - * reading this and you don't know what this is for, you probably don't need it. - * - * @example - * ```svelte - * {@const result = content(context as any)} - * {#if result instanceof RenderSnippetConfig} - * {@const { snippet, params } = result} - * {@render snippet(params)} - * {/if} - * ``` - */ -export class RenderSnippetConfig { - snippet: Snippet<[TProps]>; - params: TProps; - constructor(snippet: Snippet<[TProps]>, params: TProps) { - this.snippet = snippet; - this.params = params; - } -} - -/** - * A helper function to help create cells from Svelte components through ColumnDef's `cell` and `header` properties. - * - * This is only to be used with Svelte Components - use `renderSnippet` for Svelte Snippets. - * - * @param component A Svelte component - * @param props The props to pass to `component` - * @returns A `RenderComponentConfig` object that helps svelte-table know how to render the header/cell component. - * @example - * ```ts - * // +page.svelte - * const defaultColumns = [ - * columnHelper.accessor('name', { - * header: header => renderComponent(SortHeader, { label: 'Name', header }), - * }), - * columnHelper.accessor('state', { - * header: header => renderComponent(SortHeader, { label: 'State', header }), - * }), - * ] - * ``` - * @see {@link https://tanstack.com/table/latest/docs/guide/column-defs} - */ -export function renderComponent< - // eslint-disable-next-line @typescript-eslint/no-explicit-any - T extends Component, - Props extends ComponentProps, ->(component: T, props: Props = {} as Props) { - return new RenderComponentConfig(component, props); -} - -/** - * A helper function to help create cells from Svelte Snippets through ColumnDef's `cell` and `header` properties. - * - * The snippet must only take one parameter. - * - * This is only to be used with Snippets - use `renderComponent` for Svelte Components. - * - * @param snippet - * @param params - * @returns - A `RenderSnippetConfig` object that helps svelte-table know how to render the header/cell snippet. - * @example - * ```ts - * // +page.svelte - * const defaultColumns = [ - * columnHelper.accessor('name', { - * cell: cell => renderSnippet(nameSnippet, { name: cell.row.name }), - * }), - * columnHelper.accessor('state', { - * cell: cell => renderSnippet(stateSnippet, { state: cell.row.state }), - * }), - * ] - * ``` - * @see {@link https://tanstack.com/table/latest/docs/guide/column-defs} - */ -export function renderSnippet(snippet: Snippet<[TProps]>, params: TProps = {} as TProps) { - return new RenderSnippetConfig(snippet, params); -} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-close.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-close.svelte" deleted file mode 100644 index de68f2f..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-close.svelte" +++ /dev/null @@ -1,11 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-content.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-content.svelte" deleted file mode 100644 index 6c963e4..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-content.svelte" +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - {@render children?.()} - {#if showCloseButton} - - {#snippet child({ props })} - - {/snippet} - - {/if} - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-description.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-description.svelte" deleted file mode 100644 index bd220ac..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-description.svelte" +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-footer.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-footer.svelte" deleted file mode 100644 index 2f54b2c..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-footer.svelte" +++ /dev/null @@ -1,32 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-header.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-header.svelte" deleted file mode 100644 index 8164f0f..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-header.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-overlay.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-overlay.svelte" deleted file mode 100644 index 19f69f0..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-overlay.svelte" +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-portal.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-portal.svelte" deleted file mode 100644 index ccfa79c..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-portal.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-title.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-title.svelte" deleted file mode 100644 index 493f497..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-title.svelte" +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-trigger.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-trigger.svelte" deleted file mode 100644 index 589ee0c..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog-trigger.svelte" +++ /dev/null @@ -1,11 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog.svelte" deleted file mode 100644 index 211672c..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/dialog.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/index.ts" deleted file mode 100644 index 076cef5..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dialog/index.ts" +++ /dev/null @@ -1,34 +0,0 @@ -import Root from "./dialog.svelte"; -import Portal from "./dialog-portal.svelte"; -import Title from "./dialog-title.svelte"; -import Footer from "./dialog-footer.svelte"; -import Header from "./dialog-header.svelte"; -import Overlay from "./dialog-overlay.svelte"; -import Content from "./dialog-content.svelte"; -import Description from "./dialog-description.svelte"; -import Trigger from "./dialog-trigger.svelte"; -import Close from "./dialog-close.svelte"; - -export { - Root, - Title, - Portal, - Footer, - Header, - Trigger, - Overlay, - Content, - Description, - Close, - // - Root as Dialog, - Title as DialogTitle, - Portal as DialogPortal, - Footer as DialogFooter, - Header as DialogHeader, - Trigger as DialogTrigger, - Overlay as DialogOverlay, - Content as DialogContent, - Description as DialogDescription, - Close as DialogClose, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-close.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-close.svelte" deleted file mode 100644 index 95c2479..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-close.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-content.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-content.svelte" deleted file mode 100644 index c389dd6..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-content.svelte" +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - {@render children?.()} - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-description.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-description.svelte" deleted file mode 100644 index ded26d2..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-description.svelte" +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-footer.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-footer.svelte" deleted file mode 100644 index 56a1fc6..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-footer.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-header.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-header.svelte" deleted file mode 100644 index 861f956..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-header.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-nested.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-nested.svelte" deleted file mode 100644 index 834af94..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-nested.svelte" +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-overlay.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-overlay.svelte" deleted file mode 100644 index 84df1e8..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-overlay.svelte" +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-portal.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-portal.svelte" deleted file mode 100644 index 5a0dd74..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-portal.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-title.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-title.svelte" deleted file mode 100644 index ba99287..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-title.svelte" +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-trigger.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-trigger.svelte" deleted file mode 100644 index f1877d8..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer-trigger.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer.svelte" deleted file mode 100644 index 0cb57ff..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/drawer.svelte" +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/index.ts" deleted file mode 100644 index 1656cac..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/drawer/index.ts" +++ /dev/null @@ -1,38 +0,0 @@ -import Root from "./drawer.svelte"; -import Content from "./drawer-content.svelte"; -import Description from "./drawer-description.svelte"; -import Overlay from "./drawer-overlay.svelte"; -import Footer from "./drawer-footer.svelte"; -import Header from "./drawer-header.svelte"; -import Title from "./drawer-title.svelte"; -import NestedRoot from "./drawer-nested.svelte"; -import Close from "./drawer-close.svelte"; -import Trigger from "./drawer-trigger.svelte"; -import Portal from "./drawer-portal.svelte"; - -export { - Root, - NestedRoot, - Content, - Description, - Overlay, - Footer, - Header, - Title, - Trigger, - Portal, - Close, - - // - Root as Drawer, - NestedRoot as DrawerNestedRoot, - Content as DrawerContent, - Description as DrawerDescription, - Overlay as DrawerOverlay, - Footer as DrawerFooter, - Header as DrawerHeader, - Title as DrawerTitle, - Trigger as DrawerTrigger, - Portal as DrawerPortal, - Close as DrawerClose, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-group.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-group.svelte" deleted file mode 100644 index e0e1971..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-group.svelte" +++ /dev/null @@ -1,16 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte" deleted file mode 100644 index e12c9a4..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte" +++ /dev/null @@ -1,44 +0,0 @@ - - - - {#snippet children({ checked, indeterminate })} - - {#if indeterminate} - - {:else if checked} - - {/if} - - {@render childrenProp?.()} - {/snippet} - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte" deleted file mode 100644 index 1442e33..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte" +++ /dev/null @@ -1,31 +0,0 @@ - - - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte" deleted file mode 100644 index 433540f..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte" +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-group.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-group.svelte" deleted file mode 100644 index aca1f7b..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-group.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte" deleted file mode 100644 index 20713df..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte" +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-label.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-label.svelte" deleted file mode 100644 index 05a9e64..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-label.svelte" +++ /dev/null @@ -1,24 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-portal.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-portal.svelte" deleted file mode 100644 index 274cfef..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-portal.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte" deleted file mode 100644 index 189aef4..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte" +++ /dev/null @@ -1,16 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte" deleted file mode 100644 index f7e4dbf..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte" +++ /dev/null @@ -1,34 +0,0 @@ - - - - {#snippet children({ checked })} - - {#if checked} - - {/if} - - {@render childrenProp?.({ checked })} - {/snippet} - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelte" deleted file mode 100644 index 45f82af..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelte" +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte" deleted file mode 100644 index ed7cc85..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - - - {@render children?.()} - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte" deleted file mode 100644 index 8de5cf1..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte" +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte" deleted file mode 100644 index 5e16f67..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte" +++ /dev/null @@ -1,29 +0,0 @@ - - - - {@render children?.()} - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-sub.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-sub.svelte" deleted file mode 100644 index f044581..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-sub.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-trigger.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-trigger.svelte" deleted file mode 100644 index cb05344..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu-trigger.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu.svelte" deleted file mode 100644 index cb4bc62..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/dropdown-menu.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/index.ts" deleted file mode 100644 index 7850c6a..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/dropdown-menu/index.ts" +++ /dev/null @@ -1,54 +0,0 @@ -import Root from "./dropdown-menu.svelte"; -import Sub from "./dropdown-menu-sub.svelte"; -import CheckboxGroup from "./dropdown-menu-checkbox-group.svelte"; -import CheckboxItem from "./dropdown-menu-checkbox-item.svelte"; -import Content from "./dropdown-menu-content.svelte"; -import Group from "./dropdown-menu-group.svelte"; -import Item from "./dropdown-menu-item.svelte"; -import Label from "./dropdown-menu-label.svelte"; -import RadioGroup from "./dropdown-menu-radio-group.svelte"; -import RadioItem from "./dropdown-menu-radio-item.svelte"; -import Separator from "./dropdown-menu-separator.svelte"; -import Shortcut from "./dropdown-menu-shortcut.svelte"; -import Trigger from "./dropdown-menu-trigger.svelte"; -import SubContent from "./dropdown-menu-sub-content.svelte"; -import SubTrigger from "./dropdown-menu-sub-trigger.svelte"; -import GroupHeading from "./dropdown-menu-group-heading.svelte"; -import Portal from "./dropdown-menu-portal.svelte"; - -export { - CheckboxGroup, - CheckboxItem, - Content, - Portal, - Root as DropdownMenu, - CheckboxGroup as DropdownMenuCheckboxGroup, - CheckboxItem as DropdownMenuCheckboxItem, - Content as DropdownMenuContent, - Portal as DropdownMenuPortal, - Group as DropdownMenuGroup, - Item as DropdownMenuItem, - Label as DropdownMenuLabel, - RadioGroup as DropdownMenuRadioGroup, - RadioItem as DropdownMenuRadioItem, - Separator as DropdownMenuSeparator, - Shortcut as DropdownMenuShortcut, - Sub as DropdownMenuSub, - SubContent as DropdownMenuSubContent, - SubTrigger as DropdownMenuSubTrigger, - Trigger as DropdownMenuTrigger, - GroupHeading as DropdownMenuGroupHeading, - Group, - GroupHeading, - Item, - Label, - RadioGroup, - RadioItem, - Root, - Separator, - Shortcut, - Sub, - SubContent, - SubTrigger, - Trigger, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/empty-content.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/empty-content.svelte" deleted file mode 100644 index cc17823..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/empty-content.svelte" +++ /dev/null @@ -1,23 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/empty-description.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/empty-description.svelte" deleted file mode 100644 index 9e8cd78..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/empty-description.svelte" +++ /dev/null @@ -1,23 +0,0 @@ - - -
    a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4", - className - )} - {...restProps} -> - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/empty-header.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/empty-header.svelte" deleted file mode 100644 index 7112f66..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/empty-header.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/empty-media.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/empty-media.svelte" deleted file mode 100644 index 24fe55d..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/empty-media.svelte" +++ /dev/null @@ -1,41 +0,0 @@ - - - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/empty-title.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/empty-title.svelte" deleted file mode 100644 index 346c2ec..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/empty-title.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/empty.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/empty.svelte" deleted file mode 100644 index e16c45c..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/empty.svelte" +++ /dev/null @@ -1,23 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/index.ts" deleted file mode 100644 index ae4c106..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/empty/index.ts" +++ /dev/null @@ -1,22 +0,0 @@ -import Root from "./empty.svelte"; -import Header from "./empty-header.svelte"; -import Media from "./empty-media.svelte"; -import Title from "./empty-title.svelte"; -import Description from "./empty-description.svelte"; -import Content from "./empty-content.svelte"; - -export { - Root, - Header, - Media, - Title, - Description, - Content, - // - Root as Empty, - Header as EmptyHeader, - Media as EmptyMedia, - Title as EmptyTitle, - Description as EmptyDescription, - Content as EmptyContent, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-content.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-content.svelte" deleted file mode 100644 index 1545c43..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-content.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-description.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-description.svelte" deleted file mode 100644 index f033c10..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-description.svelte" +++ /dev/null @@ -1,25 +0,0 @@ - - -

    a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", - className - )} - {...restProps} -> - {@render children?.()} -

    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-error.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-error.svelte" deleted file mode 100644 index 326cf59..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-error.svelte" +++ /dev/null @@ -1,58 +0,0 @@ - - -{#if hasContent} - -{/if} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-group.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-group.svelte" deleted file mode 100644 index 3795195..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-group.svelte" +++ /dev/null @@ -1,23 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-label.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-label.svelte" deleted file mode 100644 index 6d9ec73..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-label.svelte" +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-legend.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-legend.svelte" deleted file mode 100644 index e3d8deb..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-legend.svelte" +++ /dev/null @@ -1,24 +0,0 @@ - - - - {@render children?.()} - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-separator.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-separator.svelte" deleted file mode 100644 index a1ab858..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-separator.svelte" +++ /dev/null @@ -1,35 +0,0 @@ - - -
    - - {#if children} - - {@render children()} - - {/if} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-set.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-set.svelte" deleted file mode 100644 index 27ee330..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-set.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - -
    [data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col", className)} - {...restProps} -> - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-title.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-title.svelte" deleted file mode 100644 index f7e2f08..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field-title.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field.svelte" deleted file mode 100644 index 03d23c0..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/field.svelte" +++ /dev/null @@ -1,47 +0,0 @@ - - - - -
    - {@render children?.()} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/index.ts" deleted file mode 100644 index a644a95..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/field/index.ts" +++ /dev/null @@ -1,33 +0,0 @@ -import Field from "./field.svelte"; -import Set from "./field-set.svelte"; -import Legend from "./field-legend.svelte"; -import Group from "./field-group.svelte"; -import Content from "./field-content.svelte"; -import Label from "./field-label.svelte"; -import Title from "./field-title.svelte"; -import Description from "./field-description.svelte"; -import Separator from "./field-separator.svelte"; -import Error from "./field-error.svelte"; - -export { - Field, - Set, - Legend, - Group, - Content, - Label, - Title, - Description, - Separator, - Error, - // - Set as FieldSet, - Legend as FieldLegend, - Group as FieldGroup, - Content as FieldContent, - Label as FieldLabel, - Title as FieldTitle, - Description as FieldDescription, - Separator as FieldSeparator, - Error as FieldError, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/form/form-button.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/form/form-button.svelte" deleted file mode 100644 index 48d3936..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/form/form-button.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/input-group/input-group-input.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/input-group/input-group-input.svelte" deleted file mode 100644 index 316c0cb..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/input-group/input-group-input.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/input-group/input-group-text.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/input-group/input-group-text.svelte" deleted file mode 100644 index d6ab315..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/input-group/input-group-text.svelte" +++ /dev/null @@ -1,19 +0,0 @@ - - - - {@render children?.()} - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/input-group/input-group-textarea.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/input-group/input-group-textarea.svelte" deleted file mode 100644 index 9fbabe6..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/input-group/input-group-textarea.svelte" +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/toggle-group/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/toggle-group/index.ts" deleted file mode 100644 index 12b14b9..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/toggle-group/index.ts" +++ /dev/null @@ -1,10 +0,0 @@ -import Root from "./toggle-group.svelte"; -import Item from "./toggle-group-item.svelte"; - -export { - Root, - Item, - // - Root as ToggleGroup, - Item as ToggleGroupItem, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/toggle-group/toggle-group-item.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/toggle-group/toggle-group-item.svelte" deleted file mode 100644 index 904bf70..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/toggle-group/toggle-group-item.svelte" +++ /dev/null @@ -1,35 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/toggle-group/toggle-group.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/toggle-group/toggle-group.svelte" deleted file mode 100644 index 3d67cb8..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/toggle-group/toggle-group.svelte" +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/toggle/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/toggle/index.ts" deleted file mode 100644 index 8cb2936..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/toggle/index.ts" +++ /dev/null @@ -1,13 +0,0 @@ -import Root from "./toggle.svelte"; -export { - toggleVariants, - type ToggleSize, - type ToggleVariant, - type ToggleVariants, -} from "./toggle.svelte"; - -export { - Root, - // - Root as Toggle, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/toggle/toggle.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/toggle/toggle.svelte" deleted file mode 100644 index eca68b1..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/toggle/toggle.svelte" +++ /dev/null @@ -1,51 +0,0 @@ - - - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/tooltip/index.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/tooltip/index.ts" deleted file mode 100644 index 1718604..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/tooltip/index.ts" +++ /dev/null @@ -1,19 +0,0 @@ -import Root from "./tooltip.svelte"; -import Trigger from "./tooltip-trigger.svelte"; -import Content from "./tooltip-content.svelte"; -import Provider from "./tooltip-provider.svelte"; -import Portal from "./tooltip-portal.svelte"; - -export { - Root, - Trigger, - Content, - Provider, - Portal, - // - Root as Tooltip, - Content as TooltipContent, - Trigger as TooltipTrigger, - Provider as TooltipProvider, - Portal as TooltipPortal, -}; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/tooltip/tooltip-content.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/tooltip/tooltip-content.svelte" deleted file mode 100644 index 4f27fa3..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/tooltip/tooltip-content.svelte" +++ /dev/null @@ -1,52 +0,0 @@ - - - - - {@render children?.()} - - {#snippet child({ props })} -
    - {/snippet} -
    -
    -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/tooltip/tooltip-portal.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/tooltip/tooltip-portal.svelte" deleted file mode 100644 index d234f7d..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/tooltip/tooltip-portal.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/tooltip/tooltip-provider.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/tooltip/tooltip-provider.svelte" deleted file mode 100644 index 6dba9a6..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/tooltip/tooltip-provider.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/tooltip/tooltip-trigger.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/tooltip/tooltip-trigger.svelte" deleted file mode 100644 index 1acdaa4..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/tooltip/tooltip-trigger.svelte" +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/tooltip/tooltip.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/tooltip/tooltip.svelte" deleted file mode 100644 index 44bee9f..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/components/ui/tooltip/tooltip.svelte" +++ /dev/null @@ -1,10 +0,0 @@ - - - - - diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/hooks/is-mobile.svelte.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/hooks/is-mobile.svelte.ts" deleted file mode 100644 index 4829c00..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/hooks/is-mobile.svelte.ts" +++ /dev/null @@ -1,9 +0,0 @@ -import { MediaQuery } from "svelte/reactivity"; - -const DEFAULT_MOBILE_BREAKPOINT = 768; - -export class IsMobile extends MediaQuery { - constructor(breakpoint: number = DEFAULT_MOBILE_BREAKPOINT) { - super(`max-width: ${breakpoint - 1}px`); - } -} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/utils.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/utils.ts" deleted file mode 100644 index b7d9d08..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/lib/utils.ts" +++ /dev/null @@ -1,13 +0,0 @@ -import { clsx, type ClassValue } from "clsx"; -import { twMerge } from "tailwind-merge"; -import {type Message} from "@bufbuild/protobuf" -export function cn(...inputs: ClassValue[]) { - return twMerge(clsx(inputs)); -} - -// eslint-disable-next-line @typescript-eslint/no-explicit-any -export type WithoutChild = T extends { child?: any } ? Omit : T; -// eslint-disable-next-line @typescript-eslint/no-explicit-any -export type WithoutChildren = T extends { children?: any } ? Omit : T; -export type WithoutChildrenOrChild = WithoutChildren>; -export type WithElementRef = T & { ref?: U | null }; diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/routes/+layout.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/routes/+layout.svelte" index 95117f0..2193962 100644 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/routes/+layout.svelte" +++ "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/routes/+layout.svelte" @@ -1,25 +1,23 @@ - {@render children()} - -
    - {#each locales as locale} - {locale} - {/each} -
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/routes/+page.svelte" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/routes/+page.svelte" index ac76563..3c35aa9 100644 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/routes/+page.svelte" +++ "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/routes/+page.svelte" @@ -1,11 +1,11 @@ - -
    +
    + Todos +

    Todos

    - +
    diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/routes/+page.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/routes/+page.ts" deleted file mode 100644 index 0b79dc8..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/routes/+page.ts" +++ /dev/null @@ -1,7 +0,0 @@ -import type { PageLoad } from './$types' -import { getRouter } from "$lib/getconnectrouter" -export const load: PageLoad = async () => { - const router = getRouter(); - const todos = await router.todos.listTodos({}) - return {todos: todos.todos}; -} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/routes/layout.css" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/routes/layout.css" deleted file mode 100644 index 00bce42..0000000 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/src/routes/layout.css" +++ /dev/null @@ -1,130 +0,0 @@ -@import 'tailwindcss'; -@import "tw-animate-css"; -@import "shadcn-svelte/tailwind.css"; -@import "@fontsource-variable/roboto"; - -@custom-variant dark (&:is(.dark *)); -@plugin '@tailwindcss/typography'; - -:root { - --background: oklch(1 0 0); - --foreground: oklch(0.148 0.004 228.8); - --card: oklch(1 0 0); - --card-foreground: oklch(0.148 0.004 228.8); - --popover: oklch(1 0 0); - --popover-foreground: oklch(0.148 0.004 228.8); - --primary: oklch(0.511 0.096 186.391); - --primary-foreground: oklch(0.984 0.014 180.72); - --secondary: oklch(0.967 0.001 286.375); - --secondary-foreground: oklch(0.21 0.006 285.885); - --muted: oklch(0.963 0.002 197.1); - --muted-foreground: oklch(0.56 0.021 213.5); - --accent: oklch(0.963 0.002 197.1); - --accent-foreground: oklch(0.218 0.008 223.9); - --destructive: oklch(0.577 0.245 27.325); - --border: oklch(0.925 0.005 214.3); - --input: oklch(0.925 0.005 214.3); - --ring: oklch(0.723 0.014 214.4); - --chart-1: oklch(0.87 0 0); - --chart-2: oklch(0.556 0 0); - --chart-3: oklch(0.439 0 0); - --chart-4: oklch(0.371 0 0); - --chart-5: oklch(0.269 0 0); - --radius: 0.625rem; - --sidebar: oklch(0.987 0.002 197.1); - --sidebar-foreground: oklch(0.148 0.004 228.8); - --sidebar-primary: oklch(0.6 0.118 184.704); - --sidebar-primary-foreground: oklch(0.984 0.014 180.72); - --sidebar-accent: oklch(0.963 0.002 197.1); - --sidebar-accent-foreground: oklch(0.218 0.008 223.9); - --sidebar-border: oklch(0.925 0.005 214.3); - --sidebar-ring: oklch(0.723 0.014 214.4); -} - -.dark { - --background: oklch(0.148 0.004 228.8); - --foreground: oklch(0.987 0.002 197.1); - --card: oklch(0.218 0.008 223.9); - --card-foreground: oklch(0.987 0.002 197.1); - --popover: oklch(0.218 0.008 223.9); - --popover-foreground: oklch(0.987 0.002 197.1); - --primary: oklch(0.437 0.078 188.216); - --primary-foreground: oklch(0.984 0.014 180.72); - --secondary: oklch(0.274 0.006 286.033); - --secondary-foreground: oklch(0.985 0 0); - --muted: oklch(0.275 0.011 216.9); - --muted-foreground: oklch(0.723 0.014 214.4); - --accent: oklch(0.275 0.011 216.9); - --accent-foreground: oklch(0.987 0.002 197.1); - --destructive: oklch(0.704 0.191 22.216); - --border: oklch(1 0 0 / 10%); - --input: oklch(1 0 0 / 15%); - --ring: oklch(0.56 0.021 213.5); - --chart-1: oklch(0.87 0 0); - --chart-2: oklch(0.556 0 0); - --chart-3: oklch(0.439 0 0); - --chart-4: oklch(0.371 0 0); - --chart-5: oklch(0.269 0 0); - --sidebar: oklch(0.218 0.008 223.9); - --sidebar-foreground: oklch(0.987 0.002 197.1); - --sidebar-primary: oklch(0.704 0.14 182.503); - --sidebar-primary-foreground: oklch(0.277 0.046 192.524); - --sidebar-accent: oklch(0.275 0.011 216.9); - --sidebar-accent-foreground: oklch(0.987 0.002 197.1); - --sidebar-border: oklch(1 0 0 / 10%); - --sidebar-ring: oklch(0.56 0.021 213.5); -} - -@theme inline { - --font-sans: 'Roboto Variable', sans-serif; - --color-sidebar-ring: var(--sidebar-ring); - --color-sidebar-border: var(--sidebar-border); - --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); - --color-sidebar-accent: var(--sidebar-accent); - --color-sidebar-primary-foreground: var(--sidebar-primary-foreground); - --color-sidebar-primary: var(--sidebar-primary); - --color-sidebar-foreground: var(--sidebar-foreground); - --color-sidebar: var(--sidebar); - --color-chart-5: var(--chart-5); - --color-chart-4: var(--chart-4); - --color-chart-3: var(--chart-3); - --color-chart-2: var(--chart-2); - --color-chart-1: var(--chart-1); - --color-ring: var(--ring); - --color-input: var(--input); - --color-border: var(--border); - --color-destructive: var(--destructive); - --color-accent-foreground: var(--accent-foreground); - --color-accent: var(--accent); - --color-muted-foreground: var(--muted-foreground); - --color-muted: var(--muted); - --color-secondary-foreground: var(--secondary-foreground); - --color-secondary: var(--secondary); - --color-primary-foreground: var(--primary-foreground); - --color-primary: var(--primary); - --color-popover-foreground: var(--popover-foreground); - --color-popover: var(--popover); - --color-card-foreground: var(--card-foreground); - --color-card: var(--card); - --color-foreground: var(--foreground); - --color-background: var(--background); - --radius-sm: calc(var(--radius) * 0.6); - --radius-md: calc(var(--radius) * 0.8); - --radius-lg: var(--radius); - --radius-xl: calc(var(--radius) * 1.4); - --radius-2xl: calc(var(--radius) * 1.8); - --radius-3xl: calc(var(--radius) * 2.2); - --radius-4xl: calc(var(--radius) * 2.6); -} - -@layer base { - * { - @apply border-border outline-ring/50; - } - body { - @apply bg-background text-foreground; - } - html { - @apply font-sans; - } -} diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/svelte.config.js" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/svelte.config.js" index 58d330b..0c3412e 100644 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/svelte.config.js" +++ "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/svelte.config.js" @@ -1,17 +1,10 @@ import adapter from '@sveltejs/adapter-auto'; -import { relative, sep } from 'node:path'; /** @type {import('@sveltejs/kit').Config} */ const config = { compilerOptions: { - // defaults to rune mode for the project, except for `node_modules`. Can be removed in svelte 6. - runes: ({ filename }) => { - const relativePath = relative(import.meta.dirname, filename); - const pathSegments = relativePath.toLowerCase().split(sep); - const isExternalLibrary = pathSegments.includes('node_modules'); - - return isExternalLibrary ? undefined : true; - } + // Force runes mode for the project, except for libraries. Can be removed in svelte 6. + runes: ({ filename }) => (filename.split(/[/\\]/).includes('node_modules') ? undefined : true) }, kit: { // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list. diff --git "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/vite.config.ts" "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/vite.config.ts" index 0fbc1a4..5734c85 100644 --- "a/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/vite.config.ts" +++ "b/template/apps/<@if(eq(context.project.frontend,\"svelte-kit\"))>web/vite.config.ts" @@ -1,12 +1,9 @@ -import { paraglideVitePlugin } from '@inlang/paraglide-js'; -import tailwindcss from '@tailwindcss/vite'; import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; - +import tailwindcss from '@tailwindcss/vite' export default defineConfig({ plugins: [ tailwindcss(), sveltekit(), - paraglideVitePlugin({ project: './project.inlang', outdir: './src/lib/paraglide' }) ] });