Repository URL to install this package:
|
Version:
3.0.6-working.1 ▾
|
| .. |
| CloseButton |
| ModalContext |
| ModalOrganism |
| README.md |
| TODO |
| index.ts |
https://github.com/davidtheclark/react-aria-modal
/** * ModalOrganism <- inner domain content * - ModalMolecule | * - Overlay v passed down from organism * - ModalBox <| rendered into box * * - CloseIcon. - passed in as element in box or module or overlay * - OverlayStore + ModalStore * + provide lifecycle hooks through context (after/beforeOpen, after/beforeClose) * + provide actions & selectors without refs (close, open, isVisible, .steps.list, .steps.index, .steps.current, steps.goto) * - */
And then to use ModalMolecule, ModalMoleculeWithOverlay, or another Molecule like ModalPopUp for swappable usage from quick view to share to steps to nested to mini pop-up (like after .addToFavorites)
And then the overlay store likely will connect to the event store for observable events that are usable for window sizing, scroll, resize, click, keydowns, and dragging to do [escape] to close and [drag] to close navigation and minicart + drag & drop for comparison
https://github.com/reactjs/react-modal
React modal has inline js styles, it's a modal that has an overlay that we can't use the overlay on its own, and it has config > atomic composable UI, and it doesn't have contextually provided actions, and it doesn't have a sharable event store for syncing all of our events to one store
https://github.com/tajo/react-portal http://uxmovement.com/buttons/when-to-use-a-button-or-link/
multistep:
popup: