@matchain/matchid-sdk-react 0.1.56-alpha.9 → 0.1.57

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.
Files changed (42) hide show
  1. package/dist/api.js +44 -3
  2. package/dist/api.js.map +1 -1
  3. package/dist/api.mjs +3 -3
  4. package/dist/{chunk-FQ6PYZPD.mjs → chunk-7SUDHG7S.mjs} +1 -1
  5. package/dist/chunk-7SUDHG7S.mjs.map +1 -0
  6. package/dist/{chunk-JCMQBWWW.mjs → chunk-EUG3QRAG.mjs} +2 -2
  7. package/dist/{chunk-LOZCAT7A.mjs → chunk-QMV4FDUH.mjs} +283 -216
  8. package/dist/chunk-QMV4FDUH.mjs.map +1 -0
  9. package/dist/components.d.mts +1 -1
  10. package/dist/components.d.ts +1 -1
  11. package/dist/components.js +306 -261
  12. package/dist/components.js.map +1 -1
  13. package/dist/components.mjs +2 -2
  14. package/dist/hooks.d.mts +1 -1
  15. package/dist/hooks.d.ts +1 -1
  16. package/dist/hooks.js +81 -42
  17. package/dist/hooks.js.map +1 -1
  18. package/dist/hooks.mjs +2 -2
  19. package/dist/icon.js.map +1 -1
  20. package/dist/icon.mjs +1 -1
  21. package/dist/{index-DwmrgZa2.d.ts → index-B70k4Jpk.d.ts} +4 -0
  22. package/dist/{index-D2E53ZMV.d.mts → index-BJJ0Gb6v.d.mts} +4 -0
  23. package/dist/{index-qmC4zt6V.d.ts → index-C2hr7zlN.d.ts} +3 -1
  24. package/dist/{index-DVlulZhE.d.mts → index-CTHpnEoB.d.mts} +3 -1
  25. package/dist/index.d.mts +2 -2
  26. package/dist/index.d.ts +2 -2
  27. package/dist/index.js +87 -20
  28. package/dist/index.js.map +1 -1
  29. package/dist/index.mjs +3 -3
  30. package/dist/ui.js +81 -70
  31. package/dist/ui.js.map +1 -1
  32. package/dist/ui.mjs +2 -2
  33. package/example/package-lock.json +2965 -0
  34. package/example/package.json +2 -1
  35. package/example/src/App.tsx +65 -60
  36. package/example/src/config/index.ts +8 -6
  37. package/example/src/pages/Wallet/index.tsx +2 -4
  38. package/example/yarn.lock +27 -2251
  39. package/package.json +3 -6
  40. package/dist/chunk-FQ6PYZPD.mjs.map +0 -1
  41. package/dist/chunk-LOZCAT7A.mjs.map +0 -1
  42. /package/dist/{chunk-JCMQBWWW.mjs.map → chunk-EUG3QRAG.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-HBOS3RBL.mjs";
7
7
  import {
8
8
  api_exports
9
- } from "./chunk-JCMQBWWW.mjs";
9
+ } from "./chunk-EUG3QRAG.mjs";
10
10
  import {
11
11
  MatchProvider,
12
12
  ModalProvider,
@@ -16,13 +16,13 @@ import {
16
16
  ui_exports,
17
17
  useMatch,
18
18
  wagmiConfig
19
- } from "./chunk-LOZCAT7A.mjs";
19
+ } from "./chunk-QMV4FDUH.mjs";
20
20
  import "./chunk-JX73EY6V.mjs";
21
21
  import "./chunk-UA6XHZHX.mjs";
22
22
  import "./chunk-IZOOVZAD.mjs";
23
23
  import {
24
24
  icon_exports
25
- } from "./chunk-FQ6PYZPD.mjs";
25
+ } from "./chunk-7SUDHG7S.mjs";
26
26
  import {
27
27
  lottie_exports
28
28
  } from "./chunk-XM6CYEXN.mjs";
package/dist/ui.js CHANGED
@@ -1064,6 +1064,12 @@ var useWalletModalStore = (0, import_zustand5.create)((set) => ({
1064
1064
  open: (type, methods = DEFAULT_WALLET_METHODS) => set({ isOpen: true, type, methods }),
1065
1065
  close: () => set({ isOpen: false })
1066
1066
  }));
