@industry-theme/file-city-panel 0.2.2 → 0.2.4
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/CodeCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CodeCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/CodeCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAsBjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAYpD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAuuCD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAEvD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EA8BxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Legend.d.ts","sourceRoot":"","sources":["../../../src/panels/components/Legend.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC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C,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,iBAAiB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,oBAAoB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA2bxC,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -106,7 +106,7 @@ const createLucideIcon = (iconName, iconNode) => {
|
|
|
106
106
|
* This source code is licensed under the ISC license.
|
|
107
107
|
* See the LICENSE file in the root directory of this source tree.
|
|
108
108
|
*/
|
|
109
|
-
const __iconNode$
|
|
109
|
+
const __iconNode$6 = [
|
|
110
110
|
[
|
|
111
111
|
"path",
|
|
112
112
|
{
|
|
@@ -115,14 +115,14 @@ const __iconNode$7 = [
|
|
|
115
115
|
}
|
|
116
116
|
]
|
|
117
117
|
];
|
|
118
|
-
const Activity = createLucideIcon("activity", __iconNode$
|
|
118
|
+
const Activity = createLucideIcon("activity", __iconNode$6);
|
|
119
119
|
/**
|
|
120
120
|
* @license lucide-react v0.552.0 - ISC
|
|
121
121
|
*
|
|
122
122
|
* This source code is licensed under the ISC license.
|
|
123
123
|
* See the LICENSE file in the root directory of this source tree.
|
|
124
124
|
*/
|
|
125
|
-
const __iconNode$
|
|
125
|
+
const __iconNode$5 = [
|
|
126
126
|
["path", { d: "M10 12h4", key: "a56b0p" }],
|
|
127
127
|
["path", { d: "M10 8h4", key: "1sr2af" }],
|
|
128
128
|
["path", { d: "M14 21v-3a2 2 0 0 0-4 0v3", key: "1rgiei" }],
|
|
@@ -135,35 +135,35 @@ const __iconNode$6 = [
|
|
|
135
135
|
],
|
|
136
136
|
["path", { d: "M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16", key: "16ra0t" }]
|
|
137
137
|
];
|
|
138
|
-
const Building2 = createLucideIcon("building-2", __iconNode$
|
|
138
|
+
const Building2 = createLucideIcon("building-2", __iconNode$5);
|
|
139
139
|
/**
|
|
140
140
|
* @license lucide-react v0.552.0 - ISC
|
|
141
141
|
*
|
|
142
142
|
* This source code is licensed under the ISC license.
|
|
143
143
|
* See the LICENSE file in the root directory of this source tree.
|
|
144
144
|
*/
|
|
145
|
-
const __iconNode$
|
|
145
|
+
const __iconNode$4 = [
|
|
146
146
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
147
147
|
["path", { d: "M18 17V9", key: "2bz60n" }],
|
|
148
148
|
["path", { d: "M13 17V5", key: "1frdt8" }],
|
|
149
149
|
["path", { d: "M8 17v-3", key: "17ska0" }]
|
|
150
150
|
];
|
|
151
|
-
const ChartColumn = createLucideIcon("chart-column", __iconNode$
|
|
151
|
+
const ChartColumn = createLucideIcon("chart-column", __iconNode$4);
|
|
152
152
|
/**
|
|
153
153
|
* @license lucide-react v0.552.0 - ISC
|
|
154
154
|
*
|
|
155
155
|
* This source code is licensed under the ISC license.
|
|
156
156
|
* See the LICENSE file in the root directory of this source tree.
|
|
157
157
|
*/
|
|
158
|
-
const __iconNode$
|
|
159
|
-
const ChevronDown = createLucideIcon("chevron-down", __iconNode$
|
|
158
|
+
const __iconNode$3 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
159
|
+
const ChevronDown = createLucideIcon("chevron-down", __iconNode$3);
|
|
160
160
|
/**
|
|
161
161
|
* @license lucide-react v0.552.0 - ISC
|
|
162
162
|
*
|
|
163
163
|
* This source code is licensed under the ISC license.
|
|
164
164
|
* See the LICENSE file in the root directory of this source tree.
|
|
165
165
|
*/
|
|
166
|
-
const __iconNode$
|
|
166
|
+
const __iconNode$2 = [
|
|
167
167
|
[
|
|
168
168
|
"path",
|
|
169
169
|
{
|
|
@@ -173,14 +173,14 @@ const __iconNode$3 = [
|
|
|
173
173
|
],
|
|
174
174
|
["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }]
|
|
175
175
|
];
|
|
176
|
-
const File = createLucideIcon("file", __iconNode$
|
|
176
|
+
const File = createLucideIcon("file", __iconNode$2);
|
|
177
177
|
/**
|
|
178
178
|
* @license lucide-react v0.552.0 - ISC
|
|
179
179
|
*
|
|
180
180
|
* This source code is licensed under the ISC license.
|
|
181
181
|
* See the LICENSE file in the root directory of this source tree.
|
|
182
182
|
*/
|
|
183
|
-
const __iconNode$
|
|
183
|
+
const __iconNode$1 = [
|
|
184
184
|
[
|
|
185
185
|
"path",
|
|
186
186
|
{
|
|
@@ -189,22 +189,7 @@ const __iconNode$2 = [
|
|
|
189
189
|
}
|
|
190
190
|
]
|
|
191
191
|
];
|
|
192
|
-
const Folder = createLucideIcon("folder", __iconNode$
|
|
193
|
-
/**
|
|
194
|
-
* @license lucide-react v0.552.0 - ISC
|
|
195
|
-
*
|
|
196
|
-
* This source code is licensed under the ISC license.
|
|
197
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
-
*/
|
|
199
|
-
const __iconNode$1 = [
|
|
200
|
-
["path", { d: "M3 5h.01", key: "18ugdj" }],
|
|
201
|
-
["path", { d: "M3 12h.01", key: "nlz23k" }],
|
|
202
|
-
["path", { d: "M3 19h.01", key: "noohij" }],
|
|
203
|
-
["path", { d: "M8 5h13", key: "1pao27" }],
|
|
204
|
-
["path", { d: "M8 12h13", key: "1za7za" }],
|
|
205
|
-
["path", { d: "M8 19h13", key: "m83p4d" }]
|
|
206
|
-
];
|
|
207
|
-
const List = createLucideIcon("list", __iconNode$1);
|
|
192
|
+
const Folder = createLucideIcon("folder", __iconNode$1);
|
|
208
193
|
/**
|
|
209
194
|
* @license lucide-react v0.552.0 - ISC
|
|
210
195
|
*
|
|
@@ -2223,7 +2208,8 @@ const Legend = ({
|
|
|
2223
2208
|
display: "flex",
|
|
2224
2209
|
alignItems: "center",
|
|
2225
2210
|
gap: "6px",
|
|
2226
|
-
fontSize:
|
|
2211
|
+
fontSize: theme2.fontSizes[0],
|
|
2212
|
+
fontFamily: theme2.fonts.body,
|
|
2227
2213
|
fontWeight: 600,
|
|
2228
2214
|
color: theme2.colors.textSecondary,
|
|
2229
2215
|
textTransform: "uppercase",
|
|
@@ -2281,7 +2267,8 @@ const Legend = ({
|
|
|
2281
2267
|
"span",
|
|
2282
2268
|
{
|
|
2283
2269
|
style: {
|
|
2284
|
-
fontSize:
|
|
2270
|
+
fontSize: theme2.fontSizes[0],
|
|
2271
|
+
fontFamily: theme2.fonts.body,
|
|
2285
2272
|
color: theme2.colors.text,
|
|
2286
2273
|
whiteSpace: "nowrap",
|
|
2287
2274
|
overflow: "hidden",
|
|
@@ -2296,7 +2283,8 @@ const Legend = ({
|
|
|
2296
2283
|
"span",
|
|
2297
2284
|
{
|
|
2298
2285
|
style: {
|
|
2299
|
-
fontSize:
|
|
2286
|
+
fontSize: theme2.fontSizes[0],
|
|
2287
|
+
fontFamily: theme2.fonts.body,
|
|
2300
2288
|
color: theme2.colors.textSecondary,
|
|
2301
2289
|
flexShrink: 0
|
|
2302
2290
|
},
|
|
@@ -2331,7 +2319,8 @@ const Legend = ({
|
|
|
2331
2319
|
display: "flex",
|
|
2332
2320
|
alignItems: "center",
|
|
2333
2321
|
gap: "6px",
|
|
2334
|
-
fontSize:
|
|
2322
|
+
fontSize: theme2.fontSizes[0],
|
|
2323
|
+
fontFamily: theme2.fonts.body,
|
|
2335
2324
|
fontWeight: 600,
|
|
2336
2325
|
color: theme2.colors.primary,
|
|
2337
2326
|
textTransform: "uppercase",
|
|
@@ -2352,7 +2341,8 @@ const Legend = ({
|
|
|
2352
2341
|
alignItems: "center",
|
|
2353
2342
|
gap: "4px",
|
|
2354
2343
|
padding: "2px 6px",
|
|
2355
|
-
fontSize:
|
|
2344
|
+
fontSize: theme2.fontSizes[0],
|
|
2345
|
+
fontFamily: theme2.fonts.body,
|
|
2356
2346
|
color: theme2.colors.textSecondary,
|
|
2357
2347
|
backgroundColor: "transparent",
|
|
2358
2348
|
border: `1px solid ${theme2.colors.border}`,
|
|
@@ -2416,7 +2406,8 @@ const Legend = ({
|
|
|
2416
2406
|
"span",
|
|
2417
2407
|
{
|
|
2418
2408
|
style: {
|
|
2419
|
-
fontSize:
|
|
2409
|
+
fontSize: theme2.fontSizes[0],
|
|
2410
|
+
fontFamily: theme2.fonts.body,
|
|
2420
2411
|
color: theme2.colors.text,
|
|
2421
2412
|
whiteSpace: "nowrap",
|
|
2422
2413
|
overflow: "hidden",
|
|
@@ -2431,7 +2422,8 @@ const Legend = ({
|
|
|
2431
2422
|
"span",
|
|
2432
2423
|
{
|
|
2433
2424
|
style: {
|
|
2434
|
-
fontSize:
|
|
2425
|
+
fontSize: theme2.fontSizes[0],
|
|
2426
|
+
fontFamily: theme2.fonts.body,
|
|
2435
2427
|
color: theme2.colors.textSecondary,
|
|
2436
2428
|
flexShrink: 0
|
|
2437
2429
|
},
|
|
@@ -2450,7 +2442,8 @@ const Legend = ({
|
|
|
2450
2442
|
"div",
|
|
2451
2443
|
{
|
|
2452
2444
|
style: {
|
|
2453
|
-
fontSize:
|
|
2445
|
+
fontSize: theme2.fontSizes[0],
|
|
2446
|
+
fontFamily: theme2.fonts.body,
|
|
2454
2447
|
fontWeight: 600,
|
|
2455
2448
|
color: theme2.colors.textSecondary,
|
|
2456
2449
|
textTransform: "uppercase",
|
|
@@ -2505,7 +2498,8 @@ const Legend = ({
|
|
|
2505
2498
|
"span",
|
|
2506
2499
|
{
|
|
2507
2500
|
style: {
|
|
2508
|
-
fontSize:
|
|
2501
|
+
fontSize: theme2.fontSizes[0],
|
|
2502
|
+
fontFamily: theme2.fonts.body,
|
|
2509
2503
|
color: theme2.colors.text,
|
|
2510
2504
|
whiteSpace: "nowrap",
|
|
2511
2505
|
overflow: "hidden",
|
|
@@ -2520,7 +2514,8 @@ const Legend = ({
|
|
|
2520
2514
|
"span",
|
|
2521
2515
|
{
|
|
2522
2516
|
style: {
|
|
2523
|
-
fontSize:
|
|
2517
|
+
fontSize: theme2.fontSizes[0],
|
|
2518
|
+
fontFamily: theme2.fonts.body,
|
|
2524
2519
|
color: theme2.colors.textSecondary,
|
|
2525
2520
|
flexShrink: 0
|
|
2526
2521
|
},
|
|
@@ -2539,7 +2534,8 @@ const Legend = ({
|
|
|
2539
2534
|
"div",
|
|
2540
2535
|
{
|
|
2541
2536
|
style: {
|
|
2542
|
-
fontSize:
|
|
2537
|
+
fontSize: theme2.fontSizes[0],
|
|
2538
|
+
fontFamily: theme2.fonts.body,
|
|
2543
2539
|
fontWeight: 600,
|
|
2544
2540
|
color: theme2.colors.textSecondary,
|
|
2545
2541
|
textTransform: "uppercase",
|
|
@@ -2595,7 +2591,8 @@ const Legend = ({
|
|
|
2595
2591
|
"span",
|
|
2596
2592
|
{
|
|
2597
2593
|
style: {
|
|
2598
|
-
fontSize:
|
|
2594
|
+
fontSize: theme2.fontSizes[0],
|
|
2595
|
+
fontFamily: theme2.fonts.body,
|
|
2599
2596
|
color: theme2.colors.text,
|
|
2600
2597
|
whiteSpace: "nowrap",
|
|
2601
2598
|
overflow: "hidden",
|
|
@@ -2610,7 +2607,8 @@ const Legend = ({
|
|
|
2610
2607
|
"span",
|
|
2611
2608
|
{
|
|
2612
2609
|
style: {
|
|
2613
|
-
fontSize:
|
|
2610
|
+
fontSize: theme2.fontSizes[0],
|
|
2611
|
+
fontFamily: theme2.fonts.body,
|
|
2614
2612
|
color: theme2.colors.textSecondary,
|
|
2615
2613
|
flexShrink: 0
|
|
2616
2614
|
},
|
|
@@ -14618,6 +14616,7 @@ const CodeCityPanelContent = ({
|
|
|
14618
14616
|
resizeObserver.observe(container);
|
|
14619
14617
|
return () => resizeObserver.disconnect();
|
|
14620
14618
|
}, []);
|
|
14619
|
+
const headerCompact = containerSize ? containerSize.width < 400 : false;
|
|
14621
14620
|
const LEGEND_MIN_SIZE = 200;
|
|
14622
14621
|
const layout = useMemo(() => {
|
|
14623
14622
|
if (!containerSize) {
|
|
@@ -14682,9 +14681,16 @@ const CodeCityPanelContent = ({
|
|
|
14682
14681
|
const payload = event.payload;
|
|
14683
14682
|
setSelectedPackagePath((payload == null ? void 0 : payload.packagePath) ?? null);
|
|
14684
14683
|
});
|
|
14684
|
+
const cleanupColorMode = events.on("quality:colorMode:select", (event) => {
|
|
14685
|
+
const payload = event.payload;
|
|
14686
|
+
if (payload == null ? void 0 : payload.colorMode) {
|
|
14687
|
+
setColorMode(payload.colorMode);
|
|
14688
|
+
}
|
|
14689
|
+
});
|
|
14685
14690
|
return () => {
|
|
14686
14691
|
cleanupHover == null ? void 0 : cleanupHover();
|
|
14687
14692
|
cleanupSelect == null ? void 0 : cleanupSelect();
|
|
14693
|
+
cleanupColorMode == null ? void 0 : cleanupColorMode();
|
|
14688
14694
|
};
|
|
14689
14695
|
}, [events]);
|
|
14690
14696
|
const availableColorModes = useMemo(() => {
|
|
@@ -15185,26 +15191,40 @@ const CodeCityPanelContent = ({
|
|
|
15185
15191
|
padding: "0 16px",
|
|
15186
15192
|
height: "40px",
|
|
15187
15193
|
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
15188
|
-
backgroundColor: theme2.colors.
|
|
15194
|
+
backgroundColor: theme2.colors.background,
|
|
15189
15195
|
flexShrink: 0,
|
|
15190
15196
|
gap: "12px"
|
|
15191
15197
|
},
|
|
15192
15198
|
children: [
|
|
15193
|
-
/* @__PURE__ */ jsx("div", { style: { display: "flex", alignItems: "center", gap: "12px" }, children: computedTreeStats && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15194
|
-
/* @__PURE__ */ jsxs(
|
|
15195
|
-
|
|
15196
|
-
|
|
15197
|
-
|
|
15198
|
-
|
|
15199
|
-
|
|
15200
|
-
|
|
15201
|
-
|
|
15202
|
-
|
|
15203
|
-
|
|
15204
|
-
|
|
15205
|
-
|
|
15206
|
-
|
|
15207
|
-
|
|
15199
|
+
/* @__PURE__ */ jsx("div", { style: { display: "flex", alignItems: "center", gap: "12px", minWidth: 0, flexShrink: 1 }, children: computedTreeStats && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15200
|
+
/* @__PURE__ */ jsxs(
|
|
15201
|
+
"div",
|
|
15202
|
+
{
|
|
15203
|
+
style: { display: "flex", alignItems: "center", gap: "4px", whiteSpace: "nowrap" },
|
|
15204
|
+
title: `${computedTreeStats.fileCount.toLocaleString()} files`,
|
|
15205
|
+
children: [
|
|
15206
|
+
/* @__PURE__ */ jsx(File, { size: 14, style: { color: theme2.colors.textSecondary, flexShrink: 0 } }),
|
|
15207
|
+
/* @__PURE__ */ jsxs("span", { style: { fontSize: theme2.fontSizes[1], fontFamily: theme2.fonts.body, color: theme2.colors.text }, children: [
|
|
15208
|
+
computedTreeStats.fileCount.toLocaleString(),
|
|
15209
|
+
!headerCompact && " files"
|
|
15210
|
+
] })
|
|
15211
|
+
]
|
|
15212
|
+
}
|
|
15213
|
+
),
|
|
15214
|
+
/* @__PURE__ */ jsxs(
|
|
15215
|
+
"div",
|
|
15216
|
+
{
|
|
15217
|
+
style: { display: "flex", alignItems: "center", gap: "4px", whiteSpace: "nowrap" },
|
|
15218
|
+
title: `${computedTreeStats.directoryCount.toLocaleString()} folders`,
|
|
15219
|
+
children: [
|
|
15220
|
+
/* @__PURE__ */ jsx(Folder, { size: 14, style: { color: theme2.colors.textSecondary, flexShrink: 0 } }),
|
|
15221
|
+
/* @__PURE__ */ jsxs("span", { style: { fontSize: theme2.fontSizes[1], fontFamily: theme2.fonts.body, color: theme2.colors.text }, children: [
|
|
15222
|
+
computedTreeStats.directoryCount.toLocaleString(),
|
|
15223
|
+
!headerCompact && " folders"
|
|
15224
|
+
] })
|
|
15225
|
+
]
|
|
15226
|
+
}
|
|
15227
|
+
)
|
|
15208
15228
|
] }) }),
|
|
15209
15229
|
availableColorModes.length > 1 && /* @__PURE__ */ jsxs(
|
|
15210
15230
|
"div",
|
|
@@ -15221,7 +15241,8 @@ const CodeCityPanelContent = ({
|
|
|
15221
15241
|
alignItems: "center",
|
|
15222
15242
|
gap: "6px",
|
|
15223
15243
|
padding: "4px 10px",
|
|
15224
|
-
fontSize:
|
|
15244
|
+
fontSize: theme2.fontSizes[0],
|
|
15245
|
+
fontFamily: theme2.fonts.body,
|
|
15225
15246
|
color: theme2.colors.text,
|
|
15226
15247
|
backgroundColor: theme2.colors.background,
|
|
15227
15248
|
border: `1px solid ${theme2.colors.border}`,
|
|
@@ -15276,7 +15297,8 @@ const CodeCityPanelContent = ({
|
|
|
15276
15297
|
alignItems: "flex-start",
|
|
15277
15298
|
width: "100%",
|
|
15278
15299
|
padding: "8px 12px",
|
|
15279
|
-
fontSize:
|
|
15300
|
+
fontSize: theme2.fontSizes[0],
|
|
15301
|
+
fontFamily: theme2.fonts.body,
|
|
15280
15302
|
color: mode.id === colorMode ? theme2.colors.primary : theme2.colors.text,
|
|
15281
15303
|
backgroundColor: mode.id === colorMode ? theme2.colors.primary + "15" : "transparent",
|
|
15282
15304
|
border: "none",
|
|
@@ -15300,7 +15322,8 @@ const CodeCityPanelContent = ({
|
|
|
15300
15322
|
"span",
|
|
15301
15323
|
{
|
|
15302
15324
|
style: {
|
|
15303
|
-
fontSize:
|
|
15325
|
+
fontSize: theme2.fontSizes[0],
|
|
15326
|
+
fontFamily: theme2.fonts.body,
|
|
15304
15327
|
color: theme2.colors.textSecondary,
|
|
15305
15328
|
marginTop: "2px"
|
|
15306
15329
|
},
|
|
@@ -15316,28 +15339,28 @@ const CodeCityPanelContent = ({
|
|
|
15316
15339
|
]
|
|
15317
15340
|
}
|
|
15318
15341
|
),
|
|
15319
|
-
(legendFileTypes.length > 0 || legendGitStatus.length > 0 || legendQualityMetrics.length > 0) && /* @__PURE__ */
|
|
15342
|
+
(legendFileTypes.length > 0 || legendGitStatus.length > 0 || legendQualityMetrics.length > 0) && /* @__PURE__ */ jsx(
|
|
15320
15343
|
"button",
|
|
15321
15344
|
{
|
|
15322
15345
|
onClick: () => setShowLegend(!showLegend),
|
|
15323
15346
|
style: {
|
|
15324
|
-
fontSize:
|
|
15347
|
+
fontSize: theme2.fontSizes[0],
|
|
15348
|
+
fontFamily: theme2.fonts.body,
|
|
15325
15349
|
color: showLegend ? theme2.colors.primary : theme2.colors.textSecondary,
|
|
15326
15350
|
backgroundColor: showLegend ? theme2.colors.primary + "22" : theme2.colors.background,
|
|
15327
|
-
padding: "
|
|
15328
|
-
|
|
15351
|
+
padding: "0 16px",
|
|
15352
|
+
marginRight: "-16px",
|
|
15353
|
+
borderRadius: 0,
|
|
15329
15354
|
display: "flex",
|
|
15330
15355
|
alignItems: "center",
|
|
15356
|
+
alignSelf: "stretch",
|
|
15331
15357
|
gap: "4px",
|
|
15332
|
-
border:
|
|
15358
|
+
border: "none",
|
|
15333
15359
|
cursor: "pointer",
|
|
15334
15360
|
transition: "all 0.2s ease"
|
|
15335
15361
|
},
|
|
15336
15362
|
title: showLegend ? "Hide legend" : "Show legend",
|
|
15337
|
-
children:
|
|
15338
|
-
/* @__PURE__ */ jsx(List, { size: 12 }),
|
|
15339
|
-
"Legend"
|
|
15340
|
-
]
|
|
15363
|
+
children: "Legend"
|
|
15341
15364
|
}
|
|
15342
15365
|
)
|
|
15343
15366
|
]
|
|
@@ -15422,7 +15445,8 @@ const CodeCityPanelContent = ({
|
|
|
15422
15445
|
display: "flex",
|
|
15423
15446
|
alignItems: "center",
|
|
15424
15447
|
padding: "0 12px",
|
|
15425
|
-
fontSize:
|
|
15448
|
+
fontSize: theme2.fontSizes[0],
|
|
15449
|
+
fontFamily: theme2.fonts.body,
|
|
15426
15450
|
color: theme2.colors.text,
|
|
15427
15451
|
gap: "12px",
|
|
15428
15452
|
flexShrink: 0
|
|
@@ -15444,8 +15468,9 @@ const CodeCityPanelContent = ({
|
|
|
15444
15468
|
{
|
|
15445
15469
|
style: {
|
|
15446
15470
|
fontWeight: 600,
|
|
15471
|
+
fontFamily: theme2.fonts.monospace,
|
|
15447
15472
|
color: theme2.colors.primary,
|
|
15448
|
-
fontSize:
|
|
15473
|
+
fontSize: theme2.fontSizes[1],
|
|
15449
15474
|
overflow: "hidden",
|
|
15450
15475
|
textOverflow: "ellipsis",
|
|
15451
15476
|
whiteSpace: "nowrap"
|
|
@@ -15457,8 +15482,9 @@ const CodeCityPanelContent = ({
|
|
|
15457
15482
|
"div",
|
|
15458
15483
|
{
|
|
15459
15484
|
style: {
|
|
15485
|
+
fontFamily: theme2.fonts.monospace,
|
|
15460
15486
|
color: theme2.colors.textSecondary,
|
|
15461
|
-
fontSize:
|
|
15487
|
+
fontSize: theme2.fontSizes[0],
|
|
15462
15488
|
overflow: "hidden",
|
|
15463
15489
|
textOverflow: "ellipsis",
|
|
15464
15490
|
whiteSpace: "nowrap"
|
|
@@ -15473,8 +15499,9 @@ const CodeCityPanelContent = ({
|
|
|
15473
15499
|
"div",
|
|
15474
15500
|
{
|
|
15475
15501
|
style: {
|
|
15502
|
+
fontFamily: theme2.fonts.body,
|
|
15476
15503
|
color: theme2.colors.textSecondary,
|
|
15477
|
-
fontSize:
|
|
15504
|
+
fontSize: theme2.fontSizes[0],
|
|
15478
15505
|
flexShrink: 0
|
|
15479
15506
|
},
|
|
15480
15507
|
children: [
|
|
@@ -15495,7 +15522,8 @@ const CodeCityPanelContent = ({
|
|
|
15495
15522
|
backgroundColor: theme2.colors.backgroundLight,
|
|
15496
15523
|
borderRadius: "4px",
|
|
15497
15524
|
border: `1px solid ${theme2.colors.border}`,
|
|
15498
|
-
fontSize:
|
|
15525
|
+
fontSize: theme2.fontSizes[0],
|
|
15526
|
+
fontFamily: theme2.fonts.body,
|
|
15499
15527
|
fontWeight: 500,
|
|
15500
15528
|
color: hoveredFileMetric.value === null ? theme2.colors.textSecondary : theme2.colors.text,
|
|
15501
15529
|
flexShrink: 0
|
|
@@ -15513,7 +15541,8 @@ const CodeCityPanelContent = ({
|
|
|
15513
15541
|
alignItems: "center",
|
|
15514
15542
|
gap: "8px",
|
|
15515
15543
|
color: theme2.colors.text,
|
|
15516
|
-
fontSize:
|
|
15544
|
+
fontSize: theme2.fontSizes[0],
|
|
15545
|
+
fontFamily: theme2.fonts.body
|
|
15517
15546
|
},
|
|
15518
15547
|
children: [
|
|
15519
15548
|
/* @__PURE__ */ jsxs(
|
|
@@ -15549,7 +15578,8 @@ const CodeCityPanelContent = ({
|
|
|
15549
15578
|
style: {
|
|
15550
15579
|
color: theme2.colors.textSecondary,
|
|
15551
15580
|
fontStyle: "italic",
|
|
15552
|
-
fontSize:
|
|
15581
|
+
fontSize: theme2.fontSizes[0],
|
|
15582
|
+
fontFamily: theme2.fonts.body
|
|
15553
15583
|
},
|
|
15554
15584
|
children: "Hover over files and directories to see details • Click to open"
|
|
15555
15585
|
}
|