Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create useMultipleSelection (#895)
* start writing useMultipleSelection * make it work * add docz page * fix initial state * clear input at selection * add propTypes * implement addItem * fix the reducer delete step * fix filtering in docsite * support backspace * fix docsite example * check if keydown operation is allowed * some jsdoc * add dropdown tests and fix some bugs * remove cleanup from test * replace onIconClick with remove * fix typo in hook name * rename to getItemProps * getItemProps tests for hook * add more keydown tests for item * tests for backspace and delete * support a11y removal message * finish props tests * augment props tests for other hooks * add setItems, setActiveIndex, reset * add remove icons to example * style improvements * pass isOpen to getDropdownProps * fix coverage in testUtils * improve docsite example onStateChange * test for full coverage * finish combobox example * add useSelect example * docs code format * update snapshot * remove unnecessary destructuring * fix stateChangeTypes not being attached to hook * update readme for other hooks * cann getA11yRemovalMessage with more props * fix prop types * add readme but not done yet, only to getItemProps * finish readme * fix a space in a test * add defaultItems to propTypes validation * add item click as state change * add support to change navigation keys * augment the other readmes * add typescript support * fix mistakes * perform rename from item(s) to selectedItem(s) * update select usage codesandbox link * fix ts typings after rename * review on the docs again * fix ts typings * transition to import * as React * improve documentation in docsite example * fix unrelated test * change isOpen to preventKeyAction * update types * remove custom navi from cypress * update nvmrc * update snapshot * update props table * revert cypress test fix
- Loading branch information