g3-toolkit API Reference
    Preparing search index...

    Interface StyleSelector

    interface StyleSelector {
        classAny?: readonly string[];
        dataEquals?: Readonly<Record<string, unknown>>;
        dataHas?: readonly string[];
        kind?: StyleElementKind;
        predicate?: (ctx: StyleRuleContext) => boolean;
    }
    Index

    Properties

    classAny?: readonly string[]

    Matches when the element carries ANY of these classes.

    dataEquals?: Readonly<Record<string, unknown>>

    Equality gates; keys double as presence gates.

    dataHas?: readonly string[]

    Field-presence gate (G3L:STY-003): ALL listed fields must be present (not undefined) or the rule silently skips the element.

    predicate?: (ctx: StyleRuleContext) => boolean

    Escape-hatch predicate. Declare dependencies on the rule or invalidation degrades to conservative for it.