import { Input, Text, clx } from "@medusajs/ui" import { ComponentProps, ElementRef, forwardRef } from "react" import Primitive from "react-currency-input-field" /** * @deprecated Use `PercentageInput` instead */ export const DeprecatedPercentageInput = forwardRef< ElementRef, Omit, "type"> >(({ min = 0, max = 100, step = 0.0001, ...props }, ref) => { return (
%
) }) DeprecatedPercentageInput.displayName = "PercentageInput" export const PercentageInput = forwardRef< ElementRef<"input">, ComponentProps >(({ min = 0, decimalScale = 2, className, ...props }, ref) => { return (
%
) }) PercentageInput.displayName = "PercentageInput"