@make-software/csprclick-ui 1.5.0 → 1.7.2
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/.eslintignore +1 -0
- package/README.md +0 -1
- package/dist/cjs/lib/index.js +15 -7
- package/dist/cjs/lib/lib/BuyCspr/api/useOnRamApi.d.ts +1 -1
- package/dist/cjs/lib/lib/BuyCspr/components/BuyCSPRForm.d.ts +1 -1
- package/dist/cjs/lib/lib/BuyCspr/components/ChooseProvider.d.ts +1 -1
- package/dist/cjs/lib/lib/BuyCspr/components/NoAvailableProviders.d.ts +1 -1
- package/dist/cjs/lib/lib/BuyCspr/components/ProviderRow.d.ts +1 -1
- package/dist/cjs/lib/lib/BuyCspr/components/RedirectionBlocked.d.ts +1 -1
- package/dist/cjs/lib/lib/BuyCspr/styles.d.ts +8 -0
- package/dist/cjs/lib/lib/BuyCspr/types.d.ts +1 -1
- package/dist/cjs/lib/lib/ChangeAccountConfirmation/ChangeAccountConfirmation.d.ts +1 -1
- package/dist/cjs/lib/lib/ClickUI.d.ts +1 -1
- package/dist/cjs/lib/lib/CrossNavigationMenu/InnerMenu.d.ts +3 -1
- package/dist/cjs/lib/lib/CustomSettingsSelector/CustomSettingsSelector.d.ts +2 -1
- package/dist/cjs/lib/lib/InfoPopup/InfoPopup.d.ts +1 -1
- package/dist/cjs/lib/lib/LangSwitch/components/LangSwitchContainerMobile.d.ts +1 -1
- package/dist/cjs/lib/lib/OneClickSignIn/OneClickSignIn.d.ts +1 -1
- package/dist/cjs/lib/lib/ProviderConnection/ProviderConnection.d.ts +1 -1
- package/dist/cjs/lib/lib/SignIn/components/SocialLogin.d.ts +1 -1
- package/dist/cjs/lib/lib/SkeletonLoader/SkeletonLoader.d.ts +1 -1
- package/dist/cjs/lib/lib/SwitchAccount/SwitchAccount.d.ts +2 -2
- package/dist/cjs/lib/lib/SwitchCurrency/SwitchCurrency.d.ts +2 -2
- package/dist/cjs/lib/lib/SwitchCurrency/components/CurrencyItemContainer.d.ts +1 -1
- package/dist/cjs/lib/lib/TopBar/TopBar.d.ts +1 -1
- package/dist/cjs/lib/lib/TopBar/components/CopyHashMenuItem.d.ts +1 -1
- package/dist/cjs/lib/lib/TopBar/components/DropdownPopupItem.d.ts +1 -1
- package/dist/cjs/lib/lib/TopBar/components/MobileDropdownContainer.d.ts +1 -1
- package/dist/cjs/lib/lib/TransactionReview/MessageSignatureInstructions.d.ts +1 -1
- package/dist/cjs/lib/lib/WalletConnect/WalletConnectConnection.d.ts +1 -1
- package/dist/cjs/lib/lib/WalletConnect/components/NewPairing.d.ts +1 -1
- package/dist/cjs/lib/lib/components/AccountListItem.d.ts +2 -2
- package/dist/cjs/lib/lib/components/FooterPolicies.d.ts +1 -1
- package/dist/cjs/lib/lib/components/ScrollContainer.d.ts +1 -1
- package/dist/cjs/lib/lib/types/customTopBarMenuSettings.d.ts +1 -1
- package/dist/cjs/lib/lib/types/networks.d.ts +1 -1
- package/dist/cjs/lib/lib/types/theme.d.ts +99 -6
- package/dist/index.d.ts +102 -9
- package/dist/lib/index.js +15 -7
- package/package.json +12 -11
- package/package.json.local +4 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfirmBuyCSPRResponse, GetOnRampResponse, GetResponseType, ResponseOnRampProps } from
|
|
1
|
+
import { ConfirmBuyCSPRResponse, GetOnRampResponse, GetResponseType, ResponseOnRampProps } from '../types';
|
|
2
2
|
export declare const useGetBuyCSPRData: () => GetResponseType<GetOnRampResponse>;
|
|
3
3
|
export declare const useGetProvidersList: () => {
|
|
4
4
|
loading?: boolean | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { BuyCSPRFormProps } from '../types';
|
|
2
|
-
export declare const BuyCSPRForm: ({ acc, buyCSPRFormData, onNextStep, themeMode
|
|
2
|
+
export declare const BuyCSPRForm: ({ acc, buyCSPRFormData, onNextStep, themeMode }: BuyCSPRFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,5 +8,5 @@ interface ChooseProviderProps {
|
|
|
8
8
|
onBack: () => void;
|
|
9
9
|
onClose: () => void;
|
|
10
10
|
}
|
|
11
|
-
export declare const ChooseProvider: ({ rampData, lastInputIsCrypto, countryTitle, currencyCode, onSubmit, onBack, onClose
|
|
11
|
+
export declare const ChooseProvider: ({ rampData, lastInputIsCrypto, countryTitle, currencyCode, onSubmit, onBack, onClose }: ChooseProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -7,5 +7,5 @@ interface NoAvailableProvidersProps {
|
|
|
7
7
|
onClose: () => void;
|
|
8
8
|
error?: OnRampError;
|
|
9
9
|
}
|
|
10
|
-
export declare const NoAvailableProviders: ({ countryTitle, currencyCode, message, error, onBack, onClose
|
|
10
|
+
export declare const NoAvailableProviders: ({ countryTitle, currencyCode, message, error, onBack, onClose }: NoAvailableProvidersProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ProviderRowProps } from '../types';
|
|
2
|
-
export declare const ProviderRow: ({ providerName, csprExchangeRate, cryptoAsset, cryptoAmount, isActive, onClick, logoSVG, logoPNG, margin, fees
|
|
2
|
+
export declare const ProviderRow: ({ providerName, csprExchangeRate, cryptoAsset, cryptoAmount, isActive, onClick, logoSVG, logoPNG, margin, fees }: ProviderRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ProviderRow;
|
|
@@ -3,4 +3,4 @@ export interface RedirectionBlockedProps {
|
|
|
3
3
|
location: string;
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
}
|
|
6
|
-
export declare const RedirectionBlocked: ({ provider, location, onClose
|
|
6
|
+
export declare const RedirectionBlocked: ({ provider, location, onClose }: RedirectionBlockedProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,5 +14,5 @@ interface ClickUIProps {
|
|
|
14
14
|
rootAppElement?: string;
|
|
15
15
|
show1ClickModal?: boolean;
|
|
16
16
|
}
|
|
17
|
-
export declare function ClickUI({ themeMode, topBarSettings, rootAppElement, show1ClickModal
|
|
17
|
+
export declare function ClickUI({ themeMode, topBarSettings, rootAppElement, show1ClickModal }: ClickUIProps): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export default ClickUI;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { CrossAppMenuItemSettings } from '@make-software/csprclick-core-types';
|
|
2
3
|
export interface InnerMenuProps {
|
|
3
4
|
caption: string;
|
|
5
|
+
onClickCaption?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
4
6
|
isOpen: boolean;
|
|
5
7
|
menuItems: CrossAppMenuItemSettings[] | undefined;
|
|
6
8
|
}
|
|
7
|
-
export declare const InnerMenu: ({ caption, menuItems, isOpen }: InnerMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const InnerMenu: ({ caption, menuItems, isOpen, onClickCaption }: InnerMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,8 @@ export interface ItemMenuProps {
|
|
|
3
3
|
currentItem?: string | CustomTopBarMenuItem;
|
|
4
4
|
onChangeItem: (item: string) => void;
|
|
5
5
|
items: string[] | CustomTopBarMenuItem[];
|
|
6
|
+
dropdownCssClass?: string;
|
|
6
7
|
}
|
|
7
8
|
export declare const getCurrentIcon: (menu: any, isTopBar?: boolean) => any;
|
|
8
|
-
declare const CustomSettingsSelector: ({ items, currentItem, onChangeItem }: ItemMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const CustomSettingsSelector: ({ items, currentItem, onChangeItem, dropdownCssClass }: ItemMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export default CustomSettingsSelector;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccountType } from '@make-software/csprclick-core-types';
|
|
2
|
-
import { ThemeModeType } from
|
|
2
|
+
import { ThemeModeType } from '../types';
|
|
3
3
|
interface OneClickSignInProps {
|
|
4
4
|
accounts: AccountType[];
|
|
5
5
|
onAccountClick: (acc: AccountType | null) => Promise<void>;
|
|
@@ -20,5 +20,5 @@ interface ProviderConnectionProps {
|
|
|
20
20
|
themeMode?: ThemeModeType;
|
|
21
21
|
onModalClose?: () => void;
|
|
22
22
|
}
|
|
23
|
-
export declare const ProviderConnection: ({ clickRef, event, themeMode, onModalClose
|
|
23
|
+
export declare const ProviderConnection: ({ clickRef, event, themeMode, onModalClose }: ProviderConnectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export default ProviderConnection;
|
|
@@ -4,5 +4,5 @@ interface SkeletonComponentProps {
|
|
|
4
4
|
width?: string;
|
|
5
5
|
height?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const SkeletonLoader: ({ baseColor, animationColor, height, width
|
|
7
|
+
export declare const SkeletonLoader: ({ baseColor, animationColor, height, width }: SkeletonComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Options, ThemeModeType } from
|
|
2
|
-
import { AccountType } from
|
|
1
|
+
import { Options, ThemeModeType } from '../types';
|
|
2
|
+
import { AccountType } from '@make-software/csprclick-core-types';
|
|
3
3
|
export interface SwitchAccountSceneProps {
|
|
4
4
|
options: Options;
|
|
5
5
|
clickRef: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CurrencySettings } from
|
|
1
|
+
import { CurrencySettings } from '../types';
|
|
2
2
|
interface SwitchCurrencyProps {
|
|
3
3
|
currencySettings: CurrencySettings;
|
|
4
4
|
}
|
|
5
|
-
export declare const SwitchCurrency: ({ currencySettings
|
|
5
|
+
export declare const SwitchCurrency: ({ currencySettings }: SwitchCurrencyProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -4,5 +4,5 @@ interface CurrencyDisplayOptions {
|
|
|
4
4
|
}
|
|
5
5
|
interface CurrencyItemContainerProps extends CurrencySettings, CurrencyDisplayOptions {
|
|
6
6
|
}
|
|
7
|
-
export declare const CurrencyItemContainer: ({ currencies, onChangeCurrency, currentCurrency, columnAmount
|
|
7
|
+
export declare const CurrencyItemContainer: ({ currencies, onChangeCurrency, currentCurrency, columnAmount }: CurrencyItemContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AccountType } from
|
|
2
|
+
import { AccountType } from '@make-software/csprclick-core-types';
|
|
3
3
|
import { CurrencySettings, LanguageSettings, NetworkSettings, ThemeModeType, CustomTopBarMenuSettings } from '../types';
|
|
4
4
|
export declare const BannerLink: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
|
|
5
5
|
interface TopBarProps {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const CopyHashMenuItem: (
|
|
1
|
+
export declare const CopyHashMenuItem: () => import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default CopyHashMenuItem;
|
|
@@ -7,5 +7,5 @@ interface DropdownPopupItemProps {
|
|
|
7
7
|
height?: string;
|
|
8
8
|
width?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare const DropdownPopupItem: ({ isOpen, onClose, children, popupTitle, height, width
|
|
10
|
+
export declare const DropdownPopupItem: ({ isOpen, onClose, children, popupTitle, height, width }: DropdownPopupItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export default DropdownPopupItem;
|
|
@@ -11,5 +11,5 @@ export interface MobileDropdownContainerProps {
|
|
|
11
11
|
export declare const NavDropDownItemWrapper: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("@make-software/cspr-ui").FlexRowProps & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
12
12
|
export declare const StyledCommonItemIcon: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("@make-software/cspr-ui").SvgIconProps & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
13
13
|
export declare const StyledPopupTitle: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("@make-software/cspr-ui").BodyTextProps & React.RefAttributes<HTMLSpanElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
14
|
-
export declare const MobileDropdownContainer: ({ currencySettings, languageSettings, networkSettings, themeMode, onThemeSwitch, customTopBarMenuSettings
|
|
14
|
+
export declare const MobileDropdownContainer: ({ currencySettings, languageSettings, networkSettings, themeMode, onThemeSwitch, customTopBarMenuSettings }: MobileDropdownContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export default MobileDropdownContainer;
|
|
@@ -18,5 +18,5 @@ interface WalletConnectConnectionProps {
|
|
|
18
18
|
themeMode?: ThemeModeType;
|
|
19
19
|
onModalClose?: () => void;
|
|
20
20
|
}
|
|
21
|
-
export declare const WalletConnectConnection: ({ clickRef, event, themeMode, onModalClose
|
|
21
|
+
export declare const WalletConnectConnection: ({ clickRef, event, themeMode, onModalClose }: WalletConnectConnectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
export default WalletConnectConnection;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AccountType } from
|
|
2
|
-
import { ThemeModeType } from
|
|
1
|
+
import { AccountType } from '@make-software/csprclick-core-types';
|
|
2
|
+
import { ThemeModeType } from '../types';
|
|
3
3
|
interface AccountListItemProps {
|
|
4
4
|
account?: AccountType;
|
|
5
5
|
isNarrowItem?: boolean;
|
|
@@ -17,5 +17,5 @@ export declare enum ScrollVariations {
|
|
|
17
17
|
'big' = "big",
|
|
18
18
|
'medium' = "medium"
|
|
19
19
|
}
|
|
20
|
-
declare const ScrollContainer: ({ children, isModalOverflowing, variation, customMaxHeight, customMinHeight
|
|
20
|
+
declare const ScrollContainer: ({ children, isModalOverflowing, variation, customMaxHeight, customMinHeight }: ScrollContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
export default ScrollContainer;
|
|
@@ -1,22 +1,115 @@
|
|
|
1
1
|
export declare const CsprClickThemes: any;
|
|
2
|
-
export interface
|
|
2
|
+
export interface BuildThemeProps {
|
|
3
3
|
csprclickDarkTheme: object;
|
|
4
4
|
csprclickLightTheme: object;
|
|
5
|
-
appDarkTheme
|
|
6
|
-
appLightTheme
|
|
5
|
+
appDarkTheme?: object;
|
|
6
|
+
appLightTheme?: object;
|
|
7
7
|
}
|
|
8
|
-
export declare enum
|
|
8
|
+
export declare enum clickStyleguide {
|
|
9
9
|
backgroundTopBarColor = "backgroundTertiary",
|
|
10
10
|
backgroundMenuColor = "backgroundPrimary",
|
|
11
11
|
hoverProductMenu = "backgroundSecondary",
|
|
12
12
|
hoverAccountMenu = "fillSecondary",
|
|
13
|
-
textColor = "contentPrimary"
|
|
13
|
+
textColor = "contentPrimary",
|
|
14
|
+
topBarTextColor = "contentTertiary",
|
|
15
|
+
menuIconAndLinkColor = "contentBlue",
|
|
16
|
+
topBarIconHoverColor = "contentOnFill"
|
|
14
17
|
}
|
|
18
|
+
export declare const DefaultThemes: {
|
|
19
|
+
csprclick: {
|
|
20
|
+
csprclickDarkTheme: {
|
|
21
|
+
backgroundTertiary: string;
|
|
22
|
+
backgroundPrimary: string;
|
|
23
|
+
backgroundSecondary: string;
|
|
24
|
+
fillSecondary: string;
|
|
25
|
+
contentPrimary: string;
|
|
26
|
+
contentTertiary: string;
|
|
27
|
+
contentBlue: string;
|
|
28
|
+
contentOnFill: string;
|
|
29
|
+
};
|
|
30
|
+
csprclickLightTheme: {
|
|
31
|
+
backgroundTertiary: string;
|
|
32
|
+
backgroundPrimary: string;
|
|
33
|
+
backgroundSecondary: string;
|
|
34
|
+
fillSecondary: string;
|
|
35
|
+
contentPrimary: string;
|
|
36
|
+
contentTertiary: string;
|
|
37
|
+
contentBlue: string;
|
|
38
|
+
contentOnFill: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
red: {
|
|
42
|
+
csprclickDarkTheme: {
|
|
43
|
+
backgroundTertiary: string;
|
|
44
|
+
backgroundPrimary: string;
|
|
45
|
+
backgroundSecondary: string;
|
|
46
|
+
fillSecondary: string;
|
|
47
|
+
contentPrimary: string;
|
|
48
|
+
contentTertiary: string;
|
|
49
|
+
contentBlue: string;
|
|
50
|
+
contentOnFill: string;
|
|
51
|
+
};
|
|
52
|
+
csprclickLightTheme: {
|
|
53
|
+
backgroundTertiary: string;
|
|
54
|
+
backgroundPrimary: string;
|
|
55
|
+
backgroundSecondary: string;
|
|
56
|
+
fillSecondary: string;
|
|
57
|
+
contentPrimary: string;
|
|
58
|
+
contentTertiary: string;
|
|
59
|
+
contentBlue: string;
|
|
60
|
+
contentOnFill: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
green: {
|
|
64
|
+
csprclickDarkTheme: {
|
|
65
|
+
backgroundTertiary: string;
|
|
66
|
+
backgroundPrimary: string;
|
|
67
|
+
backgroundSecondary: string;
|
|
68
|
+
fillSecondary: string;
|
|
69
|
+
contentPrimary: string;
|
|
70
|
+
contentTertiary: string;
|
|
71
|
+
contentBlue: string;
|
|
72
|
+
contentOnFill: string;
|
|
73
|
+
};
|
|
74
|
+
csprclickLightTheme: {
|
|
75
|
+
backgroundTertiary: string;
|
|
76
|
+
backgroundPrimary: string;
|
|
77
|
+
backgroundSecondary: string;
|
|
78
|
+
fillSecondary: string;
|
|
79
|
+
contentPrimary: string;
|
|
80
|
+
contentTertiary: string;
|
|
81
|
+
contentBlue: string;
|
|
82
|
+
contentOnFill: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
blue: {
|
|
86
|
+
csprclickDarkTheme: {
|
|
87
|
+
backgroundTertiary: string;
|
|
88
|
+
backgroundPrimary: string;
|
|
89
|
+
backgroundSecondary: string;
|
|
90
|
+
fillSecondary: string;
|
|
91
|
+
contentPrimary: string;
|
|
92
|
+
contentTertiary: string;
|
|
93
|
+
contentBlue: string;
|
|
94
|
+
contentOnFill: string;
|
|
95
|
+
};
|
|
96
|
+
csprclickLightTheme: {
|
|
97
|
+
backgroundTertiary: string;
|
|
98
|
+
backgroundPrimary: string;
|
|
99
|
+
backgroundSecondary: string;
|
|
100
|
+
fillSecondary: string;
|
|
101
|
+
contentPrimary: string;
|
|
102
|
+
contentTertiary: string;
|
|
103
|
+
contentBlue: string;
|
|
104
|
+
contentOnFill: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
15
108
|
export declare enum ThemeModeType {
|
|
16
109
|
light = "light",
|
|
17
110
|
dark = "dark"
|
|
18
111
|
}
|
|
19
|
-
export declare const
|
|
112
|
+
export declare const buildTheme: (theme: BuildThemeProps) => {
|
|
20
113
|
dark: any;
|
|
21
114
|
light: any;
|
|
22
115
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -67,24 +67,117 @@ interface NetworkSettings {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
declare const CsprClickThemes: any;
|
|
70
|
-
interface
|
|
70
|
+
interface BuildThemeProps {
|
|
71
71
|
csprclickDarkTheme: object;
|
|
72
72
|
csprclickLightTheme: object;
|
|
73
|
-
appDarkTheme
|
|
74
|
-
appLightTheme
|
|
73
|
+
appDarkTheme?: object;
|
|
74
|
+
appLightTheme?: object;
|
|
75
75
|
}
|
|
76
|
-
declare enum
|
|
76
|
+
declare enum clickStyleguide {
|
|
77
77
|
backgroundTopBarColor = "backgroundTertiary",
|
|
78
78
|
backgroundMenuColor = "backgroundPrimary",
|
|
79
79
|
hoverProductMenu = "backgroundSecondary",
|
|
80
80
|
hoverAccountMenu = "fillSecondary",
|
|
81
|
-
textColor = "contentPrimary"
|
|
81
|
+
textColor = "contentPrimary",
|
|
82
|
+
topBarTextColor = "contentTertiary",
|
|
83
|
+
menuIconAndLinkColor = "contentBlue",
|
|
84
|
+
topBarIconHoverColor = "contentOnFill"
|
|
82
85
|
}
|
|
86
|
+
declare const DefaultThemes: {
|
|
87
|
+
csprclick: {
|
|
88
|
+
csprclickDarkTheme: {
|
|
89
|
+
backgroundTertiary: string;
|
|
90
|
+
backgroundPrimary: string;
|
|
91
|
+
backgroundSecondary: string;
|
|
92
|
+
fillSecondary: string;
|
|
93
|
+
contentPrimary: string;
|
|
94
|
+
contentTertiary: string;
|
|
95
|
+
contentBlue: string;
|
|
96
|
+
contentOnFill: string;
|
|
97
|
+
};
|
|
98
|
+
csprclickLightTheme: {
|
|
99
|
+
backgroundTertiary: string;
|
|
100
|
+
backgroundPrimary: string;
|
|
101
|
+
backgroundSecondary: string;
|
|
102
|
+
fillSecondary: string;
|
|
103
|
+
contentPrimary: string;
|
|
104
|
+
contentTertiary: string;
|
|
105
|
+
contentBlue: string;
|
|
106
|
+
contentOnFill: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
red: {
|
|
110
|
+
csprclickDarkTheme: {
|
|
111
|
+
backgroundTertiary: string;
|
|
112
|
+
backgroundPrimary: string;
|
|
113
|
+
backgroundSecondary: string;
|
|
114
|
+
fillSecondary: string;
|
|
115
|
+
contentPrimary: string;
|
|
116
|
+
contentTertiary: string;
|
|
117
|
+
contentBlue: string;
|
|
118
|
+
contentOnFill: string;
|
|
119
|
+
};
|
|
120
|
+
csprclickLightTheme: {
|
|
121
|
+
backgroundTertiary: string;
|
|
122
|
+
backgroundPrimary: string;
|
|
123
|
+
backgroundSecondary: string;
|
|
124
|
+
fillSecondary: string;
|
|
125
|
+
contentPrimary: string;
|
|
126
|
+
contentTertiary: string;
|
|
127
|
+
contentBlue: string;
|
|
128
|
+
contentOnFill: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
green: {
|
|
132
|
+
csprclickDarkTheme: {
|
|
133
|
+
backgroundTertiary: string;
|
|
134
|
+
backgroundPrimary: string;
|
|
135
|
+
backgroundSecondary: string;
|
|
136
|
+
fillSecondary: string;
|
|
137
|
+
contentPrimary: string;
|
|
138
|
+
contentTertiary: string;
|
|
139
|
+
contentBlue: string;
|
|
140
|
+
contentOnFill: string;
|
|
141
|
+
};
|
|
142
|
+
csprclickLightTheme: {
|
|
143
|
+
backgroundTertiary: string;
|
|
144
|
+
backgroundPrimary: string;
|
|
145
|
+
backgroundSecondary: string;
|
|
146
|
+
fillSecondary: string;
|
|
147
|
+
contentPrimary: string;
|
|
148
|
+
contentTertiary: string;
|
|
149
|
+
contentBlue: string;
|
|
150
|
+
contentOnFill: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
blue: {
|
|
154
|
+
csprclickDarkTheme: {
|
|
155
|
+
backgroundTertiary: string;
|
|
156
|
+
backgroundPrimary: string;
|
|
157
|
+
backgroundSecondary: string;
|
|
158
|
+
fillSecondary: string;
|
|
159
|
+
contentPrimary: string;
|
|
160
|
+
contentTertiary: string;
|
|
161
|
+
contentBlue: string;
|
|
162
|
+
contentOnFill: string;
|
|
163
|
+
};
|
|
164
|
+
csprclickLightTheme: {
|
|
165
|
+
backgroundTertiary: string;
|
|
166
|
+
backgroundPrimary: string;
|
|
167
|
+
backgroundSecondary: string;
|
|
168
|
+
fillSecondary: string;
|
|
169
|
+
contentPrimary: string;
|
|
170
|
+
contentTertiary: string;
|
|
171
|
+
contentBlue: string;
|
|
172
|
+
contentOnFill: string;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
};
|
|
83
176
|
declare enum ThemeModeType {
|
|
84
177
|
light = "light",
|
|
85
178
|
dark = "dark"
|
|
86
179
|
}
|
|
87
|
-
declare const
|
|
180
|
+
declare const buildTheme: (theme: BuildThemeProps) => {
|
|
88
181
|
dark: any;
|
|
89
182
|
light: any;
|
|
90
183
|
};
|
|
@@ -150,7 +243,7 @@ interface ClickUIProps {
|
|
|
150
243
|
rootAppElement?: string;
|
|
151
244
|
show1ClickModal?: boolean;
|
|
152
245
|
}
|
|
153
|
-
declare function ClickUI({ themeMode, topBarSettings, rootAppElement, show1ClickModal
|
|
246
|
+
declare function ClickUI({ themeMode, topBarSettings, rootAppElement, show1ClickModal }: ClickUIProps): react_jsx_runtime.JSX.Element;
|
|
154
247
|
|
|
155
248
|
declare const MODAL_ACTIONS: {
|
|
156
249
|
NONE: string;
|
|
@@ -215,7 +308,7 @@ interface BuyCSPRMenuItemProps {
|
|
|
215
308
|
}
|
|
216
309
|
declare const BuyCSPRMenuItem: ({ badge }: BuyCSPRMenuItemProps) => react_jsx_runtime.JSX.Element;
|
|
217
310
|
|
|
218
|
-
declare const CopyHashMenuItem: (
|
|
311
|
+
declare const CopyHashMenuItem: () => react_jsx_runtime.JSX.Element;
|
|
219
312
|
|
|
220
313
|
declare const ViewAccountOnExplorerMenuItem: (props: any) => react_jsx_runtime.JSX.Element;
|
|
221
314
|
|
|
@@ -228,4 +321,4 @@ interface AccountIdenticonProps {
|
|
|
228
321
|
}
|
|
229
322
|
declare const AccountIdenticon: ({ hex, size }: AccountIdenticonProps) => react_jsx_runtime.JSX.Element;
|
|
230
323
|
|
|
231
|
-
export { AccountIdenticon, AccountMenuItem, type AccountMenuItemProps, type BadgeBackgroundColor, type BadgeProps, BannerLink, BuyCSPRMenuItem, CURRENCY, CUSTOM, CanvasContainer, ClickModal, ClickProvider, ClickUI, CopyHashMenuItem, CsprClickThemes, type Currency, type CurrencySettings, CurrencyType, type CustomTopBarMenuItem, type CustomTopBarMenuSettings, LANGUAGE, Lang, type LanguageSettings, MODAL_ACTIONS, NETWORK, type Network, type NetworkSettings, OneClickSignInInner, type Options, type Provider, SignIn, type SignInSceneProps, ThemeModeType, TopBar, type TopBarSettings, ViewAccountOnExplorerMenuItem,
|
|
324
|
+
export { AccountIdenticon, AccountMenuItem, type AccountMenuItemProps, type BadgeBackgroundColor, type BadgeProps, BannerLink, type BuildThemeProps, BuyCSPRMenuItem, CURRENCY, CUSTOM, CanvasContainer, ClickModal, ClickProvider, ClickUI, CopyHashMenuItem, CsprClickThemes, type Currency, type CurrencySettings, CurrencyType, type CustomTopBarMenuItem, type CustomTopBarMenuSettings, DefaultThemes, LANGUAGE, Lang, type LanguageSettings, MODAL_ACTIONS, NETWORK, type Network, type NetworkSettings, OneClickSignInInner, type Options, type Provider, SignIn, type SignInSceneProps, ThemeModeType, TopBar, type TopBarSettings, ViewAccountOnExplorerMenuItem, buildTheme, clickStyleguide, useClickBadge, useClickRef };
|