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.0.2 to 1.1.0

38

dist/bundle-cjs.js

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

// module
exports.push([ module.id, "._30LpSRoaeIMy4K90sUEY-9{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._1I1m7FALF1dKbhWzrmLFb{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}._1I1m7FALF1dKbhWzrmLFb.qrDpbPace38I2SU4W7Fmj{width:400px}._1I1m7FALF1dKbhWzrmLFb._3HN8AS9pBVn6hYDPyTd4X6{width:600px}._1I1m7FALF1dKbhWzrmLFb._3JJLqqK_73A5NFUe1POq1H{width:800px}._1I1m7FALF1dKbhWzrmLFb._2pPpYrHNY7bKJ7ugKjlplI{width:968px}._1I1m7FALF1dKbhWzrmLFb ._2oIqhmrt4fo-Qnx7DjoBmI,._1I1m7FALF1dKbhWzrmLFb .eqDTIC4CDd6QsLg38U-dO,._1I1m7FALF1dKbhWzrmLFb .zgIjLvysxTzfQZGT4lSCi{box-shadow:0 8px 16px -4px rgba(9,30,66,.28)}._1I1m7FALF1dKbhWzrmLFb .zgIjLvysxTzfQZGT4lSCi{-webkit-box-flex:0;flex:0 0 auto;padding:16px;background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-left-radius:0;border-bottom-right-radius:0}._1I1m7FALF1dKbhWzrmLFb .eqDTIC4CDd6QsLg38U-dO{-webkit-box-flex:0;flex:0 1 auto;overflow:auto;padding:0 16px;z-index:511;background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}._1I1m7FALF1dKbhWzrmLFb ._2oIqhmrt4fo-Qnx7DjoBmI{-webkit-box-flex:0;flex:0 0 auto;padding:16px;z-index:512;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, '._1IAK6qQo95yr0sX1cB-NUK{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._2a3TgATMV47a8dPxmPJJu3{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}._2a3TgATMV47a8dPxmPJJu3._1FWVLR2QM-b4YCht8cg0u3{width:400px}._2a3TgATMV47a8dPxmPJJu3.bdHyyam9Mfx-3q6ErwqP{width:600px}._2a3TgATMV47a8dPxmPJJu3._2AbhitOeWy9LNSyZE9-rya{width:800px}._2a3TgATMV47a8dPxmPJJu3._3-oqjMINjfCG2QsC9I5UhH{width:968px}._2a3TgATMV47a8dPxmPJJu3 ._1Mzn-qxeNWb2oSHuQLZD-{-webkit-box-flex:0;flex:0 0 auto;padding:16px;box-shadow:0 8px 20px -4px rgba(9,30,66,.25),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}._2a3TgATMV47a8dPxmPJJu3 ._1uEoAAKmruuwr5yfKdX6bi{-webkit-box-flex:0;flex:0 1 auto;overflow:auto;box-sizing:border-box;padding:0 16px;position:relative;z-index:511;box-shadow:0 8px 20px -4px rgba(9,30,66,.25),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}._2a3TgATMV47a8dPxmPJJu3 ._1uEoAAKmruuwr5yfKdX6bi:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._2a3TgATMV47a8dPxmPJJu3 ._1uEoAAKmruuwr5yfKdX6bi:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._2a3TgATMV47a8dPxmPJJu3 ._33E1ZeJ2VsV1Z1hAw_CMOf{-webkit-box-flex:0;flex:0 0 auto;padding:16px;z-index:512;box-shadow:0 8px 20px -4px rgba(9,30,66,.25),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": "_30LpSRoaeIMy4K90sUEY-9",
modalWrapper: "_30LpSRoaeIMy4K90sUEY-9",
"modal-positioner": "_1I1m7FALF1dKbhWzrmLFb",
modalPositioner: "_1I1m7FALF1dKbhWzrmLFb",
small: "qrDpbPace38I2SU4W7Fmj",
small: "qrDpbPace38I2SU4W7Fmj",
medium: "_3HN8AS9pBVn6hYDPyTd4X6",
medium: "_3HN8AS9pBVn6hYDPyTd4X6",
large: "_3JJLqqK_73A5NFUe1POq1H",
large: "_3JJLqqK_73A5NFUe1POq1H",
"x-large": "_2pPpYrHNY7bKJ7ugKjlplI",
xLarge: "_2pPpYrHNY7bKJ7ugKjlplI",
"header-flex": "zgIjLvysxTzfQZGT4lSCi",
headerFlex: "zgIjLvysxTzfQZGT4lSCi",
"content-flex": "eqDTIC4CDd6QsLg38U-dO",
contentFlex: "eqDTIC4CDd6QsLg38U-dO",
"footer-flex": "_2oIqhmrt4fo-Qnx7DjoBmI",
footerFlex: "_2oIqhmrt4fo-Qnx7DjoBmI"
"modal-wrapper": "_1IAK6qQo95yr0sX1cB-NUK",
modalWrapper: "_1IAK6qQo95yr0sX1cB-NUK",
"modal-positioner": "_2a3TgATMV47a8dPxmPJJu3",
modalPositioner: "_2a3TgATMV47a8dPxmPJJu3",
small: "_1FWVLR2QM-b4YCht8cg0u3",
small: "_1FWVLR2QM-b4YCht8cg0u3",
medium: "bdHyyam9Mfx-3q6ErwqP",
medium: "bdHyyam9Mfx-3q6ErwqP",
large: "_2AbhitOeWy9LNSyZE9-rya",
large: "_2AbhitOeWy9LNSyZE9-rya",
"x-large": "_3-oqjMINjfCG2QsC9I5UhH",
xLarge: "_3-oqjMINjfCG2QsC9I5UhH",
"header-flex": "_1Mzn-qxeNWb2oSHuQLZD-",
headerFlex: "_1Mzn-qxeNWb2oSHuQLZD-",
"content-flex": "_1uEoAAKmruuwr5yfKdX6bi",
contentFlex: "_1uEoAAKmruuwr5yfKdX6bi",
"footer-flex": "_33E1ZeJ2VsV1Z1hAw_CMOf",
footerFlex: "_33E1ZeJ2VsV1Z1hAw_CMOf"
};

@@ -239,0 +239,0 @@ }, /* 14 */

