@blocklet/ui-react 3.0.7 → 3.0.9

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 (90) hide show
  1. package/lib/@types/index.d.ts +204 -3
  2. package/lib/BlockletStudio/index.d.ts +27 -26
  3. package/lib/ComponentInstaller/index.d.ts +15 -15
  4. package/lib/ComponentInstaller/installer-item.d.ts +10 -10
  5. package/lib/ComponentInstaller/locales.d.ts +2 -2
  6. package/lib/ComponentInstaller/use-component-installed.d.ts +2 -2
  7. package/lib/ComponentManager/components/add-component.d.ts +16 -13
  8. package/lib/ComponentManager/components/check-component.d.ts +2 -2
  9. package/lib/ComponentManager/components/publish-component.d.ts +10 -7
  10. package/lib/ComponentManager/components/resource-dialog.d.ts +13 -11
  11. package/lib/ComponentManager/index.d.ts +3 -4
  12. package/lib/ComponentManager/libs/locales.d.ts +14 -19
  13. package/lib/Dashboard/index.d.ts +16 -13
  14. package/lib/Footer/brand.d.ts +8 -8
  15. package/lib/Footer/copyright.d.ts +7 -7
  16. package/lib/Footer/index.d.ts +2 -2
  17. package/lib/Footer/internal-footer.d.ts +25 -22
  18. package/lib/Footer/layout/plain.d.ts +15 -12
  19. package/lib/Footer/layout/row.d.ts +7 -7
  20. package/lib/Footer/layout/standard.d.ts +16 -13
  21. package/lib/Footer/links.d.ts +15 -12
  22. package/lib/Footer/social-media.d.ts +8 -8
  23. package/lib/Header/index.d.ts +23 -13
  24. package/lib/Icon/index.d.ts +9 -7
  25. package/lib/Notifications/Snackbar.d.ts +16 -8
  26. package/lib/Notifications/hooks/use-title.d.ts +48 -9
  27. package/lib/Notifications/hooks/use-width.d.ts +2 -2
  28. package/lib/Notifications/utils.d.ts +69 -9
  29. package/lib/UserCenter/components/config-inviter.d.ts +4 -4
  30. package/lib/UserCenter/components/config-profile.d.ts +5 -5
  31. package/lib/UserCenter/components/danger-zone.d.ts +1 -2
  32. package/lib/UserCenter/components/editable-field.d.ts +34 -30
  33. package/lib/UserCenter/components/nft.d.ts +4 -4
  34. package/lib/UserCenter/components/notification.d.ts +5 -5
  35. package/lib/UserCenter/components/passport.d.ts +5 -5
  36. package/lib/UserCenter/components/privacy.d.ts +11 -5
  37. package/lib/UserCenter/components/settings.d.ts +10 -8
  38. package/lib/UserCenter/components/status-dialog/date-picker.d.ts +10 -9
  39. package/lib/UserCenter/components/status-dialog/index.d.ts +12 -9
  40. package/lib/UserCenter/components/status-selector/duration-menu.d.ts +7 -7
  41. package/lib/UserCenter/components/status-selector/index.d.ts +9 -8
  42. package/lib/UserCenter/components/status-selector/menu-item.d.ts +24 -9
  43. package/lib/UserCenter/components/storage/action.d.ts +9 -7
  44. package/lib/UserCenter/components/storage/connected.d.ts +5 -4
  45. package/lib/UserCenter/components/storage/delete.d.ts +6 -5
  46. package/lib/UserCenter/components/storage/disconnect.d.ts +2 -2
  47. package/lib/UserCenter/components/storage/index.d.ts +2 -2
  48. package/lib/UserCenter/components/storage/preview-nft.d.ts +5 -5
  49. package/lib/UserCenter/components/third-party-login/index.d.ts +4 -4
  50. package/lib/UserCenter/components/third-party-login/third-party-item.d.ts +13 -4
  51. package/lib/UserCenter/components/user-center.d.ts +16 -15
  52. package/lib/UserCenter/components/user-info/address.d.ts +16 -7
  53. package/lib/UserCenter/components/user-info/index.d.ts +4 -5
  54. package/lib/UserCenter/components/user-info/link-preview-input.d.ts +5 -6
  55. package/lib/UserCenter/components/user-info/metadata.d.ts +10 -7
  56. package/lib/UserCenter/components/user-info/switch-role.d.ts +7 -6
  57. package/lib/UserCenter/components/user-info/timezone-select.d.ts +8 -7
  58. package/lib/UserCenter/components/user-info/user-basic-info.d.ts +13 -12
  59. package/lib/UserCenter/components/user-info/user-info-item.d.ts +11 -6
  60. package/lib/UserCenter/components/user-info/user-info.d.ts +6 -6
  61. package/lib/UserCenter/components/user-info/user-status.d.ts +9 -9
  62. package/lib/UserCenter/components/user-info/utils.d.ts +33 -15
  63. package/lib/UserCenter/components/webhook-item.d.ts +2 -10
  64. package/lib/UserCenter/index.d.ts +1 -2
  65. package/lib/UserCenter/libs/locales.d.ts +345 -513
  66. package/lib/UserCenter/libs/utils.d.ts +4 -3
  67. package/lib/UserSessions/components/user-session-info.d.ts +5 -5
  68. package/lib/UserSessions/components/user-sessions.d.ts +20 -8
  69. package/lib/UserSessions/index.d.ts +1 -2
  70. package/lib/UserSessions/libs/locales.d.ts +60 -88
  71. package/lib/UserSessions/libs/utils.d.ts +2 -3
  72. package/lib/blocklets.d.ts +9 -10
  73. package/lib/common/domain-warning.d.ts +7 -7
  74. package/lib/common/header-addons.d.ts +9 -9
  75. package/lib/common/link-blocker.d.ts +6 -3
  76. package/lib/common/notification-addon.d.ts +6 -6
  77. package/lib/common/overridable-theme-provider.d.ts +10 -7
  78. package/lib/common/wallet-hidden-topbar.d.ts +1 -2
  79. package/lib/common/ws.d.ts +3 -4
  80. package/lib/contexts/config-user-space.d.ts +27 -7
  81. package/lib/hooks/use-mobile.d.ts +3 -3
  82. package/lib/index.d.ts +10 -12
  83. package/lib/libs/client.d.ts +2 -3
  84. package/lib/libs/constant.d.ts +1 -2
  85. package/lib/libs/spaces.d.ts +2 -3
  86. package/lib/libs/with-hide-when-embed.d.ts +2 -3
  87. package/lib/types.d.ts +31 -32
  88. package/lib/utils.d.ts +10 -11
  89. package/package.json +9 -9
  90. package/lib/UserCenter/components/storage/icons/empty-spaces-nft.svg.d.ts +0 -3
