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.6.1 to 1.6.2

15

CHANGELOG.md

@@ -1,6 +0,17 @@

<a name="1.6.1"></a>
## 1.6.1 (2016-10-25)
<a name="1.6.2"></a>
## 1.6.2 (2016-10-26)
<a name="ak-button@1.6.2"></a>
## ak-button@1.6.2 (2016-10-26)
### Bug Fixes
* **ak-button and ak-field-text:** Correct npm-shrinkwrap file ([6924504](https://bitbucket.org/atlassian/atlaskit/commits/6924504))
* **ak-field-text, ak-button:** ak-field-text and ak-button follow what is documented in the guidelin ([01f3f4d](https://bitbucket.org/atlassian/atlaskit/commits/01f3f4d))
<a name="ak-button@1.6.1"></a>

@@ -7,0 +18,0 @@ ## ak-button@1.6.1 (2016-10-25)

3

dist/bundle-cjs.js

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

outline: "none",
padding: val("button.padding", .75 * grid + "px " + grid + "px"),
padding: val("button.padding", .75 * grid + "px " + 1.5 * grid + "px"),
"text-align": "center",

@@ -371,2 +371,3 @@ transition: val("button.transition", transitionValue),

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

@@ -373,0 +374,0 @@ background: val("primary.hover.background", _akutilSharedStyles.akColorB500),

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

module.exports=function(e){function o(l){if(n[l])return n[l].exports;var r=n[l]={exports:{},id:l,loaded:!1};return e[l].call(r.exports,r,r.exports,o),r.loaded=!0,r.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 r=function(e,o){d.vdom.attr(o,e)},t=Object.prototype.hasOwnProperty,a=function(e,o){for(var n in e)t.call(e,n)&&o(e[n],n)},d=n(1),u=n(2),i=n(3),s=n(4),c=n(5),m=l(c),p=n(6),b=l(p),v=n(10),f=l(v),k=n(13),h=l(k),g=s.appearance.values,y=s.type.values;o.APPEARANCE=g,o.TYPE=y;var x=(o.themes={adg2:h["default"]},{props:{appearance:s.appearance.enumeration,type:s.type.enumeration,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),r),d.vdom.attr("styles",o),d.vdom.elementOpenEnd(b["default"]),d.vdom.elementVoid(m["default"],null,null,"styles",o,"name","before"),d.vdom.elementVoid(m["default"],null,null,"styles",o),d.vdom.elementVoid(m["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),r=function(e){return e.reduce(function(e,o){return e[o.toUpperCase()]=o,e},{})},t=["primary","standard","subtle","link"],a=["button","submit"],d=r(t),u=r(a),i={attribute:"appearance",values:t,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),r=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[r(o)+"-slot-wrapper"]),l.vdom.elementVoid("slot",null,null,"name",o,"className",n[r(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 r=Object.prototype.hasOwnProperty,t=function(e,o){for(var n in e)r.call(e,n)&&o(e[n],n)},a=function m(e){var o=typeof e;"number"===o||"string"===o||"object"===o&&e instanceof String?d.vdom.text(e):"function"===o&&e.__jsxDOMWrapper?e():Array.isArray(e)?e.forEach(m):"object"===o&&"[object Object]"===String(e)&&t(e,m)},d=n(1),u=n(7),i=l(u),s=n(8),c=l(s);o["default"]=function(e,o){return d.vdom.elementOpen("span",null,null,"className",e.styles.root),d.vdom.elementOpen("button",null,null,"className",(0,i["default"])((0,c["default"])(e.styles,e)),"type",e.type,"disabled",e.disabled,"onmousedown",function(e){return e.preventDefault()}),d.vdom.elementOpen("span",null,null,"className",e.styles["button-content"]),a(o()),d.vdom.elementClose("span"),d.vdom.elementClose("button"),d.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 r=n(9),t=l(r),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,t["default"])(n,e.button,!0),(0,t["default"])(n,e.compact,o.compact),(0,t["default"])(n,e.disabled,o.disabled),(0,t["default"])(n,e.selected,o.selected&&!o.disabled),(0,t["default"])(n,e.primary,o.appearance===u&&!o.disabled&&!o.selected),(0,t["default"])(n,e.subtle,o.appearance===i&&!o.disabled&&!o.selected),(0,t["default"])(n,e.link,o.appearance===s&&!o.selected),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 r=n(11),t=l(r),a=n(12),d=20,u=14,i=8,s="\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=t["default"].bind(null,e);return{":host":{display:"inline-block"},":host(> _shadow_root_)":{display:"inline-block"},":host([disabled])":{"pointer-events":"none"},'::slotted([slot="before"])':{"margin-right":i+"px"},'::slotted([slot="after"])':{"margin-left":i+"px"},"before-slot-wrapper":{"align-self":"center",display:"flex"},"after-slot-wrapper":{"align-self":"center",display:"flex"},"button-content":{"align-items":"baseline",display:"inline-flex","flex-wrap":"nowrap"},"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-block","font-style":"normal","font-size":"inherit",height:o("button.height",4*i/u+"em"),"line-height":o("button.lineHeight",d/u),margin:"0",outline:"none",padding:o("button.padding",.75*i+"px "+i+"px"),"text-align":"center",transition:o("button.transition",s),"user-select":"none",border:o("button.border","none"),"&::-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"),"&: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"}},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*i/u+"em"),"padding-top":o("compact.paddingTop",i/3+"px"),"padding-bottom":o("compact.paddingBottom",i/3+"px")}}}},function(e,o){e.exports=require("lodash.get")},function(e,o){e.exports=require("akutil-shared-styles")},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var r=n(1),t=n(2),a=l(t);o["default"]=(0,r.define)("ak-button-theme-adg2",{render:function(){return r.vdom.elementOpen(a["default"],null,null,"id","ak-button-theme-adg2"),r.vdom.elementVoid(t.Prop,null,null,"name","button.padding","value","4px 10px"),r.vdom.elementVoid(t.Prop,null,null,"name","button.border","value","1px solid #ccc"),r.vdom.elementVoid(t.Prop,null,null,"name","button.transition","value","none"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.background","value","#f5f5f5"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.color","value","#333"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.hover.background","value","#e9e9e9"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.hover.borderColor","value","#999"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.active.boxShadow","value","inset 0 3px 6px 0 rgba(0,0,0,.1)"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.active.background","value","#f5f5f5"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.background","value","#3572b0"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.borderColor","value","transparent"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.color","value","#fff"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.fontWeight","value","700"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.hover.background","value","#2a67a5"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.hover.borderColor","value","transparent"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.active.background","value","#3572b0"),r.vdom.elementVoid(t.Prop,null,null,"name","subtle.color","value","#707070"),r.vdom.elementVoid(t.Prop,null,null,"name","subtle.borderColor","value","transparent"),r.vdom.elementVoid(t.Prop,null,null,"name","subtle.hover.color","value","#000"),r.vdom.elementVoid(t.Prop,null,null,"name","disabled.color","value","#999"),r.vdom.elementVoid(t.Prop,null,null,"name","disabled.background","value","#f5f5f5"),r.vdom.elementVoid(t.Prop,null,null,"name","disabled.boxShadow","value","none"),r.vdom.elementVoid(t.Prop,null,null,"name","selected.boxShadow","value","inset 0 3px 6px 0 rgba(0,0,0,.1)"),r.vdom.elementVoid(t.Prop,null,null,"name","selected.background","value","#f5f5f5"),r.vdom.elementVoid(t.Prop,null,null,"name","selected.color","value","#333"),r.vdom.elementVoid(t.Prop,null,null,"name","selected.hover.background","value","#f5f5f5"),r.vdom.elementVoid(t.Prop,null,null,"name","selected.hover.borderColor","value","#ccc"),r.vdom.elementVoid(t.Prop,null,null,"name","link.color","value","#3572b0"),r.vdom.elementVoid(t.Prop,null,null,"name","link.borderColor","value","transparent"),r.vdom.elementVoid(t.Prop,null,null,"name","link.boxShadow","value","none"),r.vdom.elementVoid(t.Prop,null,null,"name","link.hover.borderColor","value","transparent"),r.vdom.elementVoid(t.Prop,null,null,"name","link.active.boxShadow","value","none"),r.vdom.elementClose(a["default"])}})}]);
module.exports=function(e){function o(l){if(n[l])return n[l].exports;var r=n[l]={exports:{},id:l,loaded:!1};return e[l].call(r.exports,r,r.exports,o),r.loaded=!0,r.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 r=function(e,o){d.vdom.attr(o,e)},t=Object.prototype.hasOwnProperty,a=function(e,o){for(var n in e)t.call(e,n)&&o(e[n],n)},d=n(1),u=n(2),i=n(3),s=n(4),c=n(5),m=l(c),p=n(6),b=l(p),v=n(10),f=l(v),k=n(13),h=l(k),g=s.appearance.values,y=s.type.values;o.APPEARANCE=g,o.TYPE=y;var x=(o.themes={adg2:h["default"]},{props:{appearance:s.appearance.enumeration,type:s.type.enumeration,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),r),d.vdom.attr("styles",o),d.vdom.elementOpenEnd(b["default"]),d.vdom.elementVoid(m["default"],null,null,"styles",o,"name","before"),d.vdom.elementVoid(m["default"],null,null,"styles",o),d.vdom.elementVoid(m["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),r=function(e){return e.reduce(function(e,o){return e[o.toUpperCase()]=o,e},{})},t=["primary","standard","subtle","link"],a=["button","submit"],d=r(t),u=r(a),i={attribute:"appearance",values:t,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),r=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[r(o)+"-slot-wrapper"]),l.vdom.elementVoid("slot",null,null,"name",o,"className",n[r(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 r=Object.prototype.hasOwnProperty,t=function(e,o){for(var n in e)r.call(e,n)&&o(e[n],n)},a=function m(e){var o=typeof e;"number"===o||"string"===o||"object"===o&&e instanceof String?d.vdom.text(e):"function"===o&&e.__jsxDOMWrapper?e():Array.isArray(e)?e.forEach(m):"object"===o&&"[object Object]"===String(e)&&t(e,m)},d=n(1),u=n(7),i=l(u),s=n(8),c=l(s);o["default"]=function(e,o){return d.vdom.elementOpen("span",null,null,"className",e.styles.root),d.vdom.elementOpen("button",null,null,"className",(0,i["default"])((0,c["default"])(e.styles,e)),"type",e.type,"disabled",e.disabled,"onmousedown",function(e){return e.preventDefault()}),d.vdom.elementOpen("span",null,null,"className",e.styles["button-content"]),a(o()),d.vdom.elementClose("span"),d.vdom.elementClose("button"),d.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 r=n(9),t=l(r),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,t["default"])(n,e.button,!0),(0,t["default"])(n,e.compact,o.compact),(0,t["default"])(n,e.disabled,o.disabled),(0,t["default"])(n,e.selected,o.selected&&!o.disabled),(0,t["default"])(n,e.primary,o.appearance===u&&!o.disabled&&!o.selected),(0,t["default"])(n,e.subtle,o.appearance===i&&!o.disabled&&!o.selected),(0,t["default"])(n,e.link,o.appearance===s&&!o.selected),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 r=n(11),t=l(r),a=n(12),d=20,u=14,i=8,s="\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=t["default"].bind(null,e);return{":host":{display:"inline-block"},":host(> _shadow_root_)":{display:"inline-block"},":host([disabled])":{"pointer-events":"none"},'::slotted([slot="before"])':{"margin-right":i+"px"},'::slotted([slot="after"])':{"margin-left":i+"px"},"before-slot-wrapper":{"align-self":"center",display:"flex"},"after-slot-wrapper":{"align-self":"center",display:"flex"},"button-content":{"align-items":"baseline",display:"inline-flex","flex-wrap":"nowrap"},"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-block","font-style":"normal","font-size":"inherit",height:o("button.height",4*i/u+"em"),"line-height":o("button.lineHeight",d/u),margin:"0",outline:"none",padding:o("button.padding",.75*i+"px "+1.5*i+"px"),"text-align":"center",transition:o("button.transition",s),"user-select":"none",border:o("button.border","none"),"&::-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"}},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*i/u+"em"),"padding-top":o("compact.paddingTop",i/3+"px"),"padding-bottom":o("compact.paddingBottom",i/3+"px")}}}},function(e,o){e.exports=require("lodash.get")},function(e,o){e.exports=require("akutil-shared-styles")},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var r=n(1),t=n(2),a=l(t);o["default"]=(0,r.define)("ak-button-theme-adg2",{render:function(){return r.vdom.elementOpen(a["default"],null,null,"id","ak-button-theme-adg2"),r.vdom.elementVoid(t.Prop,null,null,"name","button.padding","value","4px 10px"),r.vdom.elementVoid(t.Prop,null,null,"name","button.border","value","1px solid #ccc"),r.vdom.elementVoid(t.Prop,null,null,"name","button.transition","value","none"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.background","value","#f5f5f5"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.color","value","#333"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.hover.background","value","#e9e9e9"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.hover.borderColor","value","#999"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.active.boxShadow","value","inset 0 3px 6px 0 rgba(0,0,0,.1)"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.active.background","value","#f5f5f5"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.background","value","#3572b0"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.borderColor","value","transparent"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.color","value","#fff"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.fontWeight","value","700"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.hover.background","value","#2a67a5"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.hover.borderColor","value","transparent"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.active.background","value","#3572b0"),r.vdom.elementVoid(t.Prop,null,null,"name","subtle.color","value","#707070"),r.vdom.elementVoid(t.Prop,null,null,"name","subtle.borderColor","value","transparent"),r.vdom.elementVoid(t.Prop,null,null,"name","subtle.hover.color","value","#000"),r.vdom.elementVoid(t.Prop,null,null,"name","disabled.color","value","#999"),r.vdom.elementVoid(t.Prop,null,null,"name","disabled.background","value","#f5f5f5"),r.vdom.elementVoid(t.Prop,null,null,"name","disabled.boxShadow","value","none"),r.vdom.elementVoid(t.Prop,null,null,"name","selected.boxShadow","value","inset 0 3px 6px 0 rgba(0,0,0,.1)"),r.vdom.elementVoid(t.Prop,null,null,"name","selected.background","value","#f5f5f5"),r.vdom.elementVoid(t.Prop,null,null,"name","selected.color","value","#333"),r.vdom.elementVoid(t.Prop,null,null,"name","selected.hover.background","value","#f5f5f5"),r.vdom.elementVoid(t.Prop,null,null,"name","selected.hover.borderColor","value","#ccc"),r.vdom.elementVoid(t.Prop,null,null,"name","link.color","value","#3572b0"),r.vdom.elementVoid(t.Prop,null,null,"name","link.borderColor","value","transparent"),r.vdom.elementVoid(t.Prop,null,null,"name","link.boxShadow","value","none"),r.vdom.elementVoid(t.Prop,null,null,"name","link.hover.borderColor","value","transparent"),r.vdom.elementVoid(t.Prop,null,null,"name","link.active.boxShadow","value","none"),r.vdom.elementClose(a["default"])}})}]);

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

outline: "none",
padding: val("button.padding", .75 * grid + "px " + grid + "px"),
padding: val("button.padding", .75 * grid + "px " + 1.5 * grid + "px"),
"text-align": "center",

@@ -374,2 +374,3 @@ transition: val("button.transition", transitionValue),

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

@@ -376,0 +377,0 @@ background: val("primary.hover.background", _akutilSharedStyles.akColorB500),

@@ -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,r,t,a){return function(e){function o(l){if(n[l])return n[l].exports;var r=n[l]={exports:{},id:l,loaded:!1};return e[l].call(r.exports,r,r.exports,o),r.loaded=!0,r.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 r=function(e,o){d.vdom.attr(o,e)},t=Object.prototype.hasOwnProperty,a=function(e,o){for(var n in e)t.call(e,n)&&o(e[n],n)},d=n(1),u=n(2),i=n(3),s=n(4),c=n(5),m=l(c),p=n(6),b=l(p),v=n(10),f=l(v),k=n(13),h=l(k),g=s.appearance.values,y=s.type.values;o.APPEARANCE=g,o.TYPE=y;var x=(o.themes={adg2:h["default"]},{props:{appearance:s.appearance.enumeration,type:s.type.enumeration,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),r),d.vdom.attr("styles",o),d.vdom.elementOpenEnd(b["default"]),d.vdom.elementVoid(m["default"],null,null,"styles",o,"name","before"),d.vdom.elementVoid(m["default"],null,null,"styles",o),d.vdom.elementVoid(m["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),r=function(e){return e.reduce(function(e,o){return e[o.toUpperCase()]=o,e},{})},t=["primary","standard","subtle","link"],a=["button","submit"],d=r(t),u=r(a),i={attribute:"appearance",values:t,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),r=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[r(o)+"-slot-wrapper"]),l.vdom.elementVoid("slot",null,null,"name",o,"className",n[r(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 r=Object.prototype.hasOwnProperty,t=function(e,o){for(var n in e)r.call(e,n)&&o(e[n],n)},a=function m(e){var o=typeof e;"number"===o||"string"===o||"object"===o&&e instanceof String?d.vdom.text(e):"function"===o&&e.__jsxDOMWrapper?e():Array.isArray(e)?e.forEach(m):"object"===o&&"[object Object]"===String(e)&&t(e,m)},d=n(1),u=n(7),i=l(u),s=n(8),c=l(s);o["default"]=function(e,o){return d.vdom.elementOpen("span",null,null,"className",e.styles.root),d.vdom.elementOpen("button",null,null,"className",(0,i["default"])((0,c["default"])(e.styles,e)),"type",e.type,"disabled",e.disabled,"onmousedown",function(e){return e.preventDefault()}),d.vdom.elementOpen("span",null,null,"className",e.styles["button-content"]),a(o()),d.vdom.elementClose("span"),d.vdom.elementClose("button"),d.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 r=n(9),t=l(r),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,t["default"])(n,e.button,!0),(0,t["default"])(n,e.compact,o.compact),(0,t["default"])(n,e.disabled,o.disabled),(0,t["default"])(n,e.selected,o.selected&&!o.disabled),(0,t["default"])(n,e.primary,o.appearance===u&&!o.disabled&&!o.selected),(0,t["default"])(n,e.subtle,o.appearance===i&&!o.disabled&&!o.selected),(0,t["default"])(n,e.link,o.appearance===s&&!o.selected),n}},function(e,o){e.exports=r},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var r=n(11),t=l(r),a=n(12),d=20,u=14,i=8,s="\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=t["default"].bind(null,e);return{":host":{display:"inline-block"},":host(> _shadow_root_)":{display:"inline-block"},":host([disabled])":{"pointer-events":"none"},'::slotted([slot="before"])':{"margin-right":i+"px"},'::slotted([slot="after"])':{"margin-left":i+"px"},"before-slot-wrapper":{"align-self":"center",display:"flex"},"after-slot-wrapper":{"align-self":"center",display:"flex"},"button-content":{"align-items":"baseline",display:"inline-flex","flex-wrap":"nowrap"},"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-block","font-style":"normal","font-size":"inherit",height:o("button.height",4*i/u+"em"),"line-height":o("button.lineHeight",d/u),margin:"0",outline:"none",padding:o("button.padding",.75*i+"px "+i+"px"),"text-align":"center",transition:o("button.transition",s),"user-select":"none",border:o("button.border","none"),"&::-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"),"&: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"}},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*i/u+"em"),"padding-top":o("compact.paddingTop",i/3+"px"),"padding-bottom":o("compact.paddingBottom",i/3+"px")}}}},function(e,o){e.exports=t},function(e,o){e.exports=a},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var r=n(1),t=n(2),a=l(t);o["default"]=(0,r.define)("ak-button-theme-adg2",{render:function(){return r.vdom.elementOpen(a["default"],null,null,"id","ak-button-theme-adg2"),r.vdom.elementVoid(t.Prop,null,null,"name","button.padding","value","4px 10px"),r.vdom.elementVoid(t.Prop,null,null,"name","button.border","value","1px solid #ccc"),r.vdom.elementVoid(t.Prop,null,null,"name","button.transition","value","none"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.background","value","#f5f5f5"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.color","value","#333"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.hover.background","value","#e9e9e9"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.hover.borderColor","value","#999"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.active.boxShadow","value","inset 0 3px 6px 0 rgba(0,0,0,.1)"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.active.background","value","#f5f5f5"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.background","value","#3572b0"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.borderColor","value","transparent"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.color","value","#fff"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.fontWeight","value","700"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.hover.background","value","#2a67a5"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.hover.borderColor","value","transparent"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.active.background","value","#3572b0"),r.vdom.elementVoid(t.Prop,null,null,"name","subtle.color","value","#707070"),r.vdom.elementVoid(t.Prop,null,null,"name","subtle.borderColor","value","transparent"),r.vdom.elementVoid(t.Prop,null,null,"name","subtle.hover.color","value","#000"),r.vdom.elementVoid(t.Prop,null,null,"name","disabled.color","value","#999"),r.vdom.elementVoid(t.Prop,null,null,"name","disabled.background","value","#f5f5f5"),r.vdom.elementVoid(t.Prop,null,null,"name","disabled.boxShadow","value","none"),r.vdom.elementVoid(t.Prop,null,null,"name","selected.boxShadow","value","inset 0 3px 6px 0 rgba(0,0,0,.1)"),r.vdom.elementVoid(t.Prop,null,null,"name","selected.background","value","#f5f5f5"),r.vdom.elementVoid(t.Prop,null,null,"name","selected.color","value","#333"),r.vdom.elementVoid(t.Prop,null,null,"name","selected.hover.background","value","#f5f5f5"),r.vdom.elementVoid(t.Prop,null,null,"name","selected.hover.borderColor","value","#ccc"),r.vdom.elementVoid(t.Prop,null,null,"name","link.color","value","#3572b0"),r.vdom.elementVoid(t.Prop,null,null,"name","link.borderColor","value","transparent"),r.vdom.elementVoid(t.Prop,null,null,"name","link.boxShadow","value","none"),r.vdom.elementVoid(t.Prop,null,null,"name","link.hover.borderColor","value","transparent"),r.vdom.elementVoid(t.Prop,null,null,"name","link.active.boxShadow","value","none"),r.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,r,t,a){return function(e){function o(l){if(n[l])return n[l].exports;var r=n[l]={exports:{},id:l,loaded:!1};return e[l].call(r.exports,r,r.exports,o),r.loaded=!0,r.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 r=function(e,o){d.vdom.attr(o,e)},t=Object.prototype.hasOwnProperty,a=function(e,o){for(var n in e)t.call(e,n)&&o(e[n],n)},d=n(1),u=n(2),i=n(3),s=n(4),c=n(5),m=l(c),p=n(6),b=l(p),v=n(10),f=l(v),k=n(13),h=l(k),g=s.appearance.values,y=s.type.values;o.APPEARANCE=g,o.TYPE=y;var x=(o.themes={adg2:h["default"]},{props:{appearance:s.appearance.enumeration,type:s.type.enumeration,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),r),d.vdom.attr("styles",o),d.vdom.elementOpenEnd(b["default"]),d.vdom.elementVoid(m["default"],null,null,"styles",o,"name","before"),d.vdom.elementVoid(m["default"],null,null,"styles",o),d.vdom.elementVoid(m["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),r=function(e){return e.reduce(function(e,o){return e[o.toUpperCase()]=o,e},{})},t=["primary","standard","subtle","link"],a=["button","submit"],d=r(t),u=r(a),i={attribute:"appearance",values:t,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),r=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[r(o)+"-slot-wrapper"]),l.vdom.elementVoid("slot",null,null,"name",o,"className",n[r(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 r=Object.prototype.hasOwnProperty,t=function(e,o){for(var n in e)r.call(e,n)&&o(e[n],n)},a=function m(e){var o=typeof e;"number"===o||"string"===o||"object"===o&&e instanceof String?d.vdom.text(e):"function"===o&&e.__jsxDOMWrapper?e():Array.isArray(e)?e.forEach(m):"object"===o&&"[object Object]"===String(e)&&t(e,m)},d=n(1),u=n(7),i=l(u),s=n(8),c=l(s);o["default"]=function(e,o){return d.vdom.elementOpen("span",null,null,"className",e.styles.root),d.vdom.elementOpen("button",null,null,"className",(0,i["default"])((0,c["default"])(e.styles,e)),"type",e.type,"disabled",e.disabled,"onmousedown",function(e){return e.preventDefault()}),d.vdom.elementOpen("span",null,null,"className",e.styles["button-content"]),a(o()),d.vdom.elementClose("span"),d.vdom.elementClose("button"),d.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 r=n(9),t=l(r),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,t["default"])(n,e.button,!0),(0,t["default"])(n,e.compact,o.compact),(0,t["default"])(n,e.disabled,o.disabled),(0,t["default"])(n,e.selected,o.selected&&!o.disabled),(0,t["default"])(n,e.primary,o.appearance===u&&!o.disabled&&!o.selected),(0,t["default"])(n,e.subtle,o.appearance===i&&!o.disabled&&!o.selected),(0,t["default"])(n,e.link,o.appearance===s&&!o.selected),n}},function(e,o){e.exports=r},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var r=n(11),t=l(r),a=n(12),d=20,u=14,i=8,s="\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=t["default"].bind(null,e);return{":host":{display:"inline-block"},":host(> _shadow_root_)":{display:"inline-block"},":host([disabled])":{"pointer-events":"none"},'::slotted([slot="before"])':{"margin-right":i+"px"},'::slotted([slot="after"])':{"margin-left":i+"px"},"before-slot-wrapper":{"align-self":"center",display:"flex"},"after-slot-wrapper":{"align-self":"center",display:"flex"},"button-content":{"align-items":"baseline",display:"inline-flex","flex-wrap":"nowrap"},"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-block","font-style":"normal","font-size":"inherit",height:o("button.height",4*i/u+"em"),"line-height":o("button.lineHeight",d/u),margin:"0",outline:"none",padding:o("button.padding",.75*i+"px "+1.5*i+"px"),"text-align":"center",transition:o("button.transition",s),"user-select":"none",border:o("button.border","none"),"&::-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"}},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*i/u+"em"),"padding-top":o("compact.paddingTop",i/3+"px"),"padding-bottom":o("compact.paddingBottom",i/3+"px")}}}},function(e,o){e.exports=t},function(e,o){e.exports=a},function(e,o,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var r=n(1),t=n(2),a=l(t);o["default"]=(0,r.define)("ak-button-theme-adg2",{render:function(){return r.vdom.elementOpen(a["default"],null,null,"id","ak-button-theme-adg2"),r.vdom.elementVoid(t.Prop,null,null,"name","button.padding","value","4px 10px"),r.vdom.elementVoid(t.Prop,null,null,"name","button.border","value","1px solid #ccc"),r.vdom.elementVoid(t.Prop,null,null,"name","button.transition","value","none"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.background","value","#f5f5f5"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.color","value","#333"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.hover.background","value","#e9e9e9"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.hover.borderColor","value","#999"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.active.boxShadow","value","inset 0 3px 6px 0 rgba(0,0,0,.1)"),r.vdom.elementVoid(t.Prop,null,null,"name","standard.active.background","value","#f5f5f5"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.background","value","#3572b0"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.borderColor","value","transparent"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.color","value","#fff"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.fontWeight","value","700"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.hover.background","value","#2a67a5"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.hover.borderColor","value","transparent"),r.vdom.elementVoid(t.Prop,null,null,"name","primary.active.background","value","#3572b0"),r.vdom.elementVoid(t.Prop,null,null,"name","subtle.color","value","#707070"),r.vdom.elementVoid(t.Prop,null,null,"name","subtle.borderColor","value","transparent"),r.vdom.elementVoid(t.Prop,null,null,"name","subtle.hover.color","value","#000"),r.vdom.elementVoid(t.Prop,null,null,"name","disabled.color","value","#999"),r.vdom.elementVoid(t.Prop,null,null,"name","disabled.background","value","#f5f5f5"),r.vdom.elementVoid(t.Prop,null,null,"name","disabled.boxShadow","value","none"),r.vdom.elementVoid(t.Prop,null,null,"name","selected.boxShadow","value","inset 0 3px 6px 0 rgba(0,0,0,.1)"),r.vdom.elementVoid(t.Prop,null,null,"name","selected.background","value","#f5f5f5"),r.vdom.elementVoid(t.Prop,null,null,"name","selected.color","value","#333"),r.vdom.elementVoid(t.Prop,null,null,"name","selected.hover.background","value","#f5f5f5"),r.vdom.elementVoid(t.Prop,null,null,"name","selected.hover.borderColor","value","#ccc"),r.vdom.elementVoid(t.Prop,null,null,"name","link.color","value","#3572b0"),r.vdom.elementVoid(t.Prop,null,null,"name","link.borderColor","value","transparent"),r.vdom.elementVoid(t.Prop,null,null,"name","link.boxShadow","value","none"),r.vdom.elementVoid(t.Prop,null,null,"name","link.hover.borderColor","value","transparent"),r.vdom.elementVoid(t.Prop,null,null,"name","link.active.boxShadow","value","none"),r.vdom.elementClose(a["default"])}})}])});
{
"name": "ak-button",
"version": "1.6.1",
"version": "1.6.2",
"description": "ak-button webcomponent",

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

[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://Commitizen.github.io/cz-cli/)
[![semantic-release](https://img.shields.io/badge/GitHub-semantic_release-ffab00.svg)](https://github.com/semantic-release/semantic-release)
[![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.6.1)
[![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.6.2)

@@ -10,9 +10,9 @@ # Button

![Example buttons](https://bytebucket.org/atlassian/atlaskit/raw/fc391fb84edcbbbc55c9bbdeca816b144e792813/packages/ak-button/docs/button_1.png)
![Example buttons](https://bytebucket.org/atlassian/atlaskit/raw/4a12b5eb6661e8378e955eb6f9dbc89e1c2937cc/packages/ak-button/docs/button_1.png)
![Example buttons](https://bytebucket.org/atlassian/atlaskit/raw/fc391fb84edcbbbc55c9bbdeca816b144e792813/packages/ak-button/docs/button_2.png)
![Example buttons](https://bytebucket.org/atlassian/atlaskit/raw/4a12b5eb6661e8378e955eb6f9dbc89e1c2937cc/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.6.1/).
Interact with a [live demo of the ak-button component](https://aui-cdn.atlassian.com/atlaskit/stories/ak-button/1.6.2/).

@@ -200,3 +200,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.6.1).
Ask a question in our [forum](https://answers.atlassian.com/questions/ask?title=AtlasKit%3A%20&topics=atlaskit,ak-button,ak-button@1.6.2).

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