@industry-theme/github-panels 0.1.16 → 0.1.17

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,157 +1,5 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import React2, { createContext, useState, useEffect, useContext, forwardRef, createElement, useRef, useCallback, useMemo } from "react";
3
- var terminalTheme = {
4
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
5
- fonts: {
6
- body: '"SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace',
7
- heading: '"SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace',
8
- monospace: '"SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace'
9
- },
10
- fontSizes: [12, 14, 16, 18, 20, 24, 32, 48, 64, 96],
11
- fontScale: 1,
12
- fontWeights: {
13
- body: 400,
14
- heading: 500,
15
- bold: 600,
16
- light: 300,
17
- medium: 500,
18
- semibold: 600
19
- },
20
- lineHeights: {
21
- body: 1.6,
22
- heading: 1.3,
23
- tight: 1.4,
24
- relaxed: 1.8
25
- },
26
- breakpoints: ["640px", "768px", "1024px", "1280px"],
27
- sizes: [16, 32, 64, 128, 256, 512, 768, 1024, 1536],
28
- radii: [0, 2, 4, 6, 8, 12, 16, 24],
29
- shadows: [
30
- "none",
31
- "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
32
- "0 2px 4px 0 rgba(0, 0, 0, 0.06)",
33
- "0 4px 6px 0 rgba(0, 0, 0, 0.07)",
34
- "0 8px 12px 0 rgba(0, 0, 0, 0.08)",
35
- "0 16px 24px 0 rgba(0, 0, 0, 0.10)"
36
- ],
37
- zIndices: [0, 1, 10, 20, 30, 40, 50],
38
- colors: {
39
- text: "#e4e4e4",
40
- background: "rgba(10, 10, 10, 0.85)",
41
- primary: "#66b3ff",
42
- secondary: "#80c4ff",
43
- accent: "#66ff99",
44
- highlight: "rgba(102, 179, 255, 0.15)",
45
- muted: "rgba(26, 26, 26, 0.8)",
46
- success: "#66ff99",
47
- warning: "#ffcc66",
48
- error: "#ff6666",
49
- info: "#66b3ff",
50
- border: "rgba(255, 255, 255, 0.1)",
51
- backgroundSecondary: "rgba(15, 15, 15, 0.9)",
52
- backgroundTertiary: "rgba(20, 20, 20, 0.9)",
53
- backgroundLight: "rgba(255, 255, 255, 0.05)",
54
- backgroundHover: "rgba(102, 179, 255, 0.08)",
55
- surface: "rgba(15, 15, 15, 0.95)",
56
- textSecondary: "rgba(255, 255, 255, 0.7)",
57
- textTertiary: "rgba(255, 255, 255, 0.5)",
58
- textMuted: "rgba(255, 255, 255, 0.4)",
59
- highlightBg: "rgba(255, 235, 59, 0.25)",
60
- highlightBorder: "rgba(255, 235, 59, 0.5)"
61
- },
62
- modes: {
63
- light: {
64
- text: "#1a1a1a",
65
- background: "rgba(255, 255, 255, 0.9)",
66
- primary: "#0066cc",
67
- secondary: "#0052a3",
68
- accent: "#00cc88",
69
- highlight: "rgba(0, 102, 204, 0.08)",
70
- muted: "rgba(245, 245, 245, 0.8)",
71
- success: "#00cc88",
72
- warning: "#ffaa00",
73
- error: "#ff3333",
74
- info: "#0066cc",
75
- border: "rgba(0, 0, 0, 0.1)",
76
- backgroundSecondary: "rgba(250, 250, 250, 0.9)",
77
- backgroundTertiary: "rgba(245, 245, 245, 0.9)",
78
- backgroundLight: "rgba(0, 0, 0, 0.02)",
79
- backgroundHover: "rgba(0, 102, 204, 0.04)",
80
- surface: "rgba(255, 255, 255, 0.95)",
81
- textSecondary: "rgba(0, 0, 0, 0.6)",
82
- textTertiary: "rgba(0, 0, 0, 0.4)",
83
- textMuted: "rgba(0, 0, 0, 0.3)",
84
- highlightBg: "rgba(255, 235, 59, 0.3)",
85
- highlightBorder: "rgba(255, 235, 59, 0.6)"
86
- }
87
- },
88
- buttons: {
89
- primary: {
90
- color: "white",
91
- bg: "primary",
92
- borderWidth: 0,
93
- "&:hover": {
94
- bg: "secondary"
95
- }
96
- },
97
- secondary: {
98
- color: "primary",
99
- bg: "transparent",
100
- borderWidth: 1,
101
- borderStyle: "solid",
102
- borderColor: "primary",
103
- "&:hover": {
104
- bg: "highlight"
105
- }
106
- },
107
- ghost: {
108
- color: "text",
109
- bg: "transparent",
110
- "&:hover": {
111
- bg: "backgroundHover"
112
- }
113
- }
114
- },
115
- text: {
116
- heading: {
117
- fontFamily: "heading",
118
- fontWeight: "heading",
119
- lineHeight: "heading"
120
- },
121
- body: {
122
- fontFamily: "body",
123
- fontWeight: "body",
124
- lineHeight: "body"
125
- },
126
- caption: {
127
- fontSize: 1,
128
- color: "textSecondary"
129
- }
130
- },
131
- cards: {
132
- primary: {
133
- bg: "surface",
134
- border: "1px solid",
135
- borderColor: "border",
136
- borderRadius: 1
137
- },
138
- secondary: {
139
- bg: "backgroundSecondary",
140
- border: "1px solid",
141
- borderColor: "border",
142
- borderRadius: 1
143
- }
144
- }
145
- };
146
- function getMode(theme2, mode) {
147
- if (!mode || !theme2.modes || !theme2.modes[mode]) {
148
- return theme2.colors;
149
- }
150
- return {
151
- ...theme2.colors,
152
- ...theme2.modes[mode]
153
- };
154
- }
2
+ import React2, { createContext, useContext, forwardRef, createElement, useState, useRef, useEffect, useCallback, useMemo } from "react";
155
3
  var ThemeContext;
156
4
  var getThemeContext = () => {
157
5
  if (typeof window !== "undefined") {
@@ -175,46 +23,6 @@ var useTheme = () => {
175
23
  }
176
24
  return context;
177
25
  };
178
- var ThemeProvider = ({
179
- children,
180
- theme: customTheme = theme,
181
- initialMode
182
- }) => {
183
- const [mode, setMode] = useState(initialMode);
184
- const activeTheme = React2.useMemo(() => {
185
- if (!mode || !customTheme.modes || !customTheme.modes[mode]) {
186
- return customTheme;
187
- }
188
- return {
189
- ...customTheme,
190
- colors: getMode(customTheme, mode)
191
- };
192
- }, [customTheme, mode]);
193
- useEffect(() => {
194
- if (!initialMode) {
195
- const savedMode = localStorage.getItem("principlemd-theme-mode");
196
- if (savedMode) {
197
- setMode(savedMode);
198
- }
199
- }
200
- }, [initialMode]);
201
- useEffect(() => {
202
- if (mode) {
203
- localStorage.setItem("principlemd-theme-mode", mode);
204
- } else {
205
- localStorage.removeItem("principlemd-theme-mode");
206
- }
207
- }, [mode]);
208
- const value = {
209
- theme: activeTheme,
210
- mode,
211
- setMode
212
- };
213
- return /* @__PURE__ */ React2.createElement(ThemeContextSingleton.Provider, {
214
- value
215
- }, children);
216
- };
217
- var theme = terminalTheme;
218
26
  /**
219
27
  * @license lucide-react v0.552.0 - ISC
220
28
  *
@@ -660,9 +468,9 @@ const GitHubProjectCard = ({
660
468
  onOpenInGitHub
661
469
  }) => {
662
470
  var _a;
663
- const { theme: theme2 } = useTheme();
471
+ const { theme } = useTheme();
664
472
  const [isHovered, setIsHovered] = useState(false);
665
- const highlightColor = theme2.colors.primary;
473
+ const highlightColor = theme.colors.primary;
666
474
  const handleCardClick = () => {
667
475
  onSelect == null ? void 0 : onSelect(repository);
668
476
  };
@@ -685,7 +493,7 @@ const GitHubProjectCard = ({
685
493
  gap: "12px",
686
494
  padding: "10px 12px",
687
495
  borderRadius: "6px",
688
- backgroundColor: isSelected ? `${highlightColor}15` : isHovered ? theme2.colors.backgroundTertiary || theme2.colors.backgroundSecondary : "transparent",
496
+ backgroundColor: isSelected ? `${highlightColor}15` : isHovered ? theme.colors.backgroundTertiary || theme.colors.backgroundSecondary : "transparent",
689
497
  border: isSelected ? `1px solid ${highlightColor}40` : "1px solid transparent",
690
498
  cursor: "pointer",
691
499
  transition: "all 0.15s ease"
@@ -714,13 +522,13 @@ const GitHubProjectCard = ({
714
522
  height: "32px",
715
523
  borderRadius: "50%",
716
524
  flexShrink: 0,
717
- backgroundColor: theme2.colors.backgroundTertiary || theme2.colors.backgroundSecondary,
525
+ backgroundColor: theme.colors.backgroundTertiary || theme.colors.backgroundSecondary,
718
526
  display: "flex",
719
527
  alignItems: "center",
720
528
  justifyContent: "center",
721
- fontSize: `${theme2.fontSizes[1]}px`,
722
- fontWeight: theme2.fontWeights.semibold,
723
- color: theme2.colors.textSecondary
529
+ fontSize: `${theme.fontSizes[1]}px`,
530
+ fontWeight: theme.fontWeights.semibold,
531
+ color: theme.colors.textSecondary
724
532
  },
725
533
  children: ((_a = repository.owner.login[0]) == null ? void 0 : _a.toUpperCase()) || "?"
726
534
  }
@@ -741,9 +549,9 @@ const GitHubProjectCard = ({
741
549
  "span",
742
550
  {
743
551
  style: {
744
- fontSize: `${theme2.fontSizes[2]}px`,
745
- fontWeight: theme2.fontWeights.medium,
746
- color: theme2.colors.text,
552
+ fontSize: `${theme.fontSizes[2]}px`,
553
+ fontWeight: theme.fontWeights.medium,
554
+ color: theme.colors.text,
747
555
  overflow: "hidden",
748
556
  textOverflow: "ellipsis",
749
557
  whiteSpace: "nowrap"
@@ -751,8 +559,8 @@ const GitHubProjectCard = ({
751
559
  children: repository.name
752
560
  }
753
561
  ),
754
- repository.private && /* @__PURE__ */ jsx(Lock, { size: 12, color: theme2.colors.warning || "#f59e0b" }),
755
- repository.fork && /* @__PURE__ */ jsx(GitFork, { size: 12, color: theme2.colors.textSecondary })
562
+ repository.private && /* @__PURE__ */ jsx(Lock, { size: 12, color: theme.colors.warning || "#f59e0b" }),
563
+ repository.fork && /* @__PURE__ */ jsx(GitFork, { size: 12, color: theme.colors.textSecondary })
756
564
  ] }),
