@pstdio/ui 0.2.2 → 0.2.3

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.
@@ -0,0 +1,4 @@
1
+ import { SessionMessage } from './message-types';
2
+ export declare const STICKY_USER_MESSAGE_COLLAPSE_TEXT_THRESHOLD = 360;
3
+ export declare const STICKY_USER_MESSAGE_COLLAPSED_MAX_HEIGHT = "min(20vh, 8rem)";
4
+ export declare const isStickyUserMessageCollapsible: (message: SessionMessage) => boolean;
@@ -6,3 +6,4 @@ type Story = StoryObj<typeof ChatPanel>;
6
6
  export declare const Empty: Story;
7
7
  export declare const Conversation: Story;
8
8
  export declare const Streaming: Story;
9
+ export declare const LongStickyUserPrompt: Story;
@@ -2,6 +2,7 @@ interface ContentEditableProps {
2
2
  onRef?: (elem: HTMLDivElement) => void;
3
3
  fullWidth?: boolean;
4
4
  padding?: string;
5
+ isRichMessage?: boolean;
5
6
  }
6
- export declare function ContentEditable({ onRef, fullWidth, padding }: ContentEditableProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function ContentEditable({ onRef, fullWidth, padding, isRichMessage }: ContentEditableProps): import("react/jsx-runtime").JSX.Element;
7
8
  export {};
@@ -0,0 +1,232 @@
1
+ import { jsx as p, jsxs as L } from "react/jsx-runtime";
2
+ import { c as w } from "react/compiler-runtime";
3
+ import { Span as k, EmptyState as x, VStack as $ } from "@chakra-ui/react";
4
+ import { Editor as M, DiffEditor as z } from "@monaco-editor/react";
5
+ import * as T from "react";
6
+ const _ = {
7
+ base: "vs-dark",
8
+ inherit: !0,
9
+ rules: [],
10
+ colors: {
11
+ "editor.background": "#0a0d15",
12
+ "editor.foreground": "#f5f5f5",
13
+ "editor.lineHighlightBackground": "#22252C",
14
+ "editorCursor.foreground": "#A7A7A7",
15
+ "editorWhitespace.foreground": "#3B3B3B",
16
+ "editorIndentGuide.background": "#404040",
17
+ "editorIndentGuide.activeBackground": "#707070"
18
+ }
19
+ }, F = (a) => {
20
+ const e = w(15), {
21
+ defaultCode: s,
22
+ code: t,
23
+ showLineNumbers: m,
24
+ isEditable: f,
25
+ language: d,
26
+ onChange: r,
27
+ disableScroll: o
28
+ } = a, n = d === void 0 ? "javascript" : d;
29
+ let i;
30
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
31
+ enabled: !1
32
+ }, e[0] = i) : i = e[0];
33
+ const l = !f, c = m ? "on" : "off";
34
+ let u;
35
+ e[1] !== o ? (u = o ? {
36
+ scrollbar: {
37
+ vertical: "hidden",
38
+ horizontal: "hidden",
39
+ useShadows: !1,
40
+ alwaysConsumeMouseWheel: !1
41
+ },
42
+ scrollBeyondLastLine: !1,
43
+ mouseWheelScrollSensitivity: 0,
44
+ overviewRulerLanes: 0
45
+ } : {}, e[1] = o, e[2] = u) : u = e[2];
46
+ let h;
47
+ e[3] !== l || e[4] !== c || e[5] !== u ? (h = {
48
+ tabSize: 2,
49
+ minimap: i,
50
+ fontSize: 12,
51
+ readOnly: l,
52
+ lineNumbers: c,
53
+ ...u
54
+ }, e[3] = l, e[4] = c, e[5] = u, e[6] = h) : h = e[6];
55
+ const y = h;
56
+ let g;
57
+ e[7] !== r ? (g = (S) => {
58
+ r?.(S || "");
59
+ }, e[7] = r, e[8] = g) : g = e[8];
60
+ let b;
61
+ return e[9] !== t || e[10] !== s || e[11] !== n || e[12] !== y || e[13] !== g ? (b = /* @__PURE__ */ p(M, { width: "100%", height: "100%", language: n, defaultValue: s, value: t, theme: "ps-theme", options: y, onChange: g, beforeMount: R, onMount: j }), e[9] = t, e[10] = s, e[11] = n, e[12] = y, e[13] = g, e[14] = b) : b = e[14], b;
62
+ }, H = (a) => {
63
+ const e = w(11), {
64
+ original: s,
65
+ modified: t,
66
+ showLineNumbers: m,
67
+ language: f,
68
+ disableScroll: d
69
+ } = a, r = f === void 0 ? "javascript" : f;
70
+ let o;
71
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
72
+ enabled: !1
73
+ }, e[0] = o) : o = e[0];
74
+ const n = m ? "on" : "off";
75
+ let i;
76
+ e[1] !== d ? (i = d ? {
77
+ scrollbar: {
78
+ vertical: "hidden",
79
+ horizontal: "hidden",
80
+ useShadows: !1,
81
+ alwaysConsumeMouseWheel: !1
82
+ },
83
+ scrollBeyondLastLine: !1,
84
+ mouseWheelScrollSensitivity: 0,
85
+ overviewRulerLanes: 0
86
+ } : {}, e[1] = d, e[2] = i) : i = e[2];
87
+ let l;
88
+ e[3] !== n || e[4] !== i ? (l = {
89
+ tabSize: 2,
90
+ minimap: o,
91
+ fontSize: 12,
92
+ readOnly: !0,
93
+ originalEditable: !1,
94
+ renderSideBySide: !0,
95
+ useInlineViewWhenSpaceIsTooSmall: !0,
96
+ lineNumbers: n,
97
+ ...i
98
+ }, e[3] = n, e[4] = i, e[5] = l) : l = e[5];
99
+ const c = l;
100
+ let u;
101
+ return e[6] !== r || e[7] !== t || e[8] !== c || e[9] !== s ? (u = /* @__PURE__ */ p(z, { width: "100%", height: "100%", language: r, original: s, modified: t, theme: "ps-theme", options: c, beforeMount: A, onMount: I }), e[6] = r, e[7] = t, e[8] = c, e[9] = s, e[10] = u) : u = e[10], u;
102
+ };
103
+ function R(a) {
104
+ a.editor.defineTheme("ps-theme", _);
105
+ }
106
+ async function j(a, e) {
107
+ e.editor.setTheme("ps-theme"), e.languages.typescript.typescriptDefaults.setCompilerOptions({
108
+ jsx: e.languages.typescript.JsxEmit.React
109
+ }), a.addCommand(e.KeyMod.CtrlCmd | e.KeyCode.KeyS, async () => {
110
+ await a.getAction("editor.action.formatDocument")?.run();
111
+ }), await a.getAction("editor.action.formatDocument")?.run();
112
+ }
113
+ function A(a) {
114
+ a.editor.defineTheme("ps-theme", _);
115
+ }
116
+ function I(a, e) {
117
+ e.editor.setTheme("ps-theme"), e.languages.typescript.typescriptDefaults.setCompilerOptions({
118
+ jsx: e.languages.typescript.JsxEmit.React
119
+ });
120
+ }
121
+ const P = (a) => {
122
+ const e = w(18), {
123
+ fileName: s,
124
+ additions: t,
125
+ deletions: m,
126
+ label: f,
127
+ variant: d,
128
+ size: r,
129
+ onClick: o,
130
+ onClickFileLink: n
131
+ } = a, i = d === void 0 ? "outline" : d, c = (r === void 0 ? "default" : r) === "small", u = i === "outline" ? "1px solid" : "none", h = i === "outline" ? c ? "3xs" : "2xs" : "2px", y = c ? "label/S/regular" : void 0, g = o ? "pointer" : "default";
132
+ let b;
133
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
134
+ background: "bg.muted"
135
+ }, e[0] = b) : b = e[0];
136
+ let S;
137
+ e[1] !== s || e[2] !== n ? (S = s && /* @__PURE__ */ p(k, { display: "inline-block", maxW: "24ch", truncate: !0, mr: "xs", title: s, onClick: (W) => {
138
+ W.stopPropagation(), n?.();
139
+ }, cursor: n ? "pointer" : "default", _hover: {
140
+ textDecoration: n ? "underline" : "none",
141
+ color: n ? "fg.blue-dark" : "fg.muted"
142
+ }, children: s }), e[1] = s, e[2] = n, e[3] = S) : S = e[3];
143
+ const B = `+${t}`;
144
+ let v;
145
+ e[4] !== B ? (v = /* @__PURE__ */ p(k, { color: "fg.success", children: B }), e[4] = B, e[5] = v) : v = e[5];
146
+ const D = `-${m}`;
147
+ let C;
148
+ e[6] !== D ? (C = /* @__PURE__ */ p(k, { color: "fg.error", children: D }), e[6] = D, e[7] = C) : C = e[7];
149
+ let E;
150
+ return e[8] !== f || e[9] !== o || e[10] !== C || e[11] !== u || e[12] !== h || e[13] !== y || e[14] !== g || e[15] !== S || e[16] !== v ? (E = /* @__PURE__ */ L(k, { display: "inline-flex", alignItems: "center", gap: "2xs", border: u, borderColor: "border.muted", color: "fg.muted", paddingX: h, paddingY: "1px", borderRadius: "xs", textStyle: y, cursor: g, onClick: o, _hover: b, children: [
151
+ f,
152
+ S,
153
+ v,
154
+ C
155
+ ] }), e[8] = f, e[9] = o, e[10] = C, e[11] = u, e[12] = h, e[13] = y, e[14] = g, e[15] = S, e[16] = v, e[17] = E) : E = e[17], E;
156
+ };
157
+ function X(a) {
158
+ const e = w(11), {
159
+ original: s,
160
+ modified: t,
161
+ language: m,
162
+ sideBySide: f,
163
+ disableScroll: d
164
+ } = a, r = m === void 0 ? "plaintext" : m, o = f === void 0 ? !1 : f, n = d === void 0 ? !0 : d;
165
+ let i;
166
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
167
+ enabled: !1
168
+ }, e[0] = i) : i = e[0];
169
+ let l;
170
+ e[1] !== n ? (l = n ? {
171
+ scrollbar: {
172
+ vertical: "hidden",
173
+ horizontal: "hidden",
174
+ useShadows: !1,
175
+ alwaysConsumeMouseWheel: !1
176
+ },
177
+ overviewRulerLanes: 0
178
+ } : {}, e[1] = n, e[2] = l) : l = e[2];
179
+ let c;
180
+ e[3] !== o || e[4] !== l ? (c = {
181
+ renderSideBySide: o,
182
+ readOnly: !0,
183
+ fontSize: 11,
184
+ minimap: i,
185
+ wordWrap: "on",
186
+ scrollBeyondLastLine: !1,
187
+ ...l
188
+ }, e[3] = o, e[4] = l, e[5] = c) : c = e[5];
189
+ const u = c;
190
+ let h;
191
+ return e[6] !== r || e[7] !== t || e[8] !== u || e[9] !== s ? (h = /* @__PURE__ */ p(z, { width: "100%", height: "100%", original: s, modified: t, language: r, theme: "ps-theme", options: u, beforeMount: O, onMount: N }), e[6] = r, e[7] = t, e[8] = u, e[9] = s, e[10] = h) : h = e[10], h;
192
+ }
193
+ function N(a, e) {
194
+ e.editor.setTheme("ps-theme");
195
+ }
196
+ function O(a) {
197
+ a.editor.defineTheme("ps-theme", _);
198
+ }
199
+ const Y = T.forwardRef(function(e, s) {
200
+ const t = w(19);
201
+ let m, f, d, r, o;
202
+ t[0] !== e ? ({
203
+ title: o,
204
+ description: f,
205
+ icon: d,
206
+ children: m,
207
+ ...r
208
+ } = e, t[0] = e, t[1] = m, t[2] = f, t[3] = d, t[4] = r, t[5] = o) : (m = t[1], f = t[2], d = t[3], r = t[4], o = t[5]);
209
+ let n;
210
+ t[6] !== d ? (n = d && /* @__PURE__ */ p(x.Indicator, { children: d }), t[6] = d, t[7] = n) : n = t[7];
211
+ let i;
212
+ t[8] !== f || t[9] !== o ? (i = f ? /* @__PURE__ */ L($, { textAlign: "center", children: [
213
+ /* @__PURE__ */ p(x.Title, { fontWeight: "normal", children: o }),
214
+ /* @__PURE__ */ p(x.Description, { children: f })
215
+ ] }) : /* @__PURE__ */ p(x.Title, { fontWeight: "normal", children: o }), t[8] = f, t[9] = o, t[10] = i) : i = t[10];
216
+ let l;
217
+ t[11] !== m || t[12] !== n || t[13] !== i ? (l = /* @__PURE__ */ L(x.Content, { children: [
218
+ n,
219
+ i,
220
+ m
221
+ ] }), t[11] = m, t[12] = n, t[13] = i, t[14] = l) : l = t[14];
222
+ let c;
223
+ return t[15] !== s || t[16] !== r || t[17] !== l ? (c = /* @__PURE__ */ p(x.Root, { ref: s, ...r, children: l }), t[15] = s, t[16] = r, t[17] = l, t[18] = c) : c = t[18], c;
224
+ });
225
+ export {
226
+ H as C,
227
+ X as D,
228
+ Y as E,
229
+ P as a,
230
+ F as b
231
+ };
232
+ //# sourceMappingURL=empty-state-kQR0gd4j.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty-state-kQR0gd4j.js","sources":["../src/components/code-editor.tsx","../src/components/diff-bubble.tsx","../src/components/diff-editor.tsx","../src/components/empty-state.tsx"],"sourcesContent":["import { DiffEditor, Editor } from \"@monaco-editor/react\";\n\nexport const customTheme = {\n base: \"vs-dark\" as const,\n inherit: true,\n rules: [],\n colors: {\n \"editor.background\": \"#0a0d15\",\n \"editor.foreground\": \"#f5f5f5\",\n \"editor.lineHighlightBackground\": \"#22252C\",\n \"editorCursor.foreground\": \"#A7A7A7\",\n \"editorWhitespace.foreground\": \"#3B3B3B\",\n \"editorIndentGuide.background\": \"#404040\",\n \"editorIndentGuide.activeBackground\": \"#707070\",\n },\n};\n\ninterface CodeEditorProps {\n language: string;\n defaultCode?: string;\n code?: string;\n isEditable: boolean;\n showLineNumbers?: boolean;\n onChange?: (code: string) => void;\n disableScroll?: boolean;\n}\n\nexport const CodeEditor = (props: CodeEditorProps) => {\n const { defaultCode, code, showLineNumbers, isEditable, language = \"javascript\", onChange, disableScroll } = props;\n\n const options = {\n tabSize: 2,\n minimap: {\n enabled: false,\n },\n fontSize: 12,\n readOnly: !isEditable,\n lineNumbers: showLineNumbers ? \"on\" : \"off\",\n ...(disableScroll\n ? {\n scrollbar: {\n vertical: \"hidden\" as const,\n horizontal: \"hidden\" as const,\n useShadows: false,\n alwaysConsumeMouseWheel: false,\n },\n scrollBeyondLastLine: false,\n mouseWheelScrollSensitivity: 0,\n overviewRulerLanes: 0,\n }\n : {}),\n } as const;\n\n return (\n <Editor\n width=\"100%\"\n height=\"100%\"\n language={language}\n defaultValue={defaultCode}\n value={code}\n theme={\"ps-theme\"}\n options={options}\n onChange={(value) => {\n onChange?.(value || \"\");\n }}\n beforeMount={(monaco) => {\n monaco.editor.defineTheme(\"ps-theme\", customTheme);\n }}\n onMount={async (editor, monaco) => {\n monaco.editor.setTheme(\"ps-theme\");\n\n // Add JSX support\n monaco.languages.typescript.typescriptDefaults.setCompilerOptions({\n jsx: monaco.languages.typescript.JsxEmit.React,\n });\n\n // Format on cmd+s\n editor.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyS, async () => {\n await editor.getAction(\"editor.action.formatDocument\")?.run();\n });\n\n // Run format on the initial value\n await editor.getAction(\"editor.action.formatDocument\")?.run();\n }}\n />\n );\n};\n\ninterface CodeDiffEditorProps {\n language: string;\n original: string;\n modified: string;\n showLineNumbers?: boolean;\n disableScroll?: boolean;\n}\n\nexport const CodeDiffEditor = (props: CodeDiffEditorProps) => {\n const { original, modified, showLineNumbers, language = \"javascript\", disableScroll } = props;\n\n const options = {\n tabSize: 2,\n minimap: {\n enabled: false,\n },\n fontSize: 12,\n readOnly: true,\n originalEditable: false,\n renderSideBySide: true,\n useInlineViewWhenSpaceIsTooSmall: true,\n lineNumbers: showLineNumbers ? \"on\" : \"off\",\n ...(disableScroll\n ? {\n scrollbar: {\n vertical: \"hidden\" as const,\n horizontal: \"hidden\" as const,\n useShadows: false,\n alwaysConsumeMouseWheel: false,\n },\n scrollBeyondLastLine: false,\n mouseWheelScrollSensitivity: 0,\n overviewRulerLanes: 0,\n }\n : {}),\n } as const;\n\n return (\n <DiffEditor\n width=\"100%\"\n height=\"100%\"\n language={language}\n original={original}\n modified={modified}\n theme={\"ps-theme\"}\n options={options}\n beforeMount={(monaco) => {\n monaco.editor.defineTheme(\"ps-theme\", customTheme);\n }}\n onMount={(_, monaco) => {\n monaco.editor.setTheme(\"ps-theme\");\n\n monaco.languages.typescript.typescriptDefaults.setCompilerOptions({\n jsx: monaco.languages.typescript.JsxEmit.React,\n });\n }}\n />\n );\n};\n","import { Span } from \"@chakra-ui/react\";\nimport type React from \"react\";\nimport type { ComponentProps, MouseEvent } from \"react\";\n\ninterface DiffBubbleProps extends Omit<ComponentProps<typeof Span>, \"onClick\"> {\n fileName?: string;\n additions: number;\n deletions: number;\n label?: React.ReactNode;\n variant?: \"outline\" | \"ghost\";\n size?: \"default\" | \"small\";\n onClick?: (event: MouseEvent<HTMLSpanElement>) => void;\n onClickFileLink?: () => void;\n}\n\nexport const DiffBubble = (props: DiffBubbleProps) => {\n const {\n fileName,\n additions,\n deletions,\n label,\n variant = \"outline\",\n size = \"default\",\n onClick,\n onClickFileLink,\n } = props;\n\n const isSmall = size === \"small\";\n\n return (\n <Span\n display=\"inline-flex\"\n alignItems=\"center\"\n gap={\"2xs\"}\n border={variant === \"outline\" ? \"1px solid\" : \"none\"}\n borderColor=\"border.muted\"\n color=\"fg.muted\"\n paddingX={variant === \"outline\" ? (isSmall ? \"3xs\" : \"2xs\") : \"2px\"}\n paddingY=\"1px\"\n borderRadius=\"xs\"\n textStyle={isSmall ? \"label/S/regular\" : undefined}\n cursor={onClick ? \"pointer\" : \"default\"}\n onClick={onClick}\n _hover={{\n background: \"bg.muted\",\n }}\n >\n {label}\n {fileName && (\n <Span\n display=\"inline-block\"\n maxW=\"24ch\"\n truncate\n mr=\"xs\"\n title={fileName}\n onClick={(e) => {\n e.stopPropagation();\n onClickFileLink?.();\n }}\n cursor={onClickFileLink ? \"pointer\" : \"default\"}\n _hover={{\n textDecoration: onClickFileLink ? \"underline\" : \"none\",\n color: onClickFileLink ? \"fg.blue-dark\" : \"fg.muted\",\n }}\n >\n {fileName}\n </Span>\n )}\n <Span color=\"fg.success\">{`+${additions}`}</Span>\n <Span color=\"fg.error\">{`-${deletions}`}</Span>\n </Span>\n );\n};\n","import { DiffEditor as MonacoDiffEditor } from \"@monaco-editor/react\";\nimport { customTheme } from \"./code-editor\";\n\ninterface DiffEditorProps {\n original: string;\n modified: string;\n language?: string;\n sideBySide?: boolean;\n disableScroll?: boolean;\n}\n\nexport function DiffEditor(props: DiffEditorProps) {\n const { original, modified, language = \"plaintext\", sideBySide = false, disableScroll = true } = props;\n\n const options = {\n renderSideBySide: sideBySide,\n readOnly: true,\n fontSize: 11,\n minimap: { enabled: false },\n wordWrap: \"on\" as const,\n scrollBeyondLastLine: false,\n ...(disableScroll\n ? {\n scrollbar: {\n vertical: \"hidden\" as const,\n horizontal: \"hidden\" as const,\n useShadows: false,\n alwaysConsumeMouseWheel: false,\n },\n overviewRulerLanes: 0,\n }\n : {}),\n } as const;\n\n return (\n <MonacoDiffEditor\n width=\"100%\"\n height=\"100%\"\n original={original}\n modified={modified}\n language={language}\n theme=\"ps-theme\"\n options={options}\n beforeMount={(monaco) => {\n monaco.editor.defineTheme(\"ps-theme\", customTheme);\n }}\n onMount={(_editor, monaco) => {\n monaco.editor.setTheme(\"ps-theme\");\n }}\n />\n );\n}\n","import { EmptyState as ChakraEmptyState, VStack } from \"@chakra-ui/react\";\nimport * as React from \"react\";\n\nexport interface EmptyStateProps extends ChakraEmptyState.RootProps {\n title: string;\n description?: string;\n icon?: React.ReactNode;\n}\n\nexport const EmptyState = React.forwardRef<HTMLDivElement, EmptyStateProps>(function EmptyState(props, ref) {\n const { title, description, icon, children, ...rest } = props;\n return (\n <ChakraEmptyState.Root ref={ref} {...rest}>\n <ChakraEmptyState.Content>\n {icon && <ChakraEmptyState.Indicator>{icon}</ChakraEmptyState.Indicator>}\n {description ? (\n <VStack textAlign=\"center\">\n <ChakraEmptyState.Title fontWeight=\"normal\">{title}</ChakraEmptyState.Title>\n <ChakraEmptyState.Description>{description}</ChakraEmptyState.Description>\n </VStack>\n ) : (\n <ChakraEmptyState.Title fontWeight=\"normal\">{title}</ChakraEmptyState.Title>\n )}\n {children}\n </ChakraEmptyState.Content>\n </ChakraEmptyState.Root>\n );\n});\n"],"names":["customTheme","base","inherit","rules","colors","CodeEditor","props","$","_c","defaultCode","code","showLineNumbers","isEditable","language","t0","onChange","disableScroll","undefined","t1","Symbol","for","enabled","t2","t3","t4","scrollbar","vertical","horizontal","useShadows","alwaysConsumeMouseWheel","scrollBeyondLastLine","mouseWheelScrollSensitivity","overviewRulerLanes","t5","tabSize","minimap","fontSize","readOnly","lineNumbers","options","t6","value","t7","Editor","_temp","_temp2","CodeDiffEditor","original","modified","originalEditable","renderSideBySide","useInlineViewWhenSpaceIsTooSmall","jsx","DiffEditor","_temp3","_temp4","monaco","editor","defineTheme","monaco_0","setTheme","languages","typescript","typescriptDefaults","setCompilerOptions","JsxEmit","React","addCommand","KeyMod","CtrlCmd","KeyCode","KeyS","getAction","run","_","DiffBubble","fileName","additions","deletions","label","variant","size","onClick","onClickFileLink","isSmall","background","Span","e","stopPropagation","textDecoration","color","t8","t9","t10","t11","t12","sideBySide","wordWrap","MonacoDiffEditor","_editor","EmptyState","forwardRef","ref","children","description","icon","rest","title","ChakraEmptyState","jsxs","VStack"],"mappings":";;;;;AAEO,MAAMA,IAAc;AAAA,EACzBC,MAAM;AAAA,EACNC,SAAS;AAAA,EACTC,OAAO,CAAA;AAAA,EACPC,QAAQ;AAAA,IACN,qBAAqB;AAAA,IACrB,qBAAqB;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, Fragment as Ze } from "react/jsx-runtime";
4
4
  import { c as A } from "react/compiler-runtime";
5
5
  import * as Fe from "react";
6
6
  import { useState as me, useRef as xt, useEffect as He, Children as Vt, isValidElement as jt, cloneElement as Xt, Component as Ut, createContext as Yt, useContext as Kt } from "react";
7
- import { D as qt, a as St, S as ye, E as Ke } from "./scroll-area-DZs-GiIp.js";
8
- import { C as er, b as tr } from "./scroll-area-DZs-GiIp.js";
7
+ import { D as qt, a as St, E as Ke } from "./empty-state-kQR0gd4j.js";
8
+ import { C as er, b as tr } from "./empty-state-kQR0gd4j.js";
9
9
  import { useVirtualizer as Jt } from "@tanstack/react-virtual";
10
- import { ChevronRight as Ce, ChevronDown as et, FileText as qe, ChevronLeft as Qt, FolderOpen as Zt, Folder as en, Home as tn, ChevronUp as nn, Info as ln, CircleCheck as rn, CircleAlert as on, CircleDashed as sn, PanelLeftClose as an, Settings2 as cn, List as dn, KanbanSquare as un, ArrowDownUp as gn, Filter as fn, GitBranchIcon as pn, Plus as hn, MoreHorizontal as mn } from "lucide-react";
11
- import { T as Ee } from "./tooltip-Gm7PLwZG.js";
10
+ import { ChevronRight as ye, ChevronDown as et, FileText as qe, ChevronLeft as Qt, FolderOpen as Zt, Folder as en, Home as tn, ChevronUp as nn, Info as ln, CircleCheck as rn, CircleAlert as on, CircleDashed as sn, PanelLeftClose as an, Settings2 as cn, List as dn, KanbanSquare as un, ArrowDownUp as gn, Filter as fn, GitBranchIcon as pn, Plus as hn, MoreHorizontal as mn } from "lucide-react";
11
+ import { S as Ce, T as Ee } from "./tooltip-Dze4WXVl.js";
12
12
  import { useStore as yt } from "zustand";
