@matchain/matchid-sdk-react 0.1.48-alpha.5 → 0.1.48-alpha.7

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 (37) hide show
  1. package/dist/assets/icon/index.d.mts +5 -1
  2. package/dist/assets/icon/index.d.ts +5 -1
  3. package/dist/assets/icon/index.js +39 -0
  4. package/dist/assets/icon/index.js.map +1 -1
  5. package/dist/assets/icon/index.mjs +5 -1
  6. package/dist/{chunk-6GQ2H4L2.mjs → chunk-2CK7JQWH.mjs} +302 -174
  7. package/dist/chunk-2CK7JQWH.mjs.map +1 -0
  8. package/dist/{chunk-A5D3NKTK.mjs → chunk-7UTR37EJ.mjs} +39 -2
  9. package/dist/chunk-7UTR37EJ.mjs.map +1 -0
  10. package/dist/{chunk-LNSJ3ZXG.mjs → chunk-USKUYOYJ.mjs} +2 -2
  11. package/dist/{chunk-ZYDJICK4.mjs → chunk-YXPWZXPT.mjs} +2 -2
  12. package/dist/components/index.js +331 -324
  13. package/dist/components/index.js.map +1 -1
  14. package/dist/components/index.mjs +3 -3
  15. package/dist/hooks/api/index.js +64 -57
  16. package/dist/hooks/api/index.js.map +1 -1
  17. package/dist/hooks/api/index.mjs +4 -4
  18. package/dist/hooks/index.d.mts +1 -1
  19. package/dist/hooks/index.d.ts +1 -1
  20. package/dist/hooks/index.js +213 -62
  21. package/dist/hooks/index.js.map +1 -1
  22. package/dist/hooks/index.mjs +5 -3
  23. package/dist/{index-TkB89QxX.d.ts → index-DaEFoDv_.d.ts} +8 -2
  24. package/dist/{index-DKyt0for.d.mts → index-DktvxNJc.d.mts} +8 -2
  25. package/dist/index.d.mts +1 -1
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.js +495 -345
  28. package/dist/index.js.map +1 -1
  29. package/dist/index.mjs +4 -4
  30. package/dist/ui/index.js +64 -58
  31. package/dist/ui/index.js.map +1 -1
  32. package/dist/ui/index.mjs +2 -2
  33. package/package.json +1 -1
  34. package/dist/chunk-6GQ2H4L2.mjs.map +0 -1
  35. package/dist/chunk-A5D3NKTK.mjs.map +0 -1
  36. /package/dist/{chunk-LNSJ3ZXG.mjs.map → chunk-USKUYOYJ.mjs.map} +0 -0
  37. /package/dist/{chunk-ZYDJICK4.mjs.map → chunk-YXPWZXPT.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -6,18 +6,18 @@ import {
6
6
  } from "./chunk-HYQ3T6WW.mjs";
7
7
  import {
8
8
  api_exports
9
- } from "./chunk-ZYDJICK4.mjs";
9
+ } from "./chunk-YXPWZXPT.mjs";
10
10
  import {
11
11
  MatchProvider,
12
12
  components_exports,
13
13
  hooks_exports,
14
14
  useMatch
15
- } from "./chunk-6GQ2H4L2.mjs";
15
+ } from "./chunk-2CK7JQWH.mjs";
16
16
  import "./chunk-UA6XHZHX.mjs";
17
17
  import {
18
18
  ui_exports
19
- } from "./chunk-LNSJ3ZXG.mjs";
20
- import "./chunk-A5D3NKTK.mjs";
19
+ } from "./chunk-USKUYOYJ.mjs";
20
+ import "./chunk-7UTR37EJ.mjs";
21
21
  import "./chunk-J5LGTIGS.mjs";
