create-tauri-ui 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/README.md +5 -3
  2. package/dist/index.mjs +3 -3
  3. package/package.json +54 -54
  4. package/templates/.shared/src-tauri/Cargo.lock +3701 -3701
  5. package/templates/.shared/src-tauri/Cargo.toml +36 -36
  6. package/templates/.shared/src-tauri/tauri.conf.json +79 -79
  7. package/templates/next/components.json +15 -15
  8. package/templates/next/next.config.js +14 -14
  9. package/templates/next/package.json +83 -83
  10. package/templates/next/src/app/layout.tsx +47 -47
  11. package/templates/next/src/components/menu.tsx +259 -259
  12. package/templates/next/src/lib/utils.ts +6 -6
  13. package/templates/next/src/styles/globals.css +85 -85
  14. package/templates/next/src-tauri/Cargo.lock +3701 -3701
  15. package/templates/next/src-tauri/Cargo.toml +36 -36
  16. package/templates/next/src-tauri/tauri.conf.json +79 -79
  17. package/templates/next/tailwind.config.js +77 -77
  18. package/templates/next/tsconfig.json +34 -34
  19. package/templates/sveltekit/package.json +84 -84
  20. package/templates/sveltekit/src-tauri/Cargo.lock +3701 -3701
  21. package/templates/sveltekit/src-tauri/Cargo.toml +36 -36
  22. package/templates/sveltekit/src-tauri/tauri.conf.json +79 -79
  23. package/templates/vite/components.json +15 -15
  24. package/templates/vite/package.json +76 -76
  25. package/templates/vite/pnpm-lock.yaml +5110 -5110
  26. package/templates/vite/src-tauri/Cargo.lock +3701 -3701
  27. package/templates/vite/src-tauri/Cargo.toml +36 -36
  28. package/templates/vite/src-tauri/tauri.conf.json +79 -79
  29. package/templates/viteuno/components.json +15 -15
  30. package/templates/viteuno/package.json +73 -73
  31. package/templates/viteuno/pnpm-lock.yaml +5298 -5298
  32. package/templates/viteuno/preset.shadcn.ts +160 -160
  33. package/templates/viteuno/src-tauri/Cargo.lock +3701 -3701
  34. package/templates/viteuno/src-tauri/Cargo.toml +36 -36
  35. package/templates/viteuno/src-tauri/tauri.conf.json +79 -79
  36. package/templates/viteuno/uno.config.ts +111 -111
