All files / src/components pill.ts

100% Statements 2/2
100% Branches 0/0
100% Functions 1/1
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1817x                       285x          
export const PILL_CLS = {
    INSTALLED: "lilbee-pill-installed",
    CONTEXT: "lilbee-pill-context",
    SOURCE: "lilbee-pill-source",
    SOURCE_USER: "lilbee-pill-source-user",
    SOURCE_ENV: "lilbee-pill-source-env",
    REINDEX: "lilbee-pill-reindex",
    PROFILE_FOLDER: "lilbee-pill-profile-folder",
    PROFILE_ACTIVE: "lilbee-pill-profile-active",
} as const;
 
export function renderPill(container: HTMLElement, text: string, cls: string): HTMLElement {
    return container.createSpan({
        text,
        cls: `lilbee-pill ${cls}`,
    });
}