@ui-machines/rating
Version:
Core logic for the rating widget implemented as a state machine
14 lines (13 loc) • 509 B
TypeScript
import { MachineContext as Ctx } from "./rating.types";
export declare const dom: {
getDoc: (ctx: Ctx) => Document;
getLabelId: (ctx: Ctx) => string;
getInputId: (ctx: Ctx) => string;
getRatingId: (ctx: Ctx, id: string | number) => string;
getRootId: (ctx: Ctx) => string;
getRootEl: (ctx: Ctx) => HTMLElement;
getRadioEl: (ctx: Ctx) => HTMLElement;
getActiveEl: (ctx: Ctx) => Element;
getInputEl: (ctx: Ctx) => HTMLElement;
dispatchChangeEvent: (ctx: Ctx) => void;
};