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.11 to 1.2.12

10

CHANGELOG.md

@@ -1,6 +0,11 @@

<a name="1.2.11"></a>
## 1.2.11 (2017-03-21)
<a name="1.2.12"></a>
## 1.2.12 (2017-03-23)
<a name="1.2.12"></a>
## 1.2.12 (2017-03-23)
<a name="1.2.10"></a>

@@ -17,2 +22,3 @@ ## 1.2.10 (2017-03-21)

* **component:** render rounded corners correctly when header/footer omitted ([724480d](https://bitbucket.org/atlassian/atlaskit/commits/724480d))
* **package:** maintainers for all the packages were added ([261d00a](https://bitbucket.org/atlassian/atlaskit/commits/261d00a))

@@ -19,0 +25,0 @@

54

dist/bundle-cjs.js

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

value: function() {
var _ref2;
var _ref2, _ref3;
// don't render anything if open = false

@@ -114,3 +114,3 @@ if (!this.props.isOpen) return null;

}
} : {};
} : {}, isContentTopRounded = !header, isContentBottomRounded = !footer;
return _react2.default.createElement("div", {

@@ -131,3 +131,7 @@ className: _style2.default.modalWrapper

}, header) : null, _react2.default.createElement("div", {
className: _style2.default.contentFlex
className: (0, _classnames2.default)([ _style2.default.contentFlex, (_ref3 = {},
(0, _defineProperty3.default)(_ref3, _style2.default.roundedContentTop, isContentTopRounded && !isContentBottomRounded),
(0, _defineProperty3.default)(_ref3, _style2.default.roundedContentBottom, isContentBottomRounded && !isContentTopRounded),
(0, _defineProperty3.default)(_ref3, _style2.default.roundedContentTopBottom, isContentTopRounded && isContentBottomRounded),
_ref3) ])
}, children), footer ? _react2.default.createElement("div", {

@@ -202,23 +206,29 @@ className: _style2.default.footerFlex

// module
exports.push([ module.id, '._1k2ZLfUa_vAxFYP_4XTR6z{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._3xOyXg8yhewr25CD2RgJaY{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}._3xOyXg8yhewr25CD2RgJaY._2EBR-6-NkOCDnHvaMNIG9z{width:400px}._3xOyXg8yhewr25CD2RgJaY._287oCXedYVQYT3bNiMuK6e{width:600px}._3xOyXg8yhewr25CD2RgJaY._3TWK5-P8mkXRkIXF9YYSsd{width:800px}._3xOyXg8yhewr25CD2RgJaY._1KP9SrSLawb7pIOMAj2fGq{width:968px}._3xOyXg8yhewr25CD2RgJaY ._1YeLa8BhiNHuwPVi-fLWE-{-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}._3xOyXg8yhewr25CD2RgJaY ._1duCEPal-MMGncyB_2n7tV{-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}._3xOyXg8yhewr25CD2RgJaY ._1duCEPal-MMGncyB_2n7tV:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._3xOyXg8yhewr25CD2RgJaY ._1duCEPal-MMGncyB_2n7tV:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._3xOyXg8yhewr25CD2RgJaY .NkkQlcz-Rg6PCmT573fP2{-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, '._2gN3tZk3JmXR8eoCdfubwO{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._1xdihSqnzh3DmlrcAd4_xc{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}._1xdihSqnzh3DmlrcAd4_xc._2VUTtbK-ZrTOYm0mFPkgnI{width:400px}._1xdihSqnzh3DmlrcAd4_xc.fGfce1WE2Skz_0rhulO8W{width:600px}._1xdihSqnzh3DmlrcAd4_xc._249f-h61kwrdkkutbJg2KT{width:800px}._1xdihSqnzh3DmlrcAd4_xc._31IYi_riwlq4rucCvT02T6{width:968px}._1xdihSqnzh3DmlrcAd4_xc ._1ZmgRgSERQzT2b0bKhp7GT{-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}._1xdihSqnzh3DmlrcAd4_xc ._1HO6NJJGwtt-iyB5y9Vmth{-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}._1xdihSqnzh3DmlrcAd4_xc ._1HO6NJJGwtt-iyB5y9Vmth:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._1xdihSqnzh3DmlrcAd4_xc ._1HO6NJJGwtt-iyB5y9Vmth:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._1xdihSqnzh3DmlrcAd4_xc ._15HL_jewbC_u9DD5CZHwcT{background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-left-radius:0;border-bottom-right-radius:0}._1xdihSqnzh3DmlrcAd4_xc .PipG-9txWSAOOWj47Jk99{background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}._1xdihSqnzh3DmlrcAd4_xc ._2sc-yD2SWpuPWBY3N8cEG2{background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-left-radius:4px;border-bottom-right-radius:4px}._1xdihSqnzh3DmlrcAd4_xc ._2vUV7mqgX-AToH75icXQB4{-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": "_1k2ZLfUa_vAxFYP_4XTR6z",
modalWrapper: "_1k2ZLfUa_vAxFYP_4XTR6z",
"modal-positioner": "_3xOyXg8yhewr25CD2RgJaY",
modalPositioner: "_3xOyXg8yhewr25CD2RgJaY",
small: "_2EBR-6-NkOCDnHvaMNIG9z",
small: "_2EBR-6-NkOCDnHvaMNIG9z",
medium: "_287oCXedYVQYT3bNiMuK6e",
medium: "_287oCXedYVQYT3bNiMuK6e",
large: "_3TWK5-P8mkXRkIXF9YYSsd",
large: "_3TWK5-P8mkXRkIXF9YYSsd",
"x-large": "_1KP9SrSLawb7pIOMAj2fGq",
xLarge: "_1KP9SrSLawb7pIOMAj2fGq",
"header-flex": "_1YeLa8BhiNHuwPVi-fLWE-",
headerFlex: "_1YeLa8BhiNHuwPVi-fLWE-",
"content-flex": "_1duCEPal-MMGncyB_2n7tV",
contentFlex: "_1duCEPal-MMGncyB_2n7tV",
"footer-flex": "NkkQlcz-Rg6PCmT573fP2",
footerFlex: "NkkQlcz-Rg6PCmT573fP2"
"modal-wrapper": "_2gN3tZk3JmXR8eoCdfubwO",
modalWrapper: "_2gN3tZk3JmXR8eoCdfubwO",
"modal-positioner": "_1xdihSqnzh3DmlrcAd4_xc",
modalPositioner: "_1xdihSqnzh3DmlrcAd4_xc",
small: "_2VUTtbK-ZrTOYm0mFPkgnI",
small: "_2VUTtbK-ZrTOYm0mFPkgnI",
medium: "fGfce1WE2Skz_0rhulO8W",
medium: "fGfce1WE2Skz_0rhulO8W",
large: "_249f-h61kwrdkkutbJg2KT",
large: "_249f-h61kwrdkkutbJg2KT",
"x-large": "_31IYi_riwlq4rucCvT02T6",
xLarge: "_31IYi_riwlq4rucCvT02T6",
"header-flex": "_1ZmgRgSERQzT2b0bKhp7GT",
headerFlex: "_1ZmgRgSERQzT2b0bKhp7GT",
"content-flex": "_1HO6NJJGwtt-iyB5y9Vmth",
contentFlex: "_1HO6NJJGwtt-iyB5y9Vmth",
"rounded-content-top": "_15HL_jewbC_u9DD5CZHwcT",
roundedContentTop: "_15HL_jewbC_u9DD5CZHwcT",
"rounded-content-bottom": "PipG-9txWSAOOWj47Jk99",
roundedContentBottom: "PipG-9txWSAOOWj47Jk99",
"rounded-content-top-bottom": "_2sc-yD2SWpuPWBY3N8cEG2",
roundedContentTopBottom: "_2sc-yD2SWpuPWBY3N8cEG2",
"footer-flex": "_2vUV7mqgX-AToH75icXQB4",
footerFlex: "_2vUV7mqgX-AToH75icXQB4"
};

@@ -225,0 +235,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),a=n(o),i=r(6),l=n(i),s=r(7),u=n(s),d=r(8),f=n(d),p=r(9),c=n(p),h=r(10),x=n(h),m=r(11),b=n(m),g=r(12),y=n(g),v=r(13),_=n(v),w=r(14),C=n(w),k=r(18),P=n(k),R={values:["small","medium","large","x-large"],defaultValue:"medium"},O=function(e){function t(){var e,r,n,o;(0,f.default)(this,t);for(var a=arguments.length,i=Array(a),l=0;l<a;l++)i[l]=arguments[l];return r=n=(0,x.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,x.default)(n,o)}return(0,b.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=R.values.indexOf(s)===-1?{style:{width:s}}:{};return y.default.createElement("div",{className:C.default.modalWrapper},y.default.createElement(P.default,{isTinted:!0,onBlanketClicked:r}),y.default.createElement("div",(0,a.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?y.default.createElement("div",{className:C.default.headerFlex},n):null,y.default.createElement("div",{className:C.default.contentFlex},o),i?y.default.createElement("div",{className:C.default.footerFlex},i):null))}}]),t}(g.PureComponent);O.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(R.values)]),onDialogDismissed:g.PropTypes.func},O.defaultProps={isOpen:!1,onDialogDismissed:function(){},width:R.defaultValue},t.default=O},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,'._1k2ZLfUa_vAxFYP_4XTR6z{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._3xOyXg8yhewr25CD2RgJaY{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}._3xOyXg8yhewr25CD2RgJaY._2EBR-6-NkOCDnHvaMNIG9z{width:400px}._3xOyXg8yhewr25CD2RgJaY._287oCXedYVQYT3bNiMuK6e{width:600px}._3xOyXg8yhewr25CD2RgJaY._3TWK5-P8mkXRkIXF9YYSsd{width:800px}._3xOyXg8yhewr25CD2RgJaY._1KP9SrSLawb7pIOMAj2fGq{width:968px}._3xOyXg8yhewr25CD2RgJaY ._1YeLa8BhiNHuwPVi-fLWE-{-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}._3xOyXg8yhewr25CD2RgJaY ._1duCEPal-MMGncyB_2n7tV{-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}._3xOyXg8yhewr25CD2RgJaY ._1duCEPal-MMGncyB_2n7tV:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._3xOyXg8yhewr25CD2RgJaY ._1duCEPal-MMGncyB_2n7tV:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._3xOyXg8yhewr25CD2RgJaY .NkkQlcz-Rg6PCmT573fP2{-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":"_1k2ZLfUa_vAxFYP_4XTR6z",modalWrapper:"_1k2ZLfUa_vAxFYP_4XTR6z","modal-positioner":"_3xOyXg8yhewr25CD2RgJaY",modalPositioner:"_3xOyXg8yhewr25CD2RgJaY",small:"_2EBR-6-NkOCDnHvaMNIG9z",small:"_2EBR-6-NkOCDnHvaMNIG9z",medium:"_287oCXedYVQYT3bNiMuK6e",medium:"_287oCXedYVQYT3bNiMuK6e",large:"_3TWK5-P8mkXRkIXF9YYSsd",large:"_3TWK5-P8mkXRkIXF9YYSsd","x-large":"_1KP9SrSLawb7pIOMAj2fGq",xLarge:"_1KP9SrSLawb7pIOMAj2fGq","header-flex":"_1YeLa8BhiNHuwPVi-fLWE-",headerFlex:"_1YeLa8BhiNHuwPVi-fLWE-","content-flex":"_1duCEPal-MMGncyB_2n7tV",contentFlex:"_1duCEPal-MMGncyB_2n7tV","footer-flex":"NkkQlcz-Rg6PCmT573fP2",footerFlex:"NkkQlcz-Rg6PCmT573fP2"}},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=y[y.length-1];if("top"===e.insertAt)n?n.nextSibling?r.insertBefore(t,n.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),y.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=y.indexOf(e);t>=0&&y.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=b||(b=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=p.bind(null,r),o=function(){i(r),r.href&&URL.revokeObjectURL(r.href)}):(r=l(t),n=f.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=v(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 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"}),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}},x=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),m=h(function(){return document.head||document.getElementsByTagName("head")[0]}),b=null,g=0,y=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=x()),"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 v=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),d=o(a),l=r(7),u=o(l),s=r(8),f=o(s),p=r(9),c=o(p),h=r(10),m=o(h),b=r(11),x=o(b),g=r(12),_=o(g),v=r(13),y=o(v),w=r(14),k=o(w),T=r(18),C=o(T),D={values:["small","medium","large","x-large"],defaultValue:"medium"},S=function(e){function t(){var e,r,o,n;(0,f.default)(this,t);for(var i=arguments.length,a=Array(i),d=0;d<i;d++)a[d]=arguments[d];return r=o=(0,m.default)(this,(e=t.__proto__||(0,u.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,t;if(!this.props.isOpen)return null;var r=this.props,o=r.onDialogDismissed,n=r.header,a=r.children,l=r.footer,u=r.width,s=D.values.indexOf(u)===-1?{style:{width:u}}:{},f=!n,p=!l;return _.default.createElement("div",{className:k.default.modalWrapper},_.default.createElement(C.default,{isTinted:!0,onBlanketClicked:o}),_.default.createElement("div",(0,i.default)({className:(0,y.default)([k.default.modalPositioner,(e={},(0,d.default)(e,k.default.small,"small"===u),(0,d.default)(e,k.default.medium,"medium"===u),(0,d.default)(e,k.default.large,"large"===u),(0,d.default)(e,k.default.xLarge,"x-large"===u),e)])},s),n?_.default.createElement("div",{className:k.default.headerFlex},n):null,_.default.createElement("div",{className:(0,y.default)([k.default.contentFlex,(t={},(0,d.default)(t,k.default.roundedContentTop,f&&!p),(0,d.default)(t,k.default.roundedContentBottom,p&&!f),(0,d.default)(t,k.default.roundedContentTopBottom,f&&p),t)])},a),l?_.default.createElement("div",{className:k.default.footerFlex},l):null))}}]),t}(g.PureComponent);S.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(D.values)]),onDialogDismissed:g.PropTypes.func},S.defaultProps={isOpen:!1,onDialogDismissed:function(){},width:D.defaultValue},t.default=S},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,'._2gN3tZk3JmXR8eoCdfubwO{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._1xdihSqnzh3DmlrcAd4_xc{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}._1xdihSqnzh3DmlrcAd4_xc._2VUTtbK-ZrTOYm0mFPkgnI{width:400px}._1xdihSqnzh3DmlrcAd4_xc.fGfce1WE2Skz_0rhulO8W{width:600px}._1xdihSqnzh3DmlrcAd4_xc._249f-h61kwrdkkutbJg2KT{width:800px}._1xdihSqnzh3DmlrcAd4_xc._31IYi_riwlq4rucCvT02T6{width:968px}._1xdihSqnzh3DmlrcAd4_xc ._1ZmgRgSERQzT2b0bKhp7GT{-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}._1xdihSqnzh3DmlrcAd4_xc ._1HO6NJJGwtt-iyB5y9Vmth{-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}._1xdihSqnzh3DmlrcAd4_xc ._1HO6NJJGwtt-iyB5y9Vmth:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._1xdihSqnzh3DmlrcAd4_xc ._1HO6NJJGwtt-iyB5y9Vmth:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._1xdihSqnzh3DmlrcAd4_xc ._15HL_jewbC_u9DD5CZHwcT{background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-left-radius:0;border-bottom-right-radius:0}._1xdihSqnzh3DmlrcAd4_xc .PipG-9txWSAOOWj47Jk99{background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}._1xdihSqnzh3DmlrcAd4_xc ._2sc-yD2SWpuPWBY3N8cEG2{background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-left-radius:4px;border-bottom-right-radius:4px}._1xdihSqnzh3DmlrcAd4_xc ._2vUV7mqgX-AToH75icXQB4{-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":"_2gN3tZk3JmXR8eoCdfubwO",modalWrapper:"_2gN3tZk3JmXR8eoCdfubwO","modal-positioner":"_1xdihSqnzh3DmlrcAd4_xc",modalPositioner:"_1xdihSqnzh3DmlrcAd4_xc",small:"_2VUTtbK-ZrTOYm0mFPkgnI",small:"_2VUTtbK-ZrTOYm0mFPkgnI",medium:"fGfce1WE2Skz_0rhulO8W",medium:"fGfce1WE2Skz_0rhulO8W",large:"_249f-h61kwrdkkutbJg2KT",large:"_249f-h61kwrdkkutbJg2KT","x-large":"_31IYi_riwlq4rucCvT02T6",xLarge:"_31IYi_riwlq4rucCvT02T6","header-flex":"_1ZmgRgSERQzT2b0bKhp7GT",headerFlex:"_1ZmgRgSERQzT2b0bKhp7GT","content-flex":"_1HO6NJJGwtt-iyB5y9Vmth",contentFlex:"_1HO6NJJGwtt-iyB5y9Vmth","rounded-content-top":"_15HL_jewbC_u9DD5CZHwcT",roundedContentTop:"_15HL_jewbC_u9DD5CZHwcT","rounded-content-bottom":"PipG-9txWSAOOWj47Jk99",roundedContentBottom:"PipG-9txWSAOOWj47Jk99","rounded-content-top-bottom":"_2sc-yD2SWpuPWBY3N8cEG2",roundedContentTopBottom:"_2sc-yD2SWpuPWBY3N8cEG2","footer-flex":"_2vUV7mqgX-AToH75icXQB4",footerFlex:"_2vUV7mqgX-AToH75icXQB4"}},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(u(o.parts[i],t))}else{for(var a=[],i=0;i<o.parts.length;i++)a.push(u(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],d=n[2],l=n[3],u={css:a,media:d,sourceMap:l};r[i]?r[i].parts.push(u):t.push(r[i]={id:i,parts:[u]})}return t}function i(e,t){var r=b(),o=_[_.length-1];if("top"===e.insertAt)o?o.nextSibling?r.insertBefore(t,o.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),_.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=_.indexOf(e);t>=0&&_.splice(t,1)}function d(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function l(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function u(e,t){var r,o,n;if(t.singleton){var i=g++;r=x||(x=d(t)),o=s.bind(null,r,i,!1),n=s.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=l(t),o=p.bind(null,r),n=function(){a(r),r.href&&URL.revokeObjectURL(r.href)}):(r=d(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 s(e,t,r,o){var n=r?"":o.css;if(e.styleSheet)e.styleSheet.cssText=v(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())}),b=h(function(){return document.head||document.getElementsByTagName("head")[0]}),x=null,g=0,_=[];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 d=r[a],l=c[d.id];l.refs--,i.push(l)}if(e){var u=n(e);o(u,t)}for(var a=0;a<i.length;a++){var l=i[a];if(0===l.refs){for(var s=0;s<l.parts.length;s++)l.parts[s]();delete c[l.id]}}}};var v=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=require("@atlaskit/blanket")}]);

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

value: function() {
var _ref2;
var _ref2, _ref3;
// don't render anything if open = false

@@ -117,3 +117,3 @@ if (!this.props.isOpen) return null;

}
} : {};
} : {}, isContentTopRounded = !header, isContentBottomRounded = !footer;
return _react2.default.createElement("div", {

@@ -134,3 +134,7 @@ className: _style2.default.modalWrapper

}, header) : null, _react2.default.createElement("div", {
className: _style2.default.contentFlex
className: (0, _classnames2.default)([ _style2.default.contentFlex, (_ref3 = {},
(0, _defineProperty3.default)(_ref3, _style2.default.roundedContentTop, isContentTopRounded && !isContentBottomRounded),
(0, _defineProperty3.default)(_ref3, _style2.default.roundedContentBottom, isContentBottomRounded && !isContentTopRounded),
(0, _defineProperty3.default)(_ref3, _style2.default.roundedContentTopBottom, isContentTopRounded && isContentBottomRounded),
_ref3) ])
}, children), footer ? _react2.default.createElement("div", {

@@ -205,23 +209,29 @@ className: _style2.default.footerFlex

// module
exports.push([ module.id, '._1k2ZLfUa_vAxFYP_4XTR6z{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._3xOyXg8yhewr25CD2RgJaY{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}._3xOyXg8yhewr25CD2RgJaY._2EBR-6-NkOCDnHvaMNIG9z{width:400px}._3xOyXg8yhewr25CD2RgJaY._287oCXedYVQYT3bNiMuK6e{width:600px}._3xOyXg8yhewr25CD2RgJaY._3TWK5-P8mkXRkIXF9YYSsd{width:800px}._3xOyXg8yhewr25CD2RgJaY._1KP9SrSLawb7pIOMAj2fGq{width:968px}._3xOyXg8yhewr25CD2RgJaY ._1YeLa8BhiNHuwPVi-fLWE-{-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}._3xOyXg8yhewr25CD2RgJaY ._1duCEPal-MMGncyB_2n7tV{-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}._3xOyXg8yhewr25CD2RgJaY ._1duCEPal-MMGncyB_2n7tV:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._3xOyXg8yhewr25CD2RgJaY ._1duCEPal-MMGncyB_2n7tV:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._3xOyXg8yhewr25CD2RgJaY .NkkQlcz-Rg6PCmT573fP2{-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, '._2gN3tZk3JmXR8eoCdfubwO{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._1xdihSqnzh3DmlrcAd4_xc{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}._1xdihSqnzh3DmlrcAd4_xc._2VUTtbK-ZrTOYm0mFPkgnI{width:400px}._1xdihSqnzh3DmlrcAd4_xc.fGfce1WE2Skz_0rhulO8W{width:600px}._1xdihSqnzh3DmlrcAd4_xc._249f-h61kwrdkkutbJg2KT{width:800px}._1xdihSqnzh3DmlrcAd4_xc._31IYi_riwlq4rucCvT02T6{width:968px}._1xdihSqnzh3DmlrcAd4_xc ._1ZmgRgSERQzT2b0bKhp7GT{-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}._1xdihSqnzh3DmlrcAd4_xc ._1HO6NJJGwtt-iyB5y9Vmth{-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}._1xdihSqnzh3DmlrcAd4_xc ._1HO6NJJGwtt-iyB5y9Vmth:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._1xdihSqnzh3DmlrcAd4_xc ._1HO6NJJGwtt-iyB5y9Vmth:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._1xdihSqnzh3DmlrcAd4_xc ._15HL_jewbC_u9DD5CZHwcT{background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-left-radius:0;border-bottom-right-radius:0}._1xdihSqnzh3DmlrcAd4_xc .PipG-9txWSAOOWj47Jk99{background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}._1xdihSqnzh3DmlrcAd4_xc ._2sc-yD2SWpuPWBY3N8cEG2{background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-left-radius:4px;border-bottom-right-radius:4px}._1xdihSqnzh3DmlrcAd4_xc ._2vUV7mqgX-AToH75icXQB4{-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": "_1k2ZLfUa_vAxFYP_4XTR6z",
modalWrapper: "_1k2ZLfUa_vAxFYP_4XTR6z",
"modal-positioner": "_3xOyXg8yhewr25CD2RgJaY",
modalPositioner: "_3xOyXg8yhewr25CD2RgJaY",
small: "_2EBR-6-NkOCDnHvaMNIG9z",
small: "_2EBR-6-NkOCDnHvaMNIG9z",
medium: "_287oCXedYVQYT3bNiMuK6e",
medium: "_287oCXedYVQYT3bNiMuK6e",
large: "_3TWK5-P8mkXRkIXF9YYSsd",
large: "_3TWK5-P8mkXRkIXF9YYSsd",
"x-large": "_1KP9SrSLawb7pIOMAj2fGq",
xLarge: "_1KP9SrSLawb7pIOMAj2fGq",
"header-flex": "_1YeLa8BhiNHuwPVi-fLWE-",
headerFlex: "_1YeLa8BhiNHuwPVi-fLWE-",
"content-flex": "_1duCEPal-MMGncyB_2n7tV",
contentFlex: "_1duCEPal-MMGncyB_2n7tV",
"footer-flex": "NkkQlcz-Rg6PCmT573fP2",
footerFlex: "NkkQlcz-Rg6PCmT573fP2"
"modal-wrapper": "_2gN3tZk3JmXR8eoCdfubwO",
modalWrapper: "_2gN3tZk3JmXR8eoCdfubwO",
"modal-positioner": "_1xdihSqnzh3DmlrcAd4_xc",
modalPositioner: "_1xdihSqnzh3DmlrcAd4_xc",
small: "_2VUTtbK-ZrTOYm0mFPkgnI",
small: "_2VUTtbK-ZrTOYm0mFPkgnI",
medium: "fGfce1WE2Skz_0rhulO8W",
medium: "fGfce1WE2Skz_0rhulO8W",
large: "_249f-h61kwrdkkutbJg2KT",
large: "_249f-h61kwrdkkutbJg2KT",
"x-large": "_31IYi_riwlq4rucCvT02T6",
xLarge: "_31IYi_riwlq4rucCvT02T6",
"header-flex": "_1ZmgRgSERQzT2b0bKhp7GT",
headerFlex: "_1ZmgRgSERQzT2b0bKhp7GT",
"content-flex": "_1HO6NJJGwtt-iyB5y9Vmth",
contentFlex: "_1HO6NJJGwtt-iyB5y9Vmth",
"rounded-content-top": "_15HL_jewbC_u9DD5CZHwcT",
roundedContentTop: "_15HL_jewbC_u9DD5CZHwcT",
"rounded-content-bottom": "PipG-9txWSAOOWj47Jk99",
roundedContentBottom: "PipG-9txWSAOOWj47Jk99",
"rounded-content-top-bottom": "_2sc-yD2SWpuPWBY3N8cEG2",
roundedContentTopBottom: "_2sc-yD2SWpuPWBY3N8cEG2",
"footer-flex": "_2vUV7mqgX-AToH75icXQB4",
footerFlex: "_2vUV7mqgX-AToH75icXQB4"
};

@@ -228,0 +238,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),f=n(d),p=r(9),c=n(p),b=r(10),h=n(b),m=r(11),x=n(m),g=r(12),y=n(g),v=r(13),C=n(v),k=r(14),_=n(k),w=r(18),P=n(w),R={values:["small","medium","large","x-large"],defaultValue:"medium"},O=function(e){function t(){var e,r,n,o;(0,f.default)(this,t);for(var a=arguments.length,i=Array(a),l=0;l<a;l++)i[l]=arguments[l];return r=n=(0,h.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,h.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=R.values.indexOf(s)===-1?{style:{width:s}}:{};return y.default.createElement("div",{className:_.default.modalWrapper},y.default.createElement(P.default,{isTinted:!0,onBlanketClicked:r}),y.default.createElement("div",(0,a.default)({className:(0,C.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?y.default.createElement("div",{className:_.default.headerFlex},n):null,y.default.createElement("div",{className:_.default.contentFlex},o),i?y.default.createElement("div",{className:_.default.footerFlex},i):null))}}]),t}(g.PureComponent);O.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(R.values)]),onDialogDismissed:g.PropTypes.func},O.defaultProps={isOpen:!1,onDialogDismissed:function(){},width:R.defaultValue},t.default=O},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,'._1k2ZLfUa_vAxFYP_4XTR6z{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._3xOyXg8yhewr25CD2RgJaY{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}._3xOyXg8yhewr25CD2RgJaY._2EBR-6-NkOCDnHvaMNIG9z{width:400px}._3xOyXg8yhewr25CD2RgJaY._287oCXedYVQYT3bNiMuK6e{width:600px}._3xOyXg8yhewr25CD2RgJaY._3TWK5-P8mkXRkIXF9YYSsd{width:800px}._3xOyXg8yhewr25CD2RgJaY._1KP9SrSLawb7pIOMAj2fGq{width:968px}._3xOyXg8yhewr25CD2RgJaY ._1YeLa8BhiNHuwPVi-fLWE-{-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}._3xOyXg8yhewr25CD2RgJaY ._1duCEPal-MMGncyB_2n7tV{-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}._3xOyXg8yhewr25CD2RgJaY ._1duCEPal-MMGncyB_2n7tV:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._3xOyXg8yhewr25CD2RgJaY ._1duCEPal-MMGncyB_2n7tV:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._3xOyXg8yhewr25CD2RgJaY .NkkQlcz-Rg6PCmT573fP2{-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":"_1k2ZLfUa_vAxFYP_4XTR6z",modalWrapper:"_1k2ZLfUa_vAxFYP_4XTR6z","modal-positioner":"_3xOyXg8yhewr25CD2RgJaY",modalPositioner:"_3xOyXg8yhewr25CD2RgJaY",small:"_2EBR-6-NkOCDnHvaMNIG9z",small:"_2EBR-6-NkOCDnHvaMNIG9z",medium:"_287oCXedYVQYT3bNiMuK6e",medium:"_287oCXedYVQYT3bNiMuK6e",large:"_3TWK5-P8mkXRkIXF9YYSsd",large:"_3TWK5-P8mkXRkIXF9YYSsd","x-large":"_1KP9SrSLawb7pIOMAj2fGq",xLarge:"_1KP9SrSLawb7pIOMAj2fGq","header-flex":"_1YeLa8BhiNHuwPVi-fLWE-",headerFlex:"_1YeLa8BhiNHuwPVi-fLWE-","content-flex":"_1duCEPal-MMGncyB_2n7tV",contentFlex:"_1duCEPal-MMGncyB_2n7tV","footer-flex":"NkkQlcz-Rg6PCmT573fP2",footerFlex:"NkkQlcz-Rg6PCmT573fP2"}},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=y[y.length-1];if("top"===e.insertAt)n?n.nextSibling?r.insertBefore(t,n.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),y.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=y.indexOf(e);t>=0&&y.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=p.bind(null,r),o=function(){i(r),r.href&&URL.revokeObjectURL(r.href)}):(r=l(t),n=f.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=v(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 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"}),a=e.href;e.href=URL.createObjectURL(o),a&&URL.revokeObjectURL(a)}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,y=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=h()),"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 v=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,o,n,i,a,l,s,u){return 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),u=o(s),d=r(8),p=o(d),f=r(9),c=o(f),b=r(10),h=o(b),m=r(11),x=o(m),g=r(12),_=o(g),v=r(13),y=o(v),k=r(14),w=o(k),C=r(18),T=o(C),q={values:["small","medium","large","x-large"],defaultValue:"medium"},D=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,u.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,t;if(!this.props.isOpen)return null;var r=this.props,o=r.onDialogDismissed,n=r.header,a=r.children,s=r.footer,u=r.width,d=q.values.indexOf(u)===-1?{style:{width:u}}:{},p=!n,f=!s;return _.default.createElement("div",{className:w.default.modalWrapper},_.default.createElement(T.default,{isTinted:!0,onBlanketClicked:o}),_.default.createElement("div",(0,i.default)({className:(0,y.default)([w.default.modalPositioner,(e={},(0,l.default)(e,w.default.small,"small"===u),(0,l.default)(e,w.default.medium,"medium"===u),(0,l.default)(e,w.default.large,"large"===u),(0,l.default)(e,w.default.xLarge,"x-large"===u),e)])},d),n?_.default.createElement("div",{className:w.default.headerFlex},n):null,_.default.createElement("div",{className:(0,y.default)([w.default.contentFlex,(t={},(0,l.default)(t,w.default.roundedContentTop,p&&!f),(0,l.default)(t,w.default.roundedContentBottom,f&&!p),(0,l.default)(t,w.default.roundedContentTopBottom,p&&f),t)])},a),s?_.default.createElement("div",{className:w.default.footerFlex},s):null))}}]),t}(g.PureComponent);D.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},D.defaultProps={isOpen:!1,onDialogDismissed:function(){},width:q.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=o},function(e,t){e.exports=n},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 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,'._2gN3tZk3JmXR8eoCdfubwO{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._1xdihSqnzh3DmlrcAd4_xc{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}._1xdihSqnzh3DmlrcAd4_xc._2VUTtbK-ZrTOYm0mFPkgnI{width:400px}._1xdihSqnzh3DmlrcAd4_xc.fGfce1WE2Skz_0rhulO8W{width:600px}._1xdihSqnzh3DmlrcAd4_xc._249f-h61kwrdkkutbJg2KT{width:800px}._1xdihSqnzh3DmlrcAd4_xc._31IYi_riwlq4rucCvT02T6{width:968px}._1xdihSqnzh3DmlrcAd4_xc ._1ZmgRgSERQzT2b0bKhp7GT{-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}._1xdihSqnzh3DmlrcAd4_xc ._1HO6NJJGwtt-iyB5y9Vmth{-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}._1xdihSqnzh3DmlrcAd4_xc ._1HO6NJJGwtt-iyB5y9Vmth:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._1xdihSqnzh3DmlrcAd4_xc ._1HO6NJJGwtt-iyB5y9Vmth:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._1xdihSqnzh3DmlrcAd4_xc ._15HL_jewbC_u9DD5CZHwcT{background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-left-radius:0;border-bottom-right-radius:0}._1xdihSqnzh3DmlrcAd4_xc .PipG-9txWSAOOWj47Jk99{background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}._1xdihSqnzh3DmlrcAd4_xc ._2sc-yD2SWpuPWBY3N8cEG2{background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-left-radius:4px;border-bottom-right-radius:4px}._1xdihSqnzh3DmlrcAd4_xc ._2vUV7mqgX-AToH75icXQB4{-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":"_2gN3tZk3JmXR8eoCdfubwO",modalWrapper:"_2gN3tZk3JmXR8eoCdfubwO","modal-positioner":"_1xdihSqnzh3DmlrcAd4_xc",modalPositioner:"_1xdihSqnzh3DmlrcAd4_xc",small:"_2VUTtbK-ZrTOYm0mFPkgnI",small:"_2VUTtbK-ZrTOYm0mFPkgnI",medium:"fGfce1WE2Skz_0rhulO8W",medium:"fGfce1WE2Skz_0rhulO8W",large:"_249f-h61kwrdkkutbJg2KT",large:"_249f-h61kwrdkkutbJg2KT","x-large":"_31IYi_riwlq4rucCvT02T6",xLarge:"_31IYi_riwlq4rucCvT02T6","header-flex":"_1ZmgRgSERQzT2b0bKhp7GT",headerFlex:"_1ZmgRgSERQzT2b0bKhp7GT","content-flex":"_1HO6NJJGwtt-iyB5y9Vmth",contentFlex:"_1HO6NJJGwtt-iyB5y9Vmth","rounded-content-top":"_15HL_jewbC_u9DD5CZHwcT",roundedContentTop:"_15HL_jewbC_u9DD5CZHwcT","rounded-content-bottom":"PipG-9txWSAOOWj47Jk99",roundedContentBottom:"PipG-9txWSAOOWj47Jk99","rounded-content-top-bottom":"_2sc-yD2SWpuPWBY3N8cEG2",roundedContentTopBottom:"_2sc-yD2SWpuPWBY3N8cEG2","footer-flex":"_2vUV7mqgX-AToH75icXQB4",footerFlex:"_2vUV7mqgX-AToH75icXQB4"}},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(u(o.parts[i],t))}else{for(var a=[],i=0;i<o.parts.length;i++)a.push(u(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],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=m(),o=_[_.length-1];if("top"===e.insertAt)o?o.nextSibling?r.insertBefore(t,o.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),_.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=_.indexOf(e);t>=0&&_.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,o,n;if(t.singleton){var i=g++;r=x||(x=l(t)),o=d.bind(null,r,i,!1),n=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),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 d(e,t,r,o){var n=r?"":o.css;if(e.styleSheet)e.styleSheet.cssText=v(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,_=[];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 u=n(e);o(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 v=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.11",
"version": "1.2.12",
"config": {

@@ -5,0 +5,0 @@ "access": "public"

@@ -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.11)
[![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.12)

@@ -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.11/).
Interact with a [live demo of the @atlaskit/modal-dialog component](https://aui-cdn.atlassian.com/atlaskit/stories/@atlaskit/modal-dialog/1.2.12/).

@@ -119,3 +119,3 @@ ## Installation

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.11).
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.12).

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