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

funky-library

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

funky-library - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

dist/esm/types/components/TestCom/index.d.ts

2

dist/esm/index.js

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

import n from"react";import r from"styled-components";var e=function(){return e=Object.assign||function(n){for(var r,e=1,o=arguments.length;e<o;e++)for(var t in r=arguments[e])Object.prototype.hasOwnProperty.call(r,t)&&(n[t]=r[t]);return n},e.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var o,t,i,p=r.button(i||(o=["\n border: 0;\n line-height: 1;\n font-size: 15px;\n cursor: pointer;\n //font-weight: 700;\n font-weight: bold;\n border-radius: 3px;\n display: inline-block;\n padding: ",";\n color: ",";\n background-color: ",";\n opacity: ",";\n &:hover {\n background-color: ",";\n }\n &:active {\n border: solid 2px #1b116e;\n padding: ",";\n }\n"],t=["\n border: 0;\n line-height: 1;\n font-size: 15px;\n cursor: pointer;\n //font-weight: 700;\n font-weight: bold;\n border-radius: 3px;\n display: inline-block;\n padding: ",";\n color: ",";\n background-color: ",";\n opacity: ",";\n &:hover {\n background-color: ",";\n }\n &:active {\n border: solid 2px #1b116e;\n padding: ",";\n }\n"],Object.defineProperty?Object.defineProperty(o,"raw",{value:t}):o.raw=t,i=o),(function(n){return"small"===n.size?"7px 25px 8px":"medium"===n.size?"9px 30px 11px":"14px 30px 16px"}),(function(n){return n.primary?"#1b116e":"#ffffff"}),(function(n){return n.primary?"#6bedb5":"#1b116e"}),(function(n){return n.disabled?.5:1}),(function(n){return n.primary?"#55bd90":"#6bedb5"}),(function(n){return"small"===n.size?"5px 23px 6px":"medium"===n.size?"7px 28px 9px":"12px 28px 14px"})),a=function(r){var o=r.size,t=r.primary,i=r.disabled,a=r.text,c=r.onClick,d=function(n,r){var e={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&r.indexOf(o)<0&&(e[o]=n[o]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(o=Object.getOwnPropertySymbols(n);t<o.length;t++)r.indexOf(o[t])<0&&Object.prototype.propertyIsEnumerable.call(n,o[t])&&(e[o[t]]=n[o[t]])}return e}(r,["size","primary","disabled","text","onClick"]);return n.createElement(p,e({type:"button",onClick:c,primary:t,disabled:i,size:o},d),a)};export{a as Button};
import n from"react";import r from"styled-components";var e=function(){return e=Object.assign||function(n){for(var r,e=1,o=arguments.length;e<o;e++)for(var t in r=arguments[e])Object.prototype.hasOwnProperty.call(r,t)&&(n[t]=r[t]);return n},e.apply(this,arguments)};function o(n,r){return Object.defineProperty?Object.defineProperty(n,"raw",{value:r}):n.raw=r,n}"function"==typeof SuppressedError&&SuppressedError;var t,i,p=r.button(t||(t=o(["\n border: 0;\n line-height: 1;\n font-size: 15px;\n cursor: pointer;\n //font-weight: 700;\n font-weight: bold;\n border-radius: 3px;\n display: inline-block;\n padding: ",";\n color: ",";\n background-color: ",";\n opacity: ",";\n &:hover {\n background-color: ",";\n }\n &:active {\n border: solid 2px #1b116e;\n padding: ",";\n }\n"],["\n border: 0;\n line-height: 1;\n font-size: 15px;\n cursor: pointer;\n //font-weight: 700;\n font-weight: bold;\n border-radius: 3px;\n display: inline-block;\n padding: ",";\n color: ",";\n background-color: ",";\n opacity: ",";\n &:hover {\n background-color: ",";\n }\n &:active {\n border: solid 2px #1b116e;\n padding: ",";\n }\n"])),(function(n){return"small"===n.size?"7px 25px 8px":"medium"===n.size?"9px 30px 11px":"14px 30px 16px"}),(function(n){return n.primary?"#1b116e":"#ffffff"}),(function(n){return n.primary?"#6bedb5":"#1b116e"}),(function(n){return n.disabled?.5:1}),(function(n){return n.primary?"#55bd90":"#6bedb5"}),(function(n){return"small"===n.size?"5px 23px 6px":"medium"===n.size?"7px 28px 9px":"12px 28px 14px"})),c=function(r){var o=r.size,t=r.primary,i=r.disabled,c=r.text,a=r.onClick,l=function(n,r){var e={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&r.indexOf(o)<0&&(e[o]=n[o]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(o=Object.getOwnPropertySymbols(n);t<o.length;t++)r.indexOf(o[t])<0&&Object.prototype.propertyIsEnumerable.call(n,o[t])&&(e[o[t]]=n[o[t]])}return e}(r,["size","primary","disabled","text","onClick"]);return n.createElement(p,e({type:"button",onClick:a,primary:t,disabled:i,size:o},l),c)},a=r.div(i||(i=o(["\n color: red;\n"],["\n color: red;\n"]))),l=function(){return n.createElement(a,null,"it is a test component")};export{c as Button,l as TestCom};
//# sourceMappingURL=index.js.map
export { default as Button } from "./Button";
export { default as TestCom } from "./TestCom";

@@ -13,2 +13,4 @@ import React, { MouseEventHandler } from 'react';

export { Button };
declare const TestCom: () => React.JSX.Element;
export { Button, TestCom };
{
"name": "funky-library",
"version": "2.0.1",
"version": "2.0.2",
"main": "dist/esm/index.js",

@@ -5,0 +5,0 @@ "module": "dist/esm/index.js",

Sorry, the diff of this file is not supported yet

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