@alaarab/ogrid-vue-radix 2.1.8 → 2.1.9
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.
|
@@ -2,40 +2,120 @@
|
|
|
2
2
|
|
|
3
3
|
/* Shared theme variables (light/dark mode, CSS custom properties) */
|
|
4
4
|
|
|
5
|
-
/* OGrid Shared Theme Variables — consumed by
|
|
5
|
+
/* OGrid Shared Theme Variables — consumed by all Vue UI packages.
|
|
6
|
+
*
|
|
7
|
+
* Uses :where() selectors for ZERO specificity — consumer overrides always win.
|
|
8
|
+
* Dark mode: auto via prefers-color-scheme, explicit via [data-theme="dark"].
|
|
9
|
+
*/
|
|
6
10
|
|
|
7
|
-
/* ───
|
|
11
|
+
/* ─── Light Theme (default) ─── */
|
|
8
12
|
|
|
9
|
-
:root {
|
|
13
|
+
:where(:root) {
|
|
10
14
|
--ogrid-bg: #ffffff;
|
|
11
15
|
--ogrid-fg: rgba(0, 0, 0, 0.87);
|
|
12
16
|
--ogrid-fg-secondary: rgba(0, 0, 0, 0.6);
|
|
13
17
|
--ogrid-fg-muted: rgba(0, 0, 0, 0.5);
|
|
14
18
|
--ogrid-border: rgba(0, 0, 0, 0.12);
|
|
15
|
-
--ogrid-
|
|
19
|
+
--ogrid-border-strong: rgba(0, 0, 0, 0.5);
|
|
20
|
+
--ogrid-border-hover: rgba(0, 0, 0, 0.3);
|
|
21
|
+
--ogrid-header-bg: #f5f5f5;
|
|
16
22
|
--ogrid-hover-bg: rgba(0, 0, 0, 0.04);
|
|
17
23
|
--ogrid-selected-row-bg: #e6f0fb;
|
|
24
|
+
--ogrid-bg-selected-hover: #dae8f8;
|
|
18
25
|
--ogrid-active-cell-bg: rgba(0, 0, 0, 0.02);
|
|
19
26
|
--ogrid-range-bg: rgba(33, 115, 70, 0.12);
|
|
20
27
|
--ogrid-accent: #0078d4;
|
|
28
|
+
--ogrid-accent-dark: #005a9e;
|
|
21
29
|
--ogrid-selection-color: #217346;
|
|
30
|
+
--ogrid-primary: #0078d4;
|
|
31
|
+
--ogrid-primary-fg: #fff;
|
|
32
|
+
--ogrid-primary-hover: #106ebe;
|
|
33
|
+
--ogrid-bg-subtle: #f5f5f5;
|
|
34
|
+
--ogrid-bg-hover: rgba(0, 0, 0, 0.04);
|
|
35
|
+
--ogrid-active-bg: rgba(0, 0, 0, 0.06);
|
|
36
|
+
--ogrid-muted: rgba(0, 0, 0, 0.5);
|
|
37
|
+
--ogrid-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
|
|
38
|
+
--ogrid-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
|
|
39
|
+
--ogrid-pinned-shadow: rgba(0, 0, 0, 0.1);
|
|
22
40
|
--ogrid-loading-overlay: rgba(255, 255, 255, 0.7);
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
41
|
+
--ogrid-selection: #217346;
|
|
42
|
+
--ogrid-bg-range: rgba(33, 115, 70, 0.12);
|
|
43
|
+
--ogrid-bg-selected: #e6f0fb;
|
|
44
|
+
--ogrid-loading-bg: rgba(255, 255, 255, 0.7);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* ─── Auto Dark (system preference) ─── */
|
|
48
|
+
|
|
49
|
+
@media (prefers-color-scheme: dark) {
|
|
50
|
+
:where(:root:not([data-theme="light"])) {
|
|
51
|
+
--ogrid-bg: #1e1e1e;
|
|
52
|
+
--ogrid-fg: rgba(255, 255, 255, 0.87);
|
|
53
|
+
--ogrid-fg-secondary: rgba(255, 255, 255, 0.6);
|
|
54
|
+
--ogrid-fg-muted: rgba(255, 255, 255, 0.5);
|
|
55
|
+
--ogrid-border: rgba(255, 255, 255, 0.12);
|
|
56
|
+
--ogrid-border-strong: rgba(255, 255, 255, 0.5);
|
|
57
|
+
--ogrid-border-hover: rgba(255, 255, 255, 0.3);
|
|
58
|
+
--ogrid-header-bg: #2c2c2c;
|
|
59
|
+
--ogrid-hover-bg: rgba(255, 255, 255, 0.08);
|
|
60
|
+
--ogrid-selected-row-bg: #1a3a5c;
|
|
61
|
+
--ogrid-bg-selected-hover: #1f3650;
|
|
62
|
+
--ogrid-active-cell-bg: rgba(255, 255, 255, 0.06);
|
|
63
|
+
--ogrid-range-bg: rgba(46, 160, 67, 0.15);
|
|
64
|
+
--ogrid-accent: #4da6ff;
|
|
65
|
+
--ogrid-accent-dark: #3390e0;
|
|
66
|
+
--ogrid-selection-color: #2ea043;
|
|
67
|
+
--ogrid-primary: #4da6ff;
|
|
68
|
+
--ogrid-primary-fg: #fff;
|
|
69
|
+
--ogrid-primary-hover: #66b3ff;
|
|
70
|
+
--ogrid-bg-subtle: rgba(255, 255, 255, 0.04);
|
|
71
|
+
--ogrid-bg-hover: rgba(255, 255, 255, 0.08);
|
|
72
|
+
--ogrid-active-bg: rgba(255, 255, 255, 0.08);
|
|
73
|
+
--ogrid-muted: rgba(255, 255, 255, 0.5);
|
|
74
|
+
--ogrid-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
|
|
75
|
+
--ogrid-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
|
|
76
|
+
--ogrid-pinned-shadow: rgba(0, 0, 0, 0.3);
|
|
77
|
+
--ogrid-loading-overlay: rgba(0, 0, 0, 0.7);
|
|
78
|
+
--ogrid-selection: #2ea043;
|
|
79
|
+
--ogrid-bg-range: rgba(46, 160, 67, 0.15);
|
|
80
|
+
--ogrid-bg-selected: #1a3a5c;
|
|
81
|
+
--ogrid-loading-bg: rgba(0, 0, 0, 0.7);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* ─── Explicit Dark ─── */
|
|
86
|
+
|
|
87
|
+
:where([data-theme="dark"]) {
|
|
26
88
|
--ogrid-bg: #1e1e1e;
|
|
27
89
|
--ogrid-fg: rgba(255, 255, 255, 0.87);
|
|
28
90
|
--ogrid-fg-secondary: rgba(255, 255, 255, 0.6);
|
|
29
91
|
--ogrid-fg-muted: rgba(255, 255, 255, 0.5);
|
|
30
92
|
--ogrid-border: rgba(255, 255, 255, 0.12);
|
|
31
|
-
--ogrid-
|
|
93
|
+
--ogrid-border-strong: rgba(255, 255, 255, 0.5);
|
|
94
|
+
--ogrid-border-hover: rgba(255, 255, 255, 0.3);
|
|
95
|
+
--ogrid-header-bg: #2c2c2c;
|
|
32
96
|
--ogrid-hover-bg: rgba(255, 255, 255, 0.08);
|
|
33
97
|
--ogrid-selected-row-bg: #1a3a5c;
|
|
98
|
+
--ogrid-bg-selected-hover: #1f3650;
|
|
34
99
|
--ogrid-active-cell-bg: rgba(255, 255, 255, 0.06);
|
|
35
100
|
--ogrid-range-bg: rgba(46, 160, 67, 0.15);
|
|
36
101
|
--ogrid-accent: #4da6ff;
|
|
102
|
+
--ogrid-accent-dark: #3390e0;
|
|
37
103
|
--ogrid-selection-color: #2ea043;
|
|
104
|
+
--ogrid-primary: #4da6ff;
|
|
105
|
+
--ogrid-primary-fg: #fff;
|
|
106
|
+
--ogrid-primary-hover: #66b3ff;
|
|
107
|
+
--ogrid-bg-subtle: rgba(255, 255, 255, 0.04);
|
|
108
|
+
--ogrid-bg-hover: rgba(255, 255, 255, 0.08);
|
|
109
|
+
--ogrid-active-bg: rgba(255, 255, 255, 0.08);
|
|
110
|
+
--ogrid-muted: rgba(255, 255, 255, 0.5);
|
|
111
|
+
--ogrid-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
|
|
112
|
+
--ogrid-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
|
|
113
|
+
--ogrid-pinned-shadow: rgba(0, 0, 0, 0.3);
|
|
38
114
|
--ogrid-loading-overlay: rgba(0, 0, 0, 0.7);
|
|
115
|
+
--ogrid-selection: #2ea043;
|
|
116
|
+
--ogrid-bg-range: rgba(46, 160, 67, 0.15);
|
|
117
|
+
--ogrid-bg-selected: #1a3a5c;
|
|
118
|
+
--ogrid-loading-bg: rgba(0, 0, 0, 0.7);
|
|
39
119
|
}
|
|
40
120
|
|
|
41
121
|
/* Shared layout styles (table structure, header, cells, pinning, fill handle, etc.) */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alaarab/ogrid-vue-radix",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.9",
|
|
4
4
|
"description": "OGrid Vue Radix – Lightweight data grid with sorting, filtering, pagination, column chooser, and CSV export. Built with Headless UI Vue.",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"node": ">=18"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@alaarab/ogrid-vue": "2.1.
|
|
45
|
+
"@alaarab/ogrid-vue": "2.1.9",
|
|
46
46
|
"@headlessui/vue": "^1.7.23"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|