@marimo-team/islands 0.23.12-dev5 → 0.23.12-dev7

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 (46) hide show
  1. package/dist/{chat-ui-BElU7iES.js → chat-ui-BEOvjkmJ.js} +2 -2
  2. package/dist/{code-visibility-C4oGgzI1.js → code-visibility-43gCeXKe.js} +12 -12
  3. package/dist/{formats-CGj29bgR.js → formats-d6MhLuQ9.js} +1 -1
  4. package/dist/{html-to-image-Pd4oj3-L.js → html-to-image-Di0mtt6O.js} +58 -58
  5. package/dist/main.js +1214 -1201
  6. package/dist/{process-output-nrhrehth.js → process-output-BLd4KuwX.js} +1 -1
  7. package/dist/{reveal-component-BnYITWzo.js → reveal-component-BQHpjptH.js} +3 -3
  8. package/dist/style.css +2 -2
  9. package/dist/{vega-component-CKPImOhx.js → vega-component-Pk6lyc_a.js} +1 -1
  10. package/package.json +3 -3
  11. package/src/components/ai/display-helpers.tsx +5 -5
  12. package/src/components/app-config/ai-config.tsx +5 -5
  13. package/src/components/app-config/mcp-config.tsx +3 -3
  14. package/src/components/chat/acp/agent-panel.tsx +3 -3
  15. package/src/components/chat/acp/blocks.tsx +36 -38
  16. package/src/components/chat/acp/common.tsx +12 -16
  17. package/src/components/chat/acp/scroll-to-bottom-button.tsx +1 -1
  18. package/src/components/chat/acp/session-tabs.tsx +2 -2
  19. package/src/components/chat/chat-history-popover.tsx +1 -1
  20. package/src/components/data-table/columns.tsx +2 -2
  21. package/src/components/data-table/filter-pill-editor.tsx +1 -1
  22. package/src/components/dependency-graph/minimap-content.tsx +1 -1
  23. package/src/components/editor/RecoveryButton.tsx +1 -1
  24. package/src/components/editor/actions/pair-with-agent-modal.tsx +2 -2
  25. package/src/components/editor/ai/ai-completion-editor.tsx +1 -1
  26. package/src/components/editor/cell/CreateCellButton.tsx +1 -1
  27. package/src/components/editor/chrome/panels/empty-state.tsx +1 -1
  28. package/src/components/editor/chrome/panels/outline/floating-outline.tsx +1 -1
  29. package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +1 -1
  30. package/src/components/editor/columns/cell-column.tsx +1 -1
  31. package/src/components/editor/columns/sortable-column.tsx +2 -2
  32. package/src/components/editor/output/MarimoErrorOutput.tsx +1 -1
  33. package/src/components/editor/output/TextOutput.tsx +2 -2
  34. package/src/components/slides/minimap.tsx +2 -2
  35. package/src/components/slides/reveal-component.tsx +1 -1
  36. package/src/components/ui/alert.tsx +1 -1
  37. package/src/components/ui/command.tsx +2 -2
  38. package/src/components/ui/reorderable-list.tsx +1 -1
  39. package/src/components/ui/table.tsx +2 -5
  40. package/src/core/codemirror/language/languages/sql/renderers.tsx +60 -68
  41. package/src/plugins/impl/MatrixPlugin.tsx +2 -2
  42. package/src/plugins/impl/TabsPlugin.tsx +1 -1
  43. package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +1 -1
  44. package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +155 -98
  45. package/src/plugins/impl/mpl-interactive/__tests__/MplInteractivePlugin.test.tsx +154 -1
  46. package/src/plugins/impl/mpl-interactive/mpl-websocket-shim.ts +10 -0