13
13
  import { persist as Ct, createJSONStorage as vt } from "zustand/middleware";
14
14
  import { createStore as wt } from "zustand/vanilla";
@@ -190,13 +190,13 @@ const Cn = Fe.forwardRef(function(e, n) {
190
190
  T.stopPropagation(), r(!t);
191
191
  }, e[4] = t, e[5] = p) : p = e[5];
192
192
  let h;
193
- e[6] !== t ? (h = t ? /* @__PURE__ */ i(et, { size: 16 }) : /* @__PURE__ */ i(Ce, { size: 16 }), e[6] = t, e[7] = h) : h = e[7];
193
+ e[6] !== t ? (h = t ? /* @__PURE__ */ i(et, { size: 16 }) : /* @__PURE__ */ i(ye, { size: 16 }), e[6] = t, e[7] = h) : h = e[7];
194
194
  let m;
195
195
  e[8] !== f || e[9] !== p || e[10] !== h ? (m = /* @__PURE__ */ i(Se, { "aria-label": f, variant: "ghost", size: "2xs", onClick: p, flexShrink: 0, children: h }), e[8] = f, e[9] = p, e[10] = h, e[11] = m) : m = e[11];
196
196
  let x;
197
197
  e[12] !== n.change || e[13] !== n.newPath || e[14] !== n.oldPath || e[15] !== o ? (x = n.change === "renamed" ? /* @__PURE__ */ b($, { as: "span", textStyle: "sm", children: [
198
198
  /* @__PURE__ */ i($, { as: "span", color: "fg.muted", textDecoration: "line-through", mr: "xs", children: n.oldPath }),
199
- /* @__PURE__ */ i(V, { as: "span", display: "inline-flex", alignItems: "center", verticalAlign: "middle", mr: "xs", children: /* @__PURE__ */ i(Ce, { size: 12 }) }),
199
+ /* @__PURE__ */ i(V, { as: "span", display: "inline-flex", alignItems: "center", verticalAlign: "middle", mr: "xs", children: /* @__PURE__ */ i(ye, { size: 12 }) }),
200
200
  n.newPath
201
201
  ] }) : n.change === "deleted" ? /* @__PURE__ */ i($, { as: "span", color: "fg.muted", textDecoration: "line-through", textStyle: "sm", children: o }) : /* @__PURE__ */ i($, { as: "span", textStyle: "sm", children: o }), e[12] = n.change, e[13] = n.newPath, e[14] = n.oldPath, e[15] = o, e[16] = x) : x = e[16];
