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

ak-button

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ak-button - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

14

CHANGELOG.md

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

<a name="1.7.0"></a>
# 1.7.0 (2016-11-02)
<a name="1.7.1"></a>
## 1.7.1 (2016-11-03)
<a name="ak-button@1.7.1"></a>
## ak-button@1.7.1 (2016-11-03)
### Bug Fixes
* **component:** fix font-weight ([89d44d4](https://bitbucket.org/atlassian/atlaskit/commits/89d44d4))
<a name="ak-button@1.7.0"></a>

@@ -7,0 +17,0 @@ # ak-button@1.7.0 (2016-11-02)

4

dist/bundle-cjs.js

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

"border-color": val("primary.borderColor"),
"font-weight": 600,
"font-weight": val("primary.fontWeight", "normal"),
"&:hover": {

@@ -534,3 +534,3 @@ background: val("primary.hover.background", _akutilSharedStyles.akColorB500),

_skatejs.vdom.elementVoid(_akTheme.Prop, null, null, "name", "primary.color", "value", "#fff"),
_skatejs.vdom.elementVoid(_akTheme.Prop, null, null, "name", "primary.fontWeight", "value", "700"),
_skatejs.vdom.elementVoid(_akTheme.Prop, null, null, "name", "primary.fontWeight", "value", "bold"),
_skatejs.vdom.elementVoid(_akTheme.Prop, null, null, "name", "primary.hover.background", "value", "#2a67a5"),

@@ -537,0 +537,0 @@ _skatejs.vdom.elementVoid(_akTheme.Prop, null, null, "name", "primary.hover.borderColor", "value", "transparent"),

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

module.exports=function(e){function o(l){if(n[l])return n[l].exports;var t=n[l]={exports:{},id:l,loaded:!1};return e[l].call(t.exports,t,t.exports,o),t.loaded=!0,t.exports}var n={};return o.m=e,o.c=n,o.p="",o(0)}([function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0}),o.themes=o.TYPE=o.APPEARANCE=void 0;var t=function(e,o){d.vdom.attr(o,e)},r=Object.prototype.hasOwnProperty,a=function(e,o){for(var n in e)r.call(e,n)&&o(e[n],n)},d=n(1),u=n(2),i=n(3),s=n(4),m=n(5),c=l(m),p=n(6),b=l(p),v=n(10),f=l(v),g=n(14),h=l(g),k=s.appearance.values,y=s.type.values;o.APPEARANCE=k,o.TYPE=y;var x=(o.themes={adg2:h["default"]},{props:{appearance:s.appearance.enumeration,type:s.type.enumeration,href:d.prop.string({attribute:!0}),target:d.prop.string({attribute:!0}),disabled:d.prop["boolean"]({attribute:!0}),compact:d.prop["boolean"]({attribute:!0}),selected:d.prop["boolean"]({attribute:!0})},render:function(e){var o=(0,i.style)(d.vdom,(0,f["default"])(e.themeProps));return d.vdom.elementOpenStart(b["default"]),a((0,d.props)(e),t),d.vdom.attr("styles",o),d.vdom.elementOpenEnd(b["default"]),d.vdom.elementVoid(c["default"],null,null,"styles",o,"name","before"),d.vdom.elementVoid(c["default"],null,null,"styles",o),d.vdom.elementVoid(c["default"],null,null,"styles",o,"name","after"),d.vdom.elementClose(b["default"])}}),P=(0,d.define)("ak-button",(0,u.themeable)(x));o["default"]=P},function(e,o){e.exports=require("skatejs")},function(e,o){e.exports=require("ak-theme")},function(e,o){e.exports=require("akutil-common")},function(e,o,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.type=o.appearance=void 0;var l=n(3),t=function(e){return e.reduce(function(e,o){return e[o.toUpperCase()]=o,e},{})},r=["primary","standard","subtle","link"],a=["button","submit"],d=t(r),u=t(a),i={attribute:"appearance",values:r,invalidDefault:d.STANDARD},s={attribute:"type",values:a,missingDefault:"button",invalidDefault:"button"};o.appearance={enumeration:(0,l.enumeration)(i)({attribute:!0}),values:d},o.type={enumeration:(0,l.enumeration)(s)({attribute:!0}),values:u}},function(e,o,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var l=n(1),t=function(e){return e||"default"};o["default"]=function(e){var o=e.name,n=e.styles;return l.vdom.elementOpen("span",null,null,"className",n[t(o)+"-slot-wrapper"]),l.vdom.elementVoid("slot",null,null,"name",o,"className",n[t(o)+"-slot"]),l.vdom.elementClose("span")}},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=function b(e){var o=typeof e;"number"===o||"string"===o||"object"===o&&e instanceof String?u.vdom.text(e):"function"===o&&e.__jsxDOMWrapper?e():Array.isArray(e)?e.forEach(b):"object"===o&&"[object Object]"===String(e)&&d(e,b)},r=function(e,o){u.vdom.attr(o,e)},a=Object.prototype.hasOwnProperty,d=function(e,o){for(var n in e)a.call(e,n)&&o(e[n],n)},u=n(1),i=n(7),s=l(i),m=n(8),c=l(m),p=function(e,o){var n={className:(0,s["default"])((0,c["default"])(e.styles,e)),disabled:e.disabled,onmousedown:function(e){return e.preventDefault()}};return e.href?e.disabled?(u.vdom.elementOpenStart("span"),d(n,r),u.vdom.elementOpenEnd("span"),t(o()),u.vdom.elementClose("span")):(u.vdom.elementOpenStart("a"),u.vdom.attr("href",e.href),u.vdom.attr("target",e.target),d(n,r),u.vdom.elementOpenEnd("a"),t(o()),u.vdom.elementClose("a")):(u.vdom.elementOpenStart("button"),u.vdom.attr("type",e.type),d(n,r),u.vdom.elementOpenEnd("button"),t(o()),u.vdom.elementClose("button"))};o["default"]=function(e,o){return u.vdom.elementOpen("span",null,null,"className",e.styles.root),u.vdom.elementOpenStart(p),d(e,r),u.vdom.elementOpenEnd(p),u.vdom.elementOpen("span",null,null,"className",e.styles["button-content"]),t(o()),u.vdom.elementClose("span"),u.vdom.elementClose(p),u.vdom.elementClose("span")}},function(e,o){e.exports=require("classnames")},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=n(9),r=l(t),a=n(4),d=a.appearance.values,u=d.PRIMARY,i=d.SUBTLE,s=d.LINK;o["default"]=function(e,o){var n;return n={},(0,r["default"])(n,e.button,!0),(0,r["default"])(n,e.compact,o.compact),(0,r["default"])(n,e.disabled,o.disabled),(0,r["default"])(n,e.selected,o.selected&&!o.disabled),(0,r["default"])(n,e.primary,o.appearance===u&&!o.disabled&&!o.selected),(0,r["default"])(n,e.subtle,o.appearance===i&&!o.disabled&&!o.selected),(0,r["default"])(n,e.link,o.appearance===s&&!o.selected),(0,r["default"])(n,e.href,o.href&&!o.disabled),n}},function(e,o){e.exports=require("babel-runtime/helpers/defineProperty")},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=n(11),r=l(t),a=n(12),d=n(13),u="\n background 0.1s\n ease-out,\n box-shadow 0.15s cubic-bezier(0.47, 0.03, 0.49, 1.38)\n";o["default"]=function(e){var o=r["default"].bind(null,e);return{":host":{display:"inline-flex"},":host(> _shadow_root_)":{display:"inline-flex"},":host([disabled])":{"pointer-events":"none"},'::slotted([slot="before"])':{"line-height":"0","margin-right":d.grid+"px"},"::slotted(:not([slot]))":{"line-height":"0"},'::slotted([slot="after"])':{"line-height":"0","margin-left":d.grid+"px"},"before-slot-wrapper":{"align-self":"center",display:"flex"},"default-slot-wrapper":{display:"flex"},"after-slot-wrapper":{"align-self":"center",display:"flex"},"button-content":{"align-items":"baseline",display:"flex","flex-wrap":"nowrap","pointer-events":"none"},"before-slot":{display:"inline-flex"},"after-slot":{display:"inline-flex"},"default-slot":{display:"inline-flex"},root:{display:"inline-block"},button:{"box-sizing":"border-box",background:o("standard.background",a.akColorN20),"border-width":"0","border-radius":o("button.baseRadius",a.akBorderRadius),color:o("standard.color",a.akColorN500),display:"inline-flex","font-style":"normal","font-size":"inherit",height:o("button.height",4*d.grid/d.em+"em"),"line-height":o("button.lineHeight",4*d.grid/d.em+"em"),margin:"0",outline:"none",padding:o("button.padding",.75*d.grid+"px "+1.5*d.grid+"px"),"padding-top":0,"padding-bottom":0,"text-align":"center",transition:o("button.transition",u),"user-select":"none",border:o("button.border","none"),"vertical-align":"middle","align-items":"center","&::-moz-focus-inner":{margin:0,padding:0,border:0},"&:hover":{background:o("standard.hover.background",a.akColorN30),cursor:"pointer","border-color":o("standard.hover.borderColor")},"&:active":{background:o("standard.active.background",a.akColorB50),"box-shadow":o("standard.active.boxShadow"),"transition-duration":o("standard.active.transitionDuration","0s")},"&:focus":{"box-shadow":"0 0 0 2px "+o("standard.focus.background",a.akColorB200),"transition-duration":o("standard.focus.transitionDuration","0s, 0.2s")}},primary:{background:o("primary.background",a.akColorB400),color:o("primary.color",a.akColorN20),"border-color":o("primary.borderColor"),"font-weight":600,"&:hover":{background:o("primary.hover.background",a.akColorB500),"border-color":o("primary.borderColor")},"&:active":{background:o("primary.active.background",a.akColorB300)}},subtle:{background:"none",color:o("subtle.color"),"border-color":o("subtle.borderColor"),"&:hover":{color:o("subtle.hover.color")}},disabled:{color:o("disabled.color",a.akColorN40),"::slotted(*)":{"pointer-events":"none"},cursor:"not-allowed",background:o("disabled.background"),"border-color":o("disabled.borderColor"),"box-shadow":o("disabled.boxShadow")},selected:{background:o("selected.background",a.akColorN700),color:o("selected.color",a.akColorN20),"box-shadow":o("selected.boxShadow"),"&:hover":{background:o("selected.hover.background",a.akColorN700),"border-color":o("selected.hover.borderColor"),transition:"none"}},href:{"text-decoration":"none"},link:{background:"none",color:o("link.color",a.akColorB400),transition:"color 0.1s ease-out","box-shadow":o("link.boxShadow"),"border-color":o("link.borderColor"),"&:hover":{background:"none",color:o("link.hover.color",a.akColorB300),"text-decoration":"underline","border-color":o("link.hover.borderColor")},"&:active":{color:o("link.active.color",a.akColorB300),"box-shadow":o("link.active.boxShadow"),"text-decoration":"none"},"&.disabled":{color:o("disabled.color",a.akColorN40),background:"none"}},compact:{height:o("compact.height",3*d.grid/d.em+"em"),"line-height":o("compact.lineHeight",3*d.grid/d.em+"em")}}}},function(e,o){e.exports=require("lodash.get")},function(e,o){e.exports=require("akutil-shared-styles")},function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.em=14,o.grid=8},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=n(1),r=n(2),a=l(r),d=n(13);o["default"]=(0,t.define)("ak-button-theme-adg2",{render:function(){var e=(4*d.grid-2)/d.em+"em",o=(3*d.grid-2)/d.em+"em";return t.vdom.elementOpen(a["default"],null,null,"id","ak-button-theme-adg2"),t.vdom.elementVoid(r.Prop,null,null,"name","button.border","value","1px solid #ccc"),t.vdom.elementVoid(r.Prop,null,null,"value",e,"name","button.lineHeight"),t.vdom.elementVoid(r.Prop,null,null,"name","button.transition","value","none"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.background","value","#f5f5f5"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.color","value","#333"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.hover.background","value","#e9e9e9"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.hover.borderColor","value","#999"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.active.boxShadow","value","inset 0 3px 6px 0 rgba(0,0,0,.1)"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.active.background","value","#f5f5f5"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.background","value","#3572b0"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.borderColor","value","transparent"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.color","value","#fff"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.fontWeight","value","700"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.hover.background","value","#2a67a5"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.hover.borderColor","value","transparent"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.active.background","value","#3572b0"),t.vdom.elementVoid(r.Prop,null,null,"name","subtle.color","value","#707070"),t.vdom.elementVoid(r.Prop,null,null,"name","subtle.borderColor","value","transparent"),t.vdom.elementVoid(r.Prop,null,null,"name","subtle.hover.color","value","#000"),t.vdom.elementVoid(r.Prop,null,null,"name","disabled.color","value","#999"),t.vdom.elementVoid(r.Prop,null,null,"name","disabled.background","value","#f5f5f5"),t.vdom.elementVoid(r.Prop,null,null,"name","disabled.boxShadow","value","none"),t.vdom.elementVoid(r.Prop,null,null,"name","selected.boxShadow","value","inset 0 3px 6px 0 rgba(0,0,0,.1)"),t.vdom.elementVoid(r.Prop,null,null,"name","selected.background","value","#f5f5f5"),t.vdom.elementVoid(r.Prop,null,null,"name","selected.color","value","#333"),t.vdom.elementVoid(r.Prop,null,null,"name","selected.hover.background","value","#f5f5f5"),t.vdom.elementVoid(r.Prop,null,null,"name","selected.hover.borderColor","value","#ccc"),t.vdom.elementVoid(r.Prop,null,null,"name","link.color","value","#3572b0"),t.vdom.elementVoid(r.Prop,null,null,"name","link.borderColor","value","transparent"),t.vdom.elementVoid(r.Prop,null,null,"name","link.boxShadow","value","none"),t.vdom.elementVoid(r.Prop,null,null,"name","link.hover.borderColor","value","transparent"),t.vdom.elementVoid(r.Prop,null,null,"name","link.active.boxShadow","value","none"),t.vdom.elementVoid(r.Prop,null,null,"value",o,"name","compact.lineHeight"),t.vdom.elementClose(a["default"])}})}]);
module.exports=function(e){function o(l){if(n[l])return n[l].exports;var t=n[l]={exports:{},id:l,loaded:!1};return e[l].call(t.exports,t,t.exports,o),t.loaded=!0,t.exports}var n={};return o.m=e,o.c=n,o.p="",o(0)}([function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0}),o.themes=o.TYPE=o.APPEARANCE=void 0;var t=function(e,o){d.vdom.attr(o,e)},r=Object.prototype.hasOwnProperty,a=function(e,o){for(var n in e)r.call(e,n)&&o(e[n],n)},d=n(1),u=n(2),i=n(3),s=n(4),m=n(5),c=l(m),p=n(6),b=l(p),v=n(10),f=l(v),g=n(14),h=l(g),k=s.appearance.values,y=s.type.values;o.APPEARANCE=k,o.TYPE=y;var x=(o.themes={adg2:h["default"]},{props:{appearance:s.appearance.enumeration,type:s.type.enumeration,href:d.prop.string({attribute:!0}),target:d.prop.string({attribute:!0}),disabled:d.prop["boolean"]({attribute:!0}),compact:d.prop["boolean"]({attribute:!0}),selected:d.prop["boolean"]({attribute:!0})},render:function(e){var o=(0,i.style)(d.vdom,(0,f["default"])(e.themeProps));return d.vdom.elementOpenStart(b["default"]),a((0,d.props)(e),t),d.vdom.attr("styles",o),d.vdom.elementOpenEnd(b["default"]),d.vdom.elementVoid(c["default"],null,null,"styles",o,"name","before"),d.vdom.elementVoid(c["default"],null,null,"styles",o),d.vdom.elementVoid(c["default"],null,null,"styles",o,"name","after"),d.vdom.elementClose(b["default"])}}),P=(0,d.define)("ak-button",(0,u.themeable)(x));o["default"]=P},function(e,o){e.exports=require("skatejs")},function(e,o){e.exports=require("ak-theme")},function(e,o){e.exports=require("akutil-common")},function(e,o,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.type=o.appearance=void 0;var l=n(3),t=function(e){return e.reduce(function(e,o){return e[o.toUpperCase()]=o,e},{})},r=["primary","standard","subtle","link"],a=["button","submit"],d=t(r),u=t(a),i={attribute:"appearance",values:r,invalidDefault:d.STANDARD},s={attribute:"type",values:a,missingDefault:"button",invalidDefault:"button"};o.appearance={enumeration:(0,l.enumeration)(i)({attribute:!0}),values:d},o.type={enumeration:(0,l.enumeration)(s)({attribute:!0}),values:u}},function(e,o,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var l=n(1),t=function(e){return e||"default"};o["default"]=function(e){var o=e.name,n=e.styles;return l.vdom.elementOpen("span",null,null,"className",n[t(o)+"-slot-wrapper"]),l.vdom.elementVoid("slot",null,null,"name",o,"className",n[t(o)+"-slot"]),l.vdom.elementClose("span")}},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=function b(e){var o=typeof e;"number"===o||"string"===o||"object"===o&&e instanceof String?u.vdom.text(e):"function"===o&&e.__jsxDOMWrapper?e():Array.isArray(e)?e.forEach(b):"object"===o&&"[object Object]"===String(e)&&d(e,b)},r=function(e,o){u.vdom.attr(o,e)},a=Object.prototype.hasOwnProperty,d=function(e,o){for(var n in e)a.call(e,n)&&o(e[n],n)},u=n(1),i=n(7),s=l(i),m=n(8),c=l(m),p=function(e,o){var n={className:(0,s["default"])((0,c["default"])(e.styles,e)),disabled:e.disabled,onmousedown:function(e){return e.preventDefault()}};return e.href?e.disabled?(u.vdom.elementOpenStart("span"),d(n,r),u.vdom.elementOpenEnd("span"),t(o()),u.vdom.elementClose("span")):(u.vdom.elementOpenStart("a"),u.vdom.attr("href",e.href),u.vdom.attr("target",e.target),d(n,r),u.vdom.elementOpenEnd("a"),t(o()),u.vdom.elementClose("a")):(u.vdom.elementOpenStart("button"),u.vdom.attr("type",e.type),d(n,r),u.vdom.elementOpenEnd("button"),t(o()),u.vdom.elementClose("button"))};o["default"]=function(e,o){return u.vdom.elementOpen("span",null,null,"className",e.styles.root),u.vdom.elementOpenStart(p),d(e,r),u.vdom.elementOpenEnd(p),u.vdom.elementOpen("span",null,null,"className",e.styles["button-content"]),t(o()),u.vdom.elementClose("span"),u.vdom.elementClose(p),u.vdom.elementClose("span")}},function(e,o){e.exports=require("classnames")},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=n(9),r=l(t),a=n(4),d=a.appearance.values,u=d.PRIMARY,i=d.SUBTLE,s=d.LINK;o["default"]=function(e,o){var n;return n={},(0,r["default"])(n,e.button,!0),(0,r["default"])(n,e.compact,o.compact),(0,r["default"])(n,e.disabled,o.disabled),(0,r["default"])(n,e.selected,o.selected&&!o.disabled),(0,r["default"])(n,e.primary,o.appearance===u&&!o.disabled&&!o.selected),(0,r["default"])(n,e.subtle,o.appearance===i&&!o.disabled&&!o.selected),(0,r["default"])(n,e.link,o.appearance===s&&!o.selected),(0,r["default"])(n,e.href,o.href&&!o.disabled),n}},function(e,o){e.exports=require("babel-runtime/helpers/defineProperty")},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=n(11),r=l(t),a=n(12),d=n(13),u="\n background 0.1s\n ease-out,\n box-shadow 0.15s cubic-bezier(0.47, 0.03, 0.49, 1.38)\n";o["default"]=function(e){var o=r["default"].bind(null,e);return{":host":{display:"inline-flex"},":host(> _shadow_root_)":{display:"inline-flex"},":host([disabled])":{"pointer-events":"none"},'::slotted([slot="before"])':{"line-height":"0","margin-right":d.grid+"px"},"::slotted(:not([slot]))":{"line-height":"0"},'::slotted([slot="after"])':{"line-height":"0","margin-left":d.grid+"px"},"before-slot-wrapper":{"align-self":"center",display:"flex"},"default-slot-wrapper":{display:"flex"},"after-slot-wrapper":{"align-self":"center",display:"flex"},"button-content":{"align-items":"baseline",display:"flex","flex-wrap":"nowrap","pointer-events":"none"},"before-slot":{display:"inline-flex"},"after-slot":{display:"inline-flex"},"default-slot":{display:"inline-flex"},root:{display:"inline-block"},button:{"box-sizing":"border-box",background:o("standard.background",a.akColorN20),"border-width":"0","border-radius":o("button.baseRadius",a.akBorderRadius),color:o("standard.color",a.akColorN500),display:"inline-flex","font-style":"normal","font-size":"inherit",height:o("button.height",4*d.grid/d.em+"em"),"line-height":o("button.lineHeight",4*d.grid/d.em+"em"),margin:"0",outline:"none",padding:o("button.padding",.75*d.grid+"px "+1.5*d.grid+"px"),"padding-top":0,"padding-bottom":0,"text-align":"center",transition:o("button.transition",u),"user-select":"none",border:o("button.border","none"),"vertical-align":"middle","align-items":"center","&::-moz-focus-inner":{margin:0,padding:0,border:0},"&:hover":{background:o("standard.hover.background",a.akColorN30),cursor:"pointer","border-color":o("standard.hover.borderColor")},"&:active":{background:o("standard.active.background",a.akColorB50),"box-shadow":o("standard.active.boxShadow"),"transition-duration":o("standard.active.transitionDuration","0s")},"&:focus":{"box-shadow":"0 0 0 2px "+o("standard.focus.background",a.akColorB200),"transition-duration":o("standard.focus.transitionDuration","0s, 0.2s")}},primary:{background:o("primary.background",a.akColorB400),color:o("primary.color",a.akColorN20),"border-color":o("primary.borderColor"),"font-weight":o("primary.fontWeight","normal"),"&:hover":{background:o("primary.hover.background",a.akColorB500),"border-color":o("primary.borderColor")},"&:active":{background:o("primary.active.background",a.akColorB300)}},subtle:{background:"none",color:o("subtle.color"),"border-color":o("subtle.borderColor"),"&:hover":{color:o("subtle.hover.color")}},disabled:{color:o("disabled.color",a.akColorN40),"::slotted(*)":{"pointer-events":"none"},cursor:"not-allowed",background:o("disabled.background"),"border-color":o("disabled.borderColor"),"box-shadow":o("disabled.boxShadow")},selected:{background:o("selected.background",a.akColorN700),color:o("selected.color",a.akColorN20),"box-shadow":o("selected.boxShadow"),"&:hover":{background:o("selected.hover.background",a.akColorN700),"border-color":o("selected.hover.borderColor"),transition:"none"}},href:{"text-decoration":"none"},link:{background:"none",color:o("link.color",a.akColorB400),transition:"color 0.1s ease-out","box-shadow":o("link.boxShadow"),"border-color":o("link.borderColor"),"&:hover":{background:"none",color:o("link.hover.color",a.akColorB300),"text-decoration":"underline","border-color":o("link.hover.borderColor")},"&:active":{color:o("link.active.color",a.akColorB300),"box-shadow":o("link.active.boxShadow"),"text-decoration":"none"},"&.disabled":{color:o("disabled.color",a.akColorN40),background:"none"}},compact:{height:o("compact.height",3*d.grid/d.em+"em"),"line-height":o("compact.lineHeight",3*d.grid/d.em+"em")}}}},function(e,o){e.exports=require("lodash.get")},function(e,o){e.exports=require("akutil-shared-styles")},function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.em=14,o.grid=8},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=n(1),r=n(2),a=l(r),d=n(13);o["default"]=(0,t.define)("ak-button-theme-adg2",{render:function(){var e=(4*d.grid-2)/d.em+"em",o=(3*d.grid-2)/d.em+"em";return t.vdom.elementOpen(a["default"],null,null,"id","ak-button-theme-adg2"),t.vdom.elementVoid(r.Prop,null,null,"name","button.border","value","1px solid #ccc"),t.vdom.elementVoid(r.Prop,null,null,"value",e,"name","button.lineHeight"),t.vdom.elementVoid(r.Prop,null,null,"name","button.transition","value","none"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.background","value","#f5f5f5"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.color","value","#333"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.hover.background","value","#e9e9e9"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.hover.borderColor","value","#999"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.active.boxShadow","value","inset 0 3px 6px 0 rgba(0,0,0,.1)"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.active.background","value","#f5f5f5"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.background","value","#3572b0"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.borderColor","value","transparent"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.color","value","#fff"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.fontWeight","value","bold"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.hover.background","value","#2a67a5"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.hover.borderColor","value","transparent"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.active.background","value","#3572b0"),t.vdom.elementVoid(r.Prop,null,null,"name","subtle.color","value","#707070"),t.vdom.elementVoid(r.Prop,null,null,"name","subtle.borderColor","value","transparent"),t.vdom.elementVoid(r.Prop,null,null,"name","subtle.hover.color","value","#000"),t.vdom.elementVoid(r.Prop,null,null,"name","disabled.color","value","#999"),t.vdom.elementVoid(r.Prop,null,null,"name","disabled.background","value","#f5f5f5"),t.vdom.elementVoid(r.Prop,null,null,"name","disabled.boxShadow","value","none"),t.vdom.elementVoid(r.Prop,null,null,"name","selected.boxShadow","value","inset 0 3px 6px 0 rgba(0,0,0,.1)"),t.vdom.elementVoid(r.Prop,null,null,"name","selected.background","value","#f5f5f5"),t.vdom.elementVoid(r.Prop,null,null,"name","selected.color","value","#333"),t.vdom.elementVoid(r.Prop,null,null,"name","selected.hover.background","value","#f5f5f5"),t.vdom.elementVoid(r.Prop,null,null,"name","selected.hover.borderColor","value","#ccc"),t.vdom.elementVoid(r.Prop,null,null,"name","link.color","value","#3572b0"),t.vdom.elementVoid(r.Prop,null,null,"name","link.borderColor","value","transparent"),t.vdom.elementVoid(r.Prop,null,null,"name","link.boxShadow","value","none"),t.vdom.elementVoid(r.Prop,null,null,"name","link.hover.borderColor","value","transparent"),t.vdom.elementVoid(r.Prop,null,null,"name","link.active.boxShadow","value","none"),t.vdom.elementVoid(r.Prop,null,null,"value",o,"name","compact.lineHeight"),t.vdom.elementClose(a["default"])}})}]);

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

"border-color": val("primary.borderColor"),
"font-weight": 600,
"font-weight": val("primary.fontWeight", "normal"),
"&:hover": {

@@ -537,3 +537,3 @@ background: val("primary.hover.background", _akutilSharedStyles.akColorB500),

_skatejs.vdom.elementVoid(_akTheme.Prop, null, null, "name", "primary.color", "value", "#fff"),
_skatejs.vdom.elementVoid(_akTheme.Prop, null, null, "name", "primary.fontWeight", "value", "700"),
_skatejs.vdom.elementVoid(_akTheme.Prop, null, null, "name", "primary.fontWeight", "value", "bold"),
_skatejs.vdom.elementVoid(_akTheme.Prop, null, null, "name", "primary.hover.background", "value", "#2a67a5"),

@@ -540,0 +540,0 @@ _skatejs.vdom.elementVoid(_akTheme.Prop, null, null, "name", "primary.hover.borderColor", "value", "transparent"),

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

!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(require("skatejs"),require("ak-theme"),require("akutil-common"),require("classnames"),require("babel-runtime/helpers/defineProperty"),require("lodash.get"),require("akutil-shared-styles")):"function"==typeof define&&define.amd?define(["skatejs","ak-theme","akutil-common","classnames","babel-runtime/helpers/defineProperty","lodash.get","akutil-shared-styles"],o):"object"==typeof exports?exports.akButton=o(require("skatejs"),require("ak-theme"),require("akutil-common"),require("classnames"),require("babel-runtime/helpers/defineProperty"),require("lodash.get"),require("akutil-shared-styles")):e.akButton=o(e.skatejs,e["ak-theme"],e["akutil-common"],e.classnames,e["babel-runtime/helpers/defineProperty"],e["lodash.get"],e["akutil-shared-styles"])}(this,function(e,o,n,l,t,r,a){return function(e){function o(l){if(n[l])return n[l].exports;var t=n[l]={exports:{},id:l,loaded:!1};return e[l].call(t.exports,t,t.exports,o),t.loaded=!0,t.exports}var n={};return o.m=e,o.c=n,o.p="",o(0)}([function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0}),o.themes=o.TYPE=o.APPEARANCE=void 0;var t=function(e,o){d.vdom.attr(o,e)},r=Object.prototype.hasOwnProperty,a=function(e,o){for(var n in e)r.call(e,n)&&o(e[n],n)},d=n(1),u=n(2),i=n(3),s=n(4),m=n(5),c=l(m),p=n(6),b=l(p),v=n(10),f=l(v),h=n(14),g=l(h),k=s.appearance.values,y=s.type.values;o.APPEARANCE=k,o.TYPE=y;var x=(o.themes={adg2:g["default"]},{props:{appearance:s.appearance.enumeration,type:s.type.enumeration,href:d.prop.string({attribute:!0}),target:d.prop.string({attribute:!0}),disabled:d.prop["boolean"]({attribute:!0}),compact:d.prop["boolean"]({attribute:!0}),selected:d.prop["boolean"]({attribute:!0})},render:function(e){var o=(0,i.style)(d.vdom,(0,f["default"])(e.themeProps));return d.vdom.elementOpenStart(b["default"]),a((0,d.props)(e),t),d.vdom.attr("styles",o),d.vdom.elementOpenEnd(b["default"]),d.vdom.elementVoid(c["default"],null,null,"styles",o,"name","before"),d.vdom.elementVoid(c["default"],null,null,"styles",o),d.vdom.elementVoid(c["default"],null,null,"styles",o,"name","after"),d.vdom.elementClose(b["default"])}}),P=(0,d.define)("ak-button",(0,u.themeable)(x));o["default"]=P},function(o,n){o.exports=e},function(e,n){e.exports=o},function(e,o){e.exports=n},function(e,o,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.type=o.appearance=void 0;var l=n(3),t=function(e){return e.reduce(function(e,o){return e[o.toUpperCase()]=o,e},{})},r=["primary","standard","subtle","link"],a=["button","submit"],d=t(r),u=t(a),i={attribute:"appearance",values:r,invalidDefault:d.STANDARD},s={attribute:"type",values:a,missingDefault:"button",invalidDefault:"button"};o.appearance={enumeration:(0,l.enumeration)(i)({attribute:!0}),values:d},o.type={enumeration:(0,l.enumeration)(s)({attribute:!0}),values:u}},function(e,o,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var l=n(1),t=function(e){return e||"default"};o["default"]=function(e){var o=e.name,n=e.styles;return l.vdom.elementOpen("span",null,null,"className",n[t(o)+"-slot-wrapper"]),l.vdom.elementVoid("slot",null,null,"name",o,"className",n[t(o)+"-slot"]),l.vdom.elementClose("span")}},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=function b(e){var o=typeof e;"number"===o||"string"===o||"object"===o&&e instanceof String?u.vdom.text(e):"function"===o&&e.__jsxDOMWrapper?e():Array.isArray(e)?e.forEach(b):"object"===o&&"[object Object]"===String(e)&&d(e,b)},r=function(e,o){u.vdom.attr(o,e)},a=Object.prototype.hasOwnProperty,d=function(e,o){for(var n in e)a.call(e,n)&&o(e[n],n)},u=n(1),i=n(7),s=l(i),m=n(8),c=l(m),p=function(e,o){var n={className:(0,s["default"])((0,c["default"])(e.styles,e)),disabled:e.disabled,onmousedown:function(e){return e.preventDefault()}};return e.href?e.disabled?(u.vdom.elementOpenStart("span"),d(n,r),u.vdom.elementOpenEnd("span"),t(o()),u.vdom.elementClose("span")):(u.vdom.elementOpenStart("a"),u.vdom.attr("href",e.href),u.vdom.attr("target",e.target),d(n,r),u.vdom.elementOpenEnd("a"),t(o()),u.vdom.elementClose("a")):(u.vdom.elementOpenStart("button"),u.vdom.attr("type",e.type),d(n,r),u.vdom.elementOpenEnd("button"),t(o()),u.vdom.elementClose("button"))};o["default"]=function(e,o){return u.vdom.elementOpen("span",null,null,"className",e.styles.root),u.vdom.elementOpenStart(p),d(e,r),u.vdom.elementOpenEnd(p),u.vdom.elementOpen("span",null,null,"className",e.styles["button-content"]),t(o()),u.vdom.elementClose("span"),u.vdom.elementClose(p),u.vdom.elementClose("span")}},function(e,o){e.exports=l},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=n(9),r=l(t),a=n(4),d=a.appearance.values,u=d.PRIMARY,i=d.SUBTLE,s=d.LINK;o["default"]=function(e,o){var n;return n={},(0,r["default"])(n,e.button,!0),(0,r["default"])(n,e.compact,o.compact),(0,r["default"])(n,e.disabled,o.disabled),(0,r["default"])(n,e.selected,o.selected&&!o.disabled),(0,r["default"])(n,e.primary,o.appearance===u&&!o.disabled&&!o.selected),(0,r["default"])(n,e.subtle,o.appearance===i&&!o.disabled&&!o.selected),(0,r["default"])(n,e.link,o.appearance===s&&!o.selected),(0,r["default"])(n,e.href,o.href&&!o.disabled),n}},function(e,o){e.exports=t},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=n(11),r=l(t),a=n(12),d=n(13),u="\n background 0.1s\n ease-out,\n box-shadow 0.15s cubic-bezier(0.47, 0.03, 0.49, 1.38)\n";o["default"]=function(e){var o=r["default"].bind(null,e);return{":host":{display:"inline-flex"},":host(> _shadow_root_)":{display:"inline-flex"},":host([disabled])":{"pointer-events":"none"},'::slotted([slot="before"])':{"line-height":"0","margin-right":d.grid+"px"},"::slotted(:not([slot]))":{"line-height":"0"},'::slotted([slot="after"])':{"line-height":"0","margin-left":d.grid+"px"},"before-slot-wrapper":{"align-self":"center",display:"flex"},"default-slot-wrapper":{display:"flex"},"after-slot-wrapper":{"align-self":"center",display:"flex"},"button-content":{"align-items":"baseline",display:"flex","flex-wrap":"nowrap","pointer-events":"none"},"before-slot":{display:"inline-flex"},"after-slot":{display:"inline-flex"},"default-slot":{display:"inline-flex"},root:{display:"inline-block"},button:{"box-sizing":"border-box",background:o("standard.background",a.akColorN20),"border-width":"0","border-radius":o("button.baseRadius",a.akBorderRadius),color:o("standard.color",a.akColorN500),display:"inline-flex","font-style":"normal","font-size":"inherit",height:o("button.height",4*d.grid/d.em+"em"),"line-height":o("button.lineHeight",4*d.grid/d.em+"em"),margin:"0",outline:"none",padding:o("button.padding",.75*d.grid+"px "+1.5*d.grid+"px"),"padding-top":0,"padding-bottom":0,"text-align":"center",transition:o("button.transition",u),"user-select":"none",border:o("button.border","none"),"vertical-align":"middle","align-items":"center","&::-moz-focus-inner":{margin:0,padding:0,border:0},"&:hover":{background:o("standard.hover.background",a.akColorN30),cursor:"pointer","border-color":o("standard.hover.borderColor")},"&:active":{background:o("standard.active.background",a.akColorB50),"box-shadow":o("standard.active.boxShadow"),"transition-duration":o("standard.active.transitionDuration","0s")},"&:focus":{"box-shadow":"0 0 0 2px "+o("standard.focus.background",a.akColorB200),"transition-duration":o("standard.focus.transitionDuration","0s, 0.2s")}},primary:{background:o("primary.background",a.akColorB400),color:o("primary.color",a.akColorN20),"border-color":o("primary.borderColor"),"font-weight":600,"&:hover":{background:o("primary.hover.background",a.akColorB500),"border-color":o("primary.borderColor")},"&:active":{background:o("primary.active.background",a.akColorB300)}},subtle:{background:"none",color:o("subtle.color"),"border-color":o("subtle.borderColor"),"&:hover":{color:o("subtle.hover.color")}},disabled:{color:o("disabled.color",a.akColorN40),"::slotted(*)":{"pointer-events":"none"},cursor:"not-allowed",background:o("disabled.background"),"border-color":o("disabled.borderColor"),"box-shadow":o("disabled.boxShadow")},selected:{background:o("selected.background",a.akColorN700),color:o("selected.color",a.akColorN20),"box-shadow":o("selected.boxShadow"),"&:hover":{background:o("selected.hover.background",a.akColorN700),"border-color":o("selected.hover.borderColor"),transition:"none"}},href:{"text-decoration":"none"},link:{background:"none",color:o("link.color",a.akColorB400),transition:"color 0.1s ease-out","box-shadow":o("link.boxShadow"),"border-color":o("link.borderColor"),"&:hover":{background:"none",color:o("link.hover.color",a.akColorB300),"text-decoration":"underline","border-color":o("link.hover.borderColor")},"&:active":{color:o("link.active.color",a.akColorB300),"box-shadow":o("link.active.boxShadow"),"text-decoration":"none"},"&.disabled":{color:o("disabled.color",a.akColorN40),background:"none"}},compact:{height:o("compact.height",3*d.grid/d.em+"em"),"line-height":o("compact.lineHeight",3*d.grid/d.em+"em")}}}},function(e,o){e.exports=r},function(e,o){e.exports=a},function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.em=14,o.grid=8},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=n(1),r=n(2),a=l(r),d=n(13);o["default"]=(0,t.define)("ak-button-theme-adg2",{render:function(){var e=(4*d.grid-2)/d.em+"em",o=(3*d.grid-2)/d.em+"em";return t.vdom.elementOpen(a["default"],null,null,"id","ak-button-theme-adg2"),t.vdom.elementVoid(r.Prop,null,null,"name","button.border","value","1px solid #ccc"),t.vdom.elementVoid(r.Prop,null,null,"value",e,"name","button.lineHeight"),t.vdom.elementVoid(r.Prop,null,null,"name","button.transition","value","none"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.background","value","#f5f5f5"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.color","value","#333"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.hover.background","value","#e9e9e9"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.hover.borderColor","value","#999"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.active.boxShadow","value","inset 0 3px 6px 0 rgba(0,0,0,.1)"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.active.background","value","#f5f5f5"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.background","value","#3572b0"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.borderColor","value","transparent"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.color","value","#fff"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.fontWeight","value","700"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.hover.background","value","#2a67a5"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.hover.borderColor","value","transparent"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.active.background","value","#3572b0"),t.vdom.elementVoid(r.Prop,null,null,"name","subtle.color","value","#707070"),t.vdom.elementVoid(r.Prop,null,null,"name","subtle.borderColor","value","transparent"),t.vdom.elementVoid(r.Prop,null,null,"name","subtle.hover.color","value","#000"),t.vdom.elementVoid(r.Prop,null,null,"name","disabled.color","value","#999"),t.vdom.elementVoid(r.Prop,null,null,"name","disabled.background","value","#f5f5f5"),t.vdom.elementVoid(r.Prop,null,null,"name","disabled.boxShadow","value","none"),t.vdom.elementVoid(r.Prop,null,null,"name","selected.boxShadow","value","inset 0 3px 6px 0 rgba(0,0,0,.1)"),t.vdom.elementVoid(r.Prop,null,null,"name","selected.background","value","#f5f5f5"),t.vdom.elementVoid(r.Prop,null,null,"name","selected.color","value","#333"),t.vdom.elementVoid(r.Prop,null,null,"name","selected.hover.background","value","#f5f5f5"),t.vdom.elementVoid(r.Prop,null,null,"name","selected.hover.borderColor","value","#ccc"),t.vdom.elementVoid(r.Prop,null,null,"name","link.color","value","#3572b0"),t.vdom.elementVoid(r.Prop,null,null,"name","link.borderColor","value","transparent"),t.vdom.elementVoid(r.Prop,null,null,"name","link.boxShadow","value","none"),t.vdom.elementVoid(r.Prop,null,null,"name","link.hover.borderColor","value","transparent"),t.vdom.elementVoid(r.Prop,null,null,"name","link.active.boxShadow","value","none"),t.vdom.elementVoid(r.Prop,null,null,"value",o,"name","compact.lineHeight"),t.vdom.elementClose(a["default"])}})}])});
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(require("skatejs"),require("ak-theme"),require("akutil-common"),require("classnames"),require("babel-runtime/helpers/defineProperty"),require("lodash.get"),require("akutil-shared-styles")):"function"==typeof define&&define.amd?define(["skatejs","ak-theme","akutil-common","classnames","babel-runtime/helpers/defineProperty","lodash.get","akutil-shared-styles"],o):"object"==typeof exports?exports.akButton=o(require("skatejs"),require("ak-theme"),require("akutil-common"),require("classnames"),require("babel-runtime/helpers/defineProperty"),require("lodash.get"),require("akutil-shared-styles")):e.akButton=o(e.skatejs,e["ak-theme"],e["akutil-common"],e.classnames,e["babel-runtime/helpers/defineProperty"],e["lodash.get"],e["akutil-shared-styles"])}(this,function(e,o,n,l,t,r,a){return function(e){function o(l){if(n[l])return n[l].exports;var t=n[l]={exports:{},id:l,loaded:!1};return e[l].call(t.exports,t,t.exports,o),t.loaded=!0,t.exports}var n={};return o.m=e,o.c=n,o.p="",o(0)}([function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0}),o.themes=o.TYPE=o.APPEARANCE=void 0;var t=function(e,o){d.vdom.attr(o,e)},r=Object.prototype.hasOwnProperty,a=function(e,o){for(var n in e)r.call(e,n)&&o(e[n],n)},d=n(1),u=n(2),i=n(3),s=n(4),m=n(5),c=l(m),p=n(6),b=l(p),v=n(10),f=l(v),h=n(14),g=l(h),k=s.appearance.values,y=s.type.values;o.APPEARANCE=k,o.TYPE=y;var x=(o.themes={adg2:g["default"]},{props:{appearance:s.appearance.enumeration,type:s.type.enumeration,href:d.prop.string({attribute:!0}),target:d.prop.string({attribute:!0}),disabled:d.prop["boolean"]({attribute:!0}),compact:d.prop["boolean"]({attribute:!0}),selected:d.prop["boolean"]({attribute:!0})},render:function(e){var o=(0,i.style)(d.vdom,(0,f["default"])(e.themeProps));return d.vdom.elementOpenStart(b["default"]),a((0,d.props)(e),t),d.vdom.attr("styles",o),d.vdom.elementOpenEnd(b["default"]),d.vdom.elementVoid(c["default"],null,null,"styles",o,"name","before"),d.vdom.elementVoid(c["default"],null,null,"styles",o),d.vdom.elementVoid(c["default"],null,null,"styles",o,"name","after"),d.vdom.elementClose(b["default"])}}),P=(0,d.define)("ak-button",(0,u.themeable)(x));o["default"]=P},function(o,n){o.exports=e},function(e,n){e.exports=o},function(e,o){e.exports=n},function(e,o,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.type=o.appearance=void 0;var l=n(3),t=function(e){return e.reduce(function(e,o){return e[o.toUpperCase()]=o,e},{})},r=["primary","standard","subtle","link"],a=["button","submit"],d=t(r),u=t(a),i={attribute:"appearance",values:r,invalidDefault:d.STANDARD},s={attribute:"type",values:a,missingDefault:"button",invalidDefault:"button"};o.appearance={enumeration:(0,l.enumeration)(i)({attribute:!0}),values:d},o.type={enumeration:(0,l.enumeration)(s)({attribute:!0}),values:u}},function(e,o,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var l=n(1),t=function(e){return e||"default"};o["default"]=function(e){var o=e.name,n=e.styles;return l.vdom.elementOpen("span",null,null,"className",n[t(o)+"-slot-wrapper"]),l.vdom.elementVoid("slot",null,null,"name",o,"className",n[t(o)+"-slot"]),l.vdom.elementClose("span")}},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=function b(e){var o=typeof e;"number"===o||"string"===o||"object"===o&&e instanceof String?u.vdom.text(e):"function"===o&&e.__jsxDOMWrapper?e():Array.isArray(e)?e.forEach(b):"object"===o&&"[object Object]"===String(e)&&d(e,b)},r=function(e,o){u.vdom.attr(o,e)},a=Object.prototype.hasOwnProperty,d=function(e,o){for(var n in e)a.call(e,n)&&o(e[n],n)},u=n(1),i=n(7),s=l(i),m=n(8),c=l(m),p=function(e,o){var n={className:(0,s["default"])((0,c["default"])(e.styles,e)),disabled:e.disabled,onmousedown:function(e){return e.preventDefault()}};return e.href?e.disabled?(u.vdom.elementOpenStart("span"),d(n,r),u.vdom.elementOpenEnd("span"),t(o()),u.vdom.elementClose("span")):(u.vdom.elementOpenStart("a"),u.vdom.attr("href",e.href),u.vdom.attr("target",e.target),d(n,r),u.vdom.elementOpenEnd("a"),t(o()),u.vdom.elementClose("a")):(u.vdom.elementOpenStart("button"),u.vdom.attr("type",e.type),d(n,r),u.vdom.elementOpenEnd("button"),t(o()),u.vdom.elementClose("button"))};o["default"]=function(e,o){return u.vdom.elementOpen("span",null,null,"className",e.styles.root),u.vdom.elementOpenStart(p),d(e,r),u.vdom.elementOpenEnd(p),u.vdom.elementOpen("span",null,null,"className",e.styles["button-content"]),t(o()),u.vdom.elementClose("span"),u.vdom.elementClose(p),u.vdom.elementClose("span")}},function(e,o){e.exports=l},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=n(9),r=l(t),a=n(4),d=a.appearance.values,u=d.PRIMARY,i=d.SUBTLE,s=d.LINK;o["default"]=function(e,o){var n;return n={},(0,r["default"])(n,e.button,!0),(0,r["default"])(n,e.compact,o.compact),(0,r["default"])(n,e.disabled,o.disabled),(0,r["default"])(n,e.selected,o.selected&&!o.disabled),(0,r["default"])(n,e.primary,o.appearance===u&&!o.disabled&&!o.selected),(0,r["default"])(n,e.subtle,o.appearance===i&&!o.disabled&&!o.selected),(0,r["default"])(n,e.link,o.appearance===s&&!o.selected),(0,r["default"])(n,e.href,o.href&&!o.disabled),n}},function(e,o){e.exports=t},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=n(11),r=l(t),a=n(12),d=n(13),u="\n background 0.1s\n ease-out,\n box-shadow 0.15s cubic-bezier(0.47, 0.03, 0.49, 1.38)\n";o["default"]=function(e){var o=r["default"].bind(null,e);return{":host":{display:"inline-flex"},":host(> _shadow_root_)":{display:"inline-flex"},":host([disabled])":{"pointer-events":"none"},'::slotted([slot="before"])':{"line-height":"0","margin-right":d.grid+"px"},"::slotted(:not([slot]))":{"line-height":"0"},'::slotted([slot="after"])':{"line-height":"0","margin-left":d.grid+"px"},"before-slot-wrapper":{"align-self":"center",display:"flex"},"default-slot-wrapper":{display:"flex"},"after-slot-wrapper":{"align-self":"center",display:"flex"},"button-content":{"align-items":"baseline",display:"flex","flex-wrap":"nowrap","pointer-events":"none"},"before-slot":{display:"inline-flex"},"after-slot":{display:"inline-flex"},"default-slot":{display:"inline-flex"},root:{display:"inline-block"},button:{"box-sizing":"border-box",background:o("standard.background",a.akColorN20),"border-width":"0","border-radius":o("button.baseRadius",a.akBorderRadius),color:o("standard.color",a.akColorN500),display:"inline-flex","font-style":"normal","font-size":"inherit",height:o("button.height",4*d.grid/d.em+"em"),"line-height":o("button.lineHeight",4*d.grid/d.em+"em"),margin:"0",outline:"none",padding:o("button.padding",.75*d.grid+"px "+1.5*d.grid+"px"),"padding-top":0,"padding-bottom":0,"text-align":"center",transition:o("button.transition",u),"user-select":"none",border:o("button.border","none"),"vertical-align":"middle","align-items":"center","&::-moz-focus-inner":{margin:0,padding:0,border:0},"&:hover":{background:o("standard.hover.background",a.akColorN30),cursor:"pointer","border-color":o("standard.hover.borderColor")},"&:active":{background:o("standard.active.background",a.akColorB50),"box-shadow":o("standard.active.boxShadow"),"transition-duration":o("standard.active.transitionDuration","0s")},"&:focus":{"box-shadow":"0 0 0 2px "+o("standard.focus.background",a.akColorB200),"transition-duration":o("standard.focus.transitionDuration","0s, 0.2s")}},primary:{background:o("primary.background",a.akColorB400),color:o("primary.color",a.akColorN20),"border-color":o("primary.borderColor"),"font-weight":o("primary.fontWeight","normal"),"&:hover":{background:o("primary.hover.background",a.akColorB500),"border-color":o("primary.borderColor")},"&:active":{background:o("primary.active.background",a.akColorB300)}},subtle:{background:"none",color:o("subtle.color"),"border-color":o("subtle.borderColor"),"&:hover":{color:o("subtle.hover.color")}},disabled:{color:o("disabled.color",a.akColorN40),"::slotted(*)":{"pointer-events":"none"},cursor:"not-allowed",background:o("disabled.background"),"border-color":o("disabled.borderColor"),"box-shadow":o("disabled.boxShadow")},selected:{background:o("selected.background",a.akColorN700),color:o("selected.color",a.akColorN20),"box-shadow":o("selected.boxShadow"),"&:hover":{background:o("selected.hover.background",a.akColorN700),"border-color":o("selected.hover.borderColor"),transition:"none"}},href:{"text-decoration":"none"},link:{background:"none",color:o("link.color",a.akColorB400),transition:"color 0.1s ease-out","box-shadow":o("link.boxShadow"),"border-color":o("link.borderColor"),"&:hover":{background:"none",color:o("link.hover.color",a.akColorB300),"text-decoration":"underline","border-color":o("link.hover.borderColor")},"&:active":{color:o("link.active.color",a.akColorB300),"box-shadow":o("link.active.boxShadow"),"text-decoration":"none"},"&.disabled":{color:o("disabled.color",a.akColorN40),background:"none"}},compact:{height:o("compact.height",3*d.grid/d.em+"em"),"line-height":o("compact.lineHeight",3*d.grid/d.em+"em")}}}},function(e,o){e.exports=r},function(e,o){e.exports=a},function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.em=14,o.grid=8},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=n(1),r=n(2),a=l(r),d=n(13);o["default"]=(0,t.define)("ak-button-theme-adg2",{render:function(){var e=(4*d.grid-2)/d.em+"em",o=(3*d.grid-2)/d.em+"em";return t.vdom.elementOpen(a["default"],null,null,"id","ak-button-theme-adg2"),t.vdom.elementVoid(r.Prop,null,null,"name","button.border","value","1px solid #ccc"),t.vdom.elementVoid(r.Prop,null,null,"value",e,"name","button.lineHeight"),t.vdom.elementVoid(r.Prop,null,null,"name","button.transition","value","none"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.background","value","#f5f5f5"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.color","value","#333"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.hover.background","value","#e9e9e9"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.hover.borderColor","value","#999"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.active.boxShadow","value","inset 0 3px 6px 0 rgba(0,0,0,.1)"),t.vdom.elementVoid(r.Prop,null,null,"name","standard.active.background","value","#f5f5f5"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.background","value","#3572b0"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.borderColor","value","transparent"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.color","value","#fff"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.fontWeight","value","bold"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.hover.background","value","#2a67a5"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.hover.borderColor","value","transparent"),t.vdom.elementVoid(r.Prop,null,null,"name","primary.active.background","value","#3572b0"),t.vdom.elementVoid(r.Prop,null,null,"name","subtle.color","value","#707070"),t.vdom.elementVoid(r.Prop,null,null,"name","subtle.borderColor","value","transparent"),t.vdom.elementVoid(r.Prop,null,null,"name","subtle.hover.color","value","#000"),t.vdom.elementVoid(r.Prop,null,null,"name","disabled.color","value","#999"),t.vdom.elementVoid(r.Prop,null,null,"name","disabled.background","value","#f5f5f5"),t.vdom.elementVoid(r.Prop,null,null,"name","disabled.boxShadow","value","none"),t.vdom.elementVoid(r.Prop,null,null,"name","selected.boxShadow","value","inset 0 3px 6px 0 rgba(0,0,0,.1)"),t.vdom.elementVoid(r.Prop,null,null,"name","selected.background","value","#f5f5f5"),t.vdom.elementVoid(r.Prop,null,null,"name","selected.color","value","#333"),t.vdom.elementVoid(r.Prop,null,null,"name","selected.hover.background","value","#f5f5f5"),t.vdom.elementVoid(r.Prop,null,null,"name","selected.hover.borderColor","value","#ccc"),t.vdom.elementVoid(r.Prop,null,null,"name","link.color","value","#3572b0"),t.vdom.elementVoid(r.Prop,null,null,"name","link.borderColor","value","transparent"),t.vdom.elementVoid(r.Prop,null,null,"name","link.boxShadow","value","none"),t.vdom.elementVoid(r.Prop,null,null,"name","link.hover.borderColor","value","transparent"),t.vdom.elementVoid(r.Prop,null,null,"name","link.active.boxShadow","value","none"),t.vdom.elementVoid(r.Prop,null,null,"value",o,"name","compact.lineHeight"),t.vdom.elementClose(a["default"])}})}])});
{
"name": "ak-button",
"version": "1.7.0",
"version": "1.7.1",
"description": "ak-button webcomponent",

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

"url": "https://bitbucket.org/atlassian/atlaskit"
}
},
"keywords": [
"atlaskit",
"ui"
]
}

@@ -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-button,ak-button@1.7.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-button,ak-button@1.7.1)

@@ -12,9 +12,9 @@ # Button

![Example buttons](https://bytebucket.org/atlassian/atlaskit/raw/f6fde5825e96ebf94679c58835429fa3dbb15569/packages/ak-button/docs/button_1.png)
![Example buttons](https://bytebucket.org/atlassian/atlaskit/raw/9625e6597429f7cb5e95ee6577aa92ee8786abee/packages/ak-button/docs/button_1.png)
![Example buttons](https://bytebucket.org/atlassian/atlaskit/raw/f6fde5825e96ebf94679c58835429fa3dbb15569/packages/ak-button/docs/button_2.png)
![Example buttons](https://bytebucket.org/atlassian/atlaskit/raw/9625e6597429f7cb5e95ee6577aa92ee8786abee/packages/ak-button/docs/button_2.png)
## Try it out
Interact with a [live demo of the ak-button component](https://aui-cdn.atlassian.com/atlaskit/stories/ak-button/1.7.0/).
Interact with a [live demo of the ak-button component](https://aui-cdn.atlassian.com/atlaskit/stories/ak-button/1.7.1/).

@@ -234,3 +234,3 @@ ## Installation

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

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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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