/** * Logo configuration */ export interface LogoConfig { url?: string; width?: string; height?: string; alt?: string; visible?: boolean; } /** * Color palette configuration */ export interface ColorPalette { primary: string; primaryHover: string; primaryLight: string; primaryDark: string; secondary: string; secondaryHover: string; success: string; warning: string; danger: string; info: string; background: string; surface: string; border: string; textPrimary: string; textSecondary: string; textMuted: string; inputBg?: string; inputText?: string; inputBorder?: string; inputBorderFocus?: string; inputPlaceholder?: string; dangerBg?: string; successBg?: string; warningBg?: string; infoBg?: string; headerBg?: string; headerText?: string; footerBg?: string; footerText?: string; } /** * Typography configuration */ export interface TypographyConfig { fontFamily: string; headingFont?: string; fontSize?: { xs: string; sm: string; base: string; lg: string; xl: string; '2xl': string; '3xl': string; }; fontWeight?: { normal: number; medium: number; semibold: number; bold: number; }; } /** * Spacing and layout configuration */ export interface SpacingConfig { borderRadius: string; cardPadding: string; inputHeight: string; } /** * Rendering engine that backs the SDK's core primitives (Button, Input, Select, …). * * - `verocompliance` (default): the SDK's own hand-rolled primitives styled via `--verocompliance-*` CSS vars. * - `vpdev2-ui`: primitives are rendered by the shared `@vpdev2/ui` design system, * wrapped in its `VeroComplianceUIProvider`. This is the built-in "VeroCompliance" theme. * * The engine is selected by the resolved theme (`ThemeConfig.engine`), which the panel SDK-config * section drives via the `vpdev2-ui` preset. */ export type ThemeEngine = 'verocompliance' | 'vpdev2-ui'; /** * Complete theme configuration */ export interface ThemeConfig { /** Theme name/identifier */ name?: string; /** * Component/rendering engine. Defaults to `verocompliance` when omitted so existing * consumers are unaffected. Set to `vpdev2-ui` to render via @vpdev2/ui. */ engine?: ThemeEngine; /** Title/heading for the SDK */ title?: string; /** Logo configuration */ logo?: LogoConfig; /** Color palette */ colors: ColorPalette; /** Typography settings */ typography?: TypographyConfig; /** Spacing and layout */ spacing?: SpacingConfig; /** Custom CSS to inject */ customCSS?: string; /** Dark mode color overrides */ darkMode?: { colors: Partial; }; /** Applicant form visible fields (ordered) from backend config */ applicantFormVisibleFields?: string[]; /** Applicant form client-required fields from backend config */ applicantFormRequiredFields?: string[]; /** Allowed language codes for the Default Language dropdown e.g. ['EN','DE'] */ allowedLanguages?: string[]; /** Multi-page applicant form layout configuration */ applicantFormPages?: import('./form-config').FormPage[]; /** Identity review page — single FormPage with fields + editable flags */ reviewPageFields?: import('./form-config').FormPage[]; /** * When true the identity review/confirmation page is skipped entirely. * The SDK auto-requests identity on mount and shows the provider UI directly. */ reviewPageDisabled?: boolean; /** * Controls how field labels are rendered in the applicant form. * 'label' (default) — a label element is shown above each input. * 'placeholder' — no label element; the label text is used as the input placeholder. */ fieldLabelMode?: 'label' | 'placeholder'; /** Company (KYB) form visible fields (ordered) from backend config */ companyFormVisibleFields?: string[]; /** Company form client-required fields from backend config */ companyFormRequiredFields?: string[]; /** Multi-page company form layout configuration */ companyFormPages?: import('./form-config').FormPage[]; /** Company review page fields */ companyReviewPageFields?: import('./form-config').FormPage[]; /** * When true, the company (KYB) review step is skipped and the form submits after the last wizard step. */ companyReviewPageDisabled?: boolean; /** Workflow layout variant */ layoutVariant?: 'default' | 'vertical-stepper' | 'minimal'; /** Customizable result page configuration per status */ resultPageConfig?: ResultPageConfig; /** KYB (Business) configuration — toggles for the legal entity, branch, representative, and UBO/Director steps */ kyb?: KybConfig; /** * The youngest age a person may give as their date of birth; 0 for no limit, absent for the default (18). * VeroCompliance refuses a younger date of birth itself, so the form checks it first. */ minimumAge?: number; } /** * Configuration for a single result page status */ export interface ResultPageItemConfig { icon?: string; title?: string; message?: string; listHeading?: string; listItems?: string[]; } /** * Result page customization per status type */ export interface ResultPageConfig { approved?: ResultPageItemConfig; rejected?: ResultPageItemConfig; pending?: ResultPageItemConfig; adminReview?: ResultPageItemConfig; } /** * Predefined theme presets */ export declare enum ThemePreset { Default = "default", Corporate = "corporate", Fintech = "fintech", Healthcare = "healthcare", Modern = "modern", Minimal = "minimal", /** Built-in VeroCompliance theme — renders via the @vpdev2/ui design system. */ VeroComplianceUI = "vpdev2-ui" } /** * Theme configuration from backend */ export interface ThemeConfigurationDto { tenantId?: number; isEnabled: boolean; preset?: ThemePreset; /** Component engine selected in the panel; when omitted it is derived from `preset`. */ engine?: ThemeEngine; title?: string; logo?: LogoConfig; colors?: Partial; typography?: TypographyConfig; spacing?: SpacingConfig; customCSS?: string; darkMode?: { colors: Partial; }; applicantFormVisibleFields?: string[]; applicantFormRequiredFields?: string[]; allowedLanguages?: string[]; applicantFormPages?: import('./form-config').FormPage[]; reviewPageFields?: import('./form-config').FormPage[]; reviewPageDisabled?: boolean; fieldLabelMode?: 'label' | 'placeholder'; companyFormVisibleFields?: string[]; companyFormRequiredFields?: string[]; companyFormPages?: import('./form-config').FormPage[]; companyReviewPageFields?: import('./form-config').FormPage[]; companyReviewPageDisabled?: boolean; layoutVariant?: 'default' | 'vertical-stepper' | 'minimal'; resultPageConfig?: ResultPageConfig; kyb?: KybConfig; /** The tenant's minimum age for a date of birth; 0 for no limit. Served with every configuration version. */ minimumAge?: number; } /** * Built-in KYB person fields that can be configured per role (representative or UBO/director). */ export type KybPersonField = 'firstName' | 'lastName' | 'middleName' | 'dateOfBirth' | 'nationality' | 'email' | 'phone' | 'mobileCountryCode' | 'street' | 'streetNumber' | 'zip' | 'city' | 'country' | 'shareSize' | 'directOwnership' | 'indirectOwnership' | 'controlVIAVotingRights' | 'controlByOtherMeans'; /** * Common per-step display overrides supported on every KYB step. * * Title / subtitle / description are rendered above the step body. Each value * may be: * - a plain string ("Choose your legal entity") * - a translation marker ("t('kyb.legalEntity.title')" or "$t:kyb.legalEntity.title") * * Leave a field unset to use the SDK's built-in i18n default. */ export interface KybStepDisplayConfig { title?: string; subtitle?: string; description?: string; } /** * Configuration for the LegalEntity tree-picker step in the KYB flow. */ export interface KybLegalEntityStepConfig extends KybStepDisplayConfig { enabled?: boolean; required?: boolean; helpText?: string; } /** * Configuration for the Branch (industry) tree-picker step in the KYB flow. */ export interface KybBranchStepConfig extends KybStepDisplayConfig { enabled?: boolean; required?: boolean; helpText?: string; } /** * Configuration for the single-Representative step in the KYB flow. */ export interface KybRepresentativeStepConfig extends KybStepDisplayConfig { enabled?: boolean; required?: boolean; /** @deprecated Prefer `formPage` for richer per-field configuration. Kept for backward compatibility. */ visibleFields?: KybPersonField[]; /** @deprecated Prefer `formPage` for richer per-field configuration. Kept for backward compatibility. */ requiredFields?: KybPersonField[]; /** * Single FormPage describing the person fields shown for the Representative. * When present, takes precedence over `visibleFields`/`requiredFields` and * supports per-field labels, ordering, colSpan, helpText, etc. (single-page). */ formPage?: import('./form-config').FormPage; } /** * Configuration for the combined UBOs/Directors roster step in the KYB flow. */ export interface KybUbosDirectorsStepConfig extends KybStepDisplayConfig { enabled?: boolean; /** Minimum required UBOs before the user can proceed (default 0). */ minUbos?: number; /** Minimum required Directors before the user can proceed (default 0). */ minDirectors?: number; /** When true, the user can pick an already-added person (e.g. the Representative) and assign extra roles. */ allowSelectExisting?: boolean; /** @deprecated Prefer `formPage` for richer per-field configuration. Kept for backward compatibility. */ visibleFields?: KybPersonField[]; /** @deprecated Prefer `formPage` for richer per-field configuration. Kept for backward compatibility. */ requiredFields?: KybPersonField[]; /** * Single FormPage describing the person fields shown for each UBO/Director. * When present, takes precedence over `visibleFields`/`requiredFields` and * supports per-field labels, ordering, colSpan, helpText, etc. (single-page). */ formPage?: import('./form-config').FormPage; } /** * Built-in COMPANY-shaped fields available on the corporate shareholders step. * These mirror the COMPANY_FIELD_METADATA names — they describe an *organisation* * (companyName, registrationNumber, website, address …) rather than a natural * person, which is why the shareholders step uses its own picker instead of the * KybPersonField list used by Representative / UBO / Director. */ export type KybCompanyShareholderField = 'companyName' | 'registrationNumber' | 'email' | 'phone' | 'website' | 'street' | 'streetNumber' | 'city' | 'state' | 'postalCode' | 'addressCountry' | 'shareSize'; /** * Configuration for the Corporate Shareholders roster step in the KYB flow. * Mirrors the operational pattern of `KybUbosDirectorsStepConfig` (multi-entry * roster with min count, formPage editor) but the entries are companies, not * people, so the form uses company-shaped fields instead of person fields. */ export interface KybCorporateShareholdersStepConfig extends KybStepDisplayConfig { enabled?: boolean; /** Minimum required corporate shareholders before the user can proceed (default 0). */ minShareholders?: number; /** @deprecated Prefer `formPage`. Kept for backward compatibility. */ visibleFields?: KybCompanyShareholderField[]; /** @deprecated Prefer `formPage`. Kept for backward compatibility. */ requiredFields?: KybCompanyShareholderField[]; /** * Single FormPage describing the company fields shown for each shareholder. * When present, takes precedence over `visibleFields`/`requiredFields` and * supports per-field labels, ordering, colSpan, helpText, etc. (single-page). */ formPage?: import('./form-config').FormPage; } /** * Top-level KYB configuration block stored as JSON on the backend (TenantThemeSettings.Kyb). */ export interface KybConfig { legalEntity?: KybLegalEntityStepConfig; branch?: KybBranchStepConfig; representative?: KybRepresentativeStepConfig; ubosDirectors?: KybUbosDirectorsStepConfig; corporateShareholders?: KybCorporateShareholdersStepConfig; } //# sourceMappingURL=theme.d.ts.map