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

ak-badge

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ak-badge - npm Package Compare versions

Comparing version 2.0.3 to 2.1.0

19

CHANGELOG.md

@@ -1,6 +0,21 @@

<a name="2.0.3"></a>
## 2.0.3 (2017-01-03)
<a name="2.1.0"></a>
# 2.1.0 (2017-01-13)
<a name="ak-badge@2.1.0"></a>
# ak-badge@2.1.0 (2017-01-13)
### Bug Fixes
* **component:** Bump required ak-editor-core version because of API change. ([5b8aecd](https://bitbucket.org/atlassian/atlaskit/commits/5b8aecd))
### Features
* **component:** add dark theme for the badges (should make everything white) ([ec66c13](https://bitbucket.org/atlassian/atlaskit/commits/ec66c13))
<a name="ak-badge@2.0.3"></a>

@@ -7,0 +22,0 @@ ## ak-badge@2.0.3 (2017-01-03)

73

dist/bundle-cjs.js

@@ -83,5 +83,8 @@ module.exports = /******/

});
var _getPrototypeOf = __webpack_require__(4), _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf), _classCallCheck2 = __webpack_require__(5), _classCallCheck3 = _interopRequireDefault(_classCallCheck2), _createClass2 = __webpack_require__(6), _createClass3 = _interopRequireDefault(_createClass2), _possibleConstructorReturn2 = __webpack_require__(7), _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2), _inherits2 = __webpack_require__(8), _inherits3 = _interopRequireDefault(_inherits2), _classnames = __webpack_require__(9), _classnames2 = _interopRequireDefault(_classnames), _react = __webpack_require__(10), _react2 = _interopRequireDefault(_react), _style = __webpack_require__(11), _style2 = _interopRequireDefault(_style), APPEARANCE_ENUM = {
var _defineProperty2 = __webpack_require__(4), _defineProperty3 = _interopRequireDefault(_defineProperty2), _getPrototypeOf = __webpack_require__(5), _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf), _classCallCheck2 = __webpack_require__(6), _classCallCheck3 = _interopRequireDefault(_classCallCheck2), _createClass2 = __webpack_require__(7), _createClass3 = _interopRequireDefault(_createClass2), _possibleConstructorReturn2 = __webpack_require__(8), _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2), _inherits2 = __webpack_require__(9), _inherits3 = _interopRequireDefault(_inherits2), _classnames = __webpack_require__(10), _classnames2 = _interopRequireDefault(_classnames), _react = __webpack_require__(11), _react2 = _interopRequireDefault(_react), _style = __webpack_require__(12), _style2 = _interopRequireDefault(_style), APPEARANCE_ENUM = {
values: [ "default", "primary", "important", "added", "removed" ],
defaultValue: "default"
}, THEME_ENUM = {
values: [ "default", "dark" ],
defaultValue: "default"
}, Badge = function(_PureComponent) {

@@ -120,3 +123,4 @@ function Badge() {

}, _react2.default.createElement("span", {
className: (0, _classnames2.default)([ _style2.default.value, _style2.default[this.validAppearance()] ])
className: (0, _classnames2.default)([ _style2.default.value, _style2.default[this.validAppearance()] ], (0,
_defineProperty3.default)({}, _style2.default.isDarkTheme, "dark" === this.props.theme))
}, this.displayValue().toString()));

@@ -159,3 +163,4 @@ }

