Comparing version 0.0.0 to 0.0.1
@@ -102,2 +102,10 @@ !function(root, factory) { | ||
}, | ||
updated: function(elem, prev) { | ||
return prev && prev.value !== elem.value && (0, _skatejs.emit)(elem, "change", { | ||
detail: { | ||
oldValue: prev.value, | ||
newValue: elem.value | ||
} | ||
}), _skatejs.Component.updated(elem, prev); | ||
}, | ||
props: { | ||
@@ -113,4 +121,3 @@ /** | ||
attribute: !0, | ||
"default": 0, | ||
event: "change" | ||
"default": 0 | ||
}), | ||
@@ -117,0 +124,0 @@ /** |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("skatejs"),require("classnames"),require("akutil-common")):"function"==typeof define&&define.amd?define(["skatejs","classnames","akutil-common"],t):"object"==typeof exports?exports.akBadge=t(require("skatejs"),require("classnames"),require("akutil-common")):e.akBadge=t(e.skatejs,e.classnames,e["akutil-common"])}(this,function(e,t,n){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.prototype.hasOwnProperty,a=function(e,t){for(var n in e)o.call(e,n)&&t(e[n],n)},i=function v(e){var t=typeof e;"number"===t||"string"===t||"object"===t&&e instanceof String?s.vdom.text(e):"function"===t&&e.__jsxDOMWrapper?e():Array.isArray(e)?e.forEach(v):"object"===t&&"[object Object]"===String(e)&&a(e,v)};n(3);var s=n(7),u=n(8),l=r(u),c=n(9),f=r(c),d=n(10),p={values:["default","primary","important","added","removed"],missingDefault:"default",invalidDefault:"default"},m={render:function(e){var t=function(){return e.value<0?0:e.max>0&&e.value>e.max?e.max+"+":e.value===1/0?"∞":e.value}(),n=(0,f["default"])([l["default"].locals.value,l["default"].locals[e.appearance]]);return s.vdom.elementOpen("span",null,null,"class","container"),s.vdom.elementOpen("style"),i(l["default"].toString()),s.vdom.elementClose("style"),s.vdom.elementOpen("span",null,null,"class",n),i(t),s.vdom.elementClose("span"),s.vdom.elementClose("span")},props:{value:s.prop.number({attribute:!0,"default":0,event:"change"}),max:s.prop.number({attribute:!0,"default":99}),appearance:(0,d.enumeration)(p)({attribute:!0})}};t["default"]=(0,s.define)("ak-badge",m)},,,function(e,t,n){var r=n(4);"string"==typeof r&&(r=[[e.id,r,""]]),n(6)(r,{}),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(5)(),t.push([e.id,"._1TERpbevS34KWFjItzQyc_,ak-badge{display:inline-block}._1TERpbevS34KWFjItzQyc_:not([defined]),ak-badge:not([defined]){display:none}",""]),t.locals={"ak-badge":"_1TERpbevS34KWFjItzQyc_",akBadge:"_1TERpbevS34KWFjItzQyc_"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var a=this[o][0];"number"==typeof a&&(r[a]=!0)}for(o=0;o<t.length;o++){var i=t[o];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),e.push(i))}},e}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=p[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(l(r.parts[a],t))}else{for(var i=[],a=0;a<r.parts.length;a++)i.push(l(r.parts[a],t));p[r.id]={id:r.id,refs:1,parts:i}}}}function o(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],a=o[0],i=o[1],s=o[2],u=o[3],l={css:i,media:s,sourceMap:u};n[a]?n[a].parts.push(l):t.push(n[a]={id:a,parts:[l]})}return t}function a(e,t){var n=h(),r=g[g.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),g.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.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",a(e,t),t}function u(e){var t=document.createElement("link");return t.rel="stylesheet",a(e,t),t}function l(e,t){var n,r,o;if(t.singleton){var a=b++;n=y||(y=s(t)),r=c.bind(null,n,a,!1),o=c.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(t),r=d.bind(null,n),o=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=f.bind(null,n),o=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function c(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=x(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function f(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(o),a&&URL.revokeObjectURL(a)}var p={},m=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},v=m(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),h=m(function(){return document.head||document.getElementsByTagName("head")[0]}),y=null,b=0,g=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=v()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var a=[],i=0;i<n.length;i++){var s=n[i],u=p[s.id];u.refs--,a.push(u)}if(e){var l=o(e);r(l,t)}for(var i=0;i<a.length;i++){var u=a[i];if(0===u.refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete p[u.id]}}}};var x=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(t,n){t.exports=e},function(e,t,n){t=e.exports=n(5)(),t.push([e.id,".ijTcAcAZxkHj_XyMF7WOj{display:inline-block}._1XOjyz6nkYp0PwNm2_R5GN{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}.h4MwqeVnS3URyoNhqd_8p{background:#e5e8ec;color:#42526e}._3m6YegzVE32UQC6u2al8qi{background:#165ecc;color:#fff}.Ky0Y9zBAheCic3aMGGJ1W{background:#ed5451;color:#fff}._2HkxMzs0MGI9iWTzp7zpWq{background:#e2ffee;color:#008364}.VGziEGICtgeF8FIY3d0-f{background:#fececd;color:#bf2117}",""]),t.locals={container:"ijTcAcAZxkHj_XyMF7WOj",container:"ijTcAcAZxkHj_XyMF7WOj",value:"_1XOjyz6nkYp0PwNm2_R5GN",value:"_1XOjyz6nkYp0PwNm2_R5GN","default":"h4MwqeVnS3URyoNhqd_8p","default":"h4MwqeVnS3URyoNhqd_8p",primary:"_3m6YegzVE32UQC6u2al8qi",primary:"_3m6YegzVE32UQC6u2al8qi",important:"Ky0Y9zBAheCic3aMGGJ1W",important:"Ky0Y9zBAheCic3aMGGJ1W",added:"_2HkxMzs0MGI9iWTzp7zpWq",added:"_2HkxMzs0MGI9iWTzp7zpWq",removed:"VGziEGICtgeF8FIY3d0-f",removed:"VGziEGICtgeF8FIY3d0-f"}},function(e,n){e.exports=t},function(e,t){e.exports=n}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("skatejs"),require("classnames"),require("akutil-common")):"function"==typeof define&&define.amd?define(["skatejs","classnames","akutil-common"],t):"object"==typeof exports?exports.akBadge=t(require("skatejs"),require("classnames"),require("akutil-common")):e.akBadge=t(e.skatejs,e.classnames,e["akutil-common"])}(this,function(e,t,n){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.prototype.hasOwnProperty,a=function(e,t){for(var n in e)o.call(e,n)&&t(e[n],n)},i=function v(e){var t=typeof e;"number"===t||"string"===t||"object"===t&&e instanceof String?s.vdom.text(e):"function"===t&&e.__jsxDOMWrapper?e():Array.isArray(e)?e.forEach(v):"object"===t&&"[object Object]"===String(e)&&a(e,v)};n(3);var s=n(7),u=n(8),l=r(u),c=n(9),f=r(c),d=n(10),p={values:["default","primary","important","added","removed"],missingDefault:"default",invalidDefault:"default"},m={render:function(e){var t=function(){return e.value<0?0:e.max>0&&e.value>e.max?e.max+"+":e.value===1/0?"∞":e.value}(),n=(0,f["default"])([l["default"].locals.value,l["default"].locals[e.appearance]]);return s.vdom.elementOpen("span",null,null,"class","container"),s.vdom.elementOpen("style"),i(l["default"].toString()),s.vdom.elementClose("style"),s.vdom.elementOpen("span",null,null,"class",n),i(t),s.vdom.elementClose("span"),s.vdom.elementClose("span")},updated:function(e,t){return t&&t.value!==e.value&&(0,s.emit)(e,"change",{detail:{oldValue:t.value,newValue:e.value}}),s.Component.updated(e,t)},props:{value:s.prop.number({attribute:!0,"default":0}),max:s.prop.number({attribute:!0,"default":99}),appearance:(0,d.enumeration)(p)({attribute:!0})}};t["default"]=(0,s.define)("ak-badge",m)},,,function(e,t,n){var r=n(4);"string"==typeof r&&(r=[[e.id,r,""]]),n(6)(r,{}),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(5)(),t.push([e.id,"._1TERpbevS34KWFjItzQyc_,ak-badge{display:inline-block}._1TERpbevS34KWFjItzQyc_:not([defined]),ak-badge:not([defined]){display:none}",""]),t.locals={"ak-badge":"_1TERpbevS34KWFjItzQyc_",akBadge:"_1TERpbevS34KWFjItzQyc_"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var a=this[o][0];"number"==typeof a&&(r[a]=!0)}for(o=0;o<t.length;o++){var i=t[o];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),e.push(i))}},e}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=p[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(l(r.parts[a],t))}else{for(var i=[],a=0;a<r.parts.length;a++)i.push(l(r.parts[a],t));p[r.id]={id:r.id,refs:1,parts:i}}}}function o(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],a=o[0],i=o[1],s=o[2],u=o[3],l={css:i,media:s,sourceMap:u};n[a]?n[a].parts.push(l):t.push(n[a]={id:a,parts:[l]})}return t}function a(e,t){var n=h(),r=g[g.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),g.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.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",a(e,t),t}function u(e){var t=document.createElement("link");return t.rel="stylesheet",a(e,t),t}function l(e,t){var n,r,o;if(t.singleton){var a=b++;n=y||(y=s(t)),r=c.bind(null,n,a,!1),o=c.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(t),r=d.bind(null,n),o=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=f.bind(null,n),o=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function c(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=x(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function f(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(o),a&&URL.revokeObjectURL(a)}var p={},m=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},v=m(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),h=m(function(){return document.head||document.getElementsByTagName("head")[0]}),y=null,b=0,g=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=v()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var a=[],i=0;i<n.length;i++){var s=n[i],u=p[s.id];u.refs--,a.push(u)}if(e){var l=o(e);r(l,t)}for(var i=0;i<a.length;i++){var u=a[i];if(0===u.refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete p[u.id]}}}};var x=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(t,n){t.exports=e},function(e,t,n){t=e.exports=n(5)(),t.push([e.id,".ijTcAcAZxkHj_XyMF7WOj{display:inline-block}._1XOjyz6nkYp0PwNm2_R5GN{border-radius:2em;display:inline-block;font-size:12px;font-weight:400;line-height:1;min-width:1px;padding:.16666667em .5em;text-align:center}.h4MwqeVnS3URyoNhqd_8p{background:#e5e8ec;color:#42526e}._3m6YegzVE32UQC6u2al8qi{background:#165ecc;color:#fff}.Ky0Y9zBAheCic3aMGGJ1W{background:#ed5451;color:#fff}._2HkxMzs0MGI9iWTzp7zpWq{background:#e2ffee;color:#008364}.VGziEGICtgeF8FIY3d0-f{background:#fececd;color:#bf2117}",""]),t.locals={container:"ijTcAcAZxkHj_XyMF7WOj",container:"ijTcAcAZxkHj_XyMF7WOj",value:"_1XOjyz6nkYp0PwNm2_R5GN",value:"_1XOjyz6nkYp0PwNm2_R5GN","default":"h4MwqeVnS3URyoNhqd_8p","default":"h4MwqeVnS3URyoNhqd_8p",primary:"_3m6YegzVE32UQC6u2al8qi",primary:"_3m6YegzVE32UQC6u2al8qi",important:"Ky0Y9zBAheCic3aMGGJ1W",important:"Ky0Y9zBAheCic3aMGGJ1W",added:"_2HkxMzs0MGI9iWTzp7zpWq",added:"_2HkxMzs0MGI9iWTzp7zpWq",removed:"VGziEGICtgeF8FIY3d0-f",removed:"VGziEGICtgeF8FIY3d0-f"}},function(e,n){e.exports=t},function(e,t){e.exports=n}])}); |
{ | ||
"name": "ak-badge", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "ak-badge webcomponent", | ||
@@ -14,6 +14,6 @@ "main": "dist/bundle.js", | ||
"dependencies": { | ||
"akutil-common": "^0.2.0", | ||
"akutil-common": "^1.0.0", | ||
"akutil-shared-styles": "^33.1.0", | ||
"classnames": "^2.2.5", | ||
"skatejs": "1.0.0-beta.12" | ||
"skatejs": "^1.0.1" | ||
}, | ||
@@ -23,3 +23,3 @@ "author": "Atlassian Pty Ltd", | ||
"devDependencies": { | ||
"akutil-react": "^0.0.4" | ||
"akutil-react": "^1.0.0" | ||
}, | ||
@@ -26,0 +26,0 @@ "repository": { |
@@ -58,2 +58,3 @@ # AkBadge | ||
``` | ||
## AkBadge API | ||
@@ -60,0 +61,0 @@ * Properties |
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
31312
389
91
+ Addedakutil-common@1.0.0(transitive)
+ Addedskatejs@1.5.2(transitive)
- Removedakutil-common@0.2.2(transitive)
- Removedregex-native-function@1.0.0(transitive)
- Removedskatejs@1.0.0-beta.12(transitive)
Updatedakutil-common@^1.0.0
Updatedskatejs@^1.0.1