solariskit 1.4.0 → 1.6.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/ChainSelectButton-BcLkwhod.d.ts +187 -0
- package/dist/RainbowKitProvider-D6tnZRYJ.js +271 -0
- package/dist/{Wallet-epUweMuA.d.ts → Wallet-BhiBD1Pn.d.ts} +1 -5
- package/dist/WalletButton-Dc_yPK_E.d.ts +114 -0
- package/dist/components/index.d.ts +6 -126
- package/dist/components/index.js +3 -185
- package/dist/index.css +47 -47
- package/dist/index.d.ts +14 -49
- package/dist/index.js +3 -2
- package/dist/{injectedWallet-Bq0gF2WF.js → injectedWallet-CnP8-uv5.js} +19 -1
- package/dist/solana/index.d.ts +141 -0
- package/dist/solana/index.js +601 -0
- package/dist/{WalletButton-D8U16Q_4.js → useFingerprint-DGiyXD_j.js} +4583 -4593
- package/dist/{walletConnectors-C02JPPxf.js → walletConnectors-okw2Nbqq.js} +3 -2
- package/dist/wallets/walletConnectors/index.d.ts +2 -6
- package/dist/wallets/walletConnectors/index.js +1 -1
- package/package.json +26 -11
- package/dist/WalletButton-BiMfdrFz.d.ts +0 -337
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { a as RainbowKitProvider, l as AvatarComponent, n as ChainSelectButtonProps, o as RainbowKitProviderProps, r as ChainStatus, t as ChainSelectButton, u as AvatarComponentProps } from "../ChainSelectButton-BcLkwhod.js";
|
|
3
|
+
import { a as ConnectButtonProps, i as ConnectButton, n as WalletButtonProps, t as WalletButton } from "../WalletButton-Dc_yPK_E.js";
|
|
3
4
|
import React from "react";
|
|
4
|
-
|
|
5
5
|
//#region src/components/Avatar/Avatar.d.ts
|
|
6
6
|
interface AvatarProps {
|
|
7
7
|
address: string;
|
|
@@ -9,143 +9,23 @@ interface AvatarProps {
|
|
|
9
9
|
imageUrl?: string | null;
|
|
10
10
|
size: number;
|
|
11
11
|
}
|
|
12
|
-
declare function Avatar({
|
|
13
|
-
address,
|
|
14
|
-
imageUrl,
|
|
15
|
-
loading,
|
|
16
|
-
size
|
|
17
|
-
}: AvatarProps): React.JSX.Element;
|
|
12
|
+
declare function Avatar({ address, imageUrl, loading, size }: AvatarProps): React.JSX.Element;
|
|
18
13
|
//#endregion
|
|
19
14
|
//#region src/components/Avatar/EmojiAvatar.d.ts
|
|
20
15
|
declare const EmojiAvatar: AvatarComponent;
|
|
21
16
|
//#endregion
|
|
22
|
-
//#region src/components/Avatar/emojiAvatarForAddress.d.ts
|
|
23
|
-
declare const avatars: readonly [{
|
|
24
|
-
readonly color: "#FC5C54";
|
|
25
|
-
readonly emoji: "🌶";
|
|
26
|
-
}, {
|
|
27
|
-
readonly color: "#FFD95A";
|
|
28
|
-
readonly emoji: "🤑";
|
|
29
|
-
}, {
|
|
30
|
-
readonly color: "#E95D72";
|
|
31
|
-
readonly emoji: "🐙";
|
|
32
|
-
}, {
|
|
33
|
-
readonly color: "#6A87C8";
|
|
34
|
-
readonly emoji: "🫐";
|
|
35
|
-
}, {
|
|
36
|
-
readonly color: "#5FD0F3";
|
|
37
|
-
readonly emoji: "🐳";
|
|
38
|
-
}, {
|
|
39
|
-
readonly color: "#FC5C54";
|
|
40
|
-
readonly emoji: "🤶";
|
|
41
|
-
}, {
|
|
42
|
-
readonly color: "#75C06B";
|
|
43
|
-
readonly emoji: "🌲";
|
|
44
|
-
}, {
|
|
45
|
-
readonly color: "#FFDD86";
|
|
46
|
-
readonly emoji: "🌞";
|
|
47
|
-
}, {
|
|
48
|
-
readonly color: "#5FC6D4";
|
|
49
|
-
readonly emoji: "🐒";
|
|
50
|
-
}, {
|
|
51
|
-
readonly color: "#FF949A";
|
|
52
|
-
readonly emoji: "🐵";
|
|
53
|
-
}, {
|
|
54
|
-
readonly color: "#FF8024";
|
|
55
|
-
readonly emoji: "🦊";
|
|
56
|
-
}, {
|
|
57
|
-
readonly color: "#9BA1A4";
|
|
58
|
-
readonly emoji: "🐼";
|
|
59
|
-
}, {
|
|
60
|
-
readonly color: "#EC66FF";
|
|
61
|
-
readonly emoji: "🦄";
|
|
62
|
-
}, {
|
|
63
|
-
readonly color: "#FF8CBC";
|
|
64
|
-
readonly emoji: "🐷";
|
|
65
|
-
}, {
|
|
66
|
-
readonly color: "#FF9A23";
|
|
67
|
-
readonly emoji: "🐧";
|
|
68
|
-
}, {
|
|
69
|
-
readonly color: "#FF949A";
|
|
70
|
-
readonly emoji: "🦩";
|
|
71
|
-
}, {
|
|
72
|
-
readonly color: "#C5DADB";
|
|
73
|
-
readonly emoji: "👽";
|
|
74
|
-
}, {
|
|
75
|
-
readonly color: "#FC5C54";
|
|
76
|
-
readonly emoji: "🎈";
|
|
77
|
-
}, {
|
|
78
|
-
readonly color: "#FF949A";
|
|
79
|
-
readonly emoji: "🍉";
|
|
80
|
-
}, {
|
|
81
|
-
readonly color: "#FFD95A";
|
|
82
|
-
readonly emoji: "🎉";
|
|
83
|
-
}, {
|
|
84
|
-
readonly color: "#A8CE63";
|
|
85
|
-
readonly emoji: "🐲";
|
|
86
|
-
}, {
|
|
87
|
-
readonly color: "#71ABFF";
|
|
88
|
-
readonly emoji: "🌎";
|
|
89
|
-
}, {
|
|
90
|
-
readonly color: "#FFE279";
|
|
91
|
-
readonly emoji: "🍊";
|
|
92
|
-
}, {
|
|
93
|
-
readonly color: "#B6B1B6";
|
|
94
|
-
readonly emoji: "🐭";
|
|
95
|
-
}, {
|
|
96
|
-
readonly color: "#FF6780";
|
|
97
|
-
readonly emoji: "🍣";
|
|
98
|
-
}, {
|
|
99
|
-
readonly color: "#FFD95A";
|
|
100
|
-
readonly emoji: "🐥";
|
|
101
|
-
}, {
|
|
102
|
-
readonly color: "#A575FF";
|
|
103
|
-
readonly emoji: "👾";
|
|
104
|
-
}, {
|
|
105
|
-
readonly color: "#A8CE63";
|
|
106
|
-
readonly emoji: "🥦";
|
|
107
|
-
}, {
|
|
108
|
-
readonly color: "#FC5C54";
|
|
109
|
-
readonly emoji: "👹";
|
|
110
|
-
}, {
|
|
111
|
-
readonly color: "#FFE279";
|
|
112
|
-
readonly emoji: "🙀";
|
|
113
|
-
}, {
|
|
114
|
-
readonly color: "#5FD0F3";
|
|
115
|
-
readonly emoji: "⛱";
|
|
116
|
-
}, {
|
|
117
|
-
readonly color: "#4D82FF";
|
|
118
|
-
readonly emoji: "⛵️";
|
|
119
|
-
}, {
|
|
120
|
-
readonly color: "#FFE279";
|
|
121
|
-
readonly emoji: "🥳";
|
|
122
|
-
}, {
|
|
123
|
-
readonly color: "#FF949A";
|
|
124
|
-
readonly emoji: "🤯";
|
|
125
|
-
}, {
|
|
126
|
-
readonly color: "#FFB35A";
|
|
127
|
-
readonly emoji: "🤠";
|
|
128
|
-
}];
|
|
129
|
-
declare function emojiAvatarForAddress(address: string): (typeof avatars)[number];
|
|
130
|
-
//#endregion
|
|
131
17
|
//#region src/components/AccountModal/AccountModal.d.ts
|
|
132
18
|
interface AccountModalProps {
|
|
133
19
|
open: boolean;
|
|
134
20
|
onClose: () => void;
|
|
135
21
|
}
|
|
136
|
-
declare function AccountModal({
|
|
137
|
-
onClose,
|
|
138
|
-
open
|
|
139
|
-
}: AccountModalProps): React.JSX.Element | null;
|
|
22
|
+
declare function AccountModal({ onClose, open }: AccountModalProps): React.JSX.Element | null;
|
|
140
23
|
//#endregion
|
|
141
24
|
//#region src/components/ChainModal/ChainModal.d.ts
|
|
142
25
|
interface ChainModalProps {
|
|
143
26
|
open: boolean;
|
|
144
27
|
onClose: () => void;
|
|
145
28
|
}
|
|
146
|
-
declare function ChainModal({
|
|
147
|
-
onClose,
|
|
148
|
-
open
|
|
149
|
-
}: ChainModalProps): React.JSX.Element;
|
|
29
|
+
declare function ChainModal({ onClose, open }: ChainModalProps): React.JSX.Element;
|
|
150
30
|
//#endregion
|
|
151
|
-
export { AccountModal, type AccountModalProps, Avatar, type AvatarProps, ChainModal, type ChainModalProps, ChainSelectButton, type ChainSelectButtonProps, type ChainStatus, ConnectButton, type ConnectButtonProps, EmojiAvatar, type AvatarComponentProps as EmojiAvatarProps, RainbowKitProvider, type RainbowKitProviderProps, WalletButton, type WalletButtonProps
|
|
31
|
+
export { AccountModal, type AccountModalProps, Avatar, type AvatarProps, ChainModal, type ChainModalProps, ChainSelectButton, type ChainSelectButtonProps, type ChainStatus, ConnectButton, type ConnectButtonProps, EmojiAvatar, type AvatarComponentProps as EmojiAvatarProps, RainbowKitProvider, type RainbowKitProviderProps, WalletButton, type WalletButtonProps };
|
package/dist/components/index.js
CHANGED
|
@@ -1,187 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { B as Avatar, I as ChainModal, R as AccountModal, U as EmojiAvatar } from "../useFingerprint-DGiyXD_j.js";
|
|
3
|
+
import { i as ConnectButton, n as WalletButton, r as ChainSelectButton, t as RainbowKitProvider } from "../RainbowKitProvider-D6tnZRYJ.js";
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
const colors = [
|
|
6
|
-
"#FC5C54",
|
|
7
|
-
"#FFD95A",
|
|
8
|
-
"#E95D72",
|
|
9
|
-
"#6A87C8",
|
|
10
|
-
"#5FD0F3",
|
|
11
|
-
"#75C06B",
|
|
12
|
-
"#FFDD86",
|
|
13
|
-
"#5FC6D4",
|
|
14
|
-
"#FF949A",
|
|
15
|
-
"#FF8024",
|
|
16
|
-
"#9BA1A4",
|
|
17
|
-
"#EC66FF",
|
|
18
|
-
"#FF8CBC",
|
|
19
|
-
"#FF9A23",
|
|
20
|
-
"#C5DADB",
|
|
21
|
-
"#A8CE63",
|
|
22
|
-
"#71ABFF",
|
|
23
|
-
"#FFE279",
|
|
24
|
-
"#B6B1B6",
|
|
25
|
-
"#FF6780",
|
|
26
|
-
"#A575FF",
|
|
27
|
-
"#4D82FF",
|
|
28
|
-
"#FFB35A"
|
|
29
|
-
];
|
|
30
|
-
const avatars = [
|
|
31
|
-
{
|
|
32
|
-
color: colors[0],
|
|
33
|
-
emoji: "🌶"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
color: colors[1],
|
|
37
|
-
emoji: "🤑"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
color: colors[2],
|
|
41
|
-
emoji: "🐙"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
color: colors[3],
|
|
45
|
-
emoji: "🫐"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
color: colors[4],
|
|
49
|
-
emoji: "🐳"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
color: colors[0],
|
|
53
|
-
emoji: "🤶"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
color: colors[5],
|
|
57
|
-
emoji: "🌲"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
color: colors[6],
|
|
61
|
-
emoji: "🌞"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
color: colors[7],
|
|
65
|
-
emoji: "🐒"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
color: colors[8],
|
|
69
|
-
emoji: "🐵"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
color: colors[9],
|
|
73
|
-
emoji: "🦊"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
color: colors[10],
|
|
77
|
-
emoji: "🐼"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
color: colors[11],
|
|
81
|
-
emoji: "🦄"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
color: colors[12],
|
|
85
|
-
emoji: "🐷"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
color: colors[13],
|
|
89
|
-
emoji: "🐧"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
color: colors[8],
|
|
93
|
-
emoji: "🦩"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
color: colors[14],
|
|
97
|
-
emoji: "👽"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
color: colors[0],
|
|
101
|
-
emoji: "🎈"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
color: colors[8],
|
|
105
|
-
emoji: "🍉"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
color: colors[1],
|
|
109
|
-
emoji: "🎉"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
color: colors[15],
|
|
113
|
-
emoji: "🐲"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
color: colors[16],
|
|
117
|
-
emoji: "🌎"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
color: colors[17],
|
|
121
|
-
emoji: "🍊"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
color: colors[18],
|
|
125
|
-
emoji: "🐭"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
color: colors[19],
|
|
129
|
-
emoji: "🍣"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
color: colors[1],
|
|
133
|
-
emoji: "🐥"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
color: colors[20],
|
|
137
|
-
emoji: "👾"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
color: colors[15],
|
|
141
|
-
emoji: "🥦"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
color: colors[0],
|
|
145
|
-
emoji: "👹"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
color: colors[17],
|
|
149
|
-
emoji: "🙀"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
color: colors[4],
|
|
153
|
-
emoji: "⛱"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
color: colors[21],
|
|
157
|
-
emoji: "⛵️"
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
color: colors[17],
|
|
161
|
-
emoji: "🥳"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
color: colors[8],
|
|
165
|
-
emoji: "🤯"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
color: colors[22],
|
|
169
|
-
emoji: "🤠"
|
|
170
|
-
}
|
|
171
|
-
];
|
|
172
|
-
function hashCode(text) {
|
|
173
|
-
let hash = 0;
|
|
174
|
-
if (text.length === 0) return hash;
|
|
175
|
-
for (let i = 0; i < text.length; i++) {
|
|
176
|
-
const chr = text.charCodeAt(i);
|
|
177
|
-
hash = (hash << 5) - hash + chr;
|
|
178
|
-
hash |= 0;
|
|
179
|
-
}
|
|
180
|
-
return hash;
|
|
181
|
-
}
|
|
182
|
-
function emojiAvatarForAddress(address) {
|
|
183
|
-
return avatars[Math.abs(hashCode((typeof address === "string" ? address : "").toLowerCase()) % avatars.length)] ?? avatars[0];
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
//#endregion
|
|
187
|
-
export { AccountModal, Avatar, ChainModal, ChainSelectButton, ConnectButton, EmojiAvatar, RainbowKitProvider, WalletButton, emojiAvatarForAddress };
|
|
5
|
+
export { AccountModal, Avatar, ChainModal, ChainSelectButton, ConnectButton, EmojiAvatar, RainbowKitProvider, WalletButton };
|
package/dist/index.css
CHANGED
|
@@ -1966,6 +1966,20 @@
|
|
|
1966
1966
|
display: inline;
|
|
1967
1967
|
}
|
|
1968
1968
|
}
|
|
1969
|
+
[data-rk] ._1c95jmh0 {
|
|
1970
|
+
background: white;
|
|
1971
|
+
color: black;
|
|
1972
|
+
}
|
|
1973
|
+
[data-rk] ._1c95jmh2 {
|
|
1974
|
+
max-height: 454px;
|
|
1975
|
+
overflow-y: auto;
|
|
1976
|
+
}
|
|
1977
|
+
[data-rk] ._1c95jmh3 {
|
|
1978
|
+
min-width: 287px;
|
|
1979
|
+
}
|
|
1980
|
+
[data-rk] ._1c95jmh4 {
|
|
1981
|
+
min-width: 100%;
|
|
1982
|
+
}
|
|
1969
1983
|
[data-rk] ._1uzxtia3,[data-rk] ._1uzxtia3::after {
|
|
1970
1984
|
--_1uzxtia0: 1;
|
|
1971
1985
|
--_1uzxtia1: 1;
|
|
@@ -2021,22 +2035,41 @@
|
|
|
2021
2035
|
max-width: -moz-fit-content;
|
|
2022
2036
|
max-width: fit-content;
|
|
2023
2037
|
}
|
|
2024
|
-
[data-rk] .
|
|
2025
|
-
|
|
2038
|
+
[data-rk] ._1rjgdy20:hover {
|
|
2039
|
+
background: unset;
|
|
2026
2040
|
}
|
|
2027
|
-
[data-rk] .
|
|
2028
|
-
|
|
2029
|
-
|
|
2041
|
+
[data-rk] ._5a0qia0 {
|
|
2042
|
+
max-height: 456px;
|
|
2043
|
+
overflow-y: auto;
|
|
2044
|
+
overflow-x: hidden;
|
|
2030
2045
|
}
|
|
2031
|
-
[data-rk] .
|
|
2032
|
-
max-height:
|
|
2046
|
+
[data-rk] ._5a0qia1 {
|
|
2047
|
+
max-height: 456px;
|
|
2033
2048
|
overflow-y: auto;
|
|
2049
|
+
overflow-x: hidden;
|
|
2050
|
+
scrollbar-width: none;
|
|
2034
2051
|
}
|
|
2035
|
-
[data-rk] .
|
|
2036
|
-
|
|
2052
|
+
[data-rk] ._5a0qia1::-webkit-scrollbar {
|
|
2053
|
+
display: none;
|
|
2037
2054
|
}
|
|
2038
|
-
[data-rk] .
|
|
2039
|
-
|
|
2055
|
+
[data-rk] ._5a0qia2 {
|
|
2056
|
+
width: 100%;
|
|
2057
|
+
height: 40px;
|
|
2058
|
+
border-radius: var(--rk-radii-menuButton);
|
|
2059
|
+
border: 1px solid var(--rk-colors-generalBorder);
|
|
2060
|
+
background: var(--rk-colors-menuItemBackground);
|
|
2061
|
+
color: var(--rk-colors-modalText);
|
|
2062
|
+
font: inherit;
|
|
2063
|
+
padding: 0 14px;
|
|
2064
|
+
}
|
|
2065
|
+
[data-rk] ._5a0qia2::-moz-placeholder {
|
|
2066
|
+
color: var(--rk-colors-modalTextSecondary);
|
|
2067
|
+
}
|
|
2068
|
+
[data-rk] ._5a0qia2::placeholder {
|
|
2069
|
+
color: var(--rk-colors-modalTextSecondary);
|
|
2070
|
+
}
|
|
2071
|
+
[data-rk] ._5a0qia2:focus {
|
|
2072
|
+
border-color: var(--rk-colors-selectedOptionBorder);
|
|
2040
2073
|
}
|
|
2041
2074
|
@keyframes _1vod5wo1 {
|
|
2042
2075
|
0% {
|
|
@@ -2064,6 +2097,9 @@
|
|
|
2064
2097
|
[data-rk] ._1vod5wo3 {
|
|
2065
2098
|
position: absolute;
|
|
2066
2099
|
}
|
|
2100
|
+
[data-rk] ._3p9bxw0 {
|
|
2101
|
+
border-color: transparent;
|
|
2102
|
+
}
|
|
2067
2103
|
@keyframes _1enlt0o0 {
|
|
2068
2104
|
0% {
|
|
2069
2105
|
transform: translateY(100%);
|
|
@@ -2135,40 +2171,4 @@
|
|
|
2135
2171
|
padding-bottom: 200px;
|
|
2136
2172
|
top: 200px;
|
|
2137
2173
|
}
|
|
2138
|
-
}
|
|
2139
|
-
[data-rk] ._1rjgdy20:hover {
|
|
2140
|
-
background: unset;
|
|
2141
|
-
}
|
|
2142
|
-
[data-rk] ._5a0qia0 {
|
|
2143
|
-
max-height: 456px;
|
|
2144
|
-
overflow-y: auto;
|
|
2145
|
-
overflow-x: hidden;
|
|
2146
|
-
}
|
|
2147
|
-
[data-rk] ._5a0qia1 {
|
|
2148
|
-
max-height: 456px;
|
|
2149
|
-
overflow-y: auto;
|
|
2150
|
-
overflow-x: hidden;
|
|
2151
|
-
scrollbar-width: none;
|
|
2152
|
-
}
|
|
2153
|
-
[data-rk] ._5a0qia1::-webkit-scrollbar {
|
|
2154
|
-
display: none;
|
|
2155
|
-
}
|
|
2156
|
-
[data-rk] ._5a0qia2 {
|
|
2157
|
-
width: 100%;
|
|
2158
|
-
height: 40px;
|
|
2159
|
-
border-radius: var(--rk-radii-menuButton);
|
|
2160
|
-
border: 1px solid var(--rk-colors-generalBorder);
|
|
2161
|
-
background: var(--rk-colors-menuItemBackground);
|
|
2162
|
-
color: var(--rk-colors-modalText);
|
|
2163
|
-
font: inherit;
|
|
2164
|
-
padding: 0 14px;
|
|
2165
|
-
}
|
|
2166
|
-
[data-rk] ._5a0qia2::-moz-placeholder {
|
|
2167
|
-
color: var(--rk-colors-modalTextSecondary);
|
|
2168
|
-
}
|
|
2169
|
-
[data-rk] ._5a0qia2::placeholder {
|
|
2170
|
-
color: var(--rk-colors-modalTextSecondary);
|
|
2171
|
-
}
|
|
2172
|
-
[data-rk] ._5a0qia2:focus {
|
|
2173
|
-
border-color: var(--rk-colors-selectedOptionBorder);
|
|
2174
2174
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
2
|
+
import { a as RainbowKitProvider, d as DisclaimerComponent, l as AvatarComponent, n as ChainSelectButtonProps, o as RainbowKitProviderProps, p as ThemeVars, r as ChainStatus, s as Theme, t as ChainSelectButton } from "./ChainSelectButton-BcLkwhod.js";
|
|
3
|
+
import { c as RainbowKitAuthenticationProvider, i as ConnectButton, l as createAuthenticationAdapter, o as AuthenticationConfig, r as WalletButtonRendererProps, s as AuthenticationStatus, t as WalletButton } from "./WalletButton-Dc_yPK_E.js";
|
|
4
|
+
import { a as WalletDetailsParams, i as Wallet, r as RainbowKitWalletConnectParameters, s as WalletList, t as CreateConnector } from "./Wallet-BhiBD1Pn.js";
|
|
4
5
|
import React, { ReactNode } from "react";
|
|
5
6
|
import { CreateConfigParameters, CreateConnectorFn } from "wagmi";
|
|
6
7
|
import { Transport } from "viem";
|
|
7
8
|
import { Chain } from "wagmi/chains";
|
|
8
|
-
|
|
9
9
|
//#region src/components/RainbowKitProvider/RainbowKitChainContext.d.ts
|
|
10
10
|
interface RainbowKitChain extends Chain {
|
|
11
11
|
iconUrl?: string | (() => Promise<string>) | null;
|
|
@@ -24,16 +24,7 @@ interface GetDefaultConfigParameters<chains extends _chains, transports extends
|
|
|
24
24
|
projectId: string;
|
|
25
25
|
walletConnectParameters?: RainbowKitWalletConnectParameters;
|
|
26
26
|
}
|
|
27
|
-
declare const getDefaultConfig: <chains extends _chains, transports extends _transports>({
|
|
28
|
-
appName,
|
|
29
|
-
appDescription,
|
|
30
|
-
appUrl,
|
|
31
|
-
appIcon,
|
|
32
|
-
wallets,
|
|
33
|
-
projectId,
|
|
34
|
-
walletConnectParameters,
|
|
35
|
-
...wagmiParameters
|
|
36
|
-
}: GetDefaultConfigParameters<chains, transports>) => import("wagmi").Config<chains, transports, import("wagmi").CreateConnectorFn[]>;
|
|
27
|
+
declare const getDefaultConfig: <chains extends _chains, transports extends _transports>({ appName, appDescription, appUrl, appIcon, wallets, projectId, walletConnectParameters, ...wagmiParameters }: GetDefaultConfigParameters<chains, transports>) => import("wagmi").Config<chains, transports, import("wagmi").CreateConnectorFn[]>;
|
|
37
28
|
//#endregion
|
|
38
29
|
//#region src/wallets/connectorsForWallets.d.ts
|
|
39
30
|
interface ConnectorsForWalletsParameters {
|
|
@@ -44,14 +35,7 @@ interface ConnectorsForWalletsParameters {
|
|
|
44
35
|
appIcon?: string;
|
|
45
36
|
walletConnectParameters?: RainbowKitWalletConnectParameters;
|
|
46
37
|
}
|
|
47
|
-
declare const connectorsForWallets: (walletList: WalletList, {
|
|
48
|
-
projectId,
|
|
49
|
-
walletConnectParameters,
|
|
50
|
-
appName,
|
|
51
|
-
appDescription,
|
|
52
|
-
appUrl,
|
|
53
|
-
appIcon
|
|
54
|
-
}: ConnectorsForWalletsParameters) => CreateConnectorFn[];
|
|
38
|
+
declare const connectorsForWallets: (walletList: WalletList, { projectId, walletConnectParameters, appName, appDescription, appUrl, appIcon }: ConnectorsForWalletsParameters) => CreateConnectorFn[];
|
|
55
39
|
//#endregion
|
|
56
40
|
//#region src/wallets/getDefaultWallets.d.ts
|
|
57
41
|
declare function getDefaultWallets(parameters: ConnectorsForWalletsParameters): {
|
|
@@ -67,10 +51,7 @@ interface GetWalletConnectConnectorParams {
|
|
|
67
51
|
projectId: string;
|
|
68
52
|
walletConnectParameters?: RainbowKitWalletConnectParameters;
|
|
69
53
|
}
|
|
70
|
-
declare function getWalletConnectConnector({
|
|
71
|
-
projectId,
|
|
72
|
-
walletConnectParameters
|
|
73
|
-
}: GetWalletConnectConnectorParams): CreateConnector;
|
|
54
|
+
declare function getWalletConnectConnector({ projectId, walletConnectParameters }: GetWalletConnectConnectorParams): CreateConnector;
|
|
74
55
|
//#endregion
|
|
75
56
|
//#region src/components/RainbowKitProvider/ModalContext.d.ts
|
|
76
57
|
declare function useAccountModal(): {
|
|
@@ -124,11 +105,7 @@ interface ThemeOptions extends BaseThemeOptions {
|
|
|
124
105
|
//#endregion
|
|
125
106
|
//#region src/themes/lightTheme.d.ts
|
|
126
107
|
declare const lightTheme: {
|
|
127
|
-
({
|
|
128
|
-
accentColor,
|
|
129
|
-
accentColorForeground,
|
|
130
|
-
...baseThemeOptions
|
|
131
|
-
}?: ThemeOptions): {
|
|
108
|
+
({ accentColor, accentColorForeground, ...baseThemeOptions }?: ThemeOptions): {
|
|
132
109
|
colors: {
|
|
133
110
|
accentColor: string;
|
|
134
111
|
accentColorForeground: string;
|
|
@@ -188,11 +165,7 @@ declare const lightTheme: {
|
|
|
188
165
|
//#endregion
|
|
189
166
|
//#region src/themes/darkTheme.d.ts
|
|
190
167
|
declare const darkTheme: {
|
|
191
|
-
({
|
|
192
|
-
accentColor,
|
|
193
|
-
accentColorForeground,
|
|
194
|
-
...baseThemeOptions
|
|
195
|
-
}?: ThemeOptions): {
|
|
168
|
+
({ accentColor, accentColorForeground, ...baseThemeOptions }?: ThemeOptions): {
|
|
196
169
|
colors: {
|
|
197
170
|
accentColor: string;
|
|
198
171
|
accentColorForeground: string;
|
|
@@ -252,11 +225,7 @@ declare const darkTheme: {
|
|
|
252
225
|
//#endregion
|
|
253
226
|
//#region src/themes/midnightTheme.d.ts
|
|
254
227
|
declare const midnightTheme: {
|
|
255
|
-
({
|
|
256
|
-
accentColor,
|
|
257
|
-
accentColorForeground,
|
|
258
|
-
...baseThemeOptions
|
|
259
|
-
}?: ThemeOptions): {
|
|
228
|
+
({ accentColor, accentColorForeground, ...baseThemeOptions }?: ThemeOptions): {
|
|
260
229
|
colors: {
|
|
261
230
|
accentColor: string;
|
|
262
231
|
accentColorForeground: string;
|
|
@@ -320,26 +289,22 @@ declare function cssStringFromTheme(theme: ThemeVars | (() => ThemeVars), option
|
|
|
320
289
|
}): string;
|
|
321
290
|
//#endregion
|
|
322
291
|
//#region src/css/cssObjectFromTheme.d.ts
|
|
323
|
-
declare function cssObjectFromTheme(theme: ThemeVars | (() => ThemeVars), {
|
|
324
|
-
extends: baseTheme
|
|
325
|
-
}?: {
|
|
292
|
+
declare function cssObjectFromTheme(theme: ThemeVars | (() => ThemeVars), { extends: baseTheme }?: {
|
|
326
293
|
extends?: ThemeVars | (() => ThemeVars);
|
|
327
294
|
}): {
|
|
328
295
|
[cssVarName: string]: string;
|
|
329
296
|
};
|
|
330
297
|
//#endregion
|
|
331
298
|
//#region src/components/ConnectOptions/DesktopOptions.d.ts
|
|
332
|
-
declare function DesktopOptions({
|
|
333
|
-
onClose
|
|
334
|
-
}: {
|
|
299
|
+
declare function DesktopOptions({ onClose, titleId }: {
|
|
335
300
|
onClose: () => void;
|
|
301
|
+
titleId: string;
|
|
336
302
|
}): React.JSX.Element;
|
|
337
303
|
//#endregion
|
|
338
304
|
//#region src/components/ConnectOptions/MobileOptions.d.ts
|
|
339
|
-
declare function MobileOptions({
|
|
340
|
-
onClose
|
|
341
|
-
}: {
|
|
305
|
+
declare function MobileOptions({ onClose, titleId }: {
|
|
342
306
|
onClose: () => void;
|
|
307
|
+
titleId: string;
|
|
343
308
|
}): React.JSX.Element;
|
|
344
309
|
//#endregion
|
|
345
310
|
//#region src/__private__/index.d.ts
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { $ as dialogContent, Mt as RainbowKitAuthenticationProvider, Nt as createAuthenticationAdapter, _ as MobileOptions, d as useAccountModal, dt as cssObjectFromTheme, et as dialogContentMobile, f as useChainModal, n as lightTheme, p as useConnectModal, r as baseTheme, ut as cssStringFromTheme, vt as useTransactionStore, x as DesktopOptions, yt as useChainId$1 } from "./useFingerprint-DGiyXD_j.js";
|
|
3
|
+
import { i as ConnectButton, n as WalletButton, r as ChainSelectButton, t as RainbowKitProvider } from "./RainbowKitProvider-D6tnZRYJ.js";
|
|
4
|
+
import { a as injectedWallet, i as getWalletConnectConnector, n as safeWallet, o as base, r as metaMaskWallet, t as walletConnectWallet } from "./walletConnectors-okw2Nbqq.js";
|
|
4
5
|
import { useCallback } from "react";
|
|
5
6
|
import { createConfig, http, useConnection } from "wagmi";
|
|
6
7
|
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __exportAll = (all, no_symbols) => {
|
|
5
|
+
let target = {};
|
|
6
|
+
for (var name in all) {
|
|
7
|
+
__defProp(target, name, {
|
|
8
|
+
get: all[name],
|
|
9
|
+
enumerable: true
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
if (!no_symbols) {
|
|
13
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
14
|
+
}
|
|
15
|
+
return target;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
2
19
|
//#region src/wallets/walletConnectors/injectedWallet/injectedWallet.svg
|
|
20
|
+
var injectedWallet_exports = /* @__PURE__ */ __exportAll({ default: () => injectedWallet_default });
|
|
3
21
|
var injectedWallet_default = "data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"28\" height=\"28\" fill=\"none\"><path fill=\"%23fff\" d=\"M0 0h28v28H0z\"/><rect width=\"20\" height=\"16\" x=\"4\" y=\"6\" fill=\"url(%23a)\" rx=\"3.5\"/><path fill=\"%230E76FD\" d=\"M16 14a3 3 0 0 1 3-3h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C25 11.76 25 12.04 25 12.6v2.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C24.24 17 23.96 17 23.4 17H19a3 3 0 0 1-3-3Z\"/><circle cx=\"19\" cy=\"14\" r=\"1.25\" fill=\"%23A3D7FF\"/><defs><linearGradient id=\"a\" x1=\"14\" x2=\"14\" y1=\"6\" y2=\"22\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"%23174299\"/><stop offset=\"1\" stop-color=\"%23001E59\"/></linearGradient></defs></svg>";
|
|
4
22
|
|
|
5
23
|
//#endregion
|
|
6
|
-
export { injectedWallet_default as
|
|
24
|
+
export { injectedWallet_exports as n, injectedWallet_default as t };
|