@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;AA2MF;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAkE/C,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"}
@@ -1256,10 +1256,8 @@ const PullRequestCard = ({ pr, theme: theme2, onClick }) => {
1256
1256
  {
1257
1257
  style: {
1258
1258
  display: "flex",
1259
- alignItems: "center",
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
- pr.draft && /* @__PURE__ */ jsx(
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[0],
1284
+ fontSize: theme2.fontSizes[2],
1291
1285
  fontWeight: 600,
1292
- textTransform: "uppercase",
1293
- letterSpacing: "0.02em",
1294
- flexShrink: 0
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
- ((_c = pr.user) == null ? void 0 : _c.login) ?? "unknown"
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
- pr.body && /* @__PURE__ */ jsxs(Fragment, { children: [
1405
- /* @__PURE__ */ jsxs(
1406
- "button",
1407
- {
1408
- type: "button",
1409
- onClick: (e) => {
1410
- e.stopPropagation();
1411
- setIsExpanded(!isExpanded);
1412
- },
1413
- style: {
1414
- display: "inline-flex",
1415
- alignItems: "center",
1416
- gap: "4px",
1417
- padding: 0,
1418
- border: "none",
1419
- backgroundColor: "transparent",
1420
- color: theme2.colors.textSecondary,
1421
- fontFamily: theme2.fonts.body,
1422
- fontSize: theme2.fontSizes[0],
1423
- cursor: "pointer"
1424
- },
1425
- children: [
1426
- isExpanded ? /* @__PURE__ */ jsx(ChevronUp, { size: 14 }) : /* @__PURE__ */ jsx(ChevronDown, { size: 14 }),
1427
- isExpanded ? "Collapse" : "Expand"
1428
- ]
1429
- }
1430
- ),
1431
- isExpanded && /* @__PURE__ */ jsx(
1432
- "div",
1433
- {
1434
- style: {
1435
- color: theme2.colors.textSecondary,
1436
- fontFamily: theme2.fonts.body,
1437
- fontSize: theme2.fontSizes[1],
1438
- lineHeight: 1.5,
1439
- wordBreak: "break-word"
1440
- },
1441
- children: pr.body
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
  );