Skip to content

@swiftuijs/ui 0.1.3

Latest

Choose a tag to compare

@oe oe released this 05 Oct 02:07
· 1 commit to main since this release
f4470f9

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 useHorizontalSizeClass and useVerticalSizeClass hooks subscribe to the relevant breakpoint, avoiding updates for every viewport pixel change. They return null during 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.3

Requires 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.