1067
+ var useEmailModalStore = (0, import_zustand5.create)((set) => ({
1068
+ isOpen: false,
1069
+ type: "",
1070
+ open: (type) => set({ isOpen: true, type }),
1071
+ close: () => set({ isOpen: false })
1072
+ }));
1067
1073
 
1068
1074
  // src/components/CEXBindModal/index.tsx
1069
1075
  var import_react15 = require("react");
@@ -1072,11 +1078,16 @@ var import_jsx_runtime70 = require("react/jsx-runtime");
1072
1078
 
1073
1079
  // src/context/BusinessProvider.tsx
1074
1080
  var import_react_query8 = require("@tanstack/react-query");
1081
+
1082
+ // src/components/BindEmailModal/index.tsx
1075
1083
  var import_jsx_runtime71 = require("react/jsx-runtime");
1076
1084
 
1077
- // src/context/index.tsx
1085
+ // src/context/BusinessProvider.tsx
1078
1086
  var import_jsx_runtime72 = require("react/jsx-runtime");
1079
1087
 
1088
+ // src/context/index.tsx
1089
+ var import_jsx_runtime73 = require("react/jsx-runtime");
1090
+
1080
1091
  // src/hooks/useWalletInit.ts
1081
1092
  var import_react16 = require("react");
1082
1093
  var AppClientId2 = getAppClientId();
