@avalabs/k2-alpine 1.229.1-alpha.3.f032d4884 → 1.235.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.
@@ -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
+ };
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export declare const AdornmentWrapper: ({ children, isError, isEmpty, }: {
3
+ children: ReactNode;
4
+ isError?: boolean;
5
+ isEmpty?: boolean;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { CurrencyInputProps } from './types';
2
+ export declare const CurrencyInput: import('react').NamedExoticComponent<CurrencyInputProps>;
@@ -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 {};
@@ -0,0 +1,5 @@
1
+ import { CurrencySymbolInfo } from './types';
2
+ export declare const getCurrencySymbolInfo: ({ currencyCode, locale, }: {
3
+ currencyCode: string;
4
+ locale?: string;
5
+ }) => CurrencySymbolInfo;
@@ -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
  */
@@ -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;
@@ -0,0 +1,2 @@
1
+ import { IconBaseProps } from 'react-icons';
2
+ export declare const Sell: ({ 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 {};
@@ -0,0 +1,2 @@
1
+ import { IconBaseProps } from 'react-icons';
2
+ export declare const Withdraw: ({ size, ...rest }: IconBaseProps) => import("react/jsx-runtime").JSX.Element;
@@ -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>;
@@ -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;