@gooddata/sdk-ui-theme-provider 11.43.0-alpha.1 → 11.43.0-alpha.3
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cssProperties.d.ts","sourceRoot":"","sources":["../src/cssProperties.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,MAAM,EAGX,KAAK,aAAa,EAErB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,kBAAkB,CAAC;AAsEpE,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMjD;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3F,CAAC;AA+EF;;GAEG;AACH,wBAAgB,yBAAyB,CACrC,MAAM,EAAE,MAAM,EACd,eAAe,GAAE,cAAc,EAAO,EACtC,UAAU,SAAS,EACnB,QAAQ,CAAC,EAAE,OAAO,EAClB,OAAO,CAAC,EAAE,WAAW,EACrB,OAAO,CAAC,EAAE,MAAM,GACjB,WAAW,EAAE,CA+Bf;AAeD,eAAO,MAAM,mBAAmB,iEAa/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,2GAyB9B,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAC5B,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,OAAO,EACpB,QAAQ,GAAE,OAAe,EACzB,OAAO,CAAC,EAAE,WAAW,EACrB,OAAO,CAAC,EAAE,MAAM,GACjB,IAAI,
|
|
1
|
+
{"version":3,"file":"cssProperties.d.ts","sourceRoot":"","sources":["../src/cssProperties.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,MAAM,EAGX,KAAK,aAAa,EAErB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,kBAAkB,CAAC;AAsEpE,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMjD;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3F,CAAC;AA+EF;;GAEG;AACH,wBAAgB,yBAAyB,CACrC,MAAM,EAAE,MAAM,EACd,eAAe,GAAE,cAAc,EAAO,EACtC,UAAU,SAAS,EACnB,QAAQ,CAAC,EAAE,OAAO,EAClB,OAAO,CAAC,EAAE,WAAW,EACrB,OAAO,CAAC,EAAE,MAAM,GACjB,WAAW,EAAE,CA+Bf;AAeD,eAAO,MAAM,mBAAmB,iEAa/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,2GAyB9B,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAC5B,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,OAAO,EACpB,QAAQ,GAAE,OAAe,EACzB,OAAO,CAAC,EAAE,WAAW,EACrB,OAAO,CAAC,EAAE,MAAM,GACjB,IAAI,CA0DN"}
|
package/esm/cssProperties.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// (C) 2020-
|
|
1
|
+
// (C) 2020-2026 GoodData Corporation
|
|
2
2
|
import { transparentize } from "polished";
|
|
3
3
|
import { getCssProperty } from "./cssProperty.js";
|
|
4
4
|
import { generateDerivedColors } from "./derivedColors.js";
|
|
@@ -230,8 +230,13 @@ export function setCssProperties(theme, isDarkTheme, isScoped = false, scopeTo,
|
|
|
230
230
|
const cssPropertiesRules = cssProperties.map(({ key, value }) => `${key}: ${value};`).join("");
|
|
231
231
|
const styleTag = document.createElement("style");
|
|
232
232
|
styleTag.id = "gdc-theme-properties";
|
|
233
|
+
// Doubled `:root` (specificity 0,2,0) so the theme always wins over the plain `:root {}`
|
|
234
|
+
// light defaults shipped in every app's compiled CSS — regardless of DOM order. In the
|
|
235
|
+
// pluggable host, hovering a header item preloads an app whose bundle injects those defaults
|
|
236
|
+
// into <head> *after* this tag; at equal specificity the later rule would win and reset the
|
|
237
|
+
// theme (LX-2608). The higher specificity makes the outcome order-independent.
|
|
233
238
|
styleTag.appendChild(document.createTextNode(`
|
|
234
|
-
:root {
|
|
239
|
+
:root:root {
|
|
235
240
|
${cssPropertiesRules}
|
|
236
241
|
color-scheme: ${isDarkTheme ? "dark" : "light"};
|
|
237
242
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-theme-provider",
|
|
3
|
-
"version": "11.43.0-alpha.
|
|
3
|
+
"version": "11.43.0-alpha.3",
|
|
4
4
|
"description": "GoodData SDK - Theme provider",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"postcss-value-parser": "^4.2.0",
|
|
33
33
|
"ts-invariant": "0.10.3",
|
|
34
34
|
"tslib": "2.8.1",
|
|
35
|
-
"@gooddata/sdk-backend-spi": "11.43.0-alpha.
|
|
36
|
-
"@gooddata/sdk-model": "11.43.0-alpha.
|
|
37
|
-
"@gooddata/
|
|
38
|
-
"@gooddata/
|
|
35
|
+
"@gooddata/sdk-backend-spi": "11.43.0-alpha.3",
|
|
36
|
+
"@gooddata/sdk-model": "11.43.0-alpha.3",
|
|
37
|
+
"@gooddata/util": "11.43.0-alpha.3",
|
|
38
|
+
"@gooddata/sdk-ui": "11.43.0-alpha.3"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@microsoft/api-documenter": "^7.17.0",
|
|
@@ -73,10 +73,10 @@
|
|
|
73
73
|
"react-dom": "19.1.1",
|
|
74
74
|
"typescript": "5.9.3",
|
|
75
75
|
"vitest": "4.1.8",
|
|
76
|
-
"@gooddata/eslint-config": "11.43.0-alpha.
|
|
77
|
-
"@gooddata/oxlint-config": "11.43.0-alpha.
|
|
78
|
-
"@gooddata/
|
|
79
|
-
"@gooddata/
|
|
76
|
+
"@gooddata/eslint-config": "11.43.0-alpha.3",
|
|
77
|
+
"@gooddata/oxlint-config": "11.43.0-alpha.3",
|
|
78
|
+
"@gooddata/sdk-backend-mockingbird": "11.43.0-alpha.3",
|
|
79
|
+
"@gooddata/reference-workspace": "11.43.0-alpha.3"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"react": "^18.0.0 || ^19.0.0",
|