22
22
  export {
23
23
  api_exports as Api,
package/dist/ui/index.js CHANGED
@@ -255,8 +255,14 @@ var import_jsx_runtime43 = require("react/jsx-runtime");
255
255
  // src/assets/icon/ErrorRoundIcon.tsx
256
256
  var import_jsx_runtime44 = require("react/jsx-runtime");
257
257
 
258
- // src/ui/Button/index.tsx
258
+ // src/assets/icon/InfoLineIcon.tsx
259
259
  var import_jsx_runtime45 = require("react/jsx-runtime");
260
+
261
+ // src/assets/icon/InfoRoundIcon.tsx
262
+ var import_jsx_runtime46 = require("react/jsx-runtime");
263
+
264
+ // src/ui/Button/index.tsx
265
+ var import_jsx_runtime47 = require("react/jsx-runtime");
260
266
  function Button({
261
267
  size = "df",
262
268
  disabled = false,
@@ -275,7 +281,7 @@ function Button({
275
281
  onClick && onClick();
276
282
  }
277
283
  };
278
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
284
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
279
285
  "button",
280
286
  {
281
287
  type,
@@ -285,14 +291,14 @@ function Button({
285
291
  ...style
286
292
  },
287
293
  onClick: onAction,
288
- children: loading ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
294
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
289
295
  }
290
296
  );
291
297
  }
292
298
 
293
299
  // src/ui/Overlay/index.tsx
294
300
  var import_react = require("react");
295
- var import_jsx_runtime46 = require("react/jsx-runtime");
301
+ var import_jsx_runtime48 = require("react/jsx-runtime");
296
302
  function Overlay({
297
303
  isOpen = false,
298
304
  children,
@@ -308,7 +314,7 @@ function Overlay({
308
314
  document.body.style.overflow = "";
309
315
  };
310
316
  }, [isOpen]);
311
- return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
317
+ return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
312
318
  "div",
313
319
  {
314
320
  className: "matchid-overlay",
@@ -317,11 +323,11 @@ function Overlay({
317
323
  },
318
324
  children
319
325
  }
320
- ) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, {});
326
+ ) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_jsx_runtime48.Fragment, {});
321
327
  }
322
328
 
323
329
  // src/ui/Drawer/index.tsx
324
- var import_jsx_runtime47 = require("react/jsx-runtime");
330
+ var import_jsx_runtime49 = require("react/jsx-runtime");
325
331
  function Drawer({
326
332
  children,
327
333
  showClose = true,
@@ -331,19 +337,19 @@ function Drawer({
331
337
  zIndex = 100
332
338
  }) {
333
339
  if (!isOpen) {
334
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_jsx_runtime47.Fragment, {});
340
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_jsx_runtime49.Fragment, {});
335
341
  }
336
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "matchid-drawer", children: [
337
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: `matchid-drawer-header`, children: [
338
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { children: title }),
339
- showClose && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(CloseRoundIcon, { className: "matchid-drawer-header-close", onClick: onClose })
342
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "matchid-drawer", children: [
343
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: `matchid-drawer-header`, children: [
344
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { children: title }),
345
+ showClose && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(CloseRoundIcon, { className: "matchid-drawer-header-close", onClick: onClose })
340
346
  ] }),
341
347
  children
342
348
  ] }) });
343
349
  }
344
350
 
345
351
  // src/ui/Field/index.tsx
346
- var import_jsx_runtime48 = require("react/jsx-runtime");
352
+ var import_jsx_runtime50 = require("react/jsx-runtime");
347
353
  function Field({
348
354
  label,
349
355
  children,
@@ -351,13 +357,13 @@ function Field({
351
357
  required,
352
358
  className = ""
353
359
  }) {
354
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: `matchid-field-box ${className}`, children: [
355
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "matchid-field-label", children: [
356
- required && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "matchid-field-required", children: "*" }),
360
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: `matchid-field-box ${className}`, children: [
361
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "matchid-field-label", children: [
362
+ required && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "matchid-field-required", children: "*" }),
357
363
  label
358
364
  ] }),
359
365
  children,
360
- error && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "matchid-field-error", children: error })
366
+ error && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "matchid-field-error", children: error })
361
367
  ] });
362
368
  }
363
369
 
@@ -383,7 +389,7 @@ function useDownMd() {
383
389
  }
384
390
 
385
391
  // src/ui/Modal/index.tsx
386
- var import_jsx_runtime49 = require("react/jsx-runtime");
392
+ var import_jsx_runtime51 = require("react/jsx-runtime");
387
393
  function Modal({
388
394
  children,
389
395
  isOpen,
@@ -391,10 +397,10 @@ function Modal({
391
397
  zIndex = 100,
392
398
  className = ""
393
399
  }) {
394
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: `matchid-modal ${className}`, style: {
400
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: `matchid-modal ${className}`, style: {
395
401
  width
396
402
  }, children: [
397
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "matchid-modal-mobile-header" }),
403
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "matchid-modal-mobile-header" }),
398
404
  children
399
405
  ] }) });
400
406
  }
@@ -408,20 +414,20 @@ function ModalWithHeader({
408
414
  ...props
409
415
  }) {
410
416
  const isDownMd = useDownMd();
411
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Modal, { ...props, children: [
412
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
413
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "matchid-modal-header-content", children: [
414
- onBack && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
415
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "matchid-modal-header-title", children: title })
417
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Modal, { ...props, children: [
418
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
419
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "matchid-modal-header-content", children: [
420
+ onBack && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
421
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "matchid-modal-header-title", children: title })
416
422
  ] }),
