@matchain/matchid-sdk-react 0.1.46-alpha.0 → 0.1.46-alpha.1

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 (41) hide show
  1. package/dist/assets/icon/index.d.mts +1 -1
  2. package/dist/assets/icon/index.d.ts +1 -1
  3. package/dist/{chunk-CNQJUDKT.mjs → chunk-IPT2PAEX.mjs} +30 -1
  4. package/dist/chunk-IPT2PAEX.mjs.map +1 -0
  5. package/dist/components/index.d.mts +3 -3
  6. package/dist/components/index.d.ts +3 -3
  7. package/dist/hooks/api/index.d.mts +2 -2
  8. package/dist/hooks/api/index.d.ts +2 -2
  9. package/dist/hooks/index.d.mts +2 -2
  10. package/dist/hooks/index.d.ts +2 -2
  11. package/dist/{index-BXCdzLbc.d.mts → index-B6OKNMN_.d.mts} +1 -1
  12. package/dist/{index-C_XI1qNB.d.mts → index-Bb5HNcIM.d.mts} +1 -1
  13. package/dist/{index-DWOnfdeP.d.ts → index-BenUwnaC.d.ts} +2 -2
  14. package/dist/{index-DSLYDlMJ.d.ts → index-C76VhJX1.d.ts} +10 -4
  15. package/dist/{index-CsHEukeG.d.ts → index-C9lQIgOD.d.ts} +1 -1
  16. package/dist/{index-D9-2IgL1.d.ts → index-DHyRhe_l.d.ts} +1 -1
  17. package/dist/{index-nqmU7njp.d.mts → index-DM5y3_Gj.d.mts} +2 -2
  18. package/dist/{index-bpGeBrps.d.mts → index-DYy-xBrS.d.mts} +10 -4
  19. package/dist/{index-DhSoJs_L.d.ts → index-Dxfz0_U2.d.ts} +1 -1
  20. package/dist/{index-BMWq_SVq.d.ts → index-_oiFIWte.d.ts} +1 -1
  21. package/dist/{index-RT9tEHMs.d.mts → index-h1KGzuFo.d.mts} +1 -1
  22. package/dist/{index-a9wDsxOI.d.mts → index-oBhm0-55.d.mts} +1 -1
  23. package/dist/index.css +14 -1
  24. package/dist/index.d.mts +7 -7
  25. package/dist/index.d.ts +7 -7
  26. package/dist/index.js +28 -0
  27. package/dist/index.js.map +1 -1
  28. package/dist/index.mjs +1 -1
  29. package/dist/types/index.d.mts +1 -1
  30. package/dist/types/index.d.ts +1 -1
  31. package/dist/{types-Cpmx3fld.d.mts → types-Q3WHZX4Z.d.mts} +1 -0
  32. package/dist/{types-Cpmx3fld.d.ts → types-Q3WHZX4Z.d.ts} +1 -0
  33. package/dist/ui/index.d.mts +3 -3
  34. package/dist/ui/index.d.ts +3 -3
  35. package/dist/ui/index.js +29 -0
  36. package/dist/ui/index.js.map +1 -1
  37. package/dist/ui/index.mjs +3 -1
  38. package/example/src/pages/UI/components/AlphaAvatar.tsx +11 -0
  39. package/example/src/pages/UI/index.tsx +2 -0
  40. package/package.json +1 -1
  41. package/dist/chunk-CNQJUDKT.mjs.map +0 -1
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ui_exports
3
- } from "./chunk-CNQJUDKT.mjs";
3
+ } from "./chunk-IPT2PAEX.mjs";
4
4
  import {
5
5
  chains_exports
6
6
  } from "./chunk-HYQ3T6WW.mjs";
@@ -1,3 +1,3 @@
1
1
  export { A as AuthParams, C as ChainType, E as EmbeddedWalletsParams, R as RecoveryType } from '../mpc-CTbBWHld.mjs';
