@frank-auth/react
Version:
Flexible and customizable React UI components for Frank Authentication
128 lines • 5.08 kB
TypeScript
import { AppearanceConfig, BrandingConfig, ComponentAppearance, FrankAuthUIConfig, LocalizationConfig, OrganizationConfig, Theme, Typography, UserType } from './types';
import { Animations, BorderRadius, LayoutConfig, Shadows, Spacing, ThemeColors } from '../types';
export declare const DEFAULT_COLOR_PALETTE: import('../types').ColorPalette;
export declare const DEFAULT_THEME_COLOR: ThemeColors;
export declare const DEFAULT_TYPOGRAPHY: Typography;
export declare const DEFAULT_SPACING: Spacing;
export declare const DEFAULT_BORDER_RADIUS: BorderRadius;
export declare const DEFAULT_SHADOWS: Shadows;
export declare const DEFAULT_ANIMATIONS: Animations;
export declare const DEFAULT_THEME_CONFIG: Theme;
export declare const DEFAULT_LAYOUT_CONFIG: LayoutConfig;
export declare const DEFAULT_COMPONENT_APPEARANCE: ComponentAppearance;
export declare const DEFAULT_BRANDING_CONFIG: BrandingConfig;
export declare const DEFAULT_APPEARANCE_CONFIG: AppearanceConfig;
export declare const DEFAULT_LOCALE_MESSAGES: import('../locales').LocaleMessages;
export declare const DEFAULT_LOCALIZATION_CONFIG: LocalizationConfig;
export declare const DEFAULT_ORGANIZATION_CONFIG: Partial<OrganizationConfig>;
export declare const DEFAULT_FRANK_AUTH_CONFIG: Partial<FrankAuthUIConfig>;
/**
* Preset configurations for different use cases
*/
export declare const CONFIG_PRESETS: {
readonly minimal: {
readonly features: {
readonly signUp: true;
readonly signIn: true;
readonly passwordReset: true;
readonly mfa: false;
readonly sso: false;
readonly organizationManagement: false;
readonly userProfile: false;
readonly sessionManagement: false;
};
readonly appearance: {
readonly components: {
readonly input: {
readonly variant: "flat";
};
readonly button: {
readonly variant: "flat";
};
readonly card: {
readonly variant: "flat";
};
};
};
};
readonly enterprise: {
readonly features: {
readonly signUp: true;
readonly signIn: true;
readonly passwordReset: true;
readonly mfa: true;
readonly sso: true;
readonly organizationManagement: true;
readonly userProfile: true;
readonly sessionManagement: true;
};
readonly organization: {
readonly settings: {
readonly mfaRequired: true;
readonly allowedMfaMethods: readonly ["totp", "webauthn"];
readonly passwordPolicy: {
readonly minLength: 12;
readonly requireUppercase: true;
readonly requireLowercase: true;
readonly requireNumbers: true;
readonly requireSymbols: true;
};
};
readonly features: {
readonly sso: true;
readonly mfa: true;
readonly auditLogs: true;
readonly customBranding: true;
readonly apiAccess: true;
};
};
};
readonly b2b: {
readonly userType: UserType;
readonly features: {
readonly signUp: false;
readonly signIn: true;
readonly passwordReset: true;
readonly mfa: true;
readonly sso: true;
readonly organizationManagement: true;
readonly userProfile: true;
readonly sessionManagement: true;
};
readonly organization: {
readonly settings: {
readonly allowPublicSignup: false;
readonly requireEmailVerification: true;
readonly mfaRequired: true;
};
};
};
readonly consumer: {
readonly userType: UserType;
readonly features: {
readonly signUp: true;
readonly signIn: true;
readonly passwordReset: true;
readonly mfa: false;
readonly sso: true;
readonly organizationManagement: false;
readonly userProfile: true;
readonly sessionManagement: false;
};
readonly appearance: {
readonly components: {
readonly input: {
readonly variant: "bordered";
};
readonly button: {
readonly variant: "shadow";
};
readonly card: {
readonly variant: "shadow";
};
};
};
};
};
export { DEFAULT_THEME_CONFIG as defaultTheme, DEFAULT_APPEARANCE_CONFIG as defaultAppearance, DEFAULT_LOCALIZATION_CONFIG as defaultLocalization, DEFAULT_ORGANIZATION_CONFIG as defaultOrganization, DEFAULT_FRANK_AUTH_CONFIG as defaultConfig, };
//# sourceMappingURL=defaults.d.ts.map