@@ -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),s=o(a),l=r(7),d=o(l),u=r(8),f=o(u),p=r(9),c=o(p),m=r(10),h=o(m),b=r(11),x=o(b),v=r(12),g=o(v),L=r(16),y=o(L),F={values:["small","medium","large","x-large"],defaultValue:"medium"},I=function(e){function t(){var e,r,o,n;(0,s.default)(this,t);for(var a=arguments.length,l=Array(a),d=0;d<a;d++)l[d]=arguments[d];return r=o=(0,f.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(l))),o.componentDidMount=function(){document.addEventListener("keydown",o.handleKeyDown)},o.componentWillUnmount=function(){document.removeEventListener("keydown",o.handleKeyDown)},o.handleKeyDown=function(e){"Escape"===e.key&&o.props.onDialogDismissed(e)},n=r,(0,f.default)(o,n)}return(0,c.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){if(!this.props.isOpen)return null;var e=this.props,t=e.onDialogDismissed,r=e.header,o=e.children,n=e.footer,i=e.width;return h.default.createElement("div",{className:g.default.modalWrapper},h.default.createElement(y.default,{isTinted:!0,onBlanketClicked:t}),h.default.createElement("div",{className:(0,x.default)([g.default.modalPositioner,g.default[i]])},h.default.createElement("div",{className:g.default.headerFlex},r),h.default.createElement("div",{className:g.default.contentFlex},o),h.default.createElement("div",{className:g.default.footerFlex},n)))}}]),t}(m.PureComponent);I.propTypes={isOpen:m.PropTypes.bool,header:m.PropTypes.node,children:m.PropTypes.node,footer:m.PropTypes.node,width:m.PropTypes.oneOf(F.values),onDialogDismissed:m.PropTypes.func},I.defaultProps={isOpen:!1,onDialogDismissed:function(){},width:F.defaultValue},t.default=I},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(13);"string"==typeof o&&(o=[[e.id,o,""]]),r(15)(o,{}),o.locals&&(e.exports=o.locals)},function(e,t,r){t=e.exports=r(14)(),t.push([e.id,"._30LpSRoaeIMy4K90sUEY-9{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._1I1m7FALF1dKbhWzrmLFb{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}._1I1m7FALF1dKbhWzrmLFb.qrDpbPace38I2SU4W7Fmj{width:400px}._1I1m7FALF1dKbhWzrmLFb._3HN8AS9pBVn6hYDPyTd4X6{width:600px}._1I1m7FALF1dKbhWzrmLFb._3JJLqqK_73A5NFUe1POq1H{width:800px}._1I1m7FALF1dKbhWzrmLFb._2pPpYrHNY7bKJ7ugKjlplI{width:968px}._1I1m7FALF1dKbhWzrmLFb ._2oIqhmrt4fo-Qnx7DjoBmI,._1I1m7FALF1dKbhWzrmLFb .eqDTIC4CDd6QsLg38U-dO,._1I1m7FALF1dKbhWzrmLFb .zgIjLvysxTzfQZGT4lSCi{box-shadow:0 8px 16px -4px rgba(9,30,66,.28)}._1I1m7FALF1dKbhWzrmLFb .zgIjLvysxTzfQZGT4lSCi{-webkit-box-flex:0;flex:0 0 auto;padding:16px;background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-left-radius:0;border-bottom-right-radius:0}._1I1m7FALF1dKbhWzrmLFb .eqDTIC4CDd6QsLg38U-dO{-webkit-box-flex:0;flex:0 1 auto;overflow:auto;padding:0 16px;z-index:511;background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}._1I1m7FALF1dKbhWzrmLFb ._2oIqhmrt4fo-Qnx7DjoBmI{-webkit-box-flex:0;flex:0 0 auto;padding:16px;z-index:512;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":"_30LpSRoaeIMy4K90sUEY-9",modalWrapper:"_30LpSRoaeIMy4K90sUEY-9","modal-positioner":"_1I1m7FALF1dKbhWzrmLFb",modalPositioner:"_1I1m7FALF1dKbhWzrmLFb",small:"qrDpbPace38I2SU4W7Fmj",small:"qrDpbPace38I2SU4W7Fmj",medium:"_3HN8AS9pBVn6hYDPyTd4X6",medium:"_3HN8AS9pBVn6hYDPyTd4X6",large:"_3JJLqqK_73A5NFUe1POq1H",large:"_3JJLqqK_73A5NFUe1POq1H","x-large":"_2pPpYrHNY7bKJ7ugKjlplI",xLarge:"_2pPpYrHNY7bKJ7ugKjlplI","header-flex":"zgIjLvysxTzfQZGT4lSCi",headerFlex:"zgIjLvysxTzfQZGT4lSCi","content-flex":"eqDTIC4CDd6QsLg38U-dO",contentFlex:"eqDTIC4CDd6QsLg38U-dO","footer-flex":"_2oIqhmrt4fo-Qnx7DjoBmI",footerFlex:"_2oIqhmrt4fo-Qnx7DjoBmI"}},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],s=n[2],l=n[3],d={css:a,media:s,sourceMap:l};r[i]?r[i].parts.push(d):t.push(r[i]={id:i,parts:[d]})}return t}function i(e,t){var r=b(),o=g[g.length-1];if("top"===e.insertAt)o?o.nextSibling?r.insertBefore(t,o.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),g.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=g.indexOf(e);t>=0&&g.splice(t,1)}function s(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 d(e,t){var r,o,n;if(t.singleton){var i=v++;r=x||(x=s(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=l(t),o=p.bind(null,r),n=function(){a(r),r.href&&URL.revokeObjectURL(r.href)}):(r=s(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=L(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={},m=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},h=m(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),b=m(function(){return document.head||document.getElementsByTagName("head")[0]}),x=null,v=0,g=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=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 s=r[a],l=c[s.id];l.refs--,i.push(l)}if(e){var d=n(e);o(d,t)}for(var a=0;a<i.length;a++){var l=i[a];if(0===l.refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete c[l.id]}}}};var L=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),a=o(n),i=r(6),s=o(i),u=r(7),l=o(u),d=r(8),f=o(d),p=r(9),c=o(p),h=r(10),x=o(h),m=r(11),b=o(m),g=r(12),y=o(g),v=r(16),_=o(v),w={values:["small","medium","large","x-large"],defaultValue:"medium"},A=function(e){function t(){var e,r,o,n;(0,s.default)(this,t);for(var i=arguments.length,u=Array(i),l=0;l<i;l++)u[l]=arguments[l];return r=o=(0,f.default)(this,(e=t.__proto__||(0,a.default)(t)).call.apply(e,[this].concat(u))),o.componentDidMount=function(){document.addEventListener("keydown",o.handleKeyDown)},o.componentWillUnmount=function(){document.removeEventListener("keydown",o.handleKeyDown)},o.handleKeyDown=function(e){"Escape"===e.key&&o.props.onDialogDismissed(e)},n=r,(0,f.default)(o,n)}return(0,c.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){if(!this.props.isOpen)return null;var e=this.props,t=e.onDialogDismissed,r=e.header,o=e.children,n=e.footer,a=e.width;return x.default.createElement("div",{className:y.default.modalWrapper},x.default.createElement(_.default,{isTinted:!0,onBlanketClicked:t}),x.default.createElement("div",{className:(0,b.default)([y.default.modalPositioner,y.default[a]])},x.default.createElement("div",{className:y.default.headerFlex},r),x.default.createElement("div",{className:y.default.contentFlex},o),x.default.createElement("div",{className:y.default.footerFlex},n)))}}]),t}(h.PureComponent);A.propTypes={isOpen:h.PropTypes.bool,header:h.PropTypes.node,children:h.PropTypes.node,footer:h.PropTypes.node,width:h.PropTypes.oneOf(w.values),onDialogDismissed:h.PropTypes.func},A.defaultProps={isOpen:!1,onDialogDismissed:function(){},width:w.defaultValue},t.default=A},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(13);"string"==typeof o&&(o=[[e.id,o,""]]),r(15)(o,{}),o.locals&&(e.exports=o.locals)},function(e,t,r){t=e.exports=r(14)(),t.push([e.id,'._1IAK6qQo95yr0sX1cB-NUK{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._2a3TgATMV47a8dPxmPJJu3{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}._2a3TgATMV47a8dPxmPJJu3._1FWVLR2QM-b4YCht8cg0u3{width:400px}._2a3TgATMV47a8dPxmPJJu3.bdHyyam9Mfx-3q6ErwqP{width:600px}._2a3TgATMV47a8dPxmPJJu3._2AbhitOeWy9LNSyZE9-rya{width:800px}._2a3TgATMV47a8dPxmPJJu3._3-oqjMINjfCG2QsC9I5UhH{width:968px}._2a3TgATMV47a8dPxmPJJu3 ._1Mzn-qxeNWb2oSHuQLZD-{-webkit-box-flex:0;flex:0 0 auto;padding:16px;box-shadow:0 8px 20px -4px rgba(9,30,66,.25),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}._2a3TgATMV47a8dPxmPJJu3 ._1uEoAAKmruuwr5yfKdX6bi{-webkit-box-flex:0;flex:0 1 auto;overflow:auto;box-sizing:border-box;padding:0 16px;position:relative;z-index:511;box-shadow:0 8px 20px -4px rgba(9,30,66,.25),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}._2a3TgATMV47a8dPxmPJJu3 ._1uEoAAKmruuwr5yfKdX6bi:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._2a3TgATMV47a8dPxmPJJu3 ._1uEoAAKmruuwr5yfKdX6bi:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._2a3TgATMV47a8dPxmPJJu3 ._33E1ZeJ2VsV1Z1hAw_CMOf{-webkit-box-flex:0;flex:0 0 auto;padding:16px;z-index:512;box-shadow:0 8px 20px -4px rgba(9,30,66,.25),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":"_1IAK6qQo95yr0sX1cB-NUK",modalWrapper:"_1IAK6qQo95yr0sX1cB-NUK","modal-positioner":"_2a3TgATMV47a8dPxmPJJu3",modalPositioner:"_2a3TgATMV47a8dPxmPJJu3",small:"_1FWVLR2QM-b4YCht8cg0u3",small:"_1FWVLR2QM-b4YCht8cg0u3",medium:"bdHyyam9Mfx-3q6ErwqP",medium:"bdHyyam9Mfx-3q6ErwqP",large:"_2AbhitOeWy9LNSyZE9-rya",large:"_2AbhitOeWy9LNSyZE9-rya","x-large":"_3-oqjMINjfCG2QsC9I5UhH",xLarge:"_3-oqjMINjfCG2QsC9I5UhH","header-flex":"_1Mzn-qxeNWb2oSHuQLZD-",headerFlex:"_1Mzn-qxeNWb2oSHuQLZD-","content-flex":"_1uEoAAKmruuwr5yfKdX6bi",contentFlex:"_1uEoAAKmruuwr5yfKdX6bi","footer-flex":"_33E1ZeJ2VsV1Z1hAw_CMOf",footerFlex:"_33E1ZeJ2VsV1Z1hAw_CMOf"}},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 a=this[n][0];"number"==typeof a&&(o[a]=!0)}for(n=0;n<t.length;n++){var i=t[n];"number"==typeof i[0]&&o[i[0]]||(r&&!i[2]?i[2]=r:r&&(i[2]="("+i[2]+") and ("+r+")"),e.push(i))}},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 a=0;a<n.parts.length;a++)n.parts[a](o.parts[a]);for(;a<o.parts.length;a++)n.parts.push(l(o.parts[a],t))}else{for(var i=[],a=0;a<o.parts.length;a++)i.push(l(o.parts[a],t));c[o.id]={id:o.id,refs:1,parts:i}}}}function n(e){for(var t=[],r={},o=0;o<e.length;o++){var n=e[o],a=n[0],i=n[1],s=n[2],u=n[3],l={css:i,media:s,sourceMap:u};r[a]?r[a].parts.push(l):t.push(r[a]={id:a,parts:[l]})}return t}function a(e,t){var r=m(),o=y[y.length-1];if("top"===e.insertAt)o?o.nextSibling?r.insertBefore(t,o.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 s(e){var t=document.createElement("style");return t.type="text/css",a(e,t),t}function u(e){var t=document.createElement("link");return t.rel="stylesheet",a(e,t),t}function l(e,t){var r,o,n;if(t.singleton){var a=g++;r=b||(b=s(t)),o=d.bind(null,r,a,!1),n=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=u(t),o=p.bind(null,r),n=function(){i(r),r.href&&URL.revokeObjectURL(r.href)}):(r=s(t),o=f.bind(null,r),n=function(){i(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 a=document.createTextNode(n),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,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"}),a=e.href;e.href=URL.createObjectURL(n),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=n(e);return o(r,t),function(e){for(var a=[],i=0;i<r.length;i++){var s=r[i],u=c[s.id];u.refs--,a.push(u)}if(e){var l=n(e);o(l,t)}for(var i=0;i<a.length;i++){var u=a[i];if(0===u.refs){for(var d=0;d<u.parts.length;d++)u.parts[d]();delete c[u.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")}]);

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

// module
exports.push([ module.id, "._30LpSRoaeIMy4K90sUEY-9{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._1I1m7FALF1dKbhWzrmLFb{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}._1I1m7FALF1dKbhWzrmLFb.qrDpbPace38I2SU4W7Fmj{width:400px}._1I1m7FALF1dKbhWzrmLFb._3HN8AS9pBVn6hYDPyTd4X6{width:600px}._1I1m7FALF1dKbhWzrmLFb._3JJLqqK_73A5NFUe1POq1H{width:800px}._1I1m7FALF1dKbhWzrmLFb._2pPpYrHNY7bKJ7ugKjlplI{width:968px}._1I1m7FALF1dKbhWzrmLFb ._2oIqhmrt4fo-Qnx7DjoBmI,._1I1m7FALF1dKbhWzrmLFb .eqDTIC4CDd6QsLg38U-dO,._1I1m7FALF1dKbhWzrmLFb .zgIjLvysxTzfQZGT4lSCi{box-shadow:0 8px 16px -4px rgba(9,30,66,.28)}._1I1m7FALF1dKbhWzrmLFb .zgIjLvysxTzfQZGT4lSCi{-webkit-box-flex:0;flex:0 0 auto;padding:16px;background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-left-radius:0;border-bottom-right-radius:0}._1I1m7FALF1dKbhWzrmLFb .eqDTIC4CDd6QsLg38U-dO{-webkit-box-flex:0;flex:0 1 auto;overflow:auto;padding:0 16px;z-index:511;background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}._1I1m7FALF1dKbhWzrmLFb ._2oIqhmrt4fo-Qnx7DjoBmI{-webkit-box-flex:0;flex:0 0 auto;padding:16px;z-index:512;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, '._1IAK6qQo95yr0sX1cB-NUK{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._2a3TgATMV47a8dPxmPJJu3{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}._2a3TgATMV47a8dPxmPJJu3._1FWVLR2QM-b4YCht8cg0u3{width:400px}._2a3TgATMV47a8dPxmPJJu3.bdHyyam9Mfx-3q6ErwqP{width:600px}._2a3TgATMV47a8dPxmPJJu3._2AbhitOeWy9LNSyZE9-rya{width:800px}._2a3TgATMV47a8dPxmPJJu3._3-oqjMINjfCG2QsC9I5UhH{width:968px}._2a3TgATMV47a8dPxmPJJu3 ._1Mzn-qxeNWb2oSHuQLZD-{-webkit-box-flex:0;flex:0 0 auto;padding:16px;box-shadow:0 8px 20px -4px rgba(9,30,66,.25),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}._2a3TgATMV47a8dPxmPJJu3 ._1uEoAAKmruuwr5yfKdX6bi{-webkit-box-flex:0;flex:0 1 auto;overflow:auto;box-sizing:border-box;padding:0 16px;position:relative;z-index:511;box-shadow:0 8px 20px -4px rgba(9,30,66,.25),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}._2a3TgATMV47a8dPxmPJJu3 ._1uEoAAKmruuwr5yfKdX6bi:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._2a3TgATMV47a8dPxmPJJu3 ._1uEoAAKmruuwr5yfKdX6bi:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._2a3TgATMV47a8dPxmPJJu3 ._33E1ZeJ2VsV1Z1hAw_CMOf{-webkit-box-flex:0;flex:0 0 auto;padding:16px;z-index:512;box-shadow:0 8px 20px -4px rgba(9,30,66,.25),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": "_30LpSRoaeIMy4K90sUEY-9",
modalWrapper: "_30LpSRoaeIMy4K90sUEY-9",
"modal-positioner": "_1I1m7FALF1dKbhWzrmLFb",
modalPositioner: "_1I1m7FALF1dKbhWzrmLFb",
small: "qrDpbPace38I2SU4W7Fmj",
small: "qrDpbPace38I2SU4W7Fmj",
medium: "_3HN8AS9pBVn6hYDPyTd4X6",
medium: "_3HN8AS9pBVn6hYDPyTd4X6",
large: "_3JJLqqK_73A5NFUe1POq1H",
large: "_3JJLqqK_73A5NFUe1POq1H",
"x-large": "_2pPpYrHNY7bKJ7ugKjlplI",
xLarge: "_2pPpYrHNY7bKJ7ugKjlplI",
"header-flex": "zgIjLvysxTzfQZGT4lSCi",
headerFlex: "zgIjLvysxTzfQZGT4lSCi",
"content-flex": "eqDTIC4CDd6QsLg38U-dO",
contentFlex: "eqDTIC4CDd6QsLg38U-dO",
"footer-flex": "_2oIqhmrt4fo-Qnx7DjoBmI",
footerFlex: "_2oIqhmrt4fo-Qnx7DjoBmI"
"modal-wrapper": "_1IAK6qQo95yr0sX1cB-NUK",
modalWrapper: "_1IAK6qQo95yr0sX1cB-NUK",
"modal-positioner": "_2a3TgATMV47a8dPxmPJJu3",
modalPositioner: "_2a3TgATMV47a8dPxmPJJu3",
small: "_1FWVLR2QM-b4YCht8cg0u3",
small: "_1FWVLR2QM-b4YCht8cg0u3",
medium: "bdHyyam9Mfx-3q6ErwqP",
medium: "bdHyyam9Mfx-3q6ErwqP",
large: "_2AbhitOeWy9LNSyZE9-rya",
large: "_2AbhitOeWy9LNSyZE9-rya",
"x-large": "_3-oqjMINjfCG2QsC9I5UhH",
xLarge: "_3-oqjMINjfCG2QsC9I5UhH",
"header-flex": "_1Mzn-qxeNWb2oSHuQLZD-",
headerFlex: "_1Mzn-qxeNWb2oSHuQLZD-",
"content-flex": "_1uEoAAKmruuwr5yfKdX6bi",
contentFlex: "_1uEoAAKmruuwr5yfKdX6bi",
"footer-flex": "_33E1ZeJ2VsV1Z1hAw_CMOf",
footerFlex: "_33E1ZeJ2VsV1Z1hAw_CMOf"
};

@@ -242,0 +242,0 @@ }, /* 14 */

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(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/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/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/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){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),m=o(b),h=r(11),x=o(h),g=r(12),v=o(g),y=r(16),L=o(y),F={values:["small","medium","large","x-large"],defaultValue:"medium"},C=function(e){function t(){var e,r,o,n;(0,l.default)(this,t);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return r=o=(0,p.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(s))),o.componentDidMount=function(){document.addEventListener("keydown",o.handleKeyDown)},o.componentWillUnmount=function(){document.removeEventListener("keydown",o.handleKeyDown)},o.handleKeyDown=function(e){"Escape"===e.key&&o.props.onDialogDismissed(e)},n=r,(0,p.default)(o,n)}return(0,c.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){if(!this.props.isOpen)return null;var e=this.props,t=e.onDialogDismissed,r=e.header,o=e.children,n=e.footer,i=e.width;return m.default.createElement("div",{className:v.default.modalWrapper},m.default.createElement(L.default,{isTinted:!0,onBlanketClicked:t}),m.default.createElement("div",{className:(0,x.default)([v.default.modalPositioner,v.default[i]])},m.default.createElement("div",{className:v.default.headerFlex},r),m.default.createElement("div",{className:v.default.contentFlex},o),m.default.createElement("div",{className:v.default.footerFlex},n)))}}]),t}(b.PureComponent);C.propTypes={isOpen:b.PropTypes.bool,header:b.PropTypes.node,children:b.PropTypes.node,footer:b.PropTypes.node,width:b.PropTypes.oneOf(F.values),onDialogDismissed:b.PropTypes.func},C.defaultProps={isOpen:!1,onDialogDismissed:function(){},width:F.defaultValue},t.default=C},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,r){var o=r(13);"string"==typeof o&&(o=[[e.id,o,""]]),r(15)(o,{}),o.locals&&(e.exports=o.locals)},function(e,t,r){t=e.exports=r(14)(),t.push([e.id,"._30LpSRoaeIMy4K90sUEY-9{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._1I1m7FALF1dKbhWzrmLFb{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}._1I1m7FALF1dKbhWzrmLFb.qrDpbPace38I2SU4W7Fmj{width:400px}._1I1m7FALF1dKbhWzrmLFb._3HN8AS9pBVn6hYDPyTd4X6{width:600px}._1I1m7FALF1dKbhWzrmLFb._3JJLqqK_73A5NFUe1POq1H{width:800px}._1I1m7FALF1dKbhWzrmLFb._2pPpYrHNY7bKJ7ugKjlplI{width:968px}._1I1m7FALF1dKbhWzrmLFb ._2oIqhmrt4fo-Qnx7DjoBmI,._1I1m7FALF1dKbhWzrmLFb .eqDTIC4CDd6QsLg38U-dO,._1I1m7FALF1dKbhWzrmLFb .zgIjLvysxTzfQZGT4lSCi{box-shadow:0 8px 16px -4px rgba(9,30,66,.28)}._1I1m7FALF1dKbhWzrmLFb .zgIjLvysxTzfQZGT4lSCi{-webkit-box-flex:0;flex:0 0 auto;padding:16px;background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-left-radius:0;border-bottom-right-radius:0}._1I1m7FALF1dKbhWzrmLFb .eqDTIC4CDd6QsLg38U-dO{-webkit-box-flex:0;flex:0 1 auto;overflow:auto;padding:0 16px;z-index:511;background-color:#fff;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}._1I1m7FALF1dKbhWzrmLFb ._2oIqhmrt4fo-Qnx7DjoBmI{-webkit-box-flex:0;flex:0 0 auto;padding:16px;z-index:512;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":"_30LpSRoaeIMy4K90sUEY-9",modalWrapper:"_30LpSRoaeIMy4K90sUEY-9","modal-positioner":"_1I1m7FALF1dKbhWzrmLFb",modalPositioner:"_1I1m7FALF1dKbhWzrmLFb",small:"qrDpbPace38I2SU4W7Fmj",small:"qrDpbPace38I2SU4W7Fmj",medium:"_3HN8AS9pBVn6hYDPyTd4X6",medium:"_3HN8AS9pBVn6hYDPyTd4X6",large:"_3JJLqqK_73A5NFUe1POq1H",large:"_3JJLqqK_73A5NFUe1POq1H","x-large":"_2pPpYrHNY7bKJ7ugKjlplI",xLarge:"_2pPpYrHNY7bKJ7ugKjlplI","header-flex":"zgIjLvysxTzfQZGT4lSCi",headerFlex:"zgIjLvysxTzfQZGT4lSCi","content-flex":"eqDTIC4CDd6QsLg38U-dO",contentFlex:"eqDTIC4CDd6QsLg38U-dO","footer-flex":"_2oIqhmrt4fo-Qnx7DjoBmI",footerFlex:"_2oIqhmrt4fo-Qnx7DjoBmI"}},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=h(),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 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=y(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}},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=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 y=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=l}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(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/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/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/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,a,i,s){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),a=o(n),i=r(6),s=o(i),l=r(7),u=o(l),d=r(8),f=o(d),p=r(9),c=o(p),b=r(10),h=o(b),m=r(11),x=o(m),g=r(12),y=o(g),v=r(16),_=o(v),w={values:["small","medium","large","x-large"],defaultValue:"medium"},C=function(e){function t(){var e,r,o,n;(0,s.default)(this,t);for(var i=arguments.length,l=Array(i),u=0;u<i;u++)l[u]=arguments[u];return r=o=(0,f.default)(this,(e=t.__proto__||(0,a.default)(t)).call.apply(e,[this].concat(l))),o.componentDidMount=function(){document.addEventListener("keydown",o.handleKeyDown)},o.componentWillUnmount=function(){document.removeEventListener("keydown",o.handleKeyDown)},o.handleKeyDown=function(e){"Escape"===e.key&&o.props.onDialogDismissed(e)},n=r,(0,f.default)(o,n)}return(0,c.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){if(!this.props.isOpen)return null;var e=this.props,t=e.onDialogDismissed,r=e.header,o=e.children,n=e.footer,a=e.width;return h.default.createElement("div",{className:y.default.modalWrapper},h.default.createElement(_.default,{isTinted:!0,onBlanketClicked:t}),h.default.createElement("div",{className:(0,x.default)([y.default.modalPositioner,y.default[a]])},h.default.createElement("div",{className:y.default.headerFlex},r),h.default.createElement("div",{className:y.default.contentFlex},o),h.default.createElement("div",{className:y.default.footerFlex},n)))}}]),t}(b.PureComponent);C.propTypes={isOpen:b.PropTypes.bool,header:b.PropTypes.node,children:b.PropTypes.node,footer:b.PropTypes.node,width:b.PropTypes.oneOf(w.values),onDialogDismissed:b.PropTypes.func},C.defaultProps={isOpen:!1,onDialogDismissed:function(){},width:w.defaultValue},t.default=C},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=a},function(e,t){e.exports=i},function(e,t,r){var o=r(13);"string"==typeof o&&(o=[[e.id,o,""]]),r(15)(o,{}),o.locals&&(e.exports=o.locals)},function(e,t,r){t=e.exports=r(14)(),t.push([e.id,'._1IAK6qQo95yr0sX1cB-NUK{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._2a3TgATMV47a8dPxmPJJu3{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}._2a3TgATMV47a8dPxmPJJu3._1FWVLR2QM-b4YCht8cg0u3{width:400px}._2a3TgATMV47a8dPxmPJJu3.bdHyyam9Mfx-3q6ErwqP{width:600px}._2a3TgATMV47a8dPxmPJJu3._2AbhitOeWy9LNSyZE9-rya{width:800px}._2a3TgATMV47a8dPxmPJJu3._3-oqjMINjfCG2QsC9I5UhH{width:968px}._2a3TgATMV47a8dPxmPJJu3 ._1Mzn-qxeNWb2oSHuQLZD-{-webkit-box-flex:0;flex:0 0 auto;padding:16px;box-shadow:0 8px 20px -4px rgba(9,30,66,.25),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}._2a3TgATMV47a8dPxmPJJu3 ._1uEoAAKmruuwr5yfKdX6bi{-webkit-box-flex:0;flex:0 1 auto;overflow:auto;box-sizing:border-box;padding:0 16px;position:relative;z-index:511;box-shadow:0 8px 20px -4px rgba(9,30,66,.25),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}._2a3TgATMV47a8dPxmPJJu3 ._1uEoAAKmruuwr5yfKdX6bi:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._2a3TgATMV47a8dPxmPJJu3 ._1uEoAAKmruuwr5yfKdX6bi:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._2a3TgATMV47a8dPxmPJJu3 ._33E1ZeJ2VsV1Z1hAw_CMOf{-webkit-box-flex:0;flex:0 0 auto;padding:16px;z-index:512;box-shadow:0 8px 20px -4px rgba(9,30,66,.25),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":"_1IAK6qQo95yr0sX1cB-NUK",modalWrapper:"_1IAK6qQo95yr0sX1cB-NUK","modal-positioner":"_2a3TgATMV47a8dPxmPJJu3",modalPositioner:"_2a3TgATMV47a8dPxmPJJu3",small:"_1FWVLR2QM-b4YCht8cg0u3",small:"_1FWVLR2QM-b4YCht8cg0u3",medium:"bdHyyam9Mfx-3q6ErwqP",medium:"bdHyyam9Mfx-3q6ErwqP",large:"_2AbhitOeWy9LNSyZE9-rya",large:"_2AbhitOeWy9LNSyZE9-rya","x-large":"_3-oqjMINjfCG2QsC9I5UhH",xLarge:"_3-oqjMINjfCG2QsC9I5UhH","header-flex":"_1Mzn-qxeNWb2oSHuQLZD-",headerFlex:"_1Mzn-qxeNWb2oSHuQLZD-","content-flex":"_1uEoAAKmruuwr5yfKdX6bi",contentFlex:"_1uEoAAKmruuwr5yfKdX6bi","footer-flex":"_33E1ZeJ2VsV1Z1hAw_CMOf",footerFlex:"_33E1ZeJ2VsV1Z1hAw_CMOf"}},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 a=this[n][0];"number"==typeof a&&(o[a]=!0)}for(n=0;n<t.length;n++){var i=t[n];"number"==typeof i[0]&&o[i[0]]||(r&&!i[2]?i[2]=r:r&&(i[2]="("+i[2]+") and ("+r+")"),e.push(i))}},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 a=0;a<n.parts.length;a++)n.parts[a](o.parts[a]);for(;a<o.parts.length;a++)n.parts.push(u(o.parts[a],t))}else{for(var i=[],a=0;a<o.parts.length;a++)i.push(u(o.parts[a],t));c[o.id]={id:o.id,refs:1,parts:i}}}}function n(e){for(var t=[],r={},o=0;o<e.length;o++){var n=e[o],a=n[0],i=n[1],s=n[2],l=n[3],u={css:i,media:s,sourceMap:l};r[a]?r[a].parts.push(u):t.push(r[a]={id:a,parts:[u]})}return t}function a(e,t){var r=m(),o=y[y.length-1];if("top"===e.insertAt)o?o.nextSibling?r.insertBefore(t,o.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 s(e){var t=document.createElement("style");return t.type="text/css",a(e,t),t}function l(e){var t=document.createElement("link");return t.rel="stylesheet",a(e,t),t}function u(e,t){var r,o,n;if(t.singleton){var a=g++;r=x||(x=s(t)),o=d.bind(null,r,a,!1),n=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=l(t),o=p.bind(null,r),n=function(){i(r),r.href&&URL.revokeObjectURL(r.href)}):(r=s(t),o=f.bind(null,r),n=function(){i(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 a=document.createTextNode(n),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,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"}),a=e.href;e.href=URL.createObjectURL(n),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=n(e);return o(r,t),function(e){for(var a=[],i=0;i<r.length;i++){var s=r[i],l=c[s.id];l.refs--,a.push(l)}if(e){var u=n(e);o(u,t)}for(var i=0;i<a.length;i++){var l=a[i];if(0===l.refs){for(var d=0;d<l.parts.length;d++)l.parts[d]();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=s}])});
{
"name": "@atlaskit/modal-dialog",
"version": "1.0.2",
"version": "1.1.0",
"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.0.2)
[![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.1.0)

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

![Example tags](https://bytebucket.org/atlassian/atlaskit/raw/86ddd9c9fe34ef8392dc62484699f9349695fccf/packages/ak-modal-dialog/docs/simple.png)
![Example tags](https://bytebucket.org/atlassian/atlaskit/raw/c5e5b6303bc17336958ccae1a3e6e702f730972f/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.0.2/).
Interact with a [live demo of the @atlaskit/modal-dialog component](https://aui-cdn.atlassian.com/atlaskit/stories/@atlaskit/modal-dialog/1.1.0/).

@@ -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.0.2).
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.1.0).

@@ -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