@avalabs/k2-alpine 1.235.0 → 1.251.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/dist/components/Button/SquareButton.d.ts +11 -1
- package/dist/components/Glow/Glow.d.ts +4 -2
- package/dist/components/Icons/CrossChain.d.ts +2 -0
- package/dist/components/Icons/Earn.d.ts +2 -0
- package/dist/components/Icons/index.d.ts +6 -0
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +1 -0
- package/dist/components/Tilt/Tilt.d.ts +5 -1
- package/dist/components/Toast/Toast.d.ts +7 -2
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +3598 -3389
- package/dist/index.js.map +1 -1
- package/dist/theme/theme.d.ts +12 -0
- package/package.json +7 -7
|
@@ -34,5 +34,15 @@ export type SquareButtonProps = ButtonBaseProps & {
|
|
|
34
34
|
*/
|
|
35
35
|
to?: string;
|
|
36
36
|
variant?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Show badge if there is a number of items to show in the badge
|
|
39
|
+
* This is used to show a badge on the button
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
showBadge?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Content to be shown in the badge
|
|
45
|
+
*/
|
|
46
|
+
badgeContent?: string;
|
|
37
47
|
};
|
|
38
|
-
export declare const SquareButton: import('react').MemoExoticComponent<({ variant, icon, label, disableTilt, rotationRange, scaleOnHover, ...squareButtonRestProps }: SquareButtonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
48
|
+
export declare const SquareButton: import('react').MemoExoticComponent<({ variant, icon, label, disableTilt, rotationRange, scaleOnHover, showBadge, badgeContent, ...squareButtonRestProps }: SquareButtonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { BoxProps } from '@mui/material';
|
|
1
|
+
import { BoxProps, SxProps } from '@mui/material';
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
3
|
export type GlowProps = BoxProps & {
|
|
4
|
+
animate?: boolean;
|
|
4
5
|
color: 'blue' | 'red' | 'green' | 'blueRed';
|
|
6
|
+
glowSx?: SxProps;
|
|
5
7
|
};
|
|
6
|
-
export declare function Glow({ color, children, sx, ...rest }: PropsWithChildren<GlowProps>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function Glow({ animate, color, children, sx, glowSx, ...rest }: PropsWithChildren<GlowProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -88,6 +88,9 @@ export declare const ContactsIcon: import('react').ComponentType<IconBaseProps &
|
|
|
88
88
|
export declare const DiscoverIcon: import('react').ComponentType<IconBaseProps & {
|
|
89
89
|
sx?: SxProps;
|
|
90
90
|
} & import('../..').WithSxProps>;
|
|
91
|
+
export declare const EarnIcon: import('react').ComponentType<IconBaseProps & {
|
|
92
|
+
sx?: SxProps;
|
|
93
|
+
} & import('../..').WithSxProps>;
|
|
91
94
|
export declare const ExplorerIcon: import('react').ComponentType<IconBaseProps & {
|
|
92
95
|
sx?: SxProps;
|
|
93
96
|
} & import('../..').WithSxProps>;
|
|
@@ -166,6 +169,9 @@ export declare const CloudDownloadIcon: import('react').ComponentType<IconBasePr
|
|
|
166
169
|
export declare const CoinbaseIcon: import('react').ComponentType<IconBaseProps & {
|
|
167
170
|
sx?: SxProps;
|
|
168
171
|
} & import('../..').WithSxProps>;
|
|
172
|
+
export declare const CrossChainIcon: import('react').ComponentType<IconBaseProps & {
|
|
173
|
+
sx?: SxProps;
|
|
174
|
+
} & import('../..').WithSxProps>;
|
|
169
175
|
export declare const DeployedCodeIcon: import('react').ComponentType<IconBaseProps & {
|
|
170
176
|
sx?: SxProps;
|
|
171
177
|
} & import('../..').WithSxProps>;
|
|
@@ -2,6 +2,7 @@ import { PropsWithChildren } from 'react';
|
|
|
2
2
|
import { CoreTheme } from '../../theme';
|
|
3
3
|
type ThemeProviderProps = {
|
|
4
4
|
theme: CoreTheme;
|
|
5
|
+
toastVariant?: 'web' | 'extension';
|
|
5
6
|
};
|
|
6
7
|
export declare const ThemeProvider: import('react').NamedExoticComponent<PropsWithChildren<ThemeProviderProps>>;
|
|
7
8
|
export {};
|
|
@@ -32,8 +32,12 @@ export interface TiltProps {
|
|
|
32
32
|
* @default undefined (no scaling)
|
|
33
33
|
*/
|
|
34
34
|
scaleOnHover?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Badge component to be shown on the button
|
|
37
|
+
*/
|
|
38
|
+
badge?: React.ReactNode;
|
|
35
39
|
}
|
|
36
40
|
/**
|
|
37
41
|
* A wrapper component that adds 3D tilt effect to its children based on mouse position
|
|
38
42
|
*/
|
|
39
|
-
export declare const Tilt: ({ children, rotationRange, showSheen, scaleOnHover, sx, onClick, onMouseEnter, onMouseLeave, }: PropsWithChildren<TiltProps>) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare const Tilt: ({ children, rotationRange, showSheen, scaleOnHover, sx, onClick, onMouseEnter, onMouseLeave, badge, }: PropsWithChildren<TiltProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type ToastType = 'info' | 'success' | 'critical' | 'error' | 'suspicious' | 'scam' | 'custom' | 'basic';
|
|
1
|
+
export type ToastType = 'info' | 'success' | 'critical' | 'error' | 'suspicious' | 'scam' | 'custom' | 'basic' | 'pending';
|
|
2
2
|
export type ToastPosition = {
|
|
3
3
|
vertical: 'top' | 'bottom';
|
|
4
4
|
horizontal: 'left' | 'center' | 'right';
|
|
@@ -20,9 +20,14 @@ export declare const toast: {
|
|
|
20
20
|
error: (title: string, options?: ToastOptions) => string | number;
|
|
21
21
|
suspicious: (title: string, options?: ToastOptions) => string | number;
|
|
22
22
|
scam: (title: string, options?: ToastOptions) => string | number;
|
|
23
|
+
pending: (title: string, options?: ToastOptions) => string | number;
|
|
23
24
|
custom: (title: string, options?: ToastOptions) => string | number;
|
|
24
25
|
show: (title: string, options?: ToastOptions) => string | number;
|
|
25
26
|
dismiss: (id: string) => void;
|
|
26
27
|
dismissAll: () => void;
|
|
27
28
|
};
|
|
28
|
-
|
|
29
|
+
type ToasterGlobalProps = {
|
|
30
|
+
variant?: 'web' | 'extension';
|
|
31
|
+
};
|
|
32
|
+
export declare const Toaster: ({ variant }: ToasterGlobalProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export {};
|