417
- onClose && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
423
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
418
424
  ] }),
419
425
  children
420
426
  ] });
421
427
  }
422
428
 
423
429
  // src/ui/ModalDrawer/index.tsx
424
- var import_jsx_runtime50 = require("react/jsx-runtime");
430
+ var import_jsx_runtime52 = require("react/jsx-runtime");
425
431
  function ModalDrawer({
426
432
  title,
427
433
  drawerTitleVisible = true,
@@ -429,9 +435,9 @@ function ModalDrawer({
429
435
  }) {
430
436
  const isDownMd = useDownMd();
431
437
  if (isDownMd) {
432
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ModalWithHeader, { ...props, title });
438
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ModalWithHeader, { ...props, title });
433
439
  }
434
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
440
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
435
441
  }
436
442
 
437
443
  // src/assets/img/confirm.gif
@@ -461,7 +467,7 @@ var matchlog = new Proxy(console, handler);
461
467
  var matchlog_default = matchlog;
462
468
 
463
469
  // src/ui/HashPanel/index.tsx
464
- var import_jsx_runtime51 = require("react/jsx-runtime");
470
+ var import_jsx_runtime53 = require("react/jsx-runtime");
465
471
  function HashPanel({
466
472
  hash,
467
473
  chain,
@@ -532,13 +538,13 @@ function HashPanel({
532
538
  }
533
539
  );
534
540
  const link = chain ? `${chain?.blockExplorers?.default.url}/tx/${hash}` : "";
535
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
541
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
536
542
  ModalDrawer,
537
543
  {
538
544
  isOpen,
539
545
  showClose: true,
540
546
  onClose,
541
- title: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
547
+ title: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
542
548
  "div",
543
549
  {
544
550
  className: "matchid-hashpanel-header",
@@ -548,29 +554,29 @@ function HashPanel({
548
554
  children: statusValue.text
549
555
  }
550
556
  ),
551
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "matchid-hashpanel-box", children: [
552
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "matchid-hashpanel-content", children: [
553
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: `matchid-hashpanel-status`, style: {
557
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "matchid-hashpanel-box", children: [
558
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "matchid-hashpanel-content", children: [
559
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: `matchid-hashpanel-status`, style: {
554
560
  color: statusValue.color
555
561
  }, children: statusValue.text }),
556
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("img", { src: statusValue.icon, alt: statusValue.text, className: `matchid-hashpanel-img` }),
557
- hash && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
562
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("img", { src: statusValue.icon, alt: statusValue.text, className: `matchid-hashpanel-img` }),
563
+ hash && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
558
564
  "Hash:",
559
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("a", { href: link, target: "_blank", children: hash })
565
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("a", { href: link, target: "_blank", children: hash })
560
566
  ] })
561
567
  ] }),
562
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
568
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
563
569
  ] })
564
570
  }
565
571
  );
566
572
  }
567
573
  function HashPanel_default(props) {
568
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(HashPanel, { ...props });
574
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(HashPanel, { ...props });
569
575
  }
570
576
 
571
577
  // src/ui/Input/index.tsx
572
578
  var import_react4 = require("react");
573
- var import_jsx_runtime52 = require("react/jsx-runtime");
579
+ var import_jsx_runtime54 = require("react/jsx-runtime");
574
580
  function Input({
575
581
  onChange,
576
582
  type,
@@ -580,17 +586,17 @@ function Input({
580
586
  }) {
581
587
  const [inputType, setInputType] = (0, import_react4.useState)(type);
582
588
  const isDownMd = useDownMd();
583
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
589
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
584
590
  "div",
585
591
  {
586
592
  className: `matchid-input-box ${props.value && props.value.length > 0 ? "matchid-input-has-content" : ""} ${className}`,
587
593
  children: [
588
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("input", { type: inputType, onChange, ...props, className: "matchid-input-field" }),
589
- props.value && props.value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "matchid-input-delete-icon", onClick: (e) => {
594
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("input", { type: inputType, onChange, ...props, className: "matchid-input-field" }),
595
+ props.value && props.value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "matchid-input-delete-icon", onClick: (e) => {
590
596
  if (onChange) {
591
597
  onChange({ target: { value: "" } });
592
598
  }
593
- }, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
599
+ }, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
594
600
  DeleteRoundIcon,
595
601
  {
596
602
  height: isDownMd ? 16 : 21,
@@ -598,9 +604,9 @@ function Input({
598
604
  color: "var(--matchid-input-delete-icon-color)"
599
605
  }
600
606
  ) }),
601
- type === "password" && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
607
+ type === "password" && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
602
608
  setInputType(inputType === "password" ? "text" : "password");
603
- }, children: inputType === "password" ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(CloseEyeIcon, { size: isDownMd ? 16 : 20 }) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(OpenEyeIcon, { size: isDownMd ? 16 : 20 }) }),
609
+ }, children: inputType === "password" ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CloseEyeIcon, { size: isDownMd ? 16 : 20 }) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(OpenEyeIcon, { size: isDownMd ? 16 : 20 }) }),
604
610
  after
605
611
  ]
606
612
  }
@@ -609,7 +615,7 @@ function Input({
609
615
 
610
616
  // src/ui/Popover/index.tsx
611
617
  var import_react5 = require("react");
612
- var import_jsx_runtime53 = require("react/jsx-runtime");
618
+ var import_jsx_runtime55 = require("react/jsx-runtime");
613
619
  function Popover({
614
620
  children,
615
621
  content,
@@ -619,7 +625,7 @@ function Popover({
619
625
  gap = "20px"
620
626
  }) {
621
627
  const [active, setActive] = (0, import_react5.useState)(false);
622
- return children && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
628
+ return children && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
623
629
  "div",
624
630
  {
625
631
  onClick: () => {
@@ -630,16 +636,16 @@ function Popover({
630
636
  className: `matchid-popover-box matchid-popover-${position} matchid-popover-${type} ${className} ${type == "click" && active ? "matchid-popover-click-active" : ""}`,
631
637
  children: [
632
638
  children,
633
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { style: {
639
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { style: {
634
640
  paddingTop: gap
635
- }, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: `matchid-popover-content`, children: content }) })
641
+ }, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: `matchid-popover-content`, children: content }) })
636
642
  ]
637
643
  }
638
644
  );
639
645
  }
640
646
 
641
647
  // src/ui/Switch/index.tsx
642
- var import_jsx_runtime54 = require("react/jsx-runtime");
648
+ var import_jsx_runtime56 = require("react/jsx-runtime");
643
649
  function Switch({
644
650
  size = "default",
645
651
  checked = false,
@@ -654,12 +660,12 @@ function Switch({
654
660
  onChange && onChange(!checked);
655
661
  }
656
662
  };
657
- return /* @__PURE__ */ (0, import_jsx_runtime54.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_runtime54.jsx)(LoadingIcon_default, { className: "matchid-switch-loading-icon", size: size == "default" ? 24 : 18, color: "var(--matchid-swicth-loading-color)" }) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "matchid-switch-ball" }) });
663
+ return /* @__PURE__ */ (0, import_jsx_runtime56.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_runtime56.jsx)(LoadingIcon_default, { className: "matchid-switch-loading-icon", size: size == "default" ? 24 : 18, color: "var(--matchid-swicth-loading-color)" }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "matchid-switch-ball" }) });
658
664
  }
659
665
 
660
666
  // src/ui/AlphaAvatar/index.tsx
661
667
  var import_react6 = require("react");
662
- var import_jsx_runtime55 = require("react/jsx-runtime");
668
+ var import_jsx_runtime57 = require("react/jsx-runtime");
663
669
  function AlphaAvatar({
664
670
  name,
665
671
  size = "default",
@@ -676,7 +682,7 @@ function AlphaAvatar({
676
682
  return "";
677
683
  }, [name]);
678
684
  const numberSize = typeof size === "number" ? size : size === "sm" ? 24 : size === "default" ? 40 : 64;
679
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
685
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
680
686
  width: numberSize,
681
687
  height: numberSize,
682
688
  fontSize: Math.ceil(numberSize / 2),
@@ -685,7 +691,7 @@ function AlphaAvatar({
685
691
  }
686
692
 
687
693
  // src/ui/Radio/index.tsx
688
- var import_jsx_runtime56 = require("react/jsx-runtime");
694
+ var import_jsx_runtime58 = require("react/jsx-runtime");
689
695
  function Radio({
690
696
  checked = false,
691
697
  onChange,
@@ -694,13 +700,13 @@ function Radio({
694
700
  className = "",
695
701
  style = {}
696
702
  }) {
697
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
703
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
698
704
  width: size,
699
705
  height: size,
700
706
  ...style,
701
707
  // @ts-ignore
702
708
  "--matchid-radio-checked": color
703
- }, children: checked && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: `matchid-radio-content`, style: {
709
+ }, children: checked && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: `matchid-radio-content`, style: {
704
710
  width: Math.floor(size * 0.7),
705
711
  height: Math.floor(size * 0.7)
706
712
  } }) });