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

@atlaskit/badge

Package Overview
Dependencies
Maintainers
1
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/badge - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

src/index.d.ts

14

CHANGELOG.md

@@ -1,6 +0,16 @@

<a name="1.0.3"></a>
## 1.0.3 (2017-02-16)
<a name="1.1.0"></a>
# 1.1.0 (2017-03-15)
<a name="1.1.0"></a>
# 1.1.0 (2017-03-15)
### Features
* **component:** added typescript definition file to badges ([a067336](https://bitbucket.org/atlassian/atlaskit/commits/a067336))
<a name="1.0.3"></a>

@@ -7,0 +17,0 @@ ## 1.0.3 (2017-02-16)

34

dist/bundle-cjs.js

@@ -187,21 +187,21 @@ module.exports = /******/

// module
exports.push([ module.id, "._1D6T2sgUgHd4b7D0U4oRn5{display:inline-block}._3Xn4xMcW5pQ_zUprYFcwKf{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}._1XvE1MHQm-ZCz_OXWKgjME{background:#ebecf0;color:#42526e}.imq3ByVVBjwvkJdKTpseO{background:#0052cc;color:#fff}._1wLEAFDQj2Mz_PPzbPXECy{background:#ff5630;color:#fff}._38at2YcmSHLP5qrWkkqNDf{background:#e3fcef;color:#064}._26JhV2xMddRSJ52ByBDDwh{background:#ffebe6;color:#bf2600}._1wLEAFDQj2Mz_PPzbPXECy._16Z_ordjJZywfEefsbUkiX,._1XvE1MHQm-ZCz_OXWKgjME._16Z_ordjJZywfEefsbUkiX,._26JhV2xMddRSJ52ByBDDwh._16Z_ordjJZywfEefsbUkiX,._38at2YcmSHLP5qrWkkqNDf._16Z_ordjJZywfEefsbUkiX,.imq3ByVVBjwvkJdKTpseO._16Z_ordjJZywfEefsbUkiX{background:#fff;color:#0049b0}", "" ]),
exports.push([ module.id, "._3lTdgAgStPh-frhzjVXa9P{display:inline-block}._2ZJdifIwpxDv9sgmkmVT7d{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}._1gR7mvfrOsr04AyArDJmVZ{background:#ebecf0;color:#42526e}._1ed-Jh1gWFxweoZtiKx3NC{background:#0052cc;color:#fff}._1h7gynEbua0tvCk_mx0B5F{background:#ff5630;color:#fff}._3wFEawONpA-0UiS9iBWwih{background:#e3fcef;color:#064}._1y2-a7hmlQ4bY_S7YEkUYq{background:#ffebe6;color:#bf2600}._1ed-Jh1gWFxweoZtiKx3NC._1_KsBoJdEt3CUhRtwd1bYf,._1gR7mvfrOsr04AyArDJmVZ._1_KsBoJdEt3CUhRtwd1bYf,._1h7gynEbua0tvCk_mx0B5F._1_KsBoJdEt3CUhRtwd1bYf,._1y2-a7hmlQ4bY_S7YEkUYq._1_KsBoJdEt3CUhRtwd1bYf,._3wFEawONpA-0UiS9iBWwih._1_KsBoJdEt3CUhRtwd1bYf{background:#fff;color:#0049b0}", "" ]),
// exports
exports.locals = {
container: "_1D6T2sgUgHd4b7D0U4oRn5",
container: "_1D6T2sgUgHd4b7D0U4oRn5",
value: "_3Xn4xMcW5pQ_zUprYFcwKf",
value: "_3Xn4xMcW5pQ_zUprYFcwKf",
default: "_1XvE1MHQm-ZCz_OXWKgjME",
default: "_1XvE1MHQm-ZCz_OXWKgjME",
primary: "imq3ByVVBjwvkJdKTpseO",
primary: "imq3ByVVBjwvkJdKTpseO",
important: "_1wLEAFDQj2Mz_PPzbPXECy",
important: "_1wLEAFDQj2Mz_PPzbPXECy",
added: "_38at2YcmSHLP5qrWkkqNDf",
added: "_38at2YcmSHLP5qrWkkqNDf",
removed: "_26JhV2xMddRSJ52ByBDDwh",
removed: "_26JhV2xMddRSJ52ByBDDwh",
isDarkTheme: "_16Z_ordjJZywfEefsbUkiX",
isDarkTheme: "_16Z_ordjJZywfEefsbUkiX"
container: "_3lTdgAgStPh-frhzjVXa9P",
container: "_3lTdgAgStPh-frhzjVXa9P",
value: "_2ZJdifIwpxDv9sgmkmVT7d",
value: "_2ZJdifIwpxDv9sgmkmVT7d",
default: "_1gR7mvfrOsr04AyArDJmVZ",
default: "_1gR7mvfrOsr04AyArDJmVZ",
primary: "_1ed-Jh1gWFxweoZtiKx3NC",
primary: "_1ed-Jh1gWFxweoZtiKx3NC",
important: "_1h7gynEbua0tvCk_mx0B5F",
important: "_1h7gynEbua0tvCk_mx0B5F",
added: "_3wFEawONpA-0UiS9iBWwih",
added: "_3wFEawONpA-0UiS9iBWwih",
removed: "_1y2-a7hmlQ4bY_S7YEkUYq",
removed: "_1y2-a7hmlQ4bY_S7YEkUYq",
isDarkTheme: "_1_KsBoJdEt3CUhRtwd1bYf",
isDarkTheme: "_1_KsBoJdEt3CUhRtwd1bYf"
};

@@ -208,0 +208,0 @@ }, /* 14 */

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

module.exports=function(e){function t(n){if(r[n])return r[n].exports;var a=r[n]={exports:{},id:n,loaded:!1};return e[n].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(3)},,,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(4),o=n(a),i=r(5),u=n(i),s=r(6),f=n(s),l=r(7),p=n(l),d=r(8),c=n(d),h=r(9),v=n(h),m=r(10),b=n(m),y=r(11),_=n(y),g=r(12),x=n(g),k={values:["default","primary","important","added","removed"],defaultValue:"default"},U={values:["default","dark"],defaultValue:"default"},w=function(e){function t(){return(0,f.default)(this,t),(0,c.default)(this,(t.__proto__||(0,u.default)(t)).apply(this,arguments))}return(0,v.default)(t,e),(0,p.default)(t,[{key:"componentWillUpdate",value:function(e){var t=this.props,r=t.onValueUpdated,n=t.value,a=e.value;r&&a!==n&&r({oldValue:n,newValue:a})}},{key:"displayValue",value:function(){var e=this.props,t=e.value,r=e.max;return t<0?0:r>0&&t>r?r+"+":t===1/0?"∞":t}},{key:"validAppearance",value:function(){var e=this.props.appearance,t=k.values,r=k.defaultValue;return t.indexOf(e)!==-1?e:r}},{key:"render",value:function(){return _.default.createElement("span",{className:x.default.root},_.default.createElement("span",{className:(0,b.default)([x.default.value,x.default[this.validAppearance()]],(0,o.default)({},x.default.isDarkTheme,"dark"===this.props.theme))},this.displayValue().toString()))}}]),t}(y.PureComponent);w.propTypes={value:y.PropTypes.number,max:y.PropTypes.number,appearance:y.PropTypes.oneOf(k.values),onValueUpdated:y.PropTypes.func,theme:y.PropTypes.oneOf(U.values)},w.defaultProps={value:0,max:99,appearance:k.defaultValue,theme:U.defaultValue},t.default=w},function(e,t){e.exports=require("babel-runtime/helpers/defineProperty")},function(e,t){e.exports=require("babel-runtime/core-js/object/get-prototype-of")},function(e,t){e.exports=require("babel-runtime/helpers/classCallCheck")},function(e,t){e.exports=require("babel-runtime/helpers/createClass")},function(e,t){e.exports=require("babel-runtime/helpers/possibleConstructorReturn")},function(e,t){e.exports=require("babel-runtime/helpers/inherits")},function(e,t){e.exports=require("classnames")},function(e,t){e.exports=require("react")},function(e,t,r){var n=r(13);"string"==typeof n&&(n=[[e.id,n,""]]),r(15)(n,{}),n.locals&&(e.exports=n.locals)},function(e,t,r){t=e.exports=r(14)(),t.push([e.id,"._1D6T2sgUgHd4b7D0U4oRn5{display:inline-block}._3Xn4xMcW5pQ_zUprYFcwKf{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}._1XvE1MHQm-ZCz_OXWKgjME{background:#ebecf0;color:#42526e}.imq3ByVVBjwvkJdKTpseO{background:#0052cc;color:#fff}._1wLEAFDQj2Mz_PPzbPXECy{background:#ff5630;color:#fff}._38at2YcmSHLP5qrWkkqNDf{background:#e3fcef;color:#064}._26JhV2xMddRSJ52ByBDDwh{background:#ffebe6;color:#bf2600}._1wLEAFDQj2Mz_PPzbPXECy._16Z_ordjJZywfEefsbUkiX,._1XvE1MHQm-ZCz_OXWKgjME._16Z_ordjJZywfEefsbUkiX,._26JhV2xMddRSJ52ByBDDwh._16Z_ordjJZywfEefsbUkiX,._38at2YcmSHLP5qrWkkqNDf._16Z_ordjJZywfEefsbUkiX,.imq3ByVVBjwvkJdKTpseO._16Z_ordjJZywfEefsbUkiX{background:#fff;color:#0049b0}",""]),t.locals={container:"_1D6T2sgUgHd4b7D0U4oRn5",container:"_1D6T2sgUgHd4b7D0U4oRn5",value:"_3Xn4xMcW5pQ_zUprYFcwKf",value:"_3Xn4xMcW5pQ_zUprYFcwKf",default:"_1XvE1MHQm-ZCz_OXWKgjME",default:"_1XvE1MHQm-ZCz_OXWKgjME",primary:"imq3ByVVBjwvkJdKTpseO",primary:"imq3ByVVBjwvkJdKTpseO",important:"_1wLEAFDQj2Mz_PPzbPXECy",important:"_1wLEAFDQj2Mz_PPzbPXECy",added:"_38at2YcmSHLP5qrWkkqNDf",added:"_38at2YcmSHLP5qrWkkqNDf",removed:"_26JhV2xMddRSJ52ByBDDwh",removed:"_26JhV2xMddRSJ52ByBDDwh",isDarkTheme:"_16Z_ordjJZywfEefsbUkiX",isDarkTheme:"_16Z_ordjJZywfEefsbUkiX"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var r=this[t];r[2]?e.push("@media "+r[2]+"{"+r[1]+"}"):e.push(r[1])}return e.join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},a=0;a<this.length;a++){var o=this[a][0];"number"==typeof o&&(n[o]=!0)}for(a=0;a<t.length;a++){var i=t[a];"number"==typeof i[0]&&n[i[0]]||(r&&!i[2]?i[2]=r:r&&(i[2]="("+i[2]+") and ("+r+")"),e.push(i))}},e}},function(e,t,r){function n(e,t){for(var r=0;r<e.length;r++){var n=e[r],a=c[n.id];if(a){a.refs++;for(var o=0;o<a.parts.length;o++)a.parts[o](n.parts[o]);for(;o<n.parts.length;o++)a.parts.push(f(n.parts[o],t))}else{for(var i=[],o=0;o<n.parts.length;o++)i.push(f(n.parts[o],t));c[n.id]={id:n.id,refs:1,parts:i}}}}function a(e){for(var t=[],r={},n=0;n<e.length;n++){var a=e[n],o=a[0],i=a[1],u=a[2],s=a[3],f={css:i,media:u,sourceMap:s};r[o]?r[o].parts.push(f):t.push(r[o]={id:o,parts:[f]})}return t}function o(e,t){var r=m(),n=_[_.length-1];if("top"===e.insertAt)n?n.nextSibling?r.insertBefore(t,n.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),_.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(t)}}function i(e){e.parentNode.removeChild(e);var t=_.indexOf(e);t>=0&&_.splice(t,1)}function u(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",o(e,t),t}function f(e,t){var r,n,a;if(t.singleton){var o=y++;r=b||(b=u(t)),n=l.bind(null,r,o,!1),a=l.bind(null,r,o,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=s(t),n=d.bind(null,r),a=function(){i(r),r.href&&URL.revokeObjectURL(r.href)}):(r=u(t),n=p.bind(null,r),a=function(){i(r)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else a()}}function l(e,t,r,n){var a=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=g(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function p(e,t){var r=t.css,n=t.media;if(n&&e.setAttribute("media",n),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}function d(e,t){var r=t.css,n=t.sourceMap;n&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var a=new Blob([r],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(a),o&&URL.revokeObjectURL(o)}var c={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},v=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),m=h(function(){return document.head||document.getElementsByTagName("head")[0]}),b=null,y=0,_=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=v()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var r=a(e);return n(r,t),function(e){for(var o=[],i=0;i<r.length;i++){var u=r[i],s=c[u.id];s.refs--,o.push(s)}if(e){var f=a(e);n(f,t)}for(var i=0;i<o.length;i++){var s=o[i];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete c[s.id]}}}};var g=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()}]);
module.exports=function(e){function t(n){if(r[n])return r[n].exports;var a=r[n]={exports:{},id:n,loaded:!1};return e[n].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(3)},,,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(4),o=n(a),i=r(5),u=n(i),s=r(6),l=n(s),f=r(7),d=n(f),p=r(8),c=n(p),h=r(9),m=n(h),v=r(10),b=n(v),g=r(11),y=n(g),_=r(12),x=n(_),w={values:["default","primary","important","added","removed"],defaultValue:"default"},k={values:["default","dark"],defaultValue:"default"},C=function(e){function t(){return(0,l.default)(this,t),(0,c.default)(this,(t.__proto__||(0,u.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"componentWillUpdate",value:function(e){var t=this.props,r=t.onValueUpdated,n=t.value,a=e.value;r&&a!==n&&r({oldValue:n,newValue:a})}},{key:"displayValue",value:function(){var e=this.props,t=e.value,r=e.max;return t<0?0:r>0&&t>r?r+"+":t===1/0?"∞":t}},{key:"validAppearance",value:function(){var e=this.props.appearance,t=w.values,r=w.defaultValue;return t.indexOf(e)!==-1?e:r}},{key:"render",value:function(){return y.default.createElement("span",{className:x.default.root},y.default.createElement("span",{className:(0,b.default)([x.default.value,x.default[this.validAppearance()]],(0,o.default)({},x.default.isDarkTheme,"dark"===this.props.theme))},this.displayValue().toString()))}}]),t}(g.PureComponent);C.propTypes={value:g.PropTypes.number,max:g.PropTypes.number,appearance:g.PropTypes.oneOf(w.values),onValueUpdated:g.PropTypes.func,theme:g.PropTypes.oneOf(k.values)},C.defaultProps={value:0,max:99,appearance:w.defaultValue,theme:k.defaultValue},t.default=C},function(e,t){e.exports=require("babel-runtime/helpers/defineProperty")},function(e,t){e.exports=require("babel-runtime/core-js/object/get-prototype-of")},function(e,t){e.exports=require("babel-runtime/helpers/classCallCheck")},function(e,t){e.exports=require("babel-runtime/helpers/createClass")},function(e,t){e.exports=require("babel-runtime/helpers/possibleConstructorReturn")},function(e,t){e.exports=require("babel-runtime/helpers/inherits")},function(e,t){e.exports=require("classnames")},function(e,t){e.exports=require("react")},function(e,t,r){var n=r(13);"string"==typeof n&&(n=[[e.id,n,""]]),r(15)(n,{}),n.locals&&(e.exports=n.locals)},function(e,t,r){t=e.exports=r(14)(),t.push([e.id,"._3lTdgAgStPh-frhzjVXa9P{display:inline-block}._2ZJdifIwpxDv9sgmkmVT7d{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}._1gR7mvfrOsr04AyArDJmVZ{background:#ebecf0;color:#42526e}._1ed-Jh1gWFxweoZtiKx3NC{background:#0052cc;color:#fff}._1h7gynEbua0tvCk_mx0B5F{background:#ff5630;color:#fff}._3wFEawONpA-0UiS9iBWwih{background:#e3fcef;color:#064}._1y2-a7hmlQ4bY_S7YEkUYq{background:#ffebe6;color:#bf2600}._1ed-Jh1gWFxweoZtiKx3NC._1_KsBoJdEt3CUhRtwd1bYf,._1gR7mvfrOsr04AyArDJmVZ._1_KsBoJdEt3CUhRtwd1bYf,._1h7gynEbua0tvCk_mx0B5F._1_KsBoJdEt3CUhRtwd1bYf,._1y2-a7hmlQ4bY_S7YEkUYq._1_KsBoJdEt3CUhRtwd1bYf,._3wFEawONpA-0UiS9iBWwih._1_KsBoJdEt3CUhRtwd1bYf{background:#fff;color:#0049b0}",""]),t.locals={container:"_3lTdgAgStPh-frhzjVXa9P",container:"_3lTdgAgStPh-frhzjVXa9P",value:"_2ZJdifIwpxDv9sgmkmVT7d",value:"_2ZJdifIwpxDv9sgmkmVT7d",default:"_1gR7mvfrOsr04AyArDJmVZ",default:"_1gR7mvfrOsr04AyArDJmVZ",primary:"_1ed-Jh1gWFxweoZtiKx3NC",primary:"_1ed-Jh1gWFxweoZtiKx3NC",important:"_1h7gynEbua0tvCk_mx0B5F",important:"_1h7gynEbua0tvCk_mx0B5F",added:"_3wFEawONpA-0UiS9iBWwih",added:"_3wFEawONpA-0UiS9iBWwih",removed:"_1y2-a7hmlQ4bY_S7YEkUYq",removed:"_1y2-a7hmlQ4bY_S7YEkUYq",isDarkTheme:"_1_KsBoJdEt3CUhRtwd1bYf",isDarkTheme:"_1_KsBoJdEt3CUhRtwd1bYf"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var r=this[t];r[2]?e.push("@media "+r[2]+"{"+r[1]+"}"):e.push(r[1])}return e.join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},a=0;a<this.length;a++){var o=this[a][0];"number"==typeof o&&(n[o]=!0)}for(a=0;a<t.length;a++){var i=t[a];"number"==typeof i[0]&&n[i[0]]||(r&&!i[2]?i[2]=r:r&&(i[2]="("+i[2]+") and ("+r+")"),e.push(i))}},e}},function(e,t,r){function n(e,t){for(var r=0;r<e.length;r++){var n=e[r],a=c[n.id];if(a){a.refs++;for(var o=0;o<a.parts.length;o++)a.parts[o](n.parts[o]);for(;o<n.parts.length;o++)a.parts.push(l(n.parts[o],t))}else{for(var i=[],o=0;o<n.parts.length;o++)i.push(l(n.parts[o],t));c[n.id]={id:n.id,refs:1,parts:i}}}}function a(e){for(var t=[],r={},n=0;n<e.length;n++){var a=e[n],o=a[0],i=a[1],u=a[2],s=a[3],l={css:i,media:u,sourceMap:s};r[o]?r[o].parts.push(l):t.push(r[o]={id:o,parts:[l]})}return t}function o(e,t){var r=v(),n=y[y.length-1];if("top"===e.insertAt)n?n.nextSibling?r.insertBefore(t,n.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),y.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(t)}}function i(e){e.parentNode.removeChild(e);var t=y.indexOf(e);t>=0&&y.splice(t,1)}function u(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",o(e,t),t}function l(e,t){var r,n,a;if(t.singleton){var o=g++;r=b||(b=u(t)),n=f.bind(null,r,o,!1),a=f.bind(null,r,o,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=s(t),n=p.bind(null,r),a=function(){i(r),r.href&&URL.revokeObjectURL(r.href)}):(r=u(t),n=d.bind(null,r),a=function(){i(r)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else a()}}function f(e,t,r,n){var a=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=_(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function d(e,t){var r=t.css,n=t.media;if(n&&e.setAttribute("media",n),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}function p(e,t){var r=t.css,n=t.sourceMap;n&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var a=new Blob([r],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(a),o&&URL.revokeObjectURL(o)}var c={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=h(function(){return document.head||document.getElementsByTagName("head")[0]}),b=null,g=0,y=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var r=a(e);return n(r,t),function(e){for(var o=[],i=0;i<r.length;i++){var u=r[i],s=c[u.id];s.refs--,o.push(s)}if(e){var l=a(e);n(l,t)}for(var i=0;i<o.length;i++){var s=o[i];if(0===s.refs){for(var f=0;f<s.parts.length;f++)s.parts[f]();delete c[s.id]}}}};var _=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()}]);

@@ -190,21 +190,21 @@ !function(root, factory) {

// module
exports.push([ module.id, "._1D6T2sgUgHd4b7D0U4oRn5{display:inline-block}._3Xn4xMcW5pQ_zUprYFcwKf{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}._1XvE1MHQm-ZCz_OXWKgjME{background:#ebecf0;color:#42526e}.imq3ByVVBjwvkJdKTpseO{background:#0052cc;color:#fff}._1wLEAFDQj2Mz_PPzbPXECy{background:#ff5630;color:#fff}._38at2YcmSHLP5qrWkkqNDf{background:#e3fcef;color:#064}._26JhV2xMddRSJ52ByBDDwh{background:#ffebe6;color:#bf2600}._1wLEAFDQj2Mz_PPzbPXECy._16Z_ordjJZywfEefsbUkiX,._1XvE1MHQm-ZCz_OXWKgjME._16Z_ordjJZywfEefsbUkiX,._26JhV2xMddRSJ52ByBDDwh._16Z_ordjJZywfEefsbUkiX,._38at2YcmSHLP5qrWkkqNDf._16Z_ordjJZywfEefsbUkiX,.imq3ByVVBjwvkJdKTpseO._16Z_ordjJZywfEefsbUkiX{background:#fff;color:#0049b0}", "" ]),
exports.push([ module.id, "._3lTdgAgStPh-frhzjVXa9P{display:inline-block}._2ZJdifIwpxDv9sgmkmVT7d{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}._1gR7mvfrOsr04AyArDJmVZ{background:#ebecf0;color:#42526e}._1ed-Jh1gWFxweoZtiKx3NC{background:#0052cc;color:#fff}._1h7gynEbua0tvCk_mx0B5F{background:#ff5630;color:#fff}._3wFEawONpA-0UiS9iBWwih{background:#e3fcef;color:#064}._1y2-a7hmlQ4bY_S7YEkUYq{background:#ffebe6;color:#bf2600}._1ed-Jh1gWFxweoZtiKx3NC._1_KsBoJdEt3CUhRtwd1bYf,._1gR7mvfrOsr04AyArDJmVZ._1_KsBoJdEt3CUhRtwd1bYf,._1h7gynEbua0tvCk_mx0B5F._1_KsBoJdEt3CUhRtwd1bYf,._1y2-a7hmlQ4bY_S7YEkUYq._1_KsBoJdEt3CUhRtwd1bYf,._3wFEawONpA-0UiS9iBWwih._1_KsBoJdEt3CUhRtwd1bYf{background:#fff;color:#0049b0}", "" ]),
// exports
exports.locals = {
container: "_1D6T2sgUgHd4b7D0U4oRn5",
container: "_1D6T2sgUgHd4b7D0U4oRn5",
value: "_3Xn4xMcW5pQ_zUprYFcwKf",
value: "_3Xn4xMcW5pQ_zUprYFcwKf",
default: "_1XvE1MHQm-ZCz_OXWKgjME",
default: "_1XvE1MHQm-ZCz_OXWKgjME",
primary: "imq3ByVVBjwvkJdKTpseO",
primary: "imq3ByVVBjwvkJdKTpseO",
important: "_1wLEAFDQj2Mz_PPzbPXECy",
important: "_1wLEAFDQj2Mz_PPzbPXECy",
added: "_38at2YcmSHLP5qrWkkqNDf",
added: "_38at2YcmSHLP5qrWkkqNDf",
removed: "_26JhV2xMddRSJ52ByBDDwh",
removed: "_26JhV2xMddRSJ52ByBDDwh",
isDarkTheme: "_16Z_ordjJZywfEefsbUkiX",
isDarkTheme: "_16Z_ordjJZywfEefsbUkiX"
container: "_3lTdgAgStPh-frhzjVXa9P",
container: "_3lTdgAgStPh-frhzjVXa9P",
value: "_2ZJdifIwpxDv9sgmkmVT7d",
value: "_2ZJdifIwpxDv9sgmkmVT7d",
default: "_1gR7mvfrOsr04AyArDJmVZ",
default: "_1gR7mvfrOsr04AyArDJmVZ",
primary: "_1ed-Jh1gWFxweoZtiKx3NC",
primary: "_1ed-Jh1gWFxweoZtiKx3NC",
important: "_1h7gynEbua0tvCk_mx0B5F",
important: "_1h7gynEbua0tvCk_mx0B5F",
added: "_3wFEawONpA-0UiS9iBWwih",
added: "_3wFEawONpA-0UiS9iBWwih",
removed: "_1y2-a7hmlQ4bY_S7YEkUYq",
removed: "_1y2-a7hmlQ4bY_S7YEkUYq",
isDarkTheme: "_1_KsBoJdEt3CUhRtwd1bYf",
isDarkTheme: "_1_KsBoJdEt3CUhRtwd1bYf"
};

@@ -211,0 +211,0 @@ }, /* 14 */

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babel-runtime/helpers/defineProperty"),require("babel-runtime/core-js/object/get-prototype-of"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("classnames"),require("react")):"function"==typeof define&&define.amd?define(["babel-runtime/helpers/defineProperty","babel-runtime/core-js/object/get-prototype-of","babel-runtime/helpers/classCallCheck","babel-runtime/helpers/createClass","babel-runtime/helpers/possibleConstructorReturn","babel-runtime/helpers/inherits","classnames","react"],t):"object"==typeof exports?exports["@atlaskit/badge"]=t(require("babel-runtime/helpers/defineProperty"),require("babel-runtime/core-js/object/get-prototype-of"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("classnames"),require("react")):e["@atlaskit/badge"]=t(e["babel-runtime/helpers/defineProperty"],e["babel-runtime/core-js/object/get-prototype-of"],e["babel-runtime/helpers/classCallCheck"],e["babel-runtime/helpers/createClass"],e["babel-runtime/helpers/possibleConstructorReturn"],e["babel-runtime/helpers/inherits"],e.classnames,e.react)}(this,function(e,t,r,n,a,o,i,s){return function(e){function t(n){if(r[n])return r[n].exports;var a=r[n]={exports:{},id:n,loaded:!1};return e[n].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(3)},,,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(4),o=n(a),i=r(5),s=n(i),u=r(6),l=n(u),f=r(7),p=n(f),c=r(8),d=n(c),b=r(9),h=n(b),m=r(10),v=n(m),y=r(11),_=n(y),g=r(12),k=n(g),x={values:["default","primary","important","added","removed"],defaultValue:"default"},j={values:["default","dark"],defaultValue:"default"},C=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,h.default)(t,e),(0,p.default)(t,[{key:"componentWillUpdate",value:function(e){var t=this.props,r=t.onValueUpdated,n=t.value,a=e.value;r&&a!==n&&r({oldValue:n,newValue:a})}},{key:"displayValue",value:function(){var e=this.props,t=e.value,r=e.max;return t<0?0:r>0&&t>r?r+"+":t===1/0?"∞":t}},{key:"validAppearance",value:function(){var e=this.props.appearance,t=x.values,r=x.defaultValue;return t.indexOf(e)!==-1?e:r}},{key:"render",value:function(){return _.default.createElement("span",{className:k.default.root},_.default.createElement("span",{className:(0,v.default)([k.default.value,k.default[this.validAppearance()]],(0,o.default)({},k.default.isDarkTheme,"dark"===this.props.theme))},this.displayValue().toString()))}}]),t}(y.PureComponent);C.propTypes={value:y.PropTypes.number,max:y.PropTypes.number,appearance:y.PropTypes.oneOf(x.values),onValueUpdated:y.PropTypes.func,theme:y.PropTypes.oneOf(j.values)},C.defaultProps={value:0,max:99,appearance:x.defaultValue,theme:j.defaultValue},t.default=C},function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t){e.exports=a},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t){e.exports=s},function(e,t,r){var n=r(13);"string"==typeof n&&(n=[[e.id,n,""]]),r(15)(n,{}),n.locals&&(e.exports=n.locals)},function(e,t,r){t=e.exports=r(14)(),t.push([e.id,"._1D6T2sgUgHd4b7D0U4oRn5{display:inline-block}._3Xn4xMcW5pQ_zUprYFcwKf{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}._1XvE1MHQm-ZCz_OXWKgjME{background:#ebecf0;color:#42526e}.imq3ByVVBjwvkJdKTpseO{background:#0052cc;color:#fff}._1wLEAFDQj2Mz_PPzbPXECy{background:#ff5630;color:#fff}._38at2YcmSHLP5qrWkkqNDf{background:#e3fcef;color:#064}._26JhV2xMddRSJ52ByBDDwh{background:#ffebe6;color:#bf2600}._1wLEAFDQj2Mz_PPzbPXECy._16Z_ordjJZywfEefsbUkiX,._1XvE1MHQm-ZCz_OXWKgjME._16Z_ordjJZywfEefsbUkiX,._26JhV2xMddRSJ52ByBDDwh._16Z_ordjJZywfEefsbUkiX,._38at2YcmSHLP5qrWkkqNDf._16Z_ordjJZywfEefsbUkiX,.imq3ByVVBjwvkJdKTpseO._16Z_ordjJZywfEefsbUkiX{background:#fff;color:#0049b0}",""]),t.locals={container:"_1D6T2sgUgHd4b7D0U4oRn5",container:"_1D6T2sgUgHd4b7D0U4oRn5",value:"_3Xn4xMcW5pQ_zUprYFcwKf",value:"_3Xn4xMcW5pQ_zUprYFcwKf",default:"_1XvE1MHQm-ZCz_OXWKgjME",default:"_1XvE1MHQm-ZCz_OXWKgjME",primary:"imq3ByVVBjwvkJdKTpseO",primary:"imq3ByVVBjwvkJdKTpseO",important:"_1wLEAFDQj2Mz_PPzbPXECy",important:"_1wLEAFDQj2Mz_PPzbPXECy",added:"_38at2YcmSHLP5qrWkkqNDf",added:"_38at2YcmSHLP5qrWkkqNDf",removed:"_26JhV2xMddRSJ52ByBDDwh",removed:"_26JhV2xMddRSJ52ByBDDwh",isDarkTheme:"_16Z_ordjJZywfEefsbUkiX",isDarkTheme:"_16Z_ordjJZywfEefsbUkiX"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var r=this[t];r[2]?e.push("@media "+r[2]+"{"+r[1]+"}"):e.push(r[1])}return e.join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},a=0;a<this.length;a++){var o=this[a][0];"number"==typeof o&&(n[o]=!0)}for(a=0;a<t.length;a++){var i=t[a];"number"==typeof i[0]&&n[i[0]]||(r&&!i[2]?i[2]=r:r&&(i[2]="("+i[2]+") and ("+r+")"),e.push(i))}},e}},function(e,t,r){function n(e,t){for(var r=0;r<e.length;r++){var n=e[r],a=d[n.id];if(a){a.refs++;for(var o=0;o<a.parts.length;o++)a.parts[o](n.parts[o]);for(;o<n.parts.length;o++)a.parts.push(l(n.parts[o],t))}else{for(var i=[],o=0;o<n.parts.length;o++)i.push(l(n.parts[o],t));d[n.id]={id:n.id,refs:1,parts:i}}}}function a(e){for(var t=[],r={},n=0;n<e.length;n++){var a=e[n],o=a[0],i=a[1],s=a[2],u=a[3],l={css:i,media:s,sourceMap:u};r[o]?r[o].parts.push(l):t.push(r[o]={id:o,parts:[l]})}return t}function o(e,t){var r=m(),n=_[_.length-1];if("top"===e.insertAt)n?n.nextSibling?r.insertBefore(t,n.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),_.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(t)}}function i(e){e.parentNode.removeChild(e);var t=_.indexOf(e);t>=0&&_.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function u(e){var t=document.createElement("link");return t.rel="stylesheet",o(e,t),t}function l(e,t){var r,n,a;if(t.singleton){var o=y++;r=v||(v=s(t)),n=f.bind(null,r,o,!1),a=f.bind(null,r,o,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=u(t),n=c.bind(null,r),a=function(){i(r),r.href&&URL.revokeObjectURL(r.href)}):(r=s(t),n=p.bind(null,r),a=function(){i(r)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else a()}}function f(e,t,r,n){var a=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=g(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function p(e,t){var r=t.css,n=t.media;if(n&&e.setAttribute("media",n),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}function c(e,t){var r=t.css,n=t.sourceMap;n&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var a=new Blob([r],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(a),o&&URL.revokeObjectURL(o)}var d={},b=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},h=b(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),m=b(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,y=0,_=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=h()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var r=a(e);return n(r,t),function(e){for(var o=[],i=0;i<r.length;i++){var s=r[i],u=d[s.id];u.refs--,o.push(u)}if(e){var l=a(e);n(l,t)}for(var i=0;i<o.length;i++){var u=o[i];if(0===u.refs){for(var f=0;f<u.parts.length;f++)u.parts[f]();delete d[u.id]}}}};var g=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babel-runtime/helpers/defineProperty"),require("babel-runtime/core-js/object/get-prototype-of"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("classnames"),require("react")):"function"==typeof define&&define.amd?define(["babel-runtime/helpers/defineProperty","babel-runtime/core-js/object/get-prototype-of","babel-runtime/helpers/classCallCheck","babel-runtime/helpers/createClass","babel-runtime/helpers/possibleConstructorReturn","babel-runtime/helpers/inherits","classnames","react"],t):"object"==typeof exports?exports["@atlaskit/badge"]=t(require("babel-runtime/helpers/defineProperty"),require("babel-runtime/core-js/object/get-prototype-of"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("classnames"),require("react")):e["@atlaskit/badge"]=t(e["babel-runtime/helpers/defineProperty"],e["babel-runtime/core-js/object/get-prototype-of"],e["babel-runtime/helpers/classCallCheck"],e["babel-runtime/helpers/createClass"],e["babel-runtime/helpers/possibleConstructorReturn"],e["babel-runtime/helpers/inherits"],e.classnames,e.react)}(this,function(e,t,r,n,a,o,i,s){return function(e){function t(n){if(r[n])return r[n].exports;var a=r[n]={exports:{},id:n,loaded:!1};return e[n].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(3)},,,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(4),o=n(a),i=r(5),s=n(i),l=r(6),u=n(l),f=r(7),p=n(f),d=r(8),c=n(d),h=r(9),b=n(h),m=r(10),v=n(m),y=r(11),g=n(y),_=r(12),x=n(_),C={values:["default","primary","important","added","removed"],defaultValue:"default"},k={values:["default","dark"],defaultValue:"default"},w=function(e){function t(){return(0,u.default)(this,t),(0,c.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,b.default)(t,e),(0,p.default)(t,[{key:"componentWillUpdate",value:function(e){var t=this.props,r=t.onValueUpdated,n=t.value,a=e.value;r&&a!==n&&r({oldValue:n,newValue:a})}},{key:"displayValue",value:function(){var e=this.props,t=e.value,r=e.max;return t<0?0:r>0&&t>r?r+"+":t===1/0?"∞":t}},{key:"validAppearance",value:function(){var e=this.props.appearance,t=C.values,r=C.defaultValue;return t.indexOf(e)!==-1?e:r}},{key:"render",value:function(){return g.default.createElement("span",{className:x.default.root},g.default.createElement("span",{className:(0,v.default)([x.default.value,x.default[this.validAppearance()]],(0,o.default)({},x.default.isDarkTheme,"dark"===this.props.theme))},this.displayValue().toString()))}}]),t}(y.PureComponent);w.propTypes={value:y.PropTypes.number,max:y.PropTypes.number,appearance:y.PropTypes.oneOf(C.values),onValueUpdated:y.PropTypes.func,theme:y.PropTypes.oneOf(k.values)},w.defaultProps={value:0,max:99,appearance:C.defaultValue,theme:k.defaultValue},t.default=w},function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t){e.exports=a},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t){e.exports=s},function(e,t,r){var n=r(13);"string"==typeof n&&(n=[[e.id,n,""]]),r(15)(n,{}),n.locals&&(e.exports=n.locals)},function(e,t,r){t=e.exports=r(14)(),t.push([e.id,"._3lTdgAgStPh-frhzjVXa9P{display:inline-block}._2ZJdifIwpxDv9sgmkmVT7d{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}._1gR7mvfrOsr04AyArDJmVZ{background:#ebecf0;color:#42526e}._1ed-Jh1gWFxweoZtiKx3NC{background:#0052cc;color:#fff}._1h7gynEbua0tvCk_mx0B5F{background:#ff5630;color:#fff}._3wFEawONpA-0UiS9iBWwih{background:#e3fcef;color:#064}._1y2-a7hmlQ4bY_S7YEkUYq{background:#ffebe6;color:#bf2600}._1ed-Jh1gWFxweoZtiKx3NC._1_KsBoJdEt3CUhRtwd1bYf,._1gR7mvfrOsr04AyArDJmVZ._1_KsBoJdEt3CUhRtwd1bYf,._1h7gynEbua0tvCk_mx0B5F._1_KsBoJdEt3CUhRtwd1bYf,._1y2-a7hmlQ4bY_S7YEkUYq._1_KsBoJdEt3CUhRtwd1bYf,._3wFEawONpA-0UiS9iBWwih._1_KsBoJdEt3CUhRtwd1bYf{background:#fff;color:#0049b0}",""]),t.locals={container:"_3lTdgAgStPh-frhzjVXa9P",container:"_3lTdgAgStPh-frhzjVXa9P",value:"_2ZJdifIwpxDv9sgmkmVT7d",value:"_2ZJdifIwpxDv9sgmkmVT7d",default:"_1gR7mvfrOsr04AyArDJmVZ",default:"_1gR7mvfrOsr04AyArDJmVZ",primary:"_1ed-Jh1gWFxweoZtiKx3NC",primary:"_1ed-Jh1gWFxweoZtiKx3NC",important:"_1h7gynEbua0tvCk_mx0B5F",important:"_1h7gynEbua0tvCk_mx0B5F",added:"_3wFEawONpA-0UiS9iBWwih",added:"_3wFEawONpA-0UiS9iBWwih",removed:"_1y2-a7hmlQ4bY_S7YEkUYq",removed:"_1y2-a7hmlQ4bY_S7YEkUYq",isDarkTheme:"_1_KsBoJdEt3CUhRtwd1bYf",isDarkTheme:"_1_KsBoJdEt3CUhRtwd1bYf"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var r=this[t];r[2]?e.push("@media "+r[2]+"{"+r[1]+"}"):e.push(r[1])}return e.join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},a=0;a<this.length;a++){var o=this[a][0];"number"==typeof o&&(n[o]=!0)}for(a=0;a<t.length;a++){var i=t[a];"number"==typeof i[0]&&n[i[0]]||(r&&!i[2]?i[2]=r:r&&(i[2]="("+i[2]+") and ("+r+")"),e.push(i))}},e}},function(e,t,r){function n(e,t){for(var r=0;r<e.length;r++){var n=e[r],a=c[n.id];if(a){a.refs++;for(var o=0;o<a.parts.length;o++)a.parts[o](n.parts[o]);for(;o<n.parts.length;o++)a.parts.push(u(n.parts[o],t))}else{for(var i=[],o=0;o<n.parts.length;o++)i.push(u(n.parts[o],t));c[n.id]={id:n.id,refs:1,parts:i}}}}function a(e){for(var t=[],r={},n=0;n<e.length;n++){var a=e[n],o=a[0],i=a[1],s=a[2],l=a[3],u={css:i,media:s,sourceMap:l};r[o]?r[o].parts.push(u):t.push(r[o]={id:o,parts:[u]})}return t}function o(e,t){var r=m(),n=g[g.length-1];if("top"===e.insertAt)n?n.nextSibling?r.insertBefore(t,n.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),g.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(t)}}function i(e){e.parentNode.removeChild(e);var t=g.indexOf(e);t>=0&&g.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function l(e){var t=document.createElement("link");return t.rel="stylesheet",o(e,t),t}function u(e,t){var r,n,a;if(t.singleton){var o=y++;r=v||(v=s(t)),n=f.bind(null,r,o,!1),a=f.bind(null,r,o,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=l(t),n=d.bind(null,r),a=function(){i(r),r.href&&URL.revokeObjectURL(r.href)}):(r=s(t),n=p.bind(null,r),a=function(){i(r)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else a()}}function f(e,t,r,n){var a=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=_(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function p(e,t){var r=t.css,n=t.media;if(n&&e.setAttribute("media",n),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}function d(e,t){var r=t.css,n=t.sourceMap;n&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var a=new Blob([r],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(a),o&&URL.revokeObjectURL(o)}var c={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},b=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),m=h(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,y=0,g=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=b()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var r=a(e);return n(r,t),function(e){for(var o=[],i=0;i<r.length;i++){var s=r[i],l=c[s.id];l.refs--,o.push(l)}if(e){var u=a(e);n(u,t)}for(var i=0;i<o.length;i++){var l=o[i];if(0===l.refs){for(var f=0;f<l.parts.length;f++)l.parts[f]();delete c[l.id]}}}};var _=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()}])});
{
"name": "@atlaskit/badge",
"version": "1.0.3",
"version": "1.1.0",
"config": {

@@ -11,2 +11,3 @@ "access": "public"

"ak:webpack:raw": "src/index.jsx",
"types": "src/index.d.ts",
"scripts": {

@@ -16,3 +17,4 @@ "prepublish": "../../node_modules/.bin/in-publish && { cd ../.. && npm run prepublish/single @atlaskit/badge; } || ../../node_modules/.bin/not-in-publish"

"files": [
"dist"
"dist",
"src/index.d.ts"
],

@@ -19,0 +21,0 @@ "dependencies": {

@@ -5,3 +5,3 @@ [![AtlasKit component registry](https://img.shields.io/badge/AtlasKit-components-FF5230.svg)](http://aui-cdn.atlassian.com/atlaskit/registry/)

[![Report an issue](https://img.shields.io/badge/Report-an_issue-6554C0.svg)](https://ecosystem.atlassian.net/browse/AK)
[![Ask in our forum](https://img.shields.io/badge/Ask-in_our_forum-6554C0.svg)](https://answers.atlassian.com/questions/ask?title=AtlasKit%3A%20&topics=atlaskit,@atlaskit/badge,@atlaskit/badge@1.0.3)
[![Ask in our forum](https://img.shields.io/badge/Ask-in_our_forum-6554C0.svg)](https://answers.atlassian.com/questions/ask?title=AtlasKit%3A%20&topics=atlaskit,@atlaskit/badge,@atlaskit/badge@1.1.0)

@@ -21,6 +21,4 @@ # Badge

Interact with a [live demo of the @atlaskit/badge component with code examples](https://aui-cdn.atlassian.com/atlaskit/stories/@atlaskit/badge/1.0.3/).
Interact with a [live demo of the @atlaskit/badge component with code examples](https://aui-cdn.atlassian.com/atlaskit/stories/@atlaskit/badge/1.1.0/).
## Support and feedback

@@ -34,3 +32,3 @@

Ask a question in our [forum](https://answers.atlassian.com/questions/ask?title=AtlasKit%3A%20&topics=atlaskit,@atlaskit/badge,@atlaskit/badge@1.0.3).
Ask a question in our [forum](https://answers.atlassian.com/questions/ask?title=AtlasKit%3A%20&topics=atlaskit,@atlaskit/badge,@atlaskit/badge@1.1.0).

@@ -37,0 +35,0 @@ Check [if someone has already asked the same question before](https://answers.atlassian.com/questions/topics/42926171/atlaskit).

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