You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@atlaskit/modal-dialog

Package Overview
Dependencies
4
Maintainers
1
Versions
310
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.9 to 1.2.10

14

CHANGELOG.md

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

<a name="1.2.9"></a>
## 1.2.9 (2017-02-28)
<a name="1.2.10"></a>
## 1.2.10 (2017-03-21)
<a name="1.2.10"></a>
## 1.2.10 (2017-03-21)
### Bug Fixes
* **package:** maintainers for all the packages were added ([261d00a](https://bitbucket.org/atlassian/atlaskit/commits/261d00a))
<a name="1.2.9"></a>

@@ -7,0 +17,0 @@ ## 1.2.9 (2017-02-28)

38

dist/bundle-cjs.js

@@ -199,23 +199,23 @@ module.exports = /******/

// module
exports.push([ module.id, '._1TSxmTpgq_iBbsmFnr4umq{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._24VAejaPiq1J4_4L8yeTg3{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;max-width:calc(100% - 120px);margin:0 auto;height:calc(100% - 120px);margin-top:60px;position:relative;z-index:510}._24VAejaPiq1J4_4L8yeTg3._7PO5jWajOBBEpteWSiDUz{width:400px}._24VAejaPiq1J4_4L8yeTg3.GZpMeKtvtrodrL94HlMMF{width:600px}._24VAejaPiq1J4_4L8yeTg3._2xcaeI7T_ltl2BSjYeh497{width:800px}._24VAejaPiq1J4_4L8yeTg3._6Fr8xQ5BgHW--N4eU_kQL{width:968px}._24VAejaPiq1J4_4L8yeTg3 .cJCTwzV1UzeffjSbMb_v7{-webkit-box-flex:0;flex:0 0 auto;padding:16px;box-shadow:0 0 0 transparent,0 0 0 transparent;background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-left-radius:0;border-bottom-right-radius:0}._24VAejaPiq1J4_4L8yeTg3 ._13CfchAlTGUcQ3Pms2Ti32{-webkit-box-flex:0;flex:0 1 auto;overflow:auto;box-sizing:border-box;padding:0 16px;position:relative;box-shadow:inset 0 2px 0 0 #ebecf0,inset 0 -2px 0 0 #ebecf0;background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}._24VAejaPiq1J4_4L8yeTg3 ._13CfchAlTGUcQ3Pms2Ti32:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._24VAejaPiq1J4_4L8yeTg3 ._13CfchAlTGUcQ3Pms2Ti32:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._24VAejaPiq1J4_4L8yeTg3 ._2Z1IOt3liuCCTRWLJEXB8O{-webkit-box-flex:0;flex:0 0 auto;padding:16px;box-shadow:0 0 0 transparent,0 0 0 transparent;background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}', "" ]),
exports.push([ module.id, '.dwYUNQrhEEnrK6R3E4yqE{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._2_dl1M2vDidVz0zhcwvQEs{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;max-width:calc(100% - 120px);margin:0 auto;height:calc(100% - 120px);margin-top:60px;position:relative;z-index:510}._2_dl1M2vDidVz0zhcwvQEs._3s3Eqk3g9_Pqy0jVIy-PE1{width:400px}._2_dl1M2vDidVz0zhcwvQEs.z7DwHK6YvWQelacy9RlyS{width:600px}._2_dl1M2vDidVz0zhcwvQEs.rEXJxS6dWdOun-TPrAoNZ{width:800px}._2_dl1M2vDidVz0zhcwvQEs._2_RsKUwjZ4KmFi_wFdT393{width:968px}._2_dl1M2vDidVz0zhcwvQEs .hhF9tdcSolaJFXJxTZzU1{-webkit-box-flex:0;flex:0 0 auto;padding:16px;box-shadow:0 0 0 transparent,0 0 0 transparent;background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-left-radius:0;border-bottom-right-radius:0}._2_dl1M2vDidVz0zhcwvQEs ._3CwSkQihsP7w9Hl7h6D5sC{-webkit-box-flex:0;flex:0 1 auto;overflow:auto;box-sizing:border-box;padding:0 16px;position:relative;box-shadow:inset 0 2px 0 0 #ebecf0,inset 0 -2px 0 0 #ebecf0;background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}._2_dl1M2vDidVz0zhcwvQEs ._3CwSkQihsP7w9Hl7h6D5sC:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._2_dl1M2vDidVz0zhcwvQEs ._3CwSkQihsP7w9Hl7h6D5sC:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._2_dl1M2vDidVz0zhcwvQEs ._3JoxB3PkC67Pve4QfQYjWc{-webkit-box-flex:0;flex:0 0 auto;padding:16px;box-shadow:0 0 0 transparent,0 0 0 transparent;background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}', "" ]),
// exports
exports.locals = {
"modal-wrapper": "_1TSxmTpgq_iBbsmFnr4umq",
modalWrapper: "_1TSxmTpgq_iBbsmFnr4umq",
"modal-positioner": "_24VAejaPiq1J4_4L8yeTg3",
modalPositioner: "_24VAejaPiq1J4_4L8yeTg3",
small: "_7PO5jWajOBBEpteWSiDUz",
small: "_7PO5jWajOBBEpteWSiDUz",
medium: "GZpMeKtvtrodrL94HlMMF",
medium: "GZpMeKtvtrodrL94HlMMF",
large: "_2xcaeI7T_ltl2BSjYeh497",
large: "_2xcaeI7T_ltl2BSjYeh497",
"x-large": "_6Fr8xQ5BgHW--N4eU_kQL",
xLarge: "_6Fr8xQ5BgHW--N4eU_kQL",
"header-flex": "cJCTwzV1UzeffjSbMb_v7",
headerFlex: "cJCTwzV1UzeffjSbMb_v7",
"content-flex": "_13CfchAlTGUcQ3Pms2Ti32",
contentFlex: "_13CfchAlTGUcQ3Pms2Ti32",
"footer-flex": "_2Z1IOt3liuCCTRWLJEXB8O",
footerFlex: "_2Z1IOt3liuCCTRWLJEXB8O"
"modal-wrapper": "dwYUNQrhEEnrK6R3E4yqE",
modalWrapper: "dwYUNQrhEEnrK6R3E4yqE",
"modal-positioner": "_2_dl1M2vDidVz0zhcwvQEs",
modalPositioner: "_2_dl1M2vDidVz0zhcwvQEs",
small: "_3s3Eqk3g9_Pqy0jVIy-PE1",
small: "_3s3Eqk3g9_Pqy0jVIy-PE1",
medium: "z7DwHK6YvWQelacy9RlyS",
medium: "z7DwHK6YvWQelacy9RlyS",
large: "rEXJxS6dWdOun-TPrAoNZ",
large: "rEXJxS6dWdOun-TPrAoNZ",
"x-large": "_2_RsKUwjZ4KmFi_wFdT393",
xLarge: "_2_RsKUwjZ4KmFi_wFdT393",
"header-flex": "hhF9tdcSolaJFXJxTZzU1",
headerFlex: "hhF9tdcSolaJFXJxTZzU1",
"content-flex": "_3CwSkQihsP7w9Hl7h6D5sC",
contentFlex: "_3CwSkQihsP7w9Hl7h6D5sC",
"footer-flex": "_3JoxB3PkC67Pve4QfQYjWc",
footerFlex: "_3JoxB3PkC67Pve4QfQYjWc"
};

@@ -222,0 +222,0 @@ }, /* 16 */

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

module.exports=function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(4)},,,,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(5),i=n(o),a=r(6),l=n(a),s=r(7),u=n(s),d=r(8),f=n(d),p=r(9),c=n(p),h=r(10),m=n(h),b=r(11),x=n(b),g=r(12),v=n(g),_=r(13),y=n(_),T=r(14),L=n(T),j=r(18),w=n(j),P={values:["small","medium","large","x-large"],defaultValue:"medium"},C=function(e){function t(){var e,r,n,o;(0,f.default)(this,t);for(var i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return r=n=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(a))),n.componentDidMount=function(){document.addEventListener("keydown",n.handleKeyDown)},n.componentWillUnmount=function(){document.removeEventListener("keydown",n.handleKeyDown)},n.handleKeyDown=function(e){var t=27;e.keyCode===t&&n.props.onDialogDismissed(e)},o=r,(0,m.default)(n,o)}return(0,x.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e;if(!this.props.isOpen)return null;var t=this.props,r=t.onDialogDismissed,n=t.header,o=t.children,a=t.footer,s=t.width,u=P.values.indexOf(s)===-1?{style:{width:s}}:{};return v.default.createElement("div",{className:L.default.modalWrapper},v.default.createElement(w.default,{isTinted:!0,onBlanketClicked:r}),v.default.createElement("div",(0,i.default)({className:(0,y.default)([L.default.modalPositioner,(e={},(0,l.default)(e,L.default.small,"small"===s),(0,l.default)(e,L.default.medium,"medium"===s),(0,l.default)(e,L.default.large,"large"===s),(0,l.default)(e,L.default.xLarge,"x-large"===s),e)])},u),n?v.default.createElement("div",{className:L.default.headerFlex},n):null,v.default.createElement("div",{className:L.default.contentFlex},o),a?v.default.createElement("div",{className:L.default.footerFlex},a):null))}}]),t}(g.PureComponent);C.propTypes={isOpen:g.PropTypes.bool,header:g.PropTypes.node,children:g.PropTypes.node,footer:g.PropTypes.node,width:g.PropTypes.oneOfType([g.PropTypes.number,g.PropTypes.string,g.PropTypes.oneOf(P.values)]),onDialogDismissed:g.PropTypes.func},C.defaultProps={isOpen:!1,onDialogDismissed:function(){},width:P.defaultValue},t.default=C},function(e,t){e.exports=require("babel-runtime/helpers/extends")},function(e,t){e.exports=require("babel-runtime/helpers/defineProperty")},function(e,t){e.exports=require("babel-runtime/core-js/object/get-prototype-of")},function(e,t){e.exports=require("babel-runtime/helpers/classCallCheck")},function(e,t){e.exports=require("babel-runtime/helpers/createClass")},function(e,t){e.exports=require("babel-runtime/helpers/possibleConstructorReturn")},function(e,t){e.exports=require("babel-runtime/helpers/inherits")},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("classnames")},function(e,t,r){var n=r(15);"string"==typeof n&&(n=[[e.id,n,""]]),r(17)(n,{}),n.locals&&(e.exports=n.locals)},function(e,t,r){t=e.exports=r(16)(),t.push([e.id,'._1TSxmTpgq_iBbsmFnr4umq{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._24VAejaPiq1J4_4L8yeTg3{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;max-width:calc(100% - 120px);margin:0 auto;height:calc(100% - 120px);margin-top:60px;position:relative;z-index:510}._24VAejaPiq1J4_4L8yeTg3._7PO5jWajOBBEpteWSiDUz{width:400px}._24VAejaPiq1J4_4L8yeTg3.GZpMeKtvtrodrL94HlMMF{width:600px}._24VAejaPiq1J4_4L8yeTg3._2xcaeI7T_ltl2BSjYeh497{width:800px}._24VAejaPiq1J4_4L8yeTg3._6Fr8xQ5BgHW--N4eU_kQL{width:968px}._24VAejaPiq1J4_4L8yeTg3 .cJCTwzV1UzeffjSbMb_v7{-webkit-box-flex:0;flex:0 0 auto;padding:16px;box-shadow:0 0 0 transparent,0 0 0 transparent;background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-left-radius:0;border-bottom-right-radius:0}._24VAejaPiq1J4_4L8yeTg3 ._13CfchAlTGUcQ3Pms2Ti32{-webkit-box-flex:0;flex:0 1 auto;overflow:auto;box-sizing:border-box;padding:0 16px;position:relative;box-shadow:inset 0 2px 0 0 #ebecf0,inset 0 -2px 0 0 #ebecf0;background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}._24VAejaPiq1J4_4L8yeTg3 ._13CfchAlTGUcQ3Pms2Ti32:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._24VAejaPiq1J4_4L8yeTg3 ._13CfchAlTGUcQ3Pms2Ti32:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._24VAejaPiq1J4_4L8yeTg3 ._2Z1IOt3liuCCTRWLJEXB8O{-webkit-box-flex:0;flex:0 0 auto;padding:16px;box-shadow:0 0 0 transparent,0 0 0 transparent;background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}',""]),t.locals={"modal-wrapper":"_1TSxmTpgq_iBbsmFnr4umq",modalWrapper:"_1TSxmTpgq_iBbsmFnr4umq","modal-positioner":"_24VAejaPiq1J4_4L8yeTg3",modalPositioner:"_24VAejaPiq1J4_4L8yeTg3",small:"_7PO5jWajOBBEpteWSiDUz",small:"_7PO5jWajOBBEpteWSiDUz",medium:"GZpMeKtvtrodrL94HlMMF",medium:"GZpMeKtvtrodrL94HlMMF",large:"_2xcaeI7T_ltl2BSjYeh497",large:"_2xcaeI7T_ltl2BSjYeh497","x-large":"_6Fr8xQ5BgHW--N4eU_kQL",xLarge:"_6Fr8xQ5BgHW--N4eU_kQL","header-flex":"cJCTwzV1UzeffjSbMb_v7",headerFlex:"cJCTwzV1UzeffjSbMb_v7","content-flex":"_13CfchAlTGUcQ3Pms2Ti32",contentFlex:"_13CfchAlTGUcQ3Pms2Ti32","footer-flex":"_2Z1IOt3liuCCTRWLJEXB8O",footerFlex:"_2Z1IOt3liuCCTRWLJEXB8O"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var r=this[t];r[2]?e.push("@media "+r[2]+"{"+r[1]+"}"):e.push(r[1])}return e.join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(n[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&n[a[0]]||(r&&!a[2]?a[2]=r:r&&(a[2]="("+a[2]+") and ("+r+")"),e.push(a))}},e}},function(e,t,r){function n(e,t){for(var r=0;r<e.length;r++){var n=e[r],o=c[n.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](n.parts[i]);for(;i<n.parts.length;i++)o.parts.push(u(n.parts[i],t))}else{for(var a=[],i=0;i<n.parts.length;i++)a.push(u(n.parts[i],t));c[n.id]={id:n.id,refs:1,parts:a}}}}function o(e){for(var t=[],r={},n=0;n<e.length;n++){var o=e[n],i=o[0],a=o[1],l=o[2],s=o[3],u={css:a,media:l,sourceMap:s};r[i]?r[i].parts.push(u):t.push(r[i]={id:i,parts:[u]})}return t}function i(e,t){var r=b(),n=v[v.length-1];if("top"===e.insertAt)n?n.nextSibling?r.insertBefore(t,n.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),v.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=v.indexOf(e);t>=0&&v.splice(t,1)}function l(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function u(e,t){var r,n,o;if(t.singleton){var i=g++;r=x||(x=l(t)),n=d.bind(null,r,i,!1),o=d.bind(null,r,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=s(t),n=p.bind(null,r),o=function(){a(r),r.href&&URL.revokeObjectURL(r.href)}):(r=l(t),n=f.bind(null,r),o=function(){a(r)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}function d(e,t,r,n){var o=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function f(e,t){var r=t.css,n=t.media;if(n&&e.setAttribute("media",n),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}function p(e,t){var r=t.css,n=t.sourceMap;n&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var o=new Blob([r],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var c={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),b=h(function(){return document.head||document.getElementsByTagName("head")[0]}),x=null,g=0,v=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var r=o(e);return n(r,t),function(e){for(var i=[],a=0;a<r.length;a++){var l=r[a],s=c[l.id];s.refs--,i.push(s)}if(e){var u=o(e);n(u,t)}for(var a=0;a<i.length;a++){var s=i[a];if(0===s.refs){for(var d=0;d<s.parts.length;d++)s.parts[d]();delete c[s.id]}}}};var _=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=require("@atlaskit/blanket")}]);
module.exports=function(e){function t(o){if(r[o])return r[o].exports;var n=r[o]={exports:{},id:o,loaded:!1};return e[o].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(4)},,,,function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=r(5),i=o(n),a=r(6),l=o(a),s=r(7),d=o(s),u=r(8),f=o(u),p=r(9),c=o(p),h=r(10),m=o(h),v=r(11),x=o(v),b=r(12),g=o(b),w=r(13),y=o(w),_=r(14),E=o(_),k=r(18),P=o(k),z={values:["small","medium","large","x-large"],defaultValue:"medium"},C=function(e){function t(){var e,r,o,n;(0,f.default)(this,t);for(var i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return r=o=(0,m.default)(this,(e=t.__proto__||(0,d.default)(t)).call.apply(e,[this].concat(a))),o.componentDidMount=function(){document.addEventListener("keydown",o.handleKeyDown)},o.componentWillUnmount=function(){document.removeEventListener("keydown",o.handleKeyDown)},o.handleKeyDown=function(e){var t=27;e.keyCode===t&&o.props.onDialogDismissed(e)},n=r,(0,m.default)(o,n)}return(0,x.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e;if(!this.props.isOpen)return null;var t=this.props,r=t.onDialogDismissed,o=t.header,n=t.children,a=t.footer,s=t.width,d=z.values.indexOf(s)===-1?{style:{width:s}}:{};return g.default.createElement("div",{className:E.default.modalWrapper},g.default.createElement(P.default,{isTinted:!0,onBlanketClicked:r}),g.default.createElement("div",(0,i.default)({className:(0,y.default)([E.default.modalPositioner,(e={},(0,l.default)(e,E.default.small,"small"===s),(0,l.default)(e,E.default.medium,"medium"===s),(0,l.default)(e,E.default.large,"large"===s),(0,l.default)(e,E.default.xLarge,"x-large"===s),e)])},d),o?g.default.createElement("div",{className:E.default.headerFlex},o):null,g.default.createElement("div",{className:E.default.contentFlex},n),a?g.default.createElement("div",{className:E.default.footerFlex},a):null))}}]),t}(b.PureComponent);C.propTypes={isOpen:b.PropTypes.bool,header:b.PropTypes.node,children:b.PropTypes.node,footer:b.PropTypes.node,width:b.PropTypes.oneOfType([b.PropTypes.number,b.PropTypes.string,b.PropTypes.oneOf(z.values)]),onDialogDismissed:b.PropTypes.func},C.defaultProps={isOpen:!1,onDialogDismissed:function(){},width:z.defaultValue},t.default=C},function(e,t){e.exports=require("babel-runtime/helpers/extends")},function(e,t){e.exports=require("babel-runtime/helpers/defineProperty")},function(e,t){e.exports=require("babel-runtime/core-js/object/get-prototype-of")},function(e,t){e.exports=require("babel-runtime/helpers/classCallCheck")},function(e,t){e.exports=require("babel-runtime/helpers/createClass")},function(e,t){e.exports=require("babel-runtime/helpers/possibleConstructorReturn")},function(e,t){e.exports=require("babel-runtime/helpers/inherits")},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("classnames")},function(e,t,r){var o=r(15);"string"==typeof o&&(o=[[e.id,o,""]]),r(17)(o,{}),o.locals&&(e.exports=o.locals)},function(e,t,r){t=e.exports=r(16)(),t.push([e.id,'.dwYUNQrhEEnrK6R3E4yqE{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._2_dl1M2vDidVz0zhcwvQEs{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;max-width:calc(100% - 120px);margin:0 auto;height:calc(100% - 120px);margin-top:60px;position:relative;z-index:510}._2_dl1M2vDidVz0zhcwvQEs._3s3Eqk3g9_Pqy0jVIy-PE1{width:400px}._2_dl1M2vDidVz0zhcwvQEs.z7DwHK6YvWQelacy9RlyS{width:600px}._2_dl1M2vDidVz0zhcwvQEs.rEXJxS6dWdOun-TPrAoNZ{width:800px}._2_dl1M2vDidVz0zhcwvQEs._2_RsKUwjZ4KmFi_wFdT393{width:968px}._2_dl1M2vDidVz0zhcwvQEs .hhF9tdcSolaJFXJxTZzU1{-webkit-box-flex:0;flex:0 0 auto;padding:16px;box-shadow:0 0 0 transparent,0 0 0 transparent;background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-left-radius:0;border-bottom-right-radius:0}._2_dl1M2vDidVz0zhcwvQEs ._3CwSkQihsP7w9Hl7h6D5sC{-webkit-box-flex:0;flex:0 1 auto;overflow:auto;box-sizing:border-box;padding:0 16px;position:relative;box-shadow:inset 0 2px 0 0 #ebecf0,inset 0 -2px 0 0 #ebecf0;background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}._2_dl1M2vDidVz0zhcwvQEs ._3CwSkQihsP7w9Hl7h6D5sC:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._2_dl1M2vDidVz0zhcwvQEs ._3CwSkQihsP7w9Hl7h6D5sC:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._2_dl1M2vDidVz0zhcwvQEs ._3JoxB3PkC67Pve4QfQYjWc{-webkit-box-flex:0;flex:0 0 auto;padding:16px;box-shadow:0 0 0 transparent,0 0 0 transparent;background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}',""]),t.locals={"modal-wrapper":"dwYUNQrhEEnrK6R3E4yqE",modalWrapper:"dwYUNQrhEEnrK6R3E4yqE","modal-positioner":"_2_dl1M2vDidVz0zhcwvQEs",modalPositioner:"_2_dl1M2vDidVz0zhcwvQEs",small:"_3s3Eqk3g9_Pqy0jVIy-PE1",small:"_3s3Eqk3g9_Pqy0jVIy-PE1",medium:"z7DwHK6YvWQelacy9RlyS",medium:"z7DwHK6YvWQelacy9RlyS",large:"rEXJxS6dWdOun-TPrAoNZ",large:"rEXJxS6dWdOun-TPrAoNZ","x-large":"_2_RsKUwjZ4KmFi_wFdT393",xLarge:"_2_RsKUwjZ4KmFi_wFdT393","header-flex":"hhF9tdcSolaJFXJxTZzU1",headerFlex:"hhF9tdcSolaJFXJxTZzU1","content-flex":"_3CwSkQihsP7w9Hl7h6D5sC",contentFlex:"_3CwSkQihsP7w9Hl7h6D5sC","footer-flex":"_3JoxB3PkC67Pve4QfQYjWc",footerFlex:"_3JoxB3PkC67Pve4QfQYjWc"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var r=this[t];r[2]?e.push("@media "+r[2]+"{"+r[1]+"}"):e.push(r[1])}return e.join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},n=0;n<this.length;n++){var i=this[n][0];"number"==typeof i&&(o[i]=!0)}for(n=0;n<t.length;n++){var a=t[n];"number"==typeof a[0]&&o[a[0]]||(r&&!a[2]?a[2]=r:r&&(a[2]="("+a[2]+") and ("+r+")"),e.push(a))}},e}},function(e,t,r){function o(e,t){for(var r=0;r<e.length;r++){var o=e[r],n=c[o.id];if(n){n.refs++;for(var i=0;i<n.parts.length;i++)n.parts[i](o.parts[i]);for(;i<o.parts.length;i++)n.parts.push(d(o.parts[i],t))}else{for(var a=[],i=0;i<o.parts.length;i++)a.push(d(o.parts[i],t));c[o.id]={id:o.id,refs:1,parts:a}}}}function n(e){for(var t=[],r={},o=0;o<e.length;o++){var n=e[o],i=n[0],a=n[1],l=n[2],s=n[3],d={css:a,media:l,sourceMap:s};r[i]?r[i].parts.push(d):t.push(r[i]={id:i,parts:[d]})}return t}function i(e,t){var r=v(),o=g[g.length-1];if("top"===e.insertAt)o?o.nextSibling?r.insertBefore(t,o.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),g.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=g.indexOf(e);t>=0&&g.splice(t,1)}function l(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function d(e,t){var r,o,n;if(t.singleton){var i=b++;r=x||(x=l(t)),o=u.bind(null,r,i,!1),n=u.bind(null,r,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=s(t),o=p.bind(null,r),n=function(){a(r),r.href&&URL.revokeObjectURL(r.href)}):(r=l(t),o=f.bind(null,r),n=function(){a(r)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else n()}}function u(e,t,r,o){var n=r?"":o.css;if(e.styleSheet)e.styleSheet.cssText=w(t,n);else{var i=document.createTextNode(n),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function f(e,t){var r=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}function p(e,t){var r=t.css,o=t.sourceMap;o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var n=new Blob([r],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(n),i&&URL.revokeObjectURL(i)}var c={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=h(function(){return document.head||document.getElementsByTagName("head")[0]}),x=null,b=0,g=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var r=n(e);return o(r,t),function(e){for(var i=[],a=0;a<r.length;a++){var l=r[a],s=c[l.id];s.refs--,i.push(s)}if(e){var d=n(e);o(d,t)}for(var a=0;a<i.length;a++){var s=i[a];if(0===s.refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete c[s.id]}}}};var w=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=require("@atlaskit/blanket")}]);

@@ -202,23 +202,23 @@ !function(root, factory) {

// module
exports.push([ module.id, '._1TSxmTpgq_iBbsmFnr4umq{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._24VAejaPiq1J4_4L8yeTg3{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;max-width:calc(100% - 120px);margin:0 auto;height:calc(100% - 120px);margin-top:60px;position:relative;z-index:510}._24VAejaPiq1J4_4L8yeTg3._7PO5jWajOBBEpteWSiDUz{width:400px}._24VAejaPiq1J4_4L8yeTg3.GZpMeKtvtrodrL94HlMMF{width:600px}._24VAejaPiq1J4_4L8yeTg3._2xcaeI7T_ltl2BSjYeh497{width:800px}._24VAejaPiq1J4_4L8yeTg3._6Fr8xQ5BgHW--N4eU_kQL{width:968px}._24VAejaPiq1J4_4L8yeTg3 .cJCTwzV1UzeffjSbMb_v7{-webkit-box-flex:0;flex:0 0 auto;padding:16px;box-shadow:0 0 0 transparent,0 0 0 transparent;background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-left-radius:0;border-bottom-right-radius:0}._24VAejaPiq1J4_4L8yeTg3 ._13CfchAlTGUcQ3Pms2Ti32{-webkit-box-flex:0;flex:0 1 auto;overflow:auto;box-sizing:border-box;padding:0 16px;position:relative;box-shadow:inset 0 2px 0 0 #ebecf0,inset 0 -2px 0 0 #ebecf0;background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}._24VAejaPiq1J4_4L8yeTg3 ._13CfchAlTGUcQ3Pms2Ti32:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._24VAejaPiq1J4_4L8yeTg3 ._13CfchAlTGUcQ3Pms2Ti32:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._24VAejaPiq1J4_4L8yeTg3 ._2Z1IOt3liuCCTRWLJEXB8O{-webkit-box-flex:0;flex:0 0 auto;padding:16px;box-shadow:0 0 0 transparent,0 0 0 transparent;background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}', "" ]),
exports.push([ module.id, '.dwYUNQrhEEnrK6R3E4yqE{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._2_dl1M2vDidVz0zhcwvQEs{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;max-width:calc(100% - 120px);margin:0 auto;height:calc(100% - 120px);margin-top:60px;position:relative;z-index:510}._2_dl1M2vDidVz0zhcwvQEs._3s3Eqk3g9_Pqy0jVIy-PE1{width:400px}._2_dl1M2vDidVz0zhcwvQEs.z7DwHK6YvWQelacy9RlyS{width:600px}._2_dl1M2vDidVz0zhcwvQEs.rEXJxS6dWdOun-TPrAoNZ{width:800px}._2_dl1M2vDidVz0zhcwvQEs._2_RsKUwjZ4KmFi_wFdT393{width:968px}._2_dl1M2vDidVz0zhcwvQEs .hhF9tdcSolaJFXJxTZzU1{-webkit-box-flex:0;flex:0 0 auto;padding:16px;box-shadow:0 0 0 transparent,0 0 0 transparent;background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-left-radius:0;border-bottom-right-radius:0}._2_dl1M2vDidVz0zhcwvQEs ._3CwSkQihsP7w9Hl7h6D5sC{-webkit-box-flex:0;flex:0 1 auto;overflow:auto;box-sizing:border-box;padding:0 16px;position:relative;box-shadow:inset 0 2px 0 0 #ebecf0,inset 0 -2px 0 0 #ebecf0;background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}._2_dl1M2vDidVz0zhcwvQEs ._3CwSkQihsP7w9Hl7h6D5sC:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._2_dl1M2vDidVz0zhcwvQEs ._3CwSkQihsP7w9Hl7h6D5sC:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._2_dl1M2vDidVz0zhcwvQEs ._3JoxB3PkC67Pve4QfQYjWc{-webkit-box-flex:0;flex:0 0 auto;padding:16px;box-shadow:0 0 0 transparent,0 0 0 transparent;background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}', "" ]),
// exports
exports.locals = {
"modal-wrapper": "_1TSxmTpgq_iBbsmFnr4umq",
modalWrapper: "_1TSxmTpgq_iBbsmFnr4umq",
"modal-positioner": "_24VAejaPiq1J4_4L8yeTg3",
modalPositioner: "_24VAejaPiq1J4_4L8yeTg3",
small: "_7PO5jWajOBBEpteWSiDUz",
small: "_7PO5jWajOBBEpteWSiDUz",
medium: "GZpMeKtvtrodrL94HlMMF",
medium: "GZpMeKtvtrodrL94HlMMF",
large: "_2xcaeI7T_ltl2BSjYeh497",
large: "_2xcaeI7T_ltl2BSjYeh497",
"x-large": "_6Fr8xQ5BgHW--N4eU_kQL",
xLarge: "_6Fr8xQ5BgHW--N4eU_kQL",
"header-flex": "cJCTwzV1UzeffjSbMb_v7",
headerFlex: "cJCTwzV1UzeffjSbMb_v7",
"content-flex": "_13CfchAlTGUcQ3Pms2Ti32",
contentFlex: "_13CfchAlTGUcQ3Pms2Ti32",
"footer-flex": "_2Z1IOt3liuCCTRWLJEXB8O",
footerFlex: "_2Z1IOt3liuCCTRWLJEXB8O"
"modal-wrapper": "dwYUNQrhEEnrK6R3E4yqE",
modalWrapper: "dwYUNQrhEEnrK6R3E4yqE",
"modal-positioner": "_2_dl1M2vDidVz0zhcwvQEs",
modalPositioner: "_2_dl1M2vDidVz0zhcwvQEs",
small: "_3s3Eqk3g9_Pqy0jVIy-PE1",
small: "_3s3Eqk3g9_Pqy0jVIy-PE1",
medium: "z7DwHK6YvWQelacy9RlyS",
medium: "z7DwHK6YvWQelacy9RlyS",
large: "rEXJxS6dWdOun-TPrAoNZ",
large: "rEXJxS6dWdOun-TPrAoNZ",
"x-large": "_2_RsKUwjZ4KmFi_wFdT393",
xLarge: "_2_RsKUwjZ4KmFi_wFdT393",
"header-flex": "hhF9tdcSolaJFXJxTZzU1",
headerFlex: "hhF9tdcSolaJFXJxTZzU1",
"content-flex": "_3CwSkQihsP7w9Hl7h6D5sC",
contentFlex: "_3CwSkQihsP7w9Hl7h6D5sC",
"footer-flex": "_3JoxB3PkC67Pve4QfQYjWc",
footerFlex: "_3JoxB3PkC67Pve4QfQYjWc"
};

@@ -225,0 +225,0 @@ }, /* 16 */

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babel-runtime/helpers/extends"),require("babel-runtime/helpers/defineProperty"),require("babel-runtime/core-js/object/get-prototype-of"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("react"),require("classnames"),require("@atlaskit/blanket")):"function"==typeof define&&define.amd?define(["babel-runtime/helpers/extends","babel-runtime/helpers/defineProperty","babel-runtime/core-js/object/get-prototype-of","babel-runtime/helpers/classCallCheck","babel-runtime/helpers/createClass","babel-runtime/helpers/possibleConstructorReturn","babel-runtime/helpers/inherits","react","classnames","@atlaskit/blanket"],t):"object"==typeof exports?exports["@atlaskit/modalDialog"]=t(require("babel-runtime/helpers/extends"),require("babel-runtime/helpers/defineProperty"),require("babel-runtime/core-js/object/get-prototype-of"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("react"),require("classnames"),require("@atlaskit/blanket")):e["@atlaskit/modalDialog"]=t(e["babel-runtime/helpers/extends"],e["babel-runtime/helpers/defineProperty"],e["babel-runtime/core-js/object/get-prototype-of"],e["babel-runtime/helpers/classCallCheck"],e["babel-runtime/helpers/createClass"],e["babel-runtime/helpers/possibleConstructorReturn"],e["babel-runtime/helpers/inherits"],e.react,e.classnames,e["@atlaskit/blanket"])}(this,function(e,t,r,n,o,i,a,l,s,u){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(4)},,,,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(5),i=n(o),a=r(6),l=n(a),s=r(7),u=n(s),p=r(8),f=n(p),d=r(9),c=n(d),b=r(10),m=n(b),h=r(11),x=n(h),g=r(12),v=n(g),y=r(13),_=n(y),T=r(14),C=n(T),j=r(18),k=n(j),q={values:["small","medium","large","x-large"],defaultValue:"medium"},L=function(e){function t(){var e,r,n,o;(0,f.default)(this,t);for(var i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return r=n=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(a))),n.componentDidMount=function(){document.addEventListener("keydown",n.handleKeyDown)},n.componentWillUnmount=function(){document.removeEventListener("keydown",n.handleKeyDown)},n.handleKeyDown=function(e){var t=27;e.keyCode===t&&n.props.onDialogDismissed(e)},o=r,(0,m.default)(n,o)}return(0,x.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e;if(!this.props.isOpen)return null;var t=this.props,r=t.onDialogDismissed,n=t.header,o=t.children,a=t.footer,s=t.width,u=q.values.indexOf(s)===-1?{style:{width:s}}:{};return v.default.createElement("div",{className:C.default.modalWrapper},v.default.createElement(k.default,{isTinted:!0,onBlanketClicked:r}),v.default.createElement("div",(0,i.default)({className:(0,_.default)([C.default.modalPositioner,(e={},(0,l.default)(e,C.default.small,"small"===s),(0,l.default)(e,C.default.medium,"medium"===s),(0,l.default)(e,C.default.large,"large"===s),(0,l.default)(e,C.default.xLarge,"x-large"===s),e)])},u),n?v.default.createElement("div",{className:C.default.headerFlex},n):null,v.default.createElement("div",{className:C.default.contentFlex},o),a?v.default.createElement("div",{className:C.default.footerFlex},a):null))}}]),t}(g.PureComponent);L.propTypes={isOpen:g.PropTypes.bool,header:g.PropTypes.node,children:g.PropTypes.node,footer:g.PropTypes.node,width:g.PropTypes.oneOfType([g.PropTypes.number,g.PropTypes.string,g.PropTypes.oneOf(q.values)]),onDialogDismissed:g.PropTypes.func},L.defaultProps={isOpen:!1,onDialogDismissed:function(){},width:q.defaultValue},t.default=L},function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t){e.exports=a},function(e,t){e.exports=l},function(e,t){e.exports=s},function(e,t,r){var n=r(15);"string"==typeof n&&(n=[[e.id,n,""]]),r(17)(n,{}),n.locals&&(e.exports=n.locals)},function(e,t,r){t=e.exports=r(16)(),t.push([e.id,'._1TSxmTpgq_iBbsmFnr4umq{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._24VAejaPiq1J4_4L8yeTg3{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;max-width:calc(100% - 120px);margin:0 auto;height:calc(100% - 120px);margin-top:60px;position:relative;z-index:510}._24VAejaPiq1J4_4L8yeTg3._7PO5jWajOBBEpteWSiDUz{width:400px}._24VAejaPiq1J4_4L8yeTg3.GZpMeKtvtrodrL94HlMMF{width:600px}._24VAejaPiq1J4_4L8yeTg3._2xcaeI7T_ltl2BSjYeh497{width:800px}._24VAejaPiq1J4_4L8yeTg3._6Fr8xQ5BgHW--N4eU_kQL{width:968px}._24VAejaPiq1J4_4L8yeTg3 .cJCTwzV1UzeffjSbMb_v7{-webkit-box-flex:0;flex:0 0 auto;padding:16px;box-shadow:0 0 0 transparent,0 0 0 transparent;background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-left-radius:0;border-bottom-right-radius:0}._24VAejaPiq1J4_4L8yeTg3 ._13CfchAlTGUcQ3Pms2Ti32{-webkit-box-flex:0;flex:0 1 auto;overflow:auto;box-sizing:border-box;padding:0 16px;position:relative;box-shadow:inset 0 2px 0 0 #ebecf0,inset 0 -2px 0 0 #ebecf0;background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}._24VAejaPiq1J4_4L8yeTg3 ._13CfchAlTGUcQ3Pms2Ti32:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._24VAejaPiq1J4_4L8yeTg3 ._13CfchAlTGUcQ3Pms2Ti32:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._24VAejaPiq1J4_4L8yeTg3 ._2Z1IOt3liuCCTRWLJEXB8O{-webkit-box-flex:0;flex:0 0 auto;padding:16px;box-shadow:0 0 0 transparent,0 0 0 transparent;background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}',""]),t.locals={"modal-wrapper":"_1TSxmTpgq_iBbsmFnr4umq",modalWrapper:"_1TSxmTpgq_iBbsmFnr4umq","modal-positioner":"_24VAejaPiq1J4_4L8yeTg3",modalPositioner:"_24VAejaPiq1J4_4L8yeTg3",small:"_7PO5jWajOBBEpteWSiDUz",small:"_7PO5jWajOBBEpteWSiDUz",medium:"GZpMeKtvtrodrL94HlMMF",medium:"GZpMeKtvtrodrL94HlMMF",large:"_2xcaeI7T_ltl2BSjYeh497",large:"_2xcaeI7T_ltl2BSjYeh497","x-large":"_6Fr8xQ5BgHW--N4eU_kQL",xLarge:"_6Fr8xQ5BgHW--N4eU_kQL","header-flex":"cJCTwzV1UzeffjSbMb_v7",headerFlex:"cJCTwzV1UzeffjSbMb_v7","content-flex":"_13CfchAlTGUcQ3Pms2Ti32",contentFlex:"_13CfchAlTGUcQ3Pms2Ti32","footer-flex":"_2Z1IOt3liuCCTRWLJEXB8O",footerFlex:"_2Z1IOt3liuCCTRWLJEXB8O"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var r=this[t];r[2]?e.push("@media "+r[2]+"{"+r[1]+"}"):e.push(r[1])}return e.join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(n[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&n[a[0]]||(r&&!a[2]?a[2]=r:r&&(a[2]="("+a[2]+") and ("+r+")"),e.push(a))}},e}},function(e,t,r){function n(e,t){for(var r=0;r<e.length;r++){var n=e[r],o=c[n.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](n.parts[i]);for(;i<n.parts.length;i++)o.parts.push(u(n.parts[i],t))}else{for(var a=[],i=0;i<n.parts.length;i++)a.push(u(n.parts[i],t));c[n.id]={id:n.id,refs:1,parts:a}}}}function o(e){for(var t=[],r={},n=0;n<e.length;n++){var o=e[n],i=o[0],a=o[1],l=o[2],s=o[3],u={css:a,media:l,sourceMap:s};r[i]?r[i].parts.push(u):t.push(r[i]={id:i,parts:[u]})}return t}function i(e,t){var r=h(),n=v[v.length-1];if("top"===e.insertAt)n?n.nextSibling?r.insertBefore(t,n.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),v.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=v.indexOf(e);t>=0&&v.splice(t,1)}function l(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function u(e,t){var r,n,o;if(t.singleton){var i=g++;r=x||(x=l(t)),n=p.bind(null,r,i,!1),o=p.bind(null,r,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=s(t),n=d.bind(null,r),o=function(){a(r),r.href&&URL.revokeObjectURL(r.href)}):(r=l(t),n=f.bind(null,r),o=function(){a(r)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}function p(e,t,r,n){var o=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function f(e,t){var r=t.css,n=t.media;if(n&&e.setAttribute("media",n),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}function d(e,t){var r=t.css,n=t.sourceMap;n&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var o=new Blob([r],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var c={},b=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=b(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),h=b(function(){return document.head||document.getElementsByTagName("head")[0]}),x=null,g=0,v=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var r=o(e);return n(r,t),function(e){for(var i=[],a=0;a<r.length;a++){var l=r[a],s=c[l.id];s.refs--,i.push(s)}if(e){var u=o(e);n(u,t)}for(var a=0;a<i.length;a++){var s=i[a];if(0===s.refs){for(var p=0;p<s.parts.length;p++)s.parts[p]();delete c[s.id]}}}};var y=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=u}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babel-runtime/helpers/extends"),require("babel-runtime/helpers/defineProperty"),require("babel-runtime/core-js/object/get-prototype-of"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("react"),require("classnames"),require("@atlaskit/blanket")):"function"==typeof define&&define.amd?define(["babel-runtime/helpers/extends","babel-runtime/helpers/defineProperty","babel-runtime/core-js/object/get-prototype-of","babel-runtime/helpers/classCallCheck","babel-runtime/helpers/createClass","babel-runtime/helpers/possibleConstructorReturn","babel-runtime/helpers/inherits","react","classnames","@atlaskit/blanket"],t):"object"==typeof exports?exports["@atlaskit/modalDialog"]=t(require("babel-runtime/helpers/extends"),require("babel-runtime/helpers/defineProperty"),require("babel-runtime/core-js/object/get-prototype-of"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("react"),require("classnames"),require("@atlaskit/blanket")):e["@atlaskit/modalDialog"]=t(e["babel-runtime/helpers/extends"],e["babel-runtime/helpers/defineProperty"],e["babel-runtime/core-js/object/get-prototype-of"],e["babel-runtime/helpers/classCallCheck"],e["babel-runtime/helpers/createClass"],e["babel-runtime/helpers/possibleConstructorReturn"],e["babel-runtime/helpers/inherits"],e.react,e.classnames,e["@atlaskit/blanket"])}(this,function(e,t,r,n,o,i,l,a,s,u){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(4)},,,,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(5),i=n(o),l=r(6),a=n(l),s=r(7),u=n(s),d=r(8),p=n(d),f=r(9),c=n(f),h=r(10),b=n(h),m=r(11),x=n(m),v=r(12),g=n(v),y=r(13),w=n(y),_=r(14),k=n(_),E=r(18),C=n(E),P={values:["small","medium","large","x-large"],defaultValue:"medium"},D=function(e){function t(){var e,r,n,o;(0,p.default)(this,t);for(var i=arguments.length,l=Array(i),a=0;a<i;a++)l[a]=arguments[a];return r=n=(0,b.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(l))),n.componentDidMount=function(){document.addEventListener("keydown",n.handleKeyDown)},n.componentWillUnmount=function(){document.removeEventListener("keydown",n.handleKeyDown)},n.handleKeyDown=function(e){var t=27;e.keyCode===t&&n.props.onDialogDismissed(e)},o=r,(0,b.default)(n,o)}return(0,x.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e;if(!this.props.isOpen)return null;var t=this.props,r=t.onDialogDismissed,n=t.header,o=t.children,l=t.footer,s=t.width,u=P.values.indexOf(s)===-1?{style:{width:s}}:{};return g.default.createElement("div",{className:k.default.modalWrapper},g.default.createElement(C.default,{isTinted:!0,onBlanketClicked:r}),g.default.createElement("div",(0,i.default)({className:(0,w.default)([k.default.modalPositioner,(e={},(0,a.default)(e,k.default.small,"small"===s),(0,a.default)(e,k.default.medium,"medium"===s),(0,a.default)(e,k.default.large,"large"===s),(0,a.default)(e,k.default.xLarge,"x-large"===s),e)])},u),n?g.default.createElement("div",{className:k.default.headerFlex},n):null,g.default.createElement("div",{className:k.default.contentFlex},o),l?g.default.createElement("div",{className:k.default.footerFlex},l):null))}}]),t}(v.PureComponent);D.propTypes={isOpen:v.PropTypes.bool,header:v.PropTypes.node,children:v.PropTypes.node,footer:v.PropTypes.node,width:v.PropTypes.oneOfType([v.PropTypes.number,v.PropTypes.string,v.PropTypes.oneOf(P.values)]),onDialogDismissed:v.PropTypes.func},D.defaultProps={isOpen:!1,onDialogDismissed:function(){},width:P.defaultValue},t.default=D},function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t){e.exports=l},function(e,t){e.exports=a},function(e,t){e.exports=s},function(e,t,r){var n=r(15);"string"==typeof n&&(n=[[e.id,n,""]]),r(17)(n,{}),n.locals&&(e.exports=n.locals)},function(e,t,r){t=e.exports=r(16)(),t.push([e.id,'.dwYUNQrhEEnrK6R3E4yqE{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._2_dl1M2vDidVz0zhcwvQEs{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;max-width:calc(100% - 120px);margin:0 auto;height:calc(100% - 120px);margin-top:60px;position:relative;z-index:510}._2_dl1M2vDidVz0zhcwvQEs._3s3Eqk3g9_Pqy0jVIy-PE1{width:400px}._2_dl1M2vDidVz0zhcwvQEs.z7DwHK6YvWQelacy9RlyS{width:600px}._2_dl1M2vDidVz0zhcwvQEs.rEXJxS6dWdOun-TPrAoNZ{width:800px}._2_dl1M2vDidVz0zhcwvQEs._2_RsKUwjZ4KmFi_wFdT393{width:968px}._2_dl1M2vDidVz0zhcwvQEs .hhF9tdcSolaJFXJxTZzU1{-webkit-box-flex:0;flex:0 0 auto;padding:16px;box-shadow:0 0 0 transparent,0 0 0 transparent;background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-left-radius:0;border-bottom-right-radius:0}._2_dl1M2vDidVz0zhcwvQEs ._3CwSkQihsP7w9Hl7h6D5sC{-webkit-box-flex:0;flex:0 1 auto;overflow:auto;box-sizing:border-box;padding:0 16px;position:relative;box-shadow:inset 0 2px 0 0 #ebecf0,inset 0 -2px 0 0 #ebecf0;background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}._2_dl1M2vDidVz0zhcwvQEs ._3CwSkQihsP7w9Hl7h6D5sC:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._2_dl1M2vDidVz0zhcwvQEs ._3CwSkQihsP7w9Hl7h6D5sC:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._2_dl1M2vDidVz0zhcwvQEs ._3JoxB3PkC67Pve4QfQYjWc{-webkit-box-flex:0;flex:0 0 auto;padding:16px;box-shadow:0 0 0 transparent,0 0 0 transparent;background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}',""]),t.locals={"modal-wrapper":"dwYUNQrhEEnrK6R3E4yqE",modalWrapper:"dwYUNQrhEEnrK6R3E4yqE","modal-positioner":"_2_dl1M2vDidVz0zhcwvQEs",modalPositioner:"_2_dl1M2vDidVz0zhcwvQEs",small:"_3s3Eqk3g9_Pqy0jVIy-PE1",small:"_3s3Eqk3g9_Pqy0jVIy-PE1",medium:"z7DwHK6YvWQelacy9RlyS",medium:"z7DwHK6YvWQelacy9RlyS",large:"rEXJxS6dWdOun-TPrAoNZ",large:"rEXJxS6dWdOun-TPrAoNZ","x-large":"_2_RsKUwjZ4KmFi_wFdT393",xLarge:"_2_RsKUwjZ4KmFi_wFdT393","header-flex":"hhF9tdcSolaJFXJxTZzU1",headerFlex:"hhF9tdcSolaJFXJxTZzU1","content-flex":"_3CwSkQihsP7w9Hl7h6D5sC",contentFlex:"_3CwSkQihsP7w9Hl7h6D5sC","footer-flex":"_3JoxB3PkC67Pve4QfQYjWc",footerFlex:"_3JoxB3PkC67Pve4QfQYjWc"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var r=this[t];r[2]?e.push("@media "+r[2]+"{"+r[1]+"}"):e.push(r[1])}return e.join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(n[i]=!0)}for(o=0;o<t.length;o++){var l=t[o];"number"==typeof l[0]&&n[l[0]]||(r&&!l[2]?l[2]=r:r&&(l[2]="("+l[2]+") and ("+r+")"),e.push(l))}},e}},function(e,t,r){function n(e,t){for(var r=0;r<e.length;r++){var n=e[r],o=c[n.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](n.parts[i]);for(;i<n.parts.length;i++)o.parts.push(u(n.parts[i],t))}else{for(var l=[],i=0;i<n.parts.length;i++)l.push(u(n.parts[i],t));c[n.id]={id:n.id,refs:1,parts:l}}}}function o(e){for(var t=[],r={},n=0;n<e.length;n++){var o=e[n],i=o[0],l=o[1],a=o[2],s=o[3],u={css:l,media:a,sourceMap:s};r[i]?r[i].parts.push(u):t.push(r[i]={id:i,parts:[u]})}return t}function i(e,t){var r=m(),n=g[g.length-1];if("top"===e.insertAt)n?n.nextSibling?r.insertBefore(t,n.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),g.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(t)}}function l(e){e.parentNode.removeChild(e);var t=g.indexOf(e);t>=0&&g.splice(t,1)}function a(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function u(e,t){var r,n,o;if(t.singleton){var i=v++;r=x||(x=a(t)),n=d.bind(null,r,i,!1),o=d.bind(null,r,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=s(t),n=f.bind(null,r),o=function(){l(r),r.href&&URL.revokeObjectURL(r.href)}):(r=a(t),n=p.bind(null,r),o=function(){l(r)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}function d(e,t,r,n){var o=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),l=e.childNodes;l[t]&&e.removeChild(l[t]),l.length?e.insertBefore(i,l[t]):e.appendChild(i)}}function p(e,t){var r=t.css,n=t.media;if(n&&e.setAttribute("media",n),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}function f(e,t){var r=t.css,n=t.sourceMap;n&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var o=new Blob([r],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var c={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},b=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),m=h(function(){return document.head||document.getElementsByTagName("head")[0]}),x=null,v=0,g=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=b()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var r=o(e);return n(r,t),function(e){for(var i=[],l=0;l<r.length;l++){var a=r[l],s=c[a.id];s.refs--,i.push(s)}if(e){var u=o(e);n(u,t)}for(var l=0;l<i.length;l++){var s=i[l];if(0===s.refs){for(var d=0;d<s.parts.length;d++)s.parts[d]();delete c[s.id]}}}};var y=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=u}])});
{
"name": "@atlaskit/modal-dialog",
"version": "1.2.9",
"version": "1.2.10",
"config": {

@@ -28,2 +28,7 @@ "access": "public"

"author": "Atlassian Pty Ltd",
"maintainers": [
{
"name": "Ben G"
}
],
"license": "Apache-2.0",

@@ -30,0 +35,0 @@ "devDependencies": {

@@ -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,@atlaskit/modal-dialog,@atlaskit/modal-dialog@1.2.9)
[![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,@atlaskit/modal-dialog,@atlaskit/modal-dialog@1.2.10)

@@ -16,3 +16,3 @@ # ModalDialog

Interact with a [live demo of the @atlaskit/modal-dialog component](https://aui-cdn.atlassian.com/atlaskit/stories/@atlaskit/modal-dialog/1.2.9/).
Interact with a [live demo of the @atlaskit/modal-dialog component](https://aui-cdn.atlassian.com/atlaskit/stories/@atlaskit/modal-dialog/1.2.10/).

@@ -111,4 +111,2 @@ ## Installation

## Support and feedback

@@ -122,3 +120,3 @@

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc