@arcblock/ux 2.10.36 → 2.10.37

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. package/lib/Address/compact-text.d.ts +27 -0
  2. package/lib/Address/did-address.d.ts +16 -0
  3. package/lib/Address/index.d.ts +15 -0
  4. package/lib/Address/responsive-did-address.d.ts +33 -0
  5. package/lib/AnimationWaiter/index.d.ts +54 -0
  6. package/lib/Async/index.d.ts +30 -0
  7. package/lib/BlockletContext/index.d.ts +31 -0
  8. package/lib/BlockletV2/blocklet.d.ts +18 -0
  9. package/lib/BlockletV2/blocklet.js +156 -0
  10. package/lib/BlockletV2/components/icon-text.d.ts +7 -0
  11. package/lib/BlockletV2/components/icon-text.js +30 -0
  12. package/lib/BlockletV2/index.d.ts +4 -0
  13. package/lib/BlockletV2/index.js +4 -0
  14. package/lib/BlockletV2/utils.d.ts +4 -0
  15. package/lib/BlockletV2/utils.js +71 -0
  16. package/lib/Button/wrap.js +2 -2
  17. package/lib/ButtonGroup/index.d.ts +2 -0
  18. package/lib/CardSelector/index.d.ts +34 -0
  19. package/lib/Center/index.d.ts +18 -0
  20. package/lib/ClickToCopy/copy-button.d.ts +27 -0
  21. package/lib/ClickToCopy/hook.d.ts +9 -0
  22. package/lib/ClickToCopy/index.d.ts +32 -0
  23. package/lib/CodeBlock/LightBox.d.ts +5 -0
  24. package/lib/CodeBlock/index.d.ts +27 -0
  25. package/lib/ContactForm/index.d.ts +41 -0
  26. package/lib/CookieConsent/index.d.ts +34 -0
  27. package/lib/CountDown/index.d.ts +30 -0
  28. package/lib/DID/index.d.ts +23 -0
  29. package/lib/DidLogo/index.d.ts +26 -0
  30. package/lib/DriftBot/index.d.ts +24 -0
  31. package/lib/Earth/index.d.ts +2 -0
  32. package/lib/Earth/util.d.ts +7 -0
  33. package/lib/ErrorBoundary/fallback.d.ts +21 -0
  34. package/lib/ErrorBoundary/index.d.ts +1 -0
  35. package/lib/Footer/index.d.ts +27 -0
  36. package/lib/Header/auto-hidden.d.ts +14 -0
  37. package/lib/Header/header.d.ts +55 -0
  38. package/lib/Header/index.d.ts +2 -0
  39. package/lib/Header/responsive-header.d.ts +29 -0
  40. package/lib/Icon/image.d.ts +37 -0
  41. package/lib/InfoRow/index.d.ts +33 -0
  42. package/lib/Layout/dashboard/external-link.d.ts +15 -0
  43. package/lib/Layout/dashboard/full-page.d.ts +12 -0
  44. package/lib/Layout/dashboard/index.d.ts +40 -0
  45. package/lib/Layout/dashboard/sidebar.d.ts +21 -0
  46. package/lib/Layout/dashboard-legacy/header.d.ts +37 -0
  47. package/lib/Layout/dashboard-legacy/index.d.ts +57 -0
  48. package/lib/Layout/dashboard-legacy/sidebar.d.ts +27 -0
  49. package/lib/Layout/index.d.ts +57 -0
  50. package/lib/LoadingMask/index.d.ts +32 -0
  51. package/lib/Locale/browser-lang.d.ts +2 -0
  52. package/lib/Locale/context.d.ts +39 -0
  53. package/lib/Locale/languages.d.ts +57 -0
  54. package/lib/Locale/selector.d.ts +27 -0
  55. package/lib/Locale/util.d.ts +3 -0
  56. package/lib/Metric/index.d.ts +32 -0
  57. package/lib/MuiWrap/index.d.ts +3 -2
  58. package/lib/NFTDisplay/aspect-ratio-container.d.ts +13 -0
  59. package/lib/NFTDisplay/broken.d.ts +14 -0
  60. package/lib/NFTDisplay/displayApi.d.ts +2 -0
  61. package/lib/NFTDisplay/index.d.ts +12 -0
  62. package/lib/NFTDisplay/loading.d.ts +1 -0
  63. package/lib/NFTDisplay/svg-embedder/img.d.ts +24 -0
  64. package/lib/NFTDisplay/svg-embedder/inline-svg.d.ts +14 -0
  65. package/lib/NavMenu/index.d.ts +1 -0
  66. package/lib/NavMenu/nav-menu.d.ts +56 -0
  67. package/lib/NavMenu/style.d.ts +2 -0
  68. package/lib/PageScroller/index.d.ts +2 -0
  69. package/lib/PageScroller/story/FifthComponent.d.ts +1 -0
  70. package/lib/PageScroller/story/FirstComponent.d.ts +1 -0
  71. package/lib/PageScroller/story/FourthComponent.d.ts +1 -0
  72. package/lib/PageScroller/story/FullPage.d.ts +1 -0
  73. package/lib/PageScroller/story/PageContain.d.ts +1 -0
  74. package/lib/PageScroller/story/SecondComponent.d.ts +1 -0
  75. package/lib/PageScroller/story/ThirdComponent.d.ts +1 -0
  76. package/lib/PageScroller/usePrevValue.d.ts +1 -0
  77. package/lib/Passport/index.d.ts +2 -0
  78. package/lib/Passport/passport.d.ts +31 -0
  79. package/lib/PoweredByArcBlock/index.d.ts +15 -0
  80. package/lib/PricingTable/PricingPlan.d.ts +10 -0
  81. package/lib/PricingTable/index.d.ts +2 -0
  82. package/lib/QRCode/index.d.ts +23 -0
  83. package/lib/RelativeTime/index.d.ts +41 -0
  84. package/lib/Result/common.d.ts +52 -0
  85. package/lib/Result/index.d.ts +19 -0
  86. package/lib/Result/result.d.ts +30 -0
  87. package/lib/Result/translations.d.ts +55 -0
  88. package/lib/Screenshot/BaseScreenshot/index.d.ts +25 -0
  89. package/lib/Screenshot/BaseScreenshot/shells/Macbook.d.ts +21 -0
  90. package/lib/Screenshot/BaseScreenshot/shells/Phone.d.ts +21 -0
  91. package/lib/Screenshot/index.d.ts +29 -0
  92. package/lib/SessionBlocklet/index.d.ts +20 -0
  93. package/lib/SessionManager/index.d.ts +2 -0
  94. package/lib/SessionPermission/index.d.ts +18 -0
  95. package/lib/SessionUser/components/logged-in.d.ts +32 -0
  96. package/lib/SessionUser/components/session-user-item.d.ts +2 -0
  97. package/lib/SessionUser/components/session-user-switch.d.ts +22 -0
  98. package/lib/SessionUser/components/un-login.d.ts +24 -0
  99. package/lib/SessionUser/components/user-info.d.ts +30 -0
  100. package/lib/SessionUser/index.d.ts +31 -0
  101. package/lib/SessionUser/libs/translation.d.ts +31 -0
  102. package/lib/SessionUser/libs/utils.d.ts +9 -0
  103. package/lib/Sparkline/index.d.ts +1 -0
  104. package/lib/Spinner/index.d.ts +2 -0
  105. package/lib/SplitButton/index.d.ts +2 -1
  106. package/lib/SplitButton/index.js +1 -1
  107. package/lib/Success/index.d.ts +22 -0
  108. package/lib/Tabs/index.d.ts +27 -0
  109. package/lib/TextCollapse/index.d.ts +2 -0
  110. package/lib/Typography/index.d.ts +25 -0
  111. package/lib/Util/federated.d.ts +61 -0
  112. package/lib/Util/passport.d.ts +33 -0
  113. package/lib/Util/wallet.d.ts +3 -0
  114. package/lib/Video/index.d.ts +19 -0
  115. package/lib/Wallet/Action.d.ts +21 -0
  116. package/lib/Wallet/Download.d.ts +33 -0
  117. package/lib/Wallet/Open.d.ts +16 -0
  118. package/lib/WalletOSIcon/index.d.ts +26 -0
  119. package/lib/WebWalletSWKeeper/index.d.ts +21 -0
  120. package/lib/WechatPrompt/index.d.ts +1 -0
  121. package/lib/index.d.ts +36 -0
  122. package/lib/withTheme/index.d.ts +7 -0
  123. package/lib/withTracker/error_boundary.d.ts +9 -0
  124. package/lib/withTracker/index.d.ts +2 -0
  125. package/package.json +10 -7
  126. package/src/BlockletV2/blocklet.tsx +130 -0
  127. package/src/BlockletV2/components/icon-text.tsx +29 -0
  128. package/src/BlockletV2/index.ts +5 -0
  129. package/src/BlockletV2/utils.js +75 -0
  130. package/src/Button/wrap.js +9 -5
  131. package/src/MuiWrap/index.tsx +3 -2
  132. package/src/SplitButton/index.tsx +2 -2
