@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.
Files changed (3) hide show
  1. package/index.cjs.js +56 -70
  2. package/index.es.js +57 -67
  3. package/package.json +1 -2
package/index.cjs.js CHANGED
@@ -1,84 +1,70 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
-
5
- const React = require('react');
6
-
7
- function getDefaultExportFromCjs (x) {
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 (module) {
20
- /* global define */
21
-
22
- (function () {
23
-
24
- var hasOwn = {}.hasOwnProperty;
25
-
26
- function classNames() {
27
- var classes = [];
28
-
29
- for (var i = 0; i < arguments.length; i++) {
30
- var arg = arguments[i];
31
- if (!arg) continue;
32
-
33
- var argType = typeof arg;
34
-
35
- if (argType === 'string' || argType === 'number') {
36
- classes.push(arg);
37
- } else if (Array.isArray(arg)) {
38
- if (arg.length) {
39
- var inner = classNames.apply(null, arg);
40
- if (inner) {
41
- classes.push(inner);
42
- }
43
- }
44
- } else if (argType === 'object') {
45
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
46
- classes.push(arg.toString());
47
- continue;
48
- }
49
-
50
- for (var key in arg) {
51
- if (hasOwn.call(arg, key) && arg[key]) {
52
- classes.push(key);
53
- }
54
- }
55
- }
56
- }
57
-
58
- return classes.join(' ');
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 = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
72
-
73
- const style = '';
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
- import React from 'react';
3
-
4
- function getDefaultExportFromCjs (x) {
5
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
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 (module) {
17
- /* global define */
18
-
19
- (function () {
20
-
21
- var hasOwn = {}.hasOwnProperty;
22
-
23
- function classNames() {
24
- var classes = [];
25
-
26
- for (var i = 0; i < arguments.length; i++) {
27
- var arg = arguments[i];
28
- if (!arg) continue;
29
-
30
- var argType = typeof arg;
31
-
32
- if (argType === 'string' || argType === 'number') {
33
- classes.push(arg);
34
- } else if (Array.isArray(arg)) {
35
- if (arg.length) {
36
- var inner = classNames.apply(null, arg);
37
- if (inner) {
38
- classes.push(inner);
39
- }
40
- }
41
- } else if (argType === 'object') {
42
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
43
- classes.push(arg.toString());
44
- continue;
45
- }
46
-
47
- for (var key in arg) {
48
- if (hasOwn.call(arg, key) && arg[key]) {
49
- classes.push(key);
50
- }
51
- }
52
- }
53
- }
54
-
55
- return classes.join(' ');
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 = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
69
-
70
- const style = '';
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 { BounceLoader };
75
+ __name(BounceLoader, "BounceLoader");
76
+ export {
77
+ BounceLoader
78
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/bounce-loader",
3
- "version": "0.3.10",
3
+ "version": "0.3.12",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -12,6 +12,5 @@
12
12
  "dependencies": {
13
13
  "react": "18.2.0"
14
14
  },
15
- "type": "module",
16
15
  "license": "MIT"
17
16
  }