202
202
  let y;
@@ -226,10 +226,10 @@ function zi(l) {
226
226
  estimateSize: () => 42,
227
227
  overscan: 5
228
228
  });
229
- return e.length === 0 ? /* @__PURE__ */ i(G, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(ye, { flex: "1", minH: "0", contentProps: {
229
+ return e.length === 0 ? /* @__PURE__ */ i(G, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(Ce, { flex: "1", minH: "0", contentProps: {
230
230
  p: "xs",
231
231
  spaceY: "xs"
232
- }, children: /* @__PURE__ */ i(Ke, { title: "No changes detected", description: "Make some changes to see the diff here.", paddingY: "sm" }) }) }) : /* @__PURE__ */ i(G, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(V, { position: "relative", flex: "1", minH: "0", children: /* @__PURE__ */ i(ye, { position: "absolute", inset: "0", viewportRef: n, contentProps: {
232
+ }, children: /* @__PURE__ */ i(Ke, { title: "No changes detected", description: "Make some changes to see the diff here.", paddingY: "sm" }) }) }) : /* @__PURE__ */ i(G, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(V, { position: "relative", flex: "1", minH: "0", children: /* @__PURE__ */ i(Ce, { position: "absolute", inset: "0", viewportRef: n, contentProps: {
233
233
  p: "xs"
234
234
  }, children: /* @__PURE__ */ i(V, { position: "relative", width: "100%", style: {
235
235
  height: t.getTotalSize()
@@ -413,7 +413,7 @@ const Ln = /^(#{1,3})\s+(.+)$/gm, Rn = ".rich-text__h1, .rich-text__h2, .rich-te
413
413
  let C;
414
414
  e[14] !== o ? (C = /* @__PURE__ */ i($, { textStyle: "sm", fontWeight: "medium", color: "fg", children: o }), e[14] = o, e[15] = C) : C = e[15];
415
415
  const w = g ? null : /* @__PURE__ */ b(Ze, { children: [
416
- /* @__PURE__ */ i(oe, { as: Ce, color: "fg.subtle" }),
416
+ /* @__PURE__ */ i(oe, { as: ye, color: "fg.subtle" }),
417
417
  /* @__PURE__ */ i($, { textStyle: "sm", color: "fg.muted", children: P?.text })
418
418
  ] });
419
419
  let v;
@@ -434,7 +434,7 @@ const Ln = /^(#{1,3})\s+(.+)$/gm, Rn = ".rich-text__h1, .rich-text__h2, .rich-te
434
434
  ] }), e[22] = v, e[23] = z, e[24] = O) : O = e[24];
435
435
  let W;
436
436
  e[25] !== d ? (W = (U) => /* @__PURE__ */ i(lt, { heading: U, variant: "minimal", emphasized: !1, isActive: d === U.id, onSelect: T }, U.id), e[25] = d, e[26] = W) : W = e[26];
437
- const H = ye, B = "md", N = "6", M = "xs", R = "sticky", F = "calc(100vh - 3rem)";
437
+ const H = Ce, B = "md", N = "6", M = "xs", R = "sticky", F = "calc(100vh - 3rem)";
438
438
  let Y;
439
439
  e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ i(oe, { as: qe, color: "fg.subtle" }), e[27] = Y) : Y = e[27];
440
440
  let q;
@@ -455,7 +455,7 @@ const Ln = /^(#{1,3})\s+(.+)$/gm, Rn = ".rich-text__h1, .rich-text__h2, .rich-te
455
455
  ] }), e[35] = H, e[36] = q, e[37] = ee, e[38] = Z) : Z = e[38], /* @__PURE__ */ b(G, { gap: "0", width: "full", children: [
456
456
  /* @__PURE__ */ i(V, { hideFrom: "md", px: "4", py: "2", w: "full", bg: "bg.subtle", borderWidth: "1px", children: /* @__PURE__ */ b(_e.Root, { open: g, onOpenChange: _, children: [
457
457
  O,
458
- /* @__PURE__ */ i(_e.Content, { children: /* @__PURE__ */ i(ye, { mt: "3", maxH: "30vh", children: /* @__PURE__ */ i(G, { gap: "0", children: a.map(W) }) }) })
458
+ /* @__PURE__ */ i(_e.Content, { children: /* @__PURE__ */ i(Ce, { mt: "3", maxH: "30vh", children: /* @__PURE__ */ i(G, { gap: "0", children: a.map(W) }) }) })
459
459
  ] }) }),
460
460
  Z
461
461
  ] });
@@ -487,7 +487,7 @@ const it = (l) => {
487
487
  f
488
488
  ] }), e[8] = d, e[9] = u, e[10] = g, e[11] = f, e[12] = p) : p = e[12];
489
489
  let h;
490
- e[13] !== r ? (h = r ? null : /* @__PURE__ */ i(Ce, { size: 16 }), e[13] = r, e[14] = h) : h = e[14];
490
+ e[13] !== r ? (h = r ? null : /* @__PURE__ */ i(ye, { size: 16 }), e[13] = r, e[14] = h) : h = e[14];
491
491
  let m;
492
492
  e[15] !== n.href || e[16] !== c || e[17] !== p || e[18] !== h ? (m = /* @__PURE__ */ b("a", { href: n.href, children: [
493
493
  c,
@@ -532,7 +532,7 @@ const it = (l) => {
532
532
  let d;
533
533
  e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ i(_e.Indicator, { transition: "transform 0.2s", _open: {
534
534
  transform: "rotate(90deg)"
535
- }, children: /* @__PURE__ */ i(Ce, { size: 16 }) }), e[3] = d) : d = e[3];
535
+ }, children: /* @__PURE__ */ i(ye, { size: 16 }) }), e[3] = d) : d = e[3];
536
536
  let u;
537
537
  e[4] !== c ? (u = /* @__PURE__ */ b(_e.Trigger, { _hover: a, borderRadius: "xs", padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
538
538
  c,
@@ -726,7 +726,9 @@ const It = {
726
726
  value: ee,
727
727
  bg: F,
728
728
  _hover: Z,
729
- _focus: U
729
+ _focus: U,
730
+ textDecoration: "none",
731
+ color: "inherit"
730
732
  }, e[20] = F, e[21] = n, e[22] = I, e[23] = k, e[24] = v, e[25] = Q, e[26] = te, e[27] = ee, e[28] = S, e[29] = R.minHeight, e[30] = R.paddingX, e[31] = R.paddingY, e[32] = C, e[33] = ie) : ie = e[33];
731
733
  const ce = ie;
732
734
  if (r && t) {
@@ -740,12 +742,7 @@ const It = {
740
742
  break e;
741
743
  }
742
744
  let ge;
743
- e[39] !== K ? (ge = /* @__PURE__ */ i(rt, { ...K }), e[39] = K, e[40] = ge) : ge = e[40], fe = /* @__PURE__ */ i(tt, { asChild: !0, ...ce, children: Xt(be, {
744
- style: {
745
- textDecoration: "none",
746
- color: "inherit"
747
- }
748
- }, ge) });
745
+ e[39] !== K ? (ge = /* @__PURE__ */ i(rt, { ...K }), e[39] = K, e[40] = ge) : ge = e[40], fe = /* @__PURE__ */ i(tt, { asChild: !0, ...ce, children: Xt(be, void 0, ge) });
749
746
  }
750
747
  e[34] = t, e[35] = ce, e[36] = K, e[37] = fe, e[38] = ae;
751
748
  } else
@@ -783,7 +780,7 @@ function Wn(l) {
783
780
  let a;
784
781
  e[0] !== s.headerHeight || e[1] !== s.headerPadding || e[2] !== s.headerTextStyle || e[3] !== n ? (a = n && /* @__PURE__ */ i(we, { height: s.headerHeight, p: s.headerPadding, borderBottomWidth: "1px", alignItems: "center", children: /* @__PURE__ */ i($, { pb: "0", textStyle: s.headerTextStyle, color: "fg.muted", children: n }) }), e[0] = s.headerHeight, e[1] = s.headerPadding, e[2] = s.headerTextStyle, e[3] = n, e[4] = a) : a = e[4];
785
782
  let c;
786
- e[5] !== t || e[6] !== s.contentGap || e[7] !== s.contentPadding ? (c = t && /* @__PURE__ */ i(ye, { flex: "1", minH: "0", contentProps: {
783
+ e[5] !== t || e[6] !== s.contentGap || e[7] !== s.contentPadding ? (c = t && /* @__PURE__ */ i(Ce, { flex: "1", minH: "0", contentProps: {
787
784
  p: s.contentPadding,
788
785
  spaceY: s.contentGap
789
786
  }, children: t }), e[5] = t, e[6] = s.contentGap, e[7] = s.contentPadding, e[8] = c) : c = e[8];
@@ -955,7 +952,7 @@ const Fn = (l) => {
955
952
  e[18] !== m || e[19] !== B ? (M = /* @__PURE__ */ i(de, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: m, disabled: B, children: N }), e[18] = m, e[19] = B, e[20] = M) : M = e[20];
956
953
  const R = I || "Home";
957
954
  let F;
958
- e[21] !== R ? (F = /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: R }), e[21] = R, e[22] = F) : F = e[22];
955
+ e[21] !== R ? (F = /* @__PURE__ */ i($, { "data-testid": "folder-picker-path", textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: R }), e[21] = R, e[22] = F) : F = e[22];
959
956
  let Y;
960
957
  e[23] !== H || e[24] !== M || e[25] !== F ? (Y = /* @__PURE__ */ b(G, { direction: "row", gap: "sm", align: "center", children: [
961
958
  H,
@@ -967,7 +964,7 @@ const Fn = (l) => {
967
964
  padding: "sm"
968
965
  }, e[27] = q) : q = e[27];
969
966
  let J;
970
- e[28] !== s || e[29] !== _ || e[30] !== T || e[31] !== x || e[32] !== k || e[33] !== w ? (J = /* @__PURE__ */ i(ye, { borderWidth: "1px", borderRadius: "md", borderColor: "border.muted", maxHeight: "320px", contentProps: q, children: T ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "Loading..." }) : _ ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "red.500", children: _ }) : s.length === 0 ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "No entries found." }) : /* @__PURE__ */ i(G, { gap: "xs", children: s.map((ie) => /* @__PURE__ */ i(Vn, { entry: ie, selectedPath: k, selectedPathSet: w, onEntryClick: x }, ie.path)) }) }), e[28] = s, e[29] = _, e[30] = T, e[31] = x, e[32] = k, e[33] = w, e[34] = J) : J = e[34];
967
+ e[28] !== s || e[29] !== _ || e[30] !== T || e[31] !== x || e[32] !== k || e[33] !== w ? (J = /* @__PURE__ */ i(Ce, { borderWidth: "1px", borderRadius: "md", borderColor: "border.muted", maxHeight: "320px", contentProps: q, children: T ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "Loading..." }) : _ ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "red.500", children: _ }) : s.length === 0 ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "No entries found." }) : /* @__PURE__ */ i(G, { gap: "xs", children: s.map((ie) => /* @__PURE__ */ i(Vn, { entry: ie, selectedPath: k, selectedPathSet: w, onEntryClick: x }, ie.path)) }) }), e[28] = s, e[29] = _, e[30] = T, e[31] = x, e[32] = k, e[33] = w, e[34] = J) : J = e[34];
971
968
  let K;
