@native-sdk/cli 0.0.0 → 0.4.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 (373) hide show
  1. package/LICENSE +176 -0
  2. package/README.md +50 -1
  3. package/app.zon +30 -0
  4. package/assets/icon.icns +0 -0
  5. package/assets/icon.ico +0 -0
  6. package/assets/icon.png +0 -0
  7. package/assets/icon.svg +15 -0
  8. package/assets/native-sdk.entitlements +10 -0
  9. package/assets/native-sdk.manifest +12 -0
  10. package/bin/native.js +156 -0
  11. package/build/app.zig +716 -0
  12. package/build.zig +2593 -0
  13. package/build.zig.zon +24 -0
  14. package/native-sdk.d.ts +615 -0
  15. package/package.json +45 -8
  16. package/skill-data/automation/SKILL.md +248 -0
  17. package/skill-data/core/SKILL.md +249 -0
  18. package/skill-data/core/references/app-model-runtime.md +141 -0
  19. package/skill-data/core/references/bridge-security-native-capabilities.md +230 -0
  20. package/skill-data/core/references/frontend-assets.md +124 -0
  21. package/skill-data/core/references/project-anatomy.md +108 -0
  22. package/skill-data/core/references/web-engines-packaging-debugging.md +199 -0
  23. package/skill-data/native-ui/SKILL.md +1080 -0
  24. package/skills/native-sdk/SKILL.md +33 -0
  25. package/src/app_runner/root.zig +740 -0
  26. package/src/assets/root.zig +20 -0
  27. package/src/automation/protocol.zig +285 -0
  28. package/src/automation/root.zig +13 -0
  29. package/src/automation/server.zig +506 -0
  30. package/src/automation/snapshot.zig +1202 -0
  31. package/src/automation/watcher.zig +165 -0
  32. package/src/bridge/root.zig +507 -0
  33. package/src/debug/root.zig +246 -0
  34. package/src/embed/app_exports.zig +11 -0
  35. package/src/embed/c_api.zig +793 -0
  36. package/src/embed/c_exports.zig +10 -0
  37. package/src/embed/chrome.zig +168 -0
  38. package/src/embed/conversions.zig +359 -0
  39. package/src/embed/host.zig +960 -0
  40. package/src/embed/root.zig +81 -0
  41. package/src/embed/tests.zig +2552 -0
  42. package/src/embed/types.zig +382 -0
  43. package/src/embed/ui_host.zig +289 -0
  44. package/src/extensions/root.zig +197 -0
  45. package/src/frontend/root.zig +48 -0
  46. package/src/js/root.zig +65 -0
  47. package/src/platform/android/NativeSdkActivity.java +1370 -0
  48. package/src/platform/android/android_host.c +696 -0
  49. package/src/platform/android/files.zig +9 -0
  50. package/src/platform/android/native_sdk_app.h +237 -0
  51. package/src/platform/ios/files.zig +8 -0
  52. package/src/platform/ios/native_sdk_app.h +289 -0
  53. package/src/platform/ios/uikit_host.m +2739 -0
  54. package/src/platform/linux/cef_host.cpp +599 -0
  55. package/src/platform/linux/gtk_host.c +5362 -0
  56. package/src/platform/linux/gtk_host.h +265 -0
  57. package/src/platform/linux/root.zig +1519 -0
  58. package/src/platform/macos/appkit_host.h +604 -0
  59. package/src/platform/macos/appkit_host.m +10392 -0
  60. package/src/platform/macos/automation_host.h +14 -0
  61. package/src/platform/macos/automation_host.m +12 -0
  62. package/src/platform/macos/cef_host.mm +3028 -0
  63. package/src/platform/macos/root.zig +2260 -0
  64. package/src/platform/null_platform.zig +2232 -0
  65. package/src/platform/null_platform_tests.zig +670 -0
  66. package/src/platform/policy_values.zig +14 -0
  67. package/src/platform/root.zig +181 -0
  68. package/src/platform/types.zig +2681 -0
  69. package/src/platform/windows/cef_host.cpp +3 -0
  70. package/src/platform/windows/root.zig +1521 -0
  71. package/src/platform/windows/webview2_host.cpp +6230 -0
  72. package/src/primitives/app_dirs/root.zig +440 -0
  73. package/src/primitives/app_manifest/root.zig +109 -0
  74. package/src/primitives/app_manifest/tests.zig +758 -0
  75. package/src/primitives/app_manifest/types.zig +587 -0
  76. package/src/primitives/app_manifest/validation.zig +828 -0
  77. package/src/primitives/assets/root.zig +520 -0
  78. package/src/primitives/canvas/a11y_audit.zig +390 -0
  79. package/src/primitives/canvas/a11y_audit_tests.zig +225 -0
  80. package/src/primitives/canvas/app_icon.zig +1590 -0
  81. package/src/primitives/canvas/chart.zig +392 -0
  82. package/src/primitives/canvas/chart_tests.zig +751 -0
  83. package/src/primitives/canvas/commands.zig +446 -0
  84. package/src/primitives/canvas/drawing.zig +309 -0
  85. package/src/primitives/canvas/equality.zig +316 -0
  86. package/src/primitives/canvas/events.zig +696 -0
  87. package/src/primitives/canvas/font_coverage.zig +118 -0
  88. package/src/primitives/canvas/font_ttf.zig +510 -0
  89. package/src/primitives/canvas/font_ttf_tests.zig +280 -0
  90. package/src/primitives/canvas/fonts/Geist-Regular.ttf +0 -0
  91. package/src/primitives/canvas/fonts/GeistMono-Regular.ttf +0 -0
  92. package/src/primitives/canvas/frame.zig +679 -0
  93. package/src/primitives/canvas/frame_metrics.zig +462 -0
  94. package/src/primitives/canvas/gpu.zig +639 -0
  95. package/src/primitives/canvas/hash.zig +112 -0
  96. package/src/primitives/canvas/icons/alert.svg +1 -0
  97. package/src/primitives/canvas/icons/archive.svg +1 -0
  98. package/src/primitives/canvas/icons/arrow-down.svg +1 -0
  99. package/src/primitives/canvas/icons/arrow-right.svg +1 -0
  100. package/src/primitives/canvas/icons/arrow-up.svg +1 -0
  101. package/src/primitives/canvas/icons/check-circle.svg +1 -0
  102. package/src/primitives/canvas/icons/check.svg +1 -0
  103. package/src/primitives/canvas/icons/chevron-down.svg +1 -0
  104. package/src/primitives/canvas/icons/chevron-left.svg +1 -0
  105. package/src/primitives/canvas/icons/chevron-right.svg +1 -0
  106. package/src/primitives/canvas/icons/chevron-up.svg +1 -0
  107. package/src/primitives/canvas/icons/circle-dot.svg +1 -0
  108. package/src/primitives/canvas/icons/clock.svg +1 -0
  109. package/src/primitives/canvas/icons/copy.svg +1 -0
  110. package/src/primitives/canvas/icons/download.svg +1 -0
  111. package/src/primitives/canvas/icons/edit.svg +1 -0
  112. package/src/primitives/canvas/icons/ellipsis.svg +1 -0
  113. package/src/primitives/canvas/icons/external-link.svg +1 -0
  114. package/src/primitives/canvas/icons/eye.svg +1 -0
  115. package/src/primitives/canvas/icons/file-text.svg +1 -0
  116. package/src/primitives/canvas/icons/folder-open.svg +1 -0
  117. package/src/primitives/canvas/icons/folder.svg +1 -0
  118. package/src/primitives/canvas/icons/git-branch.svg +1 -0
  119. package/src/primitives/canvas/icons/git-merge.svg +1 -0
  120. package/src/primitives/canvas/icons/git-pull-request.svg +1 -0
  121. package/src/primitives/canvas/icons/info.svg +1 -0
  122. package/src/primitives/canvas/icons/menu.svg +1 -0
  123. package/src/primitives/canvas/icons/missing.svg +1 -0
  124. package/src/primitives/canvas/icons/moon.svg +1 -0
  125. package/src/primitives/canvas/icons/music.svg +1 -0
  126. package/src/primitives/canvas/icons/panel-left.svg +1 -0
  127. package/src/primitives/canvas/icons/panel-right.svg +1 -0
  128. package/src/primitives/canvas/icons/pause.svg +1 -0
  129. package/src/primitives/canvas/icons/play.svg +1 -0
  130. package/src/primitives/canvas/icons/plus.svg +1 -0
  131. package/src/primitives/canvas/icons/refresh-cw.svg +1 -0
  132. package/src/primitives/canvas/icons/repeat.svg +1 -0
  133. package/src/primitives/canvas/icons/save.svg +1 -0
  134. package/src/primitives/canvas/icons/search.svg +1 -0
  135. package/src/primitives/canvas/icons/send.svg +1 -0
  136. package/src/primitives/canvas/icons/settings.svg +1 -0
  137. package/src/primitives/canvas/icons/shuffle.svg +1 -0
  138. package/src/primitives/canvas/icons/skip-back.svg +1 -0
  139. package/src/primitives/canvas/icons/skip-forward.svg +1 -0
  140. package/src/primitives/canvas/icons/sun.svg +1 -0
  141. package/src/primitives/canvas/icons/terminal.svg +1 -0
  142. package/src/primitives/canvas/icons/trash.svg +1 -0
  143. package/src/primitives/canvas/icons/volume.svg +1 -0
  144. package/src/primitives/canvas/icons/wrench.svg +1 -0
  145. package/src/primitives/canvas/icons/x-circle.svg +1 -0
  146. package/src/primitives/canvas/icons/x.svg +1 -0
  147. package/src/primitives/canvas/icons.zig +249 -0
  148. package/src/primitives/canvas/layout_audit.zig +744 -0
  149. package/src/primitives/canvas/layout_audit_tests.zig +426 -0
  150. package/src/primitives/canvas/markdown.zig +1031 -0
  151. package/src/primitives/canvas/markdown_hostile_tests.zig +471 -0
  152. package/src/primitives/canvas/markdown_tests.zig +538 -0
  153. package/src/primitives/canvas/plan_key_index.zig +120 -0
  154. package/src/primitives/canvas/png.zig +355 -0
  155. package/src/primitives/canvas/reference.zig +1457 -0
  156. package/src/primitives/canvas/reference_blur.zig +104 -0
  157. package/src/primitives/canvas/reference_memo.zig +322 -0
  158. package/src/primitives/canvas/reference_paths.zig +184 -0
  159. package/src/primitives/canvas/reference_tests.zig +1650 -0
  160. package/src/primitives/canvas/render.zig +747 -0
  161. package/src/primitives/canvas/render_effects.zig +255 -0
  162. package/src/primitives/canvas/render_fingerprints.zig +256 -0
  163. package/src/primitives/canvas/render_generic_resources.zig +376 -0
  164. package/src/primitives/canvas/render_images.zig +247 -0
  165. package/src/primitives/canvas/render_layers.zig +260 -0
  166. package/src/primitives/canvas/render_paths.zig +347 -0
  167. package/src/primitives/canvas/render_resources.zig +51 -0
  168. package/src/primitives/canvas/render_tests.zig +3186 -0
  169. package/src/primitives/canvas/root.zig +744 -0
  170. package/src/primitives/canvas/serialization.zig +1528 -0
  171. package/src/primitives/canvas/svg_icon.zig +636 -0
  172. package/src/primitives/canvas/svg_icon_tests.zig +312 -0
  173. package/src/primitives/canvas/test_support.zig +422 -0
  174. package/src/primitives/canvas/testdata/markdown_document.md +83 -0
  175. package/src/primitives/canvas/tests.zig +30 -0
  176. package/src/primitives/canvas/text.zig +82 -0
  177. package/src/primitives/canvas/text_atlas.zig +408 -0
  178. package/src/primitives/canvas/text_batch_tests.zig +431 -0
  179. package/src/primitives/canvas/text_interaction.zig +615 -0
  180. package/src/primitives/canvas/text_layout.zig +1069 -0
  181. package/src/primitives/canvas/text_layout_cache.zig +281 -0
  182. package/src/primitives/canvas/text_layout_hash.zig +113 -0
  183. package/src/primitives/canvas/text_layout_types.zig +128 -0
  184. package/src/primitives/canvas/text_measure_cache.zig +279 -0
  185. package/src/primitives/canvas/text_metrics.zig +309 -0
  186. package/src/primitives/canvas/text_metrics_tests.zig +262 -0
  187. package/src/primitives/canvas/text_span_tests.zig +608 -0
  188. package/src/primitives/canvas/text_spans.zig +1010 -0
  189. package/src/primitives/canvas/text_tests.zig +1949 -0
  190. package/src/primitives/canvas/themes/geist.zig +470 -0
  191. package/src/primitives/canvas/tokens.zig +1522 -0
  192. package/src/primitives/canvas/ui.zig +2686 -0
  193. package/src/primitives/canvas/ui_markup.zig +3791 -0
  194. package/src/primitives/canvas/ui_markup_binary.zig +522 -0
  195. package/src/primitives/canvas/ui_markup_binary_tests.zig +591 -0
  196. package/src/primitives/canvas/ui_markup_compiled.zig +2565 -0
  197. package/src/primitives/canvas/ui_markup_compiled_tests.zig +1669 -0
  198. package/src/primitives/canvas/ui_markup_contract.zig +1620 -0
  199. package/src/primitives/canvas/ui_markup_contract_tests.zig +953 -0
  200. package/src/primitives/canvas/ui_markup_edit.zig +416 -0
  201. package/src/primitives/canvas/ui_markup_edit_tests.zig +341 -0
  202. package/src/primitives/canvas/ui_markup_expr.zig +1152 -0
  203. package/src/primitives/canvas/ui_markup_expr_tests.zig +779 -0
  204. package/src/primitives/canvas/ui_markup_huge_model_tests.zig +505 -0
  205. package/src/primitives/canvas/ui_markup_reflect.zig +127 -0
  206. package/src/primitives/canvas/ui_markup_tests.zig +1545 -0
  207. package/src/primitives/canvas/ui_markup_view.zig +2352 -0
  208. package/src/primitives/canvas/ui_markup_view_tests.zig +3709 -0
  209. package/src/primitives/canvas/ui_provenance.zig +96 -0
  210. package/src/primitives/canvas/ui_provenance_tests.zig +186 -0
  211. package/src/primitives/canvas/ui_schema.zig +825 -0
  212. package/src/primitives/canvas/ui_schema_tests.zig +128 -0
  213. package/src/primitives/canvas/ui_tests.zig +1432 -0
  214. package/src/primitives/canvas/vector.zig +919 -0
  215. package/src/primitives/canvas/vector_tests.zig +547 -0
  216. package/src/primitives/canvas/virtual_extent_tests.zig +317 -0
  217. package/src/primitives/canvas/virtual_extents.zig +540 -0
  218. package/src/primitives/canvas/widget_access.zig +208 -0
  219. package/src/primitives/canvas/widget_anchored_tests.zig +264 -0
  220. package/src/primitives/canvas/widget_builtin_tests.zig +3160 -0
  221. package/src/primitives/canvas/widget_invalidation.zig +748 -0
  222. package/src/primitives/canvas/widget_layout.zig +2055 -0
  223. package/src/primitives/canvas/widget_layout_tests.zig +2691 -0
  224. package/src/primitives/canvas/widget_metrics.zig +228 -0
  225. package/src/primitives/canvas/widget_render.zig +2534 -0
  226. package/src/primitives/canvas/widget_render_controls.zig +1563 -0
  227. package/src/primitives/canvas/widget_render_scroll.zig +136 -0
  228. package/src/primitives/canvas/widget_render_style.zig +626 -0
  229. package/src/primitives/canvas/widget_render_surfaces.zig +794 -0
  230. package/src/primitives/canvas/widget_routing.zig +475 -0
  231. package/src/primitives/canvas/widget_runtime.zig +307 -0
  232. package/src/primitives/canvas/widget_runtime_tests.zig +3015 -0
  233. package/src/primitives/canvas/widget_semantics.zig +480 -0
  234. package/src/primitives/canvas/widget_semantics_tests.zig +2129 -0
  235. package/src/primitives/canvas/widget_tests.zig +8 -0
  236. package/src/primitives/canvas/widget_text_input.zig +351 -0
  237. package/src/primitives/canvas/widget_text_select.zig +147 -0
  238. package/src/primitives/canvas/widget_tree.zig +232 -0
  239. package/src/primitives/canvas/widgets.zig +1319 -0
  240. package/src/primitives/diagnostics/root.zig +445 -0
  241. package/src/primitives/geometry/root.zig +889 -0
  242. package/src/primitives/json/root.zig +272 -0
  243. package/src/primitives/platform_info/root.zig +450 -0
  244. package/src/primitives/trace/root.zig +569 -0
  245. package/src/root.zig +165 -0
  246. package/src/runtime/api.zig +431 -0
  247. package/src/runtime/async_bridge.zig +49 -0
  248. package/src/runtime/automation_commands.zig +686 -0
  249. package/src/runtime/automation_liveness_tests.zig +140 -0
  250. package/src/runtime/automation_snapshot.zig +246 -0
  251. package/src/runtime/automation_widget_dispatch.zig +617 -0
  252. package/src/runtime/bridge_dispatch_tests.zig +202 -0
  253. package/src/runtime/bridge_payload.zig +194 -0
  254. package/src/runtime/bridge_permission_tests.zig +551 -0
  255. package/src/runtime/bridge_responses.zig +414 -0
  256. package/src/runtime/builtin_bridge.zig +554 -0
  257. package/src/runtime/canvas_budget_edge_tests.zig +415 -0
  258. package/src/runtime/canvas_font_tests.zig +410 -0
  259. package/src/runtime/canvas_fonts.zig +229 -0
  260. package/src/runtime/canvas_frame.zig +1734 -0
  261. package/src/runtime/canvas_frame_animation_tests.zig +609 -0
  262. package/src/runtime/canvas_frame_cache_tests.zig +333 -0
  263. package/src/runtime/canvas_frame_helpers.zig +414 -0
  264. package/src/runtime/canvas_frame_invalidation_tests.zig +544 -0
  265. package/src/runtime/canvas_frame_packet_tests.zig +1353 -0
  266. package/src/runtime/canvas_frame_patch_tests.zig +1051 -0
  267. package/src/runtime/canvas_frame_retained_tests.zig +753 -0
  268. package/src/runtime/canvas_frame_tests.zig +9 -0
  269. package/src/runtime/canvas_frame_text_layout_budget_tests.zig +149 -0
  270. package/src/runtime/canvas_image_tests.zig +362 -0
  271. package/src/runtime/canvas_images.zig +224 -0
  272. package/src/runtime/canvas_limits.zig +317 -0
  273. package/src/runtime/canvas_screenshot_tests.zig +289 -0
  274. package/src/runtime/canvas_widget_accessibility_tests.zig +1494 -0
  275. package/src/runtime/canvas_widget_anchored_tests.zig +678 -0
  276. package/src/runtime/canvas_widget_chart_tests.zig +249 -0
  277. package/src/runtime/canvas_widget_clipboard_tests.zig +399 -0
  278. package/src/runtime/canvas_widget_context_menu.zig +318 -0
  279. package/src/runtime/canvas_widget_context_menu_tests.zig +462 -0
  280. package/src/runtime/canvas_widget_control_tests.zig +2164 -0
  281. package/src/runtime/canvas_widget_disclosure_tests.zig +440 -0
  282. package/src/runtime/canvas_widget_display.zig +677 -0
  283. package/src/runtime/canvas_widget_event_tests.zig +1779 -0
  284. package/src/runtime/canvas_widget_events.zig +1098 -0
  285. package/src/runtime/canvas_widget_floating_tests.zig +695 -0
  286. package/src/runtime/canvas_widget_layout_tests.zig +26 -0
  287. package/src/runtime/canvas_widget_runtime.zig +1335 -0
  288. package/src/runtime/canvas_widget_scroll_driver_tests.zig +582 -0
  289. package/src/runtime/canvas_widget_scroll_drivers.zig +202 -0
  290. package/src/runtime/canvas_widget_scroll_tests.zig +1549 -0
  291. package/src/runtime/canvas_widget_semantics_tests.zig +810 -0
  292. package/src/runtime/canvas_widget_split_tree_tests.zig +1031 -0
  293. package/src/runtime/canvas_widget_state.zig +798 -0
  294. package/src/runtime/canvas_widget_text_tests.zig +2104 -0
  295. package/src/runtime/canvas_widget_window_drag_tests.zig +284 -0
  296. package/src/runtime/clock.zig +231 -0
  297. package/src/runtime/core.zig +927 -0
  298. package/src/runtime/effects.zig +4197 -0
  299. package/src/runtime/effects_audio_tests.zig +690 -0
  300. package/src/runtime/effects_clipboard_tests.zig +317 -0
  301. package/src/runtime/effects_fetch_tests.zig +1031 -0
  302. package/src/runtime/effects_file_tests.zig +407 -0
  303. package/src/runtime/effects_tests.zig +1251 -0
  304. package/src/runtime/flow.zig +1175 -0
  305. package/src/runtime/frame_profile.zig +221 -0
  306. package/src/runtime/gpu_surface_events.zig +639 -0
  307. package/src/runtime/launch_timing.zig +59 -0
  308. package/src/runtime/markdown_app_tests.zig +224 -0
  309. package/src/runtime/native_command_event_tests.zig +431 -0
  310. package/src/runtime/platform_bridge_tests.zig +8 -0
  311. package/src/runtime/platform_config_tests.zig +392 -0
  312. package/src/runtime/root.zig +150 -0
  313. package/src/runtime/runtime_event_tests.zig +1079 -0
  314. package/src/runtime/session_journal.zig +1522 -0
  315. package/src/runtime/session_record.zig +332 -0
  316. package/src/runtime/session_replay.zig +274 -0
  317. package/src/runtime/session_state.zig +30 -0
  318. package/src/runtime/session_tests.zig +399 -0
  319. package/src/runtime/shell_layout.zig +472 -0
  320. package/src/runtime/shell_layout_tests.zig +1246 -0
  321. package/src/runtime/shell_view_tests.zig +604 -0
  322. package/src/runtime/state.zig +110 -0
  323. package/src/runtime/system_services.zig +392 -0
  324. package/src/runtime/test_support.zig +79 -0
  325. package/src/runtime/tests.zig +30 -0
  326. package/src/runtime/ui_app.zig +3290 -0
  327. package/src/runtime/ui_app_huge_model_tests.zig +351 -0
  328. package/src/runtime/ui_app_provenance.zig +370 -0
  329. package/src/runtime/ui_app_tests.zig +3254 -0
  330. package/src/runtime/ui_app_virtual_variable_tests.zig +485 -0
  331. package/src/runtime/ui_app_window_tests.zig +442 -0
  332. package/src/runtime/validation.zig +206 -0
  333. package/src/runtime/view.zig +908 -0
  334. package/src/runtime/view_canvas.zig +850 -0
  335. package/src/runtime/view_widget_control.zig +433 -0
  336. package/src/runtime/view_widget_scroll.zig +360 -0
  337. package/src/runtime/view_widget_text.zig +275 -0
  338. package/src/runtime/view_widget_tree.zig +843 -0
  339. package/src/runtime/webview_view_bridge_tests.zig +664 -0
  340. package/src/runtime/widget_bridge.zig +231 -0
  341. package/src/runtime/window_command_bridge_tests.zig +403 -0
  342. package/src/runtime/window_storage.zig +255 -0
  343. package/src/runtime/window_view_runtime.zig +727 -0
  344. package/src/runtime/window_views.zig +334 -0
  345. package/src/security/root.zig +118 -0
  346. package/src/tooling/android.zig +1172 -0
  347. package/src/tooling/assets.zig +128 -0
  348. package/src/tooling/buildgraph.zig +379 -0
  349. package/src/tooling/cef.zig +671 -0
  350. package/src/tooling/codesign.zig +172 -0
  351. package/src/tooling/components/identity_tests.zig +185 -0
  352. package/src/tooling/components/stepper.zig +113 -0
  353. package/src/tooling/components/timeline.native +27 -0
  354. package/src/tooling/components/timeline_item.zig +131 -0
  355. package/src/tooling/default_icon.icns +0 -0
  356. package/src/tooling/default_icon.png +0 -0
  357. package/src/tooling/dev.zig +172 -0
  358. package/src/tooling/doctor.zig +349 -0
  359. package/src/tooling/eject_components.zig +170 -0
  360. package/src/tooling/embedlib.zig +290 -0
  361. package/src/tooling/ios.zig +528 -0
  362. package/src/tooling/manifest.zig +1939 -0
  363. package/src/tooling/package.zig +2388 -0
  364. package/src/tooling/process_tree.zig +114 -0
  365. package/src/tooling/raw_manifest.zig +193 -0
  366. package/src/tooling/root.zig +22 -0
  367. package/src/tooling/templates.zig +3191 -0
  368. package/src/tooling/toolchain.zig +371 -0
  369. package/src/tooling/verbs.zig +204 -0
  370. package/src/tooling/web_engine.zig +135 -0
  371. package/src/tooling/xcodeproj.zig +462 -0
  372. package/src/window_state/root.zig +507 -0
  373. package/index.js +0 -2
