Comparing version 2.0.2 to 2.0.3
@@ -1,6 +0,16 @@ | ||
<a name="2.0.2"></a> | ||
## 2.0.2 (2016-12-12) | ||
<a name="2.0.3"></a> | ||
## 2.0.3 (2017-01-03) | ||
<a name="ak-badge@2.0.3"></a> | ||
## ak-badge@2.0.3 (2017-01-03) | ||
### Bug Fixes | ||
* **package:** Fix for styles not being correctly scoped to the package ([bf655e0](https://bitbucket.org/atlassian/atlaskit/commits/bf655e0)) | ||
<a name="ak-badge@2.0.2"></a> | ||
@@ -7,0 +17,0 @@ ## ak-badge@2.0.2 (2016-12-12) |
@@ -122,53 +122,43 @@ module.exports = /******/ | ||
} | ||
} ], [ { | ||
key: "propTypes", | ||
get: function() { | ||
return { | ||
/** | ||
* @description The value displayed within the badge. | ||
* @memberof AkBadge | ||
* @instance | ||
* @type {number} | ||
* @default 0 | ||
*/ | ||
value: _react.PropTypes.number, | ||
/** | ||
* @description The max value to display. | ||
* If value is 100, and max is 50, "50+" will be displayed | ||
* @memberof AkBadge | ||
* @instance | ||
* @type {number} | ||
* @default 99 | ||
*/ | ||
max: _react.PropTypes.number, | ||
/** | ||
* @description Affects the visual style of the badge. | ||
* Allowed values are: 'default', 'primary', 'important', 'added', 'removed'. | ||
* @memberof AkBadge | ||
* @instance | ||
* @type {string} | ||
* @default default | ||
*/ | ||
appearance: _react.PropTypes.oneOf(APPEARANCE_ENUM.values), | ||
/** | ||
* @description Handler function to be called when the 'updated' prop is changed. | ||
* @memberof AkBadge | ||
* @instance | ||
* @type {function} | ||
*/ | ||
onValueUpdated: _react.PropTypes.func | ||
}; | ||
} | ||
}, { | ||
key: "defaultProps", | ||
get: function() { | ||
return { | ||
value: 0, | ||
max: 99, | ||
appearance: APPEARANCE_ENUM.defaultValue | ||
}; | ||
} | ||
} ]), Badge; | ||
}(_react.PureComponent); | ||
exports.default = Badge; | ||
Badge.propTypes = { | ||
/** | ||
* @description The value displayed within the badge. | ||
* @memberof AkBadge | ||
* @instance | ||
* @type {number} | ||
* @default 0 | ||
*/ | ||
value: _react.PropTypes.number, | ||
/** | ||
* @description The max value to display. | ||
* If value is 100, and max is 50, "50+" will be displayed | ||
* @memberof AkBadge | ||
* @instance | ||
* @type {number} | ||
* @default 99 | ||
*/ | ||
max: _react.PropTypes.number, | ||
/** | ||
* @description Affects the visual style of the badge. | ||
* Allowed values are: 'default', 'primary', 'important', 'added', 'removed'. | ||
* @memberof AkBadge | ||
* @instance | ||
* @type {string} | ||
* @default default | ||
*/ | ||
appearance: _react.PropTypes.oneOf(APPEARANCE_ENUM.values), | ||
/** | ||
* @description Handler function to be called when the 'updated' prop is changed. | ||
* @memberof AkBadge | ||
* @instance | ||
* @type {function} | ||
*/ | ||
onValueUpdated: _react.PropTypes.func | ||
}, Badge.defaultProps = { | ||
value: 0, | ||
max: 99, | ||
appearance: APPEARANCE_ENUM.defaultValue | ||
}, exports.default = Badge; | ||
}, /* 4 */ | ||
@@ -217,19 +207,19 @@ /***/ | ||
// module | ||
exports.push([ module.id, "._1eQzTdeGbqIWe_WROsHkkO{display:inline-block}.Yw_zm_VhTLL1R9aJ2MNlb{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}._6iGVg-VgMB7lkx5H42Mlu{background:#ebecf0;color:#42526e}._1bi2_7c3H90bAH8Pw4xwgU{background:#0052cc;color:#fff}._3kjVDacGCyZLvhB7sWqhiX{background:#ff5630;color:#fff}._19ukTzPJwVJQixg5_wz3_k{background:#e3fcef;color:#064}._1XyvUNNWjj746a67rD0MSo{background:#ffebe6;color:#bf2600}", "" ]), | ||
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 | ||
exports.locals = { | ||
container: "_1eQzTdeGbqIWe_WROsHkkO", | ||
container: "_1eQzTdeGbqIWe_WROsHkkO", | ||
value: "Yw_zm_VhTLL1R9aJ2MNlb", | ||
value: "Yw_zm_VhTLL1R9aJ2MNlb", | ||
default: "_6iGVg-VgMB7lkx5H42Mlu", | ||
default: "_6iGVg-VgMB7lkx5H42Mlu", | ||
primary: "_1bi2_7c3H90bAH8Pw4xwgU", | ||
primary: "_1bi2_7c3H90bAH8Pw4xwgU", | ||
important: "_3kjVDacGCyZLvhB7sWqhiX", | ||
important: "_3kjVDacGCyZLvhB7sWqhiX", | ||
added: "_19ukTzPJwVJQixg5_wz3_k", | ||
added: "_19ukTzPJwVJQixg5_wz3_k", | ||
removed: "_1XyvUNNWjj746a67rD0MSo", | ||
removed: "_1XyvUNNWjj746a67rD0MSo" | ||
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_" | ||
}; | ||
@@ -236,0 +226,0 @@ }, /* 13 */ |
@@ -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),c=n(f),p=r(8),d=n(p),h=r(9),v=n(h),b=r(10),m=n(b),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,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 m.default.createElement("span",{className:y.default.root},m.default.createElement("span",{className:(0,v.default)([y.default.value,y.default[this.validAppearance()]])},this.displayValue().toString()))}}],[{key:"propTypes",get:function(){return{value:b.PropTypes.number,max:b.PropTypes.number,appearance:b.PropTypes.oneOf(_.values),onValueUpdated:b.PropTypes.func}}},{key:"defaultProps",get:function(){return{value:0,max:99,appearance:_.defaultValue}}}]),t}(b.PureComponent);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,"._1eQzTdeGbqIWe_WROsHkkO{display:inline-block}.Yw_zm_VhTLL1R9aJ2MNlb{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}._6iGVg-VgMB7lkx5H42Mlu{background:#ebecf0;color:#42526e}._1bi2_7c3H90bAH8Pw4xwgU{background:#0052cc;color:#fff}._3kjVDacGCyZLvhB7sWqhiX{background:#ff5630;color:#fff}._19ukTzPJwVJQixg5_wz3_k{background:#e3fcef;color:#064}._1XyvUNNWjj746a67rD0MSo{background:#ffebe6;color:#bf2600}",""]),t.locals={container:"_1eQzTdeGbqIWe_WROsHkkO",container:"_1eQzTdeGbqIWe_WROsHkkO",value:"Yw_zm_VhTLL1R9aJ2MNlb",value:"Yw_zm_VhTLL1R9aJ2MNlb",default:"_6iGVg-VgMB7lkx5H42Mlu",default:"_6iGVg-VgMB7lkx5H42Mlu",primary:"_1bi2_7c3H90bAH8Pw4xwgU",primary:"_1bi2_7c3H90bAH8Pw4xwgU",important:"_3kjVDacGCyZLvhB7sWqhiX",important:"_3kjVDacGCyZLvhB7sWqhiX",added:"_19ukTzPJwVJQixg5_wz3_k",added:"_19ukTzPJwVJQixg5_wz3_k",removed:"_1XyvUNNWjj746a67rD0MSo",removed:"_1XyvUNNWjj746a67rD0MSo"}},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=b(),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=m||(m=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=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 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 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 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 d={},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())}),b=h(function(){return document.head||document.getElementsByTagName("head")[0]}),m=null,g=0,y=[];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=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),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")}}()}]); |
@@ -125,53 +125,43 @@ !function(root, factory) { | ||
} | ||
} ], [ { | ||
key: "propTypes", | ||
get: function() { | ||
return { | ||
/** | ||
* @description The value displayed within the badge. | ||
* @memberof AkBadge | ||
* @instance | ||
* @type {number} | ||
* @default 0 | ||
*/ | ||
value: _react.PropTypes.number, | ||
/** | ||
* @description The max value to display. | ||
* If value is 100, and max is 50, "50+" will be displayed | ||
* @memberof AkBadge | ||
* @instance | ||
* @type {number} | ||
* @default 99 | ||
*/ | ||
max: _react.PropTypes.number, | ||
/** | ||
* @description Affects the visual style of the badge. | ||
* Allowed values are: 'default', 'primary', 'important', 'added', 'removed'. | ||
* @memberof AkBadge | ||
* @instance | ||
* @type {string} | ||
* @default default | ||
*/ | ||
appearance: _react.PropTypes.oneOf(APPEARANCE_ENUM.values), | ||
/** | ||
* @description Handler function to be called when the 'updated' prop is changed. | ||
* @memberof AkBadge | ||
* @instance | ||
* @type {function} | ||
*/ | ||
onValueUpdated: _react.PropTypes.func | ||
}; | ||
} | ||
}, { | ||
key: "defaultProps", | ||
get: function() { | ||
return { | ||
value: 0, | ||
max: 99, | ||
appearance: APPEARANCE_ENUM.defaultValue | ||
}; | ||
} | ||
} ]), Badge; | ||
}(_react.PureComponent); | ||
exports.default = Badge; | ||
Badge.propTypes = { | ||
/** | ||
* @description The value displayed within the badge. | ||
* @memberof AkBadge | ||
* @instance | ||
* @type {number} | ||
* @default 0 | ||
*/ | ||
value: _react.PropTypes.number, | ||
/** | ||
* @description The max value to display. | ||
* If value is 100, and max is 50, "50+" will be displayed | ||
* @memberof AkBadge | ||
* @instance | ||
* @type {number} | ||
* @default 99 | ||
*/ | ||
max: _react.PropTypes.number, | ||
/** | ||
* @description Affects the visual style of the badge. | ||
* Allowed values are: 'default', 'primary', 'important', 'added', 'removed'. | ||
* @memberof AkBadge | ||
* @instance | ||
* @type {string} | ||
* @default default | ||
*/ | ||
appearance: _react.PropTypes.oneOf(APPEARANCE_ENUM.values), | ||
/** | ||
* @description Handler function to be called when the 'updated' prop is changed. | ||
* @memberof AkBadge | ||
* @instance | ||
* @type {function} | ||
*/ | ||
onValueUpdated: _react.PropTypes.func | ||
}, Badge.defaultProps = { | ||
value: 0, | ||
max: 99, | ||
appearance: APPEARANCE_ENUM.defaultValue | ||
}, exports.default = Badge; | ||
}, /* 4 */ | ||
@@ -220,19 +210,19 @@ /***/ | ||
// module | ||
exports.push([ module.id, "._1eQzTdeGbqIWe_WROsHkkO{display:inline-block}.Yw_zm_VhTLL1R9aJ2MNlb{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}._6iGVg-VgMB7lkx5H42Mlu{background:#ebecf0;color:#42526e}._1bi2_7c3H90bAH8Pw4xwgU{background:#0052cc;color:#fff}._3kjVDacGCyZLvhB7sWqhiX{background:#ff5630;color:#fff}._19ukTzPJwVJQixg5_wz3_k{background:#e3fcef;color:#064}._1XyvUNNWjj746a67rD0MSo{background:#ffebe6;color:#bf2600}", "" ]), | ||
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 | ||
exports.locals = { | ||
container: "_1eQzTdeGbqIWe_WROsHkkO", | ||
container: "_1eQzTdeGbqIWe_WROsHkkO", | ||
value: "Yw_zm_VhTLL1R9aJ2MNlb", | ||
value: "Yw_zm_VhTLL1R9aJ2MNlb", | ||
default: "_6iGVg-VgMB7lkx5H42Mlu", | ||
default: "_6iGVg-VgMB7lkx5H42Mlu", | ||
primary: "_1bi2_7c3H90bAH8Pw4xwgU", | ||
primary: "_1bi2_7c3H90bAH8Pw4xwgU", | ||
important: "_3kjVDacGCyZLvhB7sWqhiX", | ||
important: "_3kjVDacGCyZLvhB7sWqhiX", | ||
added: "_19ukTzPJwVJQixg5_wz3_k", | ||
added: "_19ukTzPJwVJQixg5_wz3_k", | ||
removed: "_1XyvUNNWjj746a67rD0MSo", | ||
removed: "_1XyvUNNWjj746a67rD0MSo" | ||
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_" | ||
}; | ||
@@ -239,0 +229,0 @@ }, /* 13 */ |
@@ -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),c=r(7),p=n(c),f=r(8),d=n(f),b=r(9),h=n(b),m=r(10),v=n(m),g=r(11),y=n(g),x={values:["default","primary","important","added","removed"],defaultValue:"default"},_=function(e){function t(){return(0,s.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=x.values,r=x.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()))}}],[{key:"propTypes",get:function(){return{value:m.PropTypes.number,max:m.PropTypes.number,appearance:m.PropTypes.oneOf(x.values),onValueUpdated:m.PropTypes.func}}},{key:"defaultProps",get:function(){return{value:0,max:99,appearance:x.defaultValue}}}]),t}(m.PureComponent);t.default=_},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,"._1eQzTdeGbqIWe_WROsHkkO{display:inline-block}.Yw_zm_VhTLL1R9aJ2MNlb{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}._6iGVg-VgMB7lkx5H42Mlu{background:#ebecf0;color:#42526e}._1bi2_7c3H90bAH8Pw4xwgU{background:#0052cc;color:#fff}._3kjVDacGCyZLvhB7sWqhiX{background:#ff5630;color:#fff}._19ukTzPJwVJQixg5_wz3_k{background:#e3fcef;color:#064}._1XyvUNNWjj746a67rD0MSo{background:#ffebe6;color:#bf2600}",""]),t.locals={container:"_1eQzTdeGbqIWe_WROsHkkO",container:"_1eQzTdeGbqIWe_WROsHkkO",value:"Yw_zm_VhTLL1R9aJ2MNlb",value:"Yw_zm_VhTLL1R9aJ2MNlb",default:"_6iGVg-VgMB7lkx5H42Mlu",default:"_6iGVg-VgMB7lkx5H42Mlu",primary:"_1bi2_7c3H90bAH8Pw4xwgU",primary:"_1bi2_7c3H90bAH8Pw4xwgU",important:"_3kjVDacGCyZLvhB7sWqhiX",important:"_3kjVDacGCyZLvhB7sWqhiX",added:"_19ukTzPJwVJQixg5_wz3_k",added:"_19ukTzPJwVJQixg5_wz3_k",removed:"_1XyvUNNWjj746a67rD0MSo",removed:"_1XyvUNNWjj746a67rD0MSo"}},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=c.bind(null,r,o,!1),a=c.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=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 c(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 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 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 c=0;c<u.parts.length;c++)u.parts[c]();delete d[u.id]}}}};var x=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/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")}}()}])}); |
{ | ||
"name": "ak-badge", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "A React component that indicates values", | ||
@@ -9,3 +9,3 @@ "main": "dist/bundle.js", | ||
"scripts": { | ||
"prepublish": "cd ../.. && npm run prepublish/single ak-badge" | ||
"prepublish": "../../node_modules/.bin/in-publish && { cd ../.. && npm run prepublish/single ak-badge; } || ../../node_modules/.bin/not-in-publish" | ||
}, | ||
@@ -12,0 +12,0 @@ "files": [ |
@@ -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.2) | ||
[![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) | ||
@@ -17,7 +17,7 @@ # Badge | ||
![Example badge](https://bytebucket.org/atlassian/atlaskit/raw/8672e474935eb0d5200a9a118bb8240cff687656/packages/ak-badge/docs/badge.png) | ||
![Example badge](https://bytebucket.org/atlassian/atlaskit/raw/faeb8e22b4d21b5d42587408fa0ba409b7120a33/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.2/). | ||
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/). | ||
@@ -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.2). | ||
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). | ||
@@ -105,0 +105,0 @@ Check [if someone has already asked the same question before](https://answers.atlassian.com/questions/topics/42926171/atlaskit). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67343
820