v7.0.0
Breaking Changes
Select
The Select
component has been completely overhauled and now supports grouped options, popular options, an Icon on the left-hand side as well as searchable options.
One thing to notice is that you won't be able to manually render your options as children
prop anymore. Instead, use the options
prop mentioned below.
Changed Props:
handleOptionClick
has been replaced with a mandatoryonChange
which will return the selectedOption
options
has been introduced as a required propdefaultValue
has been introduced as optional propinvertColor
has been introduced to render theSelect
on black backgroundsrenderLeftIcon
has been introducedsearchable
has been introduced which will allow the user to filter the optionspopularOptions
has been introduced to render an initial list of optionsgetPopularOptionsTitle
has been introduced to override the heading displayed for popular optionsgroupBy
has been introduced to group the list of optionsgetOptionLabel
has been introduced to override how the label for each option is renderedrenderOption
has been introduced to render a completely custom optionreadonly
has been removedchildren
has been removedpositionFixed
has been removed
StickyContainer & StickyContainerV2
StickyContainer
and StickyContainerV2
have been removed and replaced with a new modified component called Popper
which now lives in atoms. To use it import
import { Popper } from '@sofarsounds/maestro'
PortalComponent
PortalComponent
has been replaced with a new modified component called Portal
which now lives in atoms. To use it import
import { Portal } from '@sofarsounds/maestro'
New Components
Menu
We introduced new Menu
components that can be re-used. Alongside with it we now have a MenuItem
and MenuHeader
component.
import { Menu, MenuHeader, MenuItem } from '@sofarsounds/maestro'
Other Changes
- New
search
Icon has been added - The
Navbar.Item
now takes anemphasize
prop to highlight the specific option. - We have finally added
react-testing-library
- We are now using Heroku review apps to deploy our storybook!