mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-14 11:21:04 +00:00
Bump deps (#769)
This commit is contained in:
@@ -22,11 +22,11 @@
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"colord": "^2.9.3",
|
||||
"tslib": "^2.6.0"
|
||||
"tslib": "^2.6.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/util": "^12.3.2",
|
||||
"@polkadot/util-crypto": "^12.3.2",
|
||||
"@polkadot/util": "^12.4.1",
|
||||
"@polkadot/util-crypto": "^12.4.1",
|
||||
"@types/xmlserializer": "^0.6.3",
|
||||
"xmlserializer": "^0.6.1"
|
||||
},
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
// Copyright 2016 Dan Finlay
|
||||
|
||||
export function container (diameter: number, background = 'white', className = '', _style: { [index: string]: string } = {}): HTMLElement {
|
||||
export function container (diameter: number, background = 'white', className = '', _style: Record<string, string> = {}): HTMLElement {
|
||||
const element = document.createElement('div');
|
||||
const style = Object.assign({
|
||||
background,
|
||||
|
||||
@@ -12,7 +12,7 @@ import { container as newContainer } from './container.js';
|
||||
import { SHAPE_COUNT } from './defaults.js';
|
||||
import { seeder as newSeeder } from './seeder.js';
|
||||
|
||||
export function beachballIcon (seed: string | Uint8Array, { size = 256 }: Options, className = '', style?: { [index: string]: string }): HTMLElement {
|
||||
export function beachballIcon (seed: string | Uint8Array, { size = 256 }: Options, className = '', style?: Record<string, string>): HTMLElement {
|
||||
const seeder = newSeeder(seed);
|
||||
const colorGen = colors(seeder);
|
||||
const outer = newContainer(size, 'white', className, style);
|
||||
|
||||
@@ -3,6 +3,4 @@
|
||||
|
||||
export type Seeder = () => number;
|
||||
|
||||
export interface ColorGen {
|
||||
(alpha?: number): string;
|
||||
}
|
||||
export type ColorGen = (alpha?: number) => string;
|
||||
|
||||
Reference in New Issue
Block a user