@@ -6,13 +6,13 @@ import { _ as Logger, c as Objects, g as cn, l as useEventListener, t as Button
6
6
  import { t as require_react } from "./react-DA-nE2FX.js";
7
7
  import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
8
8
  import { r as toast } from "./copy-COam1EG7.js";
9
- import { C as AccordionContent, D as ChatBubbleIcon, En as Trash2, Et as createVariableInfoElement, G as cellErrorsAtom, Gt as getTableType, In as ExternalLink, It as jotaiJsonStorage, Lt as variablesAtom, Mt as generateUUID, Nn as Info, P as base64ToDataURL, Pn as FileText, Rt as PluralWord, S as Accordion, T as AccordionTrigger, Tn as Wrench, Ut as allTablesAtom, V as renderHTML, Wt as dataSourceConnectionsAtom, X as notebookAtom, Zt as singleFacet, _ as Boosts, _n as atomWithStorage, b as AIContextProvider, c as Popover, d as PopoverTrigger, f as isOutputEmpty, h as DatasourceContextProvider, jn as LoaderCircle, kt as moveToEndOfEditor, n as Spinner, nn as ZodLocalStorage, qt as getRequestClient, r as MarkdownRenderer, sn as CellOutputId, t as toPng, u as PopoverContent, v as Sections, w as AccordionItem, x as AIContextRegistry, y as contextToXml, yn as Anchor2, yt as displayCellName, zn as CircleX } from "./html-to-image-Pd4oj3-L.js";
9
+ import { C as AccordionContent, D as ChatBubbleIcon, En as Trash2, Et as createVariableInfoElement, G as cellErrorsAtom, Gt as getTableType, In as ExternalLink, It as jotaiJsonStorage, Lt as variablesAtom, Mt as generateUUID, Nn as Info, P as base64ToDataURL, Pn as FileText, Rt as PluralWord, S as Accordion, T as AccordionTrigger, Tn as Wrench, Ut as allTablesAtom, V as renderHTML, Wt as dataSourceConnectionsAtom, X as notebookAtom, Zt as singleFacet, _ as Boosts, _n as atomWithStorage, b as AIContextProvider, c as Popover, d as PopoverTrigger, f as isOutputEmpty, h as DatasourceContextProvider, jn as LoaderCircle, kt as moveToEndOfEditor, n as Spinner, nn as ZodLocalStorage, qt as getRequestClient, r as MarkdownRenderer, sn as CellOutputId, t as toPng, u as PopoverContent, v as Sections, w as AccordionItem, x as AIContextRegistry, y as contextToXml, yn as Anchor2, yt as displayCellName, zn as CircleX } from "./html-to-image-Di0mtt6O.js";
10
10
  import "./chunk-5FQGJX7Z-BbqSm5gU.js";
11
11
  import { u as createLucideIcon } from "./dist--2Bqjvs0.js";
12
12
  import { C as logNever, I as X, R as ChevronDown, t as Strings } from "./strings-Dq_j3Rxw.js";
13
13
  import { C as DropdownMenuTrigger, a as NumberField, f as DropdownMenu, h as DropdownMenuItem, p as DropdownMenuContent, r as Input } from "./input-CbEz_aj_.js";
14
14
  import { p as isUrl, v as CircleQuestionMark } from "./toDate-D-l5s8nn.js";
15
- import { a as MarimoIncomingMessageEvent, d as Square, f as File$1, n as blobToString, t as processOutput, u as deserializeBlob } from "./process-output-nrhrehth.js";
15
+ import { a as MarimoIncomingMessageEvent, d as Square, f as File$1, n as blobToString, t as processOutput, u as deserializeBlob } from "./process-output-BLd4KuwX.js";
16
16
  import "./react-dom-BTJzcVJ9.js";
17
17
  import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
18
18
  import { A as looseObject, B as union, C as any, D as discriminatedUnion, E as custom, H as safeParseAsync, I as record, L as strictObject, M as never, N as number, O as lazy, P as object$1, R as string, S as _null, T as boolean, V as unknown, W as toJSONSchema, b as _enum, k as literal, w as array$1, x as _instanceof } from "./zod-CijjQh4u.js";
@@ -6,7 +6,7 @@ import { _ as Logger, c as Objects, g as cn, h as Events, m as useComposedRefs,
6
6
  import { t as require_react } from "./react-DA-nE2FX.js";
7
7
  import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
8
8
  import { n as Copy, r as toast, t as copyToClipboard } from "./copy-COam1EG7.js";
9
- import { $t as extractAllTracebackInfo, A as ChevronRightIcon, An as Minus, At as goToCellLine, Bt as DATA_TYPE_ICON, C as AccordionContent, Ct as Checkbox, En as Trash2, Fn as Eye, Ft as adaptForLocalStorage, Hn as esm_default, I as base64ToUint8Array, In as ExternalLink, It as jotaiJsonStorage, M as PinLeftIcon, N as PinRightIcon, Nn as Info, Nt as useChromeActions, O as CheckIcon, Pn as FileText, Qt as elementContainsMarimoCellFile, R as extractBase64FromDataURL, Rt as PluralWord, S as Accordion, T as AccordionTrigger, Tn as Wrench, Un as import_lib, V as renderHTML, Vn as Braces, Vt as getDataTypeColor, X as notebookAtom, Yt as useRequestClient, _n as atomWithStorage, _t as DATA_CELL_ID, bn as Close$1, c as Popover, cn as HTMLCellId, d as PopoverTrigger, dt as viewStateAtom, en as getTracebackInfo, et as useCellActions, ft as outputIsLoading, g as getDatasourceContext, gt as sanitizeHtml, hn as jsonToMarkdown, j as DotFilledIcon, jn as LoaderCircle, kn as NotebookPen, l as PopoverClose, ln as SCRATCH_CELL_ID, lt as kioskModeAtom, m as useExpandedOutput, mn as jsonParseWithSpecialChar, n as Spinner, nt as useCellNames, ot as AnsiUp, q as getCellEditorView, qt as getRequestClient, r as MarkdownRenderer, rn as filenameAtom, sn as CellOutputId, t as toPng, tt as useCellIds, u as PopoverContent, ut as useInstallAllowed, vt as getCellDomProps, w as AccordionItem, yt as displayCellName, z as isDataURLString, zn as CircleX, __tla as __tla_0 } from "./html-to-image-Pd4oj3-L.js";
9
+ import { $t as extractAllTracebackInfo, A as ChevronRightIcon, An as Minus, At as goToCellLine, Bt as DATA_TYPE_ICON, C as AccordionContent, Ct as Checkbox, En as Trash2, Fn as Eye, Ft as adaptForLocalStorage, Hn as esm_default, I as base64ToUint8Array, In as ExternalLink, It as jotaiJsonStorage, M as PinLeftIcon, N as PinRightIcon, Nn as Info, Nt as useChromeActions, O as CheckIcon, Pn as FileText, Qt as elementContainsMarimoCellFile, R as extractBase64FromDataURL, Rt as PluralWord, S as Accordion, T as AccordionTrigger, Tn as Wrench, Un as import_lib, V as renderHTML, Vn as Braces, Vt as getDataTypeColor, X as notebookAtom, Yt as useRequestClient, _n as atomWithStorage, _t as DATA_CELL_ID, bn as Close$1, c as Popover, cn as HTMLCellId, d as PopoverTrigger, dt as viewStateAtom, en as getTracebackInfo, et as useCellActions, ft as outputIsLoading, g as getDatasourceContext, gt as sanitizeHtml, hn as jsonToMarkdown, j as DotFilledIcon, jn as LoaderCircle, kn as NotebookPen, l as PopoverClose, ln as SCRATCH_CELL_ID, lt as kioskModeAtom, m as useExpandedOutput, mn as jsonParseWithSpecialChar, n as Spinner, nt as useCellNames, ot as AnsiUp, q as getCellEditorView, qt as getRequestClient, r as MarkdownRenderer, rn as filenameAtom, sn as CellOutputId, t as toPng, tt as useCellIds, u as PopoverContent, ut as useInstallAllowed, vt as getCellDomProps, w as AccordionItem, yt as displayCellName, z as isDataURLString, zn as CircleX, __tla as __tla_0 } from "./html-to-image-Di0mtt6O.js";
10
10
  import { o as useSize, u as createLucideIcon } from "./dist--2Bqjvs0.js";
11
11
  import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-AHlswLw-.js";
12
12
  import { a as ListFilter, i as Table$1, n as $fb18d541ea1ad717$export$ad991b66133851cf, o as ChartPie, r as $5a387cc49350e6db$export$722debc0e56fea39, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-CMnRuVmN.js";
@@ -29,7 +29,7 @@ import { t as invariant } from "./invariant-wRzNXIsJ.js";
29
29
  import { c as uniqueBy, t as Arrays } from "./arrays-sEtDRoG4.js";
30
30
  import { n as once, t as memoizeLastValue } from "./once-DPuqGUeo.js";
31
31
  import { a as parser } from "./dist-C_Y3oV3C.js";
32
- import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-CGj29bgR.js";
32
+ import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-d6MhLuQ9.js";
33
33
  import { n as memoize$1, t as isPropValid } from "./emotion-is-prop-valid.esm-DzSb5hsH.js";
34
34
  import { n as formats } from "./vega-loader.browser-CZ-J8Py3.js";
35
35
  import { a as getContainerWidth, n as vegaLoadData, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-Boph2xIS.js";
@@ -20375,7 +20375,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20375
20375
  ]
20376
20376
  }), t[24] = Uq, t[25] = Wq, t[26] = Gq) : Gq = t[26];
