@make-software/csprclick-ui 2.0.0-beta.5 → 2.0.0-beta.7
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/README.md +0 -1
- package/dist/cjs/lib/assets/icons/ic-click-web-wallet.svg +4 -0
- package/dist/cjs/lib/index.js +15 -23
- package/dist/cjs/lib/lib/ChangeAccountConfirmation/ChangeAccountConfirmation.d.ts +1 -1
- package/dist/cjs/lib/lib/CrossNavigationMenu/InnerMenu.d.ts +2 -1
- package/dist/cjs/lib/lib/CustomSettingsSelector/components/ItemIcon.d.ts +2 -1
- package/dist/cjs/lib/lib/IframePopup/styled.d.ts +12 -3
- package/dist/cjs/lib/lib/SwitchCurrency/components/CurrencyItemContainer.d.ts +2 -1
- package/dist/cjs/lib/lib/TopBar/hooks/useClickBadge.d.ts +3 -2
- package/dist/cjs/lib/lib/TransactionReview/TransactionReviewHandler.d.ts +1 -0
- package/dist/cjs/lib/lib/helpers/use-arrows-navigation.d.ts +12 -0
- package/dist/index.d.ts +3 -3
- package/dist/lib/assets/icons/ic-click-web-wallet.svg +4 -0
- package/dist/lib/index.js +15 -23
- package/package.json +3 -3
|
@@ -2,5 +2,5 @@ import { ThemeModeType } from '../types';
|
|
|
2
2
|
interface ChangeAccountConfirmationProps {
|
|
3
3
|
themeMode?: ThemeModeType;
|
|
4
4
|
}
|
|
5
|
-
export declare const ChangeAccountConfirmation: (props: ChangeAccountConfirmationProps) =>
|
|
5
|
+
export declare const ChangeAccountConfirmation: (props: ChangeAccountConfirmationProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
6
|
export default ChangeAccountConfirmation;
|
|
@@ -5,5 +5,6 @@ export interface InnerMenuProps {
|
|
|
5
5
|
onClickCaption?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
6
6
|
isOpen: boolean;
|
|
7
7
|
menuItems: CrossAppMenuItemSettings[] | undefined;
|
|
8
|
+
setIsOpen?: (isOpen: boolean) => void;
|
|
8
9
|
}
|
|
9
|
-
export declare const InnerMenu: ({ caption, menuItems, isOpen, onClickCaption }: InnerMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const InnerMenu: ({ caption, menuItems, isOpen, onClickCaption, setIsOpen }: InnerMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
interface ItemIconProps {
|
|
3
3
|
margin?: string;
|
|
4
4
|
icon?: React.ReactNode;
|
|
5
|
+
alt?: string;
|
|
5
6
|
}
|
|
6
|
-
export declare function ItemIcon({ margin, icon }: ItemIconProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function ItemIcon({ margin, icon, alt }: ItemIconProps): import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -25,11 +25,20 @@ export declare const topModalStyles: {
|
|
|
25
25
|
borderRadius: string;
|
|
26
26
|
padding: string;
|
|
27
27
|
};
|
|
28
|
+
export declare const mobileFillModalStyle: {
|
|
29
|
+
top: string;
|
|
30
|
+
left: string;
|
|
31
|
+
right: string;
|
|
32
|
+
bottom: string;
|
|
33
|
+
border: string;
|
|
34
|
+
borderRadius: string;
|
|
35
|
+
padding: string;
|
|
36
|
+
};
|
|
28
37
|
export declare const ModalContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@make-software/cspr-design").FlexColumnProps & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, ModalPositionProps, never>;
|
|
29
|
-
export declare const ModalHeaderContainer: import("styled-components").StyledComponent<"
|
|
38
|
+
export declare const ModalHeaderContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@make-software/cspr-design").FlexRowProps & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
30
39
|
export declare const IframeContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
31
|
-
|
|
32
|
-
|
|
40
|
+
setWidth: string;
|
|
41
|
+
setHeight: string;
|
|
33
42
|
}, never>;
|
|
34
43
|
export declare const LoadingText: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
35
44
|
export declare const StyledIframe: import("styled-components").StyledComponent<"iframe", import("styled-components").DefaultTheme, {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { CurrencySettings } from '../../types';
|
|
2
2
|
interface CurrencyDisplayOptions {
|
|
3
3
|
columnAmount?: number;
|
|
4
|
+
dropdownId?: string;
|
|
4
5
|
}
|
|
5
6
|
interface CurrencyItemContainerProps extends CurrencySettings, CurrencyDisplayOptions {
|
|
6
7
|
}
|
|
7
|
-
export declare const CurrencyItemContainer: ({ currencies, onChangeCurrency, currentCurrency, columnAmount }: CurrencyItemContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const CurrencyItemContainer: ({ currencies, onChangeCurrency, currentCurrency, columnAmount, dropdownId }: CurrencyItemContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { BadgeSettings } from '@make-software/csprclick-core-types';
|
|
1
2
|
export declare const useClickBadge: () => {
|
|
2
|
-
setLeftBadge: (config: BadgeSettings) => void;
|
|
3
|
-
setRightBadge: (config: BadgeSettings) => void;
|
|
3
|
+
setLeftBadge: (config: BadgeSettings | null) => void;
|
|
4
|
+
setRightBadge: (config: BadgeSettings | null) => void;
|
|
4
5
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
interface UseArrowNavigationProps {
|
|
3
|
+
items: any[] | undefined;
|
|
4
|
+
dropdownId: string | undefined;
|
|
5
|
+
}
|
|
6
|
+
interface UseArrowNavigationReturnValue {
|
|
7
|
+
activeIndex: number;
|
|
8
|
+
onKeyDown: (e: KeyboardEvent) => void;
|
|
9
|
+
itemRefs: MutableRefObject<any[]>;
|
|
10
|
+
}
|
|
11
|
+
declare const useArrowsNavigation: ({ items, dropdownId }: UseArrowNavigationProps) => UseArrowNavigationReturnValue;
|
|
12
|
+
export default useArrowsNavigation;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { WALLET_KEYS, AccountType, ICSPRClickSDK, CsprClickInitOptions } from '@make-software/csprclick-core-types';
|
|
2
|
+
import { WALLET_KEYS, AccountType, ICSPRClickSDK, CsprClickInitOptions, BadgeSettings } from '@make-software/csprclick-core-types';
|
|
3
3
|
import * as styled_components from 'styled-components';
|
|
4
4
|
import * as _make_software_cspr_design from '@make-software/cspr-design';
|
|
5
5
|
import React from 'react';
|
|
@@ -461,8 +461,8 @@ interface TopBarProps {
|
|
|
461
461
|
declare function TopBar(props: TopBarProps): react_jsx_runtime.JSX.Element;
|
|
462
462
|
|
|
463
463
|
declare const useClickBadge: () => {
|
|
464
|
-
setLeftBadge: (config: BadgeSettings) => void;
|
|
465
|
-
setRightBadge: (config: BadgeSettings) => void;
|
|
464
|
+
setLeftBadge: (config: BadgeSettings | null) => void;
|
|
465
|
+
setRightBadge: (config: BadgeSettings | null) => void;
|
|
466
466
|
};
|
|
467
467
|
|
|
468
468
|
type BadgeBackgroundColor = 'green' | 'violet' | 'blue' | 'gray' | 'fillBlueGradient';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="99" height="98" viewBox="0 0 99 98" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M81.502 26.9697H94.0762C96.2853 26.9697 98.0762 28.7606 98.0762 30.9697V64.415C98.0762 66.6242 96.2853 68.415 94.0762 68.415H81.502V80.2529C81.502 85.7758 77.0248 90.2529 71.502 90.2529H10.3809C4.85801 90.2529 0.380859 85.7758 0.380859 80.2529V15.1318C0.380859 9.60899 4.85801 5.13184 10.3809 5.13184H71.502C77.0248 5.13184 81.502 9.60899 81.502 15.1318V26.9697ZM36.6055 47.6924C36.6055 59.1275 45.8754 68.3975 57.3105 68.3975H81.502V26.9873H57.3105C45.8754 26.9873 36.6055 36.2573 36.6055 47.6924Z" fill="#FF0012"/>
|
|
3
|
+
<circle cx="60.1377" cy="48.5605" r="7.65723" fill="#FF0012"/>
|
|
4
|
+
</svg>
|