@industry-theme/repository-composition-panels 0.2.4 → 0.2.6

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, memo, PureComponent, isValidElement, cloneElement, useLayoutEffect, useMemo, useCallback, useImperativeHandle } 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, useRef, useEffect, memo, PureComponent, isValidElement, cloneElement, useLayoutEffect, useMemo, useState, useCallback, useImperativeHandle } 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,18 +128,18 @@ 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$q = [
131
+ const __iconNode$p = [
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$q);
135
+ const ArrowRight = createLucideIcon("arrow-right", __iconNode$p);
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$p = [
142
+ const __iconNode$o = [
335
143
  [
336
144
  "path",
337
145
  {
@@ -342,46 +150,7 @@ const __iconNode$p = [
342
150
  ["path", { d: "m3.3 7 8.7 5 8.7-5", key: "g66t2b" }],
343
151
  ["path", { d: "M12 22V12", key: "d0xqtd" }]
344
152
  ];
345
- const Box = createLucideIcon("box", __iconNode$p);
346
- /**
347
- * @license lucide-react v0.552.0 - ISC
348
- *
349
- * This source code is licensed under the ISC license.
350
- * See the LICENSE file in the root directory of this source tree.
351
- */
352
- const __iconNode$o = [
353
- [
354
- "path",
355
- {
356
- d: "M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",
357
- key: "lc1i9w"
358
- }
359
- ],
360
- ["path", { d: "m7 16.5-4.74-2.85", key: "1o9zyk" }],
361
- ["path", { d: "m7 16.5 5-3", key: "va8pkn" }],
362
- ["path", { d: "M7 16.5v5.17", key: "jnp8gn" }],
363
- [
364
- "path",
365
- {
366
- d: "M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",
367
- key: "8zsnat"
368
- }
369
- ],
370
- ["path", { d: "m17 16.5-5-3", key: "8arw3v" }],
371
- ["path", { d: "m17 16.5 4.74-2.85", key: "8rfmw" }],
372
- ["path", { d: "M17 16.5v5.17", key: "k6z78m" }],
373
- [
374
- "path",
375
- {
376
- d: "M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",
377
- key: "1xygjf"
378
- }
379
- ],
380
- ["path", { d: "M12 8 7.26 5.15", key: "1vbdud" }],
381
- ["path", { d: "m12 8 4.74-2.85", key: "3rx089" }],
382
- ["path", { d: "M12 13.5V8", key: "1io7kd" }]
383
- ];
384
- const Boxes = createLucideIcon("boxes", __iconNode$o);
153
+ const Box = createLucideIcon("box", __iconNode$o);
385
154
  /**
386
155
  * @license lucide-react v0.552.0 - ISC
387
156
  *
@@ -7896,7 +7665,7 @@ function TreeNode({
7896
7665
  node,
7897
7666
  style,
7898
7667
  dragHandle,
7899
- theme: theme2,
7668
+ theme,
7900
7669
  rightContent,
7901
7670
  extraContent,
7902
7671
  isSelectedDirectory = false,
@@ -7910,14 +7679,14 @@ function TreeNode({
7910
7679
  style: { marginRight: "4px", display: "flex", alignItems: "center" }
7911
7680
  }, node.isOpen ? /* @__PURE__ */ React2.createElement(ChevronDown, {
7912
7681
  size: 16,
7913
- color: theme2.colors.text
7682
+ color: theme.colors.text
7914
7683
  }) : /* @__PURE__ */ React2.createElement(ChevronRight, {
7915
7684
  size: 16,
7916
- color: theme2.colors.text
7685
+ color: theme.colors.text
7917
7686
  })) : null;
7918
- const backgroundColor = node.isSelected ? `${theme2.colors.primary}20` : isSelectedDirectory ? `${theme2.colors.primary}15` : isHovered ? `${theme2.colors.text}10` : "transparent";
7919
- const border = node.isSelected ? `1px solid ${theme2.colors.primary}` : "1px solid transparent";
7920
- const color = nameColor ? nameColor : node.isSelected || isSelectedDirectory ? theme2.colors.primary : theme2.colors.text;
7687
+ const backgroundColor = node.isSelected ? `${theme.colors.primary}20` : isSelectedDirectory ? `${theme.colors.primary}15` : isHovered ? `${theme.colors.text}10` : "transparent";
7688
+ const border = node.isSelected ? `1px solid ${theme.colors.primary}` : "1px solid transparent";
7689
+ const color = nameColor ? nameColor : node.isSelected || isSelectedDirectory ? theme.colors.primary : theme.colors.text;
7921
7690
  return /* @__PURE__ */ React2.createElement("div", {
7922
7691
  style: {
7923
7692
  ...style,
@@ -7959,7 +7728,7 @@ function TreeNode({
7959
7728
  style: { flexShrink: 0 }
7960
7729
  }, rightContent));
7961
7730
  }
7962
- var getGitStatusDisplay2 = (status, theme2) => {
7731
+ var getGitStatusDisplay2 = (status, theme) => {
7963
7732
  switch (status) {
7964
7733
  case "M":
7965
7734
  case "MM":
@@ -7967,7 +7736,7 @@ var getGitStatusDisplay2 = (status, theme2) => {
7967
7736
  icon: /* @__PURE__ */ React2.createElement(SquarePen, {
7968
7737
  size: 14
7969
7738
  }),
7970
- color: theme2.colors.primary || "#007bff",
7739
+ color: theme.colors.primary || "#007bff",
7971
7740
  label: "Modified"
7972
7741
  };
7973
7742
  case "A":
@@ -8092,7 +7861,7 @@ var countVisibleNodes2 = (nodes, openByDefault) => {
8092
7861
  };
8093
7862
  var GitStatusFileTree = ({
8094
7863
  fileTree,
8095
- theme: theme2,
7864
+ theme,
8096
7865
  gitStatusData,
8097
7866
  selectedDirectories = [],
8098
7867
  selectedFile,
@@ -8115,12 +7884,12 @@ var GitStatusFileTree = ({
8115
7884
  }, [gitStatusData]);
8116
7885
  const NodeRenderer = (props) => {
8117
7886
  const { node } = props;
8118
- const gitDisplay = node.data.gitStatus ? getGitStatusDisplay2(node.data.gitStatus, theme2) : null;
7887
+ const gitDisplay = node.data.gitStatus ? getGitStatusDisplay2(node.data.gitStatus, theme) : null;
8119
7888
  let nameColor;
8120
7889
  if (gitDisplay) {
8121
7890
  nameColor = gitDisplay.color;
8122
7891
  } else if (node.data.hasChangedChildren) {
8123
- const baseColor = theme2.colors.primary || "#007bff";
7892
+ const baseColor = theme.colors.primary || "#007bff";
8124
7893
  nameColor = baseColor + "80";
8125
7894
  }
8126
7895
  const rightContent = gitDisplay ? /* @__PURE__ */ React2.createElement("div", {
@@ -8140,7 +7909,7 @@ var GitStatusFileTree = ({
8140
7909
  }, node.data.gitStatus)) : null;
8141
7910
  return /* @__PURE__ */ React2.createElement(TreeNode, {
8142
7911
  ...props,
8143
- theme: theme2,
7912
+ theme,
8144
7913
  rightContent,
8145
7914
  nameColor,
8146
7915
  horizontalNodePadding,
@@ -8181,9 +7950,9 @@ var GitStatusFileTree = ({
8181
7950
  return /* @__PURE__ */ React2.createElement("div", {
8182
7951
  ref: containerRef,
8183
7952
  style: {
8184
- backgroundColor: transparentBackground ? "transparent" : theme2.colors.background,
8185
- color: theme2.colors.text,
8186
- fontFamily: theme2.fonts.body,
7953
+ backgroundColor: transparentBackground ? "transparent" : theme.colors.background,
7954
+ color: theme.colors.text,
7955
+ fontFamily: theme.fonts.body,
8187
7956
  ...autoHeight ? {} : { height: "100%" }
8188
7957
  }
8189
7958
  }, /* @__PURE__ */ React2.createElement(Tree, {
@@ -8324,7 +8093,7 @@ const GitChangesPanelContent = ({
8324
8093
  loadingMessage = "Loading git changes...",
8325
8094
  selectedFile
8326
8095
  }) => {
8327
- const { theme: theme2 } = useTheme();
8096
+ const { theme } = useTheme();
8328
8097
  const hasChanges = gitStatus.staged.length > 0 || gitStatus.unstaged.length > 0 || gitStatus.untracked.length > 0 || gitStatus.deleted.length > 0;
8329
8098
  const [showFullTree, setShowFullTree] = useState(false);
8330
8099
  const userHasToggledView = useRef(false);
@@ -8430,7 +8199,7 @@ const GitChangesPanelContent = ({
8430
8199
  style: {
8431
8200
  display: "flex",
8432
8201
  alignItems: "stretch",
8433
- backgroundColor: theme2.colors.backgroundTertiary,
8202
+ backgroundColor: theme.colors.backgroundTertiary,
8434
8203
  width: "100%"
8435
8204
  },
8436
8205
  children: [
@@ -8444,10 +8213,10 @@ const GitChangesPanelContent = ({
8444
8213
  style: {
8445
8214
  flex: 1,
8446
8215
  padding: "6px 12px",
8447
- fontSize: theme2.fontSizes[1],
8448
- backgroundColor: showFullTree ? theme2.colors.backgroundSecondary : "transparent",
8449
- color: showFullTree ? theme2.colors.text : theme2.colors.textSecondary,
8450
- border: showFullTree ? `1px solid ${theme2.colors.border}` : "1px solid transparent",
8216
+ fontSize: theme.fontSizes[1],
8217
+ backgroundColor: showFullTree ? theme.colors.backgroundSecondary : "transparent",
8218
+ color: showFullTree ? theme.colors.text : theme.colors.textSecondary,
8219
+ border: showFullTree ? `1px solid ${theme.colors.border}` : "1px solid transparent",
8451
8220
  cursor: "pointer",
8452
8221
  fontWeight: showFullTree ? 600 : 400,
8453
8222
  transition: "all 0.2s"
@@ -8465,10 +8234,10 @@ const GitChangesPanelContent = ({
8465
8234
  style: {
8466
8235
  flex: 1,
8467
8236
  padding: "6px 12px",
8468
- fontSize: theme2.fontSizes[1],
8469
- backgroundColor: !showFullTree ? theme2.colors.backgroundSecondary : "transparent",
8470
- color: !showFullTree ? theme2.colors.text : theme2.colors.textSecondary,
8471
- border: !showFullTree ? `1px solid ${theme2.colors.border}` : "1px solid transparent",
8237
+ fontSize: theme.fontSizes[1],
8238
+ backgroundColor: !showFullTree ? theme.colors.backgroundSecondary : "transparent",
8239
+ color: !showFullTree ? theme.colors.text : theme.colors.textSecondary,
8240
+ border: !showFullTree ? `1px solid ${theme.colors.border}` : "1px solid transparent",
8472
8241
  cursor: "pointer",
8473
8242
  fontWeight: !showFullTree ? 600 : 400,
8474
8243
  transition: "all 0.2s"
@@ -8487,7 +8256,7 @@ const GitChangesPanelContent = ({
8487
8256
  style: {
8488
8257
  padding: "20px",
8489
8258
  textAlign: "center",
8490
- color: theme2.colors.textSecondary
8259
+ color: theme.colors.textSecondary
8491
8260
  },
8492
8261
  children: loadingMessage
8493
8262
  }
@@ -8500,7 +8269,7 @@ const GitChangesPanelContent = ({
8500
8269
  style: {
8501
8270
  padding: "20px",
8502
8271
  textAlign: "center",
8503
- color: theme2.colors.textSecondary
8272
+ color: theme.colors.textSecondary
8504
8273
  },
8505
8274
  children: emptyMessage
8506
8275
  }
@@ -8513,7 +8282,7 @@ const GitChangesPanelContent = ({
8513
8282
  GitStatusFileTree,
8514
8283
  {
8515
8284
  fileTree: gitChangesData.tree,
8516
- theme: theme2,
8285
+ theme,
8517
8286
  gitStatusData: gitChangesData.statusData,
8518
8287
  onFileSelect: handleFileSelect,
8519
8288
  selectedFile,
@@ -8521,23 +8290,23 @@ const GitChangesPanelContent = ({
8521
8290
  horizontalNodePadding: "16px",
8522
8291
  openByDefault: !showFullTree
8523
8292
  },
8524
- `${showFullTree}-${gitChangesData.statusData.length}`
8293
+ showFullTree ? "full" : "changes"
8525
8294
  );
8526
8295
  };
8527
8296
  return /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", height: "100%" }, children: [
8528
- /* @__PURE__ */ jsx("div", { style: { borderBottom: `1px solid ${theme2.colors.border}` }, children: /* @__PURE__ */ jsx(ToggleButtons, {}) }),
8297
+ /* @__PURE__ */ jsx("div", { style: { borderBottom: `1px solid ${theme.colors.border}` }, children: /* @__PURE__ */ jsx(ToggleButtons, {}) }),
8529
8298
  /* @__PURE__ */ jsx("div", { style: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ jsx(Content, {}) })
8530
8299
  ] });
8531
8300
  };
8532
8301
  const GitChangesPanelPreview = () => {
8533
- const { theme: theme2 } = useTheme();
8302
+ const { theme } = useTheme();
8534
8303
  return /* @__PURE__ */ jsxs(
8535
8304
  "div",
8536
8305
  {
8537
8306
  style: {
8538
8307
  padding: "12px",
8539
8308
  fontSize: "12px",
8540
- color: theme2.colors.text,
8309
+ color: theme.colors.text,
8541
8310
  display: "flex",
8542
8311
  flexDirection: "column",
8543
8312
  gap: "6px"
@@ -8750,7 +8519,7 @@ const DependencyInfoModal = ({
8750
8519
  isOpen,
8751
8520
  onClose
8752
8521
  }) => {
8753
- const { theme: theme2 } = useTheme();
8522
+ const { theme } = useTheme();
8754
8523
  if (!isOpen) return null;
8755
8524
  return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
8756
8525
  "div",
@@ -8761,8 +8530,8 @@ const DependencyInfoModal = ({
8761
8530
  left: 0,
8762
8531
  right: 0,
8763
8532
  bottom: 0,
8764
- backgroundColor: theme2.colors.muted,
8765
- zIndex: theme2.zIndices[4],
8533
+ backgroundColor: theme.colors.muted,
8534
+ zIndex: theme.zIndices[4],
8766
8535
  display: "flex",
8767
8536
  alignItems: "center",
8768
8537
  justifyContent: "center"
@@ -8772,15 +8541,15 @@ const DependencyInfoModal = ({
8772
8541
  "div",
8773
8542
  {
8774
8543
  style: {
8775
- backgroundColor: theme2.colors.background,
8776
- borderRadius: `${theme2.radii[3]}px`,
8544
+ backgroundColor: theme.colors.background,
8545
+ borderRadius: `${theme.radii[3]}px`,
8777
8546
  maxWidth: "600px",
8778
8547
  maxHeight: "80vh",
8779
8548
  width: "90%",
8780
8549
  overflow: "hidden",
8781
8550
  display: "flex",
8782
8551
  flexDirection: "column",
8783
- boxShadow: theme2.shadows[3]
8552
+ boxShadow: theme.shadows[3]
8784
8553
  },
8785
8554
  onClick: (e) => e.stopPropagation(),
8786
8555
  children: [
@@ -8788,8 +8557,8 @@ const DependencyInfoModal = ({
8788
8557
  "div",
8789
8558
  {
8790
8559
  style: {
8791
- padding: `${theme2.space[4]}px`,
8792
- borderBottom: `1px solid ${theme2.colors.border}`,
8560
+ padding: `${theme.space[4]}px`,
8561
+ borderBottom: `1px solid ${theme.colors.border}`,
8793
8562
  display: "flex",
8794
8563
  alignItems: "center",
8795
8564
  justifyContent: "space-between"
@@ -8799,12 +8568,12 @@ const DependencyInfoModal = ({
8799
8568
  "h2",
8800
8569
  {
8801
8570
  style: {
8802
- fontSize: `${theme2.fontSizes[4]}px`,
8803
- fontWeight: theme2.fontWeights.semibold,
8804
- color: theme2.colors.text,
8571
+ fontSize: `${theme.fontSizes[4]}px`,
8572
+ fontWeight: theme.fontWeights.semibold,
8573
+ color: theme.colors.text,
8805
8574
  display: "flex",
8806
8575
  alignItems: "center",
8807
- gap: `${theme2.space[2]}px`,
8576
+ gap: `${theme.space[2]}px`,
8808
8577
  margin: 0
8809
8578
  },
8810
8579
  children: [
@@ -8820,9 +8589,9 @@ const DependencyInfoModal = ({
8820
8589
  style: {
8821
8590
  background: "none",
8822
8591
  border: "none",
8823
- color: theme2.colors.textSecondary,
8592
+ color: theme.colors.textSecondary,
8824
8593
  cursor: "pointer",
8825
- padding: `${theme2.space[1]}px`
8594
+ padding: `${theme.space[1]}px`
8826
8595
  },
8827
8596
  children: /* @__PURE__ */ jsx(X, { size: 20 })
8828
8597
  }
@@ -8834,7 +8603,7 @@ const DependencyInfoModal = ({
8834
8603
  "div",
8835
8604
  {
8836
8605
  style: {
8837
- padding: `${theme2.space[4]}px`,
8606
+ padding: `${theme.space[4]}px`,
8838
8607
  overflow: "auto",
8839
8608
  flex: 1
8840
8609
  },
@@ -8844,33 +8613,33 @@ const DependencyInfoModal = ({
8844
8613
  {
8845
8614
  icon: /* @__PURE__ */ jsx(Package, { size: 18 }),
8846
8615
  title: "Dependency Types",
8847
- theme: theme2,
8616
+ theme,
8848
8617
  children: [
8849
8618
  /* @__PURE__ */ jsx(
8850
8619
  InfoItem,
8851
8620
  {
8852
- badge: { text: "prod", color: theme2.colors.primary },
8621
+ badge: { text: "prod", color: theme.colors.primary },
8853
8622
  title: "Production Dependencies",
8854
8623
  description: "Required for your application to run in production. These are bundled with your app and affect its size and security.",
8855
- theme: theme2
8624
+ theme
8856
8625
  }
8857
8626
  ),
8858
8627
  /* @__PURE__ */ jsx(
8859
8628
  InfoItem,
8860
8629
  {
8861
- badge: { text: "dev", color: theme2.colors.secondary },
8630
+ badge: { text: "dev", color: theme.colors.secondary },
8862
8631
  title: "Development Dependencies",
8863
8632
  description: "Only needed during development (build tools, testing, linters). Not included in production builds.",
8864
- theme: theme2
8633
+ theme
8865
8634
  }
8866
8635
  ),
8867
8636
  /* @__PURE__ */ jsx(
8868
8637
  InfoItem,
8869
8638
  {
8870
- badge: { text: "peer", color: theme2.colors.accent },
8639
+ badge: { text: "peer", color: theme.colors.accent },
8871
8640
  title: "Peer Dependencies",
8872
8641
  description: "Expected to be provided by the consumer of your package. Important for library authors to specify compatibility.",
8873
- theme: theme2
8642
+ theme
8874
8643
  }
8875
8644
  )
8876
8645
  ]
@@ -8881,24 +8650,24 @@ const DependencyInfoModal = ({
8881
8650
  {
8882
8651
  icon: /* @__PURE__ */ jsx(Scale, { size: 18 }),
8883
8652
  title: "Common Licenses",
8884
- theme: theme2,
8653
+ theme,
8885
8654
  children: [
8886
8655
  /* @__PURE__ */ jsx(
8887
8656
  InfoItem,
8888
8657
  {
8889
- badge: { text: "MIT", color: theme2.colors.success },
8658
+ badge: { text: "MIT", color: theme.colors.success },
8890
8659
  title: "Permissive Licenses (MIT, Apache, BSD)",
8891
8660
  description: "Few restrictions. Can use in commercial projects. Must include copyright notice.",
8892
- theme: theme2
8661
+ theme
8893
8662
  }
8894
8663
  ),
8895
8664
  /* @__PURE__ */ jsx(
8896
8665
  InfoItem,
8897
8666
  {
8898
- badge: { text: "GPL", color: theme2.colors.warning },
8667
+ badge: { text: "GPL", color: theme.colors.warning },
8899
8668
  title: "Copyleft Licenses (GPL, LGPL, AGPL)",
8900
8669
  description: "Requires sharing source code of derivative works. Can impact your project's licensing.",
8901
- theme: theme2
8670
+ theme
8902
8671
  }
8903
8672
  )
8904
8673
  ]
@@ -8913,18 +8682,18 @@ const DependencyInfoModal = ({
8913
8682
  }
8914
8683
  ) });
8915
8684
  };
8916
- const Section = ({ icon, title, theme: theme2, children }) => /* @__PURE__ */ jsxs("div", { style: { marginBottom: `${theme2.space[5]}px` }, children: [
8685
+ const Section = ({ icon, title, theme, children }) => /* @__PURE__ */ jsxs("div", { style: { marginBottom: `${theme.space[5]}px` }, children: [
8917
8686
  /* @__PURE__ */ jsxs(
8918
8687
  "h3",
8919
8688
  {
8920
8689
  style: {
8921
- fontSize: `${theme2.fontSizes[2]}px`,
8922
- fontWeight: theme2.fontWeights.semibold,
8923
- color: theme2.colors.text,
8924
- marginBottom: `${theme2.space[3]}px`,
8690
+ fontSize: `${theme.fontSizes[2]}px`,
8691
+ fontWeight: theme.fontWeights.semibold,
8692
+ color: theme.colors.text,
8693
+ marginBottom: `${theme.space[3]}px`,
8925
8694
  display: "flex",
8926
8695
  alignItems: "center",
8927
- gap: `${theme2.space[2]}px`
8696
+ gap: `${theme.space[2]}px`
8928
8697
  },
8929
8698
  children: [
8930
8699
  icon,
@@ -8938,20 +8707,20 @@ const Section = ({ icon, title, theme: theme2, children }) => /* @__PURE__ */ js
8938
8707
  style: {
8939
8708
  display: "flex",
8940
8709
  flexDirection: "column",
8941
- gap: `${theme2.space[2]}px`
8710
+ gap: `${theme.space[2]}px`
8942
8711
  },
8943
8712
  children
8944
8713
  }
8945
8714
  )
8946
8715
  ] });
8947
- const InfoItem = ({ badge, title, description, theme: theme2 }) => /* @__PURE__ */ jsxs(
8716
+ const InfoItem = ({ badge, title, description, theme }) => /* @__PURE__ */ jsxs(
8948
8717
  "div",
8949
8718
  {
8950
8719
  style: {
8951
- padding: `${theme2.space[3]}px`,
8952
- backgroundColor: theme2.colors.backgroundSecondary,
8953
- borderRadius: `${theme2.radii[2]}px`,
8954
- border: `1px solid ${theme2.colors.border}`
8720
+ padding: `${theme.space[3]}px`,
8721
+ backgroundColor: theme.colors.backgroundSecondary,
8722
+ borderRadius: `${theme.radii[2]}px`,
8723
+ border: `1px solid ${theme.colors.border}`
8955
8724
  },
8956
8725
  children: [
8957
8726
  /* @__PURE__ */ jsxs(
@@ -8960,18 +8729,18 @@ const InfoItem = ({ badge, title, description, theme: theme2 }) => /* @__PURE__
8960
8729
  style: {
8961
8730
  display: "flex",
8962
8731
  alignItems: "center",
8963
- gap: `${theme2.space[2]}px`,
8964
- marginBottom: `${theme2.space[1]}px`
8732
+ gap: `${theme.space[2]}px`,
8733
+ marginBottom: `${theme.space[1]}px`
8965
8734
  },
8966
8735
  children: [
8967
8736
  /* @__PURE__ */ jsx(
8968
8737
  "span",
8969
8738
  {
8970
8739
  style: {
8971
- padding: `${theme2.space[1]}px ${theme2.space[2]}px`,
8972
- borderRadius: `${theme2.radii[1]}px`,
8973
- fontSize: `${theme2.fontSizes[0]}px`,
8974
- fontWeight: theme2.fontWeights.medium,
8740
+ padding: `${theme.space[1]}px ${theme.space[2]}px`,
8741
+ borderRadius: `${theme.radii[1]}px`,
8742
+ fontSize: `${theme.fontSizes[0]}px`,
8743
+ fontWeight: theme.fontWeights.medium,
8975
8744
  backgroundColor: `${badge.color}20`,
8976
8745
  color: badge.color
8977
8746
  },
@@ -8982,9 +8751,9 @@ const InfoItem = ({ badge, title, description, theme: theme2 }) => /* @__PURE__
8982
8751
  "span",
8983
8752
  {
8984
8753
  style: {
8985
- fontSize: `${theme2.fontSizes[1]}px`,
8986
- fontWeight: theme2.fontWeights.medium,
8987
- color: theme2.colors.text
8754
+ fontSize: `${theme.fontSizes[1]}px`,
8755
+ fontWeight: theme.fontWeights.medium,
8756
+ color: theme.colors.text
8988
8757
  },
8989
8758
  children: title
8990
8759
  }
@@ -8996,9 +8765,9 @@ const InfoItem = ({ badge, title, description, theme: theme2 }) => /* @__PURE__
8996
8765
  "div",
8997
8766
  {
8998
8767
  style: {
8999
- fontSize: `${theme2.fontSizes[1]}px`,
9000
- color: theme2.colors.textSecondary,
9001
- lineHeight: theme2.lineHeights.relaxed
8768
+ fontSize: `${theme.fontSizes[1]}px`,
8769
+ color: theme.colors.textSecondary,
8770
+ lineHeight: theme.lineHeights.relaxed
9002
8771
  },
9003
8772
  children: description
9004
8773
  }
@@ -9007,15 +8776,15 @@ const InfoItem = ({ badge, title, description, theme: theme2 }) => /* @__PURE__
9007
8776
  }
9008
8777
  );
9009
8778
  const DependencyRow = ({ dependency }) => {
9010
- const { theme: theme2 } = useTheme();
8779
+ const { theme } = useTheme();
9011
8780
  const [isHovered, setIsHovered] = useState(false);
9012
8781
  const [copied, setCopied] = useState(false);
9013
8782
  const getDependencyTypeBadgeStyle = (type) => {
9014
8783
  const baseStyle = {
9015
- padding: `${theme2.space[1]}px ${theme2.space[2]}px`,
9016
- borderRadius: `${theme2.radii[1]}px`,
9017
- fontSize: `${theme2.fontSizes[0]}px`,
9018
- fontWeight: theme2.fontWeights.medium,
8784
+ padding: `${theme.space[1]}px ${theme.space[2]}px`,
8785
+ borderRadius: `${theme.radii[1]}px`,
8786
+ fontSize: `${theme.fontSizes[0]}px`,
8787
+ fontWeight: theme.fontWeights.medium,
9019
8788
  minWidth: "36px",
9020
8789
  textAlign: "center"
9021
8790
  };
@@ -9023,26 +8792,26 @@ const DependencyRow = ({ dependency }) => {
9023
8792
  case "production":
9024
8793
  return {
9025
8794
  ...baseStyle,
9026
- backgroundColor: `${theme2.colors.primary}20`,
9027
- color: theme2.colors.primary
8795
+ backgroundColor: `${theme.colors.primary}20`,
8796
+ color: theme.colors.primary
9028
8797
  };
9029
8798
  case "development":
9030
8799
  return {
9031
8800
  ...baseStyle,
9032
- backgroundColor: `${theme2.colors.secondary}20`,
9033
- color: theme2.colors.secondary
8801
+ backgroundColor: `${theme.colors.secondary}20`,
8802
+ color: theme.colors.secondary
9034
8803
  };
9035
8804
  case "peer":
9036
8805
  return {
9037
8806
  ...baseStyle,
9038
- backgroundColor: `${theme2.colors.accent}20`,
9039
- color: theme2.colors.accent
8807
+ backgroundColor: `${theme.colors.accent}20`,
8808
+ color: theme.colors.accent
9040
8809
  };
9041
8810
  default:
9042
8811
  return {
9043
8812
  ...baseStyle,
9044
- backgroundColor: theme2.colors.backgroundLight,
9045
- color: theme2.colors.textSecondary
8813
+ backgroundColor: theme.colors.backgroundLight,
8814
+ color: theme.colors.textSecondary
9046
8815
  };
9047
8816
  }
9048
8817
  };
@@ -9059,8 +8828,8 @@ const DependencyRow = ({ dependency }) => {
9059
8828
  }
9060
8829
  };
9061
8830
  const actionButtonStyle = {
9062
- padding: `${theme2.space[1]}px`,
9063
- borderRadius: `${theme2.radii[1]}px`,
8831
+ padding: `${theme.space[1]}px`,
8832
+ borderRadius: `${theme.radii[1]}px`,
9064
8833
  display: "flex",
9065
8834
  alignItems: "center",
9066
8835
  justifyContent: "center",
@@ -9078,11 +8847,11 @@ const DependencyRow = ({ dependency }) => {
9078
8847
  display: "flex",
9079
8848
  alignItems: "center",
9080
8849
  justifyContent: "space-between",
9081
- padding: `${theme2.space[2]}px ${theme2.space[3]}px`,
9082
- backgroundColor: theme2.colors.background,
9083
- borderRadius: `${theme2.radii[1]}px`,
9084
- fontSize: `${theme2.fontSizes[1]}px`,
9085
- border: `1px solid ${theme2.colors.border}`,
8850
+ padding: `${theme.space[2]}px ${theme.space[3]}px`,
8851
+ backgroundColor: theme.colors.background,
8852
+ borderRadius: `${theme.radii[1]}px`,
8853
+ fontSize: `${theme.fontSizes[1]}px`,
8854
+ border: `1px solid ${theme.colors.border}`,
9086
8855
  transition: "all 0.2s"
9087
8856
  },
9088
8857
  onMouseEnter: () => setIsHovered(true),
@@ -9094,7 +8863,7 @@ const DependencyRow = ({ dependency }) => {
9094
8863
  style: {
9095
8864
  display: "flex",
9096
8865
  alignItems: "center",
9097
- gap: `${theme2.space[2]}px`,
8866
+ gap: `${theme.space[2]}px`,
9098
8867
  flex: 1,
9099
8868
  minWidth: 0
9100
8869
  },
@@ -9104,8 +8873,8 @@ const DependencyRow = ({ dependency }) => {
9104
8873
  "span",
9105
8874
  {
9106
8875
  style: {
9107
- fontWeight: theme2.fontWeights.medium,
9108
- color: theme2.colors.text,
8876
+ fontWeight: theme.fontWeights.medium,
8877
+ color: theme.colors.text,
9109
8878
  overflow: "hidden",
9110
8879
  textOverflow: "ellipsis",
9111
8880
  whiteSpace: "nowrap"
@@ -9121,7 +8890,7 @@ const DependencyRow = ({ dependency }) => {
9121
8890
  rel: "noopener noreferrer",
9122
8891
  style: {
9123
8892
  ...actionButtonStyle,
9124
- color: theme2.colors.textSecondary,
8893
+ color: theme.colors.textSecondary,
9125
8894
  textDecoration: "none",
9126
8895
  flexShrink: 0
9127
8896
  },
@@ -9148,13 +8917,13 @@ const DependencyRow = ({ dependency }) => {
9148
8917
  onClick: handleCopy,
9149
8918
  style: {
9150
8919
  ...actionButtonStyle,
9151
- color: copied ? theme2.colors.success || "#10b981" : theme2.colors.textSecondary
8920
+ color: copied ? theme.colors.success || "#10b981" : theme.colors.textSecondary
9152
8921
  },
9153
8922
  title: copied ? "Copied!" : `Copy ${dependency.name}@${dependency.version}`,
9154
8923
  children: copied ? /* @__PURE__ */ jsx(Check, { size: 12 }) : /* @__PURE__ */ jsx(Copy, { size: 12 })
9155
8924
  }
9156
8925
  ),
9157
- /* @__PURE__ */ jsx("span", { style: { color: theme2.colors.textSecondary }, children: dependency.version })
8926
+ /* @__PURE__ */ jsx("span", { style: { color: theme.colors.textSecondary }, children: dependency.version })
9158
8927
  ]
9159
8928
  }
9160
8929
  )
@@ -9169,7 +8938,7 @@ const FilterBar = ({
9169
8938
  onSearchChange,
9170
8939
  counts
9171
8940
  }) => {
9172
- const { theme: theme2 } = useTheme();
8941
+ const { theme } = useTheme();
9173
8942
  const availableFilters = [
9174
8943
  ...counts.peer > 0 ? ["peer"] : [],
9175
8944
  ...counts.production > 0 ? ["production"] : [],
@@ -9182,7 +8951,7 @@ const FilterBar = ({
9182
8951
  style: {
9183
8952
  display: "flex",
9184
8953
  flexDirection: "column",
9185
- gap: `${theme2.space[2]}px`
8954
+ gap: `${theme.space[2]}px`
9186
8955
  },
9187
8956
  children: [
9188
8957
  /* @__PURE__ */ jsxs(
@@ -9200,8 +8969,8 @@ const FilterBar = ({
9200
8969
  size: 14,
9201
8970
  style: {
9202
8971
  position: "absolute",
9203
- left: `${theme2.space[3]}px`,
9204
- color: theme2.colors.textSecondary,
8972
+ left: `${theme.space[3]}px`,
8973
+ color: theme.colors.textSecondary,
9205
8974
  pointerEvents: "none"
9206
8975
  }
9207
8976
  }
@@ -9215,13 +8984,13 @@ const FilterBar = ({
9215
8984
  onChange: (e) => onSearchChange(e.target.value),
9216
8985
  style: {
9217
8986
  width: "100%",
9218
- padding: `${theme2.space[2]}px ${theme2.space[5]}px`,
9219
- borderRadius: `${theme2.radii[2]}px`,
9220
- border: `1px solid ${theme2.colors.border}`,
9221
- backgroundColor: theme2.colors.backgroundSecondary,
9222
- color: theme2.colors.text,
9223
- fontSize: `${theme2.fontSizes[1]}px`,
9224
- fontFamily: theme2.fonts.body,
8987
+ padding: `${theme.space[2]}px ${theme.space[5]}px`,
8988
+ borderRadius: `${theme.radii[2]}px`,
8989
+ border: `1px solid ${theme.colors.border}`,
8990
+ backgroundColor: theme.colors.backgroundSecondary,
8991
+ color: theme.colors.text,
8992
+ fontSize: `${theme.fontSizes[1]}px`,
8993
+ fontFamily: theme.fonts.body,
9225
8994
  outline: "none",
9226
8995
  transition: "all 0.2s"
9227
8996
  }
@@ -9233,24 +9002,24 @@ const FilterBar = ({
9233
9002
  onClick: () => onSearchChange(""),
9234
9003
  style: {
9235
9004
  position: "absolute",
9236
- right: `${theme2.space[2]}px`,
9237
- padding: `${theme2.space[1]}px`,
9005
+ right: `${theme.space[2]}px`,
9006
+ padding: `${theme.space[1]}px`,
9238
9007
  display: "flex",
9239
9008
  alignItems: "center",
9240
9009
  justifyContent: "center",
9241
9010
  backgroundColor: "transparent",
9242
9011
  border: "none",
9243
9012
  cursor: "pointer",
9244
- borderRadius: `${theme2.radii[1]}px`
9013
+ borderRadius: `${theme.radii[1]}px`
9245
9014
  },
9246
9015
  title: "Clear search",
9247
- children: /* @__PURE__ */ jsx(X, { size: 14, color: theme2.colors.textSecondary })
9016
+ children: /* @__PURE__ */ jsx(X, { size: 14, color: theme.colors.textSecondary })
9248
9017
  }
9249
9018
  )
9250
9019
  ]
9251
9020
  }
9252
9021
  ),
9253
- showFilters && /* @__PURE__ */ jsx("div", { style: { display: "flex", gap: `${theme2.space[1]}px`, width: "100%" }, children: availableFilters.map((type) => {
9022
+ showFilters && /* @__PURE__ */ jsx("div", { style: { display: "flex", gap: `${theme.space[1]}px`, width: "100%" }, children: availableFilters.map((type) => {
9254
9023
  const isActive = activeFilters.has(type);
9255
9024
  return /* @__PURE__ */ jsxs(
9256
9025
  "button",
@@ -9258,14 +9027,14 @@ const FilterBar = ({
9258
9027
  onClick: () => onToggleFilter(type),
9259
9028
  style: {
9260
9029
  flex: 1,
9261
- padding: `${theme2.space[1]}px ${theme2.space[2]}px`,
9262
- fontSize: `${theme2.fontSizes[0]}px`,
9263
- fontWeight: theme2.fontWeights.medium,
9264
- fontFamily: theme2.fonts.body,
9265
- borderRadius: `${theme2.radii[1]}px`,
9266
- border: `1px solid ${isActive ? theme2.colors.primary : theme2.colors.border}`,
9267
- backgroundColor: isActive ? `${theme2.colors.primary}20` : theme2.colors.backgroundSecondary,
9268
- color: isActive ? theme2.colors.primary : theme2.colors.text,
9030
+ padding: `${theme.space[1]}px ${theme.space[2]}px`,
9031
+ fontSize: `${theme.fontSizes[0]}px`,
9032
+ fontWeight: theme.fontWeights.medium,
9033
+ fontFamily: theme.fonts.body,
9034
+ borderRadius: `${theme.radii[1]}px`,
9035
+ border: `1px solid ${isActive ? theme.colors.primary : theme.colors.border}`,
9036
+ backgroundColor: isActive ? `${theme.colors.primary}20` : theme.colors.backgroundSecondary,
9037
+ color: isActive ? theme.colors.primary : theme.colors.text,
9269
9038
  cursor: "pointer",
9270
9039
  transition: "all 0.2s"
9271
9040
  },
@@ -9274,7 +9043,7 @@ const FilterBar = ({
9274
9043
  /* @__PURE__ */ jsxs(
9275
9044
  "span",
9276
9045
  {
9277
- style: { marginLeft: `${theme2.space[1]}px`, opacity: 0.7 },
9046
+ style: { marginLeft: `${theme.space[1]}px`, opacity: 0.7 },
9278
9047
  children: [
9279
9048
  "(",
9280
9049
  counts[type],
@@ -9291,12 +9060,12 @@ const FilterBar = ({
9291
9060
  }
9292
9061
  );
9293
9062
  };
9294
- const dependencyTypeOrder$1 = {
9063
+ const dependencyTypeOrder = {
9295
9064
  peer: 0,
9296
9065
  production: 1,
9297
9066
  development: 2
9298
9067
  };
9299
- function extractDependencies$1(packageLayer) {
9068
+ function extractDependencies(packageLayer) {
9300
9069
  const { dependencies, devDependencies, peerDependencies } = packageLayer.packageData;
9301
9070
  const items2 = [];
9302
9071
  if (dependencies) {
@@ -9315,7 +9084,7 @@ function extractDependencies$1(packageLayer) {
9315
9084
  });
9316
9085
  }
9317
9086
  return items2.sort((a, b) => {
9318
- const typeCompare = dependencyTypeOrder$1[a.dependencyType] - dependencyTypeOrder$1[b.dependencyType];
9087
+ const typeCompare = dependencyTypeOrder[a.dependencyType] - dependencyTypeOrder[b.dependencyType];
9319
9088
  if (typeCompare !== 0) return typeCompare;
9320
9089
  return a.name.localeCompare(b.name);
9321
9090
  });
@@ -9343,7 +9112,7 @@ function findInternalDependencies(pkg, allPackages) {
9343
9112
  }
9344
9113
  const PackageSummaryCard = ({ pkg, allPackages, onClick }) => {
9345
9114
  var _a;
9346
- const { theme: theme2 } = useTheme();
9115
+ const { theme } = useTheme();
9347
9116
  const deps = pkg.packageData.dependencies || {};
9348
9117
  const devDeps = pkg.packageData.devDependencies || {};
9349
9118
  const peerDeps = pkg.packageData.peerDependencies || {};
@@ -9376,8 +9145,8 @@ const PackageSummaryCard = ({ pkg, allPackages, onClick }) => {
9376
9145
  flexDirection: "column",
9377
9146
  gap: "8px",
9378
9147
  padding: "12px",
9379
- backgroundColor: theme2.colors.backgroundSecondary,
9380
- border: `1px solid ${theme2.colors.border}`,
9148
+ backgroundColor: theme.colors.backgroundSecondary,
9149
+ border: `1px solid ${theme.colors.border}`,
9381
9150
  borderRadius: "8px",
9382
9151
  cursor: "pointer",
9383
9152
  textAlign: "left",
@@ -9385,12 +9154,12 @@ const PackageSummaryCard = ({ pkg, allPackages, onClick }) => {
9385
9154
  width: "100%"
9386
9155
  },
9387
9156
  onMouseEnter: (e) => {
9388
- e.currentTarget.style.borderColor = theme2.colors.accent;
9389
- e.currentTarget.style.backgroundColor = theme2.colors.backgroundTertiary;
9157
+ e.currentTarget.style.borderColor = theme.colors.accent;
9158
+ e.currentTarget.style.backgroundColor = theme.colors.backgroundTertiary;
9390
9159
  },
9391
9160
  onMouseLeave: (e) => {
9392
- e.currentTarget.style.borderColor = theme2.colors.border;
9393
- e.currentTarget.style.backgroundColor = theme2.colors.backgroundSecondary;
9161
+ e.currentTarget.style.borderColor = theme.colors.border;
9162
+ e.currentTarget.style.backgroundColor = theme.colors.backgroundSecondary;
9394
9163
  },
9395
9164
  children: [
9396
9165
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
@@ -9400,9 +9169,9 @@ const PackageSummaryCard = ({ pkg, allPackages, onClick }) => {
9400
9169
  "div",
9401
9170
  {
9402
9171
  style: {
9403
- fontSize: theme2.fontSizes[2],
9172
+ fontSize: theme.fontSizes[2],
9404
9173
  fontWeight: 600,
9405
- color: theme2.colors.text,
9174
+ color: theme.colors.text,
9406
9175
  overflow: "hidden",
9407
9176
  textOverflow: "ellipsis",
9408
9177
  whiteSpace: "nowrap"
@@ -9414,8 +9183,8 @@ const PackageSummaryCard = ({ pkg, allPackages, onClick }) => {
9414
9183
  "div",
9415
9184
  {
9416
9185
  style: {
9417
- fontSize: theme2.fontSizes[0],
9418
- color: theme2.colors.textSecondary
9186
+ fontSize: theme.fontSizes[0],
9187
+ color: theme.colors.textSecondary
9419
9188
  },
9420
9189
  children: [
9421
9190
  pkg.packageData.path || "/",
@@ -9435,7 +9204,7 @@ const PackageSummaryCard = ({ pkg, allPackages, onClick }) => {
9435
9204
  backgroundColor: packageRole.color + "20",
9436
9205
  color: packageRole.color,
9437
9206
  borderRadius: "4px",
9438
- fontSize: theme2.fontSizes[0],
9207
+ fontSize: theme.fontSizes[0],
9439
9208
  fontWeight: 500,
9440
9209
  flexShrink: 0
9441
9210
  },
@@ -9445,7 +9214,7 @@ const PackageSummaryCard = ({ pkg, allPackages, onClick }) => {
9445
9214
  ]
9446
9215
  }
9447
9216
  ),
9448
- /* @__PURE__ */ jsx(ChevronRight, { size: 16, color: theme2.colors.textSecondary })
9217
+ /* @__PURE__ */ jsx(ChevronRight, { size: 16, color: theme.colors.textSecondary })
9449
9218
  ] }),
9450
9219
  hasInternalDeps && /* @__PURE__ */ jsxs(
9451
9220
  "div",
@@ -9454,11 +9223,11 @@ const PackageSummaryCard = ({ pkg, allPackages, onClick }) => {
9454
9223
  display: "flex",
9455
9224
  flexDirection: "column",
9456
9225
  gap: "4px",
9457
- fontSize: theme2.fontSizes[0]
9226
+ fontSize: theme.fontSizes[0]
9458
9227
  },
9459
9228
  children: [
9460
9229
  dependsOn.length > 0 && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "6px", flexWrap: "wrap" }, children: [
9461
- /* @__PURE__ */ jsxs("span", { style: { color: theme2.colors.textSecondary, display: "flex", alignItems: "center", gap: "2px" }, children: [
9230
+ /* @__PURE__ */ jsxs("span", { style: { color: theme.colors.textSecondary, display: "flex", alignItems: "center", gap: "2px" }, children: [
9462
9231
  /* @__PURE__ */ jsx(ArrowRight, { size: 10 }),
9463
9232
  "uses"
9464
9233
  ] }),
@@ -9467,8 +9236,8 @@ const PackageSummaryCard = ({ pkg, allPackages, onClick }) => {
9467
9236
  {
9468
9237
  style: {
9469
9238
  padding: "2px 6px",
9470
- backgroundColor: theme2.colors.accent + "15",
9471
- color: theme2.colors.accent,
9239
+ backgroundColor: theme.colors.accent + "15",
9240
+ color: theme.colors.accent,
9472
9241
  borderRadius: "4px",
9473
9242
  fontWeight: 500
9474
9243
  },
@@ -9478,14 +9247,14 @@ const PackageSummaryCard = ({ pkg, allPackages, onClick }) => {
9478
9247
  ))
9479
9248
  ] }),
9480
9249
  usedBy.length > 0 && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "6px", flexWrap: "wrap" }, children: [
9481
- /* @__PURE__ */ jsx("span", { style: { color: theme2.colors.textSecondary }, children: "used by" }),
9250
+ /* @__PURE__ */ jsx("span", { style: { color: theme.colors.textSecondary }, children: "used by" }),
9482
9251
  usedBy.map((dep) => /* @__PURE__ */ jsx(
9483
9252
  "span",
9484
9253
  {
9485
9254
  style: {
9486
9255
  padding: "2px 6px",
9487
- backgroundColor: theme2.colors.textSecondary + "20",
9488
- color: theme2.colors.textSecondary,
9256
+ backgroundColor: theme.colors.textSecondary + "20",
9257
+ color: theme.colors.textSecondary,
9489
9258
  borderRadius: "4px",
9490
9259
  fontWeight: 500
9491
9260
  },
@@ -9503,8 +9272,8 @@ const PackageSummaryCard = ({ pkg, allPackages, onClick }) => {
9503
9272
  style: {
9504
9273
  display: "flex",
9505
9274
  gap: "12px",
9506
- fontSize: theme2.fontSizes[0],
9507
- color: theme2.colors.textSecondary
9275
+ fontSize: theme.fontSizes[0],
9276
+ color: theme.colors.textSecondary
9508
9277
  },
9509
9278
  children: [
9510
9279
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
@@ -9535,7 +9304,7 @@ const PackageCard = ({
9535
9304
  onPackageClick,
9536
9305
  standalone = false
9537
9306
  }) => {
9538
- const { theme: theme2 } = useTheme();
9307
+ const { theme } = useTheme();
9539
9308
  const [activeTab, setActiveTab] = useState("commands");
9540
9309
  const [activeFilters, setActiveFilters] = useState(/* @__PURE__ */ new Set());
9541
9310
  const [searchQuery, setSearchQuery] = useState("");
@@ -9545,7 +9314,7 @@ const PackageCard = ({
9545
9314
  return Object.entries(pkg.configFiles).filter(([, config]) => config == null ? void 0 : config.exists).map(([name, config]) => ({ name, ...config }));
9546
9315
  }, [pkg.configFiles]);
9547
9316
  const commands = pkg.packageData.availableCommands || [];
9548
- const dependencyItems = useMemo(() => extractDependencies$1(pkg), [pkg]);
9317
+ const dependencyItems = useMemo(() => extractDependencies(pkg), [pkg]);
9549
9318
  const depCounts = useMemo(() => ({
9550
9319
  all: dependencyItems.length,
9551
9320
  production: dependencyItems.filter((d) => d.dependencyType === "production").length,
@@ -9587,7 +9356,7 @@ const PackageCard = ({
9587
9356
  alignItems: "center",
9588
9357
  gap: "8px",
9589
9358
  padding: "12px 16px",
9590
- borderBottom: `1px solid ${theme2.colors.border}`
9359
+ borderBottom: `1px solid ${theme.colors.border}`
9591
9360
  },
9592
9361
  children: [
9593
9362
  /* @__PURE__ */ jsx(PackageManagerIcon, { packageManager: pkg.packageData.packageManager, size: 18 }),
@@ -9596,9 +9365,9 @@ const PackageCard = ({
9596
9365
  "div",
9597
9366
  {
9598
9367
  style: {
9599
- fontSize: theme2.fontSizes[2],
9368
+ fontSize: theme.fontSizes[2],
9600
9369
  fontWeight: 600,
9601
- color: theme2.colors.text,
9370
+ color: theme.colors.text,
9602
9371
  overflow: "hidden",
9603
9372
  textOverflow: "ellipsis",
9604
9373
  whiteSpace: "nowrap"
@@ -9610,8 +9379,8 @@ const PackageCard = ({
9610
9379
  "div",
9611
9380
  {
9612
9381
  style: {
9613
- fontSize: theme2.fontSizes[0],
9614
- color: theme2.colors.textSecondary
9382
+ fontSize: theme.fontSizes[0],
9383
+ color: theme.colors.textSecondary
9615
9384
  },
9616
9385
  children: [
9617
9386
  "v",
@@ -9629,11 +9398,11 @@ const PackageCard = ({
9629
9398
  alignItems: "center",
9630
9399
  gap: "4px",
9631
9400
  padding: "4px 8px",
9632
- backgroundColor: theme2.colors.backgroundTertiary,
9633
- border: `1px solid ${theme2.colors.border}`,
9401
+ backgroundColor: theme.colors.backgroundTertiary,
9402
+ border: `1px solid ${theme.colors.border}`,
9634
9403
  borderRadius: "4px",
9635
- color: theme2.colors.textSecondary,
9636
- fontSize: theme2.fontSizes[0],
9404
+ color: theme.colors.textSecondary,
9405
+ fontSize: theme.fontSizes[0],
9637
9406
  cursor: "pointer"
9638
9407
  },
9639
9408
  title: "Open package folder",
@@ -9651,8 +9420,8 @@ const PackageCard = ({
9651
9420
  {
9652
9421
  style: {
9653
9422
  display: "flex",
9654
- backgroundColor: theme2.colors.backgroundTertiary,
9655
- borderBottom: `1px solid ${theme2.colors.border}`
9423
+ backgroundColor: theme.colors.backgroundTertiary,
9424
+ borderBottom: `1px solid ${theme.colors.border}`
9656
9425
  },
9657
9426
  children: [
9658
9427
  { id: "commands", label: "Commands", count: commands.length },
@@ -9665,11 +9434,11 @@ const PackageCard = ({
9665
9434
  style: {
9666
9435
  flex: 1,
9667
9436
  padding: "8px 12px",
9668
- backgroundColor: activeTab === tab.id ? theme2.colors.backgroundSecondary : "transparent",
9437
+ backgroundColor: activeTab === tab.id ? theme.colors.backgroundSecondary : "transparent",
9669
9438
  border: "none",
9670
- borderBottom: activeTab === tab.id ? `2px solid ${theme2.colors.accent}` : "2px solid transparent",
9671
- color: activeTab === tab.id ? theme2.colors.text : theme2.colors.textSecondary,
9672
- fontSize: theme2.fontSizes[1],
9439
+ borderBottom: activeTab === tab.id ? `2px solid ${theme.colors.accent}` : "2px solid transparent",
9440
+ color: activeTab === tab.id ? theme.colors.text : theme.colors.textSecondary,
9441
+ fontSize: theme.fontSizes[1],
9673
9442
  cursor: "pointer",
9674
9443
  display: "flex",
9675
9444
  alignItems: "center",
@@ -9682,10 +9451,10 @@ const PackageCard = ({
9682
9451
  "span",
9683
9452
  {
9684
9453
  style: {
9685
- backgroundColor: theme2.colors.backgroundTertiary,
9454
+ backgroundColor: theme.colors.backgroundTertiary,
9686
9455
  padding: "1px 6px",
9687
9456
  borderRadius: "10px",
9688
- fontSize: theme2.fontSizes[0]
9457
+ fontSize: theme.fontSizes[0]
9689
9458
  },
9690
9459
  children: tab.count
9691
9460
  }
@@ -9697,7 +9466,7 @@ const PackageCard = ({
9697
9466
  }
9698
9467
  ),
9699
9468
  /* @__PURE__ */ jsxs("div", { style: { flex: 1, padding: activeTab === "dependencies" ? "0" : "12px", overflow: "auto" }, children: [
9700
- activeTab === "commands" && /* @__PURE__ */ jsx("div", { style: { display: "flex", flexDirection: "column", gap: "6px" }, children: commands.length === 0 ? /* @__PURE__ */ jsx("div", { style: { color: theme2.colors.textSecondary, fontSize: theme2.fontSizes[1] }, children: "No commands available" }) : commands.map((cmd, idx) => /* @__PURE__ */ jsxs(
9469
+ activeTab === "commands" && /* @__PURE__ */ jsx("div", { style: { display: "flex", flexDirection: "column", gap: "6px" }, children: commands.length === 0 ? /* @__PURE__ */ jsx("div", { style: { color: theme.colors.textSecondary, fontSize: theme.fontSizes[1] }, children: "No commands available" }) : commands.map((cmd, idx) => /* @__PURE__ */ jsxs(
9701
9470
  "button",
9702
9471
  {
9703
9472
  onClick: () => onCommandClick == null ? void 0 : onCommandClick(cmd, pkg.packageData.path),
@@ -9706,23 +9475,23 @@ const PackageCard = ({
9706
9475
  alignItems: "center",
9707
9476
  gap: "8px",
9708
9477
  padding: "8px 12px",
9709
- backgroundColor: theme2.colors.backgroundTertiary,
9710
- border: `1px solid ${theme2.colors.border}`,
9478
+ backgroundColor: theme.colors.backgroundTertiary,
9479
+ border: `1px solid ${theme.colors.border}`,
9711
9480
  borderRadius: "6px",
9712
- color: theme2.colors.text,
9481
+ color: theme.colors.text,
9713
9482
  cursor: "pointer",
9714
9483
  textAlign: "left"
9715
9484
  },
9716
9485
  children: [
9717
- /* @__PURE__ */ jsx(Terminal, { size: 14, color: theme2.colors.accent }),
9486
+ /* @__PURE__ */ jsx(Terminal, { size: 14, color: theme.colors.accent }),
9718
9487
  /* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
9719
- /* @__PURE__ */ jsx("div", { style: { fontWeight: 500, fontSize: theme2.fontSizes[1] }, children: cmd.name }),
9488
+ /* @__PURE__ */ jsx("div", { style: { fontWeight: 500, fontSize: theme.fontSizes[1] }, children: cmd.name }),
9720
9489
  /* @__PURE__ */ jsx(
9721
9490
  "div",
9722
9491
  {
9723
9492
  style: {
9724
- fontSize: theme2.fontSizes[0],
9725
- color: theme2.colors.textSecondary,
9493
+ fontSize: theme.fontSizes[0],
9494
+ color: theme.colors.textSecondary,
9726
9495
  fontFamily: "monospace",
9727
9496
  overflow: "hidden",
9728
9497
  textOverflow: "ellipsis",
@@ -9737,20 +9506,20 @@ const PackageCard = ({
9737
9506
  {
9738
9507
  style: {
9739
9508
  padding: "2px 6px",
9740
- backgroundColor: theme2.colors.accent + "20",
9741
- color: theme2.colors.accent,
9509
+ backgroundColor: theme.colors.accent + "20",
9510
+ color: theme.colors.accent,
9742
9511
  borderRadius: "4px",
9743
- fontSize: theme2.fontSizes[0]
9512
+ fontSize: theme.fontSizes[0]
9744
9513
  },
9745
9514
  children: cmd.lensId
9746
9515
  }
9747
9516
  ),
9748
- /* @__PURE__ */ jsx(ExternalLink, { size: 12, color: theme2.colors.textSecondary })
9517
+ /* @__PURE__ */ jsx(ExternalLink, { size: 12, color: theme.colors.textSecondary })
9749
9518
  ]
9750
9519
  },
9751
9520
  idx
9752
9521
  )) }),
9753
- activeTab === "configs" && /* @__PURE__ */ jsx("div", { style: { display: "flex", flexDirection: "column", gap: "6px" }, children: configFiles.length === 0 ? /* @__PURE__ */ jsx("div", { style: { color: theme2.colors.textSecondary, fontSize: theme2.fontSizes[1] }, children: "No config files detected" }) : configFiles.map((config, idx) => /* @__PURE__ */ jsxs(
9522
+ activeTab === "configs" && /* @__PURE__ */ jsx("div", { style: { display: "flex", flexDirection: "column", gap: "6px" }, children: configFiles.length === 0 ? /* @__PURE__ */ jsx("div", { style: { color: theme.colors.textSecondary, fontSize: theme.fontSizes[1] }, children: "No config files detected" }) : configFiles.map((config, idx) => /* @__PURE__ */ jsxs(
9754
9523
  "button",
9755
9524
  {
9756
9525
  onClick: () => onConfigClick == null ? void 0 : onConfigClick(config),
@@ -9759,23 +9528,23 @@ const PackageCard = ({
9759
9528
  alignItems: "center",
9760
9529
  gap: "8px",
9761
9530
  padding: "8px 12px",
9762
- backgroundColor: theme2.colors.backgroundTertiary,
9763
- border: `1px solid ${theme2.colors.border}`,
9531
+ backgroundColor: theme.colors.backgroundTertiary,
9532
+ border: `1px solid ${theme.colors.border}`,
9764
9533
  borderRadius: "6px",
9765
- color: theme2.colors.text,
9534
+ color: theme.colors.text,
9766
9535
  cursor: "pointer",
9767
9536
  textAlign: "left"
9768
9537
  },
9769
9538
  children: [
9770
- /* @__PURE__ */ jsx(Settings, { size: 14, color: theme2.colors.textSecondary }),
9539
+ /* @__PURE__ */ jsx(Settings, { size: 14, color: theme.colors.textSecondary }),
9771
9540
  /* @__PURE__ */ jsxs("div", { style: { flex: 1 }, children: [
9772
- /* @__PURE__ */ jsx("div", { style: { fontWeight: 500, fontSize: theme2.fontSizes[1] }, children: config.name }),
9541
+ /* @__PURE__ */ jsx("div", { style: { fontWeight: 500, fontSize: theme.fontSizes[1] }, children: config.name }),
9773
9542
  /* @__PURE__ */ jsx(
9774
9543
  "div",
9775
9544
  {
9776
9545
  style: {
9777
- fontSize: theme2.fontSizes[0],
9778
- color: theme2.colors.textSecondary,
9546
+ fontSize: theme.fontSizes[0],
9547
+ color: theme.colors.textSecondary,
9779
9548
  fontFamily: "monospace"
9780
9549
  },
9781
9550
  children: config.path
@@ -9787,10 +9556,10 @@ const PackageCard = ({
9787
9556
  {
9788
9557
  style: {
9789
9558
  padding: "2px 6px",
9790
- backgroundColor: theme2.colors.textSecondary + "20",
9791
- color: theme2.colors.textSecondary,
9559
+ backgroundColor: theme.colors.textSecondary + "20",
9560
+ color: theme.colors.textSecondary,
9792
9561
  borderRadius: "4px",
9793
- fontSize: theme2.fontSizes[0]
9562
+ fontSize: theme.fontSizes[0]
9794
9563
  },
9795
9564
  children: "inline"
9796
9565
  }
@@ -9805,8 +9574,8 @@ const PackageCard = ({
9805
9574
  {
9806
9575
  style: {
9807
9576
  padding: "12px",
9808
- color: theme2.colors.textSecondary,
9809
- fontSize: theme2.fontSizes[1],
9577
+ color: theme.colors.textSecondary,
9578
+ fontSize: theme.fontSizes[1],
9810
9579
  display: "flex",
9811
9580
  alignItems: "center",
9812
9581
  justifyContent: "center",
@@ -9818,7 +9587,7 @@ const PackageCard = ({
9818
9587
  ]
9819
9588
  }
9820
9589
  ) : /* @__PURE__ */ jsxs(Fragment, { children: [
9821
- /* @__PURE__ */ jsx("div", { style: { padding: "12px", borderBottom: `1px solid ${theme2.colors.border}` }, children: /* @__PURE__ */ jsx(
9590
+ /* @__PURE__ */ jsx("div", { style: { padding: "12px", borderBottom: `1px solid ${theme.colors.border}` }, children: /* @__PURE__ */ jsx(
9822
9591
  FilterBar,
9823
9592
  {
9824
9593
  activeFilters,
@@ -9833,8 +9602,8 @@ const PackageCard = ({
9833
9602
  "div",
9834
9603
  {
9835
9604
  style: {
9836
- fontSize: theme2.fontSizes[0],
9837
- color: theme2.colors.textSecondary,
9605
+ fontSize: theme.fontSizes[0],
9606
+ color: theme.colors.textSecondary,
9838
9607
  marginBottom: "8px"
9839
9608
  },
9840
9609
  children: [
@@ -9851,8 +9620,8 @@ const PackageCard = ({
9851
9620
  style: {
9852
9621
  padding: "12px",
9853
9622
  textAlign: "center",
9854
- color: theme2.colors.textSecondary,
9855
- fontSize: theme2.fontSizes[1]
9623
+ color: theme.colors.textSecondary,
9624
+ fontSize: theme.fontSizes[1]
9856
9625
  },
9857
9626
  children: "No dependencies match your filters"
9858
9627
  }
@@ -9880,9 +9649,9 @@ const PackageCard = ({
9880
9649
  "div",
9881
9650
  {
9882
9651
  style: {
9883
- backgroundColor: theme2.colors.backgroundSecondary,
9652
+ backgroundColor: theme.colors.backgroundSecondary,
9884
9653
  borderRadius: "8px",
9885
- border: `1px solid ${theme2.colors.border}`,
9654
+ border: `1px solid ${theme.colors.border}`,
9886
9655
  overflow: "hidden"
9887
9656
  },
9888
9657
  children: [
@@ -9899,18 +9668,18 @@ const PackageCard = ({
9899
9668
  backgroundColor: "transparent",
9900
9669
  border: "none",
9901
9670
  cursor: "pointer",
9902
- color: theme2.colors.text,
9671
+ color: theme.colors.text,
9903
9672
  textAlign: "left"
9904
9673
  },
9905
9674
  children: [
9906
- isExpanded ? /* @__PURE__ */ jsx(ChevronDown, { size: 16, color: theme2.colors.textSecondary }) : /* @__PURE__ */ jsx(ChevronRight, { size: 16, color: theme2.colors.textSecondary }),
9675
+ isExpanded ? /* @__PURE__ */ jsx(ChevronDown, { size: 16, color: theme.colors.textSecondary }) : /* @__PURE__ */ jsx(ChevronRight, { size: 16, color: theme.colors.textSecondary }),
9907
9676
  /* @__PURE__ */ jsx(PackageManagerIcon, { packageManager: pkg.packageData.packageManager, size: 18 }),
9908
9677
  /* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
9909
9678
  /* @__PURE__ */ jsx(
9910
9679
  "div",
9911
9680
  {
9912
9681
  style: {
9913
- fontSize: theme2.fontSizes[2],
9682
+ fontSize: theme.fontSizes[2],
9914
9683
  fontWeight: 600,
9915
9684
  overflow: "hidden",
9916
9685
  textOverflow: "ellipsis",
@@ -9923,8 +9692,8 @@ const PackageCard = ({
9923
9692
  "div",
9924
9693
  {
9925
9694
  style: {
9926
- fontSize: theme2.fontSizes[0],
9927
- color: theme2.colors.textSecondary
9695
+ fontSize: theme.fontSizes[0],
9696
+ color: theme.colors.textSecondary
9928
9697
  },
9929
9698
  children: [
9930
9699
  "v",
@@ -9945,11 +9714,11 @@ const PackageCard = ({
9945
9714
  alignItems: "center",
9946
9715
  gap: "4px",
9947
9716
  padding: "4px 8px",
9948
- backgroundColor: theme2.colors.backgroundTertiary,
9949
- border: `1px solid ${theme2.colors.border}`,
9717
+ backgroundColor: theme.colors.backgroundTertiary,
9718
+ border: `1px solid ${theme.colors.border}`,
9950
9719
  borderRadius: "4px",
9951
- color: theme2.colors.textSecondary,
9952
- fontSize: theme2.fontSizes[0],
9720
+ color: theme.colors.textSecondary,
9721
+ fontSize: theme.fontSizes[0],
9953
9722
  cursor: "pointer"
9954
9723
  },
9955
9724
  title: "Open package folder",
@@ -9962,14 +9731,14 @@ const PackageCard = ({
9962
9731
  ]
9963
9732
  }
9964
9733
  ),
9965
- isExpanded && /* @__PURE__ */ jsxs("div", { style: { borderTop: `1px solid ${theme2.colors.border}` }, children: [
9734
+ isExpanded && /* @__PURE__ */ jsxs("div", { style: { borderTop: `1px solid ${theme.colors.border}` }, children: [
9966
9735
  /* @__PURE__ */ jsx(
9967
9736
  "div",
9968
9737
  {
9969
9738
  style: {
9970
9739
  display: "flex",
9971
- backgroundColor: theme2.colors.backgroundTertiary,
9972
- borderBottom: `1px solid ${theme2.colors.border}`
9740
+ backgroundColor: theme.colors.backgroundTertiary,
9741
+ borderBottom: `1px solid ${theme.colors.border}`
9973
9742
  },
9974
9743
  children: [
9975
9744
  { id: "commands", label: "Commands", count: commands.length },
@@ -9982,11 +9751,11 @@ const PackageCard = ({
9982
9751
  style: {
9983
9752
  flex: 1,
9984
9753
  padding: "8px 12px",
9985
- backgroundColor: activeTab === tab.id ? theme2.colors.backgroundSecondary : "transparent",
9754
+ backgroundColor: activeTab === tab.id ? theme.colors.backgroundSecondary : "transparent",
9986
9755
  border: "none",
9987
- borderBottom: activeTab === tab.id ? `2px solid ${theme2.colors.accent}` : "2px solid transparent",
9988
- color: activeTab === tab.id ? theme2.colors.text : theme2.colors.textSecondary,
9989
- fontSize: theme2.fontSizes[1],
9756
+ borderBottom: activeTab === tab.id ? `2px solid ${theme.colors.accent}` : "2px solid transparent",
9757
+ color: activeTab === tab.id ? theme.colors.text : theme.colors.textSecondary,
9758
+ fontSize: theme.fontSizes[1],
9990
9759
  cursor: "pointer",
9991
9760
  display: "flex",
9992
9761
  alignItems: "center",
@@ -9999,10 +9768,10 @@ const PackageCard = ({
9999
9768
  "span",
10000
9769
  {
10001
9770
  style: {
10002
- backgroundColor: theme2.colors.backgroundTertiary,
9771
+ backgroundColor: theme.colors.backgroundTertiary,
10003
9772
  padding: "1px 6px",
10004
9773
  borderRadius: "10px",
10005
- fontSize: theme2.fontSizes[0]
9774
+ fontSize: theme.fontSizes[0]
10006
9775
  },
10007
9776
  children: tab.count
10008
9777
  }
@@ -10014,7 +9783,7 @@ const PackageCard = ({
10014
9783
  }
10015
9784
  ),
10016
9785
  /* @__PURE__ */ jsxs("div", { style: { padding: activeTab === "dependencies" ? "0" : "12px", maxHeight: "300px", overflow: "auto" }, children: [
10017
- activeTab === "commands" && /* @__PURE__ */ jsx("div", { style: { display: "flex", flexDirection: "column", gap: "6px" }, children: commands.length === 0 ? /* @__PURE__ */ jsx("div", { style: { color: theme2.colors.textSecondary, fontSize: theme2.fontSizes[1] }, children: "No commands available" }) : commands.map((cmd, idx) => /* @__PURE__ */ jsxs(
9786
+ activeTab === "commands" && /* @__PURE__ */ jsx("div", { style: { display: "flex", flexDirection: "column", gap: "6px" }, children: commands.length === 0 ? /* @__PURE__ */ jsx("div", { style: { color: theme.colors.textSecondary, fontSize: theme.fontSizes[1] }, children: "No commands available" }) : commands.map((cmd, idx) => /* @__PURE__ */ jsxs(
10018
9787
  "button",
10019
9788
  {
10020
9789
  onClick: () => onCommandClick == null ? void 0 : onCommandClick(cmd, pkg.packageData.path),
@@ -10023,23 +9792,23 @@ const PackageCard = ({
10023
9792
  alignItems: "center",
10024
9793
  gap: "8px",
10025
9794
  padding: "8px 12px",
10026
- backgroundColor: theme2.colors.backgroundTertiary,
10027
- border: `1px solid ${theme2.colors.border}`,
9795
+ backgroundColor: theme.colors.backgroundTertiary,
9796
+ border: `1px solid ${theme.colors.border}`,
10028
9797
  borderRadius: "6px",
10029
- color: theme2.colors.text,
9798
+ color: theme.colors.text,
10030
9799
  cursor: "pointer",
10031
9800
  textAlign: "left"
10032
9801
  },
10033
9802
  children: [
10034
- /* @__PURE__ */ jsx(Terminal, { size: 14, color: theme2.colors.accent }),
9803
+ /* @__PURE__ */ jsx(Terminal, { size: 14, color: theme.colors.accent }),
10035
9804
  /* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
10036
- /* @__PURE__ */ jsx("div", { style: { fontWeight: 500, fontSize: theme2.fontSizes[1] }, children: cmd.name }),
9805
+ /* @__PURE__ */ jsx("div", { style: { fontWeight: 500, fontSize: theme.fontSizes[1] }, children: cmd.name }),
10037
9806
  /* @__PURE__ */ jsx(
10038
9807
  "div",
10039
9808
  {
10040
9809
  style: {
10041
- fontSize: theme2.fontSizes[0],
10042
- color: theme2.colors.textSecondary,
9810
+ fontSize: theme.fontSizes[0],
9811
+ color: theme.colors.textSecondary,
10043
9812
  fontFamily: "monospace",
10044
9813
  overflow: "hidden",
10045
9814
  textOverflow: "ellipsis",
@@ -10054,20 +9823,20 @@ const PackageCard = ({
10054
9823
  {
10055
9824
  style: {
10056
9825
  padding: "2px 6px",
10057
- backgroundColor: theme2.colors.accent + "20",
10058
- color: theme2.colors.accent,
9826
+ backgroundColor: theme.colors.accent + "20",
9827
+ color: theme.colors.accent,
10059
9828
  borderRadius: "4px",
10060
- fontSize: theme2.fontSizes[0]
9829
+ fontSize: theme.fontSizes[0]
10061
9830
  },
10062
9831
  children: cmd.lensId
10063
9832
  }
10064
9833
  ),
10065
- /* @__PURE__ */ jsx(ExternalLink, { size: 12, color: theme2.colors.textSecondary })
9834
+ /* @__PURE__ */ jsx(ExternalLink, { size: 12, color: theme.colors.textSecondary })
10066
9835
  ]
10067
9836
  },
10068
9837
  idx
10069
9838
  )) }),
10070
- activeTab === "configs" && /* @__PURE__ */ jsx("div", { style: { display: "flex", flexDirection: "column", gap: "6px" }, children: configFiles.length === 0 ? /* @__PURE__ */ jsx("div", { style: { color: theme2.colors.textSecondary, fontSize: theme2.fontSizes[1] }, children: "No config files detected" }) : configFiles.map((config, idx) => /* @__PURE__ */ jsxs(
9839
+ activeTab === "configs" && /* @__PURE__ */ jsx("div", { style: { display: "flex", flexDirection: "column", gap: "6px" }, children: configFiles.length === 0 ? /* @__PURE__ */ jsx("div", { style: { color: theme.colors.textSecondary, fontSize: theme.fontSizes[1] }, children: "No config files detected" }) : configFiles.map((config, idx) => /* @__PURE__ */ jsxs(
10071
9840
  "button",
10072
9841
  {
10073
9842
  onClick: () => onConfigClick == null ? void 0 : onConfigClick(config),
@@ -10076,23 +9845,23 @@ const PackageCard = ({
10076
9845
  alignItems: "center",
10077
9846
  gap: "8px",
10078
9847
  padding: "8px 12px",
10079
- backgroundColor: theme2.colors.backgroundTertiary,
10080
- border: `1px solid ${theme2.colors.border}`,
9848
+ backgroundColor: theme.colors.backgroundTertiary,
9849
+ border: `1px solid ${theme.colors.border}`,
10081
9850
  borderRadius: "6px",
10082
- color: theme2.colors.text,
9851
+ color: theme.colors.text,
10083
9852
  cursor: "pointer",
10084
9853
  textAlign: "left"
10085
9854
  },
10086
9855
  children: [
10087
- /* @__PURE__ */ jsx(Settings, { size: 14, color: theme2.colors.textSecondary }),
9856
+ /* @__PURE__ */ jsx(Settings, { size: 14, color: theme.colors.textSecondary }),
10088
9857
  /* @__PURE__ */ jsxs("div", { style: { flex: 1 }, children: [
10089
- /* @__PURE__ */ jsx("div", { style: { fontWeight: 500, fontSize: theme2.fontSizes[1] }, children: config.name }),
9858
+ /* @__PURE__ */ jsx("div", { style: { fontWeight: 500, fontSize: theme.fontSizes[1] }, children: config.name }),
10090
9859
  /* @__PURE__ */ jsx(
10091
9860
  "div",
10092
9861
  {
10093
9862
  style: {
10094
- fontSize: theme2.fontSizes[0],
10095
- color: theme2.colors.textSecondary,
9863
+ fontSize: theme.fontSizes[0],
9864
+ color: theme.colors.textSecondary,
10096
9865
  fontFamily: "monospace"
10097
9866
  },
10098
9867
  children: config.path
@@ -10104,10 +9873,10 @@ const PackageCard = ({
10104
9873
  {
10105
9874
  style: {
10106
9875
  padding: "2px 6px",
10107
- backgroundColor: theme2.colors.textSecondary + "20",
10108
- color: theme2.colors.textSecondary,
9876
+ backgroundColor: theme.colors.textSecondary + "20",
9877
+ color: theme.colors.textSecondary,
10109
9878
  borderRadius: "4px",
10110
- fontSize: theme2.fontSizes[0]
9879
+ fontSize: theme.fontSizes[0]
10111
9880
  },
10112
9881
  children: "inline"
10113
9882
  }
@@ -10122,8 +9891,8 @@ const PackageCard = ({
10122
9891
  {
10123
9892
  style: {
10124
9893
  padding: "12px",
10125
- color: theme2.colors.textSecondary,
10126
- fontSize: theme2.fontSizes[1],
9894
+ color: theme.colors.textSecondary,
9895
+ fontSize: theme.fontSizes[1],
10127
9896
  display: "flex",
10128
9897
  alignItems: "center",
10129
9898
  justifyContent: "center",
@@ -10135,7 +9904,7 @@ const PackageCard = ({
10135
9904
  ]
10136
9905
  }
10137
9906
  ) : /* @__PURE__ */ jsxs(Fragment, { children: [
10138
- /* @__PURE__ */ jsx("div", { style: { padding: "12px", borderBottom: `1px solid ${theme2.colors.border}` }, children: /* @__PURE__ */ jsx(
9907
+ /* @__PURE__ */ jsx("div", { style: { padding: "12px", borderBottom: `1px solid ${theme.colors.border}` }, children: /* @__PURE__ */ jsx(
10139
9908
  FilterBar,
10140
9909
  {
10141
9910
  activeFilters,
@@ -10150,8 +9919,8 @@ const PackageCard = ({
10150
9919
  "div",
10151
9920
  {
10152
9921
  style: {
10153
- fontSize: theme2.fontSizes[0],
10154
- color: theme2.colors.textSecondary,
9922
+ fontSize: theme.fontSizes[0],
9923
+ color: theme.colors.textSecondary,
10155
9924
  marginBottom: "8px"
10156
9925
  },
10157
9926
  children: [
@@ -10168,8 +9937,8 @@ const PackageCard = ({
10168
9937
  style: {
10169
9938
  padding: "12px",
10170
9939
  textAlign: "center",
10171
- color: theme2.colors.textSecondary,
10172
- fontSize: theme2.fontSizes[1]
9940
+ color: theme.colors.textSecondary,
9941
+ fontSize: theme.fontSizes[1]
10173
9942
  },
10174
9943
  children: "No dependencies match your filters"
10175
9944
  }
@@ -10204,7 +9973,7 @@ const PackageCompositionPanelContent = ({
10204
9973
  onConfigClick,
10205
9974
  onPackageClick
10206
9975
  }) => {
10207
- const { theme: theme2 } = useTheme();
9976
+ const { theme } = useTheme();
10208
9977
  const [selectedPackageId, setSelectedPackageId] = useState(null);
10209
9978
  const sortedPackages = useMemo(() => {
10210
9979
  return [...packages].sort((a, b) => {
@@ -10224,7 +9993,7 @@ const PackageCompositionPanelContent = ({
10224
9993
  style: {
10225
9994
  padding: "20px",
10226
9995
  textAlign: "center",
10227
- color: theme2.colors.textSecondary
9996
+ color: theme.colors.textSecondary
10228
9997
  },
10229
9998
  children: "Loading packages..."
10230
9999
  }
@@ -10237,7 +10006,7 @@ const PackageCompositionPanelContent = ({
10237
10006
  style: {
10238
10007
  padding: "20px",
10239
10008
  textAlign: "center",
10240
- color: theme2.colors.textSecondary
10009
+ color: theme.colors.textSecondary
10241
10010
  },
10242
10011
  children: emptyMessage
10243
10012
  }
@@ -10295,15 +10064,15 @@ const PackageCompositionPanelContent = ({
10295
10064
  {
10296
10065
  style: {
10297
10066
  padding: "12px 16px",
10298
- borderBottom: `1px solid ${theme2.colors.border}`,
10067
+ borderBottom: `1px solid ${theme.colors.border}`,
10299
10068
  display: "flex",
10300
10069
  alignItems: "center",
10301
10070
  gap: "8px",
10302
10071
  flexShrink: 0
10303
10072
  },
10304
10073
  children: [
10305
- /* @__PURE__ */ jsx(FileCode, { size: 16, color: theme2.colors.accent }),
10306
- /* @__PURE__ */ jsxs("span", { style: { fontSize: theme2.fontSizes[1], color: theme2.colors.textSecondary }, children: [
10074
+ /* @__PURE__ */ jsx(FileCode, { size: 16, color: theme.colors.accent }),
10075
+ /* @__PURE__ */ jsxs("span", { style: { fontSize: theme.fontSizes[1], color: theme.colors.textSecondary }, children: [
10307
10076
  packages.length,
10308
10077
  " packages"
10309
10078
  ] })
@@ -10351,7 +10120,7 @@ const PackageCompositionPanelContent = ({
10351
10120
  {
10352
10121
  style: {
10353
10122
  padding: "8px 12px",
10354
- borderBottom: `1px solid ${theme2.colors.border}`,
10123
+ borderBottom: `1px solid ${theme.colors.border}`,
10355
10124
  display: "flex",
10356
10125
  alignItems: "center",
10357
10126
  gap: "8px",
@@ -10369,13 +10138,13 @@ const PackageCompositionPanelContent = ({
10369
10138
  backgroundColor: "transparent",
10370
10139
  border: "none",
10371
10140
  borderRadius: "4px",
10372
- color: theme2.colors.accent,
10373
- fontSize: theme2.fontSizes[1],
10141
+ color: theme.colors.accent,
10142
+ fontSize: theme.fontSizes[1],
10374
10143
  cursor: "pointer",
10375
10144
  transition: "background-color 0.15s ease"
10376
10145
  },
10377
10146
  onMouseEnter: (e) => {
10378
- e.currentTarget.style.backgroundColor = theme2.colors.backgroundTertiary;
10147
+ e.currentTarget.style.backgroundColor = theme.colors.backgroundTertiary;
10379
10148
  },
10380
10149
  onMouseLeave: (e) => {
10381
10150
  e.currentTarget.style.backgroundColor = "transparent";
@@ -10411,14 +10180,14 @@ const PackageCompositionPanelContent = ({
10411
10180
  );
10412
10181
  };
10413
10182
  const PackageCompositionPanelPreview = () => {
10414
- const { theme: theme2 } = useTheme();
10183
+ const { theme } = useTheme();
10415
10184
  return /* @__PURE__ */ jsxs(
10416
10185
  "div",
10417
10186
  {
10418
10187
  style: {
10419
10188
  padding: "12px",
10420
10189
  fontSize: "12px",
10421
- color: theme2.colors.text,
10190
+ color: theme.colors.text,
10422
10191
  display: "flex",
10423
10192
  flexDirection: "column",
10424
10193
  gap: "6px"
@@ -10429,16 +10198,16 @@ const PackageCompositionPanelPreview = () => {
10429
10198
  /* @__PURE__ */ jsx("span", { children: "my-app" })
10430
10199
  ] }),
10431
10200
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "6px", paddingLeft: "8px" }, children: [
10432
- /* @__PURE__ */ jsx(Terminal, { size: 12, color: theme2.colors.textSecondary }),
10433
- /* @__PURE__ */ jsx("span", { style: { color: theme2.colors.textSecondary }, children: "5 commands" })
10201
+ /* @__PURE__ */ jsx(Terminal, { size: 12, color: theme.colors.textSecondary }),
10202
+ /* @__PURE__ */ jsx("span", { style: { color: theme.colors.textSecondary }, children: "5 commands" })
10434
10203
  ] }),
10435
10204
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "6px", paddingLeft: "8px" }, children: [
10436
- /* @__PURE__ */ jsx(Settings, { size: 12, color: theme2.colors.textSecondary }),
10437
- /* @__PURE__ */ jsx("span", { style: { color: theme2.colors.textSecondary }, children: "3 configs" })
10205
+ /* @__PURE__ */ jsx(Settings, { size: 12, color: theme.colors.textSecondary }),
10206
+ /* @__PURE__ */ jsx("span", { style: { color: theme.colors.textSecondary }, children: "3 configs" })
10438
10207
  ] }),
10439
10208
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "6px", paddingLeft: "8px" }, children: [
10440
- /* @__PURE__ */ jsx(Package, { size: 12, color: theme2.colors.textSecondary }),
10441
- /* @__PURE__ */ jsx("span", { style: { color: theme2.colors.textSecondary }, children: "12 deps" })
10209
+ /* @__PURE__ */ jsx(Package, { size: 12, color: theme.colors.textSecondary }),
10210
+ /* @__PURE__ */ jsx("span", { style: { color: theme.colors.textSecondary }, children: "12 deps" })
10442
10211
  ] })
10443
10212
  ]
10444
10213
  }
@@ -10457,382 +10226,6 @@ const PackageCompositionPanel = ({ context }) => {
10457
10226
  }
10458
10227
  );
10459
10228
  };
10460
- const dependencyTypeOrder = {
10461
- peer: 0,
10462
- production: 1,
10463
- development: 2
10464
- };
10465
- function extractDependencies(packageLayer) {
10466
- const { dependencies, devDependencies, peerDependencies } = packageLayer.packageData;
10467
- const items2 = [];
10468
- if (dependencies) {
10469
- Object.entries(dependencies).forEach(([name, version]) => {
10470
- items2.push({ name, version, dependencyType: "production" });
10471
- });
10472
- }
10473
- if (devDependencies) {
10474
- Object.entries(devDependencies).forEach(([name, version]) => {
10475
- items2.push({ name, version, dependencyType: "development" });
10476
- });
10477
- }
10478
- if (peerDependencies) {
10479
- Object.entries(peerDependencies).forEach(([name, version]) => {
10480
- items2.push({ name, version, dependencyType: "peer" });
10481
- });
10482
- }
10483
- return items2.sort((a, b) => {
10484
- const typeCompare = dependencyTypeOrder[a.dependencyType] - dependencyTypeOrder[b.dependencyType];
10485
- if (typeCompare !== 0) return typeCompare;
10486
- return a.name.localeCompare(b.name);
10487
- });
10488
- }
10489
- const DependenciesPanelContent = ({
10490
- context
10491
- }) => {
10492
- var _a;
10493
- const { theme: theme2 } = useTheme();
10494
- const [selectedPackagePath, setSelectedPackagePath] = useState(
10495
- null
10496
- );
10497
- const [activeFilters, setActiveFilters] = useState(/* @__PURE__ */ new Set());
10498
- const [searchQuery, setSearchQuery] = useState("");
10499
- const [showInfoModal, setShowInfoModal] = useState(false);
10500
- const packagesSlice = context.getSlice("packages");
10501
- const isLoading = context.isSliceLoading("packages");
10502
- const hasPackages = context.hasSlice("packages");
10503
- const packages = useMemo(() => {
10504
- var _a2;
10505
- return ((_a2 = packagesSlice == null ? void 0 : packagesSlice.data) == null ? void 0 : _a2.packages) ?? [];
10506
- }, [(_a = packagesSlice == null ? void 0 : packagesSlice.data) == null ? void 0 : _a.packages]);
10507
- const effectiveSelectedPath = useMemo(() => {
10508
- if (selectedPackagePath !== null) return selectedPackagePath;
10509
- if (packages.length === 1) return packages[0].packageData.path;
10510
- const rootPackage = packages.find((p) => p.packageData.path === "");
10511
- if (rootPackage) return "";
10512
- return null;
10513
- }, [selectedPackagePath, packages]);
10514
- const selectedPackage = useMemo(() => {
10515
- if (effectiveSelectedPath === null) return null;
10516
- return packages.find((p) => p.packageData.path === effectiveSelectedPath);
10517
- }, [effectiveSelectedPath, packages]);
10518
- const dependencyItems = useMemo(() => {
10519
- if (!selectedPackage) return [];
10520
- return extractDependencies(selectedPackage);
10521
- }, [selectedPackage]);
10522
- const counts = useMemo(() => {
10523
- return {
10524
- all: dependencyItems.length,
10525
- production: dependencyItems.filter((d) => d.dependencyType === "production").length,
10526
- development: dependencyItems.filter(
10527
- (d) => d.dependencyType === "development"
10528
- ).length,
10529
- peer: dependencyItems.filter((d) => d.dependencyType === "peer").length
10530
- };
10531
- }, [dependencyItems]);
10532
- const handleToggleFilter = (type) => {
10533
- setActiveFilters((prev) => {
10534
- const next = new Set(prev);
10535
- if (next.has(type)) {
10536
- next.delete(type);
10537
- } else {
10538
- next.add(type);
10539
- }
10540
- return next;
10541
- });
10542
- };
10543
- const filteredDependencies = useMemo(() => {
10544
- let filtered = [...dependencyItems];
10545
- if (searchQuery.trim()) {
10546
- const query = searchQuery.toLowerCase();
10547
- filtered = filtered.filter(
10548
- (dep) => dep.name.toLowerCase().includes(query)
10549
- );
10550
- }
10551
- const allTypes = ["production", "development", "peer"];
10552
- const availableTypes = allTypes.filter((t) => counts[t] > 0);
10553
- const isAllSelected = activeFilters.size === 0 || availableTypes.every((t) => activeFilters.has(t));
10554
- if (!isAllSelected && activeFilters.size > 0) {
10555
- filtered = filtered.filter((dep) => activeFilters.has(dep.dependencyType));
10556
- }
10557
- return filtered;
10558
- }, [dependencyItems, searchQuery, activeFilters, counts]);
10559
- if (isLoading) {
10560
- return /* @__PURE__ */ jsx(
10561
- "div",
10562
- {
10563
- style: {
10564
- padding: `${theme2.space[3]}px`,
10565
- height: "100%",
10566
- display: "flex",
10567
- alignItems: "center",
10568
- justifyContent: "center",
10569
- color: theme2.colors.textSecondary,
10570
- backgroundColor: theme2.colors.background,
10571
- fontFamily: theme2.fonts.body
10572
- },
10573
- children: "Loading packages..."
10574
- }
10575
- );
10576
- }
10577
- if (!hasPackages || packages.length === 0) {
10578
- return /* @__PURE__ */ jsxs(
10579
- "div",
10580
- {
10581
- style: {
10582
- padding: `${theme2.space[3]}px`,
10583
- height: "100%",
10584
- display: "flex",
10585
- flexDirection: "column",
10586
- alignItems: "center",
10587
- justifyContent: "center",
10588
- gap: `${theme2.space[2]}px`,
10589
- color: theme2.colors.textSecondary,
10590
- backgroundColor: theme2.colors.background,
10591
- fontFamily: theme2.fonts.body
10592
- },
10593
- children: [
10594
- /* @__PURE__ */ jsx(Package, { size: 32 }),
10595
- /* @__PURE__ */ jsx("p", { style: { margin: 0 }, children: "No package data available" })
10596
- ]
10597
- }
10598
- );
10599
- }
10600
- return /* @__PURE__ */ jsxs(
10601
- "div",
10602
- {
10603
- style: {
10604
- height: "100%",
10605
- display: "flex",
10606
- flexDirection: "column",
10607
- backgroundColor: theme2.colors.background,
10608
- color: theme2.colors.text,
10609
- fontFamily: theme2.fonts.body,
10610
- overflow: "hidden"
10611
- },
10612
- children: [
10613
- /* @__PURE__ */ jsxs(
10614
- "div",
10615
- {
10616
- style: {
10617
- flexShrink: 0,
10618
- padding: `${theme2.space[3]}px`,
10619
- paddingBottom: `${theme2.space[2]}px`,
10620
- display: "flex",
10621
- flexDirection: "column",
10622
- gap: `${theme2.space[2]}px`,
10623
- borderBottom: `1px solid ${theme2.colors.border}`
10624
- },
10625
- children: [
10626
- /* @__PURE__ */ jsxs(
10627
- "div",
10628
- {
10629
- style: {
10630
- display: "flex",
10631
- alignItems: "center",
10632
- justifyContent: "space-between"
10633
- },
10634
- children: [
10635
- /* @__PURE__ */ jsx(
10636
- "h3",
10637
- {
10638
- style: {
10639
- fontSize: `${theme2.fontSizes[2]}px`,
10640
- fontWeight: theme2.fontWeights.semibold,
10641
- color: theme2.colors.text,
10642
- display: "flex",
10643
- alignItems: "center",
10644
- gap: `${theme2.space[2]}px`,
10645
- margin: 0
10646
- },
10647
- children: packages.length > 1 ? /* @__PURE__ */ jsxs(Fragment, { children: [
10648
- /* @__PURE__ */ jsx(Boxes, { size: 16 }),
10649
- "Monorepo Dependencies",
10650
- /* @__PURE__ */ jsxs(
10651
- "span",
10652
- {
10653
- style: {
10654
- fontSize: `${theme2.fontSizes[0]}px`,
10655
- fontWeight: theme2.fontWeights.body,
10656
- color: theme2.colors.textSecondary
10657
- },
10658
- children: [
10659
- "(",
10660
- packages.length,
10661
- ")"
10662
- ]
10663
- }
10664
- )
10665
- ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
10666
- /* @__PURE__ */ jsx(Package, { size: 16 }),
10667
- "Dependencies"
10668
- ] })
10669
- }
10670
- ),
10671
- /* @__PURE__ */ jsxs(
10672
- "button",
10673
- {
10674
- onClick: () => setShowInfoModal(true),
10675
- style: {
10676
- padding: `${theme2.space[1]}px ${theme2.space[2]}px`,
10677
- fontSize: `${theme2.fontSizes[0]}px`,
10678
- fontWeight: theme2.fontWeights.medium,
10679
- fontFamily: theme2.fonts.body,
10680
- borderRadius: `${theme2.radii[1]}px`,
10681
- border: `1px solid ${theme2.colors.border}`,
10682
- backgroundColor: theme2.colors.backgroundSecondary,
10683
- color: theme2.colors.primary,
10684
- cursor: "pointer",
10685
- display: "flex",
10686
- alignItems: "center",
10687
- gap: `${theme2.space[1]}px`,
10688
- transition: "all 0.2s"
10689
- },
10690
- children: [
10691
- /* @__PURE__ */ jsx(CircleQuestionMark, { size: 12 }),
10692
- "Learn More"
10693
- ]
10694
- }
10695
- )
10696
- ]
10697
- }
10698
- ),
10699
- packages.length > 1 && /* @__PURE__ */ jsx(
10700
- "select",
10701
- {
10702
- value: effectiveSelectedPath ?? "__none__",
10703
- onChange: (e) => setSelectedPackagePath(e.target.value === "__none__" ? null : e.target.value),
10704
- style: {
10705
- width: "100%",
10706
- padding: `${theme2.space[2]}px`,
10707
- borderRadius: `${theme2.radii[1]}px`,
10708
- border: `1px solid ${theme2.colors.border}`,
10709
- backgroundColor: theme2.colors.backgroundSecondary,
10710
- color: theme2.colors.text,
10711
- fontSize: `${theme2.fontSizes[1]}px`,
10712
- fontFamily: theme2.fonts.body,
10713
- cursor: "pointer"
10714
- },
10715
- children: packages.map((pkg) => /* @__PURE__ */ jsxs("option", { value: pkg.packageData.path, children: [
10716
- pkg.packageData.name,
10717
- " (",
10718
- pkg.packageData.path || "root",
10719
- ")"
10720
- ] }, pkg.packageData.path || "__root__"))
10721
- }
10722
- ),
10723
- packages.length === 1 && selectedPackage && /* @__PURE__ */ jsxs(
10724
- "div",
10725
- {
10726
- style: {
10727
- fontSize: `${theme2.fontSizes[0]}px`,
10728
- color: theme2.colors.textSecondary
10729
- },
10730
- children: [
10731
- selectedPackage.packageData.name,
10732
- " • ",
10733
- dependencyItems.length,
10734
- " dependencies"
10735
- ]
10736
- }
10737
- ),
10738
- selectedPackage && dependencyItems.length > 0 && /* @__PURE__ */ jsx(
10739
- FilterBar,
10740
- {
10741
- activeFilters,
10742
- onToggleFilter: handleToggleFilter,
10743
- searchQuery,
10744
- onSearchChange: setSearchQuery,
10745
- counts
10746
- }
10747
- )
10748
- ]
10749
- }
10750
- ),
10751
- selectedPackage && dependencyItems.length > 0 && /* @__PURE__ */ jsxs(
10752
- "div",
10753
- {
10754
- style: {
10755
- flex: 1,
10756
- overflow: "auto",
10757
- padding: `${theme2.space[2]}px ${theme2.space[3]}px ${theme2.space[3]}px`
10758
- },
10759
- children: [
10760
- /* @__PURE__ */ jsxs(
10761
- "div",
10762
- {
10763
- style: {
10764
- fontSize: `${theme2.fontSizes[0]}px`,
10765
- color: theme2.colors.textSecondary,
10766
- marginBottom: `${theme2.space[2]}px`
10767
- },
10768
- children: [
10769
- "Showing ",
10770
- filteredDependencies.length,
10771
- " of ",
10772
- dependencyItems.length,
10773
- " dependencies"
10774
- ]
10775
- }
10776
- ),
10777
- /* @__PURE__ */ jsx(
10778
- "div",
10779
- {
10780
- style: {
10781
- display: "flex",
10782
- flexDirection: "column",
10783
- gap: `${theme2.space[1]}px`
10784
- },
10785
- children: filteredDependencies.length === 0 ? /* @__PURE__ */ jsx(
10786
- "div",
10787
- {
10788
- style: {
10789
- padding: `${theme2.space[3]}px`,
10790
- textAlign: "center",
10791
- color: theme2.colors.textSecondary,
10792
- fontSize: `${theme2.fontSizes[1]}px`
10793
- },
10794
- children: "No dependencies match your filters"
10795
- }
10796
- ) : filteredDependencies.map((dep) => /* @__PURE__ */ jsx(
10797
- DependencyRow,
10798
- {
10799
- dependency: dep
10800
- },
10801
- `${dep.name}-${dep.dependencyType}`
10802
- ))
10803
- }
10804
- )
10805
- ]
10806
- }
10807
- ),
10808
- !selectedPackage && packages.length > 1 && /* @__PURE__ */ jsx(
10809
- "div",
10810
- {
10811
- style: {
10812
- flex: 1,
10813
- display: "flex",
10814
- alignItems: "center",
10815
- justifyContent: "center",
10816
- color: theme2.colors.textSecondary,
10817
- fontSize: `${theme2.fontSizes[1]}px`
10818
- },
10819
- children: "Select a package to view its dependencies"
10820
- }
10821
- ),
10822
- /* @__PURE__ */ jsx(
10823
- DependencyInfoModal,
10824
- {
10825
- isOpen: showInfoModal,
10826
- onClose: () => setShowInfoModal(false)
10827
- }
10828
- )
10829
- ]
10830
- }
10831
- );
10832
- };
10833
- const DependenciesPanel = (props) => {
10834
- return /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(DependenciesPanelContent, { ...props }) });
10835
- };
10836
10229
  class LocalSearchService {
10837
10230
  constructor() {
10838
10231
  this.documentsMap = /* @__PURE__ */ new Map();
@@ -11002,7 +10395,7 @@ const SearchPanelContent = ({
11002
10395
  onDirectoryFiltersChange,
11003
10396
  selectedFile
11004
10397
  }) => {
11005
- const { theme: theme2 } = useTheme();
10398
+ const { theme } = useTheme();
11006
10399
  const [searchQuery, setSearchQuery] = useState("");
11007
10400
  const [searchResults, setSearchResults] = useState([]);
11008
10401
  const [directoryFilter, setDirectoryFilter] = useState("");
@@ -11220,7 +10613,7 @@ const SearchPanelContent = ({
11220
10613
  "span",
11221
10614
  {
11222
10615
  style: {
11223
- backgroundColor: `${theme2.colors.primary}40`,
10616
+ backgroundColor: `${theme.colors.primary}40`,
11224
10617
  fontWeight: "bold"
11225
10618
  },
11226
10619
  children: part
@@ -11230,15 +10623,15 @@ const SearchPanelContent = ({
11230
10623
  );
11231
10624
  };
11232
10625
  return /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", height: "100%" }, children: [
11233
- /* @__PURE__ */ jsxs("div", { style: { borderBottom: `1px solid ${theme2.colors.border}` }, children: [
10626
+ /* @__PURE__ */ jsxs("div", { style: { borderBottom: `1px solid ${theme.colors.border}` }, children: [
11234
10627
  /* @__PURE__ */ jsxs("div", { style: { padding: "12px", paddingBottom: "8px", position: "relative" }, children: [
11235
10628
  /* @__PURE__ */ jsx(
11236
10629
  "div",
11237
10630
  {
11238
10631
  style: {
11239
10632
  marginBottom: "4px",
11240
- fontSize: theme2.fontSizes[0],
11241
- color: theme2.colors.textSecondary,
10633
+ fontSize: theme.fontSizes[0],
10634
+ color: theme.colors.textSecondary,
11242
10635
  display: "flex",
11243
10636
  alignItems: "center",
11244
10637
  justifyContent: "space-between"
@@ -11273,11 +10666,11 @@ const SearchPanelContent = ({
11273
10666
  style: {
11274
10667
  flex: 1,
11275
10668
  padding: "8px 12px",
11276
- fontSize: theme2.fontSizes[1],
10669
+ fontSize: theme.fontSizes[1],
11277
10670
  borderRadius: "4px",
11278
- border: `1px solid ${directoryFilter && showDirectoryDropdown ? theme2.colors.primary : theme2.colors.border}`,
11279
- backgroundColor: theme2.colors.backgroundSecondary || theme2.colors.background,
11280
- color: theme2.colors.text,
10671
+ border: `1px solid ${directoryFilter && showDirectoryDropdown ? theme.colors.primary : theme.colors.border}`,
10672
+ backgroundColor: theme.colors.backgroundSecondary || theme.colors.background,
10673
+ color: theme.colors.text,
11281
10674
  outline: "none"
11282
10675
  }
11283
10676
  }
@@ -11288,12 +10681,12 @@ const SearchPanelContent = ({
11288
10681
  onClick: () => setExcludeDirectory(!excludeDirectory),
11289
10682
  style: {
11290
10683
  padding: "8px 12px",
11291
- fontSize: theme2.fontSizes[0],
10684
+ fontSize: theme.fontSizes[0],
11292
10685
  fontWeight: 500,
11293
10686
  borderRadius: "4px",
11294
- border: `1px solid ${excludeDirectory ? theme2.colors.primary : theme2.colors.border}`,
11295
- backgroundColor: excludeDirectory ? `${theme2.colors.primary}20` : theme2.colors.backgroundSecondary || theme2.colors.background,
11296
- color: excludeDirectory ? theme2.colors.text : theme2.colors.textSecondary,
10687
+ border: `1px solid ${excludeDirectory ? theme.colors.primary : theme.colors.border}`,
10688
+ backgroundColor: excludeDirectory ? `${theme.colors.primary}20` : theme.colors.backgroundSecondary || theme.colors.background,
10689
+ color: excludeDirectory ? theme.colors.text : theme.colors.textSecondary,
11297
10690
  cursor: "pointer"
11298
10691
  },
11299
10692
  title: excludeDirectory ? "Excluding files in this directory" : "Including only files in this directory",
@@ -11310,9 +10703,9 @@ const SearchPanelContent = ({
11310
10703
  width: "calc(100% - 24px)",
11311
10704
  marginTop: "4px",
11312
10705
  borderRadius: "4px",
11313
- border: `1px solid ${theme2.colors.primary}`,
11314
- backgroundColor: theme2.colors.background,
11315
- boxShadow: `0 4px 6px -1px ${theme2.colors.border}40`,
10706
+ border: `1px solid ${theme.colors.primary}`,
10707
+ backgroundColor: theme.colors.background,
10708
+ boxShadow: `0 4px 6px -1px ${theme.colors.border}40`,
11316
10709
  maxHeight: "256px",
11317
10710
  overflowY: "auto"
11318
10711
  },
@@ -11322,9 +10715,9 @@ const SearchPanelContent = ({
11322
10715
  style: {
11323
10716
  padding: "8px 12px",
11324
10717
  cursor: "pointer",
11325
- fontSize: theme2.fontSizes[1],
11326
- backgroundColor: index === selectedDirectoryIndex ? `${theme2.colors.primary}20` : "transparent",
11327
- color: index === selectedDirectoryIndex ? theme2.colors.text : theme2.colors.textSecondary
10718
+ fontSize: theme.fontSizes[1],
10719
+ backgroundColor: index === selectedDirectoryIndex ? `${theme.colors.primary}20` : "transparent",
10720
+ color: index === selectedDirectoryIndex ? theme.colors.text : theme.colors.textSecondary
11328
10721
  },
11329
10722
  onMouseEnter: () => setSelectedDirectoryIndex(index),
11330
10723
  onClick: () => {
@@ -11349,10 +10742,10 @@ const SearchPanelContent = ({
11349
10742
  gap: "4px",
11350
10743
  padding: "4px 8px",
11351
10744
  borderRadius: "4px",
11352
- fontSize: theme2.fontSizes[0],
11353
- backgroundColor: filter.mode === "include" ? `${theme2.colors.primary}20` : `${theme2.colors.error}20`,
11354
- border: `1px solid ${filter.mode === "include" ? theme2.colors.primary : theme2.colors.error}`,
11355
- color: theme2.colors.text
10745
+ fontSize: theme.fontSizes[0],
10746
+ backgroundColor: filter.mode === "include" ? `${theme.colors.primary}20` : `${theme.colors.error}20`,
10747
+ border: `1px solid ${filter.mode === "include" ? theme.colors.primary : theme.colors.error}`,
10748
+ color: theme.colors.text
11356
10749
  },
11357
10750
  children: [
11358
10751
  /* @__PURE__ */ jsxs(
@@ -11377,7 +10770,7 @@ const SearchPanelContent = ({
11377
10770
  background: "none",
11378
10771
  border: "none",
11379
10772
  cursor: "pointer",
11380
- color: theme2.colors.textSecondary,
10773
+ color: theme.colors.textSecondary,
11381
10774
  padding: 0,
11382
10775
  display: "flex",
11383
10776
  alignItems: "center"
@@ -11397,7 +10790,7 @@ const SearchPanelContent = ({
11397
10790
  style: {
11398
10791
  padding: "12px",
11399
10792
  paddingTop: "8px",
11400
- borderTop: `1px solid ${theme2.colors.border}40`
10793
+ borderTop: `1px solid ${theme.colors.border}40`
11401
10794
  },
11402
10795
  children: [
11403
10796
  /* @__PURE__ */ jsxs("div", { style: { position: "relative" }, children: [
@@ -11414,11 +10807,11 @@ const SearchPanelContent = ({
11414
10807
  width: "100%",
11415
10808
  padding: "8px 12px",
11416
10809
  paddingRight: "36px",
11417
- fontSize: theme2.fontSizes[1],
10810
+ fontSize: theme.fontSizes[1],
11418
10811
  borderRadius: "4px",
11419
- border: `1px solid ${theme2.colors.border}`,
11420
- backgroundColor: theme2.colors.backgroundSecondary || theme2.colors.background,
11421
- color: theme2.colors.text,
10812
+ border: `1px solid ${theme.colors.border}`,
10813
+ backgroundColor: theme.colors.backgroundSecondary || theme.colors.background,
10814
+ color: theme.colors.text,
11422
10815
  outline: "none",
11423
10816
  boxSizing: "border-box"
11424
10817
  }
@@ -11440,7 +10833,7 @@ const SearchPanelContent = ({
11440
10833
  height: "16",
11441
10834
  viewBox: "0 0 24 24",
11442
10835
  fill: "none",
11443
- stroke: theme2.colors.textSecondary,
10836
+ stroke: theme.colors.textSecondary,
11444
10837
  strokeWidth: "2",
11445
10838
  children: [
11446
10839
  /* @__PURE__ */ jsx("circle", { cx: "11", cy: "11", r: "8" }),
@@ -11456,8 +10849,8 @@ const SearchPanelContent = ({
11456
10849
  {
11457
10850
  style: {
11458
10851
  marginTop: "4px",
11459
- fontSize: theme2.fontSizes[0],
11460
- color: theme2.colors.textSecondary
10852
+ fontSize: theme.fontSizes[0],
10853
+ color: theme.colors.textSecondary
11461
10854
  },
11462
10855
  children: "Supports wildcards: *.tsx, test?.js"
11463
10856
  }
@@ -11487,7 +10880,7 @@ const SearchPanelContent = ({
11487
10880
  style: {
11488
10881
  padding: "40px 20px",
11489
10882
  textAlign: "center",
11490
- color: theme2.colors.textSecondary
10883
+ color: theme.colors.textSecondary
11491
10884
  },
11492
10885
  children: "Loading file tree..."
11493
10886
  }
@@ -11509,7 +10902,7 @@ const SearchPanelContent = ({
11509
10902
  height: "64",
11510
10903
  viewBox: "0 0 24 24",
11511
10904
  fill: "none",
11512
- style: { color: theme2.colors.primary, opacity: 0.8 },
10905
+ style: { color: theme.colors.primary, opacity: 0.8 },
11513
10906
  children: [
11514
10907
  /* @__PURE__ */ jsx(
11515
10908
  "circle",
@@ -11538,10 +10931,10 @@ const SearchPanelContent = ({
11538
10931
  "h3",
11539
10932
  {
11540
10933
  style: {
11541
- fontSize: theme2.fontSizes[3],
10934
+ fontSize: theme.fontSizes[3],
11542
10935
  fontWeight: 600,
11543
10936
  marginBottom: "8px",
11544
- color: theme2.colors.text
10937
+ color: theme.colors.text
11545
10938
  },
11546
10939
  children: "Search files"
11547
10940
  }
@@ -11550,26 +10943,26 @@ const SearchPanelContent = ({
11550
10943
  "p",
11551
10944
  {
11552
10945
  style: {
11553
- fontSize: theme2.fontSizes[1],
10946
+ fontSize: theme.fontSizes[1],
11554
10947
  marginBottom: "16px",
11555
- color: theme2.colors.textSecondary
10948
+ color: theme.colors.textSecondary
11556
10949
  },
11557
10950
  children: "Search through filenames to find what you need"
11558
10951
  }
11559
10952
  ),
11560
10953
  /* @__PURE__ */ jsxs("div", { style: { textAlign: "left" }, children: [
11561
10954
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "flex-start", gap: "8px", marginBottom: "8px" }, children: [
11562
- /* @__PURE__ */ jsx("span", { style: { fontSize: theme2.fontSizes[0], color: theme2.colors.primary }, children: "💡" }),
10955
+ /* @__PURE__ */ jsx("span", { style: { fontSize: theme.fontSizes[0], color: theme.colors.primary }, children: "💡" }),
11563
10956
  /* @__PURE__ */ jsxs("div", { children: [
11564
- /* @__PURE__ */ jsx("div", { style: { fontSize: theme2.fontSizes[0], fontWeight: 500, color: theme2.colors.text }, children: "Quick search" }),
11565
- /* @__PURE__ */ jsx("div", { style: { fontSize: theme2.fontSizes[0], color: theme2.colors.textSecondary }, children: "Type to instantly filter by filename" })
10957
+ /* @__PURE__ */ jsx("div", { style: { fontSize: theme.fontSizes[0], fontWeight: 500, color: theme.colors.text }, children: "Quick search" }),
10958
+ /* @__PURE__ */ jsx("div", { style: { fontSize: theme.fontSizes[0], color: theme.colors.textSecondary }, children: "Type to instantly filter by filename" })
11566
10959
  ] })
11567
10960
  ] }),
11568
10961
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "flex-start", gap: "8px" }, children: [
11569
- /* @__PURE__ */ jsx("span", { style: { fontSize: theme2.fontSizes[0], color: theme2.colors.primary }, children: "📁" }),
10962
+ /* @__PURE__ */ jsx("span", { style: { fontSize: theme.fontSizes[0], color: theme.colors.primary }, children: "📁" }),
11570
10963
  /* @__PURE__ */ jsxs("div", { children: [
11571
- /* @__PURE__ */ jsx("div", { style: { fontSize: theme2.fontSizes[0], fontWeight: 500, color: theme2.colors.text }, children: "Filter by directory" }),
11572
- /* @__PURE__ */ jsx("div", { style: { fontSize: theme2.fontSizes[0], color: theme2.colors.textSecondary }, children: "Use the directory filter to narrow your search" })
10964
+ /* @__PURE__ */ jsx("div", { style: { fontSize: theme.fontSizes[0], fontWeight: 500, color: theme.colors.text }, children: "Filter by directory" }),
10965
+ /* @__PURE__ */ jsx("div", { style: { fontSize: theme.fontSizes[0], color: theme.colors.textSecondary }, children: "Use the directory filter to narrow your search" })
11573
10966
  ] })
11574
10967
  ] })
11575
10968
  ] })
@@ -11593,7 +10986,7 @@ const SearchPanelContent = ({
11593
10986
  height: "64",
11594
10987
  viewBox: "0 0 24 24",
11595
10988
  fill: "none",
11596
- style: { color: theme2.colors.textSecondary, opacity: 0.5 },
10989
+ style: { color: theme.colors.textSecondary, opacity: 0.5 },
11597
10990
  children: [
11598
10991
  /* @__PURE__ */ jsx("circle", { cx: "11", cy: "11", r: "8", stroke: "currentColor", strokeWidth: "2" }),
11599
10992
  /* @__PURE__ */ jsx("path", { d: "m21 21-4.35-4.35", stroke: "currentColor", strokeWidth: "2" }),
@@ -11605,10 +10998,10 @@ const SearchPanelContent = ({
11605
10998
  "h3",
11606
10999
  {
11607
11000
  style: {
11608
- fontSize: theme2.fontSizes[2],
11001
+ fontSize: theme.fontSizes[2],
11609
11002
  fontWeight: 500,
11610
11003
  marginBottom: "8px",
11611
- color: theme2.colors.text
11004
+ color: theme.colors.text
11612
11005
  },
11613
11006
  children: "No results found"
11614
11007
  }
@@ -11617,13 +11010,13 @@ const SearchPanelContent = ({
11617
11010
  "p",
11618
11011
  {
11619
11012
  style: {
11620
- fontSize: theme2.fontSizes[1],
11621
- color: theme2.colors.textSecondary
11013
+ fontSize: theme.fontSizes[1],
11014
+ color: theme.colors.textSecondary
11622
11015
  },
11623
11016
  children: [
11624
11017
  "No files match",
11625
11018
  " ",
11626
- /* @__PURE__ */ jsxs("span", { style: { fontFamily: "monospace", color: theme2.colors.primary }, children: [
11019
+ /* @__PURE__ */ jsxs("span", { style: { fontFamily: "monospace", color: theme.colors.primary }, children: [
11627
11020
  '"',
11628
11021
  searchQuery,
11629
11022
  '"'
@@ -11643,9 +11036,9 @@ const SearchPanelContent = ({
11643
11036
  style: {
11644
11037
  padding: "8px 12px",
11645
11038
  cursor: "pointer",
11646
- backgroundColor: isSelected ? `${theme2.colors.primary}25` : isCurrentFile ? `${theme2.colors.primary}15` : "transparent",
11647
- borderLeft: isCurrentFile ? `3px solid ${theme2.colors.primary}` : isSelected ? `3px solid ${theme2.colors.primary}80` : "3px solid transparent",
11648
- borderBottom: `1px solid ${theme2.colors.border}20`,
11039
+ backgroundColor: isSelected ? `${theme.colors.primary}25` : isCurrentFile ? `${theme.colors.primary}15` : "transparent",
11040
+ borderLeft: isCurrentFile ? `3px solid ${theme.colors.primary}` : isSelected ? `3px solid ${theme.colors.primary}80` : "3px solid transparent",
11041
+ borderBottom: `1px solid ${theme.colors.border}20`,
11649
11042
  transition: "background-color 0.15s"
11650
11043
  },
11651
11044
  onClick: () => onFileSelect == null ? void 0 : onFileSelect(result.relativePath),
@@ -11657,7 +11050,7 @@ const SearchPanelContent = ({
11657
11050
  },
11658
11051
  onMouseLeave: () => onSearchResultHover == null ? void 0 : onSearchResultHover(null),
11659
11052
  children: /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "flex-start", gap: "8px" }, children: [
11660
- /* @__PURE__ */ jsx("div", { style: { flexShrink: 0, marginTop: "2px" }, children: /* @__PURE__ */ jsx(FileText, { size: 14, color: theme2.colors.textSecondary }) }),
11053
+ /* @__PURE__ */ jsx("div", { style: { flexShrink: 0, marginTop: "2px" }, children: /* @__PURE__ */ jsx(FileText, { size: 14, color: theme.colors.textSecondary }) }),
11661
11054
  /* @__PURE__ */ jsx("div", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", gap: "8px" }, children: [
11662
11055
  /* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
11663
11056
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
@@ -11665,9 +11058,9 @@ const SearchPanelContent = ({
11665
11058
  "div",
11666
11059
  {
11667
11060
  style: {
11668
- fontSize: theme2.fontSizes[1],
11061
+ fontSize: theme.fontSizes[1],
11669
11062
  fontWeight: 500,
11670
- color: theme2.colors.text
11063
+ color: theme.colors.text
11671
11064
  },
11672
11065
  children: highlightMatch(result.name, searchQuery)
11673
11066
  }
@@ -11679,8 +11072,8 @@ const SearchPanelContent = ({
11679
11072
  fontSize: "10px",
11680
11073
  padding: "2px 6px",
11681
11074
  borderRadius: "4px",
11682
- backgroundColor: `${theme2.colors.primary}20`,
11683
- color: theme2.colors.primary
11075
+ backgroundColor: `${theme.colors.primary}20`,
11076
+ color: theme.colors.primary
11684
11077
  },
11685
11078
  children: "CURRENT"
11686
11079
  }
@@ -11690,9 +11083,9 @@ const SearchPanelContent = ({
11690
11083
  "div",
11691
11084
  {
11692
11085
  style: {
11693
- fontSize: theme2.fontSizes[0],
11086
+ fontSize: theme.fontSizes[0],
11694
11087
  marginTop: "2px",
11695
- color: theme2.colors.textSecondary,
11088
+ color: theme.colors.textSecondary,
11696
11089
  overflow: "hidden",
11697
11090
  textOverflow: "ellipsis",
11698
11091
  whiteSpace: "nowrap"
@@ -11708,9 +11101,9 @@ const SearchPanelContent = ({
11708
11101
  flexShrink: 0,
11709
11102
  padding: "4px",
11710
11103
  borderRadius: "4px",
11711
- border: `1px solid ${copiedPath === result.path ? theme2.colors.success : theme2.colors.border}`,
11712
- backgroundColor: copiedPath === result.path ? `${theme2.colors.success}20` : theme2.colors.backgroundSecondary || theme2.colors.background,
11713
- color: copiedPath === result.path ? theme2.colors.success : theme2.colors.textSecondary,
11104
+ border: `1px solid ${copiedPath === result.path ? theme.colors.success : theme.colors.border}`,
11105
+ backgroundColor: copiedPath === result.path ? `${theme.colors.success}20` : theme.colors.backgroundSecondary || theme.colors.background,
11106
+ color: copiedPath === result.path ? theme.colors.success : theme.colors.textSecondary,
11714
11107
  cursor: "pointer",
11715
11108
  opacity: isSelected || isCurrentFile ? 0.7 : 0,
11716
11109
  transition: "opacity 0.15s"
@@ -11744,10 +11137,10 @@ const SearchPanelContent = ({
11744
11137
  {
11745
11138
  style: {
11746
11139
  padding: "8px 12px",
11747
- borderTop: `1px solid ${theme2.colors.border}`,
11748
- fontSize: theme2.fontSizes[0],
11749
- color: theme2.colors.textSecondary,
11750
- backgroundColor: theme2.colors.backgroundSecondary || theme2.colors.background
11140
+ borderTop: `1px solid ${theme.colors.border}`,
11141
+ fontSize: theme.fontSizes[0],
11142
+ color: theme.colors.textSecondary,
11143
+ backgroundColor: theme.colors.backgroundSecondary || theme.colors.background
11751
11144
  },
11752
11145
  children: /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
11753
11146
  /* @__PURE__ */ jsxs("span", { children: [
@@ -11765,8 +11158,8 @@ const SearchPanelContent = ({
11765
11158
  style: {
11766
11159
  padding: "2px 6px",
11767
11160
  borderRadius: "4px",
11768
- backgroundColor: `${theme2.colors.primary}20`,
11769
- color: theme2.colors.textSecondary
11161
+ backgroundColor: `${theme.colors.primary}20`,
11162
+ color: theme.colors.textSecondary
11770
11163
  },
11771
11164
  children: [
11772
11165
  directoryFilters.length,
@@ -11781,14 +11174,14 @@ const SearchPanelContent = ({
11781
11174
  ] });
11782
11175
  };
11783
11176
  const SearchPanelPreview = () => {
11784
- const { theme: theme2 } = useTheme();
11177
+ const { theme } = useTheme();
11785
11178
  return /* @__PURE__ */ jsxs(
11786
11179
  "div",
11787
11180
  {
11788
11181
  style: {
11789
11182
  padding: "12px",
11790
11183
  fontSize: "12px",
11791
- color: theme2.colors.text,
11184
+ color: theme.colors.text,
11792
11185
  display: "flex",
11793
11186
  flexDirection: "column",
11794
11187
  gap: "6px"
@@ -11800,9 +11193,9 @@ const SearchPanelPreview = () => {
11800
11193
  style: {
11801
11194
  padding: "6px 8px",
11802
11195
  borderRadius: "4px",
11803
- backgroundColor: theme2.colors.backgroundSecondary,
11804
- border: `1px solid ${theme2.colors.border}`,
11805
- color: theme2.colors.textSecondary,
11196
+ backgroundColor: theme.colors.backgroundSecondary,
11197
+ border: `1px solid ${theme.colors.border}`,
11198
+ color: theme.colors.textSecondary,
11806
11199
  fontSize: "11px"
11807
11200
  },
11808
11201
  children: "Search files..."
@@ -11878,27 +11271,6 @@ const panels = [
11878
11271
  console.log("Package Composition Panel unmounting");
11879
11272
  }
11880
11273
  },
11881
- {
11882
- metadata: {
11883
- id: "industry-theme.dependencies",
11884
- name: "Dependencies",
11885
- icon: "Package",
11886
- version: "0.1.0",
11887
- author: "Industry Theme",
11888
- description: "View and explore package dependencies",
11889
- slices: ["packages"]
11890
- },
11891
- component: DependenciesPanel,
11892
- onMount: async (context) => {
11893
- console.log("Dependencies Panel mounted");
11894
- if (context.hasSlice("packages") && !context.isSliceLoading("packages")) {
11895
- await context.refresh("repository", "packages");
11896
- }
11897
- },
11898
- onUnmount: async (_context) => {
11899
- console.log("Dependencies Panel unmounting");
11900
- }
11901
- },
11902
11274
  {
11903
11275
  metadata: {
11904
11276
  id: "industry-theme.search",
@@ -11928,7 +11300,6 @@ const onPackageUnload = async () => {
11928
11300
  console.log("Repository Composition Panels package unloading");
11929
11301
  };
11930
11302
  export {
11931
- DependenciesPanel,
11932
11303
  GitChangesPanel,
11933
11304
  GitChangesPanelContent,
11934
11305
  GitChangesPanelPreview,