@industry-theme/git-panels 0.1.4 → 0.1.5
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":"GitPullRequestsPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitPullRequestsPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAa5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAMpD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyS9D,CAAC;
|
|
1
|
+
{"version":3,"file":"GitPullRequestsPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitPullRequestsPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAa5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAMpD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyS9D,CAAC;AA0MF;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAkE/C,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -1256,10 +1256,8 @@ const PullRequestCard = ({ pr, theme: theme2, onClick }) => {
|
|
|
1256
1256
|
{
|
|
1257
1257
|
style: {
|
|
1258
1258
|
display: "flex",
|
|
1259
|
-
alignItems: "
|
|
1260
|
-
gap: "8px"
|
|
1261
|
-
minWidth: 0,
|
|
1262
|
-
overflow: "hidden"
|
|
1259
|
+
alignItems: "baseline",
|
|
1260
|
+
gap: "8px"
|
|
1263
1261
|
},
|
|
1264
1262
|
children: [
|
|
1265
1263
|
/* @__PURE__ */ jsxs(
|
|
@@ -1278,64 +1276,23 @@ const PullRequestCard = ({ pr, theme: theme2, onClick }) => {
|
|
|
1278
1276
|
]
|
|
1279
1277
|
}
|
|
1280
1278
|
),
|
|
1281
|
-
|
|
1279
|
+
/* @__PURE__ */ jsx(
|
|
1282
1280
|
"span",
|
|
1283
1281
|
{
|
|
1284
1282
|
style: {
|
|
1285
|
-
padding: "4px 10px",
|
|
1286
|
-
borderRadius: "999px",
|
|
1287
|
-
backgroundColor: theme2.colors.background,
|
|
1288
|
-
color: theme2.colors.textSecondary,
|
|
1289
1283
|
fontFamily: theme2.fonts.heading,
|
|
1290
|
-
fontSize: theme2.fontSizes[
|
|
1284
|
+
fontSize: theme2.fontSizes[2],
|
|
1291
1285
|
fontWeight: 600,
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
},
|
|
1296
|
-
children: "Draft"
|
|
1297
|
-
}
|
|
1298
|
-
),
|
|
1299
|
-
/* @__PURE__ */ jsxs(
|
|
1300
|
-
"span",
|
|
1301
|
-
{
|
|
1302
|
-
style: {
|
|
1303
|
-
display: "inline-flex",
|
|
1304
|
-
alignItems: "center",
|
|
1305
|
-
gap: "6px",
|
|
1306
|
-
color: theme2.colors.textSecondary,
|
|
1307
|
-
fontFamily: theme2.fonts.monospace,
|
|
1308
|
-
fontSize: theme2.fontSizes[0],
|
|
1309
|
-
overflow: "hidden",
|
|
1310
|
-
textOverflow: "ellipsis",
|
|
1311
|
-
whiteSpace: "nowrap",
|
|
1312
|
-
minWidth: 0
|
|
1286
|
+
color: theme2.colors.text,
|
|
1287
|
+
lineHeight: 1.3,
|
|
1288
|
+
wordBreak: "break-word"
|
|
1313
1289
|
},
|
|
1314
|
-
children:
|
|
1315
|
-
/* @__PURE__ */ jsx(GitBranch, { size: 14, style: { flexShrink: 0 } }),
|
|
1316
|
-
((_a = pr.head) == null ? void 0 : _a.ref) ?? "unknown",
|
|
1317
|
-
" → ",
|
|
1318
|
-
((_b = pr.base) == null ? void 0 : _b.ref) ?? "unknown"
|
|
1319
|
-
]
|
|
1290
|
+
children: pr.title
|
|
1320
1291
|
}
|
|
1321
1292
|
)
|
|
1322
1293
|
]
|
|
1323
1294
|
}
|
|
1324
1295
|
),
|
|
1325
|
-
/* @__PURE__ */ jsx(
|
|
1326
|
-
"div",
|
|
1327
|
-
{
|
|
1328
|
-
style: {
|
|
1329
|
-
fontFamily: theme2.fonts.heading,
|
|
1330
|
-
fontSize: theme2.fontSizes[2],
|
|
1331
|
-
fontWeight: 600,
|
|
1332
|
-
color: theme2.colors.text,
|
|
1333
|
-
lineHeight: 1.3,
|
|
1334
|
-
wordBreak: "break-word"
|
|
1335
|
-
},
|
|
1336
|
-
children: pr.title
|
|
1337
|
-
}
|
|
1338
|
-
),
|
|
1339
1296
|
/* @__PURE__ */ jsxs(
|
|
1340
1297
|
"div",
|
|
1341
1298
|
{
|
|
@@ -1349,9 +1306,26 @@ const PullRequestCard = ({ pr, theme: theme2, onClick }) => {
|
|
|
1349
1306
|
fontSize: theme2.fontSizes[0]
|
|
1350
1307
|
},
|
|
1351
1308
|
children: [
|
|
1309
|
+
pr.draft && /* @__PURE__ */ jsx(
|
|
1310
|
+
"span",
|
|
1311
|
+
{
|
|
1312
|
+
style: {
|
|
1313
|
+
padding: "4px 10px",
|
|
1314
|
+
borderRadius: "999px",
|
|
1315
|
+
backgroundColor: theme2.colors.background,
|
|
1316
|
+
color: theme2.colors.textSecondary,
|
|
1317
|
+
fontFamily: theme2.fonts.heading,
|
|
1318
|
+
fontSize: theme2.fontSizes[0],
|
|
1319
|
+
fontWeight: 600,
|
|
1320
|
+
textTransform: "uppercase",
|
|
1321
|
+
letterSpacing: "0.02em"
|
|
1322
|
+
},
|
|
1323
|
+
children: "Draft"
|
|
1324
|
+
}
|
|
1325
|
+
),
|
|
1352
1326
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
1353
1327
|
"by ",
|
|
1354
|
-
((
|
|
1328
|
+
((_a = pr.user) == null ? void 0 : _a.login) ?? "unknown"
|
|
1355
1329
|
] }),
|
|
1356
1330
|
/* @__PURE__ */ jsxs(
|
|
1357
1331
|
"span",
|
|
@@ -1401,47 +1375,76 @@ const PullRequestCard = ({ pr, theme: theme2, onClick }) => {
|
|
|
1401
1375
|
]
|
|
1402
1376
|
}
|
|
1403
1377
|
),
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
{
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1378
|
+
/* @__PURE__ */ jsxs(
|
|
1379
|
+
"button",
|
|
1380
|
+
{
|
|
1381
|
+
type: "button",
|
|
1382
|
+
onClick: (e) => {
|
|
1383
|
+
e.stopPropagation();
|
|
1384
|
+
setIsExpanded(!isExpanded);
|
|
1385
|
+
},
|
|
1386
|
+
style: {
|
|
1387
|
+
display: "inline-flex",
|
|
1388
|
+
alignItems: "center",
|
|
1389
|
+
gap: "4px",
|
|
1390
|
+
padding: 0,
|
|
1391
|
+
border: "none",
|
|
1392
|
+
backgroundColor: "transparent",
|
|
1393
|
+
color: theme2.colors.textSecondary,
|
|
1394
|
+
fontFamily: theme2.fonts.body,
|
|
1395
|
+
fontSize: theme2.fontSizes[0],
|
|
1396
|
+
cursor: "pointer"
|
|
1397
|
+
},
|
|
1398
|
+
children: [
|
|
1399
|
+
isExpanded ? /* @__PURE__ */ jsx(ChevronUp, { size: 14 }) : /* @__PURE__ */ jsx(ChevronDown, { size: 14 }),
|
|
1400
|
+
isExpanded ? "Collapse" : "Expand"
|
|
1401
|
+
]
|
|
1402
|
+
}
|
|
1403
|
+
),
|
|
1404
|
+
isExpanded && /* @__PURE__ */ jsxs(
|
|
1405
|
+
"div",
|
|
1406
|
+
{
|
|
1407
|
+
style: {
|
|
1408
|
+
display: "flex",
|
|
1409
|
+
flexDirection: "column",
|
|
1410
|
+
gap: "10px"
|
|
1411
|
+
},
|
|
1412
|
+
children: [
|
|
1413
|
+
/* @__PURE__ */ jsxs(
|
|
1414
|
+
"span",
|
|
1415
|
+
{
|
|
1416
|
+
style: {
|
|
1417
|
+
display: "inline-flex",
|
|
1418
|
+
alignItems: "center",
|
|
1419
|
+
gap: "6px",
|
|
1420
|
+
color: theme2.colors.textSecondary,
|
|
1421
|
+
fontFamily: theme2.fonts.monospace,
|
|
1422
|
+
fontSize: theme2.fontSizes[0]
|
|
1423
|
+
},
|
|
1424
|
+
children: [
|
|
1425
|
+
/* @__PURE__ */ jsx(GitBranch, { size: 14 }),
|
|
1426
|
+
((_b = pr.head) == null ? void 0 : _b.ref) ?? "unknown",
|
|
1427
|
+
" → ",
|
|
1428
|
+
((_c = pr.base) == null ? void 0 : _c.ref) ?? "unknown"
|
|
1429
|
+
]
|
|
1430
|
+
}
|
|
1431
|
+
),
|
|
1432
|
+
pr.body && /* @__PURE__ */ jsx(
|
|
1433
|
+
"div",
|
|
1434
|
+
{
|
|
1435
|
+
style: {
|
|
1436
|
+
color: theme2.colors.textSecondary,
|
|
1437
|
+
fontFamily: theme2.fonts.body,
|
|
1438
|
+
fontSize: theme2.fontSizes[1],
|
|
1439
|
+
lineHeight: 1.5,
|
|
1440
|
+
wordBreak: "break-word"
|
|
1441
|
+
},
|
|
1442
|
+
children: pr.body
|
|
1443
|
+
}
|
|
1444
|
+
)
|
|
1445
|
+
]
|
|
1446
|
+
}
|
|
1447
|
+
)
|
|
1445
1448
|
]
|
|
1446
1449
|
}
|
|
1447
1450
|
);
|