ghost-portal/packages/react-components/src
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
..
Button Remove sui popup (#5924) 2021-08-31 09:35:33 +02:00
Chart Handle BN type-only imports correctly (#5428) 2021-06-03 10:41:55 +02:00
i18n 2021 (#4310) 2021-01-03 11:33:39 +01:00
IdentityIcon Adjust icon based on spec (#5491) 2021-06-08 08:05:39 +02:00
InputAddress Bump deps (#5665) 2021-06-23 11:21:24 +02:00
InputAddressMulti Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
InputConsts Bump API (#5850) 2021-07-19 17:01:25 +02:00
InputExtrinsic Bump API (#5850) 2021-07-19 17:01:25 +02:00
InputRpc Ensure useState doesn't re-init with function calls (#4552) 2021-02-01 14:17:14 +01:00
InputStorage Bump API (#5871) 2021-07-23 08:52:12 +02:00
Menu Popup menu replace and styling (#6007) 2021-08-31 10:39:17 +02:00
Modal Replace sui modal with a custom one (#5914) 2021-08-24 12:14:34 +03:00
Params 2021 (#4310) 2021-01-03 11:33:39 +01:00
Popup Popup menu replace and styling (#6007) 2021-08-31 10:39:17 +02:00
Status Bump dev (w/ lint fixes) (#6006) 2021-08-26 12:16:11 +02:00
styles Popup menu replace and styling (#6007) 2021-08-31 10:39:17 +02:00
Table Account row collapsible row details (#5975) 2021-08-26 13:02:24 +02:00
Tabs Bump dev (w/ lint fixes) (#6006) 2021-08-26 12:16:11 +02:00
util Update deps (& berry) (#4765) 2021-03-03 11:52:39 +01:00
AccountIndex.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
AccountName.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
AddressInfo.tsx Account row collapsible row details (#5975) 2021-08-26 13:02:24 +02:00
AddressMini.tsx Handle BN type-only imports correctly (#5428) 2021-06-03 10:41:55 +02:00
AddressRow.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
AddressSmall.tsx Account row collapsible row details (#5975) 2021-08-26 13:02:24 +02:00
AddressToggle.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
Available.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
AvatarItem.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
Badge.tsx Add new menu styling (#4317) 2021-03-24 10:27:37 +01:00
Balance.tsx Handle BN type-only imports correctly (#5428) 2021-06-03 10:41:55 +02:00
BatchWarning.tsx Warning & Error with exclamation triangle (#4331) 2021-01-10 08:37:51 +01:00
Bonded.tsx Handle BN type-only imports correctly (#5428) 2021-06-03 10:41:55 +02:00
ButtonCancel.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
Call.tsx Handle BN type-only imports correctly (#5428) 2021-06-03 10:41:55 +02:00
CallExpander.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
Card.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
CardSummary.tsx Bump dev (w/ lint fixes) (#6006) 2021-08-26 12:16:11 +02:00
ChainImg.tsx Logo/colors based on specName (#5325) 2021-05-19 08:58:03 +02:00
ChainLock.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
Checkbox.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
Columar.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
constants.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
ConvictionDropdown.tsx Bump deps (common, local types) (#4726) 2021-02-25 07:55:48 +01:00
CopyButton.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
CryptoType.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
DemocracyLocks.tsx Handle BN type-only imports correctly (#5428) 2021-06-03 10:41:55 +02:00
Digits.tsx Select slot range via dropdown (#4845) 2021-03-14 13:15:26 +01:00
Dropdown.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
EditButton.tsx Style tags (#5893) 2021-08-14 09:10:21 +02:00
Editor.tsx Ensure useState doesn't re-init with function calls (#4552) 2021-02-01 14:17:14 +01:00
ErrorBoundary.tsx Bump deps (#5665) 2021-06-23 11:21:24 +02:00
Event.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
Expander.tsx Bump API (#5850) 2021-07-19 17:01:25 +02:00
Extrinsic.tsx Bump API (#5850) 2021-07-19 17:01:25 +02:00
FilterOverlay.tsx Tiny menu/tabs/naming adjustments (#4923) 2021-03-24 14:58:32 +01:00
Flag.tsx Style flags (#6003) 2021-08-28 10:47:23 +03:00
Forget.tsx Replace sui modal with a custom one (#5914) 2021-08-24 12:14:34 +03:00
HelpOverlay.tsx Add new menu styling (#4317) 2021-03-24 10:27:37 +01:00
Icon.tsx Popup menu replace and styling (#6007) 2021-08-31 10:39:17 +02:00
IconLink.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
index.tsx Style flags (#6003) 2021-08-28 10:47:23 +03:00
InfoForInput.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
Input.tsx Ensure useState doesn't re-init with function calls (#4552) 2021-02-01 14:17:14 +01:00
InputAddressSimple.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
InputBalance.tsx Balance display with SI units (#5440) 2021-06-04 10:13:32 +02:00
InputFile.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
InputNumber.tsx Ensure siDefault is always used on InputNumber (#5810) 2021-07-12 06:33:50 +02:00
InputTags.tsx Style tags (#5893) 2021-08-14 09:10:21 +02:00
InputWasm.tsx Parachains registration (#4318) 2021-01-04 14:46:14 +01:00
Inset.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
Label.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
LabelHelp.tsx Add tabIndex=-1 to all hints (#5703) 2021-06-29 06:50:17 +02:00
Labelled.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
LinkExternal.tsx Replace sidebar text links with icons (#5999) 2021-08-24 17:06:21 +02:00
LockedVote.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
MarkError.tsx Warning & Error with exclamation triangle (#4331) 2021-01-10 08:37:51 +01:00
MarkWarning.tsx Warning & Error with exclamation triangle (#4331) 2021-01-10 08:37:51 +01:00
media.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
Nonce.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
Output.tsx Display call hash on signer modal (#4885) 2021-03-21 10:42:39 +01:00
ParaLink.tsx Adjust contribution state update (& indicator) (#5561) 2021-06-11 09:48:28 +02:00
ParentAccount.tsx Remove sui popup (#5924) 2021-08-31 09:35:33 +02:00
Password.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
PasswordStrength.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
Progress.tsx Handle BN type-only imports correctly (#5428) 2021-06-03 10:41:55 +02:00
ProposedAction.tsx Handle BN type-only imports correctly (#5428) 2021-06-03 10:41:55 +02:00
Row.tsx Bump dev (w/ lint fixes) (#6006) 2021-08-26 12:16:11 +02:00
Sidebar.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
Spinner.png Adjust Progress hl (#3258) 2020-07-24 16:39:23 +02:00
Spinner.tsx Enable Statemine <-> Kusama (w/ fees) (#5495) 2021-06-08 11:08:15 +02:00
StakingBonded.tsx Adapt Darwinia, Crab Network types (#5218) 2021-05-07 06:47:45 +02:00
StakingRedeemable.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
StakingUnbonding.tsx Account row collapsible row details (#5975) 2021-08-26 13:02:24 +02:00
Static.tsx Fix explorer static copy (#5185) 2021-05-01 14:03:43 +02:00
SummaryBox.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
Tag.tsx Style flags (#6003) 2021-08-28 10:47:23 +03:00
Tags.tsx Bump dev (w/ lint fixes) (#6006) 2021-08-26 12:16:11 +02:00
TextArea.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
Toggle.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
ToggleGroup.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
Tooltip.tsx Bounties - list layout improvements (#4644) 2021-02-11 11:03:46 +01:00
translate.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
TreasuryProposal.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
TxButton.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
types.ts Style flags (#6003) 2021-08-28 10:47:23 +03:00
VoteAccount.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
VoteValue.tsx Handle BN type-only imports correctly (#5428) 2021-06-03 10:41:55 +02:00