UNPKG

lightning-auth-and-payment

Version:

Lightning Network authentication and payment processing library for modern web applications

62 lines 2.51 kB
import React from 'react'; export interface LightningInputProps { /** Input type */ type?: 'text' | 'password' | 'email' | 'url'; /** Input value */ value: string; /** Change handler */ onChange: (value: string) => void; /** Placeholder text */ placeholder?: string; /** Input label */ label?: string; /** Input description */ description?: string; /** Error message */ error?: string; /** Success message */ success?: string; /** Disabled state */ disabled?: boolean; /** Required field */ required?: boolean; /** Custom className */ className?: string; /** Input variant */ variant?: 'default' | 'lightning' | 'wallet' | 'user' | 'payment'; /** Input size */ size?: 'sm' | 'md' | 'lg'; /** Show copy button */ showCopy?: boolean; /** Show visibility toggle */ showVisibilityToggle?: boolean; /** Show validation status */ showValidation?: boolean; /** Custom validation function */ validate?: (value: string) => { isValid: boolean; message?: string; }; /** Auto-focus */ autoFocus?: boolean; /** Read-only */ readOnly?: boolean; /** Max length */ maxLength?: number; /** Min length */ minLength?: number; /** Pattern for validation */ pattern?: string; /** Custom icon */ icon?: React.ReactNode; /** Show icon */ showIcon?: boolean; /** Icon position */ iconPosition?: 'left' | 'right'; } export declare function LightningInput({ type, value, onChange, placeholder, label, description, error, success, disabled, required, className, variant, size, showCopy, showVisibilityToggle, showValidation, validate, autoFocus, readOnly, maxLength, minLength, pattern, icon, showIcon, iconPosition, }: LightningInputProps): import("react/jsx-runtime").JSX.Element; export declare function LightningAddressInput(props: Omit<LightningInputProps, 'variant' | 'placeholder'>): import("react/jsx-runtime").JSX.Element; export declare function LightningPubkeyInput(props: Omit<LightningInputProps, 'variant' | 'placeholder'>): import("react/jsx-runtime").JSX.Element; export declare function LightningWalletInput(props: Omit<LightningInputProps, 'variant' | 'placeholder'>): import("react/jsx-runtime").JSX.Element; export declare function LightningPaymentInput(props: Omit<LightningInputProps, 'variant' | 'placeholder'>): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=LightningInput.d.ts.map