@opentrace/components 0.1.1-pr.110.9 → 0.1.1-pr.118.26
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/components.css +533 -1
- package/dist/opentrace-components.cjs +1298 -36
- package/dist/opentrace-components.cjs.map +1 -1
- package/dist/opentrace-components.js +1300 -38
- package/dist/opentrace-components.js.map +1 -1
- package/dist/src/__tests__/setup.d.ts +2 -0
- package/dist/src/__tests__/setup.d.ts.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/panels/DiscoverPanel.d.ts +4 -0
- package/dist/src/panels/DiscoverPanel.d.ts.map +1 -0
- package/dist/src/panels/FilterPanel.d.ts +4 -0
- package/dist/src/panels/FilterPanel.d.ts.map +1 -0
- package/dist/src/panels/GraphLegend.d.ts +4 -0
- package/dist/src/panels/GraphLegend.d.ts.map +1 -0
- package/dist/src/panels/__tests__/DiscoverPanel.test.d.ts +2 -0
- package/dist/src/panels/__tests__/DiscoverPanel.test.d.ts.map +1 -0
- package/dist/src/panels/__tests__/FilterPanel.test.d.ts +2 -0
- package/dist/src/panels/__tests__/FilterPanel.test.d.ts.map +1 -0
- package/dist/src/panels/__tests__/GraphLegend.test.d.ts +2 -0
- package/dist/src/panels/__tests__/GraphLegend.test.d.ts.map +1 -0
- package/dist/src/panels/index.d.ts +5 -0
- package/dist/src/panels/index.d.ts.map +1 -0
- package/dist/src/panels/types.d.ts +85 -0
- package/dist/src/panels/types.d.ts.map +1 -0
- package/dist/src/utils.d.ts +1 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/package.json +12 -2
package/dist/components.css
CHANGED
|
@@ -1 +1,533 @@
|
|
|
1
|
-
:root{--sigma-background-color:#fff;--sigma-controls-background-color:#fff;--sigma-controls-background-color-hover:rgba(0,0,0,0.2);--sigma-controls-border-color:rgba(0,0,0,0.2);--sigma-controls-color:#000;--sigma-controls-zindex:100;--sigma-controls-margin:5px;--sigma-controls-size:30px;}div.react-sigma{height:100%;width:100%;position:relative;background:var(--sigma-background-color);}div.sigma-container{height:100%;width:100%;}.react-sigma-controls{position:absolute;z-index:var(--sigma-controls-zindex);border:2px solid var(--sigma-controls-border-color);border-radius:4px;color:var(--sigma-controls-color);background-color:var(--sigma-controls-background-color);}.react-sigma-controls.bottom-right{bottom:var(--sigma-controls-margin);right:var(--sigma-controls-margin);}.react-sigma-controls.bottom-left{bottom:var(--sigma-controls-margin);left:var(--sigma-controls-margin);}.react-sigma-controls.top-right{top:var(--sigma-controls-margin);right:var(--sigma-controls-margin);}.react-sigma-controls.top-left{top:var(--sigma-controls-margin);left:var(--sigma-controls-margin);}.react-sigma-controls:first-child{border-top-left-radius:2px;border-top-right-radius:2px;}.react-sigma-controls:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px;}.react-sigma-control{width:var(--sigma-controls-size);height:var(--sigma-controls-size);line-height:var(--sigma-controls-size);background-color:var(--sigma-controls-background-color);border-bottom:1px solid var(--sigma-controls-border-color);}.react-sigma-control:last-child{border-bottom:none;}.react-sigma-control>*{box-sizing:border-box;}.react-sigma-control>button{display:block;border:none;margin:0;padding:0;width:var(--sigma-controls-size);height:var(--sigma-controls-size);line-height:var(--sigma-controls-size);background-position:center;background-size:50%;background-repeat:no-repeat;background-color:var(--sigma-controls-background-color);clip:rect(0,0,0,0);}.react-sigma-control>button:hover{background-color:var(--sigma-controls-background-color-hover);}.react-sigma-search{background-color:var(--sigma-controls-background-color);}.react-sigma-search label{visibility:hidden;}.react-sigma-search input{color:var(--sigma-controls-color);background-color:var(--sigma-controls-background-color);font-size:1em;width:100%;margin:0;border:none;padding:var(--sigma-controls-margin);box-sizing:border-box;}
|
|
1
|
+
:root{--sigma-background-color:#fff;--sigma-controls-background-color:#fff;--sigma-controls-background-color-hover:rgba(0,0,0,0.2);--sigma-controls-border-color:rgba(0,0,0,0.2);--sigma-controls-color:#000;--sigma-controls-zindex:100;--sigma-controls-margin:5px;--sigma-controls-size:30px;}div.react-sigma{height:100%;width:100%;position:relative;background:var(--sigma-background-color);}div.sigma-container{height:100%;width:100%;}.react-sigma-controls{position:absolute;z-index:var(--sigma-controls-zindex);border:2px solid var(--sigma-controls-border-color);border-radius:4px;color:var(--sigma-controls-color);background-color:var(--sigma-controls-background-color);}.react-sigma-controls.bottom-right{bottom:var(--sigma-controls-margin);right:var(--sigma-controls-margin);}.react-sigma-controls.bottom-left{bottom:var(--sigma-controls-margin);left:var(--sigma-controls-margin);}.react-sigma-controls.top-right{top:var(--sigma-controls-margin);right:var(--sigma-controls-margin);}.react-sigma-controls.top-left{top:var(--sigma-controls-margin);left:var(--sigma-controls-margin);}.react-sigma-controls:first-child{border-top-left-radius:2px;border-top-right-radius:2px;}.react-sigma-controls:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px;}.react-sigma-control{width:var(--sigma-controls-size);height:var(--sigma-controls-size);line-height:var(--sigma-controls-size);background-color:var(--sigma-controls-background-color);border-bottom:1px solid var(--sigma-controls-border-color);}.react-sigma-control:last-child{border-bottom:none;}.react-sigma-control>*{box-sizing:border-box;}.react-sigma-control>button{display:block;border:none;margin:0;padding:0;width:var(--sigma-controls-size);height:var(--sigma-controls-size);line-height:var(--sigma-controls-size);background-position:center;background-size:50%;background-repeat:no-repeat;background-color:var(--sigma-controls-background-color);clip:rect(0,0,0,0);}.react-sigma-control>button:hover{background-color:var(--sigma-controls-background-color-hover);}.react-sigma-search{background-color:var(--sigma-controls-background-color);}.react-sigma-search label{visibility:hidden;}.react-sigma-search input{color:var(--sigma-controls-color);background-color:var(--sigma-controls-background-color);font-size:1em;width:100%;margin:0;border:none;padding:var(--sigma-controls-margin);box-sizing:border-box;}/*
|
|
2
|
+
* Copyright 2026 OpenTrace Contributors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/* Filter Panel — content-only (positioning handled by SidePanel) */
|
|
18
|
+
.filter-panel {
|
|
19
|
+
overflow-y: auto;
|
|
20
|
+
padding: 0 0 80px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.filter-section {
|
|
24
|
+
padding: 0 14px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.filter-section + .filter-section {
|
|
28
|
+
margin-top: 12px;
|
|
29
|
+
padding-top: 12px;
|
|
30
|
+
border-top: 1px solid color-mix(in oklch, var(--border) 25%, transparent);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.filter-section-header {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: space-between;
|
|
37
|
+
margin-bottom: 8px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.filter-section-title {
|
|
41
|
+
font-size: 0.7rem;
|
|
42
|
+
font-weight: 600;
|
|
43
|
+
text-transform: uppercase;
|
|
44
|
+
letter-spacing: 0.05em;
|
|
45
|
+
color: var(--muted-foreground);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.filter-toggle-all {
|
|
49
|
+
background: none;
|
|
50
|
+
border: none;
|
|
51
|
+
font-size: 0.65rem;
|
|
52
|
+
color: var(--primary);
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
padding: 2px 4px;
|
|
55
|
+
border-radius: var(--radius);
|
|
56
|
+
transition: background 0.1s;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.filter-toggle-all:hover {
|
|
60
|
+
background: color-mix(in oklch, var(--primary) 10%, transparent);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.filter-list {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
gap: 1px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.filter-item {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
gap: 8px;
|
|
73
|
+
padding: 4px 6px;
|
|
74
|
+
border-radius: var(--radius);
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
transition: background 0.1s;
|
|
77
|
+
font-size: 0.78rem;
|
|
78
|
+
color: var(--foreground);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.filter-item:hover {
|
|
82
|
+
background: color-mix(in oklch, var(--accent) 40%, transparent);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.filter-item.hidden {
|
|
86
|
+
color: var(--muted-foreground);
|
|
87
|
+
opacity: 0.6;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.filter-item.partial {
|
|
91
|
+
opacity: 0.8;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.filter-item.partial .filter-dot {
|
|
95
|
+
opacity: 0.45;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.filter-item input[type='checkbox'] {
|
|
99
|
+
display: none;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.filter-dot {
|
|
103
|
+
width: 8px;
|
|
104
|
+
height: 8px;
|
|
105
|
+
border-radius: 50%;
|
|
106
|
+
flex-shrink: 0;
|
|
107
|
+
transition: background-color 0.15s;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.filter-line {
|
|
111
|
+
width: 14px;
|
|
112
|
+
height: 3px;
|
|
113
|
+
border-radius: 1.5px;
|
|
114
|
+
flex-shrink: 0;
|
|
115
|
+
transition: background-color 0.15s;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.filter-type-name {
|
|
119
|
+
flex: 1;
|
|
120
|
+
min-width: 0;
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
text-overflow: ellipsis;
|
|
123
|
+
white-space: nowrap;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.filter-count {
|
|
127
|
+
font-size: 0.7rem;
|
|
128
|
+
color: var(--muted-foreground);
|
|
129
|
+
font-variant-numeric: tabular-nums;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.filter-empty {
|
|
133
|
+
font-size: 0.75rem;
|
|
134
|
+
color: var(--muted-foreground);
|
|
135
|
+
padding: 4px 6px;
|
|
136
|
+
font-style: italic;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* Sub-type filter styles */
|
|
140
|
+
|
|
141
|
+
.filter-type-group {
|
|
142
|
+
display: flex;
|
|
143
|
+
flex-direction: column;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* Shared expand/collapse button — used by FilterPanel and DiscoverPanel */
|
|
147
|
+
.filter-expand-btn {
|
|
148
|
+
background: none;
|
|
149
|
+
border: none;
|
|
150
|
+
padding: 0;
|
|
151
|
+
cursor: pointer;
|
|
152
|
+
color: var(--muted-foreground);
|
|
153
|
+
display: flex;
|
|
154
|
+
align-items: center;
|
|
155
|
+
justify-content: center;
|
|
156
|
+
width: 14px;
|
|
157
|
+
height: 14px;
|
|
158
|
+
flex-shrink: 0;
|
|
159
|
+
border-radius: 2px;
|
|
160
|
+
transition:
|
|
161
|
+
color 0.15s,
|
|
162
|
+
background 0.1s;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.filter-expand-btn:hover {
|
|
166
|
+
color: var(--foreground);
|
|
167
|
+
background: color-mix(in oklch, var(--accent) 40%, transparent);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.filter-expand-icon {
|
|
171
|
+
transition: transform 0.15s ease;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.filter-expand-icon--open {
|
|
175
|
+
transform: rotate(90deg);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.filter-expand-spacer {
|
|
179
|
+
width: 14px;
|
|
180
|
+
flex-shrink: 0;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.filter-subtypes {
|
|
184
|
+
display: flex;
|
|
185
|
+
flex-direction: column;
|
|
186
|
+
gap: 1px;
|
|
187
|
+
padding-left: 22px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.filter-subitem {
|
|
191
|
+
font-size: 0.72rem !important;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.filter-dot--small {
|
|
195
|
+
width: 6px !important;
|
|
196
|
+
height: 6px !important;
|
|
197
|
+
}
|
|
198
|
+
/*
|
|
199
|
+
* Copyright 2026 OpenTrace Contributors
|
|
200
|
+
*
|
|
201
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
202
|
+
* you may not use this file except in compliance with the License.
|
|
203
|
+
* You may obtain a copy of the License at
|
|
204
|
+
*
|
|
205
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
206
|
+
*
|
|
207
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
208
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
209
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
210
|
+
* See the License for the specific language governing permissions and
|
|
211
|
+
* limitations under the License.
|
|
212
|
+
*/
|
|
213
|
+
|
|
214
|
+
/* Legend */
|
|
215
|
+
.legend {
|
|
216
|
+
position: absolute;
|
|
217
|
+
bottom: 20px;
|
|
218
|
+
left: 24px;
|
|
219
|
+
z-index: 10;
|
|
220
|
+
display: flex;
|
|
221
|
+
flex-wrap: wrap;
|
|
222
|
+
align-items: center;
|
|
223
|
+
gap: 16px;
|
|
224
|
+
background: color-mix(in oklch, var(--background) 85%, transparent);
|
|
225
|
+
backdrop-filter: blur(8px);
|
|
226
|
+
padding: 10px 16px;
|
|
227
|
+
border-radius: calc(var(--radius) + 2px);
|
|
228
|
+
border: 1px solid color-mix(in oklch, var(--border) 25%, transparent);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.legend-item {
|
|
232
|
+
display: flex;
|
|
233
|
+
align-items: center;
|
|
234
|
+
gap: 6px;
|
|
235
|
+
font-size: 0.75rem;
|
|
236
|
+
color: var(--muted-foreground);
|
|
237
|
+
text-transform: capitalize;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.legend-dot {
|
|
241
|
+
width: 8px;
|
|
242
|
+
height: 8px;
|
|
243
|
+
border-radius: 50%;
|
|
244
|
+
flex-shrink: 0;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.legend-count {
|
|
248
|
+
font-weight: 600;
|
|
249
|
+
font-variant-numeric: tabular-nums;
|
|
250
|
+
color: var(--foreground);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.legend-divider {
|
|
254
|
+
width: 1px;
|
|
255
|
+
height: 16px;
|
|
256
|
+
background: var(--border);
|
|
257
|
+
flex-shrink: 0;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.legend-line {
|
|
261
|
+
width: 14px;
|
|
262
|
+
height: 3px;
|
|
263
|
+
border-radius: 1.5px;
|
|
264
|
+
flex-shrink: 0;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.legend-more-btn {
|
|
268
|
+
background: none;
|
|
269
|
+
border: 1px solid var(--border);
|
|
270
|
+
border-radius: var(--radius);
|
|
271
|
+
color: var(--muted-foreground);
|
|
272
|
+
font-size: 0.7rem;
|
|
273
|
+
padding: 2px 8px;
|
|
274
|
+
cursor: pointer;
|
|
275
|
+
pointer-events: auto;
|
|
276
|
+
white-space: nowrap;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.legend-more-btn:hover {
|
|
280
|
+
color: var(--foreground);
|
|
281
|
+
border-color: var(--foreground);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.legend-popover {
|
|
285
|
+
position: absolute;
|
|
286
|
+
bottom: calc(100% + 8px);
|
|
287
|
+
left: 0;
|
|
288
|
+
z-index: 20;
|
|
289
|
+
display: flex;
|
|
290
|
+
flex-direction: column;
|
|
291
|
+
gap: 6px;
|
|
292
|
+
padding: 12px 16px;
|
|
293
|
+
background: var(--card);
|
|
294
|
+
border: 1px solid var(--border);
|
|
295
|
+
border-radius: calc(var(--radius) + 2px);
|
|
296
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
|
|
297
|
+
max-height: 320px;
|
|
298
|
+
overflow-y: auto;
|
|
299
|
+
pointer-events: auto;
|
|
300
|
+
}
|
|
301
|
+
/*
|
|
302
|
+
* Copyright 2026 OpenTrace Contributors
|
|
303
|
+
*
|
|
304
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
305
|
+
* you may not use this file except in compliance with the License.
|
|
306
|
+
* You may obtain a copy of the License at
|
|
307
|
+
*
|
|
308
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
309
|
+
*
|
|
310
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
311
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
312
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
313
|
+
* See the License for the specific language governing permissions and
|
|
314
|
+
* limitations under the License.
|
|
315
|
+
*/
|
|
316
|
+
|
|
317
|
+
/* Discover Panel — directory tree view */
|
|
318
|
+
|
|
319
|
+
.discover-panel {
|
|
320
|
+
display: flex;
|
|
321
|
+
flex-direction: column;
|
|
322
|
+
height: 100%;
|
|
323
|
+
min-height: 0;
|
|
324
|
+
padding: 8px 0 0;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/* Filter bar */
|
|
328
|
+
.discover-filter-bar {
|
|
329
|
+
display: flex;
|
|
330
|
+
align-items: center;
|
|
331
|
+
padding: 0 10px 8px;
|
|
332
|
+
gap: 4px;
|
|
333
|
+
position: relative;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.discover-filter-input {
|
|
337
|
+
flex: 1;
|
|
338
|
+
background: color-mix(in oklch, var(--accent) 40%, transparent);
|
|
339
|
+
border: 1px solid color-mix(in oklch, var(--border) 30%, transparent);
|
|
340
|
+
border-radius: var(--radius);
|
|
341
|
+
padding: 5px 28px 5px 10px;
|
|
342
|
+
font-size: 0.78rem;
|
|
343
|
+
color: var(--foreground);
|
|
344
|
+
outline: none;
|
|
345
|
+
transition: border-color 0.15s;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.discover-filter-input::placeholder {
|
|
349
|
+
color: var(--muted-foreground);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.discover-filter-input:focus {
|
|
353
|
+
border-color: var(--primary);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.discover-filter-clear {
|
|
357
|
+
position: absolute;
|
|
358
|
+
right: 14px;
|
|
359
|
+
background: none;
|
|
360
|
+
border: none;
|
|
361
|
+
color: var(--muted-foreground);
|
|
362
|
+
font-size: 1rem;
|
|
363
|
+
cursor: pointer;
|
|
364
|
+
padding: 0 4px;
|
|
365
|
+
line-height: 1;
|
|
366
|
+
border-radius: var(--radius);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.discover-filter-clear:hover {
|
|
370
|
+
color: var(--foreground);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.discover-panel-empty {
|
|
374
|
+
padding: 24px 16px;
|
|
375
|
+
color: var(--muted-foreground);
|
|
376
|
+
font-size: 0.82rem;
|
|
377
|
+
text-align: center;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.discover-tree-row {
|
|
381
|
+
display: flex;
|
|
382
|
+
align-items: center;
|
|
383
|
+
gap: 6px;
|
|
384
|
+
padding-top: 3px;
|
|
385
|
+
padding-bottom: 3px;
|
|
386
|
+
padding-right: 8px;
|
|
387
|
+
min-height: 28px;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.discover-tree-row:hover {
|
|
391
|
+
background: color-mix(in oklch, var(--accent) 30%, transparent);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.discover-tree-row--selected {
|
|
395
|
+
background: color-mix(in oklch, var(--primary) 15%, transparent);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.discover-tree-row--selected .discover-tree-name {
|
|
399
|
+
color: var(--primary);
|
|
400
|
+
font-weight: 600;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/* Hop-distance highlight — intensity set via --hop-intensity CSS variable */
|
|
404
|
+
.discover-tree-row--hop {
|
|
405
|
+
background: color-mix(
|
|
406
|
+
in oklch,
|
|
407
|
+
var(--primary) calc(var(--hop-intensity) * 18%),
|
|
408
|
+
transparent
|
|
409
|
+
);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.discover-tree-row--hop .discover-tree-name {
|
|
413
|
+
color: color-mix(
|
|
414
|
+
in oklch,
|
|
415
|
+
var(--primary) calc(var(--hop-intensity) * 100%),
|
|
416
|
+
var(--foreground)
|
|
417
|
+
);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.discover-tree-row--faded {
|
|
421
|
+
opacity: 0.35;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.discover-tree-row--faded:hover {
|
|
425
|
+
opacity: 0.7;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/* Graph-only toggle */
|
|
429
|
+
.discover-graph-toggle {
|
|
430
|
+
padding: 0 10px 8px;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.discover-graph-toggle-label {
|
|
434
|
+
display: flex;
|
|
435
|
+
align-items: center;
|
|
436
|
+
gap: 8px;
|
|
437
|
+
font-size: 0.72rem;
|
|
438
|
+
color: var(--muted-foreground);
|
|
439
|
+
cursor: pointer;
|
|
440
|
+
user-select: none;
|
|
441
|
+
transition: color 0.15s;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.discover-graph-toggle-label:hover {
|
|
445
|
+
color: var(--foreground);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
/* Hide native checkbox */
|
|
449
|
+
.discover-graph-toggle-label input {
|
|
450
|
+
position: absolute;
|
|
451
|
+
opacity: 0;
|
|
452
|
+
width: 0;
|
|
453
|
+
height: 0;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/* Pill track */
|
|
457
|
+
.discover-toggle-track {
|
|
458
|
+
position: relative;
|
|
459
|
+
width: 28px;
|
|
460
|
+
height: 16px;
|
|
461
|
+
border-radius: 8px;
|
|
462
|
+
background: color-mix(in oklch, var(--muted) 60%, transparent);
|
|
463
|
+
border: 1px solid color-mix(in oklch, var(--border) 30%, transparent);
|
|
464
|
+
flex-shrink: 0;
|
|
465
|
+
transition:
|
|
466
|
+
background 0.2s,
|
|
467
|
+
border-color 0.2s;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/* Pill thumb */
|
|
471
|
+
.discover-toggle-track::after {
|
|
472
|
+
content: '';
|
|
473
|
+
position: absolute;
|
|
474
|
+
top: 2px;
|
|
475
|
+
left: 2px;
|
|
476
|
+
width: 10px;
|
|
477
|
+
height: 10px;
|
|
478
|
+
border-radius: 50%;
|
|
479
|
+
background: var(--muted-foreground);
|
|
480
|
+
transition:
|
|
481
|
+
transform 0.2s,
|
|
482
|
+
background 0.2s;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/* Checked state */
|
|
486
|
+
.discover-graph-toggle-label input:checked + .discover-toggle-track {
|
|
487
|
+
background: color-mix(in oklch, var(--primary) 25%, transparent);
|
|
488
|
+
border-color: color-mix(in oklch, var(--primary) 40%, transparent);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.discover-graph-toggle-label input:checked + .discover-toggle-track::after {
|
|
492
|
+
transform: translateX(12px);
|
|
493
|
+
background: var(--primary);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
/* Active label text when checked */
|
|
497
|
+
.discover-graph-toggle-label:has(input:checked) {
|
|
498
|
+
color: var(--foreground);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.discover-tree-name {
|
|
502
|
+
background: none;
|
|
503
|
+
border: none;
|
|
504
|
+
color: var(--foreground);
|
|
505
|
+
font-size: 0.8rem;
|
|
506
|
+
cursor: pointer;
|
|
507
|
+
padding: 0;
|
|
508
|
+
text-align: left;
|
|
509
|
+
white-space: nowrap;
|
|
510
|
+
overflow: hidden;
|
|
511
|
+
text-overflow: ellipsis;
|
|
512
|
+
flex: 1;
|
|
513
|
+
min-width: 0;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.discover-tree-name:hover {
|
|
517
|
+
color: var(--primary);
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.discover-tree-type {
|
|
521
|
+
font-size: 0.65rem;
|
|
522
|
+
color: var(--muted-foreground);
|
|
523
|
+
flex-shrink: 0;
|
|
524
|
+
opacity: 0.7;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.discover-tree-placeholder {
|
|
528
|
+
font-size: 0.78rem;
|
|
529
|
+
color: var(--muted-foreground);
|
|
530
|
+
padding-top: 3px;
|
|
531
|
+
padding-bottom: 3px;
|
|
532
|
+
font-style: italic;
|
|
533
|
+
}
|