diff --git a/.changeset/odd-ants-dress.md b/.changeset/odd-ants-dress.md new file mode 100644 index 000000000000..5b82a46edd8f --- /dev/null +++ b/.changeset/odd-ants-dress.md @@ -0,0 +1,6 @@ +--- +"ledger-live-desktop": patch +"@ledgerhq/ui": patch +--- + +Add rare satoshis icons to ui package and a mapping inside LLD to use them diff --git a/apps/ledger-live-desktop/.unimportedrc.json b/apps/ledger-live-desktop/.unimportedrc.json index 671769da251c..4ea42c55028b 100644 --- a/apps/ledger-live-desktop/.unimportedrc.json +++ b/apps/ledger-live-desktop/.unimportedrc.json @@ -21,10 +21,7 @@ "src/generate-cryptoassets-md.ts", "src/newArch/features/Collectibles/**", - "src/newArch/features/AnalyticsOptInPrompt/**", - "src/newArch/features/WalletSync/**", - "src/newArch/components/ContextMenu/**", - "src/newArch/components/BreadCrumb/**", + "src/newArch/features/WalletSync/__tests__/shared.tsx", "src/renderer/DesktopStorageProvider.ts" ], "ignoreUnused": [ diff --git a/apps/ledger-live-desktop/src/newArch/features/Collectibles/Ordinals/components/Icons.tsx b/apps/ledger-live-desktop/src/newArch/features/Collectibles/Ordinals/components/Icons.tsx new file mode 100644 index 000000000000..55cb97100043 --- /dev/null +++ b/apps/ledger-live-desktop/src/newArch/features/Collectibles/Ordinals/components/Icons.tsx @@ -0,0 +1,33 @@ +import React from "react"; +import { Icons } from "@ledgerhq/react-ui"; + +export const mappingKeysWithIconAndName = { + alpha: { icon: , name: "Alpha" }, + black_epic: { icon: , name: "Black Epic" }, + black_legendary: { icon: , name: "Black Legendary" }, + black_mythic: { icon: , name: "Black Mythic" }, + black_rare: { icon: , name: "Black Rare" }, + black_uncommon: { icon: , name: "Black Uncommon" }, + block_9: { icon: , name: "Block 9" }, + block_9_450x: { icon: , name: "Block 9 450x" }, + block_78: { icon: , name: "Block 78" }, + block_286: { icon: , name: "Block 286" }, + block_666: { icon: , name: "Block 666" }, + common: { icon: , name: "Common" }, + epic: { icon: , name: "Epic" }, + first_tx: { icon: , name: "First Transaction" }, + hitman: { icon: , name: "Hitman" }, + jpeg: { icon: , name: "JPEG" }, + legacy: { icon: , name: "Legacy" }, + legendary: { icon: , name: "Legendary" }, + mythic: { icon: , name: "Mythic" }, + nakamoto: { icon: , name: "Nakamoto" }, + omega: { icon: , name: "Omega" }, + paliblock: { icon: , name: "PaliBlock Palindrome" }, + palindrome: { icon: , name: "Palindrome" }, + palinception: { icon: , name: "Palinception" }, + pizza: { icon: , name: "Pizza" }, + rare: { icon: , name: "Rare" }, + uncommon: { icon: , name: "Uncommon" }, + vintage: { icon: , name: "Vintage" }, +}; diff --git a/libs/ui/packages/icons/scripts/build.js b/libs/ui/packages/icons/scripts/build.js index 03967dca2803..7fa926364953 100644 --- a/libs/ui/packages/icons/scripts/build.js +++ b/libs/ui/packages/icons/scripts/build.js @@ -21,7 +21,7 @@ interface SizeData { size: number; stroke: number; } - + interface AvailableSizes { XS: SizeData; S: SizeData; @@ -95,7 +95,7 @@ function reactTemplate({ template }, _, { imports, interfaces, componentName, __ type Props = { size?: ${Object.keys(availableSizes) .map(key => `"${key}"`) .join(" | ")}; color?: string; style?: object }; - + ${interfaces} ${sizeInterface} @@ -180,12 +180,14 @@ function reactNativeRTLTemplate( const convert = (svg, options, componentName, outputFile) => { svgr(svg, options, componentName) .then(result => { - let component = result.replace("xlinkHref=", "href=").replace("import Svg,", "import "); - - component = component.replace(/fill="white"/g, 'fill="currentColor"'); - component = component.replace(/stroke="white"/g, 'stroke="currentColor"'); - component = component.replace(/]*)?\s*>)/gi, "$1Svg$2"); diff --git a/libs/ui/packages/icons/src/svg/ordinals-alpha.svg b/libs/ui/packages/icons/src/svg/ordinals-alpha.svg new file mode 100644 index 000000000000..46f11eea2942 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-alpha.svg @@ -0,0 +1,3 @@ + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-black-epic.svg b/libs/ui/packages/icons/src/svg/ordinals-black-epic.svg new file mode 100644 index 000000000000..d3451e1ba642 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-black-epic.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-black-legendary.svg b/libs/ui/packages/icons/src/svg/ordinals-black-legendary.svg new file mode 100644 index 000000000000..b4154d2d1bf6 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-black-legendary.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-black-mythic.svg b/libs/ui/packages/icons/src/svg/ordinals-black-mythic.svg new file mode 100644 index 000000000000..c19d5faa2823 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-black-mythic.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-black-rare.svg b/libs/ui/packages/icons/src/svg/ordinals-black-rare.svg new file mode 100644 index 000000000000..cf53e5182577 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-black-rare.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-black-uncommon.svg b/libs/ui/packages/icons/src/svg/ordinals-black-uncommon.svg new file mode 100644 index 000000000000..783b6938e7a8 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-black-uncommon.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-block286.svg b/libs/ui/packages/icons/src/svg/ordinals-block286.svg new file mode 100644 index 000000000000..41101e090f1b --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-block286.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-block666.svg b/libs/ui/packages/icons/src/svg/ordinals-block666.svg new file mode 100644 index 000000000000..99764c3059b4 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-block666.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-block78.svg b/libs/ui/packages/icons/src/svg/ordinals-block78.svg new file mode 100644 index 000000000000..e6c9ec315b2b --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-block78.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-block9-450x.svg b/libs/ui/packages/icons/src/svg/ordinals-block9-450x.svg new file mode 100644 index 000000000000..dcd0d7459ac7 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-block9-450x.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-block9.svg b/libs/ui/packages/icons/src/svg/ordinals-block9.svg new file mode 100644 index 000000000000..bb54362a064e --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-block9.svg @@ -0,0 +1,3 @@ + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-common.svg b/libs/ui/packages/icons/src/svg/ordinals-common.svg new file mode 100644 index 000000000000..18606285d961 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-common.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-epic.svg b/libs/ui/packages/icons/src/svg/ordinals-epic.svg new file mode 100644 index 000000000000..27665dcaa539 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-epic.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-first-tx.svg b/libs/ui/packages/icons/src/svg/ordinals-first-tx.svg new file mode 100644 index 000000000000..78c4ec4214c0 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-first-tx.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-hitman.svg b/libs/ui/packages/icons/src/svg/ordinals-hitman.svg new file mode 100644 index 000000000000..3678f5a36dc1 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-hitman.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-jpeg.svg b/libs/ui/packages/icons/src/svg/ordinals-jpeg.svg new file mode 100644 index 000000000000..2ca5917e37e2 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-jpeg.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-legacy.svg b/libs/ui/packages/icons/src/svg/ordinals-legacy.svg new file mode 100644 index 000000000000..454280ad1823 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-legacy.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-legendary.svg b/libs/ui/packages/icons/src/svg/ordinals-legendary.svg new file mode 100644 index 000000000000..76da04312a2d --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-legendary.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-mythic.svg b/libs/ui/packages/icons/src/svg/ordinals-mythic.svg new file mode 100644 index 000000000000..a2859497b61b --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-mythic.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-nakamoto.svg b/libs/ui/packages/icons/src/svg/ordinals-nakamoto.svg new file mode 100644 index 000000000000..0dd99ee3bde5 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-nakamoto.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-omega.svg b/libs/ui/packages/icons/src/svg/ordinals-omega.svg new file mode 100644 index 000000000000..97d8a8effe3f --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-omega.svg @@ -0,0 +1,3 @@ + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-paliblock-palindrome.svg b/libs/ui/packages/icons/src/svg/ordinals-paliblock-palindrome.svg new file mode 100644 index 000000000000..23c917633c94 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-paliblock-palindrome.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-palinception.svg b/libs/ui/packages/icons/src/svg/ordinals-palinception.svg new file mode 100644 index 000000000000..0f6cf082210c --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-palinception.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-palindrome.svg b/libs/ui/packages/icons/src/svg/ordinals-palindrome.svg new file mode 100644 index 000000000000..756b192df853 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-palindrome.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-pizza.svg b/libs/ui/packages/icons/src/svg/ordinals-pizza.svg new file mode 100644 index 000000000000..361651215cb7 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-pizza.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-rare.svg b/libs/ui/packages/icons/src/svg/ordinals-rare.svg new file mode 100644 index 000000000000..abd312716223 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-rare.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-uncommon.svg b/libs/ui/packages/icons/src/svg/ordinals-uncommon.svg new file mode 100644 index 000000000000..c520cb7647e3 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-uncommon.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/libs/ui/packages/icons/src/svg/ordinals-vintage.svg b/libs/ui/packages/icons/src/svg/ordinals-vintage.svg new file mode 100644 index 000000000000..44a5734cb361 --- /dev/null +++ b/libs/ui/packages/icons/src/svg/ordinals-vintage.svg @@ -0,0 +1,3 @@ + + +