From 981642f285f053862a14b2b8c45e83c255b20fde Mon Sep 17 00:00:00 2001 From: Nikos Kontakis Date: Mon, 19 Feb 2024 17:30:24 +0200 Subject: [PATCH] transfer --- .licenserc.json | 12 ++--- .prettierrc.cjs | 4 +- LICENSE | 2 +- README.md | 6 +-- index.html | 18 +++---- package.json | 16 +++--- public/favicons/site.webmanifest | 4 +- src/App.tsx | 4 +- src/Error.tsx | 2 +- src/Footer.tsx | 14 ++--- src/Header.tsx | 10 ++-- src/Menu/Category.tsx | 4 +- src/Menu/index.tsx | 4 +- src/Providers.tsx | 6 +-- src/Router.tsx | 4 +- src/Theme.tsx | 8 +-- src/config/routes.tsx | 4 +- src/contexts/Theme/defaults.ts | 4 +- src/contexts/Theme/index.tsx | 6 +-- src/contexts/Theme/types.ts | 4 +- src/contexts/UI/defaults.ts | 4 +- src/contexts/UI/index.tsx | 4 +- src/contexts/UI/types.ts | 4 +- src/docs/Assets/Extensions/ExtensionsJsx.tsx | 8 +-- src/docs/Assets/Extensions/ExtensionsSvg.tsx | 52 +++++++++---------- src/docs/Assets/Extensions/IconsOnly.tsx | 24 ++++----- src/docs/Assets/Extensions/ImportSimple.tsx | 8 +-- src/docs/Assets/Extensions/index.tsx | 6 +-- src/docs/Assets/Extensions/main.tsx | 10 ++-- .../Assets/Validators/ValidatorOperator.tsx | 6 +-- src/docs/Assets/Validators/index.tsx | 6 +-- src/docs/Assets/Validators/main.tsx | 8 +-- .../AccountsExample.tsx | 6 +-- .../ConnectExample.tsx | 6 +-- .../ProviderExample.tsx | 6 +-- .../ExtensionAccountsProvider/index.tsx | 6 +-- .../ExtensionAccountsProvider/main.tsx | 8 +-- .../ExtensionsProvider/HookExample.tsx | 6 +-- .../ExtensionsProvider/ProviderExample.tsx | 6 +-- .../Connect/ExtensionsProvider/index.tsx | 6 +-- .../Connect/ExtensionsProvider/main.tsx | 8 +-- src/docs/Components/Odometer/OdometerH1.tsx | 6 +-- src/docs/Components/Odometer/index.tsx | 6 +-- src/docs/Components/Odometer/main.tsx | 6 +-- src/docs/Components/Overlay/OpenOverlay.tsx | 6 +-- src/docs/Components/Overlay/OverlayBasic.tsx | 6 +-- src/docs/Components/Overlay/OverlayConfig.tsx | 4 +- .../Components/Overlay/OverlayProvider.tsx | 6 +-- src/docs/Components/Overlay/index.tsx | 6 +-- src/docs/Components/Overlay/main.tsx | 8 +-- .../Components/Polkicon/PolkiconColors.tsx | 6 +-- src/docs/Components/Polkicon/PolkiconCopy.tsx | 6 +-- src/docs/Components/Polkicon/PolkiconSize.tsx | 6 +-- .../Components/Polkicon/PolkiconTheme.tsx | 6 +-- src/docs/Components/Polkicon/index.tsx | 6 +-- src/docs/Components/Polkicon/main.tsx | 12 ++--- .../GettingStarted/Installation/CSSThemes.tsx | 8 +-- .../Installation/InstallBasic.tsx | 6 +-- .../Installation/InstallReact.tsx | 6 +-- .../Installation/InstallReactCore.tsx | 6 +-- .../GettingStarted/Installation/index.tsx | 4 +- src/docs/GettingStarted/Installation/main.tsx | 14 ++--- src/docs/GettingStarted/Overview/index.tsx | 4 +- src/docs/GettingStarted/Overview/main.tsx | 34 ++++++------ .../UsingThemes/AccentColorExample.tsx | 4 +- .../UsingThemes/ThemeColorExample.tsx | 4 +- .../UsingThemes/ThemeExample.tsx | 8 +-- src/docs/GettingStarted/UsingThemes/index.tsx | 4 +- src/docs/GettingStarted/UsingThemes/main.tsx | 20 +++---- src/docs/Utilities/Base/Camelize.tsx | 4 +- src/docs/Utilities/Base/EllipsisFn.tsx | 4 +- src/docs/Utilities/Base/GreaterThanZero.tsx | 4 +- src/docs/Utilities/Base/IsNotZero.tsx | 4 +- src/docs/Utilities/Base/PageFromUri.tsx | 4 +- src/docs/Utilities/Base/RmCommas.tsx | 4 +- src/docs/Utilities/Base/Shuffle.tsx | 4 +- src/docs/Utilities/Base/index.tsx | 6 +-- src/docs/Utilities/Base/main.tsx | 4 +- .../Base/\316\234inDecimalPlaces.tsx" | 4 +- src/docs/Utilities/Unit/EvalUnits.tsx | 4 +- src/docs/Utilities/Unit/PlanckToUnit.tsx | 4 +- .../Utilities/Unit/TransformToBaseUnit.tsx | 4 +- src/docs/Utilities/Unit/UnitToPlanck.tsx | 4 +- src/docs/Utilities/Unit/index.tsx | 6 +-- src/docs/Utilities/Unit/main.tsx | 4 +- src/docs/lib/Bar/index.tsx | 4 +- src/docs/lib/Demo/index.tsx | 14 ++--- src/docs/lib/Demo/types.ts | 4 +- src/docs/lib/Edit/index.tsx | 6 +-- src/docs/lib/External/index.tsx | 4 +- src/docs/lib/Header/index.tsx | 4 +- src/docs/lib/Headers/index.tsx | 4 +- src/docs/lib/Label/index.tsx | 4 +- src/docs/lib/NPM/index.tsx | 4 +- src/docs/lib/Note/index.tsx | 4 +- src/docs/lib/SimpleEditor/index.tsx | 4 +- src/docs/lib/SimpleEditor/themes/dark.scss | 4 +- src/docs/lib/SimpleEditor/themes/light.scss | 4 +- src/docs/lib/SimpleEditor/types.ts | 4 +- src/docs/lib/Structure/Body/index.tsx | 4 +- src/docs/lib/Structure/Main/index.tsx | 4 +- src/docs/lib/Structure/Side/index.tsx | 6 +-- src/docs/lib/Structure/index.scss | 2 +- src/docs/lib/UtilsComponent/index.tsx | 4 +- src/docs/lib/UtilsComponent/types.tsx | 4 +- src/hooks/useOutsideAlerter.tsx | 8 +-- src/styles/_variables.scss | 4 +- src/styles/app.scss | 12 ++--- src/styles/docs.scss | 4 +- src/styles/index.scss | 4 +- src/styles/menu.scss | 4 +- src/svg/polkadot_black.svg | 11 ++++ src/svg/polkadot_pink.svg | 14 +++++ src/theme/fonts.css | 4 +- src/theme/theme.css | 12 ++--- vite.config.ts | 4 +- yarn.lock | 52 +++++++------------ 117 files changed, 428 insertions(+), 417 deletions(-) create mode 100755 src/svg/polkadot_black.svg create mode 100755 src/svg/polkadot_pink.svg diff --git a/.licenserc.json b/.licenserc.json index 04830fd..5e7ce63 100644 --- a/.licenserc.json +++ b/.licenserc.json @@ -1,15 +1,15 @@ { "**/*.{js, ts, tsx}": [ - "/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors", - "SPDX-License-Identifier: GPL-3.0-only */" + "/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors", + "SPDX-License-Identifier: MIT */" ], "**/*.scss": [ - "/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors", - "SPDX-License-Identifier: GPL-3.0-only */" + "/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors", + "SPDX-License-Identifier: MIT */" ], "**/*.cjs": [ - "// Copyright 2024 @polkadot-cloud/frontpage authors & contributors", - "// SPDX-License-Identifier: GPL-3.0-only" + "// Copyright 2024 @polkadot-ui/frontpage authors & contributors", + "// SPDX-License-Identifier: MIT" ], "ignore": ["testdata", "npm"] } diff --git a/.prettierrc.cjs b/.prettierrc.cjs index c9149bd..a8159e7 100644 --- a/.prettierrc.cjs +++ b/.prettierrc.cjs @@ -1,5 +1,5 @@ -// Copyright 2024 @polkadot-cloud/frontpage authors & contributors", -// SPDX-License-Identifier: GPL-3.0-only +// Copyright 2024 @polkadot-ui/frontpage authors & contributors", +// SPDX-License-Identifier: MIT module.exports = { arrowParens: "always", diff --git a/LICENSE b/LICENSE index 8047e8c..aa50fc2 100644 --- a/LICENSE +++ b/LICENSE @@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: - Polkadot Cloud Copyright (C) 2023-2024 Ross Bulat - Nikolaos Kontakis + Polkadot UI Copyright (C) 2023-2024 Ross Bulat - Nikolaos Kontakis This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. diff --git a/README.md b/README.md index 65e2f8d..bda79dd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -[![Polkadot - Cloud](https://img.shields.io/badge/Polkadot-Assets-E6007A?logo=polkadot&logoColor=E6007A)]([https://github.com/polkadot-cloud/frontpage]) ![ci](https://github.com/polkadot-cloud/frontpage/actions/workflows/main.yml/badge.svg) [![License](https://img.shields.io/badge/License-GPL_3.0_only-blue.svg)](https://opensource.org/license/gpl-3-0/) +[![Polkadot - UI](https://img.shields.io/badge/Polkadot-Assets-E6007A?logo=polkadot&logoColor=E6007A)]([https://github.com/polkadot-ui/frontpage]) ![ci](https://github.com/polkadot-ui/frontpage/actions/workflows/main.yml/badge.svg) [![License](https://img.shields.io/badge/License-GPL_3.0_only-blue.svg)](https://opensource.org/license/gpl-3-0/) -# Polkadot Cloud Front Page +# Polkadot UI Front Page -Polkadot Cloud is a library and platform for developing and publishing Polkadot development assets. +Polkadot UI is a library and platform for developing and publishing Polkadot development assets. diff --git a/index.html b/index.html index f5f7274..4f50d25 100644 --- a/index.html +++ b/index.html @@ -28,40 +28,40 @@ - + - Polkadot Cloud - Library and platform for developing and publishing assets + Polkadot UI - Library and platform for developing and publishing assets for Polkadot (DOT) dApps - + - + { const glitch = useGlitch({ diff --git a/src/Footer.tsx b/src/Footer.tsx index ed3ae1f..fc35886 100644 --- a/src/Footer.tsx +++ b/src/Footer.tsx @@ -1,8 +1,8 @@ -// Copyright 2024 @polkadot-cloud/frontpage authors & contributors -// SPDX-License-Identifier: GPL-3.0-only +// Copyright 2024 @polkadot-ui/frontpage authors & contributors +// SPDX-License-Identifier: MIT import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import IconSVG from "./svg/icon-filled.svg?react"; +import IconSVG from "./svg/polkadot_black.svg?react"; import { faGithub } from "@fortawesome/free-brands-svg-icons"; export const Footer = () => { @@ -16,18 +16,18 @@ export const Footer = () => {

© Copyright {new Date().getUTCFullYear()}   - Polkadot Cloud Authors & Contributors. + Polkadot UI Authors & Contributors.

{" "}

Licensed with{" "} - GPL-3.0-only + MIT

@@ -35,7 +35,7 @@ export const Footer = () => {

diff --git a/src/Header.tsx b/src/Header.tsx index c6b2179..1fe06fa 100644 --- a/src/Header.tsx +++ b/src/Header.tsx @@ -1,8 +1,8 @@ -// Copyright 2024 @polkadot-cloud/frontpage authors & contributors -// SPDX-License-Identifier: GPL-3.0-only +// Copyright 2024 @polkadot-ui/frontpage authors & contributors +// SPDX-License-Identifier: MIT import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import IconSVG from "./svg/icon.svg?react"; +import IconSVG from "./svg/polkadot_pink.svg?react"; import { faGithub } from "@fortawesome/free-brands-svg-icons"; export const Header = () => { @@ -13,12 +13,12 @@ export const Header = () => {
-

Polkadot Cloud Docs

+

Polkadot UI Docs

diff --git a/src/Menu/Category.tsx b/src/Menu/Category.tsx index 1602c46..b281283 100644 --- a/src/Menu/Category.tsx +++ b/src/Menu/Category.tsx @@ -1,5 +1,5 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { Fragment, useState } from "react"; import { Link, useLocation } from "react-router-dom"; diff --git a/src/Menu/index.tsx b/src/Menu/index.tsx index 640a0bd..32de6ee 100644 --- a/src/Menu/index.tsx +++ b/src/Menu/index.tsx @@ -1,5 +1,5 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { Fragment, useEffect, useRef } from "react"; import { Link, useLocation } from "react-router-dom"; diff --git a/src/Providers.tsx b/src/Providers.tsx index 52c2133..6c5ced3 100644 --- a/src/Providers.tsx +++ b/src/Providers.tsx @@ -1,11 +1,11 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { ReactNode } from "react"; import { ThemesProvider } from "./contexts/Theme"; import { UIProvider } from "./contexts/UI"; import { Theme } from "./Theme"; -import { AnyJson, AnyObject } from "@polkadot-cloud/react/types"; +import { AnyJson, AnyObject } from "@polkadot-ui/react/types"; /* * A hook that wraps multiple context providers to a component and makes each parent context accessible. diff --git a/src/Router.tsx b/src/Router.tsx index 5f24ef7..fdaf7aa 100644 --- a/src/Router.tsx +++ b/src/Router.tsx @@ -1,5 +1,5 @@ -// Copyright 2024 @polkadot-cloud/frontpage authors & contributors -// SPDX-License-Identifier: GPL-3.0-only +// Copyright 2024 @polkadot-ui/frontpage authors & contributors +// SPDX-License-Identifier: MIT import { Route, Routes, useLocation } from "react-router-dom"; import { routes } from "./config/routes"; diff --git a/src/Theme.tsx b/src/Theme.tsx index 8412492..9c8ee8b 100644 --- a/src/Theme.tsx +++ b/src/Theme.tsx @@ -1,18 +1,18 @@ -// Copyright 2024 @polkadot-cloud/frontpage authors & contributors -// SPDX-License-Identifier: GPL-3.0-only +// Copyright 2024 @polkadot-ui/frontpage authors & contributors +// SPDX-License-Identifier: MIT import { Router } from "./Router"; // App-wide theme classes are inserted here. // // App-specific theming is added to `ThemeProvider`. -// `@polkadot-cloud/react` themes are added to `Entry`. +// `@polkadot-ui/react` themes are added to `Entry`. export const Theme = () => { // NOTE: theme not currently in use. Defaulting to light mode. // const { mode } = useTheme(); return ( -
+
); diff --git a/src/config/routes.tsx b/src/config/routes.tsx index 1b349b0..a7ce124 100644 --- a/src/config/routes.tsx +++ b/src/config/routes.tsx @@ -1,5 +1,5 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { ReactNode } from "react"; import { Polkicon } from "../docs/Components/Polkicon"; diff --git a/src/contexts/Theme/defaults.ts b/src/contexts/Theme/defaults.ts index 2534528..17611e2 100644 --- a/src/contexts/Theme/defaults.ts +++ b/src/contexts/Theme/defaults.ts @@ -1,5 +1,5 @@ -// Copyright 2024 @polkadot-cloud/frontpage authors & contributors -// SPDX-License-Identifier: GPL-3.0-only +// Copyright 2024 @polkadot-ui/frontpage authors & contributors +// SPDX-License-Identifier: MIT /* eslint-disable no-unused-vars, @typescript-eslint/no-unused-vars */ import type { ThemeContextInterface } from "./types"; diff --git a/src/contexts/Theme/index.tsx b/src/contexts/Theme/index.tsx index 8b81d59..21d9290 100644 --- a/src/contexts/Theme/index.tsx +++ b/src/contexts/Theme/index.tsx @@ -1,7 +1,7 @@ -// Copyright 2024 @polkadot-cloud/frontpage authors & contributors -// SPDX-License-Identifier: GPL-3.0-only +// Copyright 2024 @polkadot-ui/frontpage authors & contributors +// SPDX-License-Identifier: MIT -import { setStateWithRef } from "@polkadot-cloud/utils"; +import { setStateWithRef } from "@polkadot-ui/utils"; import { useState, useRef, ReactNode, createContext, useContext } from "react"; import { defaultThemeContext } from "./defaults"; import type { Mode, ThemeContextInterface } from "./types"; diff --git a/src/contexts/Theme/types.ts b/src/contexts/Theme/types.ts index dabc102..c2bbba4 100644 --- a/src/contexts/Theme/types.ts +++ b/src/contexts/Theme/types.ts @@ -1,5 +1,5 @@ -// Copyright 2024 @polkadot-cloud/frontpage authors & contributors -// SPDX-License-Identifier: GPL-3.0-only +// Copyright 2024 @polkadot-ui/frontpage authors & contributors +// SPDX-License-Identifier: MIT export type Mode = "light" | "dark"; diff --git a/src/contexts/UI/defaults.ts b/src/contexts/UI/defaults.ts index 588eddf..ab27a95 100644 --- a/src/contexts/UI/defaults.ts +++ b/src/contexts/UI/defaults.ts @@ -1,5 +1,5 @@ -// Copyright 2024 @polkadot-cloud/frontpage authors & contributors -// SPDX-License-Identifier: GPL-3.0-only +// Copyright 2024 @polkadot-ui/frontpage authors & contributors +// SPDX-License-Identifier: MIT /* eslint-disable no-unused-vars, @typescript-eslint/no-unused-vars */ import type { UIContextInterface } from "./types"; diff --git a/src/contexts/UI/index.tsx b/src/contexts/UI/index.tsx index 3244f3e..ca11e47 100644 --- a/src/contexts/UI/index.tsx +++ b/src/contexts/UI/index.tsx @@ -1,5 +1,5 @@ -// Copyright 2024 @polkadot-cloud/frontpage authors & contributors -// SPDX-License-Identifier: GPL-3.0-only +// Copyright 2024 @polkadot-ui/frontpage authors & contributors +// SPDX-License-Identifier: MIT import { useState, ReactNode, useContext, createContext } from "react"; import * as defaults from "./defaults"; diff --git a/src/contexts/UI/types.ts b/src/contexts/UI/types.ts index 7b85dd5..cc41319 100644 --- a/src/contexts/UI/types.ts +++ b/src/contexts/UI/types.ts @@ -1,5 +1,5 @@ -// Copyright 2024 @polkadot-cloud/frontpage authors & contributors -// SPDX-License-Identifier: GPL-3.0-only +// Copyright 2024 @polkadot-ui/frontpage authors & contributors +// SPDX-License-Identifier: MIT export interface UIContextInterface { setSideMenu: (v: boolean) => void; diff --git a/src/docs/Assets/Extensions/ExtensionsJsx.tsx b/src/docs/Assets/Extensions/ExtensionsJsx.tsx index 142255d..6473a62 100644 --- a/src/docs/Assets/Extensions/ExtensionsJsx.tsx +++ b/src/docs/Assets/Extensions/ExtensionsJsx.tsx @@ -1,12 +1,12 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { SimpleEditor } from "../../lib/SimpleEditor"; -import { PolkadotVault } from "@polkadot-cloud/assets/extensions/jsx/PolkadotVault"; +import { PolkadotVault } from "@polkadot-ui/assets/extensions/jsx/PolkadotVault"; import { Demo } from "../../lib/Demo"; export const ExtensionsJsx = () => { - const code = `import { PolkadotVault } from "@polkadot-cloud/assets/extensions/jsx/PolkadotVault"; + const code = `import { PolkadotVault } from "@polkadot-ui/assets/extensions/jsx/PolkadotVault"; const App = () => ( diff --git a/src/docs/Assets/Extensions/ExtensionsSvg.tsx b/src/docs/Assets/Extensions/ExtensionsSvg.tsx index a6638c6..362aa38 100644 --- a/src/docs/Assets/Extensions/ExtensionsSvg.tsx +++ b/src/docs/Assets/Extensions/ExtensionsSvg.tsx @@ -1,34 +1,34 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { SimpleEditor } from "../../lib/SimpleEditor"; -import EnkryptSVG from "@polkadot-cloud/assets/extensions/svg/enkrypt.svg?react"; -import FearlessWalletSVG from "@polkadot-cloud/assets/extensions/svg/fearlesswallet.svg?react"; -import MetamaskSVG from "@polkadot-cloud/assets/extensions/svg/metamask.svg?react"; -import NovaWalletSVG from "@polkadot-cloud/assets/extensions/svg/novawallet.svg?react"; -import PolkadotJSSVG from "@polkadot-cloud/assets/extensions/svg/polkadotjs.svg?react"; -import PolkaGateSVG from "@polkadot-cloud/assets/extensions/svg/polkagate.svg?react"; -import SubwalletJSSVG from "@polkadot-cloud/assets/extensions/svg/subwalletjs.svg?react"; -import TalismanSVG from "@polkadot-cloud/assets/extensions/svg/talisman.svg?react"; -import LedgerSVG from "@polkadot-cloud/assets/extensions/svg/ledger.svg?react"; -import LedgerSquareSVG from "@polkadot-cloud/assets/extensions/svg/ledgersquare.svg?react"; -import PolkadotVaultSVG from "@polkadot-cloud/assets/extensions/svg/polkadotvault.svg?react"; -import WalletConnectSVG from "@polkadot-cloud/assets/extensions/svg/walletconnect.svg?react"; +import EnkryptSVG from "@polkadot-ui/assets/extensions/svg/enkrypt.svg?react"; +import FearlessWalletSVG from "@polkadot-ui/assets/extensions/svg/fearlesswallet.svg?react"; +import MetamaskSVG from "@polkadot-ui/assets/extensions/svg/metamask.svg?react"; +import NovaWalletSVG from "@polkadot-ui/assets/extensions/svg/novawallet.svg?react"; +import PolkadotJSSVG from "@polkadot-ui/assets/extensions/svg/polkadotjs.svg?react"; +import PolkaGateSVG from "@polkadot-ui/assets/extensions/svg/polkagate.svg?react"; +import SubwalletJSSVG from "@polkadot-ui/assets/extensions/svg/subwalletjs.svg?react"; +import TalismanSVG from "@polkadot-ui/assets/extensions/svg/talisman.svg?react"; +import LedgerSVG from "@polkadot-ui/assets/extensions/svg/ledger.svg?react"; +import LedgerSquareSVG from "@polkadot-ui/assets/extensions/svg/ledgersquare.svg?react"; +import PolkadotVaultSVG from "@polkadot-ui/assets/extensions/svg/polkadotvault.svg?react"; +import WalletConnectSVG from "@polkadot-ui/assets/extensions/svg/walletconnect.svg?react"; import { Demo } from "../../lib/Demo"; export const ExtensionsSvg = () => { - const code = `import EnkryptSVG from "@polkadot-cloud/assets/extensions/svg/enkrypt.svg?react"; -import FearlessWalletSVG from "@polkadot-cloud/assets/extensions/svg/fearlesswallet.svg?react"; -import MetaMaskSVG from "@polkadot-cloud/assets/extensions/svg/metamask.svg?react"; -import NovaWalletSVG from "@polkadot-cloud/assets/extensions/svg/novawallet.svg?react"; -import PolkadotJSSVG from "@polkadot-cloud/assets/extensions/svg/polkadotjs.svg?react"; -import PolkaGateSVG from "@polkadot-cloud/assets/extensions/svg/polkagate.svg?react"; -import SubwalletJSSVG from "@polkadot-cloud/assets/extensions/svg/subwalletjs.svg?react"; -import TalismanSVG from "@polkadot-cloud/assets/extensions/svg/talisman.svg?react"; -import LedgerSVG from "@polkadot-cloud/assets/extensions/svg/ledger.svg?react"; -import LedgerSquareSVG from "@polkadot-cloud/assets/extensions/svg/ledgersquare.svg?react"; -import PolkadotVaultSVG from "@polkadot-cloud/assets/extensions/svg/polkadotvault.svg?react"; -import WalletConnectSVG from "@polkadot-cloud/assets/extensions/svg/walletconnect.svg?react"; + const code = `import EnkryptSVG from "@polkadot-ui/assets/extensions/svg/enkrypt.svg?react"; +import FearlessWalletSVG from "@polkadot-ui/assets/extensions/svg/fearlesswallet.svg?react"; +import MetaMaskSVG from "@polkadot-ui/assets/extensions/svg/metamask.svg?react"; +import NovaWalletSVG from "@polkadot-ui/assets/extensions/svg/novawallet.svg?react"; +import PolkadotJSSVG from "@polkadot-ui/assets/extensions/svg/polkadotjs.svg?react"; +import PolkaGateSVG from "@polkadot-ui/assets/extensions/svg/polkagate.svg?react"; +import SubwalletJSSVG from "@polkadot-ui/assets/extensions/svg/subwalletjs.svg?react"; +import TalismanSVG from "@polkadot-ui/assets/extensions/svg/talisman.svg?react"; +import LedgerSVG from "@polkadot-ui/assets/extensions/svg/ledger.svg?react"; +import LedgerSquareSVG from "@polkadot-ui/assets/extensions/svg/ledgersquare.svg?react"; +import PolkadotVaultSVG from "@polkadot-ui/assets/extensions/svg/polkadotvault.svg?react"; +import WalletConnectSVG from "@polkadot-ui/assets/extensions/svg/walletconnect.svg?react"; const App = () => ( <> diff --git a/src/docs/Assets/Extensions/IconsOnly.tsx b/src/docs/Assets/Extensions/IconsOnly.tsx index cfd17ff..44a0619 100644 --- a/src/docs/Assets/Extensions/IconsOnly.tsx +++ b/src/docs/Assets/Extensions/IconsOnly.tsx @@ -1,16 +1,16 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ -import EnkryptSVG from "@polkadot-cloud/assets/extensions/svg/enkrypt.svg?react"; -import FearlessWalletSVG from "@polkadot-cloud/assets/extensions/svg/fearlesswallet.svg?react"; -import PolkadotJSSVG from "@polkadot-cloud/assets/extensions/svg/polkadotjs.svg?react"; -import PolkaGateSVG from "@polkadot-cloud/assets/extensions/svg/polkagate.svg?react"; -import SubwalletJSSVG from "@polkadot-cloud/assets/extensions/svg/subwalletjs.svg?react"; -import TalismanSVG from "@polkadot-cloud/assets/extensions/svg/talisman.svg?react"; -import LedgerSVG from "@polkadot-cloud/assets/extensions/svg/ledger.svg?react"; -import PolkadotVaultSVG from "@polkadot-cloud/assets/extensions/svg/polkadotvault.svg?react"; -import WalletConnectSVG from "@polkadot-cloud/assets/extensions/svg/walletconnect.svg?react"; -import MetamaskSVG from "@polkadot-cloud/assets/extensions/svg/metamask.svg?react"; +import EnkryptSVG from "@polkadot-ui/assets/extensions/svg/enkrypt.svg?react"; +import FearlessWalletSVG from "@polkadot-ui/assets/extensions/svg/fearlesswallet.svg?react"; +import PolkadotJSSVG from "@polkadot-ui/assets/extensions/svg/polkadotjs.svg?react"; +import PolkaGateSVG from "@polkadot-ui/assets/extensions/svg/polkagate.svg?react"; +import SubwalletJSSVG from "@polkadot-ui/assets/extensions/svg/subwalletjs.svg?react"; +import TalismanSVG from "@polkadot-ui/assets/extensions/svg/talisman.svg?react"; +import LedgerSVG from "@polkadot-ui/assets/extensions/svg/ledger.svg?react"; +import PolkadotVaultSVG from "@polkadot-ui/assets/extensions/svg/polkadotvault.svg?react"; +import WalletConnectSVG from "@polkadot-ui/assets/extensions/svg/walletconnect.svg?react"; +import MetamaskSVG from "@polkadot-ui/assets/extensions/svg/metamask.svg?react"; import { Demo } from "../../lib/Demo"; export const IconsOnly = () => { diff --git a/src/docs/Assets/Extensions/ImportSimple.tsx b/src/docs/Assets/Extensions/ImportSimple.tsx index 21e9c54..15e2b86 100644 --- a/src/docs/Assets/Extensions/ImportSimple.tsx +++ b/src/docs/Assets/Extensions/ImportSimple.tsx @@ -1,14 +1,14 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { SimpleEditor } from "../../lib/SimpleEditor"; export const ImportSimple = () => { const code = `// Import browser extensions as object or array. -import { Extensions, ExtensionsArray } from "@polkadot-cloud/assets/extensions"; +import { Extensions, ExtensionsArray } from "@polkadot-ui/assets/extensions"; // Import hardware wallets as object or array. -import { Hardware, HardwareArray } from "@polkadot-cloud/assets/extensions"; +import { Hardware, HardwareArray } from "@polkadot-ui/assets/extensions"; // Get PolkaGate extension metadata. console.log(Extensions['polkagate']); diff --git a/src/docs/Assets/Extensions/index.tsx b/src/docs/Assets/Extensions/index.tsx index f2a6137..15e9c96 100644 --- a/src/docs/Assets/Extensions/index.tsx +++ b/src/docs/Assets/Extensions/index.tsx @@ -1,10 +1,10 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { Doc } from "./main"; export const Extensions = () => (
- +
); diff --git a/src/docs/Assets/Extensions/main.tsx b/src/docs/Assets/Extensions/main.tsx index 513770e..8cc3e7c 100644 --- a/src/docs/Assets/Extensions/main.tsx +++ b/src/docs/Assets/Extensions/main.tsx @@ -1,5 +1,5 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { Edit } from "../../lib/Edit"; import { Note } from "../../lib/Note"; @@ -30,7 +30,7 @@ export const Doc = ({ folder, npm }: DocProps) => {

Web3 wallet extension data can be imported from{" "} @@ -38,7 +38,7 @@ export const Doc = ({ folder, npm }: DocProps) => { {" "} and{" "} @@ -157,7 +157,7 @@ export const Doc = ({ folder, npm }: DocProps) => { To open a PR and add additional extensions to this list, refer to the instructions hosted in this package's{" "} diff --git a/src/docs/Assets/Validators/ValidatorOperator.tsx b/src/docs/Assets/Validators/ValidatorOperator.tsx index 895bf2b..617d7fe 100644 --- a/src/docs/Assets/Validators/ValidatorOperator.tsx +++ b/src/docs/Assets/Validators/ValidatorOperator.tsx @@ -1,12 +1,12 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { SimpleEditor } from "../../lib/SimpleEditor"; export const ValidatorOperator = () => { const code = `// Import validator community object. -import { ValidatorCommunity } from '@polkadot-cloud/assets/validators';`; +import { ValidatorCommunity } from '@polkadot-ui/assets/validators';`; return ; }; diff --git a/src/docs/Assets/Validators/index.tsx b/src/docs/Assets/Validators/index.tsx index be5ad70..863d2e9 100644 --- a/src/docs/Assets/Validators/index.tsx +++ b/src/docs/Assets/Validators/index.tsx @@ -1,10 +1,10 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { Doc } from "./main"; export const Validators = () => (

- +
); diff --git a/src/docs/Assets/Validators/main.tsx b/src/docs/Assets/Validators/main.tsx index a262b4c..7ce8c64 100644 --- a/src/docs/Assets/Validators/main.tsx +++ b/src/docs/Assets/Validators/main.tsx @@ -1,5 +1,5 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { Note } from "../../lib/Note"; import { Edit } from "../../lib/Edit"; @@ -22,7 +22,7 @@ export const Doc = ({ folder, npm }: DocProps) => {

A list of validator operators are available as a{" "} @@ -40,7 +40,7 @@ export const Doc = ({ folder, npm }: DocProps) => { To open a PR to add an additional validator operator to this list, refer to the instructions hosted in this package's{" "} diff --git a/src/docs/Components/Connect/ExtensionAccountsProvider/AccountsExample.tsx b/src/docs/Components/Connect/ExtensionAccountsProvider/AccountsExample.tsx index be5e050..91b1ed7 100644 --- a/src/docs/Components/Connect/ExtensionAccountsProvider/AccountsExample.tsx +++ b/src/docs/Components/Connect/ExtensionAccountsProvider/AccountsExample.tsx @@ -1,12 +1,12 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { SimpleEditor } from "../../../lib/SimpleEditor"; export const AccountsExample = () => { const code = `import { useExtensionAccounts, -} from '@polkadot-cloud/react/hooks'; +} from '@polkadot-ui/react/hooks'; const ConnectedAccounts = () => { const { extensionAccounts } = useExtensionAccounts(); diff --git a/src/docs/Components/Connect/ExtensionAccountsProvider/ConnectExample.tsx b/src/docs/Components/Connect/ExtensionAccountsProvider/ConnectExample.tsx index 9658394..e6518e2 100644 --- a/src/docs/Components/Connect/ExtensionAccountsProvider/ConnectExample.tsx +++ b/src/docs/Components/Connect/ExtensionAccountsProvider/ConnectExample.tsx @@ -1,12 +1,12 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { SimpleEditor } from "../../../lib/SimpleEditor"; export const ConnectExample = () => { const code = `import { useExtensionAccounts, - } from '@polkadot-cloud/react/hooks'; + } from '@polkadot-ui/react/hooks'; const ConnectAccounts = () => { const { connectExtensionAccounts } = useExtensionAccounts(); diff --git a/src/docs/Components/Connect/ExtensionAccountsProvider/ProviderExample.tsx b/src/docs/Components/Connect/ExtensionAccountsProvider/ProviderExample.tsx index 5ef0829..1f5b6a4 100644 --- a/src/docs/Components/Connect/ExtensionAccountsProvider/ProviderExample.tsx +++ b/src/docs/Components/Connect/ExtensionAccountsProvider/ProviderExample.tsx @@ -1,5 +1,5 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { SimpleEditor } from "../../../lib/SimpleEditor"; @@ -7,7 +7,7 @@ export const ProviderExample = () => { const code = `import { ExtensionsProvider, ExtensionAccountsProvider, - } from '@polkadot-cloud/react/providers'; + } from '@polkadot-ui/react/providers'; const AppWithProviders = () => { diff --git a/src/docs/Components/Connect/ExtensionAccountsProvider/index.tsx b/src/docs/Components/Connect/ExtensionAccountsProvider/index.tsx index 7045588..1251554 100644 --- a/src/docs/Components/Connect/ExtensionAccountsProvider/index.tsx +++ b/src/docs/Components/Connect/ExtensionAccountsProvider/index.tsx @@ -1,12 +1,12 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { Doc } from "./main"; export const ExtensionAccountsProvider = () => (

diff --git a/src/docs/Components/Connect/ExtensionAccountsProvider/main.tsx b/src/docs/Components/Connect/ExtensionAccountsProvider/main.tsx index 76ffe51..943dbcd 100644 --- a/src/docs/Components/Connect/ExtensionAccountsProvider/main.tsx +++ b/src/docs/Components/Connect/ExtensionAccountsProvider/main.tsx @@ -1,5 +1,5 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { Edit } from "../../../lib/Edit"; import { Header } from "../../../lib/Header"; @@ -17,7 +17,7 @@ export const Doc = ({ folder, npm }: DocProps) => { import { ExtensionsProvider, ExtensionAccountsProvider, - } from "@polkadot-cloud/react/providers"; + } from "@polkadot-ui/react/providers"; .... @@ -42,7 +42,7 @@ export const Doc = ({ folder, npm }: DocProps) => { />

diff --git a/src/docs/Components/Connect/ExtensionsProvider/HookExample.tsx b/src/docs/Components/Connect/ExtensionsProvider/HookExample.tsx index be75c94..51452b1 100644 --- a/src/docs/Components/Connect/ExtensionsProvider/HookExample.tsx +++ b/src/docs/Components/Connect/ExtensionsProvider/HookExample.tsx @@ -1,10 +1,10 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { SimpleEditor } from "../../../lib/SimpleEditor"; export const HookExample = () => { - const code = `import { useExtensions } from '@polkadot-cloud/react/hooks'; + const code = `import { useExtensions } from '@polkadot-ui/react/hooks'; const App = () => { const { extensions } = useExtensions(); diff --git a/src/docs/Components/Connect/ExtensionsProvider/ProviderExample.tsx b/src/docs/Components/Connect/ExtensionsProvider/ProviderExample.tsx index 7db5c0c..a3786cf 100644 --- a/src/docs/Components/Connect/ExtensionsProvider/ProviderExample.tsx +++ b/src/docs/Components/Connect/ExtensionsProvider/ProviderExample.tsx @@ -1,10 +1,10 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { SimpleEditor } from "../../../lib/SimpleEditor"; export const ProviderExample = () => { - const code = `import { ExtensionsProvider } from '@polkadot-cloud/react/providers'; + const code = `import { ExtensionsProvider } from '@polkadot-ui/react/providers'; const AppWithProvider = () => ( diff --git a/src/docs/Components/Connect/ExtensionsProvider/index.tsx b/src/docs/Components/Connect/ExtensionsProvider/index.tsx index 8277597..b3c4847 100644 --- a/src/docs/Components/Connect/ExtensionsProvider/index.tsx +++ b/src/docs/Components/Connect/ExtensionsProvider/index.tsx @@ -1,12 +1,12 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { Doc } from "./main"; export const ExtensionsProvider = () => (

diff --git a/src/docs/Components/Connect/ExtensionsProvider/main.tsx b/src/docs/Components/Connect/ExtensionsProvider/main.tsx index 5e79d7e..a011455 100644 --- a/src/docs/Components/Connect/ExtensionsProvider/main.tsx +++ b/src/docs/Components/Connect/ExtensionsProvider/main.tsx @@ -1,5 +1,5 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { Edit } from "../../../lib/Edit"; import { Header } from "../../../lib/Header"; @@ -16,7 +16,7 @@ export const Doc = ({ folder, npm }: DocProps) => { import { ExtensionsProvider, ExtensionAccountsProvider, - } from "@polkadot-cloud/react/providers"; + } from "@polkadot-ui/react/providers"; .... @@ -41,7 +41,7 @@ export const Doc = ({ folder, npm }: DocProps) => { />

diff --git a/src/docs/Components/Odometer/OdometerH1.tsx b/src/docs/Components/Odometer/OdometerH1.tsx index db3bbcc..0ecb0c5 100644 --- a/src/docs/Components/Odometer/OdometerH1.tsx +++ b/src/docs/Components/Odometer/OdometerH1.tsx @@ -1,9 +1,9 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { useState } from "react"; import { SimpleEditor } from "../../lib/SimpleEditor"; -import { Odometer } from "@polkadot-cloud/react/complex/Odometer"; +import { Odometer } from "@polkadot-ui/react/complex/Odometer"; import BigNumber from "bignumber.js"; import { Demo } from "../../lib/Demo"; diff --git a/src/docs/Components/Odometer/index.tsx b/src/docs/Components/Odometer/index.tsx index 76b42ec..baf70e7 100644 --- a/src/docs/Components/Odometer/index.tsx +++ b/src/docs/Components/Odometer/index.tsx @@ -1,10 +1,10 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { Doc } from "./main"; export const Odometer = () => (

- +
); diff --git a/src/docs/Components/Odometer/main.tsx b/src/docs/Components/Odometer/main.tsx index afaeda5..4fa5146 100644 --- a/src/docs/Components/Odometer/main.tsx +++ b/src/docs/Components/Odometer/main.tsx @@ -1,5 +1,5 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { Edit } from "../../lib/Edit"; import { Note } from "../../lib/Note"; @@ -20,7 +20,7 @@ export const Doc = ({ folder, npm }: DocProps) => { />

diff --git a/src/docs/Components/Overlay/OpenOverlay.tsx b/src/docs/Components/Overlay/OpenOverlay.tsx index e7c51f7..b0eed8f 100644 --- a/src/docs/Components/Overlay/OpenOverlay.tsx +++ b/src/docs/Components/Overlay/OpenOverlay.tsx @@ -1,10 +1,10 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { SimpleEditor } from "../../lib/SimpleEditor"; export const OpenOverlay = () => { - const code = `import { useOverlay } from '@polkadot-cloud/react/hooks'; + const code = `import { useOverlay } from '@polkadot-ui/react/hooks'; export const AppComponent = () => { const { openModal } = useOverlay().modal; diff --git a/src/docs/Components/Overlay/OverlayBasic.tsx b/src/docs/Components/Overlay/OverlayBasic.tsx index 18bf461..8d8c729 100644 --- a/src/docs/Components/Overlay/OverlayBasic.tsx +++ b/src/docs/Components/Overlay/OverlayBasic.tsx @@ -1,10 +1,10 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { SimpleEditor } from "../../lib/SimpleEditor"; export const OverlayBasic = () => { - const code = `import { Overlay } from '@polkadot-cloud/react'; + const code = `import { Overlay } from '@polkadot-ui/react'; import { MyModal, AnotherModal } from './modals'; import { FallbackModal } from './fallback-modal'; diff --git a/src/docs/Components/Overlay/OverlayConfig.tsx b/src/docs/Components/Overlay/OverlayConfig.tsx index 1e4e423..c3eba25 100644 --- a/src/docs/Components/Overlay/OverlayConfig.tsx +++ b/src/docs/Components/Overlay/OverlayConfig.tsx @@ -1,5 +1,5 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { SimpleEditor } from "../../lib/SimpleEditor"; diff --git a/src/docs/Components/Overlay/OverlayProvider.tsx b/src/docs/Components/Overlay/OverlayProvider.tsx index 240fccc..5a9d716 100644 --- a/src/docs/Components/Overlay/OverlayProvider.tsx +++ b/src/docs/Components/Overlay/OverlayProvider.tsx @@ -1,10 +1,10 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { SimpleEditor } from "../../lib/SimpleEditor"; export const OverlayProvider = () => { - const code = `import { OverlayProvider } from '@polkadot-cloud/react/providers'; + const code = `import { OverlayProvider } from '@polkadot-ui/react/providers'; const AppWithProvider = () => ( diff --git a/src/docs/Components/Overlay/index.tsx b/src/docs/Components/Overlay/index.tsx index a3e36b9..a160079 100644 --- a/src/docs/Components/Overlay/index.tsx +++ b/src/docs/Components/Overlay/index.tsx @@ -1,10 +1,10 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { Doc } from "./main"; export const Overlay = () => (

- +
); diff --git a/src/docs/Components/Overlay/main.tsx b/src/docs/Components/Overlay/main.tsx index 3dbc651..b96cf67 100644 --- a/src/docs/Components/Overlay/main.tsx +++ b/src/docs/Components/Overlay/main.tsx @@ -1,5 +1,5 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { Edit } from "../../lib/Edit"; import { Note } from "../../lib/Note"; @@ -24,7 +24,7 @@ export const Doc = ({ folder, npm }: DocProps) => {

An{" "} @@ -32,7 +32,7 @@ export const Doc = ({ folder, npm }: DocProps) => { {" "} context and{" "} diff --git a/src/docs/Components/Polkicon/PolkiconColors.tsx b/src/docs/Components/Polkicon/PolkiconColors.tsx index e072ffa..c238172 100644 --- a/src/docs/Components/Polkicon/PolkiconColors.tsx +++ b/src/docs/Components/Polkicon/PolkiconColors.tsx @@ -1,7 +1,7 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ -import { Polkicon } from "@polkadot-cloud/react/icons/Polkicon"; +import { Polkicon } from "@polkadot-ui/react/icons/Polkicon"; import { SimpleEditor } from "../../lib/SimpleEditor"; import { Demo } from "../../lib/Demo"; diff --git a/src/docs/Components/Polkicon/PolkiconCopy.tsx b/src/docs/Components/Polkicon/PolkiconCopy.tsx index 299e296..cf5afc8 100644 --- a/src/docs/Components/Polkicon/PolkiconCopy.tsx +++ b/src/docs/Components/Polkicon/PolkiconCopy.tsx @@ -1,7 +1,7 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ -import { Polkicon } from "@polkadot-cloud/react/icons/Polkicon"; +import { Polkicon } from "@polkadot-ui/react/icons/Polkicon"; import { SimpleEditor } from "../../lib/SimpleEditor"; import { Demo } from "../../lib/Demo"; diff --git a/src/docs/Components/Polkicon/PolkiconSize.tsx b/src/docs/Components/Polkicon/PolkiconSize.tsx index d1133ce..f7f8724 100644 --- a/src/docs/Components/Polkicon/PolkiconSize.tsx +++ b/src/docs/Components/Polkicon/PolkiconSize.tsx @@ -1,7 +1,7 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ -import { Polkicon } from "@polkadot-cloud/react/icons/Polkicon"; +import { Polkicon } from "@polkadot-ui/react/icons/Polkicon"; import { SimpleEditor } from "../../lib/SimpleEditor"; import { Demo } from "../../lib/Demo"; diff --git a/src/docs/Components/Polkicon/PolkiconTheme.tsx b/src/docs/Components/Polkicon/PolkiconTheme.tsx index 0fa1b0e..0db0630 100644 --- a/src/docs/Components/Polkicon/PolkiconTheme.tsx +++ b/src/docs/Components/Polkicon/PolkiconTheme.tsx @@ -1,7 +1,7 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ -import { Polkicon } from "@polkadot-cloud/react/icons/Polkicon"; +import { Polkicon } from "@polkadot-ui/react/icons/Polkicon"; import { SimpleEditor } from "../../lib/SimpleEditor"; import { Demo } from "../../lib/Demo"; diff --git a/src/docs/Components/Polkicon/index.tsx b/src/docs/Components/Polkicon/index.tsx index ed4e63a..887b2c3 100644 --- a/src/docs/Components/Polkicon/index.tsx +++ b/src/docs/Components/Polkicon/index.tsx @@ -1,10 +1,10 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { Doc } from "./main"; export const Polkicon = () => (

- +
); diff --git a/src/docs/Components/Polkicon/main.tsx b/src/docs/Components/Polkicon/main.tsx index c131d34..321169f 100644 --- a/src/docs/Components/Polkicon/main.tsx +++ b/src/docs/Components/Polkicon/main.tsx @@ -1,5 +1,5 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { Edit } from "../../lib/Edit"; import { Header } from "../../lib/Header"; @@ -23,7 +23,7 @@ export const Doc = ({ folder, npm }: DocProps) => { />

@@ -41,7 +41,7 @@ export const Doc = ({ folder, npm }: DocProps) => { the Polkicon component. To add support to other networks, contributors are welcome to{" "} @@ -63,7 +63,7 @@ export const Doc = ({ folder, npm }: DocProps) => { outerColor prop. This is the color of the outermost circle of the icon. The default outerColor value is the{" "} --background-default variable, used throughout the Polkadot - Cloud library of UI components.{" "} + UI library of UI components.{" "}

The default value can be overridden with a custom color, or be set to{" "} @@ -79,7 +79,7 @@ export const Doc = ({ folder, npm }: DocProps) => {

If the address provided to the polkadot icon is not a valid one (using - the isValidAddress from @polkadot-cloud/utils + the isValidAddress from @polkadot-ui/utils ), then a generic "deactive" Polkicon wll appear;

diff --git a/src/docs/GettingStarted/Installation/CSSThemes.tsx b/src/docs/GettingStarted/Installation/CSSThemes.tsx index 8cc054e..49e3943 100644 --- a/src/docs/GettingStarted/Installation/CSSThemes.tsx +++ b/src/docs/GettingStarted/Installation/CSSThemes.tsx @@ -1,13 +1,13 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { SimpleEditor } from "../../lib/SimpleEditor"; export const CSSThemes = () => { const code = `// Top of app hierarchy. E.g. index.tsx, main.tsx. -import "@polkadot-cloud/core/accent/polkadot-relay.css"; -import "@polkadot-cloud/core/theme/cloud/index.css"; +import "@polkadot-ui/core/accent/polkadot-relay.css"; +import "@polkadot-ui/core/theme/default/index.css"; ... diff --git a/src/docs/GettingStarted/Installation/InstallBasic.tsx b/src/docs/GettingStarted/Installation/InstallBasic.tsx index bdb6e9a..c557f19 100644 --- a/src/docs/GettingStarted/Installation/InstallBasic.tsx +++ b/src/docs/GettingStarted/Installation/InstallBasic.tsx @@ -1,10 +1,10 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { SimpleEditor } from "../../lib/SimpleEditor"; export const InstallBasic = () => { - const code = `yarn add @polkadot-cloud/core @polkadot-cloud/assets @polkadot-cloud/utils`; + const code = `yarn add @polkadot-ui/core @polkadot-ui/assets @polkadot-ui/utils`; return ; }; diff --git a/src/docs/GettingStarted/Installation/InstallReact.tsx b/src/docs/GettingStarted/Installation/InstallReact.tsx index aad0d0b..be83723 100644 --- a/src/docs/GettingStarted/Installation/InstallReact.tsx +++ b/src/docs/GettingStarted/Installation/InstallReact.tsx @@ -1,10 +1,10 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { SimpleEditor } from "../../lib/SimpleEditor"; export const InstallReact = () => { - const code = `yarn add @polkadot-cloud/react`; + const code = `yarn add @polkadot-ui/react`; return ; }; diff --git a/src/docs/GettingStarted/Installation/InstallReactCore.tsx b/src/docs/GettingStarted/Installation/InstallReactCore.tsx index 5cc90ea..607cf69 100644 --- a/src/docs/GettingStarted/Installation/InstallReactCore.tsx +++ b/src/docs/GettingStarted/Installation/InstallReactCore.tsx @@ -1,10 +1,10 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { SimpleEditor } from "../../lib/SimpleEditor"; export const InstallReactCore = () => { - const code = `yarn add @polkadot-cloud/core @polkadot-cloud/react`; + const code = `yarn add @polkadot-ui/core @polkadot-ui/react`; return ; }; diff --git a/src/docs/GettingStarted/Installation/index.tsx b/src/docs/GettingStarted/Installation/index.tsx index 310b1a4..b40019f 100644 --- a/src/docs/GettingStarted/Installation/index.tsx +++ b/src/docs/GettingStarted/Installation/index.tsx @@ -1,5 +1,5 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { Doc } from "./main"; diff --git a/src/docs/GettingStarted/Installation/main.tsx b/src/docs/GettingStarted/Installation/main.tsx index f6b4a29..58547fe 100644 --- a/src/docs/GettingStarted/Installation/main.tsx +++ b/src/docs/GettingStarted/Installation/main.tsx @@ -1,5 +1,5 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { Link } from "react-router-dom"; import { Edit } from "../../lib/Edit"; @@ -18,12 +18,12 @@ export const Doc = ({ folder }: DocProps) => {

Basic Installation

- If your project requires Polkadot Cloud CSS variables, assets, or + If your project requires Polkadot UI CSS variables, assets, or utilities, install the following dependencies:

@@ -48,8 +48,8 @@ export const Doc = ({ folder }: DocProps) => {

Installation for React

- Many of the UI components of @polkadot‑cloud/react{" "} - use CSS variables from @polkadot‑cloud/core. If you + Many of the UI components of @polkadot‑ui/react{" "} + use CSS variables from @polkadot‑ui/core. If you are only using headless components from react, then{" "} core is not required and react can be installed on its own: @@ -78,7 +78,7 @@ export const Doc = ({ folder }: DocProps) => {

- That's it! You're now ready to start using Polkadot Cloud UI components. + That's it! You're now ready to start using Polkadot UI UI components.

diff --git a/src/docs/GettingStarted/Overview/index.tsx b/src/docs/GettingStarted/Overview/index.tsx index 8e4e214..02e333c 100644 --- a/src/docs/GettingStarted/Overview/index.tsx +++ b/src/docs/GettingStarted/Overview/index.tsx @@ -1,5 +1,5 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { Doc } from "./main"; diff --git a/src/docs/GettingStarted/Overview/main.tsx b/src/docs/GettingStarted/Overview/main.tsx index df8b95b..941bef4 100644 --- a/src/docs/GettingStarted/Overview/main.tsx +++ b/src/docs/GettingStarted/Overview/main.tsx @@ -1,5 +1,5 @@ -/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors -SPDX-License-Identifier: GPL-3.0-only */ +/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors +SPDX-License-Identifier: MIT */ import { Edit } from "../../lib/Edit"; import { Header } from "../../lib/Header"; @@ -13,13 +13,13 @@ export const Doc = ({ folder }: DocProps) => {

Introduction

- Polkadot Cloud hosts a library of assets, ranging from data sources, + Polkadot UI hosts a library of assets, ranging from data sources, graphical elements, to fully functional components, for app developers to plug and play into their codebases.

@@ -27,42 +27,42 @@ export const Doc = ({ folder }: DocProps) => {