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

ak-tag

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ak-tag - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

20

CHANGELOG.md

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

<a name="4.0.0"></a>
# 4.0.0 (2016-11-07)
<a name="4.0.1"></a>
## 4.0.1 (2016-11-08)
<a name="ak-tag@4.0.1"></a>
## ak-tag@4.0.1 (2016-11-08)
### Bug Fixes
* stop collapsing the editor automatically when saving or cancelling. ([a8aad6f](https://bitbucket.org/atlassian/atlaskit/commits/a8aad6f))
<a name="ak-tag@3.0.0"></a>

@@ -10,3 +20,9 @@ # ak-tag@3.0.0 (2016-11-07)

### Bug Fixes
* use latest skate everywhere ([1aa631f](https://bitbucket.org/atlassian/atlaskit/commits/1aa631f))
* Use SkateJS 4.x ([e13002a](https://bitbucket.org/atlassian/atlaskit/commits/e13002a))
<a name="ak-tag@2.3.2"></a>

@@ -13,0 +29,0 @@ ## ak-tag@2.3.2 (2016-11-04)

8

dist/bundle-cjs.js

@@ -659,3 +659,3 @@ module.exports = /******/

name: "ak-tag",
version: "4.0.0",
version: "4.0.1",
description: "This component displays as a tag with an optional link and/or button to remove the given tag.",

@@ -676,3 +676,3 @@ main: "dist/bundle.js",

debug: "^2.2.0",
skatejs: "^3.0.0"
skatejs: "^4.0.4"
},

@@ -682,4 +682,4 @@ author: "Atlassian Pty Ltd",

devDependencies: {
"akutil-common-test": "^4.0.0",
"akutil-react": "^1.0.0",
"akutil-common-test": "*",
"akutil-react": "*",
"custom-event-polyfill": "^0.3.0",

@@ -686,0 +686,0 @@ keycode: "^2.1.4"

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

module.exports=function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.exceptions=t.events=void 0;var i,a=n(9),l=r(a),u=n(10),d=r(u),s=Object.prototype.hasOwnProperty,c=function(e,t){for(var n in e)s.call(e,n)&&t(e[n],n)},f=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?m.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&c(t,e)},m=n(11),p=n(12),v=r(p),b=n(18),h=r(b),x=n(21),g=r(x),_=n(22),y=r(_),w=n(24),C=r(w),O=n(25),k=o(O),j=n(26),A=o(j),M=n(28),S=n(29),P=r(S),T=A.NotRemovableError,R=k.beforeRemove,D=k.afterRemove,W=(0,d.default)("buttonHoverSymbol"),Q=(0,d.default)("isRemovingSymbol"),E=(0,d.default)("isRemovedSymbol");t.default=(0,m.define)(M.name,{render:function(e){if(!e.text)return P.default.warn("No text given, not rendering."),null;var t=e.isLinked(),n=e.isRemovable(),o=e[Q],r=e[E],i=n?y.default:function(){return null},a=function(){e[E]=!0,e[Q]=!1,(0,m.emit)(e,D,{bubbles:!0,cancelable:!1,detail:{item:e}})};return m.vdom.elementOpen(g.default),m.vdom.elementOpen(C.default,null,null,"isRemoving",o,"isRemoved",r,"afterAnimation",a),m.vdom.elementOpen(v.default,null,null,"isLinked",t,"isRemovable",n,"markedForRemoval",e[W]),m.vdom.elementOpen(h.default,null,null,"href",e.href),f(e.text),m.vdom.elementClose(h.default),m.vdom.elementVoid(i,null,null,"onHoverStateChange",function(t){return(0,m.props)(e,(0,l.default)({},W,t))},"onActivation",function(){return e.remove()},"text",e["remove-button-text"]),m.vdom.elementClose(v.default),m.vdom.elementClose(C.default),m.vdom.elementClose(g.default)},prototype:{isLinked:function(){return!!this.href},isRemovable:function(){return!!this["remove-button-text"]},remove:function(){if(!this.isRemovable())throw new T("Tag is not removable");(0,m.emit)(this,R,{detail:{item:this}})?(0,m.props)(this,(0,l.default)({},Q,!0)):P.default.log("Cancelled "+R+' event for tag "'+this.text+'"')}},props:(i={text:{attribute:!0},href:{attribute:!0},"remove-button-text":{attribute:!0,default:""}},(0,l.default)(i,W,m.prop.boolean({initial:!1})),(0,l.default)(i,Q,m.prop.boolean({initial:!1})),(0,l.default)(i,E,m.prop.boolean({initial:!1})),i)}),t.events=k,t.exceptions=A},,,,,,,,,function(e,t){e.exports=require("babel-runtime/helpers/defineProperty")},function(e,t){e.exports=require("babel-runtime/core-js/symbol")},function(e,t){e.exports=require("skatejs")},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),i=o(r),a=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?s.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&d(t,e)},l=function(e,t){s.vdom.attr(t,e)},u=Object.prototype.hasOwnProperty,d=function(e,t){for(var n in e)u.call(e,n)&&t(e[n],n)},s=n(11),c=n(13),f=o(c),m=n(14),p=o(m),v=n(16),b=o(v),h=function(e){var t=function(){e.querySelector("a").click()};(0,p.default)(e,t)};t.default=function(e,t){var n,o=(0,f.default)((n={},(0,i.default)(n,b.default.locals.chrome,!0),(0,i.default)(n,b.default.locals.markedForRemoval,e.markedForRemoval),(0,i.default)(n,b.default.locals.isRemovable,e.isRemovable),n)),r={};return e.isLinked&&(r.role="link",r.ref=h),s.vdom.elementOpenStart("span"),d(e,l),d(r,l),s.vdom.attr("tabindex",e.isLinked?0:-1),s.vdom.attr("className",o),s.vdom.attr("onmousedown",function(e){return e.preventDefault()}),s.vdom.elementOpenEnd("span"),a(t()),s.vdom.elementClose("span")}},function(e,t){e.exports=require("classnames")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handledKeys=void 0;var o=n(15),r=["ENTER","SPACE"];t.default=function(e,t){var n=new o.KeyPressHandler(r[0],t,e);return r.slice(1).forEach(function(e){return n.add(e,t)}),n},t.handledKeys=r},function(e,t){e.exports=require("akutil-common")},function(e,t,n){t=e.exports=n(17)(),t.push([e.id,"@-webkit-keyframes _3q1YAuR2O3MJ0-Tp3kHmWm{0%{max-width:212px;-webkit-animation-timing-function:cubic-bezier(.2383005,0,.25586733,.79011192);animation-timing-function:cubic-bezier(.2383005,0,.25586733,.79011192)}20%{max-width:42.39999999999998px;-webkit-animation-timing-function:cubic-bezier(.21787238,.98324005,.58694151,1);animation-timing-function:cubic-bezier(.21787238,.98324005,.58694151,1)}to{max-width:0}}@keyframes _3q1YAuR2O3MJ0-Tp3kHmWm{0%{max-width:212px;-webkit-animation-timing-function:cubic-bezier(.2383005,0,.25586733,.79011192);animation-timing-function:cubic-bezier(.2383005,0,.25586733,.79011192)}20%{max-width:42.39999999999998px;-webkit-animation-timing-function:cubic-bezier(.21787238,.98324005,.58694151,1);animation-timing-function:cubic-bezier(.21787238,.98324005,.58694151,1)}to{max-width:0}}.D53ASQLjrmbD1viT-Q04g,ak-tag{display:inline-block}.D53ASQLjrmbD1viT-Q04g:not([defined]),ak-tag:not([defined]){display:none}:host{display:inline-block}:host(:not([defined])){display:none}._7IYACsh-1PT1-xgT97GWi{background-color:#f4f5f7;border-radius:3px;cursor:default;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;line-height:1;margin:6px;padding:0}._7IYACsh-1PT1-xgT97GWi:focus{outline:none;box-shadow:0 0 0 2px #4c9aff}._7IYACsh-1PT1-xgT97GWi:hover{box-shadow:none;background-color:#ebecf0}._7IYACsh-1PT1-xgT97GWi:hover ._2Qep03_yqM2CZAcLCDAX1B:focus{outline:none;box-shadow:0 0 0 2px #4c9aff}._7IYACsh-1PT1-xgT97GWi._1NnPG-mbxhdPkYFMvMiayA{background-color:#ffebe6}._7IYACsh-1PT1-xgT97GWi._1NnPG-mbxhdPkYFMvMiayA ._3FqaXhU7IjDv0ACWXaypM5,._7IYACsh-1PT1-xgT97GWi._1NnPG-mbxhdPkYFMvMiayA .HEID2GNI4SnFwfs-G_J3k{color:#bf2600}._7IYACsh-1PT1-xgT97GWi:focus ._3FqaXhU7IjDv0ACWXaypM5{color:#0052cc}._7IYACsh-1PT1-xgT97GWi._1QMC9OZNNV2tQSL2f0A8pW ._3FqaXhU7IjDv0ACWXaypM5,._7IYACsh-1PT1-xgT97GWi._1QMC9OZNNV2tQSL2f0A8pW .HEID2GNI4SnFwfs-G_J3k{max-width:179px}.nzhCKgQHVUQCanbyM7Er0{box-sizing:border-box}.nzhCKgQHVUQCanbyM7Er0._5LtmhufycwS77O81cYTl-{-webkit-animation:_3q1YAuR2O3MJ0-Tp3kHmWm .25s forwards;animation:_3q1YAuR2O3MJ0-Tp3kHmWm .25s forwards;will-change:width}.nzhCKgQHVUQCanbyM7Er0._5LtmhufycwS77O81cYTl- ._7IYACsh-1PT1-xgT97GWi{overflow:hidden}.nzhCKgQHVUQCanbyM7Er0._3xBDS89gQ7p6BmExiaXngV{width:0;visibility:hidden}.nzhCKgQHVUQCanbyM7Er0._3xBDS89gQ7p6BmExiaXngV ._7IYACsh-1PT1-xgT97GWi{overflow:hidden}.HEID2GNI4SnFwfs-G_J3k{color:#253858;font-size:14px;font-weight:400;line-height:1;margin-left:4px;margin-right:4px;padding:2px 0;max-width:192px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._3FqaXhU7IjDv0ACWXaypM5{color:#253858;font-size:14px;font-weight:400;line-height:1;margin-left:4px;margin-right:4px;padding:2px 0;max-width:192px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none}._3FqaXhU7IjDv0ACWXaypM5:hover{color:#0052cc}._2Qep03_yqM2CZAcLCDAX1B{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;border-radius:3px;color:#42526e;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;width:13px}._2Qep03_yqM2CZAcLCDAX1B:focus{outline:none;box-shadow:0 0 0 2px #ff5630}._2Qep03_yqM2CZAcLCDAX1B:hover{color:#bf2600}",""]),t.locals={"ak-tag":"D53ASQLjrmbD1viT-Q04g",akTag:"D53ASQLjrmbD1viT-Q04g",chrome:"_7IYACsh-1PT1-xgT97GWi",chrome:"_7IYACsh-1PT1-xgT97GWi",button:"_2Qep03_yqM2CZAcLCDAX1B",button:"_2Qep03_yqM2CZAcLCDAX1B",markedForRemoval:"_1NnPG-mbxhdPkYFMvMiayA",markedForRemoval:"_1NnPG-mbxhdPkYFMvMiayA",href:"_3FqaXhU7IjDv0ACWXaypM5",href:"_3FqaXhU7IjDv0ACWXaypM5",text:"HEID2GNI4SnFwfs-G_J3k",text:"HEID2GNI4SnFwfs-G_J3k",isRemovable:"_1QMC9OZNNV2tQSL2f0A8pW",isRemovable:"_1QMC9OZNNV2tQSL2f0A8pW",animationWrapper:"nzhCKgQHVUQCanbyM7Er0",animationWrapper:"nzhCKgQHVUQCanbyM7Er0",isRemoving:"_5LtmhufycwS77O81cYTl-",isRemoving:"_5LtmhufycwS77O81cYTl-",removeAnimation:"_3q1YAuR2O3MJ0-Tp3kHmWm",removeAnimation:"_3q1YAuR2O3MJ0-Tp3kHmWm",isRemoved:"_3xBDS89gQ7p6BmExiaXngV",isRemoved:"_3xBDS89gQ7p6BmExiaXngV"}},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 o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.prototype.hasOwnProperty,i=function(e,t){for(var n in e)r.call(e,n)&&t(e[n],n)},a=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?l.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&i(t,e)},l=n(11),u=n(19),d=o(u),s=n(20),c=o(s);t.default=function(e,t){var n=e.href?c.default:d.default;return l.vdom.elementOpen(n,null,null,"href",e.href),a(t()),l.vdom.elementClose(n)}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?u.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&l(t,e)},i=function(e,t){u.vdom.attr(t,e)},a=Object.prototype.hasOwnProperty,l=function(e,t){for(var n in e)a.call(e,n)&&t(e[n],n)},u=n(11),d=n(16),s=o(d);t.default=function(e,t){return u.vdom.elementOpenStart("span"),l(e,i),u.vdom.attr("className",s.default.locals.text),u.vdom.elementOpenEnd("span"),r(t()),u.vdom.elementClose("span")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?u.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&l(t,e)},i=function(e,t){u.vdom.attr(t,e)},a=Object.prototype.hasOwnProperty,l=function(e,t){for(var n in e)a.call(e,n)&&t(e[n],n)},u=n(11),d=n(16),s=o(d);t.default=function(e,t){return u.vdom.elementOpenStart("a"),l(e,i),u.vdom.attr("className",s.default.locals.href),u.vdom.attr("href",e.href),u.vdom.attr("tabindex","-1"),u.vdom.elementOpenEnd("a"),r(t()),u.vdom.elementClose("a")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){u.vdom.attr(t,e)},i=Object.prototype.hasOwnProperty,a=function(e,t){for(var n in e)i.call(e,n)&&t(e[n],n)},l=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?u.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&a(t,e)},u=n(11),d=n(16),s=o(d);t.default=function(e,t){return u.vdom.elementOpenStart("div"),a(e,r),u.vdom.elementOpenEnd("div"),u.vdom.elementOpen("style"),l(s.default.toString()),u.vdom.elementClose("style"),l(t()),u.vdom.elementClose("div")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){l.vdom.attr(t,e)},i=Object.prototype.hasOwnProperty,a=function(e,t){for(var n in e)i.call(e,n)&&t(e[n],n)},l=n(11),u=n(14),d=o(u),s=n(16),c=o(s),f=n(23),m=o(f);t.default=function(e){var t=function(t){t.stopPropagation(),t.preventDefault(),e.onActivation()};return l.vdom.elementOpenStart("button"),a(e,r),l.vdom.attr("className",c.default.locals.button),l.vdom.attr("aria-label",e.text),l.vdom.attr("onmousedown",function(e){return e.preventDefault()}),l.vdom.attr("onmouseover",function(){return e.onHoverStateChange(!0)}),l.vdom.attr("onmouseout",function(){return e.onHoverStateChange(!1)}),l.vdom.attr("ref",function(e){return(0,d.default)(e,t)}),l.vdom.attr("onclick",t),l.vdom.elementOpenEnd("button"),l.vdom.elementVoid(m.default),l.vdom.elementClose("button")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(11);t.default=function(){return o.vdom.elementOpen("svg",null,null,"width","5px","height","5px","viewBox","288 109 5 5","version","1.1","xmlns","http://www.w3.org/2000/svg","xmlnsXlink","http://www.w3.org/1999/xlink"),o.vdom.elementOpen("desc"),o.vdom.text("Created with Sketch."),o.vdom.elementClose("desc"),o.vdom.elementVoid("defs"),o.vdom.elementVoid("path",null,null,"fill","currentColor","d","M292.808502,112.885224 C293.063833,113.140571 293.063833,113.553306 292.808502,113.808653 C292.681164,113.936 292.513991,114 292.346818,114 C292.179645,114 292.012473,113.936 291.885134,113.808653 L290.500082,112.42351 L289.114376,113.808653 C288.987038,113.936 288.819865,114 288.652692,114 C288.485519,114 288.319,113.936 288.191008,113.808653 C287.936331,113.553306 287.936331,113.140571 288.191008,112.885224 L289.57606,111.500082 L288.191008,110.114939 C287.936331,109.859592 287.936331,109.446204 288.191008,109.19151 C288.446338,108.936163 288.859699,108.936163 289.114376,109.19151 L290.500082,110.576653 L291.885134,109.19151 C292.140464,108.936163 292.553172,108.936163 292.808502,109.19151 C293.063833,109.446204 293.063833,109.859592 292.808502,110.114939 L291.42345,111.500082 L292.808502,112.885224 Z","id","Fill-1","stroke","none","fill-rule","evenodd"),o.vdom.elementClose("svg")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),i=o(r),a=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?s.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&d(t,e)},l=function(e,t){s.vdom.attr(t,e)},u=Object.prototype.hasOwnProperty,d=function(e,t){for(var n in e)u.call(e,n)&&t(e[n],n)},s=n(11),c=n(13),f=o(c),m=n(16),p=o(m);t.default=function(e,t){var n,o=(0,f.default)((n={},(0,i.default)(n,p.default.locals.animationWrapper,!0),(0,i.default)(n,p.default.locals.isRemoving,e.isRemoving),(0,i.default)(n,p.default.locals.isRemoved,e.isRemoved),n)),r=function(t){t.animationName===p.default.locals.removeAnimation&&e.afterAnimation()};return s.vdom.elementOpenStart("div"),d(e,l),s.vdom.attr("className",o),s.vdom.attr("onAnimationend",r),s.vdom.elementOpenEnd("div"),a(t()),s.vdom.elementClose("div")}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.beforeRemove="beforeRemove",t.afterRemove="afterRemove"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.NotRemovableError=void 0;var r=n(27),i=o(r),a=(0,i.default)("NotRemovableError");t.NotRemovableError=a},function(e,t){e.exports=require("create-error")},function(e,t){e.exports={name:"ak-tag",version:"4.0.0",description:"This component displays as a tag with an optional link and/or button to remove the given tag.",main:"dist/bundle.js",webpack:"dist/bundle-cjs.js","ak:webpack:raw":"src/index.js",scripts:{prepublish:"cd ../.. && npm run prepublish/single ak-tag"},files:["dist"],dependencies:{"akutil-common":"^2.0.0","akutil-shared-styles":"^35.0.1","babel-runtime":"^6.11.6",classnames:"^2.2.5","create-error":"^0.3.1",debug:"^2.2.0",skatejs:"^3.0.0"},author:"Atlassian Pty Ltd",license:"Apache-2.0",devDependencies:{"akutil-common-test":"^4.0.0","akutil-react":"^1.0.0","custom-event-polyfill":"^0.3.0",keycode:"^2.1.4"},repository:{type:"git",url:"https://bitbucket.org/atlassian/atlaskit"},keywords:["atlaskit","ui"]}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(30),i=o(r),a=n(28);t.default={log:(0,i.default)(a.name+":log"),warn:(0,i.default)(a.name+":warn"),error:(0,i.default)(a.name+":error")}},function(e,t){e.exports=require("debug")}]);
module.exports=function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.exceptions=t.events=void 0;var i,a=n(9),l=r(a),u=n(10),d=r(u),s=Object.prototype.hasOwnProperty,c=function(e,t){for(var n in e)s.call(e,n)&&t(e[n],n)},f=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?m.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&c(t,e)},m=n(11),p=n(12),v=r(p),b=n(18),h=r(b),x=n(21),g=r(x),_=n(22),y=r(_),w=n(24),C=r(w),O=n(25),k=o(O),j=n(26),A=o(j),M=n(28),S=n(29),P=r(S),T=A.NotRemovableError,R=k.beforeRemove,D=k.afterRemove,W=(0,d.default)("buttonHoverSymbol"),Q=(0,d.default)("isRemovingSymbol"),E=(0,d.default)("isRemovedSymbol");t.default=(0,m.define)(M.name,{render:function(e){if(!e.text)return P.default.warn("No text given, not rendering."),null;var t=e.isLinked(),n=e.isRemovable(),o=e[Q],r=e[E],i=n?y.default:function(){return null},a=function(){e[E]=!0,e[Q]=!1,(0,m.emit)(e,D,{bubbles:!0,cancelable:!1,detail:{item:e}})};return m.vdom.elementOpen(g.default),m.vdom.elementOpen(C.default,null,null,"isRemoving",o,"isRemoved",r,"afterAnimation",a),m.vdom.elementOpen(v.default,null,null,"isLinked",t,"isRemovable",n,"markedForRemoval",e[W]),m.vdom.elementOpen(h.default,null,null,"href",e.href),f(e.text),m.vdom.elementClose(h.default),m.vdom.elementVoid(i,null,null,"onHoverStateChange",function(t){return(0,m.props)(e,(0,l.default)({},W,t))},"onActivation",function(){return e.remove()},"text",e["remove-button-text"]),m.vdom.elementClose(v.default),m.vdom.elementClose(C.default),m.vdom.elementClose(g.default)},prototype:{isLinked:function(){return!!this.href},isRemovable:function(){return!!this["remove-button-text"]},remove:function(){if(!this.isRemovable())throw new T("Tag is not removable");(0,m.emit)(this,R,{detail:{item:this}})?(0,m.props)(this,(0,l.default)({},Q,!0)):P.default.log("Cancelled "+R+' event for tag "'+this.text+'"')}},props:(i={text:{attribute:!0},href:{attribute:!0},"remove-button-text":{attribute:!0,default:""}},(0,l.default)(i,W,m.prop.boolean({initial:!1})),(0,l.default)(i,Q,m.prop.boolean({initial:!1})),(0,l.default)(i,E,m.prop.boolean({initial:!1})),i)}),t.events=k,t.exceptions=A},,,,,,,,,function(e,t){e.exports=require("babel-runtime/helpers/defineProperty")},function(e,t){e.exports=require("babel-runtime/core-js/symbol")},function(e,t){e.exports=require("skatejs")},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),i=o(r),a=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?s.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&d(t,e)},l=function(e,t){s.vdom.attr(t,e)},u=Object.prototype.hasOwnProperty,d=function(e,t){for(var n in e)u.call(e,n)&&t(e[n],n)},s=n(11),c=n(13),f=o(c),m=n(14),p=o(m),v=n(16),b=o(v),h=function(e){var t=function(){e.querySelector("a").click()};(0,p.default)(e,t)};t.default=function(e,t){var n,o=(0,f.default)((n={},(0,i.default)(n,b.default.locals.chrome,!0),(0,i.default)(n,b.default.locals.markedForRemoval,e.markedForRemoval),(0,i.default)(n,b.default.locals.isRemovable,e.isRemovable),n)),r={};return e.isLinked&&(r.role="link",r.ref=h),s.vdom.elementOpenStart("span"),d(e,l),d(r,l),s.vdom.attr("tabindex",e.isLinked?0:-1),s.vdom.attr("className",o),s.vdom.attr("onmousedown",function(e){return e.preventDefault()}),s.vdom.elementOpenEnd("span"),a(t()),s.vdom.elementClose("span")}},function(e,t){e.exports=require("classnames")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handledKeys=void 0;var o=n(15),r=["ENTER","SPACE"];t.default=function(e,t){var n=new o.KeyPressHandler(r[0],t,e);return r.slice(1).forEach(function(e){return n.add(e,t)}),n},t.handledKeys=r},function(e,t){e.exports=require("akutil-common")},function(e,t,n){t=e.exports=n(17)(),t.push([e.id,"@-webkit-keyframes _3q1YAuR2O3MJ0-Tp3kHmWm{0%{max-width:212px;-webkit-animation-timing-function:cubic-bezier(.2383005,0,.25586733,.79011192);animation-timing-function:cubic-bezier(.2383005,0,.25586733,.79011192)}20%{max-width:42.39999999999998px;-webkit-animation-timing-function:cubic-bezier(.21787238,.98324005,.58694151,1);animation-timing-function:cubic-bezier(.21787238,.98324005,.58694151,1)}to{max-width:0}}@keyframes _3q1YAuR2O3MJ0-Tp3kHmWm{0%{max-width:212px;-webkit-animation-timing-function:cubic-bezier(.2383005,0,.25586733,.79011192);animation-timing-function:cubic-bezier(.2383005,0,.25586733,.79011192)}20%{max-width:42.39999999999998px;-webkit-animation-timing-function:cubic-bezier(.21787238,.98324005,.58694151,1);animation-timing-function:cubic-bezier(.21787238,.98324005,.58694151,1)}to{max-width:0}}.D53ASQLjrmbD1viT-Q04g,ak-tag{display:inline-block}.D53ASQLjrmbD1viT-Q04g:not([defined]),ak-tag:not([defined]){display:none}:host{display:inline-block}:host(:not([defined])){display:none}._7IYACsh-1PT1-xgT97GWi{background-color:#f4f5f7;border-radius:3px;cursor:default;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;line-height:1;margin:6px;padding:0}._7IYACsh-1PT1-xgT97GWi:focus{outline:none;box-shadow:0 0 0 2px #4c9aff}._7IYACsh-1PT1-xgT97GWi:hover{box-shadow:none;background-color:#ebecf0}._7IYACsh-1PT1-xgT97GWi:hover ._2Qep03_yqM2CZAcLCDAX1B:focus{outline:none;box-shadow:0 0 0 2px #4c9aff}._7IYACsh-1PT1-xgT97GWi._1NnPG-mbxhdPkYFMvMiayA{background-color:#ffebe6}._7IYACsh-1PT1-xgT97GWi._1NnPG-mbxhdPkYFMvMiayA ._3FqaXhU7IjDv0ACWXaypM5,._7IYACsh-1PT1-xgT97GWi._1NnPG-mbxhdPkYFMvMiayA .HEID2GNI4SnFwfs-G_J3k{color:#bf2600}._7IYACsh-1PT1-xgT97GWi:focus ._3FqaXhU7IjDv0ACWXaypM5{color:#0052cc}._7IYACsh-1PT1-xgT97GWi._1QMC9OZNNV2tQSL2f0A8pW ._3FqaXhU7IjDv0ACWXaypM5,._7IYACsh-1PT1-xgT97GWi._1QMC9OZNNV2tQSL2f0A8pW .HEID2GNI4SnFwfs-G_J3k{max-width:179px}.nzhCKgQHVUQCanbyM7Er0{box-sizing:border-box}.nzhCKgQHVUQCanbyM7Er0._5LtmhufycwS77O81cYTl-{-webkit-animation:_3q1YAuR2O3MJ0-Tp3kHmWm .25s forwards;animation:_3q1YAuR2O3MJ0-Tp3kHmWm .25s forwards;will-change:width}.nzhCKgQHVUQCanbyM7Er0._5LtmhufycwS77O81cYTl- ._7IYACsh-1PT1-xgT97GWi{overflow:hidden}.nzhCKgQHVUQCanbyM7Er0._3xBDS89gQ7p6BmExiaXngV{width:0;visibility:hidden}.nzhCKgQHVUQCanbyM7Er0._3xBDS89gQ7p6BmExiaXngV ._7IYACsh-1PT1-xgT97GWi{overflow:hidden}.HEID2GNI4SnFwfs-G_J3k{color:#253858;font-size:14px;font-weight:400;line-height:1;margin-left:4px;margin-right:4px;padding:2px 0;max-width:192px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._3FqaXhU7IjDv0ACWXaypM5{color:#253858;font-size:14px;font-weight:400;line-height:1;margin-left:4px;margin-right:4px;padding:2px 0;max-width:192px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none}._3FqaXhU7IjDv0ACWXaypM5:hover{color:#0052cc}._2Qep03_yqM2CZAcLCDAX1B{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;border-radius:3px;color:#42526e;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;width:13px}._2Qep03_yqM2CZAcLCDAX1B:focus{outline:none;box-shadow:0 0 0 2px #ff5630}._2Qep03_yqM2CZAcLCDAX1B:hover{color:#bf2600}",""]),t.locals={"ak-tag":"D53ASQLjrmbD1viT-Q04g",akTag:"D53ASQLjrmbD1viT-Q04g",chrome:"_7IYACsh-1PT1-xgT97GWi",chrome:"_7IYACsh-1PT1-xgT97GWi",button:"_2Qep03_yqM2CZAcLCDAX1B",button:"_2Qep03_yqM2CZAcLCDAX1B",markedForRemoval:"_1NnPG-mbxhdPkYFMvMiayA",markedForRemoval:"_1NnPG-mbxhdPkYFMvMiayA",href:"_3FqaXhU7IjDv0ACWXaypM5",href:"_3FqaXhU7IjDv0ACWXaypM5",text:"HEID2GNI4SnFwfs-G_J3k",text:"HEID2GNI4SnFwfs-G_J3k",isRemovable:"_1QMC9OZNNV2tQSL2f0A8pW",isRemovable:"_1QMC9OZNNV2tQSL2f0A8pW",animationWrapper:"nzhCKgQHVUQCanbyM7Er0",animationWrapper:"nzhCKgQHVUQCanbyM7Er0",isRemoving:"_5LtmhufycwS77O81cYTl-",isRemoving:"_5LtmhufycwS77O81cYTl-",removeAnimation:"_3q1YAuR2O3MJ0-Tp3kHmWm",removeAnimation:"_3q1YAuR2O3MJ0-Tp3kHmWm",isRemoved:"_3xBDS89gQ7p6BmExiaXngV",isRemoved:"_3xBDS89gQ7p6BmExiaXngV"}},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 o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.prototype.hasOwnProperty,i=function(e,t){for(var n in e)r.call(e,n)&&t(e[n],n)},a=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?l.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&i(t,e)},l=n(11),u=n(19),d=o(u),s=n(20),c=o(s);t.default=function(e,t){var n=e.href?c.default:d.default;return l.vdom.elementOpen(n,null,null,"href",e.href),a(t()),l.vdom.elementClose(n)}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?u.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&l(t,e)},i=function(e,t){u.vdom.attr(t,e)},a=Object.prototype.hasOwnProperty,l=function(e,t){for(var n in e)a.call(e,n)&&t(e[n],n)},u=n(11),d=n(16),s=o(d);t.default=function(e,t){return u.vdom.elementOpenStart("span"),l(e,i),u.vdom.attr("className",s.default.locals.text),u.vdom.elementOpenEnd("span"),r(t()),u.vdom.elementClose("span")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?u.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&l(t,e)},i=function(e,t){u.vdom.attr(t,e)},a=Object.prototype.hasOwnProperty,l=function(e,t){for(var n in e)a.call(e,n)&&t(e[n],n)},u=n(11),d=n(16),s=o(d);t.default=function(e,t){return u.vdom.elementOpenStart("a"),l(e,i),u.vdom.attr("className",s.default.locals.href),u.vdom.attr("href",e.href),u.vdom.attr("tabindex","-1"),u.vdom.elementOpenEnd("a"),r(t()),u.vdom.elementClose("a")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){u.vdom.attr(t,e)},i=Object.prototype.hasOwnProperty,a=function(e,t){for(var n in e)i.call(e,n)&&t(e[n],n)},l=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?u.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&a(t,e)},u=n(11),d=n(16),s=o(d);t.default=function(e,t){return u.vdom.elementOpenStart("div"),a(e,r),u.vdom.elementOpenEnd("div"),u.vdom.elementOpen("style"),l(s.default.toString()),u.vdom.elementClose("style"),l(t()),u.vdom.elementClose("div")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){l.vdom.attr(t,e)},i=Object.prototype.hasOwnProperty,a=function(e,t){for(var n in e)i.call(e,n)&&t(e[n],n)},l=n(11),u=n(14),d=o(u),s=n(16),c=o(s),f=n(23),m=o(f);t.default=function(e){var t=function(t){t.stopPropagation(),t.preventDefault(),e.onActivation()};return l.vdom.elementOpenStart("button"),a(e,r),l.vdom.attr("className",c.default.locals.button),l.vdom.attr("aria-label",e.text),l.vdom.attr("onmousedown",function(e){return e.preventDefault()}),l.vdom.attr("onmouseover",function(){return e.onHoverStateChange(!0)}),l.vdom.attr("onmouseout",function(){return e.onHoverStateChange(!1)}),l.vdom.attr("ref",function(e){return(0,d.default)(e,t)}),l.vdom.attr("onclick",t),l.vdom.elementOpenEnd("button"),l.vdom.elementVoid(m.default),l.vdom.elementClose("button")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(11);t.default=function(){return o.vdom.elementOpen("svg",null,null,"width","5px","height","5px","viewBox","288 109 5 5","version","1.1","xmlns","http://www.w3.org/2000/svg","xmlnsXlink","http://www.w3.org/1999/xlink"),o.vdom.elementOpen("desc"),o.vdom.text("Created with Sketch."),o.vdom.elementClose("desc"),o.vdom.elementVoid("defs"),o.vdom.elementVoid("path",null,null,"fill","currentColor","d","M292.808502,112.885224 C293.063833,113.140571 293.063833,113.553306 292.808502,113.808653 C292.681164,113.936 292.513991,114 292.346818,114 C292.179645,114 292.012473,113.936 291.885134,113.808653 L290.500082,112.42351 L289.114376,113.808653 C288.987038,113.936 288.819865,114 288.652692,114 C288.485519,114 288.319,113.936 288.191008,113.808653 C287.936331,113.553306 287.936331,113.140571 288.191008,112.885224 L289.57606,111.500082 L288.191008,110.114939 C287.936331,109.859592 287.936331,109.446204 288.191008,109.19151 C288.446338,108.936163 288.859699,108.936163 289.114376,109.19151 L290.500082,110.576653 L291.885134,109.19151 C292.140464,108.936163 292.553172,108.936163 292.808502,109.19151 C293.063833,109.446204 293.063833,109.859592 292.808502,110.114939 L291.42345,111.500082 L292.808502,112.885224 Z","id","Fill-1","stroke","none","fill-rule","evenodd"),o.vdom.elementClose("svg")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),i=o(r),a=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?s.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&d(t,e)},l=function(e,t){s.vdom.attr(t,e)},u=Object.prototype.hasOwnProperty,d=function(e,t){for(var n in e)u.call(e,n)&&t(e[n],n)},s=n(11),c=n(13),f=o(c),m=n(16),p=o(m);t.default=function(e,t){var n,o=(0,f.default)((n={},(0,i.default)(n,p.default.locals.animationWrapper,!0),(0,i.default)(n,p.default.locals.isRemoving,e.isRemoving),(0,i.default)(n,p.default.locals.isRemoved,e.isRemoved),n)),r=function(t){t.animationName===p.default.locals.removeAnimation&&e.afterAnimation()};return s.vdom.elementOpenStart("div"),d(e,l),s.vdom.attr("className",o),s.vdom.attr("onAnimationend",r),s.vdom.elementOpenEnd("div"),a(t()),s.vdom.elementClose("div")}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.beforeRemove="beforeRemove",t.afterRemove="afterRemove"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.NotRemovableError=void 0;var r=n(27),i=o(r),a=(0,i.default)("NotRemovableError");t.NotRemovableError=a},function(e,t){e.exports=require("create-error")},function(e,t){e.exports={name:"ak-tag",version:"4.0.1",description:"This component displays as a tag with an optional link and/or button to remove the given tag.",main:"dist/bundle.js",webpack:"dist/bundle-cjs.js","ak:webpack:raw":"src/index.js",scripts:{prepublish:"cd ../.. && npm run prepublish/single ak-tag"},files:["dist"],dependencies:{"akutil-common":"^2.0.0","akutil-shared-styles":"^35.0.1","babel-runtime":"^6.11.6",classnames:"^2.2.5","create-error":"^0.3.1",debug:"^2.2.0",skatejs:"^4.0.4"},author:"Atlassian Pty Ltd",license:"Apache-2.0",devDependencies:{"akutil-common-test":"*","akutil-react":"*","custom-event-polyfill":"^0.3.0",keycode:"^2.1.4"},repository:{type:"git",url:"https://bitbucket.org/atlassian/atlaskit"},keywords:["atlaskit","ui"]}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(30),i=o(r),a=n(28);t.default={log:(0,i.default)(a.name+":log"),warn:(0,i.default)(a.name+":warn"),error:(0,i.default)(a.name+":error")}},function(e,t){e.exports=require("debug")}]);

