eru-grid 0.0.49 → 0.0.51

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eru-grid",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.2",
6
6
  "@angular/core": "^21.1.2",
@@ -10,6 +10,16 @@
10
10
  // Use Material's color tokens
11
11
  --grid-primary: #{mat.get-theme-color($theme, primary, 40)} !important;
12
12
  --grid-on-primary: #{mat.get-theme-color($theme, primary, 100)} !important;
13
+ --grid-primary-container: #{mat.get-theme-color($theme, primary-container)} !important;
14
+ --grid-on-primary-container: #{mat.get-theme-color($theme, on-primary-container)} !important;
15
+ --grid-secondary: #{mat.get-theme-color($theme, secondary)} !important;
16
+ --grid-on-secondary: #{mat.get-theme-color($theme, on-secondary)} !important;
17
+ --grid-secondary-container: #{mat.get-theme-color($theme, secondary-container)} !important;
18
+ --grid-on-secondary-container: #{mat.get-theme-color($theme, on-secondary-container)} !important;
19
+ --grid-tertiary: #{mat.get-theme-color($theme, tertiary)} !important;
20
+ --grid-on-tertiary: #{mat.get-theme-color($theme, on-tertiary)} !important;
21
+ --grid-tertiary-container: #{mat.get-theme-color($theme, tertiary-container)} !important;
22
+ --grid-on-tertiary-container: #{mat.get-theme-color($theme, on-tertiary-container)} !important;
13
23
  --grid-surface: #{mat.get-theme-color($theme, surface)} !important;
14
24
  --grid-surface-variant: #{mat.get-theme-color($theme, surface-variant)} !important;
15
25
  --grid-surface-container: #{mat.get-theme-color($theme, surface-container)} !important;
@@ -20,6 +30,11 @@
20
30
  --grid-outline-variant: #{mat.get-theme-color($theme, outline-variant)} !important;
21
31
  --grid-error: #{mat.get-theme-color($theme, error)} !important;
22
32
  --grid-error-container: #{mat.get-theme-color($theme, error-container)} !important;
33
+
34
+ // Base tokens — flip pure white/black (and a neutral border) by light/dark.
35
+ --grid-base-surface: light-dark(#ffffff, #1a1a1a) !important;
36
+ --grid-base-on-surface: light-dark(#000000, #ffffff) !important;
37
+ --grid-base-border: light-dark(#e5e7eb, #3a3a3a) !important;
23
38
 
24
39
  // Use Material's typography tokens - OVERRIDE fallback values
25
40
  --grid-font-family: #{mat.get-theme-typography($theme, body-large, font-family)} !important;
@@ -50,6 +65,16 @@
50
65
  // Color tokens
51
66
  --grid-primary: var(--mat-sys-primary, #6750a4);
52
67
  --grid-on-primary: var(--mat-sys-on-primary, #ffffff);
68
+ --grid-primary-container: var(--mat-sys-primary-container, #eaddff);
69
+ --grid-on-primary-container: var(--mat-sys-on-primary-container, #21005d);
70
+ --grid-secondary: var(--mat-sys-secondary, #625b71);
71
+ --grid-on-secondary: var(--mat-sys-on-secondary, #ffffff);
72
+ --grid-secondary-container: var(--mat-sys-secondary-container, #e8def8);
73
+ --grid-on-secondary-container: var(--mat-sys-on-secondary-container, #1d192b);
74
+ --grid-tertiary: var(--mat-sys-tertiary, #7d5260);
75
+ --grid-on-tertiary: var(--mat-sys-on-tertiary, #ffffff);
76
+ --grid-tertiary-container: var(--mat-sys-tertiary-container, #ffd8e4);
77
+ --grid-on-tertiary-container: var(--mat-sys-on-tertiary-container, #31111d);
53
78
  --grid-surface: var(--mat-sys-surface, #fef7ff);
54
79
  --grid-surface-variant: var(--mat-sys-surface-variant, #e7e0ec);
55
80
  --grid-surface-container: var(--mat-sys-surface-container, #f3edf7);
@@ -60,6 +85,11 @@
60
85
  --grid-outline-variant: var(--mat-sys-outline-variant, #cac4d0);
61
86
  --grid-error: var(--mat-sys-error, #ba1a1a);
62
87
  --grid-error-container: var(--mat-sys-error-container, #ffdad6);
88
+
89
+ // Base tokens — fixed white/black flip; host can override per mode.
90
+ --grid-base-surface: #ffffff;
91
+ --grid-base-on-surface: #000000;
92
+ --grid-base-border: #e5e7eb;
63
93
  --grid-outline-width: 1px;
64
94
 
65
95
  // Typography tokens
@@ -87,6 +117,19 @@
87
117
  .eru-grid-high-contrast {
88
118
  --grid-primary: #000000;
89
119
  --grid-on-primary: #ffffff;
120
+ --grid-primary-container: #e0e0e0;
121
+ --grid-on-primary-container: #000000;
122
+ --grid-secondary: #000000;
123
+ --grid-on-secondary: #ffffff;
124
+ --grid-secondary-container: #e0e0e0;
125
+ --grid-on-secondary-container: #000000;
126
+ --grid-tertiary: #000000;
127
+ --grid-on-tertiary: #ffffff;
128
+ --grid-tertiary-container: #e0e0e0;
129
+ --grid-on-tertiary-container: #000000;
130
+ --grid-base-surface: #ffffff;
131
+ --grid-base-on-surface: #000000;
132
+ --grid-base-border: #000000;
90
133
  --grid-surface: #ffffff;
91
134
  --grid-surface-variant: #f8f8f8;
92
135
  --grid-on-surface: #000000;