@@ -1155,7 +1166,7 @@ var matchTest = /* @__PURE__ */ (0, import_viem12.defineChain)({
1155
1166
 
1156
1167
  // src/MatchContext.tsx
1157
1168
  var import_wagmi = require("wagmi");
1158
- var import_jsx_runtime73 = require("react/jsx-runtime");
1169
+ var import_jsx_runtime74 = require("react/jsx-runtime");
1159
1170
  var queryClient = new import_react_query9.QueryClient();
1160
1171
  var wagmiConfig = (0, import_rainbowkit.getDefaultConfig)({
1161
1172
  appName: "MatchID",
@@ -1179,15 +1190,15 @@ var MatchContext = (0, import_react18.createContext)(void 0);
1179
1190
  // src/components/EmailModal/StepVerify.tsx
1180
1191
  var import_react20 = require("react");
1181
1192
  var import_react_intl7 = require("react-intl");
1182
- var import_jsx_runtime74 = require("react/jsx-runtime");
1193
+ var import_jsx_runtime75 = require("react/jsx-runtime");
1183
1194
 
1184
1195
  // src/components/EmailModal/index.tsx
1185
1196
  var import_react_intl8 = require("react-intl");
1186
- var import_jsx_runtime75 = require("react/jsx-runtime");
1197
+ var import_jsx_runtime76 = require("react/jsx-runtime");
1187
1198
 
1188
1199
  // src/ui/Popover/index.tsx
1189
1200
  var import_react22 = require("react");
1190
- var import_jsx_runtime76 = require("react/jsx-runtime");
1201
+ var import_jsx_runtime77 = require("react/jsx-runtime");
1191
1202
  function Popover({
1192
1203
  children,
1193
1204
  content,
@@ -1197,7 +1208,7 @@ function Popover({
1197
1208
  gap = "20px"
1198
1209
  }) {
1199
1210
  const [active, setActive] = (0, import_react22.useState)(false);
1200
- return children && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
1211
+ return children && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
1201
1212
  "div",
1202
1213
  {
1203
1214
  onClick: () => {
@@ -1208,9 +1219,9 @@ function Popover({
1208
1219
  className: `matchid-popover-box matchid-popover-${position} matchid-popover-${type} ${className} ${type == "click" && active ? "matchid-popover-click-active" : ""}`,
1209
1220
  children: [
1210
1221
  children,
1211
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { style: {
1222
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { style: {
1212
1223
  paddingTop: gap
1213
- }, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: `matchid-popover-content`, children: content }) })
1224
+ }, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: `matchid-popover-content`, children: content }) })
1214
1225
  ]
1215
1226
  }
1216
1227
  );
@@ -1224,36 +1235,36 @@ var import_react_intl9 = require("react-intl");
1224
1235
  var import_react_query10 = require("@tanstack/react-query");
1225
1236
 
1226
1237
  // src/components/LoginBox/index.tsx
1227
- var import_jsx_runtime77 = require("react/jsx-runtime");
1238
+ var import_jsx_runtime78 = require("react/jsx-runtime");
1228
1239
 
1229
1240
  // src/components/LoginButton/index.tsx
1230
1241
  var import_react25 = require("react");
1231
1242
 
1232
1243
  // src/components/LoginPanel/index.tsx
1233
1244
  var import_react_intl10 = require("react-intl");
1234
- var import_jsx_runtime78 = require("react/jsx-runtime");
1245
+ var import_jsx_runtime79 = require("react/jsx-runtime");
1235
1246
 
1236
1247
  // src/components/LoginModal/index.tsx
1237
- var import_jsx_runtime79 = require("react/jsx-runtime");
1248
+ var import_jsx_runtime80 = require("react/jsx-runtime");
1238
1249
 
1239
1250
  // src/components/UserPopover/index.tsx
1240
1251
  var import_react24 = require("react");
1241
1252
 
1242
1253
  // src/assets/icon/ProfileIcon.tsx
1243
- var import_jsx_runtime80 = require("react/jsx-runtime");
1254
+ var import_jsx_runtime81 = require("react/jsx-runtime");
1244
1255
 
1245
1256
  // src/components/UserPopover/index.tsx
1246
1257
  var import_react_intl11 = require("react-intl");
1247
- var import_jsx_runtime81 = require("react/jsx-runtime");
1258
+ var import_jsx_runtime82 = require("react/jsx-runtime");
1248
1259
 
1249
1260
  // src/components/LoginButton/index.tsx
1250
1261
  var import_react_intl12 = require("react-intl");
1251
- var import_jsx_runtime82 = require("react/jsx-runtime");
1262
+ var import_jsx_runtime83 = require("react/jsx-runtime");
1252
1263
 
1253
1264
  // src/components/UsernameModal/index.tsx
1254
1265
  var import_react26 = require("react");
1255
1266
  var import_react_intl13 = require("react-intl");
1256
- var import_jsx_runtime83 = require("react/jsx-runtime");
1267
+ var import_jsx_runtime84 = require("react/jsx-runtime");
1257
1268
 
1258
1269
  // src/components/EVMModal/index.tsx
1259
1270
  var import_react29 = require("react");
@@ -1261,7 +1272,7 @@ var import_react_intl14 = require("react-intl");
1261
1272
 
1262
1273
  // src/components/WalletModalContent/index.tsx
1263
1274
  var import_react27 = require("react");
1264
- var import_jsx_runtime84 = require("react/jsx-runtime");
1275
+ var import_jsx_runtime85 = require("react/jsx-runtime");
1265
1276
 
1266
1277
  // src/components/EVMModal/index.tsx
1267
1278
  var import_rainbowkit2 = require("@rainbow-me/rainbowkit");
@@ -1278,7 +1289,7 @@ var import_ethers = require("ethers");
1278
1289
  // src/components/EVMModal/index.tsx
1279
1290
  var import_siwe = require("siwe");
1280
1291
  var import_styles = require("@rainbow-me/rainbowkit/styles.css");
1281
- var import_jsx_runtime85 = require("react/jsx-runtime");
1292
+ var import_jsx_runtime86 = require("react/jsx-runtime");
1282
1293
 
1283
1294
  // src/components/TRONModal/index.tsx
1284
1295
  var import_react31 = __toESM(require("react"));
@@ -1288,13 +1299,13 @@ var import_react_intl15 = require("react-intl");
1288
1299
  var import_react30 = require("react");
1289
1300
 
1290
1301
  // src/components/TRONModal/index.tsx
1291
- var import_jsx_runtime86 = require("react/jsx-runtime");
1302
+ var import_jsx_runtime87 = require("react/jsx-runtime");
1292
1303
 
1293
1304
  // src/components/TONModal/index.tsx
1294
1305
  var import_react32 = __toESM(require("react"));
1295
1306
  var import_react_intl16 = require("react-intl");
1296
1307
  var import_ui_react = require("@tonconnect/ui-react");
1297
- var import_jsx_runtime87 = require("react/jsx-runtime");
1308
+ var import_jsx_runtime88 = require("react/jsx-runtime");
1298
1309
 
1299
1310
  // src/components/BTCModal/index.tsx
1300
1311
  var import_react34 = __toESM(require("react"));
@@ -1307,34 +1318,34 @@ var import_sats_connect = require("sats-connect");
1307
1318
  var import_react33 = require("react");
1308
1319
 
1309
1320
  // src/components/BTCModal/index.tsx
1310
- var import_jsx_runtime88 = require("react/jsx-runtime");
1321
+ var import_jsx_runtime89 = require("react/jsx-runtime");
1311
1322
 
1312
1323
  // src/components/WalletModal/index.tsx
1313
1324
  var import_react35 = require("react");
1314
1325
  var import_react_intl18 = require("react-intl");
1315
- var import_jsx_runtime89 = require("react/jsx-runtime");
1326
+ var import_jsx_runtime90 = require("react/jsx-runtime");
1316
1327
 
1317
1328
  // src/components/AlphaAvatar/index.tsx
1318
1329
  var import_react36 = require("react");
1319
- var import_jsx_runtime90 = require("react/jsx-runtime");
1330
+ var import_jsx_runtime91 = require("react/jsx-runtime");
1320
1331
 
1321
1332
  // src/components/WalletAsset/index.tsx
1322
- var import_jsx_runtime91 = require("react/jsx-runtime");
1333
+ var import_jsx_runtime92 = require("react/jsx-runtime");
1323
1334
 
1324
1335
  // src/components/TokenSend/index.tsx
1325
1336
  var import_react37 = require("react");
1326
1337
  var import_viem13 = require("viem");
1327
1338
  var import_react_intl19 = require("react-intl");
1328
- var import_jsx_runtime92 = require("react/jsx-runtime");
1339
+ var import_jsx_runtime93 = require("react/jsx-runtime");
1329
1340
 
1330
1341
  // src/components/TokenDetail/index.tsx
1331
1342
  var import_react_intl20 = require("react-intl");
1332
- var import_jsx_runtime93 = require("react/jsx-runtime");
1343
+ var import_jsx_runtime94 = require("react/jsx-runtime");
1333
1344
 
1334
1345
  // src/components/TokenSendList/index.tsx
1335
1346
  var import_react38 = require("react");
1336
1347
  var import_react_intl21 = require("react-intl");
1337
- var import_jsx_runtime94 = require("react/jsx-runtime");
1348
+ var import_jsx_runtime95 = require("react/jsx-runtime");
1338
1349
 
1339
1350
  // src/components/TransactionList/index.tsx
1340
1351
  var import_react_infinite_scroll_component = __toESM(require("react-infinite-scroll-component"));
@@ -1342,11 +1353,11 @@ var import_react39 = require("react");
1342
1353
  var import_viem14 = require("viem");
1343
1354
  var import_viem15 = require("viem");
1344
1355
  var import_react_intl22 = require("react-intl");
1345
- var import_jsx_runtime95 = require("react/jsx-runtime");
1356
+ var import_jsx_runtime96 = require("react/jsx-runtime");
1346
1357
 
1347
1358
  // src/ui/Modal/index.tsx
1348
1359
  var import_react_intl23 = require("react-intl");
1349
- var import_jsx_runtime96 = require("react/jsx-runtime");
1360
+ var import_jsx_runtime97 = require("react/jsx-runtime");
1350
1361
  function Modal({
1351
1362
  children,
1352
1363
  isOpen,
@@ -1354,10 +1365,10 @@ function Modal({
1354
1365
  zIndex = 100,
1355
1366
  className = ""
1356
1367
  }) {
1357
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: `matchid-modal ${className}`, style: {
1368
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: `matchid-modal ${className}`, style: {
1358
1369
  width
1359
1370
  }, children: [
1360
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "matchid-modal-mobile-header" }),
1371
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "matchid-modal-mobile-header" }),
1361
1372
  children
1362
1373
  ] }) });