972
969
  e[35] !== Y || e[36] !== J ? (K = /* @__PURE__ */ i(se.Body, { children: /* @__PURE__ */ b(G, { gap: "md", children: [
973
970
  Y,
@@ -1208,7 +1205,7 @@ const Kn = (l) => l === "completed" ? rn : l === "failed" ? on : sn, qn = (l) =>
1208
1205
  let T;
1209
1206
  e[14] !== t.label || e[15] !== D ? (T = /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: D, truncate: !0, children: t.label }), e[14] = t.label, e[15] = D, e[16] = T) : T = e[16];
1210
1207
  let _;
1211
- e[17] !== f || e[18] !== u ? (_ = u ? /* @__PURE__ */ i(V, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(Ce, { size: 14, style: {
1208
+ e[17] !== f || e[18] !== u ? (_ = u ? /* @__PURE__ */ i(V, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(ye, { size: 14, style: {
1212
1209
  transform: f ? "rotate(90deg)" : "rotate(0deg)",
1213
1210
  transition: "120ms"
1214
1211
  } }) }) : null, e[17] = f, e[18] = u, e[19] = _) : _ = e[19];
@@ -1283,13 +1280,13 @@ const Kn = (l) => l === "completed" ? rn : l === "failed" ? on : sn, qn = (l) =>
1283
1280
  let f;
1284
1281
  e[9] !== o || e[10] !== r || e[11] !== t || e[12] !== s || e[13] !== a || e[14] !== d || e[15] !== c ? (f = (p) => {
1285
1282
  const h = p.label ? Pt(p.id, t) : !0;
1286
- return /* @__PURE__ */ b(G, { gap: "0", children: [
1283
+ return /* @__PURE__ */ b(G, { gap: "0", "data-testid": `sidebar-section-${p.id}`, children: [
1287
1284
  p.label ? /* @__PURE__ */ b(X, { className: "group", justify: "space-between", align: "center", px: "1", py: "2xs", minH: "7", cursor: "pointer", borderRadius: "xs", _hover: {
1288
1285
  bg: "bg.subtle"
1289
1286
  }, onClick: () => c(p.id), children: [
1290
1287
  /* @__PURE__ */ b(X, { gap: "1", flex: "1", minW: "0", children: [
1291
1288
  /* @__PURE__ */ i($, { textStyle: "label/XS", textTransform: "uppercase", color: "fg.muted", letterSpacing: "0.08em", truncate: !0, children: p.label }),
1292
- /* @__PURE__ */ i(V, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(Ce, { size: 14, style: {
1289
+ /* @__PURE__ */ i(V, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(ye, { size: 14, style: {
1293
1290
  transform: h ? "rotate(90deg)" : "rotate(0deg)",
1294
1291
  transition: "120ms"
1295
1292
  } }) })
@@ -1428,11 +1425,11 @@ const ot = {
1428
1425
  let C;
1429
1426
  e[4] !== o || e[5] !== S ? (C = /* @__PURE__ */ i(cl, { onClose: S, children: o }), e[4] = o, e[5] = S, e[6] = C) : C = e[6];
1430
1427
  let w;
1431
- e[7] !== r || e[8] !== m || e[9] !== I || e[10] !== y || e[11] !== u || e[12] !== g || e[13] !== t || e[14] !== D || e[15] !== P ? (w = /* @__PURE__ */ i(ye, { flex: "1", children: t.length === 0 ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: m }) : /* @__PURE__ */ i(Zn, { sections: t, expandedSections: y, expandedNodes: I, activeNodeId: r, linkComponent: u, onNavigate: g, onToggleSection: P, onToggleNode: D }) }), e[7] = r, e[8] = m, e[9] = I, e[10] = y, e[11] = u, e[12] = g, e[13] = t, e[14] = D, e[15] = P, e[16] = w) : w = e[16];
1428
+ e[7] !== r || e[8] !== m || e[9] !== I || e[10] !== y || e[11] !== u || e[12] !== g || e[13] !== t || e[14] !== D || e[15] !== P ? (w = /* @__PURE__ */ i(Ce, { flex: "1", children: t.length === 0 ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: m }) : /* @__PURE__ */ i(Zn, { sections: t, expandedSections: y, expandedNodes: I, activeNodeId: r, linkComponent: u, onNavigate: g, onToggleSection: P, onToggleNode: D }) }), e[7] = r, e[8] = m, e[9] = I, e[10] = y, e[11] = u, e[12] = g, e[13] = t, e[14] = D, e[15] = P, e[16] = w) : w = e[16];
1432
1429
  let v;
1433
1430
  e[17] !== s ? (v = /* @__PURE__ */ i(al, { children: s }), e[17] = s, e[18] = v) : v = e[18];
1434
1431
  let E;
1435
- return e[19] !== C || e[20] !== w || e[21] !== v || e[22] !== p ? (E = /* @__PURE__ */ b(we, { as: "aside", direction: "column", h: "100%", w: p, minW: p, maxW: p, borderRightWidth: "1px", borderRightColor: "border.muted", bg: "bg", children: [
1432
+ return e[19] !== C || e[20] !== w || e[21] !== v || e[22] !== p ? (E = /* @__PURE__ */ b(we, { as: "aside", "data-testid": "sidebar", direction: "column", h: "100%", w: p, minW: p, maxW: p, borderRightWidth: "1px", borderRightColor: "border.muted", bg: "bg", children: [
1436
1433
  C,
1437
1434
  w,
1438
1435
  v
@@ -1793,7 +1790,7 @@ const ji = Fe.forwardRef(function(e, n) {
1793
1790
  let M;
1794
1791
  e[31] !== P ? (M = P.length > 0 && /* @__PURE__ */ i(bt, { gap: "2xs", children: P.map(Sl) }), e[31] = P, e[32] = M) : M = e[32];
1795
1792
  let R;
1796
- return e[33] !== g || e[34] !== h || e[35] !== p || e[36] !== f || e[37] !== B || e[38] !== N || e[39] !== M || e[40] !== v || e[41] !== E ? (R = /* @__PURE__ */ b(G, { gap: "xs", padding: "sm", borderRadius: "sm", borderWidth: "1px", width: "calc(100% - 8px)", alignSelf: "center", background: "bg", transition: "box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out", _hover: w, cursor: v, draggable: g, onDragStart: f, onDragEnd: p, onClick: h, "data-selected": E, children: [
1793
+ return e[33] !== g || e[34] !== h || e[35] !== p || e[36] !== f || e[37] !== B || e[38] !== N || e[39] !== M || e[40] !== v || e[41] !== E ? (R = /* @__PURE__ */ b(G, { gap: "xs", padding: "sm", borderRadius: "sm", borderWidth: "1px", width: "100%", background: "bg", transition: "box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out", _hover: w, cursor: v, draggable: g, onDragStart: f, onDragEnd: p, onClick: h, "data-selected": E, children: [
1797
1794
  B,
1798
1795
  N,
1799
1796
  M
@@ -1846,11 +1843,15 @@ const yl = (l) => {
1846
1843
  let C;
1847
1844
  e[16] !== d || e[17] !== g || e[18] !== D || e[19] !== a || e[20] !== s || e[21] !== r || e[22] !== o || e[23] !== c ? (C = (w) => /* @__PURE__ */ b(G, { "data-testid": `board-column-${w.id}`, gap: "xs", _notFirst: {
1848
1845
  borderLeft: "1px solid",
1849
- borderColor: "border"
1846
+ borderColor: "border.muted"
1850
1847
  }, background: d === w.id ? "bg.subtle" : "bg", transition: "background 150ms ease", height: "100%", minH: "240px", overflow: "hidden", minW: "260px", flex: "1 0 260px", onDragOver: w.canDragIn ? y(w.id) : void 0, onDragLeave: w.canDragIn ? k : void 0, onDrop: w.canDragIn ? D(w.id) : void 0, children: [
1851
1848
  /* @__PURE__ */ i(vl, { column: w, onCreateStart: s, onColumnAction: a }),
1852
- /* @__PURE__ */ i(ye, { flex: "1", minH: "0", contentProps: {
1853
- spaceY: "sm"
1849
+ /* @__PURE__ */ i(Ce, { flex: "1", minH: "0", verticalScrollbarProps: {
1850
+ margin: "0"
1851
+ }, contentProps: {
1852
+ spaceY: "sm",
1853
+ ps: "xs",
1854
+ pe: "xs"
1854
1855
  }, children: w.groups && w.groups.length > 0 ? w.groups.map((v) => {
1855
1856
  const E = `${w.id}::${v.key}`;
1856
1857
  return /* @__PURE__ */ i(Cl, { group: v, selectedItemId: c, canDragIn: w.canDragIn, canDragOut: w.canDragOut, isDropTarget: g === E, onDragStart: p, onDragEnd: m, onGroupDragOver: (L) => {
@@ -1867,7 +1868,7 @@ const yl = (l) => {
1867
1868
  } else
1868
1869
  _ = e[15];
1869
1870
  let S;
1870
- return e[25] !== _ ? (S = /* @__PURE__ */ i(ye, { height: "100%", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: T, children: _ }), e[25] = _, e[26] = S) : S = e[26], S;
1871
+ return e[25] !== _ ? (S = /* @__PURE__ */ i(Ce, { height: "100%", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: T, children: _ }), e[25] = _, e[26] = S) : S = e[26], S;
1871
1872
  }, Cl = (l) => {
1872
1873
  const e = A(26), {
1873
1874
  group: n,
@@ -1889,7 +1890,7 @@ const yl = (l) => {
1889
1890
  e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => p(Il), e[1] = k) : k = e[1];
1890
1891
  const P = f ? "rotate(90deg)" : "rotate(0deg)";
1891
1892
  let D;
1892
- e[2] !== P ? (D = /* @__PURE__ */ i(V, { display: "flex", alignItems: "center", flexShrink: 0, children: /* @__PURE__ */ i(oe, { as: Ce, boxSize: "14px", color: "fg.muted", transform: P, transition: "transform 0.15s ease" }) }), e[2] = P, e[3] = D) : D = e[3];
1893
+ e[2] !== P ? (D = /* @__PURE__ */ i(V, { display: "flex", alignItems: "center", flexShrink: 0, children: /* @__PURE__ */ i(oe, { as: ye, boxSize: "14px", color: "fg.muted", transform: P, transition: "transform 0.15s ease" }) }), e[2] = P, e[3] = D) : D = e[3];
1893
1894
  let T;
1894
1895
  e[4] !== n.label ? (T = /* @__PURE__ */ i($, { textStyle: "label/S/medium", color: "fg.muted", children: n.label }), e[4] = n.label, e[5] = T) : T = e[5];
1895
1896
  let _;
@@ -2008,7 +2009,7 @@ const kl = [{
2008
2009
  row: n
2009
2010
  } = l, t = n.getIsExpanded(), r = t ? "true" : void 0, o = t ? "Collapse group" : "Expand group", s = t ? "rotate(90deg)" : "rotate(0deg)";
2010
2011
  let a;
2011
- e[0] !== s ? (a = /* @__PURE__ */ i(Ce, { size: 14, style: {
2012
+ e[0] !== s ? (a = /* @__PURE__ */ i(ye, { size: 14, style: {
2012
2013
  color: "var(--chakra-colors-fg-muted)",
2013
2014
  transform: s,
2014
2015
  transition: "transform 0.15s ease"
@@ -2609,7 +2610,7 @@ export {
2609
2610
  Fi as OpenSourceNoticesScreen,
2610
2611
  Wn as PanelMenu,
2611
2612
  Bi as Properties,
2612
- ye as ScrollArea,
2613
+ Ce as ScrollArea,
2613
2614
  Jn as SessionIndicator,
2614
2615
  Vi as SidebarNext,
2615
2616
  Zn as SidebarTree,