@reapit/elements_v5.0.0-beta.38
Pre-release
Pre-release
·
11 commits
to main
since this release
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
andAnchorButton
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.
- Components can now be imported via
- 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
- The original
SplitButton
has been deprecated and renamed to DeprecatedSplitButton.
🪦 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
- chore: bump package version by @kurtdoherty in #606
- feat: Add new
PageHeader.LeadingElement
component by @kurtdoherty in #607 - chore: Move deprecated to dedicated folder by @kurtdoherty in #608
- feat: Add new
URLSearchParams
helpers by @kurtdoherty in #609 - chore: update changelog by @kurtdoherty in #610
- chore: Add subpath entry points for all components by @kurtdoherty in #611
- feat: Add new
PrimaryTabs
component by @kurtdoherty in #612 - feat: Add new
SecondaryTabs
component by @kurtdoherty in #613 - chore: Rename
__test__
folders to__tests__
by @kurtdoherty in #614 - chore: deprecate existing
SplitButton
component by @kurtdoherty in #616 - feat: Add
SplitButtonAction
component by @kurtdoherty in #617 - feat: Add
SplitButtonMenuButton
component by @kurtdoherty in #618 - feat: Add
SplitButton
component by @kurtdoherty in #619 - feat: support
PrimaryTabs
inDrawer
by @kurtdoherty in #620 - chore: update changelog with release date by @kurtdoherty in #621
Full Changelog: https://github.com/reapit/elements/compare/@reapit/elements_v5.0.0-beta.37...@reapit/elements_v5.0.0-beta.38