/// import { TypographyProps } from 'styled-system'; import { CurrencyInputProps as CurrencyInputFieldProps, formatValue as formatCurrencyProperty } from 'react-currency-input-field'; import { InputProps } from '../input/index.js'; /** * Prop Types of a CurrencyInput component. * CurrencyInput is based on `react-currency-input-field` @see {@link https://github.com/cchanxzy/react-currency-input-field React Currency Input Field Component} * It extends all {@link SpaceProps}, {@link TypographyProps} and {@link LayoutProps} and {@link https://github.com/cchanxzy/react-currency-input-field#props React Currency Input Field Component Props} * @memberof CurrencyInput * @alias CurrencyInputProps * @property {string} [...] All props default to _currencyinput_ html component like `onChange`, * `value` etc. * @property {string} [...] Props from {@link SpaceProps}, {@link TypographyProps} * and {@link LayoutProps} + they extend {@link InputProps} */ export type CurrencyInputProps = TypographyProps & InputProps & CurrencyInputFieldProps; /** * @classdesc * * * * Wrapped `currencyinput` html element. * * ### Usage * * ```ts * import { CurrencyInput, CurrencyInputProps } from '@adminjs/design-system' * ``` * * @component * @subcategory Atoms * @see {@link https://storybook.adminjs.co/?path=/story/designsystem-atoms-currencyinput--default Storybook} * @see CurrencyInputProps * @hideconstructor * @example * return ( * * * ; * * ) * @section design-system */ declare const CurrencyInput: import("styled-components").StyledComponent>> & import("styled-system").SpaceProps>, string | number | symbol> & import("styled-system").LayoutProps>> & { borderless?: boolean | undefined; variant?: "default" | "sm" | "lg" | "xl" | "xxl" | undefined; } & Pick, HTMLInputElement>, "ref"> & { ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject | null | undefined; }, "form" | "slot" | "style" | "title" | "pattern" | "ref" | "type" | "name" | "key" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "src" | "alt" | "size" | "width" | "height" | "value" | "required" | "multiple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "max" | "min" | "crossOrigin" | "autoComplete" | "accept" | "capture" | "checked" | "enterKeyHint" | "list" | "minLength" | "readOnly"> & { allowDecimals?: boolean | undefined; allowNegativeValue?: boolean | undefined; id?: string | undefined; maxLength?: number | undefined; className?: string | undefined; customInput?: import("react").ElementType | undefined; decimalsLimit?: number | undefined; decimalScale?: number | undefined; defaultValue?: string | number | undefined; disabled?: boolean | undefined; fixedDecimalLength?: number | undefined; onValueChange?: ((value: string | undefined, name?: string | undefined, values?: import("react-currency-input-field/dist/components/CurrencyInputProps.js").CurrencyInputOnChangeValues | undefined) => void) | undefined; placeholder?: string | undefined; prefix?: string | undefined; suffix?: string | undefined; step?: number | undefined; decimalSeparator?: string | undefined; groupSeparator?: string | undefined; disableGroupSeparators?: boolean | undefined; disableAbbreviations?: boolean | undefined; intlConfig?: import("react-currency-input-field/dist/components/CurrencyInputProps.js").IntlConfig | undefined; transformRawValue?: ((rawValue: string) => string) | undefined; }, string | number | symbol>; export { CurrencyInput, formatCurrencyProperty }; export default CurrencyInput;