@morphos/core
Changelog for @morphos/core.
0.1.6
- Requires
@praxisjs/runtimeand@praxisjs/jsx0.8.1, which write booleanaria-*attributes as"true"and"false"instead of an empty attribute (or none forfalse).
0.1.5
- Opts into
@praxisjs/vite-plugin's library optimization: with vite-plugin 4.2 or later, apps compile these components from their sources like their own code (compiled templates, keyed lists, decorated fields in fast properties), so they mount about 25 to 40% faster. The published package no longer includes its tests.
0.1.0
Initial release.
generateId(prefix?)— unique ID generator for ARIA attributes.trapFocus(container)— focus trap with cleanup.lockScroll()— body scroll lock with cleanup.getFocusableElements(container)— returns all focusable descendants.Keysconstant — centralised keyboard key strings.isActivationKey,isVerticalNavKey,isHorizontalNavKey— keyboard event helpers.wrapIndex(index, length)— circular array navigation.computeAnchorPosition(...)— side/align-aware floating UI positioning, used by every overlay component.PrimitiveProps,DataAttributes,Orientation,Size— shared types.