Socket
Socket
Sign inDemoInstall

@atlaskit/modal-dialog

Package Overview
Dependencies
Maintainers
1
Versions
328
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/modal-dialog - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

14

CHANGELOG.md

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

<a name="1.2.3"></a>
## 1.2.3 (2017-02-08)
<a name="1.2.4"></a>
## 1.2.4 (2017-02-13)
<a name="1.2.4"></a>
## 1.2.4 (2017-02-13)
### Bug Fixes
* Fix types for modal-dialog typescript declaration file ([533adea](https://bitbucket.org/atlassian/atlaskit/commits/533adea))
<a name="1.2.3"></a>

@@ -7,0 +17,0 @@ ## 1.2.3 (2017-02-08)

46

dist/bundle-cjs.js

@@ -126,9 +126,9 @@ module.exports = /******/

_ref2) ])
}, customStyle), _react2.default.createElement("div", {
}, customStyle), header ? _react2.default.createElement("div", {
className: _style2.default.headerFlex
}, header), _react2.default.createElement("div", {
}, header) : null, _react2.default.createElement("div", {
className: _style2.default.contentFlex
}, children), _react2.default.createElement("div", {
}, children), footer ? _react2.default.createElement("div", {
className: _style2.default.footerFlex
}, footer)));
}, footer) : null));
}

@@ -238,23 +238,23 @@ } ]), ModalDialog;