*/
onValueUpdated: _react.PropTypes.func
onValueUpdated: _react.PropTypes.func,
theme: _react.PropTypes.oneOf(THEME_ENUM.values)
}, Badge.defaultProps = {

@@ -169,61 +174,67 @@ value: 0,

function(module, exports) {
module.exports = require("babel-runtime/core-js/object/get-prototype-of");
module.exports = require("babel-runtime/helpers/defineProperty");
}, /* 5 */
/***/
function(module, exports) {
module.exports = require("babel-runtime/helpers/classCallCheck");
module.exports = require("babel-runtime/core-js/object/get-prototype-of");
}, /* 6 */
/***/
function(module, exports) {
module.exports = require("babel-runtime/helpers/createClass");
module.exports = require("babel-runtime/helpers/classCallCheck");
}, /* 7 */
/***/
function(module, exports) {
module.exports = require("babel-runtime/helpers/possibleConstructorReturn");
module.exports = require("babel-runtime/helpers/createClass");
}, /* 8 */
/***/
function(module, exports) {
module.exports = require("babel-runtime/helpers/inherits");
module.exports = require("babel-runtime/helpers/possibleConstructorReturn");
}, /* 9 */
/***/
function(module, exports) {
module.exports = require("classnames");
module.exports = require("babel-runtime/helpers/inherits");
}, /* 10 */
/***/
function(module, exports) {
module.exports = require("react");
module.exports = require("classnames");
}, /* 11 */
/***/
function(module, exports) {
module.exports = require("react");
}, /* 12 */
/***/
function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__(12);
var content = __webpack_require__(13);
"string" == typeof content && (content = [ [ module.id, content, "" ] ]);
// add the styles to the DOM
__webpack_require__(14)(content, {});
__webpack_require__(15)(content, {});
content.locals && (module.exports = content.locals);
}, /* 12 */
}, /* 13 */
/***/
function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(13)(), // imports
exports = module.exports = __webpack_require__(14)(), // imports
// module
exports.push([ module.id, "._2PYfgZEcObKrcb_ep-Osp9{display:inline-block}._2KpnaZ8WSkCLH9ksnv9ZES{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}._1M3DEEdQgc44Tr2fmwiMhv{background:#ebecf0;color:#42526e}.qXd2YJk_ianw7sIXarI6e{background:#0052cc;color:#fff}._3V1u21sdMGm6eFgHn17K3_{background:#ff5630;color:#fff}.ZYimPfR7zbN_FimZPL4WA{background:#e3fcef;color:#064}._3D-5ubHuUEbg1JGyiqgMQ_{background:#ffebe6;color:#bf2600}", "" ]),
exports.push([ module.id, "._2qTZGmtj4AxOHeidN8avga{display:inline-block}._3_CGDfAxSErT7tF7tN9b3U{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}._3V8DyAQzmHrhctSgaUZKSM{background:#ebecf0;color:#42526e}._1oMmFoERDN67JIMOzPa7oQ{background:#0052cc;color:#fff}.v0lCjoOIjdmxV-w9aCGFI{background:#ff5630;color:#fff}._3TlkhPcriKbHl6IszcmET9{background:#e3fcef;color:#064}._1QhK-vHp2YUFrLQ6mp3XxW{background:#ffebe6;color:#bf2600}._1oMmFoERDN67JIMOzPa7oQ._2W8zQgtY7jNDzgUjbnXiKE,._1QhK-vHp2YUFrLQ6mp3XxW._2W8zQgtY7jNDzgUjbnXiKE,._3TlkhPcriKbHl6IszcmET9._2W8zQgtY7jNDzgUjbnXiKE,._3V8DyAQzmHrhctSgaUZKSM._2W8zQgtY7jNDzgUjbnXiKE,.v0lCjoOIjdmxV-w9aCGFI._2W8zQgtY7jNDzgUjbnXiKE{background:#fff;color:#0049b0}", "" ]),
// exports
exports.locals = {
container: "_2PYfgZEcObKrcb_ep-Osp9",
container: "_2PYfgZEcObKrcb_ep-Osp9",
value: "_2KpnaZ8WSkCLH9ksnv9ZES",
value: "_2KpnaZ8WSkCLH9ksnv9ZES",
default: "_1M3DEEdQgc44Tr2fmwiMhv",
default: "_1M3DEEdQgc44Tr2fmwiMhv",
primary: "qXd2YJk_ianw7sIXarI6e",
primary: "qXd2YJk_ianw7sIXarI6e",
important: "_3V1u21sdMGm6eFgHn17K3_",
important: "_3V1u21sdMGm6eFgHn17K3_",
added: "ZYimPfR7zbN_FimZPL4WA",
added: "ZYimPfR7zbN_FimZPL4WA",
removed: "_3D-5ubHuUEbg1JGyiqgMQ_",
removed: "_3D-5ubHuUEbg1JGyiqgMQ_"
container: "_2qTZGmtj4AxOHeidN8avga",
container: "_2qTZGmtj4AxOHeidN8avga",
value: "_3_CGDfAxSErT7tF7tN9b3U",
value: "_3_CGDfAxSErT7tF7tN9b3U",
default: "_3V8DyAQzmHrhctSgaUZKSM",
default: "_3V8DyAQzmHrhctSgaUZKSM",
primary: "_1oMmFoERDN67JIMOzPa7oQ",
primary: "_1oMmFoERDN67JIMOzPa7oQ",
important: "v0lCjoOIjdmxV-w9aCGFI",
important: "v0lCjoOIjdmxV-w9aCGFI",
added: "_3TlkhPcriKbHl6IszcmET9",
added: "_3TlkhPcriKbHl6IszcmET9",
removed: "_1QhK-vHp2YUFrLQ6mp3XxW",
removed: "_1QhK-vHp2YUFrLQ6mp3XxW",
isDarkTheme: "_2W8zQgtY7jNDzgUjbnXiKE",
isDarkTheme: "_2W8zQgtY7jNDzgUjbnXiKE"
};
}, /* 13 */
}, /* 14 */
/***/