@@ -0,0 +1,470 @@
1
+ //! The Geist theme pack: the design register of the bundled Geist
2
+ //! typeface family, expressed entirely through the token surface — no
3
+ //! emitter knows this file exists. The register in one breath: a cool
4
+ //! neutral gray scale over pure white/black pages, monochrome primaries
5
+ //! (pure-black filled controls in light, porcelain in dark), blue spent
6
+ //! on focus rings and identity states, translucent hairline borders in
7
+ //! BOTH schemes, uniform 6px control corners with 12px surfaces, and a
8
+ //! taller 32/40/48 control ladder whose insets breathe with the rung
9
+ //! (6/10/14) while the large rung also steps its label up to 16.
10
+ //!
11
+ //! Every color below is a named step of the pack's published scales,
12
+ //! quoted as sRGB hex in the comments so the file is self-contained.
13
+ //! The scale's state semantics, used throughout: step 100 is a resting
14
+ //! wash, 200 hover, 300 active; 400-600 are borders; 700-800 solid
15
+ //! fills; 900 secondary ink; 1000 primary ink.
16
+
17
+ const std = @import("std");
18
+ const token_model = @import("../tokens.zig");
19
+ const drawing_model = @import("../drawing.zig");
20
+
21
+ const Color = drawing_model.Color;
22
+ const ColorScheme = token_model.ColorScheme;
23
+ const ColorContrast = token_model.ColorContrast;
24
+ const DesignTokens = token_model.DesignTokens;
25
+ const ColorTokens = token_model.ColorTokens;
26
+ const ControlTokens = token_model.ControlTokens;
27
+
28
+ /// The full Geist register for one scheme/contrast pair. Motion and
29
+ /// density arrive from `ThemeOptions` on top (see `DesignTokens.theme`),
30
+ /// so this function owns everything scheme-shaped: palette, control
31
+ /// tables, type scale, radii, metrics, and shadows.
32
+ pub fn designTokens(color_scheme: ColorScheme, contrast: ColorContrast) DesignTokens {
33
+ return .{
34
+ .colors = colorTokens(color_scheme, contrast),
35
+ .controls = controlTokens(color_scheme, contrast),
36
+ .typography = .{
37
+ // The pack's type rungs: copy-14 body, label-13 labels,
38
+ // heading-20 titles, heading-24 section headings, and the
39
+ // 48px display numeral. Button labels are the medium face
40
+ // at 14 (the default resolution already picks the bundled
41
+ // medium companion).
42
+ .body_size = 14,
43
+ .label_size = 13,
44
+ .title_size = 20,
45
+ .button_size = 14,
46
+ .heading_size = 24,
47
+ .display_size = 48,
48
+ },
49
+ // One 6px corner across the control register (buttons, inputs,
50
+ // triggers — sm and lg rungs included, stated per control table
51
+ // below); floating surfaces sit on 12.
52
+ .radius = .{ .sm = 6, .md = 6, .lg = 6, .xl = 12 },
53
+ // Focus is a two-layer ring: a 2px gap in the surface color,
54
+ // then a 2px blue ring — the stroke defaults already carry that
55
+ // geometry, restated here so the pack is explicit about it.
56
+ .stroke = .{ .hairline = 1, .regular = 1, .focus = 2, .focus_offset = 2 },
57
+ // Shadows are quiet: a 2px settle under raised cards, one
58
+ // dominant 16/24 layer under overlays. Buttons stay flat.
59
+ .shadow = .{
60
+ .xs = .{ .y = 1, .blur = 2, .spread = 0 },
61
+ .sm = .{ .y = 2, .blur = 2, .spread = 0 },
62
+ .md = .{ .y = 16, .blur = 24, .spread = -8 },
63
+ },
64
+ // The pack's motion register: ~150ms state changes, 200ms
65
+ // popovers, 300ms overlays, on the standard curve.
66
+ .motion = .{ .fast_ms = 150, .normal_ms = 200, .slow_ms = 300 },
67
+ // The taller control ladder: 32/40/48 heights with insets that
68
+ // breathe per rung (6/10/14). The compact rung keeps the full
69
+ // 14px label (a genuinely roomier register than the house 28px
70
+ // box), and the large rung steps its label up to 16.
71
+ .metrics = .{
72
+ .control_height_sm = 32,
73
+ .control_height = 40,
74
+ .control_height_lg = 48,
75
+ .button_inset_sm = 6,
76
+ .button_inset = 10,
77
+ .button_inset_lg = 14,
78
+ .button_label_sm_step = 0,
79
+ .button_label_lg_step = 2,
80
+ // The pack's slider geometry: an 8px rail under a narrow
81
+ // 6x14 rectangular grab handle — the handle stands proud of
82
+ // the rail instead of dwarfing it, the opposite proportion
83
+ // of the house dot-on-a-line.
84
+ .slider_track_height = 8,
85
+ .slider_thumb_width = 6,
86
+ .slider_thumb_height = 14,
87
+ // The underline tab register's selected bar: a 2px rule in
88
+ // the primary ink under the active label (see the tabs
89
+ // entries in `controlTokens` below).
90
+ .tabs_indicator_thickness = 2,
91
+ // The underline register's inter-trigger gap: measured at a
92
+ // 24px flex gap between triggers on the reference strip
93
+ // (28px optical once each trigger's 2px horizontal padding
94
+ // is counted). Applied only when the author leaves the
95
+ // strip's gap at 0.
96
+ .tabs_gap = 24,
97
+ // The detached button-group register's inter-chip gap (see
98
+ // the `button_group` entries in `controlTokens` below):
99
+ // measured at 8px between chips on the reference strip.
100
+ .button_group_gap = 8,
101
+ // The pack's activity indicator is the segmented dial, not
102
+ // the house arc: twelve radial pills (measured at the 20px
103
+ // default — pill length a quarter of the box, thickness a
104
+ // tenth, pill centers orbiting at 0.365 of the box), the
105
+ // trail fading linearly to a 15% floor, one head-lap every
106
+ // 1.2s. The runtime staggers one opacity loop per pill, so
107
+ // the bright head steps around the dial while every pill
108
+ // holds its angle — stepped occupancy, never rotation.
109
+ .spinner_style = .segmented,
110
+ .spinner_segment_count = 12,
111
+ .spinner_segment_length_ratio = 0.25,
112
+ .spinner_segment_thickness_ratio = 0.1,
113
+ .spinner_segment_radius_ratio = 0.365,
114
+ .spinner_tail_opacity = 0.15,
115
+ .spinner_period_ms = 1200,
116
+ },
117
+ };
118
+ }
119
+
120
+ fn colorTokens(color_scheme: ColorScheme, contrast: ColorContrast) ColorTokens {
121
+ return switch (color_scheme) {
122
+ .light => switch (contrast) {
123
+ .standard => light(),
124
+ .high => highContrastLight(),
125
+ },
126
+ .dark => switch (contrast) {
127
+ .standard => dark(),
128
+ .high => highContrastDark(),
129
+ },
130
+ };
131
+ }
132
+
133
+ /// Light palette. Neutrals are the pack's gray scale; the border is a
134
+ /// translucent black hairline (8%) so dividers tint whatever they
135
+ /// cross; blue is spent only on focus and the info identity hue.
136
+ fn light() ColorTokens {
137
+ return .{
138
+ // Pure white page and card — elevation comes from the border
139
+ // and shadow, never a tinted surface.
140
+ .background = Color.rgb8(255, 255, 255),
141
+ .surface = Color.rgb8(255, 255, 255),
142
+ // Hover wash: gray-100 #f2f2f2.
143
+ .surface_subtle = Color.rgb8(242, 242, 242),
144
+ // Pressed/selected wash and input tracks: gray-200 #ebebeb.
145
+ .surface_pressed = Color.rgb8(235, 235, 235),
146
+ // Primary ink: gray-1000 #171717.
147
+ .text = Color.rgb8(23, 23, 23),
148
+ // Secondary ink: gray-900 #4d4d4d.
149
+ .text_muted = Color.rgb8(77, 77, 77),
150
+ // Hairline: black at 8% — the translucent border register.
151
+ .border = Color.rgba8(0, 0, 0, 20),
152
+ // The monochrome primary FILL: pure black #000000 filled
153
+ // controls (button, checked toggle/checkbox, selected states)
154
+ // with white knockout text — the register's true-black control
155
+ // step, deliberately one step past the gray-1000 #171717 primary
156
+ // INK above. The two blacks are distinct roles, not a mismatch:
157
+ // ink tops out at gray-1000, fills go to the scale's extreme.
158
+ .accent = Color.rgb8(0, 0, 0),
159
+ .accent_text = Color.rgb8(255, 255, 255),
160
+ // Error solid: red-800 #ea001d under white text.
161
+ .destructive = Color.rgb8(234, 0, 29),
162
+ .destructive_text = Color.rgb8(255, 255, 255),
163
+ // Success solid: green-700 #28a948.
164
+ .success = Color.rgb8(40, 169, 72),
165
+ .success_text = Color.rgb8(255, 255, 255),
166
+ // Warning solid: amber-800 #ff9300 — bright enough to demand
167
+ // dark ink on top.
168
+ .warning = Color.rgb8(255, 147, 0),
169
+ .warning_text = Color.rgb8(10, 10, 10),
170
+ // Info identity: blue-700 #006bff, the pack's one loud hue.
171
+ .info = Color.rgb8(0, 107, 255),
172
+ .info_text = Color.rgb8(255, 255, 255),
173
+ // Focus ring: blue-700 #006bff — focus is BLUE in this pack,
174
+ // never a neutral outline.
175
+ .focus_ring = Color.rgb8(0, 107, 255),
176
+ // Quiet shadows: 4% black.
177
+ .shadow = Color.rgba8(0, 0, 0, 10),
178
+ .scrim = Color.rgba8(0, 0, 0, 26),
179
+ // Disabled fill: gray-100 #f2f2f2 (paired with gray-700 ink in
180
+ // the control tables).
181
+ .disabled = Color.rgb8(242, 242, 242),
182
+ };
183
+ }
184
+
185
+ /// Dark palette. The page is pure black; cards stay black and separate
186
+ /// by translucent white hairlines (14%); the monochrome primary flips
187
+ /// to porcelain; the semantic hues take their bright ink steps so they
188
+ /// read on black, with near-black knockout text on the bright fills.
189
+ fn dark() ColorTokens {
190
+ return .{
191
+ .background = Color.rgb8(0, 0, 0),
192
+ .surface = Color.rgb8(0, 0, 0),
193
+ // Hover wash: gray-100 #1a1a1a.
194
+ .surface_subtle = Color.rgb8(26, 26, 26),
195
+ // Pressed/selected wash: gray-300 #292929 — one visible step
196
+ // past hover on a black page.
197
+ .surface_pressed = Color.rgb8(41, 41, 41),
198
+ // Primary ink: gray-1000 #ededed.
199
+ .text = Color.rgb8(237, 237, 237),
200
+ // Secondary ink: gray-900 #a0a0a0.
201
+ .text_muted = Color.rgb8(160, 160, 160),
202
+ // Hairline: white at 14% — hairlines brighten what they overlap.
203
+ .border = Color.rgba8(255, 255, 255, 36),
204
+ // Porcelain primary with black knockout text.
205
+ .accent = Color.rgb8(237, 237, 237),
206
+ .accent_text = Color.rgb8(0, 0, 0),
207
+ // Error ink: red-900 #ff565f (the filled error button states
208
+ // its own darker fill in the control tables).
209
+ .destructive = Color.rgb8(255, 86, 95),
210
+ .destructive_text = Color.rgb8(255, 255, 255),
211
+ // Success ink: green-900 #00ca50.
212
+ .success = Color.rgb8(0, 202, 80),
213
+ .success_text = Color.rgb8(10, 10, 10),
214
+ // Warning: amber-800 #ff9300 in both schemes.
215
+ .warning = Color.rgb8(255, 147, 0),
216
+ .warning_text = Color.rgb8(10, 10, 10),
217
+ // Info identity: blue-900 #47a8ff, the dark-scheme link/focus
218
+ // blue.
219
+ .info = Color.rgb8(71, 168, 255),
220
+ .info_text = Color.rgb8(10, 10, 10),
221
+ // Focus ring: blue-900 #47a8ff.
222
+ .focus_ring = Color.rgb8(71, 168, 255),
223
+ // 16% black shadow — visible against near-black surfaces only
224
+ // as a settle, matching the quiet light register.
225
+ .shadow = Color.rgba8(0, 0, 0, 41),
226
+ .scrim = Color.rgba8(0, 0, 0, 26),
227
+ // Disabled fill: gray-100 #1a1a1a.
228
+ .disabled = Color.rgb8(26, 26, 26),
229
+ };
230
+ }
231
+
232
+ /// High-contrast light: the standard register pushed to its extremes —
233
+ /// pure black ink, near-opaque borders, the deeper blue-800 focus ring
234
+ /// and darker solid hues so every pairing clears the loud-contrast bar.
235
+ fn highContrastLight() ColorTokens {
236
+ return .{
237
+ .background = Color.rgb8(255, 255, 255),
238
+ .surface = Color.rgb8(255, 255, 255),
239
+ .surface_subtle = Color.rgb8(242, 242, 242),
240
+ .surface_pressed = Color.rgb8(235, 235, 235),
241
+ .text = Color.rgb8(0, 0, 0),
242
+ // Secondary ink darkens to gray-1000.
243
+ .text_muted = Color.rgb8(23, 23, 23),
244
+ .border = Color.rgba8(0, 0, 0, 180),
245
+ .accent = Color.rgb8(0, 0, 0),
246
+ .accent_text = Color.rgb8(255, 255, 255),
247
+ // Deeper solid steps: red-900 #d8001b, green-900 #107d32,
248
+ // amber-900 #aa4d00, blue-800 #0059ec — all under white text.
249
+ .destructive = Color.rgb8(216, 0, 27),
250
+ .destructive_text = Color.rgb8(255, 255, 255),
251
+ .success = Color.rgb8(16, 125, 50),
252
+ .success_text = Color.rgb8(255, 255, 255),
253
+ .warning = Color.rgb8(170, 77, 0),
254
+ .warning_text = Color.rgb8(255, 255, 255),
255
+ .info = Color.rgb8(0, 89, 236),
256
+ .info_text = Color.rgb8(255, 255, 255),
257
+ // The ring keeps the pack's blue identity at its deep step.
258
+ .focus_ring = Color.rgb8(0, 89, 236),
259
+ .shadow = Color.rgba8(0, 0, 0, 96),
260
+ // High contrast trades the glass treatment for a decisive dim.
261
+ .scrim = Color.rgba8(0, 0, 0, 160),
262
+ // Disabled darkens to gray-500 #c9c9c9 so the mute itself stays
263
+ // visible.
264
+ .disabled = Color.rgb8(201, 201, 201),
265
+ };
266
+ }
267
+
268
+ /// High-contrast dark: pure white ink on black, near-opaque hairlines,
269
+ /// and the pale blue-500 ring so focus shouts on any dark surface.
270
+ fn highContrastDark() ColorTokens {
271
+ return .{
272
+ .background = Color.rgb8(0, 0, 0),
273
+ .surface = Color.rgb8(0, 0, 0),
274
+ .surface_subtle = Color.rgb8(26, 26, 26),
275
+ .surface_pressed = Color.rgb8(41, 41, 41),
276
+ .text = Color.rgb8(255, 255, 255),
277
+ .text_muted = Color.rgb8(237, 237, 237),
278
+ .border = Color.rgba8(255, 255, 255, 190),
279
+ .accent = Color.rgb8(255, 255, 255),
280
+ .accent_text = Color.rgb8(0, 0, 0),
281
+ // The bright ink steps under black knockout text: red-500
282
+ // #ffb1b3-class pairings, kept at the scheme's 900 inks where
283
+ // those already clear the bar.
284
+ .destructive = Color.rgb8(255, 86, 95),
285
+ .destructive_text = Color.rgb8(0, 0, 0),
286
+ .success = Color.rgb8(0, 202, 80),
287
+ .success_text = Color.rgb8(0, 0, 0),
288
+ .warning = Color.rgb8(255, 197, 67),
289
+ .warning_text = Color.rgb8(0, 0, 0),
290
+ .info = Color.rgb8(148, 204, 255),
291
+ .info_text = Color.rgb8(0, 0, 0),
292
+ // Pale blue-500 #94ccff ring.
293
+ .focus_ring = Color.rgb8(148, 204, 255),
294
+ .shadow = Color.rgba8(0, 0, 0, 180),
295
+ .scrim = Color.rgba8(0, 0, 0, 200),
296
+ .disabled = Color.rgb8(69, 69, 69),
297
+ };
298
+ }
299
+
300
+ /// The pack's control tables: the treatments that are MORE than a
301
+ /// palette swap. Geist's disabled register is a color SWAP (gray-100
302
+ /// chip under gray-700 ink — the new disabled channels exist for
303
+ /// exactly this), its destructive button is a FILLED error block
304
+ /// rather than the house quiet chip, and its floating surfaces sit on
305
+ /// the 12px corner while controls hold 6.
306
+ fn controlTokens(color_scheme: ColorScheme, contrast: ColorContrast) ControlTokens {
307
+ const colors = colorTokens(color_scheme, contrast);
308
+ // Disabled pair: gray-100 fill under gray-700 #8f8f8f ink, the same
309
+ // hex in both schemes (the scales cross at their quiet middle).
310
+ const disabled_background = colors.disabled;
311
+ const disabled_foreground = Color.rgb8(143, 143, 143);
312
+ // The filled error button: solid red under white text, hover one
313
+ // step deeper in light (red-900 #d8001b) and one step brighter in
314
+ // dark (red-700 #f13242) — feedback moves TOWARD the scheme's ink.
315
+ const destructive_rest: Color = switch (color_scheme) {
316
+ .light => switch (contrast) {
317
+ .standard => Color.rgb8(234, 0, 29),
318
+ .high => Color.rgb8(216, 0, 27),
319
+ },
320
+ .dark => Color.rgb8(226, 22, 42),
321
+ };
322
+ const destructive_hover: Color = switch (color_scheme) {
323
+ .light => Color.rgb8(216, 0, 27),
324
+ .dark => Color.rgb8(241, 50, 66),
325
+ };
326
+ const surface_radius: f32 = 12;
327
+ return .{
328
+ .button_default = .{
329
+ .disabled_background = disabled_background,
330
+ .disabled_foreground = disabled_foreground,
331
+ },
332
+ .button_primary = .{
333
+ .disabled_background = disabled_background,
334
+ .disabled_foreground = disabled_foreground,
335
+ },
336
+ .button_secondary = .{
337
+ .disabled_background = disabled_background,
338
+ .disabled_foreground = disabled_foreground,
339
+ },
340
+ .button_outline = .{
341
+ // The outline body is the page itself in both schemes (the
342
+ // pack's dark register keeps opaque black bodies under its
343
+ // translucent hairlines — no glass treatment).
344
+ .background = colors.background,
345
+ .disabled_background = disabled_background,
346
+ .disabled_foreground = disabled_foreground,
347
+ },
348
+ .button_destructive = .{
349
+ .background = destructive_rest,
350
+ .hover_background = destructive_hover,
351
+ .foreground = colors.destructive_text,
352
+ .disabled_background = disabled_background,
353
+ .disabled_foreground = disabled_foreground,
354
+ .stroke_width = 0,
355
+ },
356
+ // The slider is the one control whose fill keeps a hue in the
357
+ // monochrome register: rail on gray-200, range in blue-700 (the
358
+ // same #0072f5 step in both schemes), and a paper-white
359
+ // rectangular handle with a black hairline — translucent over
360
+ // light pages, solid on dark ones so the white chip keeps a
361
+ // crisp edge. The corner radius shapes the handle (the rail is
362
+ // always a pill). Disabled is the pack's swap register: the
363
+ // range drops to gray-500 while rail and handle keep full
364
+ // strength.
365
+ .slider = .{
366
+ .background = switch (color_scheme) {
367
+ .light => Color.rgb8(235, 235, 235),
368
+ .dark => Color.rgb8(31, 31, 31),
369
+ },
370
+ .active_background = Color.rgb8(0, 114, 245),
371
+ .foreground = Color.rgb8(255, 255, 255),
372
+ .border = switch (color_scheme) {
373
+ .light => Color.rgba8(0, 0, 0, 54),
374
+ .dark => Color.rgb8(0, 0, 0),
375
+ },
376
+ .disabled_background = switch (color_scheme) {
377
+ .light => Color.rgb8(201, 201, 201),
378
+ .dark => Color.rgb8(69, 69, 69),
379
+ },
380
+ .radius = 1,
381
+ },
382
+ // The pack's button group is the DETACHED chip register — the
383
+ // register has no attached segmented bar; its secondary tab
384
+ // strip is the same exclusive-choice affordance, so the group
385
+ // renders as that strip: fully-rounded chips on the control
386
+ // corner, 8px apart (the metric above), no container chrome at
387
+ // all. Every member rests on a translucent gray wash (light:
388
+ // black at 8%, the same strength as the hairline; dark: white
389
+ // at 9%) under the primary ink, and the SELECTED chip inverts —
390
+ // its fill is the primary ink itself (gray-1000: light #171717,
391
+ // dark #ededed) under page-color knockout text. Deliberately
392
+ // NOT the accent: in light the register's filled-control black
393
+ // is the scale's extreme #000000, while the selected chip stops
394
+ // one step short at gray-1000 — the measured treatment, and the
395
+ // reason this table states its own fills instead of falling
396
+ // through to the primary. Hover states the rest wash explicitly
397
+ // because the reference strip does not move on hover; selection
398
+ // is the one signal it speaks. Disabled is the pack's swap
399
+ // register one step darker than the button chip: gray-200 under
400
+ // gray-900 ink.
401
+ .button_group_style = .detached,
402
+ .button_group = .{
403
+ .background = switch (color_scheme) {
404
+ .light => Color.rgba8(0, 0, 0, 20),
405
+ .dark => Color.rgba8(255, 255, 255, 23),
406
+ },
407
+ .hover_background = switch (color_scheme) {
408
+ .light => Color.rgba8(0, 0, 0, 20),
409
+ .dark => Color.rgba8(255, 255, 255, 23),
410
+ },
411
+ .active_background = colors.text,
412
+ .foreground = colors.text,
413
+ .active_foreground = colors.background,
414
+ .disabled_background = switch (contrast) {
415
+ .standard => switch (color_scheme) {
416
+ .light => Color.rgb8(235, 235, 235),
417
+ .dark => Color.rgb8(31, 31, 31),
418
+ },
419
+ .high => colors.disabled,
420
+ },
421
+ .disabled_foreground = colors.text_muted,
422
+ .stroke_width = 0,
423
+ },
424
+ // The pack's tabs are the UNDERLINE register, a different shape
425
+ // from the house pill-on-muted-track: bare 14px text triggers on
426
+ // a transparent strip, a 1px hairline closing the strip's bottom
427
+ // edge, and a 2px bar in the primary ink under the active label,
428
+ // overlapping the hairline where they meet. Inactive labels sit
429
+ // in the secondary ink and preview the primary ink on hover; the
430
+ // bar's ink itself falls back to `colors.text`, so no
431
+ // segmented_control entry is needed. Triggers sit 24px apart
432
+ // through the `tabs_gap` metric above.
433
+ .tabs_indicator = .underline,
434
+ .tabs = .{
435
+ // The strip hairline is a SOLID quiet-border step (gray-400:
436
+ // light #eaeaea, dark #333333), not the pack's translucent
437
+ // hairline — a strip divider underlines content rather than
438
+ // outlining a control, so it must stay whisper-quiet on the
439
+ // page. High contrast keeps the palette's loud hairline
440
+ // instead: the mute would undo the contrast the user asked
441
+ // for.
442
+ .border = switch (contrast) {
443
+ .standard => switch (color_scheme) {
444
+ .light => Color.rgb8(234, 234, 234),
445
+ .dark => Color.rgb8(51, 51, 51),
446
+ },
447
+ .high => null,
448
+ },
449
+ },
450
+ // The segmented dial draws in gray-700 #8f8f8f — the scales'
451
+ // quiet middle, the same hex in both schemes — a deliberately
452
+ // muted ink (activity is ambient, not a call to action). The
453
+ // dial's SHAPE lives in the spinner metric tokens above.
454
+ .spinner = .{
455
+ .foreground = Color.rgb8(143, 143, 143),
456
+ },
457
+ // Floating and raised surfaces take the 12px corner; the
458
+ // tooltip stays on the control corner (it is a label, not a
459
+ // surface).
460
+ .card = .{ .radius = surface_radius },
461
+ .dialog = .{ .radius = surface_radius },
462
+ .drawer = .{ .radius = surface_radius },
463
+ .sheet = .{ .radius = surface_radius },
464
+ .popover = .{ .radius = surface_radius },
465
+ .menu_surface = .{ .radius = surface_radius },
466
+ .dropdown_menu = .{ .radius = surface_radius },
467
+ .alert = .{ .radius = surface_radius },
468
+ .panel = .{ .radius = surface_radius },
469
+ };
470
+ }