react-redux-django-auth 1.0.0
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/dist/index.d.mts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +84 -0
- package/dist/index.mjs +16 -0
- package/package.json +36 -0
package/dist/index.d.mts
ADDED
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function _type_of(obj) {
|
|
3
|
+
"@swc/helpers - typeof";
|
|
4
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
5
|
+
}
|
|
6
|
+
var __create = Object.create;
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
10
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
11
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
+
var __export = function(target, all) {
|
|
13
|
+
for(var name in all)__defProp(target, name, {
|
|
14
|
+
get: all[name],
|
|
15
|
+
enumerable: true
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = function(to, from, except, desc) {
|
|
19
|
+
if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
|
|
20
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
21
|
+
try {
|
|
22
|
+
var _loop = function() {
|
|
23
|
+
var key = _step.value;
|
|
24
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
25
|
+
get: function() {
|
|
26
|
+
return from[key];
|
|
27
|
+
},
|
|
28
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
for(var _iterator = __getOwnPropNames(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
|
|
32
|
+
} catch (err) {
|
|
33
|
+
_didIteratorError = true;
|
|
34
|
+
_iteratorError = err;
|
|
35
|
+
} finally{
|
|
36
|
+
try {
|
|
37
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
38
|
+
_iterator.return();
|
|
39
|
+
}
|
|
40
|
+
} finally{
|
|
41
|
+
if (_didIteratorError) {
|
|
42
|
+
throw _iteratorError;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return to;
|
|
48
|
+
};
|
|
49
|
+
var __toESM = function(mod, isNodeMode, target) {
|
|
50
|
+
return target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(// If the importer is in node compatibility mode or this is not an ESM
|
|
51
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
52
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
53
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
54
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
55
|
+
value: mod,
|
|
56
|
+
enumerable: true
|
|
57
|
+
}) : target, mod);
|
|
58
|
+
};
|
|
59
|
+
var __toCommonJS = function(mod) {
|
|
60
|
+
return __copyProps(__defProp({}, "__esModule", {
|
|
61
|
+
value: true
|
|
62
|
+
}), mod);
|
|
63
|
+
};
|
|
64
|
+
// src/index.tsx
|
|
65
|
+
var src_exports = {};
|
|
66
|
+
__export(src_exports, {
|
|
67
|
+
default: function() {
|
|
68
|
+
return src_default;
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
module.exports = __toCommonJS(src_exports);
|
|
72
|
+
var import_react = __toESM(require("react"));
|
|
73
|
+
var Button = function(param) {
|
|
74
|
+
var label = param.label, onClick = param.onClick;
|
|
75
|
+
return /* @__PURE__ */ import_react.default.createElement("button", {
|
|
76
|
+
onClick: onClick,
|
|
77
|
+
style: {
|
|
78
|
+
padding: "10px",
|
|
79
|
+
borderRadius: "5px",
|
|
80
|
+
border: "1px solid #ccc"
|
|
81
|
+
}
|
|
82
|
+
}, label);
|
|
83
|
+
};
|
|
84
|
+
var src_default = Button;
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/index.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
var Button = ({ label, onClick }) => {
|
|
4
|
+
return /* @__PURE__ */ React.createElement(
|
|
5
|
+
"button",
|
|
6
|
+
{
|
|
7
|
+
onClick,
|
|
8
|
+
style: { padding: "10px", borderRadius: "5px", border: "1px solid #ccc" }
|
|
9
|
+
},
|
|
10
|
+
label
|
|
11
|
+
);
|
|
12
|
+
};
|
|
13
|
+
var src_default = Button;
|
|
14
|
+
export {
|
|
15
|
+
src_default as default
|
|
16
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-redux-django-auth",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A simple React component package with TypeScript.",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsup src/index.tsx --format cjs,esm --dts",
|
|
13
|
+
"dev": "tsup src/index.tsx --format cjs,esm --dts --watch"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"react",
|
|
17
|
+
"component",
|
|
18
|
+
"typescript",
|
|
19
|
+
"npm"
|
|
20
|
+
],
|
|
21
|
+
"author": "Your Name",
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"react": ">=16.8.0",
|
|
25
|
+
"react-dom": ">=16.8.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@swc/core": "^1.13.3",
|
|
29
|
+
"@types/react": "^18.2.33",
|
|
30
|
+
"@types/react-dom": "^18.2.14",
|
|
31
|
+
"react": "^18.2.0",
|
|
32
|
+
"react-dom": "^18.2.0",
|
|
33
|
+
"tsup": "^7.2.0",
|
|
34
|
+
"typescript": "^5.2.2"
|
|
35
|
+
}
|
|
36
|
+
}
|