@@ -0,0 +1,19 @@
1
+ export default ResultWrapper;
2
+ declare function ResultWrapper({ status, ...rest }: {
3
+ [x: string]: any;
4
+ status: any;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ declare namespace ResultWrapper {
7
+ let propTypes: {
8
+ icon: PropTypes.Requireable<PropTypes.ReactElementLike>;
9
+ title: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
10
+ description: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
11
+ actions: PropTypes.Requireable<any>;
12
+ extra: PropTypes.Requireable<PropTypes.ReactElementLike>;
13
+ status: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
14
+ };
15
+ namespace defaultProps {
16
+ let status: string;
17
+ }
18
+ }
19
+ import PropTypes from 'prop-types';
@@ -0,0 +1,30 @@
1
+ export default Result;
2
+ declare function Result({ icon, title, description, extra, ...rest }: {
3
+ [x: string]: any;
4
+ icon: any;
5
+ title: any;
6
+ description: any;
7
+ extra: any;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ declare namespace Result {
10
+ namespace propTypes {
11
+ let icon: PropTypes.Requireable<PropTypes.ReactElementLike>;
12
+ let title: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
13
+ let description: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
14
+ let actions: PropTypes.Requireable<any>;
15
+ let extra: PropTypes.Requireable<PropTypes.ReactElementLike>;
16
+ }
17
+ namespace defaultProps {
18
+ let icon_1: undefined;
19
+ export { icon_1 as icon };
20
+ let title_1: string;
21
+ export { title_1 as title };
22
+ let description_1: string;
23
+ export { description_1 as description };
24
+ let actions_1: null;
25
+ export { actions_1 as actions };
26
+ let extra_1: undefined;
27
+ export { extra_1 as extra };
28
+ }
29
+ }
30
+ import PropTypes from 'prop-types';
@@ -0,0 +1,55 @@
1
+ declare namespace _default {
2
+ let en: {
3
+ 404: {
4
+ title: string;
5
+ description: string;
6
+ };
7
+ 403: {
8
+ title: string;
9
+ description: string;
10
+ };
11
+ 500: {
12
+ title: string;
13
+ description: string;
14
+ };
15
+ error: {
16
+ title: string;
17
+ description: string;
18
+ };
19
+ maintenance: {
20
+ title: string;
21
+ description: string;
22
+ };
23
+ comingSoon: {
24
+ title: string;
25
+ description: string;
26
+ };
27
+ };
28
+ let zh: {
29
+ 404: {
30
+ title: string;
31
+ description: string;
32
+ };
33
+ 403: {
34
+ title: string;
35
+ description: string;
36
+ };
37
+ 500: {
38
+ title: string;
39
+ description: string;
40
+ };
41
+ error: {
42
+ title: string;
43
+ description: string;
44
+ };
45
+ maintenance: {
46
+ title: string;
47
+ description: string;
48
+ };
49
+ comingSoon: {
50
+ title: string;
51
+ description: string;
52
+ };
53
+ };
54
+ }
55
+ export default _default;
@@ -0,0 +1,25 @@
1
+ export default Screenshot;
2
+ declare function Screenshot({ width, children, type, sx, ...rest }: {
3
+ [x: string]: any;
4
+ width: any;
5
+ children: any;
6
+ type: any;
7
+ sx: any;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ declare namespace Screenshot {
10
+ namespace propTypes {
11
+ let width: PropTypes.Requireable<number>;
12
+ let type: PropTypes.Requireable<string>;
13
+ let children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
14
+ let sx: PropTypes.Requireable<object>;
15
+ }
16
+ namespace defaultProps {
17
+ let width_1: number;
18
+ export { width_1 as width };
19
+ let type_1: string;
20
+ export { type_1 as type };
21
+ let sx_1: {};
22
+ export { sx_1 as sx };
23
+ }
24
+ }
25
+ import PropTypes from 'prop-types';
@@ -0,0 +1,21 @@
1
+ export function Shell({ ...rest }: {
2
+ [x: string]: any;
3
+ }): import("react/jsx-runtime").JSX.Element;
4
+ export const width: 909;
5
+ export const height: 517;
6
+ export const ratio: number;
7
+ export namespace screenData {
8
+ let x: number;
9
+ let y: number;
10
+ let width: number;
11
+ let height: number;
12
+ let radius: string;
13
+ }
14
+ declare namespace _default {
15
+ export { Shell };
16
+ export { ratio };
17
+ export { screenData };
18
+ export { width };
19
+ export { height };
20
+ }
21
+ export default _default;
@@ -0,0 +1,21 @@
1
+ export function Shell({ ...rest }: {
2
+ [x: string]: any;
3
+ }): import("react/jsx-runtime").JSX.Element;
4
+ export const width: 268;
5
+ export const height: 554;
6
+ export const ratio: number;
7
+ export namespace screenData {
8
+ let x: number;
9
+ let y: number;
10
+ let width: number;
11
+ let height: number;
12
+ let radius: string;
13
+ }
14
+ declare namespace _default {
15
+ export { Shell };
16
+ export { ratio };
17
+ export { screenData };
18
+ export { width };
19
+ export { height };
20
+ }
21
+ export default _default;
@@ -0,0 +1,29 @@
1
+ export default Screenshot;
2
+ declare function Screenshot({ type, src, children, style, sx, ...rest }: {
3
+ [x: string]: any;
4
+ type: any;
5
+ src: any;
6
+ children: any;
7
+ style: any;
8
+ sx: any;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ declare namespace Screenshot {
11
+ namespace propTypes {
12
+ let type: PropTypes.Validator<string>;
13
+ let src: PropTypes.Requireable<string>;
14
+ let style: PropTypes.Requireable<object>;
15
+ let sx: PropTypes.Requireable<object>;
16
+ let children: PropTypes.Requireable<any>;
17
+ }
18
+ namespace defaultProps {
19
+ let src_1: string;
20
+ export { src_1 as src };
21
+ let children_1: null;
22
+ export { children_1 as children };
23
+ let style_1: {};
24
+ export { style_1 as style };
25
+ let sx_1: {};
26
+ export { sx_1 as sx };
27
+ }
28
+ }
29
+ import PropTypes from 'prop-types';
@@ -0,0 +1,20 @@
1
+ declare function SessionBlocklet({ session, locale, size }: {
2
+ session: any;
3
+ locale: any;
4
+ size: any;
5
+ }): import("react/jsx-runtime").JSX.Element | null;
6
+ declare namespace SessionBlocklet {
7
+ namespace propTypes {
8
+ let session: PropTypes.Validator<object>;
9
+ let locale: PropTypes.Requireable<string>;
10
+ let size: PropTypes.Requireable<number>;
11
+ }
12
+ namespace defaultProps {
13
+ let locale_1: string;
14
+ export { locale_1 as locale };
15
+ let size_1: number;
16
+ export { size_1 as size };
17
+ }
18
+ }
19
+ export default SessionBlocklet;
20
+ import PropTypes from 'prop-types';
@@ -0,0 +1,2 @@
1
+ export default SessionUser;
2
+ import SessionUser from '../SessionUser';
@@ -0,0 +1,18 @@
1
+ declare function SessionPermission({ session, roles, children }: {
2
+ session: any;
3
+ roles: any;
4
+ children: any;
5
+ }): any;
6
+ declare namespace SessionPermission {
7
+ namespace propTypes {
8
+ let children: PropTypes.Validator<any>;
9
+ let session: PropTypes.Validator<object>;
10
+ let roles: PropTypes.Requireable<(string | null | undefined)[]>;
11
+ }
12
+ namespace defaultProps {
13
+ let roles_1: string[];
14
+ export { roles_1 as roles };
15
+ }
16
+ }
17
+ export default SessionPermission;
18
+ import PropTypes from 'prop-types';
@@ -0,0 +1,32 @@
1
+ declare function LoggedIn({ session, dark, onBindWallet, isBlocklet, locale, size }: {
2
+ session: any;
3
+ dark: any;
4
+ onBindWallet: any;
5
+ isBlocklet: any;
6
+ locale: any;
7
+ size: any;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ declare namespace LoggedIn {
10
+ namespace propTypes {
11
+ let session: PropTypes.Validator<object>;
12
+ let onBindWallet: PropTypes.Requireable<(...args: any[]) => any>;
13
+ let dark: PropTypes.Requireable<boolean>;
14
+ let isBlocklet: PropTypes.Requireable<boolean>;
15
+ let locale: PropTypes.Requireable<string>;
16
+ let size: PropTypes.Requireable<number>;
17
+ }
18
+ namespace defaultProps {
19
+ let dark_1: boolean;
20
+ export { dark_1 as dark };
21
+ let isBlocklet_1: boolean;
22
+ export { isBlocklet_1 as isBlocklet };
23
+ export { noop as onBindWallet };
24
+ let locale_1: string;
25
+ export { locale_1 as locale };
26
+ let size_1: number;
27
+ export { size_1 as size };
28
+ }
29
+ }
30
+ export default LoggedIn;
31
+ import PropTypes from 'prop-types';
32
+ import noop from 'lodash/noop';
@@ -0,0 +1,2 @@
1
+ export default SessionUserItem;
2
+ declare const SessionUserItem: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
@@ -0,0 +1,22 @@
1
+ declare function SessionUserSwitch({ session, onSwitch, isBlocklet, locale }: {
2
+ session: any;
3
+ onSwitch: any;
4
+ isBlocklet: any;
5
+ locale: any;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ declare namespace SessionUserSwitch {
8
+ namespace propTypes {
9
+ let session: PropTypes.Validator<object>;
10
+ let onSwitch: PropTypes.Validator<(...args: any[]) => any>;
11
+ let isBlocklet: PropTypes.Requireable<boolean>;
12
+ let locale: PropTypes.Requireable<string>;
13
+ }
14
+ namespace defaultProps {
15
+ let isBlocklet_1: boolean;
16
+ export { isBlocklet_1 as isBlocklet };
17
+ let locale_1: string;
18
+ export { locale_1 as locale };
19
+ }
20
+ }
21
+ export default SessionUserSwitch;
22
+ import PropTypes from 'prop-types';
@@ -0,0 +1,24 @@
1
+ declare function UnLogin({ session, onLogin, size, dark }: {
2
+ session: any;
3
+ onLogin: any;
4
+ size: any;
5
+ dark: any;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ declare namespace UnLogin {
8
+ namespace propTypes {
9
+ let session: PropTypes.Validator<object>;
10
+ let onLogin: PropTypes.Requireable<(...args: any[]) => any>;
11
+ let size: PropTypes.Requireable<number>;
12
+ let dark: PropTypes.Requireable<boolean>;
13
+ }
14
+ namespace defaultProps {
15
+ export { noop as onLogin };
16
+ let size_1: number;
17
+ export { size_1 as size };
18
+ let dark_1: boolean;
19
+ export { dark_1 as dark };
20
+ }
21
+ }
22
+ export default UnLogin;
23
+ import PropTypes from 'prop-types';
24
+ import noop from 'lodash/noop';
@@ -0,0 +1,30 @@
1
+ declare function UserInfo({ session, onSwitchPassport, onSwitchAccount, onBindWallet, onSwitchProfile, locale, isBlocklet, }: {
2
+ session: any;
3
+ onSwitchPassport: any;
4
+ onSwitchAccount: any;
5
+ onBindWallet: any;
6
+ onSwitchProfile: any;
7
+ locale: any;
8
+ isBlocklet: any;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ declare namespace UserInfo {
11
+ namespace propTypes {
12
+ let session: PropTypes.Validator<object>;
13
+ let onSwitchPassport: PropTypes.Validator<(...args: any[]) => any>;
14
+ let onSwitchAccount: PropTypes.Validator<(...args: any[]) => any>;
15
+ let onBindWallet: PropTypes.Validator<(...args: any[]) => any>;
16
+ let onSwitchProfile: PropTypes.Requireable<(...args: any[]) => any>;
17
+ let locale: PropTypes.Requireable<string>;
18
+ let isBlocklet: PropTypes.Requireable<boolean>;
19
+ }
20
+ namespace defaultProps {
21
+ let locale_1: string;
22
+ export { locale_1 as locale };
23
+ let isBlocklet_1: boolean;
24
+ export { isBlocklet_1 as isBlocklet };
25
+ export { noop as onSwitchProfile };
26
+ }
27
+ }
28
+ export default UserInfo;
29
+ import PropTypes from 'prop-types';
30
+ import noop from 'lodash/noop';
@@ -0,0 +1,31 @@
1
+ declare function SessionUser({ session, onBindWallet, locale, size }: {
2
+ session: any;
3
+ onBindWallet: any;
4
+ locale: any;
5
+ size: any;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ declare namespace SessionUser {
8
+ namespace propTypes {
9
+ let session: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
10
+ user: PropTypes.Requireable<PropTypes.InferProps<{
11
+ did: PropTypes.Validator<string>;
12
+ fullName: PropTypes.Validator<string>;
13
+ avatar: PropTypes.Validator<string>;
14
+ email: PropTypes.Requireable<string>;
15
+ }>>;
16
+ }>>>;
17
+ let onBindWallet: PropTypes.Requireable<(...args: any[]) => any>;
18
+ let locale: PropTypes.Requireable<string>;
19
+ let size: PropTypes.Requireable<number>;
20
+ }
21
+ namespace defaultProps {
22
+ export { noop as onBindWallet };
23
+ let locale_1: string;
24
+ export { locale_1 as locale };
25
+ let size_1: number;
26
+ export { size_1 as size };
27
+ }
28
+ }
29
+ export default SessionUser;
30
+ import PropTypes from 'prop-types';
31
+ import noop from 'lodash/noop';
@@ -0,0 +1,31 @@
1
+ export namespace translations {
2
+ namespace en {
3
+ export let connectDIDWallet: string;
4
+ let _switch: string;
5
+ export { _switch as switch };
6
+ export let profile: string;
7
+ export let invite: string;
8
+ export let inviteCopied: string;
9
+ export let dashboard: string;
10
+ export let logout: string;
11
+ export let addAnotherAccount: string;
12
+ }
13
+ namespace zh {
14
+ let connectDIDWallet_1: string;
15
+ export { connectDIDWallet_1 as connectDIDWallet };
16
+ let _switch_1: string;
17
+ export { _switch_1 as switch };
18
+ let profile_1: string;
19
+ export { profile_1 as profile };
20
+ let invite_1: string;
21
+ export { invite_1 as invite };
22
+ let inviteCopied_1: string;
23
+ export { inviteCopied_1 as inviteCopied };
24
+ let dashboard_1: string;
25
+ export { dashboard_1 as dashboard };
26
+ let logout_1: string;
27
+ export { logout_1 as logout };
28
+ let addAnotherAccount_1: string;
29
+ export { addAnotherAccount_1 as addAnotherAccount };
30
+ }
31
+ }
@@ -0,0 +1,9 @@
1
+ export function getPermanentDid(user: any): any;
2
+ export function getConnectedAccounts(user: any): any;
3
+ export function getSourceProvider(user: any): any;
4
+ export function getSourceProviders(user: any): any;
5
+ export function getConnectedDids(user: any): any;
6
+ export function getWallet(user: any): any;
7
+ export function getWalletDid(user: any): any;
8
+ export function getSourceAppPid(user: any): any;
9
+ export function getCurrentAppPid(user: any): any;
@@ -0,0 +1 @@
1
+ export default function sparkline(svg: any, entries: any, options: any): void;
@@ -0,0 +1,2 @@
1
+ declare const _default: (props: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -1,10 +1,11 @@
1
+ import React from 'react';
1
2
  import PropTypes from 'prop-types';
2
3
  import MenuItem, { MenuItemProps } from '@mui/material/MenuItem';
3
4
  import { ButtonGroupProps } from '@mui/material/ButtonGroup';
4
5
  import { ButtonProps } from '@mui/material/Button';
5
6
  export interface SplitButtonProps extends Omit<ButtonGroupProps, 'children'> {
6
7
  menu?: React.ReactElement<MenuItemProps, typeof MenuItem> | React.ReactElement<MenuItemProps, typeof MenuItem>[] | MenuItemProps[];
7
- children?: JSX.Element | (() => JSX.Element);
8
+ children?: React.ReactNode | (() => React.ReactNode);
8
9
  onClick?: () => void;
9
10
  menuButtonProps?: ButtonProps;
10
11
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { useState, useRef, isValidElement, createElement as _createElement } from 'react';
2
+ import React, { useState, useRef, isValidElement, createElement as _createElement } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import ExpandMore from '@mui/icons-material/ExpandMore';
5
5
  import Popper from '@mui/material/Popper';
@@ -0,0 +1,22 @@
1
+ declare function Success({ size, backgroundColor, borderWidth }: {
2
+ size: any;
3
+ backgroundColor: any;
4
+ borderWidth: any;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ declare namespace Success {
7
+ namespace propTypes {
8
+ let size: PropTypes.Requireable<number>;
9
+ let borderWidth: PropTypes.Requireable<number>;
10
+ let backgroundColor: PropTypes.Requireable<string>;
11
+ }
12
+ namespace defaultProps {
13
+ let size_1: number;
14
+ export { size_1 as size };
15
+ let borderWidth_1: number;
16
+ export { borderWidth_1 as borderWidth };
17
+ let backgroundColor_1: string;
18
+ export { backgroundColor_1 as backgroundColor };
19
+ }
20
+ }
21
+ export default Success;
22
+ import PropTypes from 'prop-types';
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @typedef {import('@mui/material').TabsProps & {
3
+ * tabs: string[];
4
+ * onChange: (value) => {};
5
+ * variant: 'line' | 'card' | 'fullWidth' | 'scrollable' | 'standard'
6
+ * }} TabsProps
7
+ */
8
+ /**
9
+ * @description
10
+ * @param {TabsProps} props
11
+ * @return {import('react').ReactNode}
12
+ */
13
+ declare function Tabs({ tabs, current, onChange, ...rest }: TabsProps): import("react").ReactNode;
14
+ declare namespace Tabs {
15
+ namespace propTypes {
16
+ let tabs: PropTypes.Validator<any[]>;
17
+ let current: PropTypes.Validator<string>;
18
+ let onChange: PropTypes.Validator<(...args: any[]) => any>;
19
+ }
20
+ }
21
+ export default Tabs;
22
+ export type TabsProps = import("@mui/material").TabsProps & {
23
+ tabs: string[];
24
+ onChange: (value: any) => {};
25
+ variant: "line" | "card" | "fullWidth" | "scrollable" | "standard";
26
+ };
27
+ import PropTypes from 'prop-types';
@@ -0,0 +1,2 @@
1
+ declare const _default: (props: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -0,0 +1,25 @@
1
+ declare function Typography({ minFontSize, fontSize, children, sx, ...rest }: {
2
+ [x: string]: any;
3
+ minFontSize: any;
4
+ fontSize: any;
5
+ children: any;
6
+ sx: any;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ declare namespace Typography {
9
+ namespace propTypes {
10
+ let fontSize: PropTyps.Requireable<NonNullable<string | number | null | undefined>>;
11
+ let children: PropTyps.Validator<any>;
12
+ let minFontSize: PropTyps.Requireable<number>;
13
+ let sx: PropTyps.Requireable<object>;
14
+ }
15
+ namespace defaultProps {
16
+ let fontSize_1: undefined;
17
+ export { fontSize_1 as fontSize };
18
+ let minFontSize_1: number;
19
+ export { minFontSize_1 as minFontSize };
20
+ let sx_1: {};
21
+ export { sx_1 as sx };
22
+ }
23
+ }
24
+ export default Typography;
25
+ import PropTyps from 'prop-types';
@@ -0,0 +1,61 @@
1
+ export function getMaster(blocklet?: any): any;
2
+ export function getConfig(blocklet?: any): any;
3
+ export function getFederatedEnabled(blocklet?: any): boolean;
4
+ export function getSourceAppPid(blocklet?: any): any;
5
+ export function getFederatedApp(blocklet?: any): {
6
+ appId: any;
7
+ appName: any;
8
+ appDescription: any;
9
+ appLogo: any;
10
+ appPid: any;
11
+ appUrl: any;
12
+ version: any;
13
+ sourceAppPid: any;
14
+ provider: string;
15
+ } | null;
16
+ export function getCurrentApp(blocklet?: any): {
17
+ appId: any;
18
+ appName: any;
19
+ appDescription: any;
20
+ appLogo: any;
21
+ appPid: any;
22
+ appUrl: any;
23
+ version: any;
24
+ sourceAppPid: null;
25
+ provider: string;
26
+ type?: undefined;
27
+ } | {
28
+ appId: any;
29
+ appName: any;
30
+ appDescription: any;
31
+ appUrl: any;
32
+ sourceAppPid: null;
33
+ provider: string;
34
+ type: string;
35
+ appLogo?: undefined;
36
+ appPid?: undefined;
37
+ version?: undefined;
38
+ } | null;
39
+ export function getApps(blocklet: any): ({
40
+ appId: any;
41
+ appName: any;
42
+ appDescription: any;
43
+ appLogo: any;
44
+ appPid: any;
45
+ appUrl: any;
46
+ version: any;
47
+ sourceAppPid: any;
48
+ provider: string;
49
+ } | {
50
+ appId: any;
51
+ appName: any;
52
+ appDescription: any;
53
+ appUrl: any;
54
+ sourceAppPid: null;
55
+ provider: string;
56
+ type: string;
57
+ appLogo?: undefined;
58
+ appPid?: undefined;
59
+ version?: undefined;
60
+ })[];
61
+ export function getBlockletData(appUrl: any): Promise<any>;
@@ -0,0 +1,33 @@
1
+ export function getPassportColor(preferredColor: any, did: any): {
2
+ start: string;
3
+ end: string;
4
+ };
5
+ export function getTextColor(background: any): "#111" | "#EEE";
6
+ export function createPassportSvg({ issuer, title, issuerDid, issuerAvatarUrl, ownerDid, ownerAvatarUrl, preferredColor, revoked, isDataUrl, width, height, }: {
7
+ issuer?: string | undefined;
8
+ title?: string | undefined;
9
+ issuerDid?: string | undefined;
10
+ issuerAvatarUrl?: string | undefined;
11
+ ownerDid?: string | undefined;
12
+ ownerAvatarUrl?: string | undefined;
13
+ preferredColor?: string | undefined;
14
+ revoked?: boolean | undefined;
15
+ isDataUrl?: boolean | undefined;
16
+ width?: string | undefined;
17
+ height?: string | undefined;
18
+ }): string;
19
+ export function createKycSvg({ issuer, title, issuerDid, issuerAvatarUrl, ownerDid, ownerName, ownerAvatarUrl, preferredColor, type, revoked, isDataUrl, width, height, }: {
20
+ issuer?: string | undefined;
21
+ title?: string | undefined;
22
+ issuerDid?: string | undefined;
23
+ issuerAvatarUrl?: string | undefined;
24
+ ownerDid?: string | undefined;
25
+ ownerName?: string | undefined;
26
+ ownerAvatarUrl?: string | undefined;
27
+ preferredColor?: string | undefined;
28
+ type?: string | undefined;
29
+ revoked?: boolean | undefined;
30
+ isDataUrl?: boolean | undefined;
31
+ width?: string | undefined;
32
+ height?: string | undefined;
33
+ }): string;
@@ -0,0 +1,3 @@
1
+ export const providerName: "wallet_url";
2
+ export function getWebWalletUrl(): any;
3
+ export function checkSameProtocol(webWalletUrl: any): boolean;