@teselagen/bounce-loader 0.3.10 → 0.3.12
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/index.cjs.js +56 -70
- package/index.es.js +57 -67
- package/package.json +1 -2
package/index.cjs.js
CHANGED
@@ -1,84 +1,70 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const React = require(
|
6
|
-
|
7
|
-
|
8
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
1
|
+
"use strict";
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
5
|
+
const React = require("react");
|
6
|
+
function getDefaultExportFromCjs(x) {
|
7
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
9
8
|
}
|
10
|
-
|
11
|
-
var classnames = {exports: {}};
|
12
|
-
|
9
|
+
__name(getDefaultExportFromCjs, "getDefaultExportFromCjs");
|
10
|
+
var classnames = { exports: {} };
|
13
11
|
/*!
|
14
12
|
Copyright (c) 2018 Jed Watson.
|
15
13
|
Licensed under the MIT License (MIT), see
|
16
14
|
http://jedwatson.github.io/classnames
|
17
15
|
*/
|
18
|
-
|
19
|
-
(function
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
if (module.exports) {
|
62
|
-
classNames.default = classNames;
|
63
|
-
module.exports = classNames;
|
64
|
-
} else {
|
65
|
-
window.classNames = classNames;
|
66
|
-
}
|
67
|
-
}());
|
68
|
-
} (classnames));
|
69
|
-
|
16
|
+
(function(module2) {
|
17
|
+
(function() {
|
18
|
+
var hasOwn = {}.hasOwnProperty;
|
19
|
+
function classNames2() {
|
20
|
+
var classes = [];
|
21
|
+
for (var i = 0; i < arguments.length; i++) {
|
22
|
+
var arg = arguments[i];
|
23
|
+
if (!arg)
|
24
|
+
continue;
|
25
|
+
var argType = typeof arg;
|
26
|
+
if (argType === "string" || argType === "number") {
|
27
|
+
classes.push(arg);
|
28
|
+
} else if (Array.isArray(arg)) {
|
29
|
+
if (arg.length) {
|
30
|
+
var inner = classNames2.apply(null, arg);
|
31
|
+
if (inner) {
|
32
|
+
classes.push(inner);
|
33
|
+
}
|
34
|
+
}
|
35
|
+
} else if (argType === "object") {
|
36
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
37
|
+
classes.push(arg.toString());
|
38
|
+
continue;
|
39
|
+
}
|
40
|
+
for (var key in arg) {
|
41
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
42
|
+
classes.push(key);
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
return classes.join(" ");
|
48
|
+
}
|
49
|
+
__name(classNames2, "classNames");
|
50
|
+
if (module2.exports) {
|
51
|
+
classNames2.default = classNames2;
|
52
|
+
module2.exports = classNames2;
|
53
|
+
} else {
|
54
|
+
window.classNames = classNames2;
|
55
|
+
}
|
56
|
+
})();
|
57
|
+
})(classnames);
|
70
58
|
var classnamesExports = classnames.exports;
|
71
|
-
const classNames =
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
function BounceLoader({ style, className }) {
|
59
|
+
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
60
|
+
const style = "";
|
61
|
+
function BounceLoader({ style: style2, className }) {
|
76
62
|
return /* @__PURE__ */ React.createElement(
|
77
63
|
"div",
|
78
64
|
{
|
79
65
|
"data-testid": "bounce-loader",
|
80
66
|
className: classNames("tg-bounce-loader", className),
|
81
|
-
style
|
67
|
+
style: style2
|
82
68
|
},
|
83
69
|
/* @__PURE__ */ React.createElement("div", { className: "rect1" }),
|
84
70
|
/* @__PURE__ */ React.createElement("div", { className: "rect2" }),
|
@@ -87,5 +73,5 @@ function BounceLoader({ style, className }) {
|
|
87
73
|
/* @__PURE__ */ React.createElement("div", { className: "rect5" })
|
88
74
|
);
|
89
75
|
}
|
90
|
-
|
76
|
+
__name(BounceLoader, "BounceLoader");
|
91
77
|
exports.BounceLoader = BounceLoader;
|
package/index.es.js
CHANGED
@@ -1,81 +1,69 @@
|
|
1
1
|
import './style.css';
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
4
|
+
import React from "react";
|
5
|
+
function getDefaultExportFromCjs(x) {
|
6
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
6
7
|
}
|
7
|
-
|
8
|
-
var classnames = {exports: {}};
|
9
|
-
|
8
|
+
__name(getDefaultExportFromCjs, "getDefaultExportFromCjs");
|
9
|
+
var classnames = { exports: {} };
|
10
10
|
/*!
|
11
11
|
Copyright (c) 2018 Jed Watson.
|
12
12
|
Licensed under the MIT License (MIT), see
|
13
13
|
http://jedwatson.github.io/classnames
|
14
14
|
*/
|
15
|
-
|
16
|
-
(function
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
if (module.exports) {
|
59
|
-
classNames.default = classNames;
|
60
|
-
module.exports = classNames;
|
61
|
-
} else {
|
62
|
-
window.classNames = classNames;
|
63
|
-
}
|
64
|
-
}());
|
65
|
-
} (classnames));
|
66
|
-
|
15
|
+
(function(module) {
|
16
|
+
(function() {
|
17
|
+
var hasOwn = {}.hasOwnProperty;
|
18
|
+
function classNames2() {
|
19
|
+
var classes = [];
|
20
|
+
for (var i = 0; i < arguments.length; i++) {
|
21
|
+
var arg = arguments[i];
|
22
|
+
if (!arg)
|
23
|
+
continue;
|
24
|
+
var argType = typeof arg;
|
25
|
+
if (argType === "string" || argType === "number") {
|
26
|
+
classes.push(arg);
|
27
|
+
} else if (Array.isArray(arg)) {
|
28
|
+
if (arg.length) {
|
29
|
+
var inner = classNames2.apply(null, arg);
|
30
|
+
if (inner) {
|
31
|
+
classes.push(inner);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
} else if (argType === "object") {
|
35
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
36
|
+
classes.push(arg.toString());
|
37
|
+
continue;
|
38
|
+
}
|
39
|
+
for (var key in arg) {
|
40
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
41
|
+
classes.push(key);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
return classes.join(" ");
|
47
|
+
}
|
48
|
+
__name(classNames2, "classNames");
|
49
|
+
if (module.exports) {
|
50
|
+
classNames2.default = classNames2;
|
51
|
+
module.exports = classNames2;
|
52
|
+
} else {
|
53
|
+
window.classNames = classNames2;
|
54
|
+
}
|
55
|
+
})();
|
56
|
+
})(classnames);
|
67
57
|
var classnamesExports = classnames.exports;
|
68
|
-
const classNames =
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
function BounceLoader({ style, className }) {
|
58
|
+
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
59
|
+
const style = "";
|
60
|
+
function BounceLoader({ style: style2, className }) {
|
73
61
|
return /* @__PURE__ */ React.createElement(
|
74
62
|
"div",
|
75
63
|
{
|
76
64
|
"data-testid": "bounce-loader",
|
77
65
|
className: classNames("tg-bounce-loader", className),
|
78
|
-
style
|
66
|
+
style: style2
|
79
67
|
},
|
80
68
|
/* @__PURE__ */ React.createElement("div", { className: "rect1" }),
|
81
69
|
/* @__PURE__ */ React.createElement("div", { className: "rect2" }),
|
@@ -84,5 +72,7 @@ function BounceLoader({ style, className }) {
|
|
84
72
|
/* @__PURE__ */ React.createElement("div", { className: "rect5" })
|
85
73
|
);
|
86
74
|
}
|
87
|
-
|
88
|
-
export {
|
75
|
+
__name(BounceLoader, "BounceLoader");
|
76
|
+
export {
|
77
|
+
BounceLoader
|
78
|
+
};
|
package/package.json
CHANGED