import { Element , Tagname , } from "@opticss/element-analysis" ; import { ClassifiedParsedSelectors , QueryKeySelector as QueryKeySelectorImpl , postcss , } from "opticss" ; import { Block , Style } from "./BlockTree" ; export interface Query { execute ( container ) : ClassifiedParsedSelectors ; } export class QueryKeySelector implements Query { target : Style ; impl : QueryKeySelectorImpl ; constructor ( obj ) { this . target = obj ; let tag = new Tagname ( { unknown : true } ) ; let attrs = obj . asSourceAttributes ( ) ; this . impl = new QueryKeySelectorImpl ( new Element ( tag , attrs ) ) ; } execute ( container , block ? ) { return this . impl . execute ( container , block ) ; } }