@teselagen/bounce-loader 0.3.11 → 0.3.12-beta.1
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 +65 -68
- package/index.d.ts +4 -0
- package/index.es.js +66 -65
- package/package.json +3 -2
package/index.cjs.js
CHANGED
@@ -1,77 +1,74 @@
|
|
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
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
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
|
+
classes = appendClass(classes, parseValue(arg));
|
25
|
+
}
|
26
|
+
}
|
27
|
+
return classes;
|
28
|
+
}
|
29
|
+
__name(classNames2, "classNames");
|
30
|
+
function parseValue(arg) {
|
31
|
+
if (typeof arg === "string" || typeof arg === "number") {
|
32
|
+
return arg;
|
33
|
+
}
|
34
|
+
if (typeof arg !== "object") {
|
35
|
+
return "";
|
36
|
+
}
|
37
|
+
if (Array.isArray(arg)) {
|
38
|
+
return classNames2.apply(null, arg);
|
39
|
+
}
|
40
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
41
|
+
return arg.toString();
|
42
|
+
}
|
43
|
+
var classes = "";
|
44
|
+
for (var key in arg) {
|
45
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
46
|
+
classes = appendClass(classes, key);
|
47
|
+
}
|
48
|
+
}
|
49
|
+
return classes;
|
50
|
+
}
|
51
|
+
__name(parseValue, "parseValue");
|
52
|
+
function appendClass(value, newClass) {
|
53
|
+
if (!newClass) {
|
54
|
+
return value;
|
55
|
+
}
|
56
|
+
if (value) {
|
57
|
+
return value + " " + newClass;
|
58
|
+
}
|
59
|
+
return value + newClass;
|
60
|
+
}
|
61
|
+
__name(appendClass, "appendClass");
|
62
|
+
if (module2.exports) {
|
63
|
+
classNames2.default = classNames2;
|
64
|
+
module2.exports = classNames2;
|
65
|
+
} else {
|
66
|
+
window.classNames = classNames2;
|
67
|
+
}
|
68
|
+
})();
|
69
|
+
})(classnames);
|
70
70
|
var classnamesExports = classnames.exports;
|
71
|
-
const classNames =
|
72
|
-
|
73
|
-
const style = '';
|
74
|
-
|
71
|
+
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
75
72
|
function BounceLoader({ style, className }) {
|
76
73
|
return /* @__PURE__ */ React.createElement(
|
77
74
|
"div",
|
@@ -87,5 +84,5 @@ function BounceLoader({ style, className }) {
|
|
87
84
|
/* @__PURE__ */ React.createElement("div", { className: "rect5" })
|
88
85
|
);
|
89
86
|
}
|
90
|
-
|
87
|
+
__name(BounceLoader, "BounceLoader");
|
91
88
|
exports.BounceLoader = BounceLoader;
|
package/index.d.ts
ADDED
package/index.es.js
CHANGED
@@ -1,74 +1,73 @@
|
|
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
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
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
|
+
classes = appendClass(classes, parseValue(arg));
|
24
|
+
}
|
25
|
+
}
|
26
|
+
return classes;
|
27
|
+
}
|
28
|
+
__name(classNames2, "classNames");
|
29
|
+
function parseValue(arg) {
|
30
|
+
if (typeof arg === "string" || typeof arg === "number") {
|
31
|
+
return arg;
|
32
|
+
}
|
33
|
+
if (typeof arg !== "object") {
|
34
|
+
return "";
|
35
|
+
}
|
36
|
+
if (Array.isArray(arg)) {
|
37
|
+
return classNames2.apply(null, arg);
|
38
|
+
}
|
39
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
40
|
+
return arg.toString();
|
41
|
+
}
|
42
|
+
var classes = "";
|
43
|
+
for (var key in arg) {
|
44
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
45
|
+
classes = appendClass(classes, key);
|
46
|
+
}
|
47
|
+
}
|
48
|
+
return classes;
|
49
|
+
}
|
50
|
+
__name(parseValue, "parseValue");
|
51
|
+
function appendClass(value, newClass) {
|
52
|
+
if (!newClass) {
|
53
|
+
return value;
|
54
|
+
}
|
55
|
+
if (value) {
|
56
|
+
return value + " " + newClass;
|
57
|
+
}
|
58
|
+
return value + newClass;
|
59
|
+
}
|
60
|
+
__name(appendClass, "appendClass");
|
61
|
+
if (module.exports) {
|
62
|
+
classNames2.default = classNames2;
|
63
|
+
module.exports = classNames2;
|
64
|
+
} else {
|
65
|
+
window.classNames = classNames2;
|
66
|
+
}
|
67
|
+
})();
|
68
|
+
})(classnames);
|
67
69
|
var classnamesExports = classnames.exports;
|
68
|
-
const classNames =
|
69
|
-
|
70
|
-
const style = '';
|
71
|
-
|
70
|
+
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
72
71
|
function BounceLoader({ style, className }) {
|
73
72
|
return /* @__PURE__ */ React.createElement(
|
74
73
|
"div",
|
@@ -84,5 +83,7 @@ function BounceLoader({ style, className }) {
|
|
84
83
|
/* @__PURE__ */ React.createElement("div", { className: "rect5" })
|
85
84
|
);
|
86
85
|
}
|
87
|
-
|
88
|
-
export {
|
86
|
+
__name(BounceLoader, "BounceLoader");
|
87
|
+
export {
|
88
|
+
BounceLoader
|
89
|
+
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teselagen/bounce-loader",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.12-beta.1",
|
4
4
|
"main": "./src/index.js",
|
5
5
|
"exports": {
|
6
6
|
".": {
|
@@ -10,7 +10,8 @@
|
|
10
10
|
"./style.css": "./style.css"
|
11
11
|
},
|
12
12
|
"dependencies": {
|
13
|
-
"
|
13
|
+
"classnames": "^2.3.2",
|
14
|
+
"react": "^18.3.1"
|
14
15
|
},
|
15
16
|
"license": "MIT"
|
16
17
|
}
|