@@ -1,36 +1,36 @@
1
- [package]
2
- name = "tauri-ui"
3
- version = "0.1.0"
4
- description = "A Tauri App"
5
- authors = ["you"]
6
- license = "MIT"
7
- repository = ""
8
- edition = "2021"
9
-
10
- # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
11
-
12
- [build-dependencies]
13
- tauri-build = { version = "2.0.0-alpha.6", features = [] }
14
-
15
- [dependencies]
16
- tauri = { version = "2.0.0-alpha.10", features = [] }
17
- tauri-plugin-window = "2.0.0-alpha"
18
- serde = { version = "1.0", features = ["derive"] }
19
- serde_json = "1.0"
20
-
21
- [features]
22
- # by default Tauri runs in production mode
23
- # when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
24
- default = ["custom-protocol"]
25
- # this feature is used used for production builds where `devPath` points to the filesystem
26
- # DO NOT remove this
27
- custom-protocol = ["tauri/custom-protocol"]
28
-
29
- # Optimized for bundle size. If you want faster builds comment out/delete this section.
30
- [profile.release]
31
- lto = true # Enable Link Time Optimization
32
- opt-level = "z" # Optimize for size.
33
- codegen-units = 1 # Reduce number of codegen units to increase optimizations.
34
- panic = "abort" # Abort on panic
35
- strip = true # Automatically strip symbols from the binary.
36
- debug = false
1
+ [package]
2
+ name = "tauri-ui"
3
+ version = "0.1.0"
4
+ description = "A Tauri App"
5
+ authors = ["you"]
6
+ license = "MIT"
7
+ repository = ""
8
+ edition = "2021"
9
+
10
+ # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
11
+
12
+ [build-dependencies]
13
+ tauri-build = { version = "2.0.0-alpha.6", features = [] }
14
+
15
+ [dependencies]
16
+ tauri = { version = "2.0.0-alpha.10", features = [] }
17
+ tauri-plugin-window = "2.0.0-alpha"
18
+ serde = { version = "1.0", features = ["derive"] }
19
+ serde_json = "1.0"
20
+
21
+ [features]
22
+ # by default Tauri runs in production mode
23
+ # when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
24
+ default = ["custom-protocol"]
25
+ # this feature is used used for production builds where `devPath` points to the filesystem
26
+ # DO NOT remove this
27
+ custom-protocol = ["tauri/custom-protocol"]
28
+
29
+ # Optimized for bundle size. If you want faster builds comment out/delete this section.
30
+ [profile.release]
31
+ lto = true # Enable Link Time Optimization
32
+ opt-level = "z" # Optimize for size.
33
+ codegen-units = 1 # Reduce number of codegen units to increase optimizations.
34
+ panic = "abort" # Abort on panic
35
+ strip = true # Automatically strip symbols from the binary.
36
+ debug = false
@@ -1,79 +1,79 @@
1
- {
2
- "build": {
3
- "beforeDevCommand": "pnpm dev",
4
- "beforeBuildCommand": "pnpm build",
5
- "devPath": "http://localhost:1420",
6
- "distDir": "../dist",
7
- "withGlobalTauri": false
8
- },
9
- "package": {
10
- "productName": "tauri-ui"
11
- },
12
- "tauri": {
13
- "bundle": {
14
- "active": true,
15
- "category": "DeveloperTool",
16
- "copyright": "",
17
- "deb": {
18
- "depends": []
19
- },
20
- "externalBin": [],
21
- "icon": [
22
- "icons/32x32.png",
23
- "icons/128x128.png",
24
- "icons/128x128@2x.png",
25
- "icons/icon.icns",
26
- "icons/icon.ico"
27
- ],
28
- "identifier": "com.yourname.dev",
29
- "longDescription": "",
30
- "macOS": {
31
- "entitlements": null,
32
- "exceptionDomain": "",
33
- "frameworks": [],
34
- "providerShortName": null,
35
- "signingIdentity": null
36
- },
37
- "resources": [],
38
- "shortDescription": "",
39
- "targets": "all",
40
- "windows": {
41
- "certificateThumbprint": null,
42
- "digestAlgorithm": "sha256",
43
- "timestampUrl": "",
44
- "nsis": { "installerIcon": "./icons/icon.ico" }
45
- }
46
- },
47
- "security": {
48
- "csp": null,
49
- "dangerousRemoteDomainIpcAccess": [
50
- {
51
- "scheme": "https",
52
- "domain": "tauri.localhost",
53
- "windows": ["main"],
54
- "plugins": [
55
- "clipboard",
56
- "path",
57
- "dialog",
58
- "fs",
59
- "shell",
60
- "window",
61
- "windows"
62
- ]
63
- }
64
- ]
65
- },
66
- "windows": [
67
- {
68
- "fullscreen": false,
69
- "title": "Tauri UI",
70
- "center": true,
71
- "resizable": true,
72
- "decorations": false,
73
- "transparent": true,
74
- "height": 920,
75
- "width": 1300
76
- }
77
- ]
78
- }
79
- }
1
+ {
2
+ "build": {
3
+ "beforeDevCommand": "pnpm dev",
4
+ "beforeBuildCommand": "pnpm build",
5
+ "devPath": "http://localhost:1420",
6
+ "distDir": "../dist",
7
+ "withGlobalTauri": false
8
+ },
9
+ "package": {
10
+ "productName": "tauri-ui"
11
+ },
12
+ "tauri": {
13
+ "bundle": {
14
+ "active": true,
15
+ "category": "DeveloperTool",
16
+ "copyright": "",
17
+ "deb": {
18
+ "depends": []
19
+ },
20
+ "externalBin": [],
21
+ "icon": [
22
+ "icons/32x32.png",
23
+ "icons/128x128.png",
24
+ "icons/128x128@2x.png",
25
+ "icons/icon.icns",
26
+ "icons/icon.ico"
27
+ ],
28
+ "identifier": "com.yourname.dev",
29
+ "longDescription": "",
30
+ "macOS": {
31
+ "entitlements": null,
32
+ "exceptionDomain": "",
33
+ "frameworks": [],
34
+ "providerShortName": null,
35
+ "signingIdentity": null
36
+ },
37
+ "resources": [],
38
+ "shortDescription": "",
39
+ "targets": "all",
40
+ "windows": {
41
+ "certificateThumbprint": null,
42
+ "digestAlgorithm": "sha256",
43
+ "timestampUrl": "",
44
+ "nsis": { "installerIcon": "./icons/icon.ico" }
45
+ }
46
+ },
47
+ "security": {
48
+ "csp": null,
49
+ "dangerousRemoteDomainIpcAccess": [
50
+ {
51
+ "scheme": "https",
52
+ "domain": "tauri.localhost",
53
+ "windows": ["main"],
54
+ "plugins": [
55
+ "clipboard",
56
+ "path",
57
+ "dialog",
58
+ "fs",
59
+ "shell",
60
+ "window",
61
+ "windows"
62
+ ]
63
+ }
64
+ ]
65
+ },
66
+ "windows": [
67
+ {
68
+ "fullscreen": false,
69
+ "title": "Tauri UI",
70
+ "center": true,
71
+ "resizable": true,
72
+ "decorations": false,
73
+ "transparent": true,
74
+ "height": 920,
75
+ "width": 1300
76
+ }
77
+ ]
78
+ }
79
+ }
@@ -1,16 +1,16 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema.json",
3
- "style": "default",
4
- "rsc": false,
5
- "tsx": true,
6
- "tailwind": {
7
- "config": "tailwind.config.js",
8
- "css": "src/styles/globals.css",
9
- "baseColor": "slate",
10
- "cssVariables": true
11
- },
12
- "aliases": {
13
- "components": "@/components",
14
- "utils": "@/lib/utils"
15
- }
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema.json",
3
+ "style": "default",
4
+ "rsc": false,
5
+ "tsx": true,
6
+ "tailwind": {
7
+ "config": "tailwind.config.js",
8
+ "css": "src/styles/globals.css",
9
+ "baseColor": "slate",
10
+ "cssVariables": true
11
+ },
12
+ "aliases": {
13
+ "components": "@/components",
14
+ "utils": "@/lib/utils"
15
+ }
16
16
  }