757
565
  /* @__PURE__ */ jsxs(
758
566
  "div",
@@ -761,8 +569,8 @@ const GitHubProjectCard = ({
761
569
  display: "flex",
762
570
  alignItems: "center",
763
571
  gap: "12px",
764
- fontSize: `${theme2.fontSizes[0]}px`,
765
- color: theme2.colors.textSecondary,
572
+ fontSize: `${theme.fontSizes[0]}px`,
573
+ color: theme.colors.textSecondary,
766
574
  flexWrap: "wrap"
767
575
  },
768
576
  children: [
@@ -796,8 +604,8 @@ const GitHubProjectCard = ({
796
604
  "div",
797
605
  {
798
606
  style: {
799
- fontSize: `${theme2.fontSizes[0]}px`,
800
- color: theme2.colors.textSecondary,
607
+ fontSize: `${theme.fontSizes[0]}px`,
608
+ color: theme.colors.textSecondary,
801
609
  overflow: "hidden",
802
610
  textOverflow: "ellipsis",
803
611
  whiteSpace: "nowrap"
@@ -820,20 +628,20 @@ const GitHubProjectCard = ({
820
628
  justifyContent: "center",
821
629
  padding: "6px",
822
630
  borderRadius: "4px",
823
- border: `1px solid ${theme2.colors.border}`,
824
- backgroundColor: theme2.colors.background,
825
- color: theme2.colors.textSecondary,
631
+ border: `1px solid ${theme.colors.border}`,
632
+ backgroundColor: theme.colors.background,
633
+ color: theme.colors.textSecondary,
826
634
  cursor: "pointer",
827
635
  transition: "all 0.15s ease",
828
636
  flexShrink: 0
829
637
  },
830
638
  onMouseEnter: (e) => {
831
- e.currentTarget.style.backgroundColor = theme2.colors.backgroundTertiary || theme2.colors.backgroundSecondary;
832
- e.currentTarget.style.color = theme2.colors.text;
639
+ e.currentTarget.style.backgroundColor = theme.colors.backgroundTertiary || theme.colors.backgroundSecondary;
640
+ e.currentTarget.style.color = theme.colors.text;
833
641
  },
834
642
  onMouseLeave: (e) => {
835
- e.currentTarget.style.backgroundColor = theme2.colors.background;
836
- e.currentTarget.style.color = theme2.colors.textSecondary;
643
+ e.currentTarget.style.backgroundColor = theme.colors.background;
644
+ e.currentTarget.style.color = theme.colors.textSecondary;
837
645
  },
838
646
  children: /* @__PURE__ */ jsx(ExternalLink, { size: 14 })
839
647
  }
@@ -852,7 +660,7 @@ const Section = ({
852
660
  children,
853
661
  layoutMode
854
662
  }) => {
855
- const { theme: theme2 } = useTheme();
663
+ const { theme } = useTheme();
856
664
  const showContent = layoutMode === "expanded" || isExpanded;
857
665
  return /* @__PURE__ */ jsxs(
858
666
  "div",
@@ -863,7 +671,7 @@ const Section = ({
863
671
  minWidth: layoutMode === "expanded" ? "280px" : void 0,
864
672
  display: "flex",
865
673
  flexDirection: "column",
866
- borderRight: layoutMode === "expanded" ? `1px solid ${theme2.colors.border}` : void 0,
674
+ borderRight: layoutMode === "expanded" ? `1px solid ${theme.colors.border}` : void 0,
867
675
  overflow: "hidden"
868
676
  },
869
677
  children: [
@@ -881,10 +689,10 @@ const Section = ({
881
689
  border: "none",
882
690
  background: "none",
883
691
  cursor: layoutMode === "compact" ? "pointer" : "default",
884
- color: theme2.colors.text,
885
- fontSize: `${theme2.fontSizes[2]}px`,
886
- fontWeight: theme2.fontWeights.semibold,
887
- borderBottom: layoutMode === "expanded" ? `1px solid ${theme2.colors.border}` : void 0
692
+ color: theme.colors.text,
693
+ fontSize: `${theme.fontSizes[2]}px`,
694
+ fontWeight: theme.fontWeights.semibold,
695
+ borderBottom: layoutMode === "expanded" ? `1px solid ${theme.colors.border}` : void 0
888
696
  },
889
697
  children: [
890
698
  layoutMode === "compact" && (isExpanded ? /* @__PURE__ */ jsx(ChevronDown, { size: 16 }) : /* @__PURE__ */ jsx(ChevronRight, { size: 16 })),
@@ -895,9 +703,9 @@ const Section = ({
895
703
  {
896
704
  style: {
897
705
  marginLeft: "auto",
898
- fontSize: `${theme2.fontSizes[0]}px`,
899
- color: theme2.colors.textSecondary,
900
- backgroundColor: theme2.colors.backgroundTertiary || theme2.colors.backgroundSecondary,
706
+ fontSize: `${theme.fontSizes[0]}px`,
707
+ color: theme.colors.textSecondary,
708
+ backgroundColor: theme.colors.backgroundTertiary || theme.colors.backgroundSecondary,
901
709
  padding: "2px 8px",
902
710
  borderRadius: "10px"
903
711
  },
@@ -929,7 +737,7 @@ const GitHubProjectsPanelContent = ({
929
737
  context,
930
738
  events
931
739
  }) => {
932
- const { theme: theme2 } = useTheme();
740
+ const { theme } = useTheme();
933
741
  const containerRef = useRef(null);
934
742
  const [layoutMode, setLayoutMode] = useState("compact");
935
743
  const [searchQuery, setSearchQuery] = useState("");
@@ -1001,8 +809,8 @@ const GitHubProjectsPanelContent = ({
1001
809
  style: {
1002
810
  padding: "16px",
1003
811
  textAlign: "center",
1004
- color: theme2.colors.textSecondary,
1005
- fontSize: `${theme2.fontSizes[1]}px`,
812
+ color: theme.colors.textSecondary,
813
+ fontSize: `${theme.fontSizes[1]}px`,
1006
814
  gridColumn: layoutMode === "expanded" ? "1 / -1" : void 0
1007
815
  },
1008
816
  children: message
@@ -1030,17 +838,17 @@ const GitHubProjectsPanelContent = ({
1030
838
  justifyContent: "center",
1031
839
  gap: "16px",
1032
840
  padding: "24px",
1033
- color: theme2.colors.textSecondary
841
+ color: theme.colors.textSecondary
1034
842
  },
1035
843
  children: [
1036
- /* @__PURE__ */ jsx(LogIn, { size: 48, color: theme2.colors.textSecondary }),
844
+ /* @__PURE__ */ jsx(LogIn, { size: 48, color: theme.colors.textSecondary }),
1037
845
  /* @__PURE__ */ jsx(
1038
846
  "h3",
1039
847
  {
1040
848
  style: {
1041
849
  margin: 0,
1042
- fontSize: `${theme2.fontSizes[3]}px`,
1043
- color: theme2.colors.text
850
+ fontSize: `${theme.fontSizes[3]}px`,
851
+ color: theme.colors.text
1044
852
  },
1045
853
  children: "Sign in to GitHub"
1046
854
  }
@@ -1065,10 +873,10 @@ const GitHubProjectsPanelContent = ({
1065
873
  padding: "10px 20px",
1066
874
  borderRadius: "6px",
1067
875
  border: "none",
1068
- backgroundColor: theme2.colors.primary,
1069
- color: theme2.colors.background,
1070
- fontSize: `${theme2.fontSizes[2]}px`,
1071
- fontWeight: theme2.fontWeights.medium,
876
+ backgroundColor: theme.colors.primary,
877
+ color: theme.colors.background,
878
+ fontSize: `${theme.fontSizes[2]}px`,
879
+ fontWeight: theme.fontWeights.medium,
1072
880
  cursor: "pointer"
1073
881
  },
1074
882
  children: [
@@ -1091,7 +899,7 @@ const GitHubProjectsPanelContent = ({
1091
899
  display: "flex",
1092
900
  alignItems: "center",
1093
901
  justifyContent: "center",
1094
- color: theme2.colors.textSecondary
902
+ color: theme.colors.textSecondary
1095
903
  },
1096
904
  children: "Loading repositories..."
1097
905
  }
@@ -1110,17 +918,17 @@ const GitHubProjectsPanelContent = ({
1110
918
  justifyContent: "center",
1111
919
  gap: "16px",
1112
920
  padding: "24px",
1113
- color: theme2.colors.textSecondary
921
+ color: theme.colors.textSecondary
1114
922
  },
1115
923
  children: [
1116
- /* @__PURE__ */ jsx(LogIn, { size: 48, color: theme2.colors.textSecondary }),
924
+ /* @__PURE__ */ jsx(LogIn, { size: 48, color: theme.colors.textSecondary }),
1117
925
  /* @__PURE__ */ jsx(
1118
926
  "h3",
1119
927
  {
1120
928
  style: {
1121
929
  margin: 0,
1122
- fontSize: `${theme2.fontSizes[3]}px`,
1123
- color: theme2.colors.text
930
+ fontSize: `${theme.fontSizes[3]}px`,
931
+ color: theme.colors.text
1124
932
  },
1125
933
  children: "Sign in to GitHub"
1126
934
  }
@@ -1145,10 +953,10 @@ const GitHubProjectsPanelContent = ({
1145
953
  padding: "10px 20px",
1146
954
  borderRadius: "6px",
1147
955
  border: "none",
1148
- backgroundColor: theme2.colors.primary,
1149
- color: theme2.colors.background,
1150
- fontSize: `${theme2.fontSizes[2]}px`,
1151
- fontWeight: theme2.fontWeights.medium,
956
+ backgroundColor: theme.colors.primary,
957
+ color: theme.colors.background,
958
+ fontSize: `${theme.fontSizes[2]}px`,
959
+ fontWeight: theme.fontWeights.medium,
1152
960
  cursor: "pointer"
1153
961
  },
1154
962
  children: [
@@ -1169,9 +977,9 @@ const GitHubProjectsPanelContent = ({
1169
977
  height: "100%",
1170
978
  display: "flex",
1171
979
  flexDirection: "column",
1172
- backgroundColor: theme2.colors.background,
1173
- color: theme2.colors.text,
1174
- fontFamily: theme2.fonts.body
980
+ backgroundColor: theme.colors.background,
981
+ color: theme.colors.text,
982
+ fontFamily: theme.fonts.body
1175
983
  },
1176
984
  children: [
1177
985
  /* @__PURE__ */ jsxs(
@@ -1179,21 +987,21 @@ const GitHubProjectsPanelContent = ({
1179
987
  {
1180
988
  style: {
1181
989
  padding: "12px 16px",
1182
- borderBottom: `1px solid ${theme2.colors.border}`,
990
+ borderBottom: `1px solid ${theme.colors.border}`,
1183
991
  display: "flex",
1184
992
  alignItems: "center",
1185
993
  gap: "12px",
1186
994
  flexWrap: "wrap"
1187
995
  },
1188
996
  children: [
1189
- /* @__PURE__ */ jsx(Github, { size: 20, color: theme2.colors.primary }),
997
+ /* @__PURE__ */ jsx(Github, { size: 20, color: theme.colors.primary }),
1190
998
  /* @__PURE__ */ jsx(
1191
999
  "h2",
1192
1000
  {
1193
1001
  style: {
1194
1002
  margin: 0,
1195
- fontSize: `${theme2.fontSizes[3]}px`,
1196
- fontWeight: theme2.fontWeights.semibold
1003
+ fontSize: `${theme.fontSizes[3]}px`,
1004
+ fontWeight: theme.fontWeights.semibold
1197
1005
  },
1198
1006
  children: "GitHub Projects"
1199
1007
  }
@@ -1202,8 +1010,8 @@ const GitHubProjectsPanelContent = ({
1202
1010
  "span",
1203
1011
  {
1204
1012
  style: {
1205
- fontSize: `${theme2.fontSizes[1]}px`,
1206
- color: theme2.colors.textSecondary
1013
+ fontSize: `${theme.fontSizes[1]}px`,
1014
+ color: theme.colors.textSecondary
1207
1015
  },
1208
1016
  children: [
1209
1017
  "@",
@@ -1223,11 +1031,11 @@ const GitHubProjectsPanelContent = ({
1223
1031
  gap: "8px",
1224
1032
  padding: "8px 12px",
1225
1033
  borderRadius: "6px",
1226
- backgroundColor: theme2.colors.backgroundSecondary,
1227
- border: `1px solid ${theme2.colors.border}`
1034
+ backgroundColor: theme.colors.backgroundSecondary,
1035
+ border: `1px solid ${theme.colors.border}`
1228
1036
  },
1229
1037
  children: [
1230
- /* @__PURE__ */ jsx(Search, { size: 16, color: theme2.colors.textSecondary }),
1038
+ /* @__PURE__ */ jsx(Search, { size: 16, color: theme.colors.textSecondary }),
1231
1039
  /* @__PURE__ */ jsx(
1232
1040
  "input",
1233
1041
  {
@@ -1240,8 +1048,8 @@ const GitHubProjectsPanelContent = ({
1240
1048
  border: "none",
1241
1049
  background: "none",
1242
1050
  outline: "none",
1243
- fontSize: `${theme2.fontSizes[2]}px`,
1244
- color: theme2.colors.text
1051
+ fontSize: `${theme.fontSizes[2]}px`,
1052
+ color: theme.colors.text
1245
1053
  }
1246
1054
  }
1247
1055
  )
@@ -1265,7 +1073,7 @@ const GitHubProjectsPanelContent = ({
1265
1073
  {
1266
1074
  id: "owned",
1267
1075
  title: "Your Repositories",
1268
- icon: /* @__PURE__ */ jsx(Folder, { size: 16, color: theme2.colors.primary }),
1076
+ icon: /* @__PURE__ */ jsx(Folder, { size: 16, color: theme.colors.primary }),
1269
1077
  count: filteredOwned.length,
1270
1078
  isExpanded: expandedSections.has("owned"),
1271
1079
  onToggle: () => toggleSection("owned"),
@@ -1285,7 +1093,7 @@ const GitHubProjectsPanelContent = ({
1285
1093
  alt: org.login,
1286
1094
  style: { width: 16, height: 16, borderRadius: 4 }
1287
1095
  }
1288
- ) : /* @__PURE__ */ jsx(Building2, { size: 16, color: theme2.colors.info || "#3b82f6" }),
1096
+ ) : /* @__PURE__ */ jsx(Building2, { size: 16, color: theme.colors.info || "#3b82f6" }),
1289
1097
  count: org.repositories.length,
1290
1098
  isExpanded: expandedSections.has(`org-${org.id}`),
1291
1099
  onToggle: () => toggleSection(`org-${org.id}`),
@@ -1299,7 +1107,7 @@ const GitHubProjectsPanelContent = ({
1299
1107
  {
1300
1108
  id: "starred",
1301
1109
  title: "Starred",
1302
- icon: /* @__PURE__ */ jsx(Star, { size: 16, color: theme2.colors.warning || "#f59e0b" }),
1110
+ icon: /* @__PURE__ */ jsx(Star, { size: 16, color: theme.colors.warning || "#f59e0b" }),
1303
1111
  count: filteredStarred.length,
1304
1112
  isExpanded: expandedSections.has("starred"),
1305
1113
  onToggle: () => toggleSection("starred"),
@@ -1315,7 +1123,7 @@ const GitHubProjectsPanelContent = ({
1315
1123
  );
1316
1124
  };
1317
1125
  const GitHubProjectsPanel = (props) => {
1318
- return /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(GitHubProjectsPanelContent, { ...props }) });
1126
+ return /* @__PURE__ */ jsx(GitHubProjectsPanelContent, { ...props });
1319
1127
  };
1320
1128
  const GitHubProjectsPanelMetadata = {
1321
1129
  id: "github-projects",
@@ -1327,7 +1135,7 @@ const GitHubProjectsPanelMetadata = {
1327
1135
  surfaces: ["sidebar", "panel"]
1328
1136
  };
1329
1137
  const GitHubSearchPanelContent = ({ events }) => {
1330
- const { theme: theme2 } = useTheme();
1138
+ const { theme } = useTheme();
1331
1139
  const [searchQuery, setSearchQuery] = useState("");
1332
1140
  const [results, setResults] = useState([]);
1333
1141
  const [totalCount, setTotalCount] = useState(0);
@@ -1409,9 +1217,9 @@ const GitHubSearchPanelContent = ({ events }) => {
1409
1217
  height: "100%",
1410
1218
  display: "flex",
1411
1219
  flexDirection: "column",
1412
- backgroundColor: theme2.colors.background,
1413
- color: theme2.colors.text,
1414
- fontFamily: theme2.fonts.body
1220
+ backgroundColor: theme.colors.background,
1221
+ color: theme.colors.text,
1222
+ fontFamily: theme.fonts.body
1415
1223
  },
1416
1224
  children: [
1417
1225
  /* @__PURE__ */ jsxs(
@@ -1419,20 +1227,20 @@ const GitHubSearchPanelContent = ({ events }) => {
1419
1227
  {
1420
1228
  style: {
1421
1229
  padding: "12px 16px",
1422
- borderBottom: `1px solid ${theme2.colors.border}`,
1230
+ borderBottom: `1px solid ${theme.colors.border}`,
1423
1231
  display: "flex",
1424
1232
  alignItems: "center",
1425
1233
  gap: "12px"
1426
1234
  },
1427
1235
  children: [
1428
- /* @__PURE__ */ jsx(Github, { size: 20, color: theme2.colors.primary }),
1236
+ /* @__PURE__ */ jsx(Github, { size: 20, color: theme.colors.primary }),
1429
1237
  /* @__PURE__ */ jsx(
1430
1238
  "h2",
1431
1239
  {
1432
1240
  style: {
1433
1241
  margin: 0,
1434
- fontSize: `${theme2.fontSizes[3]}px`,
1435
- fontWeight: theme2.fontWeights.semibold
1242
+ fontSize: `${theme.fontSizes[3]}px`,
1243
+ fontWeight: theme.fontWeights.semibold
1436
1244
  },
1437
1245
  children: "Search GitHub"
1438
1246
  }
@@ -1449,11 +1257,11 @@ const GitHubSearchPanelContent = ({ events }) => {
1449
1257
  gap: "8px",
1450
1258
  padding: "10px 12px",
1451
1259
  borderRadius: "6px",
1452
- backgroundColor: theme2.colors.backgroundSecondary,
1453
- border: `1px solid ${theme2.colors.border}`
1260
+ backgroundColor: theme.colors.backgroundSecondary,
1261
+ border: `1px solid ${theme.colors.border}`
1454
1262
  },
1455
1263
  children: [
1456
- /* @__PURE__ */ jsx(Search, { size: 18, color: theme2.colors.textSecondary }),
1264
+ /* @__PURE__ */ jsx(Search, { size: 18, color: theme.colors.textSecondary }),
1457
1265
  /* @__PURE__ */ jsx(
1458
1266
  "input",
1459
1267
  {
@@ -1467,8 +1275,8 @@ const GitHubSearchPanelContent = ({ events }) => {
1467
1275
  border: "none",
1468
1276
  background: "none",
1469
1277
  outline: "none",
1470
- fontSize: `${theme2.fontSizes[2]}px`,
1471
- color: theme2.colors.text
1278
+ fontSize: `${theme.fontSizes[2]}px`,
1279
+ color: theme.colors.text
1472
1280
  }
1473
1281
  }
1474
1282
  ),
@@ -1478,8 +1286,8 @@ const GitHubSearchPanelContent = ({ events }) => {
1478
1286
  style: {
1479
1287
  width: 16,
1480
1288
  height: 16,
1481
- border: `2px solid ${theme2.colors.border}`,
1482
- borderTopColor: theme2.colors.primary,
1289
+ border: `2px solid ${theme.colors.border}`,
1290
+ borderTopColor: theme.colors.primary,
1483
1291
  borderRadius: "50%",
1484
1292
  animation: "spin 1s linear infinite"
1485
1293
  }
@@ -1493,8 +1301,8 @@ const GitHubSearchPanelContent = ({ events }) => {
1493
1301
  {
1494
1302
  style: {
1495
1303
  padding: "0 16px 8px",
1496
- fontSize: `${theme2.fontSizes[1]}px`,
1497
- color: theme2.colors.textSecondary
1304
+ fontSize: `${theme.fontSizes[1]}px`,
1305
+ color: theme.colors.textSecondary
1498
1306
  },
1499
1307
  children: [
1500
1308
  formatNumber(totalCount),
@@ -1509,9 +1317,9 @@ const GitHubSearchPanelContent = ({ events }) => {
1509
1317
  padding: "16px",
1510
1318
  margin: "0 16px",
1511
1319
  borderRadius: "6px",
1512
- backgroundColor: `${theme2.colors.error}15`,
1513
- color: theme2.colors.error,
1514
- fontSize: `${theme2.fontSizes[2]}px`
1320
+ backgroundColor: `${theme.colors.error}15`,
1321
+ color: theme.colors.error,
1322
+ fontSize: `${theme.fontSizes[2]}px`
1515
1323
  },
1516
1324
  children: error
1517
1325
  }
@@ -1531,7 +1339,7 @@ const GitHubSearchPanelContent = ({ events }) => {
1531
1339
  style: {
1532
1340
  padding: "32px 16px",
1533
1341
  textAlign: "center",
1534
- color: theme2.colors.textSecondary
1342
+ color: theme.colors.textSecondary
1535
1343
  },
1536
1344
  children: [
1537
1345
  'No repositories found for "',
@@ -1546,10 +1354,10 @@ const GitHubSearchPanelContent = ({ events }) => {
1546
1354
  style: {
1547
1355
  padding: "32px 16px",
1548
1356
  textAlign: "center",
1549
- color: theme2.colors.textSecondary
1357
+ color: theme.colors.textSecondary
1550
1358
  },
1551
1359
  children: [
1552
- /* @__PURE__ */ jsx(Search, { size: 48, color: theme2.colors.border, style: { marginBottom: 16 } }),
1360
+ /* @__PURE__ */ jsx(Search, { size: 48, color: theme.colors.border, style: { marginBottom: 16 } }),
1553
1361
  /* @__PURE__ */ jsx("p", { style: { margin: 0 }, children: "Search for repositories by name, description, or topic" })
1554
1362
  ]
1555
1363
  }
@@ -1566,8 +1374,8 @@ const GitHubSearchPanelContent = ({ events }) => {
1566
1374
  padding: "12px",
1567
1375
  margin: "4px 0",
1568
1376
  borderRadius: "6px",
1569
- border: selectedRepoId === repo.id ? `2px solid ${theme2.colors.primary}` : `1px solid ${theme2.colors.border}`,
1570
- backgroundColor: selectedRepoId === repo.id ? `${theme2.colors.primary}10` : theme2.colors.surface,
1377
+ border: selectedRepoId === repo.id ? `2px solid ${theme.colors.primary}` : `1px solid ${theme.colors.border}`,
1378
+ backgroundColor: selectedRepoId === repo.id ? `${theme.colors.primary}10` : theme.colors.surface,
1571
1379
  cursor: "pointer",
1572
1380
  textAlign: "left",
1573
1381
  display: "flex",
@@ -1588,9 +1396,9 @@ const GitHubSearchPanelContent = ({ events }) => {
1588
1396
  "span",
1589
1397
  {
1590
1398
  style: {
1591
- fontSize: `${theme2.fontSizes[2]}px`,
1592
- fontWeight: theme2.fontWeights.semibold,
1593
- color: theme2.colors.primary
1399
+ fontSize: `${theme.fontSizes[2]}px`,
1400
+ fontWeight: theme.fontWeights.semibold,
1401
+ color: theme.colors.primary
1594
1402
  },
1595
1403
  children: repo.full_name
1596
1404
  }
@@ -1599,11 +1407,11 @@ const GitHubSearchPanelContent = ({ events }) => {
1599
1407
  "span",
1600
1408
  {
1601
1409
  style: {
1602
- fontSize: `${theme2.fontSizes[0]}px`,
1410
+ fontSize: `${theme.fontSizes[0]}px`,
1603
1411
  padding: "2px 6px",
1604
1412
  borderRadius: "4px",
1605
- backgroundColor: theme2.colors.backgroundTertiary,
1606
- color: theme2.colors.textSecondary
1413
+ backgroundColor: theme.colors.backgroundTertiary,
1414
+ color: theme.colors.textSecondary
1607
1415
  },
1608
1416
  children: "Private"
1609
1417
  }
@@ -1614,8 +1422,8 @@ const GitHubSearchPanelContent = ({ events }) => {
1614
1422
  {
1615
1423
  style: {
1616
1424
  margin: 0,
1617
- fontSize: `${theme2.fontSizes[1]}px`,
1618
- color: theme2.colors.textSecondary,
1425
+ fontSize: `${theme.fontSizes[1]}px`,
1426
+ color: theme.colors.textSecondary,
1619
1427
  overflow: "hidden",
1620
1428
  textOverflow: "ellipsis",
1621
1429
  display: "-webkit-box",
@@ -1632,8 +1440,8 @@ const GitHubSearchPanelContent = ({ events }) => {
1632
1440
  display: "flex",
1633
1441
  alignItems: "center",
1634
1442
  gap: "16px",
1635
- fontSize: `${theme2.fontSizes[1]}px`,
1636
- color: theme2.colors.textSecondary
1443
+ fontSize: `${theme.fontSizes[1]}px`,
1444
+ color: theme.colors.textSecondary
1637
1445
  },
1638
1446
  children: [
1639
1447
  repo.language && /* @__PURE__ */ jsxs("span", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
@@ -1644,7 +1452,7 @@ const GitHubSearchPanelContent = ({ events }) => {
1644
1452
  width: 10,
1645
1453
  height: 10,
1646
1454
  borderRadius: "50%",
1647
- backgroundColor: theme2.colors.info
1455
+ backgroundColor: theme.colors.info
1648
1456
  }
1649
1457
  }
1650
1458
  ),
@@ -1667,7 +1475,7 @@ const GitHubSearchPanelContent = ({ events }) => {
1667
1475
  onClick: (e) => e.stopPropagation(),
1668
1476
  style: {
1669
1477
  marginLeft: "auto",
1670
- color: theme2.colors.textSecondary,
1478
+ color: theme.colors.textSecondary,
1671
1479
  display: "flex",
1672
1480
  alignItems: "center"
1673
1481
  },
@@ -1695,7 +1503,7 @@ const GitHubSearchPanelContent = ({ events }) => {
1695
1503
  );
1696
1504
  };
1697
1505
  const GitHubSearchPanel = (props) => {
1698
- return /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(GitHubSearchPanelContent, { ...props }) });
1506
+ return /* @__PURE__ */ jsx(GitHubSearchPanelContent, { ...props });
1699
1507
  };
1700
1508
  const GitHubSearchPanelMetadata = {
1701
1509
  id: "github-search",
@@ -1712,7 +1520,7 @@ const OwnerRepositoriesPanelContent = ({
1712
1520
  owner: propOwner
1713
1521
  }) => {
1714
1522
  var _a, _b;
1715
- const { theme: theme2 } = useTheme();
1523
+ const { theme } = useTheme();
1716
1524
  const [repositories, setRepositories] = useState([]);
1717
1525
  const [ownerInfo, setOwnerInfo] = useState(null);
1718
1526
  const [isLoading, setIsLoading] = useState(true);
@@ -1850,9 +1658,9 @@ const OwnerRepositoriesPanelContent = ({
1850
1658
  height: "100%",
1851
1659
  display: "flex",
1852
1660
  flexDirection: "column",
1853
- backgroundColor: theme2.colors.background,
1854
- color: theme2.colors.text,
1855
- fontFamily: theme2.fonts.body
1661
+ backgroundColor: theme.colors.background,
1662
+ color: theme.colors.text,
1663
+ fontFamily: theme.fonts.body
1856
1664
  },
1857
1665
  children: [
1858
1666
  /* @__PURE__ */ jsx(
@@ -1860,7 +1668,7 @@ const OwnerRepositoriesPanelContent = ({
1860
1668
  {
1861
1669
  style: {
1862
1670
  padding: "16px",
1863
- borderBottom: `1px solid ${theme2.colors.border}`,
1671
+ borderBottom: `1px solid ${theme.colors.border}`,
1864
1672
  display: "flex",
1865
1673
  alignItems: "center",
1866
1674
  gap: "12px"
@@ -1875,7 +1683,7 @@ const OwnerRepositoriesPanelContent = ({
1875
1683
  width: 48,
1876
1684
  height: 48,
1877
1685
  borderRadius: ownerInfo.type === "Organization" ? 8 : "50%",
1878
- border: `2px solid ${theme2.colors.border}`
1686
+ border: `2px solid ${theme.colors.border}`
1879
1687
  }
1880
1688
  }
1881
1689
  ),
@@ -1886,21 +1694,21 @@ const OwnerRepositoriesPanelContent = ({
1886
1694
  {
1887
1695
  style: {
1888
1696
  margin: 0,
1889
- fontSize: `${theme2.fontSizes[4]}px`,
1890
- fontWeight: theme2.fontWeights.bold
1697
+ fontSize: `${theme.fontSizes[4]}px`,
1698
+ fontWeight: theme.fontWeights.bold
1891
1699
  },
1892
1700
  children: ownerInfo.name || ownerInfo.login
1893
1701
  }
1894
1702
  ),
1895
- ownerInfo.type === "Organization" ? /* @__PURE__ */ jsx(Building2, { size: 16, color: theme2.colors.textSecondary }) : /* @__PURE__ */ jsx(User, { size: 16, color: theme2.colors.textSecondary })
1703
+ ownerInfo.type === "Organization" ? /* @__PURE__ */ jsx(Building2, { size: 16, color: theme.colors.textSecondary }) : /* @__PURE__ */ jsx(User, { size: 16, color: theme.colors.textSecondary })
1896
1704
  ] }),
1897
1705
  ownerInfo.bio && /* @__PURE__ */ jsx(
1898
1706
  "p",
1899
1707
  {
1900
1708
  style: {
1901
1709
  margin: "4px 0 0",
1902
- fontSize: `${theme2.fontSizes[1]}px`,
1903
- color: theme2.colors.textSecondary
1710
+ fontSize: `${theme.fontSizes[1]}px`,
1711
+ color: theme.colors.textSecondary
1904
1712
  },
1905
1713
  children: ownerInfo.bio
1906
1714
  }
@@ -1912,8 +1720,8 @@ const OwnerRepositoriesPanelContent = ({
1912
1720
  display: "flex",
1913
1721
  gap: "12px",
1914
1722
  marginTop: "4px",
1915
- fontSize: `${theme2.fontSizes[1]}px`,
1916
- color: theme2.colors.textSecondary
1723
+ fontSize: `${theme.fontSizes[1]}px`,
1724
+ color: theme.colors.textSecondary
1917
1725
  },
1918
1726
  children: [
1919
1727
  /* @__PURE__ */ jsxs("span", { children: [
@@ -1935,24 +1743,24 @@ const OwnerRepositoriesPanelContent = ({
1935
1743
  style: {
1936
1744
  padding: "8px",
1937
1745
  borderRadius: "6px",
1938
- border: `1px solid ${theme2.colors.border}`,
1746
+ border: `1px solid ${theme.colors.border}`,
1939
1747
  background: "transparent",
1940
1748
  cursor: "pointer",
1941
- color: theme2.colors.textSecondary
1749
+ color: theme.colors.textSecondary
1942
1750
  },
1943
1751
  title: "Refresh",
1944
1752
  children: /* @__PURE__ */ jsx(RefreshCw, { size: 16 })
1945
1753
  }
1946
1754
  )
1947
1755
  ] }) : /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
1948
- /* @__PURE__ */ jsx(Github, { size: 24, color: theme2.colors.primary }),
1756
+ /* @__PURE__ */ jsx(Github, { size: 24, color: theme.colors.primary }),
1949
1757
  /* @__PURE__ */ jsx(
1950
1758
  "h2",
1951
1759
  {
1952
1760
  style: {
1953
1761
  margin: 0,
1954
- fontSize: `${theme2.fontSizes[3]}px`,
1955
- fontWeight: theme2.fontWeights.semibold
1762
+ fontSize: `${theme.fontSizes[3]}px`,
1763
+ fontWeight: theme.fontWeights.semibold
1956
1764
  },
1957
1765
  children: owner || "Repositories"
1958
1766
  }
@@ -1965,7 +1773,7 @@ const OwnerRepositoriesPanelContent = ({
1965
1773
  {
1966
1774
  style: {
1967
1775
  padding: "8px 16px",
1968
- borderBottom: `1px solid ${theme2.colors.border}`,
1776
+ borderBottom: `1px solid ${theme.colors.border}`,
1969
1777
  display: "flex",
1970
1778
  alignItems: "center",
1971
1779
  gap: "8px",
@@ -1973,7 +1781,7 @@ const OwnerRepositoriesPanelContent = ({
1973
1781
  },
1974
1782
  children: [
1975
1783
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
1976
- /* @__PURE__ */ jsx(ArrowUpDown, { size: 14, color: theme2.colors.textSecondary }),
1784
+ /* @__PURE__ */ jsx(ArrowUpDown, { size: 14, color: theme.colors.textSecondary }),
1977
1785
  ["updated", "stars", "name"].map((field) => /* @__PURE__ */ jsxs(
1978
1786
  "button",
1979
1787
  {
@@ -1982,9 +1790,9 @@ const OwnerRepositoriesPanelContent = ({
1982
1790
  padding: "4px 8px",
1983
1791
  borderRadius: "4px",
1984
1792
  border: "none",
1985
- background: sortField === field ? theme2.colors.primary : theme2.colors.backgroundSecondary,
1986
- color: sortField === field ? theme2.colors.background : theme2.colors.text,
1987
- fontSize: `${theme2.fontSizes[1]}px`,
1793
+ background: sortField === field ? theme.colors.primary : theme.colors.backgroundSecondary,
1794
+ color: sortField === field ? theme.colors.background : theme.colors.text,
1795
+ fontSize: `${theme.fontSizes[1]}px`,
1988
1796
  cursor: "pointer",
1989
1797
  textTransform: "capitalize"
1990
1798
  },
@@ -1997,7 +1805,7 @@ const OwnerRepositoriesPanelContent = ({
1997
1805
  ))
1998
1806
  ] }),
1999
1807
  languages.length > 0 && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "4px", marginLeft: "auto" }, children: [
2000
- /* @__PURE__ */ jsx(Funnel, { size: 14, color: theme2.colors.textSecondary }),
1808
+ /* @__PURE__ */ jsx(Funnel, { size: 14, color: theme.colors.textSecondary }),
2001
1809
  /* @__PURE__ */ jsxs(
2002
1810
  "select",
2003
1811
  {
@@ -2006,10 +1814,10 @@ const OwnerRepositoriesPanelContent = ({
2006
1814
  style: {
2007
1815
  padding: "4px 8px",
2008
1816
  borderRadius: "4px",
2009
- border: `1px solid ${theme2.colors.border}`,
2010
- background: theme2.colors.backgroundSecondary,
2011
- color: theme2.colors.text,
2012
- fontSize: `${theme2.fontSizes[1]}px`,
1817
+ border: `1px solid ${theme.colors.border}`,
1818
+ background: theme.colors.backgroundSecondary,
1819
+ color: theme.colors.text,
1820
+ fontSize: `${theme.fontSizes[1]}px`,
2013
1821
  cursor: "pointer"
2014
1822
  },
2015
1823
  children: [
@@ -2032,7 +1840,7 @@ const OwnerRepositoriesPanelContent = ({
2032
1840
  alignItems: "center",
2033
1841
  justifyContent: "center",
2034
1842
  gap: "16px",
2035
- color: theme2.colors.textSecondary
1843
+ color: theme.colors.textSecondary
2036
1844
  },
2037
1845
  children: [
2038
1846
  /* @__PURE__ */ jsx(
@@ -2041,8 +1849,8 @@ const OwnerRepositoriesPanelContent = ({
2041
1849
  style: {
2042
1850
  width: 32,
2043
1851
  height: 32,
2044
- border: `3px solid ${theme2.colors.border}`,
2045
- borderTopColor: theme2.colors.primary,
1852
+ border: `3px solid ${theme.colors.border}`,
1853
+ borderTopColor: theme.colors.primary,
2046
1854
  borderRadius: "50%",
2047
1855
  animation: "spin 1s linear infinite"
2048
1856
  }
@@ -2071,8 +1879,8 @@ const OwnerRepositoriesPanelContent = ({
2071
1879
  style: {
2072
1880
  padding: "16px 24px",
2073
1881
  borderRadius: "8px",
2074
- backgroundColor: `${theme2.colors.error}15`,
2075
- color: theme2.colors.error,
1882
+ backgroundColor: `${theme.colors.error}15`,
1883
+ color: theme.colors.error,
2076
1884
  marginBottom: "16px"
2077
1885
  },
2078
1886
  children: error
@@ -2086,10 +1894,10 @@ const OwnerRepositoriesPanelContent = ({
2086
1894
  padding: "8px 16px",
2087
1895
  borderRadius: "6px",
2088
1896
  border: "none",
2089
- background: theme2.colors.primary,
2090
- color: theme2.colors.background,
1897
+ background: theme.colors.primary,
1898
+ color: theme.colors.background,
2091
1899
  cursor: "pointer",
2092
- fontWeight: theme2.fontWeights.medium
1900
+ fontWeight: theme.fontWeights.medium
2093
1901
  },
2094
1902
  children: "Try Again"
2095
1903
  }
@@ -2107,10 +1915,10 @@ const OwnerRepositoriesPanelContent = ({
2107
1915
  alignItems: "center",
2108
1916
  justifyContent: "center",
2109
1917
  padding: "32px",
2110
- color: theme2.colors.textSecondary
1918
+ color: theme.colors.textSecondary
2111
1919
  },
2112
1920
  children: [
2113
- /* @__PURE__ */ jsx(Github, { size: 48, color: theme2.colors.border, style: { marginBottom: 16 } }),
1921
+ /* @__PURE__ */ jsx(Github, { size: 48, color: theme.colors.border, style: { marginBottom: 16 } }),
2114
1922
  /* @__PURE__ */ jsx("p", { style: { margin: 0 }, children: "No public repositories found" })
2115
1923
  ]
2116
1924
  }
@@ -2134,8 +1942,8 @@ const OwnerRepositoriesPanelContent = ({
2134
1942
  padding: "12px",
2135
1943
  margin: "4px 0",
2136
1944
  borderRadius: "8px",
2137
- border: selectedRepoId === repo.id ? `2px solid ${theme2.colors.primary}` : `1px solid ${theme2.colors.border}`,
2138
- backgroundColor: selectedRepoId === repo.id ? `${theme2.colors.primary}10` : theme2.colors.surface,
1945
+ border: selectedRepoId === repo.id ? `2px solid ${theme.colors.primary}` : `1px solid ${theme.colors.border}`,
1946
+ backgroundColor: selectedRepoId === repo.id ? `${theme.colors.primary}10` : theme.colors.surface,
2139
1947
  cursor: "pointer",
2140
1948
  textAlign: "left",
2141
1949
  display: "flex",
@@ -2149,9 +1957,9 @@ const OwnerRepositoriesPanelContent = ({
2149
1957
  "span",
2150
1958
  {
2151
1959
  style: {
2152
- fontSize: `${theme2.fontSizes[2]}px`,
2153
- fontWeight: theme2.fontWeights.semibold,
2154
- color: theme2.colors.primary
1960
+ fontSize: `${theme.fontSizes[2]}px`,
1961
+ fontWeight: theme.fontWeights.semibold,
1962
+ color: theme.colors.primary
2155
1963
  },
2156
1964
  children: repo.name
2157
1965
  }
@@ -2160,11 +1968,11 @@ const OwnerRepositoriesPanelContent = ({
2160
1968
  "span",
2161
1969
  {
2162
1970
  style: {
2163
- fontSize: `${theme2.fontSizes[0]}px`,
1971
+ fontSize: `${theme.fontSizes[0]}px`,
2164
1972
  padding: "2px 6px",
2165
1973
  borderRadius: "4px",
2166
- backgroundColor: theme2.colors.warning + "20",
2167
- color: theme2.colors.warning
1974
+ backgroundColor: theme.colors.warning + "20",
1975
+ color: theme.colors.warning
2168
1976
  },
2169
1977
  children: "Archived"
2170
1978
  }
@@ -2173,11 +1981,11 @@ const OwnerRepositoriesPanelContent = ({
2173
1981
  "span",
2174
1982
  {
2175
1983
  style: {
2176
- fontSize: `${theme2.fontSizes[0]}px`,
1984
+ fontSize: `${theme.fontSizes[0]}px`,
2177
1985
  padding: "2px 6px",
2178
1986
  borderRadius: "4px",
2179
- backgroundColor: theme2.colors.backgroundTertiary,
2180
- color: theme2.colors.textSecondary
1987
+ backgroundColor: theme.colors.backgroundTertiary,
1988
+ color: theme.colors.textSecondary
2181
1989
  },
2182
1990
  children: "Fork"
2183
1991
  }
@@ -2188,8 +1996,8 @@ const OwnerRepositoriesPanelContent = ({
2188
1996
  {
2189
1997
  style: {
2190
1998
  margin: 0,
2191
- fontSize: `${theme2.fontSizes[1]}px`,
2192
- color: theme2.colors.textSecondary,
1999
+ fontSize: `${theme.fontSizes[1]}px`,
2000
+ color: theme.colors.textSecondary,
2193
2001
  overflow: "hidden",
2194
2002
  textOverflow: "ellipsis",
2195
2003
  display: "-webkit-box",
@@ -2206,8 +2014,8 @@ const OwnerRepositoriesPanelContent = ({
2206
2014
  display: "flex",
2207
2015
  alignItems: "center",
2208
2016
  gap: "16px",
2209
- fontSize: `${theme2.fontSizes[1]}px`,
2210
- color: theme2.colors.textSecondary
2017
+ fontSize: `${theme.fontSizes[1]}px`,
2018
+ color: theme.colors.textSecondary
2211
2019
  },
2212
2020
  children: [
2213
2021
  repo.language && /* @__PURE__ */ jsxs("span", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
@@ -2218,7 +2026,7 @@ const OwnerRepositoriesPanelContent = ({
2218
2026
  width: 10,
2219
2027
  height: 10,
2220
2028
  borderRadius: "50%",
2221
- backgroundColor: theme2.colors.info
2029
+ backgroundColor: theme.colors.info
2222
2030
  }
2223
2031
  }
2224
2032
  ),
@@ -2245,7 +2053,7 @@ const OwnerRepositoriesPanelContent = ({
2245
2053
  onClick: (e) => e.stopPropagation(),
2246
2054
  style: {
2247
2055
  marginLeft: "auto",
2248
- color: theme2.colors.textSecondary,
2056
+ color: theme.colors.textSecondary,
2249
2057
  display: "flex",
2250
2058
  alignItems: "center"
2251
2059
  },
@@ -2271,10 +2079,10 @@ const OwnerRepositoriesPanelContent = ({
2271
2079
  alignItems: "center",
2272
2080
  justifyContent: "center",
2273
2081
  padding: "32px",
2274
- color: theme2.colors.textSecondary
2082
+ color: theme.colors.textSecondary
2275
2083
  },
2276
2084
  children: [
2277
- /* @__PURE__ */ jsx(Funnel, { size: 48, color: theme2.colors.border, style: { marginBottom: 16 } }),
2085
+ /* @__PURE__ */ jsx(Funnel, { size: 48, color: theme.colors.border, style: { marginBottom: 16 } }),
2278
2086
  /* @__PURE__ */ jsx("p", { style: { margin: 0 }, children: "No repositories match the current filter" }),
2279
2087
  /* @__PURE__ */ jsx(
2280
2088
  "button",
@@ -2284,9 +2092,9 @@ const OwnerRepositoriesPanelContent = ({
2284
2092
  marginTop: "12px",
2285
2093
  padding: "8px 16px",
2286
2094
  borderRadius: "6px",
2287
- border: `1px solid ${theme2.colors.border}`,
2095
+ border: `1px solid ${theme.colors.border}`,
2288
2096
  background: "transparent",
2289
- color: theme2.colors.text,
2097
+ color: theme.colors.text,
2290
2098
  cursor: "pointer"
2291
2099
  },
2292
2100
  children: "Clear filter"
@@ -2305,7 +2113,7 @@ const OwnerRepositoriesPanelContent = ({
2305
2113
  );
2306
2114
  };
2307
2115
  const OwnerRepositoriesPanel = (props) => {
2308
- return /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(OwnerRepositoriesPanelContent, { ...props }) });
2116
+ return /* @__PURE__ */ jsx(OwnerRepositoriesPanelContent, { ...props });
2309
2117
  };
2310
2118
  const OwnerRepositoriesPanelMetadata = {
2311
2119
  id: "owner-repositories",
@@ -2402,7 +2210,7 @@ const RecentRepositoriesPanelContent = ({
2402
2210
  events,
2403
2211
  onNavigate
2404
2212
  }) => {
2405
- const { theme: theme2 } = useTheme();
2213
+ const { theme } = useTheme();
2406
2214
  const [items, setItems] = useState([]);
2407
2215
  const [selectedId, setSelectedId] = useState(null);
2408
2216
  const [hoveredId, setHoveredId] = useState(null);
@@ -2574,9 +2382,9 @@ const RecentRepositoriesPanelContent = ({
2574
2382
  height: "100%",
2575
2383
  display: "flex",
2576
2384
  flexDirection: "column",
2577
- backgroundColor: theme2.colors.background,
2578
- color: theme2.colors.text,
2579
- fontFamily: theme2.fonts.body
2385
+ backgroundColor: theme.colors.background,
2386
+ color: theme.colors.text,
2387
+ fontFamily: theme.fonts.body
2580
2388
  },
2581
2389
  children: [
2582
2390
  /* @__PURE__ */ jsxs(
@@ -2584,21 +2392,21 @@ const RecentRepositoriesPanelContent = ({
2584
2392
  {
2585
2393
  style: {
2586
2394
  padding: "16px",
2587
- borderBottom: `1px solid ${theme2.colors.border}`,
2395
+ borderBottom: `1px solid ${theme.colors.border}`,
2588
2396
  display: "flex",
2589
2397
  alignItems: "center",
2590
2398
  justifyContent: "space-between"
2591
2399
  },
2592
2400
  children: [
2593
2401
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
2594
- /* @__PURE__ */ jsx(History, { size: 24, color: theme2.colors.primary }),
2402
+ /* @__PURE__ */ jsx(History, { size: 24, color: theme.colors.primary }),
2595
2403
  /* @__PURE__ */ jsx(
2596
2404
  "h2",
2597
2405
  {
2598
2406
  style: {
2599
2407
  margin: 0,
2600
- fontSize: `${theme2.fontSizes[3]}px`,
2601
- fontWeight: theme2.fontWeights.semibold
2408
+ fontSize: `${theme.fontSizes[3]}px`,
2409
+ fontWeight: theme.fontWeights.semibold
2602
2410
  },
2603
2411
  children: "Recent"
2604
2412
  }
@@ -2611,11 +2419,11 @@ const RecentRepositoriesPanelContent = ({
2611
2419
  style: {
2612
2420
  padding: "6px 12px",
2613
2421
  borderRadius: "6px",
2614
- border: `1px solid ${theme2.colors.border}`,
2422
+ border: `1px solid ${theme.colors.border}`,
2615
2423
  background: "transparent",
2616
2424
  cursor: "pointer",
2617
- color: theme2.colors.textSecondary,
2618
- fontSize: `${theme2.fontSizes[1]}px`,
2425
+ color: theme.colors.textSecondary,
2426
+ fontSize: `${theme.fontSizes[1]}px`,
2619
2427
  display: "flex",
2620
2428
  alignItems: "center",
2621
2429
  gap: "6px"
@@ -2635,7 +2443,7 @@ const RecentRepositoriesPanelContent = ({
2635
2443
  {
2636
2444
  style: {
2637
2445
  padding: "8px 16px",
2638
- borderBottom: `1px solid ${theme2.colors.border}`,
2446
+ borderBottom: `1px solid ${theme.colors.border}`,
2639
2447
  display: "flex",
2640
2448
  gap: "4px"
2641
2449
  },
@@ -2651,11 +2459,11 @@ const RecentRepositoriesPanelContent = ({
2651
2459
  padding: "6px 12px",
2652
2460
  borderRadius: "6px",
2653
2461
  border: "none",
2654
- background: filter === key ? theme2.colors.primary : theme2.colors.backgroundSecondary,
2655
- color: filter === key ? "#fff" : theme2.colors.text,
2656
- fontSize: `${theme2.fontSizes[1]}px`,
2462
+ background: filter === key ? theme.colors.primary : theme.colors.backgroundSecondary,
2463
+ color: filter === key ? "#fff" : theme.colors.text,
2464
+ fontSize: `${theme.fontSizes[1]}px`,
2657
2465
  cursor: "pointer",
2658
- fontWeight: filter === key ? theme2.fontWeights.semibold : theme2.fontWeights.body
2466
+ fontWeight: filter === key ? theme.fontWeights.semibold : theme.fontWeights.body
2659
2467
  },
2660
2468
  children: label
2661
2469
  },
@@ -2673,12 +2481,12 @@ const RecentRepositoriesPanelContent = ({
2673
2481
  alignItems: "center",
2674
2482
  justifyContent: "center",
2675
2483
  padding: "32px",
2676
- color: theme2.colors.textSecondary
2484
+ color: theme.colors.textSecondary
2677
2485
  },
2678
2486
  children: [
2679
- /* @__PURE__ */ jsx(Github, { size: 48, color: theme2.colors.border, style: { marginBottom: 16 } }),
2680
- /* @__PURE__ */ jsx("p", { style: { margin: 0, fontSize: `${theme2.fontSizes[2]}px` }, children: items.length === 0 ? "No recent activity" : "No items match filter" }),
2681
- /* @__PURE__ */ jsx("p", { style: { margin: "8px 0 0", fontSize: `${theme2.fontSizes[1]}px` }, children: items.length === 0 ? "Repositories and owners you visit will appear here" : "Try a different filter" })
2487
+ /* @__PURE__ */ jsx(Github, { size: 48, color: theme.colors.border, style: { marginBottom: 16 } }),
2488
+ /* @__PURE__ */ jsx("p", { style: { margin: 0, fontSize: `${theme.fontSizes[2]}px` }, children: items.length === 0 ? "No recent activity" : "No items match filter" }),
2489
+ /* @__PURE__ */ jsx("p", { style: { margin: "8px 0 0", fontSize: `${theme.fontSizes[1]}px` }, children: items.length === 0 ? "Repositories and owners you visit will appear here" : "Try a different filter" })
2682
2490
  ]
2683
2491
  }
2684
2492
  ),
@@ -2708,8 +2516,8 @@ const RecentRepositoriesPanelContent = ({
2708
2516
  padding: "12px",
2709
2517
  margin: "4px 0",
2710
2518
  borderRadius: "8px",
2711
- border: isSelected ? `2px solid ${theme2.colors.primary}` : `1px solid ${theme2.colors.border}`,
2712
- backgroundColor: isSelected ? `${theme2.colors.primary}10` : theme2.colors.surface,
2519
+ border: isSelected ? `2px solid ${theme.colors.primary}` : `1px solid ${theme.colors.border}`,
2520
+ backgroundColor: isSelected ? `${theme.colors.primary}10` : theme.colors.surface,
2713
2521
  cursor: "pointer",
2714
2522
  textAlign: "left",
2715
2523
  display: "flex",
@@ -2730,9 +2538,9 @@ const RecentRepositoriesPanelContent = ({
2730
2538
  padding: "4px",
2731
2539
  borderRadius: "4px",
2732
2540
  border: "none",
2733
- background: theme2.colors.backgroundSecondary,
2541
+ background: theme.colors.backgroundSecondary,
2734
2542
  cursor: "pointer",
2735
- color: theme2.colors.textSecondary,
2543
+ color: theme.colors.textSecondary,
2736
2544
  display: "flex",
2737
2545
  alignItems: "center",
2738
2546
  justifyContent: "center"
@@ -2742,7 +2550,7 @@ const RecentRepositoriesPanelContent = ({
2742
2550
  }
2743
2551
  ),
2744
2552
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
2745
- /* @__PURE__ */ jsx(BookOpen, { size: 16, color: theme2.colors.textSecondary }),
2553
+ /* @__PURE__ */ jsx(BookOpen, { size: 16, color: theme.colors.textSecondary }),
2746
2554
  item.owner.avatar_url && /* @__PURE__ */ jsx(
2747
2555
  "img",
2748
2556
  {
@@ -2752,7 +2560,7 @@ const RecentRepositoriesPanelContent = ({
2752
2560
  width: 24,
2753
2561
  height: 24,
2754
2562
  borderRadius: "50%",
2755
- border: `1px solid ${theme2.colors.border}`
2563
+ border: `1px solid ${theme.colors.border}`
2756
2564
  }
2757
2565
  }
2758
2566
  ),
@@ -2761,8 +2569,8 @@ const RecentRepositoriesPanelContent = ({
2761
2569
  "span",
2762
2570
  {
2763
2571
  style: {
2764
- fontSize: `${theme2.fontSizes[1]}px`,
2765
- color: theme2.colors.textSecondary
2572
+ fontSize: `${theme.fontSizes[1]}px`,
2573
+ color: theme.colors.textSecondary
2766
2574
  },
2767
2575
  children: item.owner.login
2768
2576
  }
@@ -2771,9 +2579,9 @@ const RecentRepositoriesPanelContent = ({
2771
2579
  "span",
2772
2580
  {
2773
2581
  style: {
2774
- fontSize: `${theme2.fontSizes[2]}px`,
2775
- fontWeight: theme2.fontWeights.semibold,
2776
- color: theme2.colors.primary
2582
+ fontSize: `${theme.fontSizes[2]}px`,
2583
+ fontWeight: theme.fontWeights.semibold,
2584
+ color: theme.colors.primary
2777
2585
  },
2778
2586
  children: item.name
2779
2587
  }
@@ -2785,8 +2593,8 @@ const RecentRepositoriesPanelContent = ({
2785
2593
  {
2786
2594
  style: {
2787
2595
  margin: 0,
2788
- fontSize: `${theme2.fontSizes[1]}px`,
2789
- color: theme2.colors.textSecondary,
2596
+ fontSize: `${theme.fontSizes[1]}px`,
2597
+ color: theme.colors.textSecondary,
2790
2598
  overflow: "hidden",
2791
2599
  textOverflow: "ellipsis",
2792
2600
  display: "-webkit-box",
@@ -2803,8 +2611,8 @@ const RecentRepositoriesPanelContent = ({
2803
2611
  display: "flex",
2804
2612
  alignItems: "center",
2805
2613
  gap: "16px",
2806
- fontSize: `${theme2.fontSizes[1]}px`,
2807
- color: theme2.colors.textSecondary
2614
+ fontSize: `${theme.fontSizes[1]}px`,
2615
+ color: theme.colors.textSecondary
2808
2616
  },
2809
2617
  children: [
2810
2618
  item.language && /* @__PURE__ */ jsxs("span", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
@@ -2815,7 +2623,7 @@ const RecentRepositoriesPanelContent = ({
2815
2623
  width: 10,
2816
2624
  height: 10,
2817
2625
  borderRadius: "50%",
2818
- backgroundColor: theme2.colors.info
2626
+ backgroundColor: theme.colors.info
2819
2627
  }
2820
2628
  }
2821
2629
  ),
@@ -2842,7 +2650,7 @@ const RecentRepositoriesPanelContent = ({
2842
2650
  onClick: (e) => e.stopPropagation(),
2843
2651
  style: {
2844
2652
  marginLeft: "auto",
2845
- color: theme2.colors.textSecondary,
2653
+ color: theme.colors.textSecondary,
2846
2654
  display: "flex",
2847
2655
  alignItems: "center"
2848
2656
  },
@@ -2870,8 +2678,8 @@ const RecentRepositoriesPanelContent = ({
2870
2678
  padding: "12px",
2871
2679
  margin: "4px 0",
2872
2680
  borderRadius: "8px",
2873
- border: isSelected ? `2px solid ${theme2.colors.primary}` : `1px solid ${theme2.colors.border}`,
2874
- backgroundColor: isSelected ? `${theme2.colors.primary}10` : theme2.colors.surface,
2681
+ border: isSelected ? `2px solid ${theme.colors.primary}` : `1px solid ${theme.colors.border}`,
2682
+ backgroundColor: isSelected ? `${theme.colors.primary}10` : theme.colors.surface,
2875
2683
  cursor: "pointer",
2876
2684
  textAlign: "left",
2877
2685
  display: "flex",
@@ -2892,9 +2700,9 @@ const RecentRepositoriesPanelContent = ({
2892
2700
  padding: "4px",
2893
2701
  borderRadius: "4px",
2894
2702
  border: "none",
2895
- background: theme2.colors.backgroundSecondary,
2703
+ background: theme.colors.backgroundSecondary,
2896
2704
  cursor: "pointer",
2897
- color: theme2.colors.textSecondary,
2705
+ color: theme.colors.textSecondary,
2898
2706
  display: "flex",
2899
2707
  alignItems: "center",
2900
2708
  justifyContent: "center"
@@ -2904,7 +2712,7 @@ const RecentRepositoriesPanelContent = ({
2904
2712
  }
2905
2713
  ),
2906
2714
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
2907
- item.ownerType === "Organization" ? /* @__PURE__ */ jsx(Building2, { size: 16, color: theme2.colors.textSecondary }) : /* @__PURE__ */ jsx(User, { size: 16, color: theme2.colors.textSecondary }),
2715
+ item.ownerType === "Organization" ? /* @__PURE__ */ jsx(Building2, { size: 16, color: theme.colors.textSecondary }) : /* @__PURE__ */ jsx(User, { size: 16, color: theme.colors.textSecondary }),
2908
2716
  item.avatar_url && /* @__PURE__ */ jsx(
2909
2717
  "img",
2910
2718
  {
@@ -2914,7 +2722,7 @@ const RecentRepositoriesPanelContent = ({
2914
2722
  width: 32,
2915
2723
  height: 32,
2916
2724
  borderRadius: item.ownerType === "Organization" ? 8 : "50%",
2917
- border: `1px solid ${theme2.colors.border}`
2725
+ border: `1px solid ${theme.colors.border}`
2918
2726
  }
2919
2727
  }
2920
2728
  ),
@@ -2923,9 +2731,9 @@ const RecentRepositoriesPanelContent = ({
2923
2731
  "span",
2924
2732
  {
2925
2733
  style: {
2926
- fontSize: `${theme2.fontSizes[2]}px`,
2927
- fontWeight: theme2.fontWeights.semibold,
2928
- color: theme2.colors.primary
2734
+ fontSize: `${theme.fontSizes[2]}px`,
2735
+ fontWeight: theme.fontWeights.semibold,
2736
+ color: theme.colors.primary
2929
2737
  },
2930
2738
  children: item.name || item.login
2931
2739
  }
@@ -2934,8 +2742,8 @@ const RecentRepositoriesPanelContent = ({
2934
2742
  "span",
2935
2743
  {
2936
2744
  style: {
2937
- fontSize: `${theme2.fontSizes[1]}px`,
2938
- color: theme2.colors.textSecondary
2745
+ fontSize: `${theme.fontSizes[1]}px`,
2746
+ color: theme.colors.textSecondary
2939
2747
  },
2940
2748
  children: [
2941
2749
  "@",
@@ -2950,8 +2758,8 @@ const RecentRepositoriesPanelContent = ({
2950
2758
  {
2951
2759
  style: {
2952
2760
  margin: 0,
2953
- fontSize: `${theme2.fontSizes[1]}px`,
2954
- color: theme2.colors.textSecondary,
2761
+ fontSize: `${theme.fontSizes[1]}px`,
2762
+ color: theme.colors.textSecondary,
2955
2763
  overflow: "hidden",
2956
2764
  textOverflow: "ellipsis",
2957
2765
  display: "-webkit-box",
@@ -2968,8 +2776,8 @@ const RecentRepositoriesPanelContent = ({
2968
2776
  display: "flex",
2969
2777
  alignItems: "center",
2970
2778
  gap: "16px",
2971
- fontSize: `${theme2.fontSizes[1]}px`,
2972
- color: theme2.colors.textSecondary
2779
+ fontSize: `${theme.fontSizes[1]}px`,
2780
+ color: theme.colors.textSecondary
2973
2781
  },
2974
2782
  children: [
2975
2783
  item.public_repos !== void 0 && /* @__PURE__ */ jsxs("span", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
@@ -2995,7 +2803,7 @@ const RecentRepositoriesPanelContent = ({
2995
2803
  onClick: (e) => e.stopPropagation(),
2996
2804
  style: {
2997
2805
  marginLeft: "auto",
2998
- color: theme2.colors.textSecondary,
2806
+ color: theme.colors.textSecondary,
2999
2807
  display: "flex",
3000
2808
  alignItems: "center"
3001
2809
  },
@@ -3017,7 +2825,7 @@ const RecentRepositoriesPanelContent = ({
3017
2825
  );
3018
2826
  };
3019
2827
  const RecentRepositoriesPanel = (props) => {
3020
- return /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(RecentRepositoriesPanelContent, { ...props }) });
2828
+ return /* @__PURE__ */ jsx(RecentRepositoriesPanelContent, { ...props });
3021
2829
  };
3022
2830
  const RecentRepositoriesPanelMetadata = {
3023
2831
  id: "recent-repositories",
@@ -3191,14 +2999,14 @@ function parseGitHubInput(input) {
3191
2999
  }
3192
3000
  return null;
3193
3001
  }
3194
- const FeatureCard = ({ icon, title, description, theme: theme2 }) => /* @__PURE__ */ jsxs(
3002
+ const FeatureCard = ({ icon, title, description, theme }) => /* @__PURE__ */ jsxs(
3195
3003
  "div",
3196
3004
  {
3197
3005
  style: {
3198
3006
  padding: "24px",
3199
3007
  borderRadius: "12px",
3200
- backgroundColor: theme2.colors.surface,
3201
- border: `1px solid ${theme2.colors.border}`,
3008
+ backgroundColor: theme.colors.surface,
3009
+ border: `1px solid ${theme.colors.border}`,
3202
3010
  display: "flex",
3203
3011
  flexDirection: "column",
3204
3012
  alignItems: "center",
@@ -3215,11 +3023,11 @@ const FeatureCard = ({ icon, title, description, theme: theme2 }) => /* @__PURE_
3215
3023
  width: 48,
3216
3024
  height: 48,
3217
3025
  borderRadius: "10px",
3218
- backgroundColor: `${theme2.colors.primary}15`,
3026
+ backgroundColor: `${theme.colors.primary}15`,
3219
3027
  display: "flex",
3220
3028
  alignItems: "center",
3221
3029
  justifyContent: "center",
3222
- color: theme2.colors.primary
3030
+ color: theme.colors.primary
3223
3031
  },
3224
3032
  children: icon
3225
3033
  }
@@ -3229,9 +3037,9 @@ const FeatureCard = ({ icon, title, description, theme: theme2 }) => /* @__PURE_
3229
3037
  {
3230
3038
  style: {
3231
3039
  margin: 0,
3232
- fontSize: `${theme2.fontSizes[3]}px`,
3233
- fontWeight: theme2.fontWeights.semibold,
3234
- color: theme2.colors.text
3040
+ fontSize: `${theme.fontSizes[3]}px`,
3041
+ fontWeight: theme.fontWeights.semibold,
3042
+ color: theme.colors.text
3235
3043
  },
3236
3044
  children: title
3237
3045
  }
@@ -3241,8 +3049,8 @@ const FeatureCard = ({ icon, title, description, theme: theme2 }) => /* @__PURE_
3241
3049
  {
3242
3050
  style: {
3243
3051
  margin: 0,
3244
- fontSize: `${theme2.fontSizes[2]}px`,
3245
- color: theme2.colors.textSecondary,
3052
+ fontSize: `${theme.fontSizes[2]}px`,
3053
+ color: theme.colors.textSecondary,
3246
3054
  lineHeight: 1.5
3247
3055
  },
3248
3056
  children: description
@@ -3251,10 +3059,15 @@ const FeatureCard = ({ icon, title, description, theme: theme2 }) => /* @__PURE_
3251
3059
  ]
3252
3060
  }
3253
3061
  );
3254
- const WelcomePanelContent = ({
3255
- onNavigate
3062
+ const defaultHighlightedProjects = [
3063
+ { owner: "facebook", repo: "react" },
3064
+ { owner: "vercel", repo: "next.js" }
3065
+ ];
3066
+ const WelcomePanel = ({
3067
+ onNavigate,
3068
+ highlightedProjects = defaultHighlightedProjects
3256
3069
  }) => {
3257
- const { theme: theme2 } = useTheme();
3070
+ const { theme } = useTheme();
3258
3071
  const [repoInput, setRepoInput] = useState("");
3259
3072
  const [error, setError] = useState(null);
3260
3073
  const handleSubmit = useCallback((e) => {
@@ -3271,6 +3084,13 @@ const WelcomePanelContent = ({
3271
3084
  window.location.href = `/${parsed.owner}/${parsed.repo}`;
3272
3085
  }
3273
3086
  }, [repoInput, onNavigate]);
3087
+ const handleProjectClick = useCallback((project) => {
3088
+ if (onNavigate) {
3089
+ onNavigate(project.owner, project.repo);
3090
+ } else {
3091
+ window.location.href = `/${project.owner}/${project.repo}`;
3092
+ }
3093
+ }, [onNavigate]);
3274
3094
  return /* @__PURE__ */ jsxs(
3275
3095
  "div",
3276
3096
  {
@@ -3278,9 +3098,9 @@ const WelcomePanelContent = ({
3278
3098
  height: "100%",
3279
3099
  display: "flex",
3280
3100
  flexDirection: "column",
3281
- backgroundColor: theme2.colors.background,
3282
- color: theme2.colors.text,
3283
- fontFamily: theme2.fonts.body,
3101
+ backgroundColor: theme.colors.background,
3102
+ color: theme.colors.text,
3103
+ fontFamily: theme.fonts.body,
3284
3104
  overflowY: "auto"
3285
3105
  },
3286
3106
  children: [
@@ -3293,7 +3113,7 @@ const WelcomePanelContent = ({
3293
3113
  flexDirection: "column",
3294
3114
  alignItems: "center",
3295
3115
  textAlign: "center",
3296
- borderBottom: `1px solid ${theme2.colors.border}`
3116
+ borderBottom: `1px solid ${theme.colors.border}`
3297
3117
  },
3298
3118
  children: [
3299
3119
  /* @__PURE__ */ jsxs(
@@ -3311,16 +3131,16 @@ const WelcomePanelContent = ({
3311
3131
  {
3312
3132
  width: 56,
3313
3133
  height: 56,
3314
- color: theme2.colors.primary
3134
+ color: theme.colors.primary
3315
3135
  }
3316
3136
  ),
3317
3137
  /* @__PURE__ */ jsx(
3318
3138
  "span",
3319
3139
  {
3320
3140
  style: {
3321
- fontSize: `${theme2.fontSizes[6] || 32}px`,
3322
- fontWeight: theme2.fontWeights.bold,
3323
- color: theme2.colors.text
3141
+ fontSize: `${theme.fontSizes[6] || 32}px`,
3142
+ fontWeight: theme.fontWeights.bold,
3143
+ color: theme.colors.text
3324
3144
  },
3325
3145
  children: "Principal AI"
3326
3146
  }
@@ -3330,7 +3150,7 @@ const WelcomePanelContent = ({
3330
3150
  {
3331
3151
  width: 56,
3332
3152
  height: 56,
3333
- color: theme2.colors.primary
3153
+ color: theme.colors.primary
3334
3154
  }
3335
3155
  )
3336
3156
  ]
@@ -3341,9 +3161,9 @@ const WelcomePanelContent = ({
3341
3161
  {
3342
3162
  style: {
3343
3163
  margin: "0 0 32px",
3344
- fontSize: `${theme2.fontSizes[6] || 32}px`,
3345
- fontWeight: theme2.fontWeights.bold,
3346
- color: theme2.colors.text
3164
+ fontSize: `${theme.fontSizes[6] || 32}px`,
3165
+ fontWeight: theme.fontWeights.bold,
3166
+ color: theme.colors.text
3347
3167
  },
3348
3168
  children: "Explore software like never before"
3349
3169
  }
@@ -3365,8 +3185,8 @@ const WelcomePanelContent = ({
3365
3185
  gap: "8px",
3366
3186
  padding: "6px",
3367
3187
  borderRadius: "12px",
3368
- backgroundColor: theme2.colors.surface,
3369
- border: `2px solid ${error ? theme2.colors.error : theme2.colors.border}`
3188
+ backgroundColor: theme.colors.surface,
3189
+ border: `2px solid ${error ? theme.colors.error : theme.colors.border}`
3370
3190
  },
3371
3191
  children: [
3372
3192
  /* @__PURE__ */ jsx(
@@ -3376,7 +3196,7 @@ const WelcomePanelContent = ({
3376
3196
  display: "flex",
3377
3197
  alignItems: "center",
3378
3198
  paddingLeft: "12px",
3379
- color: theme2.colors.textSecondary
3199
+ color: theme.colors.textSecondary
3380
3200
  },
3381
3201
  children: /* @__PURE__ */ jsx(Github, { size: 20 })
3382
3202
  }
@@ -3396,8 +3216,8 @@ const WelcomePanelContent = ({
3396
3216
  padding: "12px 8px",
3397
3217
  border: "none",
3398
3218
  background: "transparent",
3399
- color: theme2.colors.text,
3400
- fontSize: `${theme2.fontSizes[2]}px`,
3219
+ color: theme.colors.text,
3220
+ fontSize: `${theme.fontSizes[2]}px`,
3401
3221
  outline: "none"
3402
3222
  }
3403
3223
  }
@@ -3410,10 +3230,10 @@ const WelcomePanelContent = ({
3410
3230
  padding: "12px 20px",
3411
3231
  borderRadius: "8px",
3412
3232
  border: "none",
3413
- backgroundColor: theme2.colors.primary,
3233
+ backgroundColor: theme.colors.primary,
3414
3234
  color: "#fff",
3415
- fontSize: `${theme2.fontSizes[2]}px`,
3416
- fontWeight: theme2.fontWeights.semibold,
3235
+ fontSize: `${theme.fontSizes[2]}px`,
3236
+ fontWeight: theme.fontWeights.semibold,
3417
3237
  cursor: "pointer",
3418
3238
  display: "flex",
3419
3239
  alignItems: "center",
@@ -3433,8 +3253,8 @@ const WelcomePanelContent = ({
3433
3253
  {
3434
3254
  style: {
3435
3255
  margin: "8px 0 0",
3436
- fontSize: `${theme2.fontSizes[1]}px`,
3437
- color: theme2.colors.error
3256
+ fontSize: `${theme.fontSizes[1]}px`,
3257
+ color: theme.colors.error
3438
3258
  },
3439
3259
  children: error
3440
3260
  }
@@ -3465,13 +3285,22 @@ const WelcomePanelContent = ({
3465
3285
  maxWidth: "900px"
3466
3286
  },
3467
3287
  children: [
3288
+ /* @__PURE__ */ jsx(
3289
+ FeatureCard,
3290
+ {
3291
+ icon: /* @__PURE__ */ jsx(BookOpen, { size: 24 }),
3292
+ title: "Reliable Documentation",
3293
+ description: "Always up-to-date documentation generated directly from your codebase, never out of sync.",
3294
+ theme
3295
+ }
3296
+ ),
3468
3297
  /* @__PURE__ */ jsx(
3469
3298
  FeatureCard,
3470
3299
  {
3471
3300
  icon: /* @__PURE__ */ jsx(Network, { size: 24 }),
3472
3301
  title: "Interactive Diagrams",
3473
3302
  description: "Visualize repository structure, dependencies, and architecture with auto-generated diagrams you can explore.",
3474
- theme: theme2
3303
+ theme
3475
3304
  }
3476
3305
  ),
3477
3306
  /* @__PURE__ */ jsx(
@@ -3480,16 +3309,7 @@ const WelcomePanelContent = ({
3480
3309
  icon: /* @__PURE__ */ jsx(MessageSquare, { size: 24 }),
3481
3310
  title: "Chat with Code",
3482
3311
  description: "Ask questions about any repository and get instant, context-aware answers powered by AI.",
3483
- theme: theme2
3484
- }
3485
- ),
3486
- /* @__PURE__ */ jsx(
3487
- FeatureCard,
3488
- {
3489
- icon: /* @__PURE__ */ jsx(BookOpen, { size: 24 }),
3490
- title: "Reliable Documentation",
3491
- description: "Always up-to-date documentation generated directly from your codebase, never out of sync.",
3492
- theme: theme2
3312
+ theme
3493
3313
  }
3494
3314
  )
3495
3315
  ]
@@ -3497,7 +3317,7 @@ const WelcomePanelContent = ({
3497
3317
  )
3498
3318
  }
3499
3319
  ),
3500
- /* @__PURE__ */ jsx(
3320
+ highlightedProjects.length > 0 && /* @__PURE__ */ jsx(
3501
3321
  "div",
3502
3322
  {
3503
3323
  style: {
@@ -3510,61 +3330,32 @@ const WelcomePanelContent = ({
3510
3330
  {
3511
3331
  style: {
3512
3332
  margin: 0,
3513
- fontSize: `${theme2.fontSizes[1]}px`,
3514
- color: theme2.colors.textSecondary
3333
+ fontSize: `${theme.fontSizes[1]}px`,
3334
+ color: theme.colors.textSecondary
3515
3335
  },
3516
3336
  children: [
3517
3337
  "Try it with",
3518
3338
  " ",
3519
- /* @__PURE__ */ jsx(
3520
- "button",
3521
- {
3522
- onClick: () => {
3523
- if (onNavigate) {
3524
- onNavigate("facebook", "react");
3525
- } else {
3526
- window.location.href = "/facebook/react";
3527
- }
3528
- },
3529
- style: {
3530
- background: "none",
3531
- border: "none",
3532
- color: theme2.colors.primary,
3533
- cursor: "pointer",
3534
- padding: 0,
3535
- fontSize: "inherit",
3536
- fontWeight: theme2.fontWeights.medium,
3537
- textDecoration: "underline"
3538
- },
3539
- children: "facebook/react"
3540
- }
3541
- ),
3542
- " ",
3543
- "or",
3544
- " ",
3545
- /* @__PURE__ */ jsx(
3546
- "button",
3547
- {
3548
- onClick: () => {
3549
- if (onNavigate) {
3550
- onNavigate("vercel", "next.js");
3551
- } else {
3552
- window.location.href = "/vercel/next.js";
3553
- }
3554
- },
3555
- style: {
3556
- background: "none",
3557
- border: "none",
3558
- color: theme2.colors.primary,
3559
- cursor: "pointer",
3560
- padding: 0,
3561
- fontSize: "inherit",
3562
- fontWeight: theme2.fontWeights.medium,
3563
- textDecoration: "underline"
3564
- },
3565
- children: "vercel/next.js"
3566
- }
3567
- )
3339
+ highlightedProjects.map((project, index) => /* @__PURE__ */ jsxs(React2.Fragment, { children: [
3340
+ index > 0 && (index === highlightedProjects.length - 1 ? " or " : ", "),
3341
+ /* @__PURE__ */ jsx(
3342
+ "button",
3343
+ {
3344
+ onClick: () => handleProjectClick(project),
3345
+ style: {
3346
+ background: "none",
3347
+ border: "none",
3348
+ color: theme.colors.primary,
3349
+ cursor: "pointer",
3350
+ padding: 0,
3351
+ fontSize: "inherit",
3352
+ fontWeight: theme.fontWeights.medium,
3353
+ textDecoration: "underline"
3354
+ },
3355
+ children: project.label || `${project.owner}/${project.repo}`
3356
+ }
3357
+ )
3358
+ ] }, `${project.owner}/${project.repo}`))
3568
3359
  ]
3569
3360
  }
3570
3361
  )
@@ -3574,9 +3365,6 @@ const WelcomePanelContent = ({
3574
3365
  }
3575
3366
  );
3576
3367
  };
3577
- const WelcomePanel = (props) => {
3578
- return /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(WelcomePanelContent, { ...props }) });
3579
- };
3580
3368
  const WelcomePanelMetadata = {
3581
3369
  id: "welcome",
3582
3370
  name: "Welcome",