Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atlaskit/inline-dialog

Package Overview
Dependencies
Maintainers
1
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/inline-dialog - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

14

dist/bundle-cjs.js

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

});
var _getPrototypeOf = __webpack_require__(5), _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf), _classCallCheck2 = __webpack_require__(6), _classCallCheck3 = _interopRequireDefault(_classCallCheck2), _createClass2 = __webpack_require__(7), _createClass3 = _interopRequireDefault(_createClass2), _possibleConstructorReturn2 = __webpack_require__(8), _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2), _inherits2 = __webpack_require__(9), _inherits3 = _interopRequireDefault(_inherits2), _akLayer = __webpack_require__(10), _akLayer2 = _interopRequireDefault(_akLayer), _react = __webpack_require__(11), _react2 = _interopRequireDefault(_react), _akutilSharedStyles = __webpack_require__(12), _styles = __webpack_require__(13), _styles2 = _interopRequireDefault(_styles), akGridSizeValue = parseInt(_akutilSharedStyles.akGridSize, 10), dialogOffset = "0 " + akGridSizeValue, AKInlineDialog = function(_PureComponent) {
var _getPrototypeOf = __webpack_require__(5), _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf), _classCallCheck2 = __webpack_require__(6), _classCallCheck3 = _interopRequireDefault(_classCallCheck2), _createClass2 = __webpack_require__(7), _createClass3 = _interopRequireDefault(_createClass2), _possibleConstructorReturn2 = __webpack_require__(8), _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2), _inherits2 = __webpack_require__(9), _inherits3 = _interopRequireDefault(_inherits2), _layer = __webpack_require__(10), _layer2 = _interopRequireDefault(_layer), _react = __webpack_require__(11), _react2 = _interopRequireDefault(_react), _utilSharedStyles = __webpack_require__(12), _styles = __webpack_require__(13), _styles2 = _interopRequireDefault(_styles), akGridSizeValue = parseInt(_utilSharedStyles.akGridSize, 10), dialogOffset = "0 " + akGridSizeValue, AKInlineDialog = function(_PureComponent) {
function AKInlineDialog() {

@@ -97,3 +97,3 @@ return (0, _classCallCheck3.default)(this, AKInlineDialog), (0, _possibleConstructorReturn3.default)(this, (AKInlineDialog.__proto__ || (0,

}, props.content);
return _react2.default.createElement(_akLayer2.default, {
return _react2.default.createElement(_layer2.default, {
content: props.isOpen ? content : null,

@@ -147,3 +147,3 @@ position: props.position,

function(module, exports) {
module.exports = require("ak-layer");
module.exports = require("@atlaskit/layer");
}, /* 11 */

@@ -156,3 +156,3 @@ /***/

function(module, exports) {
module.exports = require("akutil-shared-styles");
module.exports = require("@atlaskit/util-shared-styles");
}, /* 13 */

@@ -173,7 +173,7 @@ /***/

// module
exports.push([ module.id, "._1wENYvtA9HnsPtwDN4MQUE{background:#fff;border-radius:3px;border:1px solid #dfe1e6;box-shadow:0 4px 8px -2px rgba(9,30,66,.28),0 0 1px rgba(9,30,66,.3);box-sizing:border-box;max-height:480px;max-width:496px;padding:24px}", "" ]),
exports.push([ module.id, "._3QDYkcrgnbGteGF-5YwmwH{background:#fff;border-radius:3px;border:1px solid #dfe1e6;box-shadow:0 4px 8px -2px rgba(9,30,66,.28),0 0 1px rgba(9,30,66,.3);box-sizing:border-box;max-height:480px;max-width:496px;padding:24px}", "" ]),
// exports
exports.locals = {
inlineDialogContainer: "_1wENYvtA9HnsPtwDN4MQUE",
inlineDialogContainer: "_1wENYvtA9HnsPtwDN4MQUE"
inlineDialogContainer: "_3QDYkcrgnbGteGF-5YwmwH",
inlineDialogContainer: "_3QDYkcrgnbGteGF-5YwmwH"
};

@@ -180,0 +180,0 @@ }, /* 15 */

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

module.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(4)},,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),i=r(o),s=n(6),a=r(s),u=n(7),l=r(u),p=n(8),f=r(p),c=n(9),d=r(c),h=n(10),b=r(h),v=n(11),m=r(v),x=n(12),g=n(13),y=r(g),C=parseInt(x.akGridSize,10),U="0 "+C,w=function(e){function t(){return(0,a.default)(this,t),(0,f.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e=this.props,t=m.default.createElement("div",{className:y.default.inlineDialogContainer,tabIndex:"-1"},e.content);return m.default.createElement(b.default,{content:e.isOpen?t:null,position:e.position,autoPosition:e.shouldFlip,offset:U},m.default.createElement("div",{style:{display:"inline-block"}},e.children))}}]),t}(v.PureComponent);w.propTypes={position:v.PropTypes.oneOf(["top left","top center","top right","right top","right middle","right bottom","bottom left","bottom center","bottom right","left top","left middle","left bottom"]),isOpen:v.PropTypes.bool,content:v.PropTypes.node,shouldFlip:v.PropTypes.bool},w.defaultProps={position:"bottom center",isOpen:!1,content:null,shouldFlip:!1},t.default=w},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("ak-layer")},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("akutil-shared-styles")},function(e,t,n){var r=n(14);"string"==typeof r&&(r=[[e.id,r,""]]),n(16)(r,{}),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(15)(),t.push([e.id,"._1wENYvtA9HnsPtwDN4MQUE{background:#fff;border-radius:3px;border:1px solid #dfe1e6;box-shadow:0 4px 8px -2px rgba(9,30,66,.28),0 0 1px rgba(9,30,66,.3);box-sizing:border-box;max-height:480px;max-width:496px;padding:24px}",""]),t.locals={inlineDialogContainer:"_1wENYvtA9HnsPtwDN4MQUE",inlineDialogContainer:"_1wENYvtA9HnsPtwDN4MQUE"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var s=t[o];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=d[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(l(r.parts[i],t))}else{for(var s=[],i=0;i<r.parts.length;i++)s.push(l(r.parts[i],t));d[r.id]={id:r.id,refs:1,parts:s}}}}function o(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],i=o[0],s=o[1],a=o[2],u=o[3],l={css:s,media:a,sourceMap:u};n[i]?n[i].parts.push(l):t.push(n[i]={id:i,parts:[l]})}return t}function i(e,t){var n=v(),r=g[g.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),g.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function s(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 u(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function l(e,t){var n,r,o;if(t.singleton){var i=x++;n=m||(m=a(t)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(t),r=c.bind(null,n),o=function(){s(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(t),r=f.bind(null,n),o=function(){s(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function p(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function f(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function c(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var d={},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())}),v=h(function(){return document.head||document.getElementsByTagName("head")[0]}),m=null,x=0,g=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=b()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var i=[],s=0;s<n.length;s++){var a=n[s],u=d[a.id];u.refs--,i.push(u)}if(e){var l=o(e);r(l,t)}for(var s=0;s<i.length;s++){var u=i[s];if(0===u.refs){for(var p=0;p<u.parts.length;p++)u.parts[p]();delete d[u.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()}]);
module.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(4)},,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),i=r(o),s=n(6),a=r(s),u=n(7),l=r(u),p=n(8),f=r(p),c=n(9),d=r(c),h=n(10),b=r(h),m=n(11),v=r(m),g=n(12),x=n(13),y=r(x),C=parseInt(g.akGridSize,10),k="0 "+C,w=function(e){function t(){return(0,a.default)(this,t),(0,f.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e=this.props,t=v.default.createElement("div",{className:y.default.inlineDialogContainer,tabIndex:"-1"},e.content);return v.default.createElement(b.default,{content:e.isOpen?t:null,position:e.position,autoPosition:e.shouldFlip,offset:k},v.default.createElement("div",{style:{display:"inline-block"}},e.children))}}]),t}(m.PureComponent);w.propTypes={position:m.PropTypes.oneOf(["top left","top center","top right","right top","right middle","right bottom","bottom left","bottom center","bottom right","left top","left middle","left bottom"]),isOpen:m.PropTypes.bool,content:m.PropTypes.node,shouldFlip:m.PropTypes.bool},w.defaultProps={position:"bottom center",isOpen:!1,content:null,shouldFlip:!1},t.default=w},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("@atlaskit/layer")},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("@atlaskit/util-shared-styles")},function(e,t,n){var r=n(14);"string"==typeof r&&(r=[[e.id,r,""]]),n(16)(r,{}),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(15)(),t.push([e.id,"._3QDYkcrgnbGteGF-5YwmwH{background:#fff;border-radius:3px;border:1px solid #dfe1e6;box-shadow:0 4px 8px -2px rgba(9,30,66,.28),0 0 1px rgba(9,30,66,.3);box-sizing:border-box;max-height:480px;max-width:496px;padding:24px}",""]),t.locals={inlineDialogContainer:"_3QDYkcrgnbGteGF-5YwmwH",inlineDialogContainer:"_3QDYkcrgnbGteGF-5YwmwH"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var s=t[o];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=d[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(l(r.parts[i],t))}else{for(var s=[],i=0;i<r.parts.length;i++)s.push(l(r.parts[i],t));d[r.id]={id:r.id,refs:1,parts:s}}}}function o(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],i=o[0],s=o[1],a=o[2],u=o[3],l={css:s,media:a,sourceMap:u};n[i]?n[i].parts.push(l):t.push(n[i]={id:i,parts:[l]})}return t}function i(e,t){var n=m(),r=x[x.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),x.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function s(e){e.parentNode.removeChild(e);var t=x.indexOf(e);t>=0&&x.splice(t,1)}function a(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function u(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function l(e,t){var n,r,o;if(t.singleton){var i=g++;n=v||(v=a(t)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(t),r=c.bind(null,n),o=function(){s(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(t),r=f.bind(null,n),o=function(){s(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function p(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function f(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function c(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var d={},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]}),v=null,g=0,x=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=b()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var i=[],s=0;s<n.length;s++){var a=n[s],u=d[a.id];u.refs--,i.push(u)}if(e){var l=o(e);r(l,t)}for(var s=0;s<i.length;s++){var u=i[s];if(0===u.refs){for(var p=0;p<u.parts.length;p++)u.parts[p]();delete d[u.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()}]);
!function(root, factory) {
"object" == typeof exports && "object" == typeof module ? module.exports = factory(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("ak-layer"), require("react"), require("akutil-shared-styles")) : "function" == typeof define && define.amd ? define([ "babel-runtime/core-js/object/get-prototype-of", "babel-runtime/helpers/classCallCheck", "babel-runtime/helpers/createClass", "babel-runtime/helpers/possibleConstructorReturn", "babel-runtime/helpers/inherits", "ak-layer", "react", "akutil-shared-styles" ], factory) : "object" == typeof exports ? exports["@atlaskit/inlineDialog"] = factory(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("ak-layer"), require("react"), require("akutil-shared-styles")) : root["@atlaskit/inlineDialog"] = factory(root["babel-runtime/core-js/object/get-prototype-of"], root["babel-runtime/helpers/classCallCheck"], root["babel-runtime/helpers/createClass"], root["babel-runtime/helpers/possibleConstructorReturn"], root["babel-runtime/helpers/inherits"], root["ak-layer"], root.react, root["akutil-shared-styles"]);
"object" == typeof exports && "object" == typeof module ? module.exports = factory(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("@atlaskit/layer"), require("react"), require("@atlaskit/util-shared-styles")) : "function" == typeof define && define.amd ? define([ "babel-runtime/core-js/object/get-prototype-of", "babel-runtime/helpers/classCallCheck", "babel-runtime/helpers/createClass", "babel-runtime/helpers/possibleConstructorReturn", "babel-runtime/helpers/inherits", "@atlaskit/layer", "react", "@atlaskit/util-shared-styles" ], factory) : "object" == typeof exports ? exports["@atlaskit/inlineDialog"] = factory(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("@atlaskit/layer"), require("react"), require("@atlaskit/util-shared-styles")) : root["@atlaskit/inlineDialog"] = factory(root["babel-runtime/core-js/object/get-prototype-of"], root["babel-runtime/helpers/classCallCheck"], root["babel-runtime/helpers/createClass"], root["babel-runtime/helpers/possibleConstructorReturn"], root["babel-runtime/helpers/inherits"], root["@atlaskit/layer"], root.react, root["@atlaskit/util-shared-styles"]);
}(this, function(__WEBPACK_EXTERNAL_MODULE_5__, __WEBPACK_EXTERNAL_MODULE_6__, __WEBPACK_EXTERNAL_MODULE_7__, __WEBPACK_EXTERNAL_MODULE_8__, __WEBPACK_EXTERNAL_MODULE_9__, __WEBPACK_EXTERNAL_MODULE_10__, __WEBPACK_EXTERNAL_MODULE_11__, __WEBPACK_EXTERNAL_MODULE_12__) {

@@ -87,3 +87,3 @@ /******/

});
var _getPrototypeOf = __webpack_require__(5), _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf), _classCallCheck2 = __webpack_require__(6), _classCallCheck3 = _interopRequireDefault(_classCallCheck2), _createClass2 = __webpack_require__(7), _createClass3 = _interopRequireDefault(_createClass2), _possibleConstructorReturn2 = __webpack_require__(8), _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2), _inherits2 = __webpack_require__(9), _inherits3 = _interopRequireDefault(_inherits2), _akLayer = __webpack_require__(10), _akLayer2 = _interopRequireDefault(_akLayer), _react = __webpack_require__(11), _react2 = _interopRequireDefault(_react), _akutilSharedStyles = __webpack_require__(12), _styles = __webpack_require__(13), _styles2 = _interopRequireDefault(_styles), akGridSizeValue = parseInt(_akutilSharedStyles.akGridSize, 10), dialogOffset = "0 " + akGridSizeValue, AKInlineDialog = function(_PureComponent) {
var _getPrototypeOf = __webpack_require__(5), _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf), _classCallCheck2 = __webpack_require__(6), _classCallCheck3 = _interopRequireDefault(_classCallCheck2), _createClass2 = __webpack_require__(7), _createClass3 = _interopRequireDefault(_createClass2), _possibleConstructorReturn2 = __webpack_require__(8), _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2), _inherits2 = __webpack_require__(9), _inherits3 = _interopRequireDefault(_inherits2), _layer = __webpack_require__(10), _layer2 = _interopRequireDefault(_layer), _react = __webpack_require__(11), _react2 = _interopRequireDefault(_react), _utilSharedStyles = __webpack_require__(12), _styles = __webpack_require__(13), _styles2 = _interopRequireDefault(_styles), akGridSizeValue = parseInt(_utilSharedStyles.akGridSize, 10), dialogOffset = "0 " + akGridSizeValue, AKInlineDialog = function(_PureComponent) {
function AKInlineDialog() {

@@ -100,3 +100,3 @@ return (0, _classCallCheck3.default)(this, AKInlineDialog), (0, _possibleConstructorReturn3.default)(this, (AKInlineDialog.__proto__ || (0,

}, props.content);
return _react2.default.createElement(_akLayer2.default, {
return _react2.default.createElement(_layer2.default, {
content: props.isOpen ? content : null,

@@ -174,7 +174,7 @@ position: props.position,

// module
exports.push([ module.id, "._1wENYvtA9HnsPtwDN4MQUE{background:#fff;border-radius:3px;border:1px solid #dfe1e6;box-shadow:0 4px 8px -2px rgba(9,30,66,.28),0 0 1px rgba(9,30,66,.3);box-sizing:border-box;max-height:480px;max-width:496px;padding:24px}", "" ]),
exports.push([ module.id, "._3QDYkcrgnbGteGF-5YwmwH{background:#fff;border-radius:3px;border:1px solid #dfe1e6;box-shadow:0 4px 8px -2px rgba(9,30,66,.28),0 0 1px rgba(9,30,66,.3);box-sizing:border-box;max-height:480px;max-width:496px;padding:24px}", "" ]),
// exports
exports.locals = {
inlineDialogContainer: "_1wENYvtA9HnsPtwDN4MQUE",
inlineDialogContainer: "_1wENYvtA9HnsPtwDN4MQUE"
inlineDialogContainer: "_3QDYkcrgnbGteGF-5YwmwH",
inlineDialogContainer: "_3QDYkcrgnbGteGF-5YwmwH"
};

@@ -181,0 +181,0 @@ }, /* 15 */

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babel-runtime/core-js/object/get-prototype-of"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("ak-layer"),require("react"),require("akutil-shared-styles")):"function"==typeof define&&define.amd?define(["babel-runtime/core-js/object/get-prototype-of","babel-runtime/helpers/classCallCheck","babel-runtime/helpers/createClass","babel-runtime/helpers/possibleConstructorReturn","babel-runtime/helpers/inherits","ak-layer","react","akutil-shared-styles"],t):"object"==typeof exports?exports["@atlaskit/inlineDialog"]=t(require("babel-runtime/core-js/object/get-prototype-of"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("ak-layer"),require("react"),require("akutil-shared-styles")):e["@atlaskit/inlineDialog"]=t(e["babel-runtime/core-js/object/get-prototype-of"],e["babel-runtime/helpers/classCallCheck"],e["babel-runtime/helpers/createClass"],e["babel-runtime/helpers/possibleConstructorReturn"],e["babel-runtime/helpers/inherits"],e["ak-layer"],e.react,e["akutil-shared-styles"])}(this,function(e,t,r,n,o,i,s,l){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),s=r(6),l=n(s),a=r(7),u=n(a),p=r(8),f=n(p),c=r(9),d=n(c),h=r(10),b=n(h),m=r(11),v=n(m),y=r(12),g=r(13),x=n(g),C=parseInt(y.akGridSize,10),k="0 "+C,j=function(e){function t(){return(0,l.default)(this,t),(0,f.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props,t=v.default.createElement("div",{className:x.default.inlineDialogContainer,tabIndex:"-1"},e.content);return v.default.createElement(b.default,{content:e.isOpen?t:null,position:e.position,autoPosition:e.shouldFlip,offset:k},v.default.createElement("div",{style:{display:"inline-block"}},e.children))}}]),t}(m.PureComponent);j.propTypes={position:m.PropTypes.oneOf(["top left","top center","top right","right top","right middle","right bottom","bottom left","bottom center","bottom right","left top","left middle","left bottom"]),isOpen:m.PropTypes.bool,content:m.PropTypes.node,shouldFlip:m.PropTypes.bool},j.defaultProps={position:"bottom center",isOpen:!1,content:null,shouldFlip:!1},t.default=j},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=s},function(e,t){e.exports=l},function(e,t,r){var n=r(14);"string"==typeof n&&(n=[[e.id,n,""]]),r(16)(n,{}),n.locals&&(e.exports=n.locals)},function(e,t,r){t=e.exports=r(15)(),t.push([e.id,"._1wENYvtA9HnsPtwDN4MQUE{background:#fff;border-radius:3px;border:1px solid #dfe1e6;box-shadow:0 4px 8px -2px rgba(9,30,66,.28),0 0 1px rgba(9,30,66,.3);box-sizing:border-box;max-height:480px;max-width:496px;padding:24px}",""]),t.locals={inlineDialogContainer:"_1wENYvtA9HnsPtwDN4MQUE",inlineDialogContainer:"_1wENYvtA9HnsPtwDN4MQUE"}},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 s=t[o];"number"==typeof s[0]&&n[s[0]]||(r&&!s[2]?s[2]=r:r&&(s[2]="("+s[2]+") and ("+r+")"),e.push(s))}},e}},function(e,t,r){function n(e,t){for(var r=0;r<e.length;r++){var n=e[r],o=d[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 s=[],i=0;i<n.parts.length;i++)s.push(u(n.parts[i],t));d[n.id]={id:n.id,refs:1,parts:s}}}}function o(e){for(var t=[],r={},n=0;n<e.length;n++){var o=e[n],i=o[0],s=o[1],l=o[2],a=o[3],u={css:s,media:l,sourceMap:a};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 s(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 a(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=y++;r=v||(v=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=a(t),n=c.bind(null,r),o=function(){s(r),r.href&&URL.revokeObjectURL(r.href)}):(r=l(t),n=f.bind(null,r),o=function(){s(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=x(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[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 c(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 d={},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]}),v=null,y=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=[],s=0;s<r.length;s++){var l=r[s],a=d[l.id];a.refs--,i.push(a)}if(e){var u=o(e);n(u,t)}for(var s=0;s<i.length;s++){var a=i[s];if(0===a.refs){for(var p=0;p<a.parts.length;p++)a.parts[p]();delete d[a.id]}}}};var x=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babel-runtime/core-js/object/get-prototype-of"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("@atlaskit/layer"),require("react"),require("@atlaskit/util-shared-styles")):"function"==typeof define&&define.amd?define(["babel-runtime/core-js/object/get-prototype-of","babel-runtime/helpers/classCallCheck","babel-runtime/helpers/createClass","babel-runtime/helpers/possibleConstructorReturn","babel-runtime/helpers/inherits","@atlaskit/layer","react","@atlaskit/util-shared-styles"],t):"object"==typeof exports?exports["@atlaskit/inlineDialog"]=t(require("babel-runtime/core-js/object/get-prototype-of"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("@atlaskit/layer"),require("react"),require("@atlaskit/util-shared-styles")):e["@atlaskit/inlineDialog"]=t(e["babel-runtime/core-js/object/get-prototype-of"],e["babel-runtime/helpers/classCallCheck"],e["babel-runtime/helpers/createClass"],e["babel-runtime/helpers/possibleConstructorReturn"],e["babel-runtime/helpers/inherits"],e["@atlaskit/layer"],e.react,e["@atlaskit/util-shared-styles"])}(this,function(e,t,r,n,o,i,s,l){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),s=r(6),l=n(s),a=r(7),u=n(a),p=r(8),c=n(p),f=r(9),d=n(f),b=r(10),h=n(b),m=r(11),v=n(m),g=r(12),y=r(13),x=n(y),C=parseInt(g.akGridSize,10),k="0 "+C,j=function(e){function t(){return(0,l.default)(this,t),(0,c.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props,t=v.default.createElement("div",{className:x.default.inlineDialogContainer,tabIndex:"-1"},e.content);return v.default.createElement(h.default,{content:e.isOpen?t:null,position:e.position,autoPosition:e.shouldFlip,offset:k},v.default.createElement("div",{style:{display:"inline-block"}},e.children))}}]),t}(m.PureComponent);j.propTypes={position:m.PropTypes.oneOf(["top left","top center","top right","right top","right middle","right bottom","bottom left","bottom center","bottom right","left top","left middle","left bottom"]),isOpen:m.PropTypes.bool,content:m.PropTypes.node,shouldFlip:m.PropTypes.bool},j.defaultProps={position:"bottom center",isOpen:!1,content:null,shouldFlip:!1},t.default=j},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=s},function(e,t){e.exports=l},function(e,t,r){var n=r(14);"string"==typeof n&&(n=[[e.id,n,""]]),r(16)(n,{}),n.locals&&(e.exports=n.locals)},function(e,t,r){t=e.exports=r(15)(),t.push([e.id,"._3QDYkcrgnbGteGF-5YwmwH{background:#fff;border-radius:3px;border:1px solid #dfe1e6;box-shadow:0 4px 8px -2px rgba(9,30,66,.28),0 0 1px rgba(9,30,66,.3);box-sizing:border-box;max-height:480px;max-width:496px;padding:24px}",""]),t.locals={inlineDialogContainer:"_3QDYkcrgnbGteGF-5YwmwH",inlineDialogContainer:"_3QDYkcrgnbGteGF-5YwmwH"}},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 s=t[o];"number"==typeof s[0]&&n[s[0]]||(r&&!s[2]?s[2]=r:r&&(s[2]="("+s[2]+") and ("+r+")"),e.push(s))}},e}},function(e,t,r){function n(e,t){for(var r=0;r<e.length;r++){var n=e[r],o=d[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 s=[],i=0;i<n.parts.length;i++)s.push(u(n.parts[i],t));d[n.id]={id:n.id,refs:1,parts:s}}}}function o(e){for(var t=[],r={},n=0;n<e.length;n++){var o=e[n],i=o[0],s=o[1],l=o[2],a=o[3],u={css:s,media:l,sourceMap:a};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=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 s(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 a(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=v||(v=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=a(t),n=f.bind(null,r),o=function(){s(r),r.href&&URL.revokeObjectURL(r.href)}):(r=l(t),n=c.bind(null,r),o=function(){s(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=x(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function c(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 d={},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]}),v=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 i=[],s=0;s<r.length;s++){var l=r[s],a=d[l.id];a.refs--,i.push(a)}if(e){var u=o(e);n(u,t)}for(var s=0;s<i.length;s++){var a=i[s];if(0===a.refs){for(var p=0;p<a.parts.length;p++)a.parts[p]();delete d[a.id]}}}};var x=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()}])});
{
"name": "@atlaskit/inline-dialog",
"version": "1.0.0",
"version": "1.0.1",
"config": {
"access": "public"
"access": "public"
},

@@ -20,10 +20,10 @@ "description": "An inline dialog React component for secondary content and controls that are displayed on user request",

"dependencies": {
"ak-layer": "^62.1.2",
"akutil-shared-styles": "^37.0.0",
"@atlaskit/layer": "^1.0.0",
"@atlaskit/util-shared-styles": "^1.0.0",
"babel-runtime": "^6.11.6"
},
"devDependencies": {
"ak-button": "^5.1.3",
"@atlaskit/button": "^1.0.0",
"ak-icon": "^12.2.0",
"ak-inline-dialog": "*"
"@atlaskit/inline-dialog": "*"
},

@@ -30,0 +30,0 @@ "peerDependencies": {

@@ -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/inline-dialog,@atlaskit/inline-dialog@1.0.0)
[![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/inline-dialog,@atlaskit/inline-dialog@1.0.1)

@@ -16,3 +16,3 @@ # Inline Dialog

Interact with a [live demo of the @atlaskit/inline-dialog component](https://aui-cdn.atlassian.com/atlaskit/stories/@atlaskit/inline-dialog/1.0.0/).
Interact with a [live demo of the @atlaskit/inline-dialog component](https://aui-cdn.atlassian.com/atlaskit/stories/@atlaskit/inline-dialog/1.0.1/).

@@ -75,3 +75,3 @@ ## Installation

Ask a question in our [forum](https://answers.atlassian.com/questions/ask?title=AtlasKit%3A%20&topics=atlaskit,@atlaskit/inline-dialog,@atlaskit/inline-dialog@1.0.0).
Ask a question in our [forum](https://answers.atlassian.com/questions/ask?title=AtlasKit%3A%20&topics=atlaskit,@atlaskit/inline-dialog,@atlaskit/inline-dialog@1.0.1).

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