diff --git a/src/core/ThemeInjector.ts b/src/core/ThemeInjector.ts index b9dce5235..d2ffb070c 100644 --- a/src/core/ThemeInjector.ts +++ b/src/core/ThemeInjector.ts @@ -34,3 +34,5 @@ export class ThemeInjector extends Injector { super.set(createThemeInjectorPayload(theme, variant)); } } + +export default ThemeInjector; diff --git a/src/core/registerCustomElement.ts b/src/core/registerCustomElement.ts index 11bbf2d7e..d95698906 100644 --- a/src/core/registerCustomElement.ts +++ b/src/core/registerCustomElement.ts @@ -10,7 +10,7 @@ import { } from './vdom'; import { from } from '../shim/array'; import global from '../shim/global'; -import Injector from './Injector'; +import ThemeInjector from './ThemeInjector'; import { DomVNode, WNode } from './interfaces'; const RESERVED_PROPS = ['focus']; @@ -97,8 +97,8 @@ export function DomToWidgetWrapper(domNode: HTMLElement): any { return wrapper; } -function registerThemeInjector(theme: any, themeRegistry: Registry): Injector { - const themeInjector = new Injector(theme); +function registerThemeInjector(theme: any, themeRegistry: Registry): ThemeInjector { + const themeInjector = new ThemeInjector(theme); themeRegistry.defineInjector('__theme_injector', (invalidator) => { themeInjector.setInvalidator(invalidator); return () => themeInjector;