2
- export { A as AnyObject, j as AppConfigType, k as BindInfoType, l as BindItemType, m as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, n as DrawerProps, E as EmailModalProps, a as IEnvConfigType, o as IEnvName, p as ILoginWalletReq, I as IMatchEvents, g as ISocialLoginMethod, q as IconProps, r as InputProps, L as LocaleType, b as LoginBoxProps, i as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, s as MessageType, t as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, h as OverviewInfo, u as PohItemType, v as PohZkpassParams, P as PopoverPositionType, w as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, U as UIProps, x as UserPopoverProps, W as WalletConfigType, y as WalletPanelProps, z as WalletReceiveMessageType, c as WalletType } from '../types-Cpmx3fld.mjs';
2
+ export { A as AnyObject, j as AppConfigType, k as BindInfoType, l as BindItemType, m as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, n as DrawerProps, E as EmailModalProps, a as IEnvConfigType, o as IEnvName, p as ILoginWalletReq, I as IMatchEvents, g as ISocialLoginMethod, q as IconProps, r as InputProps, L as LocaleType, b as LoginBoxProps, i as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, s as MessageType, t as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, h as OverviewInfo, u as PohItemType, v as PohZkpassParams, P as PopoverPositionType, w as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, U as UIProps, x as UserPopoverProps, W as WalletConfigType, y as WalletPanelProps, z as WalletReceiveMessageType, c as WalletType } from '../types-Q3WHZX4Z.mjs';
3
3
  import 'react';
@@ -1,3 +1,3 @@
1
1
  export { A as AuthParams, C as ChainType, E as EmbeddedWalletsParams, R as RecoveryType } from '../mpc-CTbBWHld.js';
2
- export { A as AnyObject, j as AppConfigType, k as BindInfoType, l as BindItemType, m as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, n as DrawerProps, E as EmailModalProps, a as IEnvConfigType, o as IEnvName, p as ILoginWalletReq, I as IMatchEvents, g as ISocialLoginMethod, q as IconProps, r as InputProps, L as LocaleType, b as LoginBoxProps, i as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, s as MessageType, t as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, h as OverviewInfo, u as PohItemType, v as PohZkpassParams, P as PopoverPositionType, w as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, U as UIProps, x as UserPopoverProps, W as WalletConfigType, y as WalletPanelProps, z as WalletReceiveMessageType, c as WalletType } from '../types-Cpmx3fld.js';
2
+ export { A as AnyObject, j as AppConfigType, k as BindInfoType, l as BindItemType, m as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, n as DrawerProps, E as EmailModalProps, a as IEnvConfigType, o as IEnvName, p as ILoginWalletReq, I as IMatchEvents, g as ISocialLoginMethod, q as IconProps, r as InputProps, L as LocaleType, b as LoginBoxProps, i as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, s as MessageType, t as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, h as OverviewInfo, u as PohItemType, v as PohZkpassParams, P as PopoverPositionType, w as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, U as UIProps, x as UserPopoverProps, W as WalletConfigType, y as WalletPanelProps, z as WalletReceiveMessageType, c as WalletType } from '../types-Q3WHZX4Z.js';
3
3
  import 'react';
