@blocklet/ui-react 3.0.3 → 3.0.5

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 (195) hide show
  1. package/lib/@types/index.d.ts +3 -0
  2. package/lib/BlockletStudio/index.d.ts +26 -0
  3. package/lib/ComponentInstaller/index.d.ts +18 -0
  4. package/lib/ComponentInstaller/installer-item.d.ts +18 -0
  5. package/lib/{types/ComponentInstaller → ComponentInstaller}/locales.d.ts +2 -2
  6. package/lib/{types/ComponentInstaller → ComponentInstaller}/use-component-installed.d.ts +2 -2
  7. package/lib/ComponentManager/components/add-component.d.ts +13 -0
  8. package/lib/ComponentManager/components/check-component.d.ts +2 -0
  9. package/lib/ComponentManager/components/publish-component.d.ts +7 -0
  10. package/lib/ComponentManager/components/resource-dialog.d.ts +11 -0
  11. package/lib/ComponentManager/index.d.ts +4 -0
  12. package/lib/ComponentManager/libs/locales.d.ts +19 -0
  13. package/lib/Dashboard/index.d.ts +27 -0
  14. package/lib/Footer/brand.d.ts +15 -0
  15. package/lib/Footer/copyright.d.ts +13 -0
  16. package/lib/{types/Footer → Footer}/index.d.ts +2 -2
  17. package/lib/Footer/internal-footer.d.ts +29 -0
  18. package/lib/Footer/layout/plain.d.ts +19 -0
  19. package/lib/Footer/layout/row.d.ts +13 -0
  20. package/lib/Footer/layout/standard.d.ts +21 -0
  21. package/lib/Footer/links.d.ts +20 -0
  22. package/lib/Footer/social-media.d.ts +14 -0
  23. package/lib/Header/index.d.ts +13 -0
  24. package/lib/Icon/index.d.ts +7 -0
  25. package/lib/Notifications/Snackbar.d.ts +8 -0
  26. package/lib/Notifications/hooks/use-title.d.ts +9 -0
  27. package/lib/Notifications/hooks/use-width.d.ts +2 -0
  28. package/lib/Notifications/utils.d.ts +10 -0
  29. package/lib/UserCenter/components/config-inviter.d.ts +4 -0
  30. package/lib/UserCenter/components/config-profile.d.ts +5 -0
  31. package/lib/UserCenter/components/danger-zone.d.ts +2 -0
  32. package/lib/UserCenter/components/editable-field.d.ts +50 -0
  33. package/lib/UserCenter/components/nft.d.ts +4 -0
  34. package/lib/UserCenter/components/notification.d.ts +5 -0
  35. package/lib/UserCenter/components/passport.d.ts +5 -0
  36. package/lib/UserCenter/components/privacy.d.ts +5 -0
  37. package/lib/UserCenter/components/settings.d.ts +8 -0
  38. package/lib/UserCenter/components/status-dialog/date-picker.d.ts +9 -0
  39. package/lib/UserCenter/components/status-dialog/index.d.ts +9 -0
  40. package/lib/UserCenter/components/status-selector/duration-menu.d.ts +7 -0
  41. package/lib/UserCenter/components/status-selector/index.d.ts +8 -0
  42. package/lib/UserCenter/components/status-selector/menu-item.d.ts +9 -0
  43. package/lib/UserCenter/components/storage/action.d.ts +7 -0
  44. package/lib/UserCenter/components/storage/connected.d.ts +4 -0
  45. package/lib/UserCenter/components/storage/delete.d.ts +5 -0
  46. package/lib/UserCenter/components/storage/disconnect.d.ts +2 -0
  47. package/lib/UserCenter/components/storage/icons/empty-spaces-nft.svg.d.ts +3 -0
  48. package/lib/UserCenter/components/storage/index.d.ts +2 -0
  49. package/lib/UserCenter/components/storage/preview-nft.d.ts +5 -0
  50. package/lib/UserCenter/components/third-party-login/index.d.ts +4 -0
  51. package/lib/UserCenter/components/third-party-login/third-party-item.d.ts +4 -0
  52. package/lib/UserCenter/components/user-center.d.ts +15 -0
  53. package/lib/UserCenter/components/user-info/address.d.ts +7 -0
  54. package/lib/UserCenter/components/user-info/index.d.ts +5 -0
  55. package/lib/UserCenter/components/user-info/link-preview-input.d.ts +6 -0
  56. package/lib/UserCenter/components/user-info/metadata.d.ts +7 -0
  57. package/lib/UserCenter/components/user-info/switch-role.d.ts +6 -0
  58. package/lib/UserCenter/components/user-info/timezone-select.d.ts +7 -0
  59. package/lib/UserCenter/components/user-info/user-basic-info.d.ts +12 -0
  60. package/lib/UserCenter/components/user-info/user-info-item.d.ts +6 -0
  61. package/lib/UserCenter/components/user-info/user-info.d.ts +6 -0
  62. package/lib/UserCenter/components/user-info/user-status.d.ts +9 -0
  63. package/lib/UserCenter/components/user-info/utils.d.ts +33 -0
  64. package/lib/UserCenter/components/webhook-item.d.ts +10 -0
  65. package/lib/UserCenter/index.d.ts +2 -0
  66. package/lib/UserCenter/libs/locales.d.ts +513 -0
  67. package/lib/UserCenter/libs/utils.d.ts +3 -0
  68. package/lib/UserSessions/components/user-session-info.d.ts +5 -0
  69. package/lib/UserSessions/components/user-sessions.d.ts +8 -0
  70. package/lib/UserSessions/index.d.ts +2 -0
  71. package/lib/UserSessions/libs/locales.d.ts +88 -0
  72. package/lib/UserSessions/libs/utils.d.ts +3 -0
  73. package/lib/blocklets.d.ts +18 -0
  74. package/lib/common/domain-warning.d.ts +12 -0
  75. package/lib/common/header-addons.d.ts +19 -0
  76. package/lib/common/link-blocker.d.ts +4 -0
  77. package/lib/common/notification-addon.d.ts +10 -0
  78. package/lib/common/overridable-theme-provider.d.ts +12 -0
  79. package/lib/common/wallet-hidden-topbar.d.ts +2 -0
  80. package/lib/common/ws.d.ts +4 -0
  81. package/lib/contexts/config-user-space.d.ts +7 -0
  82. package/lib/hooks/use-mobile.d.ts +4 -0
  83. package/lib/index.d.ts +12 -0
  84. package/lib/libs/client.d.ts +3 -0
  85. package/lib/libs/constant.d.ts +2 -0
  86. package/lib/libs/spaces.d.ts +3 -0
  87. package/lib/libs/with-hide-when-embed.d.ts +5 -0
  88. package/lib/types.d.ts +37 -0
  89. package/lib/utils.d.ts +11 -0
  90. package/package.json +7 -7
  91. package/vite.config.mjs +1 -1
  92. package/lib/types/@types/index.d.ts +0 -204
  93. package/lib/types/BlockletStudio/index.d.ts +0 -27
  94. package/lib/types/ComponentInstaller/ComponentInstaller.stories.d.ts +0 -9
  95. package/lib/types/ComponentInstaller/demo/basic.d.ts +0 -29
  96. package/lib/types/ComponentInstaller/demo/mock-optional-components.d.ts +0 -2
  97. package/lib/types/ComponentInstaller/index.d.ts +0 -18
  98. package/lib/types/ComponentInstaller/installer-item.d.ts +0 -18
  99. package/lib/types/ComponentManager/components/add-component.d.ts +0 -16
  100. package/lib/types/ComponentManager/components/check-component.d.ts +0 -2
  101. package/lib/types/ComponentManager/components/publish-component.d.ts +0 -10
  102. package/lib/types/ComponentManager/components/resource-dialog.d.ts +0 -13
  103. package/lib/types/ComponentManager/index.d.ts +0 -3
  104. package/lib/types/ComponentManager/libs/locales.d.ts +0 -14
  105. package/lib/types/Dashboard/Dashboard.stories.d.ts +0 -13
  106. package/lib/types/Dashboard/demo/basic.d.ts +0 -29
  107. package/lib/types/Dashboard/index.d.ts +0 -30
  108. package/lib/types/Footer/Footer.stories.d.ts +0 -19
  109. package/lib/types/Footer/brand.d.ts +0 -15
  110. package/lib/types/Footer/copyright.d.ts +0 -13
  111. package/lib/types/Footer/demo/arcblock-site.d.ts +0 -31
  112. package/lib/types/Footer/demo/brand.d.ts +0 -1
  113. package/lib/types/Footer/demo/copyright.d.ts +0 -1
  114. package/lib/types/Footer/demo/footer.d.ts +0 -10
  115. package/lib/types/Footer/demo/links.d.ts +0 -1
  116. package/lib/types/Footer/demo/social-media-icons.d.ts +0 -1
  117. package/lib/types/Footer/internal-footer.d.ts +0 -32
  118. package/lib/types/Footer/layout/plain.d.ts +0 -22
  119. package/lib/types/Footer/layout/row.d.ts +0 -13
  120. package/lib/types/Footer/layout/standard.d.ts +0 -24
  121. package/lib/types/Footer/links.d.ts +0 -23
  122. package/lib/types/Footer/social-media.d.ts +0 -14
  123. package/lib/types/Header/Header.stories.d.ts +0 -26
  124. package/lib/types/Header/demo/addons-customization.d.ts +0 -11
  125. package/lib/types/Header/demo/basic.d.ts +0 -1
  126. package/lib/types/Header/demo/fixtures/index.d.ts +0 -49
  127. package/lib/types/Header/demo/with-enable-connect-enable-locale.d.ts +0 -1
  128. package/lib/types/Header/index.d.ts +0 -23
  129. package/lib/types/Icon/Icon.stories.d.ts +0 -12
  130. package/lib/types/Icon/demo/basic.d.ts +0 -1
  131. package/lib/types/Icon/index.d.ts +0 -9
  132. package/lib/types/Notifications/Snackbar.d.ts +0 -16
  133. package/lib/types/Notifications/hooks/use-title.d.ts +0 -48
  134. package/lib/types/Notifications/hooks/use-width.d.ts +0 -2
  135. package/lib/types/Notifications/utils.d.ts +0 -70
  136. package/lib/types/UserCenter/components/config-inviter.d.ts +0 -4
  137. package/lib/types/UserCenter/components/config-profile.d.ts +0 -5
  138. package/lib/types/UserCenter/components/danger-zone.d.ts +0 -1
  139. package/lib/types/UserCenter/components/editable-field.d.ts +0 -54
  140. package/lib/types/UserCenter/components/nft.d.ts +0 -4
  141. package/lib/types/UserCenter/components/notification.d.ts +0 -5
  142. package/lib/types/UserCenter/components/passport.d.ts +0 -5
  143. package/lib/types/UserCenter/components/privacy.d.ts +0 -11
  144. package/lib/types/UserCenter/components/settings.d.ts +0 -10
  145. package/lib/types/UserCenter/components/status-dialog/date-picker.d.ts +0 -10
  146. package/lib/types/UserCenter/components/status-dialog/index.d.ts +0 -12
  147. package/lib/types/UserCenter/components/status-selector/duration-menu.d.ts +0 -7
  148. package/lib/types/UserCenter/components/status-selector/index.d.ts +0 -9
  149. package/lib/types/UserCenter/components/status-selector/menu-item.d.ts +0 -24
  150. package/lib/types/UserCenter/components/storage/action.d.ts +0 -9
  151. package/lib/types/UserCenter/components/storage/connected.d.ts +0 -5
  152. package/lib/types/UserCenter/components/storage/delete.d.ts +0 -6
  153. package/lib/types/UserCenter/components/storage/disconnect.d.ts +0 -2
  154. package/lib/types/UserCenter/components/storage/index.d.ts +0 -2
  155. package/lib/types/UserCenter/components/storage/preview-nft.d.ts +0 -5
  156. package/lib/types/UserCenter/components/third-party-login/index.d.ts +0 -4
  157. package/lib/types/UserCenter/components/third-party-login/third-party-item.d.ts +0 -13
  158. package/lib/types/UserCenter/components/user-center.d.ts +0 -16
  159. package/lib/types/UserCenter/components/user-info/address.d.ts +0 -16
  160. package/lib/types/UserCenter/components/user-info/index.d.ts +0 -4
  161. package/lib/types/UserCenter/components/user-info/link-preview-input.d.ts +0 -5
  162. package/lib/types/UserCenter/components/user-info/metadata.d.ts +0 -10
  163. package/lib/types/UserCenter/components/user-info/switch-role.d.ts +0 -7
  164. package/lib/types/UserCenter/components/user-info/timezone-select.d.ts +0 -8
  165. package/lib/types/UserCenter/components/user-info/user-basic-info.d.ts +0 -13
  166. package/lib/types/UserCenter/components/user-info/user-info-item.d.ts +0 -11
  167. package/lib/types/UserCenter/components/user-info/user-info.d.ts +0 -6
  168. package/lib/types/UserCenter/components/user-info/user-status.d.ts +0 -9
  169. package/lib/types/UserCenter/components/user-info/utils.d.ts +0 -51
  170. package/lib/types/UserCenter/components/webhook-item.d.ts +0 -2
  171. package/lib/types/UserCenter/index.d.ts +0 -1
  172. package/lib/types/UserCenter/libs/locales.d.ts +0 -345
  173. package/lib/types/UserCenter/libs/utils.d.ts +0 -4
  174. package/lib/types/UserSessions/components/user-session-info.d.ts +0 -5
  175. package/lib/types/UserSessions/components/user-sessions.d.ts +0 -20
  176. package/lib/types/UserSessions/index.d.ts +0 -1
  177. package/lib/types/UserSessions/libs/locales.d.ts +0 -60
  178. package/lib/types/UserSessions/libs/utils.d.ts +0 -2
  179. package/lib/types/blocklets.d.ts +0 -17
  180. package/lib/types/common/domain-warning.d.ts +0 -12
  181. package/lib/types/common/header-addons.d.ts +0 -19
  182. package/lib/types/common/link-blocker.d.ts +0 -7
  183. package/lib/types/common/notification-addon.d.ts +0 -10
  184. package/lib/types/common/overridable-theme-provider.d.ts +0 -15
  185. package/lib/types/common/wallet-hidden-topbar.d.ts +0 -1
  186. package/lib/types/common/ws.d.ts +0 -3
  187. package/lib/types/contexts/config-user-space.d.ts +0 -27
  188. package/lib/types/hooks/use-mobile.d.ts +0 -4
  189. package/lib/types/index.d.ts +0 -10
  190. package/lib/types/libs/client.d.ts +0 -2
  191. package/lib/types/libs/constant.d.ts +0 -1
  192. package/lib/types/libs/spaces.d.ts +0 -2
  193. package/lib/types/libs/with-hide-when-embed.d.ts +0 -4
  194. package/lib/types/types.d.ts +0 -36
  195. package/lib/types/utils.d.ts +0 -10
