UNPKG

caplib

Version:

Credentialless Authentication Protocol Library for Web Applications

61 lines (55 loc) 1.84 kB
export { A as AuthProvider, u as useAuth, w as withAuth } from '../AuthProvider-CQcw1ZgV.js'; import * as react_jsx_runtime from 'react/jsx-runtime'; import { c as CapAuthProps, U as User } from '../types-B5TgxFMm.js'; import { ClassValue } from 'clsx'; import 'react'; declare function CapAuth({ onAuthenticated, config, onError, }: CapAuthProps): react_jsx_runtime.JSX.Element; interface OnboardingFormProps { walletAddress: string; onComplete: (user: User) => void; onBack: () => void; theme?: { primary: string; secondary: string; }; customStyles?: { container?: string; card?: string; button?: string; input?: string; select?: string; }; } declare function OnboardingForm({ walletAddress, onComplete, onBack, theme, }: OnboardingFormProps): react_jsx_runtime.JSX.Element; declare function cn(...inputs: ClassValue[]): string; declare function isValidWalletAddress(address: string): boolean; declare function createGradient(from: string, to: string): string; declare function formatErrorMessage(error: unknown): string; declare function getRandomNonce(): string; declare function formatWalletAddress(address: string): string; declare const fadeIn: { hidden: { opacity: number; }; visible: { opacity: number; transition: { duration: number; }; }; }; declare const slideUp: { hidden: { opacity: number; y: number; }; visible: { opacity: number; y: number; transition: { duration: number; }; }; }; declare const capAuthTheme: Record<string, any>; export { CapAuth, OnboardingForm, capAuthTheme, cn, createGradient, fadeIn, formatErrorMessage, formatWalletAddress, getRandomNonce, isValidWalletAddress, slideUp };