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

@ied/badge

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ied/badge - npm Package Compare versions

Comparing version 1.0.0-beta.10 to 1.0.0

2

dist/bundle.js

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

!function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("react"),require("@ied/color"),require("@ied/icon"),require("styled-components"));else if("function"==typeof define&&define.amd)define(["react","@ied/color","@ied/icon","styled-components"],n);else{var t="object"==typeof exports?n(require("react"),require("@ied/color"),require("@ied/icon"),require("styled-components")):n(e.react,e["@ied/color"],e["@ied/icon"],e["styled-components"]);for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}}("undefined"!=typeof self?self:this,function(e,n,t,r){return function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var t={};return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=0)}([function(e,n,t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){return o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},o.apply(this,arguments)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t(1)),c=t(2),u=r(t(3)),a=t(4),l=function(e){var n=e.firstName,t=e.lastName,r=e.icon,l=e.text;e.small;if(n&&t){var f=n.slice(0,1),s=t.slice(0,1),d=(0,c.getColorFromString)("".concat(n).concat(t));return i.default.createElement(a.Container,o({},e,{color:d}),"".concat(f).concat(s))}if(l){var p=(0,c.getColorFromString)(l);return i.default.createElement(a.Container,o({},e,{color:p}),l)}return i.default.createElement(a.Container,e,i.default.createElement(u.default,null,r||"people"))},f=l;n.default=f},function(n,t){n.exports=e},function(e,t){e.exports=n},function(e,n){e.exports=t},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Container=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(t(5)),o=function(e,n){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n font-family: Open sans, sans-serif;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n color: white;\n text-transform: uppercase;\n background-color: ",";\n width: ",";\n height: ",";\n font-size: ",";\n ",";\n"],["\n font-family: Open sans, sans-serif;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n color: white;\n text-transform: uppercase;\n background-color: ",";\n width: ",";\n height: ",";\n font-size: ",";\n ",";\n"]),i=r.default.div(o,function(e){return e.color||"grey"},function(e){return e.small?"30px":"40px"},function(e){return e.small?"30px":"40px"},function(e){return e.small?"13px":"16px"},function(e){return e.small&&"\n i{\n font-size: 16px;\n }\n "});n.Container=i},function(e,n){e.exports=r}])});
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("@ied/color"),require("@ied/icon"),require("styled-components"));else if("function"==typeof define&&define.amd)define(["react","@ied/color","@ied/icon","styled-components"],t);else{var n="object"==typeof exports?t(require("react"),require("@ied/color"),require("@ied/icon"),require("styled-components")):t(e.react,e["@ied/color"],e["@ied/icon"],e["styled-components"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}("undefined"!=typeof self?self:this,function(e,t,n,r){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1)),c=n(2),u=r(n(3)),l=n(4),a=function(e){var t=e.firstName,n=e.lastName,r=e.icon,a=e.text;e.small;if(t&&n){var f=t.slice(0,1),s=n.slice(0,1),d=(0,c.getColorFromString)("".concat(t," ").concat(n).toLocaleLowerCase(),.7,.5);return i.default.createElement(l.Container,o({},e,{color:d}),"".concat(f).concat(s))}if(a){var p=(0,c.getColorFromString)(a);return i.default.createElement(l.Container,o({},e,{color:p}),a)}return i.default.createElement(l.Container,e,i.default.createElement(u.default,null,r||"people"))},f=a;t.default=f},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";function r(){var e=o(["\n font-family: Open sans, sans-serif;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n color: white;\n text-transform: uppercase;\n background-color: ",";\n width: ",";\n height: ",";\n font-size: ",";\n ",";\n"]);return r=function(){return e},e}function o(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}Object.defineProperty(t,"__esModule",{value:!0}),t.Container=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(5)),c=i.default.div(r(),function(e){return e.color||"grey"},function(e){return e.small?"30px":"40px"},function(e){return e.small?"30px":"40px"},function(e){return e.small?"13px":"16px"},function(e){return e.small&&"\n i{\n font-size: 16px;\n }\n "});t.Container=c},function(e,t){e.exports=r}])});
//# sourceMappingURL=bundle.js.map
{
"name": "@ied/badge",
"version": "1.0.0-beta.10",
"version": "1.0.0",
"main": "dist/bundle.js",

@@ -5,0 +5,0 @@ "author": "Didier Franc",

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