1363
1374
  }
@@ -1371,13 +1382,13 @@ function ModalWithHeader({
1371
1382
  ...props
1372
1383
  }) {
1373
1384
  const isDownMd = useDownMd();
1374
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(Modal, { ...props, children: [
1375
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
1376
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "matchid-modal-header-content", children: [
1377
- onBack && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
1378
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "matchid-modal-header-title", children: title })
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 })
1379
1390
  ] }),
1380
- onClose && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
1391
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
1381
1392
  ] }),
1382
1393
  children
1383
1394
  ] });
@@ -1412,17 +1423,17 @@ function ConfirmModal({
1412
1423
  setLoading(false);
1413
1424
  }
1414
1425
  };
1415
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(ModalWithHeader, { isOpen, onClose, title, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "matchid-confirm-modal", children: [
1416
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "matchid-w-full", children }),
1417
- error && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: `matchid-error`, children: error }),
1418
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Button, { size: "lg", onClick: onSubmit, loading, block: true, highlight: true, children: confirmText ?? intl.formatMessage({
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({
1419
1430
  id: "Confirm"
1420
1431
  }) })
1421
1432
  ] }) });
1422
1433
  }
1423
1434
 
1424
1435
  // src/ui/ModalDrawer/index.tsx
1425
- var import_jsx_runtime97 = require("react/jsx-runtime");
1436
+ var import_jsx_runtime98 = require("react/jsx-runtime");
1426
1437
  function ModalDrawer({
1427
1438
  title,
1428
1439
  drawerTitleVisible = true,
@@ -1430,13 +1441,13 @@ function ModalDrawer({
1430
1441
  }) {
1431
1442
  const isDownMd = useDownMd();
1432
1443
  if (isDownMd) {
1433
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(ModalWithHeader, { ...props, title });
1444
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(ModalWithHeader, { ...props, title });
1434
1445
  }
1435
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
1446
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
1436
1447
  }
1437
1448
 
1438
1449
  // src/ui/HashPanel/index.tsx
1439
- var import_jsx_runtime98 = require("react/jsx-runtime");
1450
+ var import_jsx_runtime99 = require("react/jsx-runtime");
1440
1451
  function HashPanel({
1441
1452
  hash,
1442
1453
  chain,
@@ -1496,14 +1507,14 @@ function HashPanel({
1496
1507
  }
1497
1508
  }, [hashQuery.data]);
1498
1509
  const link = chain ? `${chain?.blockExplorers?.default.url}/tx/${hash}` : "";
1499
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
1510
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
1500
1511
  ModalDrawer,
1501
1512
  {
1502
1513
  isOpen,
1503
1514
  showClose: true,
1504
1515
  onClose,
1505
1516
  zIndex,
1506
- title: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
1517
+ title: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
1507
1518
  "div",
1508
1519
  {
1509
1520
  className: "matchid-hashpanel-header",
@@ -1513,32 +1524,32 @@ function HashPanel({
1513
1524
  children: statusValue.text
1514
1525
  }
1515
1526
  ),
1516
- children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "matchid-hashpanel-box", children: [
1517
- /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "matchid-hashpanel-content", children: [
1518
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: `matchid-hashpanel-status`, style: {
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: {
1519
1530
  color: statusValue.color
1520
1531
  }, children: statusValue.text }),
1521
- statusValue.lottie && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Lottie_default, { animationData: statusValue.lottie, style: {
1532
+ statusValue.lottie && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Lottie_default, { animationData: statusValue.lottie, style: {
1522
1533
  width: "96px",
1523
1534
  height: "96px"
1524
1535
  } }),
1525
- hash && /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
1536
+ hash && /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
1526
1537
  "Hash:",
1527
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("a", { href: link, target: "_blank", children: hash })
1538
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("a", { href: link, target: "_blank", children: hash })
1528
1539
  ] }),
1529
- error && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "matchid-hashpanel-text", children: error })
1540
+ error && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "matchid-hashpanel-text", children: error })
1530
1541
  ] }),
