@arcadeai/design-system 3.35.2 → 3.36.2

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 (97) hide show
  1. package/dist/assets/icons/claude-code-logotype.js +10 -0
  2. package/dist/assets/icons/cursor-logotype.js +10 -0
  3. package/dist/assets/icons/langchain-logotype.js +10 -0
  4. package/dist/assets/icons/mastra-logotype.js +10 -0
  5. package/dist/assets/icons/vercel-logotype.js +10 -0
  6. package/dist/components/index.js +631 -600
  7. package/dist/components/ui/atoms/arcade-gradient.d.ts +4 -0
  8. package/dist/components/ui/atoms/arcade-gradient.d.ts.map +1 -0
  9. package/dist/components/ui/atoms/arcade-gradient.js +26 -0
  10. package/dist/components/ui/atoms/brand-chip.d.ts +9 -0
  11. package/dist/components/ui/atoms/brand-chip.d.ts.map +1 -0
  12. package/dist/components/ui/atoms/brand-chip.js +19 -0
  13. package/dist/components/ui/atoms/code-block.d.ts.map +1 -1
  14. package/dist/components/ui/atoms/code-block.js +31 -723
  15. package/dist/components/ui/atoms/icons/claude-code-logotype.d.ts +4 -0
  16. package/dist/components/ui/atoms/icons/claude-code-logotype.d.ts.map +1 -0
  17. package/dist/components/ui/atoms/icons/claude-code-logotype.js +34 -0
  18. package/dist/components/ui/atoms/icons/cursor-logotype.d.ts +4 -0
  19. package/dist/components/ui/atoms/icons/cursor-logotype.d.ts.map +1 -0
  20. package/dist/components/ui/atoms/icons/cursor-logotype.js +21 -0
  21. package/dist/components/ui/atoms/icons/index.d.ts +5 -0
  22. package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
  23. package/dist/components/ui/atoms/icons/index.js +278 -268
  24. package/dist/components/ui/atoms/icons/langchain-logotype.d.ts +4 -0
  25. package/dist/components/ui/atoms/icons/langchain-logotype.d.ts.map +1 -0
  26. package/dist/components/ui/atoms/icons/langchain-logotype.js +45 -0
  27. package/dist/components/ui/atoms/icons/mastra-logotype.d.ts +4 -0
  28. package/dist/components/ui/atoms/icons/mastra-logotype.d.ts.map +1 -0
  29. package/dist/components/ui/atoms/icons/mastra-logotype.js +19 -0
  30. package/dist/components/ui/atoms/icons/vercel-logotype.d.ts +4 -0
  31. package/dist/components/ui/atoms/icons/vercel-logotype.d.ts.map +1 -0
  32. package/dist/components/ui/atoms/icons/vercel-logotype.js +26 -0
  33. package/dist/components/ui/atoms/icons/vercel.d.ts.map +1 -1
  34. package/dist/components/ui/atoms/icons/vercel.js +0 -1
  35. package/dist/components/ui/atoms/index.d.ts +2 -0
  36. package/dist/components/ui/atoms/index.d.ts.map +1 -1
  37. package/dist/components/ui/atoms/index.js +530 -516
  38. package/dist/components/ui/atoms/virtualized-grid.d.ts.map +1 -1
  39. package/dist/components/ui/atoms/virtualized-grid.js +16 -16
  40. package/dist/components/ui/index.js +631 -600
  41. package/dist/components/ui/molecules/chat-history-item.d.ts +21 -0
  42. package/dist/components/ui/molecules/chat-history-item.d.ts.map +1 -0
  43. package/dist/components/ui/molecules/chat-history-item.js +88 -0
  44. package/dist/components/ui/molecules/chat-message-list.d.ts +6 -0
  45. package/dist/components/ui/molecules/chat-message-list.d.ts.map +1 -1
  46. package/dist/components/ui/molecules/chat-message-list.js +117 -61
  47. package/dist/components/ui/molecules/command-bar.d.ts +7 -0
  48. package/dist/components/ui/molecules/command-bar.d.ts.map +1 -0
  49. package/dist/components/ui/molecules/command-bar.js +38 -0
  50. package/dist/components/ui/molecules/confirm-popover.d.ts +20 -0
  51. package/dist/components/ui/molecules/confirm-popover.d.ts.map +1 -0
  52. package/dist/components/ui/molecules/confirm-popover.js +50 -0
  53. package/dist/components/ui/molecules/empty-state.d.ts +2 -1
  54. package/dist/components/ui/molecules/empty-state.d.ts.map +1 -1
  55. package/dist/components/ui/molecules/empty-state.js +9 -7
  56. package/dist/components/ui/molecules/error-state.d.ts +17 -0
  57. package/dist/components/ui/molecules/error-state.d.ts.map +1 -0
  58. package/dist/components/ui/molecules/error-state.js +45 -0
  59. package/dist/components/ui/molecules/index.d.ts +9 -4
  60. package/dist/components/ui/molecules/index.d.ts.map +1 -1
  61. package/dist/components/ui/molecules/index.js +51 -49
  62. package/dist/components/ui/molecules/requirement-badges.js +4 -5
  63. package/dist/components/ui/molecules/toolkit-card.js +1 -1
  64. package/dist/components/ui/pages/chat-page-skeleton.d.ts +7 -0
  65. package/dist/components/ui/pages/chat-page-skeleton.d.ts.map +1 -0
  66. package/dist/components/ui/pages/chat-page-skeleton.js +18 -0
  67. package/dist/components/ui/pages/index.d.ts +2 -2
  68. package/dist/components/ui/pages/index.d.ts.map +1 -1
  69. package/dist/components/ui/pages/index.js +4 -4
  70. package/dist/components/ui/templates/chat-template-skeletons.d.ts +12 -0
  71. package/dist/components/ui/templates/chat-template-skeletons.d.ts.map +1 -0
  72. package/dist/components/ui/templates/chat-template-skeletons.js +127 -0
  73. package/dist/components/ui/templates/error-template.d.ts +20 -0
  74. package/dist/components/ui/templates/error-template.d.ts.map +1 -0
  75. package/dist/components/ui/templates/error-template.js +117 -0
  76. package/dist/components/ui/templates/index.d.ts +4 -0
  77. package/dist/components/ui/templates/index.d.ts.map +1 -1
  78. package/dist/components/ui/templates/index.js +37 -22
  79. package/dist/hooks/use-mobile.d.ts.map +1 -1
  80. package/dist/hooks/use-mobile.js +12 -11
  81. package/dist/lib/shiki-themes.d.ts +5 -0
  82. package/dist/lib/shiki-themes.d.ts.map +1 -0
  83. package/dist/lib/shiki-themes.js +7 -0
  84. package/dist/main.js +656 -625
  85. package/dist/metadata/toolkit-icons.d.ts.map +1 -1
  86. package/dist/metadata/toolkit-icons.js +187 -186
  87. package/dist/metadata/toolkits.d.ts.map +1 -1
  88. package/dist/metadata/toolkits.js +13 -0
  89. package/dist/{toolkit-card-B97E7TBA.js → toolkit-card-CB1oiaei.js} +2 -3
  90. package/dist/web-BwFNdl01.js +697 -0
  91. package/package.json +3 -2
  92. package/dist/components/ui/molecules/switcher.d.ts +0 -83
  93. package/dist/components/ui/molecules/switcher.d.ts.map +0 -1
  94. package/dist/components/ui/molecules/switcher.js +0 -164
  95. package/dist/components/ui/pages/chat-page.d.ts +0 -83
  96. package/dist/components/ui/pages/chat-page.d.ts.map +0 -1
  97. package/dist/components/ui/pages/chat-page.js +0 -385