@@ -263,3 +274,3 @@ function(module, exports) {

};
}, /* 14 */
}, /* 15 */
/***/

@@ -266,0 +277,0 @@ function(module, exports, __webpack_require__) {

@@ -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),l=n(s),f=r(7),p=n(f),c=r(8),d=n(c),v=r(9),h=n(v),m=r(10),b=n(m),g=r(11),y=n(g),_={values:["default","primary","important","added","removed"],defaultValue:"default"},x=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,l.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=_.values,r=_.defaultValue;return t.indexOf(e)!==-1?e:r}},{key:"render",value:function(){return b.default.createElement("span",{className:y.default.root},b.default.createElement("span",{className:(0,h.default)([y.default.value,y.default[this.validAppearance()]])},this.displayValue().toString()))}}]),t}(m.PureComponent);x.propTypes={value:m.PropTypes.number,max:m.PropTypes.number,appearance:m.PropTypes.oneOf(_.values),onValueUpdated:m.PropTypes.func},x.defaultProps={value:0,max:99,appearance:_.defaultValue},t.default=x},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(12);"string"==typeof n&&(n=[[e.id,n,""]]),r(14)(n,{}),n.locals&&(e.exports=n.locals)},function(e,t,r){t=e.exports=r(13)(),t.push([e.id,"._2PYfgZEcObKrcb_ep-Osp9{display:inline-block}._2KpnaZ8WSkCLH9ksnv9ZES{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}._1M3DEEdQgc44Tr2fmwiMhv{background:#ebecf0;color:#42526e}.qXd2YJk_ianw7sIXarI6e{background:#0052cc;color:#fff}._3V1u21sdMGm6eFgHn17K3_{background:#ff5630;color:#fff}.ZYimPfR7zbN_FimZPL4WA{background:#e3fcef;color:#064}._3D-5ubHuUEbg1JGyiqgMQ_{background:#ffebe6;color:#bf2600}",""]),t.locals={container:"_2PYfgZEcObKrcb_ep-Osp9",container:"_2PYfgZEcObKrcb_ep-Osp9",value:"_2KpnaZ8WSkCLH9ksnv9ZES",value:"_2KpnaZ8WSkCLH9ksnv9ZES",default:"_1M3DEEdQgc44Tr2fmwiMhv",default:"_1M3DEEdQgc44Tr2fmwiMhv",primary:"qXd2YJk_ianw7sIXarI6e",primary:"qXd2YJk_ianw7sIXarI6e",important:"_3V1u21sdMGm6eFgHn17K3_",important:"_3V1u21sdMGm6eFgHn17K3_",added:"ZYimPfR7zbN_FimZPL4WA",added:"ZYimPfR7zbN_FimZPL4WA",removed:"_3D-5ubHuUEbg1JGyiqgMQ_",removed:"_3D-5ubHuUEbg1JGyiqgMQ_"}},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],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=m(),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=c.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 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 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={},v=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},h=v(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),m=v(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=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 u=r[i],s=d[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 d[s.id]}}}};var _=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),l=r(6),s=n(l),f=r(7),p=n(f),c=r(8),d=n(c),h=r(9),m=n(h),v=r(10),b=n(v),g=r(11),x=n(g),y=r(12),_=n(y),j={values:["default","primary","important","added","removed"],defaultValue:"default"},U={values:["default","dark"],defaultValue:"default"},C=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,u.default)(t)).apply(this,arguments))}return(0,m.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=j.values,r=j.defaultValue;return t.indexOf(e)!==-1?e:r}},{key:"render",value:function(){return x.default.createElement("span",{className:_.default.root},x.default.createElement("span",{className:(0,b.default)([_.default.value,_.default[this.validAppearance()]],(0,o.default)({},_.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(j.values),onValueUpdated:g.PropTypes.func,theme:g.PropTypes.oneOf(U.values)},C.defaultProps={value:0,max:99,appearance:j.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,"._2qTZGmtj4AxOHeidN8avga{display:inline-block}._3_CGDfAxSErT7tF7tN9b3U{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}._3V8DyAQzmHrhctSgaUZKSM{background:#ebecf0;color:#42526e}._1oMmFoERDN67JIMOzPa7oQ{background:#0052cc;color:#fff}.v0lCjoOIjdmxV-w9aCGFI{background:#ff5630;color:#fff}._3TlkhPcriKbHl6IszcmET9{background:#e3fcef;color:#064}._1QhK-vHp2YUFrLQ6mp3XxW{background:#ffebe6;color:#bf2600}._1oMmFoERDN67JIMOzPa7oQ._2W8zQgtY7jNDzgUjbnXiKE,._1QhK-vHp2YUFrLQ6mp3XxW._2W8zQgtY7jNDzgUjbnXiKE,._3TlkhPcriKbHl6IszcmET9._2W8zQgtY7jNDzgUjbnXiKE,._3V8DyAQzmHrhctSgaUZKSM._2W8zQgtY7jNDzgUjbnXiKE,.v0lCjoOIjdmxV-w9aCGFI._2W8zQgtY7jNDzgUjbnXiKE{background:#fff;color:#0049b0}",""]),t.locals={container:"_2qTZGmtj4AxOHeidN8avga",container:"_2qTZGmtj4AxOHeidN8avga",value:"_3_CGDfAxSErT7tF7tN9b3U",value:"_3_CGDfAxSErT7tF7tN9b3U",default:"_3V8DyAQzmHrhctSgaUZKSM",default:"_3V8DyAQzmHrhctSgaUZKSM",primary:"_1oMmFoERDN67JIMOzPa7oQ",primary:"_1oMmFoERDN67JIMOzPa7oQ",important:"v0lCjoOIjdmxV-w9aCGFI",important:"v0lCjoOIjdmxV-w9aCGFI",added:"_3TlkhPcriKbHl6IszcmET9",added:"_3TlkhPcriKbHl6IszcmET9",removed:"_1QhK-vHp2YUFrLQ6mp3XxW",removed:"_1QhK-vHp2YUFrLQ6mp3XxW",isDarkTheme:"_2W8zQgtY7jNDzgUjbnXiKE",isDarkTheme:"_2W8zQgtY7jNDzgUjbnXiKE"}},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(s(n.parts[o],t))}else{for(var i=[],o=0;o<n.parts.length;o++)i.push(s(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],u=a[2],l=a[3],s={css:i,media:u,sourceMap:l};r[o]?r[o].parts.push(s):t.push(r[o]={id:o,parts:[s]})}return t}function o(e,t){var r=v(),n=x[x.length-1];if("top"===e.insertAt)n?n.nextSibling?r.insertBefore(t,n.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),x.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=x.indexOf(e);t>=0&&x.splice(t,1)}function u(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 s(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=l(t),n=c.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 f(e,t,r,n){var a=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=y(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={},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,x=[];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],l=d[u.id];l.refs--,o.push(l)}if(e){var s=a(e);n(s,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 d[l.id]}}}};var y=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()}]);
!function(root, factory) {
"object" == typeof exports && "object" == typeof module ? module.exports = factory(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/core-js/object/get-prototype-of", "babel-runtime/helpers/classCallCheck", "babel-runtime/helpers/createClass", "babel-runtime/helpers/possibleConstructorReturn", "babel-runtime/helpers/inherits", "classnames", "react" ], factory) : "object" == typeof exports ? exports.akBadge = factory(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")) : root.akBadge = factory(root["babel-runtime/core-js/object/get-prototype-of"], root["babel-runtime/helpers/classCallCheck"], root["babel-runtime/helpers/createClass"], root["babel-runtime/helpers/possibleConstructorReturn"], root["babel-runtime/helpers/inherits"], root.classnames, root.react);
}(this, function(__WEBPACK_EXTERNAL_MODULE_4__, __WEBPACK_EXTERNAL_MODULE_5__, __WEBPACK_EXTERNAL_MODULE_6__, __WEBPACK_EXTERNAL_MODULE_7__, __WEBPACK_EXTERNAL_MODULE_8__, __WEBPACK_EXTERNAL_MODULE_9__, __WEBPACK_EXTERNAL_MODULE_10__) {
"object" == typeof exports && "object" == typeof module ? module.exports = factory(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" ], factory) : "object" == typeof exports ? exports.akBadge = factory(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")) : root.akBadge = factory(root["babel-runtime/helpers/defineProperty"], root["babel-runtime/core-js/object/get-prototype-of"], root["babel-runtime/helpers/classCallCheck"], root["babel-runtime/helpers/createClass"], root["babel-runtime/helpers/possibleConstructorReturn"], root["babel-runtime/helpers/inherits"], root.classnames, root.react);
}(this, function(__WEBPACK_EXTERNAL_MODULE_4__, __WEBPACK_EXTERNAL_MODULE_5__, __WEBPACK_EXTERNAL_MODULE_6__, __WEBPACK_EXTERNAL_MODULE_7__, __WEBPACK_EXTERNAL_MODULE_8__, __WEBPACK_EXTERNAL_MODULE_9__, __WEBPACK_EXTERNAL_MODULE_10__, __WEBPACK_EXTERNAL_MODULE_11__) {
/******/

@@ -86,5 +86,8 @@ return function(modules) {

});
var _getPrototypeOf = __webpack_require__(4), _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf), _classCallCheck2 = __webpack_require__(5), _classCallCheck3 = _interopRequireDefault(_classCallCheck2), _createClass2 = __webpack_require__(6), _createClass3 = _interopRequireDefault(_createClass2), _possibleConstructorReturn2 = __webpack_require__(7), _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2), _inherits2 = __webpack_require__(8), _inherits3 = _interopRequireDefault(_inherits2), _classnames = __webpack_require__(9), _classnames2 = _interopRequireDefault(_classnames), _react = __webpack_require__(10), _react2 = _interopRequireDefault(_react), _style = __webpack_require__(11), _style2 = _interopRequireDefault(_style), APPEARANCE_ENUM = {
var _defineProperty2 = __webpack_require__(4), _defineProperty3 = _interopRequireDefault(_defineProperty2), _getPrototypeOf = __webpack_require__(5), _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf), _classCallCheck2 = __webpack_require__(6), _classCallCheck3 = _interopRequireDefault(_classCallCheck2), _createClass2 = __webpack_require__(7), _createClass3 = _interopRequireDefault(_createClass2), _possibleConstructorReturn2 = __webpack_require__(8), _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2), _inherits2 = __webpack_require__(9), _inherits3 = _interopRequireDefault(_inherits2), _classnames = __webpack_require__(10), _classnames2 = _interopRequireDefault(_classnames), _react = __webpack_require__(11), _react2 = _interopRequireDefault(_react), _style = __webpack_require__(12), _style2 = _interopRequireDefault(_style), APPEARANCE_ENUM = {
values: [ "default", "primary", "important", "added", "removed" ],
defaultValue: "default"
}, THEME_ENUM = {
values: [ "default", "dark" ],
defaultValue: "default"
}, Badge = function(_PureComponent) {

@@ -123,3 +126,4 @@ function Badge() {

}, _react2.default.createElement("span", {
className: (0, _classnames2.default)([ _style2.default.value, _style2.default[this.validAppearance()] ])
className: (0, _classnames2.default)([ _style2.default.value, _style2.default[this.validAppearance()] ], (0,
_defineProperty3.default)({}, _style2.default.isDarkTheme, "dark" === this.props.theme))
}, this.displayValue().toString()));

