@industry-theme/github-panels 0.4.0 → 0.4.2

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":"index.d.ts","sourceRoot":"","sources":["../../../src/panels/ProfilePanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAezE,OAAO,KAAK,EAIV,sBAAsB,EAEtB,WAAW,EACZ,MAAM,SAAS,CAAC;AAgzBjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAEzD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,WAAW,CAAC,EAAE,WAAW,CAAA;CAAE,CA0CvE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;CAQhC,CAAC;AAGF,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,yBAAyB,EACzB,+BAA+B,EAC/B,yBAAyB,GAC1B,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panels/ProfilePanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAezE,OAAO,KAAK,EAIV,sBAAsB,EAEtB,WAAW,EACZ,MAAM,SAAS,CAAC;AA4zBjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAEzD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,WAAW,CAAC,EAAE,WAAW,CAAA;CAAE,CA0CvE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;CAQhC,CAAC;AAGF,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,yBAAyB,EACzB,+BAA+B,EAC/B,yBAAyB,GAC1B,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC"}
@@ -1702,7 +1702,7 @@ const GitHubRepositoryCard = ({
1702
1702
  alignItems: "flex-start",
1703
1703
  gap: "12px",
1704
1704
  padding: "12px",
1705
- borderRadius: "8px",
1705
+ borderRadius: 0,
1706
1706
  backgroundColor: isSelected ? `${theme2.colors.primary}15` : isHovered ? theme2.colors.backgroundTertiary : "transparent",
1707
1707
  border: `1px solid ${isSelected ? theme2.colors.primary : "transparent"}`,
1708
1708
  cursor: isInCollection ? "not-allowed" : isDragging ? "grabbing" : onSelect ? "grab" : "default",
@@ -53850,8 +53850,8 @@ const CollectionCard = ({ collection, isSelected, onClick }) => {
53850
53850
  display: "flex",
53851
53851
  alignItems: "center",
53852
53852
  gap: "12px",
53853
- padding: "12px",
53854
- borderRadius: "8px",
53853
+ padding: "16px",
53854
+ borderRadius: 0,
53855
53855
  backgroundColor: isSelected ? `${theme2.colors.primary}15` : isHovered ? theme2.colors.backgroundTertiary : theme2.colors.background,
53856
53856
  border: `1px solid ${isSelected ? theme2.colors.primary : theme2.colors.border}`,
53857
53857
  cursor: onClick ? "pointer" : "default",
@@ -54374,7 +54374,7 @@ const ProfilePanelContent = ({
54374
54374
  /* @__PURE__ */ jsx(FolderGit2, { size: 14, style: { color: theme2.colors.textSecondary } }),
54375
54375
  /* @__PURE__ */ jsx("strong", { style: { color: theme2.colors.text }, children: profile.public_repos }),
54376
54376
  " ",
54377
- /* @__PURE__ */ jsx("span", { style: { color: theme2.colors.textSecondary }, children: "repos" })
54377
+ /* @__PURE__ */ jsx("span", { style: { color: theme2.colors.textSecondary }, children: "projects" })
54378
54378
  ] })
54379
54379
  ]
54380
54380
  }
@@ -54443,8 +54443,7 @@ const ProfilePanelContent = ({
54443
54443
  },
54444
54444
  children: [
54445
54445
  /* @__PURE__ */ jsx(FolderGit2, { size: 16 }),
54446
- profileType === "user" ? "Projects" : "Repositories",
54447
- " (",
54446
+ "Projects (",
54448
54447
  repositories.length,
54449
54448
  ")"
54450
54449
  ]
@@ -54482,11 +54481,10 @@ const ProfilePanelContent = ({
54482
54481
  ]
54483
54482
  }
54484
54483
  ),
