create-tauri-ui 0.3.2 → 0.3.3

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 (245) hide show
  1. package/index.js +1 -1
  2. package/package.json +6 -6
  3. package/templates/.shared/.github/workflows/release.yml +112 -112
  4. package/templates/.shared/src-tauri/Cargo.lock +3835 -3835
  5. package/templates/.shared/src-tauri/Cargo.toml +4 -4
  6. package/templates/.shared/src-tauri/build.rs +3 -3
  7. package/templates/.shared/src-tauri/src/main.rs +22 -22
  8. package/templates/next/.github/workflows/release.yml +108 -108
  9. package/templates/next/.vscode/extensions.json +3 -3
  10. package/templates/next/README.md +95 -95
  11. package/templates/next/next-env.d.ts +5 -5
  12. package/templates/next/package.json +87 -87
  13. package/templates/next/pnpm-lock.yaml +4911 -4911
  14. package/templates/next/postcss.config.js +6 -6
  15. package/templates/next/prettier.config.js +35 -35
  16. package/templates/next/src/app/examples/layout.tsx +7 -7
  17. package/templates/next/src/app/page.tsx +5 -5
  18. package/templates/next/src/components/examples-nav.tsx +70 -70
  19. package/templates/next/src/components/greeting.tsx +21 -21
  20. package/templates/next/src/components/mode-toggle.tsx +43 -43
  21. package/templates/next/src/components/page-header.tsx +52 -52
  22. package/templates/next/src/components/style-switcher.tsx +19 -19
  23. package/templates/next/src/components/tailwind-indicator.tsx +18 -18
  24. package/templates/next/src/components/theme-provider.tsx +9 -9
  25. package/templates/next/src/components/ui/accordion.tsx +60 -60
  26. package/templates/next/src/components/ui/alert-dialog.tsx +145 -145
  27. package/templates/next/src/components/ui/alert.tsx +59 -59
  28. package/templates/next/src/components/ui/aspect-ratio.tsx +7 -7
  29. package/templates/next/src/components/ui/avatar.tsx +50 -50
  30. package/templates/next/src/components/ui/badge.tsx +36 -36
  31. package/templates/next/src/components/ui/button.tsx +56 -56
  32. package/templates/next/src/components/ui/calendar.tsx +64 -64
  33. package/templates/next/src/components/ui/card.tsx +79 -79
  34. package/templates/next/src/components/ui/checkbox.tsx +30 -30
  35. package/templates/next/src/components/ui/collapsible.tsx +11 -11
  36. package/templates/next/src/components/ui/command.tsx +155 -155
  37. package/templates/next/src/components/ui/context-menu.tsx +200 -200
  38. package/templates/next/src/components/ui/dialog.tsx +123 -123
  39. package/templates/next/src/components/ui/dropdown-menu.tsx +200 -200
  40. package/templates/next/src/components/ui/form.tsx +176 -176
  41. package/templates/next/src/components/ui/hover-card.tsx +29 -29
  42. package/templates/next/src/components/ui/input.tsx +25 -25
  43. package/templates/next/src/components/ui/label.tsx +26 -26
  44. package/templates/next/src/components/ui/menubar.tsx +236 -236
  45. package/templates/next/src/components/ui/navigation-menu.tsx +128 -128
  46. package/templates/next/src/components/ui/popover.tsx +31 -31
  47. package/templates/next/src/components/ui/progress.tsx +28 -28
  48. package/templates/next/src/components/ui/radio-group.tsx +44 -44
  49. package/templates/next/src/components/ui/scroll-area.tsx +48 -48
  50. package/templates/next/src/components/ui/select.tsx +121 -121
  51. package/templates/next/src/components/ui/separator.tsx +31 -31
  52. package/templates/next/src/components/ui/sheet.tsx +144 -144
  53. package/templates/next/src/components/ui/skeleton.tsx +15 -15
  54. package/templates/next/src/components/ui/slider.tsx +28 -28
  55. package/templates/next/src/components/ui/switch.tsx +29 -29
  56. package/templates/next/src/components/ui/table.tsx +114 -114
  57. package/templates/next/src/components/ui/tabs.tsx +55 -55
  58. package/templates/next/src/components/ui/textarea.tsx +24 -24
  59. package/templates/next/src/components/ui/toast.tsx +127 -127
  60. package/templates/next/src/components/ui/toaster.tsx +35 -35
  61. package/templates/next/src/components/ui/toggle.tsx +45 -45
  62. package/templates/next/src/components/ui/tooltip.tsx +30 -30
  63. package/templates/next/src/components/ui/use-toast.ts +192 -192
  64. package/templates/next/src/data/albums.ts +71 -71
  65. package/templates/next/src/data/playlists.ts +16 -16
  66. package/templates/next/src-tauri/Cargo.lock +3835 -3835
  67. package/templates/next/src-tauri/Cargo.toml +39 -39
  68. package/templates/next/src-tauri/build.rs +3 -3
  69. package/templates/sveltekit/.github/workflows/release.yml +108 -108
  70. package/templates/sveltekit/.prettierignore +13 -13
  71. package/templates/sveltekit/.prettierrc +8 -8
  72. package/templates/sveltekit/README.md +1 -1
  73. package/templates/sveltekit/package.json +85 -85
  74. package/templates/sveltekit/pnpm-lock.yaml +4177 -4177
  75. package/templates/sveltekit/postcss.config.cjs +13 -13
  76. package/templates/sveltekit/src/app.d.ts +18 -18
  77. package/templates/sveltekit/src/app.html +16 -16
  78. package/templates/sveltekit/src/index.test.ts +7 -7
  79. package/templates/sveltekit/src/lib/components/docs/TailwindIndicator.svelte +10 -10
  80. package/templates/sveltekit/src/lib/components/docs/charts/Bar.svelte +152 -152
  81. package/templates/sveltekit/src/lib/components/docs/dashboard/DashboardPage.svelte +108 -108
  82. package/templates/sveltekit/src/lib/components/docs/dashboard/MainNav.svelte +31 -31
  83. package/templates/sveltekit/src/lib/components/docs/dashboard/Overview.svelte +5 -5
  84. package/templates/sveltekit/src/lib/components/docs/dashboard/RecentSales.svelte +61 -61
  85. package/templates/sveltekit/src/lib/components/docs/dashboard/Search.svelte +7 -7
  86. package/templates/sveltekit/src/lib/components/docs/dashboard/index.ts +1 -1
  87. package/templates/sveltekit/src/lib/components/docs/examples-nav/ExampleCodeLink.svelte +19 -19
  88. package/templates/sveltekit/src/lib/components/docs/examples-nav/ExamplesNav.svelte +27 -27
  89. package/templates/sveltekit/src/lib/components/docs/examples-nav/index.ts +2 -2
  90. package/templates/sveltekit/src/lib/components/docs/icons/Apple.svelte +12 -12
  91. package/templates/sveltekit/src/lib/components/docs/icons/Aria.svelte +11 -11
  92. package/templates/sveltekit/src/lib/components/docs/icons/GitHub.svelte +12 -12
  93. package/templates/sveltekit/src/lib/components/docs/icons/Google.svelte +12 -12
  94. package/templates/sveltekit/src/lib/components/docs/icons/Logo.svelte +17 -17
  95. package/templates/sveltekit/src/lib/components/docs/icons/Minimize.svelte +12 -12
  96. package/templates/sveltekit/src/lib/components/docs/icons/Npm.svelte +12 -12
  97. package/templates/sveltekit/src/lib/components/docs/icons/PayPal.svelte +12 -12
  98. package/templates/sveltekit/src/lib/components/docs/icons/Pnpm.svelte +12 -12
  99. package/templates/sveltekit/src/lib/components/docs/icons/Radix.svelte +14 -14
  100. package/templates/sveltekit/src/lib/components/docs/icons/RadixSvelte.svelte +14 -14
  101. package/templates/sveltekit/src/lib/components/docs/icons/Tailwind.svelte +12 -12
  102. package/templates/sveltekit/src/lib/components/docs/icons/Yarn.svelte +12 -12
  103. package/templates/sveltekit/src/lib/components/docs/icons/index.ts +78 -78
  104. package/templates/sveltekit/src/lib/components/docs/index.ts +6 -6
  105. package/templates/sveltekit/src/lib/components/docs/light-switch/LightSwitch.svelte +75 -75
  106. package/templates/sveltekit/src/lib/components/docs/light-switch/index.ts +1 -1
  107. package/templates/sveltekit/src/lib/components/docs/light-switch/light-switch.ts +87 -87
  108. package/templates/sveltekit/src/lib/components/docs/light-switch/local-storage-store.ts +81 -81
  109. package/templates/sveltekit/src/lib/components/ui/accordion/Accordion.svelte +11 -11
  110. package/templates/sveltekit/src/lib/components/ui/accordion/AccordionContent.svelte +19 -19
  111. package/templates/sveltekit/src/lib/components/ui/accordion/AccordionItem.svelte +13 -13
  112. package/templates/sveltekit/src/lib/components/ui/accordion/AccordionTrigger.svelte +21 -21
  113. package/templates/sveltekit/src/lib/components/ui/accordion/index.ts +4 -4
  114. package/templates/sveltekit/src/lib/components/ui/alert/Alert.svelte +29 -29
  115. package/templates/sveltekit/src/lib/components/ui/alert/AlertDescription.svelte +10 -10
  116. package/templates/sveltekit/src/lib/components/ui/alert/AlertTitle.svelte +15 -15
  117. package/templates/sveltekit/src/lib/components/ui/alert/index.ts +3 -3
  118. package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogAction.svelte +12 -12
  119. package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogCancel.svelte +15 -15
  120. package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogContent.svelte +22 -22
  121. package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogDescription.svelte +14 -14
  122. package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogFooter.svelte +13 -13
  123. package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogHeader.svelte +10 -10
  124. package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogOverlay.svelte +15 -15
  125. package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogPortal.svelte +9 -9
  126. package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogTitle.svelte +11 -11
  127. package/templates/sveltekit/src/lib/components/ui/alert-dialog/index.ts +12 -12
  128. package/templates/sveltekit/src/lib/components/ui/aspect-ratio/AspectRatio.svelte +13 -13
  129. package/templates/sveltekit/src/lib/components/ui/aspect-ratio/index.ts +1 -1
  130. package/templates/sveltekit/src/lib/components/ui/avatar/Avatar.svelte +14 -14
  131. package/templates/sveltekit/src/lib/components/ui/avatar/AvatarFallback.svelte +14 -14
  132. package/templates/sveltekit/src/lib/components/ui/avatar/AvatarImage.svelte +17 -17
  133. package/templates/sveltekit/src/lib/components/ui/avatar/index.ts +3 -3
  134. package/templates/sveltekit/src/lib/components/ui/badge/Badge.svelte +39 -39
  135. package/templates/sveltekit/src/lib/components/ui/badge/index.ts +21 -21
  136. package/templates/sveltekit/src/lib/components/ui/button/Button.svelte +47 -47
  137. package/templates/sveltekit/src/lib/components/ui/button/index.ts +28 -28
  138. package/templates/sveltekit/src/lib/components/ui/card/Card.svelte +18 -18
  139. package/templates/sveltekit/src/lib/components/ui/card/CardContent.svelte +10 -10
  140. package/templates/sveltekit/src/lib/components/ui/card/CardDescription.svelte +10 -10
  141. package/templates/sveltekit/src/lib/components/ui/card/CardFooter.svelte +10 -10
  142. package/templates/sveltekit/src/lib/components/ui/card/CardHeader.svelte +10 -10
  143. package/templates/sveltekit/src/lib/components/ui/card/CardTitle.svelte +16 -16
  144. package/templates/sveltekit/src/lib/components/ui/card/index.ts +6 -6
  145. package/templates/sveltekit/src/lib/components/ui/checkbox/Checkbox.svelte +23 -23
  146. package/templates/sveltekit/src/lib/components/ui/checkbox/index.ts +1 -1
  147. package/templates/sveltekit/src/lib/components/ui/collapsible/index.ts +7 -7
  148. package/templates/sveltekit/src/lib/components/ui/dialog/DialogContent.svelte +29 -29
  149. package/templates/sveltekit/src/lib/components/ui/dialog/DialogDescription.svelte +14 -14
  150. package/templates/sveltekit/src/lib/components/ui/dialog/DialogFooter.svelte +13 -13
  151. package/templates/sveltekit/src/lib/components/ui/dialog/DialogHeader.svelte +10 -10
  152. package/templates/sveltekit/src/lib/components/ui/dialog/DialogOverlay.svelte +15 -15
  153. package/templates/sveltekit/src/lib/components/ui/dialog/DialogPortal.svelte +13 -13
  154. package/templates/sveltekit/src/lib/components/ui/dialog/DialogTitle.svelte +14 -14
  155. package/templates/sveltekit/src/lib/components/ui/dialog/index.ts +12 -12
  156. package/templates/sveltekit/src/lib/components/ui/hover-card/HoverCardContent.svelte +24 -24
  157. package/templates/sveltekit/src/lib/components/ui/hover-card/index.ts +6 -6
  158. package/templates/sveltekit/src/lib/components/ui/input/Input.svelte +30 -30
  159. package/templates/sveltekit/src/lib/components/ui/input/index.ts +1 -1
  160. package/templates/sveltekit/src/lib/components/ui/label/Label.svelte +16 -16
  161. package/templates/sveltekit/src/lib/components/ui/label/index.ts +1 -1
  162. package/templates/sveltekit/src/lib/components/ui/progress/Progress.svelte +22 -22
  163. package/templates/sveltekit/src/lib/components/ui/progress/index.ts +1 -1
  164. package/templates/sveltekit/src/lib/components/ui/radio-group/RadioGroup.svelte +13 -13
  165. package/templates/sveltekit/src/lib/components/ui/radio-group/RadioGroupItem.svelte +23 -23
  166. package/templates/sveltekit/src/lib/components/ui/radio-group/index.ts +2 -2
  167. package/templates/sveltekit/src/lib/components/ui/select/SelectContent.svelte +26 -26
  168. package/templates/sveltekit/src/lib/components/ui/select/SelectItem.svelte +29 -29
  169. package/templates/sveltekit/src/lib/components/ui/select/SelectLabel.svelte +14 -14
  170. package/templates/sveltekit/src/lib/components/ui/select/SelectSeparator.svelte +9 -9
  171. package/templates/sveltekit/src/lib/components/ui/select/SelectTrigger.svelte +21 -21
  172. package/templates/sveltekit/src/lib/components/ui/select/index.ts +10 -10
  173. package/templates/sveltekit/src/lib/components/ui/separator/Separator.svelte +22 -22
  174. package/templates/sveltekit/src/lib/components/ui/separator/index.ts +1 -1
  175. package/templates/sveltekit/src/lib/components/ui/sheet/SheetContent.svelte +27 -27
  176. package/templates/sveltekit/src/lib/components/ui/sheet/SheetDescription.svelte +11 -11
  177. package/templates/sveltekit/src/lib/components/ui/sheet/SheetFooter.svelte +13 -13
  178. package/templates/sveltekit/src/lib/components/ui/sheet/SheetHeader.svelte +10 -10
  179. package/templates/sveltekit/src/lib/components/ui/sheet/SheetOverlay.svelte +15 -15
  180. package/templates/sveltekit/src/lib/components/ui/sheet/SheetPortal.svelte +28 -28
  181. package/templates/sveltekit/src/lib/components/ui/sheet/SheetTitle.svelte +14 -14
  182. package/templates/sveltekit/src/lib/components/ui/sheet/index.ts +102 -102
  183. package/templates/sveltekit/src/lib/components/ui/skeleton/Skeleton.svelte +8 -8
  184. package/templates/sveltekit/src/lib/components/ui/skeleton/index.ts +1 -1
  185. package/templates/sveltekit/src/lib/components/ui/slider/Slider.svelte +22 -22
  186. package/templates/sveltekit/src/lib/components/ui/slider/index.ts +1 -1
  187. package/templates/sveltekit/src/lib/components/ui/switch/Switch.svelte +32 -32
  188. package/templates/sveltekit/src/lib/components/ui/switch/index.ts +1 -1
  189. package/templates/sveltekit/src/lib/components/ui/table/Table.svelte +12 -12
  190. package/templates/sveltekit/src/lib/components/ui/table/TableBody.svelte +10 -10
  191. package/templates/sveltekit/src/lib/components/ui/table/TableCaption.svelte +10 -10
  192. package/templates/sveltekit/src/lib/components/ui/table/TableCell.svelte +10 -10
  193. package/templates/sveltekit/src/lib/components/ui/table/TableFooter.svelte +10 -10
  194. package/templates/sveltekit/src/lib/components/ui/table/TableHead.svelte +16 -16
  195. package/templates/sveltekit/src/lib/components/ui/table/TableHeader.svelte +10 -10
  196. package/templates/sveltekit/src/lib/components/ui/table/TableRow.svelte +16 -16
  197. package/templates/sveltekit/src/lib/components/ui/table/index.ts +8 -8
  198. package/templates/sveltekit/src/lib/components/ui/tabs/TabsContent.svelte +20 -20
  199. package/templates/sveltekit/src/lib/components/ui/tabs/TabsList.svelte +17 -17
  200. package/templates/sveltekit/src/lib/components/ui/tabs/TabsTrigger.svelte +20 -20
  201. package/templates/sveltekit/src/lib/components/ui/tabs/index.ts +7 -7
  202. package/templates/sveltekit/src/lib/components/ui/textarea/Textarea.svelte +30 -30
  203. package/templates/sveltekit/src/lib/components/ui/textarea/index.ts +1 -1
  204. package/templates/sveltekit/src/lib/components/ui/toggle/Toggle.svelte +44 -44
  205. package/templates/sveltekit/src/lib/components/ui/toggle/index.ts +1 -1
  206. package/templates/sveltekit/src/lib/components/ui/tooltip/TooltipContent.svelte +22 -22
  207. package/templates/sveltekit/src/lib/components/ui/tooltip/index.ts +6 -6
  208. package/templates/sveltekit/src/lib/config/components.ts +306 -306
  209. package/templates/sveltekit/src/lib/config/docs.ts +356 -356
  210. package/templates/sveltekit/src/lib/config/site.ts +15 -15
  211. package/templates/sveltekit/src/lib/types/docs.ts +50 -50
  212. package/templates/sveltekit/src/lib/types/nav.ts +18 -18
  213. package/templates/sveltekit/src/lib/utils.ts +75 -75
  214. package/templates/sveltekit/src/routes/+layout.svelte +48 -48
  215. package/templates/sveltekit/src/routes/+page.ts +6 -6
  216. package/templates/sveltekit/src/routes/authentication/+page.svelte +57 -57
  217. package/templates/sveltekit/src/routes/authentication/+page.ts +7 -7
  218. package/templates/sveltekit/src/routes/authentication/UserAuthForm.svelte +61 -61
  219. package/templates/sveltekit/src/routes/cards/+page.svelte +26 -26
  220. package/templates/sveltekit/src/routes/cards/+page.ts +7 -7
  221. package/templates/sveltekit/src/routes/cards/CookieSettings.svelte +52 -52
  222. package/templates/sveltekit/src/routes/cards/CreateAccount.svelte +52 -52
  223. package/templates/sveltekit/src/routes/cards/DemoContainer.svelte +10 -10
  224. package/templates/sveltekit/src/routes/cards/Notifications.svelte +38 -38
  225. package/templates/sveltekit/src/routes/cards/PaymentMethod.svelte +110 -110
  226. package/templates/sveltekit/src/routes/cards/ReportAnIssue.svelte +71 -71
  227. package/templates/sveltekit/src/routes/cards/ShareDocument.svelte +91 -91
  228. package/templates/sveltekit/src/routes/dashboard/+page.svelte +5 -5
  229. package/templates/sveltekit/src/routes/dashboard/+page.ts +7 -7
  230. package/templates/sveltekit/src/routes/music/albums.ts +61 -61
  231. package/templates/sveltekit/src/routes/music/playlists.ts +16 -16
  232. package/templates/sveltekit/src/styles/globals.css +125 -125
  233. package/templates/sveltekit/src/styles/mdsvex.css +80 -80
  234. package/templates/sveltekit/src-tauri/Cargo.lock +3835 -3835
  235. package/templates/sveltekit/src-tauri/Cargo.toml +39 -39
  236. package/templates/sveltekit/src-tauri/build.rs +3 -3
  237. package/templates/sveltekit/src-tauri/tauri.conf.json +71 -71
  238. package/templates/sveltekit/svelte.config.js +22 -22
  239. package/templates/sveltekit/tailwind.config.js +67 -67
  240. package/templates/sveltekit/tsconfig.json +13 -13
  241. package/templates/vite/package.json +83 -83
  242. package/templates/vite/pnpm-lock.yaml +5176 -5176
  243. package/templates/vite/src-tauri/Cargo.lock +3835 -3835
  244. package/templates/vite/src-tauri/Cargo.toml +39 -39
  245. package/templates/vite/src-tauri/build.rs +3 -3
