@avalabs/k2-alpine 0.0.0-main-747398c → 0.0.0-main-83df864

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 'src/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,23 @@
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
+ };
19
+ export type CurrencySymbolInfo = {
20
+ readonly symbol: string;
21
+ readonly position: 'prefix' | 'suffix';
22
+ } | undefined;
23
+ 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;