Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mottled-library

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mottled-library - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

dist/core/hooks/useClickedOutside.js

2

dist/core/index.d.ts

@@ -0,1 +1,3 @@

import { useClickedOutside, useDebounce, useIsMounted, useMountedState, useLocalStorage } from "./hooks";
export { useClickedOutside, useDebounce, useIsMounted, useMountedState, useLocalStorage, };
export declare const createSecColor: (color: string, amount: number) => string;

@@ -2,0 +4,0 @@ export declare type Network = "polkadot" | "kusama" | "westend" | "rococo";

2

dist/core/index.js

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const o=(o,e)=>"#"+o.replace(/^#/,"").replace(/../g,(o=>("0"+Math.min(255,Math.max(0,parseInt(o,16)+e)).toString(16)).substr(-2))),e={id:"polkadot",name:"Polkadot",color:"#E6007A"},s={id:"ksmcc3",name:"Kusama",color:"#2F2F2F"},t={id:"westend2",name:"Westend",color:"#FF9C28"},c={id:"rococo_v_2",name:"Rococo",color:"#696bff"},a=new Map;a.set("polkadot",Object.assign(Object.assign({},e),{secColor:o(e.color,-60)})),a.set("kusama",Object.assign(Object.assign({},s),{secColor:o(s.color,-60)})),a.set("westend",Object.assign(Object.assign({},t),{secColor:o(t.color,-60)})),a.set("rococo",Object.assign(Object.assign({},c),{secColor:o(c.color,-60)}));exports.createSecColor=o,exports.defaultChains=["polkadot","kusama","westend","rococo"],exports.getChain=o=>a.get(o),exports.getChains=()=>a;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("react");const e=(e,o)=>"#"+e.replace(/^#/,"").replace(/../g,(e=>("0"+Math.min(255,Math.max(0,parseInt(e,16)+o)).toString(16)).substr(-2))),o={id:"polkadot",name:"Polkadot",color:"#E6007A"},s={id:"ksmcc3",name:"Kusama",color:"#2F2F2F"},t={id:"westend2",name:"Westend",color:"#FF9C28"},c={id:"rococo_v_2",name:"Rococo",color:"#696bff"},a=new Map;a.set("polkadot",Object.assign(Object.assign({},o),{secColor:e(o.color,-60)})),a.set("kusama",Object.assign(Object.assign({},s),{secColor:e(s.color,-60)})),a.set("westend",Object.assign(Object.assign({},t),{secColor:e(t.color,-60)})),a.set("rococo",Object.assign(Object.assign({},c),{secColor:e(c.color,-60)}));exports.createSecColor=e,exports.defaultChains=["polkadot","kusama","westend","rococo"],exports.getChain=e=>a.get(e),exports.getChains=()=>a;

@@ -1,1 +0,29 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core/index.js"),o=require("./components/Button/Button.js"),r=require("./components/NetworkIcon/NetworkIcon.js"),t=require("./components/Card/Card.js"),s=require("./components/Tooltip/Tooltip.js"),n=require("./components/Accordion/Accordion.js"),i=require("./recipes/NetworkSlider/NetworkSlider.js");exports.createSecColor=e.createSecColor,exports.defaultChains=e.defaultChains,exports.getChain=e.getChain,exports.getChains=e.getChains,exports.Button=o.Button,exports.NetworkIcon=r.NetworkIcon,exports.Card=t.Card,exports.Tooltip=s.Tooltip,exports.Accordion=n.Accordion,exports.NetworkSlider=i.NetworkSlider;
"use strict"
Object.defineProperty(exports, "__esModule", { value: !0 })
var e = require("./core/index.js"),
o = require("./components/Button/Button.js"),
r = require("./components/NetworkIcon/NetworkIcon.js"),
t = require("./components/Card/Card.js"),
s = require("./components/Tooltip/Tooltip.js"),
u = require("./components/Accordion/Accordion.js"),
i = require("./recipes/NetworkSlider/NetworkSlider.js"),
c = require("./core/hooks/useClickedOutside.js"),
n = require("./core/hooks/useDebounce.js"),
d = require("./core/hooks/useIsMounted.js"),
p = require("./core/hooks/useMountedState.js"),
a = require("./core/hooks/useLocalStorage.js")
;(exports.createSecColor = e.createSecColor),
(exports.defaultChains = e.defaultChains),
(exports.getChain = e.getChain),
(exports.getChains = e.getChains),
(exports.Button = o.Button),
(exports.NetworkIcon = r.NetworkIcon),
(exports.Card = t.Card),
(exports.Tooltip = s.Tooltip),
(exports.Accordion = u.Accordion),
(exports.NetworkSlider = i.NetworkSlider),
(exports.useClickedOutside = c.useClickedOutside),
(exports.useDebounce = n.useDebounce),
(exports.useIsMounted = d.useIsMounted),
(exports.useMountedState = p.useMountedState),
(exports.useLocalStorage = a.useLocalStorage)
{
"name": "mottled-library",
"version": "0.0.14",
"version": "0.0.15",
"author": "Parity Team <admin@parity.io>",

@@ -5,0 +5,0 @@ "maintainers": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc