@matchain/matchid-sdk-react 0.1.53-alpha.6 → 0.1.53-alpha.8

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 (76) hide show
  1. package/dist/assets/icon/index.d.mts +4 -146
  2. package/dist/assets/icon/index.d.ts +4 -146
  3. package/dist/assets/icon/index.js +35 -0
  4. package/dist/assets/icon/index.js.map +1 -1
  5. package/dist/assets/icon/index.mjs +3 -1
  6. package/dist/{chunk-3USZ4ZZY.mjs → chunk-FKXS2XRG.mjs} +96 -2
  7. package/dist/chunk-FKXS2XRG.mjs.map +1 -0
  8. package/dist/{chunk-OCQ2AIM3.mjs → chunk-IZOOVZAD.mjs} +5 -5
  9. package/dist/chunk-IZOOVZAD.mjs.map +1 -0
  10. package/dist/{chunk-Z7DMYFH5.mjs → chunk-QTUR37B2.mjs} +5729 -5364
  11. package/dist/chunk-QTUR37B2.mjs.map +1 -0
  12. package/dist/{chunk-V2S54LGG.mjs → chunk-X5HGL3ZX.mjs} +45 -3
  13. package/dist/chunk-X5HGL3ZX.mjs.map +1 -0
  14. package/dist/components/index.d.mts +3 -3
  15. package/dist/components/index.d.ts +3 -3
  16. package/dist/components/index.js +726 -360
  17. package/dist/components/index.js.map +1 -1
  18. package/dist/components/index.mjs +9 -5
  19. package/dist/hooks/api/index.d.mts +3 -2
  20. package/dist/hooks/api/index.d.ts +3 -2
  21. package/dist/hooks/api/index.js +249 -62
  22. package/dist/hooks/api/index.js.map +1 -1
  23. package/dist/hooks/api/index.mjs +9 -9
  24. package/dist/hooks/index.d.mts +3 -2
  25. package/dist/hooks/index.d.ts +3 -2
  26. package/dist/hooks/index.js +359 -320
  27. package/dist/hooks/index.js.map +1 -1
  28. package/dist/hooks/index.mjs +5 -5
  29. package/dist/{index-W6yjuOKT.d.mts → index-BDffLLM_.d.mts} +29 -17
  30. package/dist/index-BVfCh4l-.d.mts +203 -0
  31. package/dist/{index-Bpd2gBNh.d.mts → index-BaFmUVw-.d.mts} +1 -1
  32. package/dist/{index-Dt92N6yZ.d.ts → index-BsX-ovIl.d.ts} +29 -17
  33. package/dist/{index-wqqEUufi.d.mts → index-C0UKUm0h.d.ts} +25 -5
  34. package/dist/{index-DaXXoRxr.d.ts → index-CQmN0dN4.d.ts} +1 -1
  35. package/dist/index-D3Kp05kW.d.ts +203 -0
  36. package/dist/{index-BaYTgL99.d.mts → index-D5WIVIkc.d.ts} +3 -2
  37. package/dist/{index-D_UNctDI.d.mts → index-D7S5DMUy.d.mts} +18 -5
  38. package/dist/{index-BhU3hF7y.d.ts → index-DC4F1u-w.d.mts} +25 -5
  39. package/dist/{index-C5StsjWY.d.ts → index-DQFQ39D9.d.ts} +18 -5
  40. package/dist/{index-mxbJ8CFx.d.mts → index-DjbH13zc.d.mts} +3 -1
  41. package/dist/{index-D1QeVZyN.d.ts → index-SOVt-ADK.d.mts} +3 -2
  42. package/dist/{index-CFqk8eNo.d.ts → index-zc2GEzJ9.d.ts} +3 -1
  43. package/dist/index.css +123 -15
  44. package/dist/index.d.mts +9 -7
  45. package/dist/index.d.ts +9 -7
  46. package/dist/index.js +1023 -564
  47. package/dist/index.js.map +1 -1
  48. package/dist/index.mjs +13 -12
  49. package/dist/request-B0CyrGFT.d.mts +15 -0
  50. package/dist/request-B0CyrGFT.d.ts +15 -0
  51. package/dist/types/index.d.mts +1 -1
  52. package/dist/types/index.d.ts +1 -1
  53. package/dist/{types-Bx_FJ11s.d.mts → types-VrV1kYga.d.mts} +9 -1
  54. package/dist/{types-Bx_FJ11s.d.ts → types-VrV1kYga.d.ts} +9 -1
  55. package/dist/ui/index.d.mts +3 -3
  56. package/dist/ui/index.d.ts +3 -3
  57. package/dist/ui/index.js +106 -61
  58. package/dist/ui/index.js.map +1 -1
  59. package/dist/ui/index.mjs +8 -4
  60. package/dist/utils/index.d.mts +1 -1
  61. package/dist/utils/index.d.ts +1 -1
  62. package/dist/utils/index.js +4 -4
  63. package/dist/utils/index.js.map +1 -1
  64. package/dist/utils/index.mjs +1 -1
  65. package/example/package.json +3 -1
  66. package/example/src/App.tsx +30 -7
  67. package/example/src/pages/Contact/index.tsx +90 -0
  68. package/example/src/pages/UI/components/Tabs.tsx +18 -0
  69. package/example/src/pages/UI/index.tsx +2 -0
  70. package/package.json +4 -1
  71. package/dist/chunk-3USZ4ZZY.mjs.map +0 -1
  72. package/dist/chunk-OCQ2AIM3.mjs.map +0 -1
  73. package/dist/chunk-UDXKFDXO.mjs +0 -97
  74. package/dist/chunk-UDXKFDXO.mjs.map +0 -1
  75. package/dist/chunk-V2S54LGG.mjs.map +0 -1
  76. package/dist/chunk-Z7DMYFH5.mjs.map +0 -1
