@vantageos/mosaic-blocks 0.5.27-alpha → 0.5.28-alpha
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/README.md +3 -3
- package/dist/index.cjs +874 -231
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +452 -3
- package/dist/index.d.ts +452 -3
- package/dist/index.js +857 -232
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -48,7 +48,7 @@ function _interopNamespace(e) {
|
|
|
48
48
|
var React30__namespace = /*#__PURE__*/_interopNamespace(React30);
|
|
49
49
|
|
|
50
50
|
// src/version.ts
|
|
51
|
-
var version = "0.5.
|
|
51
|
+
var version = "0.5.28-alpha";
|
|
52
52
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
53
53
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
54
54
|
}
|
|
@@ -6783,6 +6783,90 @@ function MosaicMemoryCard(props) {
|
|
|
6783
6783
|
);
|
|
6784
6784
|
}
|
|
6785
6785
|
MosaicMemoryCard.displayName = "MosaicMemoryCard";
|
|
6786
|
+
var memoryDashboardViewToggleButtonVariants = classVarianceAuthority.cva(
|
|
6787
|
+
"flex items-center justify-center rounded-md border border-border px-3 py-1.5 text-sm transition-colors",
|
|
6788
|
+
{
|
|
6789
|
+
variants: {
|
|
6790
|
+
pressed: {
|
|
6791
|
+
true: "bg-foreground text-background",
|
|
6792
|
+
false: "bg-background text-muted-foreground hover:bg-muted"
|
|
6793
|
+
}
|
|
6794
|
+
},
|
|
6795
|
+
defaultVariants: {
|
|
6796
|
+
pressed: false
|
|
6797
|
+
}
|
|
6798
|
+
}
|
|
6799
|
+
);
|
|
6800
|
+
function cn58(...classes) {
|
|
6801
|
+
return classes.filter(Boolean).join(" ");
|
|
6802
|
+
}
|
|
6803
|
+
function MosaicMemoryDashboard({
|
|
6804
|
+
title,
|
|
6805
|
+
addLabel,
|
|
6806
|
+
onAdd,
|
|
6807
|
+
stats,
|
|
6808
|
+
searchSlot,
|
|
6809
|
+
viewMode,
|
|
6810
|
+
onViewModeChange,
|
|
6811
|
+
tilesViewLabel,
|
|
6812
|
+
rowsViewLabel,
|
|
6813
|
+
children,
|
|
6814
|
+
className
|
|
6815
|
+
}) {
|
|
6816
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6817
|
+
"div",
|
|
6818
|
+
{
|
|
6819
|
+
"data-slot": "memory-dashboard",
|
|
6820
|
+
className: cn58(
|
|
6821
|
+
"flex flex-col gap-4 rounded-lg border border-border bg-background p-4",
|
|
6822
|
+
className
|
|
6823
|
+
),
|
|
6824
|
+
children: [
|
|
6825
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-3", children: [
|
|
6826
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "font-semibold text-foreground text-lg", children: title }),
|
|
6827
|
+
/* @__PURE__ */ jsxRuntime.jsx(MosaicButton, { type: "button", onClick: onAdd, children: addLabel })
|
|
6828
|
+
] }),
|
|
6829
|
+
stats.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "memory-dashboard-stats", className: "grid grid-cols-2 gap-3 sm:grid-cols-4", children: stats.map((stat) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6830
|
+
"div",
|
|
6831
|
+
{
|
|
6832
|
+
"data-slot": "memory-dashboard-stat",
|
|
6833
|
+
className: "flex flex-col rounded-md border border-border px-3 py-2",
|
|
6834
|
+
children: [
|
|
6835
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold text-foreground text-lg tabular-nums", children: stat.value }),
|
|
6836
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground text-xs", children: stat.label })
|
|
6837
|
+
]
|
|
6838
|
+
},
|
|
6839
|
+
stat.label
|
|
6840
|
+
)) }),
|
|
6841
|
+
searchSlot && /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "memory-dashboard-search", className: "w-full", children: searchSlot }),
|
|
6842
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "memory-dashboard-view-toggle", className: "flex items-center gap-2 self-start", children: [
|
|
6843
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6844
|
+
"button",
|
|
6845
|
+
{
|
|
6846
|
+
type: "button",
|
|
6847
|
+
"aria-pressed": viewMode === "tiles",
|
|
6848
|
+
onClick: () => onViewModeChange("tiles"),
|
|
6849
|
+
className: memoryDashboardViewToggleButtonVariants({ pressed: viewMode === "tiles" }),
|
|
6850
|
+
children: tilesViewLabel
|
|
6851
|
+
}
|
|
6852
|
+
),
|
|
6853
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6854
|
+
"button",
|
|
6855
|
+
{
|
|
6856
|
+
type: "button",
|
|
6857
|
+
"aria-pressed": viewMode === "rows",
|
|
6858
|
+
onClick: () => onViewModeChange("rows"),
|
|
6859
|
+
className: memoryDashboardViewToggleButtonVariants({ pressed: viewMode === "rows" }),
|
|
6860
|
+
children: rowsViewLabel
|
|
6861
|
+
}
|
|
6862
|
+
)
|
|
6863
|
+
] }),
|
|
6864
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "memory-dashboard-results", className: "flex flex-col gap-2", children })
|
|
6865
|
+
]
|
|
6866
|
+
}
|
|
6867
|
+
);
|
|
6868
|
+
}
|
|
6869
|
+
MosaicMemoryDashboard.displayName = "MosaicMemoryDashboard";
|
|
6786
6870
|
var templateAgentCardVariants = classVarianceAuthority.cva(
|
|
6787
6871
|
[
|
|
6788
6872
|
"rounded-lg border border-border bg-card text-card-foreground shadow-sm",
|
|
@@ -6806,7 +6890,7 @@ var templateAgentCardBadgeVariants = classVarianceAuthority.cva([
|
|
|
6806
6890
|
var templateAgentCardTagVariants = classVarianceAuthority.cva([
|
|
6807
6891
|
"inline-flex items-center rounded-full border border-border bg-muted px-2 py-0.5 text-xs text-muted-foreground"
|
|
6808
6892
|
]);
|
|
6809
|
-
function
|
|
6893
|
+
function cn59(...classes) {
|
|
6810
6894
|
return classes.filter(Boolean).join(" ");
|
|
6811
6895
|
}
|
|
6812
6896
|
var MAX_VISIBLE_TAGS2 = 3;
|
|
@@ -6875,7 +6959,7 @@ function MosaicTemplateAgentCard({
|
|
|
6875
6959
|
{
|
|
6876
6960
|
ref,
|
|
6877
6961
|
"data-slot": "template-agent-card",
|
|
6878
|
-
className:
|
|
6962
|
+
className: cn59(templateAgentCardVariants({ selected: isSelected }), "p-4", className),
|
|
6879
6963
|
children: [
|
|
6880
6964
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6881
6965
|
"button",
|
|
@@ -6884,7 +6968,7 @@ function MosaicTemplateAgentCard({
|
|
|
6884
6968
|
onClick: () => onSelect(template),
|
|
6885
6969
|
"aria-label": selectAriaLabel,
|
|
6886
6970
|
"aria-pressed": isSelected,
|
|
6887
|
-
className:
|
|
6971
|
+
className: cn59(
|
|
6888
6972
|
"flex min-w-0 flex-1 items-start gap-2 rounded-md text-left",
|
|
6889
6973
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6890
6974
|
),
|
|
@@ -6898,11 +6982,11 @@ function MosaicTemplateAgentCard({
|
|
|
6898
6982
|
}
|
|
6899
6983
|
) }),
|
|
6900
6984
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-3 flex flex-wrap items-center gap-2", children: [
|
|
6901
|
-
template.category && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6902
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6903
|
-
formatUsageCount(template.usageCount) != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6904
|
-
visibleTags.map((tag) => /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6905
|
-
hiddenTagCount > 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6985
|
+
template.category && /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn59(templateAgentCardBadgeVariants()), children: template.category }),
|
|
6986
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn59(templateAgentCardBadgeVariants()), children: agentCountLabel }),
|
|
6987
|
+
formatUsageCount(template.usageCount) != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn59(templateAgentCardBadgeVariants()), children: formatUsageCount(template.usageCount) }),
|
|
6988
|
+
visibleTags.map((tag) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn59(templateAgentCardTagVariants()), children: tag }, tag)),
|
|
6989
|
+
hiddenTagCount > 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn59(templateAgentCardTagVariants()), children: formatMoreTags(hiddenTagCount) })
|
|
6906
6990
|
] }),
|
|
6907
6991
|
(onPreview || onDuplicate) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-3 flex items-center gap-2 border-t border-border pt-2", children: [
|
|
6908
6992
|
onPreview && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -6911,7 +6995,7 @@ function MosaicTemplateAgentCard({
|
|
|
6911
6995
|
type: "button",
|
|
6912
6996
|
onClick: () => onPreview(template),
|
|
6913
6997
|
"aria-label": previewAriaLabel,
|
|
6914
|
-
className:
|
|
6998
|
+
className: cn59(
|
|
6915
6999
|
"inline-flex h-8 flex-1 items-center justify-center gap-1.5 rounded-md text-xs font-medium",
|
|
6916
7000
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
6917
7001
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6928,7 +7012,7 @@ function MosaicTemplateAgentCard({
|
|
|
6928
7012
|
type: "button",
|
|
6929
7013
|
onClick: () => onDuplicate(template),
|
|
6930
7014
|
"aria-label": duplicateAriaLabel,
|
|
6931
|
-
className:
|
|
7015
|
+
className: cn59(
|
|
6932
7016
|
"inline-flex h-8 flex-1 items-center justify-center gap-1.5 rounded-md text-xs font-medium",
|
|
6933
7017
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
6934
7018
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6945,7 +7029,7 @@ function MosaicTemplateAgentCard({
|
|
|
6945
7029
|
);
|
|
6946
7030
|
}
|
|
6947
7031
|
MosaicTemplateAgentCard.displayName = "MosaicTemplateAgentCard";
|
|
6948
|
-
function
|
|
7032
|
+
function cn60(...classes) {
|
|
6949
7033
|
return classes.filter(Boolean).join(" ");
|
|
6950
7034
|
}
|
|
6951
7035
|
function SearchIcon() {
|
|
@@ -7046,7 +7130,7 @@ function MosaicSelectorModal({
|
|
|
7046
7130
|
value: query,
|
|
7047
7131
|
onChange: (e) => setQuery(e.target.value),
|
|
7048
7132
|
placeholder: searchPlaceholder,
|
|
7049
|
-
className:
|
|
7133
|
+
className: cn60(
|
|
7050
7134
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7051
7135
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
7052
7136
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7060,7 +7144,7 @@ function MosaicSelectorModal({
|
|
|
7060
7144
|
{
|
|
7061
7145
|
type: "button",
|
|
7062
7146
|
onClick: () => setActiveCategory("all"),
|
|
7063
|
-
className:
|
|
7147
|
+
className: cn60(
|
|
7064
7148
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
7065
7149
|
activeCategory === "all" ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
7066
7150
|
),
|
|
@@ -7072,7 +7156,7 @@ function MosaicSelectorModal({
|
|
|
7072
7156
|
{
|
|
7073
7157
|
type: "button",
|
|
7074
7158
|
onClick: () => setActiveCategory(cat.id),
|
|
7075
|
-
className:
|
|
7159
|
+
className: cn60(
|
|
7076
7160
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
7077
7161
|
activeCategory === cat.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
7078
7162
|
),
|
|
@@ -7084,7 +7168,7 @@ function MosaicSelectorModal({
|
|
|
7084
7168
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
7085
7169
|
"div",
|
|
7086
7170
|
{
|
|
7087
|
-
className:
|
|
7171
|
+
className: cn60(
|
|
7088
7172
|
"max-h-[50vh] overflow-y-auto",
|
|
7089
7173
|
columns === 2 ? "grid grid-cols-1 gap-3 sm:grid-cols-2" : "flex flex-col gap-3"
|
|
7090
7174
|
),
|
|
@@ -7096,7 +7180,7 @@ function MosaicSelectorModal({
|
|
|
7096
7180
|
{
|
|
7097
7181
|
type: "button",
|
|
7098
7182
|
onClick: () => setPendingId(item.id),
|
|
7099
|
-
className:
|
|
7183
|
+
className: cn60(
|
|
7100
7184
|
"group relative rounded-lg border p-4 text-left transition-all duration-150",
|
|
7101
7185
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7102
7186
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50"
|
|
@@ -7134,7 +7218,7 @@ function MosaicSelectorModal({
|
|
|
7134
7218
|
{
|
|
7135
7219
|
type: "button",
|
|
7136
7220
|
onClick: onClose,
|
|
7137
|
-
className:
|
|
7221
|
+
className: cn60(
|
|
7138
7222
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
7139
7223
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
7140
7224
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7149,7 +7233,7 @@ function MosaicSelectorModal({
|
|
|
7149
7233
|
type: "button",
|
|
7150
7234
|
onClick: handleConfirm,
|
|
7151
7235
|
disabled: !pendingItem,
|
|
7152
|
-
className:
|
|
7236
|
+
className: cn60(
|
|
7153
7237
|
"inline-flex min-h-[44px] items-center justify-center rounded-md",
|
|
7154
7238
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
7155
7239
|
"hover:bg-primary/90",
|
|
@@ -7165,7 +7249,7 @@ function MosaicSelectorModal({
|
|
|
7165
7249
|
);
|
|
7166
7250
|
}
|
|
7167
7251
|
MosaicSelectorModal.displayName = "MosaicSelectorModal";
|
|
7168
|
-
function
|
|
7252
|
+
function cn61(...classes) {
|
|
7169
7253
|
return classes.filter(Boolean).join(" ");
|
|
7170
7254
|
}
|
|
7171
7255
|
function relativeTime(ts) {
|
|
@@ -7363,6 +7447,7 @@ function MosaicMessageCard({
|
|
|
7363
7447
|
removeBookmarkLabel,
|
|
7364
7448
|
bookmarkLabel,
|
|
7365
7449
|
copyMessageLabel,
|
|
7450
|
+
aiSenderLabel,
|
|
7366
7451
|
className
|
|
7367
7452
|
}) {
|
|
7368
7453
|
const [bookmarked, setBookmarked] = React30__namespace.useState(message.bookmarked ?? false);
|
|
@@ -7421,7 +7506,7 @@ function MosaicMessageCard({
|
|
|
7421
7506
|
"div",
|
|
7422
7507
|
{
|
|
7423
7508
|
"data-slot": "message-card",
|
|
7424
|
-
className:
|
|
7509
|
+
className: cn61(
|
|
7425
7510
|
"rounded-lg border border-border bg-card p-4 shadow-sm transition-shadow hover:shadow-md",
|
|
7426
7511
|
compact && "p-3",
|
|
7427
7512
|
message.sender.type === "user" && "bg-primary/5",
|
|
@@ -7431,7 +7516,7 @@ function MosaicMessageCard({
|
|
|
7431
7516
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7432
7517
|
"span",
|
|
7433
7518
|
{
|
|
7434
|
-
className:
|
|
7519
|
+
className: cn61(
|
|
7435
7520
|
"inline-flex shrink-0 items-center justify-center rounded-full text-white font-semibold",
|
|
7436
7521
|
compact ? "h-8 w-8 text-xs" : "h-10 w-10 text-sm",
|
|
7437
7522
|
message.sender.accentColor ?? "bg-muted text-muted-foreground"
|
|
@@ -7449,15 +7534,15 @@ function MosaicMessageCard({
|
|
|
7449
7534
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
7450
7535
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
|
|
7451
7536
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
7452
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
7453
|
-
message.sender.type === "ai" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "rounded-full bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground", children:
|
|
7537
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn61("font-medium", compact ? "text-sm" : "text-base"), children: message.sender.name }),
|
|
7538
|
+
message.sender.type === "ai" && aiSenderLabel && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "rounded-full bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground", children: aiSenderLabel })
|
|
7454
7539
|
] }),
|
|
7455
7540
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: relativeTime(message.timestamp) })
|
|
7456
7541
|
] }),
|
|
7457
7542
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7458
7543
|
"p",
|
|
7459
7544
|
{
|
|
7460
|
-
className:
|
|
7545
|
+
className: cn61(
|
|
7461
7546
|
"leading-relaxed text-foreground mb-3",
|
|
7462
7547
|
compact ? "text-sm" : "text-base"
|
|
7463
7548
|
),
|
|
@@ -7472,7 +7557,7 @@ function MosaicMessageCard({
|
|
|
7472
7557
|
{
|
|
7473
7558
|
type: "button",
|
|
7474
7559
|
onClick: handleLike,
|
|
7475
|
-
className:
|
|
7560
|
+
className: cn61(
|
|
7476
7561
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
7477
7562
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7478
7563
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -7490,7 +7575,7 @@ function MosaicMessageCard({
|
|
|
7490
7575
|
{
|
|
7491
7576
|
type: "button",
|
|
7492
7577
|
onClick: handleDislike,
|
|
7493
|
-
className:
|
|
7578
|
+
className: cn61(
|
|
7494
7579
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
7495
7580
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7496
7581
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -7535,7 +7620,7 @@ function MosaicMessageCard({
|
|
|
7535
7620
|
{
|
|
7536
7621
|
type: "button",
|
|
7537
7622
|
onClick: handleBookmark,
|
|
7538
|
-
className:
|
|
7623
|
+
className: cn61(
|
|
7539
7624
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
7540
7625
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7541
7626
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -7636,7 +7721,7 @@ function MosaicMessageCard({
|
|
|
7636
7721
|
);
|
|
7637
7722
|
}
|
|
7638
7723
|
MosaicMessageCard.displayName = "MosaicMessageCard";
|
|
7639
|
-
function
|
|
7724
|
+
function cn62(...classes) {
|
|
7640
7725
|
return classes.filter(Boolean).join(" ");
|
|
7641
7726
|
}
|
|
7642
7727
|
function SearchIcon2() {
|
|
@@ -7686,7 +7771,7 @@ function MessageListDesktop({
|
|
|
7686
7771
|
const filtered = query ? messages.filter(
|
|
7687
7772
|
(m) => m.content.toLowerCase().includes(query.toLowerCase()) || m.sender.name.toLowerCase().includes(query.toLowerCase())
|
|
7688
7773
|
) : messages;
|
|
7689
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-desktop", className:
|
|
7774
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-desktop", className: cn62("flex h-full flex-col", className), children: [
|
|
7690
7775
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
7691
7776
|
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-lg font-semibold", children: title }),
|
|
7692
7777
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative ml-auto max-w-xs flex-1", children: [
|
|
@@ -7698,7 +7783,7 @@ function MessageListDesktop({
|
|
|
7698
7783
|
value: query,
|
|
7699
7784
|
onChange: (e) => setQuery(e.target.value),
|
|
7700
7785
|
placeholder: searchPlaceholder,
|
|
7701
|
-
className:
|
|
7786
|
+
className: cn62(
|
|
7702
7787
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7703
7788
|
"text-sm placeholder:text-muted-foreground",
|
|
7704
7789
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7734,7 +7819,7 @@ function MessageListDesktop({
|
|
|
7734
7819
|
{
|
|
7735
7820
|
type: "button",
|
|
7736
7821
|
onClick: onLoadMore,
|
|
7737
|
-
className:
|
|
7822
|
+
className: cn62(
|
|
7738
7823
|
"w-full rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
7739
7824
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7740
7825
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7765,7 +7850,7 @@ function MessageListMobile({
|
|
|
7765
7850
|
copyMessageLabel,
|
|
7766
7851
|
className
|
|
7767
7852
|
}) {
|
|
7768
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-mobile", className:
|
|
7853
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-mobile", className: cn62("flex flex-col", className), children: [
|
|
7769
7854
|
title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sticky top-0 z-10 border-b border-border bg-background px-4 py-3", children: /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-base font-semibold", children: title }) }),
|
|
7770
7855
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3 p-4", children: [
|
|
7771
7856
|
isLoading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-3", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-20 animate-pulse rounded-lg bg-muted" }, i)) }),
|
|
@@ -7795,7 +7880,7 @@ function MessageListMobile({
|
|
|
7795
7880
|
{
|
|
7796
7881
|
type: "button",
|
|
7797
7882
|
onClick: onLoadMore,
|
|
7798
|
-
className:
|
|
7883
|
+
className: cn62(
|
|
7799
7884
|
"w-full min-h-[44px] rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
7800
7885
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7801
7886
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7810,7 +7895,7 @@ function MosaicMessageList(props) {
|
|
|
7810
7895
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MessageListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MessageListDesktop, { ...props });
|
|
7811
7896
|
}
|
|
7812
7897
|
MosaicMessageList.displayName = "MosaicMessageList";
|
|
7813
|
-
function
|
|
7898
|
+
function cn63(...classes) {
|
|
7814
7899
|
return classes.filter(Boolean).join(" ");
|
|
7815
7900
|
}
|
|
7816
7901
|
function ChevronLeftIcon2() {
|
|
@@ -7890,7 +7975,7 @@ function MosaicFilterSidebar({
|
|
|
7890
7975
|
{
|
|
7891
7976
|
"data-slot": "filter-sidebar",
|
|
7892
7977
|
style: { width, minWidth: isCollapsed && !isMobile ? "64px" : void 0 },
|
|
7893
|
-
className:
|
|
7978
|
+
className: cn63(
|
|
7894
7979
|
"relative flex flex-col border-r border-border bg-card",
|
|
7895
7980
|
"transition-[width] duration-200 ease-in-out",
|
|
7896
7981
|
"overflow-hidden",
|
|
@@ -7902,7 +7987,7 @@ function MosaicFilterSidebar({
|
|
|
7902
7987
|
{
|
|
7903
7988
|
type: "button",
|
|
7904
7989
|
onClick: onToggleCollapse,
|
|
7905
|
-
className:
|
|
7990
|
+
className: cn63(
|
|
7906
7991
|
"absolute -right-3 top-6 z-10 flex h-6 w-6 items-center justify-center rounded-full",
|
|
7907
7992
|
"border border-border bg-background shadow-sm",
|
|
7908
7993
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7932,7 +8017,7 @@ function MosaicFilterSidebar({
|
|
|
7932
8017
|
{
|
|
7933
8018
|
type: "button",
|
|
7934
8019
|
onClick: () => onFilterChange(f.id),
|
|
7935
|
-
className:
|
|
8020
|
+
className: cn63(
|
|
7936
8021
|
"flex min-h-[40px] items-center justify-between rounded-md px-3 py-2 text-sm font-medium",
|
|
7937
8022
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
7938
8023
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7952,7 +8037,7 @@ function MosaicFilterSidebar({
|
|
|
7952
8037
|
{
|
|
7953
8038
|
type: "button",
|
|
7954
8039
|
onClick: () => onCategoryChange(cat.id),
|
|
7955
|
-
className:
|
|
8040
|
+
className: cn63(
|
|
7956
8041
|
"flex min-h-[36px] items-center justify-between rounded-md px-3 py-1.5 text-sm",
|
|
7957
8042
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
7958
8043
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7972,7 +8057,7 @@ function MosaicFilterSidebar({
|
|
|
7972
8057
|
);
|
|
7973
8058
|
}
|
|
7974
8059
|
MosaicFilterSidebar.displayName = "MosaicFilterSidebar";
|
|
7975
|
-
function
|
|
8060
|
+
function cn64(...classes) {
|
|
7976
8061
|
return classes.filter(Boolean).join(" ");
|
|
7977
8062
|
}
|
|
7978
8063
|
function SearchIcon3() {
|
|
@@ -8097,7 +8182,7 @@ function AgentListDesktop({
|
|
|
8097
8182
|
value: query,
|
|
8098
8183
|
onChange: (e) => setQuery(e.target.value),
|
|
8099
8184
|
placeholder: searchPlaceholder,
|
|
8100
|
-
className:
|
|
8185
|
+
className: cn64(
|
|
8101
8186
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8102
8187
|
"text-sm placeholder:text-muted-foreground",
|
|
8103
8188
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8110,7 +8195,7 @@ function AgentListDesktop({
|
|
|
8110
8195
|
{
|
|
8111
8196
|
type: "button",
|
|
8112
8197
|
onClick: onCreateAgent,
|
|
8113
|
-
className:
|
|
8198
|
+
className: cn64(
|
|
8114
8199
|
"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
8115
8200
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8116
8201
|
),
|
|
@@ -8179,7 +8264,7 @@ function AgentListMobile({
|
|
|
8179
8264
|
{
|
|
8180
8265
|
type: "button",
|
|
8181
8266
|
onClick: () => setFilterOpen(true),
|
|
8182
|
-
className:
|
|
8267
|
+
className: cn64(
|
|
8183
8268
|
"inline-flex h-9 w-9 items-center justify-center rounded-md",
|
|
8184
8269
|
"border border-border bg-background text-foreground",
|
|
8185
8270
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -8194,7 +8279,7 @@ function AgentListMobile({
|
|
|
8194
8279
|
{
|
|
8195
8280
|
type: "button",
|
|
8196
8281
|
onClick: onCreateAgent,
|
|
8197
|
-
className:
|
|
8282
|
+
className: cn64(
|
|
8198
8283
|
"inline-flex h-9 items-center gap-1.5 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground",
|
|
8199
8284
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8200
8285
|
),
|
|
@@ -8215,7 +8300,7 @@ function AgentListMobile({
|
|
|
8215
8300
|
value: query,
|
|
8216
8301
|
onChange: (e) => setQuery(e.target.value),
|
|
8217
8302
|
placeholder: searchPlaceholder,
|
|
8218
|
-
className:
|
|
8303
|
+
className: cn64(
|
|
8219
8304
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8220
8305
|
"text-sm placeholder:text-muted-foreground",
|
|
8221
8306
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8277,7 +8362,7 @@ function MosaicAgentList(props) {
|
|
|
8277
8362
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(AgentListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(AgentListDesktop, { ...props });
|
|
8278
8363
|
}
|
|
8279
8364
|
MosaicAgentList.displayName = "MosaicAgentList";
|
|
8280
|
-
function
|
|
8365
|
+
function cn65(...classes) {
|
|
8281
8366
|
return classes.filter(Boolean).join(" ");
|
|
8282
8367
|
}
|
|
8283
8368
|
function StarIcon({ filled }) {
|
|
@@ -8374,7 +8459,7 @@ function MarketplaceCard({
|
|
|
8374
8459
|
"div",
|
|
8375
8460
|
{
|
|
8376
8461
|
"data-slot": "marketplace-card",
|
|
8377
|
-
className:
|
|
8462
|
+
className: cn65(
|
|
8378
8463
|
"rounded-lg border border-border bg-card p-4 transition-shadow hover:shadow-md",
|
|
8379
8464
|
compact ? "flex items-center gap-3" : "flex flex-col gap-3"
|
|
8380
8465
|
),
|
|
@@ -8382,7 +8467,7 @@ function MarketplaceCard({
|
|
|
8382
8467
|
item.icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8383
8468
|
"div",
|
|
8384
8469
|
{
|
|
8385
|
-
className:
|
|
8470
|
+
className: cn65(
|
|
8386
8471
|
"flex shrink-0 items-center justify-center rounded-lg",
|
|
8387
8472
|
compact ? "h-10 w-10" : "h-12 w-12",
|
|
8388
8473
|
item.accentClass ?? "bg-muted text-muted-foreground"
|
|
@@ -8393,7 +8478,7 @@ function MarketplaceCard({
|
|
|
8393
8478
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
8394
8479
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
8395
8480
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
8396
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
8481
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: cn65("font-semibold leading-tight", compact ? "text-sm" : "text-base"), children: item.title }),
|
|
8397
8482
|
item.description && !compact && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-muted-foreground line-clamp-2", children: item.description })
|
|
8398
8483
|
] }),
|
|
8399
8484
|
item.price && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 rounded-full bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground", children: item.price })
|
|
@@ -8410,13 +8495,13 @@ function MarketplaceCard({
|
|
|
8410
8495
|
] })
|
|
8411
8496
|
] })
|
|
8412
8497
|
] }),
|
|
8413
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
8498
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn65("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
|
|
8414
8499
|
onPreview && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8415
8500
|
"button",
|
|
8416
8501
|
{
|
|
8417
8502
|
type: "button",
|
|
8418
8503
|
onClick: () => onPreview(item.id),
|
|
8419
|
-
className:
|
|
8504
|
+
className: cn65(
|
|
8420
8505
|
"inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
|
|
8421
8506
|
"bg-background px-3 text-xs font-medium text-foreground",
|
|
8422
8507
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -8430,7 +8515,7 @@ function MarketplaceCard({
|
|
|
8430
8515
|
{
|
|
8431
8516
|
type: "button",
|
|
8432
8517
|
onClick: () => onUninstall(item.id),
|
|
8433
|
-
className:
|
|
8518
|
+
className: cn65(
|
|
8434
8519
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
8435
8520
|
"bg-secondary px-3 text-xs font-medium text-secondary-foreground",
|
|
8436
8521
|
"hover:bg-secondary/80",
|
|
@@ -8443,7 +8528,7 @@ function MarketplaceCard({
|
|
|
8443
8528
|
{
|
|
8444
8529
|
type: "button",
|
|
8445
8530
|
onClick: () => onInstall(item.id),
|
|
8446
|
-
className:
|
|
8531
|
+
className: cn65(
|
|
8447
8532
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
8448
8533
|
"bg-primary px-3 text-xs font-medium text-primary-foreground",
|
|
8449
8534
|
"hover:bg-primary/90",
|
|
@@ -8515,7 +8600,7 @@ function MarketplaceListDesktop(props) {
|
|
|
8515
8600
|
value: query,
|
|
8516
8601
|
onChange: (e) => setQuery(e.target.value),
|
|
8517
8602
|
placeholder: searchPlaceholder,
|
|
8518
|
-
className:
|
|
8603
|
+
className: cn65(
|
|
8519
8604
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8520
8605
|
"text-sm placeholder:text-muted-foreground",
|
|
8521
8606
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8598,7 +8683,7 @@ function MarketplaceListMobile(props) {
|
|
|
8598
8683
|
value: query,
|
|
8599
8684
|
onChange: (e) => setQuery(e.target.value),
|
|
8600
8685
|
placeholder: searchPlaceholder,
|
|
8601
|
-
className:
|
|
8686
|
+
className: cn65(
|
|
8602
8687
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8603
8688
|
"text-sm placeholder:text-muted-foreground",
|
|
8604
8689
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8677,7 +8762,7 @@ var marketplaceCardVariants = classVarianceAuthority.cva(
|
|
|
8677
8762
|
}
|
|
8678
8763
|
}
|
|
8679
8764
|
);
|
|
8680
|
-
function
|
|
8765
|
+
function cn66(...classes) {
|
|
8681
8766
|
return classes.filter(Boolean).join(" ");
|
|
8682
8767
|
}
|
|
8683
8768
|
function MosaicMarketplaceCard({
|
|
@@ -8703,12 +8788,12 @@ function MosaicMarketplaceCard({
|
|
|
8703
8788
|
MosaicCard,
|
|
8704
8789
|
{
|
|
8705
8790
|
"data-slot": "marketplace-card",
|
|
8706
|
-
className:
|
|
8791
|
+
className: cn66(marketplaceCardVariants({ variant }), className),
|
|
8707
8792
|
children: [
|
|
8708
8793
|
icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8709
8794
|
"div",
|
|
8710
8795
|
{
|
|
8711
|
-
className:
|
|
8796
|
+
className: cn66(
|
|
8712
8797
|
"flex shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground",
|
|
8713
8798
|
compact ? "h-10 w-10" : "h-12 w-12"
|
|
8714
8799
|
),
|
|
@@ -8716,7 +8801,7 @@ function MosaicMarketplaceCard({
|
|
|
8716
8801
|
}
|
|
8717
8802
|
),
|
|
8718
8803
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
8719
|
-
/* @__PURE__ */ jsxRuntime.jsx(MosaicCardTitle, { className:
|
|
8804
|
+
/* @__PURE__ */ jsxRuntime.jsx(MosaicCardTitle, { className: cn66("truncate", compact ? "text-sm" : "text-base"), children: name }),
|
|
8720
8805
|
description && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8721
8806
|
MosaicCardDescription,
|
|
8722
8807
|
{
|
|
@@ -8738,13 +8823,13 @@ function MosaicMarketplaceCard({
|
|
|
8738
8823
|
}
|
|
8739
8824
|
)
|
|
8740
8825
|
] }),
|
|
8741
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
8826
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn66("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
|
|
8742
8827
|
onPreview && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8743
8828
|
"button",
|
|
8744
8829
|
{
|
|
8745
8830
|
type: "button",
|
|
8746
8831
|
onClick: () => onPreview(id),
|
|
8747
|
-
className:
|
|
8832
|
+
className: cn66(
|
|
8748
8833
|
"inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
|
|
8749
8834
|
"bg-background px-3 text-xs font-medium text-foreground",
|
|
8750
8835
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -8758,7 +8843,7 @@ function MosaicMarketplaceCard({
|
|
|
8758
8843
|
{
|
|
8759
8844
|
type: "button",
|
|
8760
8845
|
onClick: () => onUnadopt(id),
|
|
8761
|
-
className:
|
|
8846
|
+
className: cn66(
|
|
8762
8847
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
8763
8848
|
"bg-secondary px-3 text-xs font-medium text-secondary-foreground",
|
|
8764
8849
|
"hover:bg-secondary/80",
|
|
@@ -8771,7 +8856,7 @@ function MosaicMarketplaceCard({
|
|
|
8771
8856
|
{
|
|
8772
8857
|
type: "button",
|
|
8773
8858
|
onClick: () => onAdopt(id),
|
|
8774
|
-
className:
|
|
8859
|
+
className: cn66(
|
|
8775
8860
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
8776
8861
|
"bg-primary px-3 text-xs font-medium text-primary-foreground",
|
|
8777
8862
|
"hover:bg-primary/90",
|
|
@@ -8786,7 +8871,7 @@ function MosaicMarketplaceCard({
|
|
|
8786
8871
|
);
|
|
8787
8872
|
}
|
|
8788
8873
|
MosaicMarketplaceCard.displayName = "MosaicMarketplaceCard";
|
|
8789
|
-
function
|
|
8874
|
+
function cn67(...classes) {
|
|
8790
8875
|
return classes.filter(Boolean).join(" ");
|
|
8791
8876
|
}
|
|
8792
8877
|
function StarIcon2() {
|
|
@@ -8907,7 +8992,7 @@ function MosaicTemplateCard({
|
|
|
8907
8992
|
type: "button",
|
|
8908
8993
|
onClick: () => onSelect(template),
|
|
8909
8994
|
"data-slot": "template-card",
|
|
8910
|
-
className:
|
|
8995
|
+
className: cn67(
|
|
8911
8996
|
"w-full text-left rounded-lg border transition-all duration-200",
|
|
8912
8997
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8913
8998
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50",
|
|
@@ -9008,7 +9093,7 @@ function MosaicTemplatePreview({
|
|
|
9008
9093
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9009
9094
|
"span",
|
|
9010
9095
|
{
|
|
9011
|
-
className:
|
|
9096
|
+
className: cn67("h-2 w-2 rounded-full", agent.accentColor),
|
|
9012
9097
|
"aria-hidden": "true"
|
|
9013
9098
|
}
|
|
9014
9099
|
),
|
|
@@ -9068,7 +9153,7 @@ function MosaicAgentTeamPreview({ agents, label }) {
|
|
|
9068
9153
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9069
9154
|
"span",
|
|
9070
9155
|
{
|
|
9071
|
-
className:
|
|
9156
|
+
className: cn67("h-2.5 w-2.5 rounded-full", agent.accentColor),
|
|
9072
9157
|
"aria-hidden": "true"
|
|
9073
9158
|
}
|
|
9074
9159
|
),
|
|
@@ -9092,7 +9177,7 @@ function MosaicQuickStartPanel({
|
|
|
9092
9177
|
scratchLabel,
|
|
9093
9178
|
className
|
|
9094
9179
|
}) {
|
|
9095
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-start-panel", className:
|
|
9180
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-start-panel", className: cn67("flex flex-col gap-6", className), children: [
|
|
9096
9181
|
scenarios.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
9097
9182
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-3 text-sm font-semibold text-foreground", children: scenariosTitle }),
|
|
9098
9183
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid gap-3 sm:grid-cols-2", children: scenarios.map((scenario) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -9100,7 +9185,7 @@ function MosaicQuickStartPanel({
|
|
|
9100
9185
|
{
|
|
9101
9186
|
type: "button",
|
|
9102
9187
|
onClick: () => onSelectScenario(scenario),
|
|
9103
|
-
className:
|
|
9188
|
+
className: cn67(
|
|
9104
9189
|
"flex items-start gap-3 rounded-lg border border-border bg-card p-4 text-left",
|
|
9105
9190
|
"hover:border-primary/50 hover:bg-primary/5",
|
|
9106
9191
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -9132,7 +9217,7 @@ function MosaicQuickStartPanel({
|
|
|
9132
9217
|
{
|
|
9133
9218
|
type: "button",
|
|
9134
9219
|
onClick: () => onSelectPreset(preset),
|
|
9135
|
-
className:
|
|
9220
|
+
className: cn67(
|
|
9136
9221
|
"flex items-center justify-between gap-3 rounded-lg border border-border bg-card px-4 py-3 text-left",
|
|
9137
9222
|
"hover:border-primary/50",
|
|
9138
9223
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -9146,7 +9231,7 @@ function MosaicQuickStartPanel({
|
|
|
9146
9231
|
a.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9147
9232
|
"span",
|
|
9148
9233
|
{
|
|
9149
|
-
className:
|
|
9234
|
+
className: cn67("h-2 w-2 rounded-full", a.accentColor),
|
|
9150
9235
|
"aria-hidden": "true"
|
|
9151
9236
|
}
|
|
9152
9237
|
),
|
|
@@ -9164,7 +9249,7 @@ function MosaicQuickStartPanel({
|
|
|
9164
9249
|
{
|
|
9165
9250
|
type: "button",
|
|
9166
9251
|
onClick: onStartFromScratch,
|
|
9167
|
-
className:
|
|
9252
|
+
className: cn67(
|
|
9168
9253
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
9169
9254
|
"bg-background px-4 text-sm font-medium text-foreground",
|
|
9170
9255
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -9258,7 +9343,7 @@ function TemplateGalleryContent({
|
|
|
9258
9343
|
value: query,
|
|
9259
9344
|
onChange: (e) => setQuery(e.target.value),
|
|
9260
9345
|
placeholder: searchPlaceholder,
|
|
9261
|
-
className:
|
|
9346
|
+
className: cn67(
|
|
9262
9347
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3 text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
9263
9348
|
)
|
|
9264
9349
|
}
|
|
@@ -9309,7 +9394,7 @@ function TemplateGalleryContent({
|
|
|
9309
9394
|
value: query,
|
|
9310
9395
|
onChange: (e) => setQuery(e.target.value),
|
|
9311
9396
|
placeholder: searchPlaceholder,
|
|
9312
|
-
className:
|
|
9397
|
+
className: cn67(
|
|
9313
9398
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3 text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
9314
9399
|
)
|
|
9315
9400
|
}
|
|
@@ -9341,7 +9426,7 @@ function MosaicTemplateGallery(props) {
|
|
|
9341
9426
|
return /* @__PURE__ */ jsxRuntime.jsx(TemplateGalleryContent, { ...props, isMobile });
|
|
9342
9427
|
}
|
|
9343
9428
|
MosaicTemplateGallery.displayName = "MosaicTemplateGallery";
|
|
9344
|
-
function
|
|
9429
|
+
function cn68(...classes) {
|
|
9345
9430
|
return classes.filter(Boolean).join(" ");
|
|
9346
9431
|
}
|
|
9347
9432
|
function PlusIcon5() {
|
|
@@ -9492,7 +9577,7 @@ function MosaicModuleForm(props) {
|
|
|
9492
9577
|
onChange: (e) => update("name", e.target.value),
|
|
9493
9578
|
placeholder: namePlaceholder,
|
|
9494
9579
|
required: true,
|
|
9495
|
-
className:
|
|
9580
|
+
className: cn68(
|
|
9496
9581
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
9497
9582
|
"text-sm placeholder:text-muted-foreground",
|
|
9498
9583
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9510,7 +9595,7 @@ function MosaicModuleForm(props) {
|
|
|
9510
9595
|
onChange: (e) => update("description", e.target.value),
|
|
9511
9596
|
placeholder: descriptionPlaceholder,
|
|
9512
9597
|
rows: 3,
|
|
9513
|
-
className:
|
|
9598
|
+
className: cn68(
|
|
9514
9599
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
9515
9600
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
9516
9601
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9532,7 +9617,7 @@ function MosaicModuleForm(props) {
|
|
|
9532
9617
|
value: formData[field.id] ?? "",
|
|
9533
9618
|
onChange: (e) => update(field.id, e.target.value),
|
|
9534
9619
|
placeholder: field.placeholder,
|
|
9535
|
-
className:
|
|
9620
|
+
className: cn68(
|
|
9536
9621
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
9537
9622
|
"text-sm placeholder:text-muted-foreground",
|
|
9538
9623
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9547,7 +9632,7 @@ function MosaicModuleForm(props) {
|
|
|
9547
9632
|
onChange: (e) => update(field.id, e.target.value),
|
|
9548
9633
|
placeholder: field.placeholder,
|
|
9549
9634
|
rows: 3,
|
|
9550
|
-
className:
|
|
9635
|
+
className: cn68(
|
|
9551
9636
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
9552
9637
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
9553
9638
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9563,7 +9648,7 @@ function MosaicModuleForm(props) {
|
|
|
9563
9648
|
onChange: (e) => update(field.id, e.target.value),
|
|
9564
9649
|
placeholder: field.placeholder ?? "\u{1F9E0}",
|
|
9565
9650
|
maxLength: 4,
|
|
9566
|
-
className:
|
|
9651
|
+
className: cn68(
|
|
9567
9652
|
"w-20 rounded-md border border-input bg-background px-3 py-2 text-2xl",
|
|
9568
9653
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
9569
9654
|
)
|
|
@@ -9584,7 +9669,7 @@ function MosaicModuleForm(props) {
|
|
|
9584
9669
|
}
|
|
9585
9670
|
},
|
|
9586
9671
|
placeholder: field.placeholder ?? tagListAddPlaceholder,
|
|
9587
|
-
className:
|
|
9672
|
+
className: cn68(
|
|
9588
9673
|
"flex-1 rounded-md border border-input bg-background px-3 py-2 min-h-[36px]",
|
|
9589
9674
|
"text-sm placeholder:text-muted-foreground",
|
|
9590
9675
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9796,7 +9881,7 @@ function LibraryContent({
|
|
|
9796
9881
|
{
|
|
9797
9882
|
type: "button",
|
|
9798
9883
|
onClick: openCreate,
|
|
9799
|
-
className:
|
|
9884
|
+
className: cn68(
|
|
9800
9885
|
"inline-flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground",
|
|
9801
9886
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
9802
9887
|
),
|
|
@@ -9816,7 +9901,7 @@ function LibraryContent({
|
|
|
9816
9901
|
value: query,
|
|
9817
9902
|
onChange: (e) => setQuery(e.target.value),
|
|
9818
9903
|
placeholder: searchPlaceholder,
|
|
9819
|
-
className:
|
|
9904
|
+
className: cn68(
|
|
9820
9905
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
9821
9906
|
"text-sm placeholder:text-muted-foreground",
|
|
9822
9907
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9829,7 +9914,7 @@ function LibraryContent({
|
|
|
9829
9914
|
{
|
|
9830
9915
|
type: "button",
|
|
9831
9916
|
onClick: () => setActiveTab(tab.id),
|
|
9832
|
-
className:
|
|
9917
|
+
className: cn68(
|
|
9833
9918
|
"rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
9834
9919
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
9835
9920
|
),
|
|
@@ -9881,7 +9966,7 @@ function MosaicModuleLibrary(props) {
|
|
|
9881
9966
|
return /* @__PURE__ */ jsxRuntime.jsx(LibraryContent, { ...props });
|
|
9882
9967
|
}
|
|
9883
9968
|
MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
|
|
9884
|
-
function
|
|
9969
|
+
function cn69(...classes) {
|
|
9885
9970
|
return classes.filter(Boolean).join(" ");
|
|
9886
9971
|
}
|
|
9887
9972
|
var roleConfig = {
|
|
@@ -9908,7 +9993,7 @@ function MosaicOrgRoleBadge({ role, className }) {
|
|
|
9908
9993
|
{
|
|
9909
9994
|
"data-slot": "org-role-badge",
|
|
9910
9995
|
title: config.description,
|
|
9911
|
-
className:
|
|
9996
|
+
className: cn69(
|
|
9912
9997
|
"inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
|
|
9913
9998
|
config.className,
|
|
9914
9999
|
className
|
|
@@ -9925,13 +10010,13 @@ function MosaicMultiOrgIndicator({
|
|
|
9925
10010
|
className
|
|
9926
10011
|
}) {
|
|
9927
10012
|
if (orgCount <= 1) return null;
|
|
9928
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "multi-org-indicator", className:
|
|
10013
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "multi-org-indicator", className: cn69("flex items-center gap-2", className), children: [
|
|
9929
10014
|
onSwitchOrg ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9930
10015
|
"button",
|
|
9931
10016
|
{
|
|
9932
10017
|
type: "button",
|
|
9933
10018
|
onClick: onSwitchOrg,
|
|
9934
|
-
className:
|
|
10019
|
+
className: cn69(
|
|
9935
10020
|
"inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground",
|
|
9936
10021
|
"hover:bg-secondary/80",
|
|
9937
10022
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -10045,7 +10130,7 @@ function MosaicCreateOrgDialog({
|
|
|
10045
10130
|
onChange: (e) => setName(e.target.value),
|
|
10046
10131
|
placeholder: orgNamePlaceholder,
|
|
10047
10132
|
required: true,
|
|
10048
|
-
className:
|
|
10133
|
+
className: cn69(
|
|
10049
10134
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
10050
10135
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
10051
10136
|
errors.name ? "border-destructive" : "border-input"
|
|
@@ -10065,7 +10150,7 @@ function MosaicCreateOrgDialog({
|
|
|
10065
10150
|
onChange: (e) => setSlug(e.target.value),
|
|
10066
10151
|
placeholder: "acme-inc",
|
|
10067
10152
|
required: true,
|
|
10068
|
-
className:
|
|
10153
|
+
className: cn69(
|
|
10069
10154
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
10070
10155
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
10071
10156
|
errors.slug ? "border-destructive" : "border-input"
|
|
@@ -10178,7 +10263,7 @@ function MosaicInviteMemberDialog({
|
|
|
10178
10263
|
onChange: (e) => setEmail(e.target.value),
|
|
10179
10264
|
placeholder: emailPlaceholder,
|
|
10180
10265
|
required: true,
|
|
10181
|
-
className:
|
|
10266
|
+
className: cn69(
|
|
10182
10267
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
10183
10268
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
10184
10269
|
errors.email ? "border-destructive" : "border-input"
|
|
@@ -10365,7 +10450,7 @@ function MosaicMemberList({
|
|
|
10365
10450
|
const filtered = members.filter(
|
|
10366
10451
|
(m) => !query || m.name.toLowerCase().includes(query.toLowerCase()) || m.email.toLowerCase().includes(query.toLowerCase())
|
|
10367
10452
|
);
|
|
10368
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "member-list", className:
|
|
10453
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "member-list", className: cn69("flex flex-col gap-4", className), children: [
|
|
10369
10454
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
10370
10455
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex-1", children: [
|
|
10371
10456
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -10461,7 +10546,7 @@ function MosaicOrgPanel({
|
|
|
10461
10546
|
const { isMobile } = useDevice();
|
|
10462
10547
|
const [activeTab, setActiveTab] = React30__namespace.useState(defaultTab ?? tabs[0]?.id ?? "");
|
|
10463
10548
|
const activeContent = tabs.find((t) => t.id === activeTab)?.content;
|
|
10464
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "org-panel", className:
|
|
10549
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "org-panel", className: cn69("flex h-full flex-col", className), children: [
|
|
10465
10550
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b border-border px-4 py-4 md:px-6", children: [
|
|
10466
10551
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
10467
10552
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -10483,12 +10568,12 @@ function MosaicOrgPanel({
|
|
|
10483
10568
|
] }),
|
|
10484
10569
|
headerActions
|
|
10485
10570
|
] }),
|
|
10486
|
-
tabs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
10571
|
+
tabs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn69("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
10487
10572
|
"button",
|
|
10488
10573
|
{
|
|
10489
10574
|
type: "button",
|
|
10490
10575
|
onClick: () => setActiveTab(tab.id),
|
|
10491
|
-
className:
|
|
10576
|
+
className: cn69(
|
|
10492
10577
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
10493
10578
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
10494
10579
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
@@ -10502,7 +10587,7 @@ function MosaicOrgPanel({
|
|
|
10502
10587
|
] });
|
|
10503
10588
|
}
|
|
10504
10589
|
MosaicOrgPanel.displayName = "MosaicOrgPanel";
|
|
10505
|
-
function
|
|
10590
|
+
function cn70(...classes) {
|
|
10506
10591
|
return classes.filter(Boolean).join(" ");
|
|
10507
10592
|
}
|
|
10508
10593
|
var ANIM_ID8 = "mosaic-dashboard-content-kf";
|
|
@@ -10539,7 +10624,7 @@ function MosaicDashboardContent({
|
|
|
10539
10624
|
"div",
|
|
10540
10625
|
{
|
|
10541
10626
|
"data-slot": "dashboard-content",
|
|
10542
|
-
className:
|
|
10627
|
+
className: cn70("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
|
|
10543
10628
|
children: activeView ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mosaic-content-view space-y-6", children: activeView.content }, currentView) : /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "py-12 text-center text-sm text-muted-foreground", children: [
|
|
10544
10629
|
"View not found: ",
|
|
10545
10630
|
currentView
|
|
@@ -10548,7 +10633,7 @@ function MosaicDashboardContent({
|
|
|
10548
10633
|
);
|
|
10549
10634
|
}
|
|
10550
10635
|
MosaicDashboardContent.displayName = "MosaicDashboardContent";
|
|
10551
|
-
function
|
|
10636
|
+
function cn71(...classes) {
|
|
10552
10637
|
return classes.filter(Boolean).join(" ");
|
|
10553
10638
|
}
|
|
10554
10639
|
var ANIM_ID9 = "mosaic-dashboard-header2-kf";
|
|
@@ -10660,16 +10745,16 @@ function MosaicDashboardHeader({
|
|
|
10660
10745
|
"header",
|
|
10661
10746
|
{
|
|
10662
10747
|
"data-slot": "dashboard-header",
|
|
10663
|
-
className:
|
|
10748
|
+
className: cn71(
|
|
10664
10749
|
"mosaic-dashboard-header2",
|
|
10665
10750
|
"sticky top-0 z-40 border-b border-border/50 bg-background/80 backdrop-blur-sm",
|
|
10666
10751
|
className
|
|
10667
10752
|
),
|
|
10668
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
10753
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn71(isMobile ? "px-4 py-3" : "container mx-auto px-4 py-4"), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
10669
10754
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-w-0 flex-1 items-center gap-2 md:gap-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
10670
10755
|
logoSlot ?? /* @__PURE__ */ jsxRuntime.jsx(SparklesIcon4, {}),
|
|
10671
10756
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
10672
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className:
|
|
10757
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: cn71("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
|
|
10673
10758
|
subtitle && !isMobile && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground truncate", children: subtitle })
|
|
10674
10759
|
] })
|
|
10675
10760
|
] }) }),
|
|
@@ -10682,7 +10767,7 @@ function MosaicDashboardHeader({
|
|
|
10682
10767
|
value: searchQuery,
|
|
10683
10768
|
onChange: handleSearch,
|
|
10684
10769
|
placeholder: searchPlaceholder,
|
|
10685
|
-
className:
|
|
10770
|
+
className: cn71(
|
|
10686
10771
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
10687
10772
|
"text-sm placeholder:text-muted-foreground",
|
|
10688
10773
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -10722,7 +10807,7 @@ function MosaicDashboardHeader({
|
|
|
10722
10807
|
);
|
|
10723
10808
|
}
|
|
10724
10809
|
MosaicDashboardHeader.displayName = "MosaicDashboardHeader";
|
|
10725
|
-
function
|
|
10810
|
+
function cn72(...classes) {
|
|
10726
10811
|
return classes.filter(Boolean).join(" ");
|
|
10727
10812
|
}
|
|
10728
10813
|
function ChevronDownIcon4() {
|
|
@@ -10805,13 +10890,13 @@ function MosaicOrgSwitcher({
|
|
|
10805
10890
|
}, [open]);
|
|
10806
10891
|
if (!currentOrg && organizations.length === 0 && !onCreateOrg) return null;
|
|
10807
10892
|
const initials = currentOrg?.name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase() ?? "?";
|
|
10808
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "org-switcher", className:
|
|
10893
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "org-switcher", className: cn72("relative", className), children: [
|
|
10809
10894
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
10810
10895
|
"button",
|
|
10811
10896
|
{
|
|
10812
10897
|
type: "button",
|
|
10813
10898
|
onClick: () => setOpen((v) => !v),
|
|
10814
|
-
className:
|
|
10899
|
+
className: cn72(
|
|
10815
10900
|
"inline-flex items-center gap-2 rounded-md border border-border bg-background px-3 py-1.5",
|
|
10816
10901
|
"text-sm font-medium text-foreground",
|
|
10817
10902
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -10838,7 +10923,7 @@ function MosaicOrgSwitcher({
|
|
|
10838
10923
|
{
|
|
10839
10924
|
role: "menu",
|
|
10840
10925
|
"aria-label": triggerAriaLabel,
|
|
10841
|
-
className:
|
|
10926
|
+
className: cn72(
|
|
10842
10927
|
"absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-border",
|
|
10843
10928
|
"bg-popover py-1 shadow-md"
|
|
10844
10929
|
),
|
|
@@ -10853,7 +10938,7 @@ function MosaicOrgSwitcher({
|
|
|
10853
10938
|
onSelectOrg?.(org.id);
|
|
10854
10939
|
setOpen(false);
|
|
10855
10940
|
},
|
|
10856
|
-
className:
|
|
10941
|
+
className: cn72(
|
|
10857
10942
|
"flex w-full items-center gap-2.5 px-3 py-2 text-sm text-foreground",
|
|
10858
10943
|
"hover:bg-accent hover:text-accent-foreground",
|
|
10859
10944
|
org.id === currentOrgId && "bg-primary/10 text-primary"
|
|
@@ -10890,7 +10975,7 @@ function MosaicOrgSwitcher({
|
|
|
10890
10975
|
] });
|
|
10891
10976
|
}
|
|
10892
10977
|
MosaicOrgSwitcher.displayName = "MosaicOrgSwitcher";
|
|
10893
|
-
function
|
|
10978
|
+
function cn73(...classes) {
|
|
10894
10979
|
return classes.filter(Boolean).join(" ");
|
|
10895
10980
|
}
|
|
10896
10981
|
function PlusIcon7() {
|
|
@@ -10935,19 +11020,19 @@ function MosaicQuickActionsMenu({
|
|
|
10935
11020
|
document.addEventListener("mousedown", h);
|
|
10936
11021
|
return () => document.removeEventListener("mousedown", h);
|
|
10937
11022
|
}, [open]);
|
|
10938
|
-
const itemClass =
|
|
11023
|
+
const itemClass = cn73(
|
|
10939
11024
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
10940
11025
|
"hover:bg-accent hover:text-accent-foreground",
|
|
10941
11026
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
10942
11027
|
"min-h-[44px]"
|
|
10943
11028
|
);
|
|
10944
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "quick-actions-menu", className:
|
|
11029
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn73("relative", className), children: [
|
|
10945
11030
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
10946
11031
|
"button",
|
|
10947
11032
|
{
|
|
10948
11033
|
type: "button",
|
|
10949
11034
|
onClick: () => setOpen((v) => !v),
|
|
10950
|
-
className:
|
|
11035
|
+
className: cn73(
|
|
10951
11036
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
10952
11037
|
"min-h-[44px] min-w-[44px] px-3 py-2 text-sm font-medium text-foreground",
|
|
10953
11038
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -10958,7 +11043,7 @@ function MosaicQuickActionsMenu({
|
|
|
10958
11043
|
"aria-label": label,
|
|
10959
11044
|
children: [
|
|
10960
11045
|
triggerIcon ?? /* @__PURE__ */ jsxRuntime.jsx(PlusIcon7, {}),
|
|
10961
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
11046
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn73("hidden md:inline"), children: label })
|
|
10962
11047
|
]
|
|
10963
11048
|
}
|
|
10964
11049
|
),
|
|
@@ -10967,13 +11052,13 @@ function MosaicQuickActionsMenu({
|
|
|
10967
11052
|
{
|
|
10968
11053
|
role: "menu",
|
|
10969
11054
|
"aria-label": menuTitle,
|
|
10970
|
-
className:
|
|
11055
|
+
className: cn73(
|
|
10971
11056
|
"absolute right-0 top-full z-50 mt-1 rounded-md border border-border bg-popover py-1 shadow-md",
|
|
10972
11057
|
isMobile ? "w-[min(90vw,280px)]" : "w-56"
|
|
10973
11058
|
),
|
|
10974
11059
|
children: [
|
|
10975
11060
|
menuTitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-1.5", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wide", children: menuTitle }) }),
|
|
10976
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
11061
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn73(menuTitle && "border-t border-border") }),
|
|
10977
11062
|
actions.map((action) => /* @__PURE__ */ jsxRuntime.jsxs(React30__namespace.Fragment, { children: [
|
|
10978
11063
|
action.separator && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "my-1 border-t border-border" }),
|
|
10979
11064
|
action.href && renderLink ? renderLink(
|
|
@@ -11278,7 +11363,7 @@ function MosaicOrgProfilePage({
|
|
|
11278
11363
|
);
|
|
11279
11364
|
}
|
|
11280
11365
|
MosaicOrgProfilePage.displayName = "MosaicOrgProfilePage";
|
|
11281
|
-
function
|
|
11366
|
+
function cn74(...classes) {
|
|
11282
11367
|
return classes.filter(Boolean).join(" ");
|
|
11283
11368
|
}
|
|
11284
11369
|
function defaultCompare(a, b) {
|
|
@@ -11341,7 +11426,7 @@ function MosaicDataTable({
|
|
|
11341
11426
|
{
|
|
11342
11427
|
ref,
|
|
11343
11428
|
"data-slot": "data-table",
|
|
11344
|
-
className:
|
|
11429
|
+
className: cn74("w-full border-collapse text-sm", className),
|
|
11345
11430
|
children: [
|
|
11346
11431
|
/* @__PURE__ */ jsxRuntime.jsx("thead", { "data-slot": "data-table-header", children: /* @__PURE__ */ jsxRuntime.jsx("tr", { "data-slot": "data-table-header-row", className: "border-b border-border bg-muted", children: columns.map((col, colIndex) => {
|
|
11347
11432
|
const isSortable = masterSortable && col.sortable;
|
|
@@ -11359,7 +11444,7 @@ function MosaicDataTable({
|
|
|
11359
11444
|
handleHeaderClick(col);
|
|
11360
11445
|
}
|
|
11361
11446
|
} : void 0,
|
|
11362
|
-
className:
|
|
11447
|
+
className: cn74(
|
|
11363
11448
|
"px-4 py-3 font-medium text-muted-foreground",
|
|
11364
11449
|
alignClass(col.align),
|
|
11365
11450
|
col.className,
|
|
@@ -11395,7 +11480,7 @@ function MosaicDataTable({
|
|
|
11395
11480
|
"td",
|
|
11396
11481
|
{
|
|
11397
11482
|
"data-slot": "data-table-td",
|
|
11398
|
-
className:
|
|
11483
|
+
className: cn74(
|
|
11399
11484
|
"px-4 py-3 text-foreground",
|
|
11400
11485
|
alignClass(col.align),
|
|
11401
11486
|
col.className
|
|
@@ -11534,7 +11619,7 @@ var stepSegmentVariants = classVarianceAuthority.cva(["h-1.5 flex-1 min-w-2 roun
|
|
|
11534
11619
|
filled: false
|
|
11535
11620
|
}
|
|
11536
11621
|
});
|
|
11537
|
-
function
|
|
11622
|
+
function cn75(...classes) {
|
|
11538
11623
|
return classes.filter(Boolean).join(" ");
|
|
11539
11624
|
}
|
|
11540
11625
|
function resolveStatus(step, index, currentIndex) {
|
|
@@ -11575,7 +11660,7 @@ function MosaicStepPipelineSegments({
|
|
|
11575
11660
|
"aria-valuemax": total,
|
|
11576
11661
|
"aria-valuenow": current,
|
|
11577
11662
|
"aria-valuetext": progressLabel ? progressLabel(current, total) : void 0,
|
|
11578
|
-
className:
|
|
11663
|
+
className: cn75(stepSegmentBarVariants(), className),
|
|
11579
11664
|
children: steps.map((step, index) => {
|
|
11580
11665
|
const status = resolveStatus(step, index, currentIndex);
|
|
11581
11666
|
const filled = status !== "upcoming";
|
|
@@ -11587,7 +11672,7 @@ function MosaicStepPipelineSegments({
|
|
|
11587
11672
|
"data-status": status,
|
|
11588
11673
|
"data-filled": filled,
|
|
11589
11674
|
"aria-hidden": "true",
|
|
11590
|
-
className:
|
|
11675
|
+
className: cn75(stepSegmentVariants({ filled }))
|
|
11591
11676
|
},
|
|
11592
11677
|
key
|
|
11593
11678
|
);
|
|
@@ -11608,7 +11693,7 @@ function MosaicStepPipelineDots({
|
|
|
11608
11693
|
{
|
|
11609
11694
|
ref,
|
|
11610
11695
|
"data-slot": "step-pipeline",
|
|
11611
|
-
className:
|
|
11696
|
+
className: cn75(stepPipelineVariants({ orientation }), className),
|
|
11612
11697
|
children: steps.map((step, index) => {
|
|
11613
11698
|
const status = resolveStatus(step, index, currentIndex);
|
|
11614
11699
|
const isCurrent = status === "current";
|
|
@@ -11620,7 +11705,7 @@ function MosaicStepPipelineDots({
|
|
|
11620
11705
|
"data-slot": "step",
|
|
11621
11706
|
"data-status": status,
|
|
11622
11707
|
"aria-current": isCurrent ? "step" : void 0,
|
|
11623
|
-
className:
|
|
11708
|
+
className: cn75(
|
|
11624
11709
|
"flex shrink-0",
|
|
11625
11710
|
orientation === "horizontal" ? "flex-col items-center gap-2" : "flex-row items-start gap-3",
|
|
11626
11711
|
orientation === "horizontal" && !isLast && "flex-1"
|
|
@@ -11631,14 +11716,14 @@ function MosaicStepPipelineDots({
|
|
|
11631
11716
|
"div",
|
|
11632
11717
|
{
|
|
11633
11718
|
"data-slot": "step-connector",
|
|
11634
|
-
className:
|
|
11719
|
+
className: cn75(stepConnectorVariants({ status, orientation }))
|
|
11635
11720
|
}
|
|
11636
11721
|
),
|
|
11637
11722
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11638
11723
|
"div",
|
|
11639
11724
|
{
|
|
11640
11725
|
"data-slot": "step-indicator",
|
|
11641
|
-
className:
|
|
11726
|
+
className: cn75(stepIndicatorVariants({ status, orientation })),
|
|
11642
11727
|
"aria-hidden": "true",
|
|
11643
11728
|
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsxRuntime.jsx("span", { children: index + 1 })
|
|
11644
11729
|
}
|
|
@@ -11647,7 +11732,7 @@ function MosaicStepPipelineDots({
|
|
|
11647
11732
|
"div",
|
|
11648
11733
|
{
|
|
11649
11734
|
"data-slot": "step-connector",
|
|
11650
|
-
className:
|
|
11735
|
+
className: cn75(
|
|
11651
11736
|
stepConnectorVariants({
|
|
11652
11737
|
// connector after current step is still upcoming
|
|
11653
11738
|
status: status === "done" ? "done" : "upcoming",
|
|
@@ -11658,12 +11743,12 @@ function MosaicStepPipelineDots({
|
|
|
11658
11743
|
)
|
|
11659
11744
|
] }),
|
|
11660
11745
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-0.5 text-center px-1", children: [
|
|
11661
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "step-label", className:
|
|
11746
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "step-label", className: cn75(stepLabelVariants({ status })), children: step.label }),
|
|
11662
11747
|
step.description !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
11663
11748
|
"span",
|
|
11664
11749
|
{
|
|
11665
11750
|
"data-slot": "step-description",
|
|
11666
|
-
className:
|
|
11751
|
+
className: cn75(stepDescriptionVariants({ status })),
|
|
11667
11752
|
children: step.description
|
|
11668
11753
|
}
|
|
11669
11754
|
)
|
|
@@ -11674,7 +11759,7 @@ function MosaicStepPipelineDots({
|
|
|
11674
11759
|
"div",
|
|
11675
11760
|
{
|
|
11676
11761
|
"data-slot": "step-indicator",
|
|
11677
|
-
className:
|
|
11762
|
+
className: cn75(stepIndicatorVariants({ status, orientation })),
|
|
11678
11763
|
"aria-hidden": "true",
|
|
11679
11764
|
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsxRuntime.jsx("span", { children: index + 1 })
|
|
11680
11765
|
}
|
|
@@ -11683,7 +11768,7 @@ function MosaicStepPipelineDots({
|
|
|
11683
11768
|
"div",
|
|
11684
11769
|
{
|
|
11685
11770
|
"data-slot": "step-connector",
|
|
11686
|
-
className:
|
|
11771
|
+
className: cn75(
|
|
11687
11772
|
stepConnectorVariants({
|
|
11688
11773
|
status: status === "done" ? "done" : "upcoming",
|
|
11689
11774
|
orientation
|
|
@@ -11693,12 +11778,12 @@ function MosaicStepPipelineDots({
|
|
|
11693
11778
|
)
|
|
11694
11779
|
] }),
|
|
11695
11780
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-0.5 pt-1 pb-4", children: [
|
|
11696
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "step-label", className:
|
|
11781
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "step-label", className: cn75(stepLabelVariants({ status })), children: step.label }),
|
|
11697
11782
|
step.description !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
11698
11783
|
"span",
|
|
11699
11784
|
{
|
|
11700
11785
|
"data-slot": "step-description",
|
|
11701
|
-
className:
|
|
11786
|
+
className: cn75(stepDescriptionVariants({ status })),
|
|
11702
11787
|
children: step.description
|
|
11703
11788
|
}
|
|
11704
11789
|
)
|
|
@@ -11712,7 +11797,7 @@ function MosaicStepPipelineDots({
|
|
|
11712
11797
|
);
|
|
11713
11798
|
}
|
|
11714
11799
|
MosaicStepPipelineDots.displayName = "MosaicStepPipelineDots";
|
|
11715
|
-
function
|
|
11800
|
+
function cn76(...classes) {
|
|
11716
11801
|
return classes.filter(Boolean).join(" ");
|
|
11717
11802
|
}
|
|
11718
11803
|
function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
@@ -11721,7 +11806,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
|
11721
11806
|
{
|
|
11722
11807
|
ref,
|
|
11723
11808
|
"data-slot": "kanban-board",
|
|
11724
|
-
className:
|
|
11809
|
+
className: cn76(
|
|
11725
11810
|
"flex gap-4 overflow-x-auto pb-4",
|
|
11726
11811
|
"min-h-0",
|
|
11727
11812
|
// Smooth momentum scrolling on iOS
|
|
@@ -11734,7 +11819,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
|
11734
11819
|
);
|
|
11735
11820
|
}
|
|
11736
11821
|
MosaicKanbanBoard.displayName = "MosaicKanbanBoard";
|
|
11737
|
-
function
|
|
11822
|
+
function cn77(...classes) {
|
|
11738
11823
|
return classes.filter(Boolean).join(" ");
|
|
11739
11824
|
}
|
|
11740
11825
|
function MosaicKanbanColumn({
|
|
@@ -11752,7 +11837,7 @@ function MosaicKanbanColumn({
|
|
|
11752
11837
|
{
|
|
11753
11838
|
ref,
|
|
11754
11839
|
"data-slot": "kanban-column",
|
|
11755
|
-
className:
|
|
11840
|
+
className: cn77(
|
|
11756
11841
|
// Fixed column width, never shrink so board stays scrollable
|
|
11757
11842
|
"flex flex-col w-72 shrink-0",
|
|
11758
11843
|
// Surface
|
|
@@ -11773,7 +11858,7 @@ function MosaicKanbanColumn({
|
|
|
11773
11858
|
{
|
|
11774
11859
|
"data-slot": "kanban-column-count",
|
|
11775
11860
|
"aria-label": countLabel(count),
|
|
11776
|
-
className:
|
|
11861
|
+
className: cn77(
|
|
11777
11862
|
"inline-flex items-center justify-center",
|
|
11778
11863
|
"min-w-[1.25rem] h-5 px-1.5 rounded-full",
|
|
11779
11864
|
"bg-muted text-muted-foreground",
|
|
@@ -11995,7 +12080,7 @@ var documentUploadProgressFillVariants = classVarianceAuthority.cva(
|
|
|
11995
12080
|
defaultVariants: {}
|
|
11996
12081
|
}
|
|
11997
12082
|
);
|
|
11998
|
-
function
|
|
12083
|
+
function cn78(...classes) {
|
|
11999
12084
|
return classes.filter(Boolean).join(" ");
|
|
12000
12085
|
}
|
|
12001
12086
|
function MosaicDocumentUpload({
|
|
@@ -12036,7 +12121,7 @@ function MosaicDocumentUpload({
|
|
|
12036
12121
|
if (selected.length > 0) onFilesSelected(selected);
|
|
12037
12122
|
event.target.value = "";
|
|
12038
12123
|
}
|
|
12039
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "document-upload", className:
|
|
12124
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "document-upload", className: cn78("flex flex-col gap-4", className), children: [
|
|
12040
12125
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
12041
12126
|
"div",
|
|
12042
12127
|
{
|
|
@@ -12101,7 +12186,7 @@ function MosaicDocumentUpload({
|
|
|
12101
12186
|
"aria-valuemin": 0,
|
|
12102
12187
|
"aria-valuemax": 100,
|
|
12103
12188
|
"aria-valuenow": file.progress ?? 0,
|
|
12104
|
-
className:
|
|
12189
|
+
className: cn78(documentUploadProgressTrackVariants(), "mt-2"),
|
|
12105
12190
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12106
12191
|
"div",
|
|
12107
12192
|
{
|
|
@@ -12178,7 +12263,7 @@ var urlScraperCardVariants = classVarianceAuthority.cva(["flex flex-col gap-2 ro
|
|
|
12178
12263
|
tone: "neutral"
|
|
12179
12264
|
}
|
|
12180
12265
|
});
|
|
12181
|
-
function
|
|
12266
|
+
function cn79(...classes) {
|
|
12182
12267
|
return classes.filter(Boolean).join(" ");
|
|
12183
12268
|
}
|
|
12184
12269
|
function isSyntacticallyValidUrl(candidate) {
|
|
@@ -12217,7 +12302,7 @@ function MosaicUrlScraper(props) {
|
|
|
12217
12302
|
setIsLocallyInvalid(false);
|
|
12218
12303
|
onUrlChange(event.target.value);
|
|
12219
12304
|
}
|
|
12220
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "url-scraper", className:
|
|
12305
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "url-scraper", className: cn79("flex flex-col gap-4", className), children: [
|
|
12221
12306
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
12222
12307
|
"form",
|
|
12223
12308
|
{
|
|
@@ -12353,7 +12438,7 @@ var chatThreadScrollButtonVariants = classVarianceAuthority.cva([
|
|
|
12353
12438
|
"items-center justify-center rounded-full border border-border bg-card text-foreground shadow-sm",
|
|
12354
12439
|
"transition-colors hover:bg-accent/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
12355
12440
|
]);
|
|
12356
|
-
function
|
|
12441
|
+
function cn80(...classes) {
|
|
12357
12442
|
return classes.filter(Boolean).join(" ");
|
|
12358
12443
|
}
|
|
12359
12444
|
var BOTTOM_THRESHOLD_PX = 24;
|
|
@@ -12437,7 +12522,7 @@ function MosaicChatThread({
|
|
|
12437
12522
|
role: "log",
|
|
12438
12523
|
onScroll: handleScroll,
|
|
12439
12524
|
onKeyDown: handleKeyDown,
|
|
12440
|
-
className:
|
|
12525
|
+
className: cn80(chatThreadRootVariants(), className),
|
|
12441
12526
|
children: [
|
|
12442
12527
|
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "chat-thread-content", className: chatThreadContentVariants(), children }),
|
|
12443
12528
|
!isAtBottom && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -12478,7 +12563,7 @@ var chatComposerActionButtonVariants = classVarianceAuthority.cva(
|
|
|
12478
12563
|
}
|
|
12479
12564
|
}
|
|
12480
12565
|
);
|
|
12481
|
-
function
|
|
12566
|
+
function cn81(...classes) {
|
|
12482
12567
|
return classes.filter(Boolean).join(" ");
|
|
12483
12568
|
}
|
|
12484
12569
|
function MosaicChatComposer(props) {
|
|
@@ -12533,7 +12618,7 @@ function MosaicChatComposer(props) {
|
|
|
12533
12618
|
{
|
|
12534
12619
|
ref,
|
|
12535
12620
|
"data-slot": "chat-composer",
|
|
12536
|
-
className:
|
|
12621
|
+
className: cn81(chatComposerRootVariants(), className),
|
|
12537
12622
|
onSubmit: handleSubmit,
|
|
12538
12623
|
children: [
|
|
12539
12624
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -12649,7 +12734,7 @@ var markdownTableCellVariants = classVarianceAuthority.cva(["border border-borde
|
|
|
12649
12734
|
align: "left"
|
|
12650
12735
|
}
|
|
12651
12736
|
});
|
|
12652
|
-
function
|
|
12737
|
+
function cn82(...classes) {
|
|
12653
12738
|
return classes.filter(Boolean).join(" ");
|
|
12654
12739
|
}
|
|
12655
12740
|
function sanitizeHref(rawHref) {
|
|
@@ -12844,7 +12929,7 @@ function parseBlocks(content) {
|
|
|
12844
12929
|
function MosaicMarkdown({ content, renderCodeBlock, className, ref }) {
|
|
12845
12930
|
const blocks = parseBlocks(content);
|
|
12846
12931
|
const ids = makeIdSource();
|
|
12847
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "markdown", className:
|
|
12932
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "markdown", className: cn82(markdownRootVariants(), className), children: blocks.map((block) => {
|
|
12848
12933
|
if (block.kind === "heading") {
|
|
12849
12934
|
const HeadingTag = `h${block.level}`;
|
|
12850
12935
|
return /* @__PURE__ */ jsxRuntime.jsx(HeadingTag, { className: markdownHeadingVariants({ level: block.level }), children: parseInline(block.text, ids) }, block.id);
|
|
@@ -12922,7 +13007,7 @@ var chatMessageToolStatusVariants = classVarianceAuthority.cva(["text-xs font-me
|
|
|
12922
13007
|
status: "running"
|
|
12923
13008
|
}
|
|
12924
13009
|
});
|
|
12925
|
-
function
|
|
13010
|
+
function cn83(...classes) {
|
|
12926
13011
|
return classes.filter(Boolean).join(" ");
|
|
12927
13012
|
}
|
|
12928
13013
|
function partKey(part, index) {
|
|
@@ -13088,7 +13173,7 @@ function MosaicChatMessage({
|
|
|
13088
13173
|
ref,
|
|
13089
13174
|
"data-slot": "chat-message",
|
|
13090
13175
|
"data-role": messageRole,
|
|
13091
|
-
className:
|
|
13176
|
+
className: cn83(chatMessageContainerVariants({ align: isUser ? "end" : "start" }), className),
|
|
13092
13177
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: chatMessageBubbleVariants({ role: messageRole }), children: parts.map((part, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
13093
13178
|
ChatMessagePartView,
|
|
13094
13179
|
{
|
|
@@ -13143,7 +13228,7 @@ var approvalPromptButtonVariants = classVarianceAuthority.cva(
|
|
|
13143
13228
|
}
|
|
13144
13229
|
}
|
|
13145
13230
|
);
|
|
13146
|
-
function
|
|
13231
|
+
function cn84(...classes) {
|
|
13147
13232
|
return classes.filter(Boolean).join(" ");
|
|
13148
13233
|
}
|
|
13149
13234
|
function MosaicApprovalPrompt(props) {
|
|
@@ -13155,7 +13240,7 @@ function MosaicApprovalPrompt(props) {
|
|
|
13155
13240
|
ref,
|
|
13156
13241
|
"data-slot": "approval-prompt",
|
|
13157
13242
|
"aria-label": promptTitle,
|
|
13158
|
-
className:
|
|
13243
|
+
className: cn84("border-0 p-0 m-0", approvalPromptCardVariants({ tone }), className),
|
|
13159
13244
|
children: [
|
|
13160
13245
|
/* @__PURE__ */ jsxRuntime.jsx("legend", { "data-slot": "approval-prompt-title", className: "text-base font-semibold md:text-lg", children: promptTitle }),
|
|
13161
13246
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "approval-prompt-tool", className: "flex flex-col gap-1", children: [
|
|
@@ -13232,7 +13317,7 @@ var toolToggleListRowVariants = classVarianceAuthority.cva(
|
|
|
13232
13317
|
}
|
|
13233
13318
|
}
|
|
13234
13319
|
);
|
|
13235
|
-
function
|
|
13320
|
+
function cn85(...classes) {
|
|
13236
13321
|
return classes.filter(Boolean).join(" ");
|
|
13237
13322
|
}
|
|
13238
13323
|
function MosaicToolToggleList({
|
|
@@ -13248,7 +13333,7 @@ function MosaicToolToggleList({
|
|
|
13248
13333
|
}) {
|
|
13249
13334
|
const toolsById = new Map(tools.map((tool) => [tool.id, tool]));
|
|
13250
13335
|
const approvalLabelById = new Map(approvalLevels.map((level) => [level.id, level.label]));
|
|
13251
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "tool-toggle-list", className:
|
|
13336
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "tool-toggle-list", className: cn85("flex flex-col gap-6", className), children: sections.map((section) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
13252
13337
|
"div",
|
|
13253
13338
|
{
|
|
13254
13339
|
"data-slot": "tool-toggle-list-section",
|
|
@@ -13279,7 +13364,7 @@ function MosaicToolToggleList({
|
|
|
13279
13364
|
onCheckedChange: (checked) => onToggleTool(tool.id, checked),
|
|
13280
13365
|
"aria-label": toggleAriaLabel(tool.name),
|
|
13281
13366
|
"data-slot": "tool-toggle-list-switch",
|
|
13282
|
-
className:
|
|
13367
|
+
className: cn85(
|
|
13283
13368
|
"relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center",
|
|
13284
13369
|
"rounded-full border-2 border-transparent outline-none",
|
|
13285
13370
|
"bg-muted transition-colors",
|
|
@@ -13290,7 +13375,7 @@ function MosaicToolToggleList({
|
|
|
13290
13375
|
_switch.Switch.Thumb,
|
|
13291
13376
|
{
|
|
13292
13377
|
"data-slot": "tool-toggle-list-switch-thumb",
|
|
13293
|
-
className:
|
|
13378
|
+
className: cn85(
|
|
13294
13379
|
"pointer-events-none block h-4 w-4 rounded-full",
|
|
13295
13380
|
"bg-background shadow-sm",
|
|
13296
13381
|
"translate-x-0 transition-transform",
|
|
@@ -13332,7 +13417,7 @@ function MosaicToolToggleList({
|
|
|
13332
13417
|
{
|
|
13333
13418
|
"aria-label": approvalSelectAriaLabel(tool.name),
|
|
13334
13419
|
"data-slot": "tool-toggle-list-approval-trigger",
|
|
13335
|
-
className:
|
|
13420
|
+
className: cn85(
|
|
13336
13421
|
"inline-flex h-9 min-w-[10rem] items-center justify-between gap-2",
|
|
13337
13422
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
13338
13423
|
"text-sm text-foreground shadow-xs outline-none",
|
|
@@ -13350,7 +13435,7 @@ function MosaicToolToggleList({
|
|
|
13350
13435
|
select.Select.Popup,
|
|
13351
13436
|
{
|
|
13352
13437
|
"data-slot": "tool-toggle-list-approval-popup",
|
|
13353
|
-
className:
|
|
13438
|
+
className: cn85(
|
|
13354
13439
|
"z-50 min-w-[10rem] overflow-hidden rounded-md border border-border",
|
|
13355
13440
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
13356
13441
|
"origin-[var(--transform-origin)]",
|
|
@@ -13363,7 +13448,7 @@ function MosaicToolToggleList({
|
|
|
13363
13448
|
select.Select.Item,
|
|
13364
13449
|
{
|
|
13365
13450
|
value: level.id,
|
|
13366
|
-
className:
|
|
13451
|
+
className: cn85(
|
|
13367
13452
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
13368
13453
|
"text-sm text-popover-foreground outline-none",
|
|
13369
13454
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -13471,7 +13556,7 @@ var apiKeyPanelMessageVariants = classVarianceAuthority.cva(["text-sm"], {
|
|
|
13471
13556
|
tone: "muted"
|
|
13472
13557
|
}
|
|
13473
13558
|
});
|
|
13474
|
-
function
|
|
13559
|
+
function cn86(...classes) {
|
|
13475
13560
|
return classes.filter(Boolean).join(" ");
|
|
13476
13561
|
}
|
|
13477
13562
|
function MosaicApiKeyPanel(props) {
|
|
@@ -13499,7 +13584,7 @@ function MosaicApiKeyPanel(props) {
|
|
|
13499
13584
|
function handleKeyChange(event) {
|
|
13500
13585
|
onKeyChange(event.target.value);
|
|
13501
13586
|
}
|
|
13502
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "api-key-panel", className:
|
|
13587
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "api-key-panel", className: cn86("flex flex-col gap-3", className), children: [
|
|
13503
13588
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13504
13589
|
"div",
|
|
13505
13590
|
{
|
|
@@ -13594,7 +13679,7 @@ MosaicApiKeyPanel.displayName = "MosaicApiKeyPanel";
|
|
|
13594
13679
|
var agentChatRootVariants = classVarianceAuthority.cva([
|
|
13595
13680
|
"flex min-h-0 w-full flex-1 flex-col gap-2 overflow-hidden rounded-lg border border-border bg-card"
|
|
13596
13681
|
]);
|
|
13597
|
-
function
|
|
13682
|
+
function cn87(...classes) {
|
|
13598
13683
|
return classes.filter(Boolean).join(" ");
|
|
13599
13684
|
}
|
|
13600
13685
|
function formatPayload2(value) {
|
|
@@ -13730,7 +13815,7 @@ function MosaicAgentChat(props) {
|
|
|
13730
13815
|
setDecisions((previous) => ({ ...previous, [payload.requestId]: decision }));
|
|
13731
13816
|
onApprovalResponse(payload);
|
|
13732
13817
|
}
|
|
13733
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "agent-chat", className:
|
|
13818
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "agent-chat", className: cn87(agentChatRootVariants(), className), children: [
|
|
13734
13819
|
/* @__PURE__ */ jsxRuntime.jsx(MosaicChatThread, { scrollToBottomLabel, children: messages.map((message) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
13735
13820
|
MosaicChatMessage,
|
|
13736
13821
|
{
|
|
@@ -13819,7 +13904,7 @@ var toastProviderPositionVariants = classVarianceAuthority.cva(
|
|
|
13819
13904
|
}
|
|
13820
13905
|
}
|
|
13821
13906
|
);
|
|
13822
|
-
function
|
|
13907
|
+
function cn88(...classes) {
|
|
13823
13908
|
return classes.filter(Boolean).join(" ");
|
|
13824
13909
|
}
|
|
13825
13910
|
function MosaicToast({
|
|
@@ -13845,7 +13930,7 @@ function MosaicToast({
|
|
|
13845
13930
|
ref,
|
|
13846
13931
|
"data-slot": "toast",
|
|
13847
13932
|
role,
|
|
13848
|
-
className:
|
|
13933
|
+
className: cn88(toastCardVariants({ variant }), className),
|
|
13849
13934
|
children: [
|
|
13850
13935
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "toast-body", className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
13851
13936
|
/* @__PURE__ */ jsxRuntime.jsx("p", { "data-slot": "toast-title", className: toastTitleVariants({ variant }), children: title }),
|
|
@@ -13885,7 +13970,7 @@ function MosaicToast({
|
|
|
13885
13970
|
);
|
|
13886
13971
|
}
|
|
13887
13972
|
MosaicToast.displayName = "MosaicToast";
|
|
13888
|
-
function
|
|
13973
|
+
function cn89(...classes) {
|
|
13889
13974
|
return classes.filter(Boolean).join(" ");
|
|
13890
13975
|
}
|
|
13891
13976
|
function MosaicToastProvider({
|
|
@@ -13899,7 +13984,7 @@ function MosaicToastProvider({
|
|
|
13899
13984
|
{
|
|
13900
13985
|
ref,
|
|
13901
13986
|
"data-slot": "toast-provider",
|
|
13902
|
-
className:
|
|
13987
|
+
className: cn89(toastProviderPositionVariants({ position }), className),
|
|
13903
13988
|
children
|
|
13904
13989
|
}
|
|
13905
13990
|
);
|
|
@@ -13926,7 +14011,7 @@ var pdfViewerToolbarButtonVariants = classVarianceAuthority.cva([
|
|
|
13926
14011
|
"inline-flex min-h-8 min-w-8 items-center justify-center rounded-md border border-border text-sm",
|
|
13927
14012
|
"transition-colors hover:bg-accent/50 disabled:opacity-50 disabled:hover:bg-transparent"
|
|
13928
14013
|
]);
|
|
13929
|
-
function
|
|
14014
|
+
function cn90(...classes) {
|
|
13930
14015
|
return classes.filter(Boolean).join(" ");
|
|
13931
14016
|
}
|
|
13932
14017
|
function buildFrameSrc(fileUrl, currentPage, zoom) {
|
|
@@ -13991,7 +14076,7 @@ function MosaicPdfViewer({
|
|
|
13991
14076
|
if (zoom === void 0 || onZoomChange === void 0) return;
|
|
13992
14077
|
onZoomChange(Math.round((zoom + 0.1) * 100) / 100);
|
|
13993
14078
|
}
|
|
13994
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "pdf-viewer", className:
|
|
14079
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "pdf-viewer", className: cn90("flex flex-col gap-2", className), children: [
|
|
13995
14080
|
(showPageControls || showZoomControls) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
13996
14081
|
"div",
|
|
13997
14082
|
{
|
|
@@ -14080,7 +14165,7 @@ function MosaicPdfViewer({
|
|
|
14080
14165
|
"data-slot": "pdf-viewer-frame",
|
|
14081
14166
|
src: buildFrameSrc(fileUrl, currentPage, zoom),
|
|
14082
14167
|
title: fileUrl,
|
|
14083
|
-
className:
|
|
14168
|
+
className: cn90(
|
|
14084
14169
|
"h-full min-h-64 w-full border-0",
|
|
14085
14170
|
status !== "loaded" && "pointer-events-none absolute inset-0 opacity-0"
|
|
14086
14171
|
)
|
|
@@ -14099,7 +14184,7 @@ var splitPaneCollapseButtonVariants = classVarianceAuthority.cva([
|
|
|
14099
14184
|
"inline-flex h-11 w-6 shrink-0 items-center justify-center self-center rounded-md border border-border text-sm",
|
|
14100
14185
|
"transition-colors hover:bg-accent/50"
|
|
14101
14186
|
]);
|
|
14102
|
-
function
|
|
14187
|
+
function cn91(...classes) {
|
|
14103
14188
|
return classes.filter(Boolean).join(" ");
|
|
14104
14189
|
}
|
|
14105
14190
|
function mergeRefs(externalRef, node) {
|
|
@@ -14172,7 +14257,7 @@ function MosaicResizableSplitPane({
|
|
|
14172
14257
|
mergeRefs(ref, node);
|
|
14173
14258
|
},
|
|
14174
14259
|
"data-slot": "resizable-split-pane",
|
|
14175
|
-
className:
|
|
14260
|
+
className: cn91(splitPaneRootVariants(), className),
|
|
14176
14261
|
children: [
|
|
14177
14262
|
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "resizable-split-pane-main", className: "min-h-0 min-w-0 flex-1 overflow-auto", children: main }),
|
|
14178
14263
|
!isSideCollapsed && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -14239,7 +14324,7 @@ var tagInputFieldVariants = classVarianceAuthority.cva([
|
|
|
14239
14324
|
"min-w-[6ch] flex-1 border-none bg-transparent px-1 py-0.5 text-sm text-foreground outline-none",
|
|
14240
14325
|
"placeholder:text-muted-foreground"
|
|
14241
14326
|
]);
|
|
14242
|
-
function
|
|
14327
|
+
function cn92(...classes) {
|
|
14243
14328
|
return classes.filter(Boolean).join(" ");
|
|
14244
14329
|
}
|
|
14245
14330
|
function mergeRefs2(externalRef, node) {
|
|
@@ -14290,7 +14375,7 @@ function MosaicTagInput({
|
|
|
14290
14375
|
if (lastTag !== void 0) onRemoveTag(lastTag);
|
|
14291
14376
|
}
|
|
14292
14377
|
}
|
|
14293
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "tag-input", className:
|
|
14378
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "tag-input", className: cn92(tagInputRootVariants(), className), children: [
|
|
14294
14379
|
tags.map((tag) => /* @__PURE__ */ jsxRuntime.jsxs("span", { "data-slot": "tag-input-tag", className: tagInputTagVariants(), children: [
|
|
14295
14380
|
tag,
|
|
14296
14381
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -14327,7 +14412,7 @@ function MosaicTagInput({
|
|
|
14327
14412
|
"ul",
|
|
14328
14413
|
{
|
|
14329
14414
|
"data-slot": "tag-input-suggestions",
|
|
14330
|
-
className:
|
|
14415
|
+
className: cn92(
|
|
14331
14416
|
"z-50 mt-1 w-full min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
14332
14417
|
"bg-popover p-1 text-sm text-popover-foreground shadow-md"
|
|
14333
14418
|
),
|
|
@@ -14367,7 +14452,7 @@ var drawerPopupVariants = classVarianceAuthority.cva(
|
|
|
14367
14452
|
}
|
|
14368
14453
|
);
|
|
14369
14454
|
var drawerBackdropVariants = classVarianceAuthority.cva(["fixed inset-0 z-50 bg-black/50"]);
|
|
14370
|
-
function
|
|
14455
|
+
function cn93(...classes) {
|
|
14371
14456
|
return classes.filter(Boolean).join(" ");
|
|
14372
14457
|
}
|
|
14373
14458
|
function MosaicDrawer({
|
|
@@ -14388,7 +14473,7 @@ function MosaicDrawer({
|
|
|
14388
14473
|
"data-slot": "drawer",
|
|
14389
14474
|
"aria-labelledby": titleId,
|
|
14390
14475
|
"aria-modal": "true",
|
|
14391
|
-
className:
|
|
14476
|
+
className: cn93(drawerPopupVariants({ side }), className),
|
|
14392
14477
|
children: [
|
|
14393
14478
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
14394
14479
|
"div",
|
|
@@ -14401,7 +14486,7 @@ function MosaicDrawer({
|
|
|
14401
14486
|
dialog.Dialog.Close,
|
|
14402
14487
|
{
|
|
14403
14488
|
"aria-label": closeAriaLabel,
|
|
14404
|
-
className:
|
|
14489
|
+
className: cn93(
|
|
14405
14490
|
"flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors",
|
|
14406
14491
|
"hover:bg-muted hover:text-foreground",
|
|
14407
14492
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -14445,7 +14530,7 @@ var popoverPopupVariants = classVarianceAuthority.cva([
|
|
|
14445
14530
|
"data-[ending-style]:scale-95 data-[ending-style]:opacity-0",
|
|
14446
14531
|
"data-[starting-style]:scale-95 data-[starting-style]:opacity-0"
|
|
14447
14532
|
]);
|
|
14448
|
-
function
|
|
14533
|
+
function cn94(...classes) {
|
|
14449
14534
|
return classes.filter(Boolean).join(" ");
|
|
14450
14535
|
}
|
|
14451
14536
|
function MosaicPopover({
|
|
@@ -14474,7 +14559,7 @@ function MosaicPopover({
|
|
|
14474
14559
|
"data-slot": "popover",
|
|
14475
14560
|
"aria-label": ariaLabel,
|
|
14476
14561
|
initialFocus,
|
|
14477
|
-
className:
|
|
14562
|
+
className: cn94(popoverPopupVariants(), className),
|
|
14478
14563
|
children
|
|
14479
14564
|
}
|
|
14480
14565
|
)
|
|
@@ -14501,7 +14586,7 @@ var templateCategoryChipVariants = classVarianceAuthority.cva(
|
|
|
14501
14586
|
}
|
|
14502
14587
|
}
|
|
14503
14588
|
);
|
|
14504
|
-
function
|
|
14589
|
+
function cn95(...classes) {
|
|
14505
14590
|
return classes.filter(Boolean).join(" ");
|
|
14506
14591
|
}
|
|
14507
14592
|
function MosaicTemplateCategoryChips({
|
|
@@ -14516,7 +14601,7 @@ function MosaicTemplateCategoryChips({
|
|
|
14516
14601
|
{
|
|
14517
14602
|
ref,
|
|
14518
14603
|
"data-slot": "template-category-chips",
|
|
14519
|
-
className:
|
|
14604
|
+
className: cn95("flex flex-wrap items-center gap-2", className),
|
|
14520
14605
|
children: categories.map((category) => {
|
|
14521
14606
|
const isSelected = category.id === selected;
|
|
14522
14607
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -14536,52 +14621,33 @@ function MosaicTemplateCategoryChips({
|
|
|
14536
14621
|
);
|
|
14537
14622
|
}
|
|
14538
14623
|
MosaicTemplateCategoryChips.displayName = "MosaicTemplateCategoryChips";
|
|
14539
|
-
var
|
|
14540
|
-
|
|
14541
|
-
|
|
14542
|
-
|
|
14543
|
-
"
|
|
14624
|
+
var editMemoryDialogPopupVariants = classVarianceAuthority.cva([
|
|
14625
|
+
"fixed top-1/2 left-1/2 z-50 flex max-h-[85vh] w-full max-w-[calc(100%-2rem)] flex-col",
|
|
14626
|
+
"-translate-x-1/2 -translate-y-1/2",
|
|
14627
|
+
"rounded-lg border border-border bg-background shadow-lg outline-none",
|
|
14628
|
+
"sm:max-w-lg"
|
|
14544
14629
|
]);
|
|
14545
|
-
var
|
|
14546
|
-
|
|
14547
|
-
|
|
14548
|
-
|
|
14549
|
-
],
|
|
14550
|
-
{
|
|
14551
|
-
variants: {
|
|
14552
|
-
intent: {
|
|
14553
|
-
cancel: "border border-border bg-background hover:bg-muted",
|
|
14554
|
-
save: "border border-transparent bg-primary text-primary-foreground hover:bg-primary/90"
|
|
14555
|
-
}
|
|
14556
|
-
},
|
|
14557
|
-
defaultVariants: {
|
|
14558
|
-
intent: "cancel"
|
|
14559
|
-
}
|
|
14560
|
-
}
|
|
14561
|
-
);
|
|
14562
|
-
function cn95(...classes) {
|
|
14630
|
+
var editMemoryDialogBackdropVariants = classVarianceAuthority.cva(["fixed inset-0 z-50 bg-black/50"]);
|
|
14631
|
+
var editMemoryDialogFieldVariants = classVarianceAuthority.cva(["flex flex-col gap-1.5"]);
|
|
14632
|
+
var editMemoryDialogErrorVariants = classVarianceAuthority.cva(["text-sm text-destructive"]);
|
|
14633
|
+
function cn96(...classes) {
|
|
14563
14634
|
return classes.filter(Boolean).join(" ");
|
|
14564
14635
|
}
|
|
14565
|
-
function
|
|
14636
|
+
function MosaicEditMemoryDialog({
|
|
14566
14637
|
open,
|
|
14567
14638
|
onOpenChange,
|
|
14568
14639
|
title,
|
|
14569
14640
|
description,
|
|
14570
14641
|
closeAriaLabel,
|
|
14571
|
-
|
|
14572
|
-
|
|
14573
|
-
|
|
14574
|
-
|
|
14575
|
-
|
|
14576
|
-
|
|
14577
|
-
|
|
14578
|
-
|
|
14579
|
-
|
|
14580
|
-
descriptionError,
|
|
14581
|
-
categories,
|
|
14582
|
-
category,
|
|
14583
|
-
onCategoryChange,
|
|
14584
|
-
categoryLabel,
|
|
14642
|
+
content,
|
|
14643
|
+
onContentChange,
|
|
14644
|
+
contentLabel,
|
|
14645
|
+
contentPlaceholder,
|
|
14646
|
+
contentError,
|
|
14647
|
+
types,
|
|
14648
|
+
type,
|
|
14649
|
+
onTypeChange,
|
|
14650
|
+
typeLabel,
|
|
14585
14651
|
tags,
|
|
14586
14652
|
onAddTag,
|
|
14587
14653
|
onRemoveTag,
|
|
@@ -14594,7 +14660,242 @@ function MosaicSaveTemplateModal({
|
|
|
14594
14660
|
canSave,
|
|
14595
14661
|
onSave,
|
|
14596
14662
|
onCancel,
|
|
14597
|
-
|
|
14663
|
+
saveLabel,
|
|
14664
|
+
savingLabel,
|
|
14665
|
+
cancelLabel,
|
|
14666
|
+
className
|
|
14667
|
+
}) {
|
|
14668
|
+
const titleId = React30__namespace.useId();
|
|
14669
|
+
const descriptionId = React30__namespace.useId();
|
|
14670
|
+
const contentErrorId = React30__namespace.useId();
|
|
14671
|
+
const saveDisabled = !canSave || isSaving;
|
|
14672
|
+
const handleSave = () => {
|
|
14673
|
+
if (saveDisabled) return;
|
|
14674
|
+
onSave();
|
|
14675
|
+
};
|
|
14676
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog.Root, { open, onOpenChange: (nextOpen) => onOpenChange(nextOpen), modal: true, children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.Dialog.Portal, { children: [
|
|
14677
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14678
|
+
dialog.Dialog.Backdrop,
|
|
14679
|
+
{
|
|
14680
|
+
"data-slot": "edit-memory-dialog-backdrop",
|
|
14681
|
+
className: editMemoryDialogBackdropVariants()
|
|
14682
|
+
}
|
|
14683
|
+
),
|
|
14684
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
14685
|
+
dialog.Dialog.Popup,
|
|
14686
|
+
{
|
|
14687
|
+
"data-slot": "edit-memory-dialog",
|
|
14688
|
+
"aria-labelledby": titleId,
|
|
14689
|
+
"aria-describedby": descriptionId,
|
|
14690
|
+
"aria-modal": "true",
|
|
14691
|
+
className: cn96(editMemoryDialogPopupVariants(), className),
|
|
14692
|
+
children: [
|
|
14693
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
14694
|
+
"div",
|
|
14695
|
+
{
|
|
14696
|
+
"data-slot": "edit-memory-dialog-header",
|
|
14697
|
+
className: "flex items-start justify-between gap-4 border-b border-border p-4",
|
|
14698
|
+
children: [
|
|
14699
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
14700
|
+
/* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog.Title, { id: titleId, className: "text-base font-semibold text-foreground", children: title }),
|
|
14701
|
+
/* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog.Description, { id: descriptionId, className: "text-sm text-muted-foreground", children: description })
|
|
14702
|
+
] }),
|
|
14703
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14704
|
+
dialog.Dialog.Close,
|
|
14705
|
+
{
|
|
14706
|
+
"aria-label": closeAriaLabel,
|
|
14707
|
+
className: cn96(
|
|
14708
|
+
"flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors",
|
|
14709
|
+
"hover:bg-muted hover:text-foreground",
|
|
14710
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
14711
|
+
),
|
|
14712
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14713
|
+
"svg",
|
|
14714
|
+
{
|
|
14715
|
+
width: "16",
|
|
14716
|
+
height: "16",
|
|
14717
|
+
viewBox: "0 0 24 24",
|
|
14718
|
+
fill: "none",
|
|
14719
|
+
stroke: "currentColor",
|
|
14720
|
+
strokeWidth: "2",
|
|
14721
|
+
strokeLinecap: "round",
|
|
14722
|
+
strokeLinejoin: "round",
|
|
14723
|
+
"aria-hidden": "true",
|
|
14724
|
+
children: [
|
|
14725
|
+
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
14726
|
+
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
14727
|
+
]
|
|
14728
|
+
}
|
|
14729
|
+
)
|
|
14730
|
+
}
|
|
14731
|
+
)
|
|
14732
|
+
]
|
|
14733
|
+
}
|
|
14734
|
+
),
|
|
14735
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
14736
|
+
"div",
|
|
14737
|
+
{
|
|
14738
|
+
"data-slot": "edit-memory-dialog-body",
|
|
14739
|
+
className: "flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto p-4",
|
|
14740
|
+
children: [
|
|
14741
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: editMemoryDialogFieldVariants(), children: [
|
|
14742
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14743
|
+
"label",
|
|
14744
|
+
{
|
|
14745
|
+
htmlFor: "mosaic-edit-memory-content",
|
|
14746
|
+
className: "text-sm font-medium text-foreground",
|
|
14747
|
+
children: contentLabel
|
|
14748
|
+
}
|
|
14749
|
+
),
|
|
14750
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14751
|
+
MosaicTextarea,
|
|
14752
|
+
{
|
|
14753
|
+
id: "mosaic-edit-memory-content",
|
|
14754
|
+
value: content,
|
|
14755
|
+
placeholder: contentPlaceholder,
|
|
14756
|
+
onChange: (event) => onContentChange(event.target.value),
|
|
14757
|
+
rows: 4,
|
|
14758
|
+
"aria-invalid": contentError ? "true" : "false",
|
|
14759
|
+
"aria-describedby": contentError ? contentErrorId : void 0
|
|
14760
|
+
}
|
|
14761
|
+
),
|
|
14762
|
+
contentError && /* @__PURE__ */ jsxRuntime.jsx("p", { id: contentErrorId, className: editMemoryDialogErrorVariants(), children: contentError })
|
|
14763
|
+
] }),
|
|
14764
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: editMemoryDialogFieldVariants(), children: [
|
|
14765
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium text-foreground", children: typeLabel }),
|
|
14766
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14767
|
+
MosaicSelect,
|
|
14768
|
+
{
|
|
14769
|
+
items: types,
|
|
14770
|
+
value: type,
|
|
14771
|
+
onValueChange: (value) => {
|
|
14772
|
+
if (value) onTypeChange(value);
|
|
14773
|
+
}
|
|
14774
|
+
}
|
|
14775
|
+
)
|
|
14776
|
+
] }),
|
|
14777
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: editMemoryDialogFieldVariants(), children: [
|
|
14778
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium text-foreground", children: tagsLabel }),
|
|
14779
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14780
|
+
MosaicTagInput,
|
|
14781
|
+
{
|
|
14782
|
+
tags,
|
|
14783
|
+
onAddTag,
|
|
14784
|
+
onRemoveTag,
|
|
14785
|
+
placeholder: tagInputPlaceholder,
|
|
14786
|
+
removeTagAriaLabel,
|
|
14787
|
+
suggestions: suggestedTags,
|
|
14788
|
+
maxTags
|
|
14789
|
+
}
|
|
14790
|
+
)
|
|
14791
|
+
] })
|
|
14792
|
+
]
|
|
14793
|
+
}
|
|
14794
|
+
),
|
|
14795
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
14796
|
+
"div",
|
|
14797
|
+
{
|
|
14798
|
+
"data-slot": "edit-memory-dialog-footer",
|
|
14799
|
+
className: "flex flex-col-reverse gap-2 border-t border-border p-4 sm:flex-row sm:justify-end",
|
|
14800
|
+
children: [
|
|
14801
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14802
|
+
dialog.Dialog.Close,
|
|
14803
|
+
{
|
|
14804
|
+
onClick: onCancel,
|
|
14805
|
+
className: cn96(
|
|
14806
|
+
"inline-flex h-9 items-center justify-center gap-1.5 rounded-md border border-border px-4",
|
|
14807
|
+
"bg-background text-sm font-medium text-foreground shadow-xs",
|
|
14808
|
+
"hover:bg-muted hover:text-foreground",
|
|
14809
|
+
"focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
|
|
14810
|
+
"disabled:pointer-events-none disabled:opacity-50"
|
|
14811
|
+
),
|
|
14812
|
+
children: cancelLabel
|
|
14813
|
+
}
|
|
14814
|
+
),
|
|
14815
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14816
|
+
"button",
|
|
14817
|
+
{
|
|
14818
|
+
type: "button",
|
|
14819
|
+
onClick: handleSave,
|
|
14820
|
+
disabled: saveDisabled,
|
|
14821
|
+
className: cn96(
|
|
14822
|
+
"inline-flex h-9 items-center justify-center gap-1.5 rounded-md px-4",
|
|
14823
|
+
"bg-primary text-sm font-medium text-primary-foreground",
|
|
14824
|
+
"hover:bg-primary/90",
|
|
14825
|
+
"focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
|
|
14826
|
+
"disabled:pointer-events-none disabled:opacity-50"
|
|
14827
|
+
),
|
|
14828
|
+
children: isSaving ? savingLabel : saveLabel
|
|
14829
|
+
}
|
|
14830
|
+
)
|
|
14831
|
+
]
|
|
14832
|
+
}
|
|
14833
|
+
)
|
|
14834
|
+
]
|
|
14835
|
+
}
|
|
14836
|
+
)
|
|
14837
|
+
] }) });
|
|
14838
|
+
}
|
|
14839
|
+
MosaicEditMemoryDialog.displayName = "MosaicEditMemoryDialog";
|
|
14840
|
+
var saveTemplateModalBodyVariants = classVarianceAuthority.cva(["flex flex-col gap-4"]);
|
|
14841
|
+
var saveTemplateModalFieldVariants = classVarianceAuthority.cva(["flex flex-col gap-1.5"]);
|
|
14842
|
+
var saveTemplateModalErrorVariants = classVarianceAuthority.cva(["text-xs font-medium text-destructive"]);
|
|
14843
|
+
var saveTemplateModalFooterVariants = classVarianceAuthority.cva([
|
|
14844
|
+
"flex items-center justify-end gap-3 border-t border-border pt-4"
|
|
14845
|
+
]);
|
|
14846
|
+
var saveTemplateModalButtonVariants = classVarianceAuthority.cva(
|
|
14847
|
+
[
|
|
14848
|
+
"inline-flex min-h-9 items-center justify-center gap-2 rounded-md px-4 text-sm font-medium",
|
|
14849
|
+
"transition-colors disabled:cursor-not-allowed disabled:opacity-50"
|
|
14850
|
+
],
|
|
14851
|
+
{
|
|
14852
|
+
variants: {
|
|
14853
|
+
intent: {
|
|
14854
|
+
cancel: "border border-border bg-background hover:bg-muted",
|
|
14855
|
+
save: "border border-transparent bg-primary text-primary-foreground hover:bg-primary/90"
|
|
14856
|
+
}
|
|
14857
|
+
},
|
|
14858
|
+
defaultVariants: {
|
|
14859
|
+
intent: "cancel"
|
|
14860
|
+
}
|
|
14861
|
+
}
|
|
14862
|
+
);
|
|
14863
|
+
function cn97(...classes) {
|
|
14864
|
+
return classes.filter(Boolean).join(" ");
|
|
14865
|
+
}
|
|
14866
|
+
function MosaicSaveTemplateModal({
|
|
14867
|
+
open,
|
|
14868
|
+
onOpenChange,
|
|
14869
|
+
title,
|
|
14870
|
+
description,
|
|
14871
|
+
closeAriaLabel,
|
|
14872
|
+
name,
|
|
14873
|
+
onNameChange,
|
|
14874
|
+
nameLabel,
|
|
14875
|
+
namePlaceholder,
|
|
14876
|
+
nameError,
|
|
14877
|
+
templateDescription,
|
|
14878
|
+
onTemplateDescriptionChange,
|
|
14879
|
+
descriptionLabel,
|
|
14880
|
+
descriptionPlaceholder,
|
|
14881
|
+
descriptionError,
|
|
14882
|
+
categories,
|
|
14883
|
+
category,
|
|
14884
|
+
onCategoryChange,
|
|
14885
|
+
categoryLabel,
|
|
14886
|
+
tags,
|
|
14887
|
+
onAddTag,
|
|
14888
|
+
onRemoveTag,
|
|
14889
|
+
tagsLabel,
|
|
14890
|
+
tagInputPlaceholder,
|
|
14891
|
+
removeTagAriaLabel,
|
|
14892
|
+
suggestedTags,
|
|
14893
|
+
maxTags,
|
|
14894
|
+
isSaving,
|
|
14895
|
+
canSave,
|
|
14896
|
+
onSave,
|
|
14897
|
+
onCancel,
|
|
14898
|
+
saveButtonLabel,
|
|
14598
14899
|
savingLabel,
|
|
14599
14900
|
cancelButtonLabel,
|
|
14600
14901
|
children,
|
|
@@ -14615,7 +14916,7 @@ function MosaicSaveTemplateModal({
|
|
|
14615
14916
|
"div",
|
|
14616
14917
|
{
|
|
14617
14918
|
"data-slot": "save-template-modal",
|
|
14618
|
-
className:
|
|
14919
|
+
className: cn97(saveTemplateModalBodyVariants(), className),
|
|
14619
14920
|
children: [
|
|
14620
14921
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: saveTemplateModalFieldVariants(), children: [
|
|
14621
14922
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -14723,6 +15024,133 @@ function MosaicSaveTemplateModal({
|
|
|
14723
15024
|
);
|
|
14724
15025
|
}
|
|
14725
15026
|
MosaicSaveTemplateModal.displayName = "MosaicSaveTemplateModal";
|
|
15027
|
+
var addMemoryFormRootVariants = classVarianceAuthority.cva(["flex flex-col gap-4"]);
|
|
15028
|
+
var addMemoryFormFieldVariants = classVarianceAuthority.cva(["flex flex-col gap-1.5"]);
|
|
15029
|
+
var addMemoryFormErrorVariants = classVarianceAuthority.cva(["text-xs font-medium text-destructive"]);
|
|
15030
|
+
var addMemoryFormFooterVariants = classVarianceAuthority.cva([
|
|
15031
|
+
"flex items-center justify-end gap-3 border-t border-border pt-4"
|
|
15032
|
+
]);
|
|
15033
|
+
var addMemoryFormButtonVariants = classVarianceAuthority.cva(
|
|
15034
|
+
[
|
|
15035
|
+
"inline-flex min-h-9 items-center justify-center gap-2 rounded-md px-4 text-sm font-medium",
|
|
15036
|
+
"transition-colors disabled:cursor-not-allowed disabled:opacity-50"
|
|
15037
|
+
],
|
|
15038
|
+
{
|
|
15039
|
+
variants: {
|
|
15040
|
+
intent: {
|
|
15041
|
+
cancel: "border border-border bg-background hover:bg-muted",
|
|
15042
|
+
submit: "border border-transparent bg-primary text-primary-foreground hover:bg-primary/90"
|
|
15043
|
+
}
|
|
15044
|
+
},
|
|
15045
|
+
defaultVariants: {
|
|
15046
|
+
intent: "cancel"
|
|
15047
|
+
}
|
|
15048
|
+
}
|
|
15049
|
+
);
|
|
15050
|
+
function cn98(...classes) {
|
|
15051
|
+
return classes.filter(Boolean).join(" ");
|
|
15052
|
+
}
|
|
15053
|
+
function MosaicAddMemoryForm({
|
|
15054
|
+
content,
|
|
15055
|
+
onContentChange,
|
|
15056
|
+
contentLabel,
|
|
15057
|
+
contentPlaceholder,
|
|
15058
|
+
contentError,
|
|
15059
|
+
types,
|
|
15060
|
+
type,
|
|
15061
|
+
onTypeChange,
|
|
15062
|
+
typeLabel,
|
|
15063
|
+
tags,
|
|
15064
|
+
onAddTag,
|
|
15065
|
+
onRemoveTag,
|
|
15066
|
+
tagsLabel,
|
|
15067
|
+
tagInputPlaceholder,
|
|
15068
|
+
removeTagAriaLabel,
|
|
15069
|
+
suggestedTags,
|
|
15070
|
+
maxTags,
|
|
15071
|
+
isSubmitting,
|
|
15072
|
+
canSubmit,
|
|
15073
|
+
onSubmit,
|
|
15074
|
+
onCancel,
|
|
15075
|
+
submitButtonLabel,
|
|
15076
|
+
submittingLabel,
|
|
15077
|
+
cancelButtonLabel,
|
|
15078
|
+
className
|
|
15079
|
+
}) {
|
|
15080
|
+
const contentErrorId = React30.useId();
|
|
15081
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "add-memory-form", className: cn98(addMemoryFormRootVariants(), className), children: [
|
|
15082
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: addMemoryFormFieldVariants(), children: [
|
|
15083
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: "mosaic-add-memory-content", className: "text-sm font-medium text-foreground", children: contentLabel }),
|
|
15084
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15085
|
+
MosaicTextarea,
|
|
15086
|
+
{
|
|
15087
|
+
id: "mosaic-add-memory-content",
|
|
15088
|
+
value: content,
|
|
15089
|
+
placeholder: contentPlaceholder,
|
|
15090
|
+
onChange: (e) => onContentChange(e.target.value),
|
|
15091
|
+
rows: 4,
|
|
15092
|
+
"aria-invalid": contentError ? "true" : "false",
|
|
15093
|
+
"aria-describedby": contentError ? contentErrorId : void 0
|
|
15094
|
+
}
|
|
15095
|
+
),
|
|
15096
|
+
contentError && /* @__PURE__ */ jsxRuntime.jsx("p", { id: contentErrorId, className: addMemoryFormErrorVariants(), children: contentError })
|
|
15097
|
+
] }),
|
|
15098
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: addMemoryFormFieldVariants(), children: [
|
|
15099
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium text-foreground", children: typeLabel }),
|
|
15100
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15101
|
+
MosaicSelect,
|
|
15102
|
+
{
|
|
15103
|
+
items: types,
|
|
15104
|
+
value: type,
|
|
15105
|
+
onValueChange: (value) => {
|
|
15106
|
+
if (value) onTypeChange(value);
|
|
15107
|
+
}
|
|
15108
|
+
}
|
|
15109
|
+
)
|
|
15110
|
+
] }),
|
|
15111
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: addMemoryFormFieldVariants(), children: [
|
|
15112
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium text-foreground", children: tagsLabel }),
|
|
15113
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15114
|
+
MosaicTagInput,
|
|
15115
|
+
{
|
|
15116
|
+
tags,
|
|
15117
|
+
onAddTag,
|
|
15118
|
+
onRemoveTag,
|
|
15119
|
+
placeholder: tagInputPlaceholder,
|
|
15120
|
+
removeTagAriaLabel,
|
|
15121
|
+
suggestions: suggestedTags,
|
|
15122
|
+
maxTags
|
|
15123
|
+
}
|
|
15124
|
+
)
|
|
15125
|
+
] }),
|
|
15126
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: addMemoryFormFooterVariants(), children: [
|
|
15127
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15128
|
+
"button",
|
|
15129
|
+
{
|
|
15130
|
+
type: "button",
|
|
15131
|
+
"data-slot": "add-memory-form-cancel-button",
|
|
15132
|
+
onClick: onCancel,
|
|
15133
|
+
disabled: isSubmitting,
|
|
15134
|
+
className: addMemoryFormButtonVariants({ intent: "cancel" }),
|
|
15135
|
+
children: cancelButtonLabel
|
|
15136
|
+
}
|
|
15137
|
+
),
|
|
15138
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15139
|
+
"button",
|
|
15140
|
+
{
|
|
15141
|
+
type: "button",
|
|
15142
|
+
"data-slot": "add-memory-form-submit-button",
|
|
15143
|
+
onClick: onSubmit,
|
|
15144
|
+
disabled: !canSubmit || isSubmitting,
|
|
15145
|
+
"aria-busy": isSubmitting ? "true" : "false",
|
|
15146
|
+
className: addMemoryFormButtonVariants({ intent: "submit" }),
|
|
15147
|
+
children: isSubmitting ? submittingLabel : submitButtonLabel
|
|
15148
|
+
}
|
|
15149
|
+
)
|
|
15150
|
+
] })
|
|
15151
|
+
] });
|
|
15152
|
+
}
|
|
15153
|
+
MosaicAddMemoryForm.displayName = "MosaicAddMemoryForm";
|
|
14726
15154
|
var templateListVariants = classVarianceAuthority.cva(["grid gap-4"], {
|
|
14727
15155
|
variants: {
|
|
14728
15156
|
layout: {
|
|
@@ -14734,7 +15162,7 @@ var templateListVariants = classVarianceAuthority.cva(["grid gap-4"], {
|
|
|
14734
15162
|
layout: "grid"
|
|
14735
15163
|
}
|
|
14736
15164
|
});
|
|
14737
|
-
function
|
|
15165
|
+
function cn99(...classes) {
|
|
14738
15166
|
return classes.filter(Boolean).join(" ");
|
|
14739
15167
|
}
|
|
14740
15168
|
var NEXT_KEYS = /* @__PURE__ */ new Set(["ArrowRight", "ArrowDown"]);
|
|
@@ -14779,7 +15207,7 @@ function MosaicTemplateList({
|
|
|
14779
15207
|
{
|
|
14780
15208
|
ref,
|
|
14781
15209
|
"data-slot": "template-list",
|
|
14782
|
-
className:
|
|
15210
|
+
className: cn99(templateListVariants({ layout }), className),
|
|
14783
15211
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14784
15212
|
"p",
|
|
14785
15213
|
{
|
|
@@ -14796,7 +15224,7 @@ function MosaicTemplateList({
|
|
|
14796
15224
|
{
|
|
14797
15225
|
ref,
|
|
14798
15226
|
"data-slot": "template-list",
|
|
14799
|
-
className:
|
|
15227
|
+
className: cn99("list-none", templateListVariants({ layout }), className),
|
|
14800
15228
|
children: items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
14801
15229
|
"li",
|
|
14802
15230
|
{
|
|
@@ -14819,7 +15247,7 @@ MosaicTemplateList.displayName = "MosaicTemplateList";
|
|
|
14819
15247
|
var templateManagementRowVariants = classVarianceAuthority.cva(
|
|
14820
15248
|
"flex items-center justify-between gap-3 border-b border-border px-4 py-3 last:border-b-0"
|
|
14821
15249
|
);
|
|
14822
|
-
function
|
|
15250
|
+
function cn100(...classes) {
|
|
14823
15251
|
return classes.filter(Boolean).join(" ");
|
|
14824
15252
|
}
|
|
14825
15253
|
function MosaicTemplateManagementPanel({
|
|
@@ -14874,7 +15302,7 @@ function MosaicTemplateManagementPanel({
|
|
|
14874
15302
|
"div",
|
|
14875
15303
|
{
|
|
14876
15304
|
"data-slot": "template-management-panel",
|
|
14877
|
-
className:
|
|
15305
|
+
className: cn100("flex flex-col rounded-lg border border-border bg-background", className),
|
|
14878
15306
|
children: [
|
|
14879
15307
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "border-b border-border px-4 py-3 font-semibold text-foreground text-sm", children: heading }),
|
|
14880
15308
|
templates.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "px-4 py-6 text-center text-muted-foreground text-sm", children: emptyMessage }) : /* @__PURE__ */ jsxRuntime.jsx("ul", { children: templates.map((item) => {
|
|
@@ -14906,7 +15334,7 @@ function MosaicTemplateManagementPanel({
|
|
|
14906
15334
|
{
|
|
14907
15335
|
type: "button",
|
|
14908
15336
|
"aria-label": actionsAriaLabelFor(item.name),
|
|
14909
|
-
className:
|
|
15337
|
+
className: cn100(
|
|
14910
15338
|
"flex size-8 items-center justify-center rounded-md",
|
|
14911
15339
|
"text-muted-foreground hover:bg-muted hover:text-foreground"
|
|
14912
15340
|
),
|
|
@@ -14959,7 +15387,7 @@ var chatSidebarThreadVariants = classVarianceAuthority.cva(
|
|
|
14959
15387
|
}
|
|
14960
15388
|
}
|
|
14961
15389
|
);
|
|
14962
|
-
function
|
|
15390
|
+
function cn101(...classes) {
|
|
14963
15391
|
return classes.filter(Boolean).join(" ");
|
|
14964
15392
|
}
|
|
14965
15393
|
var NEXT_KEYS2 = /* @__PURE__ */ new Set(["ArrowDown"]);
|
|
@@ -15010,7 +15438,7 @@ function MosaicChatSidebar({
|
|
|
15010
15438
|
{
|
|
15011
15439
|
ref,
|
|
15012
15440
|
"data-slot": "chat-sidebar",
|
|
15013
|
-
className:
|
|
15441
|
+
className: cn101("flex h-full flex-col gap-2 overflow-y-auto", className),
|
|
15014
15442
|
children: [
|
|
15015
15443
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15016
15444
|
"button",
|
|
@@ -15043,7 +15471,7 @@ function MosaicChatSidebar({
|
|
|
15043
15471
|
onKeyDown: (event) => handleKeyDown(event, index, thread.id),
|
|
15044
15472
|
onFocus: () => setFocusedIndex(index),
|
|
15045
15473
|
onClick: () => onSelectThread(thread.id),
|
|
15046
|
-
className:
|
|
15474
|
+
className: cn101(chatSidebarThreadVariants({ active: isActive }), itemClassName),
|
|
15047
15475
|
children: renderThread(thread, index)
|
|
15048
15476
|
},
|
|
15049
15477
|
thread.id
|
|
@@ -15054,6 +15482,203 @@ function MosaicChatSidebar({
|
|
|
15054
15482
|
);
|
|
15055
15483
|
}
|
|
15056
15484
|
MosaicChatSidebar.displayName = "MosaicChatSidebar";
|
|
15485
|
+
var memoryGridVariants = classVarianceAuthority.cva(["grid", "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"], {
|
|
15486
|
+
variants: {
|
|
15487
|
+
density: {
|
|
15488
|
+
comfortable: "gap-4",
|
|
15489
|
+
compact: "gap-2"
|
|
15490
|
+
}
|
|
15491
|
+
},
|
|
15492
|
+
defaultVariants: {
|
|
15493
|
+
density: "comfortable"
|
|
15494
|
+
}
|
|
15495
|
+
});
|
|
15496
|
+
function cn102(...classes) {
|
|
15497
|
+
return classes.filter(Boolean).join(" ");
|
|
15498
|
+
}
|
|
15499
|
+
var NEXT_KEYS3 = /* @__PURE__ */ new Set(["ArrowRight", "ArrowDown"]);
|
|
15500
|
+
var PREV_KEYS3 = /* @__PURE__ */ new Set(["ArrowLeft", "ArrowUp"]);
|
|
15501
|
+
function MosaicMemoryGrid({
|
|
15502
|
+
items,
|
|
15503
|
+
renderItem,
|
|
15504
|
+
density = "comfortable",
|
|
15505
|
+
emptyMessage,
|
|
15506
|
+
className,
|
|
15507
|
+
itemClassName,
|
|
15508
|
+
ref
|
|
15509
|
+
}) {
|
|
15510
|
+
const itemRefs = React30.useRef([]);
|
|
15511
|
+
const [focusedIndex, setFocusedIndex] = React30.useState(0);
|
|
15512
|
+
function focusItem(index) {
|
|
15513
|
+
if (items.length === 0) {
|
|
15514
|
+
return;
|
|
15515
|
+
}
|
|
15516
|
+
const clamped = Math.max(0, Math.min(items.length - 1, index));
|
|
15517
|
+
setFocusedIndex(clamped);
|
|
15518
|
+
itemRefs.current[clamped]?.focus();
|
|
15519
|
+
}
|
|
15520
|
+
function handleKeyDown(event, index) {
|
|
15521
|
+
if (NEXT_KEYS3.has(event.key)) {
|
|
15522
|
+
event.preventDefault();
|
|
15523
|
+
focusItem(index + 1);
|
|
15524
|
+
} else if (PREV_KEYS3.has(event.key)) {
|
|
15525
|
+
event.preventDefault();
|
|
15526
|
+
focusItem(index - 1);
|
|
15527
|
+
} else if (event.key === "Home") {
|
|
15528
|
+
event.preventDefault();
|
|
15529
|
+
focusItem(0);
|
|
15530
|
+
} else if (event.key === "End") {
|
|
15531
|
+
event.preventDefault();
|
|
15532
|
+
focusItem(items.length - 1);
|
|
15533
|
+
}
|
|
15534
|
+
}
|
|
15535
|
+
if (items.length === 0) {
|
|
15536
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15537
|
+
"div",
|
|
15538
|
+
{
|
|
15539
|
+
ref,
|
|
15540
|
+
"data-slot": "memory-grid",
|
|
15541
|
+
className: cn102(memoryGridVariants({ density }), className),
|
|
15542
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
15543
|
+
"p",
|
|
15544
|
+
{
|
|
15545
|
+
"data-slot": "memory-grid-empty",
|
|
15546
|
+
className: "col-span-full py-12 text-center text-sm text-muted-foreground",
|
|
15547
|
+
children: emptyMessage
|
|
15548
|
+
}
|
|
15549
|
+
)
|
|
15550
|
+
}
|
|
15551
|
+
);
|
|
15552
|
+
}
|
|
15553
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15554
|
+
"ul",
|
|
15555
|
+
{
|
|
15556
|
+
ref,
|
|
15557
|
+
"data-slot": "memory-grid",
|
|
15558
|
+
className: cn102("list-none", memoryGridVariants({ density }), className),
|
|
15559
|
+
children: items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
15560
|
+
"li",
|
|
15561
|
+
{
|
|
15562
|
+
ref: (node) => {
|
|
15563
|
+
itemRefs.current[index] = node;
|
|
15564
|
+
},
|
|
15565
|
+
"data-slot": "memory-grid-item",
|
|
15566
|
+
tabIndex: index === focusedIndex ? 0 : -1,
|
|
15567
|
+
onKeyDown: (event) => handleKeyDown(event, index),
|
|
15568
|
+
onFocus: () => setFocusedIndex(index),
|
|
15569
|
+
className: itemClassName,
|
|
15570
|
+
children: renderItem(item, index)
|
|
15571
|
+
},
|
|
15572
|
+
item.id
|
|
15573
|
+
))
|
|
15574
|
+
}
|
|
15575
|
+
);
|
|
15576
|
+
}
|
|
15577
|
+
MosaicMemoryGrid.displayName = "MosaicMemoryGrid";
|
|
15578
|
+
var memoryListVariants = classVarianceAuthority.cva(["flex flex-col", "divide-y divide-border"], {
|
|
15579
|
+
variants: {
|
|
15580
|
+
density: {
|
|
15581
|
+
comfortable: "",
|
|
15582
|
+
compact: ""
|
|
15583
|
+
}
|
|
15584
|
+
},
|
|
15585
|
+
defaultVariants: {
|
|
15586
|
+
density: "comfortable"
|
|
15587
|
+
}
|
|
15588
|
+
});
|
|
15589
|
+
var memoryListItemVariants = classVarianceAuthority.cva([], {
|
|
15590
|
+
variants: {
|
|
15591
|
+
density: {
|
|
15592
|
+
comfortable: "py-3",
|
|
15593
|
+
compact: "py-1"
|
|
15594
|
+
}
|
|
15595
|
+
},
|
|
15596
|
+
defaultVariants: {
|
|
15597
|
+
density: "comfortable"
|
|
15598
|
+
}
|
|
15599
|
+
});
|
|
15600
|
+
function cn103(...classes) {
|
|
15601
|
+
return classes.filter(Boolean).join(" ");
|
|
15602
|
+
}
|
|
15603
|
+
var NEXT_KEYS4 = /* @__PURE__ */ new Set(["ArrowRight", "ArrowDown"]);
|
|
15604
|
+
var PREV_KEYS4 = /* @__PURE__ */ new Set(["ArrowLeft", "ArrowUp"]);
|
|
15605
|
+
function MosaicMemoryList({
|
|
15606
|
+
items,
|
|
15607
|
+
renderItem,
|
|
15608
|
+
density = "comfortable",
|
|
15609
|
+
emptyMessage,
|
|
15610
|
+
className,
|
|
15611
|
+
itemClassName,
|
|
15612
|
+
ref
|
|
15613
|
+
}) {
|
|
15614
|
+
const itemRefs = React30.useRef([]);
|
|
15615
|
+
const [focusedIndex, setFocusedIndex] = React30.useState(0);
|
|
15616
|
+
function focusItem(index) {
|
|
15617
|
+
if (items.length === 0) {
|
|
15618
|
+
return;
|
|
15619
|
+
}
|
|
15620
|
+
const clamped = Math.max(0, Math.min(items.length - 1, index));
|
|
15621
|
+
setFocusedIndex(clamped);
|
|
15622
|
+
itemRefs.current[clamped]?.focus();
|
|
15623
|
+
}
|
|
15624
|
+
function handleKeyDown(event, index) {
|
|
15625
|
+
if (NEXT_KEYS4.has(event.key)) {
|
|
15626
|
+
event.preventDefault();
|
|
15627
|
+
focusItem(index + 1);
|
|
15628
|
+
} else if (PREV_KEYS4.has(event.key)) {
|
|
15629
|
+
event.preventDefault();
|
|
15630
|
+
focusItem(index - 1);
|
|
15631
|
+
} else if (event.key === "Home") {
|
|
15632
|
+
event.preventDefault();
|
|
15633
|
+
focusItem(0);
|
|
15634
|
+
} else if (event.key === "End") {
|
|
15635
|
+
event.preventDefault();
|
|
15636
|
+
focusItem(items.length - 1);
|
|
15637
|
+
}
|
|
15638
|
+
}
|
|
15639
|
+
if (items.length === 0) {
|
|
15640
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15641
|
+
"div",
|
|
15642
|
+
{
|
|
15643
|
+
ref,
|
|
15644
|
+
"data-slot": "memory-list",
|
|
15645
|
+
className: cn103(memoryListVariants({ density }), className),
|
|
15646
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
15647
|
+
"p",
|
|
15648
|
+
{
|
|
15649
|
+
"data-slot": "memory-list-empty",
|
|
15650
|
+
className: "py-12 text-center text-sm text-muted-foreground",
|
|
15651
|
+
children: emptyMessage
|
|
15652
|
+
}
|
|
15653
|
+
)
|
|
15654
|
+
}
|
|
15655
|
+
);
|
|
15656
|
+
}
|
|
15657
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15658
|
+
"ul",
|
|
15659
|
+
{
|
|
15660
|
+
ref,
|
|
15661
|
+
"data-slot": "memory-list",
|
|
15662
|
+
className: cn103("list-none", memoryListVariants({ density }), className),
|
|
15663
|
+
children: items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
15664
|
+
"li",
|
|
15665
|
+
{
|
|
15666
|
+
ref: (node) => {
|
|
15667
|
+
itemRefs.current[index] = node;
|
|
15668
|
+
},
|
|
15669
|
+
"data-slot": "memory-list-item",
|
|
15670
|
+
tabIndex: index === focusedIndex ? 0 : -1,
|
|
15671
|
+
onKeyDown: (event) => handleKeyDown(event, index),
|
|
15672
|
+
onFocus: () => setFocusedIndex(index),
|
|
15673
|
+
className: cn103(memoryListItemVariants({ density }), itemClassName),
|
|
15674
|
+
children: renderItem(item, index)
|
|
15675
|
+
},
|
|
15676
|
+
item.id
|
|
15677
|
+
))
|
|
15678
|
+
}
|
|
15679
|
+
);
|
|
15680
|
+
}
|
|
15681
|
+
MosaicMemoryList.displayName = "MosaicMemoryList";
|
|
15057
15682
|
|
|
15058
15683
|
Object.defineProperty(exports, "Accordion", {
|
|
15059
15684
|
enumerable: true,
|
|
@@ -15072,6 +15697,7 @@ exports.MosaicActivityItem = MosaicActivityItem;
|
|
|
15072
15697
|
exports.MosaicAdaptiveGrid = MosaicAdaptiveGrid;
|
|
15073
15698
|
exports.MosaicAdaptiveModal = MosaicAdaptiveModal;
|
|
15074
15699
|
exports.MosaicAdaptiveNavigation = MosaicAdaptiveNavigation;
|
|
15700
|
+
exports.MosaicAddMemoryForm = MosaicAddMemoryForm;
|
|
15075
15701
|
exports.MosaicAgentBuilderModal = MosaicAgentBuilderModal;
|
|
15076
15702
|
exports.MosaicAgentCard = MosaicAgentCard;
|
|
15077
15703
|
exports.MosaicAgentChat = MosaicAgentChat;
|
|
@@ -15131,6 +15757,7 @@ exports.MosaicDeviceProvider = MosaicDeviceProvider;
|
|
|
15131
15757
|
exports.MosaicDocumentUpload = MosaicDocumentUpload;
|
|
15132
15758
|
exports.MosaicDrawer = MosaicDrawer;
|
|
15133
15759
|
exports.MosaicDropdownMenu = MosaicDropdownMenu;
|
|
15760
|
+
exports.MosaicEditMemoryDialog = MosaicEditMemoryDialog;
|
|
15134
15761
|
exports.MosaicEmptyState = MosaicEmptyState;
|
|
15135
15762
|
exports.MosaicFallingPattern = MosaicFallingPattern;
|
|
15136
15763
|
exports.MosaicFeature3Col = MosaicFeature3Col;
|
|
@@ -15159,6 +15786,9 @@ exports.MosaicMarketplaceListDesktop = MarketplaceListDesktop;
|
|
|
15159
15786
|
exports.MosaicMarketplaceListMobile = MarketplaceListMobile;
|
|
15160
15787
|
exports.MosaicMemberList = MosaicMemberList;
|
|
15161
15788
|
exports.MosaicMemoryCard = MosaicMemoryCard;
|
|
15789
|
+
exports.MosaicMemoryDashboard = MosaicMemoryDashboard;
|
|
15790
|
+
exports.MosaicMemoryGrid = MosaicMemoryGrid;
|
|
15791
|
+
exports.MosaicMemoryList = MosaicMemoryList;
|
|
15162
15792
|
exports.MosaicMessageCard = MosaicMessageCard;
|
|
15163
15793
|
exports.MosaicMessageList = MosaicMessageList;
|
|
15164
15794
|
exports.MosaicMessageListDesktop = MessageListDesktop;
|
|
@@ -15226,6 +15856,11 @@ exports.MosaicTooltipTrigger = MosaicTooltipTrigger;
|
|
|
15226
15856
|
exports.MosaicUrlScraper = MosaicUrlScraper;
|
|
15227
15857
|
exports.MosaicUserButton = MosaicUserButton;
|
|
15228
15858
|
exports.Placeholder = Placeholder;
|
|
15859
|
+
exports.addMemoryFormButtonVariants = addMemoryFormButtonVariants;
|
|
15860
|
+
exports.addMemoryFormErrorVariants = addMemoryFormErrorVariants;
|
|
15861
|
+
exports.addMemoryFormFieldVariants = addMemoryFormFieldVariants;
|
|
15862
|
+
exports.addMemoryFormFooterVariants = addMemoryFormFooterVariants;
|
|
15863
|
+
exports.addMemoryFormRootVariants = addMemoryFormRootVariants;
|
|
15229
15864
|
exports.agentBuilderModalBackdropVariants = agentBuilderModalBackdropVariants;
|
|
15230
15865
|
exports.agentBuilderModalPopupVariants = agentBuilderModalPopupVariants;
|
|
15231
15866
|
exports.agentChatRootVariants = agentChatRootVariants;
|
|
@@ -15241,7 +15876,15 @@ exports.chatMessageToolStatusVariants = chatMessageToolStatusVariants;
|
|
|
15241
15876
|
exports.chatSidebarThreadVariants = chatSidebarThreadVariants;
|
|
15242
15877
|
exports.drawerBackdropVariants = drawerBackdropVariants;
|
|
15243
15878
|
exports.drawerPopupVariants = drawerPopupVariants;
|
|
15879
|
+
exports.editMemoryDialogBackdropVariants = editMemoryDialogBackdropVariants;
|
|
15880
|
+
exports.editMemoryDialogErrorVariants = editMemoryDialogErrorVariants;
|
|
15881
|
+
exports.editMemoryDialogFieldVariants = editMemoryDialogFieldVariants;
|
|
15882
|
+
exports.editMemoryDialogPopupVariants = editMemoryDialogPopupVariants;
|
|
15244
15883
|
exports.marketplaceCardVariants = marketplaceCardVariants;
|
|
15884
|
+
exports.memoryDashboardViewToggleButtonVariants = memoryDashboardViewToggleButtonVariants;
|
|
15885
|
+
exports.memoryGridVariants = memoryGridVariants;
|
|
15886
|
+
exports.memoryListItemVariants = memoryListItemVariants;
|
|
15887
|
+
exports.memoryListVariants = memoryListVariants;
|
|
15245
15888
|
exports.pdfViewerFrameVariants = pdfViewerFrameVariants;
|
|
15246
15889
|
exports.pdfViewerStatusVariants = pdfViewerStatusVariants;
|
|
15247
15890
|
exports.pdfViewerToolbarButtonVariants = pdfViewerToolbarButtonVariants;
|