@cordystackx/cordy_minikit 0.2.5 → 0.2.6
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/css/Buttons/styles.module.css +40 -0
- package/css/UI_Comp/styles.module.css +99 -0
- package/css/index.ts +9 -0
- package/dist/index.js +4 -4
- package/dist/styles.module.css +40 -0
- package/package.json +4 -3
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
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
ADDED
package/dist/index.js
CHANGED
|
@@ -2295,20 +2295,20 @@ var WalletContext = (0, import_react3.createContext)(null);
|
|
|
2295
2295
|
var queryClient = new QueryClient();
|
|
2296
2296
|
function WalletProviders({ children }) {
|
|
2297
2297
|
const [open, setOpen] = (0, import_react3.useState)(false);
|
|
2298
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
2298
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
2299
2299
|
WalletContext.Provider,
|
|
2300
2300
|
{
|
|
2301
2301
|
value: {
|
|
2302
2302
|
openModal: () => setOpen(true),
|
|
2303
2303
|
closeModal: () => setOpen(false)
|
|
2304
2304
|
},
|
|
2305
|
-
children: [
|
|
2305
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_wagmi6.WagmiProvider, { config, children: [
|
|
2306
2306
|
children,
|
|
2307
2307
|
open && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(UI_Comp, {}),
|
|
2308
2308
|
" "
|
|
2309
|
-
]
|
|
2309
|
+
] })
|
|
2310
2310
|
}
|
|
2311
|
-
) })
|
|
2311
|
+
) });
|
|
2312
2312
|
}
|
|
2313
2313
|
function useWalletModal() {
|
|
2314
2314
|
const ctx = (0, import_react3.useContext)(WalletContext);
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cordystackx/cordy_minikit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
|
-
"dist"
|
|
8
|
+
"dist",
|
|
9
|
+
"css"
|
|
9
10
|
],
|
|
10
11
|
"scripts": {
|
|
11
|
-
"build": "tsup index.ts --dts"
|
|
12
|
+
"build": "tsup index.ts --dts && cp -r css/**/*.module.css dist/"
|
|
12
13
|
},
|
|
13
14
|
"peerDependencies": {
|
|
14
15
|
"ethers": ">=6",
|