@@ -162,3 +166,4 @@ }

*/
onValueUpdated: _react.PropTypes.func
onValueUpdated: _react.PropTypes.func,
theme: _react.PropTypes.oneOf(THEME_ENUM.values)
}, Badge.defaultProps = {

@@ -199,34 +204,40 @@ value: 0,

/***/
function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_11__;
}, /* 12 */
/***/
function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__(12);
var content = __webpack_require__(13);
"string" == typeof content && (content = [ [ module.id, content, "" ] ]);
// add the styles to the DOM
__webpack_require__(14)(content, {});
__webpack_require__(15)(content, {});
content.locals && (module.exports = content.locals);
}, /* 12 */
}, /* 13 */
/***/
function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(13)(), // imports
exports = module.exports = __webpack_require__(14)(), // imports
// module
exports.push([ module.id, "._2PYfgZEcObKrcb_ep-Osp9{display:inline-block}._2KpnaZ8WSkCLH9ksnv9ZES{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}._1M3DEEdQgc44Tr2fmwiMhv{background:#ebecf0;color:#42526e}.qXd2YJk_ianw7sIXarI6e{background:#0052cc;color:#fff}._3V1u21sdMGm6eFgHn17K3_{background:#ff5630;color:#fff}.ZYimPfR7zbN_FimZPL4WA{background:#e3fcef;color:#064}._3D-5ubHuUEbg1JGyiqgMQ_{background:#ffebe6;color:#bf2600}", "" ]),
exports.push([ module.id, "._2qTZGmtj4AxOHeidN8avga{display:inline-block}._3_CGDfAxSErT7tF7tN9b3U{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}._3V8DyAQzmHrhctSgaUZKSM{background:#ebecf0;color:#42526e}._1oMmFoERDN67JIMOzPa7oQ{background:#0052cc;color:#fff}.v0lCjoOIjdmxV-w9aCGFI{background:#ff5630;color:#fff}._3TlkhPcriKbHl6IszcmET9{background:#e3fcef;color:#064}._1QhK-vHp2YUFrLQ6mp3XxW{background:#ffebe6;color:#bf2600}._1oMmFoERDN67JIMOzPa7oQ._2W8zQgtY7jNDzgUjbnXiKE,._1QhK-vHp2YUFrLQ6mp3XxW._2W8zQgtY7jNDzgUjbnXiKE,._3TlkhPcriKbHl6IszcmET9._2W8zQgtY7jNDzgUjbnXiKE,._3V8DyAQzmHrhctSgaUZKSM._2W8zQgtY7jNDzgUjbnXiKE,.v0lCjoOIjdmxV-w9aCGFI._2W8zQgtY7jNDzgUjbnXiKE{background:#fff;color:#0049b0}", "" ]),
// exports
exports.locals = {
container: "_2PYfgZEcObKrcb_ep-Osp9",
container: "_2PYfgZEcObKrcb_ep-Osp9",
value: "_2KpnaZ8WSkCLH9ksnv9ZES",
value: "_2KpnaZ8WSkCLH9ksnv9ZES",
default: "_1M3DEEdQgc44Tr2fmwiMhv",
default: "_1M3DEEdQgc44Tr2fmwiMhv",
primary: "qXd2YJk_ianw7sIXarI6e",
primary: "qXd2YJk_ianw7sIXarI6e",
important: "_3V1u21sdMGm6eFgHn17K3_",
important: "_3V1u21sdMGm6eFgHn17K3_",
added: "ZYimPfR7zbN_FimZPL4WA",
added: "ZYimPfR7zbN_FimZPL4WA",
removed: "_3D-5ubHuUEbg1JGyiqgMQ_",
removed: "_3D-5ubHuUEbg1JGyiqgMQ_"
container: "_2qTZGmtj4AxOHeidN8avga",
container: "_2qTZGmtj4AxOHeidN8avga",
value: "_3_CGDfAxSErT7tF7tN9b3U",
value: "_3_CGDfAxSErT7tF7tN9b3U",
default: "_3V8DyAQzmHrhctSgaUZKSM",
default: "_3V8DyAQzmHrhctSgaUZKSM",
primary: "_1oMmFoERDN67JIMOzPa7oQ",
primary: "_1oMmFoERDN67JIMOzPa7oQ",
important: "v0lCjoOIjdmxV-w9aCGFI",
important: "v0lCjoOIjdmxV-w9aCGFI",
added: "_3TlkhPcriKbHl6IszcmET9",
added: "_3TlkhPcriKbHl6IszcmET9",
removed: "_1QhK-vHp2YUFrLQ6mp3XxW",
removed: "_1QhK-vHp2YUFrLQ6mp3XxW",
isDarkTheme: "_2W8zQgtY7jNDzgUjbnXiKE",
isDarkTheme: "_2W8zQgtY7jNDzgUjbnXiKE"
};
}, /* 13 */
}, /* 14 */
/***/