@@ -662,3 +662,3 @@ !function(root, factory) {

name: "ak-tag",
version: "4.0.0",
version: "4.0.1",
description: "This component displays as a tag with an optional link and/or button to remove the given tag.",

@@ -679,3 +679,3 @@ main: "dist/bundle.js",

debug: "^2.2.0",
skatejs: "^3.0.0"
skatejs: "^4.0.4"
},

@@ -685,4 +685,4 @@ author: "Atlassian Pty Ltd",

devDependencies: {
"akutil-common-test": "^4.0.0",
"akutil-react": "^1.0.0",
"akutil-common-test": "*",
"akutil-react": "*",
"custom-event-polyfill": "^0.3.0",

@@ -689,0 +689,0 @@ keycode: "^2.1.4"

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babel-runtime/helpers/defineProperty"),require("babel-runtime/core-js/symbol"),require("skatejs"),require("classnames"),require("akutil-common"),require("create-error"),require("debug")):"function"==typeof define&&define.amd?define(["babel-runtime/helpers/defineProperty","babel-runtime/core-js/symbol","skatejs","classnames","akutil-common","create-error","debug"],t):"object"==typeof exports?exports.akTag=t(require("babel-runtime/helpers/defineProperty"),require("babel-runtime/core-js/symbol"),require("skatejs"),require("classnames"),require("akutil-common"),require("create-error"),require("debug")):e.akTag=t(e["babel-runtime/helpers/defineProperty"],e["babel-runtime/core-js/symbol"],e.skatejs,e.classnames,e["akutil-common"],e["create-error"],e.debug)}(this,function(e,t,n,o,r,i,a){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.exceptions=t.events=void 0;var i,a=n(9),l=r(a),u=n(10),s=r(u),d=Object.prototype.hasOwnProperty,c=function(e,t){for(var n in e)d.call(e,n)&&t(e[n],n)},f=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?m.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&c(t,e)},m=n(11),p=n(12),v=r(p),b=n(18),h=r(b),x=n(21),g=r(x),y=n(22),_=r(y),w=n(24),j=r(w),k=n(25),C=o(k),O=n(26),A=o(O),M=n(28),P=n(29),S=r(P),T=A.NotRemovableError,R=C.beforeRemove,D=C.afterRemove,W=(0,s.default)("buttonHoverSymbol"),Q=(0,s.default)("isRemovingSymbol"),E=(0,s.default)("isRemovedSymbol");t.default=(0,m.define)(M.name,{render:function(e){if(!e.text)return S.default.warn("No text given, not rendering."),null;var t=e.isLinked(),n=e.isRemovable(),o=e[Q],r=e[E],i=n?_.default:function(){return null},a=function(){e[E]=!0,e[Q]=!1,(0,m.emit)(e,D,{bubbles:!0,cancelable:!1,detail:{item:e}})};return m.vdom.elementOpen(g.default),m.vdom.elementOpen(j.default,null,null,"isRemoving",o,"isRemoved",r,"afterAnimation",a),m.vdom.elementOpen(v.default,null,null,"isLinked",t,"isRemovable",n,"markedForRemoval",e[W]),m.vdom.elementOpen(h.default,null,null,"href",e.href),f(e.text),m.vdom.elementClose(h.default),m.vdom.elementVoid(i,null,null,"onHoverStateChange",function(t){return(0,m.props)(e,(0,l.default)({},W,t))},"onActivation",function(){return e.remove()},"text",e["remove-button-text"]),m.vdom.elementClose(v.default),m.vdom.elementClose(j.default),m.vdom.elementClose(g.default)},prototype:{isLinked:function(){return!!this.href},isRemovable:function(){return!!this["remove-button-text"]},remove:function(){if(!this.isRemovable())throw new T("Tag is not removable");(0,m.emit)(this,R,{detail:{item:this}})?(0,m.props)(this,(0,l.default)({},Q,!0)):S.default.log("Cancelled "+R+' event for tag "'+this.text+'"')}},props:(i={text:{attribute:!0},href:{attribute:!0},"remove-button-text":{attribute:!0,default:""}},(0,l.default)(i,W,m.prop.boolean({initial:!1})),(0,l.default)(i,Q,m.prop.boolean({initial:!1})),(0,l.default)(i,E,m.prop.boolean({initial:!1})),i)}),t.events=C,t.exceptions=A},,,,,,,,,function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),i=o(r),a=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?d.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&s(t,e)},l=function(e,t){d.vdom.attr(t,e)},u=Object.prototype.hasOwnProperty,s=function(e,t){for(var n in e)u.call(e,n)&&t(e[n],n)},d=n(11),c=n(13),f=o(c),m=n(14),p=o(m),v=n(16),b=o(v),h=function(e){var t=function(){e.querySelector("a").click()};(0,p.default)(e,t)};t.default=function(e,t){var n,o=(0,f.default)((n={},(0,i.default)(n,b.default.locals.chrome,!0),(0,i.default)(n,b.default.locals.markedForRemoval,e.markedForRemoval),(0,i.default)(n,b.default.locals.isRemovable,e.isRemovable),n)),r={};return e.isLinked&&(r.role="link",r.ref=h),d.vdom.elementOpenStart("span"),s(e,l),s(r,l),d.vdom.attr("tabindex",e.isLinked?0:-1),d.vdom.attr("className",o),d.vdom.attr("onmousedown",function(e){return e.preventDefault()}),d.vdom.elementOpenEnd("span"),a(t()),d.vdom.elementClose("span")}},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handledKeys=void 0;var o=n(15),r=["ENTER","SPACE"];t.default=function(e,t){var n=new o.KeyPressHandler(r[0],t,e);return r.slice(1).forEach(function(e){return n.add(e,t)}),n},t.handledKeys=r},function(e,t){e.exports=r},function(e,t,n){t=e.exports=n(17)(),t.push([e.id,"@-webkit-keyframes _3q1YAuR2O3MJ0-Tp3kHmWm{0%{max-width:212px;-webkit-animation-timing-function:cubic-bezier(.2383005,0,.25586733,.79011192);animation-timing-function:cubic-bezier(.2383005,0,.25586733,.79011192)}20%{max-width:42.39999999999998px;-webkit-animation-timing-function:cubic-bezier(.21787238,.98324005,.58694151,1);animation-timing-function:cubic-bezier(.21787238,.98324005,.58694151,1)}to{max-width:0}}@keyframes _3q1YAuR2O3MJ0-Tp3kHmWm{0%{max-width:212px;-webkit-animation-timing-function:cubic-bezier(.2383005,0,.25586733,.79011192);animation-timing-function:cubic-bezier(.2383005,0,.25586733,.79011192)}20%{max-width:42.39999999999998px;-webkit-animation-timing-function:cubic-bezier(.21787238,.98324005,.58694151,1);animation-timing-function:cubic-bezier(.21787238,.98324005,.58694151,1)}to{max-width:0}}.D53ASQLjrmbD1viT-Q04g,ak-tag{display:inline-block}.D53ASQLjrmbD1viT-Q04g:not([defined]),ak-tag:not([defined]){display:none}:host{display:inline-block}:host(:not([defined])){display:none}._7IYACsh-1PT1-xgT97GWi{background-color:#f4f5f7;border-radius:3px;cursor:default;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;line-height:1;margin:6px;padding:0}._7IYACsh-1PT1-xgT97GWi:focus{outline:none;box-shadow:0 0 0 2px #4c9aff}._7IYACsh-1PT1-xgT97GWi:hover{box-shadow:none;background-color:#ebecf0}._7IYACsh-1PT1-xgT97GWi:hover ._2Qep03_yqM2CZAcLCDAX1B:focus{outline:none;box-shadow:0 0 0 2px #4c9aff}._7IYACsh-1PT1-xgT97GWi._1NnPG-mbxhdPkYFMvMiayA{background-color:#ffebe6}._7IYACsh-1PT1-xgT97GWi._1NnPG-mbxhdPkYFMvMiayA ._3FqaXhU7IjDv0ACWXaypM5,._7IYACsh-1PT1-xgT97GWi._1NnPG-mbxhdPkYFMvMiayA .HEID2GNI4SnFwfs-G_J3k{color:#bf2600}._7IYACsh-1PT1-xgT97GWi:focus ._3FqaXhU7IjDv0ACWXaypM5{color:#0052cc}._7IYACsh-1PT1-xgT97GWi._1QMC9OZNNV2tQSL2f0A8pW ._3FqaXhU7IjDv0ACWXaypM5,._7IYACsh-1PT1-xgT97GWi._1QMC9OZNNV2tQSL2f0A8pW .HEID2GNI4SnFwfs-G_J3k{max-width:179px}.nzhCKgQHVUQCanbyM7Er0{box-sizing:border-box}.nzhCKgQHVUQCanbyM7Er0._5LtmhufycwS77O81cYTl-{-webkit-animation:_3q1YAuR2O3MJ0-Tp3kHmWm .25s forwards;animation:_3q1YAuR2O3MJ0-Tp3kHmWm .25s forwards;will-change:width}.nzhCKgQHVUQCanbyM7Er0._5LtmhufycwS77O81cYTl- ._7IYACsh-1PT1-xgT97GWi{overflow:hidden}.nzhCKgQHVUQCanbyM7Er0._3xBDS89gQ7p6BmExiaXngV{width:0;visibility:hidden}.nzhCKgQHVUQCanbyM7Er0._3xBDS89gQ7p6BmExiaXngV ._7IYACsh-1PT1-xgT97GWi{overflow:hidden}.HEID2GNI4SnFwfs-G_J3k{color:#253858;font-size:14px;font-weight:400;line-height:1;margin-left:4px;margin-right:4px;padding:2px 0;max-width:192px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._3FqaXhU7IjDv0ACWXaypM5{color:#253858;font-size:14px;font-weight:400;line-height:1;margin-left:4px;margin-right:4px;padding:2px 0;max-width:192px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none}._3FqaXhU7IjDv0ACWXaypM5:hover{color:#0052cc}._2Qep03_yqM2CZAcLCDAX1B{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;border-radius:3px;color:#42526e;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;width:13px}._2Qep03_yqM2CZAcLCDAX1B:focus{outline:none;box-shadow:0 0 0 2px #ff5630}._2Qep03_yqM2CZAcLCDAX1B:hover{color:#bf2600}",""]),t.locals={"ak-tag":"D53ASQLjrmbD1viT-Q04g",akTag:"D53ASQLjrmbD1viT-Q04g",chrome:"_7IYACsh-1PT1-xgT97GWi",chrome:"_7IYACsh-1PT1-xgT97GWi",button:"_2Qep03_yqM2CZAcLCDAX1B",button:"_2Qep03_yqM2CZAcLCDAX1B",markedForRemoval:"_1NnPG-mbxhdPkYFMvMiayA",markedForRemoval:"_1NnPG-mbxhdPkYFMvMiayA",href:"_3FqaXhU7IjDv0ACWXaypM5",href:"_3FqaXhU7IjDv0ACWXaypM5",text:"HEID2GNI4SnFwfs-G_J3k",text:"HEID2GNI4SnFwfs-G_J3k",isRemovable:"_1QMC9OZNNV2tQSL2f0A8pW",isRemovable:"_1QMC9OZNNV2tQSL2f0A8pW",animationWrapper:"nzhCKgQHVUQCanbyM7Er0",animationWrapper:"nzhCKgQHVUQCanbyM7Er0",isRemoving:"_5LtmhufycwS77O81cYTl-",isRemoving:"_5LtmhufycwS77O81cYTl-",removeAnimation:"_3q1YAuR2O3MJ0-Tp3kHmWm",removeAnimation:"_3q1YAuR2O3MJ0-Tp3kHmWm",isRemoved:"_3xBDS89gQ7p6BmExiaXngV",isRemoved:"_3xBDS89gQ7p6BmExiaXngV"}},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 o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.prototype.hasOwnProperty,i=function(e,t){for(var n in e)r.call(e,n)&&t(e[n],n)},a=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?l.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&i(t,e)},l=n(11),u=n(19),s=o(u),d=n(20),c=o(d);t.default=function(e,t){var n=e.href?c.default:s.default;return l.vdom.elementOpen(n,null,null,"href",e.href),a(t()),l.vdom.elementClose(n)}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?u.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&l(t,e)},i=function(e,t){u.vdom.attr(t,e)},a=Object.prototype.hasOwnProperty,l=function(e,t){for(var n in e)a.call(e,n)&&t(e[n],n)},u=n(11),s=n(16),d=o(s);t.default=function(e,t){return u.vdom.elementOpenStart("span"),l(e,i),u.vdom.attr("className",d.default.locals.text),u.vdom.elementOpenEnd("span"),r(t()),u.vdom.elementClose("span")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?u.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&l(t,e)},i=function(e,t){u.vdom.attr(t,e)},a=Object.prototype.hasOwnProperty,l=function(e,t){for(var n in e)a.call(e,n)&&t(e[n],n)},u=n(11),s=n(16),d=o(s);t.default=function(e,t){return u.vdom.elementOpenStart("a"),l(e,i),u.vdom.attr("className",d.default.locals.href),u.vdom.attr("href",e.href),u.vdom.attr("tabindex","-1"),u.vdom.elementOpenEnd("a"),r(t()),u.vdom.elementClose("a")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){u.vdom.attr(t,e)},i=Object.prototype.hasOwnProperty,a=function(e,t){for(var n in e)i.call(e,n)&&t(e[n],n)},l=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?u.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&a(t,e)},u=n(11),s=n(16),d=o(s);t.default=function(e,t){return u.vdom.elementOpenStart("div"),a(e,r),u.vdom.elementOpenEnd("div"),u.vdom.elementOpen("style"),l(d.default.toString()),u.vdom.elementClose("style"),l(t()),u.vdom.elementClose("div")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){l.vdom.attr(t,e)},i=Object.prototype.hasOwnProperty,a=function(e,t){for(var n in e)i.call(e,n)&&t(e[n],n)},l=n(11),u=n(14),s=o(u),d=n(16),c=o(d),f=n(23),m=o(f);t.default=function(e){var t=function(t){t.stopPropagation(),t.preventDefault(),e.onActivation()};return l.vdom.elementOpenStart("button"),a(e,r),l.vdom.attr("className",c.default.locals.button),l.vdom.attr("aria-label",e.text),l.vdom.attr("onmousedown",function(e){return e.preventDefault()}),l.vdom.attr("onmouseover",function(){return e.onHoverStateChange(!0)}),l.vdom.attr("onmouseout",function(){return e.onHoverStateChange(!1)}),l.vdom.attr("ref",function(e){return(0,s.default)(e,t)}),l.vdom.attr("onclick",t),l.vdom.elementOpenEnd("button"),l.vdom.elementVoid(m.default),l.vdom.elementClose("button")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(11);t.default=function(){return o.vdom.elementOpen("svg",null,null,"width","5px","height","5px","viewBox","288 109 5 5","version","1.1","xmlns","http://www.w3.org/2000/svg","xmlnsXlink","http://www.w3.org/1999/xlink"),o.vdom.elementOpen("desc"),o.vdom.text("Created with Sketch."),o.vdom.elementClose("desc"),o.vdom.elementVoid("defs"),o.vdom.elementVoid("path",null,null,"fill","currentColor","d","M292.808502,112.885224 C293.063833,113.140571 293.063833,113.553306 292.808502,113.808653 C292.681164,113.936 292.513991,114 292.346818,114 C292.179645,114 292.012473,113.936 291.885134,113.808653 L290.500082,112.42351 L289.114376,113.808653 C288.987038,113.936 288.819865,114 288.652692,114 C288.485519,114 288.319,113.936 288.191008,113.808653 C287.936331,113.553306 287.936331,113.140571 288.191008,112.885224 L289.57606,111.500082 L288.191008,110.114939 C287.936331,109.859592 287.936331,109.446204 288.191008,109.19151 C288.446338,108.936163 288.859699,108.936163 289.114376,109.19151 L290.500082,110.576653 L291.885134,109.19151 C292.140464,108.936163 292.553172,108.936163 292.808502,109.19151 C293.063833,109.446204 293.063833,109.859592 292.808502,110.114939 L291.42345,111.500082 L292.808502,112.885224 Z","id","Fill-1","stroke","none","fill-rule","evenodd"),o.vdom.elementClose("svg")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),i=o(r),a=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?d.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&s(t,e)},l=function(e,t){d.vdom.attr(t,e)},u=Object.prototype.hasOwnProperty,s=function(e,t){for(var n in e)u.call(e,n)&&t(e[n],n)},d=n(11),c=n(13),f=o(c),m=n(16),p=o(m);t.default=function(e,t){var n,o=(0,f.default)((n={},(0,i.default)(n,p.default.locals.animationWrapper,!0),(0,i.default)(n,p.default.locals.isRemoving,e.isRemoving),(0,i.default)(n,p.default.locals.isRemoved,e.isRemoved),n)),r=function(t){t.animationName===p.default.locals.removeAnimation&&e.afterAnimation()};return d.vdom.elementOpenStart("div"),s(e,l),d.vdom.attr("className",o),d.vdom.attr("onAnimationend",r),d.vdom.elementOpenEnd("div"),a(t()),d.vdom.elementClose("div")}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.beforeRemove="beforeRemove",t.afterRemove="afterRemove"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.NotRemovableError=void 0;var r=n(27),i=o(r),a=(0,i.default)("NotRemovableError");t.NotRemovableError=a},function(e,t){e.exports=i},function(e,t){e.exports={name:"ak-tag",version:"4.0.0",description:"This component displays as a tag with an optional link and/or button to remove the given tag.",main:"dist/bundle.js",webpack:"dist/bundle-cjs.js","ak:webpack:raw":"src/index.js",scripts:{prepublish:"cd ../.. && npm run prepublish/single ak-tag"},files:["dist"],dependencies:{"akutil-common":"^2.0.0","akutil-shared-styles":"^35.0.1","babel-runtime":"^6.11.6",classnames:"^2.2.5","create-error":"^0.3.1",debug:"^2.2.0",skatejs:"^3.0.0"},author:"Atlassian Pty Ltd",license:"Apache-2.0",devDependencies:{"akutil-common-test":"^4.0.0","akutil-react":"^1.0.0","custom-event-polyfill":"^0.3.0",keycode:"^2.1.4"},repository:{type:"git",url:"https://bitbucket.org/atlassian/atlaskit"},keywords:["atlaskit","ui"]}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(30),i=o(r),a=n(28);t.default={log:(0,i.default)(a.name+":log"),warn:(0,i.default)(a.name+":warn"),error:(0,i.default)(a.name+":error")}},function(e,t){e.exports=a}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babel-runtime/helpers/defineProperty"),require("babel-runtime/core-js/symbol"),require("skatejs"),require("classnames"),require("akutil-common"),require("create-error"),require("debug")):"function"==typeof define&&define.amd?define(["babel-runtime/helpers/defineProperty","babel-runtime/core-js/symbol","skatejs","classnames","akutil-common","create-error","debug"],t):"object"==typeof exports?exports.akTag=t(require("babel-runtime/helpers/defineProperty"),require("babel-runtime/core-js/symbol"),require("skatejs"),require("classnames"),require("akutil-common"),require("create-error"),require("debug")):e.akTag=t(e["babel-runtime/helpers/defineProperty"],e["babel-runtime/core-js/symbol"],e.skatejs,e.classnames,e["akutil-common"],e["create-error"],e.debug)}(this,function(e,t,n,o,r,i,a){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.exceptions=t.events=void 0;var i,a=n(9),l=r(a),u=n(10),s=r(u),d=Object.prototype.hasOwnProperty,c=function(e,t){for(var n in e)d.call(e,n)&&t(e[n],n)},f=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?m.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&c(t,e)},m=n(11),p=n(12),v=r(p),b=n(18),h=r(b),x=n(21),g=r(x),y=n(22),_=r(y),w=n(24),j=r(w),k=n(25),C=o(k),O=n(26),A=o(O),M=n(28),P=n(29),S=r(P),T=A.NotRemovableError,R=C.beforeRemove,D=C.afterRemove,W=(0,s.default)("buttonHoverSymbol"),Q=(0,s.default)("isRemovingSymbol"),E=(0,s.default)("isRemovedSymbol");t.default=(0,m.define)(M.name,{render:function(e){if(!e.text)return S.default.warn("No text given, not rendering."),null;var t=e.isLinked(),n=e.isRemovable(),o=e[Q],r=e[E],i=n?_.default:function(){return null},a=function(){e[E]=!0,e[Q]=!1,(0,m.emit)(e,D,{bubbles:!0,cancelable:!1,detail:{item:e}})};return m.vdom.elementOpen(g.default),m.vdom.elementOpen(j.default,null,null,"isRemoving",o,"isRemoved",r,"afterAnimation",a),m.vdom.elementOpen(v.default,null,null,"isLinked",t,"isRemovable",n,"markedForRemoval",e[W]),m.vdom.elementOpen(h.default,null,null,"href",e.href),f(e.text),m.vdom.elementClose(h.default),m.vdom.elementVoid(i,null,null,"onHoverStateChange",function(t){return(0,m.props)(e,(0,l.default)({},W,t))},"onActivation",function(){return e.remove()},"text",e["remove-button-text"]),m.vdom.elementClose(v.default),m.vdom.elementClose(j.default),m.vdom.elementClose(g.default)},prototype:{isLinked:function(){return!!this.href},isRemovable:function(){return!!this["remove-button-text"]},remove:function(){if(!this.isRemovable())throw new T("Tag is not removable");(0,m.emit)(this,R,{detail:{item:this}})?(0,m.props)(this,(0,l.default)({},Q,!0)):S.default.log("Cancelled "+R+' event for tag "'+this.text+'"')}},props:(i={text:{attribute:!0},href:{attribute:!0},"remove-button-text":{attribute:!0,default:""}},(0,l.default)(i,W,m.prop.boolean({initial:!1})),(0,l.default)(i,Q,m.prop.boolean({initial:!1})),(0,l.default)(i,E,m.prop.boolean({initial:!1})),i)}),t.events=C,t.exceptions=A},,,,,,,,,function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),i=o(r),a=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?d.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&s(t,e)},l=function(e,t){d.vdom.attr(t,e)},u=Object.prototype.hasOwnProperty,s=function(e,t){for(var n in e)u.call(e,n)&&t(e[n],n)},d=n(11),c=n(13),f=o(c),m=n(14),p=o(m),v=n(16),b=o(v),h=function(e){var t=function(){e.querySelector("a").click()};(0,p.default)(e,t)};t.default=function(e,t){var n,o=(0,f.default)((n={},(0,i.default)(n,b.default.locals.chrome,!0),(0,i.default)(n,b.default.locals.markedForRemoval,e.markedForRemoval),(0,i.default)(n,b.default.locals.isRemovable,e.isRemovable),n)),r={};return e.isLinked&&(r.role="link",r.ref=h),d.vdom.elementOpenStart("span"),s(e,l),s(r,l),d.vdom.attr("tabindex",e.isLinked?0:-1),d.vdom.attr("className",o),d.vdom.attr("onmousedown",function(e){return e.preventDefault()}),d.vdom.elementOpenEnd("span"),a(t()),d.vdom.elementClose("span")}},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handledKeys=void 0;var o=n(15),r=["ENTER","SPACE"];t.default=function(e,t){var n=new o.KeyPressHandler(r[0],t,e);return r.slice(1).forEach(function(e){return n.add(e,t)}),n},t.handledKeys=r},function(e,t){e.exports=r},function(e,t,n){t=e.exports=n(17)(),t.push([e.id,"@-webkit-keyframes _3q1YAuR2O3MJ0-Tp3kHmWm{0%{max-width:212px;-webkit-animation-timing-function:cubic-bezier(.2383005,0,.25586733,.79011192);animation-timing-function:cubic-bezier(.2383005,0,.25586733,.79011192)}20%{max-width:42.39999999999998px;-webkit-animation-timing-function:cubic-bezier(.21787238,.98324005,.58694151,1);animation-timing-function:cubic-bezier(.21787238,.98324005,.58694151,1)}to{max-width:0}}@keyframes _3q1YAuR2O3MJ0-Tp3kHmWm{0%{max-width:212px;-webkit-animation-timing-function:cubic-bezier(.2383005,0,.25586733,.79011192);animation-timing-function:cubic-bezier(.2383005,0,.25586733,.79011192)}20%{max-width:42.39999999999998px;-webkit-animation-timing-function:cubic-bezier(.21787238,.98324005,.58694151,1);animation-timing-function:cubic-bezier(.21787238,.98324005,.58694151,1)}to{max-width:0}}.D53ASQLjrmbD1viT-Q04g,ak-tag{display:inline-block}.D53ASQLjrmbD1viT-Q04g:not([defined]),ak-tag:not([defined]){display:none}:host{display:inline-block}:host(:not([defined])){display:none}._7IYACsh-1PT1-xgT97GWi{background-color:#f4f5f7;border-radius:3px;cursor:default;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;line-height:1;margin:6px;padding:0}._7IYACsh-1PT1-xgT97GWi:focus{outline:none;box-shadow:0 0 0 2px #4c9aff}._7IYACsh-1PT1-xgT97GWi:hover{box-shadow:none;background-color:#ebecf0}._7IYACsh-1PT1-xgT97GWi:hover ._2Qep03_yqM2CZAcLCDAX1B:focus{outline:none;box-shadow:0 0 0 2px #4c9aff}._7IYACsh-1PT1-xgT97GWi._1NnPG-mbxhdPkYFMvMiayA{background-color:#ffebe6}._7IYACsh-1PT1-xgT97GWi._1NnPG-mbxhdPkYFMvMiayA ._3FqaXhU7IjDv0ACWXaypM5,._7IYACsh-1PT1-xgT97GWi._1NnPG-mbxhdPkYFMvMiayA .HEID2GNI4SnFwfs-G_J3k{color:#bf2600}._7IYACsh-1PT1-xgT97GWi:focus ._3FqaXhU7IjDv0ACWXaypM5{color:#0052cc}._7IYACsh-1PT1-xgT97GWi._1QMC9OZNNV2tQSL2f0A8pW ._3FqaXhU7IjDv0ACWXaypM5,._7IYACsh-1PT1-xgT97GWi._1QMC9OZNNV2tQSL2f0A8pW .HEID2GNI4SnFwfs-G_J3k{max-width:179px}.nzhCKgQHVUQCanbyM7Er0{box-sizing:border-box}.nzhCKgQHVUQCanbyM7Er0._5LtmhufycwS77O81cYTl-{-webkit-animation:_3q1YAuR2O3MJ0-Tp3kHmWm .25s forwards;animation:_3q1YAuR2O3MJ0-Tp3kHmWm .25s forwards;will-change:width}.nzhCKgQHVUQCanbyM7Er0._5LtmhufycwS77O81cYTl- ._7IYACsh-1PT1-xgT97GWi{overflow:hidden}.nzhCKgQHVUQCanbyM7Er0._3xBDS89gQ7p6BmExiaXngV{width:0;visibility:hidden}.nzhCKgQHVUQCanbyM7Er0._3xBDS89gQ7p6BmExiaXngV ._7IYACsh-1PT1-xgT97GWi{overflow:hidden}.HEID2GNI4SnFwfs-G_J3k{color:#253858;font-size:14px;font-weight:400;line-height:1;margin-left:4px;margin-right:4px;padding:2px 0;max-width:192px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._3FqaXhU7IjDv0ACWXaypM5{color:#253858;font-size:14px;font-weight:400;line-height:1;margin-left:4px;margin-right:4px;padding:2px 0;max-width:192px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none}._3FqaXhU7IjDv0ACWXaypM5:hover{color:#0052cc}._2Qep03_yqM2CZAcLCDAX1B{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;border-radius:3px;color:#42526e;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;width:13px}._2Qep03_yqM2CZAcLCDAX1B:focus{outline:none;box-shadow:0 0 0 2px #ff5630}._2Qep03_yqM2CZAcLCDAX1B:hover{color:#bf2600}",""]),t.locals={"ak-tag":"D53ASQLjrmbD1viT-Q04g",akTag:"D53ASQLjrmbD1viT-Q04g",chrome:"_7IYACsh-1PT1-xgT97GWi",chrome:"_7IYACsh-1PT1-xgT97GWi",button:"_2Qep03_yqM2CZAcLCDAX1B",button:"_2Qep03_yqM2CZAcLCDAX1B",markedForRemoval:"_1NnPG-mbxhdPkYFMvMiayA",markedForRemoval:"_1NnPG-mbxhdPkYFMvMiayA",href:"_3FqaXhU7IjDv0ACWXaypM5",href:"_3FqaXhU7IjDv0ACWXaypM5",text:"HEID2GNI4SnFwfs-G_J3k",text:"HEID2GNI4SnFwfs-G_J3k",isRemovable:"_1QMC9OZNNV2tQSL2f0A8pW",isRemovable:"_1QMC9OZNNV2tQSL2f0A8pW",animationWrapper:"nzhCKgQHVUQCanbyM7Er0",animationWrapper:"nzhCKgQHVUQCanbyM7Er0",isRemoving:"_5LtmhufycwS77O81cYTl-",isRemoving:"_5LtmhufycwS77O81cYTl-",removeAnimation:"_3q1YAuR2O3MJ0-Tp3kHmWm",removeAnimation:"_3q1YAuR2O3MJ0-Tp3kHmWm",isRemoved:"_3xBDS89gQ7p6BmExiaXngV",isRemoved:"_3xBDS89gQ7p6BmExiaXngV"}},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 o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.prototype.hasOwnProperty,i=function(e,t){for(var n in e)r.call(e,n)&&t(e[n],n)},a=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?l.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&i(t,e)},l=n(11),u=n(19),s=o(u),d=n(20),c=o(d);t.default=function(e,t){var n=e.href?c.default:s.default;return l.vdom.elementOpen(n,null,null,"href",e.href),a(t()),l.vdom.elementClose(n)}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?u.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&l(t,e)},i=function(e,t){u.vdom.attr(t,e)},a=Object.prototype.hasOwnProperty,l=function(e,t){for(var n in e)a.call(e,n)&&t(e[n],n)},u=n(11),s=n(16),d=o(s);t.default=function(e,t){return u.vdom.elementOpenStart("span"),l(e,i),u.vdom.attr("className",d.default.locals.text),u.vdom.elementOpenEnd("span"),r(t()),u.vdom.elementClose("span")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?u.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&l(t,e)},i=function(e,t){u.vdom.attr(t,e)},a=Object.prototype.hasOwnProperty,l=function(e,t){for(var n in e)a.call(e,n)&&t(e[n],n)},u=n(11),s=n(16),d=o(s);t.default=function(e,t){return u.vdom.elementOpenStart("a"),l(e,i),u.vdom.attr("className",d.default.locals.href),u.vdom.attr("href",e.href),u.vdom.attr("tabindex","-1"),u.vdom.elementOpenEnd("a"),r(t()),u.vdom.elementClose("a")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){u.vdom.attr(t,e)},i=Object.prototype.hasOwnProperty,a=function(e,t){for(var n in e)i.call(e,n)&&t(e[n],n)},l=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?u.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&a(t,e)},u=n(11),s=n(16),d=o(s);t.default=function(e,t){return u.vdom.elementOpenStart("div"),a(e,r),u.vdom.elementOpenEnd("div"),u.vdom.elementOpen("style"),l(d.default.toString()),u.vdom.elementClose("style"),l(t()),u.vdom.elementClose("div")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){l.vdom.attr(t,e)},i=Object.prototype.hasOwnProperty,a=function(e,t){for(var n in e)i.call(e,n)&&t(e[n],n)},l=n(11),u=n(14),s=o(u),d=n(16),c=o(d),f=n(23),m=o(f);t.default=function(e){var t=function(t){t.stopPropagation(),t.preventDefault(),e.onActivation()};return l.vdom.elementOpenStart("button"),a(e,r),l.vdom.attr("className",c.default.locals.button),l.vdom.attr("aria-label",e.text),l.vdom.attr("onmousedown",function(e){return e.preventDefault()}),l.vdom.attr("onmouseover",function(){return e.onHoverStateChange(!0)}),l.vdom.attr("onmouseout",function(){return e.onHoverStateChange(!1)}),l.vdom.attr("ref",function(e){return(0,s.default)(e,t)}),l.vdom.attr("onclick",t),l.vdom.elementOpenEnd("button"),l.vdom.elementVoid(m.default),l.vdom.elementClose("button")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(11);t.default=function(){return o.vdom.elementOpen("svg",null,null,"width","5px","height","5px","viewBox","288 109 5 5","version","1.1","xmlns","http://www.w3.org/2000/svg","xmlnsXlink","http://www.w3.org/1999/xlink"),o.vdom.elementOpen("desc"),o.vdom.text("Created with Sketch."),o.vdom.elementClose("desc"),o.vdom.elementVoid("defs"),o.vdom.elementVoid("path",null,null,"fill","currentColor","d","M292.808502,112.885224 C293.063833,113.140571 293.063833,113.553306 292.808502,113.808653 C292.681164,113.936 292.513991,114 292.346818,114 C292.179645,114 292.012473,113.936 291.885134,113.808653 L290.500082,112.42351 L289.114376,113.808653 C288.987038,113.936 288.819865,114 288.652692,114 C288.485519,114 288.319,113.936 288.191008,113.808653 C287.936331,113.553306 287.936331,113.140571 288.191008,112.885224 L289.57606,111.500082 L288.191008,110.114939 C287.936331,109.859592 287.936331,109.446204 288.191008,109.19151 C288.446338,108.936163 288.859699,108.936163 289.114376,109.19151 L290.500082,110.576653 L291.885134,109.19151 C292.140464,108.936163 292.553172,108.936163 292.808502,109.19151 C293.063833,109.446204 293.063833,109.859592 292.808502,110.114939 L291.42345,111.500082 L292.808502,112.885224 Z","id","Fill-1","stroke","none","fill-rule","evenodd"),o.vdom.elementClose("svg")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),i=o(r),a=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?d.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&s(t,e)},l=function(e,t){d.vdom.attr(t,e)},u=Object.prototype.hasOwnProperty,s=function(e,t){for(var n in e)u.call(e,n)&&t(e[n],n)},d=n(11),c=n(13),f=o(c),m=n(16),p=o(m);t.default=function(e,t){var n,o=(0,f.default)((n={},(0,i.default)(n,p.default.locals.animationWrapper,!0),(0,i.default)(n,p.default.locals.isRemoving,e.isRemoving),(0,i.default)(n,p.default.locals.isRemoved,e.isRemoved),n)),r=function(t){t.animationName===p.default.locals.removeAnimation&&e.afterAnimation()};return d.vdom.elementOpenStart("div"),s(e,l),d.vdom.attr("className",o),d.vdom.attr("onAnimationend",r),d.vdom.elementOpenEnd("div"),a(t()),d.vdom.elementClose("div")}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.beforeRemove="beforeRemove",t.afterRemove="afterRemove"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.NotRemovableError=void 0;var r=n(27),i=o(r),a=(0,i.default)("NotRemovableError");t.NotRemovableError=a},function(e,t){e.exports=i},function(e,t){e.exports={name:"ak-tag",version:"4.0.1",description:"This component displays as a tag with an optional link and/or button to remove the given tag.",main:"dist/bundle.js",webpack:"dist/bundle-cjs.js","ak:webpack:raw":"src/index.js",scripts:{prepublish:"cd ../.. && npm run prepublish/single ak-tag"},files:["dist"],dependencies:{"akutil-common":"^2.0.0","akutil-shared-styles":"^35.0.1","babel-runtime":"^6.11.6",classnames:"^2.2.5","create-error":"^0.3.1",debug:"^2.2.0",skatejs:"^4.0.4"},author:"Atlassian Pty Ltd",license:"Apache-2.0",devDependencies:{"akutil-common-test":"*","akutil-react":"*","custom-event-polyfill":"^0.3.0",keycode:"^2.1.4"},repository:{type:"git",url:"https://bitbucket.org/atlassian/atlaskit"},keywords:["atlaskit","ui"]}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(30),i=o(r),a=n(28);t.default={log:(0,i.default)(a.name+":log"),warn:(0,i.default)(a.name+":warn"),error:(0,i.default)(a.name+":error")}},function(e,t){e.exports=a}])});
{
"name": "ak-tag",
"version": "4.0.0",
"version": "4.0.1",
"description": "This component displays as a tag with an optional link and/or button to remove the given tag.",

@@ -21,3 +21,3 @@ "main": "dist/bundle.js",

"debug": "^2.2.0",
"skatejs": "^3.0.0"
"skatejs": "^4.0.4"
},

@@ -27,4 +27,4 @@ "author": "Atlassian Pty Ltd",

"devDependencies": {
"akutil-common-test": "^4.0.0",
"akutil-react": "^1.0.0",
"akutil-common-test": "*",
"akutil-react": "*",
"custom-event-polyfill": "^0.3.0",

@@ -31,0 +31,0 @@ "keycode": "^2.1.4"

@@ -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-tag,ak-tag@4.0.0)
[![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-tag,ak-tag@4.0.1)

@@ -13,3 +13,3 @@ # Tag

![Example tags](https://bytebucket.org/atlassian/atlaskit/raw/0c71e02fa7e610b09c503da9275ab9e8b5a6bec1/packages/ak-tag/docs/overview.png)
![Example tags](https://bytebucket.org/atlassian/atlaskit/raw/ed5439486455e831d76f4501bf17ef97a612fbfe/packages/ak-tag/docs/overview.png)

@@ -21,3 +21,3 @@ Although the `ak-tag` component can be used by itself, it works best in conjunction with the

Interact with a [live demo of the ak-tag component](https://aui-cdn.atlassian.com/atlaskit/stories/ak-tag/4.0.0/).
Interact with a [live demo of the ak-tag component](https://aui-cdn.atlassian.com/atlaskit/stories/ak-tag/4.0.1/).

@@ -351,3 +351,3 @@

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

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