New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-dialog-modal

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dialog-modal - npm Package Compare versions

Comparing version 0.3.18 to 0.3.19

css/img/close.png

11

.storybook/user/modify_webpack_config.js
module.exports = function (config) {
// This is the default webpack config defined in the `../webpack.config.js`
// modify as you need.
config.module.loaders = [
{
test: /\.css?$/,
loaders: ['style-loader', 'css-loader'],
//include: path.resolve(__dirname, '../'),
},
{
test: /\.(png|jpg|gif)$/,
loaders: ['url-loader']
}
];
};

33

dist/DialogTitle.js

@@ -17,12 +17,6 @@ "use strict";

//import CloseIcon from "./CloseIcon";
var DialogTitle = function DialogTitle(props) {
var closeIcon;
if (props.hasCloseIcon !== false) {
closeIcon = _react2.default.createElement(
"a",
{ className: "ui-close", onClick: props.onClose },
_react2.default.createElement("i", { className: "icon-close" })
);
closeIcon = _react2.default.createElement("i", { className: "icon icon-close", onClick: props.onClose });
}

@@ -33,13 +27,5 @@

if (props.isMinimized) {
minimizeIcon = _react2.default.createElement(
"span",
{ className: "dib mr2" },
_react2.default.createElement("i", { className: "pointer icon icon-enlarge2", onClick: props.onRestore })
);
minimizeIcon = _react2.default.createElement("i", { className: "icon icon-restore", onClick: props.onRestore });
} else {
minimizeIcon = _react2.default.createElement(
"span",
{ className: "dib mr2" },
_react2.default.createElement("i", { className: "icon icon-shrink2 pointer", onClick: props.onMinimize })
);
minimizeIcon = _react2.default.createElement("i", { className: "icon icon-minimize", onClick: props.onMinimize });
}

@@ -51,13 +37,5 @@ }

if (props.isMaximized) {
maximizeIcon = _react2.default.createElement(
"span",
{ className: "dib mr2" },
_react2.default.createElement("i", { className: "icon icon-shrink2", onClick: props.onRestore })
);
maximizeIcon = _react2.default.createElement("i", { className: "icon icon-restore", onClick: props.onRestore });
} else {
maximizeIcon = _react2.default.createElement(
"span",
{ className: "dib mr2" },
_react2.default.createElement("i", { className: "icon icon-enlarge2 pointer", onClick: props.onMaximize })
);
maximizeIcon = _react2.default.createElement("i", { className: "icon icon-maximize", onClick: props.onMaximize });
}

@@ -79,3 +57,2 @@ }

maximizeIcon,
props.titlebuttons,
closeIcon

@@ -82,0 +59,0 @@ )

@@ -122,4 +122,3 @@ "use strict";

onRestore: _this.onRestore,
onClose: _this.onClose,
titlebuttons: _this.props.titlebuttons
onClose: _this.onClose
});

@@ -148,10 +147,4 @@ };

}, {
key: "componentDidMount",
value: function componentDidMount() {
this.dialogContainer.focus();
}
}, {
key: "render",
value: function render() {
var _this2 = this;

@@ -177,3 +170,3 @@ var dialogBody = void 0;

this.getDialogTitle(),
_react2.default.createElement(
!this.state.isMinimized && _react2.default.createElement(
_DialogBody2.default,

@@ -183,6 +176,6 @@ null,

),
_react2.default.createElement(_DialogFooter2.default, { buttons: this.props.buttons, onClose: this.onClose })
!this.state.isMinimized && _react2.default.createElement(_DialogFooter2.default, { buttons: this.props.buttons, onClose: this.onClose })
);
if (this.props.isResizable) {
if (!this.state.isMinimized && !this.state.isMaximized && this.props.isResizable) {
dialog = _react2.default.createElement(

@@ -195,3 +188,3 @@ _reactResizable.Resizable,

if (this.props.isDraggable) {
if (!this.state.isMinimized && !this.state.isMaximized && this.props.isDraggable) {
dialog = _react2.default.createElement(

@@ -207,5 +200,2 @@ _reactDraggable2.default,

{
ref: function ref(container) {
_this2.dialogContainer = container;
},
className: (0, _classnames2.default)("ui-dialog-container", { "": this.props.modal }) },

@@ -235,7 +225,5 @@ dialog,

onClick: _propTypes2.default.func
})),
titlebuttons: _propTypes2.default.element,
isFooter: _propTypes2.default.bool
}))
};
exports.default = Dialog;

@@ -6,3 +6,3 @@ {

"user": "mohitgupta8888",
"version": "0.3.18",
"version": "0.3.19",
"scripts": {

@@ -31,2 +31,3 @@ "prepublish": "bash .scripts/prepublish.sh",

"chai": "^3.5.0",
"css-loader": "^0.28.4",
"enzyme": "^2.2.0",

@@ -46,3 +47,4 @@ "eslint": "^2.7.0",

"sinon": "^1.17.3",
"style-loader": "^0.13.1"
"style-loader": "^0.13.1",
"url-loader": "^0.5.9"
},

@@ -49,0 +51,0 @@ "peerDependencies": {

@@ -5,2 +5,7 @@ # React Dialog

## Warning
React Dialog is under rapid development phase where we are releasing updates almost everyday.
Untill 1.0.0 release, you might see some updates on regular basis.
We are working hard to release 1.0.0 stable release at our earliest.
## Installation

@@ -7,0 +12,0 @@

Sorry, the diff of this file is not supported yet

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