@stramien/core 0.13.1 → 0.14.0
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/dist/index.d.ts +40 -3
- package/dist/index.js +55 -19
- package/dist/index.js.map +1 -1
- package/dist/styles.css +6 -1
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
|
|
96
96
|
/* Fallback for browsers without light-dark() when theme is auto */
|
|
97
97
|
@media (prefers-color-scheme: dark) {
|
|
98
|
-
.st-grid:not([data-st-theme="light"]) {
|
|
98
|
+
.st-grid:not([data-st-theme="light"]):not([data-st-theme="inherit"]) {
|
|
99
99
|
--st-bg: var(--st-bg-dark);
|
|
100
100
|
--st-surface: var(--st-surface-dark);
|
|
101
101
|
--st-surface-elevated: var(--st-surface-elevated-dark);
|
|
@@ -159,6 +159,11 @@
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
+
/* theme: 'inherit': the page (or a wrapper) decides through its color-scheme, not the OS */
|
|
163
|
+
.st-grid[data-st-theme="inherit"] {
|
|
164
|
+
color-scheme: inherit;
|
|
165
|
+
}
|
|
166
|
+
|
|
162
167
|
/* Component-level theme overrides: re-specify background + inherited colors so light-dark() re-resolves */
|
|
163
168
|
.st-grid[data-st-theme="light"] {
|
|
164
169
|
color-scheme: only light;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stramien/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Zero-dependency framework-agnostic TypeScript data grid engine with virtualized DOM renderer and CSS-variable themes",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Erik-Jan van Baaren <erikjan@gmail.com>",
|