@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.
- package/lib/@types/index.d.ts +204 -3
- package/lib/BlockletStudio/index.d.ts +27 -26
- package/lib/ComponentInstaller/index.d.ts +15 -15
- package/lib/ComponentInstaller/installer-item.d.ts +10 -10
- package/lib/ComponentInstaller/locales.d.ts +2 -2
- package/lib/ComponentInstaller/use-component-installed.d.ts +2 -2
- package/lib/ComponentManager/components/add-component.d.ts +16 -13
- package/lib/ComponentManager/components/check-component.d.ts +2 -2
- package/lib/ComponentManager/components/publish-component.d.ts +10 -7
- package/lib/ComponentManager/components/resource-dialog.d.ts +13 -11
- package/lib/ComponentManager/index.d.ts +3 -4
- package/lib/ComponentManager/libs/locales.d.ts +14 -19
- package/lib/Dashboard/index.d.ts +16 -13
- package/lib/Footer/brand.d.ts +8 -8
- package/lib/Footer/copyright.d.ts +7 -7
- package/lib/Footer/index.d.ts +2 -2
- package/lib/Footer/internal-footer.d.ts +25 -22
- package/lib/Footer/layout/plain.d.ts +15 -12
- package/lib/Footer/layout/row.d.ts +7 -7
- package/lib/Footer/layout/standard.d.ts +16 -13
- package/lib/Footer/links.d.ts +15 -12
- package/lib/Footer/social-media.d.ts +8 -8
- package/lib/Header/index.d.ts +23 -13
- package/lib/Icon/index.d.ts +9 -7
- package/lib/Notifications/Snackbar.d.ts +16 -8
- package/lib/Notifications/hooks/use-title.d.ts +48 -9
- package/lib/Notifications/hooks/use-width.d.ts +2 -2
- package/lib/Notifications/utils.d.ts +69 -9
- package/lib/UserCenter/components/config-inviter.d.ts +4 -4
- package/lib/UserCenter/components/config-profile.d.ts +5 -5
- package/lib/UserCenter/components/danger-zone.d.ts +1 -2
- package/lib/UserCenter/components/editable-field.d.ts +34 -30
- package/lib/UserCenter/components/nft.d.ts +4 -4
- package/lib/UserCenter/components/notification.d.ts +5 -5
- package/lib/UserCenter/components/passport.d.ts +5 -5
- package/lib/UserCenter/components/privacy.d.ts +11 -5
- package/lib/UserCenter/components/settings.d.ts +10 -8
- package/lib/UserCenter/components/status-dialog/date-picker.d.ts +10 -9
- package/lib/UserCenter/components/status-dialog/index.d.ts +12 -9
- package/lib/UserCenter/components/status-selector/duration-menu.d.ts +7 -7
- package/lib/UserCenter/components/status-selector/index.d.ts +9 -8
- package/lib/UserCenter/components/status-selector/menu-item.d.ts +24 -9
- package/lib/UserCenter/components/storage/action.d.ts +9 -7
- package/lib/UserCenter/components/storage/connected.d.ts +5 -4
- package/lib/UserCenter/components/storage/delete.d.ts +6 -5
- package/lib/UserCenter/components/storage/disconnect.d.ts +2 -2
- package/lib/UserCenter/components/storage/index.d.ts +2 -2
- package/lib/UserCenter/components/storage/preview-nft.d.ts +5 -5
- package/lib/UserCenter/components/third-party-login/index.d.ts +4 -4
- package/lib/UserCenter/components/third-party-login/third-party-item.d.ts +13 -4
- package/lib/UserCenter/components/user-center.d.ts +16 -15
- package/lib/UserCenter/components/user-info/address.d.ts +16 -7
- package/lib/UserCenter/components/user-info/index.d.ts +4 -5
- package/lib/UserCenter/components/user-info/link-preview-input.d.ts +5 -6
- package/lib/UserCenter/components/user-info/metadata.d.ts +10 -7
- package/lib/UserCenter/components/user-info/switch-role.d.ts +7 -6
- package/lib/UserCenter/components/user-info/timezone-select.d.ts +8 -7
- package/lib/UserCenter/components/user-info/user-basic-info.d.ts +13 -12
- package/lib/UserCenter/components/user-info/user-info-item.d.ts +11 -6
- package/lib/UserCenter/components/user-info/user-info.d.ts +6 -6
- package/lib/UserCenter/components/user-info/user-status.d.ts +9 -9
- package/lib/UserCenter/components/user-info/utils.d.ts +33 -15
- package/lib/UserCenter/components/webhook-item.d.ts +2 -10
- package/lib/UserCenter/index.d.ts +1 -2
- package/lib/UserCenter/libs/locales.d.ts +345 -513
- package/lib/UserCenter/libs/utils.d.ts +4 -3
- package/lib/UserSessions/components/user-session-info.d.ts +5 -5
- package/lib/UserSessions/components/user-sessions.d.ts +20 -8
- package/lib/UserSessions/index.d.ts +1 -2
- package/lib/UserSessions/libs/locales.d.ts +60 -88
- package/lib/UserSessions/libs/utils.d.ts +2 -3
- package/lib/blocklets.d.ts +9 -10
- package/lib/common/domain-warning.d.ts +7 -7
- package/lib/common/header-addons.d.ts +9 -9
- package/lib/common/link-blocker.d.ts +6 -3
- package/lib/common/notification-addon.d.ts +6 -6
- package/lib/common/overridable-theme-provider.d.ts +10 -7
- package/lib/common/wallet-hidden-topbar.d.ts +1 -2
- package/lib/common/ws.d.ts +3 -4
- package/lib/contexts/config-user-space.d.ts +27 -7
- package/lib/hooks/use-mobile.d.ts +3 -3
- package/lib/index.d.ts +10 -12
- package/lib/libs/client.d.ts +2 -3
- package/lib/libs/constant.d.ts +1 -2
- package/lib/libs/spaces.d.ts +2 -3
- package/lib/libs/with-hide-when-embed.d.ts +2 -3
- package/lib/types.d.ts +31 -32
- package/lib/utils.d.ts +10 -11
- package/package.json +9 -9
- package/lib/UserCenter/components/storage/icons/empty-spaces-nft.svg.d.ts +0 -3
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
anchorEl?:
|
|
7
|
-
|
|
8
|
-
|
|
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,9 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
declare function
|
|
3
|
-
spaceGateway:
|
|
4
|
-
}): import(
|
|
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,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
declare function
|
|
3
|
-
spaceGateway:
|
|
4
|
-
onDeleteSpace:
|
|
5
|
-
}): import(
|
|
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 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
declare function Disconnect(): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default Disconnect;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
declare function DidSpace(): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default DidSpace;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
user:
|
|
4
|
-
}): import(
|
|
1
|
+
import { User } from '../../../@types';
|
|
2
|
+
export default function ThirdPartyLogin({ user }: {
|
|
3
|
+
user: User;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
item:
|
|
4
|
-
|
|
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,15 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
children: any;
|
|
4
|
-
notLoginContent?:
|
|
5
|
-
currentTab:
|
|
6
|
-
contentProps?:
|
|
7
|
-
disableAutoRedirect?: boolean
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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,7 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { m as SwitchRole, f as UserBasicInfo, s as UserInfo, t as UserInfoItem };
|
|
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,6 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
links
|
|
5
|
-
|
|
6
|
-
}): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
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,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
value:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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,12 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
user:
|
|
5
|
-
isMyself?: boolean
|
|
6
|
-
showFullDid?: boolean
|
|
7
|
-
switchPassport:
|
|
8
|
-
switchProfile:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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,6 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
user:
|
|
5
|
-
isMySelf?: boolean
|
|
6
|
-
}): import(
|
|
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 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
isMobile?:
|
|
4
|
-
size:
|
|
5
|
-
isMyself:
|
|
6
|
-
status:
|
|
7
|
-
onChange:
|
|
8
|
-
timezone?:
|
|
9
|
-
}): import(
|
|
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,33 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
declare const
|
|
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: {
|
|
3
31
|
color: string;
|
|
4
32
|
borderColor: string;
|
|
5
33
|
backgroundColor: string;
|
|
6
|
-
|
|
34
|
+
'&:hover': {
|
|
7
35
|
borderColor: string;
|
|
8
36
|
backgroundColor: string;
|
|
9
37
|
};
|
|
10
38
|
py: number;
|
|
11
39
|
borderRadius: number;
|
|
12
40
|
};
|
|
13
|
-
declare
|
|
14
|
-
declare function v(r: any): number;
|
|
15
|
-
declare function I(): {
|
|
16
|
-
label: string;
|
|
17
|
-
value: string;
|
|
18
|
-
}[];
|
|
19
|
-
declare function Z(r: any): boolean;
|
|
20
|
-
declare function N(r: any): boolean;
|
|
21
|
-
declare function E(r: any): boolean;
|
|
22
|
-
declare const B: {
|
|
41
|
+
export declare const primaryButtonStyle: {
|
|
23
42
|
color: string;
|
|
24
43
|
borderColor: string;
|
|
25
44
|
backgroundColor: string;
|
|
26
|
-
|
|
45
|
+
'&:hover': {
|
|
27
46
|
borderColor: string;
|
|
28
47
|
backgroundColor: string;
|
|
29
48
|
};
|
|
30
49
|
py: number;
|
|
31
50
|
borderRadius: number;
|
|
32
51
|
};
|
|
33
|
-
export { M as currentTimezone, w as defaultButtonStyle, _ as getStatusDuration, v as getTimeRemaining, I as getTimezones, Z as isNotClear, N as isValidUrl, E as isWithinTimeRange, B as primaryButtonStyle };
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
onTest?: ((...args: any[]) => void) | undefined;
|
|
4
|
-
onDelete?: ((...args: any[]) => void) | undefined;
|
|
5
|
-
onSave?: ((...args: any[]) => void) | undefined;
|
|
6
|
-
onCancel?: ((...args: any[]) => void) | undefined;
|
|
7
|
-
type?: string | undefined;
|
|
8
|
-
url?: string | undefined;
|
|
9
|
-
edit?: boolean | undefined;
|
|
10
|
-
}): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
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,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { t as UserCenter };
|
|
1
|
+
export { default as UserCenter } from './components/user-center';
|