Skip to content

Commit 4d6bfa5

Browse files
committed
v0.9.2
1 parent 9c05f3c commit 4d6bfa5

File tree

6 files changed

+18
-13
lines changed

6 files changed

+18
-13
lines changed

dist/react-modal.css

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-modal.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/bundle.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
559559
/***/ "../node_modules/css-loader/index.js!../node_modules/@trendmicro/react-buttons/dist/react-buttons.css":
560560
/***/ (function(module, exports, __webpack_require__) {
561561

562-
exports = module.exports = __webpack_require__("../node_modules/css-loader/lib/css-base.js")(undefined);
562+
exports = module.exports = __webpack_require__("../node_modules/css-loader/lib/css-base.js")(false);
563563
// imports
564564

565565

@@ -574,12 +574,12 @@ exports.push([module.i, "/*! react-buttons v1.2.1 | (c) 2017 Trend Micro Inc. |
574574
/***/ "../node_modules/css-loader/index.js?camelCase&modules&importLoaders=1&localIdentName=[local]---[hash:base64:5]!../node_modules/stylus-loader/index.js!../node_modules/stylint-loader/index.js!../src/index.styl":
575575
/***/ (function(module, exports, __webpack_require__) {
576576

577-
exports = module.exports = __webpack_require__("../node_modules/css-loader/lib/css-base.js")(undefined);
577+
exports = module.exports = __webpack_require__("../node_modules/css-loader/lib/css-base.js")(false);
578578
// imports
579579

580580

581581
// module
582-
exports.push([module.i, ".modal-content---3hUtG {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n line-height: 20px;\n border: 1px solid #ccc;\n -webkit-box-shadow: 0 4px 16px rgba(0,0,0,0.5);\n box-shadow: 0 4px 16px rgba(0,0,0,0.5);\n position: relative;\n min-width: 400px;\n}\n.modal-content---3hUtG *,\n.modal-content---3hUtG *:before,\n.modal-content---3hUtG *:after {\n -webkit-box-sizing: inherit;\n -moz-box-sizing: inherit;\n box-sizing: inherit;\n}\n.modal-content---3hUtG.xs---8dzzc {\n min-width: 400px;\n max-width: 543px;\n}\n.modal-content---3hUtG.xs---8dzzc .modal-body---22INy {\n min-height: 184px;\n}\n.modal-content---3hUtG.xs---8dzzc .modal-header---1FIQ_ + .modal-body---22INy {\n min-height: 130px;\n}\n.modal-content---3hUtG.sm---3ceuY {\n min-width: 544px;\n max-width: 687px;\n}\n.modal-content---3hUtG.sm---3ceuY .modal-body---22INy {\n min-height: 246px;\n}\n.modal-content---3hUtG.sm---3ceuY .modal-header---1FIQ_ + .modal-body---22INy {\n min-height: 192px;\n}\n.modal-content---3hUtG.md---3OKcy {\n min-width: 688px;\n max-width: 927px;\n}\n.modal-content---3hUtG.md---3OKcy .modal-body---22INy {\n min-height: 246px;\n}\n.modal-content---3hUtG.md---3OKcy .modal-header---1FIQ_ + .modal-body---22INy {\n min-height: 192px;\n}\n.modal-content---3hUtG.lg---2kMz1 {\n min-width: 928px;\n}\n.modal-content---3hUtG.lg---2kMz1 .modal-body---22INy {\n min-height: 246px;\n}\n.modal-content---3hUtG.lg---2kMz1 .modal-header---1FIQ_ + .modal-body---22INy {\n min-height: 192px;\n}\n.modal-content---3hUtG .close---fVKdP {\n position: absolute;\n top: 16px;\n right: 24px;\n padding: 0;\n margin: 0;\n line-height: 20px;\n cursor: pointer;\n background: transparent;\n border: 0;\n -webkit-appearance: none;\n font-size: 30px;\n font-weight: normal;\n color: #999;\n text-shadow: none;\n opacity: 1;\n -ms-filter: none;\n filter: none;\n}\n.modal-content---3hUtG .modal-header---1FIQ_ {\n min-height: 54px;\n background-color: #fff;\n border-bottom: 1px solid #ccc;\n padding: 0;\n}\n.modal-content---3hUtG .modal-header---1FIQ_.padding---2pFRu {\n padding: 16px 24px;\n}\n.modal-content---3hUtG.hasCloseButton---2jvGR .modal-header---1FIQ_.padding---2pFRu {\n padding: 16px 56px 16px 24px;\n}\n.modal-content---3hUtG .modal-title---2qyMh {\n font-weight: 200;\n color: #222;\n letter-spacing: -0.02em;\n font-size: 18px;\n}\n.modal-content---3hUtG .modal-title---2qyMh.ellipsis---3BkJT {\n overflow: hidden;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.modal-content---3hUtG .modal-body---22INy {\n position: relative;\n padding: 0;\n}\n.modal-content---3hUtG .modal-body---22INy.padding---2pFRu {\n padding: 54px 24px 16px 24px;\n}\n.modal-content---3hUtG .modal-header---1FIQ_ + .modal-body---22INy.padding---2pFRu {\n padding: 16px 24px;\n}\n.modal-content---3hUtG .modal-footer---3bXnF {\n min-height: 56px;\n margin-top: 0;\n text-align: right;\n background-color: #eee;\n padding: 0;\n}\n.modal-content---3hUtG .modal-footer---3bXnF.padding---2pFRu {\n padding: 12px 24px;\n}\n.modal-content---3hUtG .modal-footer---3bXnF button {\n min-width: 80px;\n}\n.modal-content---3hUtG .modal-footer---3bXnF button + button {\n margin-left: 8px;\n}\n", ""]);
582+
exports.push([module.i, ".modal-content---3hUtG {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n line-height: 20px;\n border: 1px solid #ccc;\n -webkit-box-shadow: 0 4px 16px rgba(0,0,0,0.5);\n box-shadow: 0 4px 16px rgba(0,0,0,0.5);\n position: relative;\n min-width: 400px;\n}\n.modal-content---3hUtG *,\n.modal-content---3hUtG *:before,\n.modal-content---3hUtG *:after {\n -webkit-box-sizing: inherit;\n -moz-box-sizing: inherit;\n box-sizing: inherit;\n}\n.modal-content---3hUtG.xs---8dzzc {\n min-width: 400px;\n max-width: 543px;\n}\n.modal-content---3hUtG.xs---8dzzc .modal-body---22INy {\n min-height: 184px;\n}\n.modal-content---3hUtG.xs---8dzzc .modal-header---1FIQ_ + .modal-body---22INy {\n min-height: 130px;\n}\n.modal-content---3hUtG.sm---3ceuY {\n min-width: 544px;\n max-width: 687px;\n}\n.modal-content---3hUtG.sm---3ceuY .modal-body---22INy {\n min-height: 246px;\n}\n.modal-content---3hUtG.sm---3ceuY .modal-header---1FIQ_ + .modal-body---22INy {\n min-height: 192px;\n}\n.modal-content---3hUtG.md---3OKcy {\n min-width: 688px;\n max-width: 927px;\n}\n.modal-content---3hUtG.md---3OKcy .modal-body---22INy {\n min-height: 246px;\n}\n.modal-content---3hUtG.md---3OKcy .modal-header---1FIQ_ + .modal-body---22INy {\n min-height: 192px;\n}\n.modal-content---3hUtG.lg---2kMz1 {\n min-width: 928px;\n}\n.modal-content---3hUtG.lg---2kMz1 .modal-body---22INy {\n min-height: 246px;\n}\n.modal-content---3hUtG.lg---2kMz1 .modal-header---1FIQ_ + .modal-body---22INy {\n min-height: 192px;\n}\n.modal-content---3hUtG .close---fVKdP {\n position: absolute;\n top: 16px;\n right: 24px;\n padding: 0;\n margin: 0;\n line-height: 20px;\n cursor: pointer;\n background: transparent;\n border: 0;\n -webkit-appearance: none;\n font-size: 30px;\n font-weight: normal;\n color: #999;\n text-shadow: none;\n opacity: 1;\n -ms-filter: none;\n filter: none;\n outline: 0;\n}\n.modal-content---3hUtG .modal-header---1FIQ_ {\n min-height: 54px;\n background-color: #fff;\n border-bottom: 1px solid #ccc;\n padding: 0;\n}\n.modal-content---3hUtG .modal-header---1FIQ_.padding---2pFRu {\n padding: 16px 24px;\n}\n.modal-content---3hUtG.hasCloseButton---2jvGR .modal-header---1FIQ_.padding---2pFRu {\n padding: 16px 56px 16px 24px;\n}\n.modal-content---3hUtG .modal-title---2qyMh {\n font-weight: 200;\n color: #222;\n letter-spacing: -0.02em;\n font-size: 18px;\n}\n.modal-content---3hUtG .modal-title---2qyMh.ellipsis---3BkJT {\n overflow: hidden;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.modal-content---3hUtG .modal-body---22INy {\n position: relative;\n padding: 0;\n}\n.modal-content---3hUtG .modal-body---22INy.padding---2pFRu {\n padding: 54px 24px 16px 24px;\n}\n.modal-content---3hUtG .modal-header---1FIQ_ + .modal-body---22INy.padding---2pFRu {\n padding: 16px 24px;\n}\n.modal-content---3hUtG .modal-footer---3bXnF {\n min-height: 56px;\n margin-top: 0;\n text-align: right;\n background-color: #eee;\n padding: 0;\n}\n.modal-content---3hUtG .modal-footer---3bXnF.padding---2pFRu {\n padding: 12px 24px;\n}\n.modal-content---3hUtG .modal-footer---3bXnF button {\n min-width: 80px;\n}\n.modal-content---3hUtG .modal-footer---3bXnF button + button {\n margin-left: 8px;\n}\n", ""]);
583583

584584
// exports
585585
exports.locals = {
@@ -18599,7 +18599,7 @@ var ModalPortal = function (_Component) {
1859918599
}
1860018600

1860118601
if (_this.props.shouldCloseOnEsc && event.keyCode === ESC_KEY) {
18602-
event.preventDefault();
18602+
event.stopPropagation();
1860318603
_this.requestClose(event);
1860418604
}
1860518605
};
@@ -19009,8 +19009,10 @@ function markForFocusLater() {
1900919009
function returnFocus() {
1901019010
var toFocus = null;
1901119011
try {
19012-
toFocus = focusLaterElements.pop();
19013-
toFocus.focus();
19012+
if (focusLaterElements.length !== 0) {
19013+
toFocus = focusLaterElements.pop();
19014+
toFocus.focus();
19015+
}
1901419016
return;
1901519017
} catch (e) {
1901619018
console.warn(["You tried to return focus to", toFocus, "but it is not in the DOM anymore"].join(" "));
@@ -20766,7 +20768,7 @@ module.exports = function(list, options) {
2076620768

2076720769
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
2076820770
// tags it will allow on a page
20769-
if (!options.singleton) options.singleton = isOldIE();
20771+
if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
2077020772

2077120773
// By default, add <style> tags to the <head> element
2077220774
if (!options.insertInto) options.insertInto = "head";
@@ -21714,12 +21716,14 @@ var customStyles = {
2171421716
boxShadow: '0 4px 16px rgba(0, 0, 0, .5)',
2171521717
border: '1px solid #ccc',
2171621718
borderRadius: 0,
21719+
position: 'absolute',
2171721720
top: '50%',
2171821721
left: '50%',
2171921722
right: 'auto',
2172021723
bottom: 'auto',
2172121724
marginRight: '-50%',
2172221725
padding: 0,
21726+
overflow: null, // Unset "overflow: auto" property
2172321727
msTransform: 'translate(-50%, -50%)', // IE9
2172421728
transform: 'translate(-50%, -50%)'
2172521729
}
@@ -22424,4 +22428,4 @@ _reactDom2.default.render(_react2.default.createElement(App, null), document.get
2242422428
/***/ })
2242522429

2242622430
/******/ });
22427-
//# sourceMappingURL=bundle.js.map?f1690308b7115d873d39
22431+
//# sourceMappingURL=bundle.js.map?05e7ae5114e87110a6f5

docs/bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@
4141
</div>
4242
</nav>
4343
<div id="container"></div>
44-
<script type="text/javascript" src="bundle.js?f1690308b7115d873d39"></script></body>
44+
<script type="text/javascript" src="bundle.js?05e7ae5114e87110a6f5"></script></body>
4545
</html>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@trendmicro/react-modal",
3-
"version": "0.9.1",
3+
"version": "0.9.2",
44
"description": "Trend Micro Components: React Modal",
55
"main": "lib/index.js",
66
"files": [

0 commit comments

Comments
 (0)