@@ -266,3 +277,3 @@ function(module, exports) {

};
}, /* 14 */
}, /* 15 */
/***/

@@ -269,0 +280,0 @@ function(module, exports, __webpack_require__) {

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(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/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.akBadge=t(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.akBadge=t(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){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),p=r(7),c=n(p),f=r(8),d=n(f),b=r(9),h=n(b),m=r(10),v=n(m),g=r(11),y=n(g),_={values:["default","primary","important","added","removed"],defaultValue:"default"},x=function(e){function t(){return(0,s.default)(this,t),(0,c.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,l.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=_.values,r=_.defaultValue;return t.indexOf(e)!==-1?e:r}},{key:"render",value:function(){return v.default.createElement("span",{className:y.default.root},v.default.createElement("span",{className:(0,h.default)([y.default.value,y.default[this.validAppearance()]])},this.displayValue().toString()))}}]),t}(m.PureComponent);x.propTypes={value:m.PropTypes.number,max:m.PropTypes.number,appearance:m.PropTypes.oneOf(_.values),onValueUpdated:m.PropTypes.func},x.defaultProps={value:0,max:99,appearance:_.defaultValue},t.default=x},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,r){var n=r(12);"string"==typeof n&&(n=[[e.id,n,""]]),r(14)(n,{}),n.locals&&(e.exports=n.locals)},function(e,t,r){t=e.exports=r(13)(),t.push([e.id,"._2PYfgZEcObKrcb_ep-Osp9{display:inline-block}._2KpnaZ8WSkCLH9ksnv9ZES{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}._1M3DEEdQgc44Tr2fmwiMhv{background:#ebecf0;color:#42526e}.qXd2YJk_ianw7sIXarI6e{background:#0052cc;color:#fff}._3V1u21sdMGm6eFgHn17K3_{background:#ff5630;color:#fff}.ZYimPfR7zbN_FimZPL4WA{background:#e3fcef;color:#064}._3D-5ubHuUEbg1JGyiqgMQ_{background:#ffebe6;color:#bf2600}",""]),t.locals={container:"_2PYfgZEcObKrcb_ep-Osp9",container:"_2PYfgZEcObKrcb_ep-Osp9",value:"_2KpnaZ8WSkCLH9ksnv9ZES",value:"_2KpnaZ8WSkCLH9ksnv9ZES",default:"_1M3DEEdQgc44Tr2fmwiMhv",default:"_1M3DEEdQgc44Tr2fmwiMhv",primary:"qXd2YJk_ianw7sIXarI6e",primary:"qXd2YJk_ianw7sIXarI6e",important:"_3V1u21sdMGm6eFgHn17K3_",important:"_3V1u21sdMGm6eFgHn17K3_",added:"ZYimPfR7zbN_FimZPL4WA",added:"ZYimPfR7zbN_FimZPL4WA",removed:"_3D-5ubHuUEbg1JGyiqgMQ_",removed:"_3D-5ubHuUEbg1JGyiqgMQ_"}},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=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 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=g++;r=v||(v=s(t)),n=p.bind(null,r,o,!1),a=p.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=f.bind(null,r),a=function(){i(r),r.href&&URL.revokeObjectURL(r.href)}):(r=s(t),n=c.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 p(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 c(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 f(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,g=0,y=[];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 p=0;p<u.parts.length;p++)u.parts[p]();delete d[u.id]}}}};var _=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.akBadge=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.akBadge=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,l){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),l=n(i),s=r(6),u=n(s),p=r(7),c=n(p),f=r(8),d=n(f),b=r(9),m=n(b),h=r(10),v=n(h),g=r(11),y=n(g),x=r(12),j=n(x),C={values:["default","primary","important","added","removed"],defaultValue:"default"},_={values:["default","dark"],defaultValue:"default"},U=function(e){function t(){return(0,u.default)(this,t),(0,d.default)(this,(t.__proto__||(0,l.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,c.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 y.default.createElement("span",{className:j.default.root},y.default.createElement("span",{className:(0,v.default)([j.default.value,j.default[this.validAppearance()]],(0,o.default)({},j.default.isDarkTheme,"dark"===this.props.theme))},this.displayValue().toString()))}}]),t}(g.PureComponent);U.propTypes={value:g.PropTypes.number,max:g.PropTypes.number,appearance:g.PropTypes.oneOf(C.values),onValueUpdated:g.PropTypes.func,theme:g.PropTypes.oneOf(_.values)},U.defaultProps={value:0,max:99,appearance:C.defaultValue},t.default=U},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=l},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,"._2qTZGmtj4AxOHeidN8avga{display:inline-block}._3_CGDfAxSErT7tF7tN9b3U{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}._3V8DyAQzmHrhctSgaUZKSM{background:#ebecf0;color:#42526e}._1oMmFoERDN67JIMOzPa7oQ{background:#0052cc;color:#fff}.v0lCjoOIjdmxV-w9aCGFI{background:#ff5630;color:#fff}._3TlkhPcriKbHl6IszcmET9{background:#e3fcef;color:#064}._1QhK-vHp2YUFrLQ6mp3XxW{background:#ffebe6;color:#bf2600}._1oMmFoERDN67JIMOzPa7oQ._2W8zQgtY7jNDzgUjbnXiKE,._1QhK-vHp2YUFrLQ6mp3XxW._2W8zQgtY7jNDzgUjbnXiKE,._3TlkhPcriKbHl6IszcmET9._2W8zQgtY7jNDzgUjbnXiKE,._3V8DyAQzmHrhctSgaUZKSM._2W8zQgtY7jNDzgUjbnXiKE,.v0lCjoOIjdmxV-w9aCGFI._2W8zQgtY7jNDzgUjbnXiKE{background:#fff;color:#0049b0}",""]),t.locals={container:"_2qTZGmtj4AxOHeidN8avga",container:"_2qTZGmtj4AxOHeidN8avga",value:"_3_CGDfAxSErT7tF7tN9b3U",value:"_3_CGDfAxSErT7tF7tN9b3U",default:"_3V8DyAQzmHrhctSgaUZKSM",default:"_3V8DyAQzmHrhctSgaUZKSM",primary:"_1oMmFoERDN67JIMOzPa7oQ",primary:"_1oMmFoERDN67JIMOzPa7oQ",important:"v0lCjoOIjdmxV-w9aCGFI",important:"v0lCjoOIjdmxV-w9aCGFI",added:"_3TlkhPcriKbHl6IszcmET9",added:"_3TlkhPcriKbHl6IszcmET9",removed:"_1QhK-vHp2YUFrLQ6mp3XxW",removed:"_1QhK-vHp2YUFrLQ6mp3XxW",isDarkTheme:"_2W8zQgtY7jNDzgUjbnXiKE",isDarkTheme:"_2W8zQgtY7jNDzgUjbnXiKE"}},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(u(n.parts[o],t))}else{for(var i=[],o=0;o<n.parts.length;o++)i.push(u(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],l=a[2],s=a[3],u={css:i,media:l,sourceMap:s};r[o]?r[o].parts.push(u):t.push(r[o]={id:o,parts:[u]})}return t}function o(e,t){var r=h(),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 l(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 u(e,t){var r,n,a;if(t.singleton){var o=g++;r=v||(v=l(t)),n=p.bind(null,r,o,!1),a=p.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=f.bind(null,r),a=function(){i(r),r.href&&URL.revokeObjectURL(r.href)}):(r=l(t),n=c.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 p(e,t,r,n){var a=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=x(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 c(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 f(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}},m=b(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),h=b(function(){return document.head||document.getElementsByTagName("head")[0]}),v=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 l=r[i],s=d[l.id];s.refs--,o.push(s)}if(e){var u=a(e);n(u,t)}for(var i=0;i<o.length;i++){var s=o[i];if(0===s.refs){for(var p=0;p<s.parts.length;p++)s.parts[p]();delete d[s.id]}}}};var x=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()}])});
{
"name": "ak-badge",
"version": "2.0.3",
"version": "2.1.0",
"description": "A React component that indicates values",

@@ -5,0 +5,0 @@ "main": "dist/bundle.js",

@@ -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,ak-badge,ak-badge@2.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,ak-badge,ak-badge@2.1.0)

@@ -17,7 +17,7 @@ # Badge

![Example badge](https://bytebucket.org/atlassian/atlaskit/raw/faeb8e22b4d21b5d42587408fa0ba409b7120a33/packages/ak-badge/docs/badge.png)
![Example badge](https://bytebucket.org/atlassian/atlaskit/raw/28897e5e3f2bcb06f164ec90518e1a09d84d70f2/packages/ak-badge/docs/badge.png)
## Try it out
Interact with a [live demo of the ak-badge component with code examples](https://aui-cdn.atlassian.com/atlaskit/stories/ak-badge/2.0.3/).
Interact with a [live demo of the ak-badge component with code examples](https://aui-cdn.atlassian.com/atlaskit/stories/ak-badge/2.1.0/).

@@ -102,3 +102,3 @@ ## Installation

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

@@ -105,0 +105,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