@industry-theme/git-panels 0.1.6 → 0.1.7

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":"GitPullRequestDetailPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitPullRequestDetailPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAcnD,OAAO,KAAK,EAAE,mBAAmB,EAAmB,MAAM,UAAU,CAAC;AAqYrE;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAMnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,KAAK,CAAC,EAyDpD,CAAC"}
1
+ {"version":3,"file":"GitPullRequestDetailPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitPullRequestDetailPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAYnD,OAAO,KAAK,EAAE,mBAAmB,EAAmB,MAAM,UAAU,CAAC;AA0XrE;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAMnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,KAAK,CAAC,EAyDpD,CAAC"}
@@ -101,17 +101,6 @@ const createLucideIcon = (iconName, iconNode) => {
101
101
  Component.displayName = toPascalCase(iconName);
102
102
  return Component;
103
103
  };
104
- /**
105
- * @license lucide-react v0.552.0 - ISC
106
- *
107
- * This source code is licensed under the ISC license.
108
- * See the LICENSE file in the root directory of this source tree.
109
- */
110
- const __iconNode$l = [
111
- ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
112
- ["path", { d: "M19 12H5", key: "x3x0zl" }]
113
- ];
114
- const ArrowLeft = createLucideIcon("arrow-left", __iconNode$l);
115
104
  /**
116
105
  * @license lucide-react v0.552.0 - ISC
117
106
  *
@@ -365,10 +354,10 @@ const RefreshCcw = createLucideIcon("refresh-ccw", __iconNode$1);
365
354
  * See the LICENSE file in the root directory of this source tree.
366
355
  */
367
356
  const __iconNode = [
368
- ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
369
- ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
357
+ ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
358
+ ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
370
359
  ];
371
- const User = createLucideIcon("user", __iconNode);
360
+ const X = createLucideIcon("x", __iconNode);
372
361
  var terminalTheme$1 = {
373
362
  space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
374
363
  fonts: {
@@ -45585,28 +45574,6 @@ const GitPullRequestDetailPanelContent = ({
45585
45574
  boxSizing: "border-box"
45586
45575
  },
45587
45576
  children: [
45588
- /* @__PURE__ */ jsx(
45589
- "button",
45590
- {
45591
- type: "button",
45592
- onClick: handleBack,
45593
- title: "Back to list",
45594
- style: {
45595
- display: "inline-flex",
45596
- alignItems: "center",
45597
- justifyContent: "center",
45598
- width: "28px",
45599
- height: "28px",
45600
- padding: 0,
45601
- border: `1px solid ${theme2.colors.border}`,
45602
- borderRadius: "6px",
45603
- backgroundColor: theme2.colors.background,
45604
- color: theme2.colors.textSecondary,
45605
- cursor: "pointer"
45606
- },
45607
- children: /* @__PURE__ */ jsx(ArrowLeft, { size: 16 })
45608
- }
45609
- ),
45610
45577
  /* @__PURE__ */ jsxs(
45611
45578
  "span",
45612
45579
  {
@@ -45659,6 +45626,25 @@ const GitPullRequestDetailPanelContent = ({
45659
45626
  ]
45660
45627
  }
45661
45628
  ),
45629
+ /* @__PURE__ */ jsxs(
45630
+ "span",
45631
+ {
45632
+ style: {
45633
+ display: "inline-flex",
45634
+ alignItems: "center",
45635
+ gap: "6px",
45636
+ color: theme2.colors.textSecondary,
45637
+ fontFamily: theme2.fonts.monospace,
45638
+ fontSize: theme2.fontSizes[0]
45639
+ },
45640
+ children: [
45641
+ /* @__PURE__ */ jsx(GitBranch, { size: 14 }),
45642
+ ((_a = selectedPR.base) == null ? void 0 : _a.ref) ?? "?",
45643
+ " ← ",
45644
+ ((_b = selectedPR.head) == null ? void 0 : _b.ref) ?? "?"
45645
+ ]
45646
+ }
45647
+ ),
45662
45648
  /* @__PURE__ */ jsx("div", { style: { flex: 1 } }),
45663
45649
  /* @__PURE__ */ jsx(
45664
45650
  "a",
@@ -45682,6 +45668,28 @@ const GitPullRequestDetailPanelContent = ({
45682
45668
  },
45683
45669
  children: /* @__PURE__ */ jsx(ExternalLink, { size: 14 })
45684
45670
  }
45671
+ ),
45672
+ /* @__PURE__ */ jsx(
45673
+ "button",
45674
+ {
45675
+ type: "button",
45676
+ onClick: handleBack,
45677
+ title: "Close",
45678
+ style: {
45679
+ display: "inline-flex",
45680
+ alignItems: "center",
45681
+ justifyContent: "center",
45682
+ width: "28px",
45683
+ height: "28px",
45684
+ padding: 0,
45685
+ border: `1px solid ${theme2.colors.border}`,
45686
+ borderRadius: "6px",
45687
+ backgroundColor: theme2.colors.background,
45688
+ color: theme2.colors.textSecondary,
45689
+ cursor: "pointer"
45690
+ },
45691
+ children: /* @__PURE__ */ jsx(X, { size: 16 })
45692
+ }
45685
45693
  )
45686
45694
  ]
45687
45695
  }
@@ -45710,13 +45718,12 @@ const GitPullRequestDetailPanelContent = ({
45710
45718
  children: selectedPR.title
45711
45719
  }
45712
45720
  ),
45713
- /* @__PURE__ */ jsxs(
45721
+ (totalComments > 0 || !isOpen) && /* @__PURE__ */ jsxs(
45714
45722
  "div",
45715
45723
  {
45716
45724
  style: {
45717
- display: "grid",
45718
- gridTemplateColumns: "repeat(auto-fit, minmax(180px, 1fr))",
45719
- gap: "12px",
45725
+ display: "flex",
45726
+ gap: "16px",
45720
45727
  marginBottom: "20px",
45721
45728
  padding: "12px",
45722
45729
  backgroundColor: theme2.colors.backgroundSecondary,
@@ -45724,34 +45731,6 @@ const GitPullRequestDetailPanelContent = ({
45724
45731
  border: `1px solid ${theme2.colors.border}`
45725
45732
  },
45726
45733
  children: [
45727
- selectedPR.user && /* @__PURE__ */ jsx(
45728
- MetadataRow,
45729
- {
45730
- icon: /* @__PURE__ */ jsx(User, { size: 14 }),
45731
- label: "Author",
45732
- value: selectedPR.user.login,
45733
- theme: theme2
45734
- }
45735
- ),
45736
- /* @__PURE__ */ jsx(
45737
- MetadataRow,
45738
- {
45739
- icon: /* @__PURE__ */ jsx(GitBranch, { size: 14 }),
45740
- label: "Branch",
45741
- value: `${((_a = selectedPR.base) == null ? void 0 : _a.ref) ?? "?"} ← ${((_b = selectedPR.head) == null ? void 0 : _b.ref) ?? "?"}`,
45742
- mono: true,
45743
- theme: theme2
45744
- }
45745
- ),
45746
- /* @__PURE__ */ jsx(
45747
- MetadataRow,
45748
- {
45749
- icon: /* @__PURE__ */ jsx(Calendar, { size: 14 }),
45750
- label: "Created",
45751
- value: formatDate(selectedPR.created_at),
45752
- theme: theme2
45753
- }
45754
- ),
45755
45734
  totalComments > 0 && /* @__PURE__ */ jsx(
45756
45735
  MetadataRow,
45757
45736
  {