@@ -1,14 +1,14 @@
1
- /** @type {import('next').NextConfig} */
2
-
3
- const nextConfig = {
4
- reactStrictMode: true,
5
- swcMinify: true,
6
- images: {
7
- unoptimized: true,
8
- domains: ["avatars.githubusercontent.com", "images.unsplash.com"],
9
- },
10
- output: "export",
11
- distDir: "dist",
12
- }
13
-
14
- module.exports = nextConfig
1
+ /** @type {import('next').NextConfig} */
2
+
3
+ const nextConfig = {
4
+ reactStrictMode: true,
5
+ swcMinify: true,
6
+ images: {
7
+ unoptimized: true,
8
+ domains: ["avatars.githubusercontent.com", "images.unsplash.com"],
9
+ },
10
+ output: "export",
11
+ distDir: "dist",
12
+ }
13
+
14
+ module.exports = nextConfig
@@ -1,83 +1,83 @@
1
- {
2
- "name": "tauri-ui",
3
- "private": true,
4
- "license": "MIT",
5
- "version": "0.2.0",
6
- "scripts": {
7
- "dev": "next dev -p 1420",
8
- "build": "next build",
9
- "format": "npx prettier --write . --ignore-path .gitignore ",
10
- "taze": "taze major -I",
11
- "taze:minor": "taze minor -w",
12
- "tauri": "tauri"
13
- },
14
- "dependencies": {
15
- "@faker-js/faker": "^8.0.2",
16
- "@hookform/resolvers": "^3.1.1",
17
- "@radix-ui/react-accessible-icon": "^1.0.3",
18
- "@radix-ui/react-accordion": "^1.1.2",
19
- "@radix-ui/react-alert-dialog": "^1.0.4",
20
- "@radix-ui/react-aspect-ratio": "^1.0.3",
21
- "@radix-ui/react-avatar": "^1.0.3",
22
- "@radix-ui/react-checkbox": "^1.0.4",
23
- "@radix-ui/react-collapsible": "^1.0.3",
24
- "@radix-ui/react-context-menu": "^2.1.4",
25
- "@radix-ui/react-dialog": "^1.0.4",
26
- "@radix-ui/react-dropdown-menu": "^2.0.5",
27
- "@radix-ui/react-hover-card": "^1.0.6",
28
- "@radix-ui/react-icons": "^1.3.0",
29
- "@radix-ui/react-label": "^2.0.2",
30
- "@radix-ui/react-menubar": "^1.0.3",
31
- "@radix-ui/react-navigation-menu": "^1.1.3",
32
- "@radix-ui/react-popover": "^1.0.6",
33
- "@radix-ui/react-progress": "^1.0.3",
34
- "@radix-ui/react-radio-group": "^1.1.3",
35
- "@radix-ui/react-scroll-area": "^1.0.4",
36
- "@radix-ui/react-select": "^1.2.2",
37
- "@radix-ui/react-separator": "^1.0.3",
38
- "@radix-ui/react-slider": "^1.1.2",
39
- "@radix-ui/react-slot": "^1.0.2",
40
- "@radix-ui/react-switch": "^1.0.3",
41
- "@radix-ui/react-tabs": "^1.0.4",
42
- "@radix-ui/react-toast": "^1.1.4",
43
- "@radix-ui/react-toggle": "^1.0.3",
44
- "@radix-ui/react-toggle-group": "^1.0.4",
45
- "@radix-ui/react-tooltip": "^1.0.6",
46
- "@tailwindcss/line-clamp": "^0.4.4",
47
- "@tanstack/react-table": "^8.9.3",
48
- "@tauri-apps/api": "2.0.0-alpha.5",
49
- "@tauri-apps/plugin-window": "2.0.0-alpha.0",
50
- "class-variance-authority": "^0.6.1",
51
- "clsx": "^1.2.1",
52
- "cmdk": "^0.2.0",
53
- "date-fns": "^2.30.0",
54
- "lucide-react": "^0.259.0",
55
- "nanoid": "^4.0.2",
56
- "next": "^13.4.9",
57
- "next-themes": "^0.2.1",
58
- "react": "^18.2.0",
59
- "react-day-picker": "^8.8.0",
60
- "react-dom": "^18.2.0",
61
- "react-hook-form": "7.44.3",
62
- "react-wrap-balancer": "^1.0.0",
63
- "recharts": "^2.7.2",
64
- "tailwind-merge": "^1.13.2",
65
- "tailwind-scrollbar": "^3.0.4",
66
- "tailwindcss-animate": "^1.0.6",
67
- "zod": "^3.21.4"
68
- },
69
- "devDependencies": {
70
- "@ianvs/prettier-plugin-sort-imports": "^4.0.2",
71
- "@tauri-apps/cli": "2.0.0-alpha.10",
72
- "@types/node": "^20.4.1",
73
- "@types/react": "^18.2.14",
74
- "@types/react-dom": "^18.2.6",
75
- "autoprefixer": "^10.4.14",
76
- "postcss": "^8.4.25",
77
- "prettier": "^3.0.0",
78
- "prettier-plugin-tailwindcss": "^0.3.0",
79
- "tailwindcss": "^3.3.2",
80
- "taze": "^0.11.2",
81
- "typescript": "^5.1.6"
82
- }
83
- }
1
+ {
2
+ "name": "tauri-ui",
3
+ "private": true,
4
+ "license": "MIT",
5
+ "version": "0.2.0",
6
+ "scripts": {
7
+ "dev": "next dev -p 1420",
8
+ "build": "next build",
9
+ "format": "npx prettier --write . --ignore-path .gitignore ",
10
+ "taze": "taze major -I",
11
+ "taze:minor": "taze minor -w",
12
+ "tauri": "tauri"
13
+ },
14
+ "dependencies": {
15
+ "@faker-js/faker": "^8.0.2",
16
+ "@hookform/resolvers": "^3.1.1",
17
+ "@radix-ui/react-accessible-icon": "^1.0.3",
18
+ "@radix-ui/react-accordion": "^1.1.2",
19
+ "@radix-ui/react-alert-dialog": "^1.0.4",
20
+ "@radix-ui/react-aspect-ratio": "^1.0.3",
21
+ "@radix-ui/react-avatar": "^1.0.3",
22
+ "@radix-ui/react-checkbox": "^1.0.4",
23
+ "@radix-ui/react-collapsible": "^1.0.3",
24
+ "@radix-ui/react-context-menu": "^2.1.4",
25
+ "@radix-ui/react-dialog": "^1.0.4",
26
+ "@radix-ui/react-dropdown-menu": "^2.0.5",
27
+ "@radix-ui/react-hover-card": "^1.0.6",
28
+ "@radix-ui/react-icons": "^1.3.0",
29
+ "@radix-ui/react-label": "^2.0.2",
30
+ "@radix-ui/react-menubar": "^1.0.3",
31
+ "@radix-ui/react-navigation-menu": "^1.1.3",
32
+ "@radix-ui/react-popover": "^1.0.6",
33
+ "@radix-ui/react-progress": "^1.0.3",
34
+ "@radix-ui/react-radio-group": "^1.1.3",
35
+ "@radix-ui/react-scroll-area": "^1.0.4",
36
+ "@radix-ui/react-select": "^1.2.2",
37
+ "@radix-ui/react-separator": "^1.0.3",
38
+ "@radix-ui/react-slider": "^1.1.2",
39
+ "@radix-ui/react-slot": "^1.0.2",
40
+ "@radix-ui/react-switch": "^1.0.3",
41
+ "@radix-ui/react-tabs": "^1.0.4",
42
+ "@radix-ui/react-toast": "^1.1.4",
43
+ "@radix-ui/react-toggle": "^1.0.3",
44
+ "@radix-ui/react-toggle-group": "^1.0.4",
45
+ "@radix-ui/react-tooltip": "^1.0.6",
46
+ "@tailwindcss/line-clamp": "^0.4.4",
47
+ "@tanstack/react-table": "^8.9.3",
48
+ "@tauri-apps/api": "2.0.0-alpha.5",
49
+ "@tauri-apps/plugin-window": "2.0.0-alpha.0",
50
+ "class-variance-authority": "^0.6.1",
51
+ "clsx": "^1.2.1",
52
+ "cmdk": "^0.2.0",
53
+ "date-fns": "^2.30.0",
54
+ "lucide-react": "^0.259.0",
55
+ "nanoid": "^4.0.2",
56
+ "next": "^13.4.9",
57
+ "next-themes": "^0.2.1",
58
+ "react": "^18.2.0",
59
+ "react-day-picker": "^8.8.0",
60
+ "react-dom": "^18.2.0",
61
+ "react-hook-form": "7.44.3",
62
+ "react-wrap-balancer": "^1.0.0",
63
+ "recharts": "^2.7.2",
64
+ "tailwind-merge": "^1.13.2",
65
+ "tailwind-scrollbar": "^3.0.4",
66
+ "tailwindcss-animate": "^1.0.6",
67
+ "zod": "^3.21.4"
68
+ },
69
+ "devDependencies": {
70
+ "@ianvs/prettier-plugin-sort-imports": "^4.0.2",
71
+ "@tauri-apps/cli": "2.0.0-alpha.10",
72
+ "@types/node": "^20.4.1",
73
+ "@types/react": "^18.2.14",
74
+ "@types/react-dom": "^18.2.6",
75
+ "autoprefixer": "^10.4.14",
76
+ "postcss": "^8.4.25",
77
+ "prettier": "^3.0.0",
78
+ "prettier-plugin-tailwindcss": "^0.3.0",
79
+ "tailwindcss": "^3.3.2",
80
+ "taze": "^0.11.2",
81
+ "typescript": "^5.1.6"
82
+ }
83
+ }
@@ -1,47 +1,47 @@
1
- import "@/styles/globals.css"
2
- import { Metadata } from "next"
3
-
4
- import { fontMono, fontSans } from "@/lib/fonts"
5
- import { cn } from "@/lib/utils"
6
- import { Greeting } from "@/components/greeting"
7
- import { Menu } from "@/components/menu"
8
- import { StyleSwitcher } from "@/components/style-switcher"
9
- import { TailwindIndicator } from "@/components/tailwind-indicator"
10
- import { ThemeProvider } from "@/components/theme-provider"
11
-
12
- interface ExamplesLayoutProps {
13
- children: React.ReactNode
14
- }
15
-
16
- export default function MyApp({ children }: ExamplesLayoutProps) {
17
- return (
18
- <html lang="en" suppressHydrationWarning className="overflow-clip bg-black">
19
- <head />
20
- <body className="overflow-clip bg-transparent font-sans antialiased scrollbar-none">
21
- <Greeting />
22
- <ThemeProvider attribute="class" defaultTheme="system" enableSystem>
23
- <div className="h-screen overflow-clip">
24
- <Menu />
25
- <div
26
- className={cn(
27
- "h-screen overflow-auto border-t bg-background pb-8",
28
- // "scrollbar-none"
29
- "scrollbar scrollbar-track-transparent scrollbar-thumb-accent scrollbar-thumb-rounded-md"
30
- )}
31
- >
32
- {children}
33
- </div>
34
- </div>
35
- <TailwindIndicator />
36
- </ThemeProvider>
37
- <StyleSwitcher />
38
- </body>
39
- </html>
40
- )
41
- }
42
-
43
- export const metadata: Metadata = {
44
- icons: {
45
- shortcut: ["#"],
46
- },
47
- }
1
+ import "@/styles/globals.css"
2
+ import { Metadata } from "next"
3
+
4
+ import { fontMono, fontSans } from "@/lib/fonts"
5
+ import { cn } from "@/lib/utils"
6
+ import { Greeting } from "@/components/greeting"
7
+ import { Menu } from "@/components/menu"
8
+ import { StyleSwitcher } from "@/components/style-switcher"
9
+ import { TailwindIndicator } from "@/components/tailwind-indicator"
10
+ import { ThemeProvider } from "@/components/theme-provider"
11
+
12
+ interface ExamplesLayoutProps {
13
+ children: React.ReactNode
14
+ }
15
+
16
+ export default function MyApp({ children }: ExamplesLayoutProps) {
17
+ return (
18
+ <html lang="en" suppressHydrationWarning className="overflow-clip bg-black">
19
+ <head />
20
+ <body className="overflow-clip bg-transparent font-sans antialiased scrollbar-none">
21
+ <Greeting />
22
+ <ThemeProvider attribute="class" defaultTheme="system" enableSystem>
23
+ <div className="h-screen overflow-clip">
24
+ <Menu />
25
+ <div
26
+ className={cn(
27
+ "h-screen overflow-auto border-t bg-background pb-8",
28
+ // "scrollbar-none"
29
+ "scrollbar scrollbar-track-transparent scrollbar-thumb-accent scrollbar-thumb-rounded-md"
30
+ )}
31
+ >
32
+ {children}
33
+ </div>
34
+ </div>
35
+ <TailwindIndicator />
36
+ </ThemeProvider>
37
+ <StyleSwitcher />
38
+ </body>
39
+ </html>
40
+ )
41
+ }
42
+
43
+ export const metadata: Metadata = {
44
+ icons: {
45
+ shortcut: ["#"],
46
+ },
47
+ }