@cordystackx/cordy_minikit 0.2.6 → 0.2.8
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.css +1 -3
- package/dist/index.js +6 -12
- package/package.json +2 -2
- package/css/Buttons/styles.module.css +0 -40
- package/css/UI_Comp/styles.module.css +0 -99
- package/css/index.ts +0 -9
- package/dist/styles.module.css +0 -40
package/dist/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* cordy_css/index.css */
|
|
2
2
|
.container,
|
|
3
3
|
.connector,
|
|
4
4
|
.connector div,
|
|
@@ -93,8 +93,6 @@
|
|
|
93
93
|
bottom: 0;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
|
|
97
|
-
/* css/Buttons/styles.module.css */
|
|
98
96
|
:root {
|
|
99
97
|
--foreground_wagmi: #171717;
|
|
100
98
|
--background_wagmi: #FAFAFA;
|
package/dist/index.js
CHANGED
|
@@ -2069,12 +2069,6 @@ var Image_default = {
|
|
|
2069
2069
|
logo: "https://cordy-stack-x.vercel.app/logo.svg"
|
|
2070
2070
|
};
|
|
2071
2071
|
|
|
2072
|
-
// css/UI_Comp/styles.module.css
|
|
2073
|
-
var styles_default = {};
|
|
2074
|
-
|
|
2075
|
-
// css/Buttons/styles.module.css
|
|
2076
|
-
var styles_default2 = {};
|
|
2077
|
-
|
|
2078
2072
|
// controllers/WagmiButton.tsx
|
|
2079
2073
|
var import_react = __toESM(require("react"));
|
|
2080
2074
|
var import_wagmi2 = require("wagmi");
|
|
@@ -2235,9 +2229,9 @@ function UI_Comp() {
|
|
|
2235
2229
|
if (balance === "") {
|
|
2236
2230
|
Get_Balance();
|
|
2237
2231
|
}
|
|
2238
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className:
|
|
2239
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className:
|
|
2240
|
-
isConnected && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className:
|
|
2232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "container", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "connector", children: [
|
|
2233
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: "closed", onClick: closeModal, children: "\u2715" }),
|
|
2234
|
+
isConnected && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "info", children: balance ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { children: [
|
|
2241
2235
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_fa.FaUser, { size: 70 }),
|
|
2242
2236
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { style: { color: "#0f0" }, children: "Connected" }),
|
|
2243
2237
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("p", { style: { color: "#0ff" }, children: [
|
|
@@ -2252,8 +2246,8 @@ function UI_Comp() {
|
|
|
2252
2246
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("a", { href: "https://cordy-stack-x.vercel.app/", children: "Powered By CordyStackX" })
|
|
2253
2247
|
] }) });
|
|
2254
2248
|
}
|
|
2255
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className:
|
|
2256
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className:
|
|
2249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "container", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "connector", children: [
|
|
2250
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: "closed", onClick: closeModal, children: "\u2715" }),
|
|
2257
2251
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("img", { src: Image_default.logo, width: 50, height: 50 }),
|
|
2258
2252
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h2", { children: "Cordy MiniKit" }),
|
|
2259
2253
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
|
|
@@ -2282,7 +2276,7 @@ function ConnectWalletBT() {
|
|
|
2282
2276
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2283
2277
|
"button",
|
|
2284
2278
|
{
|
|
2285
|
-
className:
|
|
2279
|
+
className: "button__button",
|
|
2286
2280
|
onClick: openModal,
|
|
2287
2281
|
children: isConnected ? `Connected ${address}` : "Connect Wallet"
|
|
2288
2282
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cordystackx/cordy_minikit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"css"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "tsup index.ts --dts
|
|
12
|
+
"build": "tsup index.ts --dts"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"ethers": ">=6",
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--foreground_wagmi: #171717;
|
|
3
|
-
--background_wagmi: #FAFAFA;
|
|
4
|
-
--invert-cordy-image: invert(1);
|
|
5
|
-
--invert-cordy-image_1: invert(0);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
@media (prefers-color-scheme: dark) {
|
|
9
|
-
:root {
|
|
10
|
-
--foreground_wagmi: #ededed;
|
|
11
|
-
--background_wagmi: #121212;
|
|
12
|
-
--invert-cordy-image: invert(0);
|
|
13
|
-
--invert-cordy-image_1: invert(1);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.button__button {
|
|
18
|
-
width: 150px;
|
|
19
|
-
padding: 0.8rem;
|
|
20
|
-
background-color: var(--foreground_wagmi);
|
|
21
|
-
color: var(--background_wagmi);
|
|
22
|
-
font-weight: bold;
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
border: transparent;
|
|
25
|
-
transition: all 0.5s ease-in-out;
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
white-space: nowrap;
|
|
28
|
-
text-overflow: ellipsis;
|
|
29
|
-
text-align: center;
|
|
30
|
-
}
|
|
31
|
-
.button__button img {
|
|
32
|
-
filter: var(--invert-cordy-image_1);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.button__button:hover {
|
|
36
|
-
opacity: 0.5;
|
|
37
|
-
}
|
|
38
|
-
.button__button:active {
|
|
39
|
-
transform: scale(0.6);
|
|
40
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
.container,
|
|
2
|
-
.connector,
|
|
3
|
-
.connector div,
|
|
4
|
-
.info,
|
|
5
|
-
.info span {
|
|
6
|
-
display: flex;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
align-items: center;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.container {
|
|
12
|
-
width: 100dvw;
|
|
13
|
-
height: 100dvh;
|
|
14
|
-
backdrop-filter: blur(10px);
|
|
15
|
-
z-index: 999;
|
|
16
|
-
position: fixed;
|
|
17
|
-
top: 50%;
|
|
18
|
-
left: 50%;
|
|
19
|
-
transform: translate(-50%, -50%);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.connector {
|
|
23
|
-
width: min(400px, 100dvw);
|
|
24
|
-
height: 500px;
|
|
25
|
-
background-color: var(--background_wagmi);
|
|
26
|
-
position: fixed;
|
|
27
|
-
border: 2px solid var(--foreground_wagmi);
|
|
28
|
-
flex-flow: column;
|
|
29
|
-
overflow: hidden;
|
|
30
|
-
animation: fadeIn 0.5s ease forwards;
|
|
31
|
-
}
|
|
32
|
-
.connector div {
|
|
33
|
-
flex-flow: column;
|
|
34
|
-
padding: 1rem 0;
|
|
35
|
-
width: 90%;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.connector div p {
|
|
39
|
-
color: #f00;
|
|
40
|
-
text-align: center;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@keyframes fadeIn {
|
|
44
|
-
from {
|
|
45
|
-
opacity: 0;
|
|
46
|
-
transform: scale(0.9);
|
|
47
|
-
}
|
|
48
|
-
to {
|
|
49
|
-
opacity: 1;
|
|
50
|
-
transform: scale(1);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
.connector img {
|
|
54
|
-
margin: 1rem 0;
|
|
55
|
-
filter: var(--invert-cordy-image);
|
|
56
|
-
}
|
|
57
|
-
.connector button {
|
|
58
|
-
width: 300px;
|
|
59
|
-
padding: 1rem;
|
|
60
|
-
background-color: var(--foreground_wagmi);
|
|
61
|
-
color: var(--background_wagmi);
|
|
62
|
-
font-weight: bold;
|
|
63
|
-
cursor: pointer;
|
|
64
|
-
border: transparent;
|
|
65
|
-
transition: all 0.5s ease;
|
|
66
|
-
margin: 1rem 0;
|
|
67
|
-
transition: all 0.5s ease-in-out;
|
|
68
|
-
}
|
|
69
|
-
.connector button:hover {
|
|
70
|
-
opacity: 0.5;
|
|
71
|
-
}
|
|
72
|
-
.connector button:active {
|
|
73
|
-
transform: scale(0.5);
|
|
74
|
-
}
|
|
75
|
-
.info span {
|
|
76
|
-
flex-flow: column;
|
|
77
|
-
}
|
|
78
|
-
.info span p {
|
|
79
|
-
width: 80%;
|
|
80
|
-
overflow: hidden;
|
|
81
|
-
white-space: nowrap;
|
|
82
|
-
text-overflow: ellipsis;
|
|
83
|
-
margin: 1rem 0;
|
|
84
|
-
font-weight: bolder;
|
|
85
|
-
}
|
|
86
|
-
.closed {
|
|
87
|
-
padding: 1rem;
|
|
88
|
-
position: absolute;
|
|
89
|
-
top: 0;
|
|
90
|
-
right: 0;
|
|
91
|
-
font-weight: bolder;
|
|
92
|
-
cursor: pointer;
|
|
93
|
-
}
|
|
94
|
-
@media (max-width: 800px) {
|
|
95
|
-
.connector {
|
|
96
|
-
bottom: 0;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
package/css/index.ts
DELETED
package/dist/styles.module.css
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--foreground_wagmi: #171717;
|
|
3
|
-
--background_wagmi: #FAFAFA;
|
|
4
|
-
--invert-cordy-image: invert(1);
|
|
5
|
-
--invert-cordy-image_1: invert(0);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
@media (prefers-color-scheme: dark) {
|
|
9
|
-
:root {
|
|
10
|
-
--foreground_wagmi: #ededed;
|
|
11
|
-
--background_wagmi: #121212;
|
|
12
|
-
--invert-cordy-image: invert(0);
|
|
13
|
-
--invert-cordy-image_1: invert(1);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.button__button {
|
|
18
|
-
width: 150px;
|
|
19
|
-
padding: 0.8rem;
|
|
20
|
-
background-color: var(--foreground_wagmi);
|
|
21
|
-
color: var(--background_wagmi);
|
|
22
|
-
font-weight: bold;
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
border: transparent;
|
|
25
|
-
transition: all 0.5s ease-in-out;
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
white-space: nowrap;
|
|
28
|
-
text-overflow: ellipsis;
|
|
29
|
-
text-align: center;
|
|
30
|
-
}
|
|
31
|
-
.button__button img {
|
|
32
|
-
filter: var(--invert-cordy-image_1);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.button__button:hover {
|
|
36
|
-
opacity: 0.5;
|
|
37
|
-
}
|
|
38
|
-
.button__button:active {
|
|
39
|
-
transform: scale(0.6);
|
|
40
|
-
}
|