@@ -249,6 +249,7 @@ type AppConfigType = {
249
249
  type UIProps = {
250
250
  style?: CSSProperties;
251
251
  className?: string;
252
+ onClick?: (e?: any) => void;
252
253
  };
253
254
 
254
255
  export type { AnyObject as A, ButtonProps as B, CEXType as C, DeepPartial as D, EmailModalProps as E, IMatchEvents as I, LocaleType as L, ModalWithHeaderProps as M, OtherLoginMethodType as O, PopoverPositionType as P, RecommendLoginMethodType as R, ThemeType as T, UIProps as U, WalletConfigType as W, IEnvConfigType as a, LoginBoxProps as b, WalletType as c, PopoverTypeType as d, LoginPanelProps as e, LoginModalProps as f, ISocialLoginMethod as g, OverviewInfo as h, LoginMethodType as i, AppConfigType as j, BindInfoType as k, BindItemType as l, BindWalletParam as m, DrawerProps as n, IEnvName as o, ILoginWalletReq as p, IconProps as q, InputProps as r, MessageType as s, ModalProps as t, PohItemType as u, PohZkpassParams as v, PopoverProps as w, UserPopoverProps as x, WalletPanelProps as y, WalletReceiveMessageType as z };
@@ -249,6 +249,7 @@ type AppConfigType = {
249
249
  type UIProps = {
250
250
  style?: CSSProperties;
251
251
  className?: string;
252
+ onClick?: (e?: any) => void;
252
253
  };
253
254
 
254
255
  export type { AnyObject as A, ButtonProps as B, CEXType as C, DeepPartial as D, EmailModalProps as E, IMatchEvents as I, LocaleType as L, ModalWithHeaderProps as M, OtherLoginMethodType as O, PopoverPositionType as P, RecommendLoginMethodType as R, ThemeType as T, UIProps as U, WalletConfigType as W, IEnvConfigType as a, LoginBoxProps as b, WalletType as c, PopoverTypeType as d, LoginPanelProps as e, LoginModalProps as f, ISocialLoginMethod as g, OverviewInfo as h, LoginMethodType as i, AppConfigType as j, BindInfoType as k, BindItemType as l, BindWalletParam as m, DrawerProps as n, IEnvName as o, ILoginWalletReq as p, IconProps as q, InputProps as r, MessageType as s, ModalProps as t, PohItemType as u, PohZkpassParams as v, PopoverProps as w, UserPopoverProps as x, WalletPanelProps as y, WalletReceiveMessageType as z };
@@ -1,6 +1,6 @@
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-BXCdzLbc.mjs';
2
- export { D as Drawer, e as HashPanel, M as ModalDrawer, S as Switch } from '../index-bpGeBrps.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-B6OKNMN_.mjs';
2
+ export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, S as Switch } from '../index-DYy-xBrS.mjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
- import '../types-Cpmx3fld.mjs';
5
+ import '../types-Q3WHZX4Z.mjs';
6
6
  import 'viem';
@@ -1,6 +1,6 @@
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-CsHEukeG.js';
2
- export { D as Drawer, e as HashPanel, M as ModalDrawer, S as Switch } from '../index-DSLYDlMJ.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-C9lQIgOD.js';
2
+ export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, S as Switch } from '../index-C76VhJX1.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
- import '../types-Cpmx3fld.js';
5
+ import '../types-Q3WHZX4Z.js';
6
6
  import 'viem';
package/dist/ui/index.js CHANGED
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/ui/index.ts
21
21
  var ui_exports = {};
22
22
  __export(ui_exports, {
23
+ AlphaAvatar: () => AlphaAvatar,
23
24
  Button: () => Button,
24
25
  Drawer: () => Drawer,
25
26
  Field: () => Field,
@@ -642,8 +643,36 @@ function Switch({
642
643
  };
643
644
  return /* @__PURE__ */ (0, import_jsx_runtime53.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_runtime53.jsx)(LoadingIcon_default, { className: "matchid-switch-loading-icon", size: size == "default" ? 24 : 18, color: "var(--matchid-swicth-loading-color)" }) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "matchid-switch-ball" }) });
644
645
  }
646
+
647
+ // src/ui/AlphaAvatar/index.tsx
648
+ var import_react6 = require("react");
649
+ var import_jsx_runtime54 = require("react/jsx-runtime");
650
+ function AlphaAvatar({
651
+ name,
652
+ size = "default",
653
+ className = "",
654
+ style
655
+ }) {
656
+ const avatar = (0, import_react6.useMemo)(() => {
657
+ if (name) {
658
+ const char = name[0].toUpperCase();
659
+ if (char.match(/[a-zA-Z0-9]/)) {
660
+ return char;
661
+ }
662
+ }
663
+ return "";
664
+ }, [name]);
665
+ const numberSize = typeof size === "number" ? size : size === "sm" ? 24 : size === "default" ? 40 : 64;
666
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
667
+ width: numberSize,
668
+ height: numberSize,
669
+ fontSize: Math.ceil(numberSize / 2),
670
+ ...style
671
+ }, children: avatar });
672
+ }
645
673
  // Annotate the CommonJS export names for ESM import in node:
646
674
  0 && (module.exports = {
675
+ AlphaAvatar,
647
676
  Button,
648
677
  Drawer,
649
678
  Field,