@ied/badge
Advanced tools
Comparing version 1.0.0-beta.2 to 1.0.0-beta.3
@@ -1,2 +0,2 @@ | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("@ied/color"),require("styled-components"),require("prop-types"));else if("function"==typeof define&&define.amd)define(["react","@ied/color","styled-components","prop-types"],t);else{var r="object"==typeof exports?t(require("react"),require("@ied/color"),require("styled-components"),require("prop-types")):t(e.react,e["@ied/color"],e["styled-components"],e["prop-types"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}("undefined"!=typeof self?self:this,function(e,t,r,n){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}function i(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return o(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=n(r(1)),c=r(2),s=r(3),a=n(r(5)),f=function(e){var t=e.firstName,r=e.lastName,n=i(t,1),o=n[0],a=i(r,1),f=a[0],l=(0,c.getColorFromString)("".concat(t).concat(r));return u.default.createElement(s.Container,{color:l},"".concat(o).concat(f))};f.propTypes={firstName:a.default.string.isRequired,lastName:a.default.string.isRequired};var l=f;t.default=l},function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Container=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(4)),o=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n font-family: Open sans, sans-serif;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n width: 40px;\n height: 40px;\n color: white;\n font-size: 16px;\n"],["\n font-family: Open sans, sans-serif;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n width: 40px;\n height: 40px;\n color: white;\n font-size: 16px;\n"]),i=n.default.div(o,function(e){return e.color||"grey"});t.Container=i},function(e,t){e.exports=r},function(e,t){e.exports=n}])}); | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("@ied/color"),require("styled-components"),require("prop-types"));else if("function"==typeof define&&define.amd)define(["react","@ied/color","styled-components","prop-types"],t);else{var r="object"==typeof exports?t(require("react"),require("@ied/color"),require("styled-components"),require("prop-types")):t(e.react,e["@ied/color"],e["styled-components"],e["prop-types"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}("undefined"!=typeof self?self:this,function(e,t,r,n){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,r){"use strict";function n(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var c,u=e[Symbol.iterator]();!(n=(c=u.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}function o(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return n(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(1)),c=r(2),u=r(3),f=(r(5),function(e){var t=e.firstName,r=e.lastName,n=o(t,1),f=n[0],a=o(r,1),s=a[0],p=(0,c.getColorFromString)("".concat(t).concat(r));return i.createElement(u.Container,{color:p},"".concat(f).concat(s))}),a=f;t.default=a},function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Container=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(4)),o=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n font-family: Open sans, sans-serif;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n width: 40px;\n height: 40px;\n color: white;\n font-size: 16px;\n"],["\n font-family: Open sans, sans-serif;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n width: 40px;\n height: 40px;\n color: white;\n font-size: 16px;\n"]),i=n.default.div(o,function(e){return e.color||"grey"});t.Container=i},function(e,t){e.exports=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bpfrpt_proptype_C=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(6)),o=function(){return("function"==typeof React$StatelessFunctionalComponent?n.default.instanceOf(React$StatelessFunctionalComponent):n.default.any).apply(this,arguments)};t.bpfrpt_proptype_C=o},function(e,t){e.exports=n}])}); | ||
//# sourceMappingURL=bundle.js.map |
{ | ||
"name": "@ied/badge", | ||
"version": "1.0.0-beta.2", | ||
"version": "1.0.0-beta.3", | ||
"main": "dist/bundle.js", | ||
@@ -31,4 +31,4 @@ "author": "Didier Franc", | ||
"build:js": "webpack --config webpack.config.prod.js", | ||
"build:flow": "flow gen-flow-files src/Badge.js > dist/bundle.js.flow" | ||
"build:flow": "cp src/types.js dist/bundle.js.flow" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22077
13