@industry-theme/github-panels 0.1.15 → 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
  *
@@ -320,31 +128,31 @@ const createLucideIcon = (iconName, iconNode) => {
320
128
  * This source code is licensed under the ISC license.
321
129
  * See the LICENSE file in the root directory of this source tree.
322
130
  */
323
- const __iconNode$n = [
131
+ const __iconNode$m = [
324
132
  ["path", { d: "M5 12h14", key: "1ays0h" }],
325
133
  ["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
326
134
  ];
327
- const ArrowRight = createLucideIcon("arrow-right", __iconNode$n);
135
+ const ArrowRight = createLucideIcon("arrow-right", __iconNode$m);
328
136
  /**
329
137
  * @license lucide-react v0.552.0 - ISC
330
138
  *
331
139
  * This source code is licensed under the ISC license.
332
140
  * See the LICENSE file in the root directory of this source tree.
333
141
  */
334
- const __iconNode$m = [
142
+ const __iconNode$l = [
335
143
  ["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
336
144
  ["path", { d: "M17 20V4", key: "1ejh1v" }],
337
145
  ["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
338
146
  ["path", { d: "M7 4v16", key: "1glfcx" }]
339
147
  ];
340
- const ArrowUpDown = createLucideIcon("arrow-up-down", __iconNode$m);
148
+ const ArrowUpDown = createLucideIcon("arrow-up-down", __iconNode$l);
341
149
  /**
342
150
  * @license lucide-react v0.552.0 - ISC
343
151
  *
344
152
  * This source code is licensed under the ISC license.
345
153
  * See the LICENSE file in the root directory of this source tree.
346
154
  */
347
- const __iconNode$l = [
155
+ const __iconNode$k = [
348
156
  ["path", { d: "M12 7v14", key: "1akyts" }],
349
157
  [
350
158
  "path",
@@ -354,14 +162,14 @@ const __iconNode$l = [
354
162
  }
355
163
  ]
356
164
  ];
357
- const BookOpen = createLucideIcon("book-open", __iconNode$l);
165
+ const BookOpen = createLucideIcon("book-open", __iconNode$k);
358
166
  /**
359
167
  * @license lucide-react v0.552.0 - ISC
360
168
  *
361
169
  * This source code is licensed under the ISC license.
362
170
  * See the LICENSE file in the root directory of this source tree.
363
171
  */
364
- const __iconNode$k = [
172
+ const __iconNode$j = [
365
173
  ["path", { d: "M10 12h4", key: "a56b0p" }],
366
174
  ["path", { d: "M10 8h4", key: "1sr2af" }],
367
175
  ["path", { d: "M14 21v-3a2 2 0 0 0-4 0v3", key: "1rgiei" }],
@@ -374,55 +182,55 @@ const __iconNode$k = [
374
182
  ],
375
183
  ["path", { d: "M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16", key: "16ra0t" }]
376
184
  ];
377
- const Building2 = createLucideIcon("building-2", __iconNode$k);
185
+ const Building2 = createLucideIcon("building-2", __iconNode$j);
378
186
  /**
379
187
  * @license lucide-react v0.552.0 - ISC
380
188
  *
381
189
  * This source code is licensed under the ISC license.
382
190
  * See the LICENSE file in the root directory of this source tree.
383
191
  */
384
- const __iconNode$j = [
192
+ const __iconNode$i = [
385
193
  ["path", { d: "M8 2v4", key: "1cmpym" }],
386
194
  ["path", { d: "M16 2v4", key: "4m81vk" }],
387
195
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
388
196
  ["path", { d: "M3 10h18", key: "8toen8" }]
389
197
  ];
390
- const Calendar = createLucideIcon("calendar", __iconNode$j);
198
+ const Calendar = createLucideIcon("calendar", __iconNode$i);
391
199
  /**
392
200
  * @license lucide-react v0.552.0 - ISC
393
201
  *
394
202
  * This source code is licensed under the ISC license.
395
203
  * See the LICENSE file in the root directory of this source tree.
396
204
  */
397
- const __iconNode$i = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
398
- const ChevronDown = createLucideIcon("chevron-down", __iconNode$i);
205
+ const __iconNode$h = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
206
+ const ChevronDown = createLucideIcon("chevron-down", __iconNode$h);
399
207
  /**
400
208
  * @license lucide-react v0.552.0 - ISC
401
209
  *
402
210
  * This source code is licensed under the ISC license.
403
211
  * See the LICENSE file in the root directory of this source tree.
404
212
  */
405
- const __iconNode$h = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
406
- const ChevronRight = createLucideIcon("chevron-right", __iconNode$h);
213
+ const __iconNode$g = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
214
+ const ChevronRight = createLucideIcon("chevron-right", __iconNode$g);
407
215
  /**
408
216
  * @license lucide-react v0.552.0 - ISC
409
217
  *
410
218
  * This source code is licensed under the ISC license.
411
219
  * See the LICENSE file in the root directory of this source tree.
412
220
  */
413
- const __iconNode$g = [
221
+ const __iconNode$f = [
414
222
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
415
223
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
416
224
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
417
225
  ];
418
- const ExternalLink = createLucideIcon("external-link", __iconNode$g);
226
+ const ExternalLink = createLucideIcon("external-link", __iconNode$f);
419
227
  /**
420
228
  * @license lucide-react v0.552.0 - ISC
421
229
  *
422
230
  * This source code is licensed under the ISC license.
423
231
  * See the LICENSE file in the root directory of this source tree.
424
232
  */
425
- const __iconNode$f = [
233
+ const __iconNode$e = [
426
234
  [
427
235
  "path",
428
236
  {
@@ -431,14 +239,14 @@ const __iconNode$f = [
431
239
  }
432
240
  ]
433
241
  ];
434
- const Folder = createLucideIcon("folder", __iconNode$f);
242
+ const Folder = createLucideIcon("folder", __iconNode$e);
435
243
  /**
436
244
  * @license lucide-react v0.552.0 - ISC
437
245
  *
438
246
  * This source code is licensed under the ISC license.
439
247
  * See the LICENSE file in the root directory of this source tree.
440
248
  */
441
- const __iconNode$e = [
249
+ const __iconNode$d = [
442
250
  [
443
251
  "path",
444
252
  {
@@ -447,20 +255,7 @@ const __iconNode$e = [
447
255
  }
448
256
  ]
449
257
  ];
450
- const Funnel = createLucideIcon("funnel", __iconNode$e);
451
- /**
452
- * @license lucide-react v0.552.0 - ISC
453
- *
454
- * This source code is licensed under the ISC license.
455
- * See the LICENSE file in the root directory of this source tree.
456
- */
457
- const __iconNode$d = [
458
- ["line", { x1: "6", x2: "6", y1: "3", y2: "15", key: "17qcm7" }],
459
- ["circle", { cx: "18", cy: "6", r: "3", key: "1h7g24" }],
460
- ["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
461
- ["path", { d: "M18 9a9 9 0 0 1-9 9", key: "n2h4wq" }]
462
- ];
463
- const GitBranch = createLucideIcon("git-branch", __iconNode$d);
258
+ const Funnel = createLucideIcon("funnel", __iconNode$d);
464
259
  /**
465
260
  * @license lucide-react v0.552.0 - ISC
466
261
  *
@@ -673,9 +468,9 @@ const GitHubProjectCard = ({
673
468
  onOpenInGitHub
674
469
  }) => {
675
470
  var _a;
676
- const { theme: theme2 } = useTheme();
471
+ const { theme } = useTheme();
677
472
  const [isHovered, setIsHovered] = useState(false);
678
- const highlightColor = theme2.colors.primary;
473
+ const highlightColor = theme.colors.primary;
679
474
  const handleCardClick = () => {
680
475
  onSelect == null ? void 0 : onSelect(repository);
681
476
  };
@@ -698,7 +493,7 @@ const GitHubProjectCard = ({
698
493
  gap: "12px",
699
494
  padding: "10px 12px",
700
495
  borderRadius: "6px",
701
- 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",
702
497
  border: isSelected ? `1px solid ${highlightColor}40` : "1px solid transparent",
703
498
  cursor: "pointer",
704
499
  transition: "all 0.15s ease"
@@ -727,13 +522,13 @@ const GitHubProjectCard = ({
727
522
  height: "32px",
728
523
  borderRadius: "50%",
729
524
  flexShrink: 0,
730
- backgroundColor: theme2.colors.backgroundTertiary || theme2.colors.backgroundSecondary,
525
+ backgroundColor: theme.colors.backgroundTertiary || theme.colors.backgroundSecondary,
731
526
  display: "flex",
732
527
  alignItems: "center",
733
528
  justifyContent: "center",
734
- fontSize: `${theme2.fontSizes[1]}px`,
735
- fontWeight: theme2.fontWeights.semibold,
736
- color: theme2.colors.textSecondary
529
+ fontSize: `${theme.fontSizes[1]}px`,
530
+ fontWeight: theme.fontWeights.semibold,
531
+ color: theme.colors.textSecondary
737
532
  },
738
533
  children: ((_a = repository.owner.login[0]) == null ? void 0 : _a.toUpperCase()) || "?"
739
534
  }
@@ -754,9 +549,9 @@ const GitHubProjectCard = ({
754
549
  "span",
755
550
  {
756
551
  style: {
757
- fontSize: `${theme2.fontSizes[2]}px`,
758
- fontWeight: theme2.fontWeights.medium,
759
- color: theme2.colors.text,
552
+ fontSize: `${theme.fontSizes[2]}px`,
553
+ fontWeight: theme.fontWeights.medium,
554
+ color: theme.colors.text,
760
555
  overflow: "hidden",
761
556
  textOverflow: "ellipsis",
762
557
  whiteSpace: "nowrap"
@@ -764,8 +559,8 @@ const GitHubProjectCard = ({
764
559
  children: repository.name
765
560
  }
766
561
  ),
767
- repository.private && /* @__PURE__ */ jsx(Lock, { size: 12, color: theme2.colors.warning || "#f59e0b" }),
768
- 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 })
769
564
  ] }),
770
565
  /* @__PURE__ */ jsxs(
771
566
  "div",
@@ -774,8 +569,8 @@ const GitHubProjectCard = ({
774
569
  display: "flex",
775
570
  alignItems: "center",
776
571
  gap: "12px",
777
- fontSize: `${theme2.fontSizes[0]}px`,
778
- color: theme2.colors.textSecondary,
572
+ fontSize: `${theme.fontSizes[0]}px`,
573
+ color: theme.colors.textSecondary,
779
574
  flexWrap: "wrap"
780
575
  },
781
576
  children: [
@@ -809,8 +604,8 @@ const GitHubProjectCard = ({
809
604
  "div",
810
605
  {
811
606
  style: {
812
- fontSize: `${theme2.fontSizes[0]}px`,
813
- color: theme2.colors.textSecondary,
607
+ fontSize: `${theme.fontSizes[0]}px`,
608
+ color: theme.colors.textSecondary,
814
609
  overflow: "hidden",
815
610
  textOverflow: "ellipsis",
816
611
  whiteSpace: "nowrap"
@@ -833,20 +628,20 @@ const GitHubProjectCard = ({
833
628
  justifyContent: "center",
834
629
  padding: "6px",
835
630
  borderRadius: "4px",
836
- border: `1px solid ${theme2.colors.border}`,
837
- backgroundColor: theme2.colors.background,
838
- color: theme2.colors.textSecondary,
631
+ border: `1px solid ${theme.colors.border}`,
632
+ backgroundColor: theme.colors.background,
633
+ color: theme.colors.textSecondary,
839
634
  cursor: "pointer",
840
635
  transition: "all 0.15s ease",
841
636
  flexShrink: 0
842
637
  },
843
638
  onMouseEnter: (e) => {
844
- e.currentTarget.style.backgroundColor = theme2.colors.backgroundTertiary || theme2.colors.backgroundSecondary;
845
- 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;
846
641
  },
847
642
  onMouseLeave: (e) => {
848
- e.currentTarget.style.backgroundColor = theme2.colors.background;
849
- e.currentTarget.style.color = theme2.colors.textSecondary;
643
+ e.currentTarget.style.backgroundColor = theme.colors.background;
644
+ e.currentTarget.style.color = theme.colors.textSecondary;
850
645
  },
851
646
  children: /* @__PURE__ */ jsx(ExternalLink, { size: 14 })
852
647
  }
@@ -865,7 +660,7 @@ const Section = ({
865
660
  children,
866
661
  layoutMode
867
662
  }) => {
868
- const { theme: theme2 } = useTheme();
663
+ const { theme } = useTheme();
869
664
  const showContent = layoutMode === "expanded" || isExpanded;
870
665
  return /* @__PURE__ */ jsxs(
871
666
  "div",
@@ -876,7 +671,7 @@ const Section = ({
876
671
  minWidth: layoutMode === "expanded" ? "280px" : void 0,
877
672
  display: "flex",
878
673
  flexDirection: "column",
879
- borderRight: layoutMode === "expanded" ? `1px solid ${theme2.colors.border}` : void 0,
674
+ borderRight: layoutMode === "expanded" ? `1px solid ${theme.colors.border}` : void 0,
880
675
  overflow: "hidden"
881
676
  },
882
677
  children: [
@@ -894,10 +689,10 @@ const Section = ({
894
689
  border: "none",
895
690
  background: "none",
896
691
  cursor: layoutMode === "compact" ? "pointer" : "default",
897
- color: theme2.colors.text,
898
- fontSize: `${theme2.fontSizes[2]}px`,
899
- fontWeight: theme2.fontWeights.semibold,
900
- 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
901
696
  },
902
697
  children: [
903
698
  layoutMode === "compact" && (isExpanded ? /* @__PURE__ */ jsx(ChevronDown, { size: 16 }) : /* @__PURE__ */ jsx(ChevronRight, { size: 16 })),
@@ -908,9 +703,9 @@ const Section = ({
908
703
  {
909
704
  style: {
910
705
  marginLeft: "auto",
911
- fontSize: `${theme2.fontSizes[0]}px`,
912
- color: theme2.colors.textSecondary,
913
- 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,
914
709
  padding: "2px 8px",
915
710
  borderRadius: "10px"
916
711
  },
@@ -942,7 +737,7 @@ const GitHubProjectsPanelContent = ({
942
737
  context,
943
738
  events
944
739
  }) => {
945
- const { theme: theme2 } = useTheme();
740
+ const { theme } = useTheme();
946
741
  const containerRef = useRef(null);
947
742
  const [layoutMode, setLayoutMode] = useState("compact");
948
743
  const [searchQuery, setSearchQuery] = useState("");
@@ -1014,8 +809,8 @@ const GitHubProjectsPanelContent = ({
1014
809
  style: {
1015
810
  padding: "16px",
1016
811
  textAlign: "center",
1017
- color: theme2.colors.textSecondary,
1018
- fontSize: `${theme2.fontSizes[1]}px`,
812
+ color: theme.colors.textSecondary,
813
+ fontSize: `${theme.fontSizes[1]}px`,
1019
814
  gridColumn: layoutMode === "expanded" ? "1 / -1" : void 0
1020
815
  },
1021
816
  children: message
@@ -1043,17 +838,17 @@ const GitHubProjectsPanelContent = ({
1043
838
  justifyContent: "center",
1044
839
  gap: "16px",
1045
840
  padding: "24px",
1046
- color: theme2.colors.textSecondary
841
+ color: theme.colors.textSecondary
1047
842
  },
1048
843
  children: [
1049
- /* @__PURE__ */ jsx(LogIn, { size: 48, color: theme2.colors.textSecondary }),
844
+ /* @__PURE__ */ jsx(LogIn, { size: 48, color: theme.colors.textSecondary }),
1050
845
  /* @__PURE__ */ jsx(
1051
846
  "h3",
1052
847
  {
1053
848
  style: {
1054
849
  margin: 0,
1055
- fontSize: `${theme2.fontSizes[3]}px`,
1056
- color: theme2.colors.text
850
+ fontSize: `${theme.fontSizes[3]}px`,
851
+ color: theme.colors.text
1057
852
  },
1058
853
  children: "Sign in to GitHub"
1059
854
  }
@@ -1078,10 +873,10 @@ const GitHubProjectsPanelContent = ({
1078
873
  padding: "10px 20px",
1079
874
  borderRadius: "6px",
1080
875
  border: "none",
1081
- backgroundColor: theme2.colors.primary,
1082
- color: theme2.colors.background,
1083
- fontSize: `${theme2.fontSizes[2]}px`,
1084
- 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,
1085
880
  cursor: "pointer"
1086
881
  },
1087
882
  children: [
@@ -1104,7 +899,7 @@ const GitHubProjectsPanelContent = ({
1104
899
  display: "flex",
1105
900
  alignItems: "center",
1106
901
  justifyContent: "center",
1107
- color: theme2.colors.textSecondary
902
+ color: theme.colors.textSecondary
1108
903
  },
1109
904
  children: "Loading repositories..."
1110
905
  }
@@ -1123,17 +918,17 @@ const GitHubProjectsPanelContent = ({
1123
918
  justifyContent: "center",
1124
919
  gap: "16px",
1125
920
  padding: "24px",
1126
- color: theme2.colors.textSecondary
921
+ color: theme.colors.textSecondary
1127
922
  },
1128
923
  children: [
1129
- /* @__PURE__ */ jsx(LogIn, { size: 48, color: theme2.colors.textSecondary }),
924
+ /* @__PURE__ */ jsx(LogIn, { size: 48, color: theme.colors.textSecondary }),
1130
925
  /* @__PURE__ */ jsx(
1131
926
  "h3",
1132
927
  {
1133
928
  style: {
1134
929
  margin: 0,
1135
- fontSize: `${theme2.fontSizes[3]}px`,
1136
- color: theme2.colors.text
930
+ fontSize: `${theme.fontSizes[3]}px`,
931
+ color: theme.colors.text
1137
932
  },
1138
933
  children: "Sign in to GitHub"
1139
934
  }
@@ -1158,10 +953,10 @@ const GitHubProjectsPanelContent = ({
1158
953
  padding: "10px 20px",
1159
954
  borderRadius: "6px",
1160
955
  border: "none",
1161
- backgroundColor: theme2.colors.primary,
1162
- color: theme2.colors.background,
1163
- fontSize: `${theme2.fontSizes[2]}px`,
1164
- 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,
1165
960
  cursor: "pointer"
1166
961
  },
1167
962
  children: [
@@ -1182,9 +977,9 @@ const GitHubProjectsPanelContent = ({
1182
977
  height: "100%",
1183
978
  display: "flex",
1184
979
  flexDirection: "column",
1185
- backgroundColor: theme2.colors.background,
1186
- color: theme2.colors.text,
1187
- fontFamily: theme2.fonts.body
980
+ backgroundColor: theme.colors.background,
981
+ color: theme.colors.text,
982
+ fontFamily: theme.fonts.body
1188
983
  },
1189
984
  children: [
1190
985
  /* @__PURE__ */ jsxs(
@@ -1192,21 +987,21 @@ const GitHubProjectsPanelContent = ({
1192
987
  {
1193
988
  style: {
1194
989
  padding: "12px 16px",
1195
- borderBottom: `1px solid ${theme2.colors.border}`,
990
+ borderBottom: `1px solid ${theme.colors.border}`,
1196
991
  display: "flex",
1197
992
  alignItems: "center",
1198
993
  gap: "12px",
1199
994
  flexWrap: "wrap"
1200
995
  },
1201
996
  children: [
1202
- /* @__PURE__ */ jsx(Github, { size: 20, color: theme2.colors.primary }),
997
+ /* @__PURE__ */ jsx(Github, { size: 20, color: theme.colors.primary }),
1203
998
  /* @__PURE__ */ jsx(
1204
999
  "h2",
1205
1000
  {
1206
1001
  style: {
1207
1002
  margin: 0,
1208
- fontSize: `${theme2.fontSizes[3]}px`,
1209
- fontWeight: theme2.fontWeights.semibold
1003
+ fontSize: `${theme.fontSizes[3]}px`,
1004
+ fontWeight: theme.fontWeights.semibold
1210
1005
  },
1211
1006
  children: "GitHub Projects"
1212
1007
  }
@@ -1215,8 +1010,8 @@ const GitHubProjectsPanelContent = ({
1215
1010
  "span",
1216
1011
  {
1217
1012
  style: {
1218
- fontSize: `${theme2.fontSizes[1]}px`,
1219
- color: theme2.colors.textSecondary
1013
+ fontSize: `${theme.fontSizes[1]}px`,
1014
+ color: theme.colors.textSecondary
1220
1015
  },
1221
1016
  children: [
1222
1017
  "@",
@@ -1236,11 +1031,11 @@ const GitHubProjectsPanelContent = ({
1236
1031
  gap: "8px",
1237
1032
  padding: "8px 12px",
1238
1033
  borderRadius: "6px",
1239
- backgroundColor: theme2.colors.backgroundSecondary,
1240
- border: `1px solid ${theme2.colors.border}`
1034
+ backgroundColor: theme.colors.backgroundSecondary,
1035
+ border: `1px solid ${theme.colors.border}`
1241
1036
  },
1242
1037
  children: [
1243
- /* @__PURE__ */ jsx(Search, { size: 16, color: theme2.colors.textSecondary }),
1038
+ /* @__PURE__ */ jsx(Search, { size: 16, color: theme.colors.textSecondary }),
1244
1039
  /* @__PURE__ */ jsx(
1245
1040
  "input",
1246
1041
  {
@@ -1253,8 +1048,8 @@ const GitHubProjectsPanelContent = ({
1253
1048
  border: "none",
1254
1049
  background: "none",
1255
1050
  outline: "none",
1256
- fontSize: `${theme2.fontSizes[2]}px`,
1257
- color: theme2.colors.text
1051
+ fontSize: `${theme.fontSizes[2]}px`,
1052
+ color: theme.colors.text
1258
1053
  }
1259
1054
  }
1260
1055
  )
@@ -1278,7 +1073,7 @@ const GitHubProjectsPanelContent = ({
1278
1073
  {
1279
1074
  id: "owned",
1280
1075
  title: "Your Repositories",
1281
- icon: /* @__PURE__ */ jsx(Folder, { size: 16, color: theme2.colors.primary }),
1076
+ icon: /* @__PURE__ */ jsx(Folder, { size: 16, color: theme.colors.primary }),
1282
1077
  count: filteredOwned.length,
1283
1078
  isExpanded: expandedSections.has("owned"),
1284
1079
  onToggle: () => toggleSection("owned"),
@@ -1298,7 +1093,7 @@ const GitHubProjectsPanelContent = ({
1298
1093
  alt: org.login,
1299
1094
  style: { width: 16, height: 16, borderRadius: 4 }
1300
1095
  }
1301
- ) : /* @__PURE__ */ jsx(Building2, { size: 16, color: theme2.colors.info || "#3b82f6" }),
1096
+ ) : /* @__PURE__ */ jsx(Building2, { size: 16, color: theme.colors.info || "#3b82f6" }),
1302
1097
  count: org.repositories.length,
1303
1098
  isExpanded: expandedSections.has(`org-${org.id}`),
1304
1099
  onToggle: () => toggleSection(`org-${org.id}`),
@@ -1312,7 +1107,7 @@ const GitHubProjectsPanelContent = ({
1312
1107
  {
1313
1108
  id: "starred",
1314
1109
  title: "Starred",
1315
- icon: /* @__PURE__ */ jsx(Star, { size: 16, color: theme2.colors.warning || "#f59e0b" }),
1110
+ icon: /* @__PURE__ */ jsx(Star, { size: 16, color: theme.colors.warning || "#f59e0b" }),
1316
1111
  count: filteredStarred.length,
1317
1112
  isExpanded: expandedSections.has("starred"),
1318
1113
  onToggle: () => toggleSection("starred"),
@@ -1328,7 +1123,7 @@ const GitHubProjectsPanelContent = ({
1328
1123
  );
1329
1124
  };
1330
1125
  const GitHubProjectsPanel = (props) => {
1331
- return /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(GitHubProjectsPanelContent, { ...props }) });
1126
+ return /* @__PURE__ */ jsx(GitHubProjectsPanelContent, { ...props });
1332
1127
  };
1333
1128
  const GitHubProjectsPanelMetadata = {
1334
1129
  id: "github-projects",
@@ -1340,7 +1135,7 @@ const GitHubProjectsPanelMetadata = {
1340
1135
  surfaces: ["sidebar", "panel"]
1341
1136
  };
1342
1137
  const GitHubSearchPanelContent = ({ events }) => {
1343
- const { theme: theme2 } = useTheme();
1138
+ const { theme } = useTheme();
1344
1139
  const [searchQuery, setSearchQuery] = useState("");
1345
1140
  const [results, setResults] = useState([]);
1346
1141
  const [totalCount, setTotalCount] = useState(0);
@@ -1422,9 +1217,9 @@ const GitHubSearchPanelContent = ({ events }) => {
1422
1217
  height: "100%",
1423
1218
  display: "flex",
1424
1219
  flexDirection: "column",
1425
- backgroundColor: theme2.colors.background,
1426
- color: theme2.colors.text,
1427
- fontFamily: theme2.fonts.body
1220
+ backgroundColor: theme.colors.background,
1221
+ color: theme.colors.text,
1222
+ fontFamily: theme.fonts.body
1428
1223
  },
1429
1224
  children: [
1430
1225
  /* @__PURE__ */ jsxs(
@@ -1432,20 +1227,20 @@ const GitHubSearchPanelContent = ({ events }) => {
1432
1227
  {
1433
1228
  style: {
1434
1229
  padding: "12px 16px",
1435
- borderBottom: `1px solid ${theme2.colors.border}`,
1230
+ borderBottom: `1px solid ${theme.colors.border}`,
1436
1231
  display: "flex",
1437
1232
  alignItems: "center",
1438
1233
  gap: "12px"
1439
1234
  },
1440
1235
  children: [
1441
- /* @__PURE__ */ jsx(Github, { size: 20, color: theme2.colors.primary }),
1236
+ /* @__PURE__ */ jsx(Github, { size: 20, color: theme.colors.primary }),
1442
1237
  /* @__PURE__ */ jsx(
1443
1238
  "h2",
1444
1239
  {
1445
1240
  style: {
1446
1241
  margin: 0,
1447
- fontSize: `${theme2.fontSizes[3]}px`,
1448
- fontWeight: theme2.fontWeights.semibold
1242
+ fontSize: `${theme.fontSizes[3]}px`,
1243
+ fontWeight: theme.fontWeights.semibold
1449
1244
  },
1450
1245
  children: "Search GitHub"
1451
1246
  }
@@ -1462,11 +1257,11 @@ const GitHubSearchPanelContent = ({ events }) => {
1462
1257
  gap: "8px",
1463
1258
  padding: "10px 12px",
1464
1259
  borderRadius: "6px",
1465
- backgroundColor: theme2.colors.backgroundSecondary,
1466
- border: `1px solid ${theme2.colors.border}`
1260
+ backgroundColor: theme.colors.backgroundSecondary,
1261
+ border: `1px solid ${theme.colors.border}`
1467
1262
  },
1468
1263
  children: [
1469
- /* @__PURE__ */ jsx(Search, { size: 18, color: theme2.colors.textSecondary }),
1264
+ /* @__PURE__ */ jsx(Search, { size: 18, color: theme.colors.textSecondary }),
1470
1265
  /* @__PURE__ */ jsx(
1471
1266
  "input",
1472
1267
  {
@@ -1480,8 +1275,8 @@ const GitHubSearchPanelContent = ({ events }) => {
1480
1275
  border: "none",
1481
1276
  background: "none",
1482
1277
  outline: "none",
1483
- fontSize: `${theme2.fontSizes[2]}px`,
1484
- color: theme2.colors.text
1278
+ fontSize: `${theme.fontSizes[2]}px`,
1279
+ color: theme.colors.text
1485
1280
  }
1486
1281
  }
1487
1282
  ),
@@ -1491,8 +1286,8 @@ const GitHubSearchPanelContent = ({ events }) => {
1491
1286
  style: {
1492
1287
  width: 16,
1493
1288
  height: 16,
1494
- border: `2px solid ${theme2.colors.border}`,
1495
- borderTopColor: theme2.colors.primary,
1289
+ border: `2px solid ${theme.colors.border}`,
1290
+ borderTopColor: theme.colors.primary,
1496
1291
  borderRadius: "50%",
1497
1292
  animation: "spin 1s linear infinite"
1498
1293
  }
@@ -1506,8 +1301,8 @@ const GitHubSearchPanelContent = ({ events }) => {
1506
1301
  {
1507
1302
  style: {
1508
1303
  padding: "0 16px 8px",
1509
- fontSize: `${theme2.fontSizes[1]}px`,
1510
- color: theme2.colors.textSecondary
1304
+ fontSize: `${theme.fontSizes[1]}px`,
1305
+ color: theme.colors.textSecondary
1511
1306
  },
1512
1307
  children: [
1513
1308
  formatNumber(totalCount),
@@ -1522,9 +1317,9 @@ const GitHubSearchPanelContent = ({ events }) => {
1522
1317
  padding: "16px",
1523
1318
  margin: "0 16px",
1524
1319
  borderRadius: "6px",
1525
- backgroundColor: `${theme2.colors.error}15`,
1526
- color: theme2.colors.error,
1527
- fontSize: `${theme2.fontSizes[2]}px`
1320
+ backgroundColor: `${theme.colors.error}15`,
1321
+ color: theme.colors.error,
1322
+ fontSize: `${theme.fontSizes[2]}px`
1528
1323
  },
1529
1324
  children: error
1530
1325
  }
@@ -1544,7 +1339,7 @@ const GitHubSearchPanelContent = ({ events }) => {
1544
1339
  style: {
1545
1340
  padding: "32px 16px",
1546
1341
  textAlign: "center",
1547
- color: theme2.colors.textSecondary
1342
+ color: theme.colors.textSecondary
1548
1343
  },
1549
1344
  children: [
1550
1345
  'No repositories found for "',
@@ -1559,10 +1354,10 @@ const GitHubSearchPanelContent = ({ events }) => {
1559
1354
  style: {
1560
1355
  padding: "32px 16px",
1561
1356
  textAlign: "center",
1562
- color: theme2.colors.textSecondary
1357
+ color: theme.colors.textSecondary
1563
1358
  },
1564
1359
  children: [
1565
- /* @__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 } }),
1566
1361
  /* @__PURE__ */ jsx("p", { style: { margin: 0 }, children: "Search for repositories by name, description, or topic" })
1567
1362
  ]
1568
1363
  }
@@ -1579,8 +1374,8 @@ const GitHubSearchPanelContent = ({ events }) => {
1579
1374
  padding: "12px",
1580
1375
  margin: "4px 0",
1581
1376
  borderRadius: "6px",
1582
- border: selectedRepoId === repo.id ? `2px solid ${theme2.colors.primary}` : `1px solid ${theme2.colors.border}`,
1583
- 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,
1584
1379
  cursor: "pointer",
1585
1380
  textAlign: "left",
1586
1381
  display: "flex",
@@ -1601,9 +1396,9 @@ const GitHubSearchPanelContent = ({ events }) => {
1601
1396
  "span",
1602
1397
  {
1603
1398
  style: {
1604
- fontSize: `${theme2.fontSizes[2]}px`,
1605
- fontWeight: theme2.fontWeights.semibold,
1606
- color: theme2.colors.primary
1399
+ fontSize: `${theme.fontSizes[2]}px`,
1400
+ fontWeight: theme.fontWeights.semibold,
1401
+ color: theme.colors.primary
1607
1402
  },
1608
1403
  children: repo.full_name
1609
1404
  }
@@ -1612,11 +1407,11 @@ const GitHubSearchPanelContent = ({ events }) => {
1612
1407
  "span",
1613
1408
  {
1614
1409
  style: {
1615
- fontSize: `${theme2.fontSizes[0]}px`,
1410
+ fontSize: `${theme.fontSizes[0]}px`,
1616
1411
  padding: "2px 6px",
1617
1412
  borderRadius: "4px",
1618
- backgroundColor: theme2.colors.backgroundTertiary,
1619
- color: theme2.colors.textSecondary
1413
+ backgroundColor: theme.colors.backgroundTertiary,
1414
+ color: theme.colors.textSecondary
1620
1415
  },
1621
1416
  children: "Private"
1622
1417
  }
@@ -1627,8 +1422,8 @@ const GitHubSearchPanelContent = ({ events }) => {
1627
1422
  {
1628
1423
  style: {
1629
1424
  margin: 0,
1630
- fontSize: `${theme2.fontSizes[1]}px`,
1631
- color: theme2.colors.textSecondary,
1425
+ fontSize: `${theme.fontSizes[1]}px`,
1426
+ color: theme.colors.textSecondary,
1632
1427
  overflow: "hidden",
1633
1428
  textOverflow: "ellipsis",
1634
1429
  display: "-webkit-box",
@@ -1645,8 +1440,8 @@ const GitHubSearchPanelContent = ({ events }) => {
1645
1440
  display: "flex",
1646
1441
  alignItems: "center",
1647
1442
  gap: "16px",
1648
- fontSize: `${theme2.fontSizes[1]}px`,
1649
- color: theme2.colors.textSecondary
1443
+ fontSize: `${theme.fontSizes[1]}px`,
1444
+ color: theme.colors.textSecondary
1650
1445
  },
1651
1446
  children: [
1652
1447
  repo.language && /* @__PURE__ */ jsxs("span", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
@@ -1657,7 +1452,7 @@ const GitHubSearchPanelContent = ({ events }) => {
1657
1452
  width: 10,
1658
1453
  height: 10,
1659
1454
  borderRadius: "50%",
1660
- backgroundColor: theme2.colors.info
1455
+ backgroundColor: theme.colors.info
1661
1456
  }
1662
1457
  }
1663
1458
  ),
@@ -1680,7 +1475,7 @@ const GitHubSearchPanelContent = ({ events }) => {
1680
1475
  onClick: (e) => e.stopPropagation(),
1681
1476
  style: {
1682
1477
  marginLeft: "auto",
1683
- color: theme2.colors.textSecondary,
1478
+ color: theme.colors.textSecondary,
1684
1479
  display: "flex",
1685
1480
  alignItems: "center"
1686
1481
  },
@@ -1708,7 +1503,7 @@ const GitHubSearchPanelContent = ({ events }) => {
1708
1503
  );
1709
1504
  };
1710
1505
  const GitHubSearchPanel = (props) => {
1711
- return /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(GitHubSearchPanelContent, { ...props }) });
1506
+ return /* @__PURE__ */ jsx(GitHubSearchPanelContent, { ...props });
1712
1507
  };
1713
1508
  const GitHubSearchPanelMetadata = {
1714
1509
  id: "github-search",
@@ -1725,7 +1520,7 @@ const OwnerRepositoriesPanelContent = ({
1725
1520
  owner: propOwner
1726
1521
  }) => {
1727
1522
  var _a, _b;
1728
- const { theme: theme2 } = useTheme();
1523
+ const { theme } = useTheme();
1729
1524
  const [repositories, setRepositories] = useState([]);
1730
1525
  const [ownerInfo, setOwnerInfo] = useState(null);
1731
1526
  const [isLoading, setIsLoading] = useState(true);
@@ -1863,9 +1658,9 @@ const OwnerRepositoriesPanelContent = ({
1863
1658
  height: "100%",
1864
1659
  display: "flex",
1865
1660
  flexDirection: "column",
1866
- backgroundColor: theme2.colors.background,
1867
- color: theme2.colors.text,
1868
- fontFamily: theme2.fonts.body
1661
+ backgroundColor: theme.colors.background,
1662
+ color: theme.colors.text,
1663
+ fontFamily: theme.fonts.body
1869
1664
  },
1870
1665
  children: [
1871
1666
  /* @__PURE__ */ jsx(
@@ -1873,7 +1668,7 @@ const OwnerRepositoriesPanelContent = ({
1873
1668
  {
1874
1669
  style: {
1875
1670
  padding: "16px",
1876
- borderBottom: `1px solid ${theme2.colors.border}`,
1671
+ borderBottom: `1px solid ${theme.colors.border}`,
1877
1672
  display: "flex",
1878
1673
  alignItems: "center",
1879
1674
  gap: "12px"
@@ -1888,7 +1683,7 @@ const OwnerRepositoriesPanelContent = ({
1888
1683
  width: 48,
1889
1684
  height: 48,
1890
1685
  borderRadius: ownerInfo.type === "Organization" ? 8 : "50%",
1891
- border: `2px solid ${theme2.colors.border}`
1686
+ border: `2px solid ${theme.colors.border}`
1892
1687
  }
1893
1688
  }
1894
1689
  ),
@@ -1899,21 +1694,21 @@ const OwnerRepositoriesPanelContent = ({
1899
1694
  {
1900
1695
  style: {
1901
1696
  margin: 0,
1902
- fontSize: `${theme2.fontSizes[4]}px`,
1903
- fontWeight: theme2.fontWeights.bold
1697
+ fontSize: `${theme.fontSizes[4]}px`,
1698
+ fontWeight: theme.fontWeights.bold
1904
1699
  },
1905
1700
  children: ownerInfo.name || ownerInfo.login
1906
1701
  }
1907
1702
  ),
1908
- 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 })
1909
1704
  ] }),
1910
1705
  ownerInfo.bio && /* @__PURE__ */ jsx(
1911
1706
  "p",
1912
1707
  {
1913
1708
  style: {
1914
1709
  margin: "4px 0 0",
1915
- fontSize: `${theme2.fontSizes[1]}px`,
1916
- color: theme2.colors.textSecondary
1710
+ fontSize: `${theme.fontSizes[1]}px`,
1711
+ color: theme.colors.textSecondary
1917
1712
  },
1918
1713
  children: ownerInfo.bio
1919
1714
  }
@@ -1925,8 +1720,8 @@ const OwnerRepositoriesPanelContent = ({
1925
1720
  display: "flex",
1926
1721
  gap: "12px",
1927
1722
  marginTop: "4px",
1928
- fontSize: `${theme2.fontSizes[1]}px`,
1929
- color: theme2.colors.textSecondary
1723
+ fontSize: `${theme.fontSizes[1]}px`,
1724
+ color: theme.colors.textSecondary
1930
1725
  },
1931
1726
  children: [
1932
1727
  /* @__PURE__ */ jsxs("span", { children: [
@@ -1948,24 +1743,24 @@ const OwnerRepositoriesPanelContent = ({
1948
1743
  style: {
1949
1744
  padding: "8px",
1950
1745
  borderRadius: "6px",
1951
- border: `1px solid ${theme2.colors.border}`,
1746
+ border: `1px solid ${theme.colors.border}`,
1952
1747
  background: "transparent",
1953
1748
  cursor: "pointer",
1954
- color: theme2.colors.textSecondary
1749
+ color: theme.colors.textSecondary
1955
1750
  },
1956
1751
  title: "Refresh",
1957
1752
  children: /* @__PURE__ */ jsx(RefreshCw, { size: 16 })
1958
1753
  }
1959
1754
  )
1960
1755
  ] }) : /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
1961
- /* @__PURE__ */ jsx(Github, { size: 24, color: theme2.colors.primary }),
1756
+ /* @__PURE__ */ jsx(Github, { size: 24, color: theme.colors.primary }),
1962
1757
  /* @__PURE__ */ jsx(
1963
1758
  "h2",
1964
1759
  {
1965
1760
  style: {
1966
1761
  margin: 0,
1967
- fontSize: `${theme2.fontSizes[3]}px`,
1968
- fontWeight: theme2.fontWeights.semibold
1762
+ fontSize: `${theme.fontSizes[3]}px`,
1763
+ fontWeight: theme.fontWeights.semibold
1969
1764
  },
1970
1765
  children: owner || "Repositories"
1971
1766
  }
@@ -1978,7 +1773,7 @@ const OwnerRepositoriesPanelContent = ({
1978
1773
  {
1979
1774
  style: {
1980
1775
  padding: "8px 16px",
1981
- borderBottom: `1px solid ${theme2.colors.border}`,
1776
+ borderBottom: `1px solid ${theme.colors.border}`,
1982
1777
  display: "flex",
1983
1778
  alignItems: "center",
1984
1779
  gap: "8px",
@@ -1986,7 +1781,7 @@ const OwnerRepositoriesPanelContent = ({
1986
1781
  },
1987
1782
  children: [
1988
1783
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
1989
- /* @__PURE__ */ jsx(ArrowUpDown, { size: 14, color: theme2.colors.textSecondary }),
1784
+ /* @__PURE__ */ jsx(ArrowUpDown, { size: 14, color: theme.colors.textSecondary }),
1990
1785
  ["updated", "stars", "name"].map((field) => /* @__PURE__ */ jsxs(
1991
1786
  "button",
1992
1787
  {
@@ -1995,9 +1790,9 @@ const OwnerRepositoriesPanelContent = ({
1995
1790
  padding: "4px 8px",
1996
1791
  borderRadius: "4px",
1997
1792
  border: "none",
1998
- background: sortField === field ? theme2.colors.primary : theme2.colors.backgroundSecondary,
1999
- color: sortField === field ? theme2.colors.background : theme2.colors.text,
2000
- 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`,
2001
1796
  cursor: "pointer",
2002
1797
  textTransform: "capitalize"
2003
1798
  },
@@ -2010,7 +1805,7 @@ const OwnerRepositoriesPanelContent = ({
2010
1805
  ))
2011
1806
  ] }),
2012
1807
  languages.length > 0 && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "4px", marginLeft: "auto" }, children: [
2013
- /* @__PURE__ */ jsx(Funnel, { size: 14, color: theme2.colors.textSecondary }),
1808
+ /* @__PURE__ */ jsx(Funnel, { size: 14, color: theme.colors.textSecondary }),
2014
1809
  /* @__PURE__ */ jsxs(
2015
1810
  "select",
2016
1811
  {
@@ -2019,10 +1814,10 @@ const OwnerRepositoriesPanelContent = ({
2019
1814
  style: {
2020
1815
  padding: "4px 8px",
2021
1816
  borderRadius: "4px",
2022
- border: `1px solid ${theme2.colors.border}`,
2023
- background: theme2.colors.backgroundSecondary,
2024
- color: theme2.colors.text,
2025
- 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`,
2026
1821
  cursor: "pointer"
2027
1822
  },
2028
1823
  children: [
@@ -2045,7 +1840,7 @@ const OwnerRepositoriesPanelContent = ({
2045
1840
  alignItems: "center",
2046
1841
  justifyContent: "center",
2047
1842
  gap: "16px",
2048
- color: theme2.colors.textSecondary
1843
+ color: theme.colors.textSecondary
2049
1844
  },
2050
1845
  children: [
2051
1846
  /* @__PURE__ */ jsx(
@@ -2054,8 +1849,8 @@ const OwnerRepositoriesPanelContent = ({
2054
1849
  style: {
2055
1850
  width: 32,
2056
1851
  height: 32,
2057
- border: `3px solid ${theme2.colors.border}`,
2058
- borderTopColor: theme2.colors.primary,
1852
+ border: `3px solid ${theme.colors.border}`,
1853
+ borderTopColor: theme.colors.primary,
2059
1854
  borderRadius: "50%",
2060
1855
  animation: "spin 1s linear infinite"
2061
1856
  }
@@ -2084,8 +1879,8 @@ const OwnerRepositoriesPanelContent = ({
2084
1879
  style: {
2085
1880
  padding: "16px 24px",
2086
1881
  borderRadius: "8px",
2087
- backgroundColor: `${theme2.colors.error}15`,
2088
- color: theme2.colors.error,
1882
+ backgroundColor: `${theme.colors.error}15`,
1883
+ color: theme.colors.error,
2089
1884
  marginBottom: "16px"
2090
1885
  },
2091
1886
  children: error
@@ -2099,10 +1894,10 @@ const OwnerRepositoriesPanelContent = ({
2099
1894
  padding: "8px 16px",
2100
1895
  borderRadius: "6px",
2101
1896
  border: "none",
2102
- background: theme2.colors.primary,
2103
- color: theme2.colors.background,
1897
+ background: theme.colors.primary,
1898
+ color: theme.colors.background,
2104
1899
  cursor: "pointer",
2105
- fontWeight: theme2.fontWeights.medium
1900
+ fontWeight: theme.fontWeights.medium
2106
1901
  },
2107
1902
  children: "Try Again"
2108
1903
  }
@@ -2120,10 +1915,10 @@ const OwnerRepositoriesPanelContent = ({
2120
1915
  alignItems: "center",
2121
1916
  justifyContent: "center",
2122
1917
  padding: "32px",
2123
- color: theme2.colors.textSecondary
1918
+ color: theme.colors.textSecondary
2124
1919
  },
2125
1920
  children: [
2126
- /* @__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 } }),
2127
1922
  /* @__PURE__ */ jsx("p", { style: { margin: 0 }, children: "No public repositories found" })
2128
1923
  ]
2129
1924
  }
@@ -2147,8 +1942,8 @@ const OwnerRepositoriesPanelContent = ({
2147
1942
  padding: "12px",
2148
1943
  margin: "4px 0",
2149
1944
  borderRadius: "8px",
2150
- border: selectedRepoId === repo.id ? `2px solid ${theme2.colors.primary}` : `1px solid ${theme2.colors.border}`,
2151
- 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,
2152
1947
  cursor: "pointer",
2153
1948
  textAlign: "left",
2154
1949
  display: "flex",
@@ -2162,9 +1957,9 @@ const OwnerRepositoriesPanelContent = ({
2162
1957
  "span",
2163
1958
  {
2164
1959
  style: {
2165
- fontSize: `${theme2.fontSizes[2]}px`,
2166
- fontWeight: theme2.fontWeights.semibold,
2167
- color: theme2.colors.primary
1960
+ fontSize: `${theme.fontSizes[2]}px`,
1961
+ fontWeight: theme.fontWeights.semibold,
1962
+ color: theme.colors.primary
2168
1963
  },
2169
1964
  children: repo.name
2170
1965
  }
@@ -2173,11 +1968,11 @@ const OwnerRepositoriesPanelContent = ({
2173
1968
  "span",
2174
1969
  {
2175
1970
  style: {
2176
- fontSize: `${theme2.fontSizes[0]}px`,
1971
+ fontSize: `${theme.fontSizes[0]}px`,
2177
1972
  padding: "2px 6px",
2178
1973
  borderRadius: "4px",
2179
- backgroundColor: theme2.colors.warning + "20",
2180
- color: theme2.colors.warning
1974
+ backgroundColor: theme.colors.warning + "20",
1975
+ color: theme.colors.warning
2181
1976
  },
2182
1977
  children: "Archived"
2183
1978
  }
@@ -2186,11 +1981,11 @@ const OwnerRepositoriesPanelContent = ({
2186
1981
  "span",
2187
1982
  {
2188
1983
  style: {
2189
- fontSize: `${theme2.fontSizes[0]}px`,
1984
+ fontSize: `${theme.fontSizes[0]}px`,
2190
1985
  padding: "2px 6px",
2191
1986
  borderRadius: "4px",
2192
- backgroundColor: theme2.colors.backgroundTertiary,
2193
- color: theme2.colors.textSecondary
1987
+ backgroundColor: theme.colors.backgroundTertiary,
1988
+ color: theme.colors.textSecondary
2194
1989
  },
2195
1990
  children: "Fork"
2196
1991
  }
@@ -2201,8 +1996,8 @@ const OwnerRepositoriesPanelContent = ({
2201
1996
  {
2202
1997
  style: {
2203
1998
  margin: 0,
2204
- fontSize: `${theme2.fontSizes[1]}px`,
2205
- color: theme2.colors.textSecondary,
1999
+ fontSize: `${theme.fontSizes[1]}px`,
2000
+ color: theme.colors.textSecondary,
2206
2001
  overflow: "hidden",
2207
2002
  textOverflow: "ellipsis",
2208
2003
  display: "-webkit-box",
@@ -2219,8 +2014,8 @@ const OwnerRepositoriesPanelContent = ({
2219
2014
  display: "flex",
2220
2015
  alignItems: "center",
2221
2016
  gap: "16px",
2222
- fontSize: `${theme2.fontSizes[1]}px`,
2223
- color: theme2.colors.textSecondary
2017
+ fontSize: `${theme.fontSizes[1]}px`,
2018
+ color: theme.colors.textSecondary
2224
2019
  },
2225
2020
  children: [
2226
2021
  repo.language && /* @__PURE__ */ jsxs("span", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
@@ -2231,7 +2026,7 @@ const OwnerRepositoriesPanelContent = ({
2231
2026
  width: 10,
2232
2027
  height: 10,
2233
2028
  borderRadius: "50%",
2234
- backgroundColor: theme2.colors.info
2029
+ backgroundColor: theme.colors.info
2235
2030
  }
2236
2031
  }
2237
2032
  ),
@@ -2258,7 +2053,7 @@ const OwnerRepositoriesPanelContent = ({
2258
2053
  onClick: (e) => e.stopPropagation(),
2259
2054
  style: {
2260
2055
  marginLeft: "auto",
2261
- color: theme2.colors.textSecondary,
2056
+ color: theme.colors.textSecondary,
2262
2057
  display: "flex",
2263
2058
  alignItems: "center"
2264
2059
  },
@@ -2284,10 +2079,10 @@ const OwnerRepositoriesPanelContent = ({
2284
2079
  alignItems: "center",
2285
2080
  justifyContent: "center",
2286
2081
  padding: "32px",
2287
- color: theme2.colors.textSecondary
2082
+ color: theme.colors.textSecondary
2288
2083
  },
2289
2084
  children: [
2290
- /* @__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 } }),
2291
2086
  /* @__PURE__ */ jsx("p", { style: { margin: 0 }, children: "No repositories match the current filter" }),
2292
2087
  /* @__PURE__ */ jsx(
2293
2088
  "button",
@@ -2297,9 +2092,9 @@ const OwnerRepositoriesPanelContent = ({
2297
2092
  marginTop: "12px",
2298
2093
  padding: "8px 16px",
2299
2094
  borderRadius: "6px",
2300
- border: `1px solid ${theme2.colors.border}`,
2095
+ border: `1px solid ${theme.colors.border}`,
2301
2096
  background: "transparent",
2302
- color: theme2.colors.text,
2097
+ color: theme.colors.text,
2303
2098
  cursor: "pointer"
2304
2099
  },
2305
2100
  children: "Clear filter"
@@ -2318,7 +2113,7 @@ const OwnerRepositoriesPanelContent = ({
2318
2113
  );
2319
2114
  };
2320
2115
  const OwnerRepositoriesPanel = (props) => {
2321
- return /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(OwnerRepositoriesPanelContent, { ...props }) });
2116
+ return /* @__PURE__ */ jsx(OwnerRepositoriesPanelContent, { ...props });
2322
2117
  };
2323
2118
  const OwnerRepositoriesPanelMetadata = {
2324
2119
  id: "owner-repositories",
@@ -2415,7 +2210,7 @@ const RecentRepositoriesPanelContent = ({
2415
2210
  events,
2416
2211
  onNavigate
2417
2212
  }) => {
2418
- const { theme: theme2 } = useTheme();
2213
+ const { theme } = useTheme();
2419
2214
  const [items, setItems] = useState([]);
2420
2215
  const [selectedId, setSelectedId] = useState(null);
2421
2216
  const [hoveredId, setHoveredId] = useState(null);
@@ -2587,9 +2382,9 @@ const RecentRepositoriesPanelContent = ({
2587
2382
  height: "100%",
2588
2383
  display: "flex",
2589
2384
  flexDirection: "column",
2590
- backgroundColor: theme2.colors.background,
2591
- color: theme2.colors.text,
2592
- fontFamily: theme2.fonts.body
2385
+ backgroundColor: theme.colors.background,
2386
+ color: theme.colors.text,
2387
+ fontFamily: theme.fonts.body
2593
2388
  },
2594
2389
  children: [
2595
2390
  /* @__PURE__ */ jsxs(
@@ -2597,21 +2392,21 @@ const RecentRepositoriesPanelContent = ({
2597
2392
  {
2598
2393
  style: {
2599
2394
  padding: "16px",
2600
- borderBottom: `1px solid ${theme2.colors.border}`,
2395
+ borderBottom: `1px solid ${theme.colors.border}`,
2601
2396
  display: "flex",
2602
2397
  alignItems: "center",
2603
2398
  justifyContent: "space-between"
2604
2399
  },
2605
2400
  children: [
2606
2401
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
2607
- /* @__PURE__ */ jsx(History, { size: 24, color: theme2.colors.primary }),
2402
+ /* @__PURE__ */ jsx(History, { size: 24, color: theme.colors.primary }),
2608
2403
  /* @__PURE__ */ jsx(
2609
2404
  "h2",
2610
2405
  {
2611
2406
  style: {
2612
2407
  margin: 0,
2613
- fontSize: `${theme2.fontSizes[3]}px`,
2614
- fontWeight: theme2.fontWeights.semibold
2408
+ fontSize: `${theme.fontSizes[3]}px`,
2409
+ fontWeight: theme.fontWeights.semibold
2615
2410
  },
2616
2411
  children: "Recent"
2617
2412
  }
@@ -2624,11 +2419,11 @@ const RecentRepositoriesPanelContent = ({
2624
2419
  style: {
2625
2420
  padding: "6px 12px",
2626
2421
  borderRadius: "6px",
2627
- border: `1px solid ${theme2.colors.border}`,
2422
+ border: `1px solid ${theme.colors.border}`,
2628
2423
  background: "transparent",
2629
2424
  cursor: "pointer",
2630
- color: theme2.colors.textSecondary,
2631
- fontSize: `${theme2.fontSizes[1]}px`,
2425
+ color: theme.colors.textSecondary,
2426
+ fontSize: `${theme.fontSizes[1]}px`,
2632
2427
  display: "flex",
2633
2428
  alignItems: "center",
2634
2429
  gap: "6px"
@@ -2648,7 +2443,7 @@ const RecentRepositoriesPanelContent = ({
2648
2443
  {
2649
2444
  style: {
2650
2445
  padding: "8px 16px",
2651
- borderBottom: `1px solid ${theme2.colors.border}`,
2446
+ borderBottom: `1px solid ${theme.colors.border}`,
2652
2447
  display: "flex",
2653
2448
  gap: "4px"
2654
2449
  },
@@ -2664,11 +2459,11 @@ const RecentRepositoriesPanelContent = ({
2664
2459
  padding: "6px 12px",
2665
2460
  borderRadius: "6px",
2666
2461
  border: "none",
2667
- background: filter === key ? theme2.colors.primary : theme2.colors.backgroundSecondary,
2668
- color: filter === key ? "#fff" : theme2.colors.text,
2669
- 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`,
2670
2465
  cursor: "pointer",
2671
- fontWeight: filter === key ? theme2.fontWeights.semibold : theme2.fontWeights.body
2466
+ fontWeight: filter === key ? theme.fontWeights.semibold : theme.fontWeights.body
2672
2467
  },
2673
2468
  children: label
2674
2469
  },
@@ -2686,12 +2481,12 @@ const RecentRepositoriesPanelContent = ({
2686
2481
  alignItems: "center",
2687
2482
  justifyContent: "center",
2688
2483
  padding: "32px",
2689
- color: theme2.colors.textSecondary
2484
+ color: theme.colors.textSecondary
2690
2485
  },
2691
2486
  children: [
2692
- /* @__PURE__ */ jsx(Github, { size: 48, color: theme2.colors.border, style: { marginBottom: 16 } }),
2693
- /* @__PURE__ */ jsx("p", { style: { margin: 0, fontSize: `${theme2.fontSizes[2]}px` }, children: items.length === 0 ? "No recent activity" : "No items match filter" }),
2694
- /* @__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" })
2695
2490
  ]
2696
2491
  }
2697
2492
  ),
@@ -2721,8 +2516,8 @@ const RecentRepositoriesPanelContent = ({
2721
2516
  padding: "12px",
2722
2517
  margin: "4px 0",
2723
2518
  borderRadius: "8px",
2724
- border: isSelected ? `2px solid ${theme2.colors.primary}` : `1px solid ${theme2.colors.border}`,
2725
- 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,
2726
2521
  cursor: "pointer",
2727
2522
  textAlign: "left",
2728
2523
  display: "flex",
@@ -2743,9 +2538,9 @@ const RecentRepositoriesPanelContent = ({
2743
2538
  padding: "4px",
2744
2539
  borderRadius: "4px",
2745
2540
  border: "none",
2746
- background: theme2.colors.backgroundSecondary,
2541
+ background: theme.colors.backgroundSecondary,
2747
2542
  cursor: "pointer",
2748
- color: theme2.colors.textSecondary,
2543
+ color: theme.colors.textSecondary,
2749
2544
  display: "flex",
2750
2545
  alignItems: "center",
2751
2546
  justifyContent: "center"
@@ -2755,7 +2550,7 @@ const RecentRepositoriesPanelContent = ({
2755
2550
  }
2756
2551
  ),
2757
2552
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
2758
- /* @__PURE__ */ jsx(BookOpen, { size: 16, color: theme2.colors.textSecondary }),
2553
+ /* @__PURE__ */ jsx(BookOpen, { size: 16, color: theme.colors.textSecondary }),
2759
2554
  item.owner.avatar_url && /* @__PURE__ */ jsx(
2760
2555
  "img",
2761
2556
  {
@@ -2765,7 +2560,7 @@ const RecentRepositoriesPanelContent = ({
2765
2560
  width: 24,
2766
2561
  height: 24,
2767
2562
  borderRadius: "50%",
2768
- border: `1px solid ${theme2.colors.border}`
2563
+ border: `1px solid ${theme.colors.border}`
2769
2564
  }
2770
2565
  }
2771
2566
  ),
@@ -2774,8 +2569,8 @@ const RecentRepositoriesPanelContent = ({
2774
2569
  "span",
2775
2570
  {
2776
2571
  style: {
2777
- fontSize: `${theme2.fontSizes[1]}px`,
2778
- color: theme2.colors.textSecondary
2572
+ fontSize: `${theme.fontSizes[1]}px`,
2573
+ color: theme.colors.textSecondary
2779
2574
  },
2780
2575
  children: item.owner.login
2781
2576
  }
@@ -2784,9 +2579,9 @@ const RecentRepositoriesPanelContent = ({
2784
2579
  "span",
2785
2580
  {
2786
2581
  style: {
2787
- fontSize: `${theme2.fontSizes[2]}px`,
2788
- fontWeight: theme2.fontWeights.semibold,
2789
- color: theme2.colors.primary
2582
+ fontSize: `${theme.fontSizes[2]}px`,
2583
+ fontWeight: theme.fontWeights.semibold,
2584
+ color: theme.colors.primary
2790
2585
  },
2791
2586
  children: item.name
2792
2587
  }
@@ -2798,8 +2593,8 @@ const RecentRepositoriesPanelContent = ({
2798
2593
  {
2799
2594
  style: {
2800
2595
  margin: 0,
2801
- fontSize: `${theme2.fontSizes[1]}px`,
2802
- color: theme2.colors.textSecondary,
2596
+ fontSize: `${theme.fontSizes[1]}px`,
2597
+ color: theme.colors.textSecondary,
2803
2598
  overflow: "hidden",
2804
2599
  textOverflow: "ellipsis",
2805
2600
  display: "-webkit-box",
@@ -2816,8 +2611,8 @@ const RecentRepositoriesPanelContent = ({
2816
2611
  display: "flex",
2817
2612
  alignItems: "center",
2818
2613
  gap: "16px",
2819
- fontSize: `${theme2.fontSizes[1]}px`,
2820
- color: theme2.colors.textSecondary
2614
+ fontSize: `${theme.fontSizes[1]}px`,
2615
+ color: theme.colors.textSecondary
2821
2616
  },
2822
2617
  children: [
2823
2618
  item.language && /* @__PURE__ */ jsxs("span", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
@@ -2828,7 +2623,7 @@ const RecentRepositoriesPanelContent = ({
2828
2623
  width: 10,
2829
2624
  height: 10,
2830
2625
  borderRadius: "50%",
2831
- backgroundColor: theme2.colors.info
2626
+ backgroundColor: theme.colors.info
2832
2627
  }
2833
2628
  }
2834
2629
  ),
@@ -2855,7 +2650,7 @@ const RecentRepositoriesPanelContent = ({
2855
2650
  onClick: (e) => e.stopPropagation(),
2856
2651
  style: {
2857
2652
  marginLeft: "auto",
2858
- color: theme2.colors.textSecondary,
2653
+ color: theme.colors.textSecondary,
2859
2654
  display: "flex",
2860
2655
  alignItems: "center"
2861
2656
  },
@@ -2883,8 +2678,8 @@ const RecentRepositoriesPanelContent = ({
2883
2678
  padding: "12px",
2884
2679
  margin: "4px 0",
2885
2680
  borderRadius: "8px",
2886
- border: isSelected ? `2px solid ${theme2.colors.primary}` : `1px solid ${theme2.colors.border}`,
2887
- 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,
2888
2683
  cursor: "pointer",
2889
2684
  textAlign: "left",
2890
2685
  display: "flex",
@@ -2905,9 +2700,9 @@ const RecentRepositoriesPanelContent = ({
2905
2700
  padding: "4px",
2906
2701
  borderRadius: "4px",
2907
2702
  border: "none",
2908
- background: theme2.colors.backgroundSecondary,
2703
+ background: theme.colors.backgroundSecondary,
2909
2704
  cursor: "pointer",
2910
- color: theme2.colors.textSecondary,
2705
+ color: theme.colors.textSecondary,
2911
2706
  display: "flex",
2912
2707
  alignItems: "center",
2913
2708
  justifyContent: "center"
@@ -2917,7 +2712,7 @@ const RecentRepositoriesPanelContent = ({
2917
2712
  }
2918
2713
  ),
2919
2714
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
2920
- 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 }),
2921
2716
  item.avatar_url && /* @__PURE__ */ jsx(
2922
2717
  "img",
2923
2718
  {
@@ -2927,7 +2722,7 @@ const RecentRepositoriesPanelContent = ({
2927
2722
  width: 32,
2928
2723
  height: 32,
2929
2724
  borderRadius: item.ownerType === "Organization" ? 8 : "50%",
2930
- border: `1px solid ${theme2.colors.border}`
2725
+ border: `1px solid ${theme.colors.border}`
2931
2726
  }
2932
2727
  }
2933
2728
  ),
@@ -2936,9 +2731,9 @@ const RecentRepositoriesPanelContent = ({
2936
2731
  "span",
2937
2732
  {
2938
2733
  style: {
2939
- fontSize: `${theme2.fontSizes[2]}px`,
2940
- fontWeight: theme2.fontWeights.semibold,
2941
- color: theme2.colors.primary
2734
+ fontSize: `${theme.fontSizes[2]}px`,
2735
+ fontWeight: theme.fontWeights.semibold,
2736
+ color: theme.colors.primary
2942
2737
  },
2943
2738
  children: item.name || item.login
2944
2739
  }
@@ -2947,8 +2742,8 @@ const RecentRepositoriesPanelContent = ({
2947
2742
  "span",
2948
2743
  {
2949
2744
  style: {
2950
- fontSize: `${theme2.fontSizes[1]}px`,
2951
- color: theme2.colors.textSecondary
2745
+ fontSize: `${theme.fontSizes[1]}px`,
2746
+ color: theme.colors.textSecondary
2952
2747
  },
2953
2748
  children: [
2954
2749
  "@",
@@ -2963,8 +2758,8 @@ const RecentRepositoriesPanelContent = ({
2963
2758
  {
2964
2759
  style: {
2965
2760
  margin: 0,
2966
- fontSize: `${theme2.fontSizes[1]}px`,
2967
- color: theme2.colors.textSecondary,
2761
+ fontSize: `${theme.fontSizes[1]}px`,
2762
+ color: theme.colors.textSecondary,
2968
2763
  overflow: "hidden",
2969
2764
  textOverflow: "ellipsis",
2970
2765
  display: "-webkit-box",
@@ -2981,8 +2776,8 @@ const RecentRepositoriesPanelContent = ({
2981
2776
  display: "flex",
2982
2777
  alignItems: "center",
2983
2778
  gap: "16px",
2984
- fontSize: `${theme2.fontSizes[1]}px`,
2985
- color: theme2.colors.textSecondary
2779
+ fontSize: `${theme.fontSizes[1]}px`,
2780
+ color: theme.colors.textSecondary
2986
2781
  },
2987
2782
  children: [
2988
2783
  item.public_repos !== void 0 && /* @__PURE__ */ jsxs("span", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
@@ -3008,7 +2803,7 @@ const RecentRepositoriesPanelContent = ({
3008
2803
  onClick: (e) => e.stopPropagation(),
3009
2804
  style: {
3010
2805
  marginLeft: "auto",
3011
- color: theme2.colors.textSecondary,
2806
+ color: theme.colors.textSecondary,
3012
2807
  display: "flex",
3013
2808
  alignItems: "center"
3014
2809
  },
@@ -3030,7 +2825,7 @@ const RecentRepositoriesPanelContent = ({
3030
2825
  );
3031
2826
  };
3032
2827
  const RecentRepositoriesPanel = (props) => {
3033
- return /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(RecentRepositoriesPanelContent, { ...props }) });
2828
+ return /* @__PURE__ */ jsx(RecentRepositoriesPanelContent, { ...props });
3034
2829
  };
3035
2830
  const RecentRepositoriesPanelMetadata = {
3036
2831
  id: "recent-repositories",
@@ -3204,14 +2999,14 @@ function parseGitHubInput(input) {
3204
2999
  }
3205
3000
  return null;
3206
3001
  }
3207
- const FeatureCard = ({ icon, title, description, theme: theme2 }) => /* @__PURE__ */ jsxs(
3002
+ const FeatureCard = ({ icon, title, description, theme }) => /* @__PURE__ */ jsxs(
3208
3003
  "div",
3209
3004
  {
3210
3005
  style: {
3211
3006
  padding: "24px",
3212
3007
  borderRadius: "12px",
3213
- backgroundColor: theme2.colors.surface,
3214
- border: `1px solid ${theme2.colors.border}`,
3008
+ backgroundColor: theme.colors.surface,
3009
+ border: `1px solid ${theme.colors.border}`,
3215
3010
  display: "flex",
3216
3011
  flexDirection: "column",
3217
3012
  alignItems: "center",
@@ -3228,11 +3023,11 @@ const FeatureCard = ({ icon, title, description, theme: theme2 }) => /* @__PURE_
3228
3023
  width: 48,
3229
3024
  height: 48,
3230
3025
  borderRadius: "10px",
3231
- backgroundColor: `${theme2.colors.primary}15`,
3026
+ backgroundColor: `${theme.colors.primary}15`,
3232
3027
  display: "flex",
3233
3028
  alignItems: "center",
3234
3029
  justifyContent: "center",
3235
- color: theme2.colors.primary
3030
+ color: theme.colors.primary
3236
3031
  },
3237
3032
  children: icon
3238
3033
  }
@@ -3242,9 +3037,9 @@ const FeatureCard = ({ icon, title, description, theme: theme2 }) => /* @__PURE_
3242
3037
  {
3243
3038
  style: {
3244
3039
  margin: 0,
3245
- fontSize: `${theme2.fontSizes[3]}px`,
3246
- fontWeight: theme2.fontWeights.semibold,
3247
- color: theme2.colors.text
3040
+ fontSize: `${theme.fontSizes[3]}px`,
3041
+ fontWeight: theme.fontWeights.semibold,
3042
+ color: theme.colors.text
3248
3043
  },
3249
3044
  children: title
3250
3045
  }
@@ -3254,8 +3049,8 @@ const FeatureCard = ({ icon, title, description, theme: theme2 }) => /* @__PURE_
3254
3049
  {
3255
3050
  style: {
3256
3051
  margin: 0,
3257
- fontSize: `${theme2.fontSizes[2]}px`,
3258
- color: theme2.colors.textSecondary,
3052
+ fontSize: `${theme.fontSizes[2]}px`,
3053
+ color: theme.colors.textSecondary,
3259
3054
  lineHeight: 1.5
3260
3055
  },
3261
3056
  children: description
@@ -3264,10 +3059,15 @@ const FeatureCard = ({ icon, title, description, theme: theme2 }) => /* @__PURE_
3264
3059
  ]
3265
3060
  }
3266
3061
  );
3267
- const WelcomePanelContent = ({
3268
- onNavigate
3062
+ const defaultHighlightedProjects = [
3063
+ { owner: "facebook", repo: "react" },
3064
+ { owner: "vercel", repo: "next.js" }
3065
+ ];
3066
+ const WelcomePanel = ({
3067
+ onNavigate,
3068
+ highlightedProjects = defaultHighlightedProjects
3269
3069
  }) => {
3270
- const { theme: theme2 } = useTheme();
3070
+ const { theme } = useTheme();
3271
3071
  const [repoInput, setRepoInput] = useState("");
3272
3072
  const [error, setError] = useState(null);
3273
3073
  const handleSubmit = useCallback((e) => {
@@ -3284,6 +3084,13 @@ const WelcomePanelContent = ({
3284
3084
  window.location.href = `/${parsed.owner}/${parsed.repo}`;
3285
3085
  }
3286
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]);
3287
3094
  return /* @__PURE__ */ jsxs(
3288
3095
  "div",
3289
3096
  {
@@ -3291,9 +3098,9 @@ const WelcomePanelContent = ({
3291
3098
  height: "100%",
3292
3099
  display: "flex",
3293
3100
  flexDirection: "column",
3294
- backgroundColor: theme2.colors.background,
3295
- color: theme2.colors.text,
3296
- fontFamily: theme2.fonts.body,
3101
+ backgroundColor: theme.colors.background,
3102
+ color: theme.colors.text,
3103
+ fontFamily: theme.fonts.body,
3297
3104
  overflowY: "auto"
3298
3105
  },
3299
3106
  children: [
@@ -3306,7 +3113,7 @@ const WelcomePanelContent = ({
3306
3113
  flexDirection: "column",
3307
3114
  alignItems: "center",
3308
3115
  textAlign: "center",
3309
- borderBottom: `1px solid ${theme2.colors.border}`
3116
+ borderBottom: `1px solid ${theme.colors.border}`
3310
3117
  },
3311
3118
  children: [
3312
3119
  /* @__PURE__ */ jsxs(
@@ -3324,16 +3131,16 @@ const WelcomePanelContent = ({
3324
3131
  {
3325
3132
  width: 56,
3326
3133
  height: 56,
3327
- color: theme2.colors.primary
3134
+ color: theme.colors.primary
3328
3135
  }
3329
3136
  ),
3330
3137
  /* @__PURE__ */ jsx(
3331
3138
  "span",
3332
3139
  {
3333
3140
  style: {
3334
- fontSize: `${theme2.fontSizes[6] || 32}px`,
3335
- fontWeight: theme2.fontWeights.bold,
3336
- color: theme2.colors.text
3141
+ fontSize: `${theme.fontSizes[6] || 32}px`,
3142
+ fontWeight: theme.fontWeights.bold,
3143
+ color: theme.colors.text
3337
3144
  },
3338
3145
  children: "Principal AI"
3339
3146
  }
@@ -3343,7 +3150,7 @@ const WelcomePanelContent = ({
3343
3150
  {
3344
3151
  width: 56,
3345
3152
  height: 56,
3346
- color: theme2.colors.primary
3153
+ color: theme.colors.primary
3347
3154
  }
3348
3155
  )
3349
3156
  ]
@@ -3354,9 +3161,9 @@ const WelcomePanelContent = ({
3354
3161
  {
3355
3162
  style: {
3356
3163
  margin: "0 0 32px",
3357
- fontSize: `${theme2.fontSizes[6] || 32}px`,
3358
- fontWeight: theme2.fontWeights.bold,
3359
- color: theme2.colors.text
3164
+ fontSize: `${theme.fontSizes[6] || 32}px`,
3165
+ fontWeight: theme.fontWeights.bold,
3166
+ color: theme.colors.text
3360
3167
  },
3361
3168
  children: "Explore software like never before"
3362
3169
  }
@@ -3378,8 +3185,8 @@ const WelcomePanelContent = ({
3378
3185
  gap: "8px",
3379
3186
  padding: "6px",
3380
3187
  borderRadius: "12px",
3381
- backgroundColor: theme2.colors.surface,
3382
- 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}`
3383
3190
  },
3384
3191
  children: [
3385
3192
  /* @__PURE__ */ jsx(
@@ -3389,7 +3196,7 @@ const WelcomePanelContent = ({
3389
3196
  display: "flex",
3390
3197
  alignItems: "center",
3391
3198
  paddingLeft: "12px",
3392
- color: theme2.colors.textSecondary
3199
+ color: theme.colors.textSecondary
3393
3200
  },
3394
3201
  children: /* @__PURE__ */ jsx(Github, { size: 20 })
3395
3202
  }
@@ -3409,8 +3216,8 @@ const WelcomePanelContent = ({
3409
3216
  padding: "12px 8px",
3410
3217
  border: "none",
3411
3218
  background: "transparent",
3412
- color: theme2.colors.text,
3413
- fontSize: `${theme2.fontSizes[2]}px`,
3219
+ color: theme.colors.text,
3220
+ fontSize: `${theme.fontSizes[2]}px`,
3414
3221
  outline: "none"
3415
3222
  }
3416
3223
  }
@@ -3423,10 +3230,10 @@ const WelcomePanelContent = ({
3423
3230
  padding: "12px 20px",
3424
3231
  borderRadius: "8px",
3425
3232
  border: "none",
3426
- backgroundColor: theme2.colors.primary,
3233
+ backgroundColor: theme.colors.primary,
3427
3234
  color: "#fff",
3428
- fontSize: `${theme2.fontSizes[2]}px`,
3429
- fontWeight: theme2.fontWeights.semibold,
3235
+ fontSize: `${theme.fontSizes[2]}px`,
3236
+ fontWeight: theme.fontWeights.semibold,
3430
3237
  cursor: "pointer",
3431
3238
  display: "flex",
3432
3239
  alignItems: "center",
@@ -3446,8 +3253,8 @@ const WelcomePanelContent = ({
3446
3253
  {
3447
3254
  style: {
3448
3255
  margin: "8px 0 0",
3449
- fontSize: `${theme2.fontSizes[1]}px`,
3450
- color: theme2.colors.error
3256
+ fontSize: `${theme.fontSizes[1]}px`,
3257
+ color: theme.colors.error
3451
3258
  },
3452
3259
  children: error
3453
3260
  }
@@ -3478,13 +3285,22 @@ const WelcomePanelContent = ({
3478
3285
  maxWidth: "900px"
3479
3286
  },
3480
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
+ ),
3481
3297
  /* @__PURE__ */ jsx(
3482
3298
  FeatureCard,
3483
3299
  {
3484
3300
  icon: /* @__PURE__ */ jsx(Network, { size: 24 }),
3485
3301
  title: "Interactive Diagrams",
3486
3302
  description: "Visualize repository structure, dependencies, and architecture with auto-generated diagrams you can explore.",
3487
- theme: theme2
3303
+ theme
3488
3304
  }
3489
3305
  ),
3490
3306
  /* @__PURE__ */ jsx(
@@ -3493,16 +3309,7 @@ const WelcomePanelContent = ({
3493
3309
  icon: /* @__PURE__ */ jsx(MessageSquare, { size: 24 }),
3494
3310
  title: "Chat with Code",
3495
3311
  description: "Ask questions about any repository and get instant, context-aware answers powered by AI.",
3496
- theme: theme2
3497
- }
3498
- ),
3499
- /* @__PURE__ */ jsx(
3500
- FeatureCard,
3501
- {
3502
- icon: /* @__PURE__ */ jsx(GitBranch, { size: 24 }),
3503
- title: "Reliable Documentation",
3504
- description: "Always up-to-date documentation generated directly from your codebase, never out of sync.",
3505
- theme: theme2
3312
+ theme
3506
3313
  }
3507
3314
  )
3508
3315
  ]
@@ -3510,7 +3317,7 @@ const WelcomePanelContent = ({
3510
3317
  )
3511
3318
  }
3512
3319
  ),
3513
- /* @__PURE__ */ jsx(
3320
+ highlightedProjects.length > 0 && /* @__PURE__ */ jsx(
3514
3321
  "div",
3515
3322
  {
3516
3323
  style: {
@@ -3523,61 +3330,32 @@ const WelcomePanelContent = ({
3523
3330
  {
3524
3331
  style: {
3525
3332
  margin: 0,
3526
- fontSize: `${theme2.fontSizes[1]}px`,
3527
- color: theme2.colors.textSecondary
3333
+ fontSize: `${theme.fontSizes[1]}px`,
3334
+ color: theme.colors.textSecondary
3528
3335
  },
3529
3336
  children: [
3530
3337
  "Try it with",
3531
3338
  " ",
3532
- /* @__PURE__ */ jsx(
3533
- "button",
3534
- {
3535
- onClick: () => {
3536
- if (onNavigate) {
3537
- onNavigate("facebook", "react");
3538
- } else {
3539
- window.location.href = "/facebook/react";
3540
- }
3541
- },
3542
- style: {
3543
- background: "none",
3544
- border: "none",
3545
- color: theme2.colors.primary,
3546
- cursor: "pointer",
3547
- padding: 0,
3548
- fontSize: "inherit",
3549
- fontWeight: theme2.fontWeights.medium,
3550
- textDecoration: "underline"
3551
- },
3552
- children: "facebook/react"
3553
- }
3554
- ),
3555
- " ",
3556
- "or",
3557
- " ",
3558
- /* @__PURE__ */ jsx(
3559
- "button",
3560
- {
3561
- onClick: () => {
3562
- if (onNavigate) {
3563
- onNavigate("vercel", "next.js");
3564
- } else {
3565
- window.location.href = "/vercel/next.js";
3566
- }
3567
- },
3568
- style: {
3569
- background: "none",
3570
- border: "none",
3571
- color: theme2.colors.primary,
3572
- cursor: "pointer",
3573
- padding: 0,
3574
- fontSize: "inherit",
3575
- fontWeight: theme2.fontWeights.medium,
3576
- textDecoration: "underline"
3577
- },
3578
- children: "vercel/next.js"
3579
- }
3580
- )
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}`))
3581
3359
  ]
3582
3360
  }
3583
3361
  )
@@ -3587,9 +3365,6 @@ const WelcomePanelContent = ({
3587
3365
  }
3588
3366
  );
3589
3367
  };
3590
- const WelcomePanel = (props) => {
3591
- return /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(WelcomePanelContent, { ...props }) });
3592
- };
3593
3368
  const WelcomePanelMetadata = {
3594
3369
  id: "welcome",
3595
3370
  name: "Welcome",