@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.
- package/lib/@types/index.d.ts +3 -0
- package/lib/BlockletStudio/index.d.ts +26 -0
- package/lib/ComponentInstaller/index.d.ts +18 -0
- package/lib/ComponentInstaller/installer-item.d.ts +18 -0
- package/lib/{types/ComponentInstaller → ComponentInstaller}/locales.d.ts +2 -2
- package/lib/{types/ComponentInstaller → ComponentInstaller}/use-component-installed.d.ts +2 -2
- package/lib/ComponentManager/components/add-component.d.ts +13 -0
- package/lib/ComponentManager/components/check-component.d.ts +2 -0
- package/lib/ComponentManager/components/publish-component.d.ts +7 -0
- package/lib/ComponentManager/components/resource-dialog.d.ts +11 -0
- package/lib/ComponentManager/index.d.ts +4 -0
- package/lib/ComponentManager/libs/locales.d.ts +19 -0
- package/lib/Dashboard/index.d.ts +27 -0
- package/lib/Footer/brand.d.ts +15 -0
- package/lib/Footer/copyright.d.ts +13 -0
- package/lib/{types/Footer → Footer}/index.d.ts +2 -2
- package/lib/Footer/internal-footer.d.ts +29 -0
- package/lib/Footer/layout/plain.d.ts +19 -0
- package/lib/Footer/layout/row.d.ts +13 -0
- package/lib/Footer/layout/standard.d.ts +21 -0
- package/lib/Footer/links.d.ts +20 -0
- package/lib/Footer/social-media.d.ts +14 -0
- package/lib/Header/index.d.ts +13 -0
- package/lib/Icon/index.d.ts +7 -0
- package/lib/Notifications/Snackbar.d.ts +8 -0
- package/lib/Notifications/hooks/use-title.d.ts +9 -0
- package/lib/Notifications/hooks/use-width.d.ts +2 -0
- package/lib/Notifications/utils.d.ts +10 -0
- package/lib/UserCenter/components/config-inviter.d.ts +4 -0
- package/lib/UserCenter/components/config-profile.d.ts +5 -0
- package/lib/UserCenter/components/danger-zone.d.ts +2 -0
- package/lib/UserCenter/components/editable-field.d.ts +50 -0
- package/lib/UserCenter/components/nft.d.ts +4 -0
- package/lib/UserCenter/components/notification.d.ts +5 -0
- package/lib/UserCenter/components/passport.d.ts +5 -0
- package/lib/UserCenter/components/privacy.d.ts +5 -0
- package/lib/UserCenter/components/settings.d.ts +8 -0
- package/lib/UserCenter/components/status-dialog/date-picker.d.ts +9 -0
- package/lib/UserCenter/components/status-dialog/index.d.ts +9 -0
- package/lib/UserCenter/components/status-selector/duration-menu.d.ts +7 -0
- package/lib/UserCenter/components/status-selector/index.d.ts +8 -0
- package/lib/UserCenter/components/status-selector/menu-item.d.ts +9 -0
- package/lib/UserCenter/components/storage/action.d.ts +7 -0
- package/lib/UserCenter/components/storage/connected.d.ts +4 -0
- package/lib/UserCenter/components/storage/delete.d.ts +5 -0
- package/lib/UserCenter/components/storage/disconnect.d.ts +2 -0
- package/lib/UserCenter/components/storage/icons/empty-spaces-nft.svg.d.ts +3 -0
- package/lib/UserCenter/components/storage/index.d.ts +2 -0
- package/lib/UserCenter/components/storage/preview-nft.d.ts +5 -0
- package/lib/UserCenter/components/third-party-login/index.d.ts +4 -0
- package/lib/UserCenter/components/third-party-login/third-party-item.d.ts +4 -0
- package/lib/UserCenter/components/user-center.d.ts +15 -0
- package/lib/UserCenter/components/user-info/address.d.ts +7 -0
- package/lib/UserCenter/components/user-info/index.d.ts +5 -0
- package/lib/UserCenter/components/user-info/link-preview-input.d.ts +6 -0
- package/lib/UserCenter/components/user-info/metadata.d.ts +7 -0
- package/lib/UserCenter/components/user-info/switch-role.d.ts +6 -0
- package/lib/UserCenter/components/user-info/timezone-select.d.ts +7 -0
- package/lib/UserCenter/components/user-info/user-basic-info.d.ts +12 -0
- package/lib/UserCenter/components/user-info/user-info-item.d.ts +6 -0
- package/lib/UserCenter/components/user-info/user-info.d.ts +6 -0
- package/lib/UserCenter/components/user-info/user-status.d.ts +9 -0
- package/lib/UserCenter/components/user-info/utils.d.ts +33 -0
- package/lib/UserCenter/components/webhook-item.d.ts +10 -0
- package/lib/UserCenter/index.d.ts +2 -0
- package/lib/UserCenter/libs/locales.d.ts +513 -0
- package/lib/UserCenter/libs/utils.d.ts +3 -0
- package/lib/UserSessions/components/user-session-info.d.ts +5 -0
- package/lib/UserSessions/components/user-sessions.d.ts +8 -0
- package/lib/UserSessions/index.d.ts +2 -0
- package/lib/UserSessions/libs/locales.d.ts +88 -0
- package/lib/UserSessions/libs/utils.d.ts +3 -0
- package/lib/blocklets.d.ts +18 -0
- package/lib/common/domain-warning.d.ts +12 -0
- package/lib/common/header-addons.d.ts +19 -0
- package/lib/common/link-blocker.d.ts +4 -0
- package/lib/common/notification-addon.d.ts +10 -0
- package/lib/common/overridable-theme-provider.d.ts +12 -0
- package/lib/common/wallet-hidden-topbar.d.ts +2 -0
- package/lib/common/ws.d.ts +4 -0
- package/lib/contexts/config-user-space.d.ts +7 -0
- package/lib/hooks/use-mobile.d.ts +4 -0
- package/lib/index.d.ts +12 -0
- package/lib/libs/client.d.ts +3 -0
- package/lib/libs/constant.d.ts +2 -0
- package/lib/libs/spaces.d.ts +3 -0
- package/lib/libs/with-hide-when-embed.d.ts +5 -0
- package/lib/types.d.ts +37 -0
- package/lib/utils.d.ts +11 -0
- package/package.json +7 -7
- package/vite.config.mjs +1 -1
- package/lib/types/@types/index.d.ts +0 -204
- package/lib/types/BlockletStudio/index.d.ts +0 -27
- package/lib/types/ComponentInstaller/ComponentInstaller.stories.d.ts +0 -9
- package/lib/types/ComponentInstaller/demo/basic.d.ts +0 -29
- package/lib/types/ComponentInstaller/demo/mock-optional-components.d.ts +0 -2
- package/lib/types/ComponentInstaller/index.d.ts +0 -18
- package/lib/types/ComponentInstaller/installer-item.d.ts +0 -18
- package/lib/types/ComponentManager/components/add-component.d.ts +0 -16
- package/lib/types/ComponentManager/components/check-component.d.ts +0 -2
- package/lib/types/ComponentManager/components/publish-component.d.ts +0 -10
- package/lib/types/ComponentManager/components/resource-dialog.d.ts +0 -13
- package/lib/types/ComponentManager/index.d.ts +0 -3
- package/lib/types/ComponentManager/libs/locales.d.ts +0 -14
- package/lib/types/Dashboard/Dashboard.stories.d.ts +0 -13
- package/lib/types/Dashboard/demo/basic.d.ts +0 -29
- package/lib/types/Dashboard/index.d.ts +0 -30
- package/lib/types/Footer/Footer.stories.d.ts +0 -19
- package/lib/types/Footer/brand.d.ts +0 -15
- package/lib/types/Footer/copyright.d.ts +0 -13
- package/lib/types/Footer/demo/arcblock-site.d.ts +0 -31
- package/lib/types/Footer/demo/brand.d.ts +0 -1
- package/lib/types/Footer/demo/copyright.d.ts +0 -1
- package/lib/types/Footer/demo/footer.d.ts +0 -10
- package/lib/types/Footer/demo/links.d.ts +0 -1
- package/lib/types/Footer/demo/social-media-icons.d.ts +0 -1
- package/lib/types/Footer/internal-footer.d.ts +0 -32
- package/lib/types/Footer/layout/plain.d.ts +0 -22
- package/lib/types/Footer/layout/row.d.ts +0 -13
- package/lib/types/Footer/layout/standard.d.ts +0 -24
- package/lib/types/Footer/links.d.ts +0 -23
- package/lib/types/Footer/social-media.d.ts +0 -14
- package/lib/types/Header/Header.stories.d.ts +0 -26
- package/lib/types/Header/demo/addons-customization.d.ts +0 -11
- package/lib/types/Header/demo/basic.d.ts +0 -1
- package/lib/types/Header/demo/fixtures/index.d.ts +0 -49
- package/lib/types/Header/demo/with-enable-connect-enable-locale.d.ts +0 -1
- package/lib/types/Header/index.d.ts +0 -23
- package/lib/types/Icon/Icon.stories.d.ts +0 -12
- package/lib/types/Icon/demo/basic.d.ts +0 -1
- package/lib/types/Icon/index.d.ts +0 -9
- package/lib/types/Notifications/Snackbar.d.ts +0 -16
- package/lib/types/Notifications/hooks/use-title.d.ts +0 -48
- package/lib/types/Notifications/hooks/use-width.d.ts +0 -2
- package/lib/types/Notifications/utils.d.ts +0 -70
- package/lib/types/UserCenter/components/config-inviter.d.ts +0 -4
- package/lib/types/UserCenter/components/config-profile.d.ts +0 -5
- package/lib/types/UserCenter/components/danger-zone.d.ts +0 -1
- package/lib/types/UserCenter/components/editable-field.d.ts +0 -54
- package/lib/types/UserCenter/components/nft.d.ts +0 -4
- package/lib/types/UserCenter/components/notification.d.ts +0 -5
- package/lib/types/UserCenter/components/passport.d.ts +0 -5
- package/lib/types/UserCenter/components/privacy.d.ts +0 -11
- package/lib/types/UserCenter/components/settings.d.ts +0 -10
- package/lib/types/UserCenter/components/status-dialog/date-picker.d.ts +0 -10
- package/lib/types/UserCenter/components/status-dialog/index.d.ts +0 -12
- package/lib/types/UserCenter/components/status-selector/duration-menu.d.ts +0 -7
- package/lib/types/UserCenter/components/status-selector/index.d.ts +0 -9
- package/lib/types/UserCenter/components/status-selector/menu-item.d.ts +0 -24
- package/lib/types/UserCenter/components/storage/action.d.ts +0 -9
- package/lib/types/UserCenter/components/storage/connected.d.ts +0 -5
- package/lib/types/UserCenter/components/storage/delete.d.ts +0 -6
- package/lib/types/UserCenter/components/storage/disconnect.d.ts +0 -2
- package/lib/types/UserCenter/components/storage/index.d.ts +0 -2
- package/lib/types/UserCenter/components/storage/preview-nft.d.ts +0 -5
- package/lib/types/UserCenter/components/third-party-login/index.d.ts +0 -4
- package/lib/types/UserCenter/components/third-party-login/third-party-item.d.ts +0 -13
- package/lib/types/UserCenter/components/user-center.d.ts +0 -16
- package/lib/types/UserCenter/components/user-info/address.d.ts +0 -16
- package/lib/types/UserCenter/components/user-info/index.d.ts +0 -4
- package/lib/types/UserCenter/components/user-info/link-preview-input.d.ts +0 -5
- package/lib/types/UserCenter/components/user-info/metadata.d.ts +0 -10
- package/lib/types/UserCenter/components/user-info/switch-role.d.ts +0 -7
- package/lib/types/UserCenter/components/user-info/timezone-select.d.ts +0 -8
- package/lib/types/UserCenter/components/user-info/user-basic-info.d.ts +0 -13
- package/lib/types/UserCenter/components/user-info/user-info-item.d.ts +0 -11
- package/lib/types/UserCenter/components/user-info/user-info.d.ts +0 -6
- package/lib/types/UserCenter/components/user-info/user-status.d.ts +0 -9
- package/lib/types/UserCenter/components/user-info/utils.d.ts +0 -51
- package/lib/types/UserCenter/components/webhook-item.d.ts +0 -2
- package/lib/types/UserCenter/index.d.ts +0 -1
- package/lib/types/UserCenter/libs/locales.d.ts +0 -345
- package/lib/types/UserCenter/libs/utils.d.ts +0 -4
- package/lib/types/UserSessions/components/user-session-info.d.ts +0 -5
- package/lib/types/UserSessions/components/user-sessions.d.ts +0 -20
- package/lib/types/UserSessions/index.d.ts +0 -1
- package/lib/types/UserSessions/libs/locales.d.ts +0 -60
- package/lib/types/UserSessions/libs/utils.d.ts +0 -2
- package/lib/types/blocklets.d.ts +0 -17
- package/lib/types/common/domain-warning.d.ts +0 -12
- package/lib/types/common/header-addons.d.ts +0 -19
- package/lib/types/common/link-blocker.d.ts +0 -7
- package/lib/types/common/notification-addon.d.ts +0 -10
- package/lib/types/common/overridable-theme-provider.d.ts +0 -15
- package/lib/types/common/wallet-hidden-topbar.d.ts +0 -1
- package/lib/types/common/ws.d.ts +0 -3
- package/lib/types/contexts/config-user-space.d.ts +0 -27
- package/lib/types/hooks/use-mobile.d.ts +0 -4
- package/lib/types/index.d.ts +0 -10
- package/lib/types/libs/client.d.ts +0 -2
- package/lib/types/libs/constant.d.ts +0 -1
- package/lib/types/libs/spaces.d.ts +0 -2
- package/lib/types/libs/with-hide-when-embed.d.ts +0 -4
- package/lib/types/types.d.ts +0 -36
- package/lib/types/utils.d.ts +0 -10
|
@@ -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,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,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,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,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,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 +0,0 @@
|
|
|
1
|
-
export { default as UserCenter } from './components/user-center';
|