@xdcs-protocol/ui-kit 1.1.2 → 1.1.3
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.cjs.js +25 -25
- package/dist/index.es.js +19 -17
- package/dist/types/index.d.ts +4 -0
- package/package.json +1 -2
package/dist/index.es.js
CHANGED
|
@@ -6043,17 +6043,17 @@ const So = Xg, HC = (A) => {
|
|
|
6043
6043
|
}
|
|
6044
6044
|
);
|
|
6045
6045
|
}, po = () => {
|
|
6046
|
-
var
|
|
6047
|
-
const A = kA(), B = VB(A.breakpoints.down("md")), { account: s, onConnect: g, onDisconnect: Q, logoUrl: C, isSupported: e, wallet: w } = cB((
|
|
6048
|
-
account:
|
|
6049
|
-
onConnect:
|
|
6050
|
-
onDisconnect:
|
|
6051
|
-
logoUrl:
|
|
6052
|
-
isSupported:
|
|
6053
|
-
wallet:
|
|
6054
|
-
})), t = !!s, o = (
|
|
6046
|
+
var E, r;
|
|
6047
|
+
const A = kA(), B = VB(A.breakpoints.down("md")), { account: s, onConnect: g, onDisconnect: Q, logoUrl: C, isSupported: e, wallet: w } = cB((D) => ({
|
|
6048
|
+
account: D.account,
|
|
6049
|
+
onConnect: D.onConnect,
|
|
6050
|
+
onDisconnect: D.onDisconnect,
|
|
6051
|
+
logoUrl: D.logoUrl,
|
|
6052
|
+
isSupported: D.isSupported,
|
|
6053
|
+
wallet: D.wallet
|
|
6054
|
+
})), t = !!s, o = (r = (E = w == null ? void 0 : w.chains) == null ? void 0 : E[0]) == null ? void 0 : r.id, n = o ? typeof o == "string" ? parseInt(o, 16) : o : 51, c = Rs[n] ?? Rs[51], F = !t, i = t && !e, I = t;
|
|
6055
6055
|
return /* @__PURE__ */ X(Y, { sx: { display: "flex", mr: { xs: 1, md: 1 }, mt: 2, p: 0 }, children: [
|
|
6056
|
-
|
|
6056
|
+
I && e && /* @__PURE__ */ X(
|
|
6057
6057
|
Y,
|
|
6058
6058
|
{
|
|
6059
6059
|
sx: {
|
|
@@ -6072,8 +6072,8 @@ const So = Xg, HC = (A) => {
|
|
|
6072
6072
|
/* @__PURE__ */ G(
|
|
6073
6073
|
"img",
|
|
6074
6074
|
{
|
|
6075
|
-
src: A.palette.mode === "dark" ?
|
|
6076
|
-
alt:
|
|
6075
|
+
src: A.palette.mode === "dark" ? c.logoDark ?? "" : c.logoLight ?? "",
|
|
6076
|
+
alt: c.name ?? "Unknown Chain",
|
|
6077
6077
|
width: 30,
|
|
6078
6078
|
height: 30
|
|
6079
6079
|
}
|
|
@@ -6082,13 +6082,13 @@ const So = Xg, HC = (A) => {
|
|
|
6082
6082
|
O,
|
|
6083
6083
|
{
|
|
6084
6084
|
sx: { ...W.boldSx, fontSize: "1rem", mt: 2, mb: 2 },
|
|
6085
|
-
children:
|
|
6085
|
+
children: c.name ?? "Unknown Chain"
|
|
6086
6086
|
}
|
|
6087
6087
|
)
|
|
6088
6088
|
]
|
|
6089
6089
|
}
|
|
6090
6090
|
),
|
|
6091
|
-
|
|
6091
|
+
i && /* @__PURE__ */ G(
|
|
6092
6092
|
As,
|
|
6093
6093
|
{
|
|
6094
6094
|
sx: {
|
|
@@ -6116,7 +6116,7 @@ const So = Xg, HC = (A) => {
|
|
|
6116
6116
|
)
|
|
6117
6117
|
}
|
|
6118
6118
|
),
|
|
6119
|
-
|
|
6119
|
+
F && /* @__PURE__ */ G(Y, { sx: { mt: 1.5 }, children: /* @__PURE__ */ G(
|
|
6120
6120
|
As,
|
|
6121
6121
|
{
|
|
6122
6122
|
sx: {
|
|
@@ -6131,7 +6131,7 @@ const So = Xg, HC = (A) => {
|
|
|
6131
6131
|
children: "Connect Wallet"
|
|
6132
6132
|
}
|
|
6133
6133
|
) }),
|
|
6134
|
-
|
|
6134
|
+
I && /* @__PURE__ */ X(
|
|
6135
6135
|
Y,
|
|
6136
6136
|
{
|
|
6137
6137
|
sx: {
|
|
@@ -6186,7 +6186,7 @@ const So = Xg, HC = (A) => {
|
|
|
6186
6186
|
address: s,
|
|
6187
6187
|
showCopyButton: !0,
|
|
6188
6188
|
showInBlockExplorer: !0,
|
|
6189
|
-
chainId:
|
|
6189
|
+
chainId: n
|
|
6190
6190
|
}
|
|
6191
6191
|
),
|
|
6192
6192
|
/* @__PURE__ */ G(
|
|
@@ -9369,8 +9369,10 @@ export {
|
|
|
9369
9369
|
gF as CardFooter,
|
|
9370
9370
|
CF as CardHeader,
|
|
9371
9371
|
yF as DefiCard,
|
|
9372
|
+
Zo as Header,
|
|
9372
9373
|
YC as LeftPanel,
|
|
9373
9374
|
dF as NewTanstacktable,
|
|
9375
|
+
je as ToggleTheme,
|
|
9374
9376
|
DF as ValidProtocolLayout,
|
|
9375
9377
|
We as WalletStoreContext,
|
|
9376
9378
|
rF as getTheme,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import LeftPanel from "./components/LeftPanel";
|
|
2
2
|
import MainLayout from "./components/MainLayout";
|
|
3
3
|
import NewTanstacktable from "./components/NewTanstacktable";
|
|
4
|
+
import ThemeToggle from "./components/ToggleTheme";
|
|
5
|
+
import Header from "./components/Header";
|
|
4
6
|
export { LeftPanel };
|
|
5
7
|
export { getTheme } from "./theme";
|
|
6
8
|
export { MainLayout as ValidProtocolLayout };
|
|
@@ -14,3 +16,5 @@ export { CardHeader } from "./components/base/CardHeader";
|
|
|
14
16
|
export { DefiCard } from "./components/DefiCard";
|
|
15
17
|
export type { AppType } from "./types/index";
|
|
16
18
|
export { AppTypeEnum } from "./types/index";
|
|
19
|
+
export { ThemeToggle as ToggleTheme };
|
|
20
|
+
export { Header };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xdcs-protocol/ui-kit",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Common React components library.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
"@emotion/styled": "^11.14.0",
|
|
37
37
|
"@mui/icons-material": "^5.15.20",
|
|
38
38
|
"@mui/material": "^5.15.20",
|
|
39
|
-
"@web3-onboard/walletconnect": "^2.6.2",
|
|
40
39
|
"react": "^18.3.1",
|
|
41
40
|
"react-dom": "^18.3.1",
|
|
42
41
|
"react-hot-toast": "^2.6.0",
|