ghost-portal/packages/react-components
MiZiet b4967ca82c
Popup menu replace and styling (#6007)
* Add custom popup

* Render popup window with react portal

* Handle scroll

* Handle pointer scroll

* Refactor types

* Add useOutsideClick

* Restore button styles

* Update types

* Add tests

* Set multiple refs

* Cleanup

* Cleanup

* Move offset const to the utils

* Add useCallback in useScroll

* Remove empty lines in useElementPosition

* Change styled components to functional

* Make sure popup window stays in view

* Highlight trigger button when popup is open

* Add uesPopupWindow hook

* Make triangle larger

* Use full trigger height

* Apply new lint rules

* Group popup items into groups suggested by Jaco

Menu.Item is of SUI (semantic UI). It supports icons, but
we plan to replace SUI and thus this feature is likely to use
font awesome instead of SUI icons.

* Remove sui menu

* Improve styles

* Add translations

* Add hover

Co-authored-by: Marcin Wachulski <marcin@ethworks.io>
2021-08-31 10:39:17 +02:00
..
src Popup menu replace and styling (#6007) 2021-08-31 10:39:17 +02:00
.skip-build Skip npm 2020-02-27 22:18:23 +01:00
.skip-npm Skip npm 2020-02-27 22:18:23 +01:00
LICENSE Rename ui-* -> react-* (#1495) 2019-08-12 13:12:05 +02:00
package.json [CI Skip] release/beta 0.95.2-65 2021-08-31 08:19:09 +00:00
README.md Rename ui-* -> react-* (#1495) 2019-08-12 13:12:05 +02:00

@polkadot/react-components

WARNING: This is an internal package to polkadot-js/apps so is not inteded (yet) for broad use.

For the existing sharable components usable in external React-based projects, take a look at the polkadot-js/ui documentation