package/dist/index.mjs CHANGED
@@ -1,33 +1,34 @@
1
1
  import {
2
- api_exports
3
- } from "./chunk-UDXKFDXO.mjs";
2
+ chains_exports
3
+ } from "./chunk-3CR66BEX.mjs";
4
+ import {
5
+ types_exports
6
+ } from "./chunk-HBOS3RBL.mjs";
4
7
  import {
5
8
  MatchProvider,
6
9
  ModalProvider,
7
10
  ToastProvider,
11
+ api_exports,
8
12
  components_exports,
9
13
  hooks_exports,
10
14
  useMatch
11
- } from "./chunk-Z7DMYFH5.mjs";
12
- import {
13
- types_exports
14
- } from "./chunk-HBOS3RBL.mjs";
15
+ } from "./chunk-QTUR37B2.mjs";
16
+ import "./chunk-JX73EY6V.mjs";
15
17
  import "./chunk-UA6XHZHX.mjs";
16
- import "./chunk-OCQ2AIM3.mjs";
18
+ import "./chunk-IZOOVZAD.mjs";
17
19
  import {
18
20
  ui_exports
19
- } from "./chunk-V2S54LGG.mjs";
20
- import "./chunk-3USZ4ZZY.mjs";
21
+ } from "./chunk-X5HGL3ZX.mjs";
21
22
  import {
22
- chains_exports
23
- } from "./chunk-3CR66BEX.mjs";
24
- import "./chunk-JX73EY6V.mjs";
23
+ icon_exports
24
+ } from "./chunk-FKXS2XRG.mjs";
25
25
  import "./chunk-J5LGTIGS.mjs";
26
26
  export {
27
27
  api_exports as Api,
28
28
  chains_exports as Chains,
29
29
  components_exports as Components,
30
30
  hooks_exports as Hooks,
31
+ icon_exports as Icon,
31
32
  MatchProvider,
32
33
  ModalProvider,
33
34
  ToastProvider,
@@ -0,0 +1,15 @@
1
+ declare const isSuccess: (res: {
2
+ code: number;
3
+ message: string;
4
+ data?: any;
5
+ }) => boolean;
6
+ interface MyResponseType<T> {
7
+ code: number;
8
+ data: T;
9
+ message: string;
10
+ success: boolean;
11
+ fail: boolean;
12
+ result: T;
13
+ }
14
+
15
+ export { type MyResponseType as M, isSuccess as i };
@@ -0,0 +1,15 @@
1
+ declare const isSuccess: (res: {
2
+ code: number;
3
+ message: string;
4
+ data?: any;
5
+ }) => boolean;
6
+ interface MyResponseType<T> {
7
+ code: number;
8
+ data: T;
9
+ message: string;
10
+ success: boolean;
11
+ fail: boolean;
12
+ result: T;
13
+ }
14
+
15
+ export { type MyResponseType as M, isSuccess as i };
@@ -1,3 +1,3 @@
1
- export { A as Address, l as AnyObject, p as AppConfigType, q as AuthParams, r as BindInfoType, s as BindItemType, t as BindWalletParam, B as ButtonProps, C as CEXType, k as ChainType, D as DeepPartial, v as DrawerProps, E as EmailModalProps, w as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, x as IEnvName, y as ILoginWalletReq, I as IMatchEvents, h as ISocialLoginMethod, z as IconProps, F as InputProps, L as LocaleType, b as LoginBoxProps, j as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, G as MessageType, J as MetaPageType, K as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, i as OverviewInfo, N as PohItemType, Q as PohZkpassParams, P as PopoverPositionType, S as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as RecoveryType, V as ThemeType, X as UIProps, o as UserAssetToken, U as UserChainType, n as UserImportTokenType, Y as UserPopoverProps, Z as UserTransactionNextPageParams, _ as UserTransactionRecordType, m as UserTransactionType, g as WalletAssetMergeType, $ as WalletAssetType, a0 as WalletChainType, W as WalletConfigType, a1 as WalletNFTType, a2 as WalletPanelProps, a3 as WalletReceiveMessageType, a4 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from '../types-Bx_FJ11s.mjs';
1
+ export { A as Address, e as AnyObject, q as AppConfigType, r as AuthParams, s as BindInfoType, t as BindItemType, v as BindWalletParam, B as ButtonProps, C as CEXType, d as ChainType, p as ContactType, D as DeepPartial, w as DrawerProps, E as EmailModalProps, x as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, y as IEnvName, z as ILoginWalletReq, I as IMatchEvents, b as ISocialLoginMethod, F as IconProps, G as InputProps, L as LocaleType, j as LoginBoxProps, c as LoginMethodType, o as LoginModalProps, n as LoginPanelProps, J as MessageType, K as MetaPageType, N as ModalProps, M as ModalWithHeaderProps, k as OtherLoginMethodType, O as OverviewInfo, Q as PohItemType, S as PohZkpassParams, P as PopoverPositionType, T as PopoverProps, m as PopoverTypeType, R as RecommendLoginMethodType, V as RecoveryType, X as ThemeType, Y as UIProps, h as UserAssetToken, U as UserChainType, g as UserImportTokenType, Z as UserPopoverProps, _ as UserTransactionNextPageParams, $ as UserTransactionRecordType, f as UserTransactionType, i as WalletAssetMergeType, a0 as WalletAssetType, a1 as WalletChainType, W as WalletConfigType, a2 as WalletNFTType, a3 as WalletPanelProps, a4 as WalletReceiveMessageType, a5 as WalletStatusType, l as WalletType, u as useMatchWalletAssetsProps } from '../types-VrV1kYga.mjs';
2
2
  import 'react';
3
3
  import '@tanstack/react-query/src/types';
@@ -1,3 +1,3 @@
1
- export { A as Address, l as AnyObject, p as AppConfigType, q as AuthParams, r as BindInfoType, s as BindItemType, t as BindWalletParam, B as ButtonProps, C as CEXType, k as ChainType, D as DeepPartial, v as DrawerProps, E as EmailModalProps, w as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, x as IEnvName, y as ILoginWalletReq, I as IMatchEvents, h as ISocialLoginMethod, z as IconProps, F as InputProps, L as LocaleType, b as LoginBoxProps, j as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, G as MessageType, J as MetaPageType, K as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, i as OverviewInfo, N as PohItemType, Q as PohZkpassParams, P as PopoverPositionType, S as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as RecoveryType, V as ThemeType, X as UIProps, o as UserAssetToken, U as UserChainType, n as UserImportTokenType, Y as UserPopoverProps, Z as UserTransactionNextPageParams, _ as UserTransactionRecordType, m as UserTransactionType, g as WalletAssetMergeType, $ as WalletAssetType, a0 as WalletChainType, W as WalletConfigType, a1 as WalletNFTType, a2 as WalletPanelProps, a3 as WalletReceiveMessageType, a4 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from '../types-Bx_FJ11s.js';
1
+ export { A as Address, e as AnyObject, q as AppConfigType, r as AuthParams, s as BindInfoType, t as BindItemType, v as BindWalletParam, B as ButtonProps, C as CEXType, d as ChainType, p as ContactType, D as DeepPartial, w as DrawerProps, E as EmailModalProps, x as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, y as IEnvName, z as ILoginWalletReq, I as IMatchEvents, b as ISocialLoginMethod, F as IconProps, G as InputProps, L as LocaleType, j as LoginBoxProps, c as LoginMethodType, o as LoginModalProps, n as LoginPanelProps, J as MessageType, K as MetaPageType, N as ModalProps, M as ModalWithHeaderProps, k as OtherLoginMethodType, O as OverviewInfo, Q as PohItemType, S as PohZkpassParams, P as PopoverPositionType, T as PopoverProps, m as PopoverTypeType, R as RecommendLoginMethodType, V as RecoveryType, X as ThemeType, Y as UIProps, h as UserAssetToken, U as UserChainType, g as UserImportTokenType, Z as UserPopoverProps, _ as UserTransactionNextPageParams, $ as UserTransactionRecordType, f as UserTransactionType, i as WalletAssetMergeType, a0 as WalletAssetType, a1 as WalletChainType, W as WalletConfigType, a2 as WalletNFTType, a3 as WalletPanelProps, a4 as WalletReceiveMessageType, a5 as WalletStatusType, l as WalletType, u as useMatchWalletAssetsProps } from '../types-VrV1kYga.js';
2
2
  import 'react';
3
3
  import '@tanstack/react-query/src/types';
@@ -80,6 +80,7 @@ type OverviewInfo = {
80
80
  max_level: number;
81
81
  user_level: number;
82
82
  recover_type: `${RecoveryType}`;
83
+ user_fried_total: number;
83
84
  };
84
85
  type AnyObject = {
85
86
  [key: string]: any;
@@ -419,5 +420,12 @@ type useMatchWalletAssetsProps = {
419
420
  assetListOptions?: Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>;
420
421
  };
421
422
  type WalletStatusType = 'error' | 'success' | 'nonce' | 'signer' | 'connecting' | 'start';
423
+ type ContactType = {
424
+ address: string;
425
+ avatar?: string;
426
+ name?: string;
427
+ did: string;
428
+ limit_id?: number;
429
+ };
422
430
 
423
- export { type WalletAssetType as $, type Address as A, type ButtonProps as B, type CEXType as C, type DeepPartial as D, type EmailModalProps as E, type InputProps as F, type MessageType as G, type Hash as H, type IMatchEvents as I, type MetaPageType as J, type ModalProps as K, type LocaleType as L, type ModalWithHeaderProps as M, type PohItemType as N, type OtherLoginMethodType as O, type PopoverPositionType as P, type PohZkpassParams as Q, type RecommendLoginMethodType as R, type PopoverProps as S, RecoveryType as T, type UserChainType as U, type ThemeType as V, type WalletConfigType as W, type UIProps as X, type UserPopoverProps as Y, type UserTransactionNextPageParams as Z, type UserTransactionRecordType as _, type IEnvConfigType as a, type WalletChainType as a0, type WalletNFTType as a1, type WalletPanelProps as a2, type WalletReceiveMessageType as a3, type WalletStatusType as a4, type LoginBoxProps as b, type WalletType as c, type PopoverTypeType as d, type LoginPanelProps as e, type LoginModalProps as f, type WalletAssetMergeType as g, type ISocialLoginMethod as h, type OverviewInfo as i, type LoginMethodType as j, ChainType as k, type AnyObject as l, type UserTransactionType as m, type UserImportTokenType as n, type UserAssetToken as o, type AppConfigType as p, type AuthParams as q, type BindInfoType as r, type BindItemType as s, type BindWalletParam as t, type useMatchWalletAssetsProps as u, type DrawerProps as v, type EmbeddedWalletsParams as w, type IEnvName as x, type ILoginWalletReq as y, type IconProps as z };
431
+ export { type UserTransactionRecordType as $, type Address as A, type ButtonProps as B, type CEXType as C, type DeepPartial as D, type EmailModalProps as E, type IconProps as F, type InputProps as G, type Hash as H, type IMatchEvents as I, type MessageType as J, type MetaPageType as K, type LocaleType as L, type ModalWithHeaderProps as M, type ModalProps as N, type OverviewInfo as O, type PopoverPositionType as P, type PohItemType as Q, type RecommendLoginMethodType as R, type PohZkpassParams as S, type PopoverProps as T, type UserChainType as U, RecoveryType as V, type WalletConfigType as W, type ThemeType as X, type UIProps as Y, type UserPopoverProps as Z, type UserTransactionNextPageParams as _, type IEnvConfigType as a, type WalletAssetType as a0, type WalletChainType as a1, type WalletNFTType as a2, type WalletPanelProps as a3, type WalletReceiveMessageType as a4, type WalletStatusType as a5, type ISocialLoginMethod as b, type LoginMethodType as c, ChainType as d, type AnyObject as e, type UserTransactionType as f, type UserImportTokenType as g, type UserAssetToken as h, type WalletAssetMergeType as i, type LoginBoxProps as j, type OtherLoginMethodType as k, type WalletType as l, type PopoverTypeType as m, type LoginPanelProps as n, type LoginModalProps as o, type ContactType as p, type AppConfigType as q, type AuthParams as r, type BindInfoType as s, type BindItemType as t, type useMatchWalletAssetsProps as u, type BindWalletParam as v, type DrawerProps as w, type EmbeddedWalletsParams as x, type IEnvName as y, type ILoginWalletReq as z };
@@ -80,6 +80,7 @@ type OverviewInfo = {
80
80
  max_level: number;
81
81
  user_level: number;
82
82
  recover_type: `${RecoveryType}`;
83
+ user_fried_total: number;
83
84
  };
84
85
  type AnyObject = {
85
86
  [key: string]: any;
@@ -419,5 +420,12 @@ type useMatchWalletAssetsProps = {
419
420
  assetListOptions?: Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>;
420
421
  };
421
422
  type WalletStatusType = 'error' | 'success' | 'nonce' | 'signer' | 'connecting' | 'start';
423
+ type ContactType = {
424
+ address: string;
425
+ avatar?: string;
426
+ name?: string;
427
+ did: string;
428
+ limit_id?: number;
429
+ };
422
430
 
423
- export { type WalletAssetType as $, type Address as A, type ButtonProps as B, type CEXType as C, type DeepPartial as D, type EmailModalProps as E, type InputProps as F, type MessageType as G, type Hash as H, type IMatchEvents as I, type MetaPageType as J, type ModalProps as K, type LocaleType as L, type ModalWithHeaderProps as M, type PohItemType as N, type OtherLoginMethodType as O, type PopoverPositionType as P, type PohZkpassParams as Q, type RecommendLoginMethodType as R, type PopoverProps as S, RecoveryType as T, type UserChainType as U, type ThemeType as V, type WalletConfigType as W, type UIProps as X, type UserPopoverProps as Y, type UserTransactionNextPageParams as Z, type UserTransactionRecordType as _, type IEnvConfigType as a, type WalletChainType as a0, type WalletNFTType as a1, type WalletPanelProps as a2, type WalletReceiveMessageType as a3, type WalletStatusType as a4, type LoginBoxProps as b, type WalletType as c, type PopoverTypeType as d, type LoginPanelProps as e, type LoginModalProps as f, type WalletAssetMergeType as g, type ISocialLoginMethod as h, type OverviewInfo as i, type LoginMethodType as j, ChainType as k, type AnyObject as l, type UserTransactionType as m, type UserImportTokenType as n, type UserAssetToken as o, type AppConfigType as p, type AuthParams as q, type BindInfoType as r, type BindItemType as s, type BindWalletParam as t, type useMatchWalletAssetsProps as u, type DrawerProps as v, type EmbeddedWalletsParams as w, type IEnvName as x, type ILoginWalletReq as y, type IconProps as z };
431
+ export { type UserTransactionRecordType as $, type Address as A, type ButtonProps as B, type CEXType as C, type DeepPartial as D, type EmailModalProps as E, type IconProps as F, type InputProps as G, type Hash as H, type IMatchEvents as I, type MessageType as J, type MetaPageType as K, type LocaleType as L, type ModalWithHeaderProps as M, type ModalProps as N, type OverviewInfo as O, type PopoverPositionType as P, type PohItemType as Q, type RecommendLoginMethodType as R, type PohZkpassParams as S, type PopoverProps as T, type UserChainType as U, RecoveryType as V, type WalletConfigType as W, type ThemeType as X, type UIProps as Y, type UserPopoverProps as Z, type UserTransactionNextPageParams as _, type IEnvConfigType as a, type WalletAssetType as a0, type WalletChainType as a1, type WalletNFTType as a2, type WalletPanelProps as a3, type WalletReceiveMessageType as a4, type WalletStatusType as a5, type ISocialLoginMethod as b, type LoginMethodType as c, ChainType as d, type AnyObject as e, type UserTransactionType as f, type UserImportTokenType as g, type UserAssetToken as h, type WalletAssetMergeType as i, type LoginBoxProps as j, type OtherLoginMethodType as k, type WalletType as l, type PopoverTypeType as m, type LoginPanelProps as n, type LoginModalProps as o, type ContactType as p, type AppConfigType as q, type AuthParams as r, type BindInfoType as s, type BindItemType as t, type useMatchWalletAssetsProps as u, type BindWalletParam as v, type DrawerProps as w, type EmbeddedWalletsParams as x, type IEnvName as y, type ILoginWalletReq as z };
@@ -1,7 +1,7 @@
1
- export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-Bpd2gBNh.mjs';
2
- export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-wqqEUufi.mjs';
1
+ export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-BaFmUVw-.mjs';
2
+ export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from '../index-DC4F1u-w.mjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
- import '../types-Bx_FJ11s.mjs';
5
+ import '../types-VrV1kYga.mjs';
6
6
  import '@tanstack/react-query/src/types';
7
7
  import 'viem';
@@ -1,7 +1,7 @@
1
- export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-DaXXoRxr.js';
2
- export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-BhU3hF7y.js';
1
+ export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-CQmN0dN4.js';
2
+ export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from '../index-C0UKUm0h.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
- import '../types-Bx_FJ11s.js';
5
+ import '../types-VrV1kYga.js';
6
6
  import '@tanstack/react-query/src/types';
7
7
  import 'viem';
package/dist/ui/index.js CHANGED
@@ -32,7 +32,9 @@ __export(ui_exports, {
32
32
  Overlay: () => Overlay,
33
33
  Popover: () => Popover,
34
34
  Radio: () => Radio,
35
- Switch: () => Switch
35
+ Skeleton: () => Skeleton_default,
36
+ Switch: () => Switch,
37
+ Tabs: () => Tabs
36
38
  });
37
39
  module.exports = __toCommonJS(ui_exports);
38
40
 
@@ -270,8 +272,11 @@ var import_jsx_runtime48 = require("react/jsx-runtime");
270
272
  // src/assets/icon/PhantomIcon.tsx
271
273
  var import_jsx_runtime49 = require("react/jsx-runtime");
272
274
 
273
- // src/ui/Button/index.tsx
275
+ // src/assets/icon/MoreIcon.tsx
274
276
  var import_jsx_runtime50 = require("react/jsx-runtime");
277
+
278
+ // src/ui/Button/index.tsx
279
+ var import_jsx_runtime51 = require("react/jsx-runtime");
275
280
  function Button({
276
281
  size = "df",
277
282
  disabled = false,
@@ -290,7 +295,7 @@ function Button({
290
295
  onClick && onClick();
291
296
  }
292
297
  };
293
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
298
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
294
299
  "button",
295
300
  {
296
301
  type,
@@ -300,14 +305,14 @@ function Button({
300
305
  ...style
301
306
  },
302
307
  onClick: onAction,
303
- children: loading ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
308
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
304
309
  }
305
310
  );
306
311
  }
307
312
 
308
313
  // src/ui/Overlay/index.tsx
309
314
  var import_react = require("react");
310
- var import_jsx_runtime51 = require("react/jsx-runtime");
315
+ var import_jsx_runtime52 = require("react/jsx-runtime");
311
316
  function Overlay({
312
317
  isOpen = false,
313
318
  children,
@@ -323,7 +328,7 @@ function Overlay({
323
328
  document.body.style.overflow = "";
324
329
  };
325
330
  }, [isOpen]);
326
- return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
331
+ return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
327
332
  "div",
328
333
  {
329
334
  className: "matchid-overlay",
@@ -332,11 +337,11 @@ function Overlay({
332
337
  },
333
338
  children
334
339
  }
335
- ) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, {});
340
+ ) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx_runtime52.Fragment, {});
336
341
  }
337
342
 
338
343
  // src/ui/Drawer/index.tsx
339
- var import_jsx_runtime52 = require("react/jsx-runtime");
344
+ var import_jsx_runtime53 = require("react/jsx-runtime");
340
345
  function Drawer({
341
346
  children,
342
347
  showClose = true,
@@ -347,22 +352,22 @@ function Drawer({
347
352
  onBack
348
353
  }) {
349
354
  if (!isOpen) {
350
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx_runtime52.Fragment, {});
355
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx_runtime53.Fragment, {});
351
356
  }
352
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "matchid-drawer", children: [
353
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: `matchid-drawer-header matchid-flex`, children: [
354
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: `matchid-drawer-header-content matchid-flex`, children: [
355
- onBack && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ArrowLeftIcon, { height: 25, width: 24, className: "matchid-drawer-header-back", onClick: onBack }),
357
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "matchid-drawer", children: [
358
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: `matchid-drawer-header matchid-flex`, children: [
359
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: `matchid-drawer-header-content matchid-flex`, children: [
360
+ onBack && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ArrowLeftIcon, { height: 25, width: 24, className: "matchid-drawer-header-back", onClick: onBack }),
356
361
  title
357
362
  ] }),
358
- showClose && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(CloseRoundIcon, { className: "matchid-drawer-header-close", onClick: onClose })
363
+ showClose && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(CloseRoundIcon, { className: "matchid-drawer-header-close", onClick: onClose })
359
364
  ] }),
360
365
  children
361
366
  ] }) });
362
367
  }
363
368
 
364
369
  // src/ui/Field/index.tsx
365
- var import_jsx_runtime53 = require("react/jsx-runtime");
370
+ var import_jsx_runtime54 = require("react/jsx-runtime");
366
371
  function Field({
367
372
  label,
368
373
  children,
@@ -370,13 +375,13 @@ function Field({
370
375
  required,
371
376
  className = ""
372
377
  }) {
373
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: `matchid-field-box ${className}`, children: [
374
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "matchid-field-label", children: [
375
- required && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "matchid-field-required", children: "*" }),
378
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: `matchid-field-box ${className}`, children: [
379
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "matchid-field-label", children: [
380
+ required && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "matchid-field-required", children: "*" }),
376
381
  label
377
382
  ] }),
378
383
  children,
379
- error && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "matchid-field-error", children: error })
384
+ error && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "matchid-field-error", children: error })
380
385
  ] });
381
386
  }
382
387
 
@@ -400,7 +405,7 @@ function useDownMd() {
400
405
  }
401
406
 
402
407
  // src/ui/Modal/index.tsx
403
- var import_jsx_runtime54 = require("react/jsx-runtime");
408
+ var import_jsx_runtime55 = require("react/jsx-runtime");
404
409
  function Modal({
405
410
  children,
406
411
  isOpen,
@@ -408,10 +413,10 @@ function Modal({
408
413
  zIndex = 100,
409
414
  className = ""
410
415
  }) {
411
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: `matchid-modal ${className}`, style: {
416
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: `matchid-modal ${className}`, style: {
412
417
  width
413
418
  }, children: [
414
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "matchid-modal-mobile-header" }),
419
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "matchid-modal-mobile-header" }),
415
420
  children
416
421
  ] }) });
417
422
  }
@@ -425,20 +430,20 @@ function ModalWithHeader({
425
430
  ...props
426
431
  }) {
427
432
  const isDownMd = useDownMd();
428
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Modal, { ...props, children: [
429
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
430
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "matchid-modal-header-content", children: [
431
- onBack && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
432
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "matchid-modal-header-title", children: title })
433
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Modal, { ...props, children: [
434
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
435
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "matchid-modal-header-content", children: [
436
+ onBack && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
437
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "matchid-modal-header-title", children: title })
433
438
  ] }),
434
- onClose && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
439
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
435
440
  ] }),
436
441
  children
437
442
  ] });
438
443
  }
439
444
 
440
445
  // src/ui/ModalDrawer/index.tsx
441
- var import_jsx_runtime55 = require("react/jsx-runtime");
446
+ var import_jsx_runtime56 = require("react/jsx-runtime");
442
447
  function ModalDrawer({
443
448
  title,
444
449
  drawerTitleVisible = true,
@@ -446,9 +451,9 @@ function ModalDrawer({
446
451
  }) {
447
452
  const isDownMd = useDownMd();
448
453
  if (isDownMd) {
449
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ModalWithHeader, { ...props, title });
454
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ModalWithHeader, { ...props, title });
450
455
  }
451
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
456
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
452
457
  }
453
458
 
454
459
  // src/assets/img/confirm.gif
@@ -520,7 +525,7 @@ function useHash({
520
525
  }
521
526
 
522
527
  // src/ui/HashPanel/index.tsx
523
- var import_jsx_runtime56 = require("react/jsx-runtime");
528
+ var import_jsx_runtime57 = require("react/jsx-runtime");
524
529
  function HashPanel({
525
530
  hash,
526
531
  chain,
@@ -579,14 +584,14 @@ function HashPanel({
579
584
  }
580
585
  }, [hashQuery.data]);
581
586
  const link = chain ? `${chain?.blockExplorers?.default.url}/tx/${hash}` : "";
582
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
587
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
583
588
  ModalDrawer,
584
589
  {
585
590
  isOpen,
586
591
  showClose: true,
587
592
  onClose,
588
593
  zIndex,
589
- title: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
594
+ title: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
590
595
  "div",
591
596
  {
592
597
  className: "matchid-hashpanel-header",
@@ -596,29 +601,29 @@ function HashPanel({
596
601
  children: statusValue.text
597
602
  }
598
603
  ),
599
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "matchid-hashpanel-box", children: [
600
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "matchid-hashpanel-content", children: [
601
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: `matchid-hashpanel-status`, style: {
604
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "matchid-hashpanel-box", children: [
605
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "matchid-hashpanel-content", children: [
606
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: `matchid-hashpanel-status`, style: {
602
607
  color: statusValue.color
603
608
  }, children: statusValue.text }),
604
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("img", { src: statusValue.icon, alt: statusValue.text, className: `matchid-hashpanel-img` }),
605
- hash && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
609
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("img", { src: statusValue.icon, alt: statusValue.text, className: `matchid-hashpanel-img` }),
610
+ hash && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
606
611
  "Hash:",
607
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("a", { href: link, target: "_blank", children: hash })
612
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("a", { href: link, target: "_blank", children: hash })
608
613
  ] })
609
614
  ] }),
610
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
615
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
611
616
  ] })