54485
- (activeView === "repositories" || activeView === "starred") && /* @__PURE__ */ jsx(
54484
+ (activeView === "repositories" || activeView === "starred") && (activeView === "starred" ? starredRepositories : repositories).length >= 5 && /* @__PURE__ */ jsx(
54486
54485
  "div",
54487
54486
  {
54488
54487
  style: {
54489
- padding: "12px 16px",
54490
54488
  borderBottom: `1px solid ${theme2.colors.border}`,
54491
54489
  backgroundColor: theme2.colors.background
54492
54490
  },
@@ -54498,8 +54496,8 @@ const ProfilePanelContent = ({
54498
54496
  display: "flex",
54499
54497
  alignItems: "center",
54500
54498
  gap: "8px",
54501
- padding: "8px 12px",
54502
- borderRadius: "6px",
54499
+ padding: "12px 16px",
54500
+ borderRadius: 0,
54503
54501
  border: `1px solid ${theme2.colors.border}`,
54504
54502
  backgroundColor: theme2.colors.backgroundSecondary
54505
54503
  },
@@ -54551,19 +54549,24 @@ const ProfilePanelContent = ({
54551
54549
  style: {
54552
54550
  flex: 1,
54553
54551
  overflowY: "auto",
54554
- padding: "16px",
54555
54552
  display: "flex",
54556
- flexDirection: "column",
54557
- gap: "8px"
54553
+ flexDirection: "column"
54558
54554
  },
54559
54555
  children: [
54560
54556
  activeView === "collections" && /* @__PURE__ */ jsx(Fragment, { children: collections.length === 0 ? /* @__PURE__ */ jsxs(
54561
54557
  "div",
54562
54558
  {
54563
54559
  style: {
54560
+ flex: 1,
54561
+ display: "flex",
54562
+ flexDirection: "column",
54563
+ alignItems: "center",
54564
+ justifyContent: "center",
54564
54565
  padding: "32px",
54565
- textAlign: "center",
54566
- color: theme2.colors.textSecondary
54566
+ color: theme2.colors.textSecondary,
54567
+ fontSize: `${theme2.fontSizes[1]}px`,
54568
+ fontFamily: theme2.fonts.body,
54569
+ backgroundColor: theme2.colors.background
54567
54570
  },
54568
54571
  children: [
54569
54572
  /* @__PURE__ */ jsx(
@@ -54589,9 +54592,16 @@ const ProfilePanelContent = ({
54589
54592
  "div",
54590
54593
  {
54591
54594
  style: {
54595
+ flex: 1,
54596
+ display: "flex",
54597
+ flexDirection: "column",
54598
+ alignItems: "center",
54599
+ justifyContent: "center",
54592
54600
  padding: "32px",
54593
- textAlign: "center",
54594
- color: theme2.colors.textSecondary
54601
+ color: theme2.colors.textSecondary,
54602
+ fontSize: `${theme2.fontSizes[1]}px`,
54603
+ fontFamily: theme2.fonts.body,
54604
+ backgroundColor: theme2.colors.background
54595
54605
  },
54596
54606
  children: [
54597
54607
  activeView === "starred" ? /* @__PURE__ */ jsx(Star, { size: 32, style: { marginBottom: "12px", opacity: 0.5 } }) : /* @__PURE__ */ jsx(
@@ -54601,7 +54611,7 @@ const ProfilePanelContent = ({
54601
54611
  style: { marginBottom: "12px", opacity: 0.5 }
54602
54612
  }
54603
54613
  ),
54604
- /* @__PURE__ */ jsx("p", { style: { margin: 0 }, children: searchQuery ? `No repositories matching "${searchQuery}"` : activeView === "starred" ? "No starred repositories" : "No repositories" })
54614
+ /* @__PURE__ */ jsx("p", { style: { margin: 0 }, children: searchQuery ? `No projects matching "${searchQuery}"` : activeView === "starred" ? "No starred projects" : "No projects" })
54605
54615
  ]
54606
54616
  }
54607
54617
  ) : filteredRepositories.sort(
@@ -54661,7 +54671,7 @@ const ProfilePanelPreview = ({
54661
54671
  children: [
54662
54672
  "View ",
54663
54673
  label.toLowerCase(),
54664
- " collections and repos"
54674
+ " collections and projects"
54665
54675
  ]
54666
54676
  }
54667
54677
  )