Repository navigation
Mavis UI 0.1.0-rc.19
Pre-release
Pre-release
·
67 commits
to main
since this release
Changes
- New package
@getcortexlabs/mavis-desktop: the Mavis components on the NativeScript Mac (AppKit) and Windows (XAML) hosts. Each component is written once for both systems over a shared layout engine and takes the properties of its published contract. It covers layout, media, feedback, choices and fields, overlays, dates, charts, lists, motion and navigation. The themes and system appearance are the same as on the other hosts. Desktop components · Native Mac and Windows. - The desktop works from the keyboard:
- Grouped controls are one Tab stop moved by the arrow keys.
- Dialogs keep Tab inside themselves, Escape closes them, and the keyboard goes back to the control that opened them.
- Menus take type-ahead.
- The command palette opens with Command-K on the Mac and Control-K on Windows.
createDesktopNavigationwraps a Vue Router with Back and Forward shortcuts.- Commands join the Mac menu bar.
- On the Mac, VoiceOver reads the checked, mixed and selected state of checkboxes, switches, radios, segments, tabs, list options and table rows.
- A desktop
pressreports focus and blur. The marquee, particles and gradient pause while the window can't be seen: minimized or covered on the Mac, hidden on Windows. create-maviscreates desktop hosts that depend on the package.--capabilities --jsonlists desktop support per component and property.--add-macosand--add-windowscheck the entry and what it imports, and report each refusal with the property to use instead.--starterwrites an entry that fits the desktop contract, and--writeadds the host to an existing project. Classes and<style>blocks in a shared file are ignored on the desktop, with a note. The Mac host runs with no window on screen withMAVIS_DESKTOP_OFFSCREEN=1.maxLineson MText,columnSpanon a child of MGrid and theescapeevent of MInput now work on every renderer.shortcut,selectableandtestIdstay on the desktop, for the reasons in the desktop guide. Font families acceptmacosandwindowsnames. Text · Grid · Input.- With Jolt 0.1.0-rc.20:
- On Android 14 and later, a NativeScript MSheet follows the system back gesture before it commits and returns if it is cancelled. Each close reports its real reason:
back,backdrop,swipeorprogram. - On the Web,
viewportEnterstaggers surfaces by the order they arrive, as NativeScript does. - Desktop entrances start in the same turn as their pose.
- Sheet · Motion regions.
- On Android 14 and later, a NativeScript MSheet follows the system back gesture before it commits and returns if it is cancelled. Each close reports its real reason:
- NativeScript:
- Shimmer, the loaders and the circular reveal now run on Android.
- Effects pause and resume, and a KeepAlive screen suspends them while it is inactive.
motion.haptic()and region viewport entrances go through Jolt.- Spring followers gain
stop()andjump(). - MRefreshControl shows one indicator and announces a refresh as it starts, succeeds or fails.
Known gaps:
- The Windows host draws no elevation shadow and does not announce alerts yet (#478).
- On Windows, checked and selected state does not reach assistive technology yet (#489), and a minimized window is not detected yet (#490).
- The remaining desktop work is tracked in #461.
Upgrade
All nine Mavis packages share this version, including the new @getcortexlabs/mavis-desktop. Install Jolt 0.1.0-rc.20 with any renderer, then rebuild native apps. The NativeScript, Web and desktop renderers declare ^0.1.0-rc.20. A desktop host made by an earlier creator keeps its own copy of the host; regenerate apps/<target> to move it to the package. Full changelog.