@@ -1,19 +1,22 @@
1
- import { default as e } from 'prop-types';
2
- export { s as default };
3
- declare function s({ elements: i, data: m, ...o }: {
1
+ import { default as PropTypes } from 'prop-types';
2
+ export default PlainLayout;
3
+ /**
4
+ * footer plain layout
5
+ */
6
+ declare function PlainLayout({ elements, data, ...rest }: {
4
7
  [x: string]: any;
5
8
  elements: any;
6
9
  data: any;
7
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
8
- declare namespace s {
10
+ }): import("react/jsx-runtime").JSX.Element;
11
+ declare namespace PlainLayout {
9
12
  namespace propTypes {
10
- let elements: e.Validator<NonNullable<e.InferProps<{
11
- brand: e.Requireable<e.ReactElementLike>;
12
- navigation: e.Requireable<e.ReactElementLike>;
13
- socialMedia: e.Requireable<e.ReactElementLike>;
14
- copyright: e.Requireable<e.ReactElementLike>;
15
- links: e.Requireable<e.ReactElementLike>;
13
+ let elements: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
14
+ brand: PropTypes.Requireable<PropTypes.ReactElementLike>;
15
+ navigation: PropTypes.Requireable<PropTypes.ReactElementLike>;
16
+ socialMedia: PropTypes.Requireable<PropTypes.ReactElementLike>;
17
+ copyright: PropTypes.Requireable<PropTypes.ReactElementLike>;
18
+ links: PropTypes.Requireable<PropTypes.ReactElementLike>;
16
19
  }>>>;
17
- let data: e.Validator<object>;
20
+ let data: PropTypes.Validator<object>;
18
21
  }
19
22
  }
@@ -1,13 +1,13 @@
1
- import { default as e } from 'prop-types';
2
- export { m as default };
3
- declare function m({ children: o, autoCenter: r, ...t }: {
1
+ import { default as PropTypes } from 'prop-types';
2
+ declare function Row({ children, autoCenter, ...rest }: {
4
3
  [x: string]: any;
5
4
  children?: null | undefined;
6
5
  autoCenter?: boolean | undefined;
7
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | null;
8
- declare namespace m {
6
+ }): import("react/jsx-runtime").JSX.Element | null;
7
+ declare namespace Row {
9
8
  namespace propTypes {
10
- let children: e.Requireable<any>;
11
- let autoCenter: e.Requireable<boolean>;
9
+ let children: PropTypes.Requireable<any>;
10
+ let autoCenter: PropTypes.Requireable<boolean>;
12
11
  }
13
12
  }
13
+ export default Row;
@@ -1,21 +1,24 @@
1
- import { default as o } from 'prop-types';
2
- export { g as default };
3
- declare function g({ elements: e, data: s, className: p, ...c }: {
1
+ import { default as PropTypes } from 'prop-types';
2
+ export default StandardLayout;
3
+ /**
4
+ * footer standard layout
5
+ */
6
+ declare function StandardLayout({ elements, data, className, ...rest }: {
4
7
  [x: string]: any;
5
8
  elements: any;
6
9
  data: any;
7
10
  className?: string | undefined;
8
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
9
- declare namespace g {
11
+ }): import("react/jsx-runtime").JSX.Element;
12
+ declare namespace StandardLayout {
10
13
  namespace propTypes {
11
- let elements: o.Validator<NonNullable<o.InferProps<{
12
- brand: o.Requireable<o.ReactElementLike>;
13
- navigation: o.Requireable<o.ReactElementLike>;
14
- socialMedia: o.Requireable<o.ReactElementLike>;
15
- copyright: o.Requireable<o.ReactElementLike>;
16
- links: o.Requireable<o.ReactElementLike>;
14
+ let elements: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
15
+ brand: PropTypes.Requireable<PropTypes.ReactElementLike>;
16
+ navigation: PropTypes.Requireable<PropTypes.ReactElementLike>;
17
+ socialMedia: PropTypes.Requireable<PropTypes.ReactElementLike>;
18
+ copyright: PropTypes.Requireable<PropTypes.ReactElementLike>;
19
+ links: PropTypes.Requireable<PropTypes.ReactElementLike>;
17
20
  }>>>;
18
- let data: o.Validator<object>;
19
- let className: o.Requireable<string>;
21
+ let data: PropTypes.Validator<object>;
22
+ let className: PropTypes.Requireable<string>;
20
23
  }
21
24
  }
@@ -1,20 +1,23 @@
1
- import { default as l } from 'prop-types';
2
- export { F as default };
3
- declare function F({ links: e, flowLayout: d, columns: u, ...k }: {
1
+ import { default as PropTypes } from 'prop-types';
2
+ /**
3
+ * footer 中的 links (支持分组, 最多支持 2 级)
4
+ */
5
+ declare function Links({ links, flowLayout, columns, ...rest }: {
4
6
  [x: string]: any;
5
7
  links?: any[] | undefined;
6
8
  flowLayout?: boolean | undefined;
7
9
  columns: any;
8
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | null;
9
- declare namespace F {
10
+ }): import("react/jsx-runtime").JSX.Element | null;
11
+ declare namespace Links {
10
12
  namespace propTypes {
11
- let links: l.Requireable<(l.InferProps<{
12
- label: l.Requireable<string>;
13
- link: l.Requireable<string>;
14
- render: l.Requireable<(...args: any[]) => any>;
15
- props: l.Requireable<object>;
13
+ let links: PropTypes.Requireable<(PropTypes.InferProps<{
14
+ label: PropTypes.Requireable<string>;
15
+ link: PropTypes.Requireable<string>;
16
+ render: PropTypes.Requireable<(...args: any[]) => any>;
17
+ props: PropTypes.Requireable<object>;
16
18
  }> | null | undefined)[]>;
17
- let flowLayout: l.Requireable<boolean>;
18
- let columns: l.Validator<number>;
19
+ let flowLayout: PropTypes.Requireable<boolean>;
20
+ let columns: PropTypes.Validator<number>;
19
21
  }
20
22
  }
23
+ export default Links;
@@ -1,14 +1,14 @@
1
- import { default as o } from 'prop-types';
2
- export { p as default };
3
- declare function p({ items: r, ...t }: {
1
+ import { default as PropTypes } from 'prop-types';
2
+ declare function SocialMedia({ items, ...rest }: {
4
3
  [x: string]: any;
5
4
  items?: null | undefined;
6
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | null;
7
- declare namespace p {
5
+ }): import("react/jsx-runtime").JSX.Element | null;
6
+ declare namespace SocialMedia {
8
7
  namespace propTypes {
9
- let items: o.Requireable<(o.InferProps<{
10
- icon: o.Requireable<string>;
11
- link: o.Requireable<string>;
8
+ let items: PropTypes.Requireable<(PropTypes.InferProps<{
9
+ icon: PropTypes.Requireable<string>;
10
+ link: PropTypes.Requireable<string>;
12
11
  }> | null | undefined)[]>;
13
12
  }
14
13
  }
14
+ export default SocialMedia;
@@ -1,13 +1,23 @@
1
- export { No as default };
2
- declare const No: import('react').ComponentType<{
3
- [x: string]: any;
4
- meta?: {} | undefined;
5
- addons?: undefined;
6
- sessionManagerProps?: {
7
- showRole: boolean;
8
- } | undefined;
9
- homeLink?: any;
10
- theme?: undefined;
11
- hideNavMenu?: boolean | undefined;
12
- showDomainWarningDialog?: boolean | undefined;
13
- }>;
1
+ import { JSX } from 'react';
2
+ import { BoxProps, Breakpoint } from '@mui/material';
3
+ import { BlockletMetaProps, SessionManagerProps } from '../@types';
4
+ type HeaderProps = {
5
+ meta?: BlockletMetaProps;
6
+ addons?: Function | React.ReactNode;
7
+ sessionManagerProps?: SessionManagerProps;
8
+ homeLink?: string | ((brandContent: React.ReactNode) => JSX.Element | null);
9
+ theme?: object;
10
+ hideNavMenu?: boolean;
11
+ bordered?: boolean;
12
+ logo?: React.ReactNode;
13
+ brand?: React.ReactNode;
14
+ brandAddon?: React.ReactNode;
15
+ description?: React.ReactNode;
16
+ children?: React.ReactNode;
17
+ prepend?: React.ReactNode;
18
+ align?: 'left' | 'right';
19
+ maxWidth?: false | Breakpoint;
20
+ showDomainWarningDialog?: boolean;
21
+ };
22
+ declare const _default: import('react').ComponentType<HeaderProps & Omit<BoxProps, keyof HeaderProps>>;
23
+ export default _default;
@@ -1,7 +1,9 @@
1
- export { M as default };
2
- declare function M({ icon: r, size: t, sx: i, ...a }: {
3
- [x: string]: any;
4
- icon: any;
5
- size?: undefined;
6
- sx?: {} | undefined;
7
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | null;
1
+ import { AvatarProps, BoxProps } from '@mui/material';
2
+ /**
3
+ * Icon 组件, 基于 mui Avatar 组件扩展对 iconify 的支持
4
+ */
5
+ export default function Icon({ icon, size, sx, ...rest }: {
6
+ icon: string;
7
+ size?: number;
8
+ sx?: BoxProps['sx'];
9
+ } & AvatarProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,8 +1,16 @@
1
- export { xe as default };
2
- declare function xe({ ref: t, keyId: i, notification: e, viewAllUrl: w, content: f }: {
3
- ref?: undefined;
4
- keyId: any;
5
- notification?: {} | undefined;
6
- viewAllUrl: any;
7
- content?: null | undefined;
8
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ interface NotificationComponentProps {
2
+ viewAllUrl: string;
3
+ keyId: number;
4
+ notification?: {
5
+ severity?: string;
6
+ title?: string;
7
+ description?: string;
8
+ activity?: any;
9
+ actorInfo?: any;
10
+ };
11
+ content?: React.ReactNode;
12
+ }
13
+ export default function NotificationComponent({ ref, keyId: key, notification, viewAllUrl, content, }: NotificationComponentProps & {
14
+ ref?: React.Ref<unknown>;
15
+ }): import("react/jsx-runtime").JSX.Element;
16
+ export {};
@@ -1,9 +1,48 @@
1
- import { default as F } from 'react';
2
- export { H as default };
3
- declare function H({ activity: r, users: l, actors: d, extra: h, mountPoint: m }: {
4
- activity: any;
5
- users: any;
6
- actors: any;
7
- extra?: {} | undefined;
8
- mountPoint?: string | undefined;
9
- }): F.ReactElement<unknown, string | F.JSXElementConstructor<any>> | null;
1
+ /**
2
+ * Activity types enum for type safety
3
+ * @readonly
4
+ * @enum {string}
5
+ */
6
+ declare const ACTIVITY_TYPES: {
7
+ readonly COMMENT: "comment";
8
+ readonly LIKE: "like";
9
+ readonly FOLLOW: "follow";
10
+ readonly TIPS: "tips";
11
+ readonly MENTION: "mention";
12
+ readonly ASSIGN: "assign";
13
+ };
14
+ type ActivityTypeValues = (typeof ACTIVITY_TYPES)[keyof typeof ACTIVITY_TYPES];
15
+ interface UserData {
16
+ did: string;
17
+ fullName: string;
18
+ }
19
+ interface ActivityTarget {
20
+ type: string;
21
+ name: string;
22
+ }
23
+ interface Activity {
24
+ type: ActivityTypeValues;
25
+ target: ActivityTarget;
26
+ }
27
+ interface ExtraParams {
28
+ linkColor?: string;
29
+ [key: string]: any;
30
+ }
31
+ interface ActivityTitleProps {
32
+ activity: Activity;
33
+ users: UserData[];
34
+ actors: string[];
35
+ extra?: ExtraParams;
36
+ mountPoint?: string;
37
+ }
38
+ /**
39
+ * A hook that returns a formatted activity title with linked usernames
40
+ * @param {Object} params - The parameters object
41
+ * @param {keyof typeof ACTIVITY_TYPES} params.type - The activity type
42
+ * @param {Object} params.target - The target object
43
+ * @param {Array<{did: string, fullName: string}>} params.users - Array of user objects
44
+ * @param {Object} params.extra - Extra parameters
45
+ * @returns {React.ReactNode} Formatted title with linked usernames
46
+ */
47
+ export default function useActivityTitle({ activity, users, actors, extra, mountPoint }: ActivityTitleProps): import("react/jsx-runtime").JSX.Element | null;
48
+ export {};
@@ -1,2 +1,2 @@
1
- export { a as default };
2
- declare function a(): import('@mui/material').Breakpoint;
1
+ declare function useWidth(): string;
2
+ export default useWidth;
@@ -1,10 +1,70 @@
1
- declare function D(s: any): boolean;
2
- declare function R(s: any): {
3
- metaLink: any;
4
- targetLink: any;
1
+ /**
2
+ * 通知对象的活动目标接口
3
+ */
4
+ interface ActivityTarget {
5
+ type?: string;
6
+ id?: string;
7
+ }
8
+ /**
9
+ * 通知对象的活动元数据接口
10
+ */
11
+ interface ActivityMeta {
12
+ id?: string;
13
+ }
14
+ /**
15
+ * 活动对象接口
16
+ */
17
+ interface Activity {
18
+ type?: string;
19
+ actor?: string;
20
+ target?: ActivityTarget;
21
+ meta?: ActivityMeta;
22
+ }
23
+ /**
24
+ * 通知对象接口
25
+ */
26
+ interface Notification {
27
+ activity?: Activity;
28
+ actorInfo?: any;
29
+ severity?: string;
30
+ title?: string;
31
+ description?: string;
32
+ items?: Notification[];
33
+ }
34
+ /**
35
+ * 合并相邻的通知数据
36
+ * 合并条件:
37
+ * 1. 数据必须是相邻的
38
+ * 2. activity.type 必须相同且不为 null 或 undefined
39
+ * 3. 如果存在target对象,activity.target.type和activity.target.id都必须相同
40
+ * 4. 如果相邻数据的 activity.type 相同但没有 activity.target 对象,则需要合并
41
+ *
42
+ * @param {Notification[]} notifications - 需要处理的通知数据
43
+ * @returns {Notification[]} - 合并后的通知数组
44
+ */
45
+ export declare const mergeAdjacentNotifications: (notifications: Notification[]) => Notification[];
46
+ /**
47
+ * 判断通知是否包含activity
48
+ * @param {Notification} notification - 通知对象
49
+ * @returns {boolean} - 是否包含activity
50
+ */
51
+ export declare const isIncludeActivity: (notification: Notification) => boolean;
52
+ /**
53
+ * 是否可以自动已读
54
+ */
55
+ export declare const canAutoRead: (notification: Notification | null | undefined) => boolean;
56
+ /**
57
+ * 获取 activity 的链接
58
+ * 链接的来源有两种
59
+ * 1. activity.meta.id
60
+ * 2. activity.target.id
61
+ * @param {Activity} activity - 活动对象
62
+ * @returns {Object | null} - 活动的链接
63
+ */
64
+ export declare const getActivityLink: (activity: Activity | null | undefined) => {
65
+ metaLink?: string | null;
66
+ targetLink?: string | null;
5
67
  } | null;
6
- declare function z(s: any): boolean;
7
- declare function M(s: any): any[];
8
- declare function _(s: any): string;
9
- declare function S(s: any, t: any, r?: boolean): Promise<string>;
10
- export { D as canAutoRead, R as getActivityLink, z as isIncludeActivity, M as mergeAdjacentNotifications, _ as sanitize, S as toClickableSpan };
68
+ export declare const toClickableSpan: (str: string, locale: string, isHighLight?: boolean) => Promise<string>;
69
+ export declare const sanitize: (innerHtml: string) => string;
70
+ export {};
@@ -1,4 +1,4 @@
1
- export { I as default };
2
- declare function I({ user: t }: {
3
- user: any;
4
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | "-";
1
+ import { User } from '../../@types';
2
+ export default function ConfigInviter({ user }: {
3
+ user: User;
4
+ }): import("react/jsx-runtime").JSX.Element | "-";
@@ -1,5 +1,5 @@
1
- export { B as default };
2
- declare function B({ user: a, onSave: s }: {
3
- user: any;
4
- onSave: any;
5
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { User } from '../../@types';
2
+ export default function ConfigProfile({ user, onSave }: {
3
+ user: User;
4
+ onSave: (type: 'profile') => void;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- export { H as default };
2
- declare function H(): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ export default function DangerZone(): import("react/jsx-runtime").JSX.Element;
@@ -1,43 +1,46 @@
1
- import { default as L } from 'react';
2
- declare const E: {
3
- ".MuiOutlinedInput-root": {
4
- "&:hover": {
1
+ import { default as React } from 'react';
2
+ import { TooltipProps } from '@mui/material';
3
+ interface EditableFieldProps {
4
+ value: string;
5
+ onChange?: (value: string) => void;
6
+ onValueValidate?: (value: string) => void;
7
+ editable?: boolean;
8
+ disabled?: boolean;
9
+ component?: 'input' | 'textarea';
10
+ placeholder?: string;
11
+ rows?: number;
12
+ maxLength?: number;
13
+ icon?: React.ReactNode;
14
+ label?: string | React.ReactNode;
15
+ children?: React.ReactNode;
16
+ tooltip?: TooltipProps['title'];
17
+ inline?: boolean;
18
+ style?: React.CSSProperties;
19
+ verified?: boolean;
20
+ errorMsg?: string;
21
+ canEdit?: boolean;
22
+ hidePreview?: boolean;
23
+ renderValue?: (value: string) => React.ReactNode;
24
+ }
25
+ /** only for sx */
26
+ export declare const commonInputStyle: {
27
+ '.MuiOutlinedInput-root': {
28
+ '&:hover': {
5
29
  fieldset: {
6
30
  borderColor: string;
7
31
  };
8
32
  };
9
- "&.Mui-focused": {
33
+ '&.Mui-focused': {
10
34
  fieldset: {
11
35
  borderColor: string;
12
36
  };
13
37
  };
14
38
  };
15
39
  };
16
- declare function re({ value: t, onChange: f, onValueValidate: c, errorMsg: i, editable: h, component: x, placeholder: a, rows: v, maxLength: r, icon: g, label: w, children: p, tooltip: I, inline: P, style: X, verified: Y, canEdit: k, renderValue: b, disabled: y, hidePreview: z }: {
17
- value: any;
18
- onChange?: (() => void) | undefined;
19
- onValueValidate?: (() => void) | undefined;
20
- errorMsg?: string | undefined;
21
- editable?: boolean | undefined;
22
- component?: string | undefined;
23
- placeholder?: string | undefined;
24
- rows?: number | undefined;
25
- maxLength?: undefined;
26
- icon?: undefined;
27
- label?: string | undefined;
28
- children?: undefined;
29
- tooltip?: undefined;
30
- inline?: boolean | undefined;
31
- style?: {} | undefined;
32
- verified?: boolean | undefined;
33
- canEdit?: boolean | undefined;
34
- renderValue?: undefined;
35
- disabled?: boolean | undefined;
36
- hidePreview?: boolean | undefined;
37
- }): L.ReactElement<unknown, string | L.JSXElementConstructor<any>> | null;
38
- declare const F: {
40
+ /** only for sx */
41
+ export declare const inputFieldStyle: {
39
42
  width: string;
40
- "& .MuiFormHelperText-root": {
43
+ '& .MuiFormHelperText-root': {
41
44
  position: string;
42
45
  bottom: number;
43
46
  left: number;
@@ -47,4 +50,5 @@ declare const F: {
47
50
  borderColor: string;
48
51
  };
49
52
  };
50
- export { E as commonInputStyle, re as default, F as inputFieldStyle };
53
+ declare function EditableField({ value, onChange, onValueValidate, errorMsg, editable, component, placeholder, rows, maxLength, icon, label, children, tooltip, inline, style, verified, canEdit, renderValue, disabled, hidePreview, }: EditableFieldProps): import("react/jsx-runtime").JSX.Element | null;
54
+ export default EditableField;
@@ -1,4 +1,4 @@
1
- export { H as default };
2
- declare function H({ user: p }: {
3
- user: any;
4
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { User } from '../../@types';
2
+ export default function Nft({ user }: {
3
+ user: User;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- export { ne as default };
2
- declare function ne({ user: a, isMobile: s }: {
3
- user: any;
4
- isMobile: any;
5
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { User } from '../../@types';
2
+ export default function Notification({ user, isMobile }: {
3
+ user: User;
4
+ isMobile: boolean;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- export { D as default };
2
- declare function D({ user: o, ...a }: {
3
- [x: string]: any;
4
- user: any;
5
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { BoxProps } from '@mui/material';
2
+ import { User } from '../../@types';
3
+ export default function Passport({ user, ...rest }: {
4
+ user: User;
5
+ } & BoxProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,11 @@
1
- export { A as default };
2
- declare function A({ configList: n, onSave: m }: {
3
- configList: any;
4
- onSave: any;
5
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ type PrivacyConfig = {
2
+ key: string;
3
+ name: string;
4
+ value: boolean;
5
+ isPrivate?: boolean;
6
+ };
7
+ export default function Privacy({ configList, onSave, }: {
8
+ configList: PrivacyConfig[];
9
+ onSave: (type: 'privacy') => void;
10
+ }): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -1,8 +1,10 @@
1
- export { O as default };
2
- declare function O({ user: i, settings: n, onSave: m, isMobile: s, ...a }: {
3
- [x: string]: any;
4
- user: any;
5
- settings: any;
6
- onSave: any;
7
- isMobile: any;
8
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { BoxProps } from '@mui/material';
2
+ import { User, UserCenterTab } from '../../@types';
3
+ export default function Settings({ user, settings, onSave, isMobile, ...rest }: {
4
+ user: User;
5
+ onSave: (type: 'privacy' | 'profile') => void;
6
+ settings: {
7
+ userCenterTabs: UserCenterTab[];
8
+ };
9
+ isMobile: boolean;
10
+ } & BoxProps): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,10 @@
1
- export { T as default };
2
- declare function T({ value: o, onChange: a, error: n, helperText: i, label: m, timezone: r }: {
3
- value: any;
4
- onChange: any;
5
- error?: undefined;
6
- helperText?: undefined;
7
- label?: undefined;
8
- timezone?: undefined;
9
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ interface DateTimeInputProps {
2
+ value: Date;
3
+ onChange: (value: Date) => void;
4
+ error?: boolean;
5
+ helperText?: string;
6
+ label?: string;
7
+ timezone?: string;
8
+ }
9
+ export default function DateTimeInput({ value, onChange, error, helperText, label, timezone, }: DateTimeInputProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -1,9 +1,12 @@
1
- export { go as default };
2
- declare function go({ open: j, onClose: u, data: m, selected: i, onSelect: h, timezone: F }: {
3
- open: any;
4
- onClose: any;
5
- data: any;
6
- selected: any;
7
- onSelect: any;
8
- timezone?: undefined;
9
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { UserMetadata } from '../../../@types';
2
+ import { StatusItem } from '../status-selector/menu-item';
3
+ interface StatusDialogProps {
4
+ open: boolean;
5
+ onClose: () => void;
6
+ data: Array<StatusItem>;
7
+ selected: UserMetadata['status'];
8
+ onSelect: (v: UserMetadata['status']) => void;
9
+ timezone?: string;
10
+ }
11
+ export default function StatusDialog({ open, onClose, data, selected, onSelect, timezone, }: StatusDialogProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -1,7 +1,7 @@
1
- declare const $: import('@emotion/styled').StyledComponent<import('@mui/material').MenuProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
2
- declare function I({ data: n, selected: r, onSelect: m }: {
3
- data: any;
4
- selected: any;
5
- onSelect: any;
6
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
7
- export { $ as MenuDiv, I as default };
1
+ import { BaseStatusProps, StatusItem } from './menu-item';
2
+ interface StatusDurationMenuProps extends BaseStatusProps {
3
+ data: StatusItem;
4
+ }
5
+ declare function DurationMenu({ data, selected, onSelect }: StatusDurationMenuProps): import("react/jsx-runtime").JSX.Element;
6
+ export default DurationMenu;
7
+ export declare const MenuDiv: import('@emotion/styled').StyledComponent<import('@mui/material').MenuProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;