@avalabs/k2-alpine 1.229.1-alpha.3.f032d4884 → 1.246.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/AutosizeTextField/AutosizeTextField.d.ts +3 -0
- package/dist/components/AutosizeTextField/types.d.ts +9 -0
- package/dist/components/Button/SquareButton.d.ts +11 -1
- package/dist/components/CurrencyInput/AdornmentWrapper.d.ts +6 -0
- package/dist/components/CurrencyInput/CurrencyInput.d.ts +2 -0
- package/dist/components/CurrencyInput/types.d.ts +24 -0
- package/dist/components/CurrencyInput/utils.d.ts +5 -0
- package/dist/components/CustomDialog/CustomDialog.d.ts +4 -0
- package/dist/components/Glow/Glow.d.ts +4 -2
- package/dist/components/Icons/Arbitrum.d.ts +3 -0
- package/dist/components/Icons/Base.d.ts +3 -0
- package/dist/components/Icons/Optimism.d.ts +3 -0
- package/dist/components/Icons/Sell.d.ts +2 -0
- package/dist/components/Icons/Solana.d.ts +1 -0
- package/dist/components/Icons/Withdraw.d.ts +2 -0
- package/dist/components/Icons/index.d.ts +27 -0
- package/dist/components/Tilt/Tilt.d.ts +5 -1
- package/dist/components/Toast/Toast.d.ts +2 -0
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3441 -3060
- package/dist/index.js.map +1 -1
- package/dist/theme/theme.d.ts +12 -0
- package/dist/utils/getVariableFontSize.d.ts +10 -0
- package/package.json +17 -20
- package/dist/components/SelectCountry/SelectCountry.d.ts +0 -20
- package/dist/components/SelectCountry/index.d.ts +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TextFieldVariants } from '@mui/material';
|
|
2
|
+
import { AutosizeTextFieldProps } from './types';
|
|
3
|
+
export declare const AutosizeTextField: <TVariant extends TextFieldVariants = "standard">({ fontSizeSteps, value, sx, defaultWidth, fontSx, ...props }: AutosizeTextFieldProps<TVariant>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SxProps, TextFieldProps, TextFieldVariants } from '@mui/material';
|
|
2
|
+
import { GetVariableFontSizeParameters } from '../../utils/getVariableFontSize';
|
|
3
|
+
export type AutosizeTextFieldProps<TVariant extends TextFieldVariants> = TextFieldProps<TVariant> & {
|
|
4
|
+
readonly value: string;
|
|
5
|
+
readonly defaultWidth?: number;
|
|
6
|
+
readonly fontSizeSteps?: GetVariableFontSizeParameters['steps'];
|
|
7
|
+
readonly fontSx?: Omit<SxProps, 'fontSize'>;
|
|
8
|
+
readonly sx?: SxProps;
|
|
9
|
+
};
|
|
@@ -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>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
2
|
+
import { AutosizeTextFieldProps } from '../AutosizeTextField/types';
|
|
3
|
+
type ValueType = 'fiat' | 'token';
|
|
4
|
+
type Token = {
|
|
5
|
+
readonly symbol: string;
|
|
6
|
+
readonly value: string;
|
|
7
|
+
};
|
|
8
|
+
export type CurrencyInputProps = Omit<AutosizeTextFieldProps<'standard'>, 'value' | 'onChange'> & {
|
|
9
|
+
readonly sx?: SxProps;
|
|
10
|
+
readonly token?: Token;
|
|
11
|
+
readonly value: string;
|
|
12
|
+
readonly currencyCode: string;
|
|
13
|
+
readonly locale?: string;
|
|
14
|
+
readonly onChange?: (updatedValue: {
|
|
15
|
+
value: string;
|
|
16
|
+
type: ValueType;
|
|
17
|
+
}) => void;
|
|
18
|
+
readonly description?: string;
|
|
19
|
+
};
|
|
20
|
+
export type CurrencySymbolInfo = {
|
|
21
|
+
readonly symbol: string;
|
|
22
|
+
readonly position: 'prefix' | 'suffix';
|
|
23
|
+
} | undefined;
|
|
24
|
+
export {};
|
|
@@ -25,6 +25,10 @@ export interface CustomDialogProps extends Omit<MuiDialogProps, 'title'> {
|
|
|
25
25
|
* Show a back arrow button (top-left) instead of close button (top-right)
|
|
26
26
|
*/
|
|
27
27
|
backButton?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Always show the header
|
|
30
|
+
*/
|
|
31
|
+
alwaysShowHeader?: boolean;
|
|
28
32
|
/**
|
|
29
33
|
* Header title
|
|
30
34
|
*/
|
|
@@ -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;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IconBaseProps } from 'react-icons';
|
|
2
|
+
export declare const ArbitrumColorIcon: ({ size, ...rest }: IconBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const ArbitrumAchromaticIcon: ({ size, ...rest }: IconBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IconBaseProps } from 'react-icons';
|
|
2
|
+
export declare const BaseColorIcon: ({ size, ...rest }: IconBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const BaseAchromaticIcon: ({ size, ...rest }: IconBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IconBaseProps } from 'react-icons';
|
|
2
|
+
export declare const OptimismColorIcon: ({ size, ...rest }: IconBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const OptimismAchromaticIcon: ({ size, ...rest }: IconBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,4 +4,5 @@ type SolanaIconColorScheme = {
|
|
|
4
4
|
};
|
|
5
5
|
export declare const Solana: ({ size, backgroundFill, ...rest }: IconBaseProps & SolanaIconColorScheme) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const SolanaColorIcon: ({ size, ...rest }: IconBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const SolanaAchromaticIcon: ({ size, ...rest }: IconBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -112,12 +112,24 @@ export declare const StakeIcon: import('react').ComponentType<IconBaseProps & {
|
|
|
112
112
|
export declare const SwapIcon: import('react').ComponentType<IconBaseProps & {
|
|
113
113
|
sx?: SxProps;
|
|
114
114
|
} & import('../..').WithSxProps>;
|
|
115
|
+
export declare const SellIcon: import('react').ComponentType<IconBaseProps & {
|
|
116
|
+
sx?: SxProps;
|
|
117
|
+
} & import('../..').WithSxProps>;
|
|
118
|
+
export declare const WithdrawIcon: import('react').ComponentType<IconBaseProps & {
|
|
119
|
+
sx?: SxProps;
|
|
120
|
+
} & import('../..').WithSxProps>;
|
|
115
121
|
/**
|
|
116
122
|
* Tool Icons
|
|
117
123
|
*/
|
|
118
124
|
export declare const AirdropIcon: import('react').ComponentType<IconBaseProps & {
|
|
119
125
|
sx?: SxProps;
|
|
120
126
|
} & import('../..').WithSxProps>;
|
|
127
|
+
export declare const ArbitrumColorIcon: import('react').ComponentType<IconBaseProps & {
|
|
128
|
+
sx?: SxProps;
|
|
129
|
+
} & import('../..').WithSxProps>;
|
|
130
|
+
export declare const ArbitrumAchromaticIcon: import('react').ComponentType<IconBaseProps & {
|
|
131
|
+
sx?: SxProps;
|
|
132
|
+
} & import('../..').WithSxProps>;
|
|
121
133
|
export declare const AvalancheAchromaticIcon: import('react').ComponentType<IconBaseProps & {
|
|
122
134
|
sx?: SxProps;
|
|
123
135
|
} & import('../..').WithSxProps>;
|
|
@@ -127,6 +139,12 @@ export declare const AvalancheColorIcon: import('react').ComponentType<IconBaseP
|
|
|
127
139
|
export declare const AvalancheIcon: import('react').ComponentType<IconBaseProps & {
|
|
128
140
|
sx?: SxProps;
|
|
129
141
|
} & import('../..').WithSxProps>;
|
|
142
|
+
export declare const BaseColorIcon: import('react').ComponentType<IconBaseProps & {
|
|
143
|
+
sx?: SxProps;
|
|
144
|
+
} & import('../..').WithSxProps>;
|
|
145
|
+
export declare const BaseAchromaticIcon: import('react').ComponentType<IconBaseProps & {
|
|
146
|
+
sx?: SxProps;
|
|
147
|
+
} & import('../..').WithSxProps>;
|
|
130
148
|
export declare const BitcoinAchromaticIcon: import('react').ComponentType<IconBaseProps & {
|
|
131
149
|
sx?: SxProps;
|
|
132
150
|
} & import('../..').WithSxProps>;
|
|
@@ -175,6 +193,12 @@ export declare const MetaMaskIcon: import('react').ComponentType<IconBaseProps &
|
|
|
175
193
|
export declare const MonitoringIcon: import('react').ComponentType<IconBaseProps & {
|
|
176
194
|
sx?: SxProps;
|
|
177
195
|
} & import('../..').WithSxProps>;
|
|
196
|
+
export declare const OptimismColorIcon: import('react').ComponentType<IconBaseProps & {
|
|
197
|
+
sx?: SxProps;
|
|
198
|
+
} & import('../..').WithSxProps>;
|
|
199
|
+
export declare const OptimismAchromaticIcon: import('react').ComponentType<IconBaseProps & {
|
|
200
|
+
sx?: SxProps;
|
|
201
|
+
} & import('../..').WithSxProps>;
|
|
178
202
|
export declare const PChainIcon: import('react').ComponentType<IconBaseProps & {
|
|
179
203
|
sx?: SxProps;
|
|
180
204
|
} & import('../..').WithSxProps>;
|
|
@@ -187,6 +211,9 @@ export declare const RabbyIcon: import('react').ComponentType<IconBaseProps & {
|
|
|
187
211
|
export declare const SignatureIcon: import('react').ComponentType<IconBaseProps & {
|
|
188
212
|
sx?: SxProps;
|
|
189
213
|
} & import('../..').WithSxProps>;
|
|
214
|
+
export declare const SolanaAchromaticIcon: import('react').ComponentType<IconBaseProps & {
|
|
215
|
+
sx?: SxProps;
|
|
216
|
+
} & import('../..').WithSxProps>;
|
|
190
217
|
export declare const SolanaColorIcon: import('react').ComponentType<IconBaseProps & {
|
|
191
218
|
sx?: SxProps;
|
|
192
219
|
} & import('../..').WithSxProps>;
|
|
@@ -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;
|
|
@@ -11,6 +11,7 @@ export type ToastOptions = {
|
|
|
11
11
|
type?: ToastType;
|
|
12
12
|
description?: string;
|
|
13
13
|
action?: React.ReactNode;
|
|
14
|
+
icon?: React.ReactNode;
|
|
14
15
|
};
|
|
15
16
|
export declare const toast: {
|
|
16
17
|
info: (title: string, options?: ToastOptions) => string | number;
|
|
@@ -19,6 +20,7 @@ export declare const toast: {
|
|
|
19
20
|
error: (title: string, options?: ToastOptions) => string | number;
|
|
20
21
|
suspicious: (title: string, options?: ToastOptions) => string | number;
|
|
21
22
|
scam: (title: string, options?: ToastOptions) => string | number;
|
|
23
|
+
custom: (title: string, options?: ToastOptions) => string | number;
|
|
22
24
|
show: (title: string, options?: ToastOptions) => string | number;
|
|
23
25
|
dismiss: (id: string) => void;
|
|
24
26
|
dismissAll: () => void;
|