@@ -1,39 +1,39 @@
1
- [package]
2
- name = "tauri-demo"
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
- serde = { version = "1.0", features = ["derive"] }
18
- serde_json = "1.0"
19
- tauri-plugin-app = "2.0.0-alpha"
20
- tauri-plugin-os = "2.0.0-alpha"
21
- tauri-plugin-shell = "2.0.0-alpha"
22
- tauri-plugin-window = "2.0.0-alpha"
23
-
24
- [features]
25
- # by default Tauri runs in production mode
26
- # when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
27
- default = ["custom-protocol"]
28
- # this feature is used used for production builds where `devPath` points to the filesystem
29
- # DO NOT remove this
30
- custom-protocol = ["tauri/custom-protocol"]
31
-
32
- # Optimized for bundle size. If you want faster builds comment out/delete this section.
33
- [profile.release]
34
- lto = true # Enable Link Time Optimization
35
- opt-level = "z" # Optimize for size.
36
- codegen-units = 1 # Reduce number of codegen units to increase optimizations.
37
- panic = "abort" # Abort on panic
38
- strip = true # Automatically strip symbols from the binary.
39
- 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
+ serde = { version = "1.0", features = ["derive"] }
18
+ serde_json = "1.0"
19
+ tauri-plugin-app = "2.0.0-alpha.0"
20
+ tauri-plugin-os = "2.0.0-alpha.0"
21
+ tauri-plugin-shell = "2.0.0-alpha.0"
22
+ tauri-plugin-window = "2.0.0-alpha.0"
23
+
24
+ [features]
25
+ # by default Tauri runs in production mode
26
+ # when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
27
+ default = ["custom-protocol"]
28
+ # this feature is used used for production builds where `devPath` points to the filesystem
29
+ # DO NOT remove this
30
+ custom-protocol = ["tauri/custom-protocol"]
31
+
32
+ # Optimized for bundle size. If you want faster builds comment out/delete this section.
33
+ [profile.release]
34
+ lto = true # Enable Link Time Optimization
35
+ opt-level = "z" # Optimize for size.
36
+ codegen-units = 1 # Reduce number of codegen units to increase optimizations.
37
+ panic = "abort" # Abort on panic
38
+ strip = true # Automatically strip symbols from the binary.
39
+ debug = false
@@ -1,3 +1,3 @@
1
- fn main() {
2
- tauri_build::build()
3
- }
1
+ fn main() {
2
+ tauri_build::build()
3
+ }
@@ -1,71 +1,71 @@
1
- {
2
- "build": {
3
- "beforeDevCommand": "pnpm dev",
4
- "beforeBuildCommand": "pnpm build",
5
- "devPath": "http://localhost:1420",
6
- "distDir": "../build",
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": ["app", "shell", "os", "event", "window"]
55
- }
56
- ]
57
- },
58
- "windows": [
59
- {
60
- "fullscreen": false,
61
- "title": "Tauri Demo",
62
- "center": true,
63
- "resizable": true,
64
- "decorations": false,
65
- "transparent": true,
66
- "height": 900,
67
- "width": 1290
68
- }
69
- ]
70
- }
71
- }
1
+ {
2
+ "build": {
3
+ "beforeDevCommand": "pnpm dev",
4
+ "beforeBuildCommand": "pnpm build",
5
+ "devPath": "http://localhost:1420",
6
+ "distDir": "../build",
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": ["app", "shell", "os", "event", "window"]
55
+ }
56
+ ]
57
+ },
58
+ "windows": [
59
+ {
60
+ "fullscreen": false,
61
+ "title": "Tauri Demo",
62
+ "center": true,
63
+ "resizable": true,
64
+ "decorations": false,
65
+ "transparent": true,
66
+ "height": 900,
67
+ "width": 1290
68
+ }
69
+ ]
70
+ }
71
+ }
@@ -1,22 +1,22 @@
1
- import adapter from '@sveltejs/adapter-static'; // This was changed from adapter-auto
2
- import preprocess from 'svelte-preprocess';
3
-
4
- /** @type {import('@sveltejs/kit').Config} */
5
- const config = {
6
- // Consult https://github.com/sveltejs/svelte-preprocess
7
- // for more information about preprocessors
8
- preprocess: preprocess(),
9
-
10
- kit: {
11
- // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
12
- // If your environment is not supported or you settled on a specific environment, switch out the adapter.
13
- // See https://kit.svelte.dev/docs/adapters for more information about adapters.
14
- adapter: adapter(),
15
- alias: {
16
- $components: 'src/lib/components',
17
- '$components/*': 'src/lib/components/*'
18
- }
19
- }
20
- };
21
-
22
- export default config;
1
+ import adapter from '@sveltejs/adapter-static'; // This was changed from adapter-auto
2
+ import preprocess from 'svelte-preprocess';
3
+
4
+ /** @type {import('@sveltejs/kit').Config} */
5
+ const config = {
6
+ // Consult https://github.com/sveltejs/svelte-preprocess
7
+ // for more information about preprocessors
8
+ preprocess: preprocess(),
9
+
10
+ kit: {
11
+ // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
12
+ // If your environment is not supported or you settled on a specific environment, switch out the adapter.
13
+ // See https://kit.svelte.dev/docs/adapters for more information about adapters.
14
+ adapter: adapter(),
15
+ alias: {
16
+ $components: 'src/lib/components',
17
+ '$components/*': 'src/lib/components/*'
18
+ }
19
+ }
20
+ };
21
+
22
+ export default config;
@@ -1,67 +1,67 @@
1
- import { fontFamily } from 'tailwindcss/defaultTheme';
2
-
3
- /** @type {import('tailwindcss').Config} */
4
- const config = {
5
- darkMode: ['class'],
6
- content: [
7
- './src/**/*.{html,js,svelte,ts}',
8
- './node_modules/@tauri-controls/svelte/**/*.{js,svelte,ts}'
9
- ],
10
- theme: {
11
- container: {
12
- center: true,
13
- padding: '2rem',
14
- screens: {
15
- '2xl': '1400px'
16
- }
17
- },
18
- extend: {
19
- colors: {
20
- border: 'hsl(var(--border))',
21
- input: 'hsl(var(--input))',
22
- ring: 'hsl(var(--ring))',
23
- background: 'hsl(var(--background))',
24
- foreground: 'hsl(var(--foreground))',
25
- primary: {
26
- DEFAULT: 'hsl(var(--primary))',
27
- foreground: 'hsl(var(--primary-foreground))'
28
- },
29
- secondary: {
30
- DEFAULT: 'hsl(var(--secondary))',
31
- foreground: 'hsl(var(--secondary-foreground))'
32
- },
33
- destructive: {
34
- DEFAULT: 'hsl(var(--destructive))',
35
- foreground: 'hsl(var(--destructive-foreground))'
36
- },
37
- muted: {
38
- DEFAULT: 'hsl(var(--muted))',
39
- foreground: 'hsl(var(--muted-foreground))'
40
- },
41
- accent: {
42
- DEFAULT: 'hsl(var(--accent))',
43
- foreground: 'hsl(var(--accent-foreground))'
44
- },
45
- popover: {
46
- DEFAULT: 'hsl(var(--popover))',
47
- foreground: 'hsl(var(--popover-foreground))'
48
- },
49
- card: {
50
- DEFAULT: 'hsl(var(--card))',
51
- foreground: 'hsl(var(--card-foreground))'
52
- }
53
- },
54
- borderRadius: {
55
- lg: `var(--radius)`,
56
- md: `calc(var(--radius) - 2px)`,
57
- sm: 'calc(var(--radius) - 4px)'
58
- },
59
- fontFamily: {
60
- sans: ['Inter', ...fontFamily.sans]
61
- }
62
- }
63
- },
64
- plugins: [require('tailwindcss-animate'), require('tailwind-scrollbar')({ nocompatible: true })]
65
- };
66
-
67
- export default config;
1
+ import { fontFamily } from 'tailwindcss/defaultTheme';
2
+
3
+ /** @type {import('tailwindcss').Config} */
4
+ const config = {
5
+ darkMode: ['class'],
6
+ content: [
7
+ './src/**/*.{html,js,svelte,ts}',
8
+ './node_modules/@tauri-controls/svelte/**/*.{js,svelte,ts}'
9
+ ],
10
+ theme: {
11
+ container: {
12
+ center: true,
13
+ padding: '2rem',
14
+ screens: {
15
+ '2xl': '1400px'
16
+ }
17
+ },
18
+ extend: {
19
+ colors: {
20
+ border: 'hsl(var(--border))',
21
+ input: 'hsl(var(--input))',
22
+ ring: 'hsl(var(--ring))',
23
+ background: 'hsl(var(--background))',
24
+ foreground: 'hsl(var(--foreground))',
25
+ primary: {
26
+ DEFAULT: 'hsl(var(--primary))',
27
+ foreground: 'hsl(var(--primary-foreground))'
28
+ },
29
+ secondary: {
30
+ DEFAULT: 'hsl(var(--secondary))',
31
+ foreground: 'hsl(var(--secondary-foreground))'
32
+ },
33
+ destructive: {
34
+ DEFAULT: 'hsl(var(--destructive))',
35
+ foreground: 'hsl(var(--destructive-foreground))'
36
+ },
37
+ muted: {
38
+ DEFAULT: 'hsl(var(--muted))',
39
+ foreground: 'hsl(var(--muted-foreground))'
40
+ },
41
+ accent: {
42
+ DEFAULT: 'hsl(var(--accent))',
43
+ foreground: 'hsl(var(--accent-foreground))'
44
+ },
45
+ popover: {
46
+ DEFAULT: 'hsl(var(--popover))',
47
+ foreground: 'hsl(var(--popover-foreground))'
48
+ },
49
+ card: {
50
+ DEFAULT: 'hsl(var(--card))',
51
+ foreground: 'hsl(var(--card-foreground))'
52
+ }
53
+ },
54
+ borderRadius: {
55
+ lg: `var(--radius)`,
56
+ md: `calc(var(--radius) - 2px)`,
57
+ sm: 'calc(var(--radius) - 4px)'
58
+ },
59
+ fontFamily: {
60
+ sans: ['Inter', ...fontFamily.sans]
61
+ }
62
+ }
63
+ },
64
+ plugins: [require('tailwindcss-animate'), require('tailwind-scrollbar')({ nocompatible: true })]
65
+ };
66
+
67
+ export default config;
@@ -1,13 +1,13 @@
1
- {
2
- "extends": "./.svelte-kit/tsconfig.json",
3
- "compilerOptions": {
4
- "allowJs": true,
5
- "checkJs": true,
6
- "esModuleInterop": true,
7
- "forceConsistentCasingInFileNames": true,
8
- "resolveJsonModule": true,
9
- "skipLibCheck": true,
10
- "sourceMap": true,
11
- "strict": true
12
- }
13
- }
1
+ {
2
+ "extends": "./.svelte-kit/tsconfig.json",
3
+ "compilerOptions": {
4
+ "allowJs": true,
5
+ "checkJs": true,
6
+ "esModuleInterop": true,
7
+ "forceConsistentCasingInFileNames": true,
8
+ "resolveJsonModule": true,
9
+ "skipLibCheck": true,
10
+ "sourceMap": true,
11
+ "strict": true
12
+ }
13
+ }
@@ -1,83 +1,83 @@
1
- {
2
- "name": "tauri-ui-vite",
3
- "private": true,
4
- "version": "0.1.0",
5
- "scripts": {
6
- "dev": "vite",
7
- "build": "tsc && vite build",
8
- "preview": "vite preview",
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
- "@hookform/resolvers": "^3.1.1",
16
- "@radix-ui/react-accessible-icon": "^1.0.3",
17
- "@radix-ui/react-accordion": "^1.1.2",
18
- "@radix-ui/react-alert-dialog": "^1.0.4",
19
- "@radix-ui/react-aspect-ratio": "^1.0.3",
20
- "@radix-ui/react-avatar": "^1.0.3",
21
- "@radix-ui/react-checkbox": "^1.0.4",
22
- "@radix-ui/react-collapsible": "^1.0.3",
23
- "@radix-ui/react-context-menu": "^2.1.4",
24
- "@radix-ui/react-dialog": "^1.0.4",
25
- "@radix-ui/react-dropdown-menu": "^2.0.5",
26
- "@radix-ui/react-hover-card": "^1.0.6",
27
- "@radix-ui/react-icons": "^1.3.0",
28
- "@radix-ui/react-label": "^2.0.2",
29
- "@radix-ui/react-menubar": "^1.0.3",
30
- "@radix-ui/react-navigation-menu": "^1.1.3",
31
- "@radix-ui/react-popover": "^1.0.6",
32
- "@radix-ui/react-progress": "^1.0.3",
33
- "@radix-ui/react-radio-group": "^1.1.3",
34
- "@radix-ui/react-scroll-area": "^1.0.4",
35
- "@radix-ui/react-select": "^1.2.2",
36
- "@radix-ui/react-separator": "^1.0.3",
37
- "@radix-ui/react-slider": "^1.1.2",
38
- "@radix-ui/react-slot": "^1.0.2",
39
- "@radix-ui/react-switch": "^1.0.3",
40
- "@radix-ui/react-tabs": "^1.0.4",
41
- "@radix-ui/react-toast": "^1.1.4",
42
- "@radix-ui/react-toggle": "^1.0.3",
43
- "@radix-ui/react-toggle-group": "^1.0.4",
44
- "@radix-ui/react-tooltip": "^1.0.6",
45
- "@tauri-apps/api": "^2.0.0-alpha.5",
46
- "@tauri-apps/plugin-app": "2.0.0-alpha.0",
47
- "@tauri-apps/plugin-os": "2.0.0-alpha.0",
48
- "@tauri-apps/plugin-shell": "2.0.0-alpha.0",
49
- "@tauri-apps/plugin-window": "2.0.0-alpha.0",
50
- "@vitejs/plugin-react-swc": "^3.3.2",
51
- "cmdk": "^0.2.0",
52
- "date-fns": "^2.30.0",
53
- "lucide-react": "^0.263.1",
54
- "next-themes": "^0.2.1",
55
- "react": "^18.2.0",
56
- "react-day-picker": "^8.8.0",
57
- "react-dom": "^18.2.0",
58
- "react-hook-form": "^7.45.2",
59
- "recharts": "^2.7.2",
60
- "tailwind-scrollbar": "^3.0.4",
61
- "tailwindcss-animate": "^1.0.6",
62
- "tauri-controls": "^0.1.0",
63
- "zod": "^3.21.4"
64
- },
65
- "devDependencies": {
66
- "@ianvs/prettier-plugin-sort-imports": "^4.1.0",
67
- "@tauri-apps/cli": "^2.0.0-alpha.10",
68
- "@types/node": "^20.4.6",
69
- "@types/react": "^18.2.18",
70
- "@types/react-dom": "^18.2.7",
71
- "autoprefixer": "^10.4.14",
72
- "class-variance-authority": "^0.7.0",
73
- "clsx": "^2.0.0",
74
- "postcss": "^8.4.27",
75
- "prettier": "^3.0.1",
76
- "prettier-plugin-tailwindcss": "^0.4.1",
77
- "tailwind-merge": "^1.14.0",
78
- "tailwindcss": "^3.3.3",
79
- "taze": "^0.11.2",
80
- "typescript": "^5.1.6",
81
- "vite": "^4.4.8"
82
- }
83
- }
1
+ {
2
+ "name": "tauri-ui-vite",
3
+ "private": true,
4
+ "version": "0.1.0",
5
+ "scripts": {
6
+ "dev": "vite",
7
+ "build": "tsc && vite build",
8
+ "preview": "vite preview",
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
+ "@hookform/resolvers": "^3.1.1",
16
+ "@radix-ui/react-accessible-icon": "^1.0.3",
17
+ "@radix-ui/react-accordion": "^1.1.2",
18
+ "@radix-ui/react-alert-dialog": "^1.0.4",
19
+ "@radix-ui/react-aspect-ratio": "^1.0.3",
20
+ "@radix-ui/react-avatar": "^1.0.3",
21
+ "@radix-ui/react-checkbox": "^1.0.4",
22
+ "@radix-ui/react-collapsible": "^1.0.3",
23
+ "@radix-ui/react-context-menu": "^2.1.4",
24
+ "@radix-ui/react-dialog": "^1.0.4",
25
+ "@radix-ui/react-dropdown-menu": "^2.0.5",
26
+ "@radix-ui/react-hover-card": "^1.0.6",
27
+ "@radix-ui/react-icons": "^1.3.0",
28
+ "@radix-ui/react-label": "^2.0.2",
29
+ "@radix-ui/react-menubar": "^1.0.3",
30
+ "@radix-ui/react-navigation-menu": "^1.1.3",
31
+ "@radix-ui/react-popover": "^1.0.6",
32
+ "@radix-ui/react-progress": "^1.0.3",
33
+ "@radix-ui/react-radio-group": "^1.1.3",
34
+ "@radix-ui/react-scroll-area": "^1.0.4",
35
+ "@radix-ui/react-select": "^1.2.2",
36
+ "@radix-ui/react-separator": "^1.0.3",
37
+ "@radix-ui/react-slider": "^1.1.2",
38
+ "@radix-ui/react-slot": "^1.0.2",
39
+ "@radix-ui/react-switch": "^1.0.3",
40
+ "@radix-ui/react-tabs": "^1.0.4",
41
+ "@radix-ui/react-toast": "^1.1.4",
42
+ "@radix-ui/react-toggle": "^1.0.3",
43
+ "@radix-ui/react-toggle-group": "^1.0.4",
44
+ "@radix-ui/react-tooltip": "^1.0.6",
45
+ "@tauri-apps/api": "^2.0.0-alpha.5",
46
+ "@tauri-apps/plugin-app": "2.0.0-alpha.0",
47
+ "@tauri-apps/plugin-os": "2.0.0-alpha.0",
48
+ "@tauri-apps/plugin-shell": "2.0.0-alpha.0",
49
+ "@tauri-apps/plugin-window": "2.0.0-alpha.0",
50
+ "@vitejs/plugin-react-swc": "^3.3.2",
51
+ "cmdk": "^0.2.0",
52
+ "date-fns": "^2.30.0",
53
+ "lucide-react": "^0.263.1",
54
+ "next-themes": "^0.2.1",
55
+ "react": "^18.2.0",
56
+ "react-day-picker": "^8.8.0",
57
+ "react-dom": "^18.2.0",
58
+ "react-hook-form": "^7.45.2",
59
+ "recharts": "^2.7.2",
60
+ "tailwind-scrollbar": "^3.0.4",
61
+ "tailwindcss-animate": "^1.0.6",
62
+ "tauri-controls": "^0.1.0",
63
+ "zod": "^3.21.4"
64
+ },
65
+ "devDependencies": {
66
+ "@ianvs/prettier-plugin-sort-imports": "^4.1.0",
67
+ "@tauri-apps/cli": "^2.0.0-alpha.10",
68
+ "@types/node": "^20.4.6",
69
+ "@types/react": "^18.2.18",
70
+ "@types/react-dom": "^18.2.7",
71
+ "autoprefixer": "^10.4.14",
72
+ "class-variance-authority": "^0.7.0",
73
+ "clsx": "^2.0.0",
74
+ "postcss": "^8.4.27",
75
+ "prettier": "^3.0.1",
76
+ "prettier-plugin-tailwindcss": "^0.4.1",
77
+ "tailwind-merge": "^1.14.0",
78
+ "tailwindcss": "^3.3.3",
79
+ "taze": "^0.11.2",
80
+ "typescript": "^5.1.6",
81
+ "vite": "^4.4.8"
82
+ }
83
+ }