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.1 to 1.2.2

CHANGELOG.md

38

dist/bundle-cjs.js

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

// module
exports.push([ module.id, '._39iZqBfr8UvKDdu5Ed9pOj{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}.kHQrY55kDOCKNZx0FypJb{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}.kHQrY55kDOCKNZx0FypJb._8nDV7NJtZu42T6pK81gwt{width:400px}.kHQrY55kDOCKNZx0FypJb._2ZFNtO0HVU27YtDWfjZMGh{width:600px}.kHQrY55kDOCKNZx0FypJb._1-vX1SZ_r82v73DtAR_OiB{width:800px}.kHQrY55kDOCKNZx0FypJb._1M1PSX9crw8ao08HX0bmP2{width:968px}.kHQrY55kDOCKNZx0FypJb ._161UzITd6nz4Nmhc0yzBic{-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}.kHQrY55kDOCKNZx0FypJb ._2KnvSS95kJO1voU-ZyKvrp{-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}.kHQrY55kDOCKNZx0FypJb ._2KnvSS95kJO1voU-ZyKvrp:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}.kHQrY55kDOCKNZx0FypJb ._2KnvSS95kJO1voU-ZyKvrp:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}.kHQrY55kDOCKNZx0FypJb .mWn4FznBmdk7Bce4yJDI7{-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.push([ module.id, '._187niGsDUXQ2UFp89OMzSw{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._3t1GJQBjRPj4crMxewphV9{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}._3t1GJQBjRPj4crMxewphV9.OP6hXL5EuNSPXWsm8UvNA{width:400px}._3t1GJQBjRPj4crMxewphV9._3fV6VTPZIHZbUVDa9uNfsE{width:600px}._3t1GJQBjRPj4crMxewphV9._2lSVRE7ZRIU4aauBZLDm_E{width:800px}._3t1GJQBjRPj4crMxewphV9._13rrQne-h5Ffz-vsLqsERv{width:968px}._3t1GJQBjRPj4crMxewphV9 ._299dYlUNjjg63fpmyxSk6j{-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}._3t1GJQBjRPj4crMxewphV9 .Og8r-wZ6LyazFliEXzMQG{-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}._3t1GJQBjRPj4crMxewphV9 .Og8r-wZ6LyazFliEXzMQG:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._3t1GJQBjRPj4crMxewphV9 .Og8r-wZ6LyazFliEXzMQG:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._3t1GJQBjRPj4crMxewphV9 .WQKG057x9OjUmG5fL-H5y{-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": "_39iZqBfr8UvKDdu5Ed9pOj",
modalWrapper: "_39iZqBfr8UvKDdu5Ed9pOj",
"modal-positioner": "kHQrY55kDOCKNZx0FypJb",
modalPositioner: "kHQrY55kDOCKNZx0FypJb",
small: "_8nDV7NJtZu42T6pK81gwt",
small: "_8nDV7NJtZu42T6pK81gwt",
medium: "_2ZFNtO0HVU27YtDWfjZMGh",
medium: "_2ZFNtO0HVU27YtDWfjZMGh",
large: "_1-vX1SZ_r82v73DtAR_OiB",
large: "_1-vX1SZ_r82v73DtAR_OiB",
"x-large": "_1M1PSX9crw8ao08HX0bmP2",
xLarge: "_1M1PSX9crw8ao08HX0bmP2",
"header-flex": "_161UzITd6nz4Nmhc0yzBic",
headerFlex: "_161UzITd6nz4Nmhc0yzBic",
"content-flex": "_2KnvSS95kJO1voU-ZyKvrp",
contentFlex: "_2KnvSS95kJO1voU-ZyKvrp",
"footer-flex": "mWn4FznBmdk7Bce4yJDI7",
footerFlex: "mWn4FznBmdk7Bce4yJDI7"
"modal-wrapper": "_187niGsDUXQ2UFp89OMzSw",
modalWrapper: "_187niGsDUXQ2UFp89OMzSw",
"modal-positioner": "_3t1GJQBjRPj4crMxewphV9",
modalPositioner: "_3t1GJQBjRPj4crMxewphV9",
small: "OP6hXL5EuNSPXWsm8UvNA",
small: "OP6hXL5EuNSPXWsm8UvNA",
medium: "_3fV6VTPZIHZbUVDa9uNfsE",
medium: "_3fV6VTPZIHZbUVDa9uNfsE",
large: "_2lSVRE7ZRIU4aauBZLDm_E",
large: "_2lSVRE7ZRIU4aauBZLDm_E",
"x-large": "_13rrQne-h5Ffz-vsLqsERv",
xLarge: "_13rrQne-h5Ffz-vsLqsERv",
"header-flex": "_299dYlUNjjg63fpmyxSk6j",
headerFlex: "_299dYlUNjjg63fpmyxSk6j",
"content-flex": "Og8r-wZ6LyazFliEXzMQG",
contentFlex: "Og8r-wZ6LyazFliEXzMQG",
"footer-flex": "WQKG057x9OjUmG5fL-H5y",
footerFlex: "WQKG057x9OjUmG5fL-H5y"
};

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

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

module.exports=function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(4)},,,,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(5),i=n(o),a=r(6),l=n(a),s=r(7),u=n(s),d=r(8),p=n(d),f=r(9),c=n(f),x=r(10),h=n(x),b=r(11),m=n(b),v=r(12),g=n(v),y=r(13),k=n(y),O=r(14),D=n(O),w=r(18),_=n(w),N={values:["small","medium","large","x-large"],defaultValue:"medium"},Z=function(e){function t(){var e,r,n,o;(0,p.default)(this,t);for(var i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return r=n=(0,h.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(a))),n.componentDidMount=function(){document.addEventListener("keydown",n.handleKeyDown)},n.componentWillUnmount=function(){document.removeEventListener("keydown",n.handleKeyDown)},n.handleKeyDown=function(e){"Escape"===e.key&&n.props.onDialogDismissed(e)},o=r,(0,h.default)(n,o)}return(0,m.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e;if(!this.props.isOpen)return null;var t=this.props,r=t.onDialogDismissed,n=t.header,o=t.children,a=t.footer,s=t.width,u=N.values.indexOf(s)===-1?{style:{width:s}}:{};return g.default.createElement("div",{className:D.default.modalWrapper},g.default.createElement(_.default,{isTinted:!0,onBlanketClicked:r}),g.default.createElement("div",(0,i.default)({className:(0,k.default)([D.default.modalPositioner,(e={},(0,l.default)(e,D.default.small,"small"===s),(0,l.default)(e,D.default.medium,"medium"===s),(0,l.default)(e,D.default.large,"large"===s),(0,l.default)(e,D.default.xLarge,"x-large"===s),e)])},u),g.default.createElement("div",{className:D.default.headerFlex},n),g.default.createElement("div",{className:D.default.contentFlex},o),g.default.createElement("div",{className:D.default.footerFlex},a)))}}]),t}(v.PureComponent);Z.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(N.values)]),onDialogDismissed:v.PropTypes.func},Z.defaultProps={isOpen:!1,onDialogDismissed:function(){},width:N.defaultValue},t.default=Z},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,'._39iZqBfr8UvKDdu5Ed9pOj{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}.kHQrY55kDOCKNZx0FypJb{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}.kHQrY55kDOCKNZx0FypJb._8nDV7NJtZu42T6pK81gwt{width:400px}.kHQrY55kDOCKNZx0FypJb._2ZFNtO0HVU27YtDWfjZMGh{width:600px}.kHQrY55kDOCKNZx0FypJb._1-vX1SZ_r82v73DtAR_OiB{width:800px}.kHQrY55kDOCKNZx0FypJb._1M1PSX9crw8ao08HX0bmP2{width:968px}.kHQrY55kDOCKNZx0FypJb ._161UzITd6nz4Nmhc0yzBic{-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}.kHQrY55kDOCKNZx0FypJb ._2KnvSS95kJO1voU-ZyKvrp{-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}.kHQrY55kDOCKNZx0FypJb ._2KnvSS95kJO1voU-ZyKvrp:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}.kHQrY55kDOCKNZx0FypJb ._2KnvSS95kJO1voU-ZyKvrp:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}.kHQrY55kDOCKNZx0FypJb .mWn4FznBmdk7Bce4yJDI7{-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":"_39iZqBfr8UvKDdu5Ed9pOj",modalWrapper:"_39iZqBfr8UvKDdu5Ed9pOj","modal-positioner":"kHQrY55kDOCKNZx0FypJb",modalPositioner:"kHQrY55kDOCKNZx0FypJb",small:"_8nDV7NJtZu42T6pK81gwt",small:"_8nDV7NJtZu42T6pK81gwt",medium:"_2ZFNtO0HVU27YtDWfjZMGh",medium:"_2ZFNtO0HVU27YtDWfjZMGh",large:"_1-vX1SZ_r82v73DtAR_OiB",large:"_1-vX1SZ_r82v73DtAR_OiB","x-large":"_1M1PSX9crw8ao08HX0bmP2",xLarge:"_1M1PSX9crw8ao08HX0bmP2","header-flex":"_161UzITd6nz4Nmhc0yzBic",headerFlex:"_161UzITd6nz4Nmhc0yzBic","content-flex":"_2KnvSS95kJO1voU-ZyKvrp",contentFlex:"_2KnvSS95kJO1voU-ZyKvrp","footer-flex":"mWn4FznBmdk7Bce4yJDI7",footerFlex:"mWn4FznBmdk7Bce4yJDI7"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var r=this[t];r[2]?e.push("@media "+r[2]+"{"+r[1]+"}"):e.push(r[1])}return e.join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(n[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&n[a[0]]||(r&&!a[2]?a[2]=r:r&&(a[2]="("+a[2]+") and ("+r+")"),e.push(a))}},e}},function(e,t,r){function n(e,t){for(var r=0;r<e.length;r++){var n=e[r],o=c[n.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](n.parts[i]);for(;i<n.parts.length;i++)o.parts.push(u(n.parts[i],t))}else{for(var a=[],i=0;i<n.parts.length;i++)a.push(u(n.parts[i],t));c[n.id]={id:n.id,refs:1,parts:a}}}}function o(e){for(var t=[],r={},n=0;n<e.length;n++){var o=e[n],i=o[0],a=o[1],l=o[2],s=o[3],u={css:a,media:l,sourceMap:s};r[i]?r[i].parts.push(u):t.push(r[i]={id:i,parts:[u]})}return t}function i(e,t){var r=b(),n=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 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 u(e,t){var r,n,o;if(t.singleton){var i=v++;r=m||(m=l(t)),n=d.bind(null,r,i,!1),o=d.bind(null,r,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=s(t),n=f.bind(null,r),o=function(){a(r),r.href&&URL.revokeObjectURL(r.href)}):(r=l(t),n=p.bind(null,r),o=function(){a(r)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}function d(e,t,r,n){var o=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function 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={},x=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},h=x(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),b=x(function(){return document.head||document.getElementsByTagName("head")[0]}),m=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=o(e);return n(r,t),function(e){for(var i=[],a=0;a<r.length;a++){var l=r[a],s=c[l.id];s.refs--,i.push(s)}if(e){var u=o(e);n(u,t)}for(var a=0;a<i.length;a++){var s=i[a];if(0===s.refs){for(var d=0;d<s.parts.length;d++)s.parts[d]();delete c[s.id]}}}};var y=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),i=n(o),a=r(6),s=n(a),l=r(7),u=n(l),f=r(8),d=n(f),p=r(9),c=n(p),h=r(10),m=n(h),x=r(11),b=n(x),g=r(12),v=n(g),y=r(13),w=n(y),j=r(14),_=n(j),P=r(18),R=n(P),U={values:["small","medium","large","x-large"],defaultValue:"medium"},L=function(e){function t(){var e,r,n,o;(0,d.default)(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=n=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(a))),n.componentDidMount=function(){document.addEventListener("keydown",n.handleKeyDown)},n.componentWillUnmount=function(){document.removeEventListener("keydown",n.handleKeyDown)},n.handleKeyDown=function(e){"Escape"===e.key&&n.props.onDialogDismissed(e)},o=r,(0,m.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,a=t.footer,l=t.width,u=U.values.indexOf(l)===-1?{style:{width:l}}:{};return v.default.createElement("div",{className:_.default.modalWrapper},v.default.createElement(R.default,{isTinted:!0,onBlanketClicked:r}),v.default.createElement("div",(0,i.default)({className:(0,w.default)([_.default.modalPositioner,(e={},(0,s.default)(e,_.default.small,"small"===l),(0,s.default)(e,_.default.medium,"medium"===l),(0,s.default)(e,_.default.large,"large"===l),(0,s.default)(e,_.default.xLarge,"x-large"===l),e)])},u),v.default.createElement("div",{className:_.default.headerFlex},n),v.default.createElement("div",{className:_.default.contentFlex},o),v.default.createElement("div",{className:_.default.footerFlex},a)))}}]),t}(g.PureComponent);L.propTypes={isOpen:g.PropTypes.bool,header:g.PropTypes.node,children:g.PropTypes.node,footer:g.PropTypes.node,width:g.PropTypes.oneOfType([g.PropTypes.number,g.PropTypes.string,g.PropTypes.oneOf(U.values)]),onDialogDismissed:g.PropTypes.func},L.defaultProps={isOpen:!1,onDialogDismissed:function(){},width:U.defaultValue},t.default=L},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,'._187niGsDUXQ2UFp89OMzSw{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._3t1GJQBjRPj4crMxewphV9{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}._3t1GJQBjRPj4crMxewphV9.OP6hXL5EuNSPXWsm8UvNA{width:400px}._3t1GJQBjRPj4crMxewphV9._3fV6VTPZIHZbUVDa9uNfsE{width:600px}._3t1GJQBjRPj4crMxewphV9._2lSVRE7ZRIU4aauBZLDm_E{width:800px}._3t1GJQBjRPj4crMxewphV9._13rrQne-h5Ffz-vsLqsERv{width:968px}._3t1GJQBjRPj4crMxewphV9 ._299dYlUNjjg63fpmyxSk6j{-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}._3t1GJQBjRPj4crMxewphV9 .Og8r-wZ6LyazFliEXzMQG{-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}._3t1GJQBjRPj4crMxewphV9 .Og8r-wZ6LyazFliEXzMQG:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._3t1GJQBjRPj4crMxewphV9 .Og8r-wZ6LyazFliEXzMQG:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._3t1GJQBjRPj4crMxewphV9 .WQKG057x9OjUmG5fL-H5y{-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":"_187niGsDUXQ2UFp89OMzSw",modalWrapper:"_187niGsDUXQ2UFp89OMzSw","modal-positioner":"_3t1GJQBjRPj4crMxewphV9",modalPositioner:"_3t1GJQBjRPj4crMxewphV9",small:"OP6hXL5EuNSPXWsm8UvNA",small:"OP6hXL5EuNSPXWsm8UvNA",medium:"_3fV6VTPZIHZbUVDa9uNfsE",medium:"_3fV6VTPZIHZbUVDa9uNfsE",large:"_2lSVRE7ZRIU4aauBZLDm_E",large:"_2lSVRE7ZRIU4aauBZLDm_E","x-large":"_13rrQne-h5Ffz-vsLqsERv",xLarge:"_13rrQne-h5Ffz-vsLqsERv","header-flex":"_299dYlUNjjg63fpmyxSk6j",headerFlex:"_299dYlUNjjg63fpmyxSk6j","content-flex":"Og8r-wZ6LyazFliEXzMQG",contentFlex:"Og8r-wZ6LyazFliEXzMQG","footer-flex":"WQKG057x9OjUmG5fL-H5y",footerFlex:"WQKG057x9OjUmG5fL-H5y"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var r=this[t];r[2]?e.push("@media "+r[2]+"{"+r[1]+"}"):e.push(r[1])}return e.join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(n[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&n[a[0]]||(r&&!a[2]?a[2]=r:r&&(a[2]="("+a[2]+") and ("+r+")"),e.push(a))}},e}},function(e,t,r){function n(e,t){for(var r=0;r<e.length;r++){var n=e[r],o=c[n.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](n.parts[i]);for(;i<n.parts.length;i++)o.parts.push(u(n.parts[i],t))}else{for(var a=[],i=0;i<n.parts.length;i++)a.push(u(n.parts[i],t));c[n.id]={id:n.id,refs:1,parts:a}}}}function o(e){for(var t=[],r={},n=0;n<e.length;n++){var o=e[n],i=o[0],a=o[1],s=o[2],l=o[3],u={css:a,media:s,sourceMap:l};r[i]?r[i].parts.push(u):t.push(r[i]={id:i,parts:[u]})}return t}function i(e,t){var r=x(),n=v[v.length-1];if("top"===e.insertAt)n?n.nextSibling?r.insertBefore(t,n.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),v.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=v.indexOf(e);t>=0&&v.splice(t,1)}function 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 u(e,t){var r,n,o;if(t.singleton){var i=g++;r=b||(b=s(t)),n=f.bind(null,r,i,!1),o=f.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),n=p.bind(null,r),o=function(){a(r),r.href&&URL.revokeObjectURL(r.href)}):(r=s(t),n=d.bind(null,r),o=function(){a(r)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}function f(e,t,r,n){var o=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t){var r=t.css,n=t.media;if(n&&e.setAttribute("media",n),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}function p(e,t){var r=t.css,n=t.sourceMap;n&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var o=new Blob([r],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var c={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),x=h(function(){return document.head||document.getElementsByTagName("head")[0]}),b=null,g=0,v=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var r=o(e);return n(r,t),function(e){for(var i=[],a=0;a<r.length;a++){var s=r[a],l=c[s.id];l.refs--,i.push(l)}if(e){var u=o(e);n(u,t)}for(var a=0;a<i.length;a++){var l=i[a];if(0===l.refs){for(var f=0;f<l.parts.length;f++)l.parts[f]();delete c[l.id]}}}};var y=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=require("@atlaskit/blanket")}]);

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

// module
exports.push([ module.id, '._39iZqBfr8UvKDdu5Ed9pOj{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}.kHQrY55kDOCKNZx0FypJb{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}.kHQrY55kDOCKNZx0FypJb._8nDV7NJtZu42T6pK81gwt{width:400px}.kHQrY55kDOCKNZx0FypJb._2ZFNtO0HVU27YtDWfjZMGh{width:600px}.kHQrY55kDOCKNZx0FypJb._1-vX1SZ_r82v73DtAR_OiB{width:800px}.kHQrY55kDOCKNZx0FypJb._1M1PSX9crw8ao08HX0bmP2{width:968px}.kHQrY55kDOCKNZx0FypJb ._161UzITd6nz4Nmhc0yzBic{-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}.kHQrY55kDOCKNZx0FypJb ._2KnvSS95kJO1voU-ZyKvrp{-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}.kHQrY55kDOCKNZx0FypJb ._2KnvSS95kJO1voU-ZyKvrp:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}.kHQrY55kDOCKNZx0FypJb ._2KnvSS95kJO1voU-ZyKvrp:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}.kHQrY55kDOCKNZx0FypJb .mWn4FznBmdk7Bce4yJDI7{-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.push([ module.id, '._187niGsDUXQ2UFp89OMzSw{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._3t1GJQBjRPj4crMxewphV9{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}._3t1GJQBjRPj4crMxewphV9.OP6hXL5EuNSPXWsm8UvNA{width:400px}._3t1GJQBjRPj4crMxewphV9._3fV6VTPZIHZbUVDa9uNfsE{width:600px}._3t1GJQBjRPj4crMxewphV9._2lSVRE7ZRIU4aauBZLDm_E{width:800px}._3t1GJQBjRPj4crMxewphV9._13rrQne-h5Ffz-vsLqsERv{width:968px}._3t1GJQBjRPj4crMxewphV9 ._299dYlUNjjg63fpmyxSk6j{-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}._3t1GJQBjRPj4crMxewphV9 .Og8r-wZ6LyazFliEXzMQG{-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}._3t1GJQBjRPj4crMxewphV9 .Og8r-wZ6LyazFliEXzMQG:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._3t1GJQBjRPj4crMxewphV9 .Og8r-wZ6LyazFliEXzMQG:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._3t1GJQBjRPj4crMxewphV9 .WQKG057x9OjUmG5fL-H5y{-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": "_39iZqBfr8UvKDdu5Ed9pOj",
modalWrapper: "_39iZqBfr8UvKDdu5Ed9pOj",
"modal-positioner": "kHQrY55kDOCKNZx0FypJb",
modalPositioner: "kHQrY55kDOCKNZx0FypJb",
small: "_8nDV7NJtZu42T6pK81gwt",
small: "_8nDV7NJtZu42T6pK81gwt",
medium: "_2ZFNtO0HVU27YtDWfjZMGh",
medium: "_2ZFNtO0HVU27YtDWfjZMGh",
large: "_1-vX1SZ_r82v73DtAR_OiB",
large: "_1-vX1SZ_r82v73DtAR_OiB",
"x-large": "_1M1PSX9crw8ao08HX0bmP2",
xLarge: "_1M1PSX9crw8ao08HX0bmP2",
"header-flex": "_161UzITd6nz4Nmhc0yzBic",
headerFlex: "_161UzITd6nz4Nmhc0yzBic",
"content-flex": "_2KnvSS95kJO1voU-ZyKvrp",
contentFlex: "_2KnvSS95kJO1voU-ZyKvrp",
"footer-flex": "mWn4FznBmdk7Bce4yJDI7",
footerFlex: "mWn4FznBmdk7Bce4yJDI7"
"modal-wrapper": "_187niGsDUXQ2UFp89OMzSw",
modalWrapper: "_187niGsDUXQ2UFp89OMzSw",
"modal-positioner": "_3t1GJQBjRPj4crMxewphV9",
modalPositioner: "_3t1GJQBjRPj4crMxewphV9",
small: "OP6hXL5EuNSPXWsm8UvNA",
small: "OP6hXL5EuNSPXWsm8UvNA",
medium: "_3fV6VTPZIHZbUVDa9uNfsE",
medium: "_3fV6VTPZIHZbUVDa9uNfsE",
large: "_2lSVRE7ZRIU4aauBZLDm_E",
large: "_2lSVRE7ZRIU4aauBZLDm_E",
"x-large": "_13rrQne-h5Ffz-vsLqsERv",
xLarge: "_13rrQne-h5Ffz-vsLqsERv",
"header-flex": "_299dYlUNjjg63fpmyxSk6j",
headerFlex: "_299dYlUNjjg63fpmyxSk6j",
"content-flex": "Og8r-wZ6LyazFliEXzMQG",
contentFlex: "Og8r-wZ6LyazFliEXzMQG",
"footer-flex": "WQKG057x9OjUmG5fL-H5y",
footerFlex: "WQKG057x9OjUmG5fL-H5y"
};

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

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babel-runtime/helpers/extends"),require("babel-runtime/helpers/defineProperty"),require("babel-runtime/core-js/object/get-prototype-of"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("react"),require("classnames"),require("@atlaskit/blanket")):"function"==typeof define&&define.amd?define(["babel-runtime/helpers/extends","babel-runtime/helpers/defineProperty","babel-runtime/core-js/object/get-prototype-of","babel-runtime/helpers/classCallCheck","babel-runtime/helpers/createClass","babel-runtime/helpers/possibleConstructorReturn","babel-runtime/helpers/inherits","react","classnames","@atlaskit/blanket"],t):"object"==typeof exports?exports["@atlaskit/modalDialog"]=t(require("babel-runtime/helpers/extends"),require("babel-runtime/helpers/defineProperty"),require("babel-runtime/core-js/object/get-prototype-of"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("react"),require("classnames"),require("@atlaskit/blanket")):e["@atlaskit/modalDialog"]=t(e["babel-runtime/helpers/extends"],e["babel-runtime/helpers/defineProperty"],e["babel-runtime/core-js/object/get-prototype-of"],e["babel-runtime/helpers/classCallCheck"],e["babel-runtime/helpers/createClass"],e["babel-runtime/helpers/possibleConstructorReturn"],e["babel-runtime/helpers/inherits"],e.react,e.classnames,e["@atlaskit/blanket"])}(this,function(e,t,r,n,o,i,a,l,s,u){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(4)},,,,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(5),i=n(o),a=r(6),l=n(a),s=r(7),u=n(s),p=r(8),d=n(p),f=r(9),c=n(f),b=r(10),m=n(b),h=r(11),x=n(h),v=r(12),y=n(v),g=r(13),k=n(g),C=r(14),D=n(C),O=r(18),w=n(O),_={values:["small","medium","large","x-large"],defaultValue:"medium"},N=function(e){function t(){var e,r,n,o;(0,d.default)(this,t);for(var i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return r=n=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(a))),n.componentDidMount=function(){document.addEventListener("keydown",n.handleKeyDown)},n.componentWillUnmount=function(){document.removeEventListener("keydown",n.handleKeyDown)},n.handleKeyDown=function(e){"Escape"===e.key&&n.props.onDialogDismissed(e)},o=r,(0,m.default)(n,o)}return(0,x.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e;if(!this.props.isOpen)return null;var t=this.props,r=t.onDialogDismissed,n=t.header,o=t.children,a=t.footer,s=t.width,u=_.values.indexOf(s)===-1?{style:{width:s}}:{};return y.default.createElement("div",{className:D.default.modalWrapper},y.default.createElement(w.default,{isTinted:!0,onBlanketClicked:r}),y.default.createElement("div",(0,i.default)({className:(0,k.default)([D.default.modalPositioner,(e={},(0,l.default)(e,D.default.small,"small"===s),(0,l.default)(e,D.default.medium,"medium"===s),(0,l.default)(e,D.default.large,"large"===s),(0,l.default)(e,D.default.xLarge,"x-large"===s),e)])},u),y.default.createElement("div",{className:D.default.headerFlex},n),y.default.createElement("div",{className:D.default.contentFlex},o),y.default.createElement("div",{className:D.default.footerFlex},a)))}}]),t}(v.PureComponent);N.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(_.values)]),onDialogDismissed:v.PropTypes.func},N.defaultProps={isOpen:!1,onDialogDismissed:function(){},width:_.defaultValue},t.default=N},function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t){e.exports=a},function(e,t){e.exports=l},function(e,t){e.exports=s},function(e,t,r){var n=r(15);"string"==typeof n&&(n=[[e.id,n,""]]),r(17)(n,{}),n.locals&&(e.exports=n.locals)},function(e,t,r){t=e.exports=r(16)(),t.push([e.id,'._39iZqBfr8UvKDdu5Ed9pOj{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}.kHQrY55kDOCKNZx0FypJb{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}.kHQrY55kDOCKNZx0FypJb._8nDV7NJtZu42T6pK81gwt{width:400px}.kHQrY55kDOCKNZx0FypJb._2ZFNtO0HVU27YtDWfjZMGh{width:600px}.kHQrY55kDOCKNZx0FypJb._1-vX1SZ_r82v73DtAR_OiB{width:800px}.kHQrY55kDOCKNZx0FypJb._1M1PSX9crw8ao08HX0bmP2{width:968px}.kHQrY55kDOCKNZx0FypJb ._161UzITd6nz4Nmhc0yzBic{-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}.kHQrY55kDOCKNZx0FypJb ._2KnvSS95kJO1voU-ZyKvrp{-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}.kHQrY55kDOCKNZx0FypJb ._2KnvSS95kJO1voU-ZyKvrp:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}.kHQrY55kDOCKNZx0FypJb ._2KnvSS95kJO1voU-ZyKvrp:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}.kHQrY55kDOCKNZx0FypJb .mWn4FznBmdk7Bce4yJDI7{-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":"_39iZqBfr8UvKDdu5Ed9pOj",modalWrapper:"_39iZqBfr8UvKDdu5Ed9pOj","modal-positioner":"kHQrY55kDOCKNZx0FypJb",modalPositioner:"kHQrY55kDOCKNZx0FypJb",small:"_8nDV7NJtZu42T6pK81gwt",small:"_8nDV7NJtZu42T6pK81gwt",medium:"_2ZFNtO0HVU27YtDWfjZMGh",medium:"_2ZFNtO0HVU27YtDWfjZMGh",large:"_1-vX1SZ_r82v73DtAR_OiB",large:"_1-vX1SZ_r82v73DtAR_OiB","x-large":"_1M1PSX9crw8ao08HX0bmP2",xLarge:"_1M1PSX9crw8ao08HX0bmP2","header-flex":"_161UzITd6nz4Nmhc0yzBic",headerFlex:"_161UzITd6nz4Nmhc0yzBic","content-flex":"_2KnvSS95kJO1voU-ZyKvrp",contentFlex:"_2KnvSS95kJO1voU-ZyKvrp","footer-flex":"mWn4FznBmdk7Bce4yJDI7",footerFlex:"mWn4FznBmdk7Bce4yJDI7"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var r=this[t];r[2]?e.push("@media "+r[2]+"{"+r[1]+"}"):e.push(r[1])}return e.join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(n[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&n[a[0]]||(r&&!a[2]?a[2]=r:r&&(a[2]="("+a[2]+") and ("+r+")"),e.push(a))}},e}},function(e,t,r){function n(e,t){for(var r=0;r<e.length;r++){var n=e[r],o=c[n.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](n.parts[i]);for(;i<n.parts.length;i++)o.parts.push(u(n.parts[i],t))}else{for(var a=[],i=0;i<n.parts.length;i++)a.push(u(n.parts[i],t));c[n.id]={id:n.id,refs:1,parts:a}}}}function o(e){for(var t=[],r={},n=0;n<e.length;n++){var o=e[n],i=o[0],a=o[1],l=o[2],s=o[3],u={css:a,media:l,sourceMap:s};r[i]?r[i].parts.push(u):t.push(r[i]={id:i,parts:[u]})}return t}function i(e,t){var r=h(),n=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 a(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",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=l(t)),n=p.bind(null,r,i,!1),o=p.bind(null,r,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=s(t),n=f.bind(null,r),o=function(){a(r),r.href&&URL.revokeObjectURL(r.href)}):(r=l(t),n=d.bind(null,r),o=function(){a(r)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}function p(e,t,r,n){var o=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=g(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t){var r=t.css,n=t.media;if(n&&e.setAttribute("media",n),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}function f(e,t){var r=t.css,n=t.sourceMap;n&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var o=new Blob([r],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var c={},b=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=b(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),h=b(function(){return document.head||document.getElementsByTagName("head")[0]}),x=null,v=0,y=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var r=o(e);return n(r,t),function(e){for(var i=[],a=0;a<r.length;a++){var l=r[a],s=c[l.id];s.refs--,i.push(s)}if(e){var u=o(e);n(u,t)}for(var a=0;a<i.length;a++){var s=i[a];if(0===s.refs){for(var p=0;p<s.parts.length;p++)s.parts[p]();delete c[s.id]}}}};var g=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=u}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babel-runtime/helpers/extends"),require("babel-runtime/helpers/defineProperty"),require("babel-runtime/core-js/object/get-prototype-of"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("react"),require("classnames"),require("@atlaskit/blanket")):"function"==typeof define&&define.amd?define(["babel-runtime/helpers/extends","babel-runtime/helpers/defineProperty","babel-runtime/core-js/object/get-prototype-of","babel-runtime/helpers/classCallCheck","babel-runtime/helpers/createClass","babel-runtime/helpers/possibleConstructorReturn","babel-runtime/helpers/inherits","react","classnames","@atlaskit/blanket"],t):"object"==typeof exports?exports["@atlaskit/modalDialog"]=t(require("babel-runtime/helpers/extends"),require("babel-runtime/helpers/defineProperty"),require("babel-runtime/core-js/object/get-prototype-of"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("react"),require("classnames"),require("@atlaskit/blanket")):e["@atlaskit/modalDialog"]=t(e["babel-runtime/helpers/extends"],e["babel-runtime/helpers/defineProperty"],e["babel-runtime/core-js/object/get-prototype-of"],e["babel-runtime/helpers/classCallCheck"],e["babel-runtime/helpers/createClass"],e["babel-runtime/helpers/possibleConstructorReturn"],e["babel-runtime/helpers/inherits"],e.react,e.classnames,e["@atlaskit/blanket"])}(this,function(e,t,r,n,o,i,a,l,s,u){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(4)},,,,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(5),i=n(o),a=r(6),l=n(a),s=r(7),u=n(s),p=r(8),f=n(p),d=r(9),c=n(d),b=r(10),h=n(b),m=r(11),x=n(m),g=r(12),v=n(g),y=r(13),j=n(y),w=r(14),k=n(w),P=r(18),R=n(P),_={values:["small","medium","large","x-large"],defaultValue:"medium"},U=function(e){function t(){var e,r,n,o;(0,f.default)(this,t);for(var i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return r=n=(0,h.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(a))),n.componentDidMount=function(){document.addEventListener("keydown",n.handleKeyDown)},n.componentWillUnmount=function(){document.removeEventListener("keydown",n.handleKeyDown)},n.handleKeyDown=function(e){"Escape"===e.key&&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,a=t.footer,s=t.width,u=_.values.indexOf(s)===-1?{style:{width:s}}:{};return v.default.createElement("div",{className:k.default.modalWrapper},v.default.createElement(R.default,{isTinted:!0,onBlanketClicked:r}),v.default.createElement("div",(0,i.default)({className:(0,j.default)([k.default.modalPositioner,(e={},(0,l.default)(e,k.default.small,"small"===s),(0,l.default)(e,k.default.medium,"medium"===s),(0,l.default)(e,k.default.large,"large"===s),(0,l.default)(e,k.default.xLarge,"x-large"===s),e)])},u),v.default.createElement("div",{className:k.default.headerFlex},n),v.default.createElement("div",{className:k.default.contentFlex},o),v.default.createElement("div",{className:k.default.footerFlex},a)))}}]),t}(g.PureComponent);U.propTypes={isOpen:g.PropTypes.bool,header:g.PropTypes.node,children:g.PropTypes.node,footer:g.PropTypes.node,width:g.PropTypes.oneOfType([g.PropTypes.number,g.PropTypes.string,g.PropTypes.oneOf(_.values)]),onDialogDismissed:g.PropTypes.func},U.defaultProps={isOpen:!1,onDialogDismissed:function(){},width:_.defaultValue},t.default=U},function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t){e.exports=a},function(e,t){e.exports=l},function(e,t){e.exports=s},function(e,t,r){var n=r(15);"string"==typeof n&&(n=[[e.id,n,""]]),r(17)(n,{}),n.locals&&(e.exports=n.locals)},function(e,t,r){t=e.exports=r(16)(),t.push([e.id,'._187niGsDUXQ2UFp89OMzSw{height:100%;left:0;position:fixed;top:0;width:100%;z-index:500}._3t1GJQBjRPj4crMxewphV9{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}._3t1GJQBjRPj4crMxewphV9.OP6hXL5EuNSPXWsm8UvNA{width:400px}._3t1GJQBjRPj4crMxewphV9._3fV6VTPZIHZbUVDa9uNfsE{width:600px}._3t1GJQBjRPj4crMxewphV9._2lSVRE7ZRIU4aauBZLDm_E{width:800px}._3t1GJQBjRPj4crMxewphV9._13rrQne-h5Ffz-vsLqsERv{width:968px}._3t1GJQBjRPj4crMxewphV9 ._299dYlUNjjg63fpmyxSk6j{-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}._3t1GJQBjRPj4crMxewphV9 .Og8r-wZ6LyazFliEXzMQG{-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}._3t1GJQBjRPj4crMxewphV9 .Og8r-wZ6LyazFliEXzMQG:before{background:#fff;content:"";display:block;height:2px;left:0;position:absolute;right:0;top:0}._3t1GJQBjRPj4crMxewphV9 .Og8r-wZ6LyazFliEXzMQG:after{background:#fff;content:"";display:block;height:2px;margin-right:-16px;margin-left:-16px}._3t1GJQBjRPj4crMxewphV9 .WQKG057x9OjUmG5fL-H5y{-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":"_187niGsDUXQ2UFp89OMzSw",modalWrapper:"_187niGsDUXQ2UFp89OMzSw","modal-positioner":"_3t1GJQBjRPj4crMxewphV9",modalPositioner:"_3t1GJQBjRPj4crMxewphV9",small:"OP6hXL5EuNSPXWsm8UvNA",small:"OP6hXL5EuNSPXWsm8UvNA",medium:"_3fV6VTPZIHZbUVDa9uNfsE",medium:"_3fV6VTPZIHZbUVDa9uNfsE",large:"_2lSVRE7ZRIU4aauBZLDm_E",large:"_2lSVRE7ZRIU4aauBZLDm_E","x-large":"_13rrQne-h5Ffz-vsLqsERv",xLarge:"_13rrQne-h5Ffz-vsLqsERv","header-flex":"_299dYlUNjjg63fpmyxSk6j",headerFlex:"_299dYlUNjjg63fpmyxSk6j","content-flex":"Og8r-wZ6LyazFliEXzMQG",contentFlex:"Og8r-wZ6LyazFliEXzMQG","footer-flex":"WQKG057x9OjUmG5fL-H5y",footerFlex:"WQKG057x9OjUmG5fL-H5y"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var r=this[t];r[2]?e.push("@media "+r[2]+"{"+r[1]+"}"):e.push(r[1])}return e.join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(n[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&n[a[0]]||(r&&!a[2]?a[2]=r:r&&(a[2]="("+a[2]+") and ("+r+")"),e.push(a))}},e}},function(e,t,r){function n(e,t){for(var r=0;r<e.length;r++){var n=e[r],o=c[n.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](n.parts[i]);for(;i<n.parts.length;i++)o.parts.push(u(n.parts[i],t))}else{for(var a=[],i=0;i<n.parts.length;i++)a.push(u(n.parts[i],t));c[n.id]={id:n.id,refs:1,parts:a}}}}function o(e){for(var t=[],r={},n=0;n<e.length;n++){var o=e[n],i=o[0],a=o[1],l=o[2],s=o[3],u={css:a,media:l,sourceMap:s};r[i]?r[i].parts.push(u):t.push(r[i]={id:i,parts:[u]})}return t}function i(e,t){var r=m(),n=v[v.length-1];if("top"===e.insertAt)n?n.nextSibling?r.insertBefore(t,n.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),v.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=v.indexOf(e);t>=0&&v.splice(t,1)}function l(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function u(e,t){var r,n,o;if(t.singleton){var i=g++;r=x||(x=l(t)),n=p.bind(null,r,i,!1),o=p.bind(null,r,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=s(t),n=d.bind(null,r),o=function(){a(r),r.href&&URL.revokeObjectURL(r.href)}):(r=l(t),n=f.bind(null,r),o=function(){a(r)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}function p(e,t,r,n){var o=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function f(e,t){var r=t.css,n=t.media;if(n&&e.setAttribute("media",n),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}function d(e,t){var r=t.css,n=t.sourceMap;n&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var o=new Blob([r],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var c={},b=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},h=b(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),m=b(function(){return document.head||document.getElementsByTagName("head")[0]}),x=null,g=0,v=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=h()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var r=o(e);return n(r,t),function(e){for(var i=[],a=0;a<r.length;a++){var l=r[a],s=c[l.id];s.refs--,i.push(s)}if(e){var u=o(e);n(u,t)}for(var a=0;a<i.length;a++){var s=i[a];if(0===s.refs){for(var p=0;p<s.parts.length;p++)s.parts[p]();delete c[s.id]}}}};var y=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=u}])});
{
"name": "@atlaskit/modal-dialog",
"version": "1.2.1",
"version": "1.2.2",
"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.1)
[![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.2)

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

![Example tags](https://bytebucket.org/atlassian/atlaskit/raw/80cfa36b595a7ed46c94351172c5ed5fdcadba62/packages/ak-modal-dialog/docs/simple.png)
![Example tags](https://bytebucket.org/atlassian/atlaskit/raw/b48964655730540a10189b497945a42b220eb4e0/packages/ak-modal-dialog/docs/simple.png)
##Try it out
Interact with a [live demo of the @atlaskit/modal-dialog component](https://aui-cdn.atlassian.com/atlaskit/stories/@atlaskit/modal-dialog/1.2.1/).
Interact with a [live demo of the @atlaskit/modal-dialog component](https://aui-cdn.atlassian.com/atlaskit/stories/@atlaskit/modal-dialog/1.2.2/).

@@ -121,3 +121,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.1).
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.2).

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