@opentrace/components 0.1.1-pr.118.8 → 0.1.1-rc.11
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 +45 -0
- package/dist/opentrace-components.cjs +25 -0
- package/dist/opentrace-components.cjs.map +1 -1
- package/dist/opentrace-components.js +25 -0
- package/dist/opentrace-components.js.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/panels/GraphBadge.d.ts +4 -0
- package/dist/src/panels/GraphBadge.d.ts.map +1 -0
- package/dist/src/panels/index.d.ts +2 -1
- package/dist/src/panels/index.d.ts.map +1 -1
- package/dist/src/panels/types.d.ts +10 -0
- package/dist/src/panels/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/components.css
CHANGED
|
@@ -215,6 +215,51 @@
|
|
|
215
215
|
* limitations under the License.
|
|
216
216
|
*/
|
|
217
217
|
|
|
218
|
+
.graph-badge {
|
|
219
|
+
font-size: 0.75rem;
|
|
220
|
+
color: var(--muted-foreground);
|
|
221
|
+
background: color-mix(in oklch, var(--background) 85%, transparent);
|
|
222
|
+
backdrop-filter: blur(8px);
|
|
223
|
+
height: 36px;
|
|
224
|
+
display: inline-flex;
|
|
225
|
+
align-items: center;
|
|
226
|
+
gap: 5px;
|
|
227
|
+
padding: 0 14px;
|
|
228
|
+
border-radius: calc(var(--radius) + 2px);
|
|
229
|
+
border: 1px solid color-mix(in oklch, var(--border) 25%, transparent);
|
|
230
|
+
pointer-events: auto;
|
|
231
|
+
font-variant-numeric: tabular-nums;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.graph-badge-rendered {
|
|
235
|
+
font-weight: 600;
|
|
236
|
+
color: var(--foreground);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.graph-badge-total {
|
|
240
|
+
color: var(--muted-foreground);
|
|
241
|
+
font-weight: 400;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.graph-badge-sep {
|
|
245
|
+
margin: 0 3px;
|
|
246
|
+
}
|
|
247
|
+
/*
|
|
248
|
+
* Copyright 2026 OpenTrace Contributors
|
|
249
|
+
*
|
|
250
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
251
|
+
* you may not use this file except in compliance with the License.
|
|
252
|
+
* You may obtain a copy of the License at
|
|
253
|
+
*
|
|
254
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
255
|
+
*
|
|
256
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
257
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
258
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
259
|
+
* See the License for the specific language governing permissions and
|
|
260
|
+
* limitations under the License.
|
|
261
|
+
*/
|
|
262
|
+
|
|
218
263
|
/* Legend */
|
|
219
264
|
.legend {
|
|
220
265
|
position: absolute;
|
|
@@ -7675,6 +7675,30 @@ function FilterPanel({
|
|
|
7675
7675
|
] })
|
|
7676
7676
|
] });
|
|
7677
7677
|
}
|
|
7678
|
+
function GraphBadge({
|
|
7679
|
+
nodeCount,
|
|
7680
|
+
edgeCount,
|
|
7681
|
+
totalNodes,
|
|
7682
|
+
totalEdges
|
|
7683
|
+
}) {
|
|
7684
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "graph-badge", children: [
|
|
7685
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "graph-badge-rendered", children: nodeCount }),
|
|
7686
|
+
totalNodes != null && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "graph-badge-total", children: [
|
|
7687
|
+
"(",
|
|
7688
|
+
totalNodes,
|
|
7689
|
+
")"
|
|
7690
|
+
] }),
|
|
7691
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "nodes" }),
|
|
7692
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "graph-badge-sep", children: "·" }),
|
|
7693
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "graph-badge-rendered", children: edgeCount }),
|
|
7694
|
+
totalEdges != null && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "graph-badge-total", children: [
|
|
7695
|
+
"(",
|
|
7696
|
+
totalEdges,
|
|
7697
|
+
")"
|
|
7698
|
+
] }),
|
|
7699
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "edges" })
|
|
7700
|
+
] });
|
|
7701
|
+
}
|
|
7678
7702
|
const DEFAULT_MAX_VISIBLE = 5;
|
|
7679
7703
|
function GraphLegend({
|
|
7680
7704
|
items,
|
|
@@ -8662,6 +8686,7 @@ exports.FA2_ENABLED = FA2_ENABLED;
|
|
|
8662
8686
|
exports.FA2_GRAVITY = FA2_GRAVITY;
|
|
8663
8687
|
exports.FA2_SCALING_RATIO = FA2_SCALING_RATIO;
|
|
8664
8688
|
exports.FilterPanel = FilterPanel;
|
|
8689
|
+
exports.GraphBadge = GraphBadge;
|
|
8665
8690
|
exports.GraphCanvas = GraphCanvas;
|
|
8666
8691
|
exports.GraphLegend = GraphLegend;
|
|
8667
8692
|
exports.LABEL_COLOR = LABEL_COLOR;
|