reifyui 0.4.2 → 0.5.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/README.md +38 -1
- package/dist/chunk-2LYV4PIX.js +97 -0
- package/dist/chunk-2LYV4PIX.js.map +1 -0
- package/dist/harness.cjs +310 -0
- package/dist/harness.cjs.map +1 -0
- package/dist/harness.d.ts +88 -0
- package/dist/harness.js +212 -0
- package/dist/harness.js.map +1 -0
- package/dist/index.cjs +175 -94
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +84 -3
- package/dist/index.js +180 -184
- package/dist/index.js.map +1 -1
- package/package.json +6 -1
- package/src/harness/index.d.ts +88 -0
- package/src/harness/index.js +266 -0
- package/src/index.d.ts +84 -3
- package/src/sheet/SheetGrid.jsx +220 -111
- package/styles/sheet.css +76 -71
- package/styles/themes/dark.css +3 -0
- package/styles/themes/light.css +3 -0
package/styles/sheet.css
CHANGED
|
@@ -1,60 +1,65 @@
|
|
|
1
|
-
/* SheetGrid — shared spreadsheet grid styles
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/* SheetGrid — shared spreadsheet grid styles. Product-neutral: every colour comes from a
|
|
2
|
+
--uic-* token, so a host themes the grid by setting the same tokens the chat surface reads
|
|
3
|
+
(styles/themes/light.css or dark.css, or your own layer).
|
|
4
|
+
|
|
5
|
+
These used to be unprefixed (--brand, --line, --ink…), which no theme in this package defines
|
|
6
|
+
— so an import without a token layer fell through to the inline fallbacks, and those disagreed
|
|
7
|
+
with each other: 15 rules said --brand was emerald and 7 said teal. The result was a two-tone
|
|
8
|
+
grid. One token, one fallback, and the fallbacks now match the library's own palette. */
|
|
4
9
|
.shg { display: flex; flex-direction: column; height: 100%; min-height: 0; }
|
|
5
10
|
.shg-scroll { flex: 1; min-height: 0; overflow: auto; }
|
|
6
11
|
.shg-table { border-collapse: collapse; font-size: 13px; width: max-content; min-width: 100%; }
|
|
7
12
|
|
|
8
13
|
.shg-table th, .shg-table td {
|
|
9
|
-
border: 1px solid var(--line, #
|
|
14
|
+
border: 1px solid var(--uic-line, #DDDFE6);
|
|
10
15
|
padding: 0; height: 34px; box-sizing: border-box;
|
|
11
16
|
}
|
|
12
17
|
.shg-corner, .shg-rownum {
|
|
13
|
-
background: var(--surface-2, #
|
|
14
|
-
text-align: center; color: var(--mute-2, #
|
|
18
|
+
background: var(--uic-surface-2, #F7F8FA);
|
|
19
|
+
text-align: center; color: var(--uic-mute-2, #8E9199); font-variant-numeric: tabular-nums;
|
|
15
20
|
position: sticky; left: 0; z-index: 3;
|
|
16
21
|
}
|
|
17
22
|
.shg-corner { z-index: 6; }
|
|
18
23
|
.shg-rownum span { font-size: 11px; }
|
|
19
24
|
.shg-rowdel {
|
|
20
25
|
position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
|
|
21
|
-
border: none; background: transparent; color: var(--mute-2, #
|
|
26
|
+
border: none; background: transparent; color: var(--uic-mute-2, #8E9199);
|
|
22
27
|
cursor: pointer; font-size: 14px; line-height: 1; opacity: 0; padding: 2px;
|
|
23
28
|
}
|
|
24
29
|
.shg-table tr:hover .shg-rowdel { opacity: 1; }
|
|
25
30
|
|
|
26
|
-
.shg-col { min-width: 180px; max-width: 420px; background: var(--surface, #
|
|
27
|
-
.shg-col-compute { background: var(--brand-
|
|
31
|
+
.shg-col { min-width: 180px; max-width: 420px; background: var(--uic-surface, #FFFFFF); position: sticky; top: 0; z-index: 4; }
|
|
32
|
+
.shg-col-compute { background: var(--uic-brand-faint, #EFF3FF); }
|
|
28
33
|
.shg-col-h { padding: 6px 10px; }
|
|
29
34
|
.shg-colhdr { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
30
35
|
.shg-colhdr-main { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
|
|
31
|
-
.shg-colname { font-weight: 600; color: var(--ink, #
|
|
36
|
+
.shg-colname { font-weight: 600; color: var(--uic-ink, #111317); cursor: default;
|
|
32
37
|
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
|
|
33
|
-
.shg-colname-input { font-weight: 600; font-size: 13px; border: 1px solid var(--brand, #
|
|
38
|
+
.shg-colname-input { font-weight: 600; font-size: 13px; border: 1px solid var(--uic-brand, #285AFF);
|
|
34
39
|
border-radius: 4px; padding: 1px 4px; width: 150px; font-family: inherit; }
|
|
35
|
-
.shg-coltype { font-size: 10px; color: var(--mute, #
|
|
36
|
-
.shg-coltype.compute { color: var(--brand, #
|
|
40
|
+
.shg-coltype { font-size: 10px; color: var(--uic-mute, #5B5D66); text-transform: uppercase; letter-spacing: .03em; }
|
|
41
|
+
.shg-coltype.compute { color: var(--uic-brand, #285AFF); font-weight: 600; }
|
|
37
42
|
.shg-colhdr-tools { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
|
|
38
43
|
.shg-colrun {
|
|
39
|
-
font-size: 11px; font-weight: 600; color: var(--brand, #
|
|
40
|
-
background: var(--surface, #
|
|
44
|
+
font-size: 11px; font-weight: 600; color: var(--uic-brand, #285AFF);
|
|
45
|
+
background: var(--uic-surface, #FFFFFF); border: 1px solid var(--uic-brand-soft, #E1E9FF);
|
|
41
46
|
border-radius: 6px; padding: 2px 8px; cursor: pointer; white-space: nowrap;
|
|
42
47
|
}
|
|
43
|
-
.shg-colrun:hover { background: var(--brand-
|
|
48
|
+
.shg-colrun:hover { background: var(--uic-brand-faint, #EFF3FF); }
|
|
44
49
|
.shg-coldel, .shg-add {
|
|
45
|
-
border: none; background: transparent; color: var(--mute-2, #
|
|
50
|
+
border: none; background: transparent; color: var(--uic-mute-2, #8E9199);
|
|
46
51
|
cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 5px; border-radius: 4px;
|
|
47
52
|
}
|
|
48
|
-
.shg-coldel:hover { background: var(--
|
|
49
|
-
.shg-add:hover { background: var(--line-soft, #EFF1F4); color: var(--ink, #
|
|
50
|
-
.shg-add-col { width: auto; min-width: 40px; text-align: left; background: var(--surface, #
|
|
53
|
+
.shg-coldel:hover { background: var(--uic-fail-bg, #FEF2F2); color: #B91C1C; }
|
|
54
|
+
.shg-add:hover { background: var(--uic-line-soft, #EFF1F4); color: var(--uic-ink, #111317); }
|
|
55
|
+
.shg-add-col { width: auto; min-width: 40px; text-align: left; background: var(--uic-surface, #FFFFFF); position: sticky; top: 0; z-index: 4; }
|
|
51
56
|
|
|
52
|
-
.shg-cell { cursor: text; background: var(--surface, #
|
|
57
|
+
.shg-cell { cursor: text; background: var(--uic-surface, #FFFFFF); }
|
|
53
58
|
.shg-cell-compute { cursor: default; }
|
|
54
|
-
.shg-cell:hover { background: var(--surface-2, #
|
|
59
|
+
.shg-cell:hover { background: var(--uic-surface-2, #F7F8FA); }
|
|
55
60
|
.shg-val { display: flex; align-items: center; gap: 6px; padding: 0 10px; height: 100%; }
|
|
56
61
|
.shg-val-txt {
|
|
57
|
-
flex: 1; min-width: 0; color: var(--ink, #
|
|
62
|
+
flex: 1; min-width: 0; color: var(--uic-ink, #111317);
|
|
58
63
|
/* Wrap to the row's height; the last visible line ellipsizes. Rows at the
|
|
59
64
|
default height clamp to one line (classic sheet behavior); taller rows
|
|
60
65
|
show more lines. --shg-clamp is set per row from its height. */
|
|
@@ -63,10 +68,10 @@
|
|
|
63
68
|
overflow: hidden; white-space: normal; word-break: break-word;
|
|
64
69
|
line-height: 18px;
|
|
65
70
|
}
|
|
66
|
-
.shg-input { width: 100%; height: 100%; border: 2px solid var(--brand, #
|
|
71
|
+
.shg-input { width: 100%; height: 100%; border: 2px solid var(--uic-brand, #285AFF); padding: 0 8px;
|
|
67
72
|
font-size: 13px; font-family: inherit; outline: none; box-sizing: border-box; }
|
|
68
73
|
.shg-runcell {
|
|
69
|
-
border: none; background: transparent; color: var(--brand, #
|
|
74
|
+
border: none; background: transparent; color: var(--uic-brand, #285AFF); cursor: pointer;
|
|
70
75
|
font-size: 10px; opacity: 0; flex-shrink: 0; padding: 2px 4px;
|
|
71
76
|
}
|
|
72
77
|
.shg-cell:hover .shg-runcell { opacity: 1; }
|
|
@@ -75,7 +80,7 @@
|
|
|
75
80
|
.shg-cell-running { background: #EFF6FF; }
|
|
76
81
|
.shg-cell-failed { background: #FEF2F2; }
|
|
77
82
|
.shg-cell-skipped { opacity: .6; }
|
|
78
|
-
.shg-dot { width: 7px; height: 7px; border-radius: 999px; flex-shrink: 0; background: var(--mute-2, #
|
|
83
|
+
.shg-dot { width: 7px; height: 7px; border-radius: 999px; flex-shrink: 0; background: var(--uic-mute-2, #8E9199); }
|
|
79
84
|
.shg-dot-running { background: #2563EB; animation: shg-pulse 1s ease-in-out infinite; }
|
|
80
85
|
.shg-dot-done { background: #10B981; }
|
|
81
86
|
.shg-dot-failed { background: #EF4444; }
|
|
@@ -84,10 +89,10 @@
|
|
|
84
89
|
|
|
85
90
|
.shg-add-row {
|
|
86
91
|
align-self: flex-start; margin: 8px; padding: 6px 14px; border-radius: 8px;
|
|
87
|
-
border: 1px dashed var(--line, #
|
|
88
|
-
color: var(--mute, #
|
|
92
|
+
border: 1px dashed var(--uic-line, #DDDFE6); background: var(--uic-surface, #FFFFFF);
|
|
93
|
+
color: var(--uic-mute, #5B5D66); font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit;
|
|
89
94
|
}
|
|
90
|
-
.shg-add-row:hover { border-color: var(--brand, #
|
|
95
|
+
.shg-add-row:hover { border-color: var(--uic-brand, #285AFF); color: var(--uic-brand, #285AFF); }
|
|
91
96
|
|
|
92
97
|
/* ── Typed cell values ─────────────────────────────────────────────────── */
|
|
93
98
|
.shg-pill {
|
|
@@ -98,12 +103,12 @@
|
|
|
98
103
|
.shg-pills { display: flex; gap: 4px; overflow: hidden; flex: 1; min-width: 0;
|
|
99
104
|
flex-wrap: wrap; max-height: 100%; align-content: center; }
|
|
100
105
|
.shg-check {
|
|
101
|
-
width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--line, #
|
|
106
|
+
width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--uic-line, #DDDFE6);
|
|
102
107
|
display: inline-flex; align-items: center; justify-content: center;
|
|
103
|
-
font-size: 12px; font-weight: 700; color: #fff; background: var(--surface, #
|
|
108
|
+
font-size: 12px; font-weight: 700; color: #fff; background: var(--uic-surface, #FFFFFF);
|
|
104
109
|
}
|
|
105
|
-
.shg-check.on { background: var(--brand, #
|
|
106
|
-
.shg-link { color: var(--brand, #
|
|
110
|
+
.shg-check.on { background: var(--uic-brand, #285AFF); border-color: var(--uic-brand, #285AFF); }
|
|
111
|
+
.shg-link { color: var(--uic-brand, #285AFF); text-decoration: none; overflow: hidden;
|
|
107
112
|
text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
|
|
108
113
|
.shg-link:hover { text-decoration: underline; }
|
|
109
114
|
.shg-num { text-align: right; font-variant-numeric: tabular-nums; }
|
|
@@ -111,53 +116,53 @@
|
|
|
111
116
|
/* Select cell popover (click a pill to set) */
|
|
112
117
|
.shg-select-pop {
|
|
113
118
|
position: absolute; z-index: 30; margin-top: 2px; min-width: 160px;
|
|
114
|
-
background: var(--surface, #
|
|
119
|
+
background: var(--uic-surface, #FFFFFF); border: 1px solid var(--uic-line, #DDDFE6);
|
|
115
120
|
border-radius: 10px; box-shadow: 0 12px 28px -8px rgba(15,23,42,.18);
|
|
116
121
|
padding: 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
|
|
117
122
|
}
|
|
118
123
|
.shg-pill-btn { border: none; cursor: pointer; font-family: inherit; }
|
|
119
124
|
.shg-pill-btn:hover { filter: brightness(.95); }
|
|
120
125
|
.shg-pop-clear, .shg-pop-note {
|
|
121
|
-
font-size: 11.5px; color: var(--mute, #
|
|
126
|
+
font-size: 11.5px; color: var(--uic-mute, #5B5D66); border: none; background: transparent;
|
|
122
127
|
cursor: pointer; padding: 2px 4px; font-family: inherit;
|
|
123
128
|
}
|
|
124
|
-
.shg-pop-clear:hover { color: var(--ink, #
|
|
129
|
+
.shg-pop-clear:hover { color: var(--uic-ink, #111317); }
|
|
125
130
|
.shg-cell { position: relative; }
|
|
126
131
|
|
|
127
132
|
/* ── Column config menu ────────────────────────────────────────────────── */
|
|
128
133
|
.shg-colhdr { position: relative; }
|
|
129
134
|
.shg-colmenu-btn {
|
|
130
|
-
border: none; background: transparent; color: var(--mute-2, #
|
|
135
|
+
border: none; background: transparent; color: var(--uic-mute-2, #8E9199);
|
|
131
136
|
cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 6px; border-radius: 5px;
|
|
132
137
|
}
|
|
133
|
-
.shg-colmenu-btn:hover { background: var(--line-soft, #EFF1F4); color: var(--ink, #
|
|
138
|
+
.shg-colmenu-btn:hover { background: var(--uic-line-soft, #EFF1F4); color: var(--uic-ink, #111317); }
|
|
134
139
|
.shg-menu {
|
|
135
140
|
position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; width: 250px;
|
|
136
|
-
background: var(--surface, #
|
|
141
|
+
background: var(--uic-surface, #FFFFFF); border: 1px solid var(--uic-line, #DDDFE6);
|
|
137
142
|
border-radius: 12px; box-shadow: 0 16px 40px -10px rgba(15,23,42,.22);
|
|
138
143
|
padding: 12px; display: flex; flex-direction: column; gap: 10px;
|
|
139
144
|
font-weight: 400; text-align: left; cursor: default;
|
|
140
145
|
}
|
|
141
146
|
.shg-menu-lbl { display: flex; flex-direction: column; gap: 4px; font-size: 11px;
|
|
142
|
-
font-weight: 600; color: var(--mute, #
|
|
147
|
+
font-weight: 600; color: var(--uic-mute, #5B5D66); }
|
|
143
148
|
.shg-menu-input {
|
|
144
|
-
font-family: inherit; font-size: 12.5px; font-weight: 400; color: var(--ink, #
|
|
145
|
-
border: 1px solid var(--line, #
|
|
146
|
-
background: var(--surface, #
|
|
149
|
+
font-family: inherit; font-size: 12.5px; font-weight: 400; color: var(--uic-ink, #111317);
|
|
150
|
+
border: 1px solid var(--uic-line, #DDDFE6); border-radius: 7px; padding: 5px 8px;
|
|
151
|
+
background: var(--uic-surface, #FFFFFF); resize: vertical;
|
|
147
152
|
}
|
|
148
|
-
.shg-menu-input:focus { outline: none; border-color: var(--brand, #
|
|
153
|
+
.shg-menu-input:focus { outline: none; border-color: var(--uic-brand, #285AFF); }
|
|
149
154
|
.shg-menu-deps { display: flex; flex-direction: column; gap: 3px; margin-top: 3px;
|
|
150
155
|
max-height: 110px; overflow: auto; }
|
|
151
156
|
.shg-menu-dep { display: flex; align-items: center; gap: 6px; font-size: 12px;
|
|
152
|
-
font-weight: 400; color: var(--ink-2, #
|
|
157
|
+
font-weight: 400; color: var(--uic-ink-2, #3A3D45); cursor: pointer; }
|
|
153
158
|
.shg-menu-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
|
|
154
159
|
.shg-menu-del {
|
|
155
160
|
border: none; background: transparent; color: #B91C1C; font-size: 12px; font-weight: 600;
|
|
156
161
|
cursor: pointer; padding: 5px 8px; border-radius: 7px; font-family: inherit;
|
|
157
162
|
}
|
|
158
|
-
.shg-menu-del:hover { background: var(--
|
|
163
|
+
.shg-menu-del:hover { background: var(--uic-fail-bg, #FEF2F2); }
|
|
159
164
|
.shg-menu-apply {
|
|
160
|
-
border: none; background: var(--brand, #
|
|
165
|
+
border: none; background: var(--uic-brand, #285AFF); color: #fff; font-size: 12.5px;
|
|
161
166
|
font-weight: 600; cursor: pointer; padding: 6px 16px; border-radius: 8px; font-family: inherit;
|
|
162
167
|
}
|
|
163
168
|
.shg-menu-apply:hover { filter: brightness(1.06); }
|
|
@@ -168,32 +173,32 @@
|
|
|
168
173
|
position: absolute; top: 0; right: -3px; width: 7px; height: 100%;
|
|
169
174
|
cursor: col-resize; z-index: 5;
|
|
170
175
|
}
|
|
171
|
-
.shg-resize-col:hover { background: var(--brand-soft, #
|
|
176
|
+
.shg-resize-col:hover { background: var(--uic-brand-soft, #E1E9FF); opacity: .7; }
|
|
172
177
|
.shg-resize-row {
|
|
173
178
|
position: absolute; left: 0; bottom: 0; height: 6px; width: 100%;
|
|
174
179
|
cursor: row-resize; z-index: 5;
|
|
175
180
|
}
|
|
176
|
-
.shg-resize-row:hover { background: var(--brand-soft, #
|
|
181
|
+
.shg-resize-row:hover { background: var(--uic-brand-soft, #E1E9FF); opacity: .7; }
|
|
177
182
|
.shg-cell, .shg-rownum { overflow: hidden; }
|
|
178
183
|
|
|
179
184
|
/* ── Ghost add-row (Airtable-style, attached to the grid) ───────────────── */
|
|
180
185
|
.shg-ghost-row { cursor: pointer; }
|
|
181
|
-
.shg-ghost-row td { border-color: var(--line, #
|
|
182
|
-
.shg-ghost-num { color: var(--mute-2, #
|
|
183
|
-
.shg-ghost-cell { color: var(--mute-2, #
|
|
184
|
-
.shg-ghost-row:hover td { background: var(--brand-
|
|
185
|
-
.shg-ghost-row:hover .shg-ghost-num, .shg-ghost-row:hover .shg-ghost-cell { color: var(--brand, #
|
|
186
|
+
.shg-ghost-row td { border-color: var(--uic-line, #DDDFE6); background: var(--uic-surface, #FFFFFF); }
|
|
187
|
+
.shg-ghost-num { color: var(--uic-mute-2, #8E9199); font-size: 15px !important; }
|
|
188
|
+
.shg-ghost-cell { color: var(--uic-mute-2, #8E9199); font-size: 12.5px; padding: 0 10px !important; }
|
|
189
|
+
.shg-ghost-row:hover td { background: var(--uic-brand-faint, #EFF3FF); }
|
|
190
|
+
.shg-ghost-row:hover .shg-ghost-num, .shg-ghost-row:hover .shg-ghost-cell { color: var(--uic-brand, #285AFF); }
|
|
186
191
|
|
|
187
192
|
/* ── Resource refs ──────────────────────────────────────────────────────── */
|
|
188
193
|
.shg-refimg { max-height: 60px; max-width: 100%; border-radius: 6px; display: block; padding: 3px 0; }
|
|
189
194
|
.shg-refchip {
|
|
190
195
|
display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
|
|
191
196
|
padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
|
|
192
|
-
background: var(--surface-2, #
|
|
193
|
-
border: 1px solid var(--line, #
|
|
197
|
+
background: var(--uic-surface-2, #F7F8FA); color: var(--uic-ink-2, #3A3D45);
|
|
198
|
+
border: 1px solid var(--uic-line, #DDDFE6); white-space: nowrap;
|
|
194
199
|
}
|
|
195
200
|
.shg-refchip-btn { cursor: pointer; font-family: inherit; }
|
|
196
|
-
.shg-refchip-btn:hover { border-color: var(--brand, #
|
|
201
|
+
.shg-refchip-btn:hover { border-color: var(--uic-brand, #285AFF); color: var(--uic-brand, #285AFF); }
|
|
197
202
|
.shg-refchip-ic { font-size: 12px; }
|
|
198
203
|
.shg-refchip-name { overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
|
|
199
204
|
.shg-ref-pop { min-width: 220px; }
|
|
@@ -207,28 +212,28 @@
|
|
|
207
212
|
/* ── Bottom tab bar (Google-Sheets style; rendered by the host product) ── */
|
|
208
213
|
.shg-tabs {
|
|
209
214
|
display: flex; align-items: center; gap: 2px; flex-shrink: 0;
|
|
210
|
-
border-top: 1px solid var(--line, #
|
|
215
|
+
border-top: 1px solid var(--uic-line, #DDDFE6); background: var(--uic-surface-2, #F7F8FA);
|
|
211
216
|
padding: 0 8px; height: 38px; overflow-x: auto;
|
|
212
217
|
}
|
|
213
218
|
.shg-tab-add {
|
|
214
|
-
border: none; background: transparent; color: var(--mute, #
|
|
219
|
+
border: none; background: transparent; color: var(--uic-mute, #5B5D66);
|
|
215
220
|
font-size: 17px; cursor: pointer; padding: 2px 10px; border-radius: 7px; line-height: 1;
|
|
216
221
|
}
|
|
217
|
-
.shg-tab-add:hover { background: var(--line-soft, #EFF1F4); color: var(--ink, #
|
|
222
|
+
.shg-tab-add:hover { background: var(--uic-line-soft, #EFF1F4); color: var(--uic-ink, #111317); }
|
|
218
223
|
.shg-tab {
|
|
219
224
|
display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer;
|
|
220
|
-
background: transparent; color: var(--ink-2, #
|
|
225
|
+
background: transparent; color: var(--uic-ink-2, #3A3D45); font-size: 13px; font-weight: 600;
|
|
221
226
|
font-family: inherit; padding: 8px 14px; border-radius: 8px 8px 0 0; white-space: nowrap;
|
|
222
227
|
border-bottom: 2.5px solid transparent;
|
|
223
228
|
}
|
|
224
|
-
.shg-tab:hover { background: var(--line-soft, #EFF1F4); }
|
|
225
|
-
.shg-tab.active { color: var(--brand, #
|
|
226
|
-
border-bottom-color: var(--brand, #
|
|
229
|
+
.shg-tab:hover { background: var(--uic-line-soft, #EFF1F4); }
|
|
230
|
+
.shg-tab.active { color: var(--uic-brand, #285AFF); background: var(--uic-surface, #FFFFFF);
|
|
231
|
+
border-bottom-color: var(--uic-brand, #285AFF); }
|
|
227
232
|
.shg-tab-name-input {
|
|
228
|
-
font: inherit; font-weight: 600; width: 110px; border: 1px solid var(--brand, #
|
|
233
|
+
font: inherit; font-weight: 600; width: 110px; border: 1px solid var(--uic-brand, #285AFF);
|
|
229
234
|
border-radius: 5px; padding: 1px 6px;
|
|
230
235
|
}
|
|
231
|
-
.shg-tab-del { border: none; background: transparent; color: var(--mute-2, #
|
|
236
|
+
.shg-tab-del { border: none; background: transparent; color: var(--uic-mute-2, #8E9199);
|
|
232
237
|
cursor: pointer; font-size: 13px; padding: 0 2px; opacity: 0; }
|
|
233
238
|
.shg-tab:hover .shg-tab-del { opacity: 1; }
|
|
234
239
|
.shg-tab-del:hover { color: #B91C1C; }
|
|
@@ -238,10 +243,10 @@
|
|
|
238
243
|
.shg-rownum:active { cursor: grabbing; }
|
|
239
244
|
.shg-col[draggable="true"] { cursor: grab; }
|
|
240
245
|
.shg-dragging { opacity: .45; }
|
|
241
|
-
.shg-drop-before { box-shadow: inset 3px 0 0 var(--brand, #
|
|
242
|
-
.shg-drop-after { box-shadow: inset -3px 0 0 var(--brand, #
|
|
243
|
-
.shg-drop-above { box-shadow: inset 0 3px 0 var(--brand, #
|
|
244
|
-
.shg-drop-below { box-shadow: inset 0 -3px 0 var(--brand, #
|
|
246
|
+
.shg-drop-before { box-shadow: inset 3px 0 0 var(--uic-brand, #285AFF); }
|
|
247
|
+
.shg-drop-after { box-shadow: inset -3px 0 0 var(--uic-brand, #285AFF); }
|
|
248
|
+
.shg-drop-above { box-shadow: inset 0 3px 0 var(--uic-brand, #285AFF); }
|
|
249
|
+
.shg-drop-below { box-shadow: inset 0 -3px 0 var(--uic-brand, #285AFF); }
|
|
245
250
|
|
|
246
251
|
/* ── Presence: a peer is editing this cell ──────────────────────────────── */
|
|
247
252
|
.shg-cell-peer { position: relative; }
|
|
@@ -256,7 +261,7 @@
|
|
|
256
261
|
(Google-Docs style: same scale, slight overlap, white ring) ─────────── */
|
|
257
262
|
.sh-people { display: flex; align-items: center; }
|
|
258
263
|
.sh-people .sh-peer-dot {
|
|
259
|
-
border: 2px solid var(--surface, #
|
|
264
|
+
border: 2px solid var(--uic-surface, #FFFFFF); margin-right: -7px;
|
|
260
265
|
text-transform: uppercase; cursor: default; position: relative; z-index: 1;
|
|
261
266
|
}
|
|
262
267
|
.sh-people .av:last-child { margin-right: 0; position: relative; z-index: 2; }
|
package/styles/themes/dark.css
CHANGED
|
@@ -3,10 +3,13 @@
|
|
|
3
3
|
overriding individual tokens after this import. */
|
|
4
4
|
.uic-dark {
|
|
5
5
|
--uic-surface: #1E1F24;
|
|
6
|
+
--uic-surface-2: #26272D;
|
|
6
7
|
--uic-line: #33353D;
|
|
8
|
+
--uic-line-soft: #2A2C33;
|
|
7
9
|
--uic-ink: #F2F3F7;
|
|
8
10
|
--uic-ink-2: #C9CCD6;
|
|
9
11
|
--uic-mute: #8B8F9C;
|
|
12
|
+
--uic-mute-2: #6E7280;
|
|
10
13
|
--uic-brand: #7C9AFF;
|
|
11
14
|
--uic-brand-ink: #A3B8FF;
|
|
12
15
|
--uic-brand-soft: rgba(124, 154, 255, .32);
|
package/styles/themes/light.css
CHANGED
|
@@ -3,10 +3,13 @@
|
|
|
3
3
|
your own token layer (see styles/chat.css for the contract). */
|
|
4
4
|
.uic-light {
|
|
5
5
|
--uic-surface: #FFFFFF;
|
|
6
|
+
--uic-surface-2: #F7F8FA;
|
|
6
7
|
--uic-line: #DDDFE6;
|
|
8
|
+
--uic-line-soft: #EFF1F4;
|
|
7
9
|
--uic-ink: #111317;
|
|
8
10
|
--uic-ink-2: #3A3D45;
|
|
9
11
|
--uic-mute: #5B5D66;
|
|
12
|
+
--uic-mute-2: #8E9199;
|
|
10
13
|
--uic-brand: #285AFF;
|
|
11
14
|
--uic-brand-ink: #1641D8;
|
|
12
15
|
--uic-brand-soft: #E1E9FF;
|