@arcblock/ux 2.10.36 → 2.10.38
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/Address/compact-text.d.ts +27 -0
- package/lib/Address/did-address.d.ts +16 -0
- package/lib/Address/index.d.ts +15 -0
- package/lib/Address/responsive-did-address.d.ts +33 -0
- package/lib/AnimationWaiter/index.d.ts +54 -0
- package/lib/Async/index.d.ts +30 -0
- package/lib/BlockletContext/index.d.ts +31 -0
- package/lib/BlockletV2/blocklet.d.ts +18 -0
- package/lib/BlockletV2/blocklet.js +156 -0
- package/lib/BlockletV2/components/icon-text.d.ts +7 -0
- package/lib/BlockletV2/components/icon-text.js +30 -0
- package/lib/BlockletV2/index.d.ts +4 -0
- package/lib/BlockletV2/index.js +4 -0
- package/lib/BlockletV2/utils.d.ts +4 -0
- package/lib/BlockletV2/utils.js +71 -0
- package/lib/Button/wrap.js +2 -2
- package/lib/ButtonGroup/index.d.ts +2 -0
- package/lib/CardSelector/index.d.ts +34 -0
- package/lib/Center/index.d.ts +18 -0
- package/lib/ClickToCopy/copy-button.d.ts +27 -0
- package/lib/ClickToCopy/hook.d.ts +9 -0
- package/lib/ClickToCopy/index.d.ts +32 -0
- package/lib/CodeBlock/LightBox.d.ts +5 -0
- package/lib/CodeBlock/index.d.ts +27 -0
- package/lib/ContactForm/index.d.ts +41 -0
- package/lib/CookieConsent/index.d.ts +34 -0
- package/lib/CountDown/index.d.ts +30 -0
- package/lib/DID/index.d.ts +23 -0
- package/lib/DidLogo/index.d.ts +26 -0
- package/lib/DriftBot/index.d.ts +24 -0
- package/lib/Earth/index.d.ts +2 -0
- package/lib/Earth/util.d.ts +7 -0
- package/lib/ErrorBoundary/fallback.d.ts +21 -0
- package/lib/ErrorBoundary/index.d.ts +1 -0
- package/lib/Footer/index.d.ts +27 -0
- package/lib/Header/auto-hidden.d.ts +14 -0
- package/lib/Header/header.d.ts +55 -0
- package/lib/Header/index.d.ts +2 -0
- package/lib/Header/responsive-header.d.ts +29 -0
- package/lib/Icon/image.d.ts +37 -0
- package/lib/InfoRow/index.d.ts +33 -0
- package/lib/Layout/dashboard/external-link.d.ts +15 -0
- package/lib/Layout/dashboard/full-page.d.ts +12 -0
- package/lib/Layout/dashboard/index.d.ts +40 -0
- package/lib/Layout/dashboard/sidebar.d.ts +21 -0
- package/lib/Layout/dashboard-legacy/header.d.ts +37 -0
- package/lib/Layout/dashboard-legacy/index.d.ts +57 -0
- package/lib/Layout/dashboard-legacy/sidebar.d.ts +27 -0
- package/lib/Layout/index.d.ts +57 -0
- package/lib/LoadingMask/index.d.ts +32 -0
- package/lib/Locale/browser-lang.d.ts +2 -0
- package/lib/Locale/context.d.ts +39 -0
- package/lib/Locale/languages.d.ts +57 -0
- package/lib/Locale/selector.d.ts +27 -0
- package/lib/Locale/util.d.ts +3 -0
- package/lib/Metric/index.d.ts +32 -0
- package/lib/MuiWrap/index.d.ts +3 -2
- package/lib/NFTDisplay/aspect-ratio-container.d.ts +13 -0
- package/lib/NFTDisplay/broken.d.ts +14 -0
- package/lib/NFTDisplay/displayApi.d.ts +2 -0
- package/lib/NFTDisplay/index.d.ts +12 -0
- package/lib/NFTDisplay/index.js +7 -0
- package/lib/NFTDisplay/loading.d.ts +1 -0
- package/lib/NFTDisplay/svg-embedder/img.d.ts +24 -0
- package/lib/NFTDisplay/svg-embedder/inline-svg.d.ts +14 -0
- package/lib/NavMenu/index.d.ts +1 -0
- package/lib/NavMenu/nav-menu.d.ts +56 -0
- package/lib/NavMenu/style.d.ts +2 -0
- package/lib/PageScroller/index.d.ts +2 -0
- package/lib/PageScroller/story/FifthComponent.d.ts +1 -0
- package/lib/PageScroller/story/FirstComponent.d.ts +1 -0
- package/lib/PageScroller/story/FourthComponent.d.ts +1 -0
- package/lib/PageScroller/story/FullPage.d.ts +1 -0
- package/lib/PageScroller/story/PageContain.d.ts +1 -0
- package/lib/PageScroller/story/SecondComponent.d.ts +1 -0
- package/lib/PageScroller/story/ThirdComponent.d.ts +1 -0
- package/lib/PageScroller/usePrevValue.d.ts +1 -0
- package/lib/Passport/index.d.ts +2 -0
- package/lib/Passport/passport.d.ts +31 -0
- package/lib/PoweredByArcBlock/index.d.ts +15 -0
- package/lib/PricingTable/PricingPlan.d.ts +10 -0
- package/lib/PricingTable/index.d.ts +2 -0
- package/lib/QRCode/index.d.ts +23 -0
- package/lib/RelativeTime/index.d.ts +41 -0
- package/lib/Result/common.d.ts +52 -0
- package/lib/Result/index.d.ts +19 -0
- package/lib/Result/result.d.ts +30 -0
- package/lib/Result/translations.d.ts +55 -0
- package/lib/Screenshot/BaseScreenshot/index.d.ts +25 -0
- package/lib/Screenshot/BaseScreenshot/shells/Macbook.d.ts +21 -0
- package/lib/Screenshot/BaseScreenshot/shells/Phone.d.ts +21 -0
- package/lib/Screenshot/index.d.ts +29 -0
- package/lib/SessionBlocklet/index.d.ts +20 -0
- package/lib/SessionManager/index.d.ts +2 -0
- package/lib/SessionPermission/index.d.ts +18 -0
- package/lib/SessionUser/components/logged-in.d.ts +32 -0
- package/lib/SessionUser/components/session-user-item.d.ts +2 -0
- package/lib/SessionUser/components/session-user-switch.d.ts +22 -0
- package/lib/SessionUser/components/un-login.d.ts +24 -0
- package/lib/SessionUser/components/user-info.d.ts +30 -0
- package/lib/SessionUser/index.d.ts +31 -0
- package/lib/SessionUser/libs/translation.d.ts +31 -0
- package/lib/SessionUser/libs/utils.d.ts +9 -0
- package/lib/Sparkline/index.d.ts +1 -0
- package/lib/Spinner/index.d.ts +2 -0
- package/lib/SplitButton/index.d.ts +2 -1
- package/lib/SplitButton/index.js +1 -1
- package/lib/Success/index.d.ts +22 -0
- package/lib/Tabs/index.d.ts +27 -0
- package/lib/TextCollapse/index.d.ts +2 -0
- package/lib/Typography/index.d.ts +25 -0
- package/lib/Util/federated.d.ts +61 -0
- package/lib/Util/passport.d.ts +33 -0
- package/lib/Util/wallet.d.ts +3 -0
- package/lib/Video/index.d.ts +19 -0
- package/lib/Wallet/Action.d.ts +21 -0
- package/lib/Wallet/Download.d.ts +33 -0
- package/lib/Wallet/Open.d.ts +16 -0
- package/lib/WalletOSIcon/index.d.ts +26 -0
- package/lib/WebWalletSWKeeper/index.d.ts +21 -0
- package/lib/WechatPrompt/index.d.ts +1 -0
- package/lib/index.d.ts +36 -0
- package/lib/withTheme/index.d.ts +7 -0
- package/lib/withTracker/error_boundary.d.ts +9 -0
- package/lib/withTracker/index.d.ts +2 -0
- package/package.json +10 -7
- package/src/BlockletV2/blocklet.tsx +130 -0
- package/src/BlockletV2/components/icon-text.tsx +29 -0
- package/src/BlockletV2/index.ts +5 -0
- package/src/BlockletV2/utils.js +75 -0
- package/src/Button/wrap.js +9 -5
- package/src/MuiWrap/index.tsx +3 -2
- package/src/NFTDisplay/index.js +23 -0
- package/src/SplitButton/index.tsx +2 -2
@@ -0,0 +1,27 @@
|
|
1
|
+
declare function CodeBlock({ code, language, children, dark, ...rest }: {
|
2
|
+
[x: string]: any;
|
3
|
+
code: any;
|
4
|
+
language: any;
|
5
|
+
children: any;
|
6
|
+
dark: any;
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
8
|
+
declare namespace CodeBlock {
|
9
|
+
namespace propTypes {
|
10
|
+
let code: PropTypes.Requireable<string>;
|
11
|
+
let language: PropTypes.Requireable<string>;
|
12
|
+
let children: PropTypes.Requireable<any>;
|
13
|
+
let dark: PropTypes.Requireable<boolean>;
|
14
|
+
}
|
15
|
+
namespace defaultProps {
|
16
|
+
let code_1: string;
|
17
|
+
export { code_1 as code };
|
18
|
+
let language_1: string;
|
19
|
+
export { language_1 as language };
|
20
|
+
let children_1: null;
|
21
|
+
export { children_1 as children };
|
22
|
+
let dark_1: boolean;
|
23
|
+
export { dark_1 as dark };
|
24
|
+
}
|
25
|
+
}
|
26
|
+
export default CodeBlock;
|
27
|
+
import PropTypes from 'prop-types';
|
@@ -0,0 +1,41 @@
|
|
1
|
+
export function submitContactForm({ formId, portalId }: {
|
2
|
+
formId: any;
|
3
|
+
portalId: any;
|
4
|
+
}, fields: any, context: any): Promise<any>;
|
5
|
+
export default class ContactForm extends React.Component<any, any, any> {
|
6
|
+
static propTypes: {
|
7
|
+
style: PropTypes.Requireable<object>;
|
8
|
+
className: PropTypes.Requireable<string>;
|
9
|
+
portalId: PropTypes.Requireable<string>;
|
10
|
+
formId: PropTypes.Requireable<string>;
|
11
|
+
title: PropTypes.Requireable<string>;
|
12
|
+
button: PropTypes.Requireable<string>;
|
13
|
+
successMessage: PropTypes.Requireable<string>;
|
14
|
+
layout: PropTypes.Requireable<string>;
|
15
|
+
fields: PropTypes.Requireable<NonNullable<string | any[] | null | undefined>>;
|
16
|
+
};
|
17
|
+
static defaultProps: {
|
18
|
+
style: {};
|
19
|
+
className: string;
|
20
|
+
portalId: string;
|
21
|
+
formId: string;
|
22
|
+
title: undefined;
|
23
|
+
button: string;
|
24
|
+
layout: string;
|
25
|
+
successMessage: string;
|
26
|
+
fields: string[];
|
27
|
+
};
|
28
|
+
constructor(props: any);
|
29
|
+
fields: any;
|
30
|
+
state: {
|
31
|
+
loading: boolean;
|
32
|
+
errorMessage: string;
|
33
|
+
successMessage: string;
|
34
|
+
};
|
35
|
+
deriveProps(): any;
|
36
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
37
|
+
onSubmit: (e: any) => Promise<void>;
|
38
|
+
getInputHandler: (name: any, state?: {}) => (e: any) => void;
|
39
|
+
}
|
40
|
+
import React from 'react';
|
41
|
+
import PropTypes from 'prop-types';
|
@@ -0,0 +1,34 @@
|
|
1
|
+
/**
|
2
|
+
* DefaultCookieConsent, 对 react-cookie-consent package 封装, 以便 arcblock 内部产品可以快速使用
|
3
|
+
* - 默认内容
|
4
|
+
* - 默认配置/样式
|
5
|
+
*/
|
6
|
+
declare function DefaultCookieConsent({ children, locale, style, displayInIframe, ...rest }: {
|
7
|
+
[x: string]: any;
|
8
|
+
children: any;
|
9
|
+
locale: any;
|
10
|
+
style: any;
|
11
|
+
displayInIframe: any;
|
12
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
13
|
+
declare namespace DefaultCookieConsent {
|
14
|
+
namespace propTypes {
|
15
|
+
let children: PropTypes.Requireable<any>;
|
16
|
+
let style: PropTypes.Requireable<object>;
|
17
|
+
let locale: PropTypes.Requireable<string>;
|
18
|
+
let displayInIframe: PropTypes.Requireable<boolean>;
|
19
|
+
}
|
20
|
+
namespace defaultProps {
|
21
|
+
let children_1: null;
|
22
|
+
export { children_1 as children };
|
23
|
+
let style_1: {};
|
24
|
+
export { style_1 as style };
|
25
|
+
let locale_1: string;
|
26
|
+
export { locale_1 as locale };
|
27
|
+
let displayInIframe_1: boolean;
|
28
|
+
export { displayInIframe_1 as displayInIframe };
|
29
|
+
}
|
30
|
+
}
|
31
|
+
export default DefaultCookieConsent;
|
32
|
+
export { resetCookieConsentValue };
|
33
|
+
import PropTypes from 'prop-types';
|
34
|
+
import { resetCookieConsentValue } from 'react-cookie-consent';
|
@@ -0,0 +1,30 @@
|
|
1
|
+
declare class CountDown extends Component<any, any, any> {
|
2
|
+
constructor(props: any);
|
3
|
+
state: {
|
4
|
+
days: number;
|
5
|
+
hours: number;
|
6
|
+
minutes: number;
|
7
|
+
seconds: number;
|
8
|
+
done: boolean;
|
9
|
+
};
|
10
|
+
timer: any;
|
11
|
+
componentDidMount(): void;
|
12
|
+
componentWillUnmount(): void;
|
13
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
14
|
+
}
|
15
|
+
declare namespace CountDown {
|
16
|
+
namespace propTypes {
|
17
|
+
let endTime: PropTypes.Validator<number>;
|
18
|
+
let dark: PropTypes.Requireable<boolean>;
|
19
|
+
let style: PropTypes.Requireable<object>;
|
20
|
+
}
|
21
|
+
namespace defaultProps {
|
22
|
+
let dark_1: boolean;
|
23
|
+
export { dark_1 as dark };
|
24
|
+
let style_1: {};
|
25
|
+
export { style_1 as style };
|
26
|
+
}
|
27
|
+
}
|
28
|
+
export default CountDown;
|
29
|
+
import { Component } from 'react';
|
30
|
+
import PropTypes from 'prop-types';
|
@@ -0,0 +1,23 @@
|
|
1
|
+
export default DID;
|
2
|
+
/**
|
3
|
+
* @type React.ForwardRefRenderFunction<HTMLElement, typeof DIDPropTypes>
|
4
|
+
*/
|
5
|
+
declare const DID: React.ForwardRefRenderFunction<HTMLElement, typeof DIDPropTypes>;
|
6
|
+
declare namespace DIDPropTypes {
|
7
|
+
let did: PropTypes.Validator<string>;
|
8
|
+
let size: PropTypes.Requireable<number>;
|
9
|
+
let component: PropTypes.Requireable<string>;
|
10
|
+
let copyable: PropTypes.Requireable<boolean>;
|
11
|
+
let responsive: PropTypes.Requireable<boolean>;
|
12
|
+
let showCopyButtonInTooltip: PropTypes.Requireable<boolean>;
|
13
|
+
let showAvatar: PropTypes.Requireable<boolean>;
|
14
|
+
let showQrcode: PropTypes.Requireable<boolean>;
|
15
|
+
let inline: PropTypes.Requireable<boolean>;
|
16
|
+
let append: PropTypes.Requireable<any>;
|
17
|
+
let compact: PropTypes.Requireable<boolean>;
|
18
|
+
let startChars: PropTypes.Requireable<number>;
|
19
|
+
let endChars: PropTypes.Requireable<number>;
|
20
|
+
let locale: PropTypes.Requireable<string>;
|
21
|
+
let chainId: PropTypes.Requireable<string>;
|
22
|
+
}
|
23
|
+
import PropTypes from 'prop-types';
|
@@ -0,0 +1,26 @@
|
|
1
|
+
declare function DidLogo({ style, size, className }: {
|
2
|
+
style: any;
|
3
|
+
size: any;
|
4
|
+
className: any;
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
6
|
+
declare namespace DidLogo {
|
7
|
+
namespace propTypes {
|
8
|
+
let style: PropTypes.Requireable<object>;
|
9
|
+
let size: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
10
|
+
let className: PropTypes.Requireable<string>;
|
11
|
+
}
|
12
|
+
namespace defaultProps {
|
13
|
+
export { defaultStyle as style };
|
14
|
+
let size_1: number;
|
15
|
+
export { size_1 as size };
|
16
|
+
let className_1: string;
|
17
|
+
export { className_1 as className };
|
18
|
+
}
|
19
|
+
}
|
20
|
+
export default DidLogo;
|
21
|
+
import PropTypes from 'prop-types';
|
22
|
+
declare namespace defaultStyle {
|
23
|
+
let width: string;
|
24
|
+
let height: string;
|
25
|
+
let fill: string;
|
26
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
declare class DriftBot extends Component<any, any, any> {
|
2
|
+
constructor(props: any);
|
3
|
+
addMainScript(): void;
|
4
|
+
addIdentityVariables(): void;
|
5
|
+
insertScript(scriptText: any): void;
|
6
|
+
componentDidMount(): void;
|
7
|
+
render(): string;
|
8
|
+
}
|
9
|
+
declare namespace DriftBot {
|
10
|
+
namespace propTypes {
|
11
|
+
let appId: PropTypes.Validator<string>;
|
12
|
+
let userId: PropTypes.Requireable<string>;
|
13
|
+
let attributes: PropTypes.Requireable<object>;
|
14
|
+
}
|
15
|
+
namespace defaultProps {
|
16
|
+
let userId_1: string;
|
17
|
+
export { userId_1 as userId };
|
18
|
+
let attributes_1: {};
|
19
|
+
export { attributes_1 as attributes };
|
20
|
+
}
|
21
|
+
}
|
22
|
+
export default DriftBot;
|
23
|
+
import { Component } from 'react';
|
24
|
+
import PropTypes from 'prop-types';
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export default class Util {
|
2
|
+
static fromAngles([l, p, g]: [any, any, any]): number[];
|
3
|
+
static toAngles([a, b, c, d]: [any, any, any, any]): number[];
|
4
|
+
static interpolateAngles(a: any, b: any): (t: any) => number[];
|
5
|
+
static interpolateLinear([a1, b1, c1, d1]: [any, any, any, any], [a2, b2, c2, d2]: [any, any, any, any]): (t: any) => any[];
|
6
|
+
static interpolate([a1, b1, c1, d1]: [any, any, any, any], [a2, b2, c2, d2]: [any, any, any, any]): (t: any) => any[];
|
7
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
export function ErrorFallback({ error }: {
|
2
|
+
error: any;
|
3
|
+
}): import("react/jsx-runtime").JSX.Element;
|
4
|
+
export namespace ErrorFallback {
|
5
|
+
namespace propTypes {
|
6
|
+
let error: PropTypes.Validator<Error>;
|
7
|
+
}
|
8
|
+
}
|
9
|
+
export function ErrorFallbackRetry({ error, resetErrorBoundary }: {
|
10
|
+
error: any;
|
11
|
+
resetErrorBoundary: any;
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
13
|
+
export namespace ErrorFallbackRetry {
|
14
|
+
export namespace propTypes_1 {
|
15
|
+
let error_1: PropTypes.Validator<Error>;
|
16
|
+
export { error_1 as error };
|
17
|
+
export let resetErrorBoundary: PropTypes.Validator<(...args: any[]) => any>;
|
18
|
+
}
|
19
|
+
export { propTypes_1 as propTypes };
|
20
|
+
}
|
21
|
+
import PropTypes from 'prop-types';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./fallback";
|
@@ -0,0 +1,27 @@
|
|
1
|
+
declare function Footer(props: any): import("react/jsx-runtime").JSX.Element;
|
2
|
+
declare namespace Footer {
|
3
|
+
namespace propTypes {
|
4
|
+
let dark: PropTypes.Requireable<boolean>;
|
5
|
+
let className: PropTypes.Requireable<string>;
|
6
|
+
let copyStart: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
7
|
+
let brand: PropTypes.Requireable<string>;
|
8
|
+
let style: PropTypes.Requireable<object>;
|
9
|
+
let addon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
10
|
+
}
|
11
|
+
namespace defaultProps {
|
12
|
+
let dark_1: boolean;
|
13
|
+
export { dark_1 as dark };
|
14
|
+
let brand_1: string;
|
15
|
+
export { brand_1 as brand };
|
16
|
+
let copyStart_1: string;
|
17
|
+
export { copyStart_1 as copyStart };
|
18
|
+
let className_1: string;
|
19
|
+
export { className_1 as className };
|
20
|
+
let style_1: {};
|
21
|
+
export { style_1 as style };
|
22
|
+
let addon_1: null;
|
23
|
+
export { addon_1 as addon };
|
24
|
+
}
|
25
|
+
}
|
26
|
+
export default Footer;
|
27
|
+
import PropTypes from 'prop-types';
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export default AutoHidden;
|
2
|
+
/**
|
3
|
+
* 一个容器组件, 当子元素 width 超出该容器时自动隐藏子元素, 必须设置明确的 height 值
|
4
|
+
*/
|
5
|
+
declare function AutoHidden({ height, ...rest }: {
|
6
|
+
[x: string]: any;
|
7
|
+
height: any;
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
9
|
+
declare namespace AutoHidden {
|
10
|
+
namespace propTypes {
|
11
|
+
let height: PropTypes.Validator<NonNullable<NonNullable<string | number | null | undefined>>>;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
import PropTypes from 'prop-types';
|
@@ -0,0 +1,55 @@
|
|
1
|
+
export default Header;
|
2
|
+
/**
|
3
|
+
* Header 组件
|
4
|
+
* TODO: Layout/dashboard 可以复用此处的 header
|
5
|
+
*/
|
6
|
+
declare function Header({ logo, brand, brandAddon, description, children, addons, prepend, align, maxWidth, homeLink, ...rest }: {
|
7
|
+
[x: string]: any;
|
8
|
+
logo: any;
|
9
|
+
brand: any;
|
10
|
+
brandAddon: any;
|
11
|
+
description: any;
|
12
|
+
children: any;
|
13
|
+
addons: any;
|
14
|
+
prepend: any;
|
15
|
+
align: any;
|
16
|
+
maxWidth: any;
|
17
|
+
homeLink: any;
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
19
|
+
declare namespace Header {
|
20
|
+
namespace propTypes {
|
21
|
+
let logo: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
22
|
+
let brand: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
23
|
+
let brandAddon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
24
|
+
let description: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
25
|
+
let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
26
|
+
let addons: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
27
|
+
let prepend: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
28
|
+
let align: PropTypes.Requireable<string>;
|
29
|
+
let maxWidth: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
30
|
+
let homeLink: PropTypes.Requireable<NonNullable<string | ((...args: any[]) => any) | null | undefined>>;
|
31
|
+
}
|
32
|
+
namespace defaultProps {
|
33
|
+
let logo_1: null;
|
34
|
+
export { logo_1 as logo };
|
35
|
+
let brand_1: null;
|
36
|
+
export { brand_1 as brand };
|
37
|
+
let brandAddon_1: null;
|
38
|
+
export { brandAddon_1 as brandAddon };
|
39
|
+
let description_1: null;
|
40
|
+
export { description_1 as description };
|
41
|
+
let children_1: null;
|
42
|
+
export { children_1 as children };
|
43
|
+
let addons_1: null;
|
44
|
+
export { addons_1 as addons };
|
45
|
+
let prepend_1: null;
|
46
|
+
export { prepend_1 as prepend };
|
47
|
+
let align_1: string;
|
48
|
+
export { align_1 as align };
|
49
|
+
let maxWidth_1: undefined;
|
50
|
+
export { maxWidth_1 as maxWidth };
|
51
|
+
let homeLink_1: string;
|
52
|
+
export { homeLink_1 as homeLink };
|
53
|
+
}
|
54
|
+
}
|
55
|
+
import PropTypes from 'prop-types';
|
@@ -0,0 +1,29 @@
|
|
1
|
+
export default ResponsiveHeader;
|
2
|
+
/**
|
3
|
+
* ResponsiveHeader
|
4
|
+
* - 窄屏下显示 burge menu
|
5
|
+
* - 窄屏下将 children 区域显示到 menu 中
|
6
|
+
*
|
7
|
+
* 注意: 暂时不要通过 display: none 隐藏 logo, https://blog.patw.me/archives/1820/inline-svg-same-id-and-display-none-issue/
|
8
|
+
*/
|
9
|
+
declare function ResponsiveHeader({ menu, prepend, children, ...rest }: {
|
10
|
+
[x: string]: any;
|
11
|
+
menu: any;
|
12
|
+
prepend: any;
|
13
|
+
children: any;
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
15
|
+
declare namespace ResponsiveHeader {
|
16
|
+
let propTypes: any;
|
17
|
+
let defaultProps: {
|
18
|
+
logo: null;
|
19
|
+
brand: null;
|
20
|
+
brandAddon: null;
|
21
|
+
description: null;
|
22
|
+
children: null;
|
23
|
+
addons: null;
|
24
|
+
prepend: null;
|
25
|
+
align: string;
|
26
|
+
maxWidth: undefined;
|
27
|
+
homeLink: string;
|
28
|
+
};
|
29
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
declare function ImageIcon({ name, size, alt, color, style, prefix, showBadge, ...rest }: {
|
2
|
+
[x: string]: any;
|
3
|
+
name: any;
|
4
|
+
size: any;
|
5
|
+
alt: any;
|
6
|
+
color: any;
|
7
|
+
style: any;
|
8
|
+
prefix: any;
|
9
|
+
showBadge: any;
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
11
|
+
declare namespace ImageIcon {
|
12
|
+
namespace propTypes {
|
13
|
+
let name: PropTypes.Validator<string>;
|
14
|
+
let size: PropTypes.Requireable<number>;
|
15
|
+
let color: PropTypes.Requireable<string>;
|
16
|
+
let alt: PropTypes.Requireable<string>;
|
17
|
+
let style: PropTypes.Requireable<object>;
|
18
|
+
let prefix: PropTypes.Requireable<string>;
|
19
|
+
let showBadge: PropTypes.Requireable<boolean>;
|
20
|
+
}
|
21
|
+
namespace defaultProps {
|
22
|
+
let size_1: number;
|
23
|
+
export { size_1 as size };
|
24
|
+
let color_1: string;
|
25
|
+
export { color_1 as color };
|
26
|
+
let alt_1: string;
|
27
|
+
export { alt_1 as alt };
|
28
|
+
let style_1: {};
|
29
|
+
export { style_1 as style };
|
30
|
+
let prefix_1: string;
|
31
|
+
export { prefix_1 as prefix };
|
32
|
+
let showBadge_1: boolean;
|
33
|
+
export { showBadge_1 as showBadge };
|
34
|
+
}
|
35
|
+
}
|
36
|
+
export default ImageIcon;
|
37
|
+
import PropTypes from 'prop-types';
|
@@ -0,0 +1,33 @@
|
|
1
|
+
export default InfoRow;
|
2
|
+
declare function InfoRow({ name, nameFormatter, layout, children, valueComponent, nameWidth, ...rest }: {
|
3
|
+
[x: string]: any;
|
4
|
+
name: any;
|
5
|
+
nameFormatter: any;
|
6
|
+
layout: any;
|
7
|
+
children: any;
|
8
|
+
valueComponent: any;
|
9
|
+
nameWidth: any;
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
11
|
+
declare namespace InfoRow {
|
12
|
+
namespace propTypes {
|
13
|
+
let name: PropTypes.Validator<any>;
|
14
|
+
let layout: PropTypes.Requireable<string>;
|
15
|
+
let children: PropTypes.Requireable<any>;
|
16
|
+
let nameFormatter: PropTypes.Requireable<(...args: any[]) => any>;
|
17
|
+
let valueComponent: PropTypes.Requireable<string>;
|
18
|
+
let nameWidth: PropTypes.Requireable<number>;
|
19
|
+
}
|
20
|
+
namespace defaultProps {
|
21
|
+
let children_1: null;
|
22
|
+
export { children_1 as children };
|
23
|
+
let nameWidth_1: number;
|
24
|
+
export { nameWidth_1 as nameWidth };
|
25
|
+
export function nameFormatter_1(name: any): any;
|
26
|
+
export { nameFormatter_1 as nameFormatter };
|
27
|
+
let valueComponent_1: string;
|
28
|
+
export { valueComponent_1 as valueComponent };
|
29
|
+
let layout_1: string;
|
30
|
+
export { layout_1 as layout };
|
31
|
+
}
|
32
|
+
}
|
33
|
+
import PropTypes from 'prop-types';
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export function Link(props: any): import("react/jsx-runtime").JSX.Element;
|
2
|
+
export function NavLink({ className, ...rest }: {
|
3
|
+
[x: string]: any;
|
4
|
+
className: any;
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
6
|
+
export namespace NavLink {
|
7
|
+
namespace propTypes {
|
8
|
+
let className: PropTypes.Requireable<NonNullable<string | ((...args: any[]) => any) | null | undefined>>;
|
9
|
+
}
|
10
|
+
namespace defaultProps {
|
11
|
+
let className_1: string;
|
12
|
+
export { className_1 as className };
|
13
|
+
}
|
14
|
+
}
|
15
|
+
import PropTypes from 'prop-types';
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export function FullPageProvider({ children, ...rest }: {
|
2
|
+
[x: string]: any;
|
3
|
+
children: any;
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
5
|
+
export namespace FullPageProvider {
|
6
|
+
namespace propTypes {
|
7
|
+
let children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
export const FullPageContext: import("react").Context<any>;
|
11
|
+
export function useFullPage(initialState: any): any;
|
12
|
+
import PropTypes from 'prop-types';
|
@@ -0,0 +1,40 @@
|
|
1
|
+
declare function DashboardWrapper({ legacy, ...rest }: {
|
2
|
+
[x: string]: any;
|
3
|
+
legacy: any;
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
5
|
+
declare namespace DashboardWrapper {
|
6
|
+
namespace propTypes {
|
7
|
+
let legacy: PropTypes.Requireable<boolean>;
|
8
|
+
let footerProps: PropTypes.Requireable<PropTypes.InferProps<{
|
9
|
+
dark: PropTypes.Requireable<boolean>;
|
10
|
+
className: PropTypes.Requireable<string>;
|
11
|
+
copyStart: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
12
|
+
brand: PropTypes.Requireable<string>;
|
13
|
+
style: PropTypes.Requireable<object>;
|
14
|
+
addon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
15
|
+
}>>;
|
16
|
+
let children: PropTypes.Validator<any>;
|
17
|
+
let title: PropTypes.Requireable<string>;
|
18
|
+
let links: PropTypes.Validator<any[]>;
|
19
|
+
let headerProps: PropTypes.Requireable<object>;
|
20
|
+
let fullWidth: PropTypes.Requireable<boolean>;
|
21
|
+
let sidebarWidth: PropTypes.Requireable<number>;
|
22
|
+
let dense: PropTypes.Requireable<string | boolean>;
|
23
|
+
}
|
24
|
+
namespace defaultProps {
|
25
|
+
let legacy_1: boolean;
|
26
|
+
export { legacy_1 as legacy };
|
27
|
+
let title_1: string;
|
28
|
+
export { title_1 as title };
|
29
|
+
let headerProps_1: {};
|
30
|
+
export { headerProps_1 as headerProps };
|
31
|
+
let fullWidth_1: boolean;
|
32
|
+
export { fullWidth_1 as fullWidth };
|
33
|
+
let sidebarWidth_1: number;
|
34
|
+
export { sidebarWidth_1 as sidebarWidth };
|
35
|
+
let dense_1: string;
|
36
|
+
export { dense_1 as dense };
|
37
|
+
}
|
38
|
+
}
|
39
|
+
export default DashboardWrapper;
|
40
|
+
import PropTypes from 'prop-types';
|
@@ -0,0 +1,21 @@
|
|
1
|
+
export default Sidebar;
|
2
|
+
declare function Sidebar({ links, addons, dense, ...rest }: {
|
3
|
+
[x: string]: any;
|
4
|
+
links: any;
|
5
|
+
addons: any;
|
6
|
+
dense: any;
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
8
|
+
declare namespace Sidebar {
|
9
|
+
namespace propTypes {
|
10
|
+
let links: PropTypes.Validator<any[]>;
|
11
|
+
let addons: PropTypes.Requireable<any>;
|
12
|
+
let dense: PropTypes.Requireable<boolean>;
|
13
|
+
}
|
14
|
+
namespace defaultProps {
|
15
|
+
let addons_1: null;
|
16
|
+
export { addons_1 as addons };
|
17
|
+
let dense_1: boolean;
|
18
|
+
export { dense_1 as dense };
|
19
|
+
}
|
20
|
+
}
|
21
|
+
import PropTypes from 'prop-types';
|
@@ -0,0 +1,37 @@
|
|
1
|
+
declare function Header({ children, brand, brandAddon, description, addons, onToggleMenu, homeUrl, logo, ...rest }: {
|
2
|
+
[x: string]: any;
|
3
|
+
children: any;
|
4
|
+
brand: any;
|
5
|
+
brandAddon: any;
|
6
|
+
description: any;
|
7
|
+
addons: any;
|
8
|
+
onToggleMenu: any;
|
9
|
+
homeUrl: any;
|
10
|
+
logo: any;
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
12
|
+
declare namespace Header {
|
13
|
+
namespace propTypes {
|
14
|
+
let onToggleMenu: PropTypes.Validator<(...args: any[]) => any>;
|
15
|
+
let brand: PropTypes.Validator<string>;
|
16
|
+
let brandAddon: PropTypes.Requireable<object>;
|
17
|
+
let description: PropTypes.Validator<any>;
|
18
|
+
let children: PropTypes.Requireable<any>;
|
19
|
+
let addons: PropTypes.Requireable<any>;
|
20
|
+
let homeUrl: PropTypes.Requireable<string>;
|
21
|
+
let logo: PropTypes.Requireable<any>;
|
22
|
+
}
|
23
|
+
namespace defaultProps {
|
24
|
+
let children_1: null;
|
25
|
+
export { children_1 as children };
|
26
|
+
let addons_1: null;
|
27
|
+
export { addons_1 as addons };
|
28
|
+
let brandAddon_1: null;
|
29
|
+
export { brandAddon_1 as brandAddon };
|
30
|
+
let homeUrl_1: string;
|
31
|
+
export { homeUrl_1 as homeUrl };
|
32
|
+
let logo_1: null;
|
33
|
+
export { logo_1 as logo };
|
34
|
+
}
|
35
|
+
}
|
36
|
+
export default Header;
|
37
|
+
import PropTypes from 'prop-types';
|
@@ -0,0 +1,57 @@
|
|
1
|
+
declare function Dashboard({ children, title, brand, description, brandAddon, headerAddon, images, links, prefix, fullWidth, contentLayout, className, homeUrl, logo, ...rest }: {
|
2
|
+
[x: string]: any;
|
3
|
+
children: any;
|
4
|
+
title: any;
|
5
|
+
brand: any;
|
6
|
+
description: any;
|
7
|
+
brandAddon: any;
|
8
|
+
headerAddon: any;
|
9
|
+
images: any;
|
10
|
+
links: any;
|
11
|
+
prefix: any;
|
12
|
+
fullWidth: any;
|
13
|
+
contentLayout: any;
|
14
|
+
className: any;
|
15
|
+
homeUrl: any;
|
16
|
+
logo: any;
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
18
|
+
declare namespace Dashboard {
|
19
|
+
namespace propTypes {
|
20
|
+
let children: PropTypes.Validator<any>;
|
21
|
+
let title: PropTypes.Requireable<string>;
|
22
|
+
let brand: PropTypes.Validator<string>;
|
23
|
+
let links: PropTypes.Validator<any[]>;
|
24
|
+
let images: PropTypes.Validator<object>;
|
25
|
+
let brandAddon: PropTypes.Requireable<object>;
|
26
|
+
let description: PropTypes.Validator<any>;
|
27
|
+
let headerAddon: PropTypes.Requireable<any>;
|
28
|
+
let prefix: PropTypes.Requireable<string>;
|
29
|
+
let contentLayout: PropTypes.Requireable<string>;
|
30
|
+
let fullWidth: PropTypes.Requireable<boolean>;
|
31
|
+
let className: PropTypes.Requireable<string>;
|
32
|
+
let homeUrl: PropTypes.Requireable<string>;
|
33
|
+
let logo: PropTypes.Requireable<any>;
|
34
|
+
}
|
35
|
+
namespace defaultProps {
|
36
|
+
let title_1: string;
|
37
|
+
export { title_1 as title };
|
38
|
+
let contentLayout_1: string;
|
39
|
+
export { contentLayout_1 as contentLayout };
|
40
|
+
let headerAddon_1: null;
|
41
|
+
export { headerAddon_1 as headerAddon };
|
42
|
+
let brandAddon_1: null;
|
43
|
+
export { brandAddon_1 as brandAddon };
|
44
|
+
let prefix_1: string;
|
45
|
+
export { prefix_1 as prefix };
|
46
|
+
let fullWidth_1: boolean;
|
47
|
+
export { fullWidth_1 as fullWidth };
|
48
|
+
let className_1: string;
|
49
|
+
export { className_1 as className };
|
50
|
+
let homeUrl_1: string;
|
51
|
+
export { homeUrl_1 as homeUrl };
|
52
|
+
let logo_1: null;
|
53
|
+
export { logo_1 as logo };
|
54
|
+
}
|
55
|
+
}
|
56
|
+
export default Dashboard;
|
57
|
+
import PropTypes from 'prop-types';
|
@@ -0,0 +1,27 @@
|
|
1
|
+
declare function Sidebar({ images, links, prefix, addons, logo, ...rest }: {
|
2
|
+
[x: string]: any;
|
3
|
+
images: any;
|
4
|
+
links: any;
|
5
|
+
prefix: any;
|
6
|
+
addons: any;
|
7
|
+
logo: any;
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
9
|
+
declare namespace Sidebar {
|
10
|
+
namespace propTypes {
|
11
|
+
let images: PropTypes.Validator<object>;
|
12
|
+
let links: PropTypes.Validator<any[]>;
|
13
|
+
let prefix: PropTypes.Requireable<string>;
|
14
|
+
let addons: PropTypes.Requireable<any>;
|
15
|
+
let logo: PropTypes.Requireable<any>;
|
16
|
+
}
|
17
|
+
namespace defaultProps {
|
18
|
+
let prefix_1: string;
|
19
|
+
export { prefix_1 as prefix };
|
20
|
+
let addons_1: null;
|
21
|
+
export { addons_1 as addons };
|
22
|
+
let logo_1: null;
|
23
|
+
export { logo_1 as logo };
|
24
|
+
}
|
25
|
+
}
|
26
|
+
export default Sidebar;
|
27
|
+
import PropTypes from 'prop-types';
|