bucket-duck
Version:
A redux module containing a reducer and actions for a bucket widget.
16 lines (15 loc) • 809 B
Markdown
Based on this [Modular Reducer Proposal](https://github.com/erikras/ducks-modular-redux/blob/master/README.md)
| Action Name | Intended usage |
| ----------- | -------------- |
| SELECT_ITEM | An item is selected by its index |
| HOVER_SELECTED | Hover a selected item by its index |
| HOVER_NON_SELECTED | Hover a non-selected item by its index |
| DESELECT_ITEM | A selected item is deselected by its index |
| HOVER_NEXT_ITEM | Hover the next item in the list |
| HOVER_PREV_ITEM | Hover the previous item in the list |
| CLEAR_HOVER | Clears the currently hovered item |
| SELECT_ITEM | Moves the currently hovered item to the opposite list |
| REORDER_ITEMS | Reorder the selected items |
| RECEIVED_STATE | Set the state externally from the consuming component |