20377
20377
  let Kq = Gq;
20378
- y = Alert, E = f, t[27] === o ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-2", o), t[27] = o, t[28] = O), A = Kq, S = "flex flex-col gap-4", w = Hq(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
20378
+ y = Alert, E = f, t[27] === o ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", o), t[27] = o, t[28] = O), A = Kq, S = "flex flex-col gap-4", w = Hq(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
20379
20379
  } else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
20380
20380
  let M;
20381
20381
  t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
@@ -20617,12 +20617,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20617
20617
  const TextOutput = (e) => {
20618
20618
  let t = (0, import_compiler_runtime$53.c)(13), { text: n, channel: i, wrapText: o } = e, s = i === "stdout" || i === "stderr", c;
20619
20619
  t[0] === o ? c = t[1] : (c = (e2) => (0, import_jsx_runtime.jsx)("span", {
20620
- className: o ? "whitespace-pre-wrap break-words" : "whitespace-pre",
20620
+ className: o ? "whitespace-pre-wrap wrap-break-word" : "whitespace-pre",
20621
20621
  children: (0, import_jsx_runtime.jsx)(RenderTextWithLinks, {
20622
20622
  text: e2
20623
20623
  })
20624
20624
  }), t[0] = o, t[1] = c);
20625
- let d = c, f = !s && (o ? "whitespace-pre-wrap break-words" : "whitespace-pre"), h = i === "output" && "font-prose", _;
20625
+ let d = c, f = !s && (o ? "whitespace-pre-wrap wrap-break-word" : "whitespace-pre"), h = i === "output" && "font-prose", _;
20626
20626
  t[2] !== i || t[3] !== f || t[4] !== h ? (_ = cn(f, h, i), t[2] = i, t[3] = f, t[4] = h, t[5] = _) : _ = t[5];
20627
20627
  let v;
20628
20628
  t[6] !== d || t[7] !== s || t[8] !== n ? (v = s ? d(n) : n, t[6] = d, t[7] = s, t[8] = n, t[9] = v) : v = t[9];
@@ -25972,7 +25972,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
25972
25972
  }
25973
25973
  }
25974
25974
  function getCellStyleClass({ justify: e = "left", wrapped: t, canSelectCell: n, isSelected: i, isNumeric: o = false }) {
25975
- return cn(n && "cursor-pointer", i && "relative before:absolute before:inset-0 before:bg-(--blue-3) before:rounded before:-z-10 before:mx-[-4px] before:my-[-2px]", "w-full", "text-left", "truncate", o && "tabular-nums", e === "center" && "text-center", e === "right" && "text-right", t && "whitespace-pre-wrap min-w-[200px] break-words");
25975
+ return cn(n && "cursor-pointer", i && "relative before:absolute before:inset-0 before:bg-(--blue-3) before:rounded before:-z-10 before:mx-[-4px] before:my-[-2px]", "w-full", "text-left", "truncate", o && "tabular-nums", e === "center" && "text-center", e === "right" && "text-right", t && "whitespace-pre-wrap min-w-[200px] wrap-break-word");
25976
25976
  }
25977
25977
  function renderAny(e) {
25978
25978
  if (e == null) return "";
@@ -26055,7 +26055,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26055
26055
  leading: i2,
26056
26056
  trailing: h2
26057
26057
  },
26058
- contentClassName: "max-h-64 overflow-auto whitespace-pre-wrap break-words text-sm w-96",
26058
+ contentClassName: "max-h-64 overflow-auto whitespace-pre-wrap wrap-break-word text-sm w-96",
26059
26059
  buttonText: "X",
26060
26060
  wrapped: _,
