ds-smart-ui
Version:
Smart UI v1.0.5 — A production-ready React component library by PT Praisindo Teknologi. Covers inputs, navigation, data display, feedback, and layout with a unified design system, semantic Typography tokens, and full Storybook documentation.
32 lines (31 loc) • 1.37 kB
TypeScript
import { VariantProps } from 'class-variance-authority';
import { FormColorTypes, FormRoundedTypes, FormSizeTypes, FormTypes } from '../../../types/form-types';
declare const numberFieldVariants: (props?: ({
size?: "sm" | "md" | "lg" | null | undefined;
rounded?: "sm" | "md" | "lg" | "none" | "full" | null | undefined;
color?: "dark" | "light" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | null | undefined;
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
export interface NumberFieldInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof numberFieldVariants> {
label?: string;
color?: FormColorTypes;
placeholder?: string;
size?: FormSizeTypes;
rounded?: FormRoundedTypes;
iconStart?: React.ReactNode;
iconEnd?: React.ReactNode;
required?: boolean;
showRequired?: boolean;
disabled?: boolean;
type?: FormTypes;
helperText?: string;
error?: boolean;
id?: string;
}
interface NumberFieldProps extends NumberFieldInputProps {
prefix?: string;
thousandSeparator?: string;
decimalSeparator?: string;
suffix?: string;
}
declare const NumberField: import('react').ForwardRefExoticComponent<NumberFieldProps & import('react').RefAttributes<HTMLInputElement>>;
export default NumberField;