@tstdl/base 0.82.73 → 0.82.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ const hypenate_js_1 = require("../../utils/string/hypenate.js");
|
|
|
6
6
|
const theme_service_js_1 = require("../theme-service.js");
|
|
7
7
|
function cssThemeAdapter(themeService) {
|
|
8
8
|
const styleSheet = new CSSStyleSheet();
|
|
9
|
+
document.adoptedStyleSheets.push(styleSheet);
|
|
9
10
|
const rootRule = createCssRule(styleSheet, ':root {}');
|
|
10
11
|
const subscription = themeService.calculatedTheme$.subscribe((theme) => setVariables(rootRule, theme.palette));
|
|
11
12
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css-adapter.js","sourceRoot":"","sources":["../../../source/theme/adapters/css-adapter.ts"],"names":[],"mappings":";;;AAAA,4DAAyD;AACzD,gEAAuD;AAEvD,0DAAsD;AAMtD,SAAgB,eAAe,CAAC,YAA+B;IAC7D,MAAM,UAAU,GAAG,IAAI,aAAa,EAAE,CAAC;IACvC,MAAM,QAAQ,GAAG,aAAa,CAAe,UAAU,EAAE,WAAW,CAAC,CAAC;IAEtE,MAAM,YAAY,GAAG,YAAY,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"css-adapter.js","sourceRoot":"","sources":["../../../source/theme/adapters/css-adapter.ts"],"names":[],"mappings":";;;AAAA,4DAAyD;AACzD,gEAAuD;AAEvD,0DAAsD;AAMtD,SAAgB,eAAe,CAAC,YAA+B;IAC7D,MAAM,UAAU,GAAG,IAAI,aAAa,EAAE,CAAC;IACvC,QAAQ,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAE7C,MAAM,QAAQ,GAAG,aAAa,CAA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