From 63e1970e70ec261cc88837ba6587321bbf23b960 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rui=20Sim=C3=A3o?= Date: Thu, 14 Sep 2023 09:15:38 +0100 Subject: [PATCH 1/3] wip --- packages/icons2/coin/package.json | 30 +++ packages/icons2/coin/src/Icon.tsx | 42 ++++ packages/icons2/coin/src/common/BTC.tsx | 21 ++ packages/icons2/coin/src/common/ETH.tsx | 36 ++++ packages/icons2/coin/src/common/USDT.tsx | 20 ++ packages/icons2/coin/src/common/index.ts | 3 + packages/icons2/coin/src/polkadot/AUSD.tsx | 52 +++++ packages/icons2/coin/src/polkadot/DOT.tsx | 23 +++ packages/icons2/coin/src/polkadot/IBTC.tsx | 38 ++++ packages/icons2/coin/src/polkadot/INTR.tsx | 30 +++ packages/icons2/coin/src/polkadot/KAR.tsx | 51 +++++ packages/icons2/coin/src/polkadot/KBTC.tsx | 64 ++++++ packages/icons2/coin/src/polkadot/KINT.tsx | 56 +++++ packages/icons2/coin/src/polkadot/KSM.tsx | 29 +++ packages/icons2/coin/src/polkadot/LDOT.tsx | 44 ++++ packages/icons2/coin/src/polkadot/LKSM.tsx | 30 +++ packages/icons2/coin/src/polkadot/LSKSM.tsx | 29 +++ packages/icons2/coin/src/polkadot/MOVR.tsx | 191 ++++++++++++++++++ packages/icons2/coin/src/polkadot/SKSM.tsx | 29 +++ packages/icons2/coin/src/polkadot/VKSM.tsx | 29 +++ packages/icons2/coin/src/polkadot/index.ts | 22 ++ packages/icons2/coin/src/polkadot/qDOT.tsx | 50 +++++ packages/icons2/coin/src/polkadot/qIBTC.tsx | 38 ++++ packages/icons2/coin/src/polkadot/qINTR.tsx | 30 +++ packages/icons2/coin/src/polkadot/qKBTC.tsx | 64 ++++++ packages/icons2/coin/src/polkadot/qKINT.tsx | 56 +++++ packages/icons2/coin/src/polkadot/qKSM.tsx | 25 +++ packages/icons2/coin/src/polkadot/qMOVR.tsx | 191 ++++++++++++++++++ packages/icons2/coin/src/polkadot/qUSDT.tsx | 25 +++ .../icons2/coin/src/stories/coin.stories.tsx | 54 +++++ .../coin/src/stories/common.stories.tsx | 54 +++++ packages/icons2/coin/tsconfig.json | 5 + packages/icons2/coin/tsup.config.ts | 8 + packages/icons2/common/package.json | 30 +++ .../common/src/ArrowPathRoundedSquare.tsx | 25 +++ packages/icons2/common/src/ArrowRight.tsx | 21 ++ .../icons2/common/src/ArrowRightCircle.tsx | 13 ++ .../common/src/ArrowTopRightOnSquare.tsx | 25 +++ packages/icons2/common/src/ArrowsUpDown.tsx | 25 +++ packages/icons2/common/src/CheckCircle.tsx | 25 +++ packages/icons2/common/src/ChevronDown.tsx | 21 ++ packages/icons2/common/src/ChevronRight.tsx | 21 ++ packages/icons2/common/src/Cog.tsx | 26 +++ .../icons2/common/src/DocumentDuplicate.tsx | 25 +++ .../icons2/common/src/InformationCircle.tsx | 25 +++ packages/icons2/common/src/ListBullet.tsx | 25 +++ packages/icons2/common/src/PencilSquare.tsx | 25 +++ packages/icons2/common/src/PlusCircle.tsx | 21 ++ .../common/src/PresentationChartBar.tsx | 25 +++ packages/icons2/common/src/Warning.tsx | 25 +++ packages/icons2/common/src/XCircle.tsx | 25 +++ packages/icons2/common/src/XMark.tsx | 21 ++ packages/icons2/common/src/index.ts | 18 ++ packages/icons2/common/tsconfig.json | 5 + packages/icons2/common/tsup.config.ts | 8 + packages/icons2/core/package.json | 29 +++ packages/icons2/core/src/index.tsx | 42 ++++ packages/icons2/core/tsconfig.json | 5 + packages/icons2/core/tsup.config.ts | 8 + pnpm-workspace.yaml | 1 + 60 files changed, 2034 insertions(+) create mode 100644 packages/icons2/coin/package.json create mode 100644 packages/icons2/coin/src/Icon.tsx create mode 100644 packages/icons2/coin/src/common/BTC.tsx create mode 100644 packages/icons2/coin/src/common/ETH.tsx create mode 100644 packages/icons2/coin/src/common/USDT.tsx create mode 100644 packages/icons2/coin/src/common/index.ts create mode 100644 packages/icons2/coin/src/polkadot/AUSD.tsx create mode 100644 packages/icons2/coin/src/polkadot/DOT.tsx create mode 100644 packages/icons2/coin/src/polkadot/IBTC.tsx create mode 100644 packages/icons2/coin/src/polkadot/INTR.tsx create mode 100644 packages/icons2/coin/src/polkadot/KAR.tsx create mode 100644 packages/icons2/coin/src/polkadot/KBTC.tsx create mode 100644 packages/icons2/coin/src/polkadot/KINT.tsx create mode 100644 packages/icons2/coin/src/polkadot/KSM.tsx create mode 100644 packages/icons2/coin/src/polkadot/LDOT.tsx create mode 100644 packages/icons2/coin/src/polkadot/LKSM.tsx create mode 100644 packages/icons2/coin/src/polkadot/LSKSM.tsx create mode 100644 packages/icons2/coin/src/polkadot/MOVR.tsx create mode 100644 packages/icons2/coin/src/polkadot/SKSM.tsx create mode 100644 packages/icons2/coin/src/polkadot/VKSM.tsx create mode 100644 packages/icons2/coin/src/polkadot/index.ts create mode 100644 packages/icons2/coin/src/polkadot/qDOT.tsx create mode 100644 packages/icons2/coin/src/polkadot/qIBTC.tsx create mode 100644 packages/icons2/coin/src/polkadot/qINTR.tsx create mode 100644 packages/icons2/coin/src/polkadot/qKBTC.tsx create mode 100644 packages/icons2/coin/src/polkadot/qKINT.tsx create mode 100644 packages/icons2/coin/src/polkadot/qKSM.tsx create mode 100644 packages/icons2/coin/src/polkadot/qMOVR.tsx create mode 100644 packages/icons2/coin/src/polkadot/qUSDT.tsx create mode 100644 packages/icons2/coin/src/stories/coin.stories.tsx create mode 100644 packages/icons2/coin/src/stories/common.stories.tsx create mode 100644 packages/icons2/coin/tsconfig.json create mode 100644 packages/icons2/coin/tsup.config.ts create mode 100644 packages/icons2/common/package.json create mode 100644 packages/icons2/common/src/ArrowPathRoundedSquare.tsx create mode 100644 packages/icons2/common/src/ArrowRight.tsx create mode 100644 packages/icons2/common/src/ArrowRightCircle.tsx create mode 100644 packages/icons2/common/src/ArrowTopRightOnSquare.tsx create mode 100644 packages/icons2/common/src/ArrowsUpDown.tsx create mode 100644 packages/icons2/common/src/CheckCircle.tsx create mode 100644 packages/icons2/common/src/ChevronDown.tsx create mode 100644 packages/icons2/common/src/ChevronRight.tsx create mode 100644 packages/icons2/common/src/Cog.tsx create mode 100644 packages/icons2/common/src/DocumentDuplicate.tsx create mode 100644 packages/icons2/common/src/InformationCircle.tsx create mode 100644 packages/icons2/common/src/ListBullet.tsx create mode 100644 packages/icons2/common/src/PencilSquare.tsx create mode 100644 packages/icons2/common/src/PlusCircle.tsx create mode 100644 packages/icons2/common/src/PresentationChartBar.tsx create mode 100644 packages/icons2/common/src/Warning.tsx create mode 100644 packages/icons2/common/src/XCircle.tsx create mode 100644 packages/icons2/common/src/XMark.tsx create mode 100644 packages/icons2/common/src/index.ts create mode 100644 packages/icons2/common/tsconfig.json create mode 100644 packages/icons2/common/tsup.config.ts create mode 100644 packages/icons2/core/package.json create mode 100644 packages/icons2/core/src/index.tsx create mode 100644 packages/icons2/core/tsconfig.json create mode 100644 packages/icons2/core/tsup.config.ts diff --git a/packages/icons2/coin/package.json b/packages/icons2/coin/package.json new file mode 100644 index 000000000..1992d99ce --- /dev/null +++ b/packages/icons2/coin/package.json @@ -0,0 +1,30 @@ +{ + "name": "@just_testing13/coin-icons", + "version": "0.0.0", + "main": "src/index.ts", + "files": [ + "dist" + ], + "license": "MIT", + "sideEffects": false, + "scripts": { + "lint": "eslint .", + "lint:fix": "eslint . --ext ts,tsx --fix", + "build": "tsup src/index.ts --dts", + "prepack": "clean-package", + "postpack": "clean-package restore" + }, + "peerDependencies": { + "react": ">=18", + "react-dom": ">=18" + }, + "devDependencies": { + "clean-package": "^2.2.0", + "react": "^18.2.0", + "react-dom": "^18.2.0" + }, + "dependencies": { + "@just_testing13/theme": "workspace:*" + }, + "clean-package": "../../../clean-package.config.json" +} diff --git a/packages/icons2/coin/src/Icon.tsx b/packages/icons2/coin/src/Icon.tsx new file mode 100644 index 000000000..acf1bdd94 --- /dev/null +++ b/packages/icons2/coin/src/Icon.tsx @@ -0,0 +1,42 @@ +import type { Colors } from '@just_testing13/theme'; + +import styled from 'styled-components'; +import { theme, resolveColor } from '@just_testing13/theme'; +import { SVGAttributes, forwardRef } from 'react'; + +type IconSize = keyof typeof theme.icon.sizes; + +type StyledIconProps = { + $size: IconSize; + $color?: Colors; +}; + +const StyledIcon = styled.svg` + color: ${({ $color }) => resolveColor($color)}; + width: ${({ $size }) => theme.icon.sizes[$size]}; + height: ${({ $size }) => theme.icon.sizes[$size]}; + display: inline-block; + user-select: none; + flex-shrink: 0; + overflow: hidden; +`; + +type Props = { + size?: IconSize; + color?: Colors; +}; + +type NativeAttrs = Omit, keyof Props>; + +type IconProps = Props & NativeAttrs; + +const Icon = forwardRef( + ({ size = 'md', color = 'primary', ...props }, ref): JSX.Element => ( + + ) +); + +Icon.displayName = 'Icon'; + +export { Icon }; +export type { IconProps, IconSize }; diff --git a/packages/icons2/coin/src/common/BTC.tsx b/packages/icons2/coin/src/common/BTC.tsx new file mode 100644 index 000000000..f6638496a --- /dev/null +++ b/packages/icons2/coin/src/common/BTC.tsx @@ -0,0 +1,21 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../Icon'; + +const BTC = forwardRef((props, ref) => ( + + BTC + + + +)); + +BTC.displayName = 'BTC'; + +export { BTC }; diff --git a/packages/icons2/coin/src/common/ETH.tsx b/packages/icons2/coin/src/common/ETH.tsx new file mode 100644 index 000000000..9344b1f60 --- /dev/null +++ b/packages/icons2/coin/src/common/ETH.tsx @@ -0,0 +1,36 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../Icon'; + +const ETH = forwardRef((props, ref) => ( + + ETH + + + + + + + + + + + + + + + + + + + + + + + + +)); + +ETH.displayName = 'ETH'; + +export { ETH }; diff --git a/packages/icons2/coin/src/common/USDT.tsx b/packages/icons2/coin/src/common/USDT.tsx new file mode 100644 index 000000000..7115a574f --- /dev/null +++ b/packages/icons2/coin/src/common/USDT.tsx @@ -0,0 +1,20 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../Icon'; + +const USDT = forwardRef((props, ref) => ( + + USDT + + + +)); + +USDT.displayName = 'USDT'; + +export { USDT }; diff --git a/packages/icons2/coin/src/common/index.ts b/packages/icons2/coin/src/common/index.ts new file mode 100644 index 000000000..be97eadae --- /dev/null +++ b/packages/icons2/coin/src/common/index.ts @@ -0,0 +1,3 @@ +export { BTC } from './BTC'; +export { ETH } from './ETH'; +export { USDT } from './USDT'; diff --git a/packages/icons2/coin/src/polkadot/AUSD.tsx b/packages/icons2/coin/src/polkadot/AUSD.tsx new file mode 100644 index 000000000..5d723d1bb --- /dev/null +++ b/packages/icons2/coin/src/polkadot/AUSD.tsx @@ -0,0 +1,52 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const AUSD = forwardRef((props, ref) => ( + + AUSD + + + + + + + + + + + + + + + + + + + + +)); + +AUSD.displayName = 'AUSD'; + +export { AUSD }; diff --git a/packages/icons2/coin/src/polkadot/DOT.tsx b/packages/icons2/coin/src/polkadot/DOT.tsx new file mode 100644 index 000000000..589a255da --- /dev/null +++ b/packages/icons2/coin/src/polkadot/DOT.tsx @@ -0,0 +1,23 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const DOT = forwardRef((props, ref) => ( + + DOT + + + + + + + + + + + +)); + +DOT.displayName = 'DOT'; + +export { DOT }; diff --git a/packages/icons2/coin/src/polkadot/IBTC.tsx b/packages/icons2/coin/src/polkadot/IBTC.tsx new file mode 100644 index 000000000..bdc2292dd --- /dev/null +++ b/packages/icons2/coin/src/polkadot/IBTC.tsx @@ -0,0 +1,38 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const IBTC = forwardRef((props, ref) => ( + + IBTC + + + + + + + + + + + + + + + + + +)); + +IBTC.displayName = 'IBTC'; + +export { IBTC }; diff --git a/packages/icons2/coin/src/polkadot/INTR.tsx b/packages/icons2/coin/src/polkadot/INTR.tsx new file mode 100644 index 000000000..d7cc5d515 --- /dev/null +++ b/packages/icons2/coin/src/polkadot/INTR.tsx @@ -0,0 +1,30 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const INTR = forwardRef((props, ref) => ( + + INTR + + + + + + + + + + + + + + + +)); + +INTR.displayName = 'INTR'; + +export { INTR }; diff --git a/packages/icons2/coin/src/polkadot/KAR.tsx b/packages/icons2/coin/src/polkadot/KAR.tsx new file mode 100644 index 000000000..2417b7b07 --- /dev/null +++ b/packages/icons2/coin/src/polkadot/KAR.tsx @@ -0,0 +1,51 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const KAR = forwardRef((props, ref) => ( + + KAR + + + + + + + + + + + + + + + + + + + +)); + +KAR.displayName = 'KAR'; + +export { KAR }; diff --git a/packages/icons2/coin/src/polkadot/KBTC.tsx b/packages/icons2/coin/src/polkadot/KBTC.tsx new file mode 100644 index 000000000..097f4b45b --- /dev/null +++ b/packages/icons2/coin/src/polkadot/KBTC.tsx @@ -0,0 +1,64 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const KBTC = forwardRef((props, ref) => ( + + KBTC + + + + + + + + + + + + + + + + + + + + + + + + +)); + +KBTC.displayName = 'KBTC'; + +export { KBTC }; diff --git a/packages/icons2/coin/src/polkadot/KINT.tsx b/packages/icons2/coin/src/polkadot/KINT.tsx new file mode 100644 index 000000000..67ef105bc --- /dev/null +++ b/packages/icons2/coin/src/polkadot/KINT.tsx @@ -0,0 +1,56 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const KINT = forwardRef((props, ref) => ( + + KINT + + + + + + + + + + + + + + + + + + + + + + +)); + +KINT.displayName = 'KINT'; + +export { KINT }; diff --git a/packages/icons2/coin/src/polkadot/KSM.tsx b/packages/icons2/coin/src/polkadot/KSM.tsx new file mode 100644 index 000000000..1421d1802 --- /dev/null +++ b/packages/icons2/coin/src/polkadot/KSM.tsx @@ -0,0 +1,29 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const KSM = forwardRef((props, ref) => ( + + KSM + + + + + + + + + + +)); + +KSM.displayName = 'KSM'; + +export { KSM }; diff --git a/packages/icons2/coin/src/polkadot/LDOT.tsx b/packages/icons2/coin/src/polkadot/LDOT.tsx new file mode 100644 index 000000000..75b28c983 --- /dev/null +++ b/packages/icons2/coin/src/polkadot/LDOT.tsx @@ -0,0 +1,44 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const LDOT = forwardRef((props, ref) => ( + + LDOT + + + + + + + + + + + + + + + + + +)); + +LDOT.displayName = 'LDOT'; + +export { LDOT }; diff --git a/packages/icons2/coin/src/polkadot/LKSM.tsx b/packages/icons2/coin/src/polkadot/LKSM.tsx new file mode 100644 index 000000000..01bb9e69f --- /dev/null +++ b/packages/icons2/coin/src/polkadot/LKSM.tsx @@ -0,0 +1,30 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const LKSM = forwardRef((props, ref) => ( + + LKSM + + + + + + + + +)); + +LKSM.displayName = 'LKSM'; + +export { LKSM }; diff --git a/packages/icons2/coin/src/polkadot/LSKSM.tsx b/packages/icons2/coin/src/polkadot/LSKSM.tsx new file mode 100644 index 000000000..2af1468fb --- /dev/null +++ b/packages/icons2/coin/src/polkadot/LSKSM.tsx @@ -0,0 +1,29 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const LSKSM = forwardRef((props, ref) => ( + + LSKSM + + + + + + + + + + + + + + +)); + +LSKSM.displayName = 'LSKSM'; + +export { LSKSM }; diff --git a/packages/icons2/coin/src/polkadot/MOVR.tsx b/packages/icons2/coin/src/polkadot/MOVR.tsx new file mode 100644 index 000000000..67d4ef199 --- /dev/null +++ b/packages/icons2/coin/src/polkadot/MOVR.tsx @@ -0,0 +1,191 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const MOVR = forwardRef((props, ref) => ( + + MOVR + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +)); + +MOVR.displayName = 'MOVR'; + +export { MOVR }; diff --git a/packages/icons2/coin/src/polkadot/SKSM.tsx b/packages/icons2/coin/src/polkadot/SKSM.tsx new file mode 100644 index 000000000..2f6bb35f0 --- /dev/null +++ b/packages/icons2/coin/src/polkadot/SKSM.tsx @@ -0,0 +1,29 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const SKSM = forwardRef((props, ref) => ( + + SKSM + + + + + + + + + + + + + + +)); + +SKSM.displayName = 'SKSM'; + +export { SKSM }; diff --git a/packages/icons2/coin/src/polkadot/VKSM.tsx b/packages/icons2/coin/src/polkadot/VKSM.tsx new file mode 100644 index 000000000..b2e2f7348 --- /dev/null +++ b/packages/icons2/coin/src/polkadot/VKSM.tsx @@ -0,0 +1,29 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const VKSM = forwardRef((props, ref) => ( + + VKSM + + + + + + + + + + + + + + +)); + +VKSM.displayName = 'VKSM'; + +export { VKSM }; diff --git a/packages/icons2/coin/src/polkadot/index.ts b/packages/icons2/coin/src/polkadot/index.ts new file mode 100644 index 000000000..410793e16 --- /dev/null +++ b/packages/icons2/coin/src/polkadot/index.ts @@ -0,0 +1,22 @@ +export { AUSD } from './AUSD'; +export { DOT } from './DOT'; +export { IBTC } from './IBTC'; +export { INTR } from './INTR'; +export { KAR } from './KAR'; +export { KBTC } from './KBTC'; +export { KINT } from './KINT'; +export { KSM } from './KSM'; +export { LDOT } from './LDOT'; +export { LKSM } from './LKSM'; +export { LSKSM } from './LSKSM'; +export { MOVR } from './MOVR'; +export { qDOT } from './qDOT'; +export { qIBTC } from './qIBTC'; +export { qINTR } from './qINTR'; +export { qKBTC } from './qKBTC'; +export { qKINT } from './qKINT'; +export { qKSM } from './qKSM'; +export { qMOVR } from './qMOVR'; +export { qUSDT } from './qUSDT'; +export { SKSM } from './SKSM'; +export { VKSM } from './VKSM'; diff --git a/packages/icons2/coin/src/polkadot/qDOT.tsx b/packages/icons2/coin/src/polkadot/qDOT.tsx new file mode 100644 index 000000000..4cf5b4556 --- /dev/null +++ b/packages/icons2/coin/src/polkadot/qDOT.tsx @@ -0,0 +1,50 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const qDOT = forwardRef((props, ref) => ( + + qDOT + + + + + + + + + + + + + + + + + + + + +)); + +qDOT.displayName = 'qDOT'; + +export { qDOT }; diff --git a/packages/icons2/coin/src/polkadot/qIBTC.tsx b/packages/icons2/coin/src/polkadot/qIBTC.tsx new file mode 100644 index 000000000..cbe8f2f26 --- /dev/null +++ b/packages/icons2/coin/src/polkadot/qIBTC.tsx @@ -0,0 +1,38 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const qIBTC = forwardRef((props, ref) => ( + + qIBTC + + + + + + + + + + + + + + + + + +)); + +qIBTC.displayName = 'qIBTC'; + +export { qIBTC }; diff --git a/packages/icons2/coin/src/polkadot/qINTR.tsx b/packages/icons2/coin/src/polkadot/qINTR.tsx new file mode 100644 index 000000000..3e289205b --- /dev/null +++ b/packages/icons2/coin/src/polkadot/qINTR.tsx @@ -0,0 +1,30 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const qINTR = forwardRef((props, ref) => ( + + qINTR + + + + + + + + + + + + + + + +)); + +qINTR.displayName = 'qINTR'; + +export { qINTR }; diff --git a/packages/icons2/coin/src/polkadot/qKBTC.tsx b/packages/icons2/coin/src/polkadot/qKBTC.tsx new file mode 100644 index 000000000..27f660c90 --- /dev/null +++ b/packages/icons2/coin/src/polkadot/qKBTC.tsx @@ -0,0 +1,64 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const qKBTC = forwardRef((props, ref) => ( + + qKBTC + + + + + + + + + + + + + + + + + + + + + + + + +)); + +qKBTC.displayName = 'qKBTC'; + +export { qKBTC }; diff --git a/packages/icons2/coin/src/polkadot/qKINT.tsx b/packages/icons2/coin/src/polkadot/qKINT.tsx new file mode 100644 index 000000000..195b80ad4 --- /dev/null +++ b/packages/icons2/coin/src/polkadot/qKINT.tsx @@ -0,0 +1,56 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const qKINT = forwardRef((props, ref) => ( + + qKINT + + + + + + + + + + + + + + + + + + + + + + +)); + +qKINT.displayName = 'qKINT'; + +export { qKINT }; diff --git a/packages/icons2/coin/src/polkadot/qKSM.tsx b/packages/icons2/coin/src/polkadot/qKSM.tsx new file mode 100644 index 000000000..887f04111 --- /dev/null +++ b/packages/icons2/coin/src/polkadot/qKSM.tsx @@ -0,0 +1,25 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const qKSM = forwardRef((props, ref) => ( + + qKSM + + + + + + + + + + +)); + +qKSM.displayName = 'qKSM'; + +export { qKSM }; diff --git a/packages/icons2/coin/src/polkadot/qMOVR.tsx b/packages/icons2/coin/src/polkadot/qMOVR.tsx new file mode 100644 index 000000000..19bca704b --- /dev/null +++ b/packages/icons2/coin/src/polkadot/qMOVR.tsx @@ -0,0 +1,191 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const qMOVR = forwardRef((props, ref) => ( + + qMOVR + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +)); + +qMOVR.displayName = 'qMOVR'; + +export { qMOVR }; diff --git a/packages/icons2/coin/src/polkadot/qUSDT.tsx b/packages/icons2/coin/src/polkadot/qUSDT.tsx new file mode 100644 index 000000000..ec05cde52 --- /dev/null +++ b/packages/icons2/coin/src/polkadot/qUSDT.tsx @@ -0,0 +1,25 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../../Icon'; + +const qUSDT = forwardRef((props, ref) => ( + + qUSDT + + + + + + + + + + +)); + +qUSDT.displayName = 'qUSDT'; + +export { qUSDT }; diff --git a/packages/icons2/coin/src/stories/coin.stories.tsx b/packages/icons2/coin/src/stories/coin.stories.tsx new file mode 100644 index 000000000..b4245dbf9 --- /dev/null +++ b/packages/icons2/coin/src/stories/coin.stories.tsx @@ -0,0 +1,54 @@ +import { Meta, StoryObj } from '@storybook/react'; + +import * as SVGS from '../svg/coin'; +import { Icon, IconProps } from '../Icon'; + +export const Default: StoryObj = { + args: { + size: 'md' + }, + render: (args) => ( + <> + {Object.entries(SVGS).map(([key, Comp]) => ( +
+ + + {key} + +
+ ))} + + ) +}; + +export default { + title: 'Icons/Coin', + component: Icon, + decorators: [ + (Story) => ( +
+ +
+ ) + ] +} as Meta; diff --git a/packages/icons2/coin/src/stories/common.stories.tsx b/packages/icons2/coin/src/stories/common.stories.tsx new file mode 100644 index 000000000..dbfcd4454 --- /dev/null +++ b/packages/icons2/coin/src/stories/common.stories.tsx @@ -0,0 +1,54 @@ +import { Meta, StoryObj } from '@storybook/react'; + +import * as SVGS from '../svg/common'; +import { Icon, IconProps } from '../Icon'; + +export const Default: StoryObj = { + args: { + size: 'md' + }, + render: (args) => ( + <> + {Object.entries(SVGS).map(([key, Comp]) => ( +
+ + + {key} + +
+ ))} + + ) +}; + +export default { + title: 'Icons/Common', + component: Icon, + decorators: [ + (Story) => ( +
+ +
+ ) + ] +} as Meta; diff --git a/packages/icons2/coin/tsconfig.json b/packages/icons2/coin/tsconfig.json new file mode 100644 index 000000000..f61004816 --- /dev/null +++ b/packages/icons2/coin/tsconfig.json @@ -0,0 +1,5 @@ +{ + "extends": "../../../tsconfig.json", + "compilerOptions": { "baseUrl": ".", "declaration": false }, + "include": ["src"] +} diff --git a/packages/icons2/coin/tsup.config.ts b/packages/icons2/coin/tsup.config.ts new file mode 100644 index 000000000..fd2bba042 --- /dev/null +++ b/packages/icons2/coin/tsup.config.ts @@ -0,0 +1,8 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + clean: true, + target: 'es2019', + format: ['cjs', 'esm'], + banner: { js: '"use client";' } +}); diff --git a/packages/icons2/common/package.json b/packages/icons2/common/package.json new file mode 100644 index 000000000..e38a27fb4 --- /dev/null +++ b/packages/icons2/common/package.json @@ -0,0 +1,30 @@ +{ + "name": "@just_testing13/icons", + "version": "0.1.3", + "main": "src/index.ts", + "files": [ + "dist" + ], + "license": "MIT", + "sideEffects": false, + "scripts": { + "lint": "eslint .", + "lint:fix": "eslint . --ext ts,tsx --fix", + "build": "tsup src/index.ts --dts", + "prepack": "clean-package", + "postpack": "clean-package restore" + }, + "peerDependencies": { + "react": ">=18", + "react-dom": ">=18" + }, + "devDependencies": { + "clean-package": "^2.2.0", + "react": "^18.2.0", + "react-dom": "^18.2.0" + }, + "dependencies": { + "@just_testing13/icons-core": "workspace:*" + }, + "clean-package": "../../../clean-package.config.json" +} diff --git a/packages/icons2/common/src/ArrowPathRoundedSquare.tsx b/packages/icons2/common/src/ArrowPathRoundedSquare.tsx new file mode 100644 index 000000000..217778d15 --- /dev/null +++ b/packages/icons2/common/src/ArrowPathRoundedSquare.tsx @@ -0,0 +1,25 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../Icon'; + +const ArrowPathRoundedSquare = forwardRef((props, ref) => ( + + + +)); + +ArrowPathRoundedSquare.displayName = 'ArrowPathRoundedSquare'; + +export { ArrowPathRoundedSquare }; diff --git a/packages/icons2/common/src/ArrowRight.tsx b/packages/icons2/common/src/ArrowRight.tsx new file mode 100644 index 000000000..8ce3e9fd2 --- /dev/null +++ b/packages/icons2/common/src/ArrowRight.tsx @@ -0,0 +1,21 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../Icon'; + +const ArrowRight = forwardRef((props, ref) => ( + + + +)); + +ArrowRight.displayName = 'ArrowRight'; + +export { ArrowRight }; diff --git a/packages/icons2/common/src/ArrowRightCircle.tsx b/packages/icons2/common/src/ArrowRightCircle.tsx new file mode 100644 index 000000000..b0368029d --- /dev/null +++ b/packages/icons2/common/src/ArrowRightCircle.tsx @@ -0,0 +1,13 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../Icon'; + +const ArrowRightCircle = forwardRef((props, ref) => ( + + + +)); + +ArrowRightCircle.displayName = 'ArrowRightCircle'; + +export { ArrowRightCircle }; diff --git a/packages/icons2/common/src/ArrowTopRightOnSquare.tsx b/packages/icons2/common/src/ArrowTopRightOnSquare.tsx new file mode 100644 index 000000000..f0f95950c --- /dev/null +++ b/packages/icons2/common/src/ArrowTopRightOnSquare.tsx @@ -0,0 +1,25 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../Icon'; + +const ArrowTopRightOnSquare = forwardRef((props, ref) => ( + + + +)); + +ArrowTopRightOnSquare.displayName = 'ArrowTopRightOnSquare'; + +export { ArrowTopRightOnSquare }; diff --git a/packages/icons2/common/src/ArrowsUpDown.tsx b/packages/icons2/common/src/ArrowsUpDown.tsx new file mode 100644 index 000000000..5578fa6e3 --- /dev/null +++ b/packages/icons2/common/src/ArrowsUpDown.tsx @@ -0,0 +1,25 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../Icon'; + +const ArrowsUpDown = forwardRef((props, ref) => ( + + + +)); + +ArrowsUpDown.displayName = 'ArrowsUpDown'; + +export { ArrowsUpDown }; diff --git a/packages/icons2/common/src/CheckCircle.tsx b/packages/icons2/common/src/CheckCircle.tsx new file mode 100644 index 000000000..6e22a96a3 --- /dev/null +++ b/packages/icons2/common/src/CheckCircle.tsx @@ -0,0 +1,25 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../Icon'; + +const CheckCircle = forwardRef((props, ref) => ( + + + +)); + +CheckCircle.displayName = 'CheckCircle'; + +export { CheckCircle }; diff --git a/packages/icons2/common/src/ChevronDown.tsx b/packages/icons2/common/src/ChevronDown.tsx new file mode 100644 index 000000000..6f9801e20 --- /dev/null +++ b/packages/icons2/common/src/ChevronDown.tsx @@ -0,0 +1,21 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../Icon'; + +const ChevronDown = forwardRef((props, ref) => ( + + + +)); + +ChevronDown.displayName = 'ChevronDown'; + +export { ChevronDown }; diff --git a/packages/icons2/common/src/ChevronRight.tsx b/packages/icons2/common/src/ChevronRight.tsx new file mode 100644 index 000000000..5561743b2 --- /dev/null +++ b/packages/icons2/common/src/ChevronRight.tsx @@ -0,0 +1,21 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../Icon'; + +const ChevronRight = forwardRef((props, ref) => ( + + + +)); + +ChevronRight.displayName = 'ChevronRight'; + +export { ChevronRight }; diff --git a/packages/icons2/common/src/Cog.tsx b/packages/icons2/common/src/Cog.tsx new file mode 100644 index 000000000..9b0781086 --- /dev/null +++ b/packages/icons2/common/src/Cog.tsx @@ -0,0 +1,26 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../Icon'; + +const Cog = forwardRef((props, ref) => ( + + + + +)); + +Cog.displayName = 'Cog'; + +export { Cog }; diff --git a/packages/icons2/common/src/DocumentDuplicate.tsx b/packages/icons2/common/src/DocumentDuplicate.tsx new file mode 100644 index 000000000..2c3957229 --- /dev/null +++ b/packages/icons2/common/src/DocumentDuplicate.tsx @@ -0,0 +1,25 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../Icon'; + +const DocumentDuplicate = forwardRef((props, ref) => ( + + + +)); + +DocumentDuplicate.displayName = 'DocumentDuplicate'; + +export { DocumentDuplicate }; diff --git a/packages/icons2/common/src/InformationCircle.tsx b/packages/icons2/common/src/InformationCircle.tsx new file mode 100644 index 000000000..2785c23ea --- /dev/null +++ b/packages/icons2/common/src/InformationCircle.tsx @@ -0,0 +1,25 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../Icon'; + +const InformationCircle = forwardRef((props, ref) => ( + + + +)); + +InformationCircle.displayName = 'InformationCircle'; + +export { InformationCircle }; diff --git a/packages/icons2/common/src/ListBullet.tsx b/packages/icons2/common/src/ListBullet.tsx new file mode 100644 index 000000000..7a76280ae --- /dev/null +++ b/packages/icons2/common/src/ListBullet.tsx @@ -0,0 +1,25 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../Icon'; + +const ListBullet = forwardRef((props, ref) => ( + + + +)); + +ListBullet.displayName = 'ListBullet'; + +export { ListBullet }; diff --git a/packages/icons2/common/src/PencilSquare.tsx b/packages/icons2/common/src/PencilSquare.tsx new file mode 100644 index 000000000..f027fb8ea --- /dev/null +++ b/packages/icons2/common/src/PencilSquare.tsx @@ -0,0 +1,25 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../Icon'; + +const PencilSquare = forwardRef((props, ref) => ( + + + +)); + +PencilSquare.displayName = 'PencilSquare'; + +export { PencilSquare }; diff --git a/packages/icons2/common/src/PlusCircle.tsx b/packages/icons2/common/src/PlusCircle.tsx new file mode 100644 index 000000000..460ee4022 --- /dev/null +++ b/packages/icons2/common/src/PlusCircle.tsx @@ -0,0 +1,21 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../Icon'; + +const PlusCircle = forwardRef((props, ref) => ( + + + +)); + +PlusCircle.displayName = 'PlusCircle'; + +export { PlusCircle }; diff --git a/packages/icons2/common/src/PresentationChartBar.tsx b/packages/icons2/common/src/PresentationChartBar.tsx new file mode 100644 index 000000000..5e5782348 --- /dev/null +++ b/packages/icons2/common/src/PresentationChartBar.tsx @@ -0,0 +1,25 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../Icon'; + +const PresentationChartBar = forwardRef((props, ref) => ( + + + +)); + +PresentationChartBar.displayName = 'PresentationChartBar'; + +export { PresentationChartBar }; diff --git a/packages/icons2/common/src/Warning.tsx b/packages/icons2/common/src/Warning.tsx new file mode 100644 index 000000000..3349ea124 --- /dev/null +++ b/packages/icons2/common/src/Warning.tsx @@ -0,0 +1,25 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../Icon'; + +const Warning = forwardRef((props, ref) => ( + + + +)); + +Warning.displayName = 'Warning'; + +export { Warning }; diff --git a/packages/icons2/common/src/XCircle.tsx b/packages/icons2/common/src/XCircle.tsx new file mode 100644 index 000000000..5c573969c --- /dev/null +++ b/packages/icons2/common/src/XCircle.tsx @@ -0,0 +1,25 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../Icon'; + +const XCircle = forwardRef((props, ref) => ( + + + +)); + +XCircle.displayName = 'XCircle'; + +export { XCircle }; diff --git a/packages/icons2/common/src/XMark.tsx b/packages/icons2/common/src/XMark.tsx new file mode 100644 index 000000000..831d122f4 --- /dev/null +++ b/packages/icons2/common/src/XMark.tsx @@ -0,0 +1,21 @@ +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../../Icon'; + +const XMark = forwardRef((props, ref) => ( + + + +)); + +XMark.displayName = 'XMark'; + +export { XMark }; diff --git a/packages/icons2/common/src/index.ts b/packages/icons2/common/src/index.ts new file mode 100644 index 000000000..94ef00075 --- /dev/null +++ b/packages/icons2/common/src/index.ts @@ -0,0 +1,18 @@ +export { ArrowPathRoundedSquare } from './ArrowPathRoundedSquare'; +export { ArrowRight } from './ArrowRight'; +export { ArrowRightCircle } from './ArrowRightCircle'; +export { ArrowsUpDown } from './ArrowsUpDown'; +export { ArrowTopRightOnSquare } from './ArrowTopRightOnSquare'; +export { CheckCircle } from './CheckCircle'; +export { ChevronDown } from './ChevronDown'; +export { ChevronRight } from './ChevronRight'; +export { Cog } from './Cog'; +export { DocumentDuplicate } from './DocumentDuplicate'; +export { InformationCircle } from './InformationCircle'; +export { ListBullet } from './ListBullet'; +export { PencilSquare } from './PencilSquare'; +export { PlusCircle } from './PlusCircle'; +export { PresentationChartBar } from './PresentationChartBar'; +export { Warning } from './Warning'; +export { XCircle } from './XCircle'; +export { XMark } from './XMark'; diff --git a/packages/icons2/common/tsconfig.json b/packages/icons2/common/tsconfig.json new file mode 100644 index 000000000..f61004816 --- /dev/null +++ b/packages/icons2/common/tsconfig.json @@ -0,0 +1,5 @@ +{ + "extends": "../../../tsconfig.json", + "compilerOptions": { "baseUrl": ".", "declaration": false }, + "include": ["src"] +} diff --git a/packages/icons2/common/tsup.config.ts b/packages/icons2/common/tsup.config.ts new file mode 100644 index 000000000..fd2bba042 --- /dev/null +++ b/packages/icons2/common/tsup.config.ts @@ -0,0 +1,8 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + clean: true, + target: 'es2019', + format: ['cjs', 'esm'], + banner: { js: '"use client";' } +}); diff --git a/packages/icons2/core/package.json b/packages/icons2/core/package.json new file mode 100644 index 000000000..d25bc5bdc --- /dev/null +++ b/packages/icons2/core/package.json @@ -0,0 +1,29 @@ +{ + "name": "@just_testing13/icon", + "version": "0.0.0", + "main": "src/index.ts", + "files": [ + "dist" + ], + "license": "MIT", + "sideEffects": false, + "scripts": { + "lint": "eslint .", + "lint:fix": "eslint . --ext ts,tsx --fix" + }, + "peerDependencies": { + "react": ">=18", + "react-dom": ">=18", + "styled-components": ">=6.0.0" + }, + "devDependencies": { + "@types/styled-components": "^5.1.26", + "clean-package": "^2.2.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "styled-components": "^6.0.7" + }, + "dependencies": { + "@just_testing13/theme": "workspace:*" + } +} diff --git a/packages/icons2/core/src/index.tsx b/packages/icons2/core/src/index.tsx new file mode 100644 index 000000000..acf1bdd94 --- /dev/null +++ b/packages/icons2/core/src/index.tsx @@ -0,0 +1,42 @@ +import type { Colors } from '@just_testing13/theme'; + +import styled from 'styled-components'; +import { theme, resolveColor } from '@just_testing13/theme'; +import { SVGAttributes, forwardRef } from 'react'; + +type IconSize = keyof typeof theme.icon.sizes; + +type StyledIconProps = { + $size: IconSize; + $color?: Colors; +}; + +const StyledIcon = styled.svg` + color: ${({ $color }) => resolveColor($color)}; + width: ${({ $size }) => theme.icon.sizes[$size]}; + height: ${({ $size }) => theme.icon.sizes[$size]}; + display: inline-block; + user-select: none; + flex-shrink: 0; + overflow: hidden; +`; + +type Props = { + size?: IconSize; + color?: Colors; +}; + +type NativeAttrs = Omit, keyof Props>; + +type IconProps = Props & NativeAttrs; + +const Icon = forwardRef( + ({ size = 'md', color = 'primary', ...props }, ref): JSX.Element => ( + + ) +); + +Icon.displayName = 'Icon'; + +export { Icon }; +export type { IconProps, IconSize }; diff --git a/packages/icons2/core/tsconfig.json b/packages/icons2/core/tsconfig.json new file mode 100644 index 000000000..f61004816 --- /dev/null +++ b/packages/icons2/core/tsconfig.json @@ -0,0 +1,5 @@ +{ + "extends": "../../../tsconfig.json", + "compilerOptions": { "baseUrl": ".", "declaration": false }, + "include": ["src"] +} diff --git a/packages/icons2/core/tsup.config.ts b/packages/icons2/core/tsup.config.ts new file mode 100644 index 000000000..fd2bba042 --- /dev/null +++ b/packages/icons2/core/tsup.config.ts @@ -0,0 +1,8 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + clean: true, + target: 'es2019', + format: ['cjs', 'esm'], + banner: { js: '"use client";' } +}); diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 18ec407ef..96d3bf7fa 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,2 +1,3 @@ packages: - 'packages/*' + - 'packages/**/**' From 89f6c6a35e611608625f521ede0e8c692d58c777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rui=20Sim=C3=A3o?= Date: Thu, 14 Sep 2023 10:09:25 +0100 Subject: [PATCH 2/3] refactor(icons): new structure --- package.json | 6 +- packages/components/package.json | 1 + .../src/CoinIcon/CoinIcon.stories.tsx | 2 +- packages/components/src/CoinIcon/CoinIcon.tsx | 5 +- .../src/TokenInput/TokenInput.stories.tsx | 2 +- packages/icons/CHANGELOG.md | 62 ------ packages/{icons2 => icons}/coin/package.json | 2 +- .../{src/svg/coin => coin/src}/common/BTC.tsx | 3 +- .../{src/svg/coin => coin/src}/common/ETH.tsx | 3 +- .../coin/src/common/USDT.tsx | 3 +- .../svg/coin => coin/src}/common/index.ts | 0 packages/icons/coin/src/index.ts | 4 + .../svg/coin => coin/src}/polkadot/AUSD.tsx | 2 +- .../coin/src/polkadot/DOT.tsx | 2 +- .../svg/coin => coin/src}/polkadot/IBTC.tsx | 2 +- .../coin/src/polkadot/INTR.tsx | 2 +- .../coin/src/polkadot/KAR.tsx | 2 +- .../svg/coin => coin/src}/polkadot/KBTC.tsx | 2 +- .../coin/src/polkadot/KINT.tsx | 2 +- .../svg/coin => coin/src}/polkadot/KSM.tsx | 3 +- .../svg/coin => coin/src}/polkadot/LDOT.tsx | 2 +- .../svg/coin => coin/src}/polkadot/LKSM.tsx | 2 +- .../coin/src/polkadot/LSKSM.tsx | 2 +- .../coin/src/polkadot/MOVR.tsx | 2 +- .../coin/src/polkadot/SKSM.tsx | 2 +- .../coin/src/polkadot/VKSM.tsx | 3 +- .../svg/coin => coin/src}/polkadot/index.ts | 0 .../coin/src/polkadot/qDOT.tsx | 2 +- .../svg/coin => coin/src}/polkadot/qIBTC.tsx | 2 +- .../svg/coin => coin/src}/polkadot/qINTR.tsx | 2 +- .../coin/src/polkadot/qKBTC.tsx | 2 +- .../svg/coin => coin/src}/polkadot/qKINT.tsx | 2 +- .../svg/coin => coin/src}/polkadot/qKSM.tsx | 2 +- .../svg/coin => coin/src}/polkadot/qMOVR.tsx | 2 +- .../coin/src/polkadot/qUSDT.tsx | 2 +- .../coin/src/stories/index.stories.tsx} | 4 +- packages/{icons2 => icons}/coin/tsconfig.json | 0 packages/icons/{ => coin}/tsup.config.ts | 0 .../{icons2 => icons}/common/package.json | 2 +- .../src}/ArrowPathRoundedSquare.tsx | 3 +- .../common/src/ArrowRight.tsx | 3 +- .../src}/ArrowRightCircle.tsx | 2 +- .../common/src/ArrowTopRightOnSquare.tsx | 2 +- .../common => common/src}/ArrowsUpDown.tsx | 2 +- .../svg/common => common/src}/CheckCircle.tsx | 2 +- .../svg/common => common/src}/ChevronDown.tsx | 2 +- .../common/src/ChevronRight.tsx | 2 +- packages/{icons2 => icons}/common/src/Cog.tsx | 2 +- .../src}/DocumentDuplicate.tsx | 2 +- .../common/src/InformationCircle.tsx | 2 +- .../svg/common => common/src}/ListBullet.tsx | 2 +- .../common => common/src}/PencilSquare.tsx | 2 +- .../svg/common => common/src}/PlusCircle.tsx | 2 +- .../src}/PresentationChartBar.tsx | 2 +- .../svg/common => common/src}/Warning.tsx | 2 +- .../svg/common => common/src}/XCircle.tsx | 2 +- .../{src/svg/common => common/src}/XMark.tsx | 2 +- .../{src/svg/common => common/src}/index.ts | 2 + .../src/stories/index.stories.tsx} | 4 +- .../{icons2 => icons}/common/tsconfig.json | 0 .../coin => icons/common}/tsup.config.ts | 0 packages/{icons2 => icons}/core/package.json | 1 + packages/{icons2 => icons}/core/src/index.tsx | 0 packages/{icons2 => icons}/core/tsconfig.json | 0 .../common => icons/core}/tsup.config.ts | 0 packages/icons/package.json | 33 --- packages/icons/src/Icon.tsx | 42 ---- packages/icons/src/index.ts | 3 - packages/icons/src/stories/coin.stories.tsx | 54 ----- packages/icons/src/svg/coin/common/USDT.tsx | 20 -- packages/icons/src/svg/coin/index.ts | 2 - packages/icons/src/svg/coin/polkadot/DOT.tsx | 23 --- packages/icons/src/svg/coin/polkadot/INTR.tsx | 30 --- packages/icons/src/svg/coin/polkadot/KAR.tsx | 51 ----- packages/icons/src/svg/coin/polkadot/KINT.tsx | 56 ----- .../icons/src/svg/coin/polkadot/LSKSM.tsx | 29 --- packages/icons/src/svg/coin/polkadot/MOVR.tsx | 191 ------------------ packages/icons/src/svg/coin/polkadot/SKSM.tsx | 29 --- packages/icons/src/svg/coin/polkadot/VKSM.tsx | 29 --- packages/icons/src/svg/coin/polkadot/qDOT.tsx | 50 ----- .../icons/src/svg/coin/polkadot/qKBTC.tsx | 64 ------ .../icons/src/svg/coin/polkadot/qUSDT.tsx | 25 --- packages/icons/src/svg/common/ArrowRight.tsx | 21 -- .../src/svg/common/ArrowTopRightOnSquare.tsx | 25 --- .../icons/src/svg/common/ChevronRight.tsx | 21 -- packages/icons/src/svg/common/Cog.tsx | 26 --- .../src/svg/common/InformationCircle.tsx | 25 --- packages/icons/src/svg/index.ts | 2 - packages/icons/tsconfig.json | 5 - packages/icons2/coin/src/Icon.tsx | 42 ---- packages/icons2/coin/src/common/BTC.tsx | 21 -- packages/icons2/coin/src/common/ETH.tsx | 36 ---- packages/icons2/coin/src/common/index.ts | 3 - packages/icons2/coin/src/polkadot/AUSD.tsx | 52 ----- packages/icons2/coin/src/polkadot/IBTC.tsx | 38 ---- packages/icons2/coin/src/polkadot/KBTC.tsx | 64 ------ packages/icons2/coin/src/polkadot/KSM.tsx | 29 --- packages/icons2/coin/src/polkadot/LDOT.tsx | 44 ---- packages/icons2/coin/src/polkadot/LKSM.tsx | 30 --- packages/icons2/coin/src/polkadot/index.ts | 22 -- packages/icons2/coin/src/polkadot/qIBTC.tsx | 38 ---- packages/icons2/coin/src/polkadot/qINTR.tsx | 30 --- packages/icons2/coin/src/polkadot/qKINT.tsx | 56 ----- packages/icons2/coin/src/polkadot/qKSM.tsx | 25 --- packages/icons2/coin/src/polkadot/qMOVR.tsx | 191 ------------------ .../coin/src/stories/common.stories.tsx | 54 ----- .../common/src/ArrowPathRoundedSquare.tsx | 25 --- .../icons2/common/src/ArrowRightCircle.tsx | 13 -- packages/icons2/common/src/ArrowsUpDown.tsx | 25 --- packages/icons2/common/src/CheckCircle.tsx | 25 --- packages/icons2/common/src/ChevronDown.tsx | 21 -- .../icons2/common/src/DocumentDuplicate.tsx | 25 --- packages/icons2/common/src/ListBullet.tsx | 25 --- packages/icons2/common/src/PencilSquare.tsx | 25 --- packages/icons2/common/src/PlusCircle.tsx | 21 -- .../common/src/PresentationChartBar.tsx | 25 --- packages/icons2/common/src/Warning.tsx | 25 --- packages/icons2/common/src/XCircle.tsx | 25 --- packages/icons2/common/src/XMark.tsx | 21 -- packages/icons2/common/src/index.ts | 18 -- packages/icons2/core/tsup.config.ts | 8 - pnpm-lock.yaml | 41 +++- 122 files changed, 102 insertions(+), 2087 deletions(-) delete mode 100644 packages/icons/CHANGELOG.md rename packages/{icons2 => icons}/coin/package.json (93%) rename packages/icons/{src/svg/coin => coin/src}/common/BTC.tsx (96%) rename packages/icons/{src/svg/coin => coin/src}/common/ETH.tsx (96%) rename packages/{icons2 => icons}/coin/src/common/USDT.tsx (95%) rename packages/icons/{src/svg/coin => coin/src}/common/index.ts (100%) create mode 100644 packages/icons/coin/src/index.ts rename packages/icons/{src/svg/coin => coin/src}/polkadot/AUSD.tsx (98%) rename packages/{icons2 => icons}/coin/src/polkadot/DOT.tsx (96%) rename packages/icons/{src/svg/coin => coin/src}/polkadot/IBTC.tsx (98%) rename packages/{icons2 => icons}/coin/src/polkadot/INTR.tsx (97%) rename packages/{icons2 => icons}/coin/src/polkadot/KAR.tsx (97%) rename packages/icons/{src/svg/coin => coin/src}/polkadot/KBTC.tsx (99%) rename packages/{icons2 => icons}/coin/src/polkadot/KINT.tsx (99%) rename packages/icons/{src/svg/coin => coin/src}/polkadot/KSM.tsx (97%) rename packages/icons/{src/svg/coin => coin/src}/polkadot/LDOT.tsx (97%) rename packages/icons/{src/svg/coin => coin/src}/polkadot/LKSM.tsx (96%) rename packages/{icons2 => icons}/coin/src/polkadot/LSKSM.tsx (97%) rename packages/{icons2 => icons}/coin/src/polkadot/MOVR.tsx (99%) rename packages/{icons2 => icons}/coin/src/polkadot/SKSM.tsx (97%) rename packages/{icons2 => icons}/coin/src/polkadot/VKSM.tsx (97%) rename packages/icons/{src/svg/coin => coin/src}/polkadot/index.ts (100%) rename packages/{icons2 => icons}/coin/src/polkadot/qDOT.tsx (97%) rename packages/icons/{src/svg/coin => coin/src}/polkadot/qIBTC.tsx (98%) rename packages/icons/{src/svg/coin => coin/src}/polkadot/qINTR.tsx (97%) rename packages/{icons2 => icons}/coin/src/polkadot/qKBTC.tsx (99%) rename packages/icons/{src/svg/coin => coin/src}/polkadot/qKINT.tsx (99%) rename packages/icons/{src/svg/coin => coin/src}/polkadot/qKSM.tsx (96%) rename packages/icons/{src/svg/coin => coin/src}/polkadot/qMOVR.tsx (99%) rename packages/{icons2 => icons}/coin/src/polkadot/qUSDT.tsx (95%) rename packages/{icons2/coin/src/stories/coin.stories.tsx => icons/coin/src/stories/index.stories.tsx} (92%) rename packages/{icons2 => icons}/coin/tsconfig.json (100%) rename packages/icons/{ => coin}/tsup.config.ts (100%) rename packages/{icons2 => icons}/common/package.json (92%) rename packages/icons/{src/svg/common => common/src}/ArrowPathRoundedSquare.tsx (93%) rename packages/{icons2 => icons}/common/src/ArrowRight.tsx (89%) rename packages/icons/{src/svg/common => common/src}/ArrowRightCircle.tsx (92%) rename packages/{icons2 => icons}/common/src/ArrowTopRightOnSquare.tsx (91%) rename packages/icons/{src/svg/common => common/src}/ArrowsUpDown.tsx (90%) rename packages/icons/{src/svg/common => common/src}/CheckCircle.tsx (90%) rename packages/icons/{src/svg/common => common/src}/ChevronDown.tsx (88%) rename packages/{icons2 => icons}/common/src/ChevronRight.tsx (89%) rename packages/{icons2 => icons}/common/src/Cog.tsx (97%) rename packages/icons/{src/svg/common => common/src}/DocumentDuplicate.tsx (94%) rename packages/{icons2 => icons}/common/src/InformationCircle.tsx (91%) rename packages/icons/{src/svg/common => common/src}/ListBullet.tsx (92%) rename packages/icons/{src/svg/common => common/src}/PencilSquare.tsx (92%) rename packages/icons/{src/svg/common => common/src}/PlusCircle.tsx (89%) rename packages/icons/{src/svg/common => common/src}/PresentationChartBar.tsx (92%) rename packages/icons/{src/svg/common => common/src}/Warning.tsx (91%) rename packages/icons/{src/svg/common => common/src}/XCircle.tsx (89%) rename packages/icons/{src/svg/common => common/src}/XMark.tsx (88%) rename packages/icons/{src/svg/common => common/src}/index.ts (88%) rename packages/icons/{src/stories/common.stories.tsx => common/src/stories/index.stories.tsx} (92%) rename packages/{icons2 => icons}/common/tsconfig.json (100%) rename packages/{icons2/coin => icons/common}/tsup.config.ts (100%) rename packages/{icons2 => icons}/core/package.json (96%) rename packages/{icons2 => icons}/core/src/index.tsx (100%) rename packages/{icons2 => icons}/core/tsconfig.json (100%) rename packages/{icons2/common => icons/core}/tsup.config.ts (100%) delete mode 100644 packages/icons/package.json delete mode 100644 packages/icons/src/Icon.tsx delete mode 100644 packages/icons/src/index.ts delete mode 100644 packages/icons/src/stories/coin.stories.tsx delete mode 100644 packages/icons/src/svg/coin/common/USDT.tsx delete mode 100644 packages/icons/src/svg/coin/index.ts delete mode 100644 packages/icons/src/svg/coin/polkadot/DOT.tsx delete mode 100644 packages/icons/src/svg/coin/polkadot/INTR.tsx delete mode 100644 packages/icons/src/svg/coin/polkadot/KAR.tsx delete mode 100644 packages/icons/src/svg/coin/polkadot/KINT.tsx delete mode 100644 packages/icons/src/svg/coin/polkadot/LSKSM.tsx delete mode 100644 packages/icons/src/svg/coin/polkadot/MOVR.tsx delete mode 100644 packages/icons/src/svg/coin/polkadot/SKSM.tsx delete mode 100644 packages/icons/src/svg/coin/polkadot/VKSM.tsx delete mode 100644 packages/icons/src/svg/coin/polkadot/qDOT.tsx delete mode 100644 packages/icons/src/svg/coin/polkadot/qKBTC.tsx delete mode 100644 packages/icons/src/svg/coin/polkadot/qUSDT.tsx delete mode 100644 packages/icons/src/svg/common/ArrowRight.tsx delete mode 100644 packages/icons/src/svg/common/ArrowTopRightOnSquare.tsx delete mode 100644 packages/icons/src/svg/common/ChevronRight.tsx delete mode 100644 packages/icons/src/svg/common/Cog.tsx delete mode 100644 packages/icons/src/svg/common/InformationCircle.tsx delete mode 100644 packages/icons/src/svg/index.ts delete mode 100644 packages/icons/tsconfig.json delete mode 100644 packages/icons2/coin/src/Icon.tsx delete mode 100644 packages/icons2/coin/src/common/BTC.tsx delete mode 100644 packages/icons2/coin/src/common/ETH.tsx delete mode 100644 packages/icons2/coin/src/common/index.ts delete mode 100644 packages/icons2/coin/src/polkadot/AUSD.tsx delete mode 100644 packages/icons2/coin/src/polkadot/IBTC.tsx delete mode 100644 packages/icons2/coin/src/polkadot/KBTC.tsx delete mode 100644 packages/icons2/coin/src/polkadot/KSM.tsx delete mode 100644 packages/icons2/coin/src/polkadot/LDOT.tsx delete mode 100644 packages/icons2/coin/src/polkadot/LKSM.tsx delete mode 100644 packages/icons2/coin/src/polkadot/index.ts delete mode 100644 packages/icons2/coin/src/polkadot/qIBTC.tsx delete mode 100644 packages/icons2/coin/src/polkadot/qINTR.tsx delete mode 100644 packages/icons2/coin/src/polkadot/qKINT.tsx delete mode 100644 packages/icons2/coin/src/polkadot/qKSM.tsx delete mode 100644 packages/icons2/coin/src/polkadot/qMOVR.tsx delete mode 100644 packages/icons2/coin/src/stories/common.stories.tsx delete mode 100644 packages/icons2/common/src/ArrowPathRoundedSquare.tsx delete mode 100644 packages/icons2/common/src/ArrowRightCircle.tsx delete mode 100644 packages/icons2/common/src/ArrowsUpDown.tsx delete mode 100644 packages/icons2/common/src/CheckCircle.tsx delete mode 100644 packages/icons2/common/src/ChevronDown.tsx delete mode 100644 packages/icons2/common/src/DocumentDuplicate.tsx delete mode 100644 packages/icons2/common/src/ListBullet.tsx delete mode 100644 packages/icons2/common/src/PencilSquare.tsx delete mode 100644 packages/icons2/common/src/PlusCircle.tsx delete mode 100644 packages/icons2/common/src/PresentationChartBar.tsx delete mode 100644 packages/icons2/common/src/Warning.tsx delete mode 100644 packages/icons2/common/src/XCircle.tsx delete mode 100644 packages/icons2/common/src/XMark.tsx delete mode 100644 packages/icons2/common/src/index.ts delete mode 100644 packages/icons2/core/tsup.config.ts diff --git a/package.json b/package.json index 27fb171b4..5e2f6bf3c 100644 --- a/package.json +++ b/package.json @@ -8,11 +8,11 @@ }, "scripts": { "dev": "storybook dev -p 6006", - "lint": "eslint packages/**/src --ext .ts,.tsx --config .eslintrc.json --cache", + "lint": "eslint packages/**/src packages/**/**/src --ext .ts,.tsx --config .eslintrc.json --cache", "lint:fix": "pnpm lint --fix", "typecheck": "turbo typecheck", - "format:check": "prettier --check packages/**/src --cache", - "format:write": "prettier --write packages/**/src --cache", + "format:check": "prettier --check packages/**/src packages/**/**/src --cache", + "format:write": "prettier --write packages/**/src packages/**/**/src --cache", "clean": "turbo run clean && rm -rf node_modules", "build": "turbo run build", "build:sb": "storybook build", diff --git a/packages/components/package.json b/packages/components/package.json index 869d241da..9e3a22520 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -32,6 +32,7 @@ "dependencies": { "@just_testing13/hooks": "workspace:*", "@just_testing13/icons": "workspace:*", + "@just_testing13/coin-icons": "workspace:*", "@just_testing13/theme": "workspace:*", "@react-aria/accordion": "3.0.0-alpha.20", "@react-aria/breadcrumbs": "^3.5.4", diff --git a/packages/components/src/CoinIcon/CoinIcon.stories.tsx b/packages/components/src/CoinIcon/CoinIcon.stories.tsx index b86d3936a..4cb8721ea 100644 --- a/packages/components/src/CoinIcon/CoinIcon.stories.tsx +++ b/packages/components/src/CoinIcon/CoinIcon.stories.tsx @@ -1,5 +1,5 @@ import { Meta, StoryFn, StoryObj } from '@storybook/react'; -import * as coins from '@just_testing13/icons/src/svg/coin'; +import * as coins from '@just_testing13/coin-icons'; import { Flex } from '../Flex'; diff --git a/packages/components/src/CoinIcon/CoinIcon.tsx b/packages/components/src/CoinIcon/CoinIcon.tsx index f548a62df..03c69829e 100644 --- a/packages/components/src/CoinIcon/CoinIcon.tsx +++ b/packages/components/src/CoinIcon/CoinIcon.tsx @@ -1,7 +1,6 @@ import { forwardRef } from 'react'; -import { IconProps } from '@just_testing13/icons'; - -import * as coins from '../../../icons/src/svg/coin'; +import { IconProps } from '@just_testing13/coin-icons'; +import * as coins from '@just_testing13/coin-icons'; import { FallbackIcon } from './FallbackIcon'; import { LPCoinIcon } from './LPCoinIcon'; diff --git a/packages/components/src/TokenInput/TokenInput.stories.tsx b/packages/components/src/TokenInput/TokenInput.stories.tsx index c32bd3904..7cbf6ee71 100644 --- a/packages/components/src/TokenInput/TokenInput.stories.tsx +++ b/packages/components/src/TokenInput/TokenInput.stories.tsx @@ -1,5 +1,5 @@ import { Meta, StoryObj } from '@storybook/react'; -import * as coins from '@just_testing13/icons/src/svg/coin'; +import * as coins from '@just_testing13/coin-icons'; import { useState } from 'react'; import { mergeProps } from '@react-aria/utils'; diff --git a/packages/icons/CHANGELOG.md b/packages/icons/CHANGELOG.md deleted file mode 100644 index 209d35076..000000000 --- a/packages/icons/CHANGELOG.md +++ /dev/null @@ -1,62 +0,0 @@ -# @just_testing13/icons - -## 0.1.3 - -### Patch Changes - -- css -- Updated dependencies - - @just_testing13/theme@0.1.3 - -## 0.1.2 - -### Patch Changes - -- failed -- Updated dependencies - - @just_testing13/theme@0.1.2 - -## 0.1.1 - -### Patch Changes - -- c86347b: fixing icons -- testing -- Updated dependencies [c86347b] -- Updated dependencies - - @just_testing13/theme@0.1.1 - -## 0.1.0 - -### Minor Changes - -- testing - -### Patch Changes - -- Updated dependencies - - @just_testing13/theme@0.1.0 - -## 0.0.0 - -### Minor Changes - -- test -- test - -### Patch Changes - -- Updated dependencies -- Updated dependencies - - @just_testing13/theme@0.0.0 - -## 0.0.0-dev-20230913104927 - -### Minor Changes - -- fix - -### Patch Changes - -- Updated dependencies - - @just_testing13/theme@0.0.0-dev-20230913104927 diff --git a/packages/icons2/coin/package.json b/packages/icons/coin/package.json similarity index 93% rename from packages/icons2/coin/package.json rename to packages/icons/coin/package.json index 1992d99ce..97aee8b21 100644 --- a/packages/icons2/coin/package.json +++ b/packages/icons/coin/package.json @@ -24,7 +24,7 @@ "react-dom": "^18.2.0" }, "dependencies": { - "@just_testing13/theme": "workspace:*" + "@just_testing13/icon": "workspace:*" }, "clean-package": "../../../clean-package.config.json" } diff --git a/packages/icons/src/svg/coin/common/BTC.tsx b/packages/icons/coin/src/common/BTC.tsx similarity index 96% rename from packages/icons/src/svg/coin/common/BTC.tsx rename to packages/icons/coin/src/common/BTC.tsx index 019690bf8..fc1fcf780 100644 --- a/packages/icons/src/svg/coin/common/BTC.tsx +++ b/packages/icons/coin/src/common/BTC.tsx @@ -1,6 +1,5 @@ import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const BTC = forwardRef((props, ref) => ( diff --git a/packages/icons/src/svg/coin/common/ETH.tsx b/packages/icons/coin/src/common/ETH.tsx similarity index 96% rename from packages/icons/src/svg/coin/common/ETH.tsx rename to packages/icons/coin/src/common/ETH.tsx index af4c2e57a..deb120ae7 100644 --- a/packages/icons/src/svg/coin/common/ETH.tsx +++ b/packages/icons/coin/src/common/ETH.tsx @@ -1,6 +1,5 @@ import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const ETH = forwardRef((props, ref) => ( diff --git a/packages/icons2/coin/src/common/USDT.tsx b/packages/icons/coin/src/common/USDT.tsx similarity index 95% rename from packages/icons2/coin/src/common/USDT.tsx rename to packages/icons/coin/src/common/USDT.tsx index 7115a574f..579e2726d 100644 --- a/packages/icons2/coin/src/common/USDT.tsx +++ b/packages/icons/coin/src/common/USDT.tsx @@ -1,6 +1,5 @@ import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const USDT = forwardRef((props, ref) => ( diff --git a/packages/icons/src/svg/coin/common/index.ts b/packages/icons/coin/src/common/index.ts similarity index 100% rename from packages/icons/src/svg/coin/common/index.ts rename to packages/icons/coin/src/common/index.ts diff --git a/packages/icons/coin/src/index.ts b/packages/icons/coin/src/index.ts new file mode 100644 index 000000000..28218a47f --- /dev/null +++ b/packages/icons/coin/src/index.ts @@ -0,0 +1,4 @@ +export * from './common'; +export * from './polkadot'; +export { Icon } from '@just_testing13/icon'; +export type { IconProps, IconSize } from '@just_testing13/icon'; diff --git a/packages/icons/src/svg/coin/polkadot/AUSD.tsx b/packages/icons/coin/src/polkadot/AUSD.tsx similarity index 98% rename from packages/icons/src/svg/coin/polkadot/AUSD.tsx rename to packages/icons/coin/src/polkadot/AUSD.tsx index 5d723d1bb..0dff4e9d8 100644 --- a/packages/icons/src/svg/coin/polkadot/AUSD.tsx +++ b/packages/icons/coin/src/polkadot/AUSD.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const AUSD = forwardRef((props, ref) => ( diff --git a/packages/icons2/coin/src/polkadot/DOT.tsx b/packages/icons/coin/src/polkadot/DOT.tsx similarity index 96% rename from packages/icons2/coin/src/polkadot/DOT.tsx rename to packages/icons/coin/src/polkadot/DOT.tsx index 589a255da..678662762 100644 --- a/packages/icons2/coin/src/polkadot/DOT.tsx +++ b/packages/icons/coin/src/polkadot/DOT.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const DOT = forwardRef((props, ref) => ( diff --git a/packages/icons/src/svg/coin/polkadot/IBTC.tsx b/packages/icons/coin/src/polkadot/IBTC.tsx similarity index 98% rename from packages/icons/src/svg/coin/polkadot/IBTC.tsx rename to packages/icons/coin/src/polkadot/IBTC.tsx index bdc2292dd..0c6931a3c 100644 --- a/packages/icons/src/svg/coin/polkadot/IBTC.tsx +++ b/packages/icons/coin/src/polkadot/IBTC.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const IBTC = forwardRef((props, ref) => ( diff --git a/packages/icons2/coin/src/polkadot/INTR.tsx b/packages/icons/coin/src/polkadot/INTR.tsx similarity index 97% rename from packages/icons2/coin/src/polkadot/INTR.tsx rename to packages/icons/coin/src/polkadot/INTR.tsx index d7cc5d515..c9eda937d 100644 --- a/packages/icons2/coin/src/polkadot/INTR.tsx +++ b/packages/icons/coin/src/polkadot/INTR.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const INTR = forwardRef((props, ref) => ( diff --git a/packages/icons2/coin/src/polkadot/KAR.tsx b/packages/icons/coin/src/polkadot/KAR.tsx similarity index 97% rename from packages/icons2/coin/src/polkadot/KAR.tsx rename to packages/icons/coin/src/polkadot/KAR.tsx index 2417b7b07..f108b4a95 100644 --- a/packages/icons2/coin/src/polkadot/KAR.tsx +++ b/packages/icons/coin/src/polkadot/KAR.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const KAR = forwardRef((props, ref) => ( diff --git a/packages/icons/src/svg/coin/polkadot/KBTC.tsx b/packages/icons/coin/src/polkadot/KBTC.tsx similarity index 99% rename from packages/icons/src/svg/coin/polkadot/KBTC.tsx rename to packages/icons/coin/src/polkadot/KBTC.tsx index 097f4b45b..e4beb77eb 100644 --- a/packages/icons/src/svg/coin/polkadot/KBTC.tsx +++ b/packages/icons/coin/src/polkadot/KBTC.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const KBTC = forwardRef((props, ref) => ( diff --git a/packages/icons2/coin/src/polkadot/KINT.tsx b/packages/icons/coin/src/polkadot/KINT.tsx similarity index 99% rename from packages/icons2/coin/src/polkadot/KINT.tsx rename to packages/icons/coin/src/polkadot/KINT.tsx index 67ef105bc..daef0adcf 100644 --- a/packages/icons2/coin/src/polkadot/KINT.tsx +++ b/packages/icons/coin/src/polkadot/KINT.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const KINT = forwardRef((props, ref) => ( diff --git a/packages/icons/src/svg/coin/polkadot/KSM.tsx b/packages/icons/coin/src/polkadot/KSM.tsx similarity index 97% rename from packages/icons/src/svg/coin/polkadot/KSM.tsx rename to packages/icons/coin/src/polkadot/KSM.tsx index 1421d1802..b2337463e 100644 --- a/packages/icons/src/svg/coin/polkadot/KSM.tsx +++ b/packages/icons/coin/src/polkadot/KSM.tsx @@ -1,6 +1,5 @@ import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const KSM = forwardRef((props, ref) => ( diff --git a/packages/icons/src/svg/coin/polkadot/LDOT.tsx b/packages/icons/coin/src/polkadot/LDOT.tsx similarity index 97% rename from packages/icons/src/svg/coin/polkadot/LDOT.tsx rename to packages/icons/coin/src/polkadot/LDOT.tsx index 75b28c983..b44790515 100644 --- a/packages/icons/src/svg/coin/polkadot/LDOT.tsx +++ b/packages/icons/coin/src/polkadot/LDOT.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const LDOT = forwardRef((props, ref) => ( diff --git a/packages/icons/src/svg/coin/polkadot/LKSM.tsx b/packages/icons/coin/src/polkadot/LKSM.tsx similarity index 96% rename from packages/icons/src/svg/coin/polkadot/LKSM.tsx rename to packages/icons/coin/src/polkadot/LKSM.tsx index 01bb9e69f..e0c5df7d0 100644 --- a/packages/icons/src/svg/coin/polkadot/LKSM.tsx +++ b/packages/icons/coin/src/polkadot/LKSM.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const LKSM = forwardRef((props, ref) => ( diff --git a/packages/icons2/coin/src/polkadot/LSKSM.tsx b/packages/icons/coin/src/polkadot/LSKSM.tsx similarity index 97% rename from packages/icons2/coin/src/polkadot/LSKSM.tsx rename to packages/icons/coin/src/polkadot/LSKSM.tsx index 2af1468fb..75e354f75 100644 --- a/packages/icons2/coin/src/polkadot/LSKSM.tsx +++ b/packages/icons/coin/src/polkadot/LSKSM.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const LSKSM = forwardRef((props, ref) => ( diff --git a/packages/icons2/coin/src/polkadot/MOVR.tsx b/packages/icons/coin/src/polkadot/MOVR.tsx similarity index 99% rename from packages/icons2/coin/src/polkadot/MOVR.tsx rename to packages/icons/coin/src/polkadot/MOVR.tsx index 67d4ef199..871981c53 100644 --- a/packages/icons2/coin/src/polkadot/MOVR.tsx +++ b/packages/icons/coin/src/polkadot/MOVR.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const MOVR = forwardRef((props, ref) => ( diff --git a/packages/icons2/coin/src/polkadot/SKSM.tsx b/packages/icons/coin/src/polkadot/SKSM.tsx similarity index 97% rename from packages/icons2/coin/src/polkadot/SKSM.tsx rename to packages/icons/coin/src/polkadot/SKSM.tsx index 2f6bb35f0..41eebb399 100644 --- a/packages/icons2/coin/src/polkadot/SKSM.tsx +++ b/packages/icons/coin/src/polkadot/SKSM.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const SKSM = forwardRef((props, ref) => ( diff --git a/packages/icons2/coin/src/polkadot/VKSM.tsx b/packages/icons/coin/src/polkadot/VKSM.tsx similarity index 97% rename from packages/icons2/coin/src/polkadot/VKSM.tsx rename to packages/icons/coin/src/polkadot/VKSM.tsx index b2e2f7348..a7fbb6e43 100644 --- a/packages/icons2/coin/src/polkadot/VKSM.tsx +++ b/packages/icons/coin/src/polkadot/VKSM.tsx @@ -1,6 +1,5 @@ import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const VKSM = forwardRef((props, ref) => ( diff --git a/packages/icons/src/svg/coin/polkadot/index.ts b/packages/icons/coin/src/polkadot/index.ts similarity index 100% rename from packages/icons/src/svg/coin/polkadot/index.ts rename to packages/icons/coin/src/polkadot/index.ts diff --git a/packages/icons2/coin/src/polkadot/qDOT.tsx b/packages/icons/coin/src/polkadot/qDOT.tsx similarity index 97% rename from packages/icons2/coin/src/polkadot/qDOT.tsx rename to packages/icons/coin/src/polkadot/qDOT.tsx index 4cf5b4556..b840bf19a 100644 --- a/packages/icons2/coin/src/polkadot/qDOT.tsx +++ b/packages/icons/coin/src/polkadot/qDOT.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const qDOT = forwardRef((props, ref) => ( diff --git a/packages/icons/src/svg/coin/polkadot/qIBTC.tsx b/packages/icons/coin/src/polkadot/qIBTC.tsx similarity index 98% rename from packages/icons/src/svg/coin/polkadot/qIBTC.tsx rename to packages/icons/coin/src/polkadot/qIBTC.tsx index cbe8f2f26..c9dfdd9c7 100644 --- a/packages/icons/src/svg/coin/polkadot/qIBTC.tsx +++ b/packages/icons/coin/src/polkadot/qIBTC.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const qIBTC = forwardRef((props, ref) => ( diff --git a/packages/icons/src/svg/coin/polkadot/qINTR.tsx b/packages/icons/coin/src/polkadot/qINTR.tsx similarity index 97% rename from packages/icons/src/svg/coin/polkadot/qINTR.tsx rename to packages/icons/coin/src/polkadot/qINTR.tsx index 3e289205b..2be187129 100644 --- a/packages/icons/src/svg/coin/polkadot/qINTR.tsx +++ b/packages/icons/coin/src/polkadot/qINTR.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const qINTR = forwardRef((props, ref) => ( diff --git a/packages/icons2/coin/src/polkadot/qKBTC.tsx b/packages/icons/coin/src/polkadot/qKBTC.tsx similarity index 99% rename from packages/icons2/coin/src/polkadot/qKBTC.tsx rename to packages/icons/coin/src/polkadot/qKBTC.tsx index 27f660c90..2ca0f11da 100644 --- a/packages/icons2/coin/src/polkadot/qKBTC.tsx +++ b/packages/icons/coin/src/polkadot/qKBTC.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const qKBTC = forwardRef((props, ref) => ( diff --git a/packages/icons/src/svg/coin/polkadot/qKINT.tsx b/packages/icons/coin/src/polkadot/qKINT.tsx similarity index 99% rename from packages/icons/src/svg/coin/polkadot/qKINT.tsx rename to packages/icons/coin/src/polkadot/qKINT.tsx index 195b80ad4..661acb8c4 100644 --- a/packages/icons/src/svg/coin/polkadot/qKINT.tsx +++ b/packages/icons/coin/src/polkadot/qKINT.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const qKINT = forwardRef((props, ref) => ( diff --git a/packages/icons/src/svg/coin/polkadot/qKSM.tsx b/packages/icons/coin/src/polkadot/qKSM.tsx similarity index 96% rename from packages/icons/src/svg/coin/polkadot/qKSM.tsx rename to packages/icons/coin/src/polkadot/qKSM.tsx index 887f04111..049f71216 100644 --- a/packages/icons/src/svg/coin/polkadot/qKSM.tsx +++ b/packages/icons/coin/src/polkadot/qKSM.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const qKSM = forwardRef((props, ref) => ( diff --git a/packages/icons/src/svg/coin/polkadot/qMOVR.tsx b/packages/icons/coin/src/polkadot/qMOVR.tsx similarity index 99% rename from packages/icons/src/svg/coin/polkadot/qMOVR.tsx rename to packages/icons/coin/src/polkadot/qMOVR.tsx index 19bca704b..ee36cda6a 100644 --- a/packages/icons/src/svg/coin/polkadot/qMOVR.tsx +++ b/packages/icons/coin/src/polkadot/qMOVR.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const qMOVR = forwardRef((props, ref) => ( diff --git a/packages/icons2/coin/src/polkadot/qUSDT.tsx b/packages/icons/coin/src/polkadot/qUSDT.tsx similarity index 95% rename from packages/icons2/coin/src/polkadot/qUSDT.tsx rename to packages/icons/coin/src/polkadot/qUSDT.tsx index ec05cde52..f4598edfb 100644 --- a/packages/icons2/coin/src/polkadot/qUSDT.tsx +++ b/packages/icons/coin/src/polkadot/qUSDT.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const qUSDT = forwardRef((props, ref) => ( diff --git a/packages/icons2/coin/src/stories/coin.stories.tsx b/packages/icons/coin/src/stories/index.stories.tsx similarity index 92% rename from packages/icons2/coin/src/stories/coin.stories.tsx rename to packages/icons/coin/src/stories/index.stories.tsx index b4245dbf9..7b4ce1561 100644 --- a/packages/icons2/coin/src/stories/coin.stories.tsx +++ b/packages/icons/coin/src/stories/index.stories.tsx @@ -1,7 +1,7 @@ import { Meta, StoryObj } from '@storybook/react'; +import { Icon, IconProps } from '@just_testing13/icon'; -import * as SVGS from '../svg/coin'; -import { Icon, IconProps } from '../Icon'; +import * as SVGS from '../'; export const Default: StoryObj = { args: { diff --git a/packages/icons2/coin/tsconfig.json b/packages/icons/coin/tsconfig.json similarity index 100% rename from packages/icons2/coin/tsconfig.json rename to packages/icons/coin/tsconfig.json diff --git a/packages/icons/tsup.config.ts b/packages/icons/coin/tsup.config.ts similarity index 100% rename from packages/icons/tsup.config.ts rename to packages/icons/coin/tsup.config.ts diff --git a/packages/icons2/common/package.json b/packages/icons/common/package.json similarity index 92% rename from packages/icons2/common/package.json rename to packages/icons/common/package.json index e38a27fb4..d716a7d25 100644 --- a/packages/icons2/common/package.json +++ b/packages/icons/common/package.json @@ -24,7 +24,7 @@ "react-dom": "^18.2.0" }, "dependencies": { - "@just_testing13/icons-core": "workspace:*" + "@just_testing13/icon": "workspace:*" }, "clean-package": "../../../clean-package.config.json" } diff --git a/packages/icons/src/svg/common/ArrowPathRoundedSquare.tsx b/packages/icons/common/src/ArrowPathRoundedSquare.tsx similarity index 93% rename from packages/icons/src/svg/common/ArrowPathRoundedSquare.tsx rename to packages/icons/common/src/ArrowPathRoundedSquare.tsx index 217778d15..2fc00f39d 100644 --- a/packages/icons/src/svg/common/ArrowPathRoundedSquare.tsx +++ b/packages/icons/common/src/ArrowPathRoundedSquare.tsx @@ -1,6 +1,5 @@ import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const ArrowPathRoundedSquare = forwardRef((props, ref) => ( ((props, ref) => ( ((props, ref) => ( diff --git a/packages/icons2/common/src/ArrowTopRightOnSquare.tsx b/packages/icons/common/src/ArrowTopRightOnSquare.tsx similarity index 91% rename from packages/icons2/common/src/ArrowTopRightOnSquare.tsx rename to packages/icons/common/src/ArrowTopRightOnSquare.tsx index f0f95950c..325b44b36 100644 --- a/packages/icons2/common/src/ArrowTopRightOnSquare.tsx +++ b/packages/icons/common/src/ArrowTopRightOnSquare.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const ArrowTopRightOnSquare = forwardRef((props, ref) => ( ((props, ref) => ( ((props, ref) => ( ((props, ref) => ( ((props, ref) => ( ((props, ref) => ( diff --git a/packages/icons/src/svg/common/DocumentDuplicate.tsx b/packages/icons/common/src/DocumentDuplicate.tsx similarity index 94% rename from packages/icons/src/svg/common/DocumentDuplicate.tsx rename to packages/icons/common/src/DocumentDuplicate.tsx index 2c3957229..01095268f 100644 --- a/packages/icons/src/svg/common/DocumentDuplicate.tsx +++ b/packages/icons/common/src/DocumentDuplicate.tsx @@ -1,6 +1,6 @@ import { forwardRef } from 'react'; -import { Icon, IconProps } from '../../Icon'; +import { Icon, IconProps } from '@just_testing13/icon'; const DocumentDuplicate = forwardRef((props, ref) => ( ((props, ref) => ( ((props, ref) => ( ((props, ref) => ( ((props, ref) => ( ((props, ref) => ( ((props, ref) => ( ((props, ref) => ( ((props, ref) => ( = { args: { diff --git a/packages/icons2/common/tsconfig.json b/packages/icons/common/tsconfig.json similarity index 100% rename from packages/icons2/common/tsconfig.json rename to packages/icons/common/tsconfig.json diff --git a/packages/icons2/coin/tsup.config.ts b/packages/icons/common/tsup.config.ts similarity index 100% rename from packages/icons2/coin/tsup.config.ts rename to packages/icons/common/tsup.config.ts diff --git a/packages/icons2/core/package.json b/packages/icons/core/package.json similarity index 96% rename from packages/icons2/core/package.json rename to packages/icons/core/package.json index d25bc5bdc..6433ae7bb 100644 --- a/packages/icons2/core/package.json +++ b/packages/icons/core/package.json @@ -2,6 +2,7 @@ "name": "@just_testing13/icon", "version": "0.0.0", "main": "src/index.ts", + "private": true, "files": [ "dist" ], diff --git a/packages/icons2/core/src/index.tsx b/packages/icons/core/src/index.tsx similarity index 100% rename from packages/icons2/core/src/index.tsx rename to packages/icons/core/src/index.tsx diff --git a/packages/icons2/core/tsconfig.json b/packages/icons/core/tsconfig.json similarity index 100% rename from packages/icons2/core/tsconfig.json rename to packages/icons/core/tsconfig.json diff --git a/packages/icons2/common/tsup.config.ts b/packages/icons/core/tsup.config.ts similarity index 100% rename from packages/icons2/common/tsup.config.ts rename to packages/icons/core/tsup.config.ts diff --git a/packages/icons/package.json b/packages/icons/package.json deleted file mode 100644 index 0188e225c..000000000 --- a/packages/icons/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "@just_testing13/icons", - "version": "0.1.3", - "main": "src/index.ts", - "files": [ - "dist" - ], - "license": "MIT", - "sideEffects": false, - "scripts": { - "lint": "eslint .", - "lint:fix": "eslint . --ext ts,tsx --fix", - "build": "tsup src/index.ts --dts", - "prepack": "clean-package", - "postpack": "clean-package restore" - }, - "peerDependencies": { - "react": ">=18", - "react-dom": ">=18", - "styled-components": ">=6.0.0" - }, - "devDependencies": { - "@types/styled-components": "^5.1.26", - "clean-package": "^2.2.0", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "styled-components": "^6.0.7" - }, - "dependencies": { - "@just_testing13/theme": "workspace:*" - }, - "clean-package": "../../clean-package.config.json" -} diff --git a/packages/icons/src/Icon.tsx b/packages/icons/src/Icon.tsx deleted file mode 100644 index acf1bdd94..000000000 --- a/packages/icons/src/Icon.tsx +++ /dev/null @@ -1,42 +0,0 @@ -import type { Colors } from '@just_testing13/theme'; - -import styled from 'styled-components'; -import { theme, resolveColor } from '@just_testing13/theme'; -import { SVGAttributes, forwardRef } from 'react'; - -type IconSize = keyof typeof theme.icon.sizes; - -type StyledIconProps = { - $size: IconSize; - $color?: Colors; -}; - -const StyledIcon = styled.svg` - color: ${({ $color }) => resolveColor($color)}; - width: ${({ $size }) => theme.icon.sizes[$size]}; - height: ${({ $size }) => theme.icon.sizes[$size]}; - display: inline-block; - user-select: none; - flex-shrink: 0; - overflow: hidden; -`; - -type Props = { - size?: IconSize; - color?: Colors; -}; - -type NativeAttrs = Omit, keyof Props>; - -type IconProps = Props & NativeAttrs; - -const Icon = forwardRef( - ({ size = 'md', color = 'primary', ...props }, ref): JSX.Element => ( - - ) -); - -Icon.displayName = 'Icon'; - -export { Icon }; -export type { IconProps, IconSize }; diff --git a/packages/icons/src/index.ts b/packages/icons/src/index.ts deleted file mode 100644 index cc92b8e5a..000000000 --- a/packages/icons/src/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { Icon } from './Icon'; -export type { IconProps, IconSize } from './Icon'; -export * from './svg'; diff --git a/packages/icons/src/stories/coin.stories.tsx b/packages/icons/src/stories/coin.stories.tsx deleted file mode 100644 index b4245dbf9..000000000 --- a/packages/icons/src/stories/coin.stories.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import { Meta, StoryObj } from '@storybook/react'; - -import * as SVGS from '../svg/coin'; -import { Icon, IconProps } from '../Icon'; - -export const Default: StoryObj = { - args: { - size: 'md' - }, - render: (args) => ( - <> - {Object.entries(SVGS).map(([key, Comp]) => ( -
- - - {key} - -
- ))} - - ) -}; - -export default { - title: 'Icons/Coin', - component: Icon, - decorators: [ - (Story) => ( -
- -
- ) - ] -} as Meta; diff --git a/packages/icons/src/svg/coin/common/USDT.tsx b/packages/icons/src/svg/coin/common/USDT.tsx deleted file mode 100644 index 74d80c41c..000000000 --- a/packages/icons/src/svg/coin/common/USDT.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const USDT = forwardRef((props, ref) => ( - - USDT - - - -)); - -USDT.displayName = 'USDT'; - -export { USDT }; diff --git a/packages/icons/src/svg/coin/index.ts b/packages/icons/src/svg/coin/index.ts deleted file mode 100644 index bca99087e..000000000 --- a/packages/icons/src/svg/coin/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './common'; -export * from './polkadot'; diff --git a/packages/icons/src/svg/coin/polkadot/DOT.tsx b/packages/icons/src/svg/coin/polkadot/DOT.tsx deleted file mode 100644 index 589a255da..000000000 --- a/packages/icons/src/svg/coin/polkadot/DOT.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const DOT = forwardRef((props, ref) => ( - - DOT - - - - - - - - - - - -)); - -DOT.displayName = 'DOT'; - -export { DOT }; diff --git a/packages/icons/src/svg/coin/polkadot/INTR.tsx b/packages/icons/src/svg/coin/polkadot/INTR.tsx deleted file mode 100644 index d7cc5d515..000000000 --- a/packages/icons/src/svg/coin/polkadot/INTR.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const INTR = forwardRef((props, ref) => ( - - INTR - - - - - - - - - - - - - - - -)); - -INTR.displayName = 'INTR'; - -export { INTR }; diff --git a/packages/icons/src/svg/coin/polkadot/KAR.tsx b/packages/icons/src/svg/coin/polkadot/KAR.tsx deleted file mode 100644 index 2417b7b07..000000000 --- a/packages/icons/src/svg/coin/polkadot/KAR.tsx +++ /dev/null @@ -1,51 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const KAR = forwardRef((props, ref) => ( - - KAR - - - - - - - - - - - - - - - - - - - -)); - -KAR.displayName = 'KAR'; - -export { KAR }; diff --git a/packages/icons/src/svg/coin/polkadot/KINT.tsx b/packages/icons/src/svg/coin/polkadot/KINT.tsx deleted file mode 100644 index 67ef105bc..000000000 --- a/packages/icons/src/svg/coin/polkadot/KINT.tsx +++ /dev/null @@ -1,56 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const KINT = forwardRef((props, ref) => ( - - KINT - - - - - - - - - - - - - - - - - - - - - - -)); - -KINT.displayName = 'KINT'; - -export { KINT }; diff --git a/packages/icons/src/svg/coin/polkadot/LSKSM.tsx b/packages/icons/src/svg/coin/polkadot/LSKSM.tsx deleted file mode 100644 index 2af1468fb..000000000 --- a/packages/icons/src/svg/coin/polkadot/LSKSM.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const LSKSM = forwardRef((props, ref) => ( - - LSKSM - - - - - - - - - - - - - - -)); - -LSKSM.displayName = 'LSKSM'; - -export { LSKSM }; diff --git a/packages/icons/src/svg/coin/polkadot/MOVR.tsx b/packages/icons/src/svg/coin/polkadot/MOVR.tsx deleted file mode 100644 index 67d4ef199..000000000 --- a/packages/icons/src/svg/coin/polkadot/MOVR.tsx +++ /dev/null @@ -1,191 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const MOVR = forwardRef((props, ref) => ( - - MOVR - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -)); - -MOVR.displayName = 'MOVR'; - -export { MOVR }; diff --git a/packages/icons/src/svg/coin/polkadot/SKSM.tsx b/packages/icons/src/svg/coin/polkadot/SKSM.tsx deleted file mode 100644 index 2f6bb35f0..000000000 --- a/packages/icons/src/svg/coin/polkadot/SKSM.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const SKSM = forwardRef((props, ref) => ( - - SKSM - - - - - - - - - - - - - - -)); - -SKSM.displayName = 'SKSM'; - -export { SKSM }; diff --git a/packages/icons/src/svg/coin/polkadot/VKSM.tsx b/packages/icons/src/svg/coin/polkadot/VKSM.tsx deleted file mode 100644 index b2e2f7348..000000000 --- a/packages/icons/src/svg/coin/polkadot/VKSM.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const VKSM = forwardRef((props, ref) => ( - - VKSM - - - - - - - - - - - - - - -)); - -VKSM.displayName = 'VKSM'; - -export { VKSM }; diff --git a/packages/icons/src/svg/coin/polkadot/qDOT.tsx b/packages/icons/src/svg/coin/polkadot/qDOT.tsx deleted file mode 100644 index 4cf5b4556..000000000 --- a/packages/icons/src/svg/coin/polkadot/qDOT.tsx +++ /dev/null @@ -1,50 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const qDOT = forwardRef((props, ref) => ( - - qDOT - - - - - - - - - - - - - - - - - - - - -)); - -qDOT.displayName = 'qDOT'; - -export { qDOT }; diff --git a/packages/icons/src/svg/coin/polkadot/qKBTC.tsx b/packages/icons/src/svg/coin/polkadot/qKBTC.tsx deleted file mode 100644 index 27f660c90..000000000 --- a/packages/icons/src/svg/coin/polkadot/qKBTC.tsx +++ /dev/null @@ -1,64 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const qKBTC = forwardRef((props, ref) => ( - - qKBTC - - - - - - - - - - - - - - - - - - - - - - - - -)); - -qKBTC.displayName = 'qKBTC'; - -export { qKBTC }; diff --git a/packages/icons/src/svg/coin/polkadot/qUSDT.tsx b/packages/icons/src/svg/coin/polkadot/qUSDT.tsx deleted file mode 100644 index ec05cde52..000000000 --- a/packages/icons/src/svg/coin/polkadot/qUSDT.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const qUSDT = forwardRef((props, ref) => ( - - qUSDT - - - - - - - - - - -)); - -qUSDT.displayName = 'qUSDT'; - -export { qUSDT }; diff --git a/packages/icons/src/svg/common/ArrowRight.tsx b/packages/icons/src/svg/common/ArrowRight.tsx deleted file mode 100644 index 8ce3e9fd2..000000000 --- a/packages/icons/src/svg/common/ArrowRight.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../Icon'; - -const ArrowRight = forwardRef((props, ref) => ( - - - -)); - -ArrowRight.displayName = 'ArrowRight'; - -export { ArrowRight }; diff --git a/packages/icons/src/svg/common/ArrowTopRightOnSquare.tsx b/packages/icons/src/svg/common/ArrowTopRightOnSquare.tsx deleted file mode 100644 index f0f95950c..000000000 --- a/packages/icons/src/svg/common/ArrowTopRightOnSquare.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../Icon'; - -const ArrowTopRightOnSquare = forwardRef((props, ref) => ( - - - -)); - -ArrowTopRightOnSquare.displayName = 'ArrowTopRightOnSquare'; - -export { ArrowTopRightOnSquare }; diff --git a/packages/icons/src/svg/common/ChevronRight.tsx b/packages/icons/src/svg/common/ChevronRight.tsx deleted file mode 100644 index 5561743b2..000000000 --- a/packages/icons/src/svg/common/ChevronRight.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../Icon'; - -const ChevronRight = forwardRef((props, ref) => ( - - - -)); - -ChevronRight.displayName = 'ChevronRight'; - -export { ChevronRight }; diff --git a/packages/icons/src/svg/common/Cog.tsx b/packages/icons/src/svg/common/Cog.tsx deleted file mode 100644 index 9b0781086..000000000 --- a/packages/icons/src/svg/common/Cog.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../Icon'; - -const Cog = forwardRef((props, ref) => ( - - - - -)); - -Cog.displayName = 'Cog'; - -export { Cog }; diff --git a/packages/icons/src/svg/common/InformationCircle.tsx b/packages/icons/src/svg/common/InformationCircle.tsx deleted file mode 100644 index 2785c23ea..000000000 --- a/packages/icons/src/svg/common/InformationCircle.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../Icon'; - -const InformationCircle = forwardRef((props, ref) => ( - - - -)); - -InformationCircle.displayName = 'InformationCircle'; - -export { InformationCircle }; diff --git a/packages/icons/src/svg/index.ts b/packages/icons/src/svg/index.ts deleted file mode 100644 index 9eb41f45a..000000000 --- a/packages/icons/src/svg/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './coin'; -export * from './common'; diff --git a/packages/icons/tsconfig.json b/packages/icons/tsconfig.json deleted file mode 100644 index bdf2529ae..000000000 --- a/packages/icons/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { "baseUrl": ".", "declaration": false }, - "include": ["src"] -} diff --git a/packages/icons2/coin/src/Icon.tsx b/packages/icons2/coin/src/Icon.tsx deleted file mode 100644 index acf1bdd94..000000000 --- a/packages/icons2/coin/src/Icon.tsx +++ /dev/null @@ -1,42 +0,0 @@ -import type { Colors } from '@just_testing13/theme'; - -import styled from 'styled-components'; -import { theme, resolveColor } from '@just_testing13/theme'; -import { SVGAttributes, forwardRef } from 'react'; - -type IconSize = keyof typeof theme.icon.sizes; - -type StyledIconProps = { - $size: IconSize; - $color?: Colors; -}; - -const StyledIcon = styled.svg` - color: ${({ $color }) => resolveColor($color)}; - width: ${({ $size }) => theme.icon.sizes[$size]}; - height: ${({ $size }) => theme.icon.sizes[$size]}; - display: inline-block; - user-select: none; - flex-shrink: 0; - overflow: hidden; -`; - -type Props = { - size?: IconSize; - color?: Colors; -}; - -type NativeAttrs = Omit, keyof Props>; - -type IconProps = Props & NativeAttrs; - -const Icon = forwardRef( - ({ size = 'md', color = 'primary', ...props }, ref): JSX.Element => ( - - ) -); - -Icon.displayName = 'Icon'; - -export { Icon }; -export type { IconProps, IconSize }; diff --git a/packages/icons2/coin/src/common/BTC.tsx b/packages/icons2/coin/src/common/BTC.tsx deleted file mode 100644 index f6638496a..000000000 --- a/packages/icons2/coin/src/common/BTC.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../Icon'; - -const BTC = forwardRef((props, ref) => ( - - BTC - - - -)); - -BTC.displayName = 'BTC'; - -export { BTC }; diff --git a/packages/icons2/coin/src/common/ETH.tsx b/packages/icons2/coin/src/common/ETH.tsx deleted file mode 100644 index 9344b1f60..000000000 --- a/packages/icons2/coin/src/common/ETH.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../Icon'; - -const ETH = forwardRef((props, ref) => ( - - ETH - - - - - - - - - - - - - - - - - - - - - - - - -)); - -ETH.displayName = 'ETH'; - -export { ETH }; diff --git a/packages/icons2/coin/src/common/index.ts b/packages/icons2/coin/src/common/index.ts deleted file mode 100644 index be97eadae..000000000 --- a/packages/icons2/coin/src/common/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { BTC } from './BTC'; -export { ETH } from './ETH'; -export { USDT } from './USDT'; diff --git a/packages/icons2/coin/src/polkadot/AUSD.tsx b/packages/icons2/coin/src/polkadot/AUSD.tsx deleted file mode 100644 index 5d723d1bb..000000000 --- a/packages/icons2/coin/src/polkadot/AUSD.tsx +++ /dev/null @@ -1,52 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const AUSD = forwardRef((props, ref) => ( - - AUSD - - - - - - - - - - - - - - - - - - - - -)); - -AUSD.displayName = 'AUSD'; - -export { AUSD }; diff --git a/packages/icons2/coin/src/polkadot/IBTC.tsx b/packages/icons2/coin/src/polkadot/IBTC.tsx deleted file mode 100644 index bdc2292dd..000000000 --- a/packages/icons2/coin/src/polkadot/IBTC.tsx +++ /dev/null @@ -1,38 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const IBTC = forwardRef((props, ref) => ( - - IBTC - - - - - - - - - - - - - - - - - -)); - -IBTC.displayName = 'IBTC'; - -export { IBTC }; diff --git a/packages/icons2/coin/src/polkadot/KBTC.tsx b/packages/icons2/coin/src/polkadot/KBTC.tsx deleted file mode 100644 index 097f4b45b..000000000 --- a/packages/icons2/coin/src/polkadot/KBTC.tsx +++ /dev/null @@ -1,64 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const KBTC = forwardRef((props, ref) => ( - - KBTC - - - - - - - - - - - - - - - - - - - - - - - - -)); - -KBTC.displayName = 'KBTC'; - -export { KBTC }; diff --git a/packages/icons2/coin/src/polkadot/KSM.tsx b/packages/icons2/coin/src/polkadot/KSM.tsx deleted file mode 100644 index 1421d1802..000000000 --- a/packages/icons2/coin/src/polkadot/KSM.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const KSM = forwardRef((props, ref) => ( - - KSM - - - - - - - - - - -)); - -KSM.displayName = 'KSM'; - -export { KSM }; diff --git a/packages/icons2/coin/src/polkadot/LDOT.tsx b/packages/icons2/coin/src/polkadot/LDOT.tsx deleted file mode 100644 index 75b28c983..000000000 --- a/packages/icons2/coin/src/polkadot/LDOT.tsx +++ /dev/null @@ -1,44 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const LDOT = forwardRef((props, ref) => ( - - LDOT - - - - - - - - - - - - - - - - - -)); - -LDOT.displayName = 'LDOT'; - -export { LDOT }; diff --git a/packages/icons2/coin/src/polkadot/LKSM.tsx b/packages/icons2/coin/src/polkadot/LKSM.tsx deleted file mode 100644 index 01bb9e69f..000000000 --- a/packages/icons2/coin/src/polkadot/LKSM.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const LKSM = forwardRef((props, ref) => ( - - LKSM - - - - - - - - -)); - -LKSM.displayName = 'LKSM'; - -export { LKSM }; diff --git a/packages/icons2/coin/src/polkadot/index.ts b/packages/icons2/coin/src/polkadot/index.ts deleted file mode 100644 index 410793e16..000000000 --- a/packages/icons2/coin/src/polkadot/index.ts +++ /dev/null @@ -1,22 +0,0 @@ -export { AUSD } from './AUSD'; -export { DOT } from './DOT'; -export { IBTC } from './IBTC'; -export { INTR } from './INTR'; -export { KAR } from './KAR'; -export { KBTC } from './KBTC'; -export { KINT } from './KINT'; -export { KSM } from './KSM'; -export { LDOT } from './LDOT'; -export { LKSM } from './LKSM'; -export { LSKSM } from './LSKSM'; -export { MOVR } from './MOVR'; -export { qDOT } from './qDOT'; -export { qIBTC } from './qIBTC'; -export { qINTR } from './qINTR'; -export { qKBTC } from './qKBTC'; -export { qKINT } from './qKINT'; -export { qKSM } from './qKSM'; -export { qMOVR } from './qMOVR'; -export { qUSDT } from './qUSDT'; -export { SKSM } from './SKSM'; -export { VKSM } from './VKSM'; diff --git a/packages/icons2/coin/src/polkadot/qIBTC.tsx b/packages/icons2/coin/src/polkadot/qIBTC.tsx deleted file mode 100644 index cbe8f2f26..000000000 --- a/packages/icons2/coin/src/polkadot/qIBTC.tsx +++ /dev/null @@ -1,38 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const qIBTC = forwardRef((props, ref) => ( - - qIBTC - - - - - - - - - - - - - - - - - -)); - -qIBTC.displayName = 'qIBTC'; - -export { qIBTC }; diff --git a/packages/icons2/coin/src/polkadot/qINTR.tsx b/packages/icons2/coin/src/polkadot/qINTR.tsx deleted file mode 100644 index 3e289205b..000000000 --- a/packages/icons2/coin/src/polkadot/qINTR.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const qINTR = forwardRef((props, ref) => ( - - qINTR - - - - - - - - - - - - - - - -)); - -qINTR.displayName = 'qINTR'; - -export { qINTR }; diff --git a/packages/icons2/coin/src/polkadot/qKINT.tsx b/packages/icons2/coin/src/polkadot/qKINT.tsx deleted file mode 100644 index 195b80ad4..000000000 --- a/packages/icons2/coin/src/polkadot/qKINT.tsx +++ /dev/null @@ -1,56 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const qKINT = forwardRef((props, ref) => ( - - qKINT - - - - - - - - - - - - - - - - - - - - - - -)); - -qKINT.displayName = 'qKINT'; - -export { qKINT }; diff --git a/packages/icons2/coin/src/polkadot/qKSM.tsx b/packages/icons2/coin/src/polkadot/qKSM.tsx deleted file mode 100644 index 887f04111..000000000 --- a/packages/icons2/coin/src/polkadot/qKSM.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const qKSM = forwardRef((props, ref) => ( - - qKSM - - - - - - - - - - -)); - -qKSM.displayName = 'qKSM'; - -export { qKSM }; diff --git a/packages/icons2/coin/src/polkadot/qMOVR.tsx b/packages/icons2/coin/src/polkadot/qMOVR.tsx deleted file mode 100644 index 19bca704b..000000000 --- a/packages/icons2/coin/src/polkadot/qMOVR.tsx +++ /dev/null @@ -1,191 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../../Icon'; - -const qMOVR = forwardRef((props, ref) => ( - - qMOVR - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -)); - -qMOVR.displayName = 'qMOVR'; - -export { qMOVR }; diff --git a/packages/icons2/coin/src/stories/common.stories.tsx b/packages/icons2/coin/src/stories/common.stories.tsx deleted file mode 100644 index dbfcd4454..000000000 --- a/packages/icons2/coin/src/stories/common.stories.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import { Meta, StoryObj } from '@storybook/react'; - -import * as SVGS from '../svg/common'; -import { Icon, IconProps } from '../Icon'; - -export const Default: StoryObj = { - args: { - size: 'md' - }, - render: (args) => ( - <> - {Object.entries(SVGS).map(([key, Comp]) => ( -
- - - {key} - -
- ))} - - ) -}; - -export default { - title: 'Icons/Common', - component: Icon, - decorators: [ - (Story) => ( -
- -
- ) - ] -} as Meta; diff --git a/packages/icons2/common/src/ArrowPathRoundedSquare.tsx b/packages/icons2/common/src/ArrowPathRoundedSquare.tsx deleted file mode 100644 index 217778d15..000000000 --- a/packages/icons2/common/src/ArrowPathRoundedSquare.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../Icon'; - -const ArrowPathRoundedSquare = forwardRef((props, ref) => ( - - - -)); - -ArrowPathRoundedSquare.displayName = 'ArrowPathRoundedSquare'; - -export { ArrowPathRoundedSquare }; diff --git a/packages/icons2/common/src/ArrowRightCircle.tsx b/packages/icons2/common/src/ArrowRightCircle.tsx deleted file mode 100644 index b0368029d..000000000 --- a/packages/icons2/common/src/ArrowRightCircle.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../Icon'; - -const ArrowRightCircle = forwardRef((props, ref) => ( - - - -)); - -ArrowRightCircle.displayName = 'ArrowRightCircle'; - -export { ArrowRightCircle }; diff --git a/packages/icons2/common/src/ArrowsUpDown.tsx b/packages/icons2/common/src/ArrowsUpDown.tsx deleted file mode 100644 index 5578fa6e3..000000000 --- a/packages/icons2/common/src/ArrowsUpDown.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../Icon'; - -const ArrowsUpDown = forwardRef((props, ref) => ( - - - -)); - -ArrowsUpDown.displayName = 'ArrowsUpDown'; - -export { ArrowsUpDown }; diff --git a/packages/icons2/common/src/CheckCircle.tsx b/packages/icons2/common/src/CheckCircle.tsx deleted file mode 100644 index 6e22a96a3..000000000 --- a/packages/icons2/common/src/CheckCircle.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../Icon'; - -const CheckCircle = forwardRef((props, ref) => ( - - - -)); - -CheckCircle.displayName = 'CheckCircle'; - -export { CheckCircle }; diff --git a/packages/icons2/common/src/ChevronDown.tsx b/packages/icons2/common/src/ChevronDown.tsx deleted file mode 100644 index 6f9801e20..000000000 --- a/packages/icons2/common/src/ChevronDown.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../Icon'; - -const ChevronDown = forwardRef((props, ref) => ( - - - -)); - -ChevronDown.displayName = 'ChevronDown'; - -export { ChevronDown }; diff --git a/packages/icons2/common/src/DocumentDuplicate.tsx b/packages/icons2/common/src/DocumentDuplicate.tsx deleted file mode 100644 index 2c3957229..000000000 --- a/packages/icons2/common/src/DocumentDuplicate.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../Icon'; - -const DocumentDuplicate = forwardRef((props, ref) => ( - - - -)); - -DocumentDuplicate.displayName = 'DocumentDuplicate'; - -export { DocumentDuplicate }; diff --git a/packages/icons2/common/src/ListBullet.tsx b/packages/icons2/common/src/ListBullet.tsx deleted file mode 100644 index 7a76280ae..000000000 --- a/packages/icons2/common/src/ListBullet.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../Icon'; - -const ListBullet = forwardRef((props, ref) => ( - - - -)); - -ListBullet.displayName = 'ListBullet'; - -export { ListBullet }; diff --git a/packages/icons2/common/src/PencilSquare.tsx b/packages/icons2/common/src/PencilSquare.tsx deleted file mode 100644 index f027fb8ea..000000000 --- a/packages/icons2/common/src/PencilSquare.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../Icon'; - -const PencilSquare = forwardRef((props, ref) => ( - - - -)); - -PencilSquare.displayName = 'PencilSquare'; - -export { PencilSquare }; diff --git a/packages/icons2/common/src/PlusCircle.tsx b/packages/icons2/common/src/PlusCircle.tsx deleted file mode 100644 index 460ee4022..000000000 --- a/packages/icons2/common/src/PlusCircle.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../Icon'; - -const PlusCircle = forwardRef((props, ref) => ( - - - -)); - -PlusCircle.displayName = 'PlusCircle'; - -export { PlusCircle }; diff --git a/packages/icons2/common/src/PresentationChartBar.tsx b/packages/icons2/common/src/PresentationChartBar.tsx deleted file mode 100644 index 5e5782348..000000000 --- a/packages/icons2/common/src/PresentationChartBar.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../Icon'; - -const PresentationChartBar = forwardRef((props, ref) => ( - - - -)); - -PresentationChartBar.displayName = 'PresentationChartBar'; - -export { PresentationChartBar }; diff --git a/packages/icons2/common/src/Warning.tsx b/packages/icons2/common/src/Warning.tsx deleted file mode 100644 index 3349ea124..000000000 --- a/packages/icons2/common/src/Warning.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../Icon'; - -const Warning = forwardRef((props, ref) => ( - - - -)); - -Warning.displayName = 'Warning'; - -export { Warning }; diff --git a/packages/icons2/common/src/XCircle.tsx b/packages/icons2/common/src/XCircle.tsx deleted file mode 100644 index 5c573969c..000000000 --- a/packages/icons2/common/src/XCircle.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../Icon'; - -const XCircle = forwardRef((props, ref) => ( - - - -)); - -XCircle.displayName = 'XCircle'; - -export { XCircle }; diff --git a/packages/icons2/common/src/XMark.tsx b/packages/icons2/common/src/XMark.tsx deleted file mode 100644 index 831d122f4..000000000 --- a/packages/icons2/common/src/XMark.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { forwardRef } from 'react'; - -import { Icon, IconProps } from '../../Icon'; - -const XMark = forwardRef((props, ref) => ( - - - -)); - -XMark.displayName = 'XMark'; - -export { XMark }; diff --git a/packages/icons2/common/src/index.ts b/packages/icons2/common/src/index.ts deleted file mode 100644 index 94ef00075..000000000 --- a/packages/icons2/common/src/index.ts +++ /dev/null @@ -1,18 +0,0 @@ -export { ArrowPathRoundedSquare } from './ArrowPathRoundedSquare'; -export { ArrowRight } from './ArrowRight'; -export { ArrowRightCircle } from './ArrowRightCircle'; -export { ArrowsUpDown } from './ArrowsUpDown'; -export { ArrowTopRightOnSquare } from './ArrowTopRightOnSquare'; -export { CheckCircle } from './CheckCircle'; -export { ChevronDown } from './ChevronDown'; -export { ChevronRight } from './ChevronRight'; -export { Cog } from './Cog'; -export { DocumentDuplicate } from './DocumentDuplicate'; -export { InformationCircle } from './InformationCircle'; -export { ListBullet } from './ListBullet'; -export { PencilSquare } from './PencilSquare'; -export { PlusCircle } from './PlusCircle'; -export { PresentationChartBar } from './PresentationChartBar'; -export { Warning } from './Warning'; -export { XCircle } from './XCircle'; -export { XMark } from './XMark'; diff --git a/packages/icons2/core/tsup.config.ts b/packages/icons2/core/tsup.config.ts deleted file mode 100644 index fd2bba042..000000000 --- a/packages/icons2/core/tsup.config.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { defineConfig } from 'tsup'; - -export default defineConfig({ - clean: true, - target: 'es2019', - format: ['cjs', 'esm'], - banner: { js: '"use client";' } -}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 07272a900..93062bc9d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -120,12 +120,15 @@ importers: packages/components: dependencies: + '@just_testing13/coin-icons': + specifier: workspace:* + version: link:../icons/coin '@just_testing13/hooks': specifier: workspace:* version: link:../hooks '@just_testing13/icons': specifier: workspace:* - version: link:../icons + version: link:../icons/common '@just_testing13/theme': specifier: workspace:* version: link:../theme @@ -276,11 +279,43 @@ importers: specifier: ^18.2.0 version: 18.2.0(react@18.2.0) - packages/icons: + packages/icons/coin: + dependencies: + '@just_testing13/icon': + specifier: workspace:* + version: link:../core + devDependencies: + clean-package: + specifier: ^2.2.0 + version: 2.2.0 + react: + specifier: ^18.2.0 + version: 18.2.0 + react-dom: + specifier: ^18.2.0 + version: 18.2.0(react@18.2.0) + + packages/icons/common: + dependencies: + '@just_testing13/icon': + specifier: workspace:* + version: link:../core + devDependencies: + clean-package: + specifier: ^2.2.0 + version: 2.2.0 + react: + specifier: ^18.2.0 + version: 18.2.0 + react-dom: + specifier: ^18.2.0 + version: 18.2.0(react@18.2.0) + + packages/icons/core: dependencies: '@just_testing13/theme': specifier: workspace:* - version: link:../theme + version: link:../../theme devDependencies: '@types/styled-components': specifier: ^5.1.26 From 19784f45d784ad505492a8de10a417da62f51421 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sim=C3=A3o?= Date: Thu, 14 Sep 2023 10:19:10 +0100 Subject: [PATCH 3/3] Create eight-houses-cry.md --- .changeset/eight-houses-cry.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/eight-houses-cry.md diff --git a/.changeset/eight-houses-cry.md b/.changeset/eight-houses-cry.md new file mode 100644 index 000000000..06db77691 --- /dev/null +++ b/.changeset/eight-houses-cry.md @@ -0,0 +1,6 @@ +--- +"@just_testing13/components": patch +"@just_testing13/coin-icons": patch +--- + +Rui/refactor icons