// module
exports.push([ module.id, '._3yo_asjrTt4r5D3NRW9LIn{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._2heCgGgLCRAHGU_VdZ8E5N{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}._2heCgGgLCRAHGU_VdZ8E5N._2NRnRlZYq3vYaKY5l-za8r{width:400px}._2heCgGgLCRAHGU_VdZ8E5N._2H4Hy0f6VSmZlsKoaw14cw{width:600px}._2heCgGgLCRAHGU_VdZ8E5N._1yZM0fEE5J029w5xAHJdF{width:800px}._2heCgGgLCRAHGU_VdZ8E5N._3IMApraD8cI0ep_EuJPmTf{width:968px}._2heCgGgLCRAHGU_VdZ8E5N ._2wwB7iyJY7zF1OBhTYSX1H{-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}._2heCgGgLCRAHGU_VdZ8E5N ._392qjLoxAYnK0vDollj891{-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}._2heCgGgLCRAHGU_VdZ8E5N ._392qjLoxAYnK0vDollj891:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._2heCgGgLCRAHGU_VdZ8E5N ._392qjLoxAYnK0vDollj891:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._2heCgGgLCRAHGU_VdZ8E5N ._30SmB1QEuhVw6Jud0XTlq-{-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, '._3KgM5tB7A8DGBEc-R6jNI_{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._1kWbWHkcEApMUdAFTqqXZd{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}._1kWbWHkcEApMUdAFTqqXZd._2UjSFb1KUhS02Uxb7N5ZuB{width:400px}._1kWbWHkcEApMUdAFTqqXZd.PxoJqDNFjzGHtsMm2PbMV{width:600px}._1kWbWHkcEApMUdAFTqqXZd._1ok1FNj2c0RRmvQD_dkJB-{width:800px}._1kWbWHkcEApMUdAFTqqXZd._2JctrIpnA4lb5bLY4sYpst{width:968px}._1kWbWHkcEApMUdAFTqqXZd ._3pYf6JmSPK7zzzBAuNT02r{-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}._1kWbWHkcEApMUdAFTqqXZd ._3DDquGqNAnFQOOc445QOoC{-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}._1kWbWHkcEApMUdAFTqqXZd ._3DDquGqNAnFQOOc445QOoC:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._1kWbWHkcEApMUdAFTqqXZd ._3DDquGqNAnFQOOc445QOoC:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._1kWbWHkcEApMUdAFTqqXZd ._2FLklJSrM6sucKa23q1VQK{-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": "_3yo_asjrTt4r5D3NRW9LIn",
modalWrapper: "_3yo_asjrTt4r5D3NRW9LIn",
"modal-positioner": "_2heCgGgLCRAHGU_VdZ8E5N",
modalPositioner: "_2heCgGgLCRAHGU_VdZ8E5N",
small: "_2NRnRlZYq3vYaKY5l-za8r",
small: "_2NRnRlZYq3vYaKY5l-za8r",
medium: "_2H4Hy0f6VSmZlsKoaw14cw",
medium: "_2H4Hy0f6VSmZlsKoaw14cw",
large: "_1yZM0fEE5J029w5xAHJdF",
large: "_1yZM0fEE5J029w5xAHJdF",
"x-large": "_3IMApraD8cI0ep_EuJPmTf",
xLarge: "_3IMApraD8cI0ep_EuJPmTf",
"header-flex": "_2wwB7iyJY7zF1OBhTYSX1H",
headerFlex: "_2wwB7iyJY7zF1OBhTYSX1H",
"content-flex": "_392qjLoxAYnK0vDollj891",
contentFlex: "_392qjLoxAYnK0vDollj891",
"footer-flex": "_30SmB1QEuhVw6Jud0XTlq-",
footerFlex: "_30SmB1QEuhVw6Jud0XTlq-"
"modal-wrapper": "_3KgM5tB7A8DGBEc-R6jNI_",
modalWrapper: "_3KgM5tB7A8DGBEc-R6jNI_",
"modal-positioner": "_1kWbWHkcEApMUdAFTqqXZd",
modalPositioner: "_1kWbWHkcEApMUdAFTqqXZd",
small: "_2UjSFb1KUhS02Uxb7N5ZuB",
small: "_2UjSFb1KUhS02Uxb7N5ZuB",
medium: "PxoJqDNFjzGHtsMm2PbMV",
medium: "PxoJqDNFjzGHtsMm2PbMV",
large: "_1ok1FNj2c0RRmvQD_dkJB-",
large: "_1ok1FNj2c0RRmvQD_dkJB-",
"x-large": "_2JctrIpnA4lb5bLY4sYpst",
xLarge: "_2JctrIpnA4lb5bLY4sYpst",
"header-flex": "_3pYf6JmSPK7zzzBAuNT02r",
headerFlex: "_3pYf6JmSPK7zzzBAuNT02r",
"content-flex": "_3DDquGqNAnFQOOc445QOoC",
contentFlex: "_3DDquGqNAnFQOOc445QOoC",
"footer-flex": "_2FLklJSrM6sucKa23q1VQK",
footerFlex: "_2FLklJSrM6sucKa23q1VQK"
};

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

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

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),x=r(11),g=o(x),b=r(12),v=o(b),_=r(13),y=o(_),w=r(14),C=o(w),L=r(18),E=o(L),R={values:["small","medium","large","x-large"],defaultValue:"medium"},A=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,g.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=R.values.indexOf(s)===-1?{style:{width:s}}:{};return v.default.createElement("div",{className:C.default.modalWrapper},v.default.createElement(E.default,{isTinted:!0,onBlanketClicked:r}),v.default.createElement("div",(0,i.default)({className:(0,y.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)])},d),v.default.createElement("div",{className:C.default.headerFlex},o),v.default.createElement("div",{className:C.default.contentFlex},n),v.default.createElement("div",{className:C.default.footerFlex},a)))}}]),t}(b.PureComponent);A.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(R.values)]),onDialogDismissed:b.PropTypes.func},A.defaultProps={isOpen:!1,onDialogDismissed:function(){},width:R.defaultValue},t.default=A},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,'._3yo_asjrTt4r5D3NRW9LIn{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._2heCgGgLCRAHGU_VdZ8E5N{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}._2heCgGgLCRAHGU_VdZ8E5N._2NRnRlZYq3vYaKY5l-za8r{width:400px}._2heCgGgLCRAHGU_VdZ8E5N._2H4Hy0f6VSmZlsKoaw14cw{width:600px}._2heCgGgLCRAHGU_VdZ8E5N._1yZM0fEE5J029w5xAHJdF{width:800px}._2heCgGgLCRAHGU_VdZ8E5N._3IMApraD8cI0ep_EuJPmTf{width:968px}._2heCgGgLCRAHGU_VdZ8E5N ._2wwB7iyJY7zF1OBhTYSX1H{-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}._2heCgGgLCRAHGU_VdZ8E5N ._392qjLoxAYnK0vDollj891{-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}._2heCgGgLCRAHGU_VdZ8E5N ._392qjLoxAYnK0vDollj891:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._2heCgGgLCRAHGU_VdZ8E5N ._392qjLoxAYnK0vDollj891:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._2heCgGgLCRAHGU_VdZ8E5N ._30SmB1QEuhVw6Jud0XTlq-{-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":"_3yo_asjrTt4r5D3NRW9LIn",modalWrapper:"_3yo_asjrTt4r5D3NRW9LIn","modal-positioner":"_2heCgGgLCRAHGU_VdZ8E5N",modalPositioner:"_2heCgGgLCRAHGU_VdZ8E5N",small:"_2NRnRlZYq3vYaKY5l-za8r",small:"_2NRnRlZYq3vYaKY5l-za8r",medium:"_2H4Hy0f6VSmZlsKoaw14cw",medium:"_2H4Hy0f6VSmZlsKoaw14cw",large:"_1yZM0fEE5J029w5xAHJdF",large:"_1yZM0fEE5J029w5xAHJdF","x-large":"_3IMApraD8cI0ep_EuJPmTf",xLarge:"_3IMApraD8cI0ep_EuJPmTf","header-flex":"_2wwB7iyJY7zF1OBhTYSX1H",headerFlex:"_2wwB7iyJY7zF1OBhTYSX1H","content-flex":"_392qjLoxAYnK0vDollj891",contentFlex:"_392qjLoxAYnK0vDollj891","footer-flex":"_30SmB1QEuhVw6Jud0XTlq-",footerFlex:"_30SmB1QEuhVw6Jud0XTlq-"}},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=x(),o=v[v.length-1];if("top"===e.insertAt)o?o.nextSibling?r.insertBefore(t,o.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 d(e,t){var r,o,n;if(t.singleton){var i=b++;r=g||(g=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=_(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())}),x=h(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,b=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=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 _=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),p=o(u),f=r(9),c=o(f),b=r(10),h=o(b),m=r(11),x=o(m),g=r(12),v=o(g),k=r(13),y=o(k),q=r(14),_=o(q),A=r(18),F=o(A),U={values:["small","medium","large","x-large"],defaultValue:"medium"},M=function(e){function t(){var e,r,o,n;(0,p.default)(this,t);for(var i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return r=o=(0,h.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,h.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=U.values.indexOf(s)===-1?{style:{width:s}}:{};return v.default.createElement("div",{className:_.default.modalWrapper},v.default.createElement(F.default,{isTinted:!0,onBlanketClicked:r}),v.default.createElement("div",(0,i.default)({className:(0,y.default)([_.default.modalPositioner,(e={},(0,l.default)(e,_.default.small,"small"===s),(0,l.default)(e,_.default.medium,"medium"===s),(0,l.default)(e,_.default.large,"large"===s),(0,l.default)(e,_.default.xLarge,"x-large"===s),e)])},d),o?v.default.createElement("div",{className:_.default.headerFlex},o):null,v.default.createElement("div",{className:_.default.contentFlex},n),a?v.default.createElement("div",{className:_.default.footerFlex},a):null))}}]),t}(g.PureComponent);M.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(U.values)]),onDialogDismissed:g.PropTypes.func},M.defaultProps={isOpen:!1,onDialogDismissed:function(){},width:U.defaultValue},t.default=M},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,'._3KgM5tB7A8DGBEc-R6jNI_{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._1kWbWHkcEApMUdAFTqqXZd{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}._1kWbWHkcEApMUdAFTqqXZd._2UjSFb1KUhS02Uxb7N5ZuB{width:400px}._1kWbWHkcEApMUdAFTqqXZd.PxoJqDNFjzGHtsMm2PbMV{width:600px}._1kWbWHkcEApMUdAFTqqXZd._1ok1FNj2c0RRmvQD_dkJB-{width:800px}._1kWbWHkcEApMUdAFTqqXZd._2JctrIpnA4lb5bLY4sYpst{width:968px}._1kWbWHkcEApMUdAFTqqXZd ._3pYf6JmSPK7zzzBAuNT02r{-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}._1kWbWHkcEApMUdAFTqqXZd ._3DDquGqNAnFQOOc445QOoC{-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}._1kWbWHkcEApMUdAFTqqXZd ._3DDquGqNAnFQOOc445QOoC:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._1kWbWHkcEApMUdAFTqqXZd ._3DDquGqNAnFQOOc445QOoC:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._1kWbWHkcEApMUdAFTqqXZd ._2FLklJSrM6sucKa23q1VQK{-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":"_3KgM5tB7A8DGBEc-R6jNI_",modalWrapper:"_3KgM5tB7A8DGBEc-R6jNI_","modal-positioner":"_1kWbWHkcEApMUdAFTqqXZd",modalPositioner:"_1kWbWHkcEApMUdAFTqqXZd",small:"_2UjSFb1KUhS02Uxb7N5ZuB",small:"_2UjSFb1KUhS02Uxb7N5ZuB",medium:"PxoJqDNFjzGHtsMm2PbMV",medium:"PxoJqDNFjzGHtsMm2PbMV",large:"_1ok1FNj2c0RRmvQD_dkJB-",large:"_1ok1FNj2c0RRmvQD_dkJB-","x-large":"_2JctrIpnA4lb5bLY4sYpst",xLarge:"_2JctrIpnA4lb5bLY4sYpst","header-flex":"_3pYf6JmSPK7zzzBAuNT02r",headerFlex:"_3pYf6JmSPK7zzzBAuNT02r","content-flex":"_3DDquGqNAnFQOOc445QOoC",contentFlex:"_3DDquGqNAnFQOOc445QOoC","footer-flex":"_2FLklJSrM6sucKa23q1VQK",footerFlex:"_2FLklJSrM6sucKa23q1VQK"}},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=m(),o=v[v.length-1];if("top"===e.insertAt)o?o.nextSibling?r.insertBefore(t,o.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 d(e,t){var r,o,n;if(t.singleton){var i=g++;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=f.bind(null,r),n=function(){a(r),r.href&&URL.revokeObjectURL(r.href)}):(r=l(t),o=p.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=k(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 p(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 f(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={},b=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},h=b(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),m=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=h()),"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 k=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=require("@atlaskit/blanket")}]);

