@mjhls/mjh-framework 1.0.1033-taxonomy-native → 1.0.1034
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AlgoliaSearch.js +49 -113
- package/dist/cjs/AuthWrapper.js +19 -89
- package/dist/cjs/HamMagazine.js +85 -25
- package/dist/cjs/{ImageSlider-d65bc9c8.js → ImageSlider-984a697b.js} +116 -156
- package/dist/cjs/MediaSeriesLanding.js +2 -2
- package/dist/cjs/MediaSeriesLandingPaginated.js +2 -2
- package/dist/cjs/PartnerDetailListing.js +2 -1
- package/dist/cjs/PartnerDetailListingPaginated.js +2 -1
- package/dist/cjs/{Tooltip-71754b2a.js → Tooltip-96fe6ef6.js} +206 -248
- package/dist/cjs/View.js +2 -5
- package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
- package/dist/cjs/index-50be6759.js +105 -0
- package/dist/cjs/index.js +4 -2
- package/dist/cjs/typeof-1358762e.js +33 -0
- package/dist/esm/AlgoliaSearch.js +36 -100
- package/dist/esm/AuthWrapper.js +16 -86
- package/dist/esm/HamMagazine.js +85 -25
- package/dist/esm/{ImageSlider-da225417.js → ImageSlider-497e9c88.js} +117 -157
- package/dist/esm/MediaSeriesLanding.js +2 -2
- package/dist/esm/MediaSeriesLandingPaginated.js +2 -2
- package/dist/esm/PartnerDetailListing.js +2 -1
- package/dist/esm/PartnerDetailListingPaginated.js +2 -1
- package/dist/esm/{Tooltip-8307d9d1.js → Tooltip-bc98d17e.js} +1 -43
- package/dist/esm/View.js +2 -5
- package/dist/esm/defineProperty-23a8f8cd.js +68 -0
- package/dist/esm/index-98ca9cec.js +100 -0
- package/dist/esm/index.js +4 -2
- package/dist/esm/typeof-2f07d0e8.js +30 -0
- package/package.json +1 -1
- package/dist/cjs/index-b95410f0.js +0 -54
- package/dist/esm/index-174b5baf.js +0 -52
|
@@ -3,8 +3,8 @@ import { _ as _typeof } from './typeof-657f25da.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-1559c147.js';
|
|
4
4
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
5
5
|
import React__default, { useState, useEffect } from 'react';
|
|
6
|
-
import { D as DropdownButton, a as Dropdown } from './Tooltip-
|
|
7
|
-
import './index-
|
|
6
|
+
import { D as DropdownButton, a as Dropdown } from './Tooltip-bc98d17e.js';
|
|
7
|
+
import './index-98ca9cec.js';
|
|
8
8
|
import 'react-dom';
|
|
9
9
|
import Link from 'next/link';
|
|
10
10
|
import MasterDeck from './MasterDeck.js';
|
|
@@ -3,8 +3,8 @@ import { _ as _typeof } from './typeof-657f25da.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-1559c147.js';
|
|
4
4
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
5
5
|
import React__default, { useState, useEffect } from 'react';
|
|
6
|
-
import { D as DropdownButton, a as Dropdown } from './Tooltip-
|
|
7
|
-
import './index-
|
|
6
|
+
import { D as DropdownButton, a as Dropdown } from './Tooltip-bc98d17e.js';
|
|
7
|
+
import './index-98ca9cec.js';
|
|
8
8
|
import 'react-dom';
|
|
9
9
|
import Link from 'next/link';
|
|
10
10
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
@@ -3,7 +3,8 @@ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-1559c147.js';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import { TwitterTimelineEmbed } from 'react-twitter-embed';
|
|
6
|
-
import { I as ImageSlider, F as Facebook, P as Page } from './ImageSlider-
|
|
6
|
+
import { I as ImageSlider, F as Facebook, P as Page } from './ImageSlider-497e9c88.js';
|
|
7
|
+
import './defineProperty-23a8f8cd.js';
|
|
7
8
|
import { r as reactSocialIcons_1 } from './react-social-icons-9be47857.js';
|
|
8
9
|
import { m as moment } from './moment-bc12cb97.js';
|
|
9
10
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
@@ -3,7 +3,8 @@ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-1559c147.js';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import { TwitterTimelineEmbed } from 'react-twitter-embed';
|
|
6
|
-
import { I as ImageSlider, F as Facebook, P as Page } from './ImageSlider-
|
|
6
|
+
import { I as ImageSlider, F as Facebook, P as Page } from './ImageSlider-497e9c88.js';
|
|
7
|
+
import './defineProperty-23a8f8cd.js';
|
|
7
8
|
import { r as reactSocialIcons_1 } from './react-social-icons-9be47857.js';
|
|
8
9
|
import './moment-bc12cb97.js';
|
|
9
10
|
import QueueDeckExpanded from './QueueDeckExpandedPaginated.js';
|
|
@@ -1,42 +1,9 @@
|
|
|
1
|
-
import { c as classnames } from './index-
|
|
1
|
+
import { _ as _objectWithoutPropertiesLoose, b as _extends, a as _setPrototypeOf, c as classnames } from './index-98ca9cec.js';
|
|
2
2
|
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import ReactDOM from 'react-dom';
|
|
5
5
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
6
6
|
|
|
7
|
-
function _extends() {
|
|
8
|
-
_extends = Object.assign || function (target) {
|
|
9
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
10
|
-
var source = arguments[i];
|
|
11
|
-
|
|
12
|
-
for (var key in source) {
|
|
13
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
14
|
-
target[key] = source[key];
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
return _extends.apply(this, arguments);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
26
|
-
if (source == null) return {};
|
|
27
|
-
var target = {};
|
|
28
|
-
var sourceKeys = Object.keys(source);
|
|
29
|
-
var key, i;
|
|
30
|
-
|
|
31
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
32
|
-
key = sourceKeys[i];
|
|
33
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
34
|
-
target[key] = source[key];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return target;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
7
|
/**
|
|
41
8
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
42
9
|
*
|
|
@@ -142,15 +109,6 @@ function useUncontrolled(props, config) {
|
|
|
142
109
|
}, props);
|
|
143
110
|
}
|
|
144
111
|
|
|
145
|
-
function _setPrototypeOf(o, p) {
|
|
146
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
147
|
-
o.__proto__ = p;
|
|
148
|
-
return o;
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
return _setPrototypeOf(o, p);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
112
|
function _inheritsLoose(subClass, superClass) {
|
|
155
113
|
subClass.prototype = Object.create(superClass.prototype);
|
|
156
114
|
subClass.prototype.constructor = subClass;
|
package/dist/esm/View.js
CHANGED
|
@@ -2655,9 +2655,6 @@ View.returnGetInitialProps = function () {
|
|
|
2655
2655
|
if (x.applyNoFollowTag) {
|
|
2656
2656
|
article.applyNoFollowTag = true;
|
|
2657
2657
|
}
|
|
2658
|
-
if (x.disableNativeAds) {
|
|
2659
|
-
article.disableNativeAds = true;
|
|
2660
|
-
}
|
|
2661
2658
|
});
|
|
2662
2659
|
}
|
|
2663
2660
|
// check for disableAds flag on content category
|
|
@@ -2688,8 +2685,8 @@ View.returnGetInitialProps = function () {
|
|
|
2688
2685
|
|
|
2689
2686
|
case 35:
|
|
2690
2687
|
|
|
2691
|
-
//check documentGroup and documentGroupMapping for disableNativeAds:true
|
|
2692
|
-
if (article.documentGroup && article.documentGroup.length
|
|
2688
|
+
//check documentGroup and documentGroupMapping for disableNativeAds:true
|
|
2689
|
+
if (article.documentGroup && article.documentGroup.length) {
|
|
2693
2690
|
article.documentGroup.forEach(function (docGroup) {
|
|
2694
2691
|
var node = docGroup.parent ? docGroup.parent : null;
|
|
2695
2692
|
if (docGroup.disableNativeAds) {
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
|
|
3
|
+
var asyncToGenerator = createCommonjsModule(function (module) {
|
|
4
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
5
|
+
try {
|
|
6
|
+
var info = gen[key](arg);
|
|
7
|
+
var value = info.value;
|
|
8
|
+
} catch (error) {
|
|
9
|
+
reject(error);
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
if (info.done) {
|
|
14
|
+
resolve(value);
|
|
15
|
+
} else {
|
|
16
|
+
Promise.resolve(value).then(_next, _throw);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function _asyncToGenerator(fn) {
|
|
21
|
+
return function () {
|
|
22
|
+
var self = this,
|
|
23
|
+
args = arguments;
|
|
24
|
+
return new Promise(function (resolve, reject) {
|
|
25
|
+
var gen = fn.apply(self, args);
|
|
26
|
+
|
|
27
|
+
function _next(value) {
|
|
28
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function _throw(err) {
|
|
32
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
_next(undefined);
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
module.exports = _asyncToGenerator;
|
|
41
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
var _asyncToGenerator = unwrapExports(asyncToGenerator);
|
|
45
|
+
|
|
46
|
+
var defineProperty = createCommonjsModule(function (module) {
|
|
47
|
+
function _defineProperty(obj, key, value) {
|
|
48
|
+
if (key in obj) {
|
|
49
|
+
Object.defineProperty(obj, key, {
|
|
50
|
+
value: value,
|
|
51
|
+
enumerable: true,
|
|
52
|
+
configurable: true,
|
|
53
|
+
writable: true
|
|
54
|
+
});
|
|
55
|
+
} else {
|
|
56
|
+
obj[key] = value;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return obj;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
module.exports = _defineProperty;
|
|
63
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
var _defineProperty = unwrapExports(defineProperty);
|
|
67
|
+
|
|
68
|
+
export { _asyncToGenerator as _, _defineProperty as a, asyncToGenerator as b, defineProperty as d };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
|
|
3
|
+
function _extends() {
|
|
4
|
+
_extends = Object.assign || function (target) {
|
|
5
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
6
|
+
var source = arguments[i];
|
|
7
|
+
|
|
8
|
+
for (var key in source) {
|
|
9
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
10
|
+
target[key] = source[key];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return target;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
return _extends.apply(this, arguments);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
22
|
+
if (source == null) return {};
|
|
23
|
+
var target = {};
|
|
24
|
+
var sourceKeys = Object.keys(source);
|
|
25
|
+
var key, i;
|
|
26
|
+
|
|
27
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
28
|
+
key = sourceKeys[i];
|
|
29
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
30
|
+
target[key] = source[key];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return target;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function _setPrototypeOf(o, p) {
|
|
37
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
38
|
+
o.__proto__ = p;
|
|
39
|
+
return o;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
return _setPrototypeOf(o, p);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
var classnames = createCommonjsModule(function (module) {
|
|
46
|
+
/*!
|
|
47
|
+
Copyright (c) 2018 Jed Watson.
|
|
48
|
+
Licensed under the MIT License (MIT), see
|
|
49
|
+
http://jedwatson.github.io/classnames
|
|
50
|
+
*/
|
|
51
|
+
/* global define */
|
|
52
|
+
|
|
53
|
+
(function () {
|
|
54
|
+
|
|
55
|
+
var hasOwn = {}.hasOwnProperty;
|
|
56
|
+
|
|
57
|
+
function classNames() {
|
|
58
|
+
var classes = [];
|
|
59
|
+
|
|
60
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
61
|
+
var arg = arguments[i];
|
|
62
|
+
if (!arg) continue;
|
|
63
|
+
|
|
64
|
+
var argType = typeof arg;
|
|
65
|
+
|
|
66
|
+
if (argType === 'string' || argType === 'number') {
|
|
67
|
+
classes.push(arg);
|
|
68
|
+
} else if (Array.isArray(arg)) {
|
|
69
|
+
if (arg.length) {
|
|
70
|
+
var inner = classNames.apply(null, arg);
|
|
71
|
+
if (inner) {
|
|
72
|
+
classes.push(inner);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
} else if (argType === 'object') {
|
|
76
|
+
if (arg.toString === Object.prototype.toString) {
|
|
77
|
+
for (var key in arg) {
|
|
78
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
79
|
+
classes.push(key);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
} else {
|
|
83
|
+
classes.push(arg.toString());
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return classes.join(' ');
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if (module.exports) {
|
|
92
|
+
classNames.default = classNames;
|
|
93
|
+
module.exports = classNames;
|
|
94
|
+
} else {
|
|
95
|
+
window.classNames = classNames;
|
|
96
|
+
}
|
|
97
|
+
}());
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
export { _objectWithoutPropertiesLoose as _, _setPrototypeOf as a, _extends as b, classnames as c };
|
package/dist/esm/index.js
CHANGED
|
@@ -154,7 +154,8 @@ import './_object-to-array-b61d5965.js';
|
|
|
154
154
|
import 'react-bootstrap/Spinner';
|
|
155
155
|
import 'react-bootstrap/Form';
|
|
156
156
|
import './js.cookie-6874175c.js';
|
|
157
|
-
import './
|
|
157
|
+
import './typeof-2f07d0e8.js';
|
|
158
|
+
import './index-98ca9cec.js';
|
|
158
159
|
import './ConferenceBanner-8792ebd2.js';
|
|
159
160
|
import 'next/head';
|
|
160
161
|
import '@mjhls/mjh-framework/dist/cjs/urlFor';
|
|
@@ -196,7 +197,8 @@ import './SeriesSlider-a6b1d617.js';
|
|
|
196
197
|
import './style-inject.es-1f59c1d0.js';
|
|
197
198
|
import 'disqus-react';
|
|
198
199
|
import 'react-twitter-embed';
|
|
199
|
-
import './ImageSlider-
|
|
200
|
+
import './ImageSlider-497e9c88.js';
|
|
201
|
+
import './defineProperty-23a8f8cd.js';
|
|
200
202
|
import './VideoSeriesCard.js';
|
|
201
203
|
|
|
202
204
|
//Feature query to be used
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
|
|
3
|
+
var _typeof_1 = createCommonjsModule(function (module) {
|
|
4
|
+
function _typeof(obj) {
|
|
5
|
+
"@babel/helpers - typeof";
|
|
6
|
+
|
|
7
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
8
|
+
module.exports = _typeof = function _typeof(obj) {
|
|
9
|
+
return typeof obj;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
13
|
+
} else {
|
|
14
|
+
module.exports = _typeof = function _typeof(obj) {
|
|
15
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return _typeof(obj);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
module.exports = _typeof;
|
|
25
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
var _typeof = unwrapExports(_typeof_1);
|
|
29
|
+
|
|
30
|
+
export { _typeof as _, _typeof_1 as a };
|
package/package.json
CHANGED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
|
-
|
|
5
|
-
var classnames = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
6
|
-
/*!
|
|
7
|
-
Copyright (c) 2017 Jed Watson.
|
|
8
|
-
Licensed under the MIT License (MIT), see
|
|
9
|
-
http://jedwatson.github.io/classnames
|
|
10
|
-
*/
|
|
11
|
-
/* global define */
|
|
12
|
-
|
|
13
|
-
(function () {
|
|
14
|
-
|
|
15
|
-
var hasOwn = {}.hasOwnProperty;
|
|
16
|
-
|
|
17
|
-
function classNames () {
|
|
18
|
-
var classes = [];
|
|
19
|
-
|
|
20
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
21
|
-
var arg = arguments[i];
|
|
22
|
-
if (!arg) continue;
|
|
23
|
-
|
|
24
|
-
var argType = typeof arg;
|
|
25
|
-
|
|
26
|
-
if (argType === 'string' || argType === 'number') {
|
|
27
|
-
classes.push(arg);
|
|
28
|
-
} else if (Array.isArray(arg) && arg.length) {
|
|
29
|
-
var inner = classNames.apply(null, arg);
|
|
30
|
-
if (inner) {
|
|
31
|
-
classes.push(inner);
|
|
32
|
-
}
|
|
33
|
-
} else if (argType === 'object') {
|
|
34
|
-
for (var key in arg) {
|
|
35
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
36
|
-
classes.push(key);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
return classes.join(' ');
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (module.exports) {
|
|
46
|
-
classNames.default = classNames;
|
|
47
|
-
module.exports = classNames;
|
|
48
|
-
} else {
|
|
49
|
-
window.classNames = classNames;
|
|
50
|
-
}
|
|
51
|
-
}());
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
exports.classnames = classnames;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
|
|
3
|
-
var classnames = createCommonjsModule(function (module) {
|
|
4
|
-
/*!
|
|
5
|
-
Copyright (c) 2017 Jed Watson.
|
|
6
|
-
Licensed under the MIT License (MIT), see
|
|
7
|
-
http://jedwatson.github.io/classnames
|
|
8
|
-
*/
|
|
9
|
-
/* global define */
|
|
10
|
-
|
|
11
|
-
(function () {
|
|
12
|
-
|
|
13
|
-
var hasOwn = {}.hasOwnProperty;
|
|
14
|
-
|
|
15
|
-
function classNames () {
|
|
16
|
-
var classes = [];
|
|
17
|
-
|
|
18
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
19
|
-
var arg = arguments[i];
|
|
20
|
-
if (!arg) continue;
|
|
21
|
-
|
|
22
|
-
var argType = typeof arg;
|
|
23
|
-
|
|
24
|
-
if (argType === 'string' || argType === 'number') {
|
|
25
|
-
classes.push(arg);
|
|
26
|
-
} else if (Array.isArray(arg) && arg.length) {
|
|
27
|
-
var inner = classNames.apply(null, arg);
|
|
28
|
-
if (inner) {
|
|
29
|
-
classes.push(inner);
|
|
30
|
-
}
|
|
31
|
-
} else if (argType === 'object') {
|
|
32
|
-
for (var key in arg) {
|
|
33
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
34
|
-
classes.push(key);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return classes.join(' ');
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
if (module.exports) {
|
|
44
|
-
classNames.default = classNames;
|
|
45
|
-
module.exports = classNames;
|
|
46
|
-
} else {
|
|
47
|
-
window.classNames = classNames;
|
|
48
|
-
}
|
|
49
|
-
}());
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
export { classnames as c };
|