refactor: rename polkadotIcon to pezkuwiIcon and update identicon themes

- Rename polkadot.ts to pezkuwi.ts in ui-shared
- Rename polkadotIcon function to pezkuwiIcon
- Rename Polkadot.tsx to Pezkuwi.tsx in all identicon packages
- Update Components mapping to use pezkuwi theme
- Add bizinikiwi theme as substrate replacement
- Update IconTheme type definitions
- Update Ledger app text to Pezkuwi
This commit is contained in:
2026-01-09 00:15:30 +03:00
parent ca1f34c46c
commit 03e7cc4736
16 changed files with 92 additions and 99 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
// SPDX-License-Identifier: Apache-2.0
export { beachballIcon } from './beachball/index.js';
export { polkadotIcon } from './polkadot.js';
export { pezkuwiIcon } from './pezkuwi.js';
@@ -3,12 +3,12 @@
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
import { polkadotIcon } from './polkadot.js';
import { pezkuwiIcon } from './pezkuwi.js';
describe('polkadotIcon', (): void => {
describe('pezkuwiIcon', (): void => {
it('generates the correct points from known', (): void => {
expect(
polkadotIcon('5Dqvi1p4C7EhPPFKCixpF3QiaJEaDwWrR9gfWR5eUsfC39TX', { isAlternative: false })
pezkuwiIcon('5Dqvi1p4C7EhPPFKCixpF3QiaJEaDwWrR9gfWR5eUsfC39TX', { isAlternative: false })
).toEqual([
{ cx: 32, cy: 32, fill: '#eee', r: 32 },
{ cx: 32, cy: 8, fill: 'hsl(196, 65%, 53%)', r: 5 },
@@ -1,11 +1,8 @@
// Copyright 2018-2025 @pezkuwi/ui-shared authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Copyright 2018 Paritytech via paritytech/oo7/polkadot-identicon
// This has been converted from the original version that can be found at
//
// https://github.com/paritytech/oo7/blob/251ba2b7c45503b68eab4320c270b5afa9bccb60/packages/polkadot-identicon/src/index.jsx
// Originally from: https://github.com/paritytech/oo7/tree/master/packages/polkadot-identicon
// Copyright 2018 Paritytech - Adapted for PezkuwiChain ecosystem
import type { Circle, Options } from './types.js';
@@ -134,7 +131,7 @@ function getColors (address: string): string[] {
/**
* @description Generates an array of the circles that make up an identicon
*/
export function polkadotIcon (address: string, { isAlternative }: Options): Circle[] {
export function pezkuwiIcon (address: string, { isAlternative }: Options): Circle[] {
const xy = getCircleXY(isAlternative);
let colors: string[];