feat(widgets-popupMenu): add handling of "direction" option