26061
26061
  children: (0, import_jsx_runtime.jsx)(MarkdownUrlDetector, {
@@ -26194,7 +26194,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26194
26194
  let n = (0, import_compiler_runtime$39.c)(9), i, o;
26195
26195
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
26196
26196
  let s;
26197
- n[3] === i ? s = n[4] : (s = cn("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", i), n[3] = i, n[4] = s);
26197
+ n[3] === i ? s = n[4] : (s = cn("h-10 px-2 text-left align-middle font-medium text-muted-foreground has-[[role=checkbox]]:pr-0", i), n[3] = i, n[4] = s);
26198
26198
  let c;
26199
26199
  return n[5] !== o || n[6] !== t || n[7] !== s ? (c = (0, import_jsx_runtime.jsx)("th", {
26200
26200
  ref: t,
@@ -26207,7 +26207,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26207
26207
  let n = (0, import_compiler_runtime$39.c)(9), i, o;
26208
26208
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
26209
26209
  let s;
26210
- n[3] === i ? s = n[4] : (s = cn("p-1.5 align-middle [&:has([role=checkbox])]:pr-0", i), n[3] = i, n[4] = s);
26210
+ n[3] === i ? s = n[4] : (s = cn("p-1.5 align-middle has-[[role=checkbox]]:pr-0", i), n[3] = i, n[4] = s);
26211
26211
  let c;
26212
26212
  return n[5] !== o || n[6] !== t || n[7] !== s ? (c = (0, import_jsx_runtime.jsx)("td", {
26213
26213
  ref: t,
@@ -28440,7 +28440,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28440
28440
  let n = (0, import_compiler_runtime$36.c)(9), i, o;
28441
28441
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
28442
28442
  let s;
28443
- n[3] === i ? s = n[4] : (s = cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", i), n[3] = i, n[4] = s);
28443
+ n[3] === i ? s = n[4] : (s = cn("overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground", i), n[3] = i, n[4] = s);
28444
28444
  let c;
28445
28445
  return n[5] !== o || n[6] !== t || n[7] !== s ? (c = (0, import_jsx_runtime.jsx)(_e.Group, {
28446
28446
  ref: t,
@@ -30279,7 +30279,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30279
30279
  className: "border-input w-24 min-w-0"
30280
30280
  });
30281
30281
  if ((t === "text" || t === "number") && (n === "in" || n === "not_in") && s) return (0, import_jsx_runtime.jsx)("div", {
30282
- className: "min-w-[14rem] w-fit max-w-[24rem]",
30282
+ className: "min-w-56 w-fit max-w-[24rem]",
30283
30283
  children: (0, import_jsx_runtime.jsx)(FilterByValuesPicker, {
30284
30284
  column: s,
30285
30285
  calculateTopKRows: c,
@@ -35996,7 +35996,7 @@ ${d}`,
35996
35996
  return Logger.warn("Failed to get version from mount config"), null;
35997
35997
  }
35998
35998
  }
35999
- marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.12-dev5");
35999
+ marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.12-dev7");
36000
36000
  showCodeInRunModeAtom = atom(true);
36001
36001
  atom(null);
36002
36002
  var import_compiler_runtime = require_compiler_runtime();
@@ -11,7 +11,7 @@ function isDate(e) {
11
11
  function isValid(e) {
12
12
  return !(!isDate(e) && typeof e != "number" || isNaN(+toDate(e)));
13
13
  }
14
- var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1), alertVariants = cva("relative w-full rounded-lg border p-4 [&>svg]:absolute [&>svg]:text-foreground [&>svg]:left-4 [&>svg]:top-4 [&>svg+div]:translate-y-[-3px] [&:has(svg)]:pl-11", {
14
+ var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1), alertVariants = cva("relative w-full rounded-lg border p-4 [&>svg]:absolute [&>svg]:text-foreground [&>svg]:left-4 [&>svg]:top-4 [&>svg+div]:translate-y-[-3px] has-[svg]:pl-11", {
15
15
  variants: { variant: {
16
16
  default: "bg-background text-foreground",
17
17
  destructive: "text-destructive border-destructive/50 dark:border-destructive [&>svg]:text-destructive text-destructive",
@@ -16422,20 +16422,20 @@ let __tla = Promise.all([
16422
16422
  import_compiler_runtime$19 = require_compiler_runtime();
16423
16423
  PREVIEW_ITEM_LIMIT = 5;
16424
16424
  DATA_TYPE_COLORS = {
16425
- boolean: "bg-[var(--orange-4)] text-[var(--orange-11)]",
16426
- date: "bg-[var(--grass-4)] text-[var(--grass-11)]",
16427
- time: "bg-[var(--grass-4)] text-[var(--grass-11)]",
16428
- datetime: "bg-[var(--grass-4)] text-[var(--grass-11)]",
16429
- number: "bg-[var(--purple-4)] text-[var(--purple-11)]",
16430
- integer: "bg-[var(--purple-4)] text-[var(--purple-11)]",
16431
- string: "bg-[var(--blue-4)] text-[var(--blue-11)]",
16432
- unknown: "bg-[var(--slate-4)] text-[var(--slate-11)]"
16425
+ boolean: "bg-(--orange-4) text-(--orange-11)",
16426
+ date: "bg-(--grass-4) text-(--grass-11)",
16427
+ time: "bg-(--grass-4) text-(--grass-11)",
16428
+ datetime: "bg-(--grass-4) text-(--grass-11)",
16429
+ number: "bg-(--purple-4) text-(--purple-11)",
16430
+ integer: "bg-(--purple-4) text-(--purple-11)",
16431
+ string: "bg-(--blue-4) text-(--blue-11)",
16432
+ unknown: "bg-(--slate-4) text-(--slate-11)"
16433
16433
  };
16434
16434
  SOURCE_TYPE_COLORS = {
16435
- local: "bg-[var(--blue-4)] text-[var(--blue-11)]",
16436
- duckdb: "bg-[var(--amber-4)] text-[var(--amber-11)]",
16437
- connection: "bg-[var(--green-4)] text-[var(--green-11)]",
16438
- catalog: "bg-[var(--purple-4)] text-[var(--purple-11)]"
16435
+ local: "bg-(--blue-4) text-(--blue-11)",
16436
+ duckdb: "bg-(--amber-4) text-(--amber-11)",
16437
+ connection: "bg-(--green-4) text-(--green-11)",
16438
+ catalog: "bg-(--purple-4) text-(--purple-11)"
16439
16439
  };
16440
16440
  CONTAINER_STYLES = "p-3 min-w-[250px] flex flex-col divide-y";
16441
16441
  columnsText = new PluralWord("column", "columns");
@@ -16462,7 +16462,7 @@ let __tla = Promise.all([
16462
16462
  MetadataRow = (e) => {
16463
16463
  let t = (0, import_compiler_runtime$19.c)(5), { label: n, value: r } = e, i;
16464
16464
  t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsxs)("span", {
16465
- className: "text-[var(--slate-11)]",
16465
+ className: "text-(--slate-11)",
16466
16466
  children: [
16467
16467
  n,
16468
16468
  ":"
@@ -16480,7 +16480,7 @@ let __tla = Promise.all([
16480
16480
  StatisticItem = (e) => {
16481
16481
  let t = (0, import_compiler_runtime$19.c)(5), { icon: n, text: r } = e, i;
16482
16482
  t[0] === r ? i = t[1] : (i = (0, import_jsx_runtime.jsx)("span", {
16483
- className: "text-xs text-[var(--slate-11)]",
16483
+ className: "text-xs text-(--slate-11)",
16484
16484
  children: r
16485
16485
  }), t[0] = r, t[1] = i);
16486
16486
  let a;
@@ -16499,7 +16499,7 @@ let __tla = Promise.all([
16499
16499
  t[0] !== r || t[1] !== s ? (c = r.slice(0, s), t[0] = r, t[1] = s, t[2] = c) : c = t[2];
16500
16500
  let l = c, u = i > s, d;
16501
16501
  t[3] === o ? d = t[4] : (d = o && (0, import_jsx_runtime.jsxs)("h4", {
16502
- className: "text-xs font-medium text-[var(--slate-11)] mb-2",
16502
+ className: "text-xs font-medium text-(--slate-11) mb-2",
16503
16503
  children: [
16504
16504
  o,
16505
16505
  ":"
@@ -16507,7 +16507,7 @@ let __tla = Promise.all([
16507
16507
  }), t[3] = o, t[4] = d);
16508
16508
  let f;
16509
16509
  t[5] !== u || t[6] !== s || t[7] !== i ? (f = u && (0, import_jsx_runtime.jsxs)("div", {
16510
- className: "text-xs text-[var(--slate-10)] text-center py-1",
16510
+ className: "text-xs text-(--slate-10) text-center py-1",
16511
16511
  children: [
16512
16512
  "... and ",
16513
16513
  i - s,
@@ -16535,12 +16535,12 @@ let __tla = Promise.all([
16535
16535
  const renderTableInfo = (e) => {
16536
16536
  var _a2, _b2;
16537
16537
  let t = e.type === "view" ? (0, import_jsx_runtime.jsx)(Eye, {
16538
- className: "w-4 h-4 text-[var(--blue-9)]"
16538
+ className: "w-4 h-4 text-(--blue-9)"
16539
16539
  }) : (0, import_jsx_runtime.jsx)(Table2, {
16540
- className: "w-4 h-4 text-[var(--green-9)]"
16540
+ className: "w-4 h-4 text-(--green-9)"
16541
16541
  }), n = (0, import_jsx_runtime.jsx)(Badge, {
16542
16542
  variant: "secondary",
16543
- className: `text-xs ${e.type === "view" ? "bg-[var(--blue-4)] text-[var(--blue-11)]" : "bg-[var(--green-4)] text-[var(--green-11)]"}`,
16543
+ className: `text-xs ${e.type === "view" ? "bg-(--blue-4) text-(--blue-11)" : "bg-(--green-4) text-(--green-11)"}`,
16544
16544
  children: e.type
16545
16545
  }), r = e.columns.map((e2) => {
16546
16546
  let t2 = DATA_TYPE_ICON[e2.type];
@@ -16551,7 +16551,7 @@ let __tla = Promise.all([
16551
16551
  className: "flex items-center gap-2",
16552
16552
  children: [
16553
16553
  (0, import_jsx_runtime.jsx)(t2, {
16554
- className: "w-3 h-3 text-[var(--slate-9)]"
16554
+ className: "w-3 h-3 text-(--slate-9)"
16555
16555
  }),
16556
16556
  (0, import_jsx_runtime.jsx)("span", {
16557
16557
  className: "font-mono",
@@ -16589,14 +16589,14 @@ let __tla = Promise.all([
16589
16589
  e.variable_name && (0, import_jsx_runtime.jsx)(MetadataRow, {
16590
16590
  label: "Variable",
16591
16591
  value: (0, import_jsx_runtime.jsx)("code", {
16592
- className: "text-xs bg-[var(--slate-4)] px-1 rounded",
16592
+ className: "text-xs bg-(--slate-4) px-1 rounded",
16593
16593
  children: e.variable_name
16594
16594
  })
16595
16595
  }),
16596
16596
  e.engine && (0, import_jsx_runtime.jsx)(MetadataRow, {
16597
16597
  label: "Engine",
16598
16598
  value: (0, import_jsx_runtime.jsx)("code", {
16599
- className: "text-xs bg-[var(--slate-4)] px-1 rounded",
16599
+ className: "text-xs bg-(--slate-4) px-1 rounded",
16600
16600
  children: e.engine
16601
16601
  })
16602
16602
  })
@@ -16607,13 +16607,13 @@ let __tla = Promise.all([
16607
16607
  children: [
16608
16608
  e.num_columns != null && (0, import_jsx_runtime.jsx)(StatisticItem, {
16609
16609
  icon: (0, import_jsx_runtime.jsx)(Columns2, {
16610
- className: "w-3 h-3 text-[var(--slate-9)]"
16610
+ className: "w-3 h-3 text-(--slate-9)"
16611
16611
  }),
16612
16612
  text: `${e.num_columns} ${columnsText.pluralize(e.num_columns)}`
16613
16613
  }),
16614
16614
  e.num_rows != null && (0, import_jsx_runtime.jsx)(StatisticItem, {
16615
16615
  icon: (0, import_jsx_runtime.jsx)(Hash, {
16616
- className: "w-3 h-3 text-[var(--slate-9)]"
16616
+ className: "w-3 h-3 text-(--slate-9)"
16617
16617
  }),
16618
16618
  text: `${e.num_rows} ${rowsText.pluralize(e.num_rows)}`
16619
16619
  })
@@ -16630,17 +16630,17 @@ let __tla = Promise.all([
16630
16630
  className: "flex items-center gap-1",
16631
16631
  children: [
16632
16632
  (0, import_jsx_runtime.jsx)(Key, {
16633
- className: "w-3 h-3 text-[var(--amber-9)]"
16633
+ className: "w-3 h-3 text-(--amber-9)"
16634
16634
  }),
16635
16635
  (0, import_jsx_runtime.jsx)("span", {
16636
- className: "text-xs font-medium text-[var(--slate-11)]",
16636
+ className: "text-xs font-medium text-(--slate-11)",
16637
16637
  children: "Primary Keys:"
16638
16638
  })
16639
16639
  ]
16640
16640
  }),
16641
16641
  (_a2 = e.primary_keys) == null ? void 0 : _a2.map((e2) => (0, import_jsx_runtime.jsx)(Badge, {
16642
16642
  variant: "outline",
16643
- className: "text-xs text-[var(--slate-11)]",
16643
+ className: "text-xs text-(--slate-11)",
16644
16644
  children: e2
16645
16645
  }, e2))
16646
16646
  ]
@@ -16652,17 +16652,17 @@ let __tla = Promise.all([
16652
16652
  className: "flex items-center gap-1 mb-1",
16653
16653
  children: [
16654
16654
  (0, import_jsx_runtime.jsx)(BookMarked, {
16655
- className: "w-3 h-3 text-[var(--purple-9)]"
16655
+ className: "w-3 h-3 text-(--purple-9)"
16656
16656
  }),
16657
16657
  (0, import_jsx_runtime.jsx)("span", {
16658
- className: "text-xs font-medium text-[var(--slate-11)]",
16658
+ className: "text-xs font-medium text-(--slate-11)",
16659
16659
  children: "Indexes:"
16660
16660
  })
16661
16661
  ]
16662
16662
  }),
16663
16663
  (_b2 = e.indexes) == null ? void 0 : _b2.map((e2) => (0, import_jsx_runtime.jsx)(Badge, {
16664
16664
  variant: "outline",
16665
- className: "text-xs text-[var(--slate-11)]",
16665
+ className: "text-xs text-(--slate-11)",
16666
16666
  children: e2
16667
16667
  }, e2))
16668
16668
  ]
@@ -16682,7 +16682,7 @@ let __tla = Promise.all([
16682
16682
  className: `text-xs ${getDataTypeColorClass(e.type)}`,
16683
16683
  children: e.type
16684
16684
  }), r = ((_a2 = e.sample_values) == null ? void 0 : _a2.map((e2, t2) => (0, import_jsx_runtime.jsx)("div", {
16685
- className: "text-xs bg-[var(--slate-3)] rounded font-mono",
16685
+ className: "text-xs bg-(--slate-3) rounded font-mono",
16686
16686
  children: e2 == null ? "null" : String(e2)
16687
16687
  }, t2))) || [];
16688
16688
  return (0, import_jsx_runtime.jsxs)("div", {
@@ -16690,7 +16690,7 @@ let __tla = Promise.all([
16690
16690
  children: [
16691
16691
  (0, import_jsx_runtime.jsx)(SectionHeader, {
16692
16692
  icon: (0, import_jsx_runtime.jsx)(t, {
16693
- className: "w-4 h-4 text-[var(--slate-9)]"
16693
+ className: "w-4 h-4 text-(--slate-9)"
16694
16694
  }),
16695
16695
  title: e.name,
16696
16696
  badge: n
@@ -16708,7 +16708,7 @@ let __tla = Promise.all([
16708
16708
  (0, import_jsx_runtime.jsx)(MetadataRow, {
16709
16709
  label: "External Type",
16710
16710
  value: (0, import_jsx_runtime.jsx)("code", {
16711
- className: "text-xs bg-[var(--slate-4)] px-1 rounded",
16711
+ className: "text-xs bg-(--slate-4) px-1 rounded",
16712
16712
  children: e.external_type
16713
16713
  })
16714
16714
  })
@@ -16724,16 +16724,16 @@ let __tla = Promise.all([
16724
16724
  }, renderDatabaseInfo = (e) => {
16725
16725
  let t = (0, import_jsx_runtime.jsx)(Badge, {
16726
16726
  variant: "outline",
16727
- className: "text-xs bg-[var(--blue-4)] text-[var(--blue-11)]",
16727
+ className: "text-xs bg-(--blue-4) text-(--blue-11)",
16728
16728
  children: e.dialect
16729
16729
  }), n = e.schemas.map((e2) => (0, import_jsx_runtime.jsxs)("div", {
16730
- className: "flex items-center justify-between text-xs rounded hover:bg-[var(--slate-3)]",
16730
+ className: "flex items-center justify-between text-xs rounded hover:bg-(--slate-3)",
16731
16731
  children: [
16732
16732
  (0, import_jsx_runtime.jsxs)("div", {
16733
16733
  className: "flex items-center gap-2",
16734
16734
  children: [
16735
16735
  (0, import_jsx_runtime.jsx)(Layers, {
16736
- className: "w-3 h-3 text-[var(--slate-9)]"
16736
+ className: "w-3 h-3 text-(--slate-9)"
16737
16737
  }),
16738
16738
  (0, import_jsx_runtime.jsx)("span", {
16739
16739
  children: e2.name
@@ -16756,7 +16756,7 @@ let __tla = Promise.all([
16756
16756
  children: [
16757
16757
  (0, import_jsx_runtime.jsx)(SectionHeader, {
16758
16758
  icon: (0, import_jsx_runtime.jsx)(Database, {
16759
- className: "w-4 h-4 text-[var(--blue-9)]"
16759
+ className: "w-4 h-4 text-(--blue-9)"
16760
16760
  }),
16761
16761
  title: e.name,
16762
16762
  badge: t
@@ -16774,7 +16774,7 @@ let __tla = Promise.all([
16774
16774
  e.engine && (0, import_jsx_runtime.jsx)(MetadataRow, {
16775
16775
  label: "Engine",
16776
16776
  value: (0, import_jsx_runtime.jsx)("code", {
16777
- className: "text-xs bg-[var(--slate-4)] px-1 rounded",
16777
+ className: "text-xs bg-(--slate-4) px-1 rounded",
16778
16778
  children: e.engine
16779
16779
  })
16780
16780
  })
@@ -16784,7 +16784,7 @@ let __tla = Promise.all([
16784
16784
  className: "py-2",
16785
16785
  children: (0, import_jsx_runtime.jsx)(StatisticItem, {
16786
16786
  icon: (0, import_jsx_runtime.jsx)(Layers, {
16787
- className: "w-3 h-3 text-[var(--slate-9)]"
16787
+ className: "w-3 h-3 text-(--slate-9)"
16788
16788
  }),
16789
16789
  text: `${e.schemas.length} schema${e.schemas.length === 1 ? "" : "s"}`
16790
16790
  })
@@ -16800,18 +16800,18 @@ let __tla = Promise.all([
16800
16800
  }, renderSchemaInfo = (e) => {
16801
16801
  let t = (0, import_jsx_runtime.jsx)(Badge, {
16802
16802
  variant: "outline",
16803
- className: "text-xs bg-[var(--green-4)] text-[var(--green-11)]",
16803
+ className: "text-xs bg-(--green-4) text-(--green-11)",
16804
16804
  children: "Schema"
16805
16805
  }), n = e.tables.map((e2) => (0, import_jsx_runtime.jsxs)("div", {
16806
- className: "flex items-center justify-between text-xs rounded hover:bg-[var(--slate-3)]",
16806
+ className: "flex items-center justify-between text-xs rounded hover:bg-(--slate-3)",
16807
16807
  children: [
16808
16808
  (0, import_jsx_runtime.jsxs)("div", {
16809
16809
  className: "flex items-center gap-2",
16810
16810
  children: [
16811
16811
  e2.type === "view" ? (0, import_jsx_runtime.jsx)(Eye, {
16812
- className: "w-3 h-3 text-[var(--blue-9)]"
16812
+ className: "w-3 h-3 text-(--blue-9)"
16813
16813
  }) : (0, import_jsx_runtime.jsx)(Table2, {
16814
- className: "w-3 h-3 text-[var(--green-9)]"
16814
+ className: "w-3 h-3 text-(--green-9)"
16815
16815
  }),
16816
16816
  (0, import_jsx_runtime.jsx)("span", {
16817
16817
  children: e2.name
@@ -16820,7 +16820,7 @@ let __tla = Promise.all([
16820
16820
  }),
16821
16821
  (0, import_jsx_runtime.jsx)(Badge, {
16822
16822
  variant: "outline",
16823
- className: `text-xs ${e2.type === "view" ? "bg-[var(--blue-4)] text-[var(--blue-11)]" : "bg-[var(--green-4)] text-[var(--green-11)]"}`,
16823
+ className: `text-xs ${e2.type === "view" ? "bg-(--blue-4) text-(--blue-11)" : "bg-(--green-4) text-(--green-11)"}`,
16824
16824
  children: e2.type
16825
16825
  })
16826
16826
  ]
@@ -16830,7 +16830,7 @@ let __tla = Promise.all([
16830
16830
  children: [
16831
16831
  (0, import_jsx_runtime.jsx)(SectionHeader, {
16832
16832
  icon: (0, import_jsx_runtime.jsx)(Layers, {
16833
- className: "w-4 h-4 text-[var(--green-9)]"
16833
+ className: "w-4 h-4 text-(--green-9)"
16834
16834
  }),
16835
16835
  title: e.name,
16836
16836
  badge: t
@@ -16839,7 +16839,7 @@ let __tla = Promise.all([
16839
16839
  className: "py-2",
16840
16840
  children: (0, import_jsx_runtime.jsx)(StatisticItem, {
16841
16841
  icon: (0, import_jsx_runtime.jsx)(Table2, {
16842
- className: "w-3 h-3 text-[var(--slate-9)]"
16842
+ className: "w-3 h-3 text-(--slate-9)"
16843
16843
  }),
16844
16844
  text: `${e.tables.length} table${e.tables.length === 1 ? "" : "s"}`
16845
16845
  })
@@ -16865,7 +16865,7 @@ let __tla = Promise.all([
16865
16865
  className: "flex items-center gap-2 ml-4",
16866
16866
  children: [
16867
16867
  (0, import_jsx_runtime.jsx)(Table2, {
16868
- className: "w-3 h-3 text-[var(--green-9)]"
16868
+ className: "w-3 h-3 text-(--green-9)"
16869
16869
  }),
16870
16870
  (0, import_jsx_runtime.jsx)("span", {
16871
16871
  className: "text-xs",
@@ -16875,10 +16875,10 @@ let __tla = Promise.all([
16875
16875
  }, e2.name))), (0, import_jsx_runtime.jsxs)("div", {
16876
16876
  children: [
16877
16877
  (0, import_jsx_runtime.jsxs)("div", {
16878
- className: "flex items-center gap-2 text-xs rounded hover:bg-[var(--slate-3)] ml-2",
16878
+ className: "flex items-center gap-2 text-xs rounded hover:bg-(--slate-3) ml-2",
16879
16879
  children: [
16880
16880
  (0, import_jsx_runtime.jsx)(Layers, {
16881
- className: "w-3 h-3 text-[var(--slate-9)]"
16881
+ className: "w-3 h-3 text-(--slate-9)"
16882
16882
  }),
16883
16883
  (0, import_jsx_runtime.jsx)("span", {
16884
16884
  children: t2.name
@@ -16909,7 +16909,7 @@ let __tla = Promise.all([
16909
16909
  className: "flex items-center gap-2",
16910
16910
  children: [
16911
16911
  (0, import_jsx_runtime.jsx)(Database, {
16912
- className: "w-3 h-3 text-[var(--blue-9)]"
16912
+ className: "w-3 h-3 text-(--blue-9)"
16913
16913
  }),
16914
16914
  (0, import_jsx_runtime.jsx)("span", {
16915
16915
  className: "text-xs",
@@ -16930,7 +16930,7 @@ let __tla = Promise.all([
16930
16930
  className: "flex items-center gap-2",
16931
16931
  children: [
16932
16932
  (0, import_jsx_runtime.jsx)(Table2, {
16933
- className: "w-3 h-3 text-[var(--blue-9)]"
16933
+ className: "w-3 h-3 text-(--blue-9)"
16934
16934
  }),
16935
16935
  (0, import_jsx_runtime.jsx)("span", {
16936
16936
  className: "text-xs",
@@ -16943,7 +16943,7 @@ let __tla = Promise.all([
16943
16943
  children: [
16944
16944
  (0, import_jsx_runtime.jsx)(SectionHeader, {
16945
16945
  icon: (0, import_jsx_runtime.jsx)(Cog, {
16946
- className: "w-4 h-4 text-[var(--purple-9)]"
16946
+ className: "w-4 h-4 text-(--purple-9)"
16947
16947
  }),
16948
16948
  title: o
16949
16949
  }),
@@ -16961,7 +16961,7 @@ let __tla = Promise.all([
16961
16961
  label: "Source",
16962
16962
  value: (0, import_jsx_runtime.jsx)(Badge, {
16963
16963
  variant: "outline",
16964
- className: "text-xs bg-[var(--green-4)] text-[var(--green-11)]",
16964
+ className: "text-xs bg-(--green-4) text-(--green-11)",
16965
16965
  children: e.source
16966
16966
  })
16967
16967
  })
@@ -16972,13 +16972,13 @@ let __tla = Promise.all([
16972
16972
  children: [
16973
16973
  (0, import_jsx_runtime.jsx)(StatisticItem, {
16974
16974
  icon: (0, import_jsx_runtime.jsx)(Database, {
16975
- className: "w-3 h-3 text-[var(--slate-9)]"
16975
+ className: "w-3 h-3 text-(--slate-9)"
16976
16976
  }),
16977
16977
  text: `${n} ${databasesText.pluralize(n)}`
16978
16978
  }),
16979
16979
  (0, import_jsx_runtime.jsx)(StatisticItem, {
16980
16980
  icon: (0, import_jsx_runtime.jsx)(Layers, {
16981
- className: "w-3 h-3 text-[var(--slate-9)]"
16981
+ className: "w-3 h-3 text-(--slate-9)"
16982
16982
  }),
16983
16983
  text: `${r} ${schemasText.pluralize(r)}`
16984
16984
  })
@@ -17000,17 +17000,17 @@ let __tla = Promise.all([
17000
17000
  children: [
17001
17001
  (0, import_jsx_runtime.jsx)(Info, {
17002
17002
  size: 10,
17003
- className: "mt-1 text-[var(--slate-10)] shrink-0"
17003
+ className: "mt-1 text-(--slate-10) shrink-0"
17004
17004
  }),
17005
17005
  (0, import_jsx_runtime.jsxs)("span", {
17006
- className: "text-xs text-[var(--slate-11)]",
17006
+ className: "text-xs text-(--slate-11)",
17007
17007
  children: [
17008
17008
  "No ",
17009
17009
  e,
17010
17010
  " information available.",
17011
17011
  " \n",
17012
17012
  (0, import_jsx_runtime.jsx)("span", {
17013
- className: "text-[var(--blue-10)]",
17013
+ className: "text-(--blue-10)",
17014
17014
  children: "Introspect to see more details."
17015
17015
  })
17016
17016
  ]