Repository navigation
This patch reduces unnecessary rendering and repeated overlay measurements while keeping existing import paths compatible.
- Stable layout context values reduce updates when a parent rerenders.
- New
useHorizontalSizeClassanduseVerticalSizeClasshooks subscribe to the relevant breakpoint, avoiding updates for every viewport pixel change. They returnnullduring SSR and initial hydration. - Reduced Motion consumers share one native media-query listener, released after the last consumer unmounts.
- NavigationSplitView filters unchanged container size classes. Menus and popovers coalesce scroll, resize and observer measurements into one animation frame and cancel pending work when closed.
- Added production performance budgets and a concise performance guide. Repository tooling and documentation sources are consolidated, with historical proposals clearly archived.
npm install @swiftuijs/ui@0.1.3Requires React 18.2+ or 19, matching react-dom, and a bundler that supports CSS imports. Import @swiftuijs/ui/style/index.css once at the application root. Only @swiftuijs/ui is published; the workspace, docs and Storybook remain private.
Validation covers unit tests, packed-consumer types, CSS and SSR, React 18.2/18.3/19 hydration and interactions, production performance budgets, and Chromium acceptance for components, Kitchensink and documentation. Performance budgets measure work counts in fixed scenarios; they are not FPS guarantees. Verify behavior on your application's target browsers and devices.