612
617
  }
613
618
  );
614
619
  }
615
620
  function HashPanel_default(props) {
616
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(HashPanel, { ...props });
621
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(HashPanel, { ...props });
617
622
  }
618
623
 
619
624
  // src/ui/Input/index.tsx
620
625
  var import_react4 = require("react");
621
- var import_jsx_runtime57 = require("react/jsx-runtime");
626
+ var import_jsx_runtime58 = require("react/jsx-runtime");
622
627
  function Input({
623
628
  onChange,
624
629
  type,
@@ -628,17 +633,17 @@ function Input({
628
633
  }) {
629
634
  const [inputType, setInputType] = (0, import_react4.useState)(type);
630
635
  const isDownMd = useDownMd();
631
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
636
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
632
637
  "div",
633
638
  {
634
639
  className: `matchid-input-box ${props.value && props.value.length > 0 ? "matchid-input-has-content" : ""} ${className}`,
635
640
  children: [
636
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("input", { type: inputType, onChange, ...props, className: "matchid-input-field" }),
637
- props.value && props.value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "matchid-input-delete-icon", onClick: (e) => {
641
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("input", { type: inputType, onChange, ...props, className: "matchid-input-field" }),
642
+ props.value && props.value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "matchid-input-delete-icon", onClick: (e) => {
638
643
  if (onChange) {
639
644
  onChange({ target: { value: "" } });
640
645
  }
641
- }, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
646
+ }, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
642
647
  DeleteRoundIcon,
643
648
  {
644
649
  height: isDownMd ? 16 : 21,
@@ -646,9 +651,9 @@ function Input({
646
651
  color: "var(--matchid-input-delete-icon-color)"
647
652
  }
648
653
  ) }),
649
- type === "password" && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
654
+ type === "password" && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
650
655
  setInputType(inputType === "password" ? "text" : "password");
651
- }, children: inputType === "password" ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(CloseEyeIcon, { size: isDownMd ? 16 : 20 }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(OpenEyeIcon, { size: isDownMd ? 16 : 20 }) }),
656
+ }, children: inputType === "password" ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CloseEyeIcon, { size: isDownMd ? 16 : 20 }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(OpenEyeIcon, { size: isDownMd ? 16 : 20 }) }),
652
657
  after
653
658
  ]
654
659
  }
@@ -657,7 +662,7 @@ function Input({
657
662
 
658
663
  // src/ui/Popover/index.tsx
659
664
  var import_react5 = require("react");
660
- var import_jsx_runtime58 = require("react/jsx-runtime");
665
+ var import_jsx_runtime59 = require("react/jsx-runtime");
661
666
  function Popover({
662
667
  children,
663
668
  content,
@@ -667,7 +672,7 @@ function Popover({
667
672
  gap = "20px"
668
673
  }) {
669
674
  const [active, setActive] = (0, import_react5.useState)(false);
670
- return children && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
675
+ return children && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
671
676
  "div",
672
677
  {
673
678
  onClick: () => {
@@ -678,16 +683,16 @@ function Popover({
678
683
  className: `matchid-popover-box matchid-popover-${position} matchid-popover-${type} ${className} ${type == "click" && active ? "matchid-popover-click-active" : ""}`,
679
684
  children: [
680
685
  children,
681
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { style: {
686
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { style: {
682
687
  paddingTop: gap
683
- }, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: `matchid-popover-content`, children: content }) })
688
+ }, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: `matchid-popover-content`, children: content }) })
684
689
  ]
685
690
  }
686
691
  );
687
692
  }