@@ -1,760 +1,68 @@
1
- import { jsxs as q, jsx as m, Fragment as W } from "react/jsx-runtime";
2
- import { forwardRef as X, useState as $, useMemo as A, useRef as E, useEffect as F } from "react";
3
- import { c as B } from "../../../bundle-mjs-lrpnyDSX.js";
4
- import { t as Q, c as Y, g as K, a as Z, b as ee, d as I } from "../../../index-cd1ceFJg.js";
5
- import { cn as z } from "../../../lib/utils.js";
6
- var R = Object.prototype.hasOwnProperty;
7
- function D(e, t, i) {
8
- for (i of e.keys())
9
- if (h(i, t)) return i;
10
- }
11
- function h(e, t) {
12
- var i, n, r;
13
- if (e === t) return !0;
14
- if (e && t && (i = e.constructor) === t.constructor) {
15
- if (i === Date) return e.getTime() === t.getTime();
16
- if (i === RegExp) return e.toString() === t.toString();
17
- if (i === Array) {
18
- if ((n = e.length) === t.length)
19
- for (; n-- && h(e[n], t[n]); ) ;
20
- return n === -1;
21
- }
22
- if (i === Set) {
23
- if (e.size !== t.size)
24
- return !1;
25
- for (n of e)
26
- if (r = n, r && typeof r == "object" && (r = D(t, r), !r) || !t.has(r)) return !1;
27
- return !0;
28
- }
29
- if (i === Map) {
30
- if (e.size !== t.size)
31
- return !1;
32
- for (n of e)
33
- if (r = n[0], r && typeof r == "object" && (r = D(t, r), !r) || !h(n[1], t.get(r)))
34
- return !1;
35
- return !0;
36
- }
37
- if (i === ArrayBuffer)
38
- e = new Uint8Array(e), t = new Uint8Array(t);
39
- else if (i === DataView) {
40
- if ((n = e.byteLength) === t.byteLength)
41
- for (; n-- && e.getInt8(n) === t.getInt8(n); ) ;
42
- return n === -1;
43
- }
44
- if (ArrayBuffer.isView(e)) {
45
- if ((n = e.byteLength) === t.byteLength)
46
- for (; n-- && e[n] === t[n]; ) ;
47
- return n === -1;
48
- }
49
- if (!i || typeof e == "object") {
50
- n = 0;
51
- for (i in e)
52
- if (R.call(e, i) && ++n && !R.call(t, i) || !(i in t) || !h(e[i], t[i])) return !1;
53
- return Object.keys(t).length === n;
54
- }
55
- }
56
- return e !== e && t !== t;
57
- }
58
- var N = (e) => {
59
- const t = E(e), i = E(0);
60
- return typeof e != "object" || e === null ? (e !== t.current && (t.current = e, i.current += 1), [e, i.current]) : (e !== t.current && (h(e, t.current) || (t.current = e, i.current += 1)), [t.current, i.current]);
61
- }, te = (e, t, i) => {
62
- const n = Date.now();
63
- clearTimeout(t.current.timeoutId);
64
- const r = Math.max(0, t.current.nextAllowedTime - n);
65
- t.current.timeoutId = setTimeout(() => {
66
- e().catch(console.error), t.current.nextAllowedTime = n + i;
67
- }, r);
68
- }, G = (e, t, i) => {
69
- const n = t ? Array.isArray(t) ? t : [t] : [];
70
- if (e == null || typeof e == "string" && !e.trim())
71
- return {
72
- languageId: "plaintext",
73
- displayLanguageId: "plaintext",
74
- langsToLoad: void 0
75
- };
76
- if (typeof e == "object")
77
- return {
78
- languageId: e.name,
79
- displayLanguageId: e.name || null,
80
- langsToLoad: e
81
- };
82
- const r = e.toLowerCase(), s = (a) => a?.toLowerCase() === r, d = n.find(
83
- (a) => s(a.name) || s(a.scopeName) || s(a.scopeName?.split(".").pop()) || a.aliases?.some(s) || a.fileTypes?.some(s)
84
- );
85
- return d ? {
86
- languageId: d.name || e,
87
- displayLanguageId: e,
88
- langsToLoad: d
89
- } : i?.[e] ? {
90
- languageId: i[e],
91
- displayLanguageId: e,
92
- langsToLoad: i[e]
93
- } : {
94
- languageId: e,
95
- displayLanguageId: e,
96
- langsToLoad: e
97
- };
98
- }, P = (e) => typeof e == "object" && e !== null && "tokenColors" in e && Array.isArray(e.tokenColors);
99
- function ie(e) {
100
- const t = P(e), i = typeof e == "object" && e !== null && !t, n = typeof e == "object" && e !== null && !t && Object.entries(e).some(
101
- ([r, s]) => r && s && r.trim() !== "" && s !== "" && (typeof s == "string" || P(s))
102
- );
103
- return i ? {
104
- isMultiTheme: !0,
105
- themeId: n ? `multi-${Object.values(e).map(
106
- (s) => (typeof s == "string" ? s : s?.name) || "custom"
107
- ).sort().join("-")}` : "multi-default",
108
- multiTheme: n ? e : null,
109
- themesToLoad: n ? Object.values(e) : []
110
- } : {
111
- isMultiTheme: !1,
112
- themeId: typeof e == "string" ? e : e?.name || "custom",
113
- singleTheme: e,
114
- themesToLoad: [e]
115
- };
116
- }
117
- function ne(e = 1) {
118
- return {
119
- name: "react-shiki:line-numbers",
120
- code(t) {
121
- if (this.addClassToHast(t, "has-line-numbers"), e !== 1) {
122
- const i = t.properties?.style || "", n = i ? `${i}; --line-start: ${e}` : `--line-start: ${e}`;
123
- t.properties = {
124
- ...t.properties,
125
- style: n
126
- };
127
- }
128
- },
129
- line(t) {
130
- return this.addClassToHast(t, "line-numbers"), t;
131
- }
132
- };
133
- }
134
- var V = {
135
- light: "github-light",
136
- dark: "github-dark"
137
- }, re = (e, t, i, n = {}, r) => {
138
- const [s, d] = $(null), [a, j] = N(t), [f, C] = N(i), [o, H] = N(n), { languageId: p, langsToLoad: y } = A(
139
- () => G(
140
- a,
141
- o.customLanguages,
142
- o.langAlias
143
- ),
144
- [a, o.customLanguages, o.langAlias]
145
- ), { isMultiTheme: k, themeId: M, multiTheme: b, singleTheme: O, themesToLoad: T } = A(() => ie(f), [f]), L = E({
146
- nextAllowedTime: 0,
147
- timeoutId: void 0
148
- }), c = A(() => {
149
- const l = { lang: p }, {
150
- defaultColor: u,
151
- cssVariablePrefix: S,
152
- showLineNumbers: g,
153
- startingLineNumber: J,
154
- ...v
155
- } = o, w = k ? {
156
- themes: b || V,
157
- defaultColor: u,
158
- cssVariablePrefix: S
159
- } : {
160
- theme: O || V.dark
161
- }, x = v.transformers || [];
162
- return g && x.push(ne(J)), {
163
- ...l,
164
- ...w,
165
- ...v,
166
- transformers: x
167
- };
168
- }, [p, M, j, C, H]);
169
- return F(() => {
170
- let l = !0;
171
- const u = async () => {
172
- if (!p) return;
173
- const g = o.highlighter ? o.highlighter : await r(
174
- y,
175
- T,
176
- o.engine
177
- ), v = g.getLoadedLanguages().includes(p) ? p : "plaintext", w = { ...c, lang: v };
178
- if (l) {
179
- const x = o.outputFormat === "html" ? g.codeToHtml(e, w) : Q(g.codeToHast(e, w), {
180
- jsx: m,
181
- jsxs: q,
182
- Fragment: W
183
- });
184
- d(x);
185
- }
186
- }, { delay: S } = o;
187
- return S ? te(u, L, S) : u().catch(console.error), () => {
188
- l = !1, clearTimeout(L.current.timeoutId);
189
- };
190
- }, [
191
- e,
192
- c,
193
- o.delay,
194
- o.highlighter,
195
- y,
196
- T
197
- ]), s;
198
- };
199
- function se(e, { insertAt: t } = {}) {
200
- if (typeof document > "u") return;
201
- const i = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
202
- n.type = "text/css", t === "top" && i.firstChild ? i.insertBefore(n, i.firstChild) : i.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
203
- }
204
- se(`.relative {
205
- position: relative;
206
- }
207
- .defaultStyles pre {
208
- overflow: auto;
209
- border-radius: 0.5rem;
210
- padding-left: 1.5rem;
211
- padding-right: 1.5rem;
212
- padding-top: 1.25rem;
213
- padding-bottom: 1.25rem;
214
- }
215
- .languageLabel {
216
- position: absolute;
217
- right: 0.75rem;
218
- top: 0.5rem;
219
- font-family: monospace;
220
- font-size: 0.75rem;
221
- letter-spacing: -0.05em;
222
- color: rgba(107, 114, 128, 0.85);
223
- }
224
- .line-numbers::before {
225
- counter-increment: line-number;
226
- content: counter(line-number);
227
- display: inline-flex;
228
- justify-content: flex-end;
229
- align-items: flex-start;
230
- box-sizing: content-box;
231
- min-width: var(--line-numbers-width, 2ch);
232
- padding-left: var(--line-numbers-padding-left, 2ch);
233
- padding-right: var(--line-numbers-padding-right, 2ch);
234
- color: var(--line-numbers-foreground, rgba(107, 114, 128, 0.6));
235
- font-size: var(--line-numbers-font-size, inherit);
236
- font-weight: var(--line-numbers-font-weight, inherit);
237
- line-height: var(--line-numbers-line-height, inherit);
238
- font-family: var(--line-numbers-font-family, inherit);
239
- opacity: var(--line-numbers-opacity, 1);
240
- user-select: none;
241
- pointer-events: none;
242
- }
243
- .has-line-numbers {
244
- counter-reset: line-number calc(var(--line-start, 1) - 1);
245
- --line-numbers-foreground: rgba(107, 114, 128, 0.5);
246
- --line-numbers-width: 2ch;
247
- --line-numbers-padding-left: 0ch;
248
- --line-numbers-padding-right: 2ch;
249
- --line-numbers-font-size: inherit;
250
- --line-numbers-font-weight: inherit;
251
- --line-numbers-line-height: inherit;
252
- --line-numbers-font-family: inherit;
253
- --line-numbers-opacity: 1;
254
- }
255
- `);
256
- var oe = (e) => X(
257
- ({
258
- language: t,
259
- theme: i,
260
- delay: n,
261
- transformers: r,
262
- defaultColor: s,
263
- cssVariablePrefix: d,
264
- addDefaultStyles: a = !0,
265
- style: j,
266
- langStyle: f,
267
- className: C,
268
- langClassName: o,
269
- showLanguage: H = !0,
270
- showLineNumbers: p = !1,
271
- startingLineNumber: y = 1,
272
- children: k,
273
- as: M = "pre",
274
- customLanguages: b,
275
- ...O
276
- }, T) => {
277
- const L = {
278
- delay: n,
279
- transformers: r,
280
- customLanguages: b,
281
- showLineNumbers: p,
282
- defaultColor: s,
283
- cssVariablePrefix: d,
284
- startingLineNumber: y,
285
- ...O
286
- }, { displayLanguageId: c } = G(
287
- t,
288
- b
289
- ), l = e(
290
- k,
291
- t,
292
- i,
293
- L
294
- ), u = typeof l == "string";
295
- return /* @__PURE__ */ q(
296
- M,
297
- {
298
- ref: T,
299
- "data-testid": "shiki-container",
300
- className: B(
301
- "relative",
302
- "not-prose",
303
- a && "defaultStyles",
304
- C
305
- ),
306
- style: j,
307
- id: "shiki-container",
308
- children: [
309
- H && c ? /* @__PURE__ */ m(
310
- "span",
311
- {
312
- className: B("languageLabel", o),
313
- style: f,
314
- id: "language-label",
315
- children: c
316
- }
317
- ) : null,
318
- u ? /* @__PURE__ */ m("div", { dangerouslySetInnerHTML: { __html: l } }) : l
319
- ]
320
- }
321
- );
322
- }
323
- );
324
- const U = [
325
- {
326
- id: "angular-html",
327
- name: "Angular HTML",
328
- import: (() => import("../../../angular-html-DPB4Rf0C.js").then((e) => e.f))
329
- },
330
- {
331
- id: "angular-ts",
332
- name: "Angular TypeScript",
333
- import: (() => import("../../../angular-ts-CTOR2ofC.js"))
334
- },
335
- {
336
- id: "astro",
337
- name: "Astro",
338
- import: (() => import("../../../astro-CFFExE8Q.js"))
339
- },
340
- {
341
- id: "blade",
342
- name: "Blade",
343
- import: (() => import("../../../blade-D0HyNvCw.js"))
344
- },
345
- {
346
- id: "c",
347
- name: "C",
348
- import: (() => import("../../../c-eeMepfLm.js"))
349
- },
350
- {
351
- id: "coffee",
352
- name: "CoffeeScript",
353
- aliases: [
354
- "coffeescript"
355
- ],
356
- import: (() => import("../../../coffee-DGBR_nr_.js"))
357
- },
358
- {
359
- id: "cpp",
360
- name: "C++",
361
- aliases: [
362
- "c++"
363
- ],
364
- import: (() => import("../../../cpp-Cj177cuW.js"))
365
- },
366
- {
367
- id: "css",
368
- name: "CSS",
369
- import: (() => import("../../../css-CECN5uSL.js"))
370
- },
371
- {
372
- id: "csv",
373
- name: "CSV",
374
- import: (() => import("../../../csv-CmYOceLb.js"))
375
- },
376
- {
377
- id: "glsl",
378
- name: "GLSL",
379
- import: (() => import("../../../glsl-CkUcVZNK.js"))
380
- },
381
- {
382
- id: "graphql",
383
- name: "GraphQL",
384
- aliases: [
385
- "gql"
386
- ],
387
- import: (() => import("../../../graphql-CBu2ehBn.js"))
388
- },
389
- {
390
- id: "haml",
391
- name: "Ruby Haml",
392
- import: (() => import("../../../haml-NZLVzu_R.js"))
393
- },
394
- {
395
- id: "handlebars",
396
- name: "Handlebars",
397
- aliases: [
398
- "hbs"
399
- ],
400
- import: (() => import("../../../handlebars-mxStpSE7.js"))
401
- },
402
- {
403
- id: "html",
404
- name: "HTML",
405
- import: (() => import("../../../html-B50bmoVb.js"))
406
- },
407
- {
408
- id: "html-derivative",
409
- name: "HTML (Derivative)",
410
- import: (() => import("../../../html-derivative-C6bxFbFW.js"))
411
- },
412
- {
413
- id: "http",
414
- name: "HTTP",
415
- import: (() => import("../../../http-DLvAkeD-.js"))
416
- },
417
- {
418
- id: "hurl",
419
- name: "Hurl",
420
- import: (() => import("../../../hurl-CgkFN90t.js"))
421
- },
422
- {
423
- id: "imba",
424
- name: "Imba",
425
- import: (() => import("../../../imba-CimUv-Uh.js"))
426
- },
427
- {
428
- id: "java",
429
- name: "Java",
430
- import: (() => import("../../../java-DY6VlHhP.js"))
431
- },
432
- {
433
- id: "javascript",
434
- name: "JavaScript",
435
- aliases: [
436
- "js",
437
- "cjs",
438
- "mjs"
439
- ],
440
- import: (() => import("../../../javascript-C25yR2R2.js"))
441
- },
442
- {
443
- id: "jinja",
444
- name: "Jinja",
445
- import: (() => import("../../../jinja-CFW5uAwY.js"))
446
- },
447
- {
448
- id: "jison",
449
- name: "Jison",
450
- import: (() => import("../../../jison-DdreslRX.js"))
451
- },
452
- {
453
- id: "json",
454
- name: "JSON",
455
- import: (() => import("../../../json-DxJze_jm.js"))
456
- },
457
- {
458
- id: "json5",
459
- name: "JSON5",
460
- import: (() => import("../../../json5-BT4Fjg39.js"))
461
- },
462
- {
463
- id: "jsonc",
464
- name: "JSON with Comments",
465
- import: (() => import("../../../jsonc-CHjZD8gR.js"))
466
- },
467
- {
468
- id: "jsonl",
469
- name: "JSON Lines",
470
- import: (() => import("../../../jsonl-BGuvDmy9.js"))
471
- },
472
- {
473
- id: "jsx",
474
- name: "JSX",
475
- import: (() => import("../../../jsx-BtKADgXT.js"))
476
- },
477
- {
478
- id: "julia",
479
- name: "Julia",
480
- aliases: [
481
- "jl"
482
- ],
483
- import: (() => import("../../../julia-CZiKXNNP.js"))
484
- },
485
- {
486
- id: "less",
487
- name: "Less",
488
- import: (() => import("../../../less-B1GLI2Di.js"))
489
- },
490
- {
491
- id: "markdown",
492
- name: "Markdown",
493
- aliases: [
494
- "md"
495
- ],
496
- import: (() => import("../../../markdown-CrScaQ96.js"))
497
- },
498
- {
499
- id: "marko",
500
- name: "Marko",
501
- import: (() => import("../../../marko-CJBA24Ri.js"))
502
- },
503
- {
504
- id: "mdc",
505
- name: "MDC",
506
- import: (() => import("../../../mdc-C9YSUwVC.js"))
507
- },
508
- {
509
- id: "mdx",
510
- name: "MDX",
511
- import: (() => import("../../../mdx-BOhZZUJ8.js"))
512
- },
513
- {
514
- id: "php",
515
- name: "PHP",
516
- import: (() => import("../../../php-BIzsF_5x.js"))
517
- },
518
- {
519
- id: "postcss",
520
- name: "PostCSS",
521
- import: (() => import("../../../postcss-05aHdL-n.js"))
522
- },
523
- {
524
- id: "pug",
525
- name: "Pug",
526
- aliases: [
527
- "jade"
528
- ],
529
- import: (() => import("../../../pug-XOw9Q1Ho.js"))
530
- },
531
- {
532
- id: "python",
533
- name: "Python",
534
- aliases: [
535
- "py"
536
- ],
537
- import: (() => import("../../../python-BFNSHbwJ.js"))
538
- },
539
- {
540
- id: "r",
541
- name: "R",
542
- import: (() => import("../../../r-CSmzDPi7.js"))
543
- },
544
- {
545
- id: "regexp",
546
- name: "RegExp",
547
- aliases: [
548
- "regex"
549
- ],
550
- import: (() => import("../../../regexp-BazyLpPg.js"))
551
- },
552
- {
553
- id: "sass",
554
- name: "Sass",
555
- import: (() => import("../../../sass-DxHp5rTx.js"))
556
- },
557
- {
558
- id: "scss",
559
- name: "SCSS",
560
- import: (() => import("../../../scss-B1FaCqwR.js"))
561
- },
562
- {
563
- id: "shellscript",
564
- name: "Shell",
565
- aliases: [
566
- "bash",
567
- "sh",
568
- "shell",
569
- "zsh"
570
- ],
571
- import: (() => import("../../../shellscript-InADTalH.js"))
572
- },
573
- {
574
- id: "sql",
575
- name: "SQL",
576
- import: (() => import("../../../sql-Cn_v3PB0.js"))
577
- },
578
- {
579
- id: "stylus",
580
- name: "Stylus",
581
- aliases: [
582
- "styl"
583
- ],
584
- import: (() => import("../../../stylus-CyKEU1Ej.js"))
585
- },
586
- {
587
- id: "svelte",
588
- name: "Svelte",
589
- import: (() => import("../../../svelte-rYri41WT.js"))
590
- },
591
- {
592
- id: "ts-tags",
593
- name: "TypeScript with Tags",
594
- aliases: [
595
- "lit"
596
- ],
597
- import: (() => import("../../../ts-tags-ioVe2PKw.js"))
598
- },
599
- {
600
- id: "tsx",
601
- name: "TSX",
602
- import: (() => import("../../../tsx-B8rCNbgL.js"))
603
- },
604
- {
605
- id: "typescript",
606
- name: "TypeScript",
607
- aliases: [
608
- "ts",
609
- "cts",
610
- "mts"
611
- ],
612
- import: (() => import("../../../typescript-RycA9KXf.js"))
613
- },
614
- {
615
- id: "vue",
616
- name: "Vue",
617
- import: (() => import("../../../vue-DXEmyXn9.js"))
618
- },
619
- {
620
- id: "vue-html",
621
- name: "Vue HTML",
622
- import: (() => import("../../../vue-html-j9xNEdu3.js"))
623
- },
624
- {
625
- id: "vue-vine",
626
- name: "Vue Vine",
627
- import: (() => import("../../../vue-vine-D41-N99t.js"))
628
- },
629
- {
630
- id: "wasm",
631
- name: "WebAssembly",
632
- import: (() => import("../../../wasm-BBXxrAl7.js"))
633
- },
634
- {
635
- id: "wgsl",
636
- name: "WGSL",
637
- import: (() => import("../../../wgsl-DY4iK1q1.js"))
638
- },
639
- {
640
- id: "wit",
641
- name: "WebAssembly Interface Types",
642
- import: (() => import("../../../wit-CQMQOlTg.js"))
643
- },
644
- {
645
- id: "xml",
646
- name: "XML",
647
- import: (() => import("../../../xml-C2J0sS9M.js"))
648
- },
649
- {
650
- id: "yaml",
651
- name: "YAML",
652
- aliases: [
653
- "yml"
654
- ],
655
- import: (() => import("../../../yaml-DaO7k5B1.js"))
656
- }
657
- ], ae = Object.fromEntries(U.map((e) => [e.id, e.import])), me = Object.fromEntries(U.flatMap((e) => e.aliases?.map((t) => [t, e.import]) || [])), le = {
658
- ...ae,
659
- ...me
660
- }, de = /* @__PURE__ */ Z({
661
- langs: le,
662
- themes: ee,
663
- engine: () => I(import("../../../wasm-DQxwEHae.js"))
664
- }), {
665
- getSingletonHighlighter: _
666
- } = /* @__PURE__ */ Y(
667
- de,
668
- { guessEmbeddedLanguages: K }
669
- );
670
- async function pe(e, t, i) {
671
- try {
672
- return await _({
673
- langs: [e],
674
- themes: t,
675
- engine: i ?? I(import("../../../wasm-DQxwEHae.js"))
676
- });
677
- } catch (n) {
678
- if (n instanceof Error && n.message.includes("Language"))
679
- return await _({
680
- langs: ["plaintext"],
681
- themes: t,
682
- engine: i ?? I(import("../../../wasm-DQxwEHae.js"))
683
- });
684
- throw n;
685
- }
686
- }
687
- var ue = (e, t, i, n = {}) => re(
688
- e,
689
- t,
690
- i,
691
- n,
692
- pe
693
- ), ce = oe(
694
- ue
695
- ), ge = ce;
696
- const he = { light: "vitesse-light", dark: "vitesse-dark" };
697
- function Se({ children: e, className: t, ...i }) {
698
- return /* @__PURE__ */ m(
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { w as a } from "../../../web-BwFNdl01.js";
3
+ import { SHIKI_THEMES as c } from "../../../lib/shiki-themes.js";
4
+ import { cn as t } from "../../../lib/utils.js";
5
+ function u({ children: e, className: r, ...l }) {
6
+ return /* @__PURE__ */ o(
699
7
  "div",
700
8
  {
701
- className: z(
9
+ className: t(
702
10
  "not-prose flex w-full flex-col overflow-clip border",
703
11
  "rounded-xl border-border bg-card text-card-foreground",
704
- t
12
+ r
705
13
  ),
706
14
  "data-slot": "code-block",
707
- ...i,
15
+ ...l,
708
16
  children: e
709
17
  }
710
18
  );
711
19
  }
712
- function ve({
20
+ function m({
713
21
  code: e,
714
- language: t = "tsx",
715
- className: i,
716
- ...n
22
+ language: r = "tsx",
23
+ className: l,
24
+ ...d
717
25
  }) {
718
- return /* @__PURE__ */ m(
26
+ return /* @__PURE__ */ o(
719
27
  "div",
720
28
  {
721
- className: z(
29
+ className: t(
722
30
  "w-full overflow-x-auto text-[13px] [&_.shiki]:px-4 [&_.shiki]:py-4",
723
- i
31
+ l
724
32
  ),
725
33
  "data-slot": "code-block-code",
726
- ...n,
727
- children: e ? /* @__PURE__ */ m(
728
- ge,
34
+ ...d,
35
+ children: e ? /* @__PURE__ */ o(
36
+ a,
729
37
  {
730
38
  addDefaultStyles: !1,
731
39
  defaultColor: !1,
732
- language: t,
40
+ language: r,
733
41
  showLanguage: !1,
734
- theme: he,
42
+ theme: c,
735
43
  children: e
736
44
  }
737
- ) : /* @__PURE__ */ m("pre", { children: /* @__PURE__ */ m("code", {}) })
45
+ ) : /* @__PURE__ */ o("pre", { children: /* @__PURE__ */ o("code", {}) })
738
46
  }
739
47
  );
740
48
  }
741
- function we({
49
+ function p({
742
50
  children: e,
743
- className: t,
744
- ...i
51
+ className: r,
52
+ ...l
745
53
  }) {
746
- return /* @__PURE__ */ m(
54
+ return /* @__PURE__ */ o(
747
55
  "div",
748
56
  {
749
- className: z("flex items-center justify-between", t),
57
+ className: t("flex items-center justify-between", r),
750
58
  "data-slot": "code-block-group",
751
- ...i,
59
+ ...l,
752
60
  children: e
753
61
  }
754
62
  );
755
63
  }
756
64
  export {
757
- Se as CodeBlock,
758
- ve as CodeBlockCode,
759
- we as CodeBlockGroup
65
+ u as CodeBlock,
66
+ m as CodeBlockCode,
67
+ p as CodeBlockGroup
760
68
  };