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.10 to 1.2.11

5

CHANGELOG.md

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

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

@@ -2,0 +7,0 @@ ## 1.2.10 (2017-03-21)

38

dist/bundle-cjs.js

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

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

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

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

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

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

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

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

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

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

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

@@ -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.10).
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).

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