UNPKG

@synergy-design-system/components

Version:

This package provides the base of the Synergy Design System as native web components. It uses [lit](https://www.lit.dev) and parts of [shoelace](https://shoelace.style/). Synergy officially supports the latest two versions of all major browsers (as define

22 lines (21 loc) 905 B
/** * --------------------------------------------------------------------- * 🔒 AUTOGENERATED BY VENDORISM * Removing this comment will prevent it from being managed by it. * --------------------------------------------------------------------- */ /** * Use a generator so we can iterate and possibly break early. * @example * // to operate like a regular array. This kinda nullifies generator benefits, but worth knowing if you need the whole array. * const allActiveElements = [...activeElements()] * * // Early return * for (const activeElement of activeElements()) { * if (<cond>) { * break; // Break the loop, dont need to iterate over the whole array or store an array in memory! * } * } */ export declare function activeElements(activeElement?: Element | null): Generator<Element>; export declare function getDeepestActiveElement(): Element | undefined;