@pstdio/ui 0.40.0 → 0.42.0

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.
Files changed (108) hide show
  1. package/dist/{MermaidComponent-81jr28u4.js → MermaidComponent-D7vhkpka.js} +3 -3
  2. package/dist/{MermaidComponent-81jr28u4.js.map → MermaidComponent-D7vhkpka.js.map} +1 -1
  3. package/dist/alert-MQ47wy7f.js +388 -0
  4. package/dist/alert-MQ47wy7f.js.map +1 -0
  5. package/dist/chat-ui.d.ts +129 -23
  6. package/dist/chat-ui.js +2596 -1591
  7. package/dist/chat-ui.js.map +1 -1
  8. package/dist/{types-DWA3enV6.d.ts → collection-view-fields-D3cysHNT.d.ts} +87 -37
  9. package/dist/collection-view-grouping-D4nZk8-3.js +90 -0
  10. package/dist/collection-view-grouping-D4nZk8-3.js.map +1 -0
  11. package/dist/collection-view-search-CpjJy76w.js +1973 -0
  12. package/dist/collection-view-search-CpjJy76w.js.map +1 -0
  13. package/dist/collection-view.d.ts +4 -0
  14. package/dist/collection-view.js +2 -0
  15. package/dist/{data-table-stats-row-CpRe_xK2.js → data-table-stats-row-64magT2g.js} +2 -2
  16. package/dist/{data-table-stats-row-CpRe_xK2.js.map → data-table-stats-row-64magT2g.js.map} +1 -1
  17. package/dist/data-table.d.ts +29 -7
  18. package/dist/data-table.js +1043 -878
  19. package/dist/data-table.js.map +1 -1
  20. package/dist/diff-bubble-DewUd_2w.js +61 -0
  21. package/dist/diff-bubble-DewUd_2w.js.map +1 -0
  22. package/dist/{diff-drawer-45rpk3aq.js → diff-drawer-IYpQ-QQK.js} +264 -242
  23. package/dist/diff-drawer-IYpQ-QQK.js.map +1 -0
  24. package/dist/diff-viewer-C-0VAt9P.js +574 -0
  25. package/dist/diff-viewer-C-0VAt9P.js.map +1 -0
  26. package/dist/diff.d.ts +11 -0
  27. package/dist/diff.js +107 -98
  28. package/dist/diff.js.map +1 -1
  29. package/dist/display-sort-control-f3rbILsV.js +588 -0
  30. package/dist/display-sort-control-f3rbILsV.js.map +1 -0
  31. package/dist/drop-indicator-HjlBSIeV.js +27 -0
  32. package/dist/drop-indicator-HjlBSIeV.js.map +1 -0
  33. package/dist/edit-mode-data-table-DnMB2jiy.js +1449 -0
  34. package/dist/edit-mode-data-table-DnMB2jiy.js.map +1 -0
  35. package/dist/host-storage-BIo5azql.js +31 -0
  36. package/dist/host-storage-BIo5azql.js.map +1 -0
  37. package/dist/host-storage-J0089Hyk.d.ts +17 -0
  38. package/dist/{slider-hwHYe98I.js → icon-options-Tt6Wzhtv.js} +86 -201
  39. package/dist/icon-options-Tt6Wzhtv.js.map +1 -0
  40. package/dist/{index-Bfddrlz8.d.ts → index-B79hwNcB.d.ts} +66 -14
  41. package/dist/index-CKsd23jv.d.ts +80 -0
  42. package/dist/{index-CbtbcvKm.d.ts → index-DlmvvQ6x.d.ts} +1 -1
  43. package/dist/index-ICoad2I_.d.ts +282 -0
  44. package/dist/index.d.ts +63 -22
  45. package/dist/index.js +1149 -1054
  46. package/dist/index.js.map +1 -1
  47. package/dist/kanban-renderer.d.ts +3 -326
  48. package/dist/kanban-renderer.js +980 -596
  49. package/dist/kanban-renderer.js.map +1 -1
  50. package/dist/list-row-Z4SHkseA.js +1195 -0
  51. package/dist/list-row-Z4SHkseA.js.map +1 -0
  52. package/dist/markdown-editor-Dd4mor7l.js +3236 -0
  53. package/dist/markdown-editor-Dd4mor7l.js.map +1 -0
  54. package/dist/{mermaid-renderer-DImi0fDp.js → mermaid-renderer-0PmNkOXI.js} +29 -29
  55. package/dist/mermaid-renderer-0PmNkOXI.js.map +1 -0
  56. package/dist/mermaid.js +1 -1
  57. package/dist/number-input-7K66wnSC.js +63 -0
  58. package/dist/number-input-7K66wnSC.js.map +1 -0
  59. package/dist/{param-editor-BQd4AOUP.js → param-editor-Dnix-fJo.js} +2 -2
  60. package/dist/{param-editor-BQd4AOUP.js.map → param-editor-Dnix-fJo.js.map} +1 -1
  61. package/dist/{param-editor-field-BJ_rLUnV.js → param-editor-field-B3vLST-B.js} +1436 -1427
  62. package/dist/param-editor-field-B3vLST-B.js.map +1 -0
  63. package/dist/param-editor.js +4 -3
  64. package/dist/prism-OG4H7Hu4.js +334 -0
  65. package/dist/prism-OG4H7Hu4.js.map +1 -0
  66. package/dist/queued-follow-up-Bj_vtMgd.js +208 -0
  67. package/dist/queued-follow-up-Bj_vtMgd.js.map +1 -0
  68. package/dist/{resource-badge-95WPVlZf.d.ts → resource-badge-nOWPqxFU.d.ts} +1 -0
  69. package/dist/rich-text-BgEnAHr2.js +1160 -0
  70. package/dist/rich-text-BgEnAHr2.js.map +1 -0
  71. package/dist/rich-text.d.ts +2 -2
  72. package/dist/rich-text.js +4 -2
  73. package/dist/style.css +1 -1
  74. package/dist/terminal.d.ts +5 -63
  75. package/dist/terminal.js +102 -122
  76. package/dist/terminal.js.map +1 -1
  77. package/dist/{theme-CbmSEbRF.js → theme-CMJdH59Z.js} +589 -265
  78. package/dist/theme-CMJdH59Z.js.map +1 -0
  79. package/dist/theme-kKuLN2jb.js +80 -0
  80. package/dist/theme-kKuLN2jb.js.map +1 -0
  81. package/dist/theme-preference-BV4cbJNB.js +115 -0
  82. package/dist/theme-preference-BV4cbJNB.js.map +1 -0
  83. package/dist/theme.js +3 -2
  84. package/dist/tree-list-jarhD31R.js +1652 -0
  85. package/dist/tree-list-jarhD31R.js.map +1 -0
  86. package/dist/use-virtualizer-uj43XjBp.js +10 -0
  87. package/dist/use-virtualizer-uj43XjBp.js.map +1 -0
  88. package/dist/{workspace-badge-Brm3Xr3m.d.ts → workspace-badge-BKtB805G.d.ts} +5 -1
  89. package/package.json +8 -4
  90. package/dist/diff-bubble-DZsarmSG.js +0 -61
  91. package/dist/diff-bubble-DZsarmSG.js.map +0 -1
  92. package/dist/diff-drawer-45rpk3aq.js.map +0 -1
  93. package/dist/diff-viewer-BP_mI6Wx.js +0 -558
  94. package/dist/diff-viewer-BP_mI6Wx.js.map +0 -1
  95. package/dist/list-row-uqD-q4gv.js +0 -1018
  96. package/dist/list-row-uqD-q4gv.js.map +0 -1
  97. package/dist/mermaid-renderer-DImi0fDp.js.map +0 -1
  98. package/dist/param-editor-field-BJ_rLUnV.js.map +0 -1
  99. package/dist/prism-BStPsJSB.js +0 -658
  100. package/dist/prism-BStPsJSB.js.map +0 -1
  101. package/dist/rich-text-VYAmEigU.js +0 -6979
  102. package/dist/rich-text-VYAmEigU.js.map +0 -1
  103. package/dist/slider-hwHYe98I.js.map +0 -1
  104. package/dist/theme-CbmSEbRF.js.map +0 -1
  105. package/dist/theme-preference-pzfuK5cH.js +0 -101
  106. package/dist/theme-preference-pzfuK5cH.js.map +0 -1
  107. package/dist/tree-list-BNZwjQZA.js +0 -1616
  108. package/dist/tree-list-BNZwjQZA.js.map +0 -1
