@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.
- package/README.md +11 -1
- package/bin/desktop.mjs +143 -0
- package/bin/mun.mjs +27 -10
- package/native/mun-native/src/host_services.rs +202 -0
- package/native/mun-native/src/lib.rs +209 -42
- package/native/mun-native/src/text.rs +107 -16
- package/native/mun-runtime/src/collection.rs +18 -1
- package/native/mun-runtime/src/ir.rs +71 -1
- package/native/mun-runtime/src/layout.rs +85 -0
- package/native/mun-runtime/src/layout_cache.rs +6 -6
- package/native/mun-runtime/src/lib.rs +7 -4
- package/native/mun-runtime/src/runtime.rs +388 -17
- package/native/mun-runtime/src/scene.rs +37 -0
- package/native/mun-runtime/tests/host_services.rs +107 -0
- package/native/mun-runtime/tests/minimum_window_size.rs +80 -0
- package/native/mun-runtime/tests/priority_proposals.rs +69 -0
- package/native/mun-runtime/tests/text_proposals.rs +42 -0
- package/native/mun-runtime/tests/typography.rs +63 -0
- package/package.json +19 -16
- package/schemas/semantic-ui-ir-v1.schema.json +89 -0
- package/templates/desktop/gitignore +5 -0
- package/templates/desktop/package.json +10 -0
- package/templates/desktop/src-tauri/Cargo.toml +14 -0
- package/templates/desktop/src-tauri/build.rs +1 -0
- package/templates/desktop/src-tauri/capabilities/main.json +12 -0
- package/templates/desktop/src-tauri/icons/icon.icns +0 -0
- package/templates/desktop/src-tauri/icons/icon.ico +0 -0
- package/templates/desktop/src-tauri/icons/icon.png +0 -0
- package/templates/desktop/src-tauri/src/main.rs +2 -0
- package/templates/desktop/src-tauri/tauri.conf.json +42 -0
- package/templates/desktop/vite.config.ts +10 -0
- package/templates/project/package.json +3 -0
- package/templates/project/src/index.css +9 -0
|
@@ -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
|
}
|