import React from 'react'; import { TextFieldProps } from '../TextField'; import { GetClasses } from '../../typeUtils'; export declare const UnitNumberFormatFieldStylesKey = "ChromaUnitNumberFormatField"; declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"textField">; export declare type UnitNumberFormatFieldClasses = GetClasses; export declare type UnitNumberFormatFieldProps = Omit & { min?: number; max?: number; value: number; units: string; decimalScale?: number; prefixUnits?: boolean; /** This property shows the required asterisk (*). Required validation needs to be implemented separately. */ showRequiredLabel?: boolean; onChange: (val: number) => void; }; /** * An input component for entering a number pre- or postfixed with a unit string; it extends the [Chroma TextField component] * (https://lifeomic.github.io/chroma-react/?path=/story/form-components-textfield--all). * * ### Accessibility * * - Similar to ``, as it extends that component * * ### Links * * - [Component Source](https://github.com/lifeomic/chroma-react/blob/master/src/components/NumberFormat/UnitNumberFormatField.tsx) * - [Story Source](https://github.com/lifeomic/chroma-react/blob/master/stories/components/NumberFormat/UnitNumberFormatFieldStory.stories.tsx) */ export declare const UnitNumberFormatField: React.FC; export declare type PercentFormatFieldProps = Omit & { min?: number; max?: number; value: number; onChange: (val: number) => void; }; /** * An input component for entering a number as a percent; it leverages the [Chroma Unit Input](https://lifeomic.github.io/chroma-react/?path=/story/form-components-number-format--unit-input) with '%' postfixed as the unit. * * ### Accessibility * * - Similar to ``, as it extends that component * * ### Links * * - [Component Source](https://github.com/lifeomic/chroma-react/blob/master/src/components/NumberFormat/PercentFormatField.tsx) * - [Story Source](https://github.com/lifeomic/chroma-react/blob/master/stories/components/NumberFormat/PercentFormatFieldStory.stories.tsx) */ export declare const PercentFormatField: React.FC; /** * @param props All currency values are expected to be an integer amount of pennies */ export declare type PriceFormatFieldProps = Omit & { min?: number; max?: number; value: number; onChange: (val: number) => void; }; /** * An input component for entering a number as a monetary value in pennies; it leverages the [Chroma Unit Input] * (https://lifeomic.github.io/chroma-react/?path=/story/form-components-number-format--unit-input). Currently only implements \$USD, with '\$' prefixed as the unit. * * ### Accessibility * * - Similar to ``, as it extends that component * * ### Links * * - [Component Source](https://github.com/lifeomic/chroma-react/blob/master/src/components/NumberFormat/PriceFormatField.tsx) * - [Story Source](https://github.com/lifeomic/chroma-react/blob/master/stories/components/NumberFormat/PriceFormatFieldStory.stories.tsx) */ export declare const PriceFormatField: React.FC; export {};