@@ -129,9 +129,9 @@ !function(root, factory) {

_ref2) ])
}, customStyle), _react2.default.createElement("div", {
}, customStyle), header ? _react2.default.createElement("div", {
className: _style2.default.headerFlex
}, header), _react2.default.createElement("div", {
}, header) : null, _react2.default.createElement("div", {
className: _style2.default.contentFlex
}, children), _react2.default.createElement("div", {
}, children), footer ? _react2.default.createElement("div", {
className: _style2.default.footerFlex
}, footer)));
}, footer) : null));
}

@@ -241,23 +241,23 @@ } ]), ModalDialog;

// module
exports.push([ module.id, '._3yo_asjrTt4r5D3NRW9LIn{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._2heCgGgLCRAHGU_VdZ8E5N{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}._2heCgGgLCRAHGU_VdZ8E5N._2NRnRlZYq3vYaKY5l-za8r{width:400px}._2heCgGgLCRAHGU_VdZ8E5N._2H4Hy0f6VSmZlsKoaw14cw{width:600px}._2heCgGgLCRAHGU_VdZ8E5N._1yZM0fEE5J029w5xAHJdF{width:800px}._2heCgGgLCRAHGU_VdZ8E5N._3IMApraD8cI0ep_EuJPmTf{width:968px}._2heCgGgLCRAHGU_VdZ8E5N ._2wwB7iyJY7zF1OBhTYSX1H{-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}._2heCgGgLCRAHGU_VdZ8E5N ._392qjLoxAYnK0vDollj891{-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}._2heCgGgLCRAHGU_VdZ8E5N ._392qjLoxAYnK0vDollj891:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._2heCgGgLCRAHGU_VdZ8E5N ._392qjLoxAYnK0vDollj891:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._2heCgGgLCRAHGU_VdZ8E5N ._30SmB1QEuhVw6Jud0XTlq-{-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, '._3KgM5tB7A8DGBEc-R6jNI_{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._1kWbWHkcEApMUdAFTqqXZd{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}._1kWbWHkcEApMUdAFTqqXZd._2UjSFb1KUhS02Uxb7N5ZuB{width:400px}._1kWbWHkcEApMUdAFTqqXZd.PxoJqDNFjzGHtsMm2PbMV{width:600px}._1kWbWHkcEApMUdAFTqqXZd._1ok1FNj2c0RRmvQD_dkJB-{width:800px}._1kWbWHkcEApMUdAFTqqXZd._2JctrIpnA4lb5bLY4sYpst{width:968px}._1kWbWHkcEApMUdAFTqqXZd ._3pYf6JmSPK7zzzBAuNT02r{-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}._1kWbWHkcEApMUdAFTqqXZd ._3DDquGqNAnFQOOc445QOoC{-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}._1kWbWHkcEApMUdAFTqqXZd ._3DDquGqNAnFQOOc445QOoC:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._1kWbWHkcEApMUdAFTqqXZd ._3DDquGqNAnFQOOc445QOoC:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._1kWbWHkcEApMUdAFTqqXZd ._2FLklJSrM6sucKa23q1VQK{-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": "_3yo_asjrTt4r5D3NRW9LIn",
modalWrapper: "_3yo_asjrTt4r5D3NRW9LIn",
"modal-positioner": "_2heCgGgLCRAHGU_VdZ8E5N",
modalPositioner: "_2heCgGgLCRAHGU_VdZ8E5N",
small: "_2NRnRlZYq3vYaKY5l-za8r",
small: "_2NRnRlZYq3vYaKY5l-za8r",
medium: "_2H4Hy0f6VSmZlsKoaw14cw",
medium: "_2H4Hy0f6VSmZlsKoaw14cw",
large: "_1yZM0fEE5J029w5xAHJdF",
large: "_1yZM0fEE5J029w5xAHJdF",
"x-large": "_3IMApraD8cI0ep_EuJPmTf",
xLarge: "_3IMApraD8cI0ep_EuJPmTf",
"header-flex": "_2wwB7iyJY7zF1OBhTYSX1H",
headerFlex: "_2wwB7iyJY7zF1OBhTYSX1H",
"content-flex": "_392qjLoxAYnK0vDollj891",
contentFlex: "_392qjLoxAYnK0vDollj891",
"footer-flex": "_30SmB1QEuhVw6Jud0XTlq-",
footerFlex: "_30SmB1QEuhVw6Jud0XTlq-"
"modal-wrapper": "_3KgM5tB7A8DGBEc-R6jNI_",
modalWrapper: "_3KgM5tB7A8DGBEc-R6jNI_",
"modal-positioner": "_1kWbWHkcEApMUdAFTqqXZd",
modalPositioner: "_1kWbWHkcEApMUdAFTqqXZd",
small: "_2UjSFb1KUhS02Uxb7N5ZuB",
small: "_2UjSFb1KUhS02Uxb7N5ZuB",
medium: "PxoJqDNFjzGHtsMm2PbMV",
medium: "PxoJqDNFjzGHtsMm2PbMV",
large: "_1ok1FNj2c0RRmvQD_dkJB-",
large: "_1ok1FNj2c0RRmvQD_dkJB-",
"x-large": "_2JctrIpnA4lb5bLY4sYpst",
xLarge: "_2JctrIpnA4lb5bLY4sYpst",
"header-flex": "_3pYf6JmSPK7zzzBAuNT02r",
headerFlex: "_3pYf6JmSPK7zzzBAuNT02r",
"content-flex": "_3DDquGqNAnFQOOc445QOoC",
contentFlex: "_3DDquGqNAnFQOOc445QOoC",
"footer-flex": "_2FLklJSrM6sucKa23q1VQK",
footerFlex: "_2FLklJSrM6sucKa23q1VQK"
};

@@ -264,0 +264,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,a,i,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),a=n(o),i=r(6),l=n(i),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),g=r(12),v=n(g),y=r(13),_=n(y),C=r(14),w=n(C),R=r(18),k=n(R),L={values:["small","medium","large","x-large"],defaultValue:"medium"},E=function(e){function t(){var e,r,n,o;(0,p.default)(this,t);for(var a=arguments.length,i=Array(a),l=0;l<a;l++)i[l]=arguments[l];return r=n=(0,b.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(i))),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,i=t.footer,s=t.width,u=L.values.indexOf(s)===-1?{style:{width:s}}:{};return v.default.createElement("div",{className:w.default.modalWrapper},v.default.createElement(k.default,{isTinted:!0,onBlanketClicked:r}),v.default.createElement("div",(0,a.default)({className:(0,_.default)([w.default.modalPositioner,(e={},(0,l.default)(e,w.default.small,"small"===s),(0,l.default)(e,w.default.medium,"medium"===s),(0,l.default)(e,w.default.large,"large"===s),(0,l.default)(e,w.default.xLarge,"x-large"===s),e)])},u),v.default.createElement("div",{className:w.default.headerFlex},n),v.default.createElement("div",{className:w.default.contentFlex},o),v.default.createElement("div",{className:w.default.footerFlex},i)))}}]),t}(g.PureComponent);E.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(L.values)]),onDialogDismissed:g.PropTypes.func},E.defaultProps={isOpen:!1,onDialogDismissed:function(){},width:L.defaultValue},t.default=E},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=a},function(e,t){e.exports=i},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,'._3yo_asjrTt4r5D3NRW9LIn{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._2heCgGgLCRAHGU_VdZ8E5N{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}._2heCgGgLCRAHGU_VdZ8E5N._2NRnRlZYq3vYaKY5l-za8r{width:400px}._2heCgGgLCRAHGU_VdZ8E5N._2H4Hy0f6VSmZlsKoaw14cw{width:600px}._2heCgGgLCRAHGU_VdZ8E5N._1yZM0fEE5J029w5xAHJdF{width:800px}._2heCgGgLCRAHGU_VdZ8E5N._3IMApraD8cI0ep_EuJPmTf{width:968px}._2heCgGgLCRAHGU_VdZ8E5N ._2wwB7iyJY7zF1OBhTYSX1H{-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}._2heCgGgLCRAHGU_VdZ8E5N ._392qjLoxAYnK0vDollj891{-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}._2heCgGgLCRAHGU_VdZ8E5N ._392qjLoxAYnK0vDollj891:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._2heCgGgLCRAHGU_VdZ8E5N ._392qjLoxAYnK0vDollj891:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._2heCgGgLCRAHGU_VdZ8E5N ._30SmB1QEuhVw6Jud0XTlq-{-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":"_3yo_asjrTt4r5D3NRW9LIn",modalWrapper:"_3yo_asjrTt4r5D3NRW9LIn","modal-positioner":"_2heCgGgLCRAHGU_VdZ8E5N",modalPositioner:"_2heCgGgLCRAHGU_VdZ8E5N",small:"_2NRnRlZYq3vYaKY5l-za8r",small:"_2NRnRlZYq3vYaKY5l-za8r",medium:"_2H4Hy0f6VSmZlsKoaw14cw",medium:"_2H4Hy0f6VSmZlsKoaw14cw",large:"_1yZM0fEE5J029w5xAHJdF",large:"_1yZM0fEE5J029w5xAHJdF","x-large":"_3IMApraD8cI0ep_EuJPmTf",xLarge:"_3IMApraD8cI0ep_EuJPmTf","header-flex":"_2wwB7iyJY7zF1OBhTYSX1H",headerFlex:"_2wwB7iyJY7zF1OBhTYSX1H","content-flex":"_392qjLoxAYnK0vDollj891",contentFlex:"_392qjLoxAYnK0vDollj891","footer-flex":"_30SmB1QEuhVw6Jud0XTlq-",footerFlex:"_30SmB1QEuhVw6Jud0XTlq-"}},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 a=this[o][0];"number"==typeof a&&(n[a]=!0)}for(o=0;o<t.length;o++){var i=t[o];"number"==typeof i[0]&&n[i[0]]||(r&&!i[2]?i[2]=r:r&&(i[2]="("+i[2]+") and ("+r+")"),e.push(i))}},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 a=0;a<o.parts.length;a++)o.parts[a](n.parts[a]);for(;a<n.parts.length;a++)o.parts.push(u(n.parts[a],t))}else{for(var i=[],a=0;a<n.parts.length;a++)i.push(u(n.parts[a],t));c[n.id]={id:n.id,refs:1,parts:i}}}}function o(e){for(var t=[],r={},n=0;n<e.length;n++){var o=e[n],a=o[0],i=o[1],l=o[2],s=o[3],u={css:i,media:l,sourceMap:s};r[a]?r[a].parts.push(u):t.push(r[a]={id:a,parts:[u]})}return t}function a(e,t){var r=m(),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 i(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",a(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",a(e,t),t}function u(e,t){var r,n,o;if(t.singleton){var a=g++;r=x||(x=l(t)),n=d.bind(null,r,a,!1),o=d.bind(null,r,a,!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(){i(r),r.href&&URL.revokeObjectURL(r.href)}):(r=l(t),n=p.bind(null,r),o=function(){i(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 a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}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"}),a=e.href;e.href=URL.createObjectURL(o),a&&URL.revokeObjectURL(a)}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,g=0,v=[];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 a=[],i=0;i<r.length;i++){var l=r[i],s=c[l.id];s.refs--,a.push(s)}if(e){var u=o(e);n(u,t)}for(var i=0;i<a.length;i++){var s=a[i];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}])});
!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),d=r(8),p=n(d),f=r(9),c=n(f),b=r(10),m=n(b),h=r(11),x=n(h),g=r(12),v=n(g),k=r(13),y=n(k),q=r(14),_=n(q),A=r(18),C=n(A),F={values:["small","medium","large","x-large"],defaultValue:"medium"},U=function(e){function t(){var e,r,n,o;(0,p.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=F.values.indexOf(s)===-1?{style:{width:s}}:{};return v.default.createElement("div",{className:_.default.modalWrapper},v.default.createElement(C.default,{isTinted:!0,onBlanketClicked:r}),v.default.createElement("div",(0,i.default)({className:(0,y.default)([_.default.modalPositioner,(e={},(0,l.default)(e,_.default.small,"small"===s),(0,l.default)(e,_.default.medium,"medium"===s),(0,l.default)(e,_.default.large,"large"===s),(0,l.default)(e,_.default.xLarge,"x-large"===s),e)])},u),n?v.default.createElement("div",{className:_.default.headerFlex},n):null,v.default.createElement("div",{className:_.default.contentFlex},o),a?v.default.createElement("div",{className:_.default.footerFlex},a):null))}}]),t}(g.PureComponent);U.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(F.values)]),onDialogDismissed:g.PropTypes.func},U.defaultProps={isOpen:!1,onDialogDismissed:function(){},width:F.defaultValue},t.default=U},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,'._3KgM5tB7A8DGBEc-R6jNI_{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._1kWbWHkcEApMUdAFTqqXZd{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}._1kWbWHkcEApMUdAFTqqXZd._2UjSFb1KUhS02Uxb7N5ZuB{width:400px}._1kWbWHkcEApMUdAFTqqXZd.PxoJqDNFjzGHtsMm2PbMV{width:600px}._1kWbWHkcEApMUdAFTqqXZd._1ok1FNj2c0RRmvQD_dkJB-{width:800px}._1kWbWHkcEApMUdAFTqqXZd._2JctrIpnA4lb5bLY4sYpst{width:968px}._1kWbWHkcEApMUdAFTqqXZd ._3pYf6JmSPK7zzzBAuNT02r{-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}._1kWbWHkcEApMUdAFTqqXZd ._3DDquGqNAnFQOOc445QOoC{-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}._1kWbWHkcEApMUdAFTqqXZd ._3DDquGqNAnFQOOc445QOoC:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._1kWbWHkcEApMUdAFTqqXZd ._3DDquGqNAnFQOOc445QOoC:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._1kWbWHkcEApMUdAFTqqXZd ._2FLklJSrM6sucKa23q1VQK{-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":"_3KgM5tB7A8DGBEc-R6jNI_",modalWrapper:"_3KgM5tB7A8DGBEc-R6jNI_","modal-positioner":"_1kWbWHkcEApMUdAFTqqXZd",modalPositioner:"_1kWbWHkcEApMUdAFTqqXZd",small:"_2UjSFb1KUhS02Uxb7N5ZuB",small:"_2UjSFb1KUhS02Uxb7N5ZuB",medium:"PxoJqDNFjzGHtsMm2PbMV",medium:"PxoJqDNFjzGHtsMm2PbMV",large:"_1ok1FNj2c0RRmvQD_dkJB-",large:"_1ok1FNj2c0RRmvQD_dkJB-","x-large":"_2JctrIpnA4lb5bLY4sYpst",xLarge:"_2JctrIpnA4lb5bLY4sYpst","header-flex":"_3pYf6JmSPK7zzzBAuNT02r",headerFlex:"_3pYf6JmSPK7zzzBAuNT02r","content-flex":"_3DDquGqNAnFQOOc445QOoC",contentFlex:"_3DDquGqNAnFQOOc445QOoC","footer-flex":"_2FLklJSrM6sucKa23q1VQK",footerFlex:"_2FLklJSrM6sucKa23q1VQK"}},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=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(){a(r),r.href&&URL.revokeObjectURL(r.href)}):(r=l(t),n=p.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=k(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 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={},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 d=0;d<s.parts.length;d++)s.parts[d]();delete c[s.id]}}}};var k=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.3",
"version": "1.2.4",
"config": {

@@ -11,2 +11,3 @@ "access": "public"

"ak:webpack:raw": "src/index.jsx",
"types": "src/index.d.ts",
"scripts": {

@@ -13,0 +14,0 @@ "prepublish": "../../node_modules/.bin/in-publish && { cd ../.. && npm run prepublish/single @atlaskit/modal-dialog; } || ../../node_modules/.bin/not-in-publish"

@@ -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.3)
[![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.4)

@@ -12,7 +12,7 @@ # ModalDialog

![Example tags](https://bytebucket.org/atlassian/atlaskit/raw/8e74a0d142d51a060a15c3c6cc5021cdc2ac72c4/packages/ak-modal-dialog/docs/simple.png)
![Example tags](https://bytebucket.org/atlassian/atlaskit/raw/15391801fe86ca58af052b269f128a7a528936e0/packages/ak-modal-dialog/docs/simple.png)
##Try it out
Interact with a [live demo of the @atlaskit/modal-dialog component](https://aui-cdn.atlassian.com/atlaskit/stories/@atlaskit/modal-dialog/1.2.3/).
Interact with a [live demo of the @atlaskit/modal-dialog component](https://aui-cdn.atlassian.com/atlaskit/stories/@atlaskit/modal-dialog/1.2.4/).

@@ -35,3 +35,3 @@ ## Installation

<ModalDialog
open
isOpen
header={

@@ -122,3 +122,3 @@ <h2>Modal header</h2>

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.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.4).

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc