Skip to content

Releases: reapit/elements

@reapit/elements_v5.0.0-beta.38

17 Jul 22:24
f02f167
Compare
Choose a tag to compare
Pre-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 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

@reapit/elements_v5.0.0-beta.37

09 Jul 04:21
d3313c4
Compare
Choose a tag to compare
Pre-release

Notable Changes

🎉 New components

🐛 Fixes

  • Chip height fixed by #595
  • Floating button regression fixed by #592
  • Focus style regression in DeprecatedButton fixed by #593
  • Alignment issue in DeprecatedNav fixed by #602

💔 Breaking changes

  • Chip no longer supports isDisabled; rather disabled or aria-disabled should be used instead.
  • The original PageHeader has been deprecated. It is still available via DeprecatedPageHeader.

What's Changed

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

@reapit/elements_v5.0.0-beta.36

03 Jul 22:54
abccc2c
Compare
Choose a tag to compare
Pre-release

Notable Changes

Fixes a CSS regression for DeprecatedButton released in @reapit/elements_v5.0.0-beta.35.

What's Changed

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

@reapit/elements_v5.0.0-beta.35

03 Jul 12:43
de7d2ae
Compare
Choose a tag to compare
Pre-release

Notable Changes

🎉 New Components

💔 Breaking Changes

Global CSS resets

Previously, the Elements stylesheet, @reapit/elements/styles.css, included a collection CSS reset styles that were applied globally to all elements based on their tag name. These have now been removed. If your UI relies on these resets, they are available via a separate stylesheet, @reapit/elements/reset.css, that you can import/include prior to the main Elements stylesheet.

Importantly, the CSS reset no longer applies -webkit-font-smoothing: antialiasing or -moz-osx-font-smoothing: grayscale. See Stop fixing font smoothing for an explanation behind this decision.

Components

Many Elements v4 components have been grouped under a new "Deprecated" section in the Storybook side bar. Consumers of these components should consider them to be implicitly deprecated. Explicit deprecation and renaming will come in a future beta version. The URL for these components' documentation will have changed as a result of this relocation.

The following components have either been deprecated and renamed (including their related classes in the Elements stylesheet), or removed:

  • Accordion, now DeprecatedAccordion.
  • Button, now DeprecatedButton.
  • DrawCloseIcon has been removed. It's still available via <DeprecatedIcon icon="drawClose" />.

The following components have received breaking changes to their prop interfaces:

  • Badge: variant is now colour and isReversed is now variant="reversed".
  • Features: aria-label has been replaced with label.
  • Tag: no longer supports an as prop.

What's Changed

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

@reapit/elements_v5.0.0-beta.34

30 Jun 01:58
2c7180b
Compare
Choose a tag to compare
Pre-release

Notable Changes

  • SideBar and TopBar now use the new icons internally. They also size the new icons correctly when supplied by consumers.

What's Changed

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

@reapit/elements_v5.0.0-beta.33

27 Jun 04:46
8e228a5
Compare
Choose a tag to compare
Pre-release

Notable Changes

  • AppSwitcher now exported properly
  • Regression in AppSwitcher UI (and NavIconItem) fixed

What's Changed

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

@reapit/elements_v5.0.0-beta.32

26 Jun 07:12
a6a2140
Compare
Choose a tag to compare
Pre-release

Notable Changes

🎉 New additions

  • BottomBar has been refactored to align with the patterns used by SideBar and TopBar. It is also now properly exported from the lib.
  • Text now supports colour inherit, but remember, this utility component is only intended for prototyping or use in Element's documentation
  • Table cells now support alignment options

🐛 Fixes

  • Types are included again in the published NPM artefact 🤦
  • Icons colour prop renamed to color

What's Changed

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

@reapit/elements_v5.0.0-beta.31

24 Jun 04:48
9efbabf
Compare
Choose a tag to compare
Pre-release

Notable Changes

🎉 New components

💔 Breaking Changes

  • v4 Drawer has been deprecated and renamed to DeprecatedDrawer. Use the new Drawer instead.
  • v4 Icon has been deprecated and renamed to DeprecatedIcon. Use the new icons instead.
  • SideBar.MenuItem and SideBar.SubmenuItem isActive prop replaced with aria-current attribute.
  • Support for Node.js 18.x/20.x has been dropped. Minimum requirement is now Node.js 22.

All commits

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

@reapit/elements_v5.0.0-beta.30

15 Jun 22:44
53c9b31
Compare
Choose a tag to compare
Pre-release

Notable changes

TopBar

  • Many of the components related to the TopBar have been refactored and are now subcomponents of the TopBar itself;
  • In general, this means consumers should now prefer use of TopBar.NavItem over direct use of the underlying components;
  • The TopBar itself now renders as a <header> element, not a <nav> element.
  • There's two new layout and a11y helpers for main nav items (TopBar.MainNav) and secondary nav items (TopBar.SecondaryNav);
  • There's a new TopBar.BrandLogo component that provides product logos within the Reapit brand.
  • Breaking changes:
    • TopBar.NavItem and TopBar.NavIconItem will always render as a link element; buttons are no longer supported;
    • TopBar.NavMenuItem and TopBar.NavIconMenuItem combine a button-based item with a built-in Menu. These should be used for any nav items that require a dropdown menu;
    • TopBar.NavSearchButton no longer changes to an icon-only button on small breakpoints. Rather, a separate TopBar.NavSearchIconItem is available. Further, the responsive behaviour is now handled by a new TopBar.NavSearch component.

Other

  • Menu group dividers are now baked into Menu.Group
  • CSS variables updated to included latest Design System updates
  • Design token JSON files are now preprocessed (object keys sorted alphabetically) allowing for better PR diffs when Design have reordered their variables in Figma.

All commits

New Contributors

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

@reapit/elements_v5.0.0-beta.29

05 Jun 05:27
3d21b90
Compare
Choose a tag to compare
Pre-release

What's Changed

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