@@ -1,658 +0,0 @@
1
- import { n as e } from "./scroll-area-Cr1lNXAr.js";
2
- import { Alert as t, Avatar as n, Box as r, Checkbox as i, HStack as a, IconButton as o, Stack as s, Switch as c, Text as l, Timeline as u, chakra as d, createSlotRecipeContext as f, defineSlotRecipe as p } from "@chakra-ui/react";
3
- import { c as m } from "react/compiler-runtime";
4
- import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
5
- import * as v from "react";
6
- import { Children as y } from "react";
7
- import { File as b, FileArchive as x, FileChartLine as S, FileCode as C, FileCog as w, FileImage as T, FileJson as E, FileSpreadsheet as D, FileText as O, X as k } from "lucide-react";
8
- //#region src/components/activity/activity-avatar.tsx
9
- var A = (e) => {
10
- let t = m(14), { actor: i, icon: a, color: o, background: s } = e, c = o === void 0 ? "fg.muted" : o, l = s === void 0 ? "bg.muted" : s;
11
- if (a) {
12
- let e;
13
- return t[0] !== l || t[1] !== c || t[2] !== a ? (e = /* @__PURE__ */ g(r, {
14
- boxSize: "18px",
15
- borderRadius: "full",
16
- display: "inline-flex",
17
- alignItems: "center",
18
- justifyContent: "center",
19
- flexShrink: 0,
20
- color: c,
21
- background: l,
22
- children: a
23
- }), t[0] = l, t[1] = c, t[2] = a, t[3] = e) : e = t[3], e;
24
- }
25
- let u = i?.avatarSrc, d = i?.avatarAlt ?? i?.name, f;
26
- t[4] !== u || t[5] !== d ? (f = /* @__PURE__ */ g(n.Image, {
27
- src: u,
28
- alt: d
29
- }), t[4] = u, t[5] = d, t[6] = f) : f = t[6];
30
- let p = i?.name, h;
31
- t[7] !== l || t[8] !== c || t[9] !== p ? (h = /* @__PURE__ */ g(n.Fallback, {
32
- name: p,
33
- background: l,
34
- color: c
35
- }), t[7] = l, t[8] = c, t[9] = p, t[10] = h) : h = t[10];
36
- let v;
37
- return t[11] !== f || t[12] !== h ? (v = /* @__PURE__ */ _(n.Root, {
38
- size: "2xs",
39
- flexShrink: 0,
40
- children: [f, h]
41
- }), t[11] = f, t[12] = h, t[13] = v) : v = t[13], v;
42
- }, j = p({
43
- className: "activity-comment",
44
- slots: [
45
- "root",
46
- "body",
47
- "content"
48
- ],
49
- base: {
50
- root: {
51
- width: "full",
52
- borderWidth: "1px",
53
- borderRadius: "xs",
54
- overflow: "hidden"
55
- },
56
- body: {
57
- display: "flex",
58
- flexDirection: "column"
59
- },
60
- content: {
61
- color: "fg",
62
- overflowWrap: "anywhere",
63
- whiteSpace: "pre-wrap"
64
- }
65
- },
66
- variants: {
67
- tone: {
68
- default: { root: {
69
- background: "bg",
70
- borderColor: "border.subtle"
71
- } },
72
- attention: { root: {
73
- background: "bg.warning",
74
- borderColor: "border.warning"
75
- } }
76
- },
77
- size: {
78
- comfortable: {
79
- body: {
80
- gap: "sm",
81
- padding: "md"
82
- },
83
- content: { textStyle: "label/S/regular" }
84
- },
85
- compact: {
86
- body: {
87
- gap: "xs",
88
- padding: "sm"
89
- },
90
- content: { textStyle: "label/S/regular" }
91
- }
92
- }
93
- },
94
- defaultVariants: {
95
- tone: "default",
96
- size: "comfortable"
97
- }
98
- }), { withContext: M, withProvider: N } = f({ recipe: j }), P = () => {
99
- let e = m(1), t;
100
- return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ g(r, {
101
- as: "span",
102
- boxSize: "3px",
103
- borderRadius: "full",
104
- background: "fg.subtle",
105
- flexShrink: 0
106
- }), e[0] = t) : t = e[0], t;
107
- }, F = (e) => {
108
- let t = m(16), { actor: n, icon: i, iconColor: o, iconBackground: s, timestamp: c, actions: u } = e, d;
109
- t[0] !== n || t[1] !== i || t[2] !== s || t[3] !== o ? (d = /* @__PURE__ */ g(A, {
110
- actor: n,
111
- icon: i,
112
- color: o,
113
- background: s
114
- }), t[0] = n, t[1] = i, t[2] = s, t[3] = o, t[4] = d) : d = t[4];
115
- let f;
116
- t[5] === n.name ? f = t[6] : (f = /* @__PURE__ */ g(l, {
117
- textStyle: "label/S/medium",
118
- color: "fg",
119
- truncate: !0,
120
- children: n.name
121
- }), t[5] = n.name, t[6] = f);
122
- let p;
123
- t[7] === c ? p = t[8] : (p = c ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(P, {}), /* @__PURE__ */ g(l, {
124
- textStyle: "label/S/regular",
125
- color: "fg.muted",
126
- flexShrink: 0,
127
- children: c
128
- })] }) : null, t[7] = c, t[8] = p);
129
- let v;
130
- t[9] === u ? v = t[10] : (v = /* @__PURE__ */ g(r, {
131
- marginLeft: "auto",
132
- flexShrink: 0,
133
- children: u
134
- }), t[9] = u, t[10] = v);
135
- let y;
136
- return t[11] !== d || t[12] !== f || t[13] !== p || t[14] !== v ? (y = /* @__PURE__ */ _(a, {
137
- gap: "xs",
138
- alignItems: "center",
139
- minW: "0",
140
- children: [
141
- d,
142
- f,
143
- p,
144
- v
145
- ]
146
- }), t[11] = d, t[12] = f, t[13] = p, t[14] = v, t[15] = y) : y = t[15], y;
147
- }, I = N("article", "root"), L = M("div", "body"), R = M("div", "content"), z = (e) => {
148
- let t = m(18), n, i, a, o, c;
149
- t[0] === e ? (n = t[1], i = t[2], a = t[3], o = t[4], c = t[5]) : ({actor: i, timestamp: c, actions: n, children: a, ...o} = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a, t[4] = o, t[5] = c);
150
- let u;
151
- t[6] !== n || t[7] !== i || t[8] !== c ? (u = /* @__PURE__ */ g(F, {
152
- actor: i,
153
- timestamp: c,
154
- actions: n
155
- }), t[6] = n, t[7] = i, t[8] = c, t[9] = u) : u = t[9];
156
- let d;
157
- t[10] === a ? d = t[11] : (d = /* @__PURE__ */ g(r, {
158
- paddingLeft: "32px",
159
- children: /* @__PURE__ */ g(l, {
160
- as: "div",
161
- textStyle: "label/S/regular",
162
- color: "fg",
163
- overflowWrap: "anywhere",
164
- children: a
165
- })
166
- }), t[10] = a, t[11] = d);
167
- let f;
168
- t[12] !== u || t[13] !== d ? (f = /* @__PURE__ */ _(s, {
169
- gap: "xs",
170
- children: [u, d]
171
- }), t[12] = u, t[13] = d, t[14] = f) : f = t[14];
172
- let p;
173
- return t[15] !== o || t[16] !== f ? (p = /* @__PURE__ */ g(r, {
174
- paddingX: "md",
175
- paddingY: "sm",
176
- ...o,
177
- children: f
178
- }), t[15] = o, t[16] = f, t[17] = p) : p = t[17], p;
179
- }, B = (e) => {
180
- let t = m(33), n, i, a, o, s, c, l, u, d, f;
181
- t[0] === e ? (n = t[1], i = t[2], a = t[3], o = t[4], s = t[5], c = t[6], l = t[7], u = t[8], d = t[9], f = t[10]) : ({actor: i, icon: s, iconColor: l, iconBackground: c, timestamp: f, actions: n, replies: u, composer: o, children: a, ...d} = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a, t[4] = o, t[5] = s, t[6] = c, t[7] = l, t[8] = u, t[9] = d, t[10] = f);
182
- let p = y.count(u) > 0, h;
183
- t[11] !== n || t[12] !== i || t[13] !== s || t[14] !== c || t[15] !== l || t[16] !== f ? (h = /* @__PURE__ */ g(F, {
184
- actor: i,
185
- icon: s,
186
- iconColor: l,
187
- iconBackground: c,
188
- timestamp: f,
189
- actions: n
190
- }), t[11] = n, t[12] = i, t[13] = s, t[14] = c, t[15] = l, t[16] = f, t[17] = h) : h = t[17];
191
- let v;
192
- t[18] === a ? v = t[19] : (v = /* @__PURE__ */ g(R, { children: a }), t[18] = a, t[19] = v);
193
- let b;
194
- t[20] !== h || t[21] !== v ? (b = /* @__PURE__ */ _(L, { children: [h, v] }), t[20] = h, t[21] = v, t[22] = b) : b = t[22];
195
- let x;
196
- t[23] !== p || t[24] !== u ? (x = p ? /* @__PURE__ */ g(r, {
197
- borderTopWidth: "1px",
198
- borderColor: "border.subtle",
199
- children: u
200
- }) : null, t[23] = p, t[24] = u, t[25] = x) : x = t[25];
201
- let S;
202
- t[26] === o ? S = t[27] : (S = o ? /* @__PURE__ */ g(r, {
203
- borderTopWidth: "1px",
204
- borderColor: "border.subtle",
205
- children: o
206
- }) : null, t[26] = o, t[27] = S);
207
- let C;
208
- return t[28] !== d || t[29] !== b || t[30] !== x || t[31] !== S ? (C = /* @__PURE__ */ _(I, {
209
- ...d,
210
- children: [
211
- b,
212
- x,
213
- S
214
- ]
215
- }), t[28] = d, t[29] = b, t[30] = x, t[31] = S, t[32] = C) : C = t[32], C;
216
- }, V = () => {
217
- let e = m(1), t;
218
- return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ g(r, {
219
- as: "span",
220
- boxSize: "3px",
221
- borderRadius: "full",
222
- background: "fg.subtle",
223
- flexShrink: 0
224
- }), e[0] = t) : t = e[0], t;
225
- }, H = (e) => {
226
- let t = m(28), n, i, a, o, s, c, d;
227
- t[0] === e ? (n = t[1], i = t[2], a = t[3], o = t[4], s = t[5], c = t[6], d = t[7]) : ({actor: n, icon: a, iconColor: s, iconBackground: c, timestamp: d, children: i, ...o} = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a, t[4] = o, t[5] = s, t[6] = c, t[7] = d);
228
- let f = s === void 0 ? "fg" : s, p = c === void 0 ? "transparent" : c, v;
229
- t[8] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ g(u.Separator, { borderColor: "border" }), t[8] = v) : v = t[8];
230
- let y;
231
- t[9] !== n || t[10] !== a || t[11] !== p || t[12] !== f ? (y = /* @__PURE__ */ _(u.Connector, { children: [v, /* @__PURE__ */ g(u.Indicator, {
232
- outline: "none",
233
- border: "none",
234
- background: "bg",
235
- children: /* @__PURE__ */ g(A, {
236
- actor: n,
237
- icon: a,
238
- color: f,
239
- background: p
240
- })
241
- })] }), t[9] = n, t[10] = a, t[11] = p, t[12] = f, t[13] = y) : y = t[13];
242
- let b;
243
- t[14] === n ? b = t[15] : (b = n ? /* @__PURE__ */ g(l, {
244
- as: "span",
245
- color: "fg",
246
- fontWeight: "500",
247
- flexShrink: 0,
248
- children: n.name
249
- }) : null, t[14] = n, t[15] = b);
250
- let x;
251
- t[16] === i ? x = t[17] : (x = /* @__PURE__ */ g(r, {
252
- as: "span",
253
- display: "inline-flex",
254
- alignItems: "center",
255
- gap: "2xs",
256
- minW: "0",
257
- flexWrap: "wrap",
258
- children: i
259
- }), t[16] = i, t[17] = x);
260
- let S;
261
- t[18] === d ? S = t[19] : (S = d ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(V, {}), /* @__PURE__ */ g(l, {
262
- as: "span",
263
- color: "fg.muted",
264
- flexShrink: 0,
265
- children: d
266
- })] }) : null, t[18] = d, t[19] = S);
267
- let C;
268
- t[20] !== b || t[21] !== x || t[22] !== S ? (C = /* @__PURE__ */ g(u.Content, {
269
- gap: "0",
270
- minW: "0",
271
- children: /* @__PURE__ */ _(u.Title, {
272
- marginTop: "0",
273
- gap: "xs",
274
- minW: "0",
275
- fontWeight: "normal",
276
- textStyle: "label/S/regular",
277
- color: "fg.muted",
278
- children: [
279
- b,
280
- x,
281
- S
282
- ]
283
- })
284
- }), t[20] = b, t[21] = x, t[22] = S, t[23] = C) : C = t[23];
285
- let w;
286
- return t[24] !== o || t[25] !== y || t[26] !== C ? (w = /* @__PURE__ */ _(u.Item, {
287
- gap: "xs",
288
- minH: "24px",
289
- paddingX: "md",
290
- ...o,
291
- children: [y, C]
292
- }), t[24] = o, t[25] = y, t[26] = C, t[27] = w) : w = t[27], w;
293
- }, U = (e) => {
294
- let t = m(6), n, r;
295
- t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
296
- let i;
297
- return t[3] !== n || t[4] !== r ? (i = /* @__PURE__ */ g(s, {
298
- width: "full",
299
- gap: "md",
300
- ...r,
301
- children: n
302
- }), t[3] = n, t[4] = r, t[5] = i) : i = t[5], i;
303
- }, W = (e) => {
304
- let t = m(12), n, r, i;
305
- t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({title: i, actions: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
306
- let o = i === void 0 ? "Activity" : i, s;
307
- t[4] === o ? s = t[5] : (s = /* @__PURE__ */ g(l, {
308
- textStyle: "label/M/medium",
309
- color: "fg",
310
- children: o
311
- }), t[4] = o, t[5] = s);
312
- let c;
313
- t[6] === n ? c = t[7] : (c = n ? /* @__PURE__ */ g(a, {
314
- gap: "xs",
315
- children: n
316
- }) : null, t[6] = n, t[7] = c);
317
- let u;
318
- return t[8] !== r || t[9] !== s || t[10] !== c ? (u = /* @__PURE__ */ _(a, {
319
- alignItems: "center",
320
- justifyContent: "space-between",
321
- gap: "md",
322
- ...r,
323
- children: [s, c]
324
- }), t[8] = r, t[9] = s, t[10] = c, t[11] = u) : u = t[11], u;
325
- }, G = (e) => {
326
- let t = m(6), n, r;
327
- t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
328
- let i;
329
- return t[3] !== n || t[4] !== r ? (i = /* @__PURE__ */ g(s, {
330
- gap: "md",
331
- width: "full",
332
- ...r,
333
- children: n
334
- }), t[3] = n, t[4] = r, t[5] = i) : i = t[5], i;
335
- }, K = (e) => {
336
- let t = m(7), n, r;
337
- t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
338
- let i;
339
- t[3] === Symbol.for("react.memo_cache_sentinel") ? (i = { "--timeline-indicator-size": "18px" }, t[3] = i) : i = t[3];
340
- let a;
341
- return t[4] !== n || t[5] !== r ? (a = /* @__PURE__ */ g(u.Root, {
342
- size: "sm",
343
- variant: "plain",
344
- width: "full",
345
- css: i,
346
- ...r,
347
- children: n
348
- }), t[4] = n, t[5] = r, t[6] = a) : a = t[6], a;
349
- }, q = v.forwardRef(function(e, n) {
350
- let r = m(23), i, s, c, l, u, d, f;
351
- r[0] === e ? (i = r[1], s = r[2], c = r[3], l = r[4], u = r[5], d = r[6], f = r[7]) : ({title: f, children: i, icon: c, startElement: d, endElement: s, onClose: l, ...u} = e, r[0] = e, r[1] = i, r[2] = s, r[3] = c, r[4] = l, r[5] = u, r[6] = d, r[7] = f);
352
- let p;
353
- r[8] !== c || r[9] !== d ? (p = d || /* @__PURE__ */ g(t.Indicator, { children: c }), r[8] = c, r[9] = d, r[10] = p) : p = r[10];
354
- let h;
355
- r[11] !== i || r[12] !== f ? (h = i ? /* @__PURE__ */ _(t.Content, { children: [/* @__PURE__ */ g(t.Title, { children: f }), /* @__PURE__ */ g(t.Description, { children: i })] }) : /* @__PURE__ */ g(t.Title, {
356
- flex: "1",
357
- children: f
358
- }), r[11] = i, r[12] = f, r[13] = h) : h = r[13];
359
- let v;
360
- r[14] !== s || r[15] !== l ? (v = s || l ? /* @__PURE__ */ _(a, {
361
- gap: "2xs",
362
- alignSelf: "center",
363
- children: [s, l ? /* @__PURE__ */ g(o, {
364
- "aria-label": "Dismiss",
365
- size: "2xs",
366
- variant: "ghost",
367
- onClick: l,
368
- children: /* @__PURE__ */ g(k, {})
369
- }) : null]
370
- }) : null, r[14] = s, r[15] = l, r[16] = v) : v = r[16];
371
- let y;
372
- return r[17] !== n || r[18] !== u || r[19] !== p || r[20] !== h || r[21] !== v ? (y = /* @__PURE__ */ _(t.Root, {
373
- ref: n,
374
- px: "xs",
375
- py: "2xs",
376
- gap: "2xs",
377
- minH: "auto",
378
- ...u,
379
- children: [
380
- p,
381
- h,
382
- v
383
- ]
384
- }), r[17] = n, r[18] = u, r[19] = p, r[20] = h, r[21] = v, r[22] = y) : y = r[22], y;
385
- }), J = v.forwardRef(function(e, t) {
386
- let n = m(33), r, a, o, s, c, l, u;
387
- n[0] === e ? (r = n[1], a = n[2], o = n[3], s = n[4], c = n[5], l = n[6], u = n[7]) : ({icon: a, children: r, inputProps: o, rootRef: c, disabled: l, readOnly: u, ...s} = e, n[0] = e, n[1] = r, n[2] = a, n[3] = o, n[4] = s, n[5] = c, n[6] = l, n[7] = u);
388
- let d = l !== void 0 && l, f = u !== void 0 && u, p = d ? "not-allowed" : f ? "default" : "pointer", h;
389
- n[8] !== o || n[9] !== t ? (h = /* @__PURE__ */ g(i.HiddenInput, {
390
- ref: t,
391
- ...o
392
- }), n[8] = o, n[9] = t, n[10] = h) : h = n[10];
393
- let v, y, b;
394
- n[11] === Symbol.for("react.memo_cache_sentinel") ? (v = { borderColor: "border.accent-light" }, y = { borderColor: "border.accent-light" }, b = {
395
- borderColor: "border.accent-light",
396
- outline: "none",
397
- boxShadow: "none"
398
- }, n[11] = v, n[12] = y, n[13] = b) : (v = n[11], y = n[12], b = n[13]);
399
- let x;
400
- n[14] === Symbol.for("react.memo_cache_sentinel") ? (x = {
401
- bg: "bg.button.primary.default",
402
- borderColor: "bg.button.primary.default",
403
- color: "fg.button.primary.default",
404
- _hover: { borderColor: "bg.button.primary.default" },
405
- _active: { borderColor: "bg.button.primary.default" }
406
- }, n[14] = x) : x = n[14];
407
- let S;
408
- n[15] === Symbol.for("react.memo_cache_sentinel") ? (S = {
409
- bg: "bg.button.primary.default",
410
- borderColor: "bg.button.primary.default",
411
- color: "fg.button.primary.default",
412
- _hover: { borderColor: "bg.button.primary.default" },
413
- _active: { borderColor: "bg.button.primary.default" }
414
- }, n[15] = S) : S = n[15];
415
- let C;
416
- n[16] === a ? C = n[17] : (C = a ? /* @__PURE__ */ g(i.Indicator, { children: a }) : /* @__PURE__ */ g(i.Indicator, {}), n[16] = a, n[17] = C);
417
- let w;
418
- n[18] !== p || n[19] !== C ? (w = /* @__PURE__ */ g(i.Control, {
419
- bg: "bg",
420
- borderColor: "border",
421
- borderRadius: "xs",
422
- color: "fg.button.primary.default",
423
- cursor: p,
424
- transition: "border-color 0.2s ease-in-out",
425
- boxShadow: "none",
426
- _hover: v,
427
- _active: y,
428
- _focusVisible: b,
429
- _checked: x,
430
- _indeterminate: S,
431
- children: C
432
- }), n[18] = p, n[19] = C, n[20] = w) : w = n[20];
433
- let T;
434
- n[21] !== r || n[22] !== p ? (T = r != null && /* @__PURE__ */ g(i.Label, {
435
- cursor: p,
436
- children: r
437
- }), n[21] = r, n[22] = p, n[23] = T) : T = n[23];
438
- let E;
439
- return n[24] !== d || n[25] !== p || n[26] !== f || n[27] !== s || n[28] !== c || n[29] !== T || n[30] !== h || n[31] !== w ? (E = /* @__PURE__ */ _(i.Root, {
440
- ref: c,
441
- disabled: d,
442
- readOnly: f,
443
- cursor: p,
444
- ...s,
445
- children: [
446
- h,
447
- w,
448
- T
449
- ]
450
- }), n[24] = d, n[25] = p, n[26] = f, n[27] = s, n[28] = c, n[29] = T, n[30] = h, n[31] = w, n[32] = E) : E = n[32], E;
451
- }), Y = (e) => {
452
- let t = e.split(".").pop()?.toLowerCase() ?? "";
453
- return [
454
- "csv",
455
- "tsv",
456
- "xlsx",
457
- "xls",
458
- "parquet"
459
- ].includes(t) ? D : [
460
- "sql",
461
- "py",
462
- "js",
463
- "ts",
464
- "jsx",
465
- "tsx",
466
- "java",
467
- "cpp",
468
- "c",
469
- "h",
470
- "css",
471
- "scss",
472
- "sass",
473
- "php",
474
- "rb",
475
- "go",
476
- "rs",
477
- "kt",
478
- "swift"
479
- ].includes(t) ? C : [
480
- "json",
481
- "jsonl",
482
- "ndjson"
483
- ].includes(t) ? e.includes("/visualizations/") ? S : E : [
484
- "md",
485
- "txt",
486
- "rst",
487
- "org",
488
- "pdf",
489
- "doc",
490
- "docx",
491
- "rtf"
492
- ].includes(t) ? O : [
493
- "yaml",
494
- "yml",
495
- "toml",
496
- "ini",
497
- "conf",
498
- "config"
499
- ].includes(t) ? w : [
500
- "png",
501
- "jpg",
502
- "jpeg",
503
- "gif",
504
- "svg",
505
- "webp",
506
- "ico"
507
- ].includes(t) ? T : [
508
- "zip",
509
- "tar",
510
- "gz",
511
- "rar",
512
- "7z"
513
- ].includes(t) ? x : b;
514
- }, X = {
515
- sm: {
516
- container: {
517
- height: "5",
518
- lineHeight: { base: "5" },
519
- px: "xs"
520
- },
521
- iconSize: 12,
522
- textStyle: "label/XS"
523
- },
524
- md: {
525
- container: {
526
- height: "6",
527
- lineHeight: { base: "6" },
528
- px: "xs"
529
- },
530
- iconSize: 14,
531
- textStyle: "label/S/regular"
532
- }
533
- }, Z = {
534
- neutral: {
535
- color: "fg",
536
- bg: "bg.subtle",
537
- borderColor: "border",
538
- _hover: { bg: "bg.hover" }
539
- },
540
- accent: {
541
- color: "var(--schub-foreground-accent)",
542
- bg: "var(--schub-accent-subtle)",
543
- borderColor: "var(--schub-accent-subtle)",
544
- _hover: { bg: "var(--schub-accent-subtle)" }
545
- }
546
- }, Q = "md", $ = "neutral", ee = (t) => {
547
- let n = m(38), r, i, a, s, c, u, f;
548
- n[0] === t ? (r = n[1], i = n[2], a = n[3], s = n[4], c = n[5], u = n[6], f = n[7]) : ({fileName: r, onSelect: s, onRemove: a, size: u, tone: f, icon: i, ...c} = t, n[0] = t, n[1] = r, n[2] = i, n[3] = a, n[4] = s, n[5] = c, n[6] = u, n[7] = f);
549
- let p = u === void 0 ? Q : u, h = f === void 0 ? $ : f, v;
550
- n[8] === r ? v = n[9] : (v = Y(r), n[8] = r, n[9] = v);
551
- let y = v, b = X[p], x = Z[h], S = s ? "pointer" : "default", C;
552
- n[10] !== r || n[11] !== s ? (C = (e) => {
553
- e.stopPropagation(), s?.(r);
554
- }, n[10] = r, n[11] = s, n[12] = C) : C = n[12];
555
- let w;
556
- n[13] !== y || n[14] !== i || n[15] !== b.iconSize ? (w = i ?? /* @__PURE__ */ g(y, { size: b.iconSize }), n[13] = y, n[14] = i, n[15] = b.iconSize, n[16] = w) : w = n[16];
557
- let T;
558
- n[17] === w ? T = n[18] : (T = /* @__PURE__ */ g(d.span, {
559
- display: "inline-flex",
560
- flexShrink: 0,
561
- children: w
562
- }), n[17] = w, n[18] = T);
563
- let E;
564
- n[19] === Symbol.for("react.memo_cache_sentinel") ? (E = { base: "14rem" }, n[19] = E) : E = n[19];
565
- let D;
566
- n[20] !== r || n[21] !== b.textStyle ? (D = /* @__PURE__ */ g(l, {
567
- maxW: E,
568
- textOverflow: "ellipsis",
569
- whiteSpace: "nowrap",
570
- overflow: "hidden",
571
- textStyle: b.textStyle,
572
- children: r
573
- }), n[20] = r, n[21] = b.textStyle, n[22] = D) : D = n[22];
574
- let O;
575
- n[23] !== r || n[24] !== D ? (O = /* @__PURE__ */ g(e, {
576
- content: r,
577
- children: D
578
- }), n[23] = r, n[24] = D, n[25] = O) : O = n[25];
579
- let A;
580
- n[26] !== r || n[27] !== a ? (A = a && /* @__PURE__ */ g(o, {
581
- "aria-label": `Remove ${r}`,
582
- size: "2xs",
583
- variant: "ghost",
584
- _hover: { bg: "transparent" },
585
- onClick: (e) => {
586
- e.stopPropagation(), a?.(r);
587
- },
588
- children: /* @__PURE__ */ g(k, { size: 12 })
589
- }), n[26] = r, n[27] = a, n[28] = A) : A = n[28];
590
- let j;
591
- return n[29] !== c || n[30] !== b.container || n[31] !== A || n[32] !== S || n[33] !== C || n[34] !== T || n[35] !== O || n[36] !== x ? (j = /* @__PURE__ */ _(d.span, {
592
- display: "flex",
593
- flexDirection: "row",
594
- alignItems: "center",
595
- borderWidth: "1px",
596
- borderRadius: "xs",
597
- gap: "2xs",
598
- cursor: S,
599
- ...x,
600
- ...b.container,
601
- onClick: C,
602
- ...c,
603
- children: [
604
- T,
605
- O,
606
- A
607
- ]
608
- }), n[29] = c, n[30] = b.container, n[31] = A, n[32] = S, n[33] = C, n[34] = T, n[35] = O, n[36] = x, n[37] = j) : j = n[37], j;
609
- }, te = v.forwardRef(function(e, t) {
610
- let n = m(32), r, i, a, o, s, l, u;
611
- n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5], l = n[6], u = n[7]) : ({inputProps: i, children: r, rootRef: o, trackLabel: u, thumbLabel: l, disabled: s, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = s, n[6] = l, n[7] = u);
612
- let d = s !== void 0 && s, f = d ? "not-allowed" : "pointer", p;
613
- n[8] !== i || n[9] !== t ? (p = /* @__PURE__ */ g(c.HiddenInput, {
614
- ref: t,
615
- ...i
616
- }), n[8] = i, n[9] = t, n[10] = p) : p = n[10];
617
- let h;
618
- n[11] === l ? h = n[12] : (h = l && /* @__PURE__ */ g(c.ThumbIndicator, {
619
- fallback: l?.off,
620
- children: l?.on
621
- }), n[11] = l, n[12] = h);
622
- let v;
623
- n[13] === h ? v = n[14] : (v = /* @__PURE__ */ g(c.Thumb, { children: h }), n[13] = h, n[14] = v);
624
- let y;
625
- n[15] === u ? y = n[16] : (y = u && /* @__PURE__ */ g(c.Indicator, {
626
- fallback: u.off,
627
- children: u.on
628
- }), n[15] = u, n[16] = y);
629
- let b;
630
- n[17] !== f || n[18] !== v || n[19] !== y ? (b = /* @__PURE__ */ _(c.Control, {
631
- cursor: f,
632
- children: [v, y]
633
- }), n[17] = f, n[18] = v, n[19] = y, n[20] = b) : b = n[20];
634
- let x;
635
- n[21] !== r || n[22] !== f ? (x = r != null && /* @__PURE__ */ g(c.Label, {
636
- cursor: f,
637
- children: r
638
- }), n[21] = r, n[22] = f, n[23] = x) : x = n[23];
639
- let S;
640
- return n[24] !== d || n[25] !== f || n[26] !== a || n[27] !== o || n[28] !== p || n[29] !== b || n[30] !== x ? (S = /* @__PURE__ */ _(c.Root, {
641
- ref: o,
642
- disabled: d,
643
- cursor: f,
644
- ...a,
645
- children: [
646
- p,
647
- b,
648
- x
649
- ]
650
- }), n[24] = d, n[25] = f, n[26] = a, n[27] = o, n[28] = p, n[29] = b, n[30] = x, n[31] = S) : S = n[31], S;
651
- }), ne = (e) => e.default ?? e, re = async () => {
652
- let e = globalThis;
653
- e.Prism ||= ne(await import("prismjs"));
654
- };
655
- //#endregion
656
- export { J as a, G as c, H as d, B as f, Y as i, W as l, A as m, te as n, q as o, z as p, ee as r, K as s, re as t, U as u };
657
-
658
- //# sourceMappingURL=prism-BStPsJSB.js.map