Skip to content

v0.4.0

Latest

Choose a tag to compare

@akademy akademy released this 10 Feb 10:56
· 57 commits to main since this release
6660958

Version 0.4.0

Install via NPM at https://www.npmjs.com/package/@diamondlightsource/sci-react-ui/v/0.4.0

Added

  • New Progress component based on Diamond Light added.
  • New ProgressDelayed component so that the progress isn't shown at all when it's a small wait.
  • NavMenu component added for creating dropdown menus in the Navbar
    • NavMenuLink component extends NavLink to work in the NavMenu
  • AuthProvider added for authentication to Keycloak.
    • An auth parameter was added to User to simplify when AuthProvider is used.
  • ScrollableImages can now display in a wide view, with multiple images.

Fixed

  • Hovering over a slot caused a popup with the slot title in. This has been removed.
  • Stopped Bar-based components (e.g. Navbar, Footer) from expanding when a parent component has a set height
  • The base Bar component was not being exported.
  • Various fixes to improve accessibility
  • ScrollableImages could attempt accessing images outside of array.

Changed

  • BaseTheme/DiamondTheme secondary colour of dark theme has been much darkened. (You can select DiamondOldTheme if you prefer the older one!)
  • Remove first-child css selector as it causes problems with server-side rendering.