@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 CHANGED
@@ -1,77 +1,74 @@
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
+ 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 = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
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
@@ -0,0 +1,4 @@
1
+ export function BounceLoader({ style, className }: {
2
+ style: any;
3
+ className: any;
4
+ }): import("react/jsx-runtime").JSX.Element;
package/index.es.js CHANGED
@@ -1,74 +1,73 @@
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
+ 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 = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
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 { BounceLoader };
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.11",
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
- "react": "18.2.0"
13
+ "classnames": "^2.3.2",
14
+ "react": "^18.3.1"
14
15
  },
15
16
  "license": "MIT"
16
17
  }