Skip to content

@reapit/elements_v5.0.0-beta.38

Pre-release
Pre-release
Compare
Choose a tag to compare
@kurtdoherty kurtdoherty released this 17 Jul 22:24
· 11 commits to main since this release
f02f167

Notable Changes

🎉 New things

  • Elements now supports subpath entry points for individual components. This mean consumers can now avoid importing "the world" from the root package entry point (@reapit/elements) and instead, make import exactly what they need:
    • Components can now be imported via @reapit/elements/core/*. For example, Button and AnchorButton can be imported from @reapit/elements/core/button.
    • Deprecated components can now be imported via @reapit/elements/deprecated/*.
    • Note: While everything is still available via the root entry point, consumers are encouraged to switch to these new entry points as the root entry point will be removed in future.
  • Added PageHeader.LeadingElement to help size leading elements (like images) in the page header correctly.
  • Added PrimaryTabs. This replaces the deprecated Tabs component.
  • Added SecondaryTabs.
  • Added SplitButton. This replaces the now deprecated (and renamed) DeprecatedSplitButton.
  • Added some low-level helpers for working with URLSearchParams. These are available for import from @reapit/elements/utils/url-search-params.

💔 Breaking Changes

🪦 Deprecations

All v4 components we intend to replace or retire in v5 have been marked with a deprecation annotation. This will mean many existing components used by consumers will now show a strikethrough in IDEs. Deprecated components may be renamed in future to allow their replacement to use their current name.

What's Changed

Full Changelog: https://github.com/reapit/elements/compare/@reapit/elements_v5.0.0-beta.37...@reapit/elements_v5.0.0-beta.38