@pezkuwi/reactnative-identicon 3.16.7 → 3.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  interface Props {
4
4
  prefix?: Prefix;
5
5
  size?: number;
6
- theme?: 'polkadot';
6
+ theme?: 'pezkuwi';
7
7
  value?: string | Uint8Array | null;
8
8
  }
9
9
  interface State {
@@ -2,12 +2,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import { isHex, isU8a, u8aToHex } from '@pezkuwi/util';
4
4
  import { decodeAddress, encodeAddress } from '@pezkuwi/util-crypto';
5
- import { Empty, Polkadot } from './icons/index.js';
6
- const Fallback = Polkadot;
5
+ import { Empty, Pezkuwi } from './icons/index.js';
6
+ const Fallback = Pezkuwi;
7
7
  const DEFAULT_SIZE = 64;
8
- const DEFAULT_THEME = 'polkadot';
8
+ const DEFAULT_THEME = 'pezkuwi';
9
9
  const Components = {
10
- polkadot: Polkadot
10
+ pezkuwi: Pezkuwi
11
11
  };
12
12
  export default class IdentityIcon extends React.PureComponent {
13
13
  state = {
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  interface Props {
4
4
  prefix?: Prefix;
5
5
  size?: number;
6
- theme?: 'polkadot';
6
+ theme?: 'pezkuwi';
7
7
  value?: string | Uint8Array | null;
8
8
  }
9
9
  interface State {
@@ -6,11 +6,11 @@ const react_1 = tslib_1.__importDefault(require("react"));
6
6
  const util_1 = require("@pezkuwi/util");
7
7
  const util_crypto_1 = require("@pezkuwi/util-crypto");
8
8
  const index_js_1 = require("./icons/index.js");
9
- const Fallback = index_js_1.Polkadot;
9
+ const Fallback = index_js_1.Pezkuwi;
10
10
  const DEFAULT_SIZE = 64;
11
- const DEFAULT_THEME = 'polkadot';
11
+ const DEFAULT_THEME = 'pezkuwi';
12
12
  const Components = {
13
- polkadot: index_js_1.Polkadot
13
+ pezkuwi: index_js_1.Pezkuwi
14
14
  };
15
15
  class IdentityIcon extends react_1.default.PureComponent {
16
16
  state = {
@@ -11,6 +11,6 @@ function renderCircle({ cx, cy, fill, r }, key) {
11
11
  return ((0, jsx_runtime_1.jsx)(react_native_svg_1.Circle, { cx: cx, cy: cy, fill: fill, r: r }, key));
12
12
  }
13
13
  function Identicon({ address, isAlternative = false, size }) {
14
- const circles = (0, react_1.useMemo)(() => (0, ui_shared_1.polkadotIcon)(address, { isAlternative }), [address, isAlternative]);
14
+ const circles = (0, react_1.useMemo)(() => (0, ui_shared_1.pezkuwiIcon)(address, { isAlternative }), [address, isAlternative]);
15
15
  return ((0, jsx_runtime_1.jsx)(react_native_1.View, { children: (0, jsx_runtime_1.jsx)(react_native_svg_1.Svg, { height: size, id: address, viewBox: '0 0 64 64', width: size, children: circles.map(renderCircle) }) }));
16
16
  }
@@ -1,2 +1,2 @@
1
1
  export { default as Empty } from './Empty.js';
2
- export { default as Polkadot } from './Polkadot.js';
2
+ export { default as Pezkuwi } from './Pezkuwi.js';
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Polkadot = exports.Empty = void 0;
3
+ exports.Pezkuwi = exports.Empty = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  var Empty_js_1 = require("./Empty.js");
6
6
  Object.defineProperty(exports, "Empty", { enumerable: true, get: function () { return tslib_1.__importDefault(Empty_js_1).default; } });
7
- var Polkadot_js_1 = require("./Polkadot.js");
8
- Object.defineProperty(exports, "Polkadot", { enumerable: true, get: function () { return tslib_1.__importDefault(Polkadot_js_1).default; } });
7
+ var Pezkuwi_js_1 = require("./Pezkuwi.js");
8
+ Object.defineProperty(exports, "Pezkuwi", { enumerable: true, get: function () { return tslib_1.__importDefault(Pezkuwi_js_1).default; } });
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@pezkuwi/reactnative-identicon', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '3.16.6' };
4
+ exports.packageInfo = { name: '@pezkuwi/reactnative-identicon', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '3.17.0' };
@@ -2,11 +2,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React, { useMemo } from 'react';
3
3
  import { View } from 'react-native';
4
4
  import { Circle as SvgCircle, Svg } from 'react-native-svg';
5
- import { polkadotIcon } from '@pezkuwi/ui-shared';
5
+ import { pezkuwiIcon } from '@pezkuwi/ui-shared';
6
6
  function renderCircle({ cx, cy, fill, r }, key) {
7
7
  return (_jsx(SvgCircle, { cx: cx, cy: cy, fill: fill, r: r }, key));
8
8
  }
9
9
  export default function Identicon({ address, isAlternative = false, size }) {
10
- const circles = useMemo(() => polkadotIcon(address, { isAlternative }), [address, isAlternative]);
10
+ const circles = useMemo(() => pezkuwiIcon(address, { isAlternative }), [address, isAlternative]);
11
11
  return (_jsx(View, { children: _jsx(Svg, { height: size, id: address, viewBox: '0 0 64 64', width: size, children: circles.map(renderCircle) }) }));
12
12
  }
@@ -1,2 +1,2 @@
1
1
  export { default as Empty } from './Empty.js';
2
- export { default as Polkadot } from './Polkadot.js';
2
+ export { default as Pezkuwi } from './Pezkuwi.js';
@@ -1,2 +1,2 @@
1
1
  export { default as Empty } from './Empty.js';
2
- export { default as Polkadot } from './Polkadot.js';
2
+ export { default as Pezkuwi } from './Pezkuwi.js';
@@ -18,7 +18,7 @@
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "3.16.6",
21
+ "version": "3.17.0",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
@@ -81,18 +81,18 @@
81
81
  "default": "./icons/Empty.js"
82
82
  }
83
83
  },
84
- "./icons/Polkadot": {
84
+ "./icons/Pezkuwi": {
85
85
  "module": {
86
- "types": "./icons/Polkadot.d.ts",
87
- "default": "./icons/Polkadot.js"
86
+ "types": "./icons/Pezkuwi.d.ts",
87
+ "default": "./icons/Pezkuwi.js"
88
88
  },
89
89
  "require": {
90
- "types": "./cjs/icons/Polkadot.d.ts",
91
- "default": "./cjs/icons/Polkadot.js"
90
+ "types": "./cjs/icons/Pezkuwi.d.ts",
91
+ "default": "./cjs/icons/Pezkuwi.js"
92
92
  },
93
93
  "default": {
94
- "types": "./icons/Polkadot.d.ts",
95
- "default": "./icons/Polkadot.js"
94
+ "types": "./icons/Pezkuwi.d.ts",
95
+ "default": "./icons/Pezkuwi.js"
96
96
  }
97
97
  },
98
98
  "./Identicon": {
@@ -1 +1 @@
1
- export const packageInfo = { name: '@pezkuwi/reactnative-identicon', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '3.16.6' };
1
+ export const packageInfo = { name: '@pezkuwi/reactnative-identicon', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '3.17.0' };
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  interface Props {
4
4
  prefix?: Prefix;
5
5
  size?: number;
6
- theme?: 'polkadot';
6
+ theme?: 'pezkuwi';
7
7
  value?: string | Uint8Array | null;
8
8
  }
9
9
  interface State {
@@ -1,2 +1,2 @@
1
1
  export { default as Empty } from './Empty.js';
2
- export { default as Polkadot } from './Polkadot.js';
2
+ export { default as Pezkuwi } from './Pezkuwi.js';
@@ -6,11 +6,11 @@ const react_1 = tslib_1.__importDefault(require("react"));
6
6
  const util_1 = require("@pezkuwi/util");
7
7
  const util_crypto_1 = require("@pezkuwi/util-crypto");
8
8
  const index_js_1 = require("./icons/index.js");
9
- const Fallback = index_js_1.Polkadot;
9
+ const Fallback = index_js_1.Pezkuwi;
10
10
  const DEFAULT_SIZE = 64;
11
- const DEFAULT_THEME = 'polkadot';
11
+ const DEFAULT_THEME = 'pezkuwi';
12
12
  const Components = {
13
- polkadot: index_js_1.Polkadot
13
+ pezkuwi: index_js_1.Pezkuwi
14
14
  };
15
15
  class IdentityIcon extends react_1.default.PureComponent {
16
16
  state = {
@@ -11,6 +11,6 @@ function renderCircle({ cx, cy, fill, r }, key) {
11
11
  return ((0, jsx_runtime_1.jsx)(react_native_svg_1.Circle, { cx: cx, cy: cy, fill: fill, r: r }, key));
12
12
  }
13
13
  function Identicon({ address, isAlternative = false, size }) {
14
- const circles = (0, react_1.useMemo)(() => (0, ui_shared_1.polkadotIcon)(address, { isAlternative }), [address, isAlternative]);
14
+ const circles = (0, react_1.useMemo)(() => (0, ui_shared_1.pezkuwiIcon)(address, { isAlternative }), [address, isAlternative]);
15
15
  return ((0, jsx_runtime_1.jsx)(react_native_1.View, { children: (0, jsx_runtime_1.jsx)(react_native_svg_1.Svg, { height: size, id: address, viewBox: '0 0 64 64', width: size, children: circles.map(renderCircle) }) }));
16
16
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Polkadot = exports.Empty = void 0;
3
+ exports.Pezkuwi = exports.Empty = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  var Empty_js_1 = require("./Empty.js");
6
6
  Object.defineProperty(exports, "Empty", { enumerable: true, get: function () { return tslib_1.__importDefault(Empty_js_1).default; } });
7
- var Polkadot_js_1 = require("./Polkadot.js");
8
- Object.defineProperty(exports, "Polkadot", { enumerable: true, get: function () { return tslib_1.__importDefault(Polkadot_js_1).default; } });
7
+ var Pezkuwi_js_1 = require("./Pezkuwi.js");
8
+ Object.defineProperty(exports, "Pezkuwi", { enumerable: true, get: function () { return tslib_1.__importDefault(Pezkuwi_js_1).default; } });
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@pezkuwi/reactnative-identicon', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '3.16.6' };
4
+ exports.packageInfo = { name: '@pezkuwi/reactnative-identicon', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '3.17.0' };
@@ -2,12 +2,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import { isHex, isU8a, u8aToHex } from '@pezkuwi/util';
4
4
  import { decodeAddress, encodeAddress } from '@pezkuwi/util-crypto';
5
- import { Empty, Polkadot } from './icons/index.js';
6
- const Fallback = Polkadot;
5
+ import { Empty, Pezkuwi } from './icons/index.js';
6
+ const Fallback = Pezkuwi;
7
7
  const DEFAULT_SIZE = 64;
8
- const DEFAULT_THEME = 'polkadot';
8
+ const DEFAULT_THEME = 'pezkuwi';
9
9
  const Components = {
10
- polkadot: Polkadot
10
+ pezkuwi: Pezkuwi
11
11
  };
12
12
  export default class IdentityIcon extends React.PureComponent {
13
13
  state = {
@@ -2,11 +2,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React, { useMemo } from 'react';
3
3
  import { View } from 'react-native';
4
4
  import { Circle as SvgCircle, Svg } from 'react-native-svg';
5
- import { polkadotIcon } from '@pezkuwi/ui-shared';
5
+ import { pezkuwiIcon } from '@pezkuwi/ui-shared';
6
6
  function renderCircle({ cx, cy, fill, r }, key) {
7
7
  return (_jsx(SvgCircle, { cx: cx, cy: cy, fill: fill, r: r }, key));
8
8
  }
9
9
  export default function Identicon({ address, isAlternative = false, size }) {
10
- const circles = useMemo(() => polkadotIcon(address, { isAlternative }), [address, isAlternative]);
10
+ const circles = useMemo(() => pezkuwiIcon(address, { isAlternative }), [address, isAlternative]);
11
11
  return (_jsx(View, { children: _jsx(Svg, { height: size, id: address, viewBox: '0 0 64 64', width: size, children: circles.map(renderCircle) }) }));
12
12
  }
@@ -1,2 +1,2 @@
1
1
  export { default as Empty } from './Empty.js';
2
- export { default as Polkadot } from './Polkadot.js';
2
+ export { default as Pezkuwi } from './Pezkuwi.js';
@@ -1 +1 @@
1
- export const packageInfo = { name: '@pezkuwi/reactnative-identicon', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '3.16.6' };
1
+ export const packageInfo = { name: '@pezkuwi/reactnative-identicon', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '3.17.0' };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "./packageDetect.cjs"
19
19
  ],
20
20
  "type": "module",
21
- "version": "3.16.7",
21
+ "version": "3.17.0",
22
22
  "main": "index.js",
23
23
  "dependencies": {
24
24
  "@pezkuwi/ui-shared": "3.16.6",
package/src/Identicon.tsx CHANGED
@@ -9,14 +9,14 @@ import React from 'react';
9
9
  import { isHex, isU8a, u8aToHex } from '@pezkuwi/util';
10
10
  import { decodeAddress, encodeAddress } from '@pezkuwi/util-crypto';
11
11
 
12
- import { Empty, Polkadot } from './icons/index.js';
12
+ import { Empty, Pezkuwi } from './icons/index.js';
13
13
 
14
- const Fallback = Polkadot;
14
+ const Fallback = Pezkuwi;
15
15
 
16
16
  interface Props {
17
17
  prefix?: Prefix;
18
18
  size?: number;
19
- theme?: 'polkadot';
19
+ theme?: 'pezkuwi';
20
20
  value?: string | Uint8Array | null;
21
21
  }
22
22
 
@@ -26,10 +26,10 @@ interface State {
26
26
  }
27
27
 
28
28
  const DEFAULT_SIZE = 64;
29
- const DEFAULT_THEME = 'polkadot';
29
+ const DEFAULT_THEME = 'pezkuwi';
30
30
 
31
31
  const Components: Record<string, React.ComponentType<ComponentProps>> = {
32
- polkadot: Polkadot
32
+ pezkuwi: Pezkuwi
33
33
  };
34
34
 
35
35
  export default class IdentityIcon extends React.PureComponent<Props, State> {
@@ -8,7 +8,7 @@ import React, { useMemo } from 'react';
8
8
  import { View } from 'react-native';
9
9
  import { Circle as SvgCircle, Svg } from 'react-native-svg';
10
10
 
11
- import { polkadotIcon } from '@pezkuwi/ui-shared';
11
+ import { pezkuwiIcon } from '@pezkuwi/ui-shared';
12
12
 
13
13
  function renderCircle ({ cx, cy, fill, r }: CircleType, key: number): React.ReactNode {
14
14
  return (
@@ -24,7 +24,7 @@ function renderCircle ({ cx, cy, fill, r }: CircleType, key: number): React.Reac
24
24
 
25
25
  export default function Identicon ({ address, isAlternative = false, size }: Props): React.ReactElement<Props> {
26
26
  const circles = useMemo(
27
- () => polkadotIcon(address, { isAlternative }),
27
+ () => pezkuwiIcon(address, { isAlternative }),
28
28
  [address, isAlternative]
29
29
  );
30
30
 
@@ -2,4 +2,4 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  export { default as Empty } from './Empty.js';
5
- export { default as Polkadot } from './Polkadot.js';
5
+ export { default as Pezkuwi } from './Pezkuwi.js';
@@ -3,4 +3,4 @@
3
3
 
4
4
  // Do not edit, auto-generated by @pezkuwi/dev
5
5
 
6
- export const packageInfo = { name: '@pezkuwi/reactnative-identicon', path: 'auto', type: 'auto', version: '3.16.6' };
6
+ export const packageInfo = { name: '@pezkuwi/reactnative-identicon', path: 'auto', type: 'auto', version: '3.17.0' };