@teselagen/bounce-loader 0.0.10 → 0.0.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.umd.js +133 -80
- package/package.json +3 -2
- package/src/index.js +20 -0
- package/src/index.spec.js +14 -0
- package/src/style.css +45 -0
- package/index.js +0 -77
- package/index.mjs +0 -78
package/index.umd.js
CHANGED
@@ -1,80 +1,133 @@
|
|
1
|
-
(function(global, factory) {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
}
|
1
|
+
(function (global, factory) {
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.bounceLoader = {}));
|
5
|
+
})(this, (function (exports) { 'use strict';
|
6
|
+
|
7
|
+
function getDefaultExportFromCjs (x) {
|
8
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
9
|
+
}
|
10
|
+
|
11
|
+
var react = {exports: {}};
|
12
|
+
|
13
|
+
var react_production_min = {};
|
14
|
+
|
15
|
+
/**
|
16
|
+
* @license React
|
17
|
+
* react.production.min.js
|
18
|
+
*
|
19
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
20
|
+
*
|
21
|
+
* This source code is licensed under the MIT license found in the
|
22
|
+
* LICENSE file in the root directory of this source tree.
|
23
|
+
*/
|
24
|
+
var l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(a){if(null===a||"object"!==typeof a)return null;a=z&&a[z]||a["@@iterator"];return "function"===typeof a?a:null}
|
25
|
+
var B={isMounted:function(){return !1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B;}E.prototype.isReactComponent={};
|
26
|
+
E.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState");};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B;}var H=G.prototype=new F;
|
27
|
+
H.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};
|
28
|
+
function M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f;}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return {$$typeof:l,type:a,key:k,ref:h,props:c,_owner:K.current}}
|
29
|
+
function N(a,b){return {$$typeof:l,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return "object"===typeof a&&null!==a&&a.$$typeof===l}function escape(a){var b={"=":"=0",":":"=2"};return "$"+a.replace(/[=:]/g,function(a){return b[a]})}var P=/\/+/g;function Q(a,b){return "object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
|
30
|
+
function R(a,b,e,d,c){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case l:case n:h=!0;}}if(h)return h=a,c=c(h),a=""===d?"."+Q(h,0):d,I(c)?(e="",null!=a&&(e=a.replace(P,"$&/")+"/"),R(c,b,e,"",function(a){return a})):null!=c&&(O(c)&&(c=N(c,e+(!c.key||h&&h.key===c.key?"":(""+c.key).replace(P,"$&/")+"/")+a)),b.push(c)),1;h=0;d=""===d?".":d+":";if(I(a))for(var g=0;g<a.length;g++){k=
|
31
|
+
a[g];var f=d+Q(k,g);h+=R(k,b,e,f,c);}else if(f=A(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+Q(k,g++),h+=R(k,b,e,f,c);else if("object"===k)throw b=String(a),Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");return h}
|
32
|
+
function S(a,b,e){if(null==a)return a;var d=[],c=0;R(a,d,"","",function(a){return b.call(e,a,c++)});return d}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b;},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b;});-1===a._status&&(a._status=0,a._result=b);}if(1===a._status)return a._result.default;throw a._result;}
|
33
|
+
var U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};react_production_min.Children={map:S,forEach:function(a,b,e){S(a,function(){b.apply(this,arguments);},e);},count:function(a){var b=0;S(a,function(){b++;});return b},toArray:function(a){return S(a,function(a){return a})||[]},only:function(a){if(!O(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};react_production_min.Component=E;react_production_min.Fragment=p;
|
34
|
+
react_production_min.Profiler=r;react_production_min.PureComponent=G;react_production_min.StrictMode=q;react_production_min.Suspense=w;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;
|
35
|
+
react_production_min.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var d=C({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=K.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f]);}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);
|
36
|
+
for(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g;}return {$$typeof:l,type:a.type,key:c,ref:k,props:d,_owner:h}};react_production_min.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a};react_production_min.createElement=M;react_production_min.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};react_production_min.createRef=function(){return {current:null}};
|
37
|
+
react_production_min.forwardRef=function(a){return {$$typeof:v,render:a}};react_production_min.isValidElement=O;react_production_min.lazy=function(a){return {$$typeof:y,_payload:{_status:-1,_result:a},_init:T}};react_production_min.memo=function(a,b){return {$$typeof:x,type:a,compare:void 0===b?null:b}};react_production_min.startTransition=function(a){var b=V.transition;V.transition={};try{a();}finally{V.transition=b;}};react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.");};
|
38
|
+
react_production_min.useCallback=function(a,b){return U.current.useCallback(a,b)};react_production_min.useContext=function(a){return U.current.useContext(a)};react_production_min.useDebugValue=function(){};react_production_min.useDeferredValue=function(a){return U.current.useDeferredValue(a)};react_production_min.useEffect=function(a,b){return U.current.useEffect(a,b)};react_production_min.useId=function(){return U.current.useId()};react_production_min.useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)};
|
39
|
+
react_production_min.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};react_production_min.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};react_production_min.useMemo=function(a,b){return U.current.useMemo(a,b)};react_production_min.useReducer=function(a,b,e){return U.current.useReducer(a,b,e)};react_production_min.useRef=function(a){return U.current.useRef(a)};react_production_min.useState=function(a){return U.current.useState(a)};react_production_min.useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)};
|
40
|
+
react_production_min.useTransition=function(){return U.current.useTransition()};react_production_min.version="18.2.0";
|
41
|
+
|
42
|
+
{
|
43
|
+
react.exports = react_production_min;
|
44
|
+
}
|
45
|
+
|
46
|
+
var reactExports = react.exports;
|
47
|
+
const React = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
|
48
|
+
|
49
|
+
var classnames = {exports: {}};
|
50
|
+
|
51
|
+
/*!
|
52
|
+
Copyright (c) 2018 Jed Watson.
|
53
|
+
Licensed under the MIT License (MIT), see
|
54
|
+
http://jedwatson.github.io/classnames
|
55
|
+
*/
|
56
|
+
|
57
|
+
(function (module) {
|
58
|
+
/* global define */
|
59
|
+
|
60
|
+
(function () {
|
61
|
+
|
62
|
+
var hasOwn = {}.hasOwnProperty;
|
63
|
+
|
64
|
+
function classNames() {
|
65
|
+
var classes = [];
|
66
|
+
|
67
|
+
for (var i = 0; i < arguments.length; i++) {
|
68
|
+
var arg = arguments[i];
|
69
|
+
if (!arg) continue;
|
70
|
+
|
71
|
+
var argType = typeof arg;
|
72
|
+
|
73
|
+
if (argType === 'string' || argType === 'number') {
|
74
|
+
classes.push(arg);
|
75
|
+
} else if (Array.isArray(arg)) {
|
76
|
+
if (arg.length) {
|
77
|
+
var inner = classNames.apply(null, arg);
|
78
|
+
if (inner) {
|
79
|
+
classes.push(inner);
|
80
|
+
}
|
81
|
+
}
|
82
|
+
} else if (argType === 'object') {
|
83
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
84
|
+
classes.push(arg.toString());
|
85
|
+
continue;
|
86
|
+
}
|
87
|
+
|
88
|
+
for (var key in arg) {
|
89
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
90
|
+
classes.push(key);
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
return classes.join(' ');
|
97
|
+
}
|
98
|
+
|
99
|
+
if (module.exports) {
|
100
|
+
classNames.default = classNames;
|
101
|
+
module.exports = classNames;
|
102
|
+
} else {
|
103
|
+
window.classNames = classNames;
|
104
|
+
}
|
105
|
+
}());
|
106
|
+
} (classnames));
|
107
|
+
|
108
|
+
var classnamesExports = classnames.exports;
|
109
|
+
const classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
110
|
+
|
111
|
+
const style = '';
|
112
|
+
|
113
|
+
function BounceLoader({ style, className }) {
|
114
|
+
return /* @__PURE__ */ React.createElement(
|
115
|
+
"div",
|
116
|
+
{
|
117
|
+
"data-testid": "bounce-loader",
|
118
|
+
className: classNames("tg-bounce-loader", className),
|
119
|
+
style
|
120
|
+
},
|
121
|
+
/* @__PURE__ */ React.createElement("div", { className: "rect1" }),
|
122
|
+
/* @__PURE__ */ React.createElement("div", { className: "rect2" }),
|
123
|
+
/* @__PURE__ */ React.createElement("div", { className: "rect3" }),
|
124
|
+
/* @__PURE__ */ React.createElement("div", { className: "rect4" }),
|
125
|
+
/* @__PURE__ */ React.createElement("div", { className: "rect5" })
|
126
|
+
);
|
127
|
+
}
|
128
|
+
|
129
|
+
exports.BounceLoader = BounceLoader;
|
130
|
+
|
131
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
132
|
+
|
133
|
+
}));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teselagen/bounce-loader",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.12",
|
4
4
|
"main": "./index.js",
|
5
5
|
"types": "./index.d.ts",
|
6
6
|
"type": "commonjs",
|
@@ -9,5 +9,6 @@
|
|
9
9
|
"import": "./index.mjs",
|
10
10
|
"require": "./index.js"
|
11
11
|
}
|
12
|
-
}
|
12
|
+
},
|
13
|
+
"dependencies": {}
|
13
14
|
}
|
package/src/index.js
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
/* taken from http://tobiasahlin.com/spinkit/ */
|
2
|
+
import React from "react";
|
3
|
+
import classNames from "classnames";
|
4
|
+
import "./style.css";
|
5
|
+
|
6
|
+
export function BounceLoader({ style, className }) {
|
7
|
+
return (
|
8
|
+
<div
|
9
|
+
data-testid="bounce-loader"
|
10
|
+
className={classNames("tg-bounce-loader", className)}
|
11
|
+
style={style}
|
12
|
+
>
|
13
|
+
<div className="rect1" />
|
14
|
+
<div className="rect2" />
|
15
|
+
<div className="rect3" />
|
16
|
+
<div className="rect4" />
|
17
|
+
<div className="rect5" />
|
18
|
+
</div>
|
19
|
+
);
|
20
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { render } from "@testing-library/react";
|
3
|
+
import { BounceLoader } from ".";
|
4
|
+
|
5
|
+
describe("BounceLoader", () => {
|
6
|
+
test("renders correctly with given className", () => {
|
7
|
+
const { getByTestId } = render(<BounceLoader className="test-class" style={undefined} />);
|
8
|
+
const loader = getByTestId("bounce-loader");
|
9
|
+
expect(loader).toHaveClass("tg-bounce-loader");
|
10
|
+
expect(loader).toHaveClass("test-class");
|
11
|
+
expect(loader.querySelectorAll(".rect1")).to.have.length(1);
|
12
|
+
});
|
13
|
+
});
|
14
|
+
|
package/src/style.css
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
.tg-bounce-loader {
|
2
|
+
width: 50px;
|
3
|
+
height: 40px;
|
4
|
+
text-align: center;
|
5
|
+
font-size: 10px;
|
6
|
+
display: flex;
|
7
|
+
align-items: center;
|
8
|
+
}
|
9
|
+
|
10
|
+
.tg-bounce-loader > div {
|
11
|
+
background-color: #006cab;
|
12
|
+
height: 100%;
|
13
|
+
max-height: 30px;
|
14
|
+
width: 6px;
|
15
|
+
display: inline-block;
|
16
|
+
margin-right: 3px;
|
17
|
+
animation: sk-stretchdelay 1.2s infinite ease-in-out;
|
18
|
+
}
|
19
|
+
|
20
|
+
.tg-bounce-loader .rect2 {
|
21
|
+
animation-delay: -1.1s;
|
22
|
+
}
|
23
|
+
|
24
|
+
.tg-bounce-loader .rect3 {
|
25
|
+
animation-delay: -1s;
|
26
|
+
}
|
27
|
+
|
28
|
+
.tg-bounce-loader .rect4 {
|
29
|
+
animation-delay: -0.9s;
|
30
|
+
}
|
31
|
+
|
32
|
+
.tg-bounce-loader .rect5 {
|
33
|
+
animation-delay: -0.8s;
|
34
|
+
}
|
35
|
+
|
36
|
+
@keyframes sk-stretchdelay {
|
37
|
+
0%,
|
38
|
+
40%,
|
39
|
+
100% {
|
40
|
+
transform: scaleY(0.4);
|
41
|
+
}
|
42
|
+
20% {
|
43
|
+
transform: scaleY(1);
|
44
|
+
}
|
45
|
+
}
|
package/index.js
DELETED
@@ -1,77 +0,0 @@
|
|
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;
|
8
|
-
}
|
9
|
-
__name(getDefaultExportFromCjs, "getDefaultExportFromCjs");
|
10
|
-
var classnames = { exports: {} };
|
11
|
-
/*!
|
12
|
-
Copyright (c) 2018 Jed Watson.
|
13
|
-
Licensed under the MIT License (MIT), see
|
14
|
-
http://jedwatson.github.io/classnames
|
15
|
-
*/
|
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);
|
58
|
-
var classnamesExports = classnames.exports;
|
59
|
-
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
60
|
-
const style = "";
|
61
|
-
function BounceLoader({ style: style2, className }) {
|
62
|
-
return /* @__PURE__ */ React.createElement(
|
63
|
-
"div",
|
64
|
-
{
|
65
|
-
"data-testid": "bounce-loader",
|
66
|
-
className: classNames("tg-bounce-loader", className),
|
67
|
-
style: style2
|
68
|
-
},
|
69
|
-
/* @__PURE__ */ React.createElement("div", { className: "rect1" }),
|
70
|
-
/* @__PURE__ */ React.createElement("div", { className: "rect2" }),
|
71
|
-
/* @__PURE__ */ React.createElement("div", { className: "rect3" }),
|
72
|
-
/* @__PURE__ */ React.createElement("div", { className: "rect4" }),
|
73
|
-
/* @__PURE__ */ React.createElement("div", { className: "rect5" })
|
74
|
-
);
|
75
|
-
}
|
76
|
-
__name(BounceLoader, "BounceLoader");
|
77
|
-
exports.BounceLoader = BounceLoader;
|
package/index.mjs
DELETED
@@ -1,78 +0,0 @@
|
|
1
|
-
import './style.css';
|
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;
|
7
|
-
}
|
8
|
-
__name(getDefaultExportFromCjs, "getDefaultExportFromCjs");
|
9
|
-
var classnames = { exports: {} };
|
10
|
-
/*!
|
11
|
-
Copyright (c) 2018 Jed Watson.
|
12
|
-
Licensed under the MIT License (MIT), see
|
13
|
-
http://jedwatson.github.io/classnames
|
14
|
-
*/
|
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);
|
57
|
-
var classnamesExports = classnames.exports;
|
58
|
-
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
59
|
-
const style = "";
|
60
|
-
function BounceLoader({ style: style2, className }) {
|
61
|
-
return /* @__PURE__ */ React.createElement(
|
62
|
-
"div",
|
63
|
-
{
|
64
|
-
"data-testid": "bounce-loader",
|
65
|
-
className: classNames("tg-bounce-loader", className),
|
66
|
-
style: style2
|
67
|
-
},
|
68
|
-
/* @__PURE__ */ React.createElement("div", { className: "rect1" }),
|
69
|
-
/* @__PURE__ */ React.createElement("div", { className: "rect2" }),
|
70
|
-
/* @__PURE__ */ React.createElement("div", { className: "rect3" }),
|
71
|
-
/* @__PURE__ */ React.createElement("div", { className: "rect4" }),
|
72
|
-
/* @__PURE__ */ React.createElement("div", { className: "rect5" })
|
73
|
-
);
|
74
|
-
}
|
75
|
-
__name(BounceLoader, "BounceLoader");
|
76
|
-
export {
|
77
|
-
BounceLoader
|
78
|
-
};
|