(selector: string, el: HTMLElement)
| 2 | import type { AnimationBuilder, Color, CssClassMap } from '../interface'; |
| 3 | |
| 4 | export const hostContext = (selector: string, el: HTMLElement): boolean => { |
| 5 | return el.closest(selector) !== null; |
| 6 | }; |
| 7 | |
| 8 | /** |
| 9 | * Create the mode and color classes for the component based on the classes passed in |