import { UI, DayFlag, SelectionState } from "../UI.js"; import type { ClassNames } from "../types/index.js"; /** * Get the default class names for the UI elements. * * @group Utilities */ export function getDefaultClassNames(): ClassNames { const classNames: Partial> = {}; for (const key in UI) { classNames[UI[key as keyof typeof UI]] = `rdp-${UI[key as keyof typeof UI]}`; } for (const key in DayFlag) { classNames[DayFlag[key as keyof typeof DayFlag]] = `rdp-${DayFlag[key as keyof typeof DayFlag]}`; } for (const key in SelectionState) { classNames[SelectionState[key as keyof typeof SelectionState]] = `rdp-${SelectionState[key as keyof typeof SelectionState]}`; } return classNames as Required; }