@tonyfreed/card-core
Version:
Core components and types for Ildex card system
23 lines • 893 B
TypeScript
/**
* Simplified Types for Ildex Card Core
* Consolidated type definitions for the card system
*/
import { Language, IProfile, ICard, ICardSection, ThemeConfig } from './interfaces/index';
export interface CardContextValue {
card: ICard | null;
language: Language;
theme: ThemeConfig;
isLoading: boolean;
isDirty: boolean;
updateCard: (updates: Partial<ICard>) => void;
updateProfile: (updates: Partial<IProfile>) => void;
updateTheme: (updates: Partial<ThemeConfig>) => void;
setLanguage: (language: Language) => void;
addSection: (section: ICardSection) => void;
removeSection: (sectionId: string) => void;
updateSection: (sectionId: string, updates: Partial<ICardSection>) => void;
reorderSections: (sectionIds: string[]) => void;
save: () => Promise<void>;
}
export * from './interfaces/index';
//# sourceMappingURL=types.d.ts.map