@matchain/matchid-sdk-react 0.1.56-alpha.15 → 0.1.56-alpha.17
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/api.d.mts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/api.js +152 -87
- package/dist/api.js.map +1 -1
- package/dist/api.mjs +4 -3
- package/dist/chains.mjs +2 -1
- package/dist/chunk-3CR66BEX.mjs +19 -0
- package/dist/chunk-3CR66BEX.mjs.map +1 -0
- package/dist/{chunk-FQ6PYZPD.mjs → chunk-7SUDHG7S.mjs} +1 -1
- package/dist/chunk-7SUDHG7S.mjs.map +1 -0
- package/dist/{chunk-HYQ3T6WW.mjs → chunk-JX73EY6V.mjs} +2 -14
- package/dist/chunk-JX73EY6V.mjs.map +1 -0
- package/dist/{chunk-A47WTLYD.mjs → chunk-ZLTIMO57.mjs} +375 -353
- package/dist/chunk-ZLTIMO57.mjs.map +1 -0
- package/dist/{chunk-FZHJNSAP.mjs → chunk-ZY7EVYXA.mjs} +2 -2
- package/dist/components.d.mts +3 -3
- package/dist/components.d.ts +3 -3
- package/dist/components.js +473 -401
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +3 -2
- package/dist/hooks.d.mts +2 -2
- package/dist/hooks.d.ts +2 -2
- package/dist/hooks.js +172 -109
- package/dist/hooks.js.map +1 -1
- package/dist/hooks.mjs +3 -2
- package/dist/icon.d.mts +2 -2
- package/dist/icon.d.ts +2 -2
- package/dist/icon.js.map +1 -1
- package/dist/icon.mjs +1 -1
- package/dist/{index-DCyE39bg.d.mts → index-84CqVi2I.d.mts} +1 -1
- package/dist/{index-BINNnZNA.d.ts → index-B70k4Jpk.d.ts} +1 -2
- package/dist/{index-BIVGhRja.d.mts → index-BJJ0Gb6v.d.mts} +1 -2
- package/dist/{index-BXhXRggh.d.ts → index-BNqdFiOo.d.ts} +1 -1
- package/dist/{index-DGsB7f2H.d.ts → index-BctnHnJp.d.ts} +1 -1
- package/dist/{index-DuCefmJ0.d.mts → index-BqI0PEIi.d.mts} +1 -1
- package/dist/{index-DZpXCByF.d.ts → index-C2hr7zlN.d.ts} +5 -3
- package/dist/{index-CqHlL6ue.d.mts → index-CTHpnEoB.d.mts} +5 -3
- package/dist/{index-De8efmdb.d.mts → index-Car1jFyN.d.mts} +1 -1
- package/dist/{index-CpJtux-G.d.ts → index-CcVHENNv.d.ts} +1 -1
- package/dist/{index-DQYg6bEA.d.ts → index-Cqdz_5bE.d.ts} +2 -2
- package/dist/{index-m2bn_W3Y.d.ts → index-CvzpMw3N.d.ts} +1 -1
- package/dist/{index-CzCkxwOm.d.mts → index-DkijpM5Q.d.mts} +1 -1
- package/dist/{index-BLjGmf9p.d.mts → index-DxHhOW24.d.mts} +2 -2
- package/dist/index.css +1 -1
- package/dist/index.d.mts +42 -38
- package/dist/index.d.ts +42 -38
- package/dist/index.js +256 -236
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/{types-C8FLH1yn.d.mts → types-BrVeC0c8.d.mts} +0 -1
- package/dist/{types-C8FLH1yn.d.ts → types-BrVeC0c8.d.ts} +0 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/ui.d.mts +3 -3
- package/dist/ui.d.ts +3 -3
- package/dist/ui.js +144 -75
- package/dist/ui.js.map +1 -1
- package/dist/ui.mjs +3 -2
- package/example/package-lock.json +2965 -0
- package/example/package.json +2 -1
- package/example/src/App.tsx +2 -2
- package/example/src/config/index.ts +2 -2
- package/example/src/pages/Home.tsx +15 -15
- package/example/src/pages/Wallet/index.tsx +2 -4
- package/example/src/store/useLocalStore.ts +19 -19
- package/example/yarn.lock +559 -548
- package/package.json +4 -9
- package/dist/chunk-A47WTLYD.mjs.map +0 -1
- package/dist/chunk-FQ6PYZPD.mjs.map +0 -1
- package/dist/chunk-HYQ3T6WW.mjs.map +0 -1
- /package/dist/{chunk-FZHJNSAP.mjs.map → chunk-ZY7EVYXA.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chains_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3CR66BEX.mjs";
|
|
4
4
|
import {
|
|
5
5
|
types_exports
|
|
6
6
|
} from "./chunk-HBOS3RBL.mjs";
|
|
7
7
|
import {
|
|
8
8
|
api_exports
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZY7EVYXA.mjs";
|
|
10
10
|
import {
|
|
11
11
|
MatchProvider,
|
|
12
12
|
ModalProvider,
|
|
@@ -16,12 +16,13 @@ import {
|
|
|
16
16
|
ui_exports,
|
|
17
17
|
useMatch,
|
|
18
18
|
wagmiConfig
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZLTIMO57.mjs";
|
|
20
|
+
import "./chunk-JX73EY6V.mjs";
|
|
20
21
|
import "./chunk-UA6XHZHX.mjs";
|
|
21
22
|
import "./chunk-IZOOVZAD.mjs";
|
|
22
23
|
import {
|
|
23
24
|
icon_exports
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-7SUDHG7S.mjs";
|
|
25
26
|
import {
|
|
26
27
|
lottie_exports
|
|
27
28
|
} from "./chunk-XM6CYEXN.mjs";
|
package/dist/types.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as Address, q as AnyObject, Q as AppConfigType, S as AuthParams, G as BindInfoType, F as BindItemType, T as BindWalletParam, B as ButtonProps, C as CEXType, o as ChainType, V as DeepPartial, D as DrawerProps, E as EmailModalProps, X as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, Y as IEnvName, Z as ILoginWalletReq, I as IMatchEvents, l as ISocialLoginMethod, v as IconProps, i as InputProps, L as LocaleType, b as LoginBoxProps, n as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, _ as MessageType, z as MetaPageType, j as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, m as OverviewInfo, J as PohItemType, w as PohZkpassParams, P as PopoverPositionType, k as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, $ as RecoveryType, a0 as ThemeType, U as UIProps, t as UserAssetToken, p as UserChainType, s as UserImportTokenType, a1 as UserPopoverProps, x as UserTransactionNextPageParams, a2 as UserTransactionRecordType, r as UserTransactionType, g as WalletAssetMergeType, y as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletNFTType, h as WalletPanelProps, a3 as WalletReceiveMessageType, a4 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from './types-
|
|
1
|
+
export { A as Address, q as AnyObject, Q as AppConfigType, S as AuthParams, G as BindInfoType, F as BindItemType, T as BindWalletParam, B as ButtonProps, C as CEXType, o as ChainType, V as DeepPartial, D as DrawerProps, E as EmailModalProps, X as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, Y as IEnvName, Z as ILoginWalletReq, I as IMatchEvents, l as ISocialLoginMethod, v as IconProps, i as InputProps, L as LocaleType, b as LoginBoxProps, n as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, _ as MessageType, z as MetaPageType, j as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, m as OverviewInfo, J as PohItemType, w as PohZkpassParams, P as PopoverPositionType, k as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, $ as RecoveryType, a0 as ThemeType, U as UIProps, t as UserAssetToken, p as UserChainType, s as UserImportTokenType, a1 as UserPopoverProps, x as UserTransactionNextPageParams, a2 as UserTransactionRecordType, r as UserTransactionType, g as WalletAssetMergeType, y as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletNFTType, h as WalletPanelProps, a3 as WalletReceiveMessageType, a4 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from './types-BrVeC0c8.mjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@tanstack/react-query/src/types';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as Address, q as AnyObject, Q as AppConfigType, S as AuthParams, G as BindInfoType, F as BindItemType, T as BindWalletParam, B as ButtonProps, C as CEXType, o as ChainType, V as DeepPartial, D as DrawerProps, E as EmailModalProps, X as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, Y as IEnvName, Z as ILoginWalletReq, I as IMatchEvents, l as ISocialLoginMethod, v as IconProps, i as InputProps, L as LocaleType, b as LoginBoxProps, n as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, _ as MessageType, z as MetaPageType, j as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, m as OverviewInfo, J as PohItemType, w as PohZkpassParams, P as PopoverPositionType, k as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, $ as RecoveryType, a0 as ThemeType, U as UIProps, t as UserAssetToken, p as UserChainType, s as UserImportTokenType, a1 as UserPopoverProps, x as UserTransactionNextPageParams, a2 as UserTransactionRecordType, r as UserTransactionType, g as WalletAssetMergeType, y as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletNFTType, h as WalletPanelProps, a3 as WalletReceiveMessageType, a4 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from './types-
|
|
1
|
+
export { A as Address, q as AnyObject, Q as AppConfigType, S as AuthParams, G as BindInfoType, F as BindItemType, T as BindWalletParam, B as ButtonProps, C as CEXType, o as ChainType, V as DeepPartial, D as DrawerProps, E as EmailModalProps, X as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, Y as IEnvName, Z as ILoginWalletReq, I as IMatchEvents, l as ISocialLoginMethod, v as IconProps, i as InputProps, L as LocaleType, b as LoginBoxProps, n as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, _ as MessageType, z as MetaPageType, j as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, m as OverviewInfo, J as PohItemType, w as PohZkpassParams, P as PopoverPositionType, k as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, $ as RecoveryType, a0 as ThemeType, U as UIProps, t as UserAssetToken, p as UserChainType, s as UserImportTokenType, a1 as UserPopoverProps, x as UserTransactionNextPageParams, a2 as UserTransactionRecordType, r as UserTransactionType, g as WalletAssetMergeType, y as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletNFTType, h as WalletPanelProps, a3 as WalletReceiveMessageType, a4 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from './types-BrVeC0c8.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@tanstack/react-query/src/types';
|
package/dist/ui.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { B as Button, C as ConfirmModal, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-
|
|
2
|
-
export { A as AlphaAvatar, C as Checkbox, D as Drawer, e as HashPanel, L as Lottie, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from './index-
|
|
1
|
+
export { B as Button, C as ConfirmModal, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-BqI0PEIi.mjs';
|
|
2
|
+
export { A as AlphaAvatar, C as Checkbox, D as Drawer, e as HashPanel, L as Lottie, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from './index-DxHhOW24.mjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
|
-
import './types-
|
|
5
|
+
import './types-BrVeC0c8.mjs';
|
|
6
6
|
import '@tanstack/react-query/src/types';
|
|
7
7
|
import 'viem';
|
package/dist/ui.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { B as Button, C as ConfirmModal, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-
|
|
2
|
-
export { A as AlphaAvatar, C as Checkbox, D as Drawer, e as HashPanel, L as Lottie, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from './index-
|
|
1
|
+
export { B as Button, C as ConfirmModal, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-CvzpMw3N.js';
|
|
2
|
+
export { A as AlphaAvatar, C as Checkbox, D as Drawer, e as HashPanel, L as Lottie, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from './index-Cqdz_5bE.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
|
-
import './types-
|
|
5
|
+
import './types-BrVeC0c8.js';
|
|
6
6
|
import '@tanstack/react-query/src/types';
|
|
7
7
|
import 'viem';
|
package/dist/ui.js
CHANGED
|
@@ -1066,7 +1066,7 @@ var useWalletModalStore = (0, import_zustand5.create)((set) => ({
|
|
|
1066
1066
|
}));
|
|
1067
1067
|
var useEmailModalStore = (0, import_zustand5.create)((set) => ({
|
|
1068
1068
|
isOpen: false,
|
|
1069
|
-
type: "
|
|
1069
|
+
type: "",
|
|
1070
1070
|
open: (type) => set({ isOpen: true, type }),
|
|
1071
1071
|
close: () => set({ isOpen: false })
|
|
1072
1072
|
}));
|
|
@@ -1078,11 +1078,16 @@ var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
|
1078
1078
|
|
|
1079
1079
|
// src/context/BusinessProvider.tsx
|
|
1080
1080
|
var import_react_query8 = require("@tanstack/react-query");
|
|
1081
|
+
|
|
1082
|
+
// src/components/BindEmailModal/index.tsx
|
|
1081
1083
|
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
1082
1084
|
|
|
1083
|
-
// src/context/
|
|
1085
|
+
// src/context/BusinessProvider.tsx
|
|
1084
1086
|
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
1085
1087
|
|
|
1088
|
+
// src/context/index.tsx
|
|
1089
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
1090
|
+
|
|
1086
1091
|
// src/hooks/useWalletInit.ts
|
|
1087
1092
|
var import_react16 = require("react");
|
|
1088
1093
|
var AppClientId2 = getAppClientId();
|
|
@@ -1096,8 +1101,72 @@ var import_react_intl6 = require("react-intl");
|
|
|
1096
1101
|
var import_rainbowkit = require("@rainbow-me/rainbowkit");
|
|
1097
1102
|
var import_wallets = require("@rainbow-me/rainbowkit/wallets");
|
|
1098
1103
|
var import_chains = require("wagmi/chains");
|
|
1104
|
+
|
|
1105
|
+
// src/config/chains/MatchMain.ts
|
|
1106
|
+
var import_viem11 = require("viem");
|
|
1107
|
+
var matchMain = /* @__PURE__ */ (0, import_viem11.defineChain)({
|
|
1108
|
+
//定义match链
|
|
1109
|
+
id: 698,
|
|
1110
|
+
name: "Matchain",
|
|
1111
|
+
nativeCurrency: { name: "Match Coin", symbol: "BNB", decimals: 18 },
|
|
1112
|
+
rpcUrls: {
|
|
1113
|
+
default: {
|
|
1114
|
+
http: ["https://rpc.matchain.io"]
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
blockExplorers: {
|
|
1118
|
+
default: {
|
|
1119
|
+
name: "Matchscan",
|
|
1120
|
+
url: "https://matchscan.io/",
|
|
1121
|
+
apiUrl: "https://matchscan.io/api"
|
|
1122
|
+
}
|
|
1123
|
+
},
|
|
1124
|
+
iconUrl: "https://matchscan.io/static/identicon_logos/blockies.png",
|
|
1125
|
+
contracts: {
|
|
1126
|
+
multicall3: {
|
|
1127
|
+
address: "0xca11bde05977b3631167028862be2a173976ca11"
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
// testnet: true,
|
|
1131
|
+
});
|
|
1132
|
+
|
|
1133
|
+
// src/config/chains/MatchTest.ts
|
|
1134
|
+
var import_viem12 = require("viem");
|
|
1135
|
+
var matchTest = /* @__PURE__ */ (0, import_viem12.defineChain)({
|
|
1136
|
+
//定义matchTest链
|
|
1137
|
+
id: 699,
|
|
1138
|
+
name: "MatchTest",
|
|
1139
|
+
nativeCurrency: { name: "Match Coin", symbol: "BNB", decimals: 18 },
|
|
1140
|
+
rpcUrls: {
|
|
1141
|
+
default: {
|
|
1142
|
+
http: ["https://testnet-rpc.matchain.io"]
|
|
1143
|
+
}
|
|
1144
|
+
},
|
|
1145
|
+
blockExplorers: {
|
|
1146
|
+
default: {
|
|
1147
|
+
name: "Matchscan",
|
|
1148
|
+
url: "https://testnet.matchscan.io/",
|
|
1149
|
+
apiUrl: "https://testnet.matchscan.io/api"
|
|
1150
|
+
}
|
|
1151
|
+
},
|
|
1152
|
+
iconUrl: "https://testnet.matchscan.io/static/identicon_logos/blockies.png",
|
|
1153
|
+
contracts: {
|
|
1154
|
+
multicall3: {
|
|
1155
|
+
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
1156
|
+
blockCreated: 751532
|
|
1157
|
+
},
|
|
1158
|
+
ensRegistry: { address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" },
|
|
1159
|
+
ensUniversalResolver: {
|
|
1160
|
+
address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",
|
|
1161
|
+
blockCreated: 5317080
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
// testnet: true,
|
|
1165
|
+
});
|
|
1166
|
+
|
|
1167
|
+
// src/MatchContext.tsx
|
|
1099
1168
|
var import_wagmi = require("wagmi");
|
|
1100
|
-
var
|
|
1169
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
1101
1170
|
var queryClient = new import_react_query9.QueryClient();
|
|
1102
1171
|
var wagmiConfig = (0, import_rainbowkit.getDefaultConfig)({
|
|
1103
1172
|
appName: "MatchID",
|
|
@@ -1114,22 +1183,22 @@ var wagmiConfig = (0, import_rainbowkit.getDefaultConfig)({
|
|
|
1114
1183
|
]
|
|
1115
1184
|
}
|
|
1116
1185
|
],
|
|
1117
|
-
chains: [import_chains.mainnet, import_chains.polygon, import_chains.optimism, import_chains.arbitrum, import_chains.base,
|
|
1186
|
+
chains: [import_chains.mainnet, import_chains.polygon, import_chains.optimism, import_chains.arbitrum, import_chains.base, matchMain, matchTest, import_chains.bsc]
|
|
1118
1187
|
});
|
|
1119
1188
|
var MatchContext = (0, import_react18.createContext)(void 0);
|
|
1120
1189
|
|
|
1121
1190
|
// src/components/EmailModal/StepVerify.tsx
|
|
1122
1191
|
var import_react20 = require("react");
|
|
1123
1192
|
var import_react_intl7 = require("react-intl");
|
|
1124
|
-
var
|
|
1193
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
1125
1194
|
|
|
1126
1195
|
// src/components/EmailModal/index.tsx
|
|
1127
1196
|
var import_react_intl8 = require("react-intl");
|
|
1128
|
-
var
|
|
1197
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
1129
1198
|
|
|
1130
1199
|
// src/ui/Popover/index.tsx
|
|
1131
1200
|
var import_react22 = require("react");
|
|
1132
|
-
var
|
|
1201
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
1133
1202
|
function Popover({
|
|
1134
1203
|
children,
|
|
1135
1204
|
content,
|
|
@@ -1139,7 +1208,7 @@ function Popover({
|
|
|
1139
1208
|
gap = "20px"
|
|
1140
1209
|
}) {
|
|
1141
1210
|
const [active, setActive] = (0, import_react22.useState)(false);
|
|
1142
|
-
return children && /* @__PURE__ */ (0,
|
|
1211
|
+
return children && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
|
|
1143
1212
|
"div",
|
|
1144
1213
|
{
|
|
1145
1214
|
onClick: () => {
|
|
@@ -1150,9 +1219,9 @@ function Popover({
|
|
|
1150
1219
|
className: `matchid-popover-box matchid-popover-${position} matchid-popover-${type} ${className} ${type == "click" && active ? "matchid-popover-click-active" : ""}`,
|
|
1151
1220
|
children: [
|
|
1152
1221
|
children,
|
|
1153
|
-
/* @__PURE__ */ (0,
|
|
1222
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { style: {
|
|
1154
1223
|
paddingTop: gap
|
|
1155
|
-
}, className: `matchid-popover-area`, children: /* @__PURE__ */ (0,
|
|
1224
|
+
}, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: `matchid-popover-content`, children: content }) })
|
|
1156
1225
|
]
|
|
1157
1226
|
}
|
|
1158
1227
|
);
|
|
@@ -1166,36 +1235,36 @@ var import_react_intl9 = require("react-intl");
|
|
|
1166
1235
|
var import_react_query10 = require("@tanstack/react-query");
|
|
1167
1236
|
|
|
1168
1237
|
// src/components/LoginBox/index.tsx
|
|
1169
|
-
var
|
|
1238
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
1170
1239
|
|
|
1171
1240
|
// src/components/LoginButton/index.tsx
|
|
1172
1241
|
var import_react25 = require("react");
|
|
1173
1242
|
|
|
1174
1243
|
// src/components/LoginPanel/index.tsx
|
|
1175
1244
|
var import_react_intl10 = require("react-intl");
|
|
1176
|
-
var
|
|
1245
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
1177
1246
|
|
|
1178
1247
|
// src/components/LoginModal/index.tsx
|
|
1179
|
-
var
|
|
1248
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
1180
1249
|
|
|
1181
1250
|
// src/components/UserPopover/index.tsx
|
|
1182
1251
|
var import_react24 = require("react");
|
|
1183
1252
|
|
|
1184
1253
|
// src/assets/icon/ProfileIcon.tsx
|
|
1185
|
-
var
|
|
1254
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
1186
1255
|
|
|
1187
1256
|
// src/components/UserPopover/index.tsx
|
|
1188
1257
|
var import_react_intl11 = require("react-intl");
|
|
1189
|
-
var
|
|
1258
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
1190
1259
|
|
|
1191
1260
|
// src/components/LoginButton/index.tsx
|
|
1192
1261
|
var import_react_intl12 = require("react-intl");
|
|
1193
|
-
var
|
|
1262
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
1194
1263
|
|
|
1195
1264
|
// src/components/UsernameModal/index.tsx
|
|
1196
1265
|
var import_react26 = require("react");
|
|
1197
1266
|
var import_react_intl13 = require("react-intl");
|
|
1198
|
-
var
|
|
1267
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
1199
1268
|
|
|
1200
1269
|
// src/components/EVMModal/index.tsx
|
|
1201
1270
|
var import_react29 = require("react");
|
|
@@ -1203,7 +1272,7 @@ var import_react_intl14 = require("react-intl");
|
|
|
1203
1272
|
|
|
1204
1273
|
// src/components/WalletModalContent/index.tsx
|
|
1205
1274
|
var import_react27 = require("react");
|
|
1206
|
-
var
|
|
1275
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
1207
1276
|
|
|
1208
1277
|
// src/components/EVMModal/index.tsx
|
|
1209
1278
|
var import_rainbowkit2 = require("@rainbow-me/rainbowkit");
|
|
@@ -1220,7 +1289,7 @@ var import_ethers = require("ethers");
|
|
|
1220
1289
|
// src/components/EVMModal/index.tsx
|
|
1221
1290
|
var import_siwe = require("siwe");
|
|
1222
1291
|
var import_styles = require("@rainbow-me/rainbowkit/styles.css");
|
|
1223
|
-
var
|
|
1292
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
1224
1293
|
|
|
1225
1294
|
// src/components/TRONModal/index.tsx
|
|
1226
1295
|
var import_react31 = __toESM(require("react"));
|
|
@@ -1230,13 +1299,13 @@ var import_react_intl15 = require("react-intl");
|
|
|
1230
1299
|
var import_react30 = require("react");
|
|
1231
1300
|
|
|
1232
1301
|
// src/components/TRONModal/index.tsx
|
|
1233
|
-
var
|
|
1302
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
1234
1303
|
|
|
1235
1304
|
// src/components/TONModal/index.tsx
|
|
1236
1305
|
var import_react32 = __toESM(require("react"));
|
|
1237
1306
|
var import_react_intl16 = require("react-intl");
|
|
1238
1307
|
var import_ui_react = require("@tonconnect/ui-react");
|
|
1239
|
-
var
|
|
1308
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
1240
1309
|
|
|
1241
1310
|
// src/components/BTCModal/index.tsx
|
|
1242
1311
|
var import_react34 = __toESM(require("react"));
|
|
@@ -1249,46 +1318,46 @@ var import_sats_connect = require("sats-connect");
|
|
|
1249
1318
|
var import_react33 = require("react");
|
|
1250
1319
|
|
|
1251
1320
|
// src/components/BTCModal/index.tsx
|
|
1252
|
-
var
|
|
1321
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
1253
1322
|
|
|
1254
1323
|
// src/components/WalletModal/index.tsx
|
|
1255
1324
|
var import_react35 = require("react");
|
|
1256
1325
|
var import_react_intl18 = require("react-intl");
|
|
1257
|
-
var
|
|
1326
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
1258
1327
|
|
|
1259
1328
|
// src/components/AlphaAvatar/index.tsx
|
|
1260
1329
|
var import_react36 = require("react");
|
|
1261
|
-
var
|
|
1330
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
1262
1331
|
|
|
1263
1332
|
// src/components/WalletAsset/index.tsx
|
|
1264
|
-
var
|
|
1333
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
1265
1334
|
|
|
1266
1335
|
// src/components/TokenSend/index.tsx
|
|
1267
1336
|
var import_react37 = require("react");
|
|
1268
|
-
var
|
|
1337
|
+
var import_viem13 = require("viem");
|
|
1269
1338
|
var import_react_intl19 = require("react-intl");
|
|
1270
|
-
var
|
|
1339
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
1271
1340
|
|
|
1272
1341
|
// src/components/TokenDetail/index.tsx
|
|
1273
1342
|
var import_react_intl20 = require("react-intl");
|
|
1274
|
-
var
|
|
1343
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
1275
1344
|
|
|
1276
1345
|
// src/components/TokenSendList/index.tsx
|
|
1277
1346
|
var import_react38 = require("react");
|
|
1278
1347
|
var import_react_intl21 = require("react-intl");
|
|
1279
|
-
var
|
|
1348
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
1280
1349
|
|
|
1281
1350
|
// src/components/TransactionList/index.tsx
|
|
1282
1351
|
var import_react_infinite_scroll_component = __toESM(require("react-infinite-scroll-component"));
|
|
1283
1352
|
var import_react39 = require("react");
|
|
1284
|
-
var
|
|
1285
|
-
var
|
|
1353
|
+
var import_viem14 = require("viem");
|
|
1354
|
+
var import_viem15 = require("viem");
|
|
1286
1355
|
var import_react_intl22 = require("react-intl");
|
|
1287
|
-
var
|
|
1356
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
1288
1357
|
|
|
1289
1358
|
// src/ui/Modal/index.tsx
|
|
1290
1359
|
var import_react_intl23 = require("react-intl");
|
|
1291
|
-
var
|
|
1360
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
1292
1361
|
function Modal({
|
|
1293
1362
|
children,
|
|
1294
1363
|
isOpen,
|
|
@@ -1296,10 +1365,10 @@ function Modal({
|
|
|
1296
1365
|
zIndex = 100,
|
|
1297
1366
|
className = ""
|
|
1298
1367
|
}) {
|
|
1299
|
-
return /* @__PURE__ */ (0,
|
|
1368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: `matchid-modal ${className}`, style: {
|
|
1300
1369
|
width
|
|
1301
1370
|
}, children: [
|
|
1302
|
-
/* @__PURE__ */ (0,
|
|
1371
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "matchid-modal-mobile-header" }),
|
|
1303
1372
|
children
|
|
1304
1373
|
] }) });
|
|
1305
1374
|
}
|
|
@@ -1313,13 +1382,13 @@ function ModalWithHeader({
|
|
|
1313
1382
|
...props
|
|
1314
1383
|
}) {
|
|
1315
1384
|
const isDownMd = useDownMd();
|
|
1316
|
-
return /* @__PURE__ */ (0,
|
|
1317
|
-
/* @__PURE__ */ (0,
|
|
1318
|
-
/* @__PURE__ */ (0,
|
|
1319
|
-
onBack && /* @__PURE__ */ (0,
|
|
1320
|
-
/* @__PURE__ */ (0,
|
|
1385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(Modal, { ...props, children: [
|
|
1386
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
|
|
1387
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "matchid-modal-header-content", children: [
|
|
1388
|
+
onBack && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
|
|
1389
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { className: "matchid-modal-header-title", children: title })
|
|
1321
1390
|
] }),
|
|
1322
|
-
onClose && /* @__PURE__ */ (0,
|
|
1391
|
+
onClose && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
|
|
1323
1392
|
] }),
|
|
1324
1393
|
children
|
|
1325
1394
|
] });
|
|
@@ -1354,17 +1423,17 @@ function ConfirmModal({
|
|
|
1354
1423
|
setLoading(false);
|
|
1355
1424
|
}
|
|
1356
1425
|
};
|
|
1357
|
-
return /* @__PURE__ */ (0,
|
|
1358
|
-
/* @__PURE__ */ (0,
|
|
1359
|
-
error && /* @__PURE__ */ (0,
|
|
1360
|
-
/* @__PURE__ */ (0,
|
|
1426
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(ModalWithHeader, { isOpen, onClose, title, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "matchid-confirm-modal", children: [
|
|
1427
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "matchid-w-full", children }),
|
|
1428
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: `matchid-error`, children: error }),
|
|
1429
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Button, { size: "lg", onClick: onSubmit, loading, block: true, highlight: true, children: confirmText ?? intl.formatMessage({
|
|
1361
1430
|
id: "Confirm"
|
|
1362
1431
|
}) })
|
|
1363
1432
|
] }) });
|
|
1364
1433
|
}
|
|
1365
1434
|
|
|
1366
1435
|
// src/ui/ModalDrawer/index.tsx
|
|
1367
|
-
var
|
|
1436
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
1368
1437
|
function ModalDrawer({
|
|
1369
1438
|
title,
|
|
1370
1439
|
drawerTitleVisible = true,
|
|
@@ -1372,13 +1441,13 @@ function ModalDrawer({
|
|
|
1372
1441
|
}) {
|
|
1373
1442
|
const isDownMd = useDownMd();
|
|
1374
1443
|
if (isDownMd) {
|
|
1375
|
-
return /* @__PURE__ */ (0,
|
|
1444
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(ModalWithHeader, { ...props, title });
|
|
1376
1445
|
}
|
|
1377
|
-
return /* @__PURE__ */ (0,
|
|
1446
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
|
|
1378
1447
|
}
|
|
1379
1448
|
|
|
1380
1449
|
// src/ui/HashPanel/index.tsx
|
|
1381
|
-
var
|
|
1450
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
1382
1451
|
function HashPanel({
|
|
1383
1452
|
hash,
|
|
1384
1453
|
chain,
|
|
@@ -1438,14 +1507,14 @@ function HashPanel({
|
|
|
1438
1507
|
}
|
|
1439
1508
|
}, [hashQuery.data]);
|
|
1440
1509
|
const link = chain ? `${chain?.blockExplorers?.default.url}/tx/${hash}` : "";
|
|
1441
|
-
return /* @__PURE__ */ (0,
|
|
1510
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
1442
1511
|
ModalDrawer,
|
|
1443
1512
|
{
|
|
1444
1513
|
isOpen,
|
|
1445
1514
|
showClose: true,
|
|
1446
1515
|
onClose,
|
|
1447
1516
|
zIndex,
|
|
1448
|
-
title: /* @__PURE__ */ (0,
|
|
1517
|
+
title: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
1449
1518
|
"div",
|
|
1450
1519
|
{
|
|
1451
1520
|
className: "matchid-hashpanel-header",
|
|
@@ -1455,32 +1524,32 @@ function HashPanel({
|
|
|
1455
1524
|
children: statusValue.text
|
|
1456
1525
|
}
|
|
1457
1526
|
),
|
|
1458
|
-
children: /* @__PURE__ */ (0,
|
|
1459
|
-
/* @__PURE__ */ (0,
|
|
1460
|
-
/* @__PURE__ */ (0,
|
|
1527
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "matchid-hashpanel-box", children: [
|
|
1528
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "matchid-hashpanel-content", children: [
|
|
1529
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: `matchid-hashpanel-status`, style: {
|
|
1461
1530
|
color: statusValue.color
|
|
1462
1531
|
}, children: statusValue.text }),
|
|
1463
|
-
statusValue.lottie && /* @__PURE__ */ (0,
|
|
1532
|
+
statusValue.lottie && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Lottie_default, { animationData: statusValue.lottie, style: {
|
|
1464
1533
|
width: "96px",
|
|
1465
1534
|
height: "96px"
|
|
1466
1535
|
} }),
|
|
1467
|
-
hash && /* @__PURE__ */ (0,
|
|
1536
|
+
hash && /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
|
|
1468
1537
|
"Hash:",
|
|
1469
|
-
/* @__PURE__ */ (0,
|
|
1538
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("a", { href: link, target: "_blank", children: hash })
|
|
1470
1539
|
] }),
|
|
1471
|
-
error && /* @__PURE__ */ (0,
|
|
1540
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "matchid-hashpanel-text", children: error })
|
|
1472
1541
|
] }),
|
|
1473
|
-
/* @__PURE__ */ (0,
|
|
1542
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
|
|
1474
1543
|
] })
|
|
1475
1544
|
}
|
|
1476
1545
|
);
|
|
1477
1546
|
}
|
|
1478
1547
|
function HashPanel_default(props) {
|
|
1479
|
-
return props.isOpen && /* @__PURE__ */ (0,
|
|
1548
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(HashPanel, { ...props });
|
|
1480
1549
|
}
|
|
1481
1550
|
|
|
1482
1551
|
// src/ui/Switch/index.tsx
|
|
1483
|
-
var
|
|
1552
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
1484
1553
|
function Switch({
|
|
1485
1554
|
size = "default",
|
|
1486
1555
|
checked = false,
|
|
@@ -1495,12 +1564,12 @@ function Switch({
|
|
|
1495
1564
|
onChange && onChange(!checked);
|
|
1496
1565
|
}
|
|
1497
1566
|
};
|
|
1498
|
-
return /* @__PURE__ */ (0,
|
|
1567
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { onClick, className: `matchid-switch matchid-switch-${size} ${checked ? "matchid-switch-checked" : ""} ${disabled ? "matchid-switch-disabled" : ""} ${loading ? "matchid-switch-loading" : ""}`, ...props, children: loading ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(LoadingIcon_default, { className: "matchid-switch-loading-icon", size: size == "default" ? 24 : 18, color: "var(--matchid-swicth-loading-color)" }) : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: "matchid-switch-ball" }) });
|
|
1499
1568
|
}
|
|
1500
1569
|
|
|
1501
1570
|
// src/ui/AlphaAvatar/index.tsx
|
|
1502
1571
|
var import_react42 = require("react");
|
|
1503
|
-
var
|
|
1572
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
1504
1573
|
function AlphaAvatar2({
|
|
1505
1574
|
name,
|
|
1506
1575
|
size = "default",
|
|
@@ -1517,7 +1586,7 @@ function AlphaAvatar2({
|
|
|
1517
1586
|
return "";
|
|
1518
1587
|
}, [name]);
|
|
1519
1588
|
const numberSize = typeof size === "number" ? size : size === "sm" ? 24 : size === "default" ? 40 : 64;
|
|
1520
|
-
return /* @__PURE__ */ (0,
|
|
1589
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
|
|
1521
1590
|
width: numberSize,
|
|
1522
1591
|
height: numberSize,
|
|
1523
1592
|
fontSize: Math.ceil(numberSize / 2),
|
|
@@ -1526,7 +1595,7 @@ function AlphaAvatar2({
|
|
|
1526
1595
|
}
|
|
1527
1596
|
|
|
1528
1597
|
// src/ui/Radio/index.tsx
|
|
1529
|
-
var
|
|
1598
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
1530
1599
|
function Radio({
|
|
1531
1600
|
checked = false,
|
|
1532
1601
|
onChange,
|
|
@@ -1535,20 +1604,20 @@ function Radio({
|
|
|
1535
1604
|
className = "",
|
|
1536
1605
|
style = {}
|
|
1537
1606
|
}) {
|
|
1538
|
-
return /* @__PURE__ */ (0,
|
|
1607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
|
|
1539
1608
|
width: size,
|
|
1540
1609
|
height: size,
|
|
1541
1610
|
...style,
|
|
1542
1611
|
// @ts-ignore
|
|
1543
1612
|
"--matchid-radio-checked": color
|
|
1544
|
-
}, children: checked && /* @__PURE__ */ (0,
|
|
1613
|
+
}, children: checked && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: `matchid-radio-content`, style: {
|
|
1545
1614
|
width: Math.floor(size * 0.7),
|
|
1546
1615
|
height: Math.floor(size * 0.7)
|
|
1547
1616
|
} }) });
|
|
1548
1617
|
}
|
|
1549
1618
|
|
|
1550
1619
|
// src/ui/Skeleton/index.tsx
|
|
1551
|
-
var
|
|
1620
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
1552
1621
|
var Skeleton = ({
|
|
1553
1622
|
style = {},
|
|
1554
1623
|
className = "",
|
|
@@ -1559,7 +1628,7 @@ var Skeleton = ({
|
|
|
1559
1628
|
children
|
|
1560
1629
|
}) => {
|
|
1561
1630
|
if (!loading) {
|
|
1562
|
-
return /* @__PURE__ */ (0,
|
|
1631
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_jsx_runtime103.Fragment, { children });
|
|
1563
1632
|
}
|
|
1564
1633
|
const skeletonStyle = {
|
|
1565
1634
|
width,
|
|
@@ -1567,7 +1636,7 @@ var Skeleton = ({
|
|
|
1567
1636
|
borderRadius: radius,
|
|
1568
1637
|
...style
|
|
1569
1638
|
};
|
|
1570
|
-
return /* @__PURE__ */ (0,
|
|
1639
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
1571
1640
|
"div",
|
|
1572
1641
|
{
|
|
1573
1642
|
className: "matchid-skeleton " + className,
|
|
@@ -1578,10 +1647,10 @@ var Skeleton = ({
|
|
|
1578
1647
|
var Skeleton_default = Skeleton;
|
|
1579
1648
|
|
|
1580
1649
|
// src/ui/Tabs/index.tsx
|
|
1581
|
-
var
|
|
1650
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
1582
1651
|
function Tabs(props) {
|
|
1583
|
-
return /* @__PURE__ */ (0,
|
|
1584
|
-
return /* @__PURE__ */ (0,
|
|
1652
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: `matchid-tabs`, children: props.tabs.map((tab, index) => {
|
|
1653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { onClick: () => props.setActiveTab(index), className: `matchid-tab ${props.activeTab === index ? "matchid-tab-active" : ""}`, children: tab }, index);
|
|
1585
1654
|
}) });
|
|
1586
1655
|
}
|
|
1587
1656
|
|
|
@@ -1599,12 +1668,12 @@ var LazyLottie = (props) => {
|
|
|
1599
1668
|
var Lottie_default = LazyLottie;
|
|
1600
1669
|
|
|
1601
1670
|
// src/ui/Checkbox/index.tsx
|
|
1602
|
-
var
|
|
1671
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
1603
1672
|
function Checkbox({
|
|
1604
1673
|
checked = false,
|
|
1605
1674
|
onChange
|
|
1606
1675
|
}) {
|
|
1607
|
-
return checked ? /* @__PURE__ */ (0,
|
|
1676
|
+
return checked ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(CheckboxCheckedIcon, { onClick: () => onChange?.(false) }) : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(CheckboxIcon, { onClick: () => onChange?.(true) });
|
|
1608
1677
|
}
|
|
1609
1678
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1610
1679
|
0 && (module.exports = {
|