From e6ca2db884d878095cdb8bfc3d87442a772e5976 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 12 Aug 2019 13:12:05 +0200 Subject: [PATCH] Rename ui-* -> react-* (#1495) * Rename ui-* -> react-* * Rename actual folders * react-app -> react-components * CSS links --- packages/app-123code/package.json | 2 +- packages/app-123code/src/AccountSelector.tsx | 4 +- packages/app-123code/src/Summary.tsx | 2 +- packages/app-123code/src/SummaryBar.tsx | 8 +- packages/app-123code/src/Transfer.tsx | 2 +- packages/app-123code/src/index.tsx | 2 +- packages/app-accounts/package.json | 2 +- packages/app-accounts/src/Account.tsx | 6 +- packages/app-accounts/src/Banner.tsx | 2 +- packages/app-accounts/src/Overview.tsx | 6 +- packages/app-accounts/src/Vanity/Match.tsx | 4 +- packages/app-accounts/src/Vanity/index.tsx | 4 +- packages/app-accounts/src/index.tsx | 8 +- packages/app-accounts/src/modals/Backup.tsx | 6 +- .../app-accounts/src/modals/ChangePass.tsx | 6 +- packages/app-accounts/src/modals/Create.tsx | 12 +- packages/app-accounts/src/modals/Import.tsx | 8 +- packages/app-accounts/src/modals/Transfer.tsx | 14 +- packages/app-accounts/src/types.ts | 4 +- packages/app-address-book/package.json | 2 +- packages/app-address-book/src/Address.tsx | 6 +- packages/app-address-book/src/Overview.tsx | 6 +- packages/app-address-book/src/index.tsx | 8 +- .../app-address-book/src/modals/Create.tsx | 8 +- packages/app-address-book/src/types.ts | 4 +- packages/app-contracts/package.json | 2 +- packages/app-contracts/src/ABI.tsx | 4 +- packages/app-contracts/src/Codes/Add.tsx | 2 +- packages/app-contracts/src/Codes/Code.tsx | 6 +- packages/app-contracts/src/Codes/Upload.tsx | 6 +- .../app-contracts/src/Codes/ValidateCode.tsx | 8 +- packages/app-contracts/src/Codes/index.tsx | 4 +- packages/app-contracts/src/Contracts/Add.tsx | 10 +- packages/app-contracts/src/Contracts/Call.tsx | 10 +- .../app-contracts/src/Contracts/Contract.tsx | 10 +- .../src/Contracts/ValidateAddr.tsx | 8 +- .../app-contracts/src/Contracts/index.tsx | 6 +- packages/app-contracts/src/Deploy.tsx | 10 +- packages/app-contracts/src/Modal.tsx | 4 +- packages/app-contracts/src/Params.tsx | 4 +- packages/app-contracts/src/RemoveABI.tsx | 4 +- packages/app-contracts/src/index.tsx | 8 +- packages/app-contracts/src/store.ts | 2 +- packages/app-contracts/src/types.ts | 2 +- packages/app-council/package.json | 4 +- packages/app-council/src/Motions/Motion.tsx | 6 +- packages/app-council/src/Motions/Propose.tsx | 8 +- packages/app-council/src/Motions/index.tsx | 6 +- .../app-council/src/Overview/Candidate.tsx | 2 +- packages/app-council/src/Overview/Member.tsx | 4 +- packages/app-council/src/Overview/Members.tsx | 4 +- .../src/Overview/SubmitCandidacy.tsx | 4 +- packages/app-council/src/Overview/Summary.tsx | 4 +- packages/app-council/src/Overview/Vote.tsx | 8 +- packages/app-council/src/Overview/index.tsx | 4 +- packages/app-council/src/index.tsx | 6 +- packages/app-dashboard/package.json | 2 +- packages/app-dashboard/src/Entry.tsx | 4 +- packages/app-dashboard/src/index.tsx | 2 +- packages/app-democracy/package.json | 4 +- .../app-democracy/src/Overview/Proposal.tsx | 6 +- .../app-democracy/src/Overview/Proposals.tsx | 6 +- .../app-democracy/src/Overview/Referendum.tsx | 8 +- .../src/Overview/Referendums.tsx | 6 +- .../app-democracy/src/Overview/Seconding.tsx | 6 +- .../app-democracy/src/Overview/Summary.tsx | 6 +- .../app-democracy/src/Overview/Voting.tsx | 6 +- packages/app-democracy/src/Overview/index.tsx | 4 +- packages/app-democracy/src/Propose.tsx | 8 +- packages/app-democracy/src/index.tsx | 6 +- packages/app-explorer/package.json | 2 +- packages/app-explorer/src/BestHash.tsx | 6 +- .../app-explorer/src/BlockHeader/index.tsx | 4 +- packages/app-explorer/src/BlockHeaders.tsx | 4 +- .../app-explorer/src/BlockInfo/ByHash.tsx | 8 +- .../app-explorer/src/BlockInfo/ByNumber.tsx | 4 +- .../app-explorer/src/BlockInfo/Events.tsx | 4 +- .../app-explorer/src/BlockInfo/Extrinsics.tsx | 4 +- packages/app-explorer/src/BlockInfo/Logs.tsx | 6 +- packages/app-explorer/src/BlockInfo/index.tsx | 4 +- packages/app-explorer/src/Events.tsx | 4 +- packages/app-explorer/src/Main.tsx | 4 +- packages/app-explorer/src/NodeInfo/Peers.tsx | 2 +- .../app-explorer/src/NodeInfo/Summary.tsx | 6 +- packages/app-explorer/src/NodeInfo/index.tsx | 6 +- packages/app-explorer/src/Query.tsx | 4 +- packages/app-explorer/src/Summary.tsx | 6 +- packages/app-explorer/src/SummarySession.tsx | 6 +- packages/app-explorer/src/index.tsx | 6 +- packages/app-extrinsics/package.json | 6 +- packages/app-extrinsics/src/Balance.tsx | 8 +- packages/app-extrinsics/src/Selection.tsx | 12 +- packages/app-extrinsics/src/index.tsx | 4 +- packages/app-js/package.json | 2 +- packages/app-js/src/ActionButtons.tsx | 4 +- packages/app-js/src/Output.tsx | 2 +- packages/app-js/src/Playground.tsx | 8 +- packages/app-js/src/index.tsx | 2 +- packages/app-parachains/package.json | 4 +- .../app-parachains/src/Overview/Parachain.tsx | 8 +- .../src/Overview/Parachains.tsx | 6 +- .../app-parachains/src/Overview/Summary.tsx | 6 +- .../app-parachains/src/Overview/index.tsx | 2 +- packages/app-parachains/src/index.tsx | 6 +- packages/app-settings/package.json | 4 +- packages/app-settings/src/Developer.tsx | 6 +- packages/app-settings/src/General.tsx | 6 +- packages/app-settings/src/index.tsx | 6 +- packages/app-staking/package.json | 4 +- .../src/Actions/Account/BondExtra.tsx | 12 +- .../Account/InputValidationController.tsx | 6 +- .../Account/InputValidationSessionKey.tsx | 4 +- .../InputValidationUnstakeThreshold.tsx | 4 +- .../src/Actions/Account/Nominate.tsx | 4 +- .../Actions/Account/SetControllerAccount.tsx | 6 +- .../Actions/Account/SetRewardDestination.tsx | 6 +- .../src/Actions/Account/SetSessionAccount.tsx | 8 +- .../src/Actions/Account/Unbond.tsx | 8 +- .../src/Actions/Account/Validate.tsx | 4 +- .../app-staking/src/Actions/Account/index.tsx | 8 +- packages/app-staking/src/Actions/Accounts.tsx | 10 +- packages/app-staking/src/Actions/NewStake.tsx | 8 +- .../app-staking/src/Actions/constants.tsx | 2 +- packages/app-staking/src/Overview/Address.tsx | 6 +- .../app-staking/src/Overview/CurrentList.tsx | 4 +- packages/app-staking/src/Overview/Summary.tsx | 6 +- packages/app-staking/src/Overview/index.tsx | 8 +- packages/app-staking/src/index.tsx | 10 +- packages/app-storage/package.json | 4 +- packages/app-storage/src/Queries.tsx | 2 +- packages/app-storage/src/Query.tsx | 12 +- packages/app-storage/src/Selection/Consts.tsx | 10 +- .../app-storage/src/Selection/Modules.tsx | 12 +- packages/app-storage/src/Selection/Raw.tsx | 4 +- packages/app-storage/src/Selection/index.tsx | 10 +- packages/app-storage/src/index.tsx | 2 +- packages/app-storage/src/types.ts | 4 +- packages/app-sudo/package.json | 2 +- packages/app-sudo/src/SetKey.tsx | 4 +- packages/app-sudo/src/Sudo.tsx | 8 +- packages/app-sudo/src/index.tsx | 8 +- packages/app-toolbox/package.json | 2 +- packages/app-toolbox/src/Hash.tsx | 4 +- packages/app-toolbox/src/Rpc/Account.tsx | 6 +- packages/app-toolbox/src/Rpc/Results.tsx | 6 +- packages/app-toolbox/src/Rpc/Selection.tsx | 10 +- packages/app-toolbox/src/Rpc/index.tsx | 6 +- packages/app-toolbox/src/Sign.tsx | 6 +- packages/app-toolbox/src/Unlock.tsx | 4 +- packages/app-toolbox/src/Verify.tsx | 4 +- packages/app-toolbox/src/index.tsx | 6 +- packages/app-transfer/package.json | 4 +- packages/app-transfer/src/index.tsx | 2 +- packages/app-treasury/package.json | 4 +- .../app-treasury/src/Overview/Approve.tsx | 10 +- .../app-treasury/src/Overview/Proposal.tsx | 6 +- .../app-treasury/src/Overview/Proposals.tsx | 6 +- .../app-treasury/src/Overview/Propose.tsx | 4 +- .../app-treasury/src/Overview/Summary.tsx | 6 +- packages/app-treasury/src/Overview/index.tsx | 4 +- packages/app-treasury/src/Settings.tsx | 8 +- packages/app-treasury/src/index.tsx | 6 +- packages/apps-routing/src/types.ts | 2 +- packages/apps/package.json | 4 +- packages/apps/src/Apps.tsx | 6 +- packages/apps/src/Content/Status.tsx | 8 +- packages/apps/src/Content/index.tsx | 10 +- packages/apps/src/SideBar/Item.tsx | 8 +- packages/apps/src/SideBar/NodeInfo.tsx | 8 +- packages/apps/src/SideBar/SideBar.css | 4 +- packages/apps/src/SideBar/index.tsx | 12 +- packages/apps/src/TopBar.tsx | 2 +- packages/apps/src/constants.ts | 2 +- packages/apps/src/index.tsx | 10 +- packages/apps/src/overlays/Accounts.tsx | 6 +- packages/apps/src/overlays/Base.tsx | 2 +- packages/apps/src/overlays/Connecting.tsx | 6 +- packages/{ui-api => react-api}/LICENSE | 0 packages/{ui-api => react-api}/README.md | 2 +- packages/{ui-api => react-api}/package.json | 2 +- packages/{ui-api => react-api}/src/Api.tsx | 8 +- .../{ui-api => react-api}/src/ApiContext.ts | 2 +- packages/{ui-api => react-api}/src/index.ts | 2 +- .../src/transform/echo.ts | 2 +- packages/{ui-api => react-api}/src/types.ts | 2 +- .../{ui-api => react-api}/src/util/index.ts | 2 +- .../src/util/intervalObservable.ts | 2 +- .../{ui-api => react-api}/src/util/isEqual.ts | 2 +- .../src/util/triggerChange.ts | 2 +- .../{ui-api => react-api}/src/with/api.tsx | 2 +- .../{ui-api => react-api}/src/with/call.tsx | 2 +- .../src/with/callDiv.tsx | 2 +- .../{ui-api => react-api}/src/with/calls.ts | 2 +- .../{ui-api => react-api}/src/with/index.ts | 2 +- .../{ui-api => react-api}/src/with/multi.ts | 2 +- .../src/with/observable.tsx | 2 +- .../{ui-api => react-api}/src/with/types.ts | 2 +- packages/{ui-api => react-api}/test/enzyme.js | 2 +- .../{ui-api => react-api}/test/observable.js | 2 +- .../{ui-api => react-api}/webpack.config.js | 2 +- packages/{ui-app => react-components}/LICENSE | 0 .../{ui-signer => react-components}/README.md | 2 +- .../{ui-app => react-components}/package.json | 6 +- .../src/ActionItem.tsx | 0 .../src/AddressCard.tsx | 4 +- .../src/AddressInfo.tsx | 6 +- .../src/AddressMini.tsx | 0 .../src/AddressRow.tsx | 6 +- .../src/Available.tsx | 4 +- .../src/Balance.tsx | 4 +- .../src/Bonded.tsx | 4 +- .../src/Bubble.tsx | 2 +- .../src/Button/Button.css | 2 +- .../src/Button/Button.tsx | 2 +- .../src/Button/Divider.tsx | 2 +- .../src/Button/Group.tsx | 2 +- .../src/Button/Or.tsx | 2 +- .../src/Button/index.tsx | 2 +- .../src/Button/types.ts | 2 +- .../{ui-app => react-components}/src/Call.tsx | 4 +- .../{ui-app => react-components}/src/Card.tsx | 2 +- .../src/CardGrid.tsx | 2 +- .../src/CardSummary.tsx | 2 +- .../src/Chart/Base.tsx | 2 +- .../src/Chart/Doughnut.tsx | 2 +- .../src/Chart/HorizBar.tsx | 2 +- .../src/Chart/index.ts | 2 +- .../src/CodeRow.tsx | 8 +- .../src/Collection.tsx | 4 +- .../src/Columar.tsx | 2 +- .../src/Column.tsx | 2 +- .../src/CopyButton.tsx | 2 +- .../src/CryptoType.tsx | 2 +- .../src/Dropdown.tsx | 2 +- .../src/Editor.tsx | 8 +- .../src/Event.tsx | 4 +- .../src/Extrinsic.tsx | 12 +- .../src/FilterOverlay.tsx | 2 +- .../src/Forget.tsx | 4 +- .../src/HelpOverlay.tsx | 2 +- .../{ui-app => react-components}/src/Icon.tsx | 2 +- .../src/IdentityIcon.tsx | 6 +- .../src/InfoForInput.tsx | 2 +- .../src/Input.tsx | 2 +- .../src/InputAddress.tsx | 4 +- .../src/InputAddressSimple.tsx | 2 +- .../src/InputBalance.tsx | 6 +- .../src/InputBalanceBonded.tsx | 14 +- .../src/InputConsts/SelectKey.tsx | 6 +- .../src/InputConsts/SelectSection.tsx | 2 +- .../src/InputConsts/index.tsx | 6 +- .../src/InputConsts/options/key.tsx | 2 +- .../src/InputConsts/options/section.ts | 2 +- .../src/InputConsts/types.ts | 2 +- .../src/InputError.tsx | 2 +- .../src/InputExtrinsic/InputExtrinsic.css | 2 +- .../src/InputExtrinsic/SelectMethod.tsx | 2 +- .../src/InputExtrinsic/SelectSection.tsx | 2 +- .../src/InputExtrinsic/index.tsx | 6 +- .../src/InputExtrinsic/options/method.tsx | 2 +- .../src/InputExtrinsic/options/section.ts | 2 +- .../src/InputFile.tsx | 2 +- .../src/InputNumber.tsx | 2 +- .../src/InputRpc/SelectMethod.tsx | 2 +- .../src/InputRpc/SelectSection.tsx | 2 +- .../src/InputRpc/index.tsx | 2 +- .../src/InputRpc/options/method.tsx | 2 +- .../src/InputRpc/options/section.ts | 2 +- .../src/InputStorage/SelectKey.tsx | 6 +- .../src/InputStorage/SelectSection.tsx | 2 +- .../src/InputStorage/index.tsx | 6 +- .../src/InputStorage/options/key.tsx | 2 +- .../src/InputStorage/options/section.ts | 2 +- .../src/InputTags.tsx | 2 +- .../src/Inset.tsx | 0 .../src/Label.tsx | 2 +- .../src/LabelHelp.tsx | 2 +- .../src/Labelled.tsx | 2 +- .../src/LinkPolkascan.tsx | 6 +- .../{ui-app => react-components}/src/Menu.tsx | 2 +- .../src/Messages.tsx | 6 +- .../src/Modal.tsx | 2 +- .../src/Nonce.tsx | 4 +- .../src/Output.tsx | 2 +- .../src/Params/Call.tsx | 6 +- .../src/Params/Extrinsic.tsx | 2 +- .../src/Params/Proposal.tsx | 6 +- .../src/Params/index.ts | 2 +- .../src/Password.tsx | 2 +- .../src/Progress.tsx | 2 +- .../src/ProposedAction.tsx | 0 .../src/RecentlyOffline.tsx | 2 +- .../{ui-app => react-components}/src/Row.tsx | 8 +- .../src/Static.tsx | 2 +- .../src/Status/Context.ts | 2 +- .../src/Status/Queue.tsx | 2 +- .../src/Status/index.tsx | 2 +- .../src/Status/types.ts | 2 +- .../src/SummaryBox.tsx | 2 +- .../{ui-app => react-components}/src/Tabs.tsx | 2 +- .../src/Toggle.tsx | 2 +- .../src/Tooltip.tsx | 2 +- .../src/TreasuryProposal.tsx | 8 +- .../src/TxButton.tsx | 4 +- .../src/TxComponent.tsx | 0 .../src/TxModal.tsx | 4 +- .../src/Voting.tsx | 4 +- .../src/codeflask.d.ts | 2 +- .../src/constants.ts | 2 +- .../{ui-app => react-components}/src/i18n.ts | 2 +- .../src/index.tsx | 2 +- .../{ui-app => react-components}/src/media.ts | 2 +- .../src/styles.ts | 2 +- .../src/styles/app.css | 2 +- .../src/styles/components.css | 2 +- .../src/styles/form.css | 2 +- .../src/styles/media.css | 2 +- .../src/styles/partials/_variables.css | 2 +- .../src/styles/rx.css | 2 +- .../src/styles/semantic.css | 2 +- .../src/styles/theme.ts | 2 +- .../src/styles/theme/_colors-polkadot.css | 2 +- .../src/styles/theme/_colors-substrate.css | 2 +- .../src/styles/theme/polkadot.css | 2 +- .../src/styles/theme/substrate.css | 2 +- .../src/translate.ts | 2 +- .../{ui-app => react-components}/src/types.ts | 4 +- .../src/util/classes.ts | 2 +- .../src/util/getAddressMeta.ts | 2 +- .../src/util/getAddressName.ts | 2 +- .../src/util/getAddressTags.ts | 2 +- .../src/util/getContractAbi.ts | 2 +- .../src/util/index.ts | 2 +- .../src/util/isTreasuryProposalVote.ts | 2 +- .../src/util/toAddress.ts | 2 +- .../src/util/toShortAddress.ts | 2 +- .../src/util/types.ts | 2 +- packages/{ui-params => react-params}/LICENSE | 0 packages/{ui-app => react-params}/README.md | 2 +- .../{ui-signer => react-params}/package.json | 4 +- .../src/Param/Account.tsx | 4 +- .../src/Param/Amount.tsx | 4 +- .../src/Param/Balance.tsx | 4 +- .../src/Param/Bare.tsx | 6 +- .../src/Param/Base.tsx | 6 +- .../src/Param/BaseBytes.tsx | 4 +- .../src/Param/Bool.tsx | 4 +- .../src/Param/Bytes.tsx | 4 +- .../src/Param/Code.tsx | 2 +- .../src/Param/Data.tsx | 4 +- .../src/Param/Enum.tsx | 4 +- .../src/Param/File.tsx | 6 +- .../src/Param/Hash.tsx | 2 +- .../src/Param/KeyValue.tsx | 4 +- .../src/Param/KeyValueArray.tsx | 4 +- .../src/Param/Moment.tsx | 4 +- .../src/Param/Null.tsx | 2 +- .../src/Param/Proposal.tsx | 6 +- .../src/Param/Static.tsx | 6 +- .../src/Param/Struct.tsx | 2 +- .../src/Param/Text.tsx | 4 +- .../src/Param/Tuple.tsx | 2 +- .../src/Param/Unknown.tsx | 2 +- .../src/Param/Vector.tsx | 6 +- .../src/Param/Vote.tsx | 4 +- .../src/Param/VoteThreshold.tsx | 4 +- .../src/Param/findComponent.ts | 2 +- .../src/Param/index.tsx | 8 +- .../src/Params.css | 2 +- .../{ui-params => react-params}/src/index.tsx | 8 +- .../src/initValue.ts | 2 +- .../{ui-params => react-params}/src/types.ts | 4 +- .../src/valueToText.tsx | 4 +- .../{ui-params => react-params}/src/values.ts | 2 +- packages/{ui-reactive => react-query}/LICENSE | 0 .../{ui-reactive => react-query}/README.md | 4 +- .../{ui-reactive => react-query}/index.html | 0 .../{ui-reactive => react-query}/package.json | 2 +- .../src/AccountIndex.tsx | 6 +- .../src/Available.tsx | 6 +- .../src/Balance.tsx | 6 +- .../src/BestFinalized.tsx | 6 +- .../src/BestNumber.tsx | 6 +- .../src/Bonded.tsx | 6 +- .../src/Chain.tsx | 6 +- .../src/Elapsed.tsx | 4 +- .../src/NodeName.tsx | 6 +- .../src/NodeVersion.tsx | 6 +- .../src/Nonce.tsx | 6 +- .../src/TimeNow.tsx | 6 +- .../src/TimePeriod.tsx | 6 +- .../src/TotalIssuance.tsx | 6 +- .../{ui-reactive => react-query}/src/index.ts | 2 +- .../webpack.config.js | 2 +- packages/{ui-signer => react-signer}/LICENSE | 0 .../{ui-params => react-signer}/README.md | 2 +- .../{ui-params => react-signer}/package.json | 4 +- .../src/ApiSigner.ts | 4 +- .../src/Checks/ContractCall.tsx | 2 +- .../src/Checks/ContractDeploy.tsx | 2 +- .../src/Checks/Proposal.tsx | 8 +- .../src/Checks/Transfer.tsx | 8 +- .../src/Checks/constants.ts | 2 +- .../src/Checks/index.tsx | 10 +- .../src/Checks/types.ts | 2 +- .../{ui-signer => react-signer}/src/Modal.tsx | 12 +- .../src/PasswordCheck.tsx | 6 +- .../src/Transaction.tsx | 8 +- .../src/Unlock.tsx | 6 +- .../{ui-signer => react-signer}/src/index.css | 4 +- .../{ui-signer => react-signer}/src/index.tsx | 8 +- .../src/translate.ts | 2 +- .../{ui-signer => react-signer}/src/types.ts | 2 +- tsconfig.json | 22 +- yarn.lock | 193 +++++++++--------- 415 files changed, 988 insertions(+), 981 deletions(-) rename packages/{ui-api => react-api}/LICENSE (100%) rename packages/{ui-api => react-api}/README.md (95%) rename packages/{ui-api => react-api}/package.json (96%) rename packages/{ui-api => react-api}/src/Api.tsx (96%) rename packages/{ui-api => react-api}/src/ApiContext.ts (88%) rename packages/{ui-api => react-api}/src/index.ts (80%) rename packages/{ui-api => react-api}/src/transform/echo.ts (80%) rename packages/{ui-api => react-api}/src/types.ts (95%) rename packages/{ui-api => react-api}/src/util/index.ts (83%) rename packages/{ui-api => react-api}/src/util/intervalObservable.ts (91%) rename packages/{ui-api => react-api}/src/util/isEqual.ts (91%) rename packages/{ui-api => react-api}/src/util/triggerChange.ts (90%) rename packages/{ui-api => react-api}/src/with/api.tsx (94%) rename packages/{ui-api => react-api}/src/with/call.tsx (99%) rename packages/{ui-api => react-api}/src/with/callDiv.tsx (94%) rename packages/{ui-api => react-api}/src/with/calls.ts (93%) rename packages/{ui-api => react-api}/src/with/index.ts (86%) rename packages/{ui-api => react-api}/src/with/multi.ts (90%) rename packages/{ui-api => react-api}/src/with/observable.tsx (97%) rename packages/{ui-api => react-api}/src/with/types.ts (94%) rename packages/{ui-api => react-api}/test/enzyme.js (84%) rename packages/{ui-api => react-api}/test/observable.js (88%) rename packages/{ui-api => react-api}/webpack.config.js (91%) rename packages/{ui-app => react-components}/LICENSE (100%) rename packages/{ui-signer => react-components}/README.md (91%) rename packages/{ui-app => react-components}/package.json (91%) rename packages/{ui-app => react-components}/src/ActionItem.tsx (100%) rename packages/{ui-app => react-components}/src/AddressCard.tsx (92%) rename packages/{ui-app => react-components}/src/AddressInfo.tsx (97%) rename packages/{ui-app => react-components}/src/AddressMini.tsx (100%) rename packages/{ui-app => react-components}/src/AddressRow.tsx (97%) rename packages/{ui-app => react-components}/src/Available.tsx (87%) rename packages/{ui-app => react-components}/src/Balance.tsx (93%) rename packages/{ui-app => react-components}/src/Bonded.tsx (93%) rename packages/{ui-app => react-components}/src/Bubble.tsx (96%) rename packages/{ui-app => react-components}/src/Button/Button.css (73%) rename packages/{ui-app => react-components}/src/Button/Button.tsx (96%) rename packages/{ui-app => react-components}/src/Button/Divider.tsx (87%) rename packages/{ui-app => react-components}/src/Button/Group.tsx (94%) rename packages/{ui-app => react-components}/src/Button/Or.tsx (91%) rename packages/{ui-app => react-components}/src/Button/index.tsx (86%) rename packages/{ui-app => react-components}/src/Button/types.ts (94%) rename packages/{ui-app => react-components}/src/Call.tsx (95%) rename packages/{ui-app => react-components}/src/Card.tsx (93%) rename packages/{ui-app => react-components}/src/CardGrid.tsx (96%) rename packages/{ui-app => react-components}/src/CardSummary.tsx (97%) rename packages/{ui-app => react-components}/src/Chart/Base.tsx (91%) rename packages/{ui-app => react-components}/src/Chart/Doughnut.tsx (96%) rename packages/{ui-app => react-components}/src/Chart/HorizBar.tsx (97%) rename packages/{ui-app => react-components}/src/Chart/index.ts (76%) rename packages/{ui-app => react-components}/src/CodeRow.tsx (94%) rename packages/{ui-app => react-components}/src/Collection.tsx (94%) rename packages/{ui-app => react-components}/src/Columar.tsx (90%) rename packages/{ui-app => react-components}/src/Column.tsx (95%) rename packages/{ui-app => react-components}/src/CopyButton.tsx (96%) rename packages/{ui-app => react-components}/src/CryptoType.tsx (93%) rename packages/{ui-app => react-components}/src/Dropdown.tsx (98%) rename packages/{ui-app => react-components}/src/Editor.tsx (88%) rename packages/{ui-app => react-components}/src/Event.tsx (90%) rename packages/{ui-app => react-components}/src/Extrinsic.tsx (90%) rename packages/{ui-app => react-components}/src/FilterOverlay.tsx (93%) rename packages/{ui-app => react-components}/src/Forget.tsx (96%) rename packages/{ui-app => react-components}/src/HelpOverlay.tsx (96%) rename packages/{ui-app => react-components}/src/Icon.tsx (75%) rename packages/{ui-app => react-components}/src/IdentityIcon.tsx (93%) rename packages/{ui-app => react-components}/src/InfoForInput.tsx (93%) rename packages/{ui-app => react-components}/src/Input.tsx (98%) rename packages/{ui-app => react-components}/src/InputAddress.tsx (98%) rename packages/{ui-app => react-components}/src/InputAddressSimple.tsx (95%) rename packages/{ui-app => react-components}/src/InputBalance.tsx (88%) rename packages/{ui-app => react-components}/src/InputBalanceBonded.tsx (90%) rename packages/{ui-app => react-components}/src/InputConsts/SelectKey.tsx (87%) rename packages/{ui-app => react-components}/src/InputConsts/SelectSection.tsx (93%) rename packages/{ui-app => react-components}/src/InputConsts/index.tsx (95%) rename packages/{ui-app => react-components}/src/InputConsts/options/key.tsx (94%) rename packages/{ui-app => react-components}/src/InputConsts/options/section.ts (87%) rename packages/{ui-app => react-components}/src/InputConsts/types.ts (83%) rename packages/{ui-app => react-components}/src/InputError.tsx (91%) rename packages/{ui-app => react-components}/src/InputExtrinsic/InputExtrinsic.css (91%) rename packages/{ui-app => react-components}/src/InputExtrinsic/SelectMethod.tsx (94%) rename packages/{ui-app => react-components}/src/InputExtrinsic/SelectSection.tsx (93%) rename packages/{ui-app => react-components}/src/InputExtrinsic/index.tsx (94%) rename packages/{ui-app => react-components}/src/InputExtrinsic/options/method.tsx (94%) rename packages/{ui-app => react-components}/src/InputExtrinsic/options/section.ts (87%) rename packages/{ui-app => react-components}/src/InputFile.tsx (98%) rename packages/{ui-app => react-components}/src/InputNumber.tsx (99%) rename packages/{ui-app => react-components}/src/InputRpc/SelectMethod.tsx (94%) rename packages/{ui-app => react-components}/src/InputRpc/SelectSection.tsx (93%) rename packages/{ui-app => react-components}/src/InputRpc/index.tsx (97%) rename packages/{ui-app => react-components}/src/InputRpc/options/method.tsx (94%) rename packages/{ui-app => react-components}/src/InputRpc/options/section.ts (85%) rename packages/{ui-app => react-components}/src/InputStorage/SelectKey.tsx (89%) rename packages/{ui-app => react-components}/src/InputStorage/SelectSection.tsx (93%) rename packages/{ui-app => react-components}/src/InputStorage/index.tsx (94%) rename packages/{ui-app => react-components}/src/InputStorage/options/key.tsx (96%) rename packages/{ui-app => react-components}/src/InputStorage/options/section.ts (87%) rename packages/{ui-app => react-components}/src/InputTags.tsx (96%) rename packages/{ui-app => react-components}/src/Inset.tsx (100%) rename packages/{ui-app => react-components}/src/Label.tsx (91%) rename packages/{ui-app => react-components}/src/LabelHelp.tsx (95%) rename packages/{ui-app => react-components}/src/Labelled.tsx (97%) rename packages/{ui-app => react-components}/src/LinkPolkascan.tsx (88%) rename packages/{ui-app => react-components}/src/Menu.tsx (86%) rename packages/{ui-app => react-components}/src/Messages.tsx (94%) rename packages/{ui-app => react-components}/src/Modal.tsx (92%) rename packages/{ui-app => react-components}/src/Nonce.tsx (87%) rename packages/{ui-app => react-components}/src/Output.tsx (95%) rename packages/{ui-app => react-components}/src/Params/Call.tsx (87%) rename packages/{ui-app => react-components}/src/Params/Extrinsic.tsx (94%) rename packages/{ui-app => react-components}/src/Params/Proposal.tsx (87%) rename packages/{ui-app => react-components}/src/Params/index.ts (85%) rename packages/{ui-app => react-components}/src/Password.tsx (96%) rename packages/{ui-app => react-components}/src/Progress.tsx (96%) rename packages/{ui-app => react-components}/src/ProposedAction.tsx (100%) rename packages/{ui-app => react-components}/src/RecentlyOffline.tsx (97%) rename packages/{ui-app => react-components}/src/Row.tsx (98%) rename packages/{ui-app => react-components}/src/Static.tsx (93%) rename packages/{ui-app => react-components}/src/Status/Context.ts (89%) rename packages/{ui-app => react-components}/src/Status/Queue.tsx (98%) rename packages/{ui-app => react-components}/src/Status/index.tsx (98%) rename packages/{ui-app => react-components}/src/Status/types.ts (97%) rename packages/{ui-app => react-components}/src/SummaryBox.tsx (94%) rename packages/{ui-app => react-components}/src/Tabs.tsx (96%) rename packages/{ui-app => react-components}/src/Toggle.tsx (94%) rename packages/{ui-app => react-components}/src/Tooltip.tsx (95%) rename packages/{ui-app => react-components}/src/TreasuryProposal.tsx (92%) rename packages/{ui-app => react-components}/src/TxButton.tsx (97%) rename packages/{ui-app => react-components}/src/TxComponent.tsx (100%) rename packages/{ui-app => react-components}/src/TxModal.tsx (98%) rename packages/{ui-app => react-components}/src/Voting.tsx (96%) rename packages/{ui-app => react-components}/src/codeflask.d.ts (68%) rename packages/{ui-app => react-components}/src/constants.ts (87%) rename packages/{ui-app => react-components}/src/i18n.ts (91%) rename packages/{ui-app => react-components}/src/index.tsx (98%) rename packages/{ui-app => react-components}/src/media.ts (90%) rename packages/{ui-app => react-components}/src/styles.ts (85%) rename packages/{ui-app => react-components}/src/styles/app.css (96%) rename packages/{ui-app => react-components}/src/styles/components.css (96%) rename packages/{ui-app => react-components}/src/styles/form.css (93%) rename packages/{ui-app => react-components}/src/styles/media.css (95%) rename packages/{ui-app => react-components}/src/styles/partials/_variables.css (68%) rename packages/{ui-app => react-components}/src/styles/rx.css (74%) rename packages/{ui-app => react-components}/src/styles/semantic.css (97%) rename packages/{ui-app => react-components}/src/styles/theme.ts (85%) rename packages/{ui-app => react-components}/src/styles/theme/_colors-polkadot.css (93%) rename packages/{ui-app => react-components}/src/styles/theme/_colors-substrate.css (64%) rename packages/{ui-app => react-components}/src/styles/theme/polkadot.css (97%) rename packages/{ui-app => react-components}/src/styles/theme/substrate.css (72%) rename packages/{ui-app => react-components}/src/translate.ts (75%) rename packages/{ui-app => react-components}/src/types.ts (83%) rename packages/{ui-app => react-components}/src/util/classes.ts (81%) rename packages/{ui-app => react-components}/src/util/getAddressMeta.ts (89%) rename packages/{ui-app => react-components}/src/util/getAddressName.ts (89%) rename packages/{ui-app => react-components}/src/util/getAddressTags.ts (84%) rename packages/{ui-app => react-components}/src/util/getContractAbi.ts (87%) rename packages/{ui-app => react-components}/src/util/index.ts (89%) rename packages/{ui-app => react-components}/src/util/isTreasuryProposalVote.ts (88%) rename packages/{ui-app => react-components}/src/util/toAddress.ts (89%) rename packages/{ui-app => react-components}/src/util/toShortAddress.ts (86%) rename packages/{ui-app => react-components}/src/util/types.ts (80%) rename packages/{ui-params => react-params}/LICENSE (100%) rename packages/{ui-app => react-params}/README.md (92%) rename packages/{ui-signer => react-params}/package.json (78%) rename packages/{ui-params => react-params}/src/Param/Account.tsx (90%) rename packages/{ui-params => react-params}/src/Param/Amount.tsx (92%) rename packages/{ui-params => react-params}/src/Param/Balance.tsx (90%) rename packages/{ui-params => react-params}/src/Param/Bare.tsx (73%) rename packages/{ui-params => react-params}/src/Param/Base.tsx (82%) rename packages/{ui-params => react-params}/src/Param/BaseBytes.tsx (94%) rename packages/{ui-params => react-params}/src/Param/Bool.tsx (90%) rename packages/{ui-params => react-params}/src/Param/Bytes.tsx (94%) rename packages/{ui-params => react-params}/src/Param/Code.tsx (95%) rename packages/{ui-params => react-params}/src/Param/Data.tsx (89%) rename packages/{ui-params => react-params}/src/Param/Enum.tsx (95%) rename packages/{ui-params => react-params}/src/Param/File.tsx (83%) rename packages/{ui-params => react-params}/src/Param/Hash.tsx (92%) rename packages/{ui-params => react-params}/src/Param/KeyValue.tsx (95%) rename packages/{ui-params => react-params}/src/Param/KeyValueArray.tsx (96%) rename packages/{ui-params => react-params}/src/Param/Moment.tsx (92%) rename packages/{ui-params => react-params}/src/Param/Null.tsx (86%) rename packages/{ui-params => react-params}/src/Param/Proposal.tsx (84%) rename packages/{ui-params => react-params}/src/Param/Static.tsx (82%) rename packages/{ui-params => react-params}/src/Param/Struct.tsx (96%) rename packages/{ui-params => react-params}/src/Param/Text.tsx (90%) rename packages/{ui-params => react-params}/src/Param/Tuple.tsx (97%) rename packages/{ui-params => react-params}/src/Param/Unknown.tsx (93%) rename packages/{ui-params => react-params}/src/Param/Vector.tsx (95%) rename packages/{ui-params => react-params}/src/Param/Vote.tsx (91%) rename packages/{ui-params => react-params}/src/Param/VoteThreshold.tsx (92%) rename packages/{ui-params => react-params}/src/Param/findComponent.ts (97%) rename packages/{ui-params => react-params}/src/Param/index.tsx (85%) rename packages/{ui-params => react-params}/src/Params.css (92%) rename packages/{ui-params => react-params}/src/index.tsx (94%) rename packages/{ui-params => react-params}/src/initValue.ts (97%) rename packages/{ui-params => react-params}/src/types.ts (90%) rename packages/{ui-params => react-params}/src/valueToText.tsx (91%) rename packages/{ui-params => react-params}/src/values.ts (89%) rename packages/{ui-reactive => react-query}/LICENSE (100%) rename packages/{ui-reactive => react-query}/README.md (94%) rename packages/{ui-reactive => react-query}/index.html (100%) rename packages/{ui-reactive => react-query}/package.json (95%) rename packages/{ui-reactive => react-query}/src/AccountIndex.tsx (85%) rename packages/{ui-reactive => react-query}/src/Available.tsx (86%) rename packages/{ui-reactive => react-query}/src/Balance.tsx (86%) rename packages/{ui-reactive => react-query}/src/BestFinalized.tsx (84%) rename packages/{ui-reactive => react-query}/src/BestNumber.tsx (84%) rename packages/{ui-reactive => react-query}/src/Bonded.tsx (87%) rename packages/{ui-reactive => react-query}/src/Chain.tsx (81%) rename packages/{ui-reactive => react-query}/src/Elapsed.tsx (94%) rename packages/{ui-reactive => react-query}/src/NodeName.tsx (81%) rename packages/{ui-reactive => react-query}/src/NodeVersion.tsx (81%) rename packages/{ui-reactive => react-query}/src/Nonce.tsx (85%) rename packages/{ui-reactive => react-query}/src/TimeNow.tsx (84%) rename packages/{ui-reactive => react-query}/src/TimePeriod.tsx (90%) rename packages/{ui-reactive => react-query}/src/TotalIssuance.tsx (85%) rename packages/{ui-reactive => react-query}/src/index.ts (93%) rename packages/{ui-reactive => react-query}/webpack.config.js (91%) rename packages/{ui-signer => react-signer}/LICENSE (100%) rename packages/{ui-params => react-signer}/README.md (92%) rename packages/{ui-params => react-signer}/package.json (78%) rename packages/{ui-signer => react-signer}/src/ApiSigner.ts (92%) rename packages/{ui-signer => react-signer}/src/Checks/ContractCall.tsx (94%) rename packages/{ui-signer => react-signer}/src/Checks/ContractDeploy.tsx (94%) rename packages/{ui-signer => react-signer}/src/Checks/Proposal.tsx (90%) rename packages/{ui-signer => react-signer}/src/Checks/Transfer.tsx (92%) rename packages/{ui-signer => react-signer}/src/Checks/constants.ts (95%) rename packages/{ui-signer => react-signer}/src/Checks/index.tsx (96%) rename packages/{ui-signer => react-signer}/src/Checks/types.ts (77%) rename packages/{ui-signer => react-signer}/src/Modal.tsx (96%) rename packages/{ui-signer => react-signer}/src/PasswordCheck.tsx (78%) rename packages/{ui-signer => react-signer}/src/Transaction.tsx (87%) rename packages/{ui-signer => react-signer}/src/Unlock.tsx (90%) rename packages/{ui-signer => react-signer}/src/index.css (82%) rename packages/{ui-signer => react-signer}/src/index.tsx (75%) rename packages/{ui-signer => react-signer}/src/translate.ts (76%) rename packages/{ui-signer => react-signer}/src/types.ts (76%) diff --git a/packages/app-123code/package.json b/packages/app-123code/package.json index 48021a9ca9..107d5a41e4 100644 --- a/packages/app-123code/package.json +++ b/packages/app-123code/package.json @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.5.5", - "@polkadot/ui-app": "^0.34.0-beta.119" + "@polkadot/react-components": "^0.34.0-beta.119" } } diff --git a/packages/app-123code/src/AccountSelector.tsx b/packages/app-123code/src/AccountSelector.tsx index 64de963fc0..3f4f2b5a02 100644 --- a/packages/app-123code/src/AccountSelector.tsx +++ b/packages/app-123code/src/AccountSelector.tsx @@ -4,8 +4,8 @@ import React from 'react'; import styled from 'styled-components'; -import { Bubble, InputAddress } from '@polkadot/ui-app'; -import { AccountIndex, Balance, Nonce } from '@polkadot/ui-reactive'; +import { Bubble, InputAddress } from '@polkadot/react-components'; +import { AccountIndex, Balance, Nonce } from '@polkadot/react-query'; interface Props { className?: string; diff --git a/packages/app-123code/src/Summary.tsx b/packages/app-123code/src/Summary.tsx index 7ddc0cc614..aa225d3eb7 100644 --- a/packages/app-123code/src/Summary.tsx +++ b/packages/app-123code/src/Summary.tsx @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps } from '@polkadot/ui-app/types'; +import { BareProps } from '@polkadot/react-components/types'; import React from 'react'; import styled from 'styled-components'; diff --git a/packages/app-123code/src/SummaryBar.tsx b/packages/app-123code/src/SummaryBar.tsx index d0973cd887..fa752659cd 100644 --- a/packages/app-123code/src/SummaryBar.tsx +++ b/packages/app-123code/src/SummaryBar.tsx @@ -4,13 +4,13 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { AccountId, RuntimeVersion } from '@polkadot/types/interfaces'; -import { ApiProps } from '@polkadot/ui-api/types'; -import { BareProps, I18nProps } from '@polkadot/ui-app/types'; +import { ApiProps } from '@polkadot/react-api/types'; +import { BareProps, I18nProps } from '@polkadot/react-components/types'; import BN from 'bn.js'; import React from 'react'; -import { withCalls } from '@polkadot/ui-api/with'; -import { Bubble, IdentityIcon } from '@polkadot/ui-app'; +import { withCalls } from '@polkadot/react-api/with'; +import { Bubble, IdentityIcon } from '@polkadot/react-components'; import { formatBalance, formatNumber } from '@polkadot/util'; import translate from './translate'; diff --git a/packages/app-123code/src/Transfer.tsx b/packages/app-123code/src/Transfer.tsx index 9d5a8071a5..e659d562e7 100644 --- a/packages/app-123code/src/Transfer.tsx +++ b/packages/app-123code/src/Transfer.tsx @@ -4,7 +4,7 @@ import BN from 'bn.js'; import React from 'react'; -import { Button, InputAddress, InputBalance, TxButton, TxComponent } from '@polkadot/ui-app'; +import { Button, InputAddress, InputBalance, TxButton, TxComponent } from '@polkadot/react-components'; import Summary from './Summary'; diff --git a/packages/app-123code/src/index.tsx b/packages/app-123code/src/index.tsx index 15798477e4..5086a5c0ec 100644 --- a/packages/app-123code/src/index.tsx +++ b/packages/app-123code/src/index.tsx @@ -6,7 +6,7 @@ // translatable strings. Generally the latter is quite "light", // `t` is inject into props (see the HOC export) and `t('any text') // does the translation -import { AppProps, I18nProps } from '@polkadot/ui-app/types'; +import { AppProps, I18nProps } from '@polkadot/react-components/types'; // external imports (including those found in the packages/* // of this repo) diff --git a/packages/app-accounts/package.json b/packages/app-accounts/package.json index 94a30f4967..6aa0803bf8 100644 --- a/packages/app-accounts/package.json +++ b/packages/app-accounts/package.json @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.5.5", - "@polkadot/ui-app": "^0.34.0-beta.119", + "@polkadot/react-components": "^0.34.0-beta.119", "@types/file-saver": "^2.0.0", "@types/yargs": "^13.0.2", "babel-plugin-module-resolver": "^3.1.1", diff --git a/packages/app-accounts/src/Account.tsx b/packages/app-accounts/src/Account.tsx index feeded057f..5892f41b9b 100644 --- a/packages/app-accounts/src/Account.tsx +++ b/packages/app-accounts/src/Account.tsx @@ -2,11 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { ActionStatus } from '@polkadot/ui-app/Status/types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { ActionStatus } from '@polkadot/react-components/Status/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; -import { AddressCard, AddressInfo, Button, Forget, Icon } from '@polkadot/ui-app'; +import { AddressCard, AddressInfo, Button, Forget, Icon } from '@polkadot/react-components'; import keyring from '@polkadot/ui-keyring'; import Backup from './modals/Backup'; diff --git a/packages/app-accounts/src/Banner.tsx b/packages/app-accounts/src/Banner.tsx index 1c3d51b70d..771324c48a 100644 --- a/packages/app-accounts/src/Banner.tsx +++ b/packages/app-accounts/src/Banner.tsx @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { detect } from 'detect-browser'; import React from 'react'; diff --git a/packages/app-accounts/src/Overview.tsx b/packages/app-accounts/src/Overview.tsx index 39ed7249cf..a21635a65a 100644 --- a/packages/app-accounts/src/Overview.tsx +++ b/packages/app-accounts/src/Overview.tsx @@ -2,14 +2,14 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { SubjectInfo } from '@polkadot/ui-keyring/observable/types'; import { ComponentProps } from './types'; import React from 'react'; import accountObservable from '@polkadot/ui-keyring/observable/accounts'; -import { withMulti, withObservable } from '@polkadot/ui-api'; -import { Button, CardGrid } from '@polkadot/ui-app'; +import { withMulti, withObservable } from '@polkadot/react-api'; +import { Button, CardGrid } from '@polkadot/react-components'; import CreateModal from './modals/Create'; import ImportModal from './modals/Import'; diff --git a/packages/app-accounts/src/Vanity/Match.tsx b/packages/app-accounts/src/Vanity/Match.tsx index a878acaa2c..c9f70817ff 100644 --- a/packages/app-accounts/src/Vanity/Match.tsx +++ b/packages/app-accounts/src/Vanity/Match.tsx @@ -2,11 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps } from '@polkadot/ui-app/types'; +import { BareProps } from '@polkadot/react-components/types'; import React from 'react'; import styled from 'styled-components'; -import { Button, IdentityIcon } from '@polkadot/ui-app'; +import { Button, IdentityIcon } from '@polkadot/react-components'; import { u8aToHex } from '@polkadot/util'; interface Props extends BareProps { diff --git a/packages/app-accounts/src/Vanity/index.tsx b/packages/app-accounts/src/Vanity/index.tsx index 31047f1087..183c8e7ebe 100644 --- a/packages/app-accounts/src/Vanity/index.tsx +++ b/packages/app-accounts/src/Vanity/index.tsx @@ -2,14 +2,14 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { KeypairType } from '@polkadot/util-crypto/types'; import { GeneratorMatches, GeneratorMatch, GeneratorResult } from '../vanitygen/types'; import { ComponentProps } from '../types'; import React from 'react'; import styled from 'styled-components'; -import { Button, Dropdown, Input, TxComponent } from '@polkadot/ui-app'; +import { Button, Dropdown, Input, TxComponent } from '@polkadot/react-components'; import uiSettings from '@polkadot/ui-settings'; import CreateModal from '../modals/Create'; diff --git a/packages/app-accounts/src/index.tsx b/packages/app-accounts/src/index.tsx index 754a95a739..d2091673dc 100644 --- a/packages/app-accounts/src/index.tsx +++ b/packages/app-accounts/src/index.tsx @@ -2,16 +2,16 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AppProps, I18nProps } from '@polkadot/ui-app/types'; +import { AppProps, I18nProps } from '@polkadot/react-components/types'; import { ComponentProps, LocationProps } from './types'; import { SubjectInfo } from '@polkadot/ui-keyring/observable/types'; import React from 'react'; import { Route, Switch } from 'react-router'; import accountObservable from '@polkadot/ui-keyring/observable/accounts'; -import { HelpOverlay, Tabs } from '@polkadot/ui-app'; -import { TabItem } from '@polkadot/ui-app/Tabs'; -import { withMulti, withObservable } from '@polkadot/ui-api'; +import { HelpOverlay, Tabs } from '@polkadot/react-components'; +import { TabItem } from '@polkadot/react-components/Tabs'; +import { withMulti, withObservable } from '@polkadot/react-api'; import basicMd from './md/basic.md'; import Overview from './Overview'; diff --git a/packages/app-accounts/src/modals/Backup.tsx b/packages/app-accounts/src/modals/Backup.tsx index 5bd9102647..4040710543 100644 --- a/packages/app-accounts/src/modals/Backup.tsx +++ b/packages/app-accounts/src/modals/Backup.tsx @@ -2,12 +2,12 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import FileSaver from 'file-saver'; import React from 'react'; -import { AddressRow, Button, Modal, Password, TxComponent } from '@polkadot/ui-app'; -import { ActionStatus } from '@polkadot/ui-app/Status/types'; +import { AddressRow, Button, Modal, Password, TxComponent } from '@polkadot/react-components'; +import { ActionStatus } from '@polkadot/react-components/Status/types'; import keyring from '@polkadot/ui-keyring'; import translate from '../translate'; diff --git a/packages/app-accounts/src/modals/ChangePass.tsx b/packages/app-accounts/src/modals/ChangePass.tsx index 704f3b14ab..a1e42a5208 100644 --- a/packages/app-accounts/src/modals/ChangePass.tsx +++ b/packages/app-accounts/src/modals/ChangePass.tsx @@ -2,11 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; -import { AddressRow, Button, Modal, Password, TxComponent } from '@polkadot/ui-app'; -import { ActionStatus } from '@polkadot/ui-app/Status/types'; +import { AddressRow, Button, Modal, Password, TxComponent } from '@polkadot/react-components'; +import { ActionStatus } from '@polkadot/react-components/Status/types'; import keyring from '@polkadot/ui-keyring'; import translate from '../translate'; diff --git a/packages/app-accounts/src/modals/Create.tsx b/packages/app-accounts/src/modals/Create.tsx index 0228bf3652..b39e7ca355 100644 --- a/packages/app-accounts/src/modals/Create.tsx +++ b/packages/app-accounts/src/modals/Create.tsx @@ -2,9 +2,9 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; -import { ApiProps } from '@polkadot/ui-api/types'; -import { ActionStatus } from '@polkadot/ui-app/Status/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { ApiProps } from '@polkadot/react-api/types'; +import { ActionStatus } from '@polkadot/react-components/Status/types'; import { KeypairType } from '@polkadot/util-crypto/types'; import { ModalProps } from '../types'; @@ -12,9 +12,9 @@ import FileSaver from 'file-saver'; import React from 'react'; import styled from 'styled-components'; import { DEV_PHRASE } from '@polkadot/keyring/defaults'; -import { withApi, withMulti } from '@polkadot/ui-api'; -import { AddressRow, Button, Dropdown, Input, Labelled, Modal, Password } from '@polkadot/ui-app'; -import { InputAddress } from '@polkadot/ui-app/InputAddress'; +import { withApi, withMulti } from '@polkadot/react-api'; +import { AddressRow, Button, Dropdown, Input, Labelled, Modal, Password } from '@polkadot/react-components'; +import { InputAddress } from '@polkadot/react-components/InputAddress'; import keyring from '@polkadot/ui-keyring'; import uiSettings from '@polkadot/ui-settings'; import { isHex, u8aToHex } from '@polkadot/util'; diff --git a/packages/app-accounts/src/modals/Import.tsx b/packages/app-accounts/src/modals/Import.tsx index c3892ebf83..0023be0f8a 100644 --- a/packages/app-accounts/src/modals/Import.tsx +++ b/packages/app-accounts/src/modals/Import.tsx @@ -3,13 +3,13 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { KeyringPair$Json } from '@polkadot/keyring/types'; -import { I18nProps } from '@polkadot/ui-app/types'; -import { ActionStatus } from '@polkadot/ui-app/Status/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { ActionStatus } from '@polkadot/react-components/Status/types'; import { ModalProps } from '../types'; import React from 'react'; -import { AddressRow, Button, InputFile, Modal, Password, TxComponent } from '@polkadot/ui-app'; -import { InputAddress } from '@polkadot/ui-app/InputAddress'; +import { AddressRow, Button, InputFile, Modal, Password, TxComponent } from '@polkadot/react-components'; +import { InputAddress } from '@polkadot/react-components/InputAddress'; import { isHex, isObject, u8aToString } from '@polkadot/util'; import keyring from '@polkadot/ui-keyring'; diff --git a/packages/app-accounts/src/modals/Transfer.tsx b/packages/app-accounts/src/modals/Transfer.tsx index 599c995c87..247e6837af 100644 --- a/packages/app-accounts/src/modals/Transfer.tsx +++ b/packages/app-accounts/src/modals/Transfer.tsx @@ -5,18 +5,18 @@ import { SubmittableExtrinsic } from '@polkadot/api/promise/types'; import { Index } from '@polkadot/types/interfaces'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { ApiProps } from '@polkadot/react-api/types'; import { DerivedFees } from '@polkadot/api-derive/types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import BN from 'bn.js'; import React from 'react'; import styled from 'styled-components'; -import { Button, InputAddress, InputBalance, Modal, TxButton } from '@polkadot/ui-app'; -import { Available } from '@polkadot/ui-reactive'; -import Checks, { calcSignatureLength } from '@polkadot/ui-signer/Checks'; -import { withApi, withCalls, withMulti } from '@polkadot/ui-api'; -import { ZERO_FEES } from '@polkadot/ui-signer/Checks/constants'; +import { Button, InputAddress, InputBalance, Modal, TxButton } from '@polkadot/react-components'; +import { Available } from '@polkadot/react-query'; +import Checks, { calcSignatureLength } from '@polkadot/react-signer/Checks'; +import { withApi, withCalls, withMulti } from '@polkadot/react-api'; +import { ZERO_FEES } from '@polkadot/react-signer/Checks/constants'; import translate from '../translate'; diff --git a/packages/app-accounts/src/types.ts b/packages/app-accounts/src/types.ts index 753cb11d8d..62c2ad4205 100644 --- a/packages/app-accounts/src/types.ts +++ b/packages/app-accounts/src/types.ts @@ -2,8 +2,8 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AppProps } from '@polkadot/ui-app/types'; -import { ActionStatus } from '@polkadot/ui-app/Status/types'; +import { AppProps } from '@polkadot/react-components/types'; +import { ActionStatus } from '@polkadot/react-components/Status/types'; import { WithTranslation } from 'react-i18next'; diff --git a/packages/app-address-book/package.json b/packages/app-address-book/package.json index 8820bc6437..49849b88ac 100644 --- a/packages/app-address-book/package.json +++ b/packages/app-address-book/package.json @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.5.5", - "@polkadot/ui-app": "^0.34.0-beta.119" + "@polkadot/react-components": "^0.34.0-beta.119" } } diff --git a/packages/app-address-book/src/Address.tsx b/packages/app-address-book/src/Address.tsx index 365e71e7b6..4841721698 100644 --- a/packages/app-address-book/src/Address.tsx +++ b/packages/app-address-book/src/Address.tsx @@ -3,11 +3,11 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { KeyringAddress } from '@polkadot/ui-keyring/types'; -import { ActionStatus } from '@polkadot/ui-app/Status/types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { ActionStatus } from '@polkadot/react-components/Status/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; -import { AddressCard, AddressInfo, Button, Forget, Icon } from '@polkadot/ui-app'; +import { AddressCard, AddressInfo, Button, Forget, Icon } from '@polkadot/react-components'; import keyring from '@polkadot/ui-keyring'; import Transfer from '@polkadot/app-accounts/modals/Transfer'; diff --git a/packages/app-address-book/src/Overview.tsx b/packages/app-address-book/src/Overview.tsx index 6d94811514..2e0de76543 100644 --- a/packages/app-address-book/src/Overview.tsx +++ b/packages/app-address-book/src/Overview.tsx @@ -2,14 +2,14 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { SubjectInfo } from '@polkadot/ui-keyring/observable/types'; import { ComponentProps } from './types'; import React from 'react'; -import { Button, CardGrid } from '@polkadot/ui-app'; +import { Button, CardGrid } from '@polkadot/react-components'; import addressObservable from '@polkadot/ui-keyring/observable/addresses'; -import { withMulti, withObservable } from '@polkadot/ui-api'; +import { withMulti, withObservable } from '@polkadot/react-api'; import CreateModal from './modals/Create'; import Address from './Address'; diff --git a/packages/app-address-book/src/index.tsx b/packages/app-address-book/src/index.tsx index 726888bde0..1595ea629f 100644 --- a/packages/app-address-book/src/index.tsx +++ b/packages/app-address-book/src/index.tsx @@ -2,16 +2,16 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AppProps, I18nProps } from '@polkadot/ui-app/types'; +import { AppProps, I18nProps } from '@polkadot/react-components/types'; import { SubjectInfo } from '@polkadot/ui-keyring/observable/types'; import { ComponentProps } from './types'; import React from 'react'; import { Route, Switch } from 'react-router'; import addressObservable from '@polkadot/ui-keyring/observable/addresses'; -import { HelpOverlay } from '@polkadot/ui-app'; -import Tabs, { TabItem } from '@polkadot/ui-app/Tabs'; -import { withMulti, withObservable } from '@polkadot/ui-api'; +import { HelpOverlay } from '@polkadot/react-components'; +import Tabs, { TabItem } from '@polkadot/react-components/Tabs'; +import { withMulti, withObservable } from '@polkadot/react-api'; import basicMd from './md/basic.md'; import Overview from './Overview'; diff --git a/packages/app-address-book/src/modals/Create.tsx b/packages/app-address-book/src/modals/Create.tsx index 2719864f02..8f3b15bf90 100644 --- a/packages/app-address-book/src/modals/Create.tsx +++ b/packages/app-address-book/src/modals/Create.tsx @@ -2,14 +2,14 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; -import { ActionStatus } from '@polkadot/ui-app/Status/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { ActionStatus } from '@polkadot/react-components/Status/types'; import { ModalProps } from '../types'; import React from 'react'; -import { AddressRow, Button, Input, Modal } from '@polkadot/ui-app'; -import { InputAddress } from '@polkadot/ui-app/InputAddress'; +import { AddressRow, Button, Input, Modal } from '@polkadot/react-components'; +import { InputAddress } from '@polkadot/react-components/InputAddress'; import keyring from '@polkadot/ui-keyring'; import translate from '../translate'; diff --git a/packages/app-address-book/src/types.ts b/packages/app-address-book/src/types.ts index 00289a5761..c21ec64fbe 100644 --- a/packages/app-address-book/src/types.ts +++ b/packages/app-address-book/src/types.ts @@ -2,8 +2,8 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AppProps } from '@polkadot/ui-app/types'; -import { ActionStatus } from '@polkadot/ui-app/Status/types'; +import { AppProps } from '@polkadot/react-components/types'; +import { ActionStatus } from '@polkadot/react-components/Status/types'; export type ComponentProps = AppProps; diff --git a/packages/app-contracts/package.json b/packages/app-contracts/package.json index 355bdcc92d..4ba5569bb2 100644 --- a/packages/app-contracts/package.json +++ b/packages/app-contracts/package.json @@ -12,6 +12,6 @@ "dependencies": { "@babel/runtime": "^7.5.5", "@polkadot/api-contract": "^0.90.0-beta.43", - "@polkadot/ui-app": "^0.34.0-beta.119" + "@polkadot/react-components": "^0.34.0-beta.119" } } diff --git a/packages/app-contracts/src/ABI.tsx b/packages/app-contracts/src/ABI.tsx index f664438eb7..2725d4c333 100644 --- a/packages/app-contracts/src/ABI.tsx +++ b/packages/app-contracts/src/ABI.tsx @@ -2,12 +2,12 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; import styled from 'styled-components'; import { Abi } from '@polkadot/api-contract'; -import { InputFile, Labelled, Messages } from '@polkadot/ui-app'; +import { InputFile, Labelled, Messages } from '@polkadot/react-components'; import { u8aToString } from '@polkadot/util'; import translate from './translate'; diff --git a/packages/app-contracts/src/Codes/Add.tsx b/packages/app-contracts/src/Codes/Add.tsx index dffa6ddd0a..c31f60a01e 100644 --- a/packages/app-contracts/src/Codes/Add.tsx +++ b/packages/app-contracts/src/Codes/Add.tsx @@ -4,7 +4,7 @@ import React from 'react'; import { createType } from '@polkadot/types'; -import { Button, Input } from '@polkadot/ui-app'; +import { Button, Input } from '@polkadot/react-components'; import ContractModal, { ContractModalProps, ContractModalState } from '../Modal'; import ValidateCode from './ValidateCode'; diff --git a/packages/app-contracts/src/Codes/Code.tsx b/packages/app-contracts/src/Codes/Code.tsx index 8597075aa4..2a1d70f129 100644 --- a/packages/app-contracts/src/Codes/Code.tsx +++ b/packages/app-contracts/src/Codes/Code.tsx @@ -2,15 +2,15 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { CodeStored } from '../types'; import React from 'react'; import styled from 'styled-components'; import { RouteComponentProps } from 'react-router'; import { withRouter } from 'react-router-dom'; -import { Button, Card, CodeRow, Forget } from '@polkadot/ui-app'; -import { withMulti } from '@polkadot/ui-api'; +import { Button, Card, CodeRow, Forget } from '@polkadot/react-components'; +import { withMulti } from '@polkadot/react-api'; import ABI from '../ABI'; import RemoveABI from '../RemoveABI'; diff --git a/packages/app-contracts/src/Codes/Upload.tsx b/packages/app-contracts/src/Codes/Upload.tsx index e5f0d171fe..36452c685a 100644 --- a/packages/app-contracts/src/Codes/Upload.tsx +++ b/packages/app-contracts/src/Codes/Upload.tsx @@ -3,13 +3,13 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { Hash } from '@polkadot/types/interfaces'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { ApiProps } from '@polkadot/react-api/types'; import { SubmittableResult } from '@polkadot/api/SubmittableExtrinsic'; import BN from 'bn.js'; import React from 'react'; -import { withApi, withMulti } from '@polkadot/ui-api'; -import { Button, InputFile, TxButton } from '@polkadot/ui-app'; +import { withApi, withMulti } from '@polkadot/react-api'; +import { Button, InputFile, TxButton } from '@polkadot/react-components'; import { compactAddLength } from '@polkadot/util'; import ContractModal, { ContractModalProps, ContractModalState } from '../Modal'; diff --git a/packages/app-contracts/src/Codes/ValidateCode.tsx b/packages/app-contracts/src/Codes/ValidateCode.tsx index 32ff9f9f04..7aa80c221d 100644 --- a/packages/app-contracts/src/Codes/ValidateCode.tsx +++ b/packages/app-contracts/src/Codes/ValidateCode.tsx @@ -4,13 +4,13 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { PrefabWasmModule } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { ApiProps } from '@polkadot/react-api/types'; import React from 'react'; import { Option } from '@polkadot/types'; -import { withCalls } from '@polkadot/ui-api'; -import { InfoForInput } from '@polkadot/ui-app'; +import { withCalls } from '@polkadot/react-api'; +import { InfoForInput } from '@polkadot/react-components'; import { isHex } from '@polkadot/util'; import translate from '../translate'; diff --git a/packages/app-contracts/src/Codes/index.tsx b/packages/app-contracts/src/Codes/index.tsx index cd6ba782f3..74801c2781 100644 --- a/packages/app-contracts/src/Codes/index.tsx +++ b/packages/app-contracts/src/Codes/index.tsx @@ -2,11 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { ComponentProps } from '../types'; import React from 'react'; -import { Button, CardGrid } from '@polkadot/ui-app'; +import { Button, CardGrid } from '@polkadot/react-components'; import contracts from '../store'; import translate from '../translate'; diff --git a/packages/app-contracts/src/Contracts/Add.tsx b/packages/app-contracts/src/Contracts/Add.tsx index 9207f51315..1e3103ebbe 100644 --- a/packages/app-contracts/src/Contracts/Add.tsx +++ b/packages/app-contracts/src/Contracts/Add.tsx @@ -2,13 +2,13 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { ApiProps } from '@polkadot/ui-api/types'; -import { I18nProps } from '@polkadot/ui-app/types'; -import { ActionStatus } from '@polkadot/ui-app/Status/types'; +import { ApiProps } from '@polkadot/react-api/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { ActionStatus } from '@polkadot/react-components/Status/types'; import React from 'react'; -import { withApi } from '@polkadot/ui-api'; -import { AddressRow, Button, Input } from '@polkadot/ui-app'; +import { withApi } from '@polkadot/react-api'; +import { AddressRow, Button, Input } from '@polkadot/react-components'; import keyring from '@polkadot/ui-keyring'; import ContractModal, { ContractModalProps, ContractModalState } from '../Modal'; diff --git a/packages/app-contracts/src/Contracts/Call.tsx b/packages/app-contracts/src/Contracts/Call.tsx index ff0f7fe21c..0c6752ee15 100644 --- a/packages/app-contracts/src/Contracts/Call.tsx +++ b/packages/app-contracts/src/Contracts/Call.tsx @@ -2,16 +2,16 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { ApiProps } from '@polkadot/ui-api/types'; -import { BareProps, I18nProps } from '@polkadot/ui-app/types'; +import { ApiProps } from '@polkadot/react-api/types'; +import { BareProps, I18nProps } from '@polkadot/react-components/types'; import BN from 'bn.js'; import React from 'react'; import { withRouter } from 'react-router-dom'; import { Abi } from '@polkadot/api-contract'; -import { Button, Dropdown, InputAddress, InputBalance, InputNumber, Modal, TxButton, TxComponent } from '@polkadot/ui-app'; -import { getContractAbi } from '@polkadot/ui-app/util'; -import { withApi, withMulti } from '@polkadot/ui-api'; +import { Button, Dropdown, InputAddress, InputBalance, InputNumber, Modal, TxButton, TxComponent } from '@polkadot/react-components'; +import { getContractAbi } from '@polkadot/react-components/util'; +import { withApi, withMulti } from '@polkadot/react-api'; import translate from '../translate'; import Params from '../Params'; diff --git a/packages/app-contracts/src/Contracts/Contract.tsx b/packages/app-contracts/src/Contracts/Contract.tsx index 07f67df201..d699dc1f59 100644 --- a/packages/app-contracts/src/Contracts/Contract.tsx +++ b/packages/app-contracts/src/Contracts/Contract.tsx @@ -2,16 +2,16 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { ActionStatus } from '@polkadot/ui-app/Status/types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { ActionStatus } from '@polkadot/react-components/Status/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; import { RouteComponentProps } from 'react-router'; import { withRouter } from 'react-router-dom'; import keyring from '@polkadot/ui-keyring'; -import { AddressRow, Button, Card, Forget, Messages } from '@polkadot/ui-app'; -import { getContractAbi } from '@polkadot/ui-app/util'; -import { withMulti } from '@polkadot/ui-api'; +import { AddressRow, Button, Card, Forget, Messages } from '@polkadot/react-components'; +import { getContractAbi } from '@polkadot/react-components/util'; +import { withMulti } from '@polkadot/react-api'; import translate from '../translate'; diff --git a/packages/app-contracts/src/Contracts/ValidateAddr.tsx b/packages/app-contracts/src/Contracts/ValidateAddr.tsx index 594b46a544..9207872637 100644 --- a/packages/app-contracts/src/Contracts/ValidateAddr.tsx +++ b/packages/app-contracts/src/Contracts/ValidateAddr.tsx @@ -4,13 +4,13 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { ContractInfo } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { ApiProps } from '@polkadot/react-api/types'; import React from 'react'; import { Option } from '@polkadot/types'; -import { withCalls } from '@polkadot/ui-api'; -import { InfoForInput } from '@polkadot/ui-app'; +import { withCalls } from '@polkadot/react-api'; +import { InfoForInput } from '@polkadot/react-components'; import keyring from '@polkadot/ui-keyring'; import translate from '../translate'; diff --git a/packages/app-contracts/src/Contracts/index.tsx b/packages/app-contracts/src/Contracts/index.tsx index 0ff155efc2..2ff8d895f9 100644 --- a/packages/app-contracts/src/Contracts/index.tsx +++ b/packages/app-contracts/src/Contracts/index.tsx @@ -2,14 +2,14 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { ComponentProps } from '../types'; import React from 'react'; import { RouteComponentProps } from 'react-router'; import { withRouter } from 'react-router-dom'; -import { Button, CardGrid } from '@polkadot/ui-app'; -import { withMulti } from '@polkadot/ui-api'; +import { Button, CardGrid } from '@polkadot/react-components'; +import { withMulti } from '@polkadot/react-api'; import translate from '../translate'; import Add from './Add'; diff --git a/packages/app-contracts/src/Deploy.tsx b/packages/app-contracts/src/Deploy.tsx index dd3906492c..fdad35ed49 100644 --- a/packages/app-contracts/src/Deploy.tsx +++ b/packages/app-contracts/src/Deploy.tsx @@ -4,20 +4,20 @@ import { AccountId } from '@polkadot/types/interfaces'; import { TypeDef } from '@polkadot/types/types'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { ApiProps } from '@polkadot/react-api/types'; import { SubmittableResult } from '@polkadot/api/SubmittableExtrinsic'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import BN from 'bn.js'; import React from 'react'; import { RouteComponentProps } from 'react-router'; import { withRouter } from 'react-router-dom'; import { Abi } from '@polkadot/api-contract'; -import { withApi, withMulti } from '@polkadot/ui-api'; +import { withApi, withMulti } from '@polkadot/react-api'; import keyring from '@polkadot/ui-keyring'; -import { Button, Dropdown, InputBalance, TxButton } from '@polkadot/ui-app'; +import { Button, Dropdown, InputBalance, TxButton } from '@polkadot/react-components'; import { getTypeDef } from '@polkadot/types'; -import createValues from '@polkadot/ui-params/values'; +import createValues from '@polkadot/react-params/values'; import ContractModal, { ContractModalProps, ContractModalState } from './Modal'; import Params from './Params'; diff --git a/packages/app-contracts/src/Modal.tsx b/packages/app-contracts/src/Modal.tsx index 4641507e1a..1b7ebd6b2a 100644 --- a/packages/app-contracts/src/Modal.tsx +++ b/packages/app-contracts/src/Modal.tsx @@ -2,12 +2,12 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import BN from 'bn.js'; import React from 'react'; import { Abi } from '@polkadot/api-contract'; -import { Button, Input, InputAddress, InputNumber, Modal, TxComponent } from '@polkadot/ui-app'; +import { Button, Input, InputAddress, InputNumber, Modal, TxComponent } from '@polkadot/react-components'; import ABI from './ABI'; diff --git a/packages/app-contracts/src/Params.tsx b/packages/app-contracts/src/Params.tsx index 437443e91e..6e2731713a 100644 --- a/packages/app-contracts/src/Params.tsx +++ b/packages/app-contracts/src/Params.tsx @@ -4,10 +4,10 @@ import { ContractABIFnArg } from '@polkadot/api-contract/types'; import { TypeDef } from '@polkadot/types/types'; -import { RawParams } from '@polkadot/ui-params/types'; +import { RawParams } from '@polkadot/react-params/types'; import React from 'react'; -import UIParams from '@polkadot/ui-params'; +import UIParams from '@polkadot/react-params'; import { getTypeDef } from '@polkadot/types'; interface Props { diff --git a/packages/app-contracts/src/RemoveABI.tsx b/packages/app-contracts/src/RemoveABI.tsx index f499d01fd8..0c873fb718 100644 --- a/packages/app-contracts/src/RemoveABI.tsx +++ b/packages/app-contracts/src/RemoveABI.tsx @@ -2,11 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { CodeStored } from '@polkadot/app-contracts/types'; import React from 'react'; -import { Button, CodeRow, Modal } from '@polkadot/ui-app'; +import { Button, CodeRow, Modal } from '@polkadot/react-components'; import translate from './translate'; diff --git a/packages/app-contracts/src/index.tsx b/packages/app-contracts/src/index.tsx index c9c07b6ca3..14b2033e8b 100644 --- a/packages/app-contracts/src/index.tsx +++ b/packages/app-contracts/src/index.tsx @@ -2,15 +2,15 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AppProps, I18nProps } from '@polkadot/ui-app/types'; -import { TabItem } from '@polkadot/ui-app/Tabs'; +import { AppProps, I18nProps } from '@polkadot/react-components/types'; +import { TabItem } from '@polkadot/react-components/Tabs'; import { ComponentProps, LocationProps } from './types'; import React from 'react'; import { Route, RouteComponentProps, Switch } from 'react-router'; import { withRouter } from 'react-router-dom'; -import { HelpOverlay, Tabs } from '@polkadot/ui-app'; -import { withMulti, withObservable } from '@polkadot/ui-api'; +import { HelpOverlay, Tabs } from '@polkadot/react-components'; +import { withMulti, withObservable } from '@polkadot/react-api'; import keyring from '@polkadot/ui-keyring'; import { SubjectInfo } from '@polkadot/ui-keyring/observable/types'; diff --git a/packages/app-contracts/src/store.ts b/packages/app-contracts/src/store.ts index 7f783aa015..42c5ef7313 100644 --- a/packages/app-contracts/src/store.ts +++ b/packages/app-contracts/src/store.ts @@ -9,7 +9,7 @@ import EventEmitter from 'eventemitter3'; import store from 'store'; import { Abi } from '@polkadot/api-contract'; import { createType } from '@polkadot/types'; -import { api } from '@polkadot/ui-api'; +import { api } from '@polkadot/react-api'; const KEY_CODE = 'code:'; diff --git a/packages/app-contracts/src/types.ts b/packages/app-contracts/src/types.ts index e22bb629a8..07dc70c615 100644 --- a/packages/app-contracts/src/types.ts +++ b/packages/app-contracts/src/types.ts @@ -3,7 +3,7 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { Abi } from '@polkadot/api-contract'; -import { AppProps } from '@polkadot/ui-app/types'; +import { AppProps } from '@polkadot/react-components/types'; import { SubjectInfo } from '@polkadot/ui-keyring/observable/types'; export interface LocationProps { diff --git a/packages/app-council/package.json b/packages/app-council/package.json index 1b240f5dfa..2359a7e33b 100644 --- a/packages/app-council/package.json +++ b/packages/app-council/package.json @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.5.5", - "@polkadot/ui-app": "^0.34.0-beta.119", - "@polkadot/ui-reactive": "^0.34.0-beta.119" + "@polkadot/react-components": "^0.34.0-beta.119", + "@polkadot/react-query": "^0.34.0-beta.119" } } diff --git a/packages/app-council/src/Motions/Motion.tsx b/packages/app-council/src/Motions/Motion.tsx index ce77b15bea..1ed7a21b9c 100644 --- a/packages/app-council/src/Motions/Motion.tsx +++ b/packages/app-council/src/Motions/Motion.tsx @@ -3,14 +3,14 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { Proposal as ProposalType, Votes } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import BN from 'bn.js'; import React from 'react'; import { Option } from '@polkadot/types'; -import { ActionItem, InputAddress, Labelled, Voting } from '@polkadot/ui-app'; -import { withCalls, withMulti } from '@polkadot/ui-api'; +import { ActionItem, InputAddress, Labelled, Voting } from '@polkadot/react-components'; +import { withCalls, withMulti } from '@polkadot/react-api'; import translate from '../translate'; diff --git a/packages/app-council/src/Motions/Propose.tsx b/packages/app-council/src/Motions/Propose.tsx index a83ba8a3c3..fa0921e71b 100644 --- a/packages/app-council/src/Motions/Propose.tsx +++ b/packages/app-council/src/Motions/Propose.tsx @@ -3,14 +3,14 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { Call, Proposal } from '@polkadot/types/interfaces'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { ApiProps } from '@polkadot/react-api/types'; import BN from 'bn.js'; import React from 'react'; import { createType } from '@polkadot/types'; -import { Button, Extrinsic, InputNumber } from '@polkadot/ui-app'; -import TxModal, { TxModalState, TxModalProps } from '@polkadot/ui-app/TxModal'; -import { withApi, withCalls, withMulti } from '@polkadot/ui-api'; +import { Button, Extrinsic, InputNumber } from '@polkadot/react-components'; +import TxModal, { TxModalState, TxModalProps } from '@polkadot/react-components/TxModal'; +import { withApi, withCalls, withMulti } from '@polkadot/react-api'; import translate from '../translate'; diff --git a/packages/app-council/src/Motions/index.tsx b/packages/app-council/src/Motions/index.tsx index 7888fa270d..8a4327eb4f 100644 --- a/packages/app-council/src/Motions/index.tsx +++ b/packages/app-council/src/Motions/index.tsx @@ -4,11 +4,11 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { Hash } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; -import { withCalls } from '@polkadot/ui-api'; -import { CardGrid } from '@polkadot/ui-app'; +import { withCalls } from '@polkadot/react-api'; +import { CardGrid } from '@polkadot/react-components'; import Motion from './Motion'; import Propose from './Propose'; diff --git a/packages/app-council/src/Overview/Candidate.tsx b/packages/app-council/src/Overview/Candidate.tsx index d6f98b5b0d..6d344fe458 100644 --- a/packages/app-council/src/Overview/Candidate.tsx +++ b/packages/app-council/src/Overview/Candidate.tsx @@ -5,7 +5,7 @@ import { AccountId } from '@polkadot/types/interfaces'; import React from 'react'; -import { AddressCard } from '@polkadot/ui-app'; +import { AddressCard } from '@polkadot/react-components'; interface Props { address: AccountId; diff --git a/packages/app-council/src/Overview/Member.tsx b/packages/app-council/src/Overview/Member.tsx index 46e00c5f1f..18622cda2c 100644 --- a/packages/app-council/src/Overview/Member.tsx +++ b/packages/app-council/src/Overview/Member.tsx @@ -3,10 +3,10 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { BlockNumber } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; -import { AddressCard } from '@polkadot/ui-app'; +import { AddressCard } from '@polkadot/react-components'; import { formatNumber } from '@polkadot/util'; import translate from '../translate'; diff --git a/packages/app-council/src/Overview/Members.tsx b/packages/app-council/src/Overview/Members.tsx index ab0b7280a5..c06e8175e8 100644 --- a/packages/app-council/src/Overview/Members.tsx +++ b/packages/app-council/src/Overview/Members.tsx @@ -3,11 +3,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { ComponentProps } from './types'; import React from 'react'; -import { Columar, Column } from '@polkadot/ui-app'; +import { Columar, Column } from '@polkadot/react-components'; import translate from '../translate'; import Candidate from './Candidate'; diff --git a/packages/app-council/src/Overview/SubmitCandidacy.tsx b/packages/app-council/src/Overview/SubmitCandidacy.tsx index 405f389d7a..f0d8de10bf 100644 --- a/packages/app-council/src/Overview/SubmitCandidacy.tsx +++ b/packages/app-council/src/Overview/SubmitCandidacy.tsx @@ -6,8 +6,8 @@ import { ComponentProps } from './types'; import BN from 'bn.js'; import React from 'react'; -import { Button } from '@polkadot/ui-app'; -import TxModal, { TxModalState as State, TxModalProps } from '@polkadot/ui-app/TxModal'; +import { Button } from '@polkadot/react-components'; +import TxModal, { TxModalState as State, TxModalProps } from '@polkadot/react-components/TxModal'; import translate from '../translate'; diff --git a/packages/app-council/src/Overview/Summary.tsx b/packages/app-council/src/Overview/Summary.tsx index 04dc73b645..71e8198518 100644 --- a/packages/app-council/src/Overview/Summary.tsx +++ b/packages/app-council/src/Overview/Summary.tsx @@ -3,11 +3,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { ComponentProps } from './types'; import React from 'react'; -import { SummaryBox, CardSummary } from '@polkadot/ui-app'; +import { SummaryBox, CardSummary } from '@polkadot/react-components'; import { formatNumber } from '@polkadot/util'; import translate from '../translate'; diff --git a/packages/app-council/src/Overview/Vote.tsx b/packages/app-council/src/Overview/Vote.tsx index fdb635881d..af05e17679 100644 --- a/packages/app-council/src/Overview/Vote.tsx +++ b/packages/app-council/src/Overview/Vote.tsx @@ -4,16 +4,16 @@ import { VoteIndex } from '@polkadot/types/interfaces'; import { DerivedVoterPositions } from '@polkadot/api-derive/types'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { ApiProps } from '@polkadot/react-api/types'; import { ComponentProps } from './types'; import BN from 'bn.js'; import React from 'react'; import styled from 'styled-components'; import { createType } from '@polkadot/types'; -import { withApi, withCalls, withMulti } from '@polkadot/ui-api'; -import { AddressRow, Button, Icon, Toggle, TxButton } from '@polkadot/ui-app'; -import TxModal, { TxModalState, TxModalProps } from '@polkadot/ui-app/TxModal'; +import { withApi, withCalls, withMulti } from '@polkadot/react-api'; +import { AddressRow, Button, Icon, Toggle, TxButton } from '@polkadot/react-components'; +import TxModal, { TxModalState, TxModalProps } from '@polkadot/react-components/TxModal'; import translate from '../translate'; diff --git a/packages/app-council/src/Overview/index.tsx b/packages/app-council/src/Overview/index.tsx index d91fc16c13..b9e259ade6 100644 --- a/packages/app-council/src/Overview/index.tsx +++ b/packages/app-council/src/Overview/index.tsx @@ -8,8 +8,8 @@ import { ComponentProps as Props } from './types'; import BN from 'bn.js'; import React from 'react'; -import { withCalls } from '@polkadot/ui-api'; -import { Button } from '@polkadot/ui-app'; +import { withCalls } from '@polkadot/react-api'; +import { Button } from '@polkadot/react-components'; import Members from './Members'; import SubmitCandidacy from './SubmitCandidacy'; diff --git a/packages/app-council/src/index.tsx b/packages/app-council/src/index.tsx index 981e9bda68..320e2ce659 100644 --- a/packages/app-council/src/index.tsx +++ b/packages/app-council/src/index.tsx @@ -2,12 +2,12 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AppProps, BareProps, I18nProps } from '@polkadot/ui-app/types'; -import { TabItem } from '@polkadot/ui-app/Tabs'; +import { AppProps, BareProps, I18nProps } from '@polkadot/react-components/types'; +import { TabItem } from '@polkadot/react-components/Tabs'; import React from 'react'; import { Route, Switch } from 'react-router'; -import { Tabs } from '@polkadot/ui-app'; +import { Tabs } from '@polkadot/react-components'; import Overview from './Overview'; import Motions from './Motions'; diff --git a/packages/app-dashboard/package.json b/packages/app-dashboard/package.json index a090bed356..5edbfd7781 100644 --- a/packages/app-dashboard/package.json +++ b/packages/app-dashboard/package.json @@ -12,6 +12,6 @@ "dependencies": { "@babel/runtime": "^7.5.5", "@polkadot/apps-routing": "^0.34.0-beta.119", - "@polkadot/ui-app": "^0.34.0-beta.119" + "@polkadot/react-components": "^0.34.0-beta.119" } } diff --git a/packages/app-dashboard/src/Entry.tsx b/packages/app-dashboard/src/Entry.tsx index 706a2b2505..b6381fd9b5 100644 --- a/packages/app-dashboard/src/Entry.tsx +++ b/packages/app-dashboard/src/Entry.tsx @@ -3,12 +3,12 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { Route } from '@polkadot/apps-routing/types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; import { Link } from 'react-router-dom'; import styled from 'styled-components'; -import { Icon } from '@polkadot/ui-app'; +import { Icon } from '@polkadot/react-components'; import translate from './translate'; diff --git a/packages/app-dashboard/src/index.tsx b/packages/app-dashboard/src/index.tsx index 5330239f1d..ecd05b99dd 100644 --- a/packages/app-dashboard/src/index.tsx +++ b/packages/app-dashboard/src/index.tsx @@ -3,7 +3,7 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { Route } from '@polkadot/apps-routing/types'; -import { AppProps } from '@polkadot/ui-app/types'; +import { AppProps } from '@polkadot/react-components/types'; import React from 'react'; import styled from 'styled-components'; diff --git a/packages/app-democracy/package.json b/packages/app-democracy/package.json index af30f5b9f4..be71614769 100644 --- a/packages/app-democracy/package.json +++ b/packages/app-democracy/package.json @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.5.5", - "@polkadot/ui-app": "^0.34.0-beta.119", - "@polkadot/ui-reactive": "^0.34.0-beta.119" + "@polkadot/react-components": "^0.34.0-beta.119", + "@polkadot/react-query": "^0.34.0-beta.119" } } diff --git a/packages/app-democracy/src/Overview/Proposal.tsx b/packages/app-democracy/src/Overview/Proposal.tsx index d2e411eb4d..cb11ea3382 100644 --- a/packages/app-democracy/src/Overview/Proposal.tsx +++ b/packages/app-democracy/src/Overview/Proposal.tsx @@ -4,13 +4,13 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { AccountId, Balance, Proposal } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import BN from 'bn.js'; import React from 'react'; import { Option, Tuple, Vec } from '@polkadot/types'; -import { ActionItem, InputAddress, Labelled, Static } from '@polkadot/ui-app'; -import { withCalls, withMulti } from '@polkadot/ui-api'; +import { ActionItem, InputAddress, Labelled, Static } from '@polkadot/react-components'; +import { withCalls, withMulti } from '@polkadot/react-api'; import { formatBalance } from '@polkadot/util'; import translate from '../translate'; diff --git a/packages/app-democracy/src/Overview/Proposals.tsx b/packages/app-democracy/src/Overview/Proposals.tsx index 2c85f393d2..51d2056116 100644 --- a/packages/app-democracy/src/Overview/Proposals.tsx +++ b/packages/app-democracy/src/Overview/Proposals.tsx @@ -4,12 +4,12 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { Proposal } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import BN from 'bn.js'; import React from 'react'; -import { withCalls, withMulti } from '@polkadot/ui-api'; -import { Column } from '@polkadot/ui-app'; +import { withCalls, withMulti } from '@polkadot/react-api'; +import { Column } from '@polkadot/react-components'; import ProposalDisplay from './Proposal'; import translate from '../translate'; diff --git a/packages/app-democracy/src/Overview/Referendum.tsx b/packages/app-democracy/src/Overview/Referendum.tsx index 0b192da2b8..ae2ab6f915 100644 --- a/packages/app-democracy/src/Overview/Referendum.tsx +++ b/packages/app-democracy/src/Overview/Referendum.tsx @@ -4,17 +4,17 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { DerivedReferendumVote } from '@polkadot/api-derive/types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { ReferendumInfoExtended } from '@polkadot/api-derive/type'; import BN from 'bn.js'; import React from 'react'; import styled from 'styled-components'; -import { ActionItem, Chart, Static, Voting } from '@polkadot/ui-app'; +import { ActionItem, Chart, Static, Voting } from '@polkadot/react-components'; import { formatBalance, formatNumber } from '@polkadot/util'; import settings from '@polkadot/ui-settings'; -import VoteThreshold from '@polkadot/ui-params/Param/VoteThreshold'; -import { withCalls, withMulti } from '@polkadot/ui-api'; +import VoteThreshold from '@polkadot/react-params/Param/VoteThreshold'; +import { withCalls, withMulti } from '@polkadot/react-api'; import translate from '../translate'; diff --git a/packages/app-democracy/src/Overview/Referendums.tsx b/packages/app-democracy/src/Overview/Referendums.tsx index c409be3222..0acc7fd7aa 100644 --- a/packages/app-democracy/src/Overview/Referendums.tsx +++ b/packages/app-democracy/src/Overview/Referendums.tsx @@ -3,13 +3,13 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; import { ReferendumInfoExtended } from '@polkadot/api-derive/type'; import { Option } from '@polkadot/types'; -import { withCalls } from '@polkadot/ui-api'; -import { Column } from '@polkadot/ui-app'; +import { withCalls } from '@polkadot/react-api'; +import { Column } from '@polkadot/react-components'; import Referendum from './Referendum'; import translate from '../translate'; diff --git a/packages/app-democracy/src/Overview/Seconding.tsx b/packages/app-democracy/src/Overview/Seconding.tsx index 5f0a19f152..5c88382538 100644 --- a/packages/app-democracy/src/Overview/Seconding.tsx +++ b/packages/app-democracy/src/Overview/Seconding.tsx @@ -3,14 +3,14 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { AccountId } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { SubjectInfo } from '@polkadot/ui-keyring/observable/types'; import BN from 'bn.js'; import React from 'react'; -import { Button, InputAddress, Modal, TxButton } from '@polkadot/ui-app'; +import { Button, InputAddress, Modal, TxButton } from '@polkadot/react-components'; import accountObservable from '@polkadot/ui-keyring/observable/accounts'; -import { withMulti, withObservable } from '@polkadot/ui-api'; +import { withMulti, withObservable } from '@polkadot/react-api'; import translate from '../translate'; diff --git a/packages/app-democracy/src/Overview/Summary.tsx b/packages/app-democracy/src/Overview/Summary.tsx index 3d72938450..7a4043adca 100644 --- a/packages/app-democracy/src/Overview/Summary.tsx +++ b/packages/app-democracy/src/Overview/Summary.tsx @@ -3,12 +3,12 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import BN from 'bn.js'; import React from 'react'; -import { SummaryBox, CardSummary } from '@polkadot/ui-app'; -import { withCalls } from '@polkadot/ui-api'; +import { SummaryBox, CardSummary } from '@polkadot/react-components'; +import { withCalls } from '@polkadot/react-api'; import { formatNumber } from '@polkadot/util'; import translate from '../translate'; diff --git a/packages/app-democracy/src/Overview/Voting.tsx b/packages/app-democracy/src/Overview/Voting.tsx index 07a1c80b65..50e5a77e8d 100644 --- a/packages/app-democracy/src/Overview/Voting.tsx +++ b/packages/app-democracy/src/Overview/Voting.tsx @@ -2,14 +2,14 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { SubjectInfo } from '@polkadot/ui-keyring/observable/types'; import BN from 'bn.js'; import React from 'react'; -import { Button, Dropdown, InputAddress, Modal, TxButton } from '@polkadot/ui-app'; +import { Button, Dropdown, InputAddress, Modal, TxButton } from '@polkadot/react-components'; import accountObservable from '@polkadot/ui-keyring/observable/accounts'; -import { withMulti, withObservable } from '@polkadot/ui-api'; +import { withMulti, withObservable } from '@polkadot/react-api'; import translate from '../translate'; diff --git a/packages/app-democracy/src/Overview/index.tsx b/packages/app-democracy/src/Overview/index.tsx index d5def2d6d0..59a5cbfdc8 100644 --- a/packages/app-democracy/src/Overview/index.tsx +++ b/packages/app-democracy/src/Overview/index.tsx @@ -2,10 +2,10 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AppProps, BareProps, I18nProps } from '@polkadot/ui-app/types'; +import { AppProps, BareProps, I18nProps } from '@polkadot/react-components/types'; import React from 'react'; -import { Columar } from '@polkadot/ui-app'; +import { Columar } from '@polkadot/react-components'; import Proposals from './Proposals'; import Referendums from './Referendums'; diff --git a/packages/app-democracy/src/Propose.tsx b/packages/app-democracy/src/Propose.tsx index 73febb0a7e..5b0d08e2b0 100644 --- a/packages/app-democracy/src/Propose.tsx +++ b/packages/app-democracy/src/Propose.tsx @@ -3,16 +3,16 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { Call } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { ApiProps } from '@polkadot/react-api/types'; import BN from 'bn.js'; import React from 'react'; import { RouteComponentProps } from 'react-router'; import { withRouter } from 'react-router-dom'; import { createType } from '@polkadot/types'; -import { Button, Extrinsic, InputAddress, InputBalance, TxButton, TxComponent } from '@polkadot/ui-app'; -import { withApi, withMulti } from '@polkadot/ui-api'; +import { Button, Extrinsic, InputAddress, InputBalance, TxButton, TxComponent } from '@polkadot/react-components'; +import { withApi, withMulti } from '@polkadot/react-api'; import translate from './translate'; diff --git a/packages/app-democracy/src/index.tsx b/packages/app-democracy/src/index.tsx index cc16560d3f..cb54a2acae 100644 --- a/packages/app-democracy/src/index.tsx +++ b/packages/app-democracy/src/index.tsx @@ -2,12 +2,12 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AppProps, BareProps, I18nProps } from '@polkadot/ui-app/types'; -import { TabItem } from '@polkadot/ui-app/Tabs'; +import { AppProps, BareProps, I18nProps } from '@polkadot/react-components/types'; +import { TabItem } from '@polkadot/react-components/Tabs'; import React from 'react'; import { Route, Switch } from 'react-router'; -import { HelpOverlay, Tabs } from '@polkadot/ui-app'; +import { HelpOverlay, Tabs } from '@polkadot/react-components'; import uiSettings from '@polkadot/ui-settings'; import basicMd from './md/basic.md'; diff --git a/packages/app-explorer/package.json b/packages/app-explorer/package.json index ea87a4d7f3..a5b04755a5 100644 --- a/packages/app-explorer/package.json +++ b/packages/app-explorer/package.json @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.5.5", - "@polkadot/ui-app": "^0.34.0-beta.119" + "@polkadot/react-components": "^0.34.0-beta.119" } } diff --git a/packages/app-explorer/src/BestHash.tsx b/packages/app-explorer/src/BestHash.tsx index 99a7f22a2c..c9dc5339d3 100644 --- a/packages/app-explorer/src/BestHash.tsx +++ b/packages/app-explorer/src/BestHash.tsx @@ -1,13 +1,13 @@ /* eslint-disable @typescript-eslint/camelcase */ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { Header } from '@polkadot/types/interfaces'; -import { BareProps, CallProps } from '@polkadot/ui-api/types'; +import { BareProps, CallProps } from '@polkadot/react-api/types'; import React from 'react'; -import { withCalls } from '@polkadot/ui-api'; +import { withCalls } from '@polkadot/react-api'; type Props = BareProps & CallProps & { label?: string; diff --git a/packages/app-explorer/src/BlockHeader/index.tsx b/packages/app-explorer/src/BlockHeader/index.tsx index fd419a364b..780e62b9fc 100644 --- a/packages/app-explorer/src/BlockHeader/index.tsx +++ b/packages/app-explorer/src/BlockHeader/index.tsx @@ -2,14 +2,14 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps } from '@polkadot/ui-app/types'; +import { BareProps } from '@polkadot/react-components/types'; import './BlockHeader.css'; import React from 'react'; import { Link } from 'react-router-dom'; import { HeaderExtended } from '@polkadot/api-derive'; -import { AddressMini, LinkPolkascan } from '@polkadot/ui-app'; +import { AddressMini, LinkPolkascan } from '@polkadot/react-components'; import { formatNumber } from '@polkadot/util'; interface Props extends BareProps { diff --git a/packages/app-explorer/src/BlockHeaders.tsx b/packages/app-explorer/src/BlockHeaders.tsx index 0410a682c3..1bee0a6885 100644 --- a/packages/app-explorer/src/BlockHeaders.tsx +++ b/packages/app-explorer/src/BlockHeaders.tsx @@ -2,11 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { CallProps } from '@polkadot/ui-api/types'; +import { CallProps } from '@polkadot/react-api/types'; import React from 'react'; import { HeaderExtended } from '@polkadot/api-derive'; -import { withCalls } from '@polkadot/ui-api'; +import { withCalls } from '@polkadot/react-api'; import BlockHeader from './BlockHeader'; diff --git a/packages/app-explorer/src/BlockInfo/ByHash.tsx b/packages/app-explorer/src/BlockInfo/ByHash.tsx index d4eabbc0e0..c2ab87e5c5 100644 --- a/packages/app-explorer/src/BlockInfo/ByHash.tsx +++ b/packages/app-explorer/src/BlockInfo/ByHash.tsx @@ -4,13 +4,13 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { EventRecord, SignedBlock } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { ApiProps } from '@polkadot/react-api/types'; import React from 'react'; import { HeaderExtended } from '@polkadot/api-derive'; -import { withCalls } from '@polkadot/ui-api'; -import { Columar } from '@polkadot/ui-app'; +import { withCalls } from '@polkadot/react-api'; +import { Columar } from '@polkadot/react-components'; import BlockHeader from '../BlockHeader'; import translate from '../translate'; diff --git a/packages/app-explorer/src/BlockInfo/ByNumber.tsx b/packages/app-explorer/src/BlockInfo/ByNumber.tsx index f8a6c292c6..9a62032765 100644 --- a/packages/app-explorer/src/BlockInfo/ByNumber.tsx +++ b/packages/app-explorer/src/BlockInfo/ByNumber.tsx @@ -4,10 +4,10 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { Hash } from '@polkadot/types/interfaces'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { ApiProps } from '@polkadot/react-api/types'; import React from 'react'; -import { withCalls } from '@polkadot/ui-api'; +import { withCalls } from '@polkadot/react-api'; import BlockByHash from './ByHash'; diff --git a/packages/app-explorer/src/BlockInfo/Events.tsx b/packages/app-explorer/src/BlockInfo/Events.tsx index aaf0a4f039..b374ff4f52 100644 --- a/packages/app-explorer/src/BlockInfo/Events.tsx +++ b/packages/app-explorer/src/BlockInfo/Events.tsx @@ -3,10 +3,10 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { EventRecord } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; -import { Column } from '@polkadot/ui-app'; +import { Column } from '@polkadot/react-components'; import EventsDisplay from '../Events'; import translate from '../translate'; diff --git a/packages/app-explorer/src/BlockInfo/Extrinsics.tsx b/packages/app-explorer/src/BlockInfo/Extrinsics.tsx index 5c518d1026..c849374dcf 100644 --- a/packages/app-explorer/src/BlockInfo/Extrinsics.tsx +++ b/packages/app-explorer/src/BlockInfo/Extrinsics.tsx @@ -3,12 +3,12 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { BlockNumber, Extrinsic } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; import styled from 'styled-components'; import { GenericCall } from '@polkadot/types'; -import { AddressMini, Call, Column, LinkPolkascan } from '@polkadot/ui-app'; +import { AddressMini, Call, Column, LinkPolkascan } from '@polkadot/react-components'; import { formatNumber } from '@polkadot/util'; import translate from '../translate'; diff --git a/packages/app-explorer/src/BlockInfo/Logs.tsx b/packages/app-explorer/src/BlockInfo/Logs.tsx index 3f564f5d0b..99ea534124 100644 --- a/packages/app-explorer/src/BlockInfo/Logs.tsx +++ b/packages/app-explorer/src/BlockInfo/Logs.tsx @@ -4,12 +4,12 @@ import { DigestItem } from '@polkadot/types/interfaces'; import { Codec, TypeDef } from '@polkadot/types/types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; import { Struct, Tuple, U8a, Vec, getTypeDef } from '@polkadot/types'; -import { Column } from '@polkadot/ui-app'; -import Params from '@polkadot/ui-params'; +import { Column } from '@polkadot/react-components'; +import Params from '@polkadot/react-params'; import translate from '../translate'; diff --git a/packages/app-explorer/src/BlockInfo/index.tsx b/packages/app-explorer/src/BlockInfo/index.tsx index 76200366f1..a42ada417d 100644 --- a/packages/app-explorer/src/BlockInfo/index.tsx +++ b/packages/app-explorer/src/BlockInfo/index.tsx @@ -4,10 +4,10 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { BlockNumber } from '@polkadot/types/interfaces'; -import { BareProps } from '@polkadot/ui-app/types'; +import { BareProps } from '@polkadot/react-components/types'; import React from 'react'; -import { withCalls, withMulti } from '@polkadot/ui-api'; +import { withCalls, withMulti } from '@polkadot/react-api'; import { isHex } from '@polkadot/util'; import Query from '../Query'; diff --git a/packages/app-explorer/src/Events.tsx b/packages/app-explorer/src/Events.tsx index 4224d5025a..a32025f603 100644 --- a/packages/app-explorer/src/Events.tsx +++ b/packages/app-explorer/src/Events.tsx @@ -2,11 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { KeyedEvent } from './types'; import React from 'react'; -import { Event as EventDisplay } from '@polkadot/ui-app'; +import { Event as EventDisplay } from '@polkadot/react-components'; import { formatNumber } from '@polkadot/util'; import translate from './translate'; diff --git a/packages/app-explorer/src/Main.tsx b/packages/app-explorer/src/Main.tsx index 537e7212d1..1f6aa42f6a 100644 --- a/packages/app-explorer/src/Main.tsx +++ b/packages/app-explorer/src/Main.tsx @@ -2,11 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { KeyedEvent } from './types'; import React from 'react'; -import { Columar, Column } from '@polkadot/ui-app'; +import { Columar, Column } from '@polkadot/react-components'; import BlockHeaders from './BlockHeaders'; import Events from './Events'; diff --git a/packages/app-explorer/src/NodeInfo/Peers.tsx b/packages/app-explorer/src/NodeInfo/Peers.tsx index 7d9ecac70e..6a9671f266 100644 --- a/packages/app-explorer/src/NodeInfo/Peers.tsx +++ b/packages/app-explorer/src/NodeInfo/Peers.tsx @@ -3,7 +3,7 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { PeerInfo } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; import { formatNumber } from '@polkadot/util'; diff --git a/packages/app-explorer/src/NodeInfo/Summary.tsx b/packages/app-explorer/src/NodeInfo/Summary.tsx index 00463c3c9d..6b3cd751cd 100644 --- a/packages/app-explorer/src/NodeInfo/Summary.tsx +++ b/packages/app-explorer/src/NodeInfo/Summary.tsx @@ -2,14 +2,14 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { Info } from './types'; import BN from 'bn.js'; import React from 'react'; -import { SummaryBox, CardSummary } from '@polkadot/ui-app'; +import { SummaryBox, CardSummary } from '@polkadot/react-components'; import { formatNumber } from '@polkadot/util'; -import { BestNumber, Elapsed } from '@polkadot/ui-reactive'; +import { BestNumber, Elapsed } from '@polkadot/react-query'; import translate from './translate'; diff --git a/packages/app-explorer/src/NodeInfo/index.tsx b/packages/app-explorer/src/NodeInfo/index.tsx index 685709af21..d55e5db22c 100644 --- a/packages/app-explorer/src/NodeInfo/index.tsx +++ b/packages/app-explorer/src/NodeInfo/index.tsx @@ -3,12 +3,12 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { Health, PeerInfo, Extrinsic } from '@polkadot/types/interfaces'; -import { ApiProps } from '@polkadot/ui-api/types'; -import { AppProps, I18nProps } from '@polkadot/ui-app/types'; +import { ApiProps } from '@polkadot/react-api/types'; +import { AppProps, I18nProps } from '@polkadot/react-components/types'; import { Info } from './types'; import React from 'react'; -import { withApi, withMulti } from '@polkadot/ui-api'; +import { withApi, withMulti } from '@polkadot/react-api'; import { Vec } from '@polkadot/types'; import './index.css'; diff --git a/packages/app-explorer/src/Query.tsx b/packages/app-explorer/src/Query.tsx index 214244139d..7ea523fe38 100644 --- a/packages/app-explorer/src/Query.tsx +++ b/packages/app-explorer/src/Query.tsx @@ -2,11 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; import styled from 'styled-components'; -import { Button, FilterOverlay, Input, TxComponent } from '@polkadot/ui-app'; +import { Button, FilterOverlay, Input, TxComponent } from '@polkadot/react-components'; import { isHex } from '@polkadot/util'; import translate from './translate'; diff --git a/packages/app-explorer/src/Summary.tsx b/packages/app-explorer/src/Summary.tsx index a9c8f9d486..0448f76550 100644 --- a/packages/app-explorer/src/Summary.tsx +++ b/packages/app-explorer/src/Summary.tsx @@ -2,11 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; -import { SummaryBox, CardSummary } from '@polkadot/ui-app'; -import { BestFinalized, BestNumber, TimeNow, TimePeriod, TotalIssuance } from '@polkadot/ui-reactive'; +import { SummaryBox, CardSummary } from '@polkadot/react-components'; +import { BestFinalized, BestNumber, TimeNow, TimePeriod, TotalIssuance } from '@polkadot/react-query'; import SummarySession from './SummarySession'; import translate from './translate'; diff --git a/packages/app-explorer/src/SummarySession.tsx b/packages/app-explorer/src/SummarySession.tsx index c8bebbd6cb..25edf32c23 100644 --- a/packages/app-explorer/src/SummarySession.tsx +++ b/packages/app-explorer/src/SummarySession.tsx @@ -4,11 +4,11 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { DerivedSessionInfo } from '@polkadot/api-derive/types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; -import { CardSummary } from '@polkadot/ui-app'; -import { withCalls } from '@polkadot/ui-api'; +import { CardSummary } from '@polkadot/react-components'; +import { withCalls } from '@polkadot/react-api'; import translate from './translate'; import { formatNumber } from '@polkadot/util'; diff --git a/packages/app-explorer/src/index.tsx b/packages/app-explorer/src/index.tsx index d38ac856ea..4b4d9fd72e 100644 --- a/packages/app-explorer/src/index.tsx +++ b/packages/app-explorer/src/index.tsx @@ -4,7 +4,7 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { EventRecord } from '@polkadot/types/interfaces'; -import { AppProps, BareProps, I18nProps } from '@polkadot/ui-app/types'; +import { AppProps, BareProps, I18nProps } from '@polkadot/react-components/types'; import { KeyedEvent } from './types'; import './index.css'; @@ -12,8 +12,8 @@ import './index.css'; import React from 'react'; import { Route, Switch } from 'react-router'; import styled from 'styled-components'; -import { withCalls, withMulti } from '@polkadot/ui-api'; -import Tabs, { TabItem } from '@polkadot/ui-app/Tabs'; +import { withCalls, withMulti } from '@polkadot/react-api'; +import Tabs, { TabItem } from '@polkadot/react-components/Tabs'; import uiSettings from '@polkadot/ui-settings'; import { stringToU8a } from '@polkadot/util'; import { xxhashAsHex } from '@polkadot/util-crypto'; diff --git a/packages/app-extrinsics/package.json b/packages/app-extrinsics/package.json index 264ae7db3c..8a98def39f 100644 --- a/packages/app-extrinsics/package.json +++ b/packages/app-extrinsics/package.json @@ -11,8 +11,8 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.5.5", - "@polkadot/ui-app": "^0.34.0-beta.119", - "@polkadot/ui-params": "^0.34.0-beta.119", - "@polkadot/ui-signer": "^0.34.0-beta.119" + "@polkadot/react-components": "^0.34.0-beta.119", + "@polkadot/react-params": "^0.34.0-beta.119", + "@polkadot/react-signer": "^0.34.0-beta.119" } } diff --git a/packages/app-extrinsics/src/Balance.tsx b/packages/app-extrinsics/src/Balance.tsx index dd48ca817d..63cd7a4510 100644 --- a/packages/app-extrinsics/src/Balance.tsx +++ b/packages/app-extrinsics/src/Balance.tsx @@ -1,14 +1,14 @@ /* eslint-disable @typescript-eslint/camelcase */ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps, CallProps } from '@polkadot/ui-api/types'; +import { BareProps, CallProps } from '@polkadot/react-api/types'; import React from 'react'; import { DerivedBalances } from '@polkadot/api-derive/types'; -import { withCalls, withMulti } from '@polkadot/ui-api'; -import { InputBalance } from '@polkadot/ui-app'; +import { withCalls, withMulti } from '@polkadot/react-api'; +import { InputBalance } from '@polkadot/react-components'; type Props = BareProps & CallProps & { balances_all?: DerivedBalances; diff --git a/packages/app-extrinsics/src/Selection.tsx b/packages/app-extrinsics/src/Selection.tsx index 784bd597bc..6d2968546d 100644 --- a/packages/app-extrinsics/src/Selection.tsx +++ b/packages/app-extrinsics/src/Selection.tsx @@ -3,16 +3,16 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { Call } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; -import { QueueTxExtrinsicAdd } from '@polkadot/ui-app/Status/types'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { QueueTxExtrinsicAdd } from '@polkadot/react-components/Status/types'; +import { ApiProps } from '@polkadot/react-api/types'; import { SubmittableExtrinsic } from '@polkadot/api/promise/types'; import BN from 'bn.js'; import React from 'react'; -import { Button, Extrinsic, InputAddress, Labelled, TxButton, TxComponent } from '@polkadot/ui-app'; -import { withApi, withMulti } from '@polkadot/ui-api'; -import { Nonce } from '@polkadot/ui-reactive'; +import { Button, Extrinsic, InputAddress, Labelled, TxButton, TxComponent } from '@polkadot/react-components'; +import { withApi, withMulti } from '@polkadot/react-api'; +import { Nonce } from '@polkadot/react-query'; import Balance from './Balance'; import translate from './translate'; diff --git a/packages/app-extrinsics/src/index.tsx b/packages/app-extrinsics/src/index.tsx index 9a2bcc27cc..74e178559c 100644 --- a/packages/app-extrinsics/src/index.tsx +++ b/packages/app-extrinsics/src/index.tsx @@ -2,10 +2,10 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AppProps, I18nProps } from '@polkadot/ui-app/types'; +import { AppProps, I18nProps } from '@polkadot/react-components/types'; import React from 'react'; -import { Tabs } from '@polkadot/ui-app'; +import { Tabs } from '@polkadot/react-components'; import Selection from './Selection'; import translate from './translate'; diff --git a/packages/app-js/package.json b/packages/app-js/package.json index 5d7f832989..f0548758ac 100644 --- a/packages/app-js/package.json +++ b/packages/app-js/package.json @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.5.5", - "@polkadot/ui-app": "^0.34.0-beta.119", + "@polkadot/react-components": "^0.34.0-beta.119", "snappyjs": "^0.6.0" } } diff --git a/packages/app-js/src/ActionButtons.tsx b/packages/app-js/src/ActionButtons.tsx index ea127bdab1..8400c1298c 100644 --- a/packages/app-js/src/ActionButtons.tsx +++ b/packages/app-js/src/ActionButtons.tsx @@ -2,11 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps, I18nProps } from '@polkadot/ui-app/types'; +import { BareProps, I18nProps } from '@polkadot/react-components/types'; import React from 'react'; import { Button as SUIB, Popup } from 'semantic-ui-react'; -import { Button, Input } from '@polkadot/ui-app'; +import { Button, Input } from '@polkadot/react-components'; import translate from './translate'; diff --git a/packages/app-js/src/Output.tsx b/packages/app-js/src/Output.tsx index a2214efed0..5196c33aae 100644 --- a/packages/app-js/src/Output.tsx +++ b/packages/app-js/src/Output.tsx @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps } from '@polkadot/ui-app/types'; +import { BareProps } from '@polkadot/react-components/types'; import { Log } from './types'; import React from 'react'; diff --git a/packages/app-js/src/Playground.tsx b/packages/app-js/src/Playground.tsx index c184e049c8..4b080dfb45 100644 --- a/packages/app-js/src/Playground.tsx +++ b/packages/app-js/src/Playground.tsx @@ -4,16 +4,16 @@ import { ApiPromise } from '@polkadot/api'; import { KeyringInstance } from '@polkadot/keyring/types'; -import { ApiProps } from '@polkadot/ui-api/types'; -import { AppProps, I18nProps } from '@polkadot/ui-app/types'; +import { ApiProps } from '@polkadot/react-api/types'; +import { AppProps, I18nProps } from '@polkadot/react-components/types'; import { Log, LogType, Snippet } from './types'; import React from 'react'; import { withRouter } from 'react-router'; import { Transition } from 'semantic-ui-react'; import snappy from 'snappyjs'; -import { withApi, withMulti } from '@polkadot/ui-api'; -import { Button, Dropdown, Editor } from '@polkadot/ui-app'; +import { withApi, withMulti } from '@polkadot/react-api'; +import { Button, Dropdown, Editor } from '@polkadot/react-components'; import uiKeyring from '@polkadot/ui-keyring'; import * as types from '@polkadot/types'; import * as util from '@polkadot/util'; diff --git a/packages/app-js/src/index.tsx b/packages/app-js/src/index.tsx index 9a157e0094..362e4fed5f 100644 --- a/packages/app-js/src/index.tsx +++ b/packages/app-js/src/index.tsx @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AppProps, BareProps } from '@polkadot/ui-app/types'; +import { AppProps, BareProps } from '@polkadot/react-components/types'; import React from 'react'; import { Route, Switch } from 'react-router'; diff --git a/packages/app-parachains/package.json b/packages/app-parachains/package.json index 04ec2f94dc..bf9f13f042 100644 --- a/packages/app-parachains/package.json +++ b/packages/app-parachains/package.json @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.4.5", - "@polkadot/ui-app": "^0.34.0-beta.119", - "@polkadot/ui-reactive": "^0.34.0-beta.119" + "@polkadot/react-components": "^0.34.0-beta.119", + "@polkadot/react-query": "^0.34.0-beta.119" } } diff --git a/packages/app-parachains/src/Overview/Parachain.tsx b/packages/app-parachains/src/Overview/Parachain.tsx index 31e9e69434..faebe12d61 100644 --- a/packages/app-parachains/src/Overview/Parachain.tsx +++ b/packages/app-parachains/src/Overview/Parachain.tsx @@ -3,15 +3,15 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import BN from 'bn.js'; import React from 'react'; import styled from 'styled-components'; import { Bytes, Option } from '@polkadot/types'; -import { Card, Static } from '@polkadot/ui-app'; -import { styles as rowStyles } from '@polkadot/ui-app/Row'; -import { withCalls, withMulti } from '@polkadot/ui-api'; +import { Card, Static } from '@polkadot/react-components'; +import { styles as rowStyles } from '@polkadot/react-components/Row'; +import { withCalls, withMulti } from '@polkadot/react-api'; import { formatNumber } from '@polkadot/util'; import translate from '../translate'; diff --git a/packages/app-parachains/src/Overview/Parachains.tsx b/packages/app-parachains/src/Overview/Parachains.tsx index 705a4a0c1c..2af4821985 100644 --- a/packages/app-parachains/src/Overview/Parachains.tsx +++ b/packages/app-parachains/src/Overview/Parachains.tsx @@ -3,12 +3,12 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import BN from 'bn.js'; import React from 'react'; -import { Column } from '@polkadot/ui-app'; -import { withCalls } from '@polkadot/ui-api'; +import { Column } from '@polkadot/react-components'; +import { withCalls } from '@polkadot/react-api'; import translate from '../translate'; import Parachain from './Parachain'; diff --git a/packages/app-parachains/src/Overview/Summary.tsx b/packages/app-parachains/src/Overview/Summary.tsx index aa73e3f31e..db99fa5f4b 100644 --- a/packages/app-parachains/src/Overview/Summary.tsx +++ b/packages/app-parachains/src/Overview/Summary.tsx @@ -3,12 +3,12 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import BN from 'bn.js'; import React from 'react'; -import { SummaryBox, CardSummary } from '@polkadot/ui-app'; -import { withCalls } from '@polkadot/ui-api'; +import { SummaryBox, CardSummary } from '@polkadot/react-components'; +import { withCalls } from '@polkadot/react-api'; import { formatNumber } from '@polkadot/util'; import translate from '../translate'; diff --git a/packages/app-parachains/src/Overview/index.tsx b/packages/app-parachains/src/Overview/index.tsx index f1d4c63cd9..63ec1c90e3 100644 --- a/packages/app-parachains/src/Overview/index.tsx +++ b/packages/app-parachains/src/Overview/index.tsx @@ -3,7 +3,7 @@ // of the Apache-2.0 license. See the LICENSE file for details. import React from 'react'; -import { Columar } from '@polkadot/ui-app'; +import { Columar } from '@polkadot/react-components'; import Parachains from './Parachains'; import Summary from './Summary'; diff --git a/packages/app-parachains/src/index.tsx b/packages/app-parachains/src/index.tsx index ec6ba96f5b..9dfa8b0da9 100644 --- a/packages/app-parachains/src/index.tsx +++ b/packages/app-parachains/src/index.tsx @@ -2,12 +2,12 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AppProps, BareProps, I18nProps } from '@polkadot/ui-app/types'; -import { TabItem } from '@polkadot/ui-app/Tabs'; +import { AppProps, BareProps, I18nProps } from '@polkadot/react-components/types'; +import { TabItem } from '@polkadot/react-components/Tabs'; import React from 'react'; import { Route, Switch } from 'react-router'; -import { Tabs } from '@polkadot/ui-app'; +import { Tabs } from '@polkadot/react-components'; import Overview from './Overview'; import translate from './translate'; diff --git a/packages/app-settings/package.json b/packages/app-settings/package.json index 51f40d6bb4..3dc70c8c75 100644 --- a/packages/app-settings/package.json +++ b/packages/app-settings/package.json @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.5.5", - "@polkadot/ui-app": "^0.34.0-beta.119", - "@polkadot/ui-reactive": "^0.34.0-beta.119" + "@polkadot/react-components": "^0.34.0-beta.119", + "@polkadot/react-query": "^0.34.0-beta.119" } } diff --git a/packages/app-settings/src/Developer.tsx b/packages/app-settings/src/Developer.tsx index 6b649fd7f6..c320ec6ebc 100644 --- a/packages/app-settings/src/Developer.tsx +++ b/packages/app-settings/src/Developer.tsx @@ -2,14 +2,14 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AppProps, I18nProps } from '@polkadot/ui-app/types'; +import { AppProps, I18nProps } from '@polkadot/react-components/types'; import React from 'react'; import store from 'store'; import styled from 'styled-components'; import { getTypeRegistry } from '@polkadot/types'; -import { Button, Editor, InputFile } from '@polkadot/ui-app'; -import { ActionStatus } from '@polkadot/ui-app/Status/types'; +import { Button, Editor, InputFile } from '@polkadot/react-components'; +import { ActionStatus } from '@polkadot/react-components/Status/types'; import { isJsonObject, stringToU8a, u8aToString } from '@polkadot/util'; import translate from './translate'; diff --git a/packages/app-settings/src/General.tsx b/packages/app-settings/src/General.tsx index 5d33641fcb..1a4a4f1561 100644 --- a/packages/app-settings/src/General.tsx +++ b/packages/app-settings/src/General.tsx @@ -2,13 +2,13 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AppProps, I18nProps } from '@polkadot/ui-app/types'; +import { AppProps, I18nProps } from '@polkadot/react-components/types'; import { SettingsStruct } from '@polkadot/ui-settings/types'; import React from 'react'; import styled from 'styled-components'; -import { Button, Dropdown, Input, Toggle } from '@polkadot/ui-app'; -import { ActionStatus } from '@polkadot/ui-app/Status/types'; +import { Button, Dropdown, Input, Toggle } from '@polkadot/react-components'; +import { ActionStatus } from '@polkadot/react-components/Status/types'; import uiSettings from '@polkadot/ui-settings'; import translate from './translate'; diff --git a/packages/app-settings/src/index.tsx b/packages/app-settings/src/index.tsx index effe1b3e5e..a9659bd135 100644 --- a/packages/app-settings/src/index.tsx +++ b/packages/app-settings/src/index.tsx @@ -2,12 +2,12 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AppProps, I18nProps } from '@polkadot/ui-app/types'; -import { TabItem } from '@polkadot/ui-app/Tabs'; +import { AppProps, I18nProps } from '@polkadot/react-components/types'; +import { TabItem } from '@polkadot/react-components/Tabs'; import React from 'react'; import { Route, Switch } from 'react-router'; -import { HelpOverlay, Tabs } from '@polkadot/ui-app'; +import { HelpOverlay, Tabs } from '@polkadot/react-components'; import uiSettings from '@polkadot/ui-settings'; import md from './md/basics.md'; diff --git a/packages/app-staking/package.json b/packages/app-staking/package.json index de9ce6141b..a2bc0f975e 100644 --- a/packages/app-staking/package.json +++ b/packages/app-staking/package.json @@ -12,7 +12,7 @@ "dependencies": { "@babel/runtime": "^7.5.5", "@polkadot/app-explorer": "^0.34.0-beta.119", - "@polkadot/ui-app": "^0.34.0-beta.119", - "@polkadot/ui-reactive": "^0.34.0-beta.119" + "@polkadot/react-components": "^0.34.0-beta.119", + "@polkadot/react-query": "^0.34.0-beta.119" } } diff --git a/packages/app-staking/src/Actions/Account/BondExtra.tsx b/packages/app-staking/src/Actions/Account/BondExtra.tsx index d2a54b2819..2ec2bb97c1 100644 --- a/packages/app-staking/src/Actions/Account/BondExtra.tsx +++ b/packages/app-staking/src/Actions/Account/BondExtra.tsx @@ -3,17 +3,17 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { ApiProps } from '@polkadot/react-api/types'; import { CalculateBalanceProps } from '../../types'; import BN from 'bn.js'; import React from 'react'; -import { Available, Button, InputAddress, InputBalance, Modal, TxButton, TxComponent } from '@polkadot/ui-app'; -import { calcSignatureLength } from '@polkadot/ui-signer/Checks'; +import { Available, Button, InputAddress, InputBalance, Modal, TxButton, TxComponent } from '@polkadot/react-components'; +import { calcSignatureLength } from '@polkadot/react-signer/Checks'; import { SubmittableExtrinsic } from '@polkadot/api/promise/types'; -import { withCalls, withApi, withMulti } from '@polkadot/ui-api'; -import { ZERO_BALANCE, ZERO_FEES } from '@polkadot/ui-signer/Checks/constants'; +import { withCalls, withApi, withMulti } from '@polkadot/react-api'; +import { ZERO_BALANCE, ZERO_FEES } from '@polkadot/react-signer/Checks/constants'; import translate from '../../translate'; diff --git a/packages/app-staking/src/Actions/Account/InputValidationController.tsx b/packages/app-staking/src/Actions/Account/InputValidationController.tsx index 0923c8aa1f..f0fcec11eb 100644 --- a/packages/app-staking/src/Actions/Account/InputValidationController.tsx +++ b/packages/app-staking/src/Actions/Account/InputValidationController.tsx @@ -3,12 +3,12 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { AccountId, StakingLedger } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; -import { Icon } from '@polkadot/ui-app'; +import { Icon } from '@polkadot/react-components'; import { Option } from '@polkadot/types'; -import { withCalls } from '@polkadot/ui-api'; +import { withCalls } from '@polkadot/react-api'; import translate from '../../translate'; diff --git a/packages/app-staking/src/Actions/Account/InputValidationSessionKey.tsx b/packages/app-staking/src/Actions/Account/InputValidationSessionKey.tsx index a625673bb5..7d342bc028 100644 --- a/packages/app-staking/src/Actions/Account/InputValidationSessionKey.tsx +++ b/packages/app-staking/src/Actions/Account/InputValidationSessionKey.tsx @@ -2,10 +2,10 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; -import { Icon } from '@polkadot/ui-app'; +import { Icon } from '@polkadot/react-components'; import translate from '../../translate'; diff --git a/packages/app-staking/src/Actions/Account/InputValidationUnstakeThreshold.tsx b/packages/app-staking/src/Actions/Account/InputValidationUnstakeThreshold.tsx index e9f3f4b568..966f9c30fa 100644 --- a/packages/app-staking/src/Actions/Account/InputValidationUnstakeThreshold.tsx +++ b/packages/app-staking/src/Actions/Account/InputValidationUnstakeThreshold.tsx @@ -2,11 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import BN from 'bn.js'; import React from 'react'; -import { Icon } from '@polkadot/ui-app'; +import { Icon } from '@polkadot/react-components'; import translate from '../../translate'; diff --git a/packages/app-staking/src/Actions/Account/Nominate.tsx b/packages/app-staking/src/Actions/Account/Nominate.tsx index 67a2519182..86cc2e9421 100644 --- a/packages/app-staking/src/Actions/Account/Nominate.tsx +++ b/packages/app-staking/src/Actions/Account/Nominate.tsx @@ -2,11 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { KeyringSectionOption } from '@polkadot/ui-keyring/options/types'; import React from 'react'; -import { Button, InputAddress, Modal, TxButton } from '@polkadot/ui-app'; +import { Button, InputAddress, Modal, TxButton } from '@polkadot/react-components'; import translate from '../../translate'; diff --git a/packages/app-staking/src/Actions/Account/SetControllerAccount.tsx b/packages/app-staking/src/Actions/Account/SetControllerAccount.tsx index 0097aba83e..d025ae45ac 100644 --- a/packages/app-staking/src/Actions/Account/SetControllerAccount.tsx +++ b/packages/app-staking/src/Actions/Account/SetControllerAccount.tsx @@ -2,11 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; -import { Button, Icon, InputAddress, Modal, TxButton, TxComponent } from '@polkadot/ui-app'; -import { withMulti } from '@polkadot/ui-api'; +import { Button, Icon, InputAddress, Modal, TxButton, TxComponent } from '@polkadot/react-components'; +import { withMulti } from '@polkadot/react-api'; import translate from '../../translate'; import InputValidationController from '../Account/InputValidationController'; diff --git a/packages/app-staking/src/Actions/Account/SetRewardDestination.tsx b/packages/app-staking/src/Actions/Account/SetRewardDestination.tsx index 7a05ab90f5..71085aa79f 100644 --- a/packages/app-staking/src/Actions/Account/SetRewardDestination.tsx +++ b/packages/app-staking/src/Actions/Account/SetRewardDestination.tsx @@ -2,11 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; -import { Button, Dropdown, InputAddress, Modal, TxButton, TxComponent } from '@polkadot/ui-app'; -import { withMulti } from '@polkadot/ui-api'; +import { Button, Dropdown, InputAddress, Modal, TxButton, TxComponent } from '@polkadot/react-components'; +import { withMulti } from '@polkadot/react-api'; import translate from '../../translate'; import { rewardDestinationOptions } from '../constants'; diff --git a/packages/app-staking/src/Actions/Account/SetSessionAccount.tsx b/packages/app-staking/src/Actions/Account/SetSessionAccount.tsx index 9d111b1ec8..88aa406028 100644 --- a/packages/app-staking/src/Actions/Account/SetSessionAccount.tsx +++ b/packages/app-staking/src/Actions/Account/SetSessionAccount.tsx @@ -2,12 +2,12 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { ApiProps } from '@polkadot/ui-api/types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { ApiProps } from '@polkadot/react-api/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; -import { Button, InputAddress, Input, Modal, TxButton } from '@polkadot/ui-app'; -import { withApi, withMulti } from '@polkadot/ui-api'; +import { Button, InputAddress, Input, Modal, TxButton } from '@polkadot/react-components'; +import { withApi, withMulti } from '@polkadot/react-api'; import ValidationSessionKey from './InputValidationSessionKey'; import translate from '../../translate'; diff --git a/packages/app-staking/src/Actions/Account/Unbond.tsx b/packages/app-staking/src/Actions/Account/Unbond.tsx index 06ec2fdeea..43308ed1a0 100644 --- a/packages/app-staking/src/Actions/Account/Unbond.tsx +++ b/packages/app-staking/src/Actions/Account/Unbond.tsx @@ -4,15 +4,15 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { AccountId, StakingLedger } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { ApiProps } from '@polkadot/react-api/types'; import BN from 'bn.js'; import React from 'react'; import styled from 'styled-components'; import { Option } from '@polkadot/types'; -import { AddressInfo, Button, InputAddress, InputBalance, Modal, TxButton, TxComponent } from '@polkadot/ui-app'; -import { withCalls, withApi, withMulti } from '@polkadot/ui-api'; +import { AddressInfo, Button, InputAddress, InputBalance, Modal, TxButton, TxComponent } from '@polkadot/react-components'; +import { withCalls, withApi, withMulti } from '@polkadot/react-api'; import translate from '../../translate'; diff --git a/packages/app-staking/src/Actions/Account/Validate.tsx b/packages/app-staking/src/Actions/Account/Validate.tsx index d83d8545aa..928941416d 100644 --- a/packages/app-staking/src/Actions/Account/Validate.tsx +++ b/packages/app-staking/src/Actions/Account/Validate.tsx @@ -3,11 +3,11 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { ValidatorPrefs } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import BN from 'bn.js'; import React from 'react'; -import { Button, InputAddress, InputBalance, InputNumber, Modal, TxButton, TxComponent } from '@polkadot/ui-app'; +import { Button, InputAddress, InputBalance, InputNumber, Modal, TxButton, TxComponent } from '@polkadot/react-components'; import InputValidationUnstakeThreshold from './InputValidationUnstakeThreshold'; import translate from '../../translate'; diff --git a/packages/app-staking/src/Actions/Account/index.tsx b/packages/app-staking/src/Actions/Account/index.tsx index ca3f95b809..aff8d8457a 100644 --- a/packages/app-staking/src/Actions/Account/index.tsx +++ b/packages/app-staking/src/Actions/Account/index.tsx @@ -5,16 +5,16 @@ import { RecentlyOfflineMap } from '../../types'; import { AccountId, Exposure, StakingLedger, ValidatorPrefs } from '@polkadot/types/interfaces'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { ApiProps } from '@polkadot/react-api/types'; import { DerivedBalances, DerivedStaking } from '@polkadot/api-derive/types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { KeyringSectionOption } from '@polkadot/ui-keyring/options/types'; import { Popup } from 'semantic-ui-react'; import React from 'react'; import styled from 'styled-components'; -import { AddressCard, AddressInfo, AddressMini, AddressRow, Button, Menu, RecentlyOffline, TxButton } from '@polkadot/ui-app'; -import { withCalls, withMulti } from '@polkadot/ui-api'; +import { AddressCard, AddressInfo, AddressMini, AddressRow, Button, Menu, RecentlyOffline, TxButton } from '@polkadot/react-components'; +import { withCalls, withMulti } from '@polkadot/react-api'; import BondExtra from './BondExtra'; import Nominate from './Nominate'; diff --git a/packages/app-staking/src/Actions/Accounts.tsx b/packages/app-staking/src/Actions/Accounts.tsx index 1cc890c681..fd74c81856 100644 --- a/packages/app-staking/src/Actions/Accounts.tsx +++ b/packages/app-staking/src/Actions/Accounts.tsx @@ -2,17 +2,17 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { ApiProps } from '@polkadot/ui-api/types'; +import { ApiProps } from '@polkadot/react-api/types'; import { ComponentProps } from '../types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { KeyringSectionOption } from '@polkadot/ui-keyring/options/types'; -import { withCalls, withMulti } from '@polkadot/ui-api/with'; +import { withCalls, withMulti } from '@polkadot/react-api/with'; import React from 'react'; import styled from 'styled-components'; -import { Button, CardGrid, Icon } from '@polkadot/ui-app'; +import { Button, CardGrid, Icon } from '@polkadot/react-components'; import createOption from '@polkadot/ui-keyring/options/item'; -import { getAddressName } from '@polkadot/ui-app/util'; +import { getAddressName } from '@polkadot/react-components/util'; import Account from './Account'; import StartStaking from './NewStake'; diff --git a/packages/app-staking/src/Actions/NewStake.tsx b/packages/app-staking/src/Actions/NewStake.tsx index 67ed778707..1aa921d3c6 100644 --- a/packages/app-staking/src/Actions/NewStake.tsx +++ b/packages/app-staking/src/Actions/NewStake.tsx @@ -2,15 +2,15 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { ApiProps } from '@polkadot/react-api/types'; import { CalculateBalanceProps } from '../types'; import BN from 'bn.js'; import React from 'react'; import { SubmittableExtrinsic } from '@polkadot/api/promise/types'; -import { Button, Dropdown, InputAddress, InputBalanceBonded, Modal, TxButton, TxComponent } from '@polkadot/ui-app'; -import { withApi, withMulti } from '@polkadot/ui-api'; +import { Button, Dropdown, InputAddress, InputBalanceBonded, Modal, TxButton, TxComponent } from '@polkadot/react-components'; +import { withApi, withMulti } from '@polkadot/react-api'; import translate from '../translate'; import { rewardDestinationOptions } from './constants'; diff --git a/packages/app-staking/src/Actions/constants.tsx b/packages/app-staking/src/Actions/constants.tsx index d8e00d1559..3e40b6044d 100644 --- a/packages/app-staking/src/Actions/constants.tsx +++ b/packages/app-staking/src/Actions/constants.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/app-staking/src/Overview/Address.tsx b/packages/app-staking/src/Overview/Address.tsx index 080327b7cc..02868dd7ad 100644 --- a/packages/app-staking/src/Overview/Address.tsx +++ b/packages/app-staking/src/Overview/Address.tsx @@ -5,13 +5,13 @@ import { AccountId, Balance, Exposure } from '@polkadot/types/interfaces'; import { DerivedBalancesMap, DerivedStaking } from '@polkadot/api-derive/types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { ValidatorFilter, RecentlyOfflineMap } from '../types'; import React from 'react'; import styled from 'styled-components'; -import { withCalls, withMulti } from '@polkadot/ui-api/with'; -import { AddressCard, AddressMini, RecentlyOffline } from '@polkadot/ui-app'; +import { withCalls, withMulti } from '@polkadot/react-api/with'; +import { AddressCard, AddressMini, RecentlyOffline } from '@polkadot/react-components'; import keyring from '@polkadot/ui-keyring'; import { formatBalance } from '@polkadot/util'; diff --git a/packages/app-staking/src/Overview/CurrentList.tsx b/packages/app-staking/src/Overview/CurrentList.tsx index ed744ad534..2aa6c44420 100644 --- a/packages/app-staking/src/Overview/CurrentList.tsx +++ b/packages/app-staking/src/Overview/CurrentList.tsx @@ -3,11 +3,11 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { DerivedBalancesMap } from '@polkadot/api-derive/types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { ValidatorFilter, RecentlyOfflineMap } from '../types'; import React from 'react'; -import { Columar, Column, Dropdown, FilterOverlay } from '@polkadot/ui-app'; +import { Columar, Column, Dropdown, FilterOverlay } from '@polkadot/react-components'; import translate from '../translate'; import Address from './Address'; diff --git a/packages/app-staking/src/Overview/Summary.tsx b/packages/app-staking/src/Overview/Summary.tsx index c3a30b2c0d..c991278f87 100644 --- a/packages/app-staking/src/Overview/Summary.tsx +++ b/packages/app-staking/src/Overview/Summary.tsx @@ -3,14 +3,14 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import BN from 'bn.js'; import React from 'react'; import styled from 'styled-components'; import SummarySession from '@polkadot/app-explorer/SummarySession'; -import { CardSummary, IdentityIcon, SummaryBox } from '@polkadot/ui-app'; -import { withCalls, withMulti } from '@polkadot/ui-api'; +import { CardSummary, IdentityIcon, SummaryBox } from '@polkadot/react-components'; +import { withCalls, withMulti } from '@polkadot/react-api'; import translate from '../translate'; diff --git a/packages/app-staking/src/Overview/index.tsx b/packages/app-staking/src/Overview/index.tsx index c2d80e8449..1a647389b7 100644 --- a/packages/app-staking/src/Overview/index.tsx +++ b/packages/app-staking/src/Overview/index.tsx @@ -3,18 +3,18 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps } from '@polkadot/ui-app/types'; +import { BareProps } from '@polkadot/react-components/types'; import { ComponentProps } from '../types'; import React from 'react'; import { HeaderExtended } from '@polkadot/api-derive'; -import { withCalls, withMulti } from '@polkadot/ui-api/with'; +import { withCalls, withMulti } from '@polkadot/react-api/with'; import { formatNumber } from '@polkadot/util'; import CurrentList from './CurrentList'; import Summary from './Summary'; -import { withApi } from '@polkadot/ui-api'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { withApi } from '@polkadot/react-api'; +import { ApiProps } from '@polkadot/react-api/types'; type Props = ApiProps & BareProps & ComponentProps & { chain_subscribeNewHead?: HeaderExtended; diff --git a/packages/app-staking/src/index.tsx b/packages/app-staking/src/index.tsx index 0b134772c2..1958ce856b 100644 --- a/packages/app-staking/src/index.tsx +++ b/packages/app-staking/src/index.tsx @@ -4,17 +4,17 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { AccountId } from '@polkadot/types/interfaces'; -import { AppProps, I18nProps } from '@polkadot/ui-app/types'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { AppProps, I18nProps } from '@polkadot/react-components/types'; +import { ApiProps } from '@polkadot/react-api/types'; import { SubjectInfo } from '@polkadot/ui-keyring/observable/types'; import { ComponentProps, RecentlyOffline, RecentlyOfflineMap } from './types'; import React from 'react'; import { Route, Switch } from 'react-router'; import { Option } from '@polkadot/types'; -import { HelpOverlay } from '@polkadot/ui-app'; -import Tabs, { TabItem } from '@polkadot/ui-app/Tabs'; -import { withCalls, withMulti, withObservable } from '@polkadot/ui-api'; +import { HelpOverlay } from '@polkadot/react-components'; +import Tabs, { TabItem } from '@polkadot/react-components/Tabs'; +import { withCalls, withMulti, withObservable } from '@polkadot/react-api'; import accountObservable from '@polkadot/ui-keyring/observable/accounts'; import './index.css'; diff --git a/packages/app-storage/package.json b/packages/app-storage/package.json index c613e9623d..c0415bd1f9 100644 --- a/packages/app-storage/package.json +++ b/packages/app-storage/package.json @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.5.5", - "@polkadot/ui-app": "^0.34.0-beta.119", - "@polkadot/ui-params": "^0.34.0-beta.119" + "@polkadot/react-components": "^0.34.0-beta.119", + "@polkadot/react-params": "^0.34.0-beta.119" } } diff --git a/packages/app-storage/src/Queries.tsx b/packages/app-storage/src/Queries.tsx index d438e8fc6a..40f94099a3 100644 --- a/packages/app-storage/src/Queries.tsx +++ b/packages/app-storage/src/Queries.tsx @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps } from '@polkadot/ui-app/types'; +import { BareProps } from '@polkadot/react-components/types'; import { QueryTypes } from './types'; import React from 'react'; diff --git a/packages/app-storage/src/Query.tsx b/packages/app-storage/src/Query.tsx index f24482b334..e87b8f6b70 100644 --- a/packages/app-storage/src/Query.tsx +++ b/packages/app-storage/src/Query.tsx @@ -3,20 +3,20 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { StorageEntryPromise } from '@polkadot/api/types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { QueryTypes, StorageModuleQuery } from './types'; import React from 'react'; import styled from 'styled-components'; import { Compact } from '@polkadot/types'; -import { Button, Labelled } from '@polkadot/ui-app'; -import { withCallDiv } from '@polkadot/ui-api'; -import valueToText from '@polkadot/ui-params/valueToText'; +import { Button, Labelled } from '@polkadot/react-components'; +import { withCallDiv } from '@polkadot/react-api'; +import valueToText from '@polkadot/react-params/valueToText'; import { isU8a, u8aToHex, u8aToString } from '@polkadot/util'; import translate from './translate'; -import { RenderFn, DefaultProps, ComponentRenderer } from '@polkadot/ui-api/with/types'; -import { ConstValue } from '@polkadot/ui-app/InputConsts/types'; +import { RenderFn, DefaultProps, ComponentRenderer } from '@polkadot/react-api/with/types'; +import { ConstValue } from '@polkadot/react-components/InputConsts/types'; interface Props extends I18nProps { onRemove: (id: number) => void; diff --git a/packages/app-storage/src/Selection/Consts.tsx b/packages/app-storage/src/Selection/Consts.tsx index 75ebfbb33e..98fb734103 100644 --- a/packages/app-storage/src/Selection/Consts.tsx +++ b/packages/app-storage/src/Selection/Consts.tsx @@ -3,14 +3,14 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { ConstantCodec } from '@polkadot/api-metadata/consts/types'; -import { I18nProps } from '@polkadot/ui-app/types'; -import { ConstValue } from '@polkadot/ui-app/InputConsts/types'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { ConstValue } from '@polkadot/react-components/InputConsts/types'; +import { ApiProps } from '@polkadot/react-api/types'; import { ComponentProps } from '../types'; import React from 'react'; -import { Button, InputConsts, TxComponent } from '@polkadot/ui-app'; -import { withApi, withMulti } from '@polkadot/ui-api'; +import { Button, InputConsts, TxComponent } from '@polkadot/react-components'; +import { withApi, withMulti } from '@polkadot/react-api'; import translate from '../translate'; diff --git a/packages/app-storage/src/Selection/Modules.tsx b/packages/app-storage/src/Selection/Modules.tsx index a6bb932d7f..8e78c67761 100644 --- a/packages/app-storage/src/Selection/Modules.tsx +++ b/packages/app-storage/src/Selection/Modules.tsx @@ -4,16 +4,16 @@ import { StorageEntryPromise } from '@polkadot/api/types'; import { TypeDef } from '@polkadot/types/types'; -import { I18nProps } from '@polkadot/ui-app/types'; -import { RawParams } from '@polkadot/ui-params/types'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { RawParams } from '@polkadot/react-params/types'; +import { ApiProps } from '@polkadot/react-api/types'; import { ComponentProps } from '../types'; import React from 'react'; import { getTypeDef } from '@polkadot/types'; -import { Button, InputStorage, TxComponent } from '@polkadot/ui-app'; -import Params from '@polkadot/ui-params'; -import { withApi, withMulti } from '@polkadot/ui-api'; +import { Button, InputStorage, TxComponent } from '@polkadot/react-components'; +import Params from '@polkadot/react-params'; +import { withApi, withMulti } from '@polkadot/react-api'; import { isUndefined } from '@polkadot/util'; import translate from '../translate'; diff --git a/packages/app-storage/src/Selection/Raw.tsx b/packages/app-storage/src/Selection/Raw.tsx index fbbcba85c8..79eedbaccb 100644 --- a/packages/app-storage/src/Selection/Raw.tsx +++ b/packages/app-storage/src/Selection/Raw.tsx @@ -2,11 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { ComponentProps } from '../types'; import React from 'react'; -import { Button, Input, TxComponent } from '@polkadot/ui-app'; +import { Button, Input, TxComponent } from '@polkadot/react-components'; import translate from '../translate'; import { u8aToU8a } from '@polkadot/util'; diff --git a/packages/app-storage/src/Selection/index.tsx b/packages/app-storage/src/Selection/index.tsx index b7053a7279..cff62c6c76 100644 --- a/packages/app-storage/src/Selection/index.tsx +++ b/packages/app-storage/src/Selection/index.tsx @@ -2,15 +2,15 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { ApiProps } from '@polkadot/ui-api/types'; -import { I18nProps } from '@polkadot/ui-app/types'; -import { TabItem } from '@polkadot/ui-app/Tabs'; +import { ApiProps } from '@polkadot/react-api/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { TabItem } from '@polkadot/react-components/Tabs'; import { ComponentProps, QueryTypes, ParitalQueryTypes } from '../types'; import React from 'react'; import { Route, Switch } from 'react-router'; -import { Tabs } from '@polkadot/ui-app'; -import { withApi } from '@polkadot/ui-api'; +import { Tabs } from '@polkadot/react-components'; +import { withApi } from '@polkadot/react-api'; import Consts from './Consts'; import Modules from './Modules'; diff --git a/packages/app-storage/src/index.tsx b/packages/app-storage/src/index.tsx index 9f23c380ef..fede78449c 100644 --- a/packages/app-storage/src/index.tsx +++ b/packages/app-storage/src/index.tsx @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AppProps, I18nProps } from '@polkadot/ui-app/types'; +import { AppProps, I18nProps } from '@polkadot/react-components/types'; import { QueryTypes } from './types'; import './index.css'; diff --git a/packages/app-storage/src/types.ts b/packages/app-storage/src/types.ts index dc264cd259..005816ace7 100644 --- a/packages/app-storage/src/types.ts +++ b/packages/app-storage/src/types.ts @@ -3,8 +3,8 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { StorageEntryPromise } from '@polkadot/api/types'; -import { ConstValue } from '@polkadot/ui-app/InputConsts/types'; -import { RawParams } from '@polkadot/ui-params/types'; +import { ConstValue } from '@polkadot/react-components/InputConsts/types'; +import { RawParams } from '@polkadot/react-params/types'; interface Base { isConst: boolean; diff --git a/packages/app-sudo/package.json b/packages/app-sudo/package.json index 3cb37b79a0..f80134abf0 100644 --- a/packages/app-sudo/package.json +++ b/packages/app-sudo/package.json @@ -12,6 +12,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.5.5", - "@polkadot/ui-app": "^0.34.0-beta.119" + "@polkadot/react-components": "^0.34.0-beta.119" } } diff --git a/packages/app-sudo/src/SetKey.tsx b/packages/app-sudo/src/SetKey.tsx index 4bba79a663..427a3b339e 100644 --- a/packages/app-sudo/src/SetKey.tsx +++ b/packages/app-sudo/src/SetKey.tsx @@ -1,10 +1,10 @@ // Copyright 2017-2019 @polkadot/app-123code authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; -import { AddressMini, Icon, InputAddress, Labelled, TxButton } from '@polkadot/ui-app'; +import { AddressMini, Icon, InputAddress, Labelled, TxButton } from '@polkadot/react-components'; import { ComponentProps } from './types'; import styled from 'styled-components'; diff --git a/packages/app-sudo/src/Sudo.tsx b/packages/app-sudo/src/Sudo.tsx index 9796a3215e..3ad6644074 100644 --- a/packages/app-sudo/src/Sudo.tsx +++ b/packages/app-sudo/src/Sudo.tsx @@ -3,14 +3,14 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { Call } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { ApiProps } from '@polkadot/react-api/types'; import { ComponentProps } from './types'; import React from 'react'; import { createType } from '@polkadot/types'; -import { Button, Icon, Extrinsic, TxButton, TxComponent } from '@polkadot/ui-app'; -import { withApi, withMulti } from '@polkadot/ui-api'; +import { Button, Icon, Extrinsic, TxButton, TxComponent } from '@polkadot/react-components'; +import { withApi, withMulti } from '@polkadot/react-api'; import translate from './translate'; diff --git a/packages/app-sudo/src/index.tsx b/packages/app-sudo/src/index.tsx index 7e3f0d6e5c..123a2a53c6 100644 --- a/packages/app-sudo/src/index.tsx +++ b/packages/app-sudo/src/index.tsx @@ -3,15 +3,15 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AppProps, I18nProps } from '@polkadot/ui-app/types'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { AppProps, I18nProps } from '@polkadot/react-components/types'; +import { ApiProps } from '@polkadot/react-api/types'; import { SubjectInfo } from '@polkadot/ui-keyring/observable/types'; import { ComponentProps } from './types'; import React from 'react'; import { Route, Switch } from 'react-router'; -import { Icon, Tabs } from '@polkadot/ui-app'; -import { withApi, withCalls, withMulti, withObservable } from '@polkadot/ui-api'; +import { Icon, Tabs } from '@polkadot/react-components'; +import { withApi, withCalls, withMulti, withObservable } from '@polkadot/react-api'; import accountObservable from '@polkadot/ui-keyring/observable/accounts'; import SetKey from './SetKey'; diff --git a/packages/app-toolbox/package.json b/packages/app-toolbox/package.json index 94b25f0499..efb7e45592 100644 --- a/packages/app-toolbox/package.json +++ b/packages/app-toolbox/package.json @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.5.5", - "@polkadot/ui-app": "^0.34.0-beta.119" + "@polkadot/react-components": "^0.34.0-beta.119" } } diff --git a/packages/app-toolbox/src/Hash.tsx b/packages/app-toolbox/src/Hash.tsx index 38dc600f40..c8937d20c1 100644 --- a/packages/app-toolbox/src/Hash.tsx +++ b/packages/app-toolbox/src/Hash.tsx @@ -2,10 +2,10 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps as Props } from '@polkadot/ui-app/types'; +import { I18nProps as Props } from '@polkadot/react-components/types'; import React from 'react'; -import { Input, Output, Static } from '@polkadot/ui-app'; +import { Input, Output, Static } from '@polkadot/react-components'; import { hexToU8a, isHex, stringToU8a } from '@polkadot/util'; import { blake2AsHex } from '@polkadot/util-crypto'; diff --git a/packages/app-toolbox/src/Rpc/Account.tsx b/packages/app-toolbox/src/Rpc/Account.tsx index d3bef84e90..04db7b0092 100644 --- a/packages/app-toolbox/src/Rpc/Account.tsx +++ b/packages/app-toolbox/src/Rpc/Account.tsx @@ -2,13 +2,13 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import BN from 'bn.js'; import React from 'react'; import styled from 'styled-components'; -import { InputAddress, Labelled } from '@polkadot/ui-app'; -import { Nonce } from '@polkadot/ui-reactive'; +import { InputAddress, Labelled } from '@polkadot/react-components'; +import { Nonce } from '@polkadot/react-query'; import translate from './translate'; diff --git a/packages/app-toolbox/src/Rpc/Results.tsx b/packages/app-toolbox/src/Rpc/Results.tsx index d42f41c3ae..d7bde6b105 100644 --- a/packages/app-toolbox/src/Rpc/Results.tsx +++ b/packages/app-toolbox/src/Rpc/Results.tsx @@ -2,11 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps } from '@polkadot/ui-app/types'; -import { QueueTx } from '@polkadot/ui-app/Status/types'; +import { BareProps } from '@polkadot/react-components/types'; +import { QueueTx } from '@polkadot/react-components/Status/types'; import React from 'react'; -import { Output } from '@polkadot/ui-app'; +import { Output } from '@polkadot/react-components'; import { isUndefined } from '@polkadot/util'; interface Props extends BareProps { diff --git a/packages/app-toolbox/src/Rpc/Selection.tsx b/packages/app-toolbox/src/Rpc/Selection.tsx index 2a00ec527d..a258fb1d69 100644 --- a/packages/app-toolbox/src/Rpc/Selection.tsx +++ b/packages/app-toolbox/src/Rpc/Selection.tsx @@ -4,15 +4,15 @@ import { RpcMethod } from '@polkadot/jsonrpc/types'; import { TypeDef } from '@polkadot/types/types'; -import { RawParam } from '@polkadot/ui-params/types'; -import { I18nProps } from '@polkadot/ui-app/types'; -import { QueueTxRpcAdd } from '@polkadot/ui-app/Status/types'; +import { RawParam } from '@polkadot/react-params/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { QueueTxRpcAdd } from '@polkadot/react-components/Status/types'; import React from 'react'; import rpc from '@polkadot/jsonrpc'; import { getTypeDef } from '@polkadot/types'; -import { Button, InputRpc, TxComponent } from '@polkadot/ui-app'; -import Params from '@polkadot/ui-params'; +import { Button, InputRpc, TxComponent } from '@polkadot/react-components'; +import Params from '@polkadot/react-params'; import translate from './translate'; diff --git a/packages/app-toolbox/src/Rpc/index.tsx b/packages/app-toolbox/src/Rpc/index.tsx index e23601da02..b50f0fa471 100644 --- a/packages/app-toolbox/src/Rpc/index.tsx +++ b/packages/app-toolbox/src/Rpc/index.tsx @@ -2,11 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps } from '@polkadot/ui-app/types'; -import { QueueProps } from '@polkadot/ui-app/Status/types'; +import { BareProps } from '@polkadot/react-components/types'; +import { QueueProps } from '@polkadot/react-components/Status/types'; import React from 'react'; -import { QueueConsumer } from '@polkadot/ui-app/Status/Context'; +import { QueueConsumer } from '@polkadot/react-components/Status/Context'; import Results from './Results'; import Selection from './Selection'; diff --git a/packages/app-toolbox/src/Sign.tsx b/packages/app-toolbox/src/Sign.tsx index 817ec8c14b..87edf69efb 100644 --- a/packages/app-toolbox/src/Sign.tsx +++ b/packages/app-toolbox/src/Sign.tsx @@ -2,13 +2,13 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { KeyringPair } from '@polkadot/keyring/types'; import React from 'react'; import styled from 'styled-components'; -import { withMulti } from '@polkadot/ui-api'; -import { Button, Input, InputAddress, Output, Static } from '@polkadot/ui-app'; +import { withMulti } from '@polkadot/react-api'; +import { Button, Input, InputAddress, Output, Static } from '@polkadot/react-components'; import keyring from '@polkadot/ui-keyring'; import { hexToU8a, isHex, stringToU8a, u8aToHex } from '@polkadot/util'; diff --git a/packages/app-toolbox/src/Unlock.tsx b/packages/app-toolbox/src/Unlock.tsx index 01f86852dd..2bc9bdba50 100644 --- a/packages/app-toolbox/src/Unlock.tsx +++ b/packages/app-toolbox/src/Unlock.tsx @@ -2,11 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { KeyringPair } from '@polkadot/keyring/types'; import React from 'react'; -import { AddressRow, Button, Modal, Password, TxComponent } from '@polkadot/ui-app'; +import { AddressRow, Button, Modal, Password, TxComponent } from '@polkadot/react-components'; import translate from './translate'; diff --git a/packages/app-toolbox/src/Verify.tsx b/packages/app-toolbox/src/Verify.tsx index 9c37cd94c3..fb09cd70b1 100644 --- a/packages/app-toolbox/src/Verify.tsx +++ b/packages/app-toolbox/src/Verify.tsx @@ -2,11 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps as Props } from '@polkadot/ui-app/types'; +import { I18nProps as Props } from '@polkadot/react-components/types'; import { KeypairType } from '@polkadot/util-crypto/types'; import React from 'react'; -import { Dropdown, Icon, Input, InputAddress, Static } from '@polkadot/ui-app'; +import { Dropdown, Icon, Input, InputAddress, Static } from '@polkadot/react-components'; import keyring from '@polkadot/ui-keyring'; import uiSettings from '@polkadot/ui-settings'; import { isHex } from '@polkadot/util'; diff --git a/packages/app-toolbox/src/index.tsx b/packages/app-toolbox/src/index.tsx index b623210a17..227209a0bf 100644 --- a/packages/app-toolbox/src/index.tsx +++ b/packages/app-toolbox/src/index.tsx @@ -2,14 +2,14 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AppProps, I18nProps } from '@polkadot/ui-app/types'; +import { AppProps, I18nProps } from '@polkadot/react-components/types'; import { SubjectInfo } from '@polkadot/ui-keyring/observable/types'; import React from 'react'; import { Route, Switch } from 'react-router'; -import Tabs, { TabItem } from '@polkadot/ui-app/Tabs'; +import Tabs, { TabItem } from '@polkadot/react-components/Tabs'; import accountObservable from '@polkadot/ui-keyring/observable/accounts'; -import { withMulti, withObservable } from '@polkadot/ui-api'; +import { withMulti, withObservable } from '@polkadot/react-api'; import Hash from './Hash'; import Rpc from './Rpc'; diff --git a/packages/app-transfer/package.json b/packages/app-transfer/package.json index a3aadb6761..2c3f0efa39 100644 --- a/packages/app-transfer/package.json +++ b/packages/app-transfer/package.json @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.5.5", - "@polkadot/ui-app": "^0.34.0-beta.119", - "@polkadot/ui-reactive": "^0.34.0-beta.119" + "@polkadot/react-components": "^0.34.0-beta.119", + "@polkadot/react-query": "^0.34.0-beta.119" } } diff --git a/packages/app-transfer/src/index.tsx b/packages/app-transfer/src/index.tsx index cd2853f8a9..95c73a8bbb 100644 --- a/packages/app-transfer/src/index.tsx +++ b/packages/app-transfer/src/index.tsx @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AppProps } from '@polkadot/ui-app/types'; +import { AppProps } from '@polkadot/react-components/types'; import React from 'react'; diff --git a/packages/app-treasury/package.json b/packages/app-treasury/package.json index a4762f6f93..a3867bda9b 100644 --- a/packages/app-treasury/package.json +++ b/packages/app-treasury/package.json @@ -12,7 +12,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.5.5", - "@polkadot/ui-app": "^0.34.0-beta.119", - "@polkadot/ui-reactive": "^0.34.0-beta.119" + "@polkadot/react-components": "^0.34.0-beta.119", + "@polkadot/react-query": "^0.34.0-beta.119" } } diff --git a/packages/app-treasury/src/Overview/Approve.tsx b/packages/app-treasury/src/Overview/Approve.tsx index 7f6938c727..ef6f1afd50 100644 --- a/packages/app-treasury/src/Overview/Approve.tsx +++ b/packages/app-treasury/src/Overview/Approve.tsx @@ -3,13 +3,13 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { AccountId, BlockNumber } from '@polkadot/types/interfaces'; -import { ApiProps } from '@polkadot/ui-api/types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { ApiProps } from '@polkadot/react-api/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; -import { Button, Dropdown } from '@polkadot/ui-app'; -import { withMulti, withApi, withCalls } from '@polkadot/ui-api'; -import TxModal, { TxModalProps, TxModalState } from '@polkadot/ui-app/TxModal'; +import { Button, Dropdown } from '@polkadot/react-components'; +import { withMulti, withApi, withCalls } from '@polkadot/react-api'; +import TxModal, { TxModalProps, TxModalState } from '@polkadot/react-components/TxModal'; import translate from '../translate'; diff --git a/packages/app-treasury/src/Overview/Proposal.tsx b/packages/app-treasury/src/Overview/Proposal.tsx index 26740be9d3..eb322fc477 100644 --- a/packages/app-treasury/src/Overview/Proposal.tsx +++ b/packages/app-treasury/src/Overview/Proposal.tsx @@ -3,14 +3,14 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { TreasuryProposal as TreasuryProposalType } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { SubjectInfo } from '@polkadot/ui-keyring/observable/types'; import React from 'react'; import styled from 'styled-components'; import { Option } from '@polkadot/types'; -import { ActionItem, Icon, TreasuryProposal } from '@polkadot/ui-app'; -import { withCalls, withMulti, withObservable } from '@polkadot/ui-api'; +import { ActionItem, Icon, TreasuryProposal } from '@polkadot/react-components'; +import { withCalls, withMulti, withObservable } from '@polkadot/react-api'; import keyring from '@polkadot/ui-keyring'; import translate from '../translate'; diff --git a/packages/app-treasury/src/Overview/Proposals.tsx b/packages/app-treasury/src/Overview/Proposals.tsx index 4ff68075fb..2a5960ae55 100644 --- a/packages/app-treasury/src/Overview/Proposals.tsx +++ b/packages/app-treasury/src/Overview/Proposals.tsx @@ -4,14 +4,14 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { ProposalIndex } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import BN from 'bn.js'; import React from 'react'; import { RouteComponentProps } from 'react-router'; import { withRouter } from 'react-router-dom'; -import { withCalls, withMulti } from '@polkadot/ui-api'; -import { Column } from '@polkadot/ui-app'; +import { withCalls, withMulti } from '@polkadot/react-api'; +import { Column } from '@polkadot/react-components'; import Proposal from './Proposal'; import translate from '../translate'; diff --git a/packages/app-treasury/src/Overview/Propose.tsx b/packages/app-treasury/src/Overview/Propose.tsx index aeb1afc284..8a891194e5 100644 --- a/packages/app-treasury/src/Overview/Propose.tsx +++ b/packages/app-treasury/src/Overview/Propose.tsx @@ -5,8 +5,8 @@ import BN from 'bn.js'; import React from 'react'; -import { Button, InputAddress, InputBalance } from '@polkadot/ui-app'; -import TxModal, { TxModalState, TxModalProps } from '@polkadot/ui-app/TxModal'; +import { Button, InputAddress, InputBalance } from '@polkadot/react-components'; +import TxModal, { TxModalState, TxModalProps } from '@polkadot/react-components/TxModal'; import translate from '../translate'; diff --git a/packages/app-treasury/src/Overview/Summary.tsx b/packages/app-treasury/src/Overview/Summary.tsx index 0e6944cf28..4c06c43296 100644 --- a/packages/app-treasury/src/Overview/Summary.tsx +++ b/packages/app-treasury/src/Overview/Summary.tsx @@ -3,12 +3,12 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import BN from 'bn.js'; import React from 'react'; -import { SummaryBox, CardSummary } from '@polkadot/ui-app'; -import { withCalls } from '@polkadot/ui-api'; +import { SummaryBox, CardSummary } from '@polkadot/react-components'; +import { withCalls } from '@polkadot/react-api'; import { formatBalance, formatNumber } from '@polkadot/util'; import translate from '../translate'; diff --git a/packages/app-treasury/src/Overview/index.tsx b/packages/app-treasury/src/Overview/index.tsx index 839fff6d08..ef7f7fe381 100644 --- a/packages/app-treasury/src/Overview/index.tsx +++ b/packages/app-treasury/src/Overview/index.tsx @@ -2,10 +2,10 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AppProps, BareProps, I18nProps } from '@polkadot/ui-app/types'; +import { AppProps, BareProps, I18nProps } from '@polkadot/react-components/types'; import React from 'react'; -import { Columar } from '@polkadot/ui-app'; +import { Columar } from '@polkadot/react-components'; import Summary from './Summary'; import Proposals, { Approvals } from './Proposals'; diff --git a/packages/app-treasury/src/Settings.tsx b/packages/app-treasury/src/Settings.tsx index 3788204e09..f96b490485 100644 --- a/packages/app-treasury/src/Settings.tsx +++ b/packages/app-treasury/src/Settings.tsx @@ -3,15 +3,15 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { BlockNumber, BalanceOf, Permill } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { ApiProps } from '@polkadot/react-api/types'; import BN from 'bn.js'; import React from 'react'; import { RouteComponentProps } from 'react-router'; -import { Button, InputAddress, InputBalance, InputNumber, TxButton, TxComponent } from '@polkadot/ui-app'; -import { withCalls, withMulti } from '@polkadot/ui-api'; +import { Button, InputAddress, InputBalance, InputNumber, TxButton, TxComponent } from '@polkadot/react-components'; +import { withCalls, withMulti } from '@polkadot/react-api'; import translate from './translate'; diff --git a/packages/app-treasury/src/index.tsx b/packages/app-treasury/src/index.tsx index f392bc348a..1f1d10dfc3 100644 --- a/packages/app-treasury/src/index.tsx +++ b/packages/app-treasury/src/index.tsx @@ -2,12 +2,12 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AppProps, BareProps, I18nProps } from '@polkadot/ui-app/types'; -import { TabItem } from '@polkadot/ui-app/Tabs'; +import { AppProps, BareProps, I18nProps } from '@polkadot/react-components/types'; +import { TabItem } from '@polkadot/react-components/Tabs'; import React from 'react'; import { Route, Switch } from 'react-router'; -import { HelpOverlay, Tabs } from '@polkadot/ui-app'; +import { HelpOverlay, Tabs } from '@polkadot/react-components'; import basicMd from './md/basic.md'; import Overview from './Overview'; diff --git a/packages/apps-routing/src/types.ts b/packages/apps-routing/src/types.ts index 17e859f2a7..c466057e5f 100644 --- a/packages/apps-routing/src/types.ts +++ b/packages/apps-routing/src/types.ts @@ -3,7 +3,7 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { SemanticICONS } from 'semantic-ui-react/dist/commonjs/generic'; -import { AppProps, BareProps } from '@polkadot/ui-app/types'; +import { AppProps, BareProps } from '@polkadot/react-components/types'; export type RouteProps = AppProps & BareProps; diff --git a/packages/apps/package.json b/packages/apps/package.json index aff79ab532..1685bf2221 100644 --- a/packages/apps/package.json +++ b/packages/apps/package.json @@ -13,9 +13,9 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.5.5", - "@polkadot/ui-app": "^0.34.0-beta.119", + "@polkadot/react-components": "^0.34.0-beta.119", "@polkadot/ui-assets": "^0.42.0-beta.31", - "@polkadot/ui-signer": "^0.34.0-beta.119", + "@polkadot/react-signer": "^0.34.0-beta.119", "query-string": "^6.8.2" } } diff --git a/packages/apps/src/Apps.tsx b/packages/apps/src/Apps.tsx index e800ab0354..2746d64b7a 100644 --- a/packages/apps/src/Apps.tsx +++ b/packages/apps/src/Apps.tsx @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps } from '@polkadot/ui-app/types'; +import { BareProps } from '@polkadot/react-components/types'; // this is disabled, Chrome + WASM memory leak makes it slow & laggy. If enabled // we also need to export the default as hot(Apps) (last line) @@ -11,8 +11,8 @@ import { BareProps } from '@polkadot/ui-app/types'; import React from 'react'; import store from 'store'; import styled from 'styled-components'; -import { media } from '@polkadot/ui-app'; -import Signer from '@polkadot/ui-signer'; +import { media } from '@polkadot/react-components'; +import Signer from '@polkadot/react-signer'; import settings from '@polkadot/ui-settings'; import ConnectingOverlay from './overlays/Connecting'; diff --git a/packages/apps/src/Content/Status.tsx b/packages/apps/src/Content/Status.tsx index cb9e58f336..db46c6af35 100644 --- a/packages/apps/src/Content/Status.tsx +++ b/packages/apps/src/Content/Status.tsx @@ -5,13 +5,13 @@ import { EventRecord } from '@polkadot/types/interfaces'; import { KeyringOptions } from '@polkadot/ui-keyring/options/types'; -import { QueueStatus, QueueTx, QueueAction$Add } from '@polkadot/ui-app/Status/types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { QueueStatus, QueueTx, QueueAction$Add } from '@polkadot/react-components/Status/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; import keyringOption from '@polkadot/ui-keyring/options'; -import { Status as StatusDisplay } from '@polkadot/ui-app'; -import { withCalls, withMulti, withObservable } from '@polkadot/ui-api'; +import { Status as StatusDisplay } from '@polkadot/react-components'; +import { withCalls, withMulti, withObservable } from '@polkadot/react-api'; import { stringToU8a } from '@polkadot/util'; import { xxhashAsHex } from '@polkadot/util-crypto'; diff --git a/packages/apps/src/Content/index.tsx b/packages/apps/src/Content/index.tsx index 46f468750d..7d1689c3f2 100644 --- a/packages/apps/src/Content/index.tsx +++ b/packages/apps/src/Content/index.tsx @@ -2,16 +2,16 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; -import { ApiProps } from '@polkadot/ui-api/types'; -import { QueueProps } from '@polkadot/ui-app/Status/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { ApiProps } from '@polkadot/react-api/types'; +import { QueueProps } from '@polkadot/react-components/Status/types'; import React from 'react'; import { withRouter } from 'react-router'; import styled from 'styled-components'; import routing from '@polkadot/apps-routing'; -import { withCalls, withMulti } from '@polkadot/ui-api'; -import { QueueConsumer } from '@polkadot/ui-app/Status/Context'; +import { withCalls, withMulti } from '@polkadot/react-api'; +import { QueueConsumer } from '@polkadot/react-components/Status/Context'; import Status from './Status'; import translate from '../translate'; diff --git a/packages/apps/src/SideBar/Item.tsx b/packages/apps/src/SideBar/Item.tsx index 8f261f01a2..66bc5cadfa 100644 --- a/packages/apps/src/SideBar/Item.tsx +++ b/packages/apps/src/SideBar/Item.tsx @@ -2,16 +2,16 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { ApiProps } from '@polkadot/react-api/types'; import { SubjectInfo } from '@polkadot/ui-keyring/observable/types'; import { Route } from '@polkadot/apps-routing/types'; import React from 'react'; import { NavLink } from 'react-router-dom'; -import { Icon, Menu, Tooltip } from '@polkadot/ui-app'; +import { Icon, Menu, Tooltip } from '@polkadot/react-components'; import accountObservable from '@polkadot/ui-keyring/observable/accounts'; -import { withApi, withCalls, withMulti, withObservable } from '@polkadot/ui-api'; +import { withApi, withCalls, withMulti, withObservable } from '@polkadot/react-api'; import { isFunction } from '@polkadot/util'; import translate from '../translate'; diff --git a/packages/apps/src/SideBar/NodeInfo.tsx b/packages/apps/src/SideBar/NodeInfo.tsx index bd0327b6df..3a78fd0ee1 100644 --- a/packages/apps/src/SideBar/NodeInfo.tsx +++ b/packages/apps/src/SideBar/NodeInfo.tsx @@ -2,13 +2,13 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { ApiProps } from '@polkadot/ui-api/types'; -import { BareProps } from '@polkadot/ui-app/types'; +import { ApiProps } from '@polkadot/react-api/types'; +import { BareProps } from '@polkadot/react-components/types'; import React from 'react'; import styled from 'styled-components'; -import { withApi } from '@polkadot/ui-api/with'; -import { NodeName, NodeVersion } from '@polkadot/ui-reactive'; +import { withApi } from '@polkadot/react-api/with'; +import { NodeName, NodeVersion } from '@polkadot/react-query'; type Props = ApiProps & BareProps & {}; diff --git a/packages/apps/src/SideBar/SideBar.css b/packages/apps/src/SideBar/SideBar.css index 291d022bec..5b89ea2141 100644 --- a/packages/apps/src/SideBar/SideBar.css +++ b/packages/apps/src/SideBar/SideBar.css @@ -2,8 +2,8 @@ /* This software may be modified and distributed under the terms /* of the Apache-2.0 license. See the LICENSE file for details. */ -@import '../../../ui-app/src/styles/theme/_colors-polkadot.css'; -@import '../../../ui-app/src/styles/theme/_colors-substrate.css'; +@import '../../../react-components/src/styles/theme/_colors-polkadot.css'; +@import '../../../react-components/src/styles/theme/_colors-substrate.css'; .apps-Wrapper { display: flex; diff --git a/packages/apps/src/SideBar/index.tsx b/packages/apps/src/SideBar/index.tsx index 68e58e1e16..5fc2dae4fb 100644 --- a/packages/apps/src/SideBar/index.tsx +++ b/packages/apps/src/SideBar/index.tsx @@ -4,7 +4,7 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { Route } from '@polkadot/apps-routing/types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { SIDEBAR_MENU_THRESHOLD } from '../constants'; import './SideBar.css'; @@ -13,11 +13,11 @@ import React from 'react'; import styled from 'styled-components'; import { Responsive } from 'semantic-ui-react'; import routing from '@polkadot/apps-routing'; -import { withCalls, withMulti } from '@polkadot/ui-api'; -import { Button, Icon, Menu, media } from '@polkadot/ui-app'; -import { classes } from '@polkadot/ui-app/util'; -import { logoBackground, logoPadding } from '@polkadot/ui-app/styles/theme'; -import { BestNumber, Chain } from '@polkadot/ui-reactive'; +import { withCalls, withMulti } from '@polkadot/react-api'; +import { Button, Icon, Menu, media } from '@polkadot/react-components'; +import { classes } from '@polkadot/react-components/util'; +import { logoBackground, logoPadding } from '@polkadot/react-components/styles/theme'; +import { BestNumber, Chain } from '@polkadot/react-query'; import translate from '../translate'; import Item from './Item'; diff --git a/packages/apps/src/TopBar.tsx b/packages/apps/src/TopBar.tsx index 1afb10e4c1..8dfefd879a 100644 --- a/packages/apps/src/TopBar.tsx +++ b/packages/apps/src/TopBar.tsx @@ -6,7 +6,7 @@ import React from 'react'; import styled from 'styled-components'; -import { BestNumber, Chain, NodeName, NodeVersion } from '@polkadot/ui-reactive'; +import { BestNumber, Chain, NodeName, NodeVersion } from '@polkadot/react-query'; interface Props { className?: string; diff --git a/packages/apps/src/constants.ts b/packages/apps/src/constants.ts index 82c8328346..eb8d5dd71b 100644 --- a/packages/apps/src/constants.ts +++ b/packages/apps/src/constants.ts @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { ScreenSizes } from '@polkadot/ui-app/constants'; +import { ScreenSizes } from '@polkadot/react-components/constants'; export enum SideBarTransition { COLLAPSED = 'COLLAPSED', diff --git a/packages/apps/src/index.tsx b/packages/apps/src/index.tsx index ba4e51e9fd..e554994714 100644 --- a/packages/apps/src/index.tsx +++ b/packages/apps/src/index.tsx @@ -5,8 +5,8 @@ // import first, get the load done import settings from '@polkadot/ui-settings'; -import '@polkadot/ui-app/i18n'; -import '@polkadot/ui-app/styles'; +import '@polkadot/react-components/i18n'; +import '@polkadot/react-components/styles'; import queryString from 'query-string'; import React, { Suspense } from 'react'; @@ -15,9 +15,9 @@ import { HashRouter } from 'react-router-dom'; import store from 'store'; import { ThemeProvider } from 'styled-components'; import { getTypeRegistry } from '@polkadot/types'; -import { Api } from '@polkadot/ui-api'; -import { QueueConsumer } from '@polkadot/ui-app/Status/Context'; -import Queue from '@polkadot/ui-app/Status/Queue'; +import { Api } from '@polkadot/react-api'; +import { QueueConsumer } from '@polkadot/react-components/Status/Context'; +import Queue from '@polkadot/react-components/Status/Queue'; import Apps from './Apps'; diff --git a/packages/apps/src/overlays/Accounts.tsx b/packages/apps/src/overlays/Accounts.tsx index 26ca98efab..c45727810d 100644 --- a/packages/apps/src/overlays/Accounts.tsx +++ b/packages/apps/src/overlays/Accounts.tsx @@ -2,14 +2,14 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { ApiProps } from '@polkadot/react-api/types'; import { SubjectInfo } from '@polkadot/ui-keyring/observable/types'; import React from 'react'; import { Link } from 'react-router-dom'; import styled from 'styled-components'; -import { withApi, withMulti, withObservable } from '@polkadot/ui-api'; +import { withApi, withMulti, withObservable } from '@polkadot/react-api'; import accountObservable from '@polkadot/ui-keyring/observable/accounts'; import translate from '../translate'; diff --git a/packages/apps/src/overlays/Base.tsx b/packages/apps/src/overlays/Base.tsx index bc61ca5aa7..cd633abcfd 100644 --- a/packages/apps/src/overlays/Base.tsx +++ b/packages/apps/src/overlays/Base.tsx @@ -4,7 +4,7 @@ import React from 'react'; import styled from 'styled-components'; -import { Icon } from '@polkadot/ui-app'; +import { Icon } from '@polkadot/react-components'; interface Props { children: React.ReactNode; diff --git a/packages/apps/src/overlays/Connecting.tsx b/packages/apps/src/overlays/Connecting.tsx index 6401a5fe34..117fdaaa67 100644 --- a/packages/apps/src/overlays/Connecting.tsx +++ b/packages/apps/src/overlays/Connecting.tsx @@ -2,12 +2,12 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; -import { ApiProps } from '@polkadot/ui-api/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { ApiProps } from '@polkadot/react-api/types'; import React from 'react'; import styled from 'styled-components'; -import { withApi, withMulti } from '@polkadot/ui-api'; +import { withApi, withMulti } from '@polkadot/react-api'; import settings from '@polkadot/ui-settings'; import translate from '../translate'; diff --git a/packages/ui-api/LICENSE b/packages/react-api/LICENSE similarity index 100% rename from packages/ui-api/LICENSE rename to packages/react-api/LICENSE diff --git a/packages/ui-api/README.md b/packages/react-api/README.md similarity index 95% rename from packages/ui-api/README.md rename to packages/react-api/README.md index 6dd00952c5..fa75c2c694 100644 --- a/packages/ui-api/README.md +++ b/packages/react-api/README.md @@ -1,4 +1,4 @@ -# @polkadot/ui-api +# @polkadot/react-api WARNING: This is is not deemed stable yet for external use in React-based apps and still included in the [polkadot-js/apps](https://github.com/polkadot-js/apps) repo. Since these are generic HOC components for React, they will move to the [polkadot-js/ui](https://github.com/polkadot-js/ui) repo once deemed stable and usable by external projects. diff --git a/packages/ui-api/package.json b/packages/react-api/package.json similarity index 96% rename from packages/ui-api/package.json rename to packages/react-api/package.json index 65e119e37a..857c68c2e8 100644 --- a/packages/ui-api/package.json +++ b/packages/react-api/package.json @@ -1,5 +1,5 @@ { - "name": "@polkadot/ui-api", + "name": "@polkadot/react-api", "version": "0.34.0-beta.119", "description": "A collection of RxJs React components the Polkadot JS API", "main": "index.js", diff --git a/packages/ui-api/src/Api.tsx b/packages/react-api/src/Api.tsx similarity index 96% rename from packages/ui-api/src/Api.tsx rename to packages/react-api/src/Api.tsx index fbc632c152..66ebbc8b24 100644 --- a/packages/ui-api/src/Api.tsx +++ b/packages/react-api/src/Api.tsx @@ -1,10 +1,10 @@ -// Copyright 2017-2019 @polkadot/ui-api authors & contributors +// Copyright 2017-2019 @polkadot/react-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { ProviderInterface } from '@polkadot/rpc-provider/types'; import { ChainProperties } from '@polkadot/types/interfaces'; -import { QueueTxPayloadAdd, QueueTxMessageSetStatus } from '@polkadot/ui-app/Status/types'; +import { QueueTxPayloadAdd, QueueTxMessageSetStatus } from '@polkadot/react-components/Status/types'; import { Prefix } from '@polkadot/util-crypto/address/types'; import { ApiProps } from './types'; @@ -13,10 +13,10 @@ import ApiPromise from '@polkadot/api/promise'; import { isWeb3Injected, web3Accounts, web3Enable } from '@polkadot/extension-dapp'; import defaults from '@polkadot/rpc-provider/defaults'; import { WsProvider } from '@polkadot/rpc-provider'; -import { InputNumber } from '@polkadot/ui-app/InputNumber'; +import { InputNumber } from '@polkadot/react-components/InputNumber'; import keyring from '@polkadot/ui-keyring'; import uiSettings from '@polkadot/ui-settings'; -import ApiSigner from '@polkadot/ui-signer/ApiSigner'; +import ApiSigner from '@polkadot/react-signer/ApiSigner'; import { Text } from '@polkadot/types'; import { formatBalance, isTestChain } from '@polkadot/util'; diff --git a/packages/ui-api/src/ApiContext.ts b/packages/react-api/src/ApiContext.ts similarity index 88% rename from packages/ui-api/src/ApiContext.ts rename to packages/react-api/src/ApiContext.ts index 6cd5347aaf..8c45ff816b 100644 --- a/packages/ui-api/src/ApiContext.ts +++ b/packages/react-api/src/ApiContext.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-api authors & contributors +// Copyright 2017-2019 @polkadot/react-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-api/src/index.ts b/packages/react-api/src/index.ts similarity index 80% rename from packages/ui-api/src/index.ts rename to packages/react-api/src/index.ts index e0cb450546..45c1238384 100644 --- a/packages/ui-api/src/index.ts +++ b/packages/react-api/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-api authors & contributors +// Copyright 2017-2019 @polkadot/react-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-api/src/transform/echo.ts b/packages/react-api/src/transform/echo.ts similarity index 80% rename from packages/ui-api/src/transform/echo.ts rename to packages/react-api/src/transform/echo.ts index 72fe235575..d631f75c16 100644 --- a/packages/ui-api/src/transform/echo.ts +++ b/packages/react-api/src/transform/echo.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-api authors & contributors +// Copyright 2017-2019 @polkadot/react-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-api/src/types.ts b/packages/react-api/src/types.ts similarity index 95% rename from packages/ui-api/src/types.ts rename to packages/react-api/src/types.ts index a392f482cc..798b104117 100644 --- a/packages/ui-api/src/types.ts +++ b/packages/react-api/src/types.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-api authors & contributors +// Copyright 2017-2019 @polkadot/react-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-api/src/util/index.ts b/packages/react-api/src/util/index.ts similarity index 83% rename from packages/ui-api/src/util/index.ts rename to packages/react-api/src/util/index.ts index d9548d0092..057ba6f7e8 100644 --- a/packages/ui-api/src/util/index.ts +++ b/packages/react-api/src/util/index.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-api authors & contributors +// Copyright 2017-2019 @polkadot/react-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-api/src/util/intervalObservable.ts b/packages/react-api/src/util/intervalObservable.ts similarity index 91% rename from packages/ui-api/src/util/intervalObservable.ts rename to packages/react-api/src/util/intervalObservable.ts index 8cf872c80d..5b9b8cdfc5 100644 --- a/packages/ui-api/src/util/intervalObservable.ts +++ b/packages/react-api/src/util/intervalObservable.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-api authors & contributors +// Copyright 2017-2019 @polkadot/react-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-api/src/util/isEqual.ts b/packages/react-api/src/util/isEqual.ts similarity index 91% rename from packages/ui-api/src/util/isEqual.ts rename to packages/react-api/src/util/isEqual.ts index 3937e4d571..10371cf912 100644 --- a/packages/ui-api/src/util/isEqual.ts +++ b/packages/react-api/src/util/isEqual.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-api authors & contributors +// Copyright 2017-2019 @polkadot/react-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-api/src/util/triggerChange.ts b/packages/react-api/src/util/triggerChange.ts similarity index 90% rename from packages/ui-api/src/util/triggerChange.ts rename to packages/react-api/src/util/triggerChange.ts index 07764a6238..1e17b6f2e1 100644 --- a/packages/ui-api/src/util/triggerChange.ts +++ b/packages/react-api/src/util/triggerChange.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-api authors & contributors +// Copyright 2017-2019 @polkadot/react-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-api/src/with/api.tsx b/packages/react-api/src/with/api.tsx similarity index 94% rename from packages/ui-api/src/with/api.tsx rename to packages/react-api/src/with/api.tsx index d1eae096b0..5abf206f98 100644 --- a/packages/ui-api/src/with/api.tsx +++ b/packages/react-api/src/with/api.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-api authors & contributors +// Copyright 2017-2019 @polkadot/react-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-api/src/with/call.tsx b/packages/react-api/src/with/call.tsx similarity index 99% rename from packages/ui-api/src/with/call.tsx rename to packages/react-api/src/with/call.tsx index 34be9f3734..d6598e75de 100644 --- a/packages/ui-api/src/with/call.tsx +++ b/packages/react-api/src/with/call.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-api authors & contributors +// Copyright 2017-2019 @polkadot/react-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-api/src/with/callDiv.tsx b/packages/react-api/src/with/callDiv.tsx similarity index 94% rename from packages/ui-api/src/with/callDiv.tsx rename to packages/react-api/src/with/callDiv.tsx index fb78a157b6..e181053a33 100644 --- a/packages/ui-api/src/with/callDiv.tsx +++ b/packages/react-api/src/with/callDiv.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-api authors & contributors +// Copyright 2017-2019 @polkadot/react-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-api/src/with/calls.ts b/packages/react-api/src/with/calls.ts similarity index 93% rename from packages/ui-api/src/with/calls.ts rename to packages/react-api/src/with/calls.ts index d325d69226..f2b33303bf 100644 --- a/packages/ui-api/src/with/calls.ts +++ b/packages/react-api/src/with/calls.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-api authors & contributors +// Copyright 2017-2019 @polkadot/react-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-api/src/with/index.ts b/packages/react-api/src/with/index.ts similarity index 86% rename from packages/ui-api/src/with/index.ts rename to packages/react-api/src/with/index.ts index a9c43e8445..f06802a183 100644 --- a/packages/ui-api/src/with/index.ts +++ b/packages/react-api/src/with/index.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-api authors & contributors +// Copyright 2017-2019 @polkadot/react-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-api/src/with/multi.ts b/packages/react-api/src/with/multi.ts similarity index 90% rename from packages/ui-api/src/with/multi.ts rename to packages/react-api/src/with/multi.ts index fa6364729f..962b3a9bd1 100644 --- a/packages/ui-api/src/with/multi.ts +++ b/packages/react-api/src/with/multi.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-api authors & contributors +// Copyright 2017-2019 @polkadot/react-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-api/src/with/observable.tsx b/packages/react-api/src/with/observable.tsx similarity index 97% rename from packages/ui-api/src/with/observable.tsx rename to packages/react-api/src/with/observable.tsx index 6fc18d897e..64fd6edec8 100644 --- a/packages/ui-api/src/with/observable.tsx +++ b/packages/react-api/src/with/observable.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-api authors & contributors +// Copyright 2017-2019 @polkadot/react-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-api/src/with/types.ts b/packages/react-api/src/with/types.ts similarity index 94% rename from packages/ui-api/src/with/types.ts rename to packages/react-api/src/with/types.ts index 002b854491..61127489e3 100644 --- a/packages/ui-api/src/with/types.ts +++ b/packages/react-api/src/with/types.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-api authors & contributors +// Copyright 2017-2019 @polkadot/react-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-api/test/enzyme.js b/packages/react-api/test/enzyme.js similarity index 84% rename from packages/ui-api/test/enzyme.js rename to packages/react-api/test/enzyme.js index 9b2ff5c4f3..884f2a099b 100644 --- a/packages/ui-api/test/enzyme.js +++ b/packages/react-api/test/enzyme.js @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/no-var-requires */ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-api/test/observable.js b/packages/react-api/test/observable.js similarity index 88% rename from packages/ui-api/test/observable.js rename to packages/react-api/test/observable.js index 11aef86639..0aed8dd26a 100644 --- a/packages/ui-api/test/observable.js +++ b/packages/react-api/test/observable.js @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/no-var-requires */ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-api/webpack.config.js b/packages/react-api/webpack.config.js similarity index 91% rename from packages/ui-api/webpack.config.js rename to packages/react-api/webpack.config.js index 95ffef034a..96bbd8abc2 100644 --- a/packages/ui-api/webpack.config.js +++ b/packages/react-api/webpack.config.js @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/LICENSE b/packages/react-components/LICENSE similarity index 100% rename from packages/ui-app/LICENSE rename to packages/react-components/LICENSE diff --git a/packages/ui-signer/README.md b/packages/react-components/README.md similarity index 91% rename from packages/ui-signer/README.md rename to packages/react-components/README.md index 73c9623fe3..85e493f678 100644 --- a/packages/ui-signer/README.md +++ b/packages/react-components/README.md @@ -1,4 +1,4 @@ -# @polkadot/ui-signer +# @polkadot/react-components WARNING: This is an internal package to [polkadot-js/apps](https://github.com/polkadot-js/apps) so is not inteded (yet) for broad use. diff --git a/packages/ui-app/package.json b/packages/react-components/package.json similarity index 91% rename from packages/ui-app/package.json rename to packages/react-components/package.json index f04dae3b02..5e036d305b 100644 --- a/packages/ui-app/package.json +++ b/packages/react-components/package.json @@ -1,5 +1,5 @@ { - "name": "@polkadot/ui-app", + "name": "@polkadot/react-components", "version": "0.34.0-beta.119", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", @@ -13,9 +13,9 @@ "@babel/runtime": "^7.5.5", "@polkadot/keyring": "^1.1.1", "@polkadot/react-identicon": "^0.42.0-beta.31", - "@polkadot/ui-api": "^0.34.0-beta.119", + "@polkadot/react-api": "^0.34.0-beta.119", "@polkadot/ui-keyring": "^0.42.0-beta.31", - "@polkadot/ui-reactive": "^0.34.0-beta.119", + "@polkadot/react-query": "^0.34.0-beta.119", "@polkadot/ui-settings": "^0.42.0-beta.31", "@types/chart.js": "^2.7.56", "@types/i18next": "^12.1.0", diff --git a/packages/ui-app/src/ActionItem.tsx b/packages/react-components/src/ActionItem.tsx similarity index 100% rename from packages/ui-app/src/ActionItem.tsx rename to packages/react-components/src/ActionItem.tsx diff --git a/packages/ui-app/src/AddressCard.tsx b/packages/react-components/src/AddressCard.tsx similarity index 92% rename from packages/ui-app/src/AddressCard.tsx rename to packages/react-components/src/AddressCard.tsx index beabce6e90..4a7472f0d3 100644 --- a/packages/ui-app/src/AddressCard.tsx +++ b/packages/react-components/src/AddressCard.tsx @@ -1,7 +1,7 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -// import { I18nProps } from '@polkadot/ui-app/types'; +// import { I18nProps } from '@polkadot/react-components/types'; // @ts-ignore This line needed for the styled export... don't ask why // eslint-disable-next-line @typescript-eslint/no-unused-vars diff --git a/packages/ui-app/src/AddressInfo.tsx b/packages/react-components/src/AddressInfo.tsx similarity index 97% rename from packages/ui-app/src/AddressInfo.tsx rename to packages/react-components/src/AddressInfo.tsx index 933ede9bca..a913f66b6c 100644 --- a/packages/ui-app/src/AddressInfo.tsx +++ b/packages/react-components/src/AddressInfo.tsx @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/camelcase */ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. @@ -10,8 +10,8 @@ import BN from 'bn.js'; import React from 'react'; import styled from 'styled-components'; import { formatBalance, formatNumber } from '@polkadot/util'; -import { Icon, Tooltip, TxButton } from '@polkadot/ui-app'; -import { withCalls, withMulti } from '@polkadot/ui-api'; +import { Icon, Tooltip, TxButton } from '@polkadot/react-components'; +import { withCalls, withMulti } from '@polkadot/react-api'; import CryptoType from './CryptoType'; import Label from './Label'; diff --git a/packages/ui-app/src/AddressMini.tsx b/packages/react-components/src/AddressMini.tsx similarity index 100% rename from packages/ui-app/src/AddressMini.tsx rename to packages/react-components/src/AddressMini.tsx diff --git a/packages/ui-app/src/AddressRow.tsx b/packages/react-components/src/AddressRow.tsx similarity index 97% rename from packages/ui-app/src/AddressRow.tsx rename to packages/react-components/src/AddressRow.tsx index c9f58bd1c6..be281641c2 100644 --- a/packages/ui-app/src/AddressRow.tsx +++ b/packages/react-components/src/AddressRow.tsx @@ -1,15 +1,15 @@ /* eslint-disable @typescript-eslint/camelcase */ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import BN from 'bn.js'; import React from 'react'; import styled from 'styled-components'; -import { withCalls, withMulti } from '@polkadot/ui-api'; +import { withCalls, withMulti } from '@polkadot/react-api'; import BaseIdentityIcon from '@polkadot/react-identicon'; import keyring from '@polkadot/ui-keyring'; diff --git a/packages/ui-app/src/Available.tsx b/packages/react-components/src/Available.tsx similarity index 87% rename from packages/ui-app/src/Available.tsx rename to packages/react-components/src/Available.tsx index 73d6ec3295..ed73c0fa48 100644 --- a/packages/ui-app/src/Available.tsx +++ b/packages/react-components/src/Available.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. @@ -6,7 +6,7 @@ import { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces'; import { BareProps } from './types'; import React from 'react'; -import { Available } from '@polkadot/ui-reactive'; +import { Available } from '@polkadot/react-query'; import { classes } from './util'; diff --git a/packages/ui-app/src/Balance.tsx b/packages/react-components/src/Balance.tsx similarity index 93% rename from packages/ui-app/src/Balance.tsx rename to packages/react-components/src/Balance.tsx index f49235c88a..8b54662ff0 100644 --- a/packages/ui-app/src/Balance.tsx +++ b/packages/react-components/src/Balance.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. @@ -8,7 +8,7 @@ import { BareProps } from './types'; import BN from 'bn.js'; import React from 'react'; import { formatBalance } from '@polkadot/util'; -import { Balance } from '@polkadot/ui-reactive'; +import { Balance } from '@polkadot/react-query'; import { classes } from './util'; diff --git a/packages/ui-app/src/Bonded.tsx b/packages/react-components/src/Bonded.tsx similarity index 93% rename from packages/ui-app/src/Bonded.tsx rename to packages/react-components/src/Bonded.tsx index 3df6b2158e..fe425f52f9 100644 --- a/packages/ui-app/src/Bonded.tsx +++ b/packages/react-components/src/Bonded.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. @@ -8,7 +8,7 @@ import { BareProps } from './types'; import BN from 'bn.js'; import React from 'react'; import { formatBalance } from '@polkadot/util'; -import { Bonded } from '@polkadot/ui-reactive'; +import { Bonded } from '@polkadot/react-query'; import { classes } from './util'; diff --git a/packages/ui-app/src/Bubble.tsx b/packages/react-components/src/Bubble.tsx similarity index 96% rename from packages/ui-app/src/Bubble.tsx rename to packages/react-components/src/Bubble.tsx index 73de4814ac..3ce42d6481 100644 --- a/packages/ui-app/src/Bubble.tsx +++ b/packages/react-components/src/Bubble.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/Button/Button.css b/packages/react-components/src/Button/Button.css similarity index 73% rename from packages/ui-app/src/Button/Button.css rename to packages/react-components/src/Button/Button.css index cb314c9573..f3be7feb2e 100644 --- a/packages/ui-app/src/Button/Button.css +++ b/packages/react-components/src/Button/Button.css @@ -1,4 +1,4 @@ -/* Copyright 2017-2019 @polkadot/ui-app authors & contributors +/* Copyright 2017-2019 @polkadot/react-components authors & contributors /* This software may be modified and distributed under the terms /* of the Apache-2.0 license. See the LICENSE file for details. */ diff --git a/packages/ui-app/src/Button/Button.tsx b/packages/react-components/src/Button/Button.tsx similarity index 96% rename from packages/ui-app/src/Button/Button.tsx rename to packages/react-components/src/Button/Button.tsx index 6b2edb96d0..45598c3203 100644 --- a/packages/ui-app/src/Button/Button.tsx +++ b/packages/react-components/src/Button/Button.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/Button/Divider.tsx b/packages/react-components/src/Button/Divider.tsx similarity index 87% rename from packages/ui-app/src/Button/Divider.tsx rename to packages/react-components/src/Button/Divider.tsx index fb9ed5fff7..d819d4c7b5 100644 --- a/packages/ui-app/src/Button/Divider.tsx +++ b/packages/react-components/src/Button/Divider.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/Button/Group.tsx b/packages/react-components/src/Button/Group.tsx similarity index 94% rename from packages/ui-app/src/Button/Group.tsx rename to packages/react-components/src/Button/Group.tsx index fd9490bd31..42f9dd5e4b 100644 --- a/packages/ui-app/src/Button/Group.tsx +++ b/packages/react-components/src/Button/Group.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/Button/Or.tsx b/packages/react-components/src/Button/Or.tsx similarity index 91% rename from packages/ui-app/src/Button/Or.tsx rename to packages/react-components/src/Button/Or.tsx index 2523d6ddcd..e7fad9b1ab 100644 --- a/packages/ui-app/src/Button/Or.tsx +++ b/packages/react-components/src/Button/Or.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/Button/index.tsx b/packages/react-components/src/Button/index.tsx similarity index 86% rename from packages/ui-app/src/Button/index.tsx rename to packages/react-components/src/Button/index.tsx index cec4a348dd..11586ee944 100644 --- a/packages/ui-app/src/Button/index.tsx +++ b/packages/react-components/src/Button/index.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/Button/types.ts b/packages/react-components/src/Button/types.ts similarity index 94% rename from packages/ui-app/src/Button/types.ts rename to packages/react-components/src/Button/types.ts index 30aa620453..0141d9012f 100644 --- a/packages/ui-app/src/Button/types.ts +++ b/packages/react-components/src/Button/types.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/Call.tsx b/packages/react-components/src/Call.tsx similarity index 95% rename from packages/ui-app/src/Call.tsx rename to packages/react-components/src/Call.tsx index 677f9f067b..b3c678b15a 100644 --- a/packages/ui-app/src/Call.tsx +++ b/packages/react-components/src/Call.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. @@ -9,7 +9,7 @@ import BN from 'bn.js'; import React from 'react'; import styled from 'styled-components'; import { GenericCall, getTypeDef } from '@polkadot/types'; -import Params from '@polkadot/ui-params'; +import Params from '@polkadot/react-params'; import { formatBalance } from '@polkadot/util'; import Static from './Static'; diff --git a/packages/ui-app/src/Card.tsx b/packages/react-components/src/Card.tsx similarity index 93% rename from packages/ui-app/src/Card.tsx rename to packages/react-components/src/Card.tsx index 238b98200a..46c8c83221 100644 --- a/packages/ui-app/src/Card.tsx +++ b/packages/react-components/src/Card.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/CardGrid.tsx b/packages/react-components/src/CardGrid.tsx similarity index 96% rename from packages/ui-app/src/CardGrid.tsx rename to packages/react-components/src/CardGrid.tsx index 74dc6891d5..9adb6d0219 100644 --- a/packages/ui-app/src/CardGrid.tsx +++ b/packages/react-components/src/CardGrid.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/CardSummary.tsx b/packages/react-components/src/CardSummary.tsx similarity index 97% rename from packages/ui-app/src/CardSummary.tsx rename to packages/react-components/src/CardSummary.tsx index 094c28d24a..3287bd2701 100644 --- a/packages/ui-app/src/CardSummary.tsx +++ b/packages/react-components/src/CardSummary.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/Chart/Base.tsx b/packages/react-components/src/Chart/Base.tsx similarity index 91% rename from packages/ui-app/src/Chart/Base.tsx rename to packages/react-components/src/Chart/Base.tsx index 44b0b6dafa..3e343df013 100644 --- a/packages/ui-app/src/Chart/Base.tsx +++ b/packages/react-components/src/Chart/Base.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/Chart/Doughnut.tsx b/packages/react-components/src/Chart/Doughnut.tsx similarity index 96% rename from packages/ui-app/src/Chart/Doughnut.tsx rename to packages/react-components/src/Chart/Doughnut.tsx index 4bf0999149..5e5c9400e4 100644 --- a/packages/ui-app/src/Chart/Doughnut.tsx +++ b/packages/react-components/src/Chart/Doughnut.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/Chart/HorizBar.tsx b/packages/react-components/src/Chart/HorizBar.tsx similarity index 97% rename from packages/ui-app/src/Chart/HorizBar.tsx rename to packages/react-components/src/Chart/HorizBar.tsx index f8dd8ea27e..040c49e0e8 100644 --- a/packages/ui-app/src/Chart/HorizBar.tsx +++ b/packages/react-components/src/Chart/HorizBar.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/Chart/index.ts b/packages/react-components/src/Chart/index.ts similarity index 76% rename from packages/ui-app/src/Chart/index.ts rename to packages/react-components/src/Chart/index.ts index b3c70c0f1a..704e0ff784 100644 --- a/packages/ui-app/src/Chart/index.ts +++ b/packages/react-components/src/Chart/index.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/CodeRow.tsx b/packages/react-components/src/CodeRow.tsx similarity index 94% rename from packages/ui-app/src/CodeRow.tsx rename to packages/react-components/src/CodeRow.tsx index 9facd31e81..8bb28ff1b4 100644 --- a/packages/ui-app/src/CodeRow.tsx +++ b/packages/react-components/src/CodeRow.tsx @@ -1,16 +1,16 @@ /* eslint-disable @typescript-eslint/camelcase */ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { CodeStored } from '@polkadot/app-contracts/types'; import React from 'react'; import styled from 'styled-components'; import { createType } from '@polkadot/types'; -import { withMulti } from '@polkadot/ui-api'; -import { classes, toShortAddress } from '@polkadot/ui-app/util'; +import { withMulti } from '@polkadot/react-api'; +import { classes, toShortAddress } from '@polkadot/react-components/util'; import contracts from '@polkadot/app-contracts/store'; import CopyButton from './CopyButton'; diff --git a/packages/ui-app/src/Collection.tsx b/packages/react-components/src/Collection.tsx similarity index 94% rename from packages/ui-app/src/Collection.tsx rename to packages/react-components/src/Collection.tsx index df3a6f0baf..1119df1549 100644 --- a/packages/ui-app/src/Collection.tsx +++ b/packages/react-components/src/Collection.tsx @@ -1,8 +1,8 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; diff --git a/packages/ui-app/src/Columar.tsx b/packages/react-components/src/Columar.tsx similarity index 90% rename from packages/ui-app/src/Columar.tsx rename to packages/react-components/src/Columar.tsx index e36a5e2cae..83ef8ad520 100644 --- a/packages/ui-app/src/Columar.tsx +++ b/packages/react-components/src/Columar.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/Column.tsx b/packages/react-components/src/Column.tsx similarity index 95% rename from packages/ui-app/src/Column.tsx rename to packages/react-components/src/Column.tsx index f652ca3674..fc020193c8 100644 --- a/packages/ui-app/src/Column.tsx +++ b/packages/react-components/src/Column.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/CopyButton.tsx b/packages/react-components/src/CopyButton.tsx similarity index 96% rename from packages/ui-app/src/CopyButton.tsx rename to packages/react-components/src/CopyButton.tsx index 4e64d83fb2..ffb0976e73 100644 --- a/packages/ui-app/src/CopyButton.tsx +++ b/packages/react-components/src/CopyButton.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/CryptoType.tsx b/packages/react-components/src/CryptoType.tsx similarity index 93% rename from packages/ui-app/src/CryptoType.tsx rename to packages/react-components/src/CryptoType.tsx index ec9050479b..e3c0829d30 100644 --- a/packages/ui-app/src/CryptoType.tsx +++ b/packages/react-components/src/CryptoType.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/Dropdown.tsx b/packages/react-components/src/Dropdown.tsx similarity index 98% rename from packages/ui-app/src/Dropdown.tsx rename to packages/react-components/src/Dropdown.tsx index f0d8ecde2d..8750ec578e 100644 --- a/packages/ui-app/src/Dropdown.tsx +++ b/packages/react-components/src/Dropdown.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/Editor.tsx b/packages/react-components/src/Editor.tsx similarity index 88% rename from packages/ui-app/src/Editor.tsx rename to packages/react-components/src/Editor.tsx index 3975e0b53e..1a1c54b5a5 100644 --- a/packages/ui-app/src/Editor.tsx +++ b/packages/react-components/src/Editor.tsx @@ -1,13 +1,13 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps } from '@polkadot/ui-app/types'; +import { BareProps } from '@polkadot/react-components/types'; import CodeFlask from 'codeflask'; import React from 'react'; import styled from 'styled-components'; -import { classes } from '@polkadot/ui-app/util'; +import { classes } from '@polkadot/react-components/util'; interface Props extends BareProps { code: string; @@ -24,7 +24,7 @@ interface Props extends BareProps { *
* * ```javascript - * import {Editor} from '@polkadot/ui-app'; + * import {Editor} from '@polkadot/react-components'; * * void; diff --git a/packages/ui-app/src/Voting.tsx b/packages/react-components/src/Voting.tsx similarity index 96% rename from packages/ui-app/src/Voting.tsx rename to packages/react-components/src/Voting.tsx index 273d9f65ba..98ac8620c0 100644 --- a/packages/ui-app/src/Voting.tsx +++ b/packages/react-components/src/Voting.tsx @@ -3,13 +3,13 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { Proposal } from '@polkadot/types/interfaces'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { SubjectInfo } from '@polkadot/ui-keyring/observable/types'; import BN from 'bn.js'; import React from 'react'; import keyring from '@polkadot/ui-keyring'; -import { withMulti, withObservable } from '@polkadot/ui-api'; +import { withMulti, withObservable } from '@polkadot/react-api'; import translate from './translate'; import Button from './Button'; diff --git a/packages/ui-app/src/codeflask.d.ts b/packages/react-components/src/codeflask.d.ts similarity index 68% rename from packages/ui-app/src/codeflask.d.ts rename to packages/react-components/src/codeflask.d.ts index 825e1d5b3b..3e967b9125 100644 --- a/packages/ui-app/src/codeflask.d.ts +++ b/packages/react-components/src/codeflask.d.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/constants.ts b/packages/react-components/src/constants.ts similarity index 87% rename from packages/ui-app/src/constants.ts rename to packages/react-components/src/constants.ts index 3bafdc6498..6184203aef 100644 --- a/packages/ui-app/src/constants.ts +++ b/packages/react-components/src/constants.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/i18n.ts b/packages/react-components/src/i18n.ts similarity index 91% rename from packages/ui-app/src/i18n.ts rename to packages/react-components/src/i18n.ts index 39c916ebea..350d79fd78 100644 --- a/packages/ui-app/src/i18n.ts +++ b/packages/react-components/src/i18n.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/index.tsx b/packages/react-components/src/index.tsx similarity index 98% rename from packages/ui-app/src/index.tsx rename to packages/react-components/src/index.tsx index 2c20b23e97..5f7a475b31 100644 --- a/packages/ui-app/src/index.tsx +++ b/packages/react-components/src/index.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/media.ts b/packages/react-components/src/media.ts similarity index 90% rename from packages/ui-app/src/media.ts rename to packages/react-components/src/media.ts index 5fb0229258..7d6167dfe5 100644 --- a/packages/ui-app/src/media.ts +++ b/packages/react-components/src/media.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/styles.ts b/packages/react-components/src/styles.ts similarity index 85% rename from packages/ui-app/src/styles.ts rename to packages/react-components/src/styles.ts index e3b4f2c6e4..1325e61ecb 100644 --- a/packages/ui-app/src/styles.ts +++ b/packages/react-components/src/styles.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/styles/app.css b/packages/react-components/src/styles/app.css similarity index 96% rename from packages/ui-app/src/styles/app.css rename to packages/react-components/src/styles/app.css index 9ffcc25529..80a578b6b1 100644 --- a/packages/ui-app/src/styles/app.css +++ b/packages/react-components/src/styles/app.css @@ -1,4 +1,4 @@ -/* Copyright 2017-2019 @polkadot/ui-app authors & contributors +/* Copyright 2017-2019 @polkadot/react-components authors & contributors /* This software may be modified and distributed under the terms /* of the Apache-2.0 license. See the LICENSE file for details. */ diff --git a/packages/ui-app/src/styles/components.css b/packages/react-components/src/styles/components.css similarity index 96% rename from packages/ui-app/src/styles/components.css rename to packages/react-components/src/styles/components.css index 13f071f54d..eacd6c146a 100644 --- a/packages/ui-app/src/styles/components.css +++ b/packages/react-components/src/styles/components.css @@ -1,4 +1,4 @@ -/* Copyright 2017-2019 @polkadot/ui-app authors & contributors +/* Copyright 2017-2019 @polkadot/react-components authors & contributors /* This software may be modified and distributed under the terms /* of the Apache-2.0 license. See the LICENSE file for details. */ diff --git a/packages/ui-app/src/styles/form.css b/packages/react-components/src/styles/form.css similarity index 93% rename from packages/ui-app/src/styles/form.css rename to packages/react-components/src/styles/form.css index 61bfce4e24..7803e682ee 100644 --- a/packages/ui-app/src/styles/form.css +++ b/packages/react-components/src/styles/form.css @@ -1,4 +1,4 @@ -/* Copyright 2017-2019 @polkadot/ui-app authors & contributors +/* Copyright 2017-2019 @polkadot/react-components authors & contributors /* This software may be modified and distributed under the terms /* of the Apache-2.0 license. See the LICENSE file for details. */ diff --git a/packages/ui-app/src/styles/media.css b/packages/react-components/src/styles/media.css similarity index 95% rename from packages/ui-app/src/styles/media.css rename to packages/react-components/src/styles/media.css index b2120e1b81..bbf9053977 100644 --- a/packages/ui-app/src/styles/media.css +++ b/packages/react-components/src/styles/media.css @@ -1,4 +1,4 @@ -/* Copyright 2017-2019 @polkadot/ui-app authors & contributors +/* Copyright 2017-2019 @polkadot/react-components authors & contributors /* This software may be modified and distributed under the terms /* of the Apache-2.0 license. See the LICENSE file for details. */ diff --git a/packages/ui-app/src/styles/partials/_variables.css b/packages/react-components/src/styles/partials/_variables.css similarity index 68% rename from packages/ui-app/src/styles/partials/_variables.css rename to packages/react-components/src/styles/partials/_variables.css index a31f7227b1..18cfc94a5d 100644 --- a/packages/ui-app/src/styles/partials/_variables.css +++ b/packages/react-components/src/styles/partials/_variables.css @@ -1,4 +1,4 @@ -/* Copyright 2017-2019 @polkadot/ui-app authors & contributors +/* Copyright 2017-2019 @polkadot/react-components authors & contributors /* This software may be modified and distributed under the terms /* of the Apache-2.0 license. See the LICENSE file for details. */ diff --git a/packages/ui-app/src/styles/rx.css b/packages/react-components/src/styles/rx.css similarity index 74% rename from packages/ui-app/src/styles/rx.css rename to packages/react-components/src/styles/rx.css index cf720d1825..da73f032f5 100644 --- a/packages/ui-app/src/styles/rx.css +++ b/packages/react-components/src/styles/rx.css @@ -1,4 +1,4 @@ -/* Copyright 2017-2019 @polkadot/ui-app authors & contributors +/* Copyright 2017-2019 @polkadot/react-components authors & contributors /* This software may be modified and distributed under the terms /* of the Apache-2.0 license. See the LICENSE file for details. */ diff --git a/packages/ui-app/src/styles/semantic.css b/packages/react-components/src/styles/semantic.css similarity index 97% rename from packages/ui-app/src/styles/semantic.css rename to packages/react-components/src/styles/semantic.css index 1cfb8aea7a..ffbed10fab 100644 --- a/packages/ui-app/src/styles/semantic.css +++ b/packages/react-components/src/styles/semantic.css @@ -1,4 +1,4 @@ -/* Copyright 2017-2019 @polkadot/ui-app authors & contributors +/* Copyright 2017-2019 @polkadot/react-components authors & contributors /* This software may be modified and distributed under the terms /* of the Apache-2.0 license. See the LICENSE file for details. */ diff --git a/packages/ui-app/src/styles/theme.ts b/packages/react-components/src/styles/theme.ts similarity index 85% rename from packages/ui-app/src/styles/theme.ts rename to packages/react-components/src/styles/theme.ts index dbfab8a988..1f8d744e6e 100644 --- a/packages/ui-app/src/styles/theme.ts +++ b/packages/react-components/src/styles/theme.ts @@ -1,4 +1,4 @@ -/* Copyright 2017-2019 @polkadot/ui-app authors & contributors +/* Copyright 2017-2019 @polkadot/react-components authors & contributors /* This software may be modified and distributed under the terms /* of the Apache-2.0 license. See the LICENSE file for details. */ diff --git a/packages/ui-app/src/styles/theme/_colors-polkadot.css b/packages/react-components/src/styles/theme/_colors-polkadot.css similarity index 93% rename from packages/ui-app/src/styles/theme/_colors-polkadot.css rename to packages/react-components/src/styles/theme/_colors-polkadot.css index fed9b9ea66..869d28add2 100644 --- a/packages/ui-app/src/styles/theme/_colors-polkadot.css +++ b/packages/react-components/src/styles/theme/_colors-polkadot.css @@ -1,4 +1,4 @@ -/* Copyright 2017-2019 @polkadot/ui-app authors & contributors +/* Copyright 2017-2019 @polkadot/react-components authors & contributors /* This software may be modified and distributed under the terms /* of the Apache-2.0 license. See the LICENSE file for details. */ diff --git a/packages/ui-app/src/styles/theme/_colors-substrate.css b/packages/react-components/src/styles/theme/_colors-substrate.css similarity index 64% rename from packages/ui-app/src/styles/theme/_colors-substrate.css rename to packages/react-components/src/styles/theme/_colors-substrate.css index 623e73e4a7..f17af15ebd 100644 --- a/packages/ui-app/src/styles/theme/_colors-substrate.css +++ b/packages/react-components/src/styles/theme/_colors-substrate.css @@ -1,3 +1,3 @@ -/* Copyright 2017-2019 @polkadot/ui-app authors & contributors +/* Copyright 2017-2019 @polkadot/react-components authors & contributors /* This software may be modified and distributed under the terms /* of the Apache-2.0 license. See the LICENSE file for details. */ diff --git a/packages/ui-app/src/styles/theme/polkadot.css b/packages/react-components/src/styles/theme/polkadot.css similarity index 97% rename from packages/ui-app/src/styles/theme/polkadot.css rename to packages/react-components/src/styles/theme/polkadot.css index 69050fb1f7..c00e62a303 100644 --- a/packages/ui-app/src/styles/theme/polkadot.css +++ b/packages/react-components/src/styles/theme/polkadot.css @@ -1,4 +1,4 @@ -/* Copyright 2017-2019 @polkadot/ui-app authors & contributors +/* Copyright 2017-2019 @polkadot/react-components authors & contributors /* This software may be modified and distributed under the terms /* of the Apache-2.0 license. See the LICENSE file for details. */ diff --git a/packages/ui-app/src/styles/theme/substrate.css b/packages/react-components/src/styles/theme/substrate.css similarity index 72% rename from packages/ui-app/src/styles/theme/substrate.css rename to packages/react-components/src/styles/theme/substrate.css index ef6b193097..29c9fd7cf2 100644 --- a/packages/ui-app/src/styles/theme/substrate.css +++ b/packages/react-components/src/styles/theme/substrate.css @@ -1,4 +1,4 @@ -/* Copyright 2017-2019 @polkadot/ui-app authors & contributors +/* Copyright 2017-2019 @polkadot/react-components authors & contributors /* This software may be modified and distributed under the terms /* of the Apache-2.0 license. See the LICENSE file for details. */ diff --git a/packages/ui-app/src/translate.ts b/packages/react-components/src/translate.ts similarity index 75% rename from packages/ui-app/src/translate.ts rename to packages/react-components/src/translate.ts index 276c636735..a68912aa69 100644 --- a/packages/ui-app/src/translate.ts +++ b/packages/react-components/src/translate.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/types.ts b/packages/react-components/src/types.ts similarity index 83% rename from packages/ui-app/src/types.ts rename to packages/react-components/src/types.ts index bfbc559658..b21bea119e 100644 --- a/packages/ui-app/src/types.ts +++ b/packages/react-components/src/types.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. @@ -6,7 +6,7 @@ // this is used for Account creation link to popup the account creation modal import { LocationDescriptorObject } from 'history'; import { WithTranslation } from 'react-i18next'; -import { ActionStatus } from '@polkadot/ui-app/Status/types'; +import { ActionStatus } from '@polkadot/react-components/Status/types'; export interface BareProps { className?: string; diff --git a/packages/ui-app/src/util/classes.ts b/packages/react-components/src/util/classes.ts similarity index 81% rename from packages/ui-app/src/util/classes.ts rename to packages/react-components/src/util/classes.ts index 61a25b0ffc..1c26b44671 100644 --- a/packages/ui-app/src/util/classes.ts +++ b/packages/react-components/src/util/classes.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/util/getAddressMeta.ts b/packages/react-components/src/util/getAddressMeta.ts similarity index 89% rename from packages/ui-app/src/util/getAddressMeta.ts rename to packages/react-components/src/util/getAddressMeta.ts index 50f1300d8e..f93ffb04cd 100644 --- a/packages/ui-app/src/util/getAddressMeta.ts +++ b/packages/react-components/src/util/getAddressMeta.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/util/getAddressName.ts b/packages/react-components/src/util/getAddressName.ts similarity index 89% rename from packages/ui-app/src/util/getAddressName.ts rename to packages/react-components/src/util/getAddressName.ts index c796b8244b..29447a2e3b 100644 --- a/packages/ui-app/src/util/getAddressName.ts +++ b/packages/react-components/src/util/getAddressName.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/util/getAddressTags.ts b/packages/react-components/src/util/getAddressTags.ts similarity index 84% rename from packages/ui-app/src/util/getAddressTags.ts rename to packages/react-components/src/util/getAddressTags.ts index a9b7dcbd61..ef5817f407 100644 --- a/packages/ui-app/src/util/getAddressTags.ts +++ b/packages/react-components/src/util/getAddressTags.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/util/getContractAbi.ts b/packages/react-components/src/util/getContractAbi.ts similarity index 87% rename from packages/ui-app/src/util/getContractAbi.ts rename to packages/react-components/src/util/getContractAbi.ts index bbf8e8f9aa..9e102a1082 100644 --- a/packages/ui-app/src/util/getContractAbi.ts +++ b/packages/react-components/src/util/getContractAbi.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/util/index.ts b/packages/react-components/src/util/index.ts similarity index 89% rename from packages/ui-app/src/util/index.ts rename to packages/react-components/src/util/index.ts index e88d6a33b7..1940ed8f81 100644 --- a/packages/ui-app/src/util/index.ts +++ b/packages/react-components/src/util/index.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/util/isTreasuryProposalVote.ts b/packages/react-components/src/util/isTreasuryProposalVote.ts similarity index 88% rename from packages/ui-app/src/util/isTreasuryProposalVote.ts rename to packages/react-components/src/util/isTreasuryProposalVote.ts index 7dc93a46c6..5013281647 100644 --- a/packages/ui-app/src/util/isTreasuryProposalVote.ts +++ b/packages/react-components/src/util/isTreasuryProposalVote.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/util/toAddress.ts b/packages/react-components/src/util/toAddress.ts similarity index 89% rename from packages/ui-app/src/util/toAddress.ts rename to packages/react-components/src/util/toAddress.ts index e9d6de94cc..bfaf50fc8d 100644 --- a/packages/ui-app/src/util/toAddress.ts +++ b/packages/react-components/src/util/toAddress.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/util/toShortAddress.ts b/packages/react-components/src/util/toShortAddress.ts similarity index 86% rename from packages/ui-app/src/util/toShortAddress.ts rename to packages/react-components/src/util/toShortAddress.ts index 2a434fa965..a54c2b72ca 100644 --- a/packages/ui-app/src/util/toShortAddress.ts +++ b/packages/react-components/src/util/toShortAddress.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-app/src/util/types.ts b/packages/react-components/src/util/types.ts similarity index 80% rename from packages/ui-app/src/util/types.ts rename to packages/react-components/src/util/types.ts index 7dbcb4fa71..b45d2e83d5 100644 --- a/packages/ui-app/src/util/types.ts +++ b/packages/react-components/src/util/types.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-params/LICENSE b/packages/react-params/LICENSE similarity index 100% rename from packages/ui-params/LICENSE rename to packages/react-params/LICENSE diff --git a/packages/ui-app/README.md b/packages/react-params/README.md similarity index 92% rename from packages/ui-app/README.md rename to packages/react-params/README.md index 3422719770..89400eb684 100644 --- a/packages/ui-app/README.md +++ b/packages/react-params/README.md @@ -1,4 +1,4 @@ -# @polkadot/ui-app +# @polkadot/react-params WARNING: This is an internal package to [polkadot-js/apps](https://github.com/polkadot-js/apps) so is not inteded (yet) for broad use. diff --git a/packages/ui-signer/package.json b/packages/react-params/package.json similarity index 78% rename from packages/ui-signer/package.json rename to packages/react-params/package.json index 9272900251..008428975e 100644 --- a/packages/ui-signer/package.json +++ b/packages/react-params/package.json @@ -1,5 +1,5 @@ { - "name": "@polkadot/ui-signer", + "name": "@polkadot/react-params", "version": "0.34.0-beta.119", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.5.5", - "@polkadot/ui-app": "^0.34.0-beta.119" + "@polkadot/react-components": "^0.34.0-beta.119" } } diff --git a/packages/ui-params/src/Param/Account.tsx b/packages/react-params/src/Param/Account.tsx similarity index 90% rename from packages/ui-params/src/Param/Account.tsx rename to packages/react-params/src/Param/Account.tsx index 002e622626..6920397e45 100644 --- a/packages/ui-params/src/Param/Account.tsx +++ b/packages/react-params/src/Param/Account.tsx @@ -1,11 +1,11 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { Props } from '../types'; import React from 'react'; -import { InputAddress } from '@polkadot/ui-app'; +import { InputAddress } from '@polkadot/react-components'; import keyring from '@polkadot/ui-keyring'; import Bare from './Bare'; diff --git a/packages/ui-params/src/Param/Amount.tsx b/packages/react-params/src/Param/Amount.tsx similarity index 92% rename from packages/ui-params/src/Param/Amount.tsx rename to packages/react-params/src/Param/Amount.tsx index 51f1225a5c..693762494b 100644 --- a/packages/ui-params/src/Param/Amount.tsx +++ b/packages/react-params/src/Param/Amount.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. @@ -7,7 +7,7 @@ import { Props } from '../types'; import BN from 'bn.js'; import React from 'react'; import { ClassOf } from '@polkadot/types'; -import { Input } from '@polkadot/ui-app'; +import { Input } from '@polkadot/react-components'; import { bnToBn, formatNumber } from '@polkadot/util'; import Bare from './Bare'; diff --git a/packages/ui-params/src/Param/Balance.tsx b/packages/react-params/src/Param/Balance.tsx similarity index 90% rename from packages/ui-params/src/Param/Balance.tsx rename to packages/react-params/src/Param/Balance.tsx index ebdd54c0c2..29160e61fb 100644 --- a/packages/ui-params/src/Param/Balance.tsx +++ b/packages/react-params/src/Param/Balance.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. @@ -6,7 +6,7 @@ import { Props as BareProps } from '../types'; import BN from 'bn.js'; import React from 'react'; -import { InputBalance } from '@polkadot/ui-app'; +import { InputBalance } from '@polkadot/react-components'; import Bare from './Bare'; diff --git a/packages/ui-params/src/Param/Bare.tsx b/packages/react-params/src/Param/Bare.tsx similarity index 73% rename from packages/ui-params/src/Param/Bare.tsx rename to packages/react-params/src/Param/Bare.tsx index caef22b684..d360597d6f 100644 --- a/packages/ui-params/src/Param/Bare.tsx +++ b/packages/react-params/src/Param/Bare.tsx @@ -1,11 +1,11 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps } from '@polkadot/ui-app/types'; +import { BareProps } from '@polkadot/react-components/types'; import React from 'react'; -import { classes } from '@polkadot/ui-app/util'; +import { classes } from '@polkadot/react-components/util'; interface Props extends BareProps { children: React.ReactNode; diff --git a/packages/ui-params/src/Param/Base.tsx b/packages/react-params/src/Param/Base.tsx similarity index 82% rename from packages/ui-params/src/Param/Base.tsx rename to packages/react-params/src/Param/Base.tsx index a02ee68030..ae354ca5e0 100644 --- a/packages/ui-params/src/Param/Base.tsx +++ b/packages/react-params/src/Param/Base.tsx @@ -1,12 +1,12 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps } from '@polkadot/ui-app/types'; +import { BareProps } from '@polkadot/react-components/types'; import { Size } from '../types'; import React from 'react'; -import { Labelled } from '@polkadot/ui-app'; +import { Labelled } from '@polkadot/react-components'; import Bare from './Bare'; diff --git a/packages/ui-params/src/Param/BaseBytes.tsx b/packages/react-params/src/Param/BaseBytes.tsx similarity index 94% rename from packages/ui-params/src/Param/BaseBytes.tsx rename to packages/react-params/src/Param/BaseBytes.tsx index 73adea9b63..edfb9c982a 100644 --- a/packages/ui-params/src/Param/BaseBytes.tsx +++ b/packages/react-params/src/Param/BaseBytes.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. @@ -6,7 +6,7 @@ import { Props as BaseProps, Size } from '../types'; import React from 'react'; import { Compact } from '@polkadot/types'; -import { Input } from '@polkadot/ui-app'; +import { Input } from '@polkadot/react-components'; import { hexToU8a, isHex, u8aToHex } from '@polkadot/util'; import Bare from './Bare'; diff --git a/packages/ui-params/src/Param/Bool.tsx b/packages/react-params/src/Param/Bool.tsx similarity index 90% rename from packages/ui-params/src/Param/Bool.tsx rename to packages/react-params/src/Param/Bool.tsx index 1862225b64..177bba1db9 100644 --- a/packages/ui-params/src/Param/Bool.tsx +++ b/packages/react-params/src/Param/Bool.tsx @@ -1,11 +1,11 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { Props } from '../types'; import React from 'react'; -import { Dropdown } from '@polkadot/ui-app'; +import { Dropdown } from '@polkadot/react-components'; import Bare from './Bare'; diff --git a/packages/ui-params/src/Param/Bytes.tsx b/packages/react-params/src/Param/Bytes.tsx similarity index 94% rename from packages/ui-params/src/Param/Bytes.tsx rename to packages/react-params/src/Param/Bytes.tsx index b8abcfa59c..3ff987451d 100644 --- a/packages/ui-params/src/Param/Bytes.tsx +++ b/packages/react-params/src/Param/Bytes.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. @@ -6,7 +6,7 @@ import { Props } from '../types'; import React from 'react'; import { Compact } from '@polkadot/types'; -import { Button } from '@polkadot/ui-app'; +import { Button } from '@polkadot/react-components'; import BaseBytes from './BaseBytes'; import File from './File'; diff --git a/packages/ui-params/src/Param/Code.tsx b/packages/react-params/src/Param/Code.tsx similarity index 95% rename from packages/ui-params/src/Param/Code.tsx rename to packages/react-params/src/Param/Code.tsx index c0065eb4a6..bfef84ebbe 100644 --- a/packages/ui-params/src/Param/Code.tsx +++ b/packages/react-params/src/Param/Code.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-params/src/Param/Data.tsx b/packages/react-params/src/Param/Data.tsx similarity index 89% rename from packages/ui-params/src/Param/Data.tsx rename to packages/react-params/src/Param/Data.tsx index 38de5ad709..e7f32decd6 100644 --- a/packages/ui-params/src/Param/Data.tsx +++ b/packages/react-params/src/Param/Data.tsx @@ -1,11 +1,11 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { Props } from '../types'; import React from 'react'; -import { Input } from '@polkadot/ui-app'; +import { Input } from '@polkadot/react-components'; import Bare from './Bare'; diff --git a/packages/ui-params/src/Param/Enum.tsx b/packages/react-params/src/Param/Enum.tsx similarity index 95% rename from packages/ui-params/src/Param/Enum.tsx rename to packages/react-params/src/Param/Enum.tsx index 975b6cc6e2..69ec289729 100644 --- a/packages/ui-params/src/Param/Enum.tsx +++ b/packages/react-params/src/Param/Enum.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. @@ -7,7 +7,7 @@ import { Props as BaseProps, RawParam } from '../types'; import React from 'react'; import { Enum, createType, getTypeDef } from '@polkadot/types'; -import { Dropdown } from '@polkadot/ui-app'; +import { Dropdown } from '@polkadot/react-components'; import Params from '../'; import Bare from './Bare'; diff --git a/packages/ui-params/src/Param/File.tsx b/packages/react-params/src/Param/File.tsx similarity index 83% rename from packages/ui-params/src/Param/File.tsx rename to packages/react-params/src/Param/File.tsx index ef21748873..c1c3804856 100644 --- a/packages/ui-params/src/Param/File.tsx +++ b/packages/react-params/src/Param/File.tsx @@ -1,11 +1,11 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps } from '@polkadot/ui-app/types'; +import { BareProps } from '@polkadot/react-components/types'; import React from 'react'; -import { InputFile } from '@polkadot/ui-app'; +import { InputFile } from '@polkadot/react-components'; import Bare from './Bare'; diff --git a/packages/ui-params/src/Param/Hash.tsx b/packages/react-params/src/Param/Hash.tsx similarity index 92% rename from packages/ui-params/src/Param/Hash.tsx rename to packages/react-params/src/Param/Hash.tsx index fe1e01aa62..003f96d1da 100644 --- a/packages/ui-params/src/Param/Hash.tsx +++ b/packages/react-params/src/Param/Hash.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-params/src/Param/KeyValue.tsx b/packages/react-params/src/Param/KeyValue.tsx similarity index 95% rename from packages/ui-params/src/Param/KeyValue.tsx rename to packages/react-params/src/Param/KeyValue.tsx index eabcb264e7..c001b2c6a0 100644 --- a/packages/ui-params/src/Param/KeyValue.tsx +++ b/packages/react-params/src/Param/KeyValue.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. @@ -6,7 +6,7 @@ import { Props } from '../types'; import React from 'react'; import { Compact } from '@polkadot/types'; -import { Input } from '@polkadot/ui-app'; +import { Input } from '@polkadot/react-components'; import { hexToU8a, u8aConcat } from '@polkadot/util'; import Bare from './Bare'; diff --git a/packages/ui-params/src/Param/KeyValueArray.tsx b/packages/react-params/src/Param/KeyValueArray.tsx similarity index 96% rename from packages/ui-params/src/Param/KeyValueArray.tsx rename to packages/react-params/src/Param/KeyValueArray.tsx index f984301278..e9db8f2c81 100644 --- a/packages/ui-params/src/Param/KeyValueArray.tsx +++ b/packages/react-params/src/Param/KeyValueArray.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. @@ -8,7 +8,7 @@ import { Props as BaseProps, RawParam } from '../types'; import React from 'react'; import { WithTranslation } from 'react-i18next'; import { Vec } from '@polkadot/types'; -import translate from '@polkadot/ui-app/translate'; +import translate from '@polkadot/react-components/translate'; import { assert, isHex, u8aToHex, u8aToString } from '@polkadot/util'; import Base from './Base'; diff --git a/packages/ui-params/src/Param/Moment.tsx b/packages/react-params/src/Param/Moment.tsx similarity index 92% rename from packages/ui-params/src/Param/Moment.tsx rename to packages/react-params/src/Param/Moment.tsx index 0279815905..548c90e054 100644 --- a/packages/ui-params/src/Param/Moment.tsx +++ b/packages/react-params/src/Param/Moment.tsx @@ -1,11 +1,11 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { Props, RawParamOnChangeValue } from '../types'; import React from 'react'; -import { Static } from '@polkadot/ui-app'; +import { Static } from '@polkadot/react-components'; import Amount from './Amount'; diff --git a/packages/ui-params/src/Param/Null.tsx b/packages/react-params/src/Param/Null.tsx similarity index 86% rename from packages/ui-params/src/Param/Null.tsx rename to packages/react-params/src/Param/Null.tsx index a3d6162bbd..e5f704945c 100644 --- a/packages/ui-params/src/Param/Null.tsx +++ b/packages/react-params/src/Param/Null.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-params/src/Param/Proposal.tsx b/packages/react-params/src/Param/Proposal.tsx similarity index 84% rename from packages/ui-params/src/Param/Proposal.tsx rename to packages/react-params/src/Param/Proposal.tsx index 661e4814d3..9cf894cda8 100644 --- a/packages/ui-params/src/Param/Proposal.tsx +++ b/packages/react-params/src/Param/Proposal.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. @@ -7,8 +7,8 @@ import { Props } from '../types'; import React from 'react'; import { GenericCall } from '@polkadot/types'; -import { Call, Static } from '@polkadot/ui-app'; -import { classes } from '@polkadot/ui-app/util'; +import { Call, Static } from '@polkadot/react-components'; +import { classes } from '@polkadot/react-components/util'; import Bare from './Bare'; import Unknown from './Unknown'; diff --git a/packages/ui-params/src/Param/Static.tsx b/packages/react-params/src/Param/Static.tsx similarity index 82% rename from packages/ui-params/src/Param/Static.tsx rename to packages/react-params/src/Param/Static.tsx index 04da43b8c1..72ad84dfc7 100644 --- a/packages/ui-params/src/Param/Static.tsx +++ b/packages/react-params/src/Param/Static.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. @@ -6,8 +6,8 @@ import { WithTranslation } from 'react-i18next'; import { Props as BareProps, RawParam } from '../types'; import React from 'react'; -import { Static } from '@polkadot/ui-app'; -import translate from '@polkadot/ui-app/translate'; +import { Static } from '@polkadot/react-components'; +import translate from '@polkadot/react-components/translate'; import Bare from './Bare'; diff --git a/packages/ui-params/src/Param/Struct.tsx b/packages/react-params/src/Param/Struct.tsx similarity index 96% rename from packages/ui-params/src/Param/Struct.tsx rename to packages/react-params/src/Param/Struct.tsx index 89e2a10a08..6c51ed5d47 100644 --- a/packages/ui-params/src/Param/Struct.tsx +++ b/packages/react-params/src/Param/Struct.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-params/src/Param/Text.tsx b/packages/react-params/src/Param/Text.tsx similarity index 90% rename from packages/ui-params/src/Param/Text.tsx rename to packages/react-params/src/Param/Text.tsx index 24e3060ac8..f7695a11d4 100644 --- a/packages/ui-params/src/Param/Text.tsx +++ b/packages/react-params/src/Param/Text.tsx @@ -1,11 +1,11 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { Props } from '../types'; import React from 'react'; -import { Input } from '@polkadot/ui-app'; +import { Input } from '@polkadot/react-components'; import Bare from './Bare'; diff --git a/packages/ui-params/src/Param/Tuple.tsx b/packages/react-params/src/Param/Tuple.tsx similarity index 97% rename from packages/ui-params/src/Param/Tuple.tsx rename to packages/react-params/src/Param/Tuple.tsx index cfec18933b..e72029cdcc 100644 --- a/packages/ui-params/src/Param/Tuple.tsx +++ b/packages/react-params/src/Param/Tuple.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-params/src/Param/Unknown.tsx b/packages/react-params/src/Param/Unknown.tsx similarity index 93% rename from packages/ui-params/src/Param/Unknown.tsx rename to packages/react-params/src/Param/Unknown.tsx index a6f3231f87..42fa2f0382 100644 --- a/packages/ui-params/src/Param/Unknown.tsx +++ b/packages/react-params/src/Param/Unknown.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-params/src/Param/Vector.tsx b/packages/react-params/src/Param/Vector.tsx similarity index 95% rename from packages/ui-params/src/Param/Vector.tsx rename to packages/react-params/src/Param/Vector.tsx index a617f33b86..f4a7c807a4 100644 --- a/packages/ui-params/src/Param/Vector.tsx +++ b/packages/react-params/src/Param/Vector.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. @@ -7,8 +7,8 @@ import { TypeDef } from '@polkadot/types/types'; import { Props as BareProps, RawParam } from '../types'; import React from 'react'; -import { Button } from '@polkadot/ui-app'; -import translate from '@polkadot/ui-app/translate'; +import { Button } from '@polkadot/react-components'; +import translate from '@polkadot/react-components/translate'; import { isUndefined } from '@polkadot/util'; import getInitValue from '../initValue'; diff --git a/packages/ui-params/src/Param/Vote.tsx b/packages/react-params/src/Param/Vote.tsx similarity index 91% rename from packages/ui-params/src/Param/Vote.tsx rename to packages/react-params/src/Param/Vote.tsx index 3bb89d058d..59336c4f5c 100644 --- a/packages/ui-params/src/Param/Vote.tsx +++ b/packages/react-params/src/Param/Vote.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. @@ -7,7 +7,7 @@ import { Props } from '../types'; import BN from 'bn.js'; import React from 'react'; import { GenericVote } from '@polkadot/types'; -import { Dropdown } from '@polkadot/ui-app'; +import { Dropdown } from '@polkadot/react-components'; import Bare from './Bare'; diff --git a/packages/ui-params/src/Param/VoteThreshold.tsx b/packages/react-params/src/Param/VoteThreshold.tsx similarity index 92% rename from packages/ui-params/src/Param/VoteThreshold.tsx rename to packages/react-params/src/Param/VoteThreshold.tsx index aa8b885418..40a75662d2 100644 --- a/packages/ui-params/src/Param/VoteThreshold.tsx +++ b/packages/react-params/src/Param/VoteThreshold.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. @@ -6,7 +6,7 @@ import { Props } from '../types'; import React from 'react'; import { ClassOf } from '@polkadot/types'; -import { Dropdown } from '@polkadot/ui-app'; +import { Dropdown } from '@polkadot/react-components'; import { bnToBn } from '@polkadot/util'; import Bare from './Bare'; diff --git a/packages/ui-params/src/Param/findComponent.ts b/packages/react-params/src/Param/findComponent.ts similarity index 97% rename from packages/ui-params/src/Param/findComponent.ts rename to packages/react-params/src/Param/findComponent.ts index f670cd5890..e21a47c989 100644 --- a/packages/ui-params/src/Param/findComponent.ts +++ b/packages/react-params/src/Param/findComponent.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-params/src/Param/index.tsx b/packages/react-params/src/Param/index.tsx similarity index 85% rename from packages/ui-params/src/Param/index.tsx rename to packages/react-params/src/Param/index.tsx index 0fcee7a768..e805d58ebb 100644 --- a/packages/ui-params/src/Param/index.tsx +++ b/packages/react-params/src/Param/index.tsx @@ -1,13 +1,13 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { BaseProps, Props as ComponentProps, ComponentMap } from '../types'; import React from 'react'; -import { classes } from '@polkadot/ui-app/util'; -import translate from '@polkadot/ui-app/translate'; +import { classes } from '@polkadot/react-components/util'; +import translate from '@polkadot/react-components/translate'; import { isUndefined } from '@polkadot/util'; import findComponent from './findComponent'; diff --git a/packages/ui-params/src/Params.css b/packages/react-params/src/Params.css similarity index 92% rename from packages/ui-params/src/Params.css rename to packages/react-params/src/Params.css index 26c73df1b6..aa8d2c2436 100644 --- a/packages/ui-params/src/Params.css +++ b/packages/react-params/src/Params.css @@ -1,4 +1,4 @@ -/* Copyright 2017-2019 @polkadot/ui-app authors & contributors +/* Copyright 2017-2019 @polkadot/react-components authors & contributors /* This software may be modified and distributed under the terms /* of the Apache-2.0 license. See the LICENSE file for details. */ diff --git a/packages/ui-params/src/index.tsx b/packages/react-params/src/index.tsx similarity index 94% rename from packages/ui-params/src/index.tsx rename to packages/react-params/src/index.tsx index 04c18af4a0..8664127453 100644 --- a/packages/ui-params/src/index.tsx +++ b/packages/react-params/src/index.tsx @@ -1,16 +1,16 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { TypeDef } from '@polkadot/types/types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { ComponentMap, RawParam, RawParams, RawParamOnChange, RawParamOnChangeValue } from './types'; import './Params.css'; import React from 'react'; -import { classes } from '@polkadot/ui-app/util'; -import translate from '@polkadot/ui-app/translate'; +import { classes } from '@polkadot/react-components/util'; +import translate from '@polkadot/react-components/translate'; import Param from './Param'; import { createValue } from './values'; diff --git a/packages/ui-params/src/initValue.ts b/packages/react-params/src/initValue.ts similarity index 97% rename from packages/ui-params/src/initValue.ts rename to packages/react-params/src/initValue.ts index 58a1c76005..a7508cc91c 100644 --- a/packages/ui-params/src/initValue.ts +++ b/packages/react-params/src/initValue.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-params/src/types.ts b/packages/react-params/src/types.ts similarity index 90% rename from packages/ui-params/src/types.ts rename to packages/react-params/src/types.ts index 8acf9c5b81..08615b4f1c 100644 --- a/packages/ui-params/src/types.ts +++ b/packages/react-params/src/types.ts @@ -1,9 +1,9 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { TypeDef } from '@polkadot/types/types'; -import { BareProps } from '@polkadot/ui-app/types'; +import { BareProps } from '@polkadot/react-components/types'; // FIXME Ideally, we want these as Base from api-codec - as a stop-gap, any this until we have // params returning types extending Base (i.e. anything from api-codec) diff --git a/packages/ui-params/src/valueToText.tsx b/packages/react-params/src/valueToText.tsx similarity index 91% rename from packages/ui-params/src/valueToText.tsx rename to packages/react-params/src/valueToText.tsx index b158669599..0241380e9d 100644 --- a/packages/ui-params/src/valueToText.tsx +++ b/packages/react-params/src/valueToText.tsx @@ -1,11 +1,11 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import './Params.css'; import React from 'react'; -import { classes } from '@polkadot/ui-app/util'; +import { classes } from '@polkadot/react-components/util'; import { isNull, isUndefined, u8aToHex } from '@polkadot/util'; import { Option, U8a } from '@polkadot/types'; diff --git a/packages/ui-params/src/values.ts b/packages/react-params/src/values.ts similarity index 89% rename from packages/ui-params/src/values.ts rename to packages/react-params/src/values.ts index f5aa2e33ed..c316e2189f 100644 --- a/packages/ui-params/src/values.ts +++ b/packages/react-params/src/values.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-app authors & contributors +// Copyright 2017-2019 @polkadot/react-components authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-reactive/LICENSE b/packages/react-query/LICENSE similarity index 100% rename from packages/ui-reactive/LICENSE rename to packages/react-query/LICENSE diff --git a/packages/ui-reactive/README.md b/packages/react-query/README.md similarity index 94% rename from packages/ui-reactive/README.md rename to packages/react-query/README.md index 6d643a0175..ce004d10e7 100644 --- a/packages/ui-reactive/README.md +++ b/packages/react-query/README.md @@ -1,4 +1,4 @@ -# @polkadot/ui-reactive +# @polkadot/react-query WARNING: This is an internal package to [polkadot-js/apps](https://github.com/polkadot-js/apps) so is not inteded (yet) for broad use. Since these are generic components, they will move to the [polkadot-js/ui](https://github.com/polkadot-js/ui) repo once deemed stable and usable. @@ -16,7 +16,7 @@ Basic usage entails creating a `ContextProvider` and just using the components. import React from 'react'; import ReactDOM from 'react-dom'; -import { Api, NodeTime } from '@polkadot/ui-reactive'; +import { Api, NodeTime } from '@polkadot/react-query'; ... ReactDOM.render( diff --git a/packages/ui-reactive/index.html b/packages/react-query/index.html similarity index 100% rename from packages/ui-reactive/index.html rename to packages/react-query/index.html diff --git a/packages/ui-reactive/package.json b/packages/react-query/package.json similarity index 95% rename from packages/ui-reactive/package.json rename to packages/react-query/package.json index 8647e2d14a..a5c82742cf 100644 --- a/packages/ui-reactive/package.json +++ b/packages/react-query/package.json @@ -1,5 +1,5 @@ { - "name": "@polkadot/ui-reactive", + "name": "@polkadot/react-query", "version": "0.34.0-beta.119", "description": "A collection of RxJs React components the Polkadot JS API", "main": "index.js", diff --git a/packages/ui-reactive/src/AccountIndex.tsx b/packages/react-query/src/AccountIndex.tsx similarity index 85% rename from packages/ui-reactive/src/AccountIndex.tsx rename to packages/react-query/src/AccountIndex.tsx index 1fe5336bbe..26e2bfd40e 100644 --- a/packages/ui-reactive/src/AccountIndex.tsx +++ b/packages/react-query/src/AccountIndex.tsx @@ -1,13 +1,13 @@ /* eslint-disable @typescript-eslint/camelcase */ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps, CallProps } from '@polkadot/ui-api/types'; +import { BareProps, CallProps } from '@polkadot/react-api/types'; import { AccountId, AccountIndex } from '@polkadot/types/interfaces'; import React from 'react'; -import { withCalls } from '@polkadot/ui-api'; +import { withCalls } from '@polkadot/react-api'; type Props = BareProps & CallProps & { children?: React.ReactNode; diff --git a/packages/ui-reactive/src/Available.tsx b/packages/react-query/src/Available.tsx similarity index 86% rename from packages/ui-reactive/src/Available.tsx rename to packages/react-query/src/Available.tsx index a3bc703a8b..30e95ff6a1 100644 --- a/packages/ui-reactive/src/Available.tsx +++ b/packages/react-query/src/Available.tsx @@ -1,15 +1,15 @@ /* eslint-disable @typescript-eslint/camelcase */ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps, CallProps } from '@polkadot/ui-api/types'; +import { BareProps, CallProps } from '@polkadot/react-api/types'; import { DerivedBalances } from '@polkadot/api-derive/types'; import { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces'; import React from 'react'; import { formatBalance } from '@polkadot/util'; -import { withCalls } from '@polkadot/ui-api'; +import { withCalls } from '@polkadot/react-api'; type Props = BareProps & CallProps & { balances_all?: DerivedBalances; diff --git a/packages/ui-reactive/src/Balance.tsx b/packages/react-query/src/Balance.tsx similarity index 86% rename from packages/ui-reactive/src/Balance.tsx rename to packages/react-query/src/Balance.tsx index a5b641a634..b5bf64b314 100644 --- a/packages/ui-reactive/src/Balance.tsx +++ b/packages/react-query/src/Balance.tsx @@ -1,15 +1,15 @@ /* eslint-disable @typescript-eslint/camelcase */ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps, CallProps } from '@polkadot/ui-api/types'; +import { BareProps, CallProps } from '@polkadot/react-api/types'; import { DerivedBalances } from '@polkadot/api-derive/types'; import { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces'; import React from 'react'; -import { withCalls } from '@polkadot/ui-api'; +import { withCalls } from '@polkadot/react-api'; import { formatBalance } from '@polkadot/util'; type Props = BareProps & CallProps & { diff --git a/packages/ui-reactive/src/BestFinalized.tsx b/packages/react-query/src/BestFinalized.tsx similarity index 84% rename from packages/ui-reactive/src/BestFinalized.tsx rename to packages/react-query/src/BestFinalized.tsx index 411fa84f1f..ba9d2ea7b2 100644 --- a/packages/ui-reactive/src/BestFinalized.tsx +++ b/packages/react-query/src/BestFinalized.tsx @@ -1,13 +1,13 @@ /* eslint-disable @typescript-eslint/camelcase */ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps, CallProps } from '@polkadot/ui-api/types'; +import { BareProps, CallProps } from '@polkadot/react-api/types'; import { BlockNumber } from '@polkadot/types/interfaces'; import React from 'react'; -import { withCalls } from '@polkadot/ui-api'; +import { withCalls } from '@polkadot/react-api'; import { formatNumber } from '@polkadot/util'; type Props = BareProps & CallProps & { diff --git a/packages/ui-reactive/src/BestNumber.tsx b/packages/react-query/src/BestNumber.tsx similarity index 84% rename from packages/ui-reactive/src/BestNumber.tsx rename to packages/react-query/src/BestNumber.tsx index 937d2ed7a6..8a3d3e3a38 100644 --- a/packages/ui-reactive/src/BestNumber.tsx +++ b/packages/react-query/src/BestNumber.tsx @@ -1,13 +1,13 @@ /* eslint-disable @typescript-eslint/camelcase */ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps, CallProps } from '@polkadot/ui-api/types'; +import { BareProps, CallProps } from '@polkadot/react-api/types'; import { BlockNumber } from '@polkadot/types/interfaces'; import React from 'react'; -import { withCalls } from '@polkadot/ui-api'; +import { withCalls } from '@polkadot/react-api'; import { formatNumber } from '@polkadot/util'; type Props = BareProps & CallProps & { diff --git a/packages/ui-reactive/src/Bonded.tsx b/packages/react-query/src/Bonded.tsx similarity index 87% rename from packages/ui-reactive/src/Bonded.tsx rename to packages/react-query/src/Bonded.tsx index f36191cfb7..6911d0219c 100644 --- a/packages/ui-reactive/src/Bonded.tsx +++ b/packages/react-query/src/Bonded.tsx @@ -1,14 +1,14 @@ /* eslint-disable @typescript-eslint/camelcase */ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps, CallProps } from '@polkadot/ui-api/types'; +import { BareProps, CallProps } from '@polkadot/react-api/types'; import { AccountId, AccountIndex, Address, StakingLedger } from '@polkadot/types/interfaces'; import React from 'react'; -import { withCalls } from '@polkadot/ui-api'; +import { withCalls } from '@polkadot/react-api'; import { formatBalance } from '@polkadot/util'; type Props = BareProps & CallProps & { diff --git a/packages/ui-reactive/src/Chain.tsx b/packages/react-query/src/Chain.tsx similarity index 81% rename from packages/ui-reactive/src/Chain.tsx rename to packages/react-query/src/Chain.tsx index 1f23da5525..8133971026 100644 --- a/packages/ui-reactive/src/Chain.tsx +++ b/packages/react-query/src/Chain.tsx @@ -1,13 +1,13 @@ /* eslint-disable @typescript-eslint/camelcase */ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps, CallProps } from '@polkadot/ui-api/types'; +import { BareProps, CallProps } from '@polkadot/react-api/types'; import React from 'react'; import { Text } from '@polkadot/types'; -import { withCalls } from '@polkadot/ui-api'; +import { withCalls } from '@polkadot/react-api'; type Props = BareProps & CallProps & { children?: React.ReactNode; diff --git a/packages/ui-reactive/src/Elapsed.tsx b/packages/react-query/src/Elapsed.tsx similarity index 94% rename from packages/ui-reactive/src/Elapsed.tsx rename to packages/react-query/src/Elapsed.tsx index ccd7605932..906d4b960e 100644 --- a/packages/ui-reactive/src/Elapsed.tsx +++ b/packages/react-query/src/Elapsed.tsx @@ -1,8 +1,8 @@ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps } from '@polkadot/ui-api/types'; +import { BareProps } from '@polkadot/react-api/types'; import BN from 'bn.js'; import React from 'react'; diff --git a/packages/ui-reactive/src/NodeName.tsx b/packages/react-query/src/NodeName.tsx similarity index 81% rename from packages/ui-reactive/src/NodeName.tsx rename to packages/react-query/src/NodeName.tsx index 812654c1ac..3d940b5d8d 100644 --- a/packages/ui-reactive/src/NodeName.tsx +++ b/packages/react-query/src/NodeName.tsx @@ -1,13 +1,13 @@ /* eslint-disable @typescript-eslint/camelcase */ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps, CallProps } from '@polkadot/ui-api/types'; +import { BareProps, CallProps } from '@polkadot/react-api/types'; import React from 'react'; import { Text } from '@polkadot/types'; -import { withCalls } from '@polkadot/ui-api'; +import { withCalls } from '@polkadot/react-api'; type Props = BareProps & CallProps & { children?: React.ReactNode; diff --git a/packages/ui-reactive/src/NodeVersion.tsx b/packages/react-query/src/NodeVersion.tsx similarity index 81% rename from packages/ui-reactive/src/NodeVersion.tsx rename to packages/react-query/src/NodeVersion.tsx index 6a77138e46..32eedccc4d 100644 --- a/packages/ui-reactive/src/NodeVersion.tsx +++ b/packages/react-query/src/NodeVersion.tsx @@ -1,13 +1,13 @@ /* eslint-disable @typescript-eslint/camelcase */ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps, CallProps } from '@polkadot/ui-api/types'; +import { BareProps, CallProps } from '@polkadot/react-api/types'; import React from 'react'; import { Text } from '@polkadot/types'; -import { withCalls } from '@polkadot/ui-api'; +import { withCalls } from '@polkadot/react-api'; type Props = BareProps & CallProps & { children?: React.ReactNode; diff --git a/packages/ui-reactive/src/Nonce.tsx b/packages/react-query/src/Nonce.tsx similarity index 85% rename from packages/ui-reactive/src/Nonce.tsx rename to packages/react-query/src/Nonce.tsx index 6ab5a7961c..6f0649d7e5 100644 --- a/packages/ui-reactive/src/Nonce.tsx +++ b/packages/react-query/src/Nonce.tsx @@ -1,14 +1,14 @@ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { DerivedBalances } from '@polkadot/api-derive/types'; -import { BareProps, CallProps } from '@polkadot/ui-api/types'; +import { BareProps, CallProps } from '@polkadot/react-api/types'; import BN from 'bn.js'; import React from 'react'; import { formatNumber } from '@polkadot/util'; -import { withCalls } from '@polkadot/ui-api'; +import { withCalls } from '@polkadot/react-api'; type Props = BareProps & CallProps & { accountNonce?: BN; diff --git a/packages/ui-reactive/src/TimeNow.tsx b/packages/react-query/src/TimeNow.tsx similarity index 84% rename from packages/ui-reactive/src/TimeNow.tsx rename to packages/react-query/src/TimeNow.tsx index 93893515d5..bbd2dd524a 100644 --- a/packages/ui-reactive/src/TimeNow.tsx +++ b/packages/react-query/src/TimeNow.tsx @@ -1,13 +1,13 @@ /* eslint-disable @typescript-eslint/camelcase */ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { Moment } from '@polkadot/types/interfaces'; -import { BareProps, CallProps } from '@polkadot/ui-api/types'; +import { BareProps, CallProps } from '@polkadot/react-api/types'; import React from 'react'; -import { withCalls } from '@polkadot/ui-api'; +import { withCalls } from '@polkadot/react-api'; import Elapsed from './Elapsed'; diff --git a/packages/ui-reactive/src/TimePeriod.tsx b/packages/react-query/src/TimePeriod.tsx similarity index 90% rename from packages/ui-reactive/src/TimePeriod.tsx rename to packages/react-query/src/TimePeriod.tsx index a203d4a1f4..688eb97c41 100644 --- a/packages/ui-reactive/src/TimePeriod.tsx +++ b/packages/react-query/src/TimePeriod.tsx @@ -1,13 +1,13 @@ /* eslint-disable @typescript-eslint/camelcase */ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { Moment } from '@polkadot/types/interfaces'; -import { BareProps, CallProps } from '@polkadot/ui-api/types'; +import { BareProps, CallProps } from '@polkadot/react-api/types'; import React from 'react'; -import { withCalls } from '@polkadot/ui-api'; +import { withCalls } from '@polkadot/react-api'; import { formatNumber } from '@polkadot/util'; type Props = BareProps & CallProps & { diff --git a/packages/ui-reactive/src/TotalIssuance.tsx b/packages/react-query/src/TotalIssuance.tsx similarity index 85% rename from packages/ui-reactive/src/TotalIssuance.tsx rename to packages/react-query/src/TotalIssuance.tsx index c02a88e7bc..d0de2d0dcb 100644 --- a/packages/ui-reactive/src/TotalIssuance.tsx +++ b/packages/react-query/src/TotalIssuance.tsx @@ -1,13 +1,13 @@ /* eslint-disable @typescript-eslint/camelcase */ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps, CallProps } from '@polkadot/ui-api/types'; +import { BareProps, CallProps } from '@polkadot/react-api/types'; import { Balance } from '@polkadot/types/interfaces'; import React from 'react'; -import { withCalls } from '@polkadot/ui-api'; +import { withCalls } from '@polkadot/react-api'; import { formatBalance } from '@polkadot/util'; type Props = BareProps & CallProps & { diff --git a/packages/ui-reactive/src/index.ts b/packages/react-query/src/index.ts similarity index 93% rename from packages/ui-reactive/src/index.ts rename to packages/react-query/src/index.ts index 31dac46e8d..35b41a8318 100644 --- a/packages/ui-reactive/src/index.ts +++ b/packages/react-query/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-reactive/webpack.config.js b/packages/react-query/webpack.config.js similarity index 91% rename from packages/ui-reactive/webpack.config.js rename to packages/react-query/webpack.config.js index 95ffef034a..96bbd8abc2 100644 --- a/packages/ui-reactive/webpack.config.js +++ b/packages/react-query/webpack.config.js @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors +// Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-signer/LICENSE b/packages/react-signer/LICENSE similarity index 100% rename from packages/ui-signer/LICENSE rename to packages/react-signer/LICENSE diff --git a/packages/ui-params/README.md b/packages/react-signer/README.md similarity index 92% rename from packages/ui-params/README.md rename to packages/react-signer/README.md index 0360403261..7d38b57984 100644 --- a/packages/ui-params/README.md +++ b/packages/react-signer/README.md @@ -1,4 +1,4 @@ -# @polkadot/ui-params +# @polkadot/react-signer WARNING: This is an internal package to [polkadot-js/apps](https://github.com/polkadot-js/apps) so is not inteded (yet) for broad use. diff --git a/packages/ui-params/package.json b/packages/react-signer/package.json similarity index 78% rename from packages/ui-params/package.json rename to packages/react-signer/package.json index c7b5e3f907..6080062fc6 100644 --- a/packages/ui-params/package.json +++ b/packages/react-signer/package.json @@ -1,5 +1,5 @@ { - "name": "@polkadot/ui-params", + "name": "@polkadot/react-signer", "version": "0.34.0-beta.119", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.5.5", - "@polkadot/ui-app": "^0.34.0-beta.119" + "@polkadot/react-components": "^0.34.0-beta.119" } } diff --git a/packages/ui-signer/src/ApiSigner.ts b/packages/react-signer/src/ApiSigner.ts similarity index 92% rename from packages/ui-signer/src/ApiSigner.ts rename to packages/react-signer/src/ApiSigner.ts index 08430ad319..4ee36e35cc 100644 --- a/packages/ui-signer/src/ApiSigner.ts +++ b/packages/react-signer/src/ApiSigner.ts @@ -1,10 +1,10 @@ -// Copyright 2017-2019 @polkadot/ui-signer authors & contributors +// Copyright 2017-2019 @polkadot/react-signer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { Signer, SignerPayload, SignerResult } from '@polkadot/api/types'; import { SubmittableResult } from '@polkadot/api'; -import { QueueTxPayloadAdd, QueueTxMessageSetStatus, QueueTxStatus } from '@polkadot/ui-app/Status/types'; +import { QueueTxPayloadAdd, QueueTxMessageSetStatus, QueueTxStatus } from '@polkadot/react-components/Status/types'; import { Hash } from '@polkadot/types/interfaces'; import { ClassOf } from '@polkadot/types'; diff --git a/packages/ui-signer/src/Checks/ContractCall.tsx b/packages/react-signer/src/Checks/ContractCall.tsx similarity index 94% rename from packages/ui-signer/src/Checks/ContractCall.tsx rename to packages/react-signer/src/Checks/ContractCall.tsx index 12aa7fa53d..0df0e45e6f 100644 --- a/packages/ui-signer/src/Checks/ContractCall.tsx +++ b/packages/react-signer/src/Checks/ContractCall.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-signer authors & contributors +// Copyright 2017-2019 @polkadot/react-signer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-signer/src/Checks/ContractDeploy.tsx b/packages/react-signer/src/Checks/ContractDeploy.tsx similarity index 94% rename from packages/ui-signer/src/Checks/ContractDeploy.tsx rename to packages/react-signer/src/Checks/ContractDeploy.tsx index 087366d702..faf1ac6656 100644 --- a/packages/ui-signer/src/Checks/ContractDeploy.tsx +++ b/packages/react-signer/src/Checks/ContractDeploy.tsx @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-signer authors & contributors +// Copyright 2017-2019 @polkadot/react-signer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-signer/src/Checks/Proposal.tsx b/packages/react-signer/src/Checks/Proposal.tsx similarity index 90% rename from packages/ui-signer/src/Checks/Proposal.tsx rename to packages/react-signer/src/Checks/Proposal.tsx index b6b9bbb164..5703da7a36 100644 --- a/packages/ui-signer/src/Checks/Proposal.tsx +++ b/packages/react-signer/src/Checks/Proposal.tsx @@ -1,17 +1,17 @@ /* eslint-disable @typescript-eslint/camelcase */ -// Copyright 2017-2019 @polkadot/ui-signer authors & contributors +// Copyright 2017-2019 @polkadot/react-signer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { DerivedFees } from '@polkadot/api-derive/types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { ExtraFees } from './types'; import BN from 'bn.js'; import React from 'react'; import { Compact, UInt } from '@polkadot/types'; -import { withCalls, withMulti } from '@polkadot/ui-api'; -import { Icon } from '@polkadot/ui-app'; +import { withCalls, withMulti } from '@polkadot/react-api'; +import { Icon } from '@polkadot/react-components'; import { formatBalance } from '@polkadot/util'; import translate from '../translate'; diff --git a/packages/ui-signer/src/Checks/Transfer.tsx b/packages/react-signer/src/Checks/Transfer.tsx similarity index 92% rename from packages/ui-signer/src/Checks/Transfer.tsx rename to packages/react-signer/src/Checks/Transfer.tsx index 6350761d31..9879cf5e2e 100644 --- a/packages/ui-signer/src/Checks/Transfer.tsx +++ b/packages/react-signer/src/Checks/Transfer.tsx @@ -1,17 +1,17 @@ /* eslint-disable @typescript-eslint/camelcase */ -// Copyright 2017-2019 @polkadot/ui-signer authors & contributors +// Copyright 2017-2019 @polkadot/react-signer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { DerivedBalances, DerivedFees } from '@polkadot/api-derive/types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { ExtraFees } from './types'; import BN from 'bn.js'; import React from 'react'; import { Compact, UInt } from '@polkadot/types'; -import { withCalls, withMulti } from '@polkadot/ui-api'; -import { Icon } from '@polkadot/ui-app'; +import { withCalls, withMulti } from '@polkadot/react-api'; +import { Icon } from '@polkadot/react-components'; import { formatBalance } from '@polkadot/util'; import translate from '../translate'; diff --git a/packages/ui-signer/src/Checks/constants.ts b/packages/react-signer/src/Checks/constants.ts similarity index 95% rename from packages/ui-signer/src/Checks/constants.ts rename to packages/react-signer/src/Checks/constants.ts index a3cbeb947a..ff40866443 100644 --- a/packages/ui-signer/src/Checks/constants.ts +++ b/packages/react-signer/src/Checks/constants.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-signer authors & contributors +// Copyright 2017-2019 @polkadot/react-signer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-signer/src/Checks/index.tsx b/packages/react-signer/src/Checks/index.tsx similarity index 96% rename from packages/ui-signer/src/Checks/index.tsx rename to packages/react-signer/src/Checks/index.tsx index 58e05f77c4..3633caebd8 100644 --- a/packages/ui-signer/src/Checks/index.tsx +++ b/packages/react-signer/src/Checks/index.tsx @@ -1,10 +1,10 @@ /* eslint-disable @typescript-eslint/camelcase */ -// Copyright 2017-2019 @polkadot/ui-signer authors & contributors +// Copyright 2017-2019 @polkadot/react-signer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { ApiProps } from '@polkadot/ui-api/types'; -import { I18nProps } from '@polkadot/ui-app/types'; +import { ApiProps } from '@polkadot/react-api/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { DerivedFees, DerivedBalances, DerivedContractFees } from '@polkadot/api-derive/types'; import { IExtrinsic } from '@polkadot/types/types'; import { ExtraFees } from './types'; @@ -12,8 +12,8 @@ import { ExtraFees } from './types'; import BN from 'bn.js'; import React from 'react'; import { Compact, UInt } from '@polkadot/types'; -import { withCalls } from '@polkadot/ui-api'; -import { Icon } from '@polkadot/ui-app'; +import { withCalls } from '@polkadot/react-api'; +import { Icon } from '@polkadot/react-components'; import { compactToU8a, formatBalance } from '@polkadot/util'; import translate from '../translate'; diff --git a/packages/ui-signer/src/Checks/types.ts b/packages/react-signer/src/Checks/types.ts similarity index 77% rename from packages/ui-signer/src/Checks/types.ts rename to packages/react-signer/src/Checks/types.ts index 44b9841bb7..d1442eac3c 100644 --- a/packages/ui-signer/src/Checks/types.ts +++ b/packages/react-signer/src/Checks/types.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-signer authors & contributors +// Copyright 2017-2019 @polkadot/react-signer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-signer/src/Modal.tsx b/packages/react-signer/src/Modal.tsx similarity index 96% rename from packages/ui-signer/src/Modal.tsx rename to packages/react-signer/src/Modal.tsx index 07298c06b2..3eec9a147d 100644 --- a/packages/ui-signer/src/Modal.tsx +++ b/packages/react-signer/src/Modal.tsx @@ -1,23 +1,23 @@ -// Copyright 2017-2019 @polkadot/ui-signer authors & contributors +// Copyright 2017-2019 @polkadot/react-signer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { SubmittableResult } from '@polkadot/api/SubmittableExtrinsic'; import { SignerOptions, SignerPayload } from '@polkadot/api/types'; import { SubmittableExtrinsic } from '@polkadot/api/promise/types'; -import { ApiProps } from '@polkadot/ui-api/types'; -import { I18nProps, BareProps } from '@polkadot/ui-app/types'; +import { ApiProps } from '@polkadot/react-api/types'; +import { I18nProps, BareProps } from '@polkadot/react-components/types'; import { RpcMethod } from '@polkadot/jsonrpc/types'; import { KeyringPair } from '@polkadot/keyring/types'; import { SubjectInfo } from '@polkadot/ui-keyring/observable/types'; -import { QueueTx, QueueTxMessageSetStatus, QueueTxResult, QueueTxStatus } from '@polkadot/ui-app/Status/types'; +import { QueueTx, QueueTxMessageSetStatus, QueueTxResult, QueueTxStatus } from '@polkadot/react-components/Status/types'; import BN from 'bn.js'; import React from 'react'; import { web3FromSource } from '@polkadot/extension-dapp'; import { createType } from '@polkadot/types'; -import { Button, InputBalance, Modal } from '@polkadot/ui-app'; -import { withApi, withMulti, withObservable } from '@polkadot/ui-api'; +import { Button, InputBalance, Modal } from '@polkadot/react-components'; +import { withApi, withMulti, withObservable } from '@polkadot/react-api'; import keyring from '@polkadot/ui-keyring'; import { assert, isFunction } from '@polkadot/util'; import { format } from '@polkadot/util/logger'; diff --git a/packages/ui-signer/src/PasswordCheck.tsx b/packages/react-signer/src/PasswordCheck.tsx similarity index 78% rename from packages/ui-signer/src/PasswordCheck.tsx rename to packages/react-signer/src/PasswordCheck.tsx index 25292279b6..2b83396609 100644 --- a/packages/ui-signer/src/PasswordCheck.tsx +++ b/packages/react-signer/src/PasswordCheck.tsx @@ -1,12 +1,12 @@ -// Copyright 2017-2019 @polkadot/ui-signer authors & contributors +// Copyright 2017-2019 @polkadot/react-signer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; import styled from 'styled-components'; -import { withMulti } from '@polkadot/ui-api'; +import { withMulti } from '@polkadot/react-api'; import translate from './translate'; diff --git a/packages/ui-signer/src/Transaction.tsx b/packages/react-signer/src/Transaction.tsx similarity index 87% rename from packages/ui-signer/src/Transaction.tsx rename to packages/react-signer/src/Transaction.tsx index 9b182ddaf0..2d25870ffa 100644 --- a/packages/ui-signer/src/Transaction.tsx +++ b/packages/react-signer/src/Transaction.tsx @@ -1,13 +1,13 @@ -// Copyright 2017-2019 @polkadot/ui-signer authors & contributors +// Copyright 2017-2019 @polkadot/react-signer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; -import { QueueTx } from '@polkadot/ui-app/Status/types'; +import { I18nProps } from '@polkadot/react-components/types'; +import { QueueTx } from '@polkadot/react-components/Status/types'; import React from 'react'; import { GenericCall } from '@polkadot/types'; -import { Call, InputAddress, Modal } from '@polkadot/ui-app'; +import { Call, InputAddress, Modal } from '@polkadot/react-components'; import Checks from './Checks'; import translate from './translate'; diff --git a/packages/ui-signer/src/Unlock.tsx b/packages/react-signer/src/Unlock.tsx similarity index 90% rename from packages/ui-signer/src/Unlock.tsx rename to packages/react-signer/src/Unlock.tsx index fd35aeb9cb..5cabe00738 100644 --- a/packages/ui-signer/src/Unlock.tsx +++ b/packages/react-signer/src/Unlock.tsx @@ -1,12 +1,12 @@ -// Copyright 2017-2019 @polkadot/ui-signer authors & contributors +// Copyright 2017-2019 @polkadot/react-signer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { I18nProps } from '@polkadot/ui-app/types'; +import { I18nProps } from '@polkadot/react-components/types'; import { KeyringPair } from '@polkadot/keyring/types'; import React from 'react'; -import { Password } from '@polkadot/ui-app'; +import { Password } from '@polkadot/react-components'; import keyring from '@polkadot/ui-keyring'; import translate from './translate'; diff --git a/packages/ui-signer/src/index.css b/packages/react-signer/src/index.css similarity index 82% rename from packages/ui-signer/src/index.css rename to packages/react-signer/src/index.css index 220a21e625..f02c5910eb 100644 --- a/packages/ui-signer/src/index.css +++ b/packages/react-signer/src/index.css @@ -1,8 +1,8 @@ -/* Copyright 2017-2019 @polkadot/ui-signer authors & contributors +/* Copyright 2017-2019 @polkadot/react-signer authors & contributors /* This software may be modified and distributed under the terms /* of the Apache-2.0 license. See the LICENSE file for details. */ -@import '../../ui-app/src/styles/partials/_variables.css'; +@import '../../react-components/src/styles/partials/_variables.css'; .ui--signer-Signer-Decoded { align-content: center; diff --git a/packages/ui-signer/src/index.tsx b/packages/react-signer/src/index.tsx similarity index 75% rename from packages/ui-signer/src/index.tsx rename to packages/react-signer/src/index.tsx index 8f96ce29dc..8c28f136f6 100644 --- a/packages/ui-signer/src/index.tsx +++ b/packages/react-signer/src/index.tsx @@ -1,14 +1,14 @@ -// Copyright 2017-2019 @polkadot/ui-signer authors & contributors +// Copyright 2017-2019 @polkadot/react-signer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { BareProps } from '@polkadot/ui-app/types'; -import { QueueProps } from '@polkadot/ui-app/Status/types'; +import { BareProps } from '@polkadot/react-components/types'; +import { QueueProps } from '@polkadot/react-components/Status/types'; import './index.css'; import React from 'react'; -import { QueueConsumer } from '@polkadot/ui-app/Status/Context'; +import { QueueConsumer } from '@polkadot/react-components/Status/Context'; import Modal from './Modal'; diff --git a/packages/ui-signer/src/translate.ts b/packages/react-signer/src/translate.ts similarity index 76% rename from packages/ui-signer/src/translate.ts rename to packages/react-signer/src/translate.ts index 9d476c3ca7..b24603e5db 100644 --- a/packages/ui-signer/src/translate.ts +++ b/packages/react-signer/src/translate.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-signer authors & contributors +// Copyright 2017-2019 @polkadot/react-signer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/packages/ui-signer/src/types.ts b/packages/react-signer/src/types.ts similarity index 76% rename from packages/ui-signer/src/types.ts rename to packages/react-signer/src/types.ts index 29f820366c..748363cd57 100644 --- a/packages/ui-signer/src/types.ts +++ b/packages/react-signer/src/types.ts @@ -1,4 +1,4 @@ -// Copyright 2017-2019 @polkadot/ui-signer authors & contributors +// Copyright 2017-2019 @polkadot/react-signer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. diff --git a/tsconfig.json b/tsconfig.json index a79f37bb4e..2da829b786 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -41,18 +41,16 @@ "@polkadot/app-treasury/*": [ "packages/app-treasury/src/*" ], "@polkadot/apps-routing": [ "packages/apps-routing/src" ], "@polkadot/apps-routing/*": [ "packages/apps-routing/src/*" ], - "@polkadot/ui-api": [ "packages/ui-api/src" ], - "@polkadot/ui-api/*": [ "packages/ui-api/src/*" ], - "@polkadot/ui-app": [ "packages/ui-app/src" ], - "@polkadot/ui-app/*": [ "packages/ui-app/src/*" ], - "@polkadot/ui-contracts": [ "packages/ui-contracts/src" ], - "@polkadot/ui-contracts/*": [ "packages/ui-contracts/src/*" ], - "@polkadot/ui-params": [ "packages/ui-params/src" ], - "@polkadot/ui-params/*": [ "packages/ui-params/src/*" ], - "@polkadot/ui-reactive": [ "packages/ui-reactive/src" ], - "@polkadot/ui-reactive/*": [ "packages/ui-reactive/src/*" ], - "@polkadot/ui-signer": [ "packages/ui-signer/src" ], - "@polkadot/ui-signer/*": [ "packages/ui-signer/src/*" ] + "@polkadot/react-api": [ "packages/react-api/src" ], + "@polkadot/react-api/*": [ "packages/react-api/src/*" ], + "@polkadot/react-components": [ "packages/react-components/src" ], + "@polkadot/react-components/*": [ "packages/react-components/src/*" ], + "@polkadot/react-params": [ "packages/react-params/src" ], + "@polkadot/react-params/*": [ "packages/react-params/src/*" ], + "@polkadot/react-query": [ "packages/react-query/src" ], + "@polkadot/react-query/*": [ "packages/react-query/src/*" ], + "@polkadot/react-signer": [ "packages/react-signer/src" ], + "@polkadot/react-signer/*": [ "packages/react-signer/src/*" ] }, "typeRoots": [ "./node_modules/@polkadot/ts", diff --git a/yarn.lock b/yarn.lock index 395c26209a..09204e47d8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2509,9 +2509,9 @@ "@types/react" "*" "@types/react@*", "@types/react@^16.9.0": - version "16.9.0" - resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.0.tgz#27434f16d889a335eb4626d1f1e67eda54039e5b" - integrity sha512-eOct1hyZI9YZf/eqNlYu7jxA9qyTw1EGXruAJhHhBDBpc00W0C1vwlnh+hkOf7UFZkNK+UxnFBpwAZe3d7XJhQ== + version "16.9.1" + resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.1.tgz#862c83b4c9d5cd116e42fd9a4f3694843cd2c051" + integrity sha512-jGM2x8F7m7/r+81N/BOaUKVwbC5Cdw6ExlWEUpr77XPwVeNvAppnPEnMMLMfxRDYL8FPEX8MHjwtD2NQMJ0yyQ== dependencies: "@types/prop-types" "*" csstype "^2.2.0" @@ -3051,9 +3051,9 @@ acorn@^5.2.1, acorn@^5.5.3: integrity sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw== acorn@^6.0.1, acorn@^6.0.7, acorn@^6.2.1: - version "6.2.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.2.1.tgz#3ed8422d6dec09e6121cc7a843ca86a330a86b51" - integrity sha512-JD0xT5FCRDNyjDda3Lrg/IxFscp9q4tiYtxE1/nOzlKCk7hIRuYjhq1kCNkbPjMRMZuFq20HNQn1I9k8Oj0E+Q== + version "6.3.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.3.0.tgz#0087509119ffa4fc0a0041d1e93a417e68cb856e" + integrity sha512-/czfa8BwS88b9gWQVhc8eknunSA2DoJpJyTQkhheIf5E48u1N0R4q/YxxsAeqRrmK9TQ/uYfgLDfZo91UlANIA== agent-base@4, agent-base@^4.3.0: version "4.3.0" @@ -3160,12 +3160,12 @@ ansi-colors@^3.0.0: resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-3.2.4.tgz#e3a3da4bfbae6c86a9c285625de124a234026fbf" integrity sha512-hHUXGagefjN2iRrID63xckIvotOXOojhQKWIPUZ4mNUZ9nLZW+7FMNoE1lOkEhNWYsx/7ysGIuJYCiMAA9FnrA== -ansi-escapes@^3.0.0, ansi-escapes@^3.2.0: +ansi-escapes@^3.0.0: version "3.2.0" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" integrity sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ== -ansi-escapes@^4.1.0: +ansi-escapes@^4.1.0, ansi-escapes@^4.2.1: version "4.2.1" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.2.1.tgz#4dccdb846c3eee10f6d64dea66273eab90c37228" integrity sha512-Cg3ymMAdN10wOk/VYfLV7KCQyv7EDirJ64500sU7n9UlmioEtDuU5Gd+hj73hXSU/ex7tHJSssmyftDdkMLO8Q== @@ -4431,12 +4431,12 @@ clean-css@4.2.x, clean-css@^4.x: dependencies: source-map "~0.6.0" -cli-cursor@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" - integrity sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU= +cli-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" + integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== dependencies: - restore-cursor "^2.0.0" + restore-cursor "^3.1.0" cli-width@^2.0.0: version "2.2.0" @@ -5868,9 +5868,9 @@ ejs@^2.6.2: integrity sha512-PcW2a0tyTuPHz3tWyYqtK6r1fZ3gp+3Sop8Ph+ZYN81Ob5rwmbHEzaqs10N3BEsaGTkh/ooniXK+WwszGlc2+Q== electron-to-chromium@^1.3.191: - version "1.3.221" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.221.tgz#421a58ac8d1931c8df400d55c7f6fd621710da10" - integrity sha512-YbNA7KgCvLq9ZaEa7wpYP7IP4LrJ4+b36oeF1lYBSJ0zVGVN7uo3Ct9qDUm/M3VDOWj03RVgsMFF8PdL8UjhzA== + version "1.3.224" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.224.tgz#511abb2829a58c5ddb36c319094fe936bc82e3cd" + integrity sha512-vTH9UcMbi53x/pZKQrEcD83obE8agqQwUIx/G03/mpE1vzLm0KA3cHwuZXCysvxI1gXfNjV7Nu7Vjtp89kDzmg== elliptic@^6.0.0, elliptic@^6.4.1: version "6.5.0" @@ -5895,6 +5895,11 @@ emoji-regex@^7.0.1: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== + emojis-list@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" @@ -6702,13 +6707,6 @@ figgy-pudding@^3.4.1, figgy-pudding@^3.5.1: resolved "https://registry.yarnpkg.com/figgy-pudding/-/figgy-pudding-3.5.1.tgz#862470112901c727a0e495a80744bd5baa1d6790" integrity sha512-vNKxJHTEKNThjfrdJwHc7brvM6eVevuO5nTj6ez8ZQ1qbXTvGthucRF7S4vf2cr71QVnT70V34v0S1DyQsti0w== -figures@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962" - integrity sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI= - dependencies: - escape-string-regexp "^1.0.5" - figures@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/figures/-/figures-3.0.0.tgz#756275c964646163cc6f9197c7a0295dbfd04de9" @@ -7785,9 +7783,9 @@ html-tags@^2.0.0: integrity sha1-ELMKOGCF9Dzt41PMj6fLDe7qZos= html-to-react@^1.3.4: - version "1.4.0" - resolved "https://registry.yarnpkg.com/html-to-react/-/html-to-react-1.4.0.tgz#991e1185e1c45f7b3ba2b42c1f7a03bd34dec770" - integrity sha512-VmpVO6gAw75MxRu7OgptdwtG5/thOFxTiXevsBt3gdmup2srUewHGNJWilknb334YNsMIIS0/+sGztxyClGuZA== + version "1.4.1" + resolved "https://registry.yarnpkg.com/html-to-react/-/html-to-react-1.4.1.tgz#64f67657c6335056866e334c097556f25894dd47" + integrity sha512-Ys2gGxF8LBF9bD8tbnsU0xgEDOTC3Sy81mtpIH/61hSqGE1l4QetnN1yv0oAK/PuvwABmiNS+ggqvuzo+GfoiA== dependencies: domhandler "^3.0" htmlparser2 "^4.0" @@ -7961,9 +7959,9 @@ i18next-xhr-backend@^3.1.1: "@babel/runtime" "^7.5.5" i18next@^17.0.10: - version "17.0.10" - resolved "https://registry.yarnpkg.com/i18next/-/i18next-17.0.10.tgz#8f92ec815d84dc0a0752e8114dc22e1861522d71" - integrity sha512-EUsx6LGXA6m2bTKUtPHHBVhE1v48y0cHKCWP7c9cUfnAu3ZBpWYPy5QkrC3ppV+BByJP3Zww9c9hhtfgnOpGBg== + version "17.0.11" + resolved "https://registry.yarnpkg.com/i18next/-/i18next-17.0.11.tgz#36424dc01f6de391fae87878d24f5ff713565c27" + integrity sha512-O+yzoNi0usYcd4oi85EFY4WuwZ8NNsYJLauZ629YSjwgIi2D7eYDSQxy6aAR67V++b//GNuZEk7hx/i3L9Rxag== dependencies: "@babel/runtime" "^7.3.1" @@ -8131,21 +8129,21 @@ init-package-json@^1.10.3: validate-npm-package-name "^3.0.0" inquirer@^6.2.0, inquirer@^6.4.1: - version "6.5.0" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-6.5.0.tgz#2303317efc9a4ea7ec2e2df6f86569b734accf42" - integrity sha512-scfHejeG/lVZSpvCXpsB4j/wQNPM5JC8kiElOI0OUTwmc1RTpXr4H32/HOlQHcZiYl2z2VElwuCVDRG8vFmbnA== + version "6.5.1" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-6.5.1.tgz#8bfb7a5ac02dac6ff641ac4c5ff17da112fcdb42" + integrity sha512-uxNHBeQhRXIoHWTSNYUFhQVrHYFThIt6IVo2fFmSe8aBwdR3/w6b58hJpiL/fMukFkvGzjg+hSxFtwvVmKZmXw== dependencies: - ansi-escapes "^3.2.0" + ansi-escapes "^4.2.1" chalk "^2.4.2" - cli-cursor "^2.1.0" + cli-cursor "^3.1.0" cli-width "^2.0.0" external-editor "^3.0.3" - figures "^2.0.0" - lodash "^4.17.12" - mute-stream "0.0.7" + figures "^3.0.0" + lodash "^4.17.15" + mute-stream "0.0.8" run-async "^2.2.0" rxjs "^6.4.0" - string-width "^2.1.0" + string-width "^4.1.0" strip-ansi "^5.1.0" through "^2.3.6" @@ -8209,6 +8207,11 @@ is-absolute-url@^2.0.0: resolved "https://registry.yarnpkg.com/is-absolute-url/-/is-absolute-url-2.1.0.tgz#50530dfb84fcc9aa7dbe7852e83a37b93b9f2aa6" integrity sha1-UFMN+4T8yap9vnhS6Do3uTufKqY= +is-absolute-url@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-absolute-url/-/is-absolute-url-3.0.0.tgz#eb21d69df2ed8ef72a3e6f243e216563036a0913" + integrity sha512-3OkP8XrM2Xq4/IxsJnClfMp3OaM3TAatLPLKPeWcxLBTrpe6hihwtX+XZfJTcXg/FTRi4qjy0y/C5qiyNxY24g== + is-absolute@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-absolute/-/is-absolute-1.0.0.tgz#395e1ae84b11f26ad1795e73c17378e48a301576" @@ -8395,6 +8398,11 @@ is-fullwidth-code-point@^2.0.0: resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== + is-generator-fn@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" @@ -9718,7 +9726,7 @@ lodash.uniq@^4.5.0: resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M= -lodash@^4.15.0, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.1: +lodash@^4.15.0, lodash@^4.17.11, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.1: version "4.17.15" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== @@ -10161,11 +10169,6 @@ mime@^2.0.3, mime@^2.4.2, mime@^2.4.4: resolved "https://registry.yarnpkg.com/mime/-/mime-2.4.4.tgz#bd7b91135fc6b01cde3e9bae33d659b63d8857e5" integrity sha512-LRxmNwziLPT828z+4YkNzloCFC2YM4wrB99k+AV5ZbEyfGNWfG8SO1FUXLmLDBSo89NrJZ4DIWeLjy1CHGhMGA== -mimic-fn@^1.0.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" - integrity sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ== - mimic-fn@^2.0.0, mimic-fn@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" @@ -10380,12 +10383,7 @@ mute-stdout@^1.0.0: resolved "https://registry.yarnpkg.com/mute-stdout/-/mute-stdout-1.0.1.tgz#acb0300eb4de23a7ddeec014e3e96044b3472331" integrity sha512-kDcwXR4PS7caBpuRYYBUz9iVixUk3anO3f5OYFiIPwK/20vCzKCHyKoulbiDY1S53zD2bxUpxN/IJ+TnXjfvxg== -mute-stream@0.0.7: - version "0.0.7" - resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" - integrity sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s= - -mute-stream@~0.0.4: +mute-stream@0.0.8, mute-stream@~0.0.4: version "0.0.8" resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== @@ -10589,9 +10587,9 @@ node-pre-gyp@^0.12.0: tar "^4" node-releases@^1.1.25: - version "1.1.26" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.26.tgz#f30563edc5c7dc20cf524cc8652ffa7be0762937" - integrity sha512-fZPsuhhUHMTlfkhDLGtfY80DSJTjOcx+qD1j5pqPkuhUHVS7xHZIg9EE4DHK8O3f0zTxXHX5VIkDG8pu98/wfQ== + version "1.1.27" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.27.tgz#b19ec8add2afe9a826a99dceccc516104c1edaf4" + integrity sha512-9iXUqHKSGo6ph/tdXVbHFbhRVQln4ZDTIBJCzsa90HimnBYc5jw8RWYt4wBYFHehGyC3koIz5O4mb2fHrbPOuA== dependencies: semver "^5.3.0" @@ -10936,13 +10934,6 @@ once@^1.3.0, once@^1.3.1, once@^1.3.2, once@^1.4.0: dependencies: wrappy "1" -onetime@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" - integrity sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ= - dependencies: - mimic-fn "^1.0.0" - onetime@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.0.tgz#fff0f3c91617fe62bb50189636e99ac8a6df7be5" @@ -11540,7 +11531,7 @@ popper.js@^1.14.4: resolved "https://registry.yarnpkg.com/popper.js/-/popper.js-1.15.0.tgz#5560b99bbad7647e9faa475c6b8056621f5a4ff2" integrity sha512-w010cY1oCUmI+9KwwlWki+r5jxKfTFDVoadl7MSrIujHU5MJ5OR6HTDj6Xo8aoR/QsA56x8jKjA59qGH4ELtrA== -portfinder@^1.0.13, portfinder@^1.0.20: +portfinder@^1.0.13, portfinder@^1.0.21: version "1.0.21" resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.21.tgz#60e1397b95ac170749db70034ece306b9a27e324" integrity sha512-ESabpDCzmBS3ekHbmpAIiESq3udRsCBGiBZLsC+HgBKv2ezb0R4oG+7RnYEVZ/ZCfhel5Tx3UzdNWA0Lox2QCA== @@ -12713,9 +12704,9 @@ react-dropzone@^7.0.1: prop-types "^15.6.2" react-hot-loader@^4.12.10: - version "4.12.10" - resolved "https://registry.yarnpkg.com/react-hot-loader/-/react-hot-loader-4.12.10.tgz#b3457c0f733423c4827c6d2672e50c9f8bedaf6b" - integrity sha512-dX+ZUigxQijWLsKPnxc0khuCt2sYiZ1W59LgSBMOLeGSG3+HkknrTlnJu6BCNdhYxbEQkGvBsr7zXlNWYUIhAQ== + version "4.12.11" + resolved "https://registry.yarnpkg.com/react-hot-loader/-/react-hot-loader-4.12.11.tgz#06bd618d0a7343c8afa4a31206844f651193bae5" + integrity sha512-ySsg1hPwr/5dkZCJVp1nZRbwbpbEQ+3e2+bn/D681Wvr9+o+5bLKkTGq0TXskj8HgCS3ScysXddOng9Cg+JKzw== dependencies: fast-levenshtein "^2.0.6" global "^4.3.0" @@ -12727,9 +12718,9 @@ react-hot-loader@^4.12.10: source-map "^0.7.3" react-i18next@^10.11.5: - version "10.11.5" - resolved "https://registry.yarnpkg.com/react-i18next/-/react-i18next-10.11.5.tgz#10d0726a6c63c2d928078a7e7ec3db708246be04" - integrity sha512-+LXYehLGWbOzM4on9pgeCMTmo7J24Pm2rio4S8OSVdYudUKxLSYzoMDgJect0SQbTlIiK6b6+OTgTGY4YKPECw== + version "10.12.0" + resolved "https://registry.yarnpkg.com/react-i18next/-/react-i18next-10.12.0.tgz#1ad06441e8ce57830628c4282235f41b4cdf661f" + integrity sha512-SgYTcas9SJ3dEk45fsyffPh+8Edh6NLbBFeot4njesilE02D28PWXlIoj5wZCmmWgtCa17a2rE/OmcXD1Qvk3Q== dependencies: "@babel/runtime" "^7.3.1" html-parse-stringify2 "2.0.1" @@ -13038,7 +13029,7 @@ reflect.ownkeys@^0.2.0: resolved "https://registry.yarnpkg.com/reflect.ownkeys/-/reflect.ownkeys-0.2.0.tgz#749aceec7f3fdf8b63f927a04809e90c5c0b3460" integrity sha1-dJrO7H8/34tj+SegSAnpDFwLNGA= -regenerate-unicode-properties@^8.0.2: +regenerate-unicode-properties@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-8.1.0.tgz#ef51e0f0ea4ad424b77bf7cb41f3e015c70a3f0e" integrity sha512-LGZzkgtLY79GeXLm8Dp0BVLdQlWICzBnJz/ipWUgo59qBaZ+BHtq51P2q1uVZlppMuUAT37SDk39qUbjTWB7bA== @@ -13093,12 +13084,12 @@ regexpp@^2.0.1: integrity sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw== regexpu-core@^4.5.4: - version "4.5.4" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.5.4.tgz#080d9d02289aa87fe1667a4f5136bc98a6aebaae" - integrity sha512-BtizvGtFQKGPUcTy56o3nk1bGRp4SZOTYrDtGNlqCQufptV5IkkLN6Emw+yunAJjzf+C9FQFtvq7IoA3+oMYHQ== + version "4.5.5" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.5.5.tgz#aaffe61c2af58269b3e516b61a73790376326411" + integrity sha512-FpI67+ky9J+cDizQUJlIlNZFKual/lUkFr1AG6zOCpwZ9cLrg8UUVakyUQJD7fCDIe9Z2nwTQJNPyonatNmDFQ== dependencies: regenerate "^1.4.0" - regenerate-unicode-properties "^8.0.2" + regenerate-unicode-properties "^8.1.0" regjsgen "^0.5.0" regjsparser "^0.6.0" unicode-match-property-ecmascript "^1.0.4" @@ -13335,12 +13326,12 @@ resolve@^1.1.6, resolve@^1.1.7, resolve@^1.10.0, resolve@^1.10.1, resolve@^1.11. dependencies: path-parse "^1.0.6" -restore-cursor@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" - integrity sha1-n37ih/gv0ybU/RYpI9YhKe7g368= +restore-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" + integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== dependencies: - onetime "^2.0.0" + onetime "^5.1.0" signal-exit "^3.0.2" ret@~0.1.10: @@ -13590,7 +13581,7 @@ semver@5.5.0: resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" integrity sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA== -semver@^6.0.0, semver@^6.1.0, semver@^6.1.1, semver@^6.1.2, semver@^6.2.0, semver@^6.3.0: +semver@^6.0.0, semver@^6.1.0, semver@^6.1.2, semver@^6.2.0, semver@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== @@ -13985,7 +13976,7 @@ spdy-transport@^3.0.0: readable-stream "^3.0.6" wbuf "^1.7.3" -spdy@^4.0.0: +spdy@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/spdy/-/spdy-4.0.1.tgz#6f12ed1c5db7ea4f24ebb8b89ba58c87c08257f2" integrity sha512-HeZS3PBdMA+sZSu0qwpCxl3DeALD5ASx8pAX0jZdKXSpPWbQ6SYGnlg3BBmYLx5LtiZrmkAZfErCm2oECBcioA== @@ -14163,7 +14154,7 @@ string-width@^1.0.1, string-width@^1.0.2: is-fullwidth-code-point "^1.0.0" strip-ansi "^3.0.0" -"string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.0, string-width@^2.1.1: +"string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== @@ -14180,6 +14171,15 @@ string-width@^3.0.0, string-width@^3.1.0: is-fullwidth-code-point "^2.0.0" strip-ansi "^5.1.0" +string-width@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.1.0.tgz#ba846d1daa97c3c596155308063e075ed1c99aff" + integrity sha512-NrX+1dVVh+6Y9dnQ19pR0pP4FiEIlUvdTGn8pw6CKTNq5sgib2nIhmUNT5TAmhWmvKr3WcxBcP3E8nWezuipuQ== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^5.2.0" + string.prototype.trim@^1.1.2: version "1.2.0" resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.0.tgz#75a729b10cfc1be439543dae442129459ce61e3d" @@ -14509,9 +14509,9 @@ terser-webpack-plugin@^1.4.1: worker-farm "^1.7.0" terser@^4.1.2: - version "4.1.3" - resolved "https://registry.yarnpkg.com/terser/-/terser-4.1.3.tgz#6074fbcf3517561c3272ea885f422c7a8c32d689" - integrity sha512-on13d+cnpn5bMouZu+J8tPYQecsdRJCJuxFJ+FVoPBoLJgk5bCBkp+Uen2hWyi0KIUm6eDarnlAlH+KgIx/PuQ== + version "4.1.4" + resolved "https://registry.yarnpkg.com/terser/-/terser-4.1.4.tgz#4478b6a08bb096a61e793fea1a4434408bab936c" + integrity sha512-+ZwXJvdSwbd60jG0Illav0F06GDJF0R4ydZ21Q3wGAFKoBGyJGo34F63vzJHgvYxc1ukOtIjvwEvl9MkjzM6Pg== dependencies: commander "^2.20.0" source-map "~0.6.1" @@ -14604,9 +14604,9 @@ time-stamp@^1.0.0: integrity sha1-dkpaEa9QVhkhsTPztE5hhofg9cM= timers-browserify@^2.0.4: - version "2.0.10" - resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.10.tgz#1d28e3d2aadf1d5a5996c4e9f95601cd053480ae" - integrity sha512-YvC1SV1XdOUaL6gx5CoGroT3Gu49pK9+TZ38ErPldOWW4j49GI1HKs9DV+KGq/w6y+LZ72W1c8cKz2vzY+qpzg== + version "2.0.11" + resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.11.tgz#800b1f3eee272e5bc53ee465a04d0e804c31211f" + integrity sha512-60aV6sgJ5YEbzUdn9c8kYGIqOubPoUdqQCul3SBAsRCZ40s6Y5cMcrW4dt3/k/EsbLVJNl9n6Vz3fTc+k2GeKQ== dependencies: setimmediate "^1.0.4" @@ -15634,9 +15634,9 @@ webpack-dev-middleware@^3.7.0: webpack-log "^2.0.0" webpack-dev-server@^3.5.1: - version "3.7.2" - resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-3.7.2.tgz#f79caa5974b7f8b63268ef5421222a8486d792f5" - integrity sha512-mjWtrKJW2T9SsjJ4/dxDC2fkFVUw8jlpemDERqV0ZJIkjjjamR2AbQlr3oz+j4JLhYCHImHnXZK5H06P2wvUew== + version "3.8.0" + resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-3.8.0.tgz#06cc4fc2f440428508d0e9770da1fef10e5ef28d" + integrity sha512-Hs8K9yI6pyMvGkaPTeTonhD6JXVsigXDApYk9JLW4M7viVBspQvb1WdAcWxqtmttxNW4zf2UFLsLNe0y87pIGQ== dependencies: ansi-html "0.0.7" bonjour "^3.5.0" @@ -15651,23 +15651,25 @@ webpack-dev-server@^3.5.1: import-local "^2.0.0" internal-ip "^4.3.0" ip "^1.1.5" + is-absolute-url "^3.0.0" killable "^1.0.1" loglevel "^1.6.3" opn "^5.5.0" p-retry "^3.0.1" - portfinder "^1.0.20" + portfinder "^1.0.21" schema-utils "^1.0.0" selfsigned "^1.10.4" - semver "^6.1.1" + semver "^6.3.0" serve-index "^1.9.1" sockjs "0.3.19" sockjs-client "1.3.0" - spdy "^4.0.0" + spdy "^4.0.1" strip-ansi "^3.0.1" supports-color "^6.1.0" url "^0.11.0" webpack-dev-middleware "^3.7.0" webpack-log "^2.0.0" + ws "^6.2.1" yargs "12.0.5" webpack-log@^2.0.0: @@ -15980,6 +15982,13 @@ ws@^5.2.0: dependencies: async-limiter "~1.0.0" +ws@^6.2.1: + version "6.2.1" + resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.1.tgz#442fdf0a47ed64f59b6a5d8ff130f4748ed524fb" + integrity sha512-GIyAXC2cB7LjvpgMt9EKS2ldqr0MTrORaleiOno6TweZ6r3TKtoFQWay/2PceJ3RuBasOHzXNn5Lrw1X0bEjqA== + dependencies: + async-limiter "~1.0.0" + ws@^7.1.0: version "7.1.1" resolved "https://registry.yarnpkg.com/ws/-/ws-7.1.1.tgz#f9942dc868b6dffb72c14fd8f2ba05f77a4d5983"