@@ -1132,6 +1132,8 @@ return /******/ (function(modules) { // webpackBootstrap
1132
1132
1133
1133
'use strict' ;
1134
1134
1135
+ var _typeof = typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ? function ( obj ) { return typeof obj ; } : function ( obj ) { return obj && typeof Symbol === "function" && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : typeof obj ; } ;
1136
+
1135
1137
var React = __webpack_require__ ( 2 ) ;
1136
1138
var div = React . DOM . div ;
1137
1139
var focusManager = __webpack_require__ ( 14 ) ;
@@ -1141,16 +1143,8 @@ return /******/ (function(modules) { // webpackBootstrap
1141
1143
1142
1144
// so that our CSS is statically analyzable
1143
1145
var CLASS_NAMES = {
1144
- overlay : {
1145
- base : 'ReactModal__Overlay' ,
1146
- afterOpen : 'ReactModal__Overlay--after-open' ,
1147
- beforeClose : 'ReactModal__Overlay--before-close'
1148
- } ,
1149
- content : {
1150
- base : 'ReactModal__Content' ,
1151
- afterOpen : 'ReactModal__Content--after-open' ,
1152
- beforeClose : 'ReactModal__Content--before-close'
1153
- }
1146
+ overlay : 'ReactModal__Overlay' ,
1147
+ content : 'ReactModal__Content'
1154
1148
} ;
1155
1149
1156
1150
var ModalPortal = module . exports = createReactClass ( {
@@ -1296,10 +1290,19 @@ return /******/ (function(modules) { // webpackBootstrap
1296
1290
} ,
1297
1291
1298
1292
buildClassName : function buildClassName ( which , additional ) {
1299
- var className = CLASS_NAMES [ which ] . base ;
1300
- if ( this . state . afterOpen ) className += ' ' + CLASS_NAMES [ which ] . afterOpen ;
1301
- if ( this . state . beforeClose ) className += ' ' + CLASS_NAMES [ which ] . beforeClose ;
1302
- return additional ? className + ' ' + additional : className ;
1293
+ var classNames = ( typeof additional === 'undefined' ? 'undefined' : _typeof ( additional ) ) === 'object' ? additional : {
1294
+ base : CLASS_NAMES [ which ] ,
1295
+ afterOpen : CLASS_NAMES [ which ] + "--after-open" ,
1296
+ beforeClose : CLASS_NAMES [ which ] + "--before-close"
1297
+ } ;
1298
+ var className = classNames . base ;
1299
+ if ( this . state . afterOpen ) {
1300
+ className += " " + classNames . afterOpen ;
1301
+ }
1302
+ if ( this . state . beforeClose ) {
1303
+ className += " " + classNames . beforeClose ;
1304
+ }
1305
+ return typeof additional === 'string' && additional ? [ className , additional ] . join ( " " ) : className ;
1303
1306
} ,
1304
1307
1305
1308
render : function render ( ) {
0 commit comments