@make-software/csprclick-ui 1.7.0 → 1.8.0
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/dist/cjs/lib/index.js +3 -3
- 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/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/CrossNavigationMenu.d.ts +1 -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/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/index.d.ts +1 -1
- package/dist/lib/index.js +3 -3
- package/package.json +10 -10
- 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;
|
|
@@ -2,5 +2,5 @@ interface CrossNavigationMenuSceneProps {
|
|
|
2
2
|
menuCaption: string;
|
|
3
3
|
clickRef: any;
|
|
4
4
|
}
|
|
5
|
-
export declare const CrossNavigationMenu: ({ clickRef, menuCaption
|
|
5
|
+
export declare const CrossNavigationMenu: ({ clickRef, menuCaption }: CrossNavigationMenuSceneProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export default CrossNavigationMenu;
|
|
@@ -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 {
|
|
@@ -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;
|
package/dist/index.d.ts
CHANGED
|
@@ -243,7 +243,7 @@ interface ClickUIProps {
|
|
|
243
243
|
rootAppElement?: string;
|
|
244
244
|
show1ClickModal?: boolean;
|
|
245
245
|
}
|
|
246
|
-
declare function ClickUI({ themeMode, topBarSettings, rootAppElement, show1ClickModal
|
|
246
|
+
declare function ClickUI({ themeMode, topBarSettings, rootAppElement, show1ClickModal }: ClickUIProps): react_jsx_runtime.JSX.Element;
|
|
247
247
|
|
|
248
248
|
declare const MODAL_ACTIONS: {
|
|
249
249
|
NONE: string;
|