@@ -1,5 +0,0 @@
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 +0,0 @@
1
- export default function DangerZone(): import("react/jsx-runtime").JSX.Element;
@@ -1,54 +0,0 @@
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': {
29
- fieldset: {
30
- borderColor: string;
31
- };
32
- };
33
- '&.Mui-focused': {
34
- fieldset: {
35
- borderColor: string;
36
- };
37
- };
38
- };
39
- };
40
- /** only for sx */
41
- export declare const inputFieldStyle: {
42
- width: string;
43
- '& .MuiFormHelperText-root': {
44
- position: string;
45
- bottom: number;
46
- left: number;
47
- margin: number;
48
- };
49
- fieldset: {
50
- borderColor: string;
51
- };
52
- };
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 +0,0 @@
1
- import { User } from '../../@types';
2
- export default function Nft({ user }: {
3
- user: User;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
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 +0,0 @@
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,11 +0,0 @@
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,10 +0,0 @@
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,10 +0,0 @@
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,12 +0,0 @@
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 +0,0 @@
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>, {}, {}>;
@@ -1,9 +0,0 @@
1
- import { PopoverProps } from '@mui/material';
2
- import { BaseStatusProps, StatusItem } from './menu-item';
3
- interface StatusSelectorProps extends BaseStatusProps {
4
- data: Array<StatusItem>;
5
- open: boolean;
6
- anchorEl?: PopoverProps['anchorEl'];
7
- }
8
- declare function StatusSelector({ data, open, onSelect, anchorEl, selected }: StatusSelectorProps): import("react/jsx-runtime").JSX.Element;
9
- export default StatusSelector;
@@ -1,24 +0,0 @@
1
- import { SvgIconProps } from '@mui/material';
2
- import { default as React } from 'react';
3
- import { UserMetadata } from '../../../@types';
4
- interface StatusMenuItemProps {
5
- icon?: React.FC<SvgIconProps>;
6
- selected?: boolean;
7
- onClick: (e: React.MouseEvent<HTMLElement>) => void;
8
- children: React.ReactNode;
9
- }
10
- export default function StatusMenuItem({ icon, selected, onClick, children }: StatusMenuItemProps): import("react/jsx-runtime").JSX.Element;
11
- export declare const StyledMenu: import('@emotion/styled').StyledComponent<import('@mui/material').MenuProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
12
- export interface StatusItem {
13
- id: string;
14
- name: string;
15
- icon?: React.FC<SvgIconProps>;
16
- duration?: string;
17
- durationName?: string;
18
- children?: Array<StatusItem>;
19
- }
20
- export interface BaseStatusProps {
21
- selected: UserMetadata['status'];
22
- onSelect: (v: UserMetadata['status']) => void;
23
- }
24
- export {};
@@ -1,9 +0,0 @@
1
- import { DIDSpaceGateway, DIDSpaceStatus } from '@blocklet/did-space-react';
2
- import { Session } from '../../../@types';
3
- declare function Action({ session, spaceGateway, spaceStatus, refresh, }: {
4
- session: Session;
5
- spaceGateway: DIDSpaceGateway;
6
- spaceStatus: DIDSpaceStatus;
7
- refresh: Function;
8
- }): import("react/jsx-runtime").JSX.Element;
9
- export default Action;
@@ -1,5 +0,0 @@
1
- import { SpaceGateway } from '../../../contexts/config-user-space';
2
- declare function Connected({ spaceGateway }: {
3
- spaceGateway: SpaceGateway | undefined;
4
- }): import("react/jsx-runtime").JSX.Element;
5
- export default Connected;
@@ -1,6 +0,0 @@
1
- import { SpaceGateway } from '../../../contexts/config-user-space';
2
- declare function SpaceDelete({ spaceGateway, onDeleteSpace, }: {
3
- spaceGateway: SpaceGateway;
4
- onDeleteSpace: (spaceGateway: SpaceGateway) => Promise<void>;
5
- }): import("react/jsx-runtime").JSX.Element;
6
- export default SpaceDelete;
@@ -1,2 +0,0 @@
1
- declare function Disconnect(): import("react/jsx-runtime").JSX.Element;
2
- export default Disconnect;
@@ -1,2 +0,0 @@
1
- declare function DidSpace(): import("react/jsx-runtime").JSX.Element;
2
- export default DidSpace;
@@ -1,5 +0,0 @@
1
- declare function PreviewSpaceNft({ src, alt }: {
2
- src: string;
3
- alt: string;
4
- }): import("react/jsx-runtime").JSX.Element;
5
- export default PreviewSpaceNft;
@@ -1,4 +0,0 @@
1
- import { User } from '../../../@types';
2
- export default function ThirdPartyLogin({ user }: {
3
- user: User;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +0,0 @@
1
- import { OAuthAccount } from '../../../@types';
2
- export default function ThirdPartyItem({ item, }: {
3
- item: {
4
- provider: string;
5
- did: string;
6
- pk: string;
7
- userInfo?: OAuthAccount['userInfo'];
8
- id: string;
9
- _bind?: boolean;
10
- _rawProvider?: string;
11
- _mainProvider?: boolean;
12
- };
13
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,16 +0,0 @@
1
- import { BoxProps } from '@mui/material';
2
- export default function UserCenter({ children, notLoginContent, currentTab, contentProps, disableAutoRedirect, hideFooter, headerProps, footerProps, userDid, stickySidebar, embed, onlyProfile, }: {
3
- readonly children: any;
4
- readonly notLoginContent: any;
5
- readonly currentTab: string;
6
- readonly contentProps?: BoxProps;
7
- readonly disableAutoRedirect?: boolean;
8
- readonly autoPopupSetting?: boolean;
9
- readonly hideFooter?: boolean;
10
- readonly headerProps?: any;
11
- readonly footerProps?: any;
12
- readonly userDid?: string;
13
- readonly stickySidebar?: boolean;
14
- readonly embed?: boolean;
15
- readonly onlyProfile?: boolean;
16
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,16 +0,0 @@
1
- import { UserAddress } from '../../../@types';
2
- interface AddressErrors {
3
- country?: string;
4
- province?: string;
5
- city?: string;
6
- line1?: string;
7
- line2?: string;
8
- postalCode?: string;
9
- }
10
- export default function AddressEditor({ address, errors, handleChange, defaultCountry, }: {
11
- address: UserAddress;
12
- errors: AddressErrors;
13
- handleChange: (field: keyof UserAddress, value: string) => void;
14
- defaultCountry: string;
15
- }): import("react/jsx-runtime").JSX.Element;
16
- export {};
@@ -1,4 +0,0 @@
1
- export { default as UserBasicInfo } from './user-basic-info';
2
- export { default as UserInfoItem } from './user-info-item';
3
- export { default as UserInfo } from './user-info';
4
- export { default as SwitchRole } from './switch-role';
@@ -1,5 +0,0 @@
1
- export declare function LinkPreviewInput({ editable, links, onChange, }: {
2
- editable?: boolean;
3
- links: string[];
4
- onChange: (links: string[]) => void;
5
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- import { User, UserAddress, UserMetadata } from '../../../@types';
2
- export default function UserMetadataComponent({ isMyself, user, onSave, isMobile, }: {
3
- isMobile: boolean;
4
- isMyself: boolean;
5
- user: User;
6
- onSave: (v: {
7
- metadata: UserMetadata;
8
- address: UserAddress;
9
- }) => void;
10
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { User } from '../../../@types';
2
- declare function SwitchRole({ user, switchPassport }: {
3
- user: User;
4
- switchPassport: () => void;
5
- }): import("react/jsx-runtime").JSX.Element;
6
- declare const _default: import('react').MemoExoticComponent<typeof SwitchRole>;
7
- export default _default;
@@ -1,8 +0,0 @@
1
- interface TimezoneSelectProps {
2
- value: string;
3
- onChange: (value: string) => void;
4
- disabled?: boolean;
5
- mode?: 'drawer' | 'self';
6
- }
7
- export declare function TimezoneSelect({ value, onChange, disabled, mode }: TimezoneSelectProps): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,13 +0,0 @@
1
- import { BoxProps } from '@mui/material';
2
- import { User } from '../../../@types';
3
- export default function UserBasicInfo({ user, isMyself, showFullDid, switchPassport, switchProfile, isMobile, onlyProfile, refreshProfile, ...rest }: {
4
- user: User;
5
- isMyself?: boolean;
6
- showFullDid?: boolean;
7
- switchPassport: () => void;
8
- switchProfile: () => void;
9
- size?: number;
10
- isMobile?: boolean;
11
- onlyProfile?: boolean;
12
- refreshProfile: () => void;
13
- } & BoxProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,11 +0,0 @@
1
- import { BoxProps } from '@mui/material';
2
- type TUserInfoItemProps = {
3
- data: {
4
- icon: any;
5
- title: string;
6
- content: any;
7
- };
8
- verified?: boolean;
9
- };
10
- export default function UserInfoItem({ data, verified, ...rest }: TUserInfoItemProps & BoxProps): import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,6 +0,0 @@
1
- import { BoxProps } from '@mui/material';
2
- import { User } from '../../../@types';
3
- export default function UserInfo({ user, isMySelf, ...rest }: {
4
- user: User;
5
- isMySelf: boolean;
6
- } & BoxProps): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- import { UserMetadata } from '../../../@types';
2
- export default function UserStatus({ isMobile, size, isMyself, status, onChange, timezone, }: {
3
- isMobile?: boolean;
4
- size: number;
5
- isMyself: boolean;
6
- status: UserMetadata['status'];
7
- onChange: (v: UserMetadata['status']) => void;
8
- timezone?: string;
9
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,51 +0,0 @@
1
- import { UserMetadata } from '../../../@types';
2
- export declare const currentTimezone: string;
3
- export declare const getTimezones: () => {
4
- label: string;
5
- value: string;
6
- }[];
7
- export declare const isValidUrl: (url: string) => boolean;
8
- /**
9
- * 根据 duration 类型,计算出date range
10
- * @param status
11
- * @returns
12
- */
13
- export declare const getStatusDuration: (status: UserMetadata["status"]) => Date[];
14
- /**
15
- * 根据状态的 duration,判断是否在时间范围内
16
- * @param status
17
- * @returns
18
- */
19
- export declare const isWithinTimeRange: (dateRange: [Date, Date]) => boolean;
20
- /**
21
- * 判断状态持续时间是否为不可清除
22
- * @param status
23
- * @returns
24
- */
25
- export declare const isNotClear: (status: UserMetadata["status"]) => boolean;
26
- /**
27
- * 获取当前时间距离结束时间还有多久
28
- */
29
- export declare const getTimeRemaining: (date: Date) => number;
30
- export declare const defaultButtonStyle: {
31
- color: string;
32
- borderColor: string;
33
- backgroundColor: string;
34
- '&:hover': {
35
- borderColor: string;
36
- backgroundColor: string;
37
- };
38
- py: number;
39
- borderRadius: number;
40
- };
41
- export declare const primaryButtonStyle: {
42
- color: string;
43
- borderColor: string;
44
- backgroundColor: string;
45
- '&:hover': {
46
- borderColor: string;
47
- backgroundColor: string;
48
- };
49
- py: number;
50
- borderRadius: number;
51
- };
@@ -1,2 +0,0 @@
1
- import { WebhookItemProps } from '../../@types';
2
- export default function WebhookItem({ onTest, onDelete, onSave, onCancel, type, url, edit, }: WebhookItemProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export { default as UserCenter } from './components/user-center';