@alaarab/ogrid-vue 2.1.8 → 2.1.10

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