688
693
 
689
694
  // src/ui/Switch/index.tsx
690
- var import_jsx_runtime59 = require("react/jsx-runtime");
695
+ var import_jsx_runtime60 = require("react/jsx-runtime");
691
696
  function Switch({
692
697
  size = "default",
693
698
  checked = false,
@@ -702,12 +707,12 @@ function Switch({
702
707
  onChange && onChange(!checked);
703
708
  }
704
709
  };
705
- return /* @__PURE__ */ (0, import_jsx_runtime59.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_runtime59.jsx)(LoadingIcon_default, { className: "matchid-switch-loading-icon", size: size == "default" ? 24 : 18, color: "var(--matchid-swicth-loading-color)" }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "matchid-switch-ball" }) });
710
+ return /* @__PURE__ */ (0, import_jsx_runtime60.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_runtime60.jsx)(LoadingIcon_default, { className: "matchid-switch-loading-icon", size: size == "default" ? 24 : 18, color: "var(--matchid-swicth-loading-color)" }) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "matchid-switch-ball" }) });
706
711
  }
707
712
 
708
713
  // src/ui/AlphaAvatar/index.tsx
709
714
  var import_react6 = require("react");
710
- var import_jsx_runtime60 = require("react/jsx-runtime");
715
+ var import_jsx_runtime61 = require("react/jsx-runtime");
711
716
  function AlphaAvatar({
712
717
  name,
713
718
  size = "default",
@@ -724,7 +729,7 @@ function AlphaAvatar({
724
729
  return "";
725
730
  }, [name]);
726
731
  const numberSize = typeof size === "number" ? size : size === "sm" ? 24 : size === "default" ? 40 : 64;
727
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
732
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
728
733
  width: numberSize,
729
734
  height: numberSize,
730
735
  fontSize: Math.ceil(numberSize / 2),
@@ -733,7 +738,7 @@ function AlphaAvatar({
733
738
  }
734
739
 
735
740
  // src/ui/Radio/index.tsx
736
- var import_jsx_runtime61 = require("react/jsx-runtime");
741
+ var import_jsx_runtime62 = require("react/jsx-runtime");
737
742
  function Radio({
738
743
  checked = false,
739
744
  onChange,
@@ -742,17 +747,55 @@ function Radio({
742
747
  className = "",
743
748
  style = {}
744
749
  }) {
745
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
750
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
746
751
  width: size,
747
752
  height: size,
748
753
  ...style,
749
754
  // @ts-ignore
750
755
  "--matchid-radio-checked": color
751
- }, children: checked && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: `matchid-radio-content`, style: {
756
+ }, children: checked && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: `matchid-radio-content`, style: {
752
757
  width: Math.floor(size * 0.7),
753
758
  height: Math.floor(size * 0.7)
754
759
  } }) });
755
760
  }
761
+
762
+ // src/ui/Skeleton/index.tsx
763
+ var import_jsx_runtime63 = require("react/jsx-runtime");
764
+ var Skeleton = ({
765
+ style = {},
766
+ className = "",
767
+ width = 40,
768
+ height = 40,
769
+ radius = 5,
770
+ loading = true,
771
+ children
772
+ }) => {
773
+ if (!loading) {
774
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_jsx_runtime63.Fragment, { children });
775
+ }
776
+ const skeletonStyle = {
777
+ width,
778
+ height,
779
+ borderRadius: radius,
780
+ ...style
781
+ };
782
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
783
+ "div",
784
+ {
785
+ className: "matchid-skeleton " + className,
786
+ style: skeletonStyle
787
+ }
788
+ );
789
+ };
790
+ var Skeleton_default = Skeleton;
791
+
792
+ // src/ui/Tabs/index.tsx
793
+ var import_jsx_runtime64 = require("react/jsx-runtime");
794
+ function Tabs(props) {
795
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: `matchid-tabs`, children: props.tabs.map((tab, index) => {
796
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { onClick: () => props.setActiveTab(index), className: `matchid-tab ${props.activeTab === index ? "matchid-tab-active" : ""}`, children: tab }, index);
797
+ }) });
798
+ }
756
799
  // Annotate the CommonJS export names for ESM import in node:
757
800
  0 && (module.exports = {
758
801
  AlphaAvatar,
@@ -767,6 +810,8 @@ function Radio({
767
810
  Overlay,
768
811
  Popover,
769
812
  Radio,
770
- Switch
813
+ Skeleton,
814
+ Switch,
815
+ Tabs
771
816
  });
772
817
  //# sourceMappingURL=index.js.map