1531
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
1542
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
1532
1543
  ] })
1533
1544
  }
1534
1545
  );
1535
1546
  }
1536
1547
  function HashPanel_default(props) {
1537
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(HashPanel, { ...props });
1548
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(HashPanel, { ...props });
1538
1549
  }
1539
1550
 
1540
1551
  // src/ui/Switch/index.tsx
1541
- var import_jsx_runtime99 = require("react/jsx-runtime");
1552
+ var import_jsx_runtime100 = require("react/jsx-runtime");
1542
1553
  function Switch({
1543
1554
  size = "default",
1544
1555
  checked = false,
@@ -1553,12 +1564,12 @@ function Switch({
1553
1564
  onChange && onChange(!checked);
1554
1565
  }
1555
1566
  };
1556
- return /* @__PURE__ */ (0, import_jsx_runtime99.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_runtime99.jsx)(LoadingIcon_default, { className: "matchid-switch-loading-icon", size: size == "default" ? 24 : 18, color: "var(--matchid-swicth-loading-color)" }) : /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "matchid-switch-ball" }) });
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" }) });
1557
1568
  }
1558
1569
 
1559
1570
  // src/ui/AlphaAvatar/index.tsx
1560
1571
  var import_react42 = require("react");
1561
- var import_jsx_runtime100 = require("react/jsx-runtime");
1572
+ var import_jsx_runtime101 = require("react/jsx-runtime");
1562
1573
  function AlphaAvatar2({
1563
1574
  name,
1564
1575
  size = "default",
@@ -1575,7 +1586,7 @@ function AlphaAvatar2({
1575
1586
  return "";
1576
1587
  }, [name]);
1577
1588
  const numberSize = typeof size === "number" ? size : size === "sm" ? 24 : size === "default" ? 40 : 64;
1578
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
1589
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
1579
1590
  width: numberSize,
1580
1591
  height: numberSize,
1581
1592
  fontSize: Math.ceil(numberSize / 2),
@@ -1584,7 +1595,7 @@ function AlphaAvatar2({
1584
1595
  }
1585
1596
 
1586
1597
  // src/ui/Radio/index.tsx
1587
- var import_jsx_runtime101 = require("react/jsx-runtime");
1598
+ var import_jsx_runtime102 = require("react/jsx-runtime");
1588
1599
  function Radio({
1589
1600
  checked = false,
1590
1601
  onChange,
@@ -1593,20 +1604,20 @@ function Radio({
1593
1604
  className = "",
1594
1605
  style = {}
1595
1606
  }) {
1596
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
1607
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
1597
1608
  width: size,
1598
1609
  height: size,
1599
1610
  ...style,
1600
1611
  // @ts-ignore
1601
1612
  "--matchid-radio-checked": color
1602
- }, children: checked && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: `matchid-radio-content`, style: {
1613
+ }, children: checked && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: `matchid-radio-content`, style: {
1603
1614
  width: Math.floor(size * 0.7),
1604
1615
  height: Math.floor(size * 0.7)
1605
1616
  } }) });
1606
1617
  }
