@mun-ui/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 (33) hide show
  1. package/README.md +11 -1
  2. package/bin/desktop.mjs +143 -0
  3. package/bin/mun.mjs +27 -10
  4. package/native/mun-native/src/host_services.rs +202 -0
  5. package/native/mun-native/src/lib.rs +209 -42
  6. package/native/mun-native/src/text.rs +107 -16
  7. package/native/mun-runtime/src/collection.rs +18 -1
  8. package/native/mun-runtime/src/ir.rs +71 -1
  9. package/native/mun-runtime/src/layout.rs +85 -0
  10. package/native/mun-runtime/src/layout_cache.rs +6 -6
  11. package/native/mun-runtime/src/lib.rs +7 -4
  12. package/native/mun-runtime/src/runtime.rs +388 -17
  13. package/native/mun-runtime/src/scene.rs +37 -0
  14. package/native/mun-runtime/tests/host_services.rs +107 -0
  15. package/native/mun-runtime/tests/minimum_window_size.rs +80 -0
  16. package/native/mun-runtime/tests/priority_proposals.rs +69 -0
  17. package/native/mun-runtime/tests/text_proposals.rs +42 -0
  18. package/native/mun-runtime/tests/typography.rs +63 -0
  19. package/package.json +19 -16
  20. package/schemas/semantic-ui-ir-v1.schema.json +89 -0
  21. package/templates/desktop/gitignore +5 -0
  22. package/templates/desktop/package.json +10 -0
  23. package/templates/desktop/src-tauri/Cargo.toml +14 -0
  24. package/templates/desktop/src-tauri/build.rs +1 -0
  25. package/templates/desktop/src-tauri/capabilities/main.json +12 -0
  26. package/templates/desktop/src-tauri/icons/icon.icns +0 -0
  27. package/templates/desktop/src-tauri/icons/icon.ico +0 -0
  28. package/templates/desktop/src-tauri/icons/icon.png +0 -0
  29. package/templates/desktop/src-tauri/src/main.rs +2 -0
  30. package/templates/desktop/src-tauri/tauri.conf.json +42 -0
  31. package/templates/desktop/vite.config.ts +10 -0
  32. package/templates/project/package.json +3 -0
  33. package/templates/project/src/index.css +9 -0
@@ -17,5 +17,8 @@
17
17
  "@mun-ui/vite": "^__MUN_VERSION__",
18
18
  "typescript": "^5.8.0",
19
19
  "vite": "^8.0.0"
20
+ },
21
+ "mun": {
22
+ "target": "web"
20
23
  }
21
24
  }
@@ -16,6 +16,15 @@ body {
16
16
  margin: 0;
17
17
  }
18
18
 
19
+ /* The mount point plays the native window: it proposes the viewport to the
20
+ root View, centers a View that hugs its content, and lets a flexible one
21
+ (`.frame(maxWidth: .infinity, maxHeight: .infinity)`, a ScrollView) fill. */
22
+ #root {
23
+ display: grid;
24
+ place-items: center;
25
+ min-height: 100dvh;
26
+ }
27
+
19
28
  button {
20
29
  font: inherit;
21
30
  }