@marimo-team/islands 0.24.1-dev41 → 0.24.1-dev43
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.
- package/dist/{ConnectedDataExplorerComponent-4UvlnITc.js → ConnectedDataExplorerComponent-CxLgYj_n.js} +1038 -1038
- package/dist/{any-language-editor-ClDhQoll.js → any-language-editor-BrPYtXHK.js} +1 -1
- package/dist/{chat-ui-BzZL5_XE.js → chat-ui-Mjq3lBLn.js} +1335 -1335
- package/dist/{common-DVtMyyCC.js → common-IoLWZR0C.js} +20955 -20975
- package/dist/{input-CIaA2N0m.js → dropdown-menu-DEu759Oe.js} +930 -927
- package/dist/{error-banner-BbxpEiD5.js → error-banner-BT4uIIQ2.js} +190 -192
- package/dist/{glide-data-editor-CgO5z9xu.js → glide-data-editor-C2RTkAgQ.js} +51 -51
- package/dist/{html-to-image-DPAZGZSi.js → html-to-image-hKcfSWj_.js} +5795 -5590
- package/dist/main.js +8696 -8703
- package/dist/{mermaid-BBTUHwCi.js → mermaid-OsTxhZOI.js} +12 -12
- package/dist/{process-output-oZcxC_tq.js → process-output-BkHK-KDc.js} +6 -6
- package/dist/{reveal-component-BHpu6-qW.js → reveal-component-DUBiSLUI.js} +11 -11
- package/dist/{strings-CoQ5sA4r.js → select-Bakm9EUs.js} +50 -53
- package/dist/{spec-6c0_fLYz.js → spec-DqUrBQpS.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{useDateFormatter-6ImHK1ln.js → useDateFormatter-DjRKOAkR.js} +1 -1
- package/dist/{vega-component-DlnGFDeY.js → vega-component-A2xO4BUa.js} +17 -17
- package/package.json +1 -1
- package/src/components/chat/acp/agent-panel.tsx +4 -6
- package/src/components/data-table/columns.tsx +130 -132
- package/src/components/datasources/datasources.tsx +16 -17
- package/src/components/editor/actions/useNotebookActions.tsx +50 -0
- package/src/components/editor/chrome/panels/components.tsx +1 -1
- package/src/components/editor/connections/__tests__/add-connection-button.test.tsx +129 -0
- package/src/components/editor/connections/add-connection-button.tsx +132 -0
- package/src/components/editor/connections/components.tsx +11 -0
- package/src/components/editor/connections/quick-add-data-sources.tsx +11 -11
- package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +109 -1
- package/src/components/storage/storage-inspector.tsx +15 -17
- package/src/core/codemirror/language/panel/sql.test.tsx +69 -0
- package/src/core/codemirror/language/panel/sql.tsx +81 -4
- package/src/core/codemirror/markdown/commands.ts +1 -1
- package/src/core/codemirror/markdown/completions.ts +15 -17
|
@@ -3,10 +3,10 @@ import { g as t } from "./button-DOCIubLd.js";
|
|
|
3
3
|
import { t as n } from "./react-DMWcHin-.js";
|
|
4
4
|
import { t as r } from "./compiler-runtime-CAH9RLw2.js";
|
|
5
5
|
import { t as i } from "./jsx-runtime-CpoKNRgu.js";
|
|
6
|
-
import { n as a } from "./error-banner-
|
|
6
|
+
import { n as a } from "./error-banner-BT4uIIQ2.js";
|
|
7
7
|
import { n as o } from "./useTheme-CLjV5H1i.js";
|
|
8
|
-
import { t as s } from "./
|
|
9
|
-
import { t as c } from "./
|
|
8
|
+
import { t as s } from "./useAsyncData-BPIoRmNG.js";
|
|
9
|
+
import { t as c } from "./purify.es-CB-YO1Hn.js";
|
|
10
10
|
import { S as l, a as u, f as d, g as f, h as p, i as m, o as h, v as g, x as _, y as v } from "./chunk-NSK5VX7P-CDTMcJB0.js";
|
|
11
11
|
import { n as y, r as b, t as x } from "./src-C31ngt98.js";
|
|
12
12
|
import { n as S } from "./chunk-Y2CYZVJY-DoegUj_e.js";
|
|
@@ -904,8 +904,8 @@ var dr = /* @__PURE__ */ S((e, t, n, r) => {
|
|
|
904
904
|
t = r.code;
|
|
905
905
|
let i = A();
|
|
906
906
|
y.debug(i), t.length > (i?.maxTextSize ?? Bn) && (t = Vn);
|
|
907
|
-
let a = `#${e}`, o = "i" + e,
|
|
908
|
-
let e = x(p ?
|
|
907
|
+
let a = `#${e}`, o = "i" + e, s = "#" + o, l = "d" + e, u = "#" + l, d = /* @__PURE__ */ S(() => {
|
|
908
|
+
let e = x(p ? s : u).node();
|
|
909
909
|
e && "remove" in e && e.remove();
|
|
910
910
|
}, "removeTempElements"), f = x(document.body), p = i.securityLevel === Hn, m = i.securityLevel === Un, h = i.fontFamily;
|
|
911
911
|
if (n !== void 0) {
|
|
@@ -941,7 +941,7 @@ var dr = /* @__PURE__ */ S((e, t, n, r) => {
|
|
|
941
941
|
if (y.debug("config.arrowMarkerAbsolute", i.arrowMarkerAbsolute), k = sr(k, p, ce(i.arrowMarkerAbsolute)), p) {
|
|
942
942
|
let e = f.select(u + " svg").node();
|
|
943
943
|
k = cr(k, e);
|
|
944
|
-
} else m || (k =
|
|
944
|
+
} else m || (k = c.sanitize(k, {
|
|
945
945
|
ADD_TAGS: $n,
|
|
946
946
|
ADD_ATTR: er,
|
|
947
947
|
HTML_INTEGRATION_POINTS: { foreignobject: !0 }
|
|
@@ -1136,11 +1136,11 @@ function Mr() {
|
|
|
1136
1136
|
return Array.from({ length: 6 }, () => "abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random() * 26)]).join("");
|
|
1137
1137
|
}
|
|
1138
1138
|
var Nr = (e) => {
|
|
1139
|
-
let n = (0, Qe.c)(15), { diagram: r, theme: i, themeVariables:
|
|
1139
|
+
let n = (0, Qe.c)(15), { diagram: r, theme: i, themeVariables: c } = e, [l] = (0, kr.useState)(Pr), u = o().theme === "dark", d = i ?? (u ? "dark" : "forest");
|
|
1140
1140
|
Or.initialize({
|
|
1141
1141
|
...jr,
|
|
1142
1142
|
theme: d,
|
|
1143
|
-
themeVariables:
|
|
1143
|
+
themeVariables: c,
|
|
1144
1144
|
darkMode: u
|
|
1145
1145
|
});
|
|
1146
1146
|
let f;
|
|
@@ -1150,14 +1150,14 @@ var Nr = (e) => {
|
|
|
1150
1150
|
throw document.getElementById(l)?.remove(), t.warn("Failed to render mermaid diagram", e), e;
|
|
1151
1151
|
})).svg, n[2] = l, n[3] = p, n[4] = m) : m = n[4];
|
|
1152
1152
|
let h;
|
|
1153
|
-
n[5] !== u || n[6] !== l || n[7] !== d || n[8] !==
|
|
1153
|
+
n[5] !== u || n[6] !== l || n[7] !== d || n[8] !== c || n[9] !== p ? (h = [
|
|
1154
1154
|
p,
|
|
1155
1155
|
l,
|
|
1156
1156
|
u,
|
|
1157
1157
|
d,
|
|
1158
|
-
|
|
1159
|
-
], n[5] = u, n[6] = l, n[7] = d, n[8] =
|
|
1160
|
-
let { data: g, error: _ } =
|
|
1158
|
+
c
|
|
1159
|
+
], n[5] = u, n[6] = l, n[7] = d, n[8] = c, n[9] = p, n[10] = h) : h = n[10];
|
|
1160
|
+
let { data: g, error: _ } = s(m, h);
|
|
1161
1161
|
if (_) {
|
|
1162
1162
|
let e;
|
|
1163
1163
|
return n[11] === _ ? e = n[12] : (e = /* @__PURE__ */ (0, Ar.jsx)(a, { error: _ }), n[11] = _, n[12] = e), e;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as e, O as t, et as n } from "./html-to-image-hKcfSWj_.js";
|
|
2
2
|
import { u as r } from "./dist-DTSuOdDc.js";
|
|
3
|
-
import {
|
|
3
|
+
import { b as i } from "./select-Bakm9EUs.js";
|
|
4
4
|
import { n as a } from "./semaphore-89jsoHtS.js";
|
|
5
5
|
var o = r("file", [["path", {
|
|
6
6
|
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
@@ -23,8 +23,8 @@ function c(e) {
|
|
|
23
23
|
for (let e = 0; e < a; e++) o[e] = i.charCodeAt(e);
|
|
24
24
|
return new Blob([o], { type: r });
|
|
25
25
|
}
|
|
26
|
-
function l({ contents:
|
|
27
|
-
return r ? c(e
|
|
26
|
+
function l({ contents: e, mimeType: n, isBase64: r }) {
|
|
27
|
+
return r ? c(t(e, n)) : new Blob([e], { type: n });
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/core/dom/events.ts
|
|
@@ -72,8 +72,8 @@ function v(e) {
|
|
|
72
72
|
}
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region src/components/editor/output/console/process-output.ts
|
|
75
|
-
function y(
|
|
76
|
-
return
|
|
75
|
+
function y(t) {
|
|
76
|
+
return t.mimetype.startsWith("application/vnd.marimo") || t.mimetype === "text/html" ? n(i.asString(t.data)) : e(i.asString(t.data));
|
|
77
77
|
}
|
|
78
78
|
//#endregion
|
|
79
79
|
export { d as a, h as c, s as d, o as f, m as i, c as l, _ as n, p as o, v as r, f as s, y as t, l as u };
|
|
@@ -2,11 +2,11 @@ import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
|
2
2
|
import { c as t, g as n, h as r, m as i, t as a } from "./button-DOCIubLd.js";
|
|
3
3
|
import { t as o } from "./react-DMWcHin-.js";
|
|
4
4
|
import { t as s } from "./compiler-runtime-CAH9RLw2.js";
|
|
5
|
-
import { Ct as c,
|
|
5
|
+
import { Ct as c, rt as l } from "./html-to-image-hKcfSWj_.js";
|
|
6
6
|
import { u } from "./dist-DTSuOdDc.js";
|
|
7
|
-
import {
|
|
8
|
-
import { R as x } from "./
|
|
9
|
-
import { X as S } from "./
|
|
7
|
+
import { J as d, X as f, Y as p, in as m, l as h, n as g, rn as _, sn as v, t as y, u as b } from "./common-IoLWZR0C.js";
|
|
8
|
+
import { R as x } from "./select-Bakm9EUs.js";
|
|
9
|
+
import { X as S } from "./dropdown-menu-DEu759Oe.js";
|
|
10
10
|
import { t as C } from "./jsx-runtime-CpoKNRgu.js";
|
|
11
11
|
import { Tc as w } from "./schemas-DeBAkn_c.js";
|
|
12
12
|
import { t as T } from "./tooltip-rwx3Qbw6.js";
|
|
@@ -6455,7 +6455,7 @@ var ua = (e) => {
|
|
|
6455
6455
|
}, da = (e) => {
|
|
6456
6456
|
let n = (0, j.c)(147), { slideCells: o, layout: s, setLayout: l, noOutputIds: u, activeIndex: y, onSlideChange: b, mode: x, configWidth: S, isEditable: C } = e, k = C !== void 0 && C, M = (0, A.useRef)(null), N = (0, A.useRef)(null), { width: ee, height: P } = ea(M), F = w() != null, te = D(c), ne;
|
|
6457
6457
|
n[0] === te ? ne = n[1] : (ne = te ? [] : [Ji], n[0] = te, n[1] = ne);
|
|
6458
|
-
let re = ne, [ie, I] = (0, A.useState)(fa), ae =
|
|
6458
|
+
let re = ne, [ie, I] = (0, A.useState)(fa), ae = g(o), oe;
|
|
6459
6459
|
n[2] === ae ? oe = n[3] : (oe = !O() && ae, n[2] = ae, n[3] = oe);
|
|
6460
6460
|
let L = oe, se = y == null ? void 0 : o[y], ce;
|
|
6461
6461
|
n[4] !== se || n[5] !== o ? (ce = se ?? o.at(0), n[4] = se, n[5] = o, n[6] = ce) : ce = n[6];
|
|
@@ -6630,7 +6630,7 @@ var ua = (e) => {
|
|
|
6630
6630
|
"aria-label": Ge ?? void 0,
|
|
6631
6631
|
children: [Ge && /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
6632
6632
|
className: "flex items-center gap-1.5 px-3 py-1.5 text-xs text-muted-foreground border-b bg-muted/40",
|
|
6633
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
6633
|
+
children: [/* @__PURE__ */ (0, q.jsx)(_, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, q.jsx)("span", { children: Ge })]
|
|
6634
6634
|
}), /* @__PURE__ */ (0, q.jsx)("div", {
|
|
6635
6635
|
className: "flex-1 overflow-auto flex",
|
|
6636
6636
|
children: /* @__PURE__ */ (0, q.jsx)("div", {
|
|
@@ -6657,7 +6657,7 @@ var ua = (e) => {
|
|
|
6657
6657
|
"aria-disabled": ve,
|
|
6658
6658
|
"aria-label": ve ? "Code always shown" : H ? "Hide code" : "Show code",
|
|
6659
6659
|
onClick: G,
|
|
6660
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
6660
|
+
children: /* @__PURE__ */ (0, q.jsx)(v, { className: "h-4 w-4" })
|
|
6661
6661
|
})
|
|
6662
6662
|
}), n[111] = H, n[112] = ve, n[113] = L, n[114] = G, n[115] = et) : et = n[115];
|
|
6663
6663
|
let tt;
|
|
@@ -6672,7 +6672,7 @@ var ua = (e) => {
|
|
|
6672
6672
|
onClick: () => {
|
|
6673
6673
|
N.current?.getViewportElement()?.requestFullscreen().catch(ga);
|
|
6674
6674
|
},
|
|
6675
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
6675
|
+
children: /* @__PURE__ */ (0, q.jsx)(m, { className: "h-4 w-4" })
|
|
6676
6676
|
})
|
|
6677
6677
|
}), n[116] = tt) : tt = n[116];
|
|
6678
6678
|
let nt;
|
|
@@ -6714,7 +6714,7 @@ var ua = (e) => {
|
|
|
6714
6714
|
fine: 4
|
|
6715
6715
|
}, n[128] = at) : at = n[128];
|
|
6716
6716
|
let ot;
|
|
6717
|
-
n[129] === F ? ot = n[130] : (ot = /* @__PURE__ */ (0, q.jsx)(
|
|
6717
|
+
n[129] === F ? ot = n[130] : (ot = /* @__PURE__ */ (0, q.jsx)(f, {
|
|
6718
6718
|
className: "mo-slides-notes-resize",
|
|
6719
6719
|
hitAreaMargins: at,
|
|
6720
6720
|
disabled: F
|
|
@@ -6732,7 +6732,7 @@ var ua = (e) => {
|
|
|
6732
6732
|
})
|
|
6733
6733
|
}), n[131] = s, n[132] = l, n[133] = st, n[134] = ct) : ct = n[134];
|
|
6734
6734
|
let lt;
|
|
6735
|
-
n[135] !== K || n[136] !== ot || n[137] !== ct ? (lt = /* @__PURE__ */ (0, q.jsxs)(
|
|
6735
|
+
n[135] !== K || n[136] !== ot || n[137] !== ct ? (lt = /* @__PURE__ */ (0, q.jsxs)(p, {
|
|
6736
6736
|
direction: "vertical",
|
|
6737
6737
|
autoSaveId: "marimo:slides:notes-panel",
|
|
6738
6738
|
className: "flex-1 min-w-0",
|
|
@@ -6743,7 +6743,7 @@ var ua = (e) => {
|
|
|
6743
6743
|
]
|
|
6744
6744
|
}), n[135] = K, n[136] = ot, n[137] = ct, n[138] = lt) : lt = n[138];
|
|
6745
6745
|
let ut;
|
|
6746
|
-
n[139] !== R || n[140] !== S || n[141] !== s || n[142] !== l ? (ut = /* @__PURE__ */ (0, q.jsx)(
|
|
6746
|
+
n[139] !== R || n[140] !== S || n[141] !== s || n[142] !== l ? (ut = /* @__PURE__ */ (0, q.jsx)(h, {
|
|
6747
6747
|
configWidth: S,
|
|
6748
6748
|
layout: s,
|
|
6749
6749
|
setLayout: l,
|
|
@@ -1014,8 +1014,36 @@ function rn(e) {
|
|
|
1014
1014
|
return t.warn(`Unexpected object: ${JSON.stringify(e)}`), e;
|
|
1015
1015
|
}
|
|
1016
1016
|
//#endregion
|
|
1017
|
-
//#region src/
|
|
1018
|
-
|
|
1017
|
+
//#region src/utils/strings.ts
|
|
1018
|
+
function an(e) {
|
|
1019
|
+
return e ? e.charAt(0).toUpperCase() + e.slice(1) : "";
|
|
1020
|
+
}
|
|
1021
|
+
function on(e) {
|
|
1022
|
+
if (!e) return "";
|
|
1023
|
+
if (typeof e != "string") throw t.error(e), TypeError(`Expected string, got ${typeof e}`);
|
|
1024
|
+
return /[A-Za-z]/.test(e) ? e.replaceAll(/([\da-z])([A-Z])/g, "$1 $2").replaceAll(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replaceAll(/[\s_-]+/g, " ").trim().split(" ").map(an).join(" ") : e;
|
|
1025
|
+
}
|
|
1026
|
+
var sn = {
|
|
1027
|
+
startCase: on,
|
|
1028
|
+
htmlEscape: (e) => e && e.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'").replaceAll("\n", " "),
|
|
1029
|
+
withTrailingSlash(e) {
|
|
1030
|
+
return e.endsWith("/") ? e : `${e}/`;
|
|
1031
|
+
},
|
|
1032
|
+
withoutTrailingSlash(e) {
|
|
1033
|
+
return e.endsWith("/") ? e.slice(0, -1) : e;
|
|
1034
|
+
},
|
|
1035
|
+
withoutLeadingSlash(e) {
|
|
1036
|
+
return e.startsWith("/") ? e.slice(1) : e;
|
|
1037
|
+
},
|
|
1038
|
+
asString: (e) => {
|
|
1039
|
+
if (typeof e == "string") return e;
|
|
1040
|
+
try {
|
|
1041
|
+
return JSON.stringify(e);
|
|
1042
|
+
} catch {
|
|
1043
|
+
return String(e);
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
}, $ = c(), cn = a("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md", { variants: { subcontent: { true: "shadow-lg" } } }), ln = a("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", { variants: { inset: { true: "pl-8" } } }), un = "data-disabled:pointer-events-none data-disabled:opacity-50", dn = a(n("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground", un), { variants: {} }), fn = a("absolute left-2 flex h-3.5 w-3.5 items-center justify-center", { variants: {} }), pn = a("px-2 py-1.5 text-sm font-semibold", { variants: { inset: { true: "pl-8" } } }), mn = a(n("menu-item relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden", un), {
|
|
1019
1047
|
variants: {
|
|
1020
1048
|
inset: { true: "pl-8" },
|
|
1021
1049
|
variant: {
|
|
@@ -1027,7 +1055,7 @@ var $ = c(), an = a("z-50 min-w-32 overflow-hidden rounded-md border bg-popover
|
|
|
1027
1055
|
}
|
|
1028
1056
|
},
|
|
1029
1057
|
defaultVariants: { variant: "default" }
|
|
1030
|
-
}),
|
|
1058
|
+
}), hn = a("-mx-1 my-1 h-px bg-border last:hidden", { variants: {} }), gn = (e) => {
|
|
1031
1059
|
let t = (0, $.c)(8), r, i;
|
|
1032
1060
|
t[0] === e ? (r = t[1], i = t[2]) : ({className: r, ...i} = e, t[0] = e, t[1] = r, t[2] = i);
|
|
1033
1061
|
let a;
|
|
@@ -1038,22 +1066,22 @@ var $ = c(), an = a("z-50 min-w-32 overflow-hidden rounded-md border bg-popover
|
|
|
1038
1066
|
...i
|
|
1039
1067
|
}), t[5] = i, t[6] = a, t[7] = o) : o = t[7], o;
|
|
1040
1068
|
};
|
|
1041
|
-
|
|
1069
|
+
gn.displayName = "MenuShortcut";
|
|
1042
1070
|
//#endregion
|
|
1043
1071
|
//#region src/components/ui/native-select.tsx
|
|
1044
|
-
var
|
|
1072
|
+
var _n = a("flex h-6 w-fit mb-1 items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer", {
|
|
1045
1073
|
variants: { variant: {
|
|
1046
1074
|
default: "shadow-xs-solid border border-input hover:shadow-sm-solid focus:border-primary focus:shadow-md-solid disabled:hover:shadow-xs-solid",
|
|
1047
1075
|
ghost: "opacity-70 hover:opacity-100 focus:opacity-100"
|
|
1048
1076
|
} },
|
|
1049
1077
|
defaultVariants: { variant: "default" }
|
|
1050
|
-
}),
|
|
1078
|
+
}), vn = I.forwardRef((e, t) => {
|
|
1051
1079
|
let i = (0, $.c)(12), a, o, s;
|
|
1052
1080
|
i[0] === e ? (a = i[1], o = i[2], s = i[3]) : ({className: o, children: a, ...s} = e, i[0] = e, i[1] = a, i[2] = o, i[3] = s);
|
|
1053
1081
|
let c;
|
|
1054
1082
|
i[4] === Symbol.for("react.memo_cache_sentinel") ? (c = r.stopPropagation(), i[4] = c) : c = i[4];
|
|
1055
1083
|
let l;
|
|
1056
|
-
i[5] === o ? l = i[6] : (l = n(
|
|
1084
|
+
i[5] === o ? l = i[6] : (l = n(_n({}), o), i[5] = o, i[6] = l);
|
|
1057
1085
|
let u;
|
|
1058
1086
|
return i[7] !== a || i[8] !== s || i[9] !== t || i[10] !== l ? (u = /* @__PURE__ */ (0, L.jsx)("select", {
|
|
1059
1087
|
ref: t,
|
|
@@ -1063,14 +1091,14 @@ var mn = a("flex h-6 w-fit mb-1 items-center justify-between rounded-sm bg-backg
|
|
|
1063
1091
|
children: a
|
|
1064
1092
|
}), i[7] = a, i[8] = s, i[9] = t, i[10] = l, i[11] = u) : u = i[11], u;
|
|
1065
1093
|
});
|
|
1066
|
-
|
|
1094
|
+
vn.displayName = "NativeSelect";
|
|
1067
1095
|
//#endregion
|
|
1068
1096
|
//#region src/components/ui/select.tsx
|
|
1069
|
-
var
|
|
1097
|
+
var yn = ct, bn = ht, xn = S(ft), Sn = ut, Cn = I.forwardRef((e, t) => {
|
|
1070
1098
|
let r = (0, $.c)(21), i, a, o, s, c, l;
|
|
1071
1099
|
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4], c = r[5], l = r[6]) : ({className: a, children: i, onClear: o, variant: l, hideChevron: c, ...s} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s, r[5] = c, r[6] = l);
|
|
1072
1100
|
let u = c !== void 0 && c, d;
|
|
1073
|
-
r[7] !== a || r[8] !== l ? (d = n(
|
|
1101
|
+
r[7] !== a || r[8] !== l ? (d = n(_n({ variant: l }), "mb-0", a), r[7] = a, r[8] = l, r[9] = d) : d = r[9];
|
|
1074
1102
|
let f;
|
|
1075
1103
|
r[10] !== u || r[11] !== o ? (f = o ? /* @__PURE__ */ (0, L.jsx)("span", {
|
|
1076
1104
|
onPointerDown: (e) => {
|
|
@@ -1091,8 +1119,8 @@ var gn = ct, _n = ht, vn = S(ft), yn = ut, bn = I.forwardRef((e, t) => {
|
|
|
1091
1119
|
children: [i, p]
|
|
1092
1120
|
}), r[15] = i, r[16] = s, r[17] = t, r[18] = d, r[19] = p, r[20] = m) : m = r[20], m;
|
|
1093
1121
|
});
|
|
1094
|
-
|
|
1095
|
-
var
|
|
1122
|
+
Cn.displayName = lt.displayName;
|
|
1123
|
+
var wn = x(pt), Tn = I.forwardRef((e, t) => {
|
|
1096
1124
|
let r = (0, $.c)(21), i, a, o, s;
|
|
1097
1125
|
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4]) : ({className: a, children: i, position: s, ...o} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s);
|
|
1098
1126
|
let c = s === void 0 ? "popper" : s, l = c === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", u;
|
|
@@ -1115,7 +1143,7 @@ var xn = x(pt), Sn = I.forwardRef((e, t) => {
|
|
|
1115
1143
|
children: /* @__PURE__ */ (0, L.jsx)(N, { className: "h-4 w-4 opacity-50" })
|
|
1116
1144
|
}), r[14] = h) : h = r[14];
|
|
1117
1145
|
let g;
|
|
1118
|
-
return r[15] !== c || r[16] !== o || r[17] !== t || r[18] !== u || r[19] !== m ? (g = /* @__PURE__ */ (0, L.jsx)(
|
|
1146
|
+
return r[15] !== c || r[16] !== o || r[17] !== t || r[18] !== u || r[19] !== m ? (g = /* @__PURE__ */ (0, L.jsx)(xn, { children: /* @__PURE__ */ (0, L.jsx)(A, { children: /* @__PURE__ */ (0, L.jsxs)(wn, {
|
|
1119
1147
|
ref: t,
|
|
1120
1148
|
className: u,
|
|
1121
1149
|
position: c,
|
|
@@ -1127,8 +1155,8 @@ var xn = x(pt), Sn = I.forwardRef((e, t) => {
|
|
|
1127
1155
|
]
|
|
1128
1156
|
}) }) }), r[15] = c, r[16] = o, r[17] = t, r[18] = u, r[19] = m, r[20] = g) : g = r[20], g;
|
|
1129
1157
|
});
|
|
1130
|
-
|
|
1131
|
-
var
|
|
1158
|
+
Tn.displayName = pt.displayName;
|
|
1159
|
+
var En = I.forwardRef((e, t) => {
|
|
1132
1160
|
let r = (0, $.c)(9), i, a;
|
|
1133
1161
|
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
1134
1162
|
let o;
|
|
@@ -1140,12 +1168,12 @@ var Cn = I.forwardRef((e, t) => {
|
|
|
1140
1168
|
...a
|
|
1141
1169
|
}), r[5] = a, r[6] = t, r[7] = o, r[8] = s) : s = r[8], s;
|
|
1142
1170
|
});
|
|
1143
|
-
|
|
1144
|
-
var
|
|
1171
|
+
En.displayName = gt.displayName;
|
|
1172
|
+
var Dn = I.forwardRef((e, t) => {
|
|
1145
1173
|
let r = (0, $.c)(17), i, a, o, s;
|
|
1146
1174
|
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4]) : ({className: a, children: i, subtitle: s, ...o} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s);
|
|
1147
1175
|
let c;
|
|
1148
|
-
r[5] === a ? c = r[6] : (c = n("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground",
|
|
1176
|
+
r[5] === a ? c = r[6] : (c = n("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground", un, a), r[5] = a, r[6] = c);
|
|
1149
1177
|
let l;
|
|
1150
1178
|
r[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, L.jsx)("span", {
|
|
1151
1179
|
className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
@@ -1169,8 +1197,8 @@ var wn = I.forwardRef((e, t) => {
|
|
|
1169
1197
|
]
|
|
1170
1198
|
}), r[11] = o, r[12] = t, r[13] = s, r[14] = c, r[15] = d, r[16] = f) : f = r[16], f;
|
|
1171
1199
|
});
|
|
1172
|
-
|
|
1173
|
-
var
|
|
1200
|
+
Dn.displayName = _t.displayName;
|
|
1201
|
+
var On = I.forwardRef((e, t) => {
|
|
1174
1202
|
let r = (0, $.c)(9), i, a;
|
|
1175
1203
|
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
1176
1204
|
let o;
|
|
@@ -1182,37 +1210,6 @@ var Tn = I.forwardRef((e, t) => {
|
|
|
1182
1210
|
...a
|
|
1183
1211
|
}), r[5] = a, r[6] = t, r[7] = o, r[8] = s) : s = r[8], s;
|
|
1184
1212
|
});
|
|
1185
|
-
|
|
1186
|
-
//#endregion
|
|
1187
|
-
//#region src/utils/strings.ts
|
|
1188
|
-
function En(e) {
|
|
1189
|
-
return e ? e.charAt(0).toUpperCase() + e.slice(1) : "";
|
|
1190
|
-
}
|
|
1191
|
-
function Dn(e) {
|
|
1192
|
-
if (!e) return "";
|
|
1193
|
-
if (typeof e != "string") throw t.error(e), TypeError(`Expected string, got ${typeof e}`);
|
|
1194
|
-
return /[A-Za-z]/.test(e) ? e.replaceAll(/([\da-z])([A-Z])/g, "$1 $2").replaceAll(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replaceAll(/[\s_-]+/g, " ").trim().split(" ").map(En).join(" ") : e;
|
|
1195
|
-
}
|
|
1196
|
-
var On = {
|
|
1197
|
-
startCase: Dn,
|
|
1198
|
-
htmlEscape: (e) => e && e.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'").replaceAll("\n", " "),
|
|
1199
|
-
withTrailingSlash(e) {
|
|
1200
|
-
return e.endsWith("/") ? e : `${e}/`;
|
|
1201
|
-
},
|
|
1202
|
-
withoutTrailingSlash(e) {
|
|
1203
|
-
return e.endsWith("/") ? e.slice(0, -1) : e;
|
|
1204
|
-
},
|
|
1205
|
-
withoutLeadingSlash(e) {
|
|
1206
|
-
return e.startsWith("/") ? e.slice(1) : e;
|
|
1207
|
-
},
|
|
1208
|
-
asString: (e) => {
|
|
1209
|
-
if (typeof e == "string") return e;
|
|
1210
|
-
try {
|
|
1211
|
-
return JSON.stringify(e);
|
|
1212
|
-
} catch {
|
|
1213
|
-
return String(e);
|
|
1214
|
-
}
|
|
1215
|
-
}
|
|
1216
|
-
};
|
|
1213
|
+
On.displayName = St.displayName;
|
|
1217
1214
|
//#endregion
|
|
1218
|
-
export { dt as A, rn as C, Kt as D, qt as E, R as F, P as I, re as L, V as M, ie as N, Pt as O, B as P, N as R, nn as S, Qt as T,
|
|
1215
|
+
export { dt as A, rn as C, Kt as D, qt as E, R as F, P as I, re as L, V as M, ie as N, Pt as O, B as P, N as R, nn as S, Qt as T, pn as _, En as a, sn as b, Sn as c, un as d, gn as f, mn as g, dn as h, Dn as i, lt as j, At as k, vn as l, fn as m, Tn as n, On as o, cn as p, bn as r, Cn as s, yn as t, _n as u, hn as v, tn as w, an as x, ln as y };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { u as e } from "./dist-DTSuOdDc.js";
|
|
2
2
|
import { s as t } from "./useLifecycle-D-zb2Ha5.js";
|
|
3
|
-
import { i as n, o as r } from "./useDateFormatter-
|
|
4
|
-
import { C as i } from "./
|
|
3
|
+
import { i as n, o as r } from "./useDateFormatter-DjRKOAkR.js";
|
|
4
|
+
import { C as i } from "./select-Bakm9EUs.js";
|
|
5
5
|
var a = e("align-center-vertical", [
|
|
6
6
|
["path", {
|
|
7
7
|
d: "M12 2v20",
|