1607
1618
 
1608
1619
  // src/ui/Skeleton/index.tsx
1609
- var import_jsx_runtime102 = require("react/jsx-runtime");
1620
+ var import_jsx_runtime103 = require("react/jsx-runtime");
1610
1621
  var Skeleton = ({
1611
1622
  style = {},
1612
1623
  className = "",
@@ -1617,7 +1628,7 @@ var Skeleton = ({
1617
1628
  children
1618
1629
  }) => {
1619
1630
  if (!loading) {
1620
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_jsx_runtime102.Fragment, { children });
1631
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_jsx_runtime103.Fragment, { children });
1621
1632
  }
1622
1633
  const skeletonStyle = {
1623
1634
  width,
@@ -1625,7 +1636,7 @@ var Skeleton = ({
1625
1636
  borderRadius: radius,
1626
1637
  ...style
1627
1638
  };
1628
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
1639
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
1629
1640
  "div",
1630
1641
  {
1631
1642
  className: "matchid-skeleton " + className,
@@ -1636,10 +1647,10 @@ var Skeleton = ({
1636
1647
  var Skeleton_default = Skeleton;
1637
1648
 
1638
1649
  // src/ui/Tabs/index.tsx
1639
- var import_jsx_runtime103 = require("react/jsx-runtime");
1650
+ var import_jsx_runtime104 = require("react/jsx-runtime");
1640
1651
  function Tabs(props) {
1641
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: `matchid-tabs`, children: props.tabs.map((tab, index) => {
1642
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { onClick: () => props.setActiveTab(index), className: `matchid-tab ${props.activeTab === index ? "matchid-tab-active" : ""}`, children: tab }, index);
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);
1643
1654
  }) });
1644
1655
  }
1645
1656
 
@@ -1657,12 +1668,12 @@ var LazyLottie = (props) => {
1657
1668
  var Lottie_default = LazyLottie;
1658
1669
 
1659
1670
  // src/ui/Checkbox/index.tsx
1660
- var import_jsx_runtime104 = require("react/jsx-runtime");
1671
+ var import_jsx_runtime105 = require("react/jsx-runtime");
1661
1672
  function Checkbox({
1662
1673
  checked = false,
1663
1674
  onChange
1664
1675
  }) {
1665
- return checked ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(CheckboxCheckedIcon, { onClick: () => onChange?.(false) }) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(CheckboxIcon, { onClick: () => onChange?.(true) });
1676
+ return checked ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(CheckboxCheckedIcon, { onClick: () => onChange?.(false) }) : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(CheckboxIcon, { onClick: () => onChange?.(true) });
1666
1677
  }
1667
1678
  // Annotate the CommonJS